|
|
!(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,Fn,ye)=>Fn in Rn?lw(Rn,Fn,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Rn[Fn]=ye,da=(Rn,Fn)=>{for(var ye in Fn||(Fn={}))wx.call(Fn,ye)&&xx(Rn,ye,Fn[ye]);if(rv)for(var ye of rv(Fn))Px.call(Fn,ye)&&xx(Rn,ye,Fn[ye]);return Rn},tl=(Rn,Fn)=>uw(Rn,cw(Fn));var ov=(Rn,Fn)=>{var ye={};for(var Se in Rn)wx.call(Rn,Se)&&Fn.indexOf(Se)<0&&(ye[Se]=Rn[Se]);if(Rn!=null&&rv)for(var Se of rv(Rn))Fn.indexOf(Se)<0&&Px.call(Rn,Se)&&(ye[Se]=Rn[Se]);return ye};var Cx=(Rn,Fn,ye)=>new Promise((Se,Oe)=>{var He=vt=>{try{_e(ye.next(vt))}catch(ke){Oe(ke)}},Rt=vt=>{try{_e(ye.throw(vt))}catch(ke){Oe(ke)}},_e=vt=>vt.done?Se(vt.value):Promise.resolve(vt.value).then(He,Rt);_e((ye=ye.apply(Rn,Fn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4030],{35323:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},19155:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},10402:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},93343:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},80205:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},61441:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},30631:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},43971:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},58358:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},44757:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},16537:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},77042:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},5527:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},86902:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},53878:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},21970:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(et,gt){return Oe.createElement(_e.Z,(0,Se.Z)({},et,{ref:gt,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke},87954:function(Rn,Fn,ye){"use strict";ye.d(Fn,{LB:function(){return Li},g4:function(){return Ut},VK:function(){return Mt},Cj:function(){return Nr},O1:function(){return dr},Zj:function(){return er}});var Se=ye(59301),Oe=ye(4676),He=ye(35241);const Rt={display:"none"};function _e(pt){let{id:It,value:sn}=pt;return Se.createElement("div",{id:It,style:Rt},sn)}function vt(pt){let{id:It,announcement:sn,ariaLiveType:Hn="assertive"}=pt;const On={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 Se.createElement("div",{id:It,style:On,role:"status","aria-live":Hn,"aria-atomic":!0},sn)}function ke(){const[pt,It]=(0,Se.useState)("");return{announce:(0,Se.useCallback)(Hn=>{Hn!=null&&It(Hn)},[]),announcement:pt}}const Tt=(0,Se.createContext)(null);function Lt(pt){const It=(0,Se.useContext)(Tt);(0,Se.useEffect)(()=>{if(!It)throw new Error("useDndMonitor must be used within a children of <DndContext>");return It(pt)},[pt,It])}function et(){const[pt]=(0,Se.useState)(()=>new Set),It=(0,Se.useCallback)(Hn=>(pt.add(Hn),()=>pt.delete(Hn)),[pt]);return[(0,Se.useCallback)(Hn=>{let{type:On,event:Wt}=Hn;pt.forEach(Nn=>{var ai;return(ai=Nn[On])==null?void 0:ai.call(Nn,Wt)})},[pt]),It]}const gt={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.
|
|
|
`},ct={onDragStart(pt){let{active:It}=pt;return"Picked up draggable item "+It.id+"."},onDragOver(pt){let{active:It,over:sn}=pt;return sn?"Draggable item "+It.id+" was moved over droppable area "+sn.id+".":"Draggable item "+It.id+" is no longer over a droppable area."},onDragEnd(pt){let{active:It,over:sn}=pt;return sn?"Draggable item "+It.id+" was dropped over droppable area "+sn.id:"Draggable item "+It.id+" was dropped."},onDragCancel(pt){let{active:It}=pt;return"Dragging was cancelled. Draggable item "+It.id+" was dropped."}};function wt(pt){let{announcements:It=ct,container:sn,hiddenTextDescribedById:Hn,screenReaderInstructions:On=gt}=pt;const{announce:Wt,announcement:Nn}=ke(),ai=(0,He.Ld)("DndLiveRegion"),[qn,Oi]=(0,Se.useState)(!1);if((0,Se.useEffect)(()=>{Oi(!0)},[]),Lt((0,Se.useMemo)(()=>({onDragStart(pi){let{active:Gi}=pi;Wt(It.onDragStart({active:Gi}))},onDragMove(pi){let{active:Gi,over:zn}=pi;It.onDragMove&&Wt(It.onDragMove({active:Gi,over:zn}))},onDragOver(pi){let{active:Gi,over:zn}=pi;Wt(It.onDragOver({active:Gi,over:zn}))},onDragEnd(pi){let{active:Gi,over:zn}=pi;Wt(It.onDragEnd({active:Gi,over:zn}))},onDragCancel(pi){let{active:Gi,over:zn}=pi;Wt(It.onDragCancel({active:Gi,over:zn}))}}),[Wt,It])),!qn)return null;const Bi=Se.createElement(Se.Fragment,null,Se.createElement(_e,{id:Hn,value:On.draggable}),Se.createElement(vt,{id:ai,announcement:Nn}));return sn?(0,Oe.createPortal)(Bi,sn):Bi}var Me;(function(pt){pt.DragStart="dragStart",pt.DragMove="dragMove",pt.DragEnd="dragEnd",pt.DragCancel="dragCancel",pt.DragOver="dragOver",pt.RegisterDroppable="registerDroppable",pt.SetDroppableDisabled="setDroppableDisabled",pt.UnregisterDroppable="unregisterDroppable"})(Me||(Me={}));function te(){}function ne(pt,It){return useMemo(()=>({sensor:pt,options:It!=null?It:{}}),[pt,It])}function ce(){for(var pt=arguments.length,It=new Array(pt),sn=0;sn<pt;sn++)It[sn]=arguments[sn];return useMemo(()=>[...It].filter(Hn=>Hn!=null),[...It])}const se=Object.freeze({x:0,y:0});function ge(pt,It){return Math.sqrt(Math.pow(pt.x-It.x,2)+Math.pow(pt.y-It.y,2))}function ve(pt,It){const sn=getEventCoordinates(pt);if(!sn)return"0 0";const Hn={x:(sn.x-It.left)/It.width*100,y:(sn.y-It.top)/It.height*100};return Hn.x+"% "+Hn.y+"%"}function be(pt,It){let{data:{value:sn}}=pt,{data:{value:Hn}}=It;return sn-Hn}function Fe(pt,It){let{data:{value:sn}}=pt,{data:{value:Hn}}=It;return Hn-sn}function Pe(pt){let{left:It,top:sn,height:Hn,width:On}=pt;return[{x:It,y:sn},{x:It+On,y:sn},{x:It,y:sn+Hn},{x:It+On,y:sn+Hn}]}function Ie(pt,It){if(!pt||pt.length===0)return null;const[sn]=pt;return It?sn[It]:sn}function We(pt,It,sn){return It===void 0&&(It=pt.left),sn===void 0&&(sn=pt.top),{x:It+pt.width*.5,y:sn+pt.height*.5}}const Ke=pt=>{let{collisionRect:It,droppableRects:sn,droppableContainers:Hn}=pt;const On=We(It,It.left,It.top),Wt=[];for(const Nn of Hn){const{id:ai}=Nn,qn=sn.get(ai);if(qn){const Oi=ge(We(qn),On);Wt.push({id:ai,data:{droppableContainer:Nn,value:Oi}})}}return Wt.sort(be)},Xe=pt=>{let{collisionRect:It,droppableRects:sn,droppableContainers:Hn}=pt;const On=Pe(It),Wt=[];for(const Nn of Hn){const{id:ai}=Nn,qn=sn.get(ai);if(qn){const Oi=Pe(qn),Bi=On.reduce((Gi,zn,_r)=>Gi+ge(Oi[_r],zn),0),pi=Number((Bi/4).toFixed(4));Wt.push({id:ai,data:{droppableContainer:Nn,value:pi}})}}return Wt.sort(be)};function ht(pt,It){const sn=Math.max(It.top,pt.top),Hn=Math.max(It.left,pt.left),On=Math.min(It.left+It.width,pt.left+pt.width),Wt=Math.min(It.top+It.height,pt.top+pt.height),Nn=On-Hn,ai=Wt-sn;if(Hn<On&&sn<Wt){const qn=It.width*It.height,Oi=pt.width*pt.height,Bi=Nn*ai,pi=Bi/(qn+Oi-Bi);return Number(pi.toFixed(4))}return 0}const Ve=pt=>{let{collisionRect:It,droppableRects:sn,droppableContainers:Hn}=pt;const On=[];for(const Wt of Hn){const{id:Nn}=Wt,ai=sn.get(Nn);if(ai){const qn=ht(ai,It);qn>0&&On.push({id:Nn,data:{droppableContainer:Wt,value:qn}})}}return On.sort(Fe)};function Nt(pt,It){const{top:sn,left:Hn,bottom:On,right:Wt}=It;return sn<=pt.y&&pt.y<=On&&Hn<=pt.x&&pt.x<=Wt}const qe=pt=>{let{droppableContainers:It,droppableRects:sn,pointerCoordinates:Hn}=pt;if(!Hn)return[];const On=[];for(const Wt of It){const{id:Nn}=Wt,ai=sn.get(Nn);if(ai&&Nt(Hn,ai)){const Oi=Pe(ai).reduce((pi,Gi)=>pi+ge(Hn,Gi),0),Bi=Number((Oi/4).toFixed(4));On.push({id:Nn,data:{droppableContainer:Wt,value:Bi}})}}return On.sort(be)};function Ht(pt,It,sn){return tl(da({},pt),{scaleX:It&&sn?It.width/sn.width:1,scaleY:It&&sn?It.height/sn.height:1})}function Zt(pt,It){return pt&&It?{x:pt.left-It.left,y:pt.top-It.top}:se}function Yt(pt){return function(sn){for(var Hn=arguments.length,On=new Array(Hn>1?Hn-1:0),Wt=1;Wt<Hn;Wt++)On[Wt-1]=arguments[Wt];return On.reduce((Nn,ai)=>tl(da({},Nn),{top:Nn.top+pt*ai.y,bottom:Nn.bottom+pt*ai.y,left:Nn.left+pt*ai.x,right:Nn.right+pt*ai.x}),da({},sn))}}const Ot=Yt(1);function Qt(pt){if(pt.startsWith("matrix3d(")){const It=pt.slice(9,-1).split(/, /);return{x:+It[12],y:+It[13],scaleX:+It[0],scaleY:+It[5]}}else if(pt.startsWith("matrix(")){const It=pt.slice(7,-1).split(/, /);return{x:+It[4],y:+It[5],scaleX:+It[0],scaleY:+It[3]}}return null}function dt(pt,It,sn){const Hn=Qt(It);if(!Hn)return pt;const{scaleX:On,scaleY:Wt,x:Nn,y:ai}=Hn,qn=pt.left-Nn-(1-On)*parseFloat(sn),Oi=pt.top-ai-(1-Wt)*parseFloat(sn.slice(sn.indexOf(" ")+1)),Bi=On?pt.width/On:pt.width,pi=Wt?pt.height/Wt:pt.height;return{width:Bi,height:pi,top:Oi,right:qn+Bi,bottom:Oi+pi,left:qn}}const Re={ignoreTransform:!1};function Mt(pt,It){It===void 0&&(It=Re);let sn=pt.getBoundingClientRect();if(It.ignoreTransform){const{transform:Oi,transformOrigin:Bi}=(0,He.Jj)(pt).getComputedStyle(pt);Oi&&(sn=dt(sn,Oi,Bi))}const{top:Hn,left:On,width:Wt,height:Nn,bottom:ai,right:qn}=sn;return{top:Hn,left:On,width:Wt,height:Nn,bottom:ai,right:qn}}function Pn(pt){return Mt(pt,{ignoreTransform:!0})}function mn(pt){const It=pt.innerWidth,sn=pt.innerHeight;return{top:0,left:0,right:It,bottom:sn,width:It,height:sn}}function kt(pt,It){return It===void 0&&(It=(0,He.Jj)(pt).getComputedStyle(pt)),It.position==="fixed"}function _t(pt,It){It===void 0&&(It=(0,He.Jj)(pt).getComputedStyle(pt));const sn=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(On=>{const Wt=It[On];return typeof Wt=="string"?sn.test(Wt):!1})}function ln(pt,It){const sn=[];function Hn(On){if(It!=null&&sn.length>=It||!On)return sn;if((0,He.qk)(On)&&On.scrollingElement!=null&&!sn.includes(On.scrollingElement))return sn.push(On.scrollingElement),sn;if(!(0,He.Re)(On)||(0,He.vZ)(On)||sn.includes(On))return sn;const Wt=(0,He.Jj)(pt).getComputedStyle(On);return On!==pt&&_t(On,Wt)&&sn.push(On),kt(On,Wt)?sn:Hn(On.parentNode)}return pt?Hn(pt):sn}function Bn(pt){const[It]=ln(pt,1);return It!=null?It:null}function wn(pt){return!He.Nq||!pt?null:(0,He.FJ)(pt)?pt:(0,He.UG)(pt)?(0,He.qk)(pt)||pt===(0,He.r3)(pt).scrollingElement?window:(0,He.Re)(pt)?pt:null:null}function Kn(pt){return(0,He.FJ)(pt)?pt.scrollX:pt.scrollLeft}function yt(pt){return(0,He.FJ)(pt)?pt.scrollY:pt.scrollTop}function Jn(pt){return{x:Kn(pt),y:yt(pt)}}var bn;(function(pt){pt[pt.Forward=1]="Forward",pt[pt.Backward=-1]="Backward"})(bn||(bn={}));function ci(pt){return!He.Nq||!pt?!1:pt===document.scrollingElement}function Tn(pt){const It={x:0,y:0},sn=ci(pt)?{height:window.innerHeight,width:window.innerWidth}:{height:pt.clientHeight,width:pt.clientWidth},Hn={x:pt.scrollWidth-sn.width,y:pt.scrollHeight-sn.height},On=pt.scrollTop<=It.y,Wt=pt.scrollLeft<=It.x,Nn=pt.scrollTop>=Hn.y,ai=pt.scrollLeft>=Hn.x;return{isTop:On,isLeft:Wt,isBottom:Nn,isRight:ai,maxScroll:Hn,minScroll:It}}const tn={x:.2,y:.2};function $t(pt,It,sn,Hn,On){let{top:Wt,left:Nn,right:ai,bottom:qn}=sn;Hn===void 0&&(Hn=10),On===void 0&&(On=tn);const{isTop:Oi,isBottom:Bi,isLeft:pi,isRight:Gi}=Tn(pt),zn={x:0,y:0},_r={x:0,y:0},Gr={height:It.height*On.y,width:It.width*On.x};return!Oi&&Wt<=It.top+Gr.height?(zn.y=bn.Backward,_r.y=Hn*Math.abs((It.top+Gr.height-Wt)/Gr.height)):!Bi&&qn>=It.bottom-Gr.height&&(zn.y=bn.Forward,_r.y=Hn*Math.abs((It.bottom-Gr.height-qn)/Gr.height)),!Gi&&ai>=It.right-Gr.width?(zn.x=bn.Forward,_r.x=Hn*Math.abs((It.right-Gr.width-ai)/Gr.width)):!pi&&Nn<=It.left+Gr.width&&(zn.x=bn.Backward,_r.x=Hn*Math.abs((It.left+Gr.width-Nn)/Gr.width)),{direction:zn,speed:_r}}function ft(pt){if(pt===document.scrollingElement){const{innerWidth:Wt,innerHeight:Nn}=window;return{top:0,left:0,right:Wt,bottom:Nn,width:Wt,height:Nn}}const{top:It,left:sn,right:Hn,bottom:On}=pt.getBoundingClientRect();return{top:It,left:sn,right:Hn,bottom:On,width:pt.clientWidth,height:pt.clientHeight}}function Je(pt){return pt.reduce((It,sn)=>(0,He.IH)(It,Jn(sn)),se)}function Gt(pt){return pt.reduce((It,sn)=>It+Kn(sn),0)}function At(pt){return pt.reduce((It,sn)=>It+yt(sn),0)}function lt(pt,It){if(It===void 0&&(It=Mt),!pt)return;const{top:sn,left:Hn,bottom:On,right:Wt}=It(pt);Bn(pt)&&(On<=0||Wt<=0||sn>=window.innerHeight||Hn>=window.innerWidth)&&pt.scrollIntoView({block:"center",inline:"center"})}const Ge=[["x",["left","right"],Gt],["y",["top","bottom"],At]];class Be{constructor(It,sn){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 Hn=ln(sn),On=Je(Hn);this.rect=da({},It),this.width=It.width,this.height=It.height;for(const[Wt,Nn,ai]of Ge)for(const qn of Nn)Object.defineProperty(this,qn,{get:()=>{const Oi=ai(Hn),Bi=On[Wt]-Oi;return this.rect[qn]+Bi},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class we{constructor(It){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(sn=>{var Hn;return(Hn=this.target)==null?void 0:Hn.removeEventListener(...sn)})},this.target=It}add(It,sn,Hn){var On;(On=this.target)==null||On.addEventListener(It,sn,Hn),this.listeners.push([It,sn,Hn])}}function pe(pt){const{EventTarget:It}=(0,He.Jj)(pt);return pt instanceof It?pt:(0,He.r3)(pt)}function De(pt,It){const sn=Math.abs(pt.x),Hn=Math.abs(pt.y);return typeof It=="number"?Math.sqrt(_y(sn,2)+_y(Hn,2))>It:"x"in It&&"y"in It?sn>It.x&&Hn>It.y:"x"in It?sn>It.x:"y"in It?Hn>It.y:!1}var ze;(function(pt){pt.Click="click",pt.DragStart="dragstart",pt.Keydown="keydown",pt.ContextMenu="contextmenu",pt.Resize="resize",pt.SelectionChange="selectionchange",pt.VisibilityChange="visibilitychange"})(ze||(ze={}));function Le(pt){pt.preventDefault()}function nt(pt){pt.stopPropagation()}var Ut;(function(pt){pt.Space="Space",pt.Down="ArrowDown",pt.Right="ArrowRight",pt.Left="ArrowLeft",pt.Up="ArrowUp",pt.Esc="Escape",pt.Enter="Enter",pt.Tab="Tab"})(Ut||(Ut={}));const En={start:[Ut.Space,Ut.Enter],cancel:[Ut.Esc],end:[Ut.Space,Ut.Enter,Ut.Tab]},rn=(pt,It)=>{let{currentCoordinates:sn}=It;switch(pt.code){case Ut.Right:return tl(da({},sn),{x:sn.x+25});case Ut.Left:return tl(da({},sn),{x:sn.x-25});case Ut.Down:return tl(da({},sn),{y:sn.y+25});case Ut.Up:return tl(da({},sn),{y:sn.y-25})}};class vn{constructor(It){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=It;const{event:{target:sn}}=It;this.props=It,this.listeners=new we((0,He.r3)(sn)),this.windowListeners=new we((0,He.Jj)(sn)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ze.Resize,this.handleCancel),this.windowListeners.add(ze.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ze.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:It,onStart:sn}=this.props,Hn=It.node.current;Hn&<(Hn),sn(se)}handleKeyDown(It){if((0,He.vd)(It)){const{active:sn,context:Hn,options:On}=this.props,{keyboardCodes:Wt=En,coordinateGetter:Nn=rn,scrollBehavior:ai="smooth"}=On,{code:qn}=It;if(Wt.end.includes(qn)){this.handleEnd(It);return}if(Wt.cancel.includes(qn)){this.handleCancel(It);return}const{collisionRect:Oi}=Hn.current,Bi=Oi?{x:Oi.left,y:Oi.top}:se;this.referenceCoordinates||(this.referenceCoordinates=Bi);const pi=Nn(It,{active:sn,context:Hn.current,currentCoordinates:Bi});if(pi){const Gi=(0,He.$X)(pi,Bi),zn={x:0,y:0},{scrollableAncestors:_r}=Hn.current;for(const Gr of _r){const Ao=It.code,{isTop:qr,isRight:$r,isLeft:to,isBottom:$o,maxScroll:Qo,minScroll:pa}=Tn(Gr),qo=ft(Gr),Cn={x:Math.min(Ao===Ut.Right?qo.right-qo.width/2:qo.right,Math.max(Ao===Ut.Right?qo.left:qo.left+qo.width/2,pi.x)),y:Math.min(Ao===Ut.Down?qo.bottom-qo.height/2:qo.bottom,Math.max(Ao===Ut.Down?qo.top:qo.top+qo.height/2,pi.y))},ca=Ao===Ut.Right&&!$r||Ao===Ut.Left&&!to,es=Ao===Ut.Down&&!$o||Ao===Ut.Up&&!qr;if(ca&&Cn.x!==pi.x){const ts=Gr.scrollLeft+Gi.x,Ga=Ao===Ut.Right&&ts<=Qo.x||Ao===Ut.Left&&ts>=pa.x;if(Ga&&!Gi.y){Gr.scrollTo({left:ts,behavior:ai});return}Ga?zn.x=Gr.scrollLeft-ts:zn.x=Ao===Ut.Right?Gr.scrollLeft-Qo.x:Gr.scrollLeft-pa.x,zn.x&&Gr.scrollBy({left:-zn.x,behavior:ai});break}else if(es&&Cn.y!==pi.y){const ts=Gr.scrollTop+Gi.y,Ga=Ao===Ut.Down&&ts<=Qo.y||Ao===Ut.Up&&ts>=pa.y;if(Ga&&!Gi.x){Gr.scrollTo({top:ts,behavior:ai});return}Ga?zn.y=Gr.scrollTop-ts:zn.y=Ao===Ut.Down?Gr.scrollTop-Qo.y:Gr.scrollTop-pa.y,zn.y&&Gr.scrollBy({top:-zn.y,behavior:ai});break}}this.handleMove(It,(0,He.IH)((0,He.$X)(pi,this.referenceCoordinates),zn))}}}handleMove(It,sn){const{onMove:Hn}=this.props;It.preventDefault(),Hn(sn)}handleEnd(It){const{onEnd:sn}=this.props;It.preventDefault(),this.detach(),sn()}handleCancel(It){const{onCancel:sn}=this.props;It.preventDefault(),this.detach(),sn()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}vn.activators=[{eventName:"onKeyDown",handler:(pt,It,sn)=>{let{keyboardCodes:Hn=En,onActivation:On}=It,{active:Wt}=sn;const{code:Nn}=pt.nativeEvent;if(Hn.start.includes(Nn)){const ai=Wt.activatorNode.current;return ai&&pt.target!==ai?!1:(pt.preventDefault(),On==null||On({event:pt.nativeEvent}),!0)}return!1}}];function mi(pt){return!!(pt&&"distance"in pt)}function wi(pt){return!!(pt&&"delay"in pt)}class Ri{constructor(It,sn,Hn){var On;Hn===void 0&&(Hn=pe(It.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=It,this.events=sn;const{event:Wt}=It,{target:Nn}=Wt;this.props=It,this.events=sn,this.document=(0,He.r3)(Nn),this.documentListeners=new we(this.document),this.listeners=new we(Hn),this.windowListeners=new we((0,He.Jj)(Nn)),this.initialCoordinates=(On=(0,He.DC)(Wt))!=null?On: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:It,props:{options:{activationConstraint:sn,bypassActivationConstraint:Hn}}}=this;if(this.listeners.add(It.move.name,this.handleMove,{passive:!1}),this.listeners.add(It.end.name,this.handleEnd),It.cancel&&this.listeners.add(It.cancel.name,this.handleCancel),this.windowListeners.add(ze.Resize,this.handleCancel),this.windowListeners.add(ze.DragStart,Le),this.windowListeners.add(ze.VisibilityChange,this.handleCancel),this.windowListeners.add(ze.ContextMenu,Le),this.documentListeners.add(ze.Keydown,this.handleKeydown),sn){if(Hn!=null&&Hn({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(wi(sn)){this.timeoutId=setTimeout(this.handleStart,sn.delay),this.handlePending(sn);return}if(mi(sn)){this.handlePending(sn);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(It,sn){const{active:Hn,onPending:On}=this.props;On(Hn,It,this.initialCoordinates,sn)}handleStart(){const{initialCoordinates:It}=this,{onStart:sn}=this.props;It&&(this.activated=!0,this.documentListeners.add(ze.Click,nt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ze.SelectionChange,this.removeTextSelection),sn(It))}handleMove(It){var sn;const{activated:Hn,initialCoordinates:On,props:Wt}=this,{onMove:Nn,options:{activationConstraint:ai}}=Wt;if(!On)return;const qn=(sn=(0,He.DC)(It))!=null?sn:se,Oi=(0,He.$X)(On,qn);if(!Hn&&ai){if(mi(ai)){if(ai.tolerance!=null&&De(Oi,ai.tolerance))return this.handleCancel();if(De(Oi,ai.distance))return this.handleStart()}if(wi(ai)&&De(Oi,ai.tolerance))return this.handleCancel();this.handlePending(ai,Oi);return}It.cancelable&&It.preventDefault(),Nn(qn)}handleEnd(){const{onAbort:It,onEnd:sn}=this.props;this.detach(),this.activated||It(this.props.active),sn()}handleCancel(){const{onAbort:It,onCancel:sn}=this.props;this.detach(),this.activated||It(this.props.active),sn()}handleKeydown(It){It.code===Ut.Esc&&this.handleCancel()}removeTextSelection(){var It;(It=this.document.getSelection())==null||It.removeAllRanges()}}const Wi={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Mn extends Ri{constructor(It){const{event:sn}=It,Hn=(0,He.r3)(sn.target);super(It,Wi,Hn)}}Mn.activators=[{eventName:"onPointerDown",handler:(pt,It)=>{let{nativeEvent:sn}=pt,{onActivation:Hn}=It;return!sn.isPrimary||sn.button!==0?!1:(Hn==null||Hn({event:sn}),!0)}}];const nr={move:{name:"mousemove"},end:{name:"mouseup"}};var Wr;(function(pt){pt[pt.RightClick=2]="RightClick"})(Wr||(Wr={}));class Hr extends Ri{constructor(It){super(It,nr,(0,He.r3)(It.event.target))}}Hr.activators=[{eventName:"onMouseDown",handler:(pt,It)=>{let{nativeEvent:sn}=pt,{onActivation:Hn}=It;return sn.button===Wr.RightClick?!1:(Hn==null||Hn({event:sn}),!0)}}];const Tr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Fr extends Ri{constructor(It){super(It,Tr)}static setup(){return window.addEventListener(Tr.move.name,It,{capture:!1,passive:!1}),function(){window.removeEventListener(Tr.move.name,It)};function It(){}}}Fr.activators=[{eventName:"onTouchStart",handler:(pt,It)=>{let{nativeEvent:sn}=pt,{onActivation:Hn}=It;const{touches:On}=sn;return On.length>1?!1:(Hn==null||Hn({event:sn}),!0)}}];var Yr;(function(pt){pt[pt.Pointer=0]="Pointer",pt[pt.DraggableRect=1]="DraggableRect"})(Yr||(Yr={}));var Kr;(function(pt){pt[pt.TreeOrder=0]="TreeOrder",pt[pt.ReversedTreeOrder=1]="ReversedTreeOrder"})(Kr||(Kr={}));function ar(pt){let{acceleration:It,activator:sn=Yr.Pointer,canScroll:Hn,draggingRect:On,enabled:Wt,interval:Nn=5,order:ai=Kr.TreeOrder,pointerCoordinates:qn,scrollableAncestors:Oi,scrollableAncestorRects:Bi,delta:pi,threshold:Gi}=pt;const zn=$n({delta:pi,disabled:!Wt}),[_r,Gr]=(0,He.Yz)(),Ao=(0,Se.useRef)({x:0,y:0}),qr=(0,Se.useRef)({x:0,y:0}),$r=(0,Se.useMemo)(()=>{switch(sn){case Yr.Pointer:return qn?{top:qn.y,bottom:qn.y,left:qn.x,right:qn.x}:null;case Yr.DraggableRect:return On}},[sn,On,qn]),to=(0,Se.useRef)(null),$o=(0,Se.useCallback)(()=>{const pa=to.current;if(!pa)return;const qo=Ao.current.x*qr.current.x,Cn=Ao.current.y*qr.current.y;pa.scrollBy(qo,Cn)},[]),Qo=(0,Se.useMemo)(()=>ai===Kr.TreeOrder?[...Oi].reverse():Oi,[ai,Oi]);(0,Se.useEffect)(()=>{if(!Wt||!Oi.length||!$r){Gr();return}for(const pa of Qo){if((Hn==null?void 0:Hn(pa))===!1)continue;const qo=Oi.indexOf(pa),Cn=Bi[qo];if(!Cn)continue;const{direction:ca,speed:es}=$t(pa,Cn,$r,It,Gi);for(const ts of["x","y"])zn[ts][ca[ts]]||(es[ts]=0,ca[ts]=0);if(es.x>0||es.y>0){Gr(),to.current=pa,_r($o,Nn),Ao.current=es,qr.current=ca;return}}Ao.current={x:0,y:0},qr.current={x:0,y:0},Gr()},[It,$o,Hn,Gr,Wt,Nn,JSON.stringify($r),JSON.stringify(zn),_r,Oi,Qo,Bi,JSON.stringify(Gi)])}const Co={x:{[bn.Backward]:!1,[bn.Forward]:!1},y:{[bn.Backward]:!1,[bn.Forward]:!1}};function $n(pt){let{delta:It,disabled:sn}=pt;const Hn=(0,He.D9)(It);return(0,He.Gj)(On=>{if(sn||!Hn||!On)return Co;const Wt={x:Math.sign(It.x-Hn.x),y:Math.sign(It.y-Hn.y)};return{x:{[bn.Backward]:On.x[bn.Backward]||Wt.x===-1,[bn.Forward]:On.x[bn.Forward]||Wt.x===1},y:{[bn.Backward]:On.y[bn.Backward]||Wt.y===-1,[bn.Forward]:On.y[bn.Forward]||Wt.y===1}}},[sn,It,Hn])}function Ce(pt,It){const sn=It!=null?pt.get(It):void 0,Hn=sn?sn.node.current:null;return(0,He.Gj)(On=>{var Wt;return It==null?null:(Wt=Hn!=null?Hn:On)!=null?Wt:null},[Hn,It])}function hi(pt,It){return(0,Se.useMemo)(()=>pt.reduce((sn,Hn)=>{const{sensor:On}=Hn,Wt=On.activators.map(Nn=>({eventName:Nn.eventName,handler:It(Nn.handler,Hn)}));return[...sn,...Wt]},[]),[pt,It])}var ki;(function(pt){pt[pt.Always=0]="Always",pt[pt.BeforeDragging=1]="BeforeDragging",pt[pt.WhileDragging=2]="WhileDragging"})(ki||(ki={}));var un;(function(pt){pt.Optimized="optimized"})(un||(un={}));const Wn=new Map;function li(pt,It){let{dragging:sn,dependencies:Hn,config:On}=It;const[Wt,Nn]=(0,Se.useState)(null),{frequency:ai,measure:qn,strategy:Oi}=On,Bi=(0,Se.useRef)(pt),pi=Ao(),Gi=(0,He.Ey)(pi),zn=(0,Se.useCallback)(function(qr){qr===void 0&&(qr=[]),!Gi.current&&Nn($r=>$r===null?qr:$r.concat(qr.filter(to=>!$r.includes(to))))},[Gi]),_r=(0,Se.useRef)(null),Gr=(0,He.Gj)(qr=>{if(pi&&!sn)return Wn;if(!qr||qr===Wn||Bi.current!==pt||Wt!=null){const $r=new Map;for(let to of pt){if(!to)continue;if(Wt&&Wt.length>0&&!Wt.includes(to.id)&&to.rect.current){$r.set(to.id,to.rect.current);continue}const $o=to.node.current,Qo=$o?new Be(qn($o),$o):null;to.rect.current=Qo,Qo&&$r.set(to.id,Qo)}return $r}return qr},[pt,Wt,sn,pi,qn]);return(0,Se.useEffect)(()=>{Bi.current=pt},[pt]),(0,Se.useEffect)(()=>{pi||zn()},[sn,pi]),(0,Se.useEffect)(()=>{Wt&&Wt.length>0&&Nn(null)},[JSON.stringify(Wt)]),(0,Se.useEffect)(()=>{pi||typeof ai!="number"||_r.current!==null||(_r.current=setTimeout(()=>{zn(),_r.current=null},ai))},[ai,pi,zn,...Hn]),{droppableRects:Gr,measureDroppableContainers:zn,measuringScheduled:Wt!=null};function Ao(){switch(Oi){case ki.Always:return!1;case ki.BeforeDragging:return sn;default:return!sn}}}function fn(pt,It){return(0,He.Gj)(sn=>pt?sn||(typeof It=="function"?It(pt):pt):null,[It,pt])}function on(pt,It){return fn(pt,It)}function mt(pt){let{callback:It,disabled:sn}=pt;const Hn=(0,He.zX)(It),On=(0,Se.useMemo)(()=>{if(sn||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:Wt}=window;return new Wt(Hn)},[Hn,sn]);return(0,Se.useEffect)(()=>()=>On==null?void 0:On.disconnect(),[On]),On}function Pt(pt){let{callback:It,disabled:sn}=pt;const Hn=(0,He.zX)(It),On=(0,Se.useMemo)(()=>{if(sn||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:Wt}=window;return new Wt(Hn)},[sn]);return(0,Se.useEffect)(()=>()=>On==null?void 0:On.disconnect(),[On]),On}function bt(pt){return new Be(Mt(pt),pt)}function tt(pt,It,sn){It===void 0&&(It=bt);const[Hn,On]=(0,Se.useState)(null);function Wt(){On(qn=>{if(!pt)return null;if(pt.isConnected===!1){var Oi;return(Oi=qn!=null?qn:sn)!=null?Oi:null}const Bi=It(pt);return JSON.stringify(qn)===JSON.stringify(Bi)?qn:Bi})}const Nn=mt({callback(qn){if(pt)for(const Oi of qn){const{type:Bi,target:pi}=Oi;if(Bi==="childList"&&pi instanceof HTMLElement&&pi.contains(pt)){Wt();break}}}}),ai=Pt({callback:Wt});return(0,He.LI)(()=>{Wt(),pt?(ai==null||ai.observe(pt),Nn==null||Nn.observe(document.body,{childList:!0,subtree:!0})):(ai==null||ai.disconnect(),Nn==null||Nn.disconnect())},[pt]),Hn}function qt(pt){const It=fn(pt);return Zt(pt,It)}const dn=[];function xt(pt){const It=(0,Se.useRef)(pt),sn=(0,He.Gj)(Hn=>pt?Hn&&Hn!==dn&&pt&&It.current&&pt.parentNode===It.current.parentNode?Hn:ln(pt):dn,[pt]);return(0,Se.useEffect)(()=>{It.current=pt},[pt]),sn}function Ye(pt){const[It,sn]=(0,Se.useState)(null),Hn=(0,Se.useRef)(pt),On=(0,Se.useCallback)(Wt=>{const Nn=wn(Wt.target);Nn&&sn(ai=>ai?(ai.set(Nn,Jn(Nn)),new Map(ai)):null)},[]);return(0,Se.useEffect)(()=>{const Wt=Hn.current;if(pt!==Wt){Nn(Wt);const ai=pt.map(qn=>{const Oi=wn(qn);return Oi?(Oi.addEventListener("scroll",On,{passive:!0}),[Oi,Jn(Oi)]):null}).filter(qn=>qn!=null);sn(ai.length?new Map(ai):null),Hn.current=pt}return()=>{Nn(pt),Nn(Wt)};function Nn(ai){ai.forEach(qn=>{const Oi=wn(qn);Oi==null||Oi.removeEventListener("scroll",On)})}},[On,pt]),(0,Se.useMemo)(()=>pt.length?It?Array.from(It.values()).reduce((Wt,Nn)=>(0,He.IH)(Wt,Nn),se):Je(pt):se,[pt,It])}function an(pt,It){It===void 0&&(It=[]);const sn=(0,Se.useRef)(null);return(0,Se.useEffect)(()=>{sn.current=null},It),(0,Se.useEffect)(()=>{const Hn=pt!==se;Hn&&!sn.current&&(sn.current=pt),!Hn&&sn.current&&(sn.current=null)},[pt]),sn.current?(0,He.$X)(pt,sn.current):se}function Bt(pt){(0,Se.useEffect)(()=>{if(!He.Nq)return;const It=pt.map(sn=>{let{sensor:Hn}=sn;return Hn.setup==null?void 0:Hn.setup()});return()=>{for(const sn of It)sn==null||sn()}},pt.map(It=>{let{sensor:sn}=It;return sn}))}function jn(pt,It){return(0,Se.useMemo)(()=>pt.reduce((sn,Hn)=>{let{eventName:On,handler:Wt}=Hn;return sn[On]=Nn=>{Wt(Nn,It)},sn},{}),[pt,It])}function cn(pt){return(0,Se.useMemo)(()=>pt?mn(pt):null,[pt])}const Et=[];function xn(pt,It){It===void 0&&(It=Mt);const[sn]=pt,Hn=cn(sn?(0,He.Jj)(sn):null),[On,Wt]=(0,Se.useState)(Et);function Nn(){Wt(()=>pt.length?pt.map(qn=>ci(qn)?Hn:new Be(It(qn),qn)):Et)}const ai=Pt({callback:Nn});return(0,He.LI)(()=>{ai==null||ai.disconnect(),Nn(),pt.forEach(qn=>ai==null?void 0:ai.observe(qn))},[pt]),On}function Qn(pt){if(!pt)return null;if(pt.children.length>1)return pt;const It=pt.children[0];return(0,He.Re)(It)?It:pt}function Un(pt){let{measure:It}=pt;const[sn,Hn]=(0,Se.useState)(null),On=(0,Se.useCallback)(Oi=>{for(const{target:Bi}of Oi)if((0,He.Re)(Bi)){Hn(pi=>{const Gi=It(Bi);return pi?tl(da({},pi),{width:Gi.width,height:Gi.height}):Gi});break}},[It]),Wt=Pt({callback:On}),Nn=(0,Se.useCallback)(Oi=>{const Bi=Qn(Oi);Wt==null||Wt.disconnect(),Bi&&(Wt==null||Wt.observe(Bi)),Hn(Bi?It(Bi):null)},[It,Wt]),[ai,qn]=(0,He.wm)(Nn);return(0,Se.useMemo)(()=>({nodeRef:ai,rect:sn,setRef:qn}),[sn,ai,qn])}const zt=[{sensor:Mn,options:{}},{sensor:vn,options:{}}],Sn={current:{}},Ci={draggable:{measure:Pn},droppable:{measure:Pn,strategy:ki.WhileDragging,frequency:un.Optimized},dragOverlay:{measure:Mt}};class Si extends Map{get(It){var sn;return It!=null&&(sn=super.get(It))!=null?sn:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(It=>{let{disabled:sn}=It;return!sn})}getNodeFor(It){var sn,Hn;return(sn=(Hn=this.get(It))==null?void 0:Hn.node.current)!=null?sn:void 0}}const vi={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Si,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:te},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ci,measureDroppableContainers:te,windowRect:null,measuringScheduled:!1},ti={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:te,draggableNodes:new Map,over:null,measureDroppableContainers:te},xi=(0,Se.createContext)(ti),Ni=(0,Se.createContext)(vi);function Zi(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Si}}}function cr(pt,It){switch(It.type){case Me.DragStart:return tl(da({},pt),{draggable:tl(da({},pt.draggable),{initialCoordinates:It.initialCoordinates,active:It.active})});case Me.DragMove:return pt.draggable.active==null?pt:tl(da({},pt),{draggable:tl(da({},pt.draggable),{translate:{x:It.coordinates.x-pt.draggable.initialCoordinates.x,y:It.coordinates.y-pt.draggable.initialCoordinates.y}})});case Me.DragEnd:case Me.DragCancel:return tl(da({},pt),{draggable:tl(da({},pt.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Me.RegisterDroppable:{const{element:sn}=It,{id:Hn}=sn,On=new Si(pt.droppable.containers);return On.set(Hn,sn),tl(da({},pt),{droppable:tl(da({},pt.droppable),{containers:On})})}case Me.SetDroppableDisabled:{const{id:sn,key:Hn,disabled:On}=It,Wt=pt.droppable.containers.get(sn);if(!Wt||Hn!==Wt.key)return pt;const Nn=new Si(pt.droppable.containers);return Nn.set(sn,tl(da({},Wt),{disabled:On})),tl(da({},pt),{droppable:tl(da({},pt.droppable),{containers:Nn})})}case Me.UnregisterDroppable:{const{id:sn,key:Hn}=It,On=pt.droppable.containers.get(sn);if(!On||Hn!==On.key)return pt;const Wt=new Si(pt.droppable.containers);return Wt.delete(sn),tl(da({},pt),{droppable:tl(da({},pt.droppable),{containers:Wt})})}default:return pt}}function Gn(pt){let{disabled:It}=pt;const{active:sn,activatorEvent:Hn,draggableNodes:On}=(0,Se.useContext)(xi),Wt=(0,He.D9)(Hn),Nn=(0,He.D9)(sn==null?void 0:sn.id);return(0,Se.useEffect)(()=>{if(!It&&!Hn&&Wt&&Nn!=null){if(!(0,He.vd)(Wt)||document.activeElement===Wt.target)return;const ai=On.get(Nn);if(!ai)return;const{activatorNode:qn,node:Oi}=ai;if(!qn.current&&!Oi.current)return;requestAnimationFrame(()=>{for(const Bi of[qn.current,Oi.current]){if(!Bi)continue;const pi=(0,He.so)(Bi);if(pi){pi.focus();break}}})}},[Hn,It,On,Nn,Wt]),null}function Ai(pt,It){let On=It,{transform:sn}=On,Hn=ov(On,["transform"]);return pt!=null&&pt.length?pt.reduce((Wt,Nn)=>Nn(da({transform:Wt},Hn)),sn):sn}function br(pt){return(0,Se.useMemo)(()=>({draggable:da(da({},Ci.draggable),pt==null?void 0:pt.draggable),droppable:da(da({},Ci.droppable),pt==null?void 0:pt.droppable),dragOverlay:da(da({},Ci.dragOverlay),pt==null?void 0:pt.dragOverlay)}),[pt==null?void 0:pt.draggable,pt==null?void 0:pt.droppable,pt==null?void 0:pt.dragOverlay])}function kr(pt){let{activeNode:It,measure:sn,initialRect:Hn,config:On=!0}=pt;const Wt=(0,Se.useRef)(!1),{x:Nn,y:ai}=typeof On=="boolean"?{x:On,y:On}:On;(0,He.LI)(()=>{if(!Nn&&!ai||!It){Wt.current=!1;return}if(Wt.current||!Hn)return;const Oi=It==null?void 0:It.node.current;if(!Oi||Oi.isConnected===!1)return;const Bi=sn(Oi),pi=Zt(Bi,Hn);if(Nn||(pi.x=0),ai||(pi.y=0),Wt.current=!0,Math.abs(pi.x)>0||Math.abs(pi.y)>0){const Gi=Bn(Oi);Gi&&Gi.scrollBy({top:pi.y,left:pi.x})}},[It,Nn,ai,Hn,sn])}const Sr=(0,Se.createContext)(tl(da({},se),{scaleX:1,scaleY:1}));var Xt;(function(pt){pt[pt.Uninitialized=0]="Uninitialized",pt[pt.Initializing=1]="Initializing",pt[pt.Initialized=2]="Initialized"})(Xt||(Xt={}));const Li=(0,Se.memo)(function(It){var sn,Hn,On,Wt;let xs=It,{id:Nn,accessibility:ai,autoScroll:qn=!0,children:Oi,sensors:Bi=zt,collisionDetection:pi=Ve,measuring:Gi,modifiers:zn}=xs,_r=ov(xs,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const Gr=(0,Se.useReducer)(cr,void 0,Zi),[Ao,qr]=Gr,[$r,to]=et(),[$o,Qo]=(0,Se.useState)(Xt.Uninitialized),pa=$o===Xt.Initialized,{draggable:{active:qo,nodes:Cn,translate:ca},droppable:{containers:es}}=Ao,ts=qo!=null?Cn.get(qo):null,Ga=(0,Se.useRef)({initial:null,translated:null}),Ds=(0,Se.useMemo)(()=>{var Ks;return qo!=null?{id:qo,data:(Ks=ts==null?void 0:ts.data)!=null?Ks:Sn,rect:Ga}:null},[qo,ts]),pl=(0,Se.useRef)(null),[ma,Fo]=(0,Se.useState)(null),[Oo,Pa]=(0,Se.useState)(null),no=(0,He.Ey)(_r,Object.values(_r)),ko=(0,He.Ld)("DndDescribedBy",Nn),oo=(0,Se.useMemo)(()=>es.getEnabled(),[es]),Vi=br(Gi),{droppableRects:ha,measureDroppableContainers:Na,measuringScheduled:Bs}=li(oo,{dragging:pa,dependencies:[ca.x,ca.y],config:Vi.droppable}),ys=Ce(Cn,qo),nl=(0,Se.useMemo)(()=>Oo?(0,He.DC)(Oo):null,[Oo]),Yi=Ls(),Da=on(ys,Vi.draggable.measure);kr({activeNode:qo!=null?Cn.get(qo):null,config:Yi.layoutShiftCompensation,initialRect:Da,measure:Vi.draggable.measure});const ga=tt(ys,Vi.draggable.measure,Da),Is=tt(ys?ys.parentElement:null),ml=(0,Se.useRef)({activatorEvent:null,active:null,activeNode:ys,collisionRect:null,collisions:null,droppableRects:ha,draggableNodes:Cn,draggingNode:null,draggingNodeRect:null,droppableContainers:es,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Gl=es.getNodeFor((sn=ml.current.over)==null?void 0:sn.id),So=Un({measure:Vi.dragOverlay.measure}),Au=(Hn=So.nodeRef.current)!=null?Hn:ys,il=pa?(On=So.rect)!=null?On:ga:null,kl=!!(So.nodeRef.current&&So.rect),vl=qt(kl?null:ga),fu=cn(Au?(0,He.Jj)(Au):null),yl=xt(pa?Gl!=null?Gl:ys:null),rl=xn(yl),Sl=Ai(zn,{transform:{x:ca.x-vl.x,y:ca.y-vl.y,scaleX:1,scaleY:1},activatorEvent:Oo,active:Ds,activeNodeRect:ga,containerNodeRect:Is,draggingNodeRect:il,over:ml.current.over,overlayNodeRect:So.rect,scrollableAncestors:yl,scrollableAncestorRects:rl,windowRect:fu}),oc=nl?(0,He.IH)(nl,ca):null,Sc=Ye(yl),xc=an(Sc),Qc=an(Sc,[ga]),gu=(0,He.IH)(Sl,xc),zl=il?Ot(il,Sl):null,xl=Ds&&zl?pi({active:Ds,collisionRect:zl,droppableRects:ha,droppableContainers:oo,pointerCoordinates:oc}):null,Tl=Ie(xl,"id"),[pu,wc]=(0,Se.useState)(null),mu=kl?Sl:(0,He.IH)(Sl,Qc),Xo=Ht(mu,(Wt=pu==null?void 0:pu.rect)!=null?Wt:null,ga),va=(0,Se.useRef)(null),dl=(0,Se.useCallback)((Ks,Ts)=>{let{sensor:Fa,options:Hu}=Ts;if(pl.current==null)return;const Ol=Cn.get(pl.current);if(!Ol)return;const El=Ks.nativeEvent,Rr=new Fa({active:pl.current,activeNode:Ol,event:El,options:Hu,context:ml,onAbort(Kt){if(!Cn.get(Kt))return;const{onDragAbort:Mu}=no.current,Fu={id:Kt};Mu==null||Mu(Fu),$r({type:"onDragAbort",event:Fu})},onPending(Kt,di,Mu,Fu){if(!Cn.get(Kt))return;const{onDragPending:$l}=no.current,jl={id:Kt,constraint:di,initialCoordinates:Mu,offset:Fu};$l==null||$l(jl),$r({type:"onDragPending",event:jl})},onStart(Kt){const di=pl.current;if(di==null)return;const Mu=Cn.get(di);if(!Mu)return;const{onDragStart:Fu}=no.current,_l={activatorEvent:El,active:{id:di,data:Mu.data,rect:Ga}};(0,Oe.unstable_batchedUpdates)(()=>{Fu==null||Fu(_l),Qo(Xt.Initializing),qr({type:Me.DragStart,initialCoordinates:Kt,active:di}),$r({type:"onDragStart",event:_l}),Fo(va.current),Pa(El)})},onMove(Kt){qr({type:Me.DragMove,coordinates:Kt})},onEnd:Lu(Me.DragEnd),onCancel:Lu(Me.DragCancel)});va.current=Rr;function Lu(Kt){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}=no.current;jl={activatorEvent:El,active:Mu,collisions:Fu,delta:$l,over:_l},Kt===Me.DragEnd&&typeof Pc=="function"&&(yield Promise.resolve(Pc(jl)))&&(Kt=Me.DragCancel)}pl.current=null,(0,Oe.unstable_batchedUpdates)(()=>{qr({type:Kt}),Qo(Xt.Uninitialized),wc(null),Fo(null),Pa(null),va.current=null;const Pc=Kt===Me.DragEnd?"onDragEnd":"onDragCancel";if(jl){const Ic=no.current[Pc];Ic==null||Ic(jl),$r({type:Pc,event:jl})}})})}}},[Cn]),Cs=(0,Se.useCallback)((Ks,Ts)=>(Fa,Hu)=>{const Ol=Fa.nativeEvent,El=Cn.get(Hu);if(pl.current!==null||!El||Ol.dndKit||Ol.defaultPrevented)return;const Rr={active:El};Ks(Fa,Ts.options,Rr)===!0&&(Ol.dndKit={capturedBy:Ts.sensor},pl.current=Hu,dl(Fa,Ts))},[Cn,dl]),Ss=hi(Bi,Cs);Bt(Bi),(0,He.LI)(()=>{ga&&$o===Xt.Initializing&&Qo(Xt.Initialized)},[ga,$o]),(0,Se.useEffect)(()=>{const{onDragMove:Ks}=no.current,{active:Ts,activatorEvent:Fa,collisions:Hu,over:Ol}=ml.current;if(!Ts||!Fa)return;const El={active:Ts,activatorEvent:Fa,collisions:Hu,delta:{x:gu.x,y:gu.y},over:Ol};(0,Oe.unstable_batchedUpdates)(()=>{Ks==null||Ks(El),$r({type:"onDragMove",event:El})})},[gu.x,gu.y]),(0,Se.useEffect)(()=>{const{active:Ks,activatorEvent:Ts,collisions:Fa,droppableContainers:Hu,scrollAdjustedTranslate:Ol}=ml.current;if(!Ks||pl.current==null||!Ts||!Ol)return;const{onDragOver:El}=no.current,Rr=Hu.get(Tl),Lu=Rr&&Rr.rect.current?{id:Rr.id,rect:Rr.rect.current,data:Rr.data,disabled:Rr.disabled}:null,Kt={active:Ks,activatorEvent:Ts,collisions:Fa,delta:{x:Ol.x,y:Ol.y},over:Lu};(0,Oe.unstable_batchedUpdates)(()=>{wc(Lu),El==null||El(Kt),$r({type:"onDragOver",event:Kt})})},[Tl]),(0,He.LI)(()=>{ml.current={activatorEvent:Oo,active:Ds,activeNode:ys,collisionRect:zl,collisions:xl,droppableRects:ha,draggableNodes:Cn,draggingNode:Au,draggingNodeRect:il,droppableContainers:es,over:pu,scrollableAncestors:yl,scrollAdjustedTranslate:gu},Ga.current={initial:il,translated:zl}},[Ds,ys,xl,zl,Cn,Au,il,ha,es,pu,yl,gu]),ar(tl(da({},Yi),{delta:ca,draggingRect:zl,pointerCoordinates:oc,scrollableAncestors:yl,scrollableAncestorRects:rl}));const os=(0,Se.useMemo)(()=>({active:Ds,activeNode:ys,activeNodeRect:ga,activatorEvent:Oo,collisions:xl,containerNodeRect:Is,dragOverlay:So,draggableNodes:Cn,droppableContainers:es,droppableRects:ha,over:pu,measureDroppableContainers:Na,scrollableAncestors:yl,scrollableAncestorRects:rl,measuringConfiguration:Vi,measuringScheduled:Bs,windowRect:fu}),[Ds,ys,ga,Oo,xl,Is,So,Cn,es,ha,pu,Na,yl,rl,Vi,Bs,fu]),hs=(0,Se.useMemo)(()=>({activatorEvent:Oo,activators:Ss,active:Ds,activeNodeRect:ga,ariaDescribedById:{draggable:ko},dispatch:qr,draggableNodes:Cn,over:pu,measureDroppableContainers:Na}),[Oo,Ss,Ds,ga,qr,ko,Cn,pu,Na]);return Se.createElement(Tt.Provider,{value:to},Se.createElement(xi.Provider,{value:hs},Se.createElement(Ni.Provider,{value:os},Se.createElement(Sr.Provider,{value:Xo},Oi)),Se.createElement(Gn,{disabled:(ai==null?void 0:ai.restoreFocus)===!1})),Se.createElement(wt,tl(da({},ai),{hiddenTextDescribedById:ko})));function Ls(){const Ks=(ma==null?void 0:ma.autoScrollEnabled)===!1,Ts=typeof qn=="object"?qn.enabled===!1:qn===!1,Fa=pa&&!Ks&&!Ts;return typeof qn=="object"?tl(da({},qn),{enabled:Fa}):{enabled:Fa}}}),rr=(0,Se.createContext)(null),Hi="button",Er="Draggable";function dr(pt){let{id:It,data:sn,disabled:Hn=!1,attributes:On}=pt;const Wt=(0,He.Ld)(Er),{activators:Nn,activatorEvent:ai,active:qn,activeNodeRect:Oi,ariaDescribedById:Bi,draggableNodes:pi,over:Gi}=(0,Se.useContext)(xi),{role:zn=Hi,roleDescription:_r="draggable",tabIndex:Gr=0}=On!=null?On:{},Ao=(qn==null?void 0:qn.id)===It,qr=(0,Se.useContext)(Ao?Sr:rr),[$r,to]=(0,He.wm)(),[$o,Qo]=(0,He.wm)(),pa=jn(Nn,It),qo=(0,He.Ey)(sn);(0,He.LI)(()=>(pi.set(It,{id:It,key:Wt,node:$r,activatorNode:$o,data:qo}),()=>{const ca=pi.get(It);ca&&ca.key===Wt&&pi.delete(It)}),[pi,It]);const Cn=(0,Se.useMemo)(()=>({role:zn,tabIndex:Gr,"aria-disabled":Hn,"aria-pressed":Ao&&zn===Hi?!0:void 0,"aria-roledescription":_r,"aria-describedby":Bi.draggable}),[Hn,zn,Gr,Ao,_r,Bi.draggable]);return{active:qn,activatorEvent:ai,activeNodeRect:Oi,attributes:Cn,isDragging:Ao,listeners:Hn?void 0:pa,node:$r,over:Gi,setNodeRef:to,setActivatorNodeRef:Qo,transform:qr}}function Nr(){return(0,Se.useContext)(Ni)}const Ti="Droppable",Qi={timeout:25};function er(pt){let{data:It,disabled:sn=!1,id:Hn,resizeObserverConfig:On}=pt;const Wt=(0,He.Ld)(Ti),{active:Nn,dispatch:ai,over:qn,measureDroppableContainers:Oi}=(0,Se.useContext)(xi),Bi=(0,Se.useRef)({disabled:sn}),pi=(0,Se.useRef)(!1),Gi=(0,Se.useRef)(null),zn=(0,Se.useRef)(null),{disabled:_r,updateMeasurementsFor:Gr,timeout:Ao}=da(da({},Qi),On),qr=(0,He.Ey)(Gr!=null?Gr:Hn),$r=(0,Se.useCallback)(()=>{if(!pi.current){pi.current=!0;return}zn.current!=null&&clearTimeout(zn.current),zn.current=setTimeout(()=>{Oi(Array.isArray(qr.current)?qr.current:[qr.current]),zn.current=null},Ao)},[Ao]),to=Pt({callback:$r,disabled:_r||!Nn}),$o=(0,Se.useCallback)((Cn,ca)=>{to&&(ca&&(to.unobserve(ca),pi.current=!1),Cn&&to.observe(Cn))},[to]),[Qo,pa]=(0,He.wm)($o),qo=(0,He.Ey)(It);return(0,Se.useEffect)(()=>{!to||!Qo.current||(to.disconnect(),pi.current=!1,to.observe(Qo.current))},[Qo,to]),(0,Se.useEffect)(()=>(ai({type:Me.RegisterDroppable,element:{id:Hn,key:Wt,disabled:sn,node:Qo,rect:Gi,data:qo}}),()=>ai({type:Me.UnregisterDroppable,key:Wt,id:Hn})),[Hn]),(0,Se.useEffect)(()=>{sn!==Bi.current.disabled&&(ai({type:Me.SetDroppableDisabled,id:Hn,key:Wt,disabled:sn}),Bi.current.disabled=sn)},[Hn,Wt,sn,ai]),{active:Nn,rect:Gi,isOver:(qn==null?void 0:qn.id)===Hn,node:Qo,over:qn,setNodeRef:pa}}function kn(pt){let{animation:It,children:sn}=pt;const[Hn,On]=useState(null),[Wt,Nn]=useState(null),ai=usePrevious(sn);return!sn&&!Hn&&ai&&On(ai),useIsomorphicLayoutEffect(()=>{if(!Wt)return;const qn=Hn==null?void 0:Hn.key,Oi=Hn==null?void 0:Hn.props.id;if(qn==null||Oi==null){On(null);return}Promise.resolve(It(Oi,Wt)).then(()=>{On(null)})},[It,Hn,Wt]),React.createElement(React.Fragment,null,sn,Hn?cloneElement(Hn,{ref:Nn}):null)}const Dr={x:0,y:0,scaleX:1,scaleY:1};function Ln(pt){let{children:It}=pt;return React.createElement(xi.Provider,{value:ti},React.createElement(Sr.Provider,{value:Dr},It))}const pr={position:"fixed",touchAction:"none"},Qr=pt=>isKeyboardEvent(pt)?"transform 250ms ease":void 0,vr=null,mr={duration:250,easing:"ease",keyframes:pt=>{let{transform:{initial:It,final:sn}}=pt;return[{transform:He.ux.Transform.toString(It)},{transform:He.ux.Transform.toString(sn)}]},sideEffects:(pt=>It=>{let{active:sn,dragOverlay:Hn}=It;const On={},{styles:Wt,className:Nn}=pt;if(Wt!=null&&Wt.active)for(const[ai,qn]of Object.entries(Wt.active))qn!==void 0&&(On[ai]=sn.node.style.getPropertyValue(ai),sn.node.style.setProperty(ai,qn));if(Wt!=null&&Wt.dragOverlay)for(const[ai,qn]of Object.entries(Wt.dragOverlay))qn!==void 0&&Hn.node.style.setProperty(ai,qn);return Nn!=null&&Nn.active&&sn.node.classList.add(Nn.active),Nn!=null&&Nn.dragOverlay&&Hn.node.classList.add(Nn.dragOverlay),function(){for(const[qn,Oi]of Object.entries(On))sn.node.style.setProperty(qn,Oi);Nn!=null&&Nn.active&&sn.node.classList.remove(Nn.active)}})({styles:{active:{opacity:"0"}}})};function hr(pt){let{config:It,draggableNodes:sn,droppableContainers:Hn,measuringConfiguration:On}=pt;return useEvent((Wt,Nn)=>{if(It===null)return;const ai=sn.get(Wt);if(!ai)return;const qn=ai.node.current;if(!qn)return;const Oi=Qn(Nn);if(!Oi)return;const{transform:Bi}=getWindow(Nn).getComputedStyle(Nn),pi=Qt(Bi);if(!pi)return;const Gi=typeof It=="function"?It:fr(It);return lt(qn,On.draggable.measure),Gi({active:{id:Wt,data:ai.data,node:qn,rect:On.draggable.measure(qn)},draggableNodes:sn,dragOverlay:{node:Nn,rect:On.dragOverlay.measure(Oi)},droppableContainers:Hn,measuringConfiguration:On,transform:pi})})}function fr(pt){const{duration:It,easing:sn,sideEffects:Hn,keyframes:On}=da(da({},mr),pt);return Wt=>{let $r=Wt,{active:Nn,dragOverlay:ai,transform:qn}=$r,Oi=ov($r,["active","dragOverlay","transform"]);if(!It)return;const Bi={x:ai.rect.left-Nn.rect.left,y:ai.rect.top-Nn.rect.top},pi={scaleX:qn.scaleX!==1?Nn.rect.width*qn.scaleX/ai.rect.width:1,scaleY:qn.scaleY!==1?Nn.rect.height*qn.scaleY/ai.rect.height:1},Gi=da({x:qn.x-Bi.x,y:qn.y-Bi.y},pi),zn=On(tl(da({},Oi),{active:Nn,dragOverlay:ai,transform:{initial:qn,final:Gi}})),[_r]=zn,Gr=zn[zn.length-1];if(JSON.stringify(_r)===JSON.stringify(Gr))return;const Ao=Hn==null?void 0:Hn(da({active:Nn,dragOverlay:ai},Oi)),qr=ai.node.animate(zn,{duration:It,easing:sn,fill:"forwards"});return new Promise(to=>{qr.onfinish=()=>{Ao==null||Ao(),to()}})}}let Vr=0;function Ii(pt){return useMemo(()=>{if(pt!=null)return Vr++,Vr},[pt])}const Qe=null},18257:function(Rn,Fn,ye){"use strict";ye.d(Fn,{DL:function(){return ke}});var Se=ye(35241);function Oe(et){return gt=>{let{transform:ct}=gt;return tl(da({},ct),{x:Math.ceil(ct.x/et)*et,y:Math.ceil(ct.y/et)*et})}}const He=et=>{let{transform:gt}=et;return tl(da({},gt),{y:0})};function Rt(et,gt,ct){const wt=da({},et);return gt.top+et.y<=ct.top?wt.y=ct.top-gt.top:gt.bottom+et.y>=ct.top+ct.height&&(wt.y=ct.top+ct.height-gt.bottom),gt.left+et.x<=ct.left?wt.x=ct.left-gt.left:gt.right+et.x>=ct.left+ct.width&&(wt.x=ct.left+ct.width-gt.right),wt}const _e=et=>{let{containerNodeRect:gt,draggingNodeRect:ct,transform:wt}=et;return!ct||!gt?wt:Rt(wt,ct,gt)},vt=et=>{let{draggingNodeRect:gt,transform:ct,scrollableAncestorRects:wt}=et;const Me=wt[0];return!gt||!Me?ct:Rt(ct,gt,Me)},ke=et=>{let{transform:gt}=et;return tl(da({},gt),{x:0})},Tt=et=>{let{transform:gt,draggingNodeRect:ct,windowRect:wt}=et;return!ct||!wt?gt:Rt(gt,ct,wt)},Lt=et=>{let{activatorEvent:gt,draggingNodeRect:ct,transform:wt}=et;if(ct&>){const Me=getEventCoordinates(gt);if(!Me)return wt;const te=Me.x-ct.left,ne=Me.y-ct.top;return tl(da({},wt),{x:wt.x+te-ct.width/2,y:wt.y+ne-ct.height/2})}return wt}},19719:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Fo:function(){return ve},Rp:function(){return Rt},nB:function(){return ht},qw:function(){return ne}});var Se=ye(59301),Oe=ye(87954),He=ye(35241);function Rt(Ot,Qt,dt){const Re=Ot.slice();return Re.splice(dt<0?Re.length+dt:dt,0,Re.splice(Qt,1)[0]),Re}function _e(Ot,Qt,dt){const Re=Ot.slice();return Re[Qt]=Ot[dt],Re[dt]=Ot[Qt],Re}function vt(Ot,Qt){return Ot.reduce((dt,Re,Mt)=>{const Pn=Qt.get(Re);return Pn&&(dt[Mt]=Pn),dt},Array(Ot.length))}function ke(Ot){return Ot!==null&&Ot>=0}function Tt(Ot,Qt){if(Ot===Qt)return!0;if(Ot.length!==Qt.length)return!1;for(let dt=0;dt<Ot.length;dt++)if(Ot[dt]!==Qt[dt])return!1;return!0}function Lt(Ot){return typeof Ot=="boolean"?{draggable:Ot,droppable:Ot}:Ot}const et={scaleX:1,scaleY:1},gt=Ot=>{var Qt;let{rects:dt,activeNodeRect:Re,activeIndex:Mt,overIndex:Pn,index:mn}=Ot;const kt=(Qt=dt[Mt])!=null?Qt:Re;if(!kt)return null;const _t=ct(dt,mn,Mt);if(mn===Mt){const ln=dt[Pn];return ln?da({x:Mt<Pn?ln.left+ln.width-(kt.left+kt.width):ln.left-kt.left,y:0},et):null}return mn>Mt&&mn<=Pn?da({x:-kt.width-_t,y:0},et):mn<Mt&&mn>=Pn?da({x:kt.width+_t,y:0},et):da({x:0,y:0},et)};function ct(Ot,Qt,dt){const Re=Ot[Qt],Mt=Ot[Qt-1],Pn=Ot[Qt+1];return!Re||!Mt&&!Pn?0:dt<Qt?Mt?Re.left-(Mt.left+Mt.width):Pn.left-(Re.left+Re.width):Pn?Pn.left-(Re.left+Re.width):Re.left-(Mt.left+Mt.width)}const wt=Ot=>{let{rects:Qt,activeIndex:dt,overIndex:Re,index:Mt}=Ot;const Pn=Rt(Qt,Re,dt),mn=Qt[Mt],kt=Pn[Mt];return!kt||!mn?null:{x:kt.left-mn.left,y:kt.top-mn.top,scaleX:kt.width/mn.width,scaleY:kt.height/mn.height}},Me=Ot=>{let{activeIndex:Qt,index:dt,rects:Re,overIndex:Mt}=Ot,Pn,mn;return dt===Qt&&(Pn=Re[dt],mn=Re[Mt]),dt===Mt&&(Pn=Re[dt],mn=Re[Qt]),!mn||!Pn?null:{x:mn.left-Pn.left,y:mn.top-Pn.top,scaleX:mn.width/Pn.width,scaleY:mn.height/Pn.height}},te={scaleX:1,scaleY:1},ne=Ot=>{var Qt;let{activeIndex:dt,activeNodeRect:Re,index:Mt,rects:Pn,overIndex:mn}=Ot;const kt=(Qt=Pn[dt])!=null?Qt:Re;if(!kt)return null;if(Mt===dt){const ln=Pn[mn];return ln?da({x:0,y:dt<mn?ln.top+ln.height-(kt.top+kt.height):ln.top-kt.top},te):null}const _t=ce(Pn,Mt,dt);return Mt>dt&&Mt<=mn?da({x:0,y:-kt.height-_t},te):Mt<dt&&Mt>=mn?da({x:0,y:kt.height+_t},te):da({x:0,y:0},te)};function ce(Ot,Qt,dt){const Re=Ot[Qt],Mt=Ot[Qt-1],Pn=Ot[Qt+1];return Re?dt<Qt?Mt?Re.top-(Mt.top+Mt.height):Pn?Pn.top-(Re.top+Re.height):0:Pn?Pn.top-(Re.top+Re.height):Mt?Re.top-(Mt.top+Mt.height):0:0}const se="Sortable",ge=Se.createContext({activeIndex:-1,containerId:se,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:wt,disabled:{draggable:!1,droppable:!1}});function ve(Ot){let{children:Qt,id:dt,items:Re,strategy:Mt=wt,disabled:Pn=!1}=Ot;const{active:mn,dragOverlay:kt,droppableRects:_t,over:ln,measureDroppableContainers:Bn}=(0,Oe.Cj)(),wn=(0,He.Ld)(se,dt),Kn=kt.rect!==null,yt=(0,Se.useMemo)(()=>Re.map(Gt=>typeof Gt=="object"&&"id"in Gt?Gt.id:Gt),[Re]),Jn=mn!=null,bn=mn?yt.indexOf(mn.id):-1,ci=ln?yt.indexOf(ln.id):-1,Tn=(0,Se.useRef)(yt),tn=!Tt(yt,Tn.current),$t=ci!==-1&&bn===-1||tn,ft=Lt(Pn);(0,He.LI)(()=>{tn&&Jn&&Bn(yt)},[tn,yt,Jn,Bn]),(0,Se.useEffect)(()=>{Tn.current=yt},[yt]);const Je=(0,Se.useMemo)(()=>({activeIndex:bn,containerId:wn,disabled:ft,disableTransforms:$t,items:yt,overIndex:ci,useDragOverlay:Kn,sortedRects:vt(yt,_t),strategy:Mt}),[bn,wn,ft.draggable,ft.droppable,$t,yt,ci,_t,Kn,Mt]);return Se.createElement(ge.Provider,{value:Je},Qt)}const be=Ot=>{let{id:Qt,items:dt,activeIndex:Re,overIndex:Mt}=Ot;return Rt(dt,Re,Mt).indexOf(Qt)},Fe=Ot=>{let{containerId:Qt,isSorting:dt,wasDragging:Re,index:Mt,items:Pn,newIndex:mn,previousItems:kt,previousContainerId:_t,transition:ln}=Ot;return!ln||!Re||kt!==Pn&&Mt===mn?!1:dt?!0:mn!==Mt&&Qt===_t},Pe={duration:200,easing:"ease"},Ie="transform",We=He.ux.Transition.toString({property:Ie,duration:0,easing:"linear"}),Ke={roleDescription:"sortable"};function Xe(Ot){let{disabled:Qt,index:dt,node:Re,rect:Mt}=Ot;const[Pn,mn]=(0,Se.useState)(null),kt=(0,Se.useRef)(dt);return(0,He.LI)(()=>{if(!Qt&&dt!==kt.current&&Re.current){const _t=Mt.current;if(_t){const ln=(0,Oe.VK)(Re.current,{ignoreTransform:!0}),Bn={x:_t.left-ln.left,y:_t.top-ln.top,scaleX:_t.width/ln.width,scaleY:_t.height/ln.height};(Bn.x||Bn.y)&&mn(Bn)}}dt!==kt.current&&(kt.current=dt)},[Qt,dt,Re,Mt]),(0,Se.useEffect)(()=>{Pn&&mn(null)},[Pn]),Pn}function ht(Ot){let{animateLayoutChanges:Qt=Fe,attributes:dt,disabled:Re,data:Mt,getNewIndex:Pn=be,id:mn,strategy:kt,resizeObserverConfig:_t,transition:ln=Pe}=Ot;const{items:Bn,containerId:wn,activeIndex:Kn,disabled:yt,disableTransforms:Jn,sortedRects:bn,overIndex:ci,useDragOverlay:Tn,strategy:tn}=(0,Se.useContext)(ge),$t=Ve(Re,yt),ft=Bn.indexOf(mn),Je=(0,Se.useMemo)(()=>da({sortable:{containerId:wn,index:ft,items:Bn}},Mt),[wn,Mt,ft,Bn]),Gt=(0,Se.useMemo)(()=>Bn.slice(Bn.indexOf(mn)),[Bn,mn]),{rect:At,node:lt,isOver:Ge,setNodeRef:Be}=(0,Oe.Zj)({id:mn,data:Je,disabled:$t.droppable,resizeObserverConfig:da({updateMeasurementsFor:Gt},_t)}),{active:we,activatorEvent:pe,activeNodeRect:De,attributes:ze,setNodeRef:Le,listeners:nt,isDragging:Ut,over:En,setActivatorNodeRef:rn,transform:vn}=(0,Oe.O1)({id:mn,data:Je,attributes:da(da({},Ke),dt),disabled:$t.draggable}),mi=(0,He.HB)(Be,Le),wi=!!we,Ri=wi&&!Jn&&ke(Kn)&&ke(ci),Wi=!Tn&&Ut,Mn=Wi&&Ri?vn:null,nr=kt!=null?kt:tn,Wr=Ri?Mn!=null?Mn:nr({rects:bn,activeNodeRect:De,activeIndex:Kn,overIndex:ci,index:ft}):null,Hr=ke(Kn)&&ke(ci)?Pn({id:mn,items:Bn,activeIndex:Kn,overIndex:ci}):ft,Tr=we==null?void 0:we.id,Fr=(0,Se.useRef)({activeId:Tr,items:Bn,newIndex:Hr,containerId:wn}),Yr=Bn!==Fr.current.items,Kr=Qt({active:we,containerId:wn,isDragging:Ut,isSorting:wi,id:mn,index:ft,items:Bn,newIndex:Fr.current.newIndex,previousItems:Fr.current.items,previousContainerId:Fr.current.containerId,transition:ln,wasDragging:Fr.current.activeId!=null}),ar=Xe({disabled:!Kr,index:ft,node:lt,rect:At});return(0,Se.useEffect)(()=>{wi&&Fr.current.newIndex!==Hr&&(Fr.current.newIndex=Hr),wn!==Fr.current.containerId&&(Fr.current.containerId=wn),Bn!==Fr.current.items&&(Fr.current.items=Bn)},[wi,Hr,wn,Bn]),(0,Se.useEffect)(()=>{if(Tr===Fr.current.activeId)return;if(Tr&&!Fr.current.activeId){Fr.current.activeId=Tr;return}const $n=setTimeout(()=>{Fr.current.activeId=Tr},50);return()=>clearTimeout($n)},[Tr]),{active:we,activeIndex:Kn,attributes:ze,data:Je,rect:At,index:ft,newIndex:Hr,items:Bn,isOver:Ge,isSorting:wi,isDragging:Ut,listeners:nt,node:lt,overIndex:ci,over:En,setNodeRef:mi,setActivatorNodeRef:rn,setDroppableNodeRef:Be,setDraggableNodeRef:Le,transform:ar!=null?ar:Wr,transition:Co()};function Co(){if(ar||Yr&&Fr.current.newIndex===ft)return We;if(!(Wi&&!(0,He.vd)(pe)||!ln)&&(wi||Kr))return He.ux.Transition.toString(tl(da({},ln),{property:Ie}))}}function Ve(Ot,Qt){var dt,Re;return typeof Ot=="boolean"?{draggable:Ot,droppable:!1}:{draggable:(dt=Ot==null?void 0:Ot.draggable)!=null?dt:Qt.draggable,droppable:(Re=Ot==null?void 0:Ot.droppable)!=null?Re:Qt.droppable}}function Nt(Ot){if(!Ot)return!1;const Qt=Ot.data.current;return!!(Qt&&"sortable"in Qt&&typeof Qt.sortable=="object"&&"containerId"in Qt.sortable&&"items"in Qt.sortable&&"index"in Qt.sortable)}const qe=[Oe.g4.Down,Oe.g4.Right,Oe.g4.Up,Oe.g4.Left],Ht=(Ot,Qt)=>{let{context:{active:dt,collisionRect:Re,droppableRects:Mt,droppableContainers:Pn,over:mn,scrollableAncestors:kt}}=Qt;if(qe.includes(Ot.code)){if(Ot.preventDefault(),!dt||!Re)return;const _t=[];Pn.getEnabled().forEach(wn=>{if(!wn||wn!=null&&wn.disabled)return;const Kn=Mt.get(wn.id);if(Kn)switch(Ot.code){case KeyboardCode.Down:Re.top<Kn.top&&_t.push(wn);break;case KeyboardCode.Up:Re.top>Kn.top&&_t.push(wn);break;case KeyboardCode.Left:Re.left>Kn.left&&_t.push(wn);break;case KeyboardCode.Right:Re.left<Kn.left&&_t.push(wn);break}});const ln=closestCorners({active:dt,collisionRect:Re,droppableRects:Mt,droppableContainers:_t,pointerCoordinates:null});let Bn=getFirstCollision(ln,"id");if(Bn===(mn==null?void 0:mn.id)&&ln.length>1&&(Bn=ln[1].id),Bn!=null){const wn=Pn.get(dt.id),Kn=Pn.get(Bn),yt=Kn?Mt.get(Kn.id):null,Jn=Kn==null?void 0:Kn.node.current;if(Jn&&yt&&wn&&Kn){const ci=getScrollableAncestors(Jn).some((Gt,At)=>kt[At]!==Gt),Tn=Zt(wn,Kn),tn=Yt(wn,Kn),$t=ci||!Tn?{x:0,y:0}:{x:tn?Re.width-yt.width:0,y:tn?Re.height-yt.height:0},ft={x:yt.left,y:yt.top};return $t.x&&$t.y?ft:subtract(ft,$t)}}}};function Zt(Ot,Qt){return!Nt(Ot)||!Nt(Qt)?!1:Ot.data.current.sortable.containerId===Qt.data.current.sortable.containerId}function Yt(Ot,Qt){return!Nt(Ot)||!Nt(Qt)||!Zt(Ot,Qt)?!1:Ot.data.current.sortable.index<Qt.data.current.sortable.index}},35241:function(Rn,Fn,ye){"use strict";ye.d(Fn,{$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 be},Jj:function(){return vt},LI:function(){return gt},Ld:function(){return ge},Nq:function(){return He},Re:function(){return Tt},UG:function(){return _e},Yz:function(){return wt},qk:function(){return ke},r3:function(){return et},so:function(){return Ve},ux:function(){return Xe},vZ:function(){return Lt},vd:function(){return Ie},wm:function(){return ne},zX:function(){return ct}});var Se=ye(59301);function Oe(){for(var Nt=arguments.length,qe=new Array(Nt),Ht=0;Ht<Nt;Ht++)qe[Ht]=arguments[Ht];return(0,Se.useMemo)(()=>Zt=>{qe.forEach(Yt=>Yt(Zt))},qe)}const He=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Rt(Nt){const qe=Object.prototype.toString.call(Nt);return qe==="[object Window]"||qe==="[object global]"}function _e(Nt){return"nodeType"in Nt}function vt(Nt){var qe,Ht;return Nt?Rt(Nt)?Nt:_e(Nt)&&(qe=(Ht=Nt.ownerDocument)==null?void 0:Ht.defaultView)!=null?qe:window:window}function ke(Nt){const{Document:qe}=vt(Nt);return Nt instanceof qe}function Tt(Nt){return Rt(Nt)?!1:Nt instanceof vt(Nt).HTMLElement}function Lt(Nt){return Nt instanceof vt(Nt).SVGElement}function et(Nt){return Nt?Rt(Nt)?Nt.document:_e(Nt)?ke(Nt)?Nt:Tt(Nt)||Lt(Nt)?Nt.ownerDocument:document:document:document}const gt=He?Se.useLayoutEffect:Se.useEffect;function ct(Nt){const qe=(0,Se.useRef)(Nt);return gt(()=>{qe.current=Nt}),(0,Se.useCallback)(function(){for(var Ht=arguments.length,Zt=new Array(Ht),Yt=0;Yt<Ht;Yt++)Zt[Yt]=arguments[Yt];return qe.current==null?void 0:qe.current(...Zt)},[])}function wt(){const Nt=(0,Se.useRef)(null),qe=(0,Se.useCallback)((Zt,Yt)=>{Nt.current=setInterval(Zt,Yt)},[]),Ht=(0,Se.useCallback)(()=>{Nt.current!==null&&(clearInterval(Nt.current),Nt.current=null)},[]);return[qe,Ht]}function Me(Nt,qe){qe===void 0&&(qe=[Nt]);const Ht=(0,Se.useRef)(Nt);return gt(()=>{Ht.current!==Nt&&(Ht.current=Nt)},qe),Ht}function te(Nt,qe){const Ht=(0,Se.useRef)();return(0,Se.useMemo)(()=>{const Zt=Nt(Ht.current);return Ht.current=Zt,Zt},[...qe])}function ne(Nt){const qe=ct(Nt),Ht=(0,Se.useRef)(null),Zt=(0,Se.useCallback)(Yt=>{Yt!==Ht.current&&(qe==null||qe(Yt,Ht.current)),Ht.current=Yt},[]);return[Ht,Zt]}function ce(Nt){const qe=(0,Se.useRef)();return(0,Se.useEffect)(()=>{qe.current=Nt},[Nt]),qe.current}let se={};function ge(Nt,qe){return(0,Se.useMemo)(()=>{if(qe)return qe;const Ht=se[Nt]==null?0:se[Nt]+1;return se[Nt]=Ht,Nt+"-"+Ht},[Nt,qe])}function ve(Nt){return function(qe){for(var Ht=arguments.length,Zt=new Array(Ht>1?Ht-1:0),Yt=1;Yt<Ht;Yt++)Zt[Yt-1]=arguments[Yt];return Zt.reduce((Ot,Qt)=>{const dt=Object.entries(Qt);for(const[Re,Mt]of dt){const Pn=Ot[Re];Pn!=null&&(Ot[Re]=Pn+Nt*Mt)}return Ot},da({},qe))}}const be=ve(1),Fe=ve(-1);function Pe(Nt){return"clientX"in Nt&&"clientY"in Nt}function Ie(Nt){if(!Nt)return!1;const{KeyboardEvent:qe}=vt(Nt.target);return qe&&Nt instanceof qe}function We(Nt){if(!Nt)return!1;const{TouchEvent:qe}=vt(Nt.target);return qe&&Nt instanceof qe}function Ke(Nt){if(We(Nt)){if(Nt.touches&&Nt.touches.length){const{clientX:qe,clientY:Ht}=Nt.touches[0];return{x:qe,y:Ht}}else if(Nt.changedTouches&&Nt.changedTouches.length){const{clientX:qe,clientY:Ht}=Nt.changedTouches[0];return{x:qe,y:Ht}}}return Pe(Nt)?{x:Nt.clientX,y:Nt.clientY}:null}const Xe=Object.freeze({Translate:{toString(Nt){if(!Nt)return;const{x:qe,y:Ht}=Nt;return"translate3d("+(qe?Math.round(qe):0)+"px, "+(Ht?Math.round(Ht):0)+"px, 0)"}},Scale:{toString(Nt){if(!Nt)return;const{scaleX:qe,scaleY:Ht}=Nt;return"scaleX("+qe+") scaleY("+Ht+")"}},Transform:{toString(Nt){if(Nt)return[Xe.Translate.toString(Nt),Xe.Scale.toString(Nt)].join(" ")}},Transition:{toString(Nt){let{property:qe,duration:Ht,easing:Zt}=Nt;return qe+" "+Ht+"ms "+Zt}}}),ht="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Ve(Nt){return Nt.matches(ht)?Nt:Nt.querySelector(ht)}},79906:function(){"use strict"},93938:function(Rn,Fn){"use strict";Fn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},57534:function(Rn,Fn){"use strict";Fn.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"}},49731:function(Rn,Fn,ye){"use strict";var Se=ye(59301),Oe=Object.defineProperty,He=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,vt=(Lt,et,gt)=>et in Lt?Oe(Lt,et,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Lt[et]=gt,ke=(Lt,et)=>{for(var gt in et||(et={}))Rt.call(et,gt)&&vt(Lt,gt,et[gt]);if(He)for(var gt of He(et))_e.call(et,gt)&&vt(Lt,gt,et[gt]);return Lt};const Tt=Lt=>React.createElement("svg",ke({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Lt),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"}));Fn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},11961:function(Rn,Fn,ye){"use strict";var Se=ye(59301),Oe=Object.defineProperty,He=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,vt=(Lt,et,gt)=>et in Lt?Oe(Lt,et,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Lt[et]=gt,ke=(Lt,et)=>{for(var gt in et||(et={}))Rt.call(et,gt)&&vt(Lt,gt,et[gt]);if(He)for(var gt of He(et))_e.call(et,gt)&&vt(Lt,gt,et[gt]);return Lt};const Tt=Lt=>React.createElement("svg",ke({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Lt),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"}));Fn.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},37404: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 Fn=[];function ye(Me,te){var ne=Fn.pop();return ne===void 0?new go.Point(Me,te):(ne.x=Me,ne.y=te,ne)}function Se(){var Me=Fn.pop();return Me===void 0?new go.Point:Me}function Oe(Me){Fn.push(Me)}function He(Me,te,ne,ce,se,ge,ve,be,Fe){Fe||(Fe=new go.Point);var Pe=Me-ne,Ie=se-ve,We=NaN,Ke=NaN;if(Pe===0)if(Ie===0)Me===ne&&(We=Me,Ke=te);else{var Xe=(ge-be)/Ie,ht=ge-Xe*se;We=Me,Ke=Xe*We+ht}else if(Ie===0){var Ve=(te-ce)/Pe,Nt=te-Ve*Me;We=se,Ke=Ve*We+Nt}else{var Ve=(te-ce)/Pe,Xe=(ge-be)/Ie,Nt=te-Ve*Me,ht=ge-Xe*se;We=(ht-Nt)/(Ve-Xe),Ke=Ve*We+Nt}return Fe.x=We,Fe.y=Ke,Fe}function Rt(Me,te,ne,ce,se,ge,ve,be,Fe,Pe,Ie,We,Ke,Xe){var ht=1-Fe,Ve=Fe,Nt=Me*ht+ne*Ve,qe=te*ht+ce*Ve,Ht=ne*ht+se*Ve,Zt=ce*ht+ge*Ve,Yt=se*ht+ve*Ve,Ot=ge*ht+be*Ve,Qt=Nt*ht+Ht*Ve,dt=qe*ht+Zt*Ve,Re=Ht*ht+Yt*Ve,Mt=Zt*ht+Ot*Ve,Pn=Qt*ht+Re*Ve,mn=dt*ht+Mt*Ve;Pe.x=Nt,Pe.y=qe,Ie.x=Qt,Ie.y=dt,We.x=Pn,We.y=mn,Ke.x=Re,Ke.y=Mt,Xe.x=Yt,Xe.y=Ot}var _e=new go.Spot(.156,.156),vt=new go.Spot(.844,.844),ke=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*ke,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=vt,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,ke*te,0,te,(1-ke)*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,ke*ne,(1-ke)*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,ke*ne,ke*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-ke)*te,0,0,(1-ke)*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 Lt(){var Me=Tt.pop();return Me===void 0?[]:Me}function et(Me){Me.length=0,Tt.push(Me)}function gt(Me){for(var te=Lt(),ne=.5,ce=.5,se=Math.PI*1.5,ge=0,ve=0;ve<Me;ve++)ge=2*Math.PI/Me*ve+se,te[ve]=new go.Point(ce+ne*Math.cos(ge),ce+ne*Math.sin(ge));return te.push(te[0]),te}function ct(Me){var te=wt(Me),ne=Lt();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 wt(Me){for(var te=gt(Me),ne=Lt(),ce=Math.floor(te.length/2),se=te.length-1,ge=Me%2===0?2:1,ve=0;ve<se;ve++){var be=te[ve],Fe=te[ve+1],Pe=te[(ce+ve-1)%se],Ie=te[(ce+ve+ge)%se];ne[ve*2]=be,ne[ve*2+1]=He(be.x,be.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=gt(5),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<5;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=gt(6),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<6;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=gt(7),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<7;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=gt(8),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<8;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=gt(9),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<9;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=gt(10),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<10;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=gt(12),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<12;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=wt(5),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<10;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=wt(6),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<12;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=wt(7),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<14;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=wt(8),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<16;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=wt(9),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<18;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=wt(10),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<20;ve++)ge.add(new go.PathSegment(go.PathSegment.Line,ce[ve].x*te,ce[ve].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=ct(5),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+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=ct(6),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+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=ct(7),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+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=ct(8),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+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=ct(9),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+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=ct(10),se=new go.Geometry,ge=new go.PathFigure(ce[0].x*te,ce[0].y*ne,!0);se.add(ge);for(var ve=1;ve<ce.length;ve+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,ce[ve+2].x*te,ce[ve+2].y*ne,ce[ve].x*te,ce[ve].y*ne,ce[ve+1].x*te,ce[ve+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,ve=new go.PathFigure(0,0,!0);return ge.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),ce<te/2&&se<ne/2&&(ve.add(new go.PathSegment(go.PathSegment.Move,ce,se)),ve.add(new go.PathSegment(go.PathSegment.Line,ce,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Line,te-ce,ne-se)),ve.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,ve=new go.PathFigure(te,te/2,!0);ge.add(ve),ve.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var be=Math.max(se-ce,0);return be>0&&(ve.add(new go.PathSegment(go.PathSegment.Move,te/2+be,te/2)),ve.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,be,be).close())),ge.spot1=_e,ge.spot2=vt,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 ve=se%360,be=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(be,be).add(new go.PathSegment(go.PathSegment.Arc,ge,ve,be,be,be,be).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Me,te,ne){var ce=ke/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,ve=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,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve+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,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve-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,ve=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,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve-se)).add(new go.PathSegment(go.PathSegment.Line,te,ve+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ve+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,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve+se)).add(new go.PathSegment(go.PathSegment.Line,0,ve-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ve-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,ve=ne/2,be=Math.atan2(ne,te),Fe=ce-Math.min(Math.cos(be)*ce/2,ge),Pe=ce-Math.min(Math.sin(be)*ce/2,ve),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,ve)),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,ve)),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,ke*te,0,te,(.5-ke/2)*ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne,te,(.5+ke/2)*ne,ke*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,ve=.3,be=0,Fe=ge*ke;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5+ge+be)*ne,(.5-ge+ve)*te,(.5+Fe+be)*ne,(.5-Fe+ve)*te,(.5+ge+be)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+ve)*te,(.5+be)*ne,(.5+Fe+ve)*te,(.5+ge+be)*ne,(.5+ge+ve)*te,(.5+Fe+be)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-ge+be)*ne,(1-.5+ge+ve)*te,(.5-Fe+be)*ne,(.5+Fe+ve)*te,(.5-ge+be)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-Fe+ve)*te,(.5-ge+be)*ne,(.5-ge+ve+.05)*te,(.5-Fe+be-.02)*ne)),ge=.2,ve=0,be=-.3,Fe=ge*ke,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+ve)*te,(.5+be)*ne,(.5+Fe+ve)*te,(.5+ge+be)*ne,(.5+ge+ve)*te,(.5+Fe+be)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-ge+be)*ne,(1-.5+ge+ve)*te,(.5-Fe+be)*ne,(.5+Fe+ve)*te,(.5-ge+be)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+ve)*te,(.5+be)*ne,(.5-Fe+ve)*te,(.5-ge+be)*ne,(.5-ge+ve)*te,(.5-Fe+be)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Fe+ve)*te,(.5+ge+be)*ne,(.5-ge+ve)*te,(.5+Fe+be)*ne,(.5-Fe+ve)*te,(.5+ge+be)*ne)),ge=.2,ve=-.3,be=0,Fe=ge*ke,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5-ge+be)*ne,(1-.5+ge+ve-.05)*te,(.5-Fe+be-.02)*ne,(.5+Fe+ve)*te,(.5-ge+be)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+ve)*te,(.5+be)*ne,(.5-Fe+ve)*te,(.5-ge+be)*ne,(.5-ge+ve)*te,(.5-Fe+be)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ve)*te,(.5+ge+be)*ne,(.5-ge+ve)*te,(.5+Fe+be)*ne,(.5-Fe+ve)*te,(.5+ge+be)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+Fe+ve)*te,(.5+ge+be)*ne,(.5+ge+ve)*te,(.5+Fe+be)*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,ve=.5,be=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(ve+ge)*te,be*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*ve,ne*be,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)),be=.75,se=new go.PathFigure((ve+ge)*te,be*ne,!0),ce.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*ve,ne*be,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=ke*.5,ge=.5,ve=.5,be=.5,Fe=new go.PathFigure(ve*te,(be-ge)*ne);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,be*ne,(ve-se)*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+ge)*ne,(ve-ge)*te,(be+se)*ne,(ve-se)*te,(be+ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,be*ne,(ve+se)*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-ge)*ne,(ve+ge)*te,(be-se)*ne,(ve+se)*te,(be-ge)*ne)),ge=.4,se=ke*.4;var Pe=Se(),Ie=Se(),We=Se(),Ke=Se();Rt(ve,be-ge,ve+se,be-ge,ve+ge,be-se,ve+ge,be,.42,Pe,Ie,We,Ke,Ke);var Xe=Se(),ht=Se(),Ve=Se();Rt(ve,be-ge,ve+se,be-ge,ve+ge,be-se,ve+ge,be,.58,Ke,Ke,Ve,Xe,ht);var Nt=Se(),qe=Se(),Ht=Se();Rt(ve,be+ge,ve-se,be+ge,ve-ge,be+se,ve-ge,be,.42,Nt,qe,Ht,Ke,Ke);var Zt=Se(),Yt=Se(),Ot=Se();return Rt(ve,be+ge,ve-se,be+ge,ve-ge,be+se,ve-ge,be,.58,Ke,Ke,Ot,Zt,Yt),Fe.add(new go.PathSegment(go.PathSegment.Move,Ot.x*te,Ot.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,be*ne,Zt.x*te,Zt.y*ne,Yt.x*te,Yt.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,We.x*te,We.y*ne,Pe.x*te,Pe.y*ne,Ie.x*te,Ie.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,Ot.x*te,Ot.y*ne).close()),Fe.add(new go.PathSegment(go.PathSegment.Move,Ht.x*te,Ht.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,Ve.x*te,Ve.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,be*ne,Xe.x*te,Xe.y*ne,ht.x*te,ht.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ht.x*te,Ht.y*ne,Nt.x*te,Nt.y*ne,qe.x*te,qe.y*ne).close()),Oe(Pe),Oe(Ie),Oe(We),Oe(Ke),Oe(Xe),Oe(ht),Oe(Ve),Oe(Nt),Oe(qe),Oe(Ht),Oe(Zt),Oe(Yt),Oe(Ot),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=ke*.4,ge=.4,ve=.5,be=.5,Fe=Se(),Pe=Se(),Ie=Se(),We=Se(),Ke=new go.PathFigure((ve-ge)*te,be*ne,!1);ce.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne)),Rt(ve,be-ge,ve+se,be-ge,ve+ge,be-se,ve+ge,be,.44,Ie,We,Pe,Fe,Fe),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*te,Pe.y*ne,Ie.x*te,Ie.y*ne,We.x*te,We.y*ne));var Xe=ye(Pe.x,Pe.y);Rt(ve,be-ge,ve+se,be-ge,ve+ge,be-se,ve+ge,be,.56,Fe,Fe,Pe,Ie,We);var ht=ye(Pe.x,Pe.y);Ke.add(new go.PathSegment(go.PathSegment.Line,(Xe.x*.1+.95*.9)*te,Xe.y*.1*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,.85*te,Xe.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,(ht.x*.1+.9)*te,.15*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,(ht.x*.1+.9)*te,(ht.y*.1+.05*.9)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Line,ht.x*te,ht.y*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,be*ne,Ie.x*te,Ie.y*ne,We.x*te,We.y*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,be*ne,(ve-se)*te,(be+ge)*ne,(ve-ge)*te,(be+se)*ne)),ge=.35,se=ke*.35;var Ve=new go.PathFigure(ve*te,(be-ge)*ne,!1);ce.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,be*ne,(ve-se)*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+ge)*ne,(ve-ge)*te,(be+se)*ne,(ve-se)*te,(be+ge)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,be*ne,(ve+se)*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-ge)*ne,(ve+ge)*te,(be-se)*ne,(ve+se)*te,(be-ge)*ne));var Nt=new go.PathFigure((ve-ge)*te,be*ne,!1);return ce.add(Nt),Oe(Fe),Oe(Pe),Oe(Ie),Oe(We),Oe(Xe),Oe(ht),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,ve=-.125,be=se*ke,Fe=new go.PathFigure((.525+ge)*te,(.5+se+ve)*ne,!1);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+ve)*ne,(.5+be+ge)*te,(.5+se+ve)*ne,(.5+se+ge)*te,(.5+be+ve)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+ve)*ne,(1-.5+se+ge)*te,(.5-be+ve)*ne,(.5+be+ge)*te,(.5-se+ve)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+ve)*ne,(.5-be+ge)*te,(.5-se+ve)*ne,(.5-se+ge)*te,(.5-be+ve)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*te,(.5+se+ve)*ne,(.5-se+ge)*te,(.5+be+ve)*ne,(.5-be+ge)*te,(.5+se+ve)*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,ve=-.125,be=se*ke;var Fe=new go.PathFigure((1-.5+se+ge)*te,(.5+ve)*ne,!1);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5+se+ve)*ne,(.5+se+ge)*te,(.5+be+ve)*ne,(.5+be+ge)*te,(.5+se+ve)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+ve)*ne,(.5-be+ge)*te,(.5+se+ve)*ne,(.5-se+ge)*te,(.5+be+ve)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+ve)*ne,(.5-se+ge)*te,(.5-be+ve)*ne,(.5-be+ge)*te,(.5-se+ve)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+ve)*ne,(.5+be+ge)*te,(.5-se+ve)*ne,(1-.5+se+ge)*te,(.5-be+ve)*ne));var Fe=new go.PathFigure((.525+ge)*te,(.5+se+ve)*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,ve=(.5-se/2)*ne,be=(.5+se/2)*ne,Fe=new go.Geometry,Pe=new go.PathFigure(0,ve,!0);Fe.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,ve)),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,be)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Fe.spot1=new go.Spot(0,ve/ne);var Ie=He(0,be/ne,1,be/ne,ge/te,1,1,.5,Se());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,ve=(ne-se)/2,be=ve+se,Fe=new go.Geometry,Pe=new go.PathFigure(0,ve,!0);Fe.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,ge,ve)),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,be)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,be).close()),Fe.spot1=new go.Spot(0,ve/ne);var Ie=He(0,be/ne,1,be/ne,ge/te,1,1,.5,Se());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,ve=new go.Geometry,be=new go.PathFigure(te,.5*ne,!0);ve.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),be.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Fe=He(0,.5,.3,0,0,se/ne,.1,se/ne,Se());return ve.spot1=new go.Spot(Fe.x,Fe.y),Fe=He(.7,1,1,.5,0,ge/ne,1,ge/ne,Fe),ve.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),ve}),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,ve=ge+ce,be=(ne-se)/2,Fe=be+se;(ce>ne||se>ne)&&(se>ce?(ce=ce*ne/se,ge=(ne-ce)/2,ve=ge+ce,be=0,Fe=ne):(ge=0,ve=ne,be=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,ve)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,ve)),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,be)),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,be).close());var We=He(0,.5,.3,be/ne,0,ge/ne,1,ge/ne,Se());return Pe.spot1=new go.Spot(We.x,We.y),We=He(.7,Fe/ne,1,.5,0,ve/ne,1,ve/ne,We),Pe.spot2=new go.Spot(We.x,We.y),Oe(We),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,ve=new go.Geometry,be=new go.PathFigure(te,.5*ne,!0);ve.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),be.add(new go.PathSegment(go.PathSegment.Line,0,ne)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(0,se/ne);var Fe=He(.7,1,1,.5,0,ge/ne,1,ge/ne,Se());return ve.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),ve}),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,ve=ge+ce,be=(ne-se)/2,Fe=be+se;(ce>ne||se>ne)&&(se>ce?(ce=ce*ne/se,ge=(ne-ce)/2,ve=ge+ce,be=0,Fe=ne):(ge=0,ve=ne,be=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,ve)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,ve)),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,be)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,be)),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,be).close()),Pe.spot1=new go.Spot(0,ge/ne);var We=He(.7,Fe/ne,1,.5,0,ve/ne,1,ve/ne,Se());return Pe.spot2=new go.Spot(We.x,We.y),Oe(We),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 ve=He(.2,.65,1,.65,0,1,1,.5,Se());return se.spot2=new go.Spot(ve.x,ve.y),Oe(ve),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 ve=He(0,.65,1,.65,0,1,1,.5,Se());return se.spot2=new go.Spot(ve.x,ve.y),Oe(ve),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,ve=new go.Geometry,be=new go.PathFigure(te,.5*ne,!0);ve.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),be.add(new go.PathSegment(go.PathSegment.Line,0,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),be.add(new go.PathSegment(go.PathSegment.Line,0,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(.2,.3);var Fe=He(.7,1,1,.5,0,ge/ne,1,ge/ne,Se());return ve.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),ve}),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 ve=new go.Geometry,be=new go.PathFigure(te,.5*ne,!0);ve.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),be.add(new go.PathSegment(go.PathSegment.Line,0,ge)),be.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),be.add(new go.PathSegment(go.PathSegment.Line,0,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),be.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),ve.spot1=new go.Spot(.2,se/ne);var Fe=He(.7,1,1,.5,0,ge/ne,1,ge/ne,Se());return ve.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),ve}),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=ke*.5,ge=ke*.1,ve=new go.PathFigure(0,.9*ne,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),ve.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=ke*.5,ve=new go.PathFigure(0,ce,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,ke*ce,(.5-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,1*te,ce,(.5+ge)*te,0,1*te,ke*ce)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-ce)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-ke*ce,(.5+ge)*te,1*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ce,(.5-ge)*te,1*ne,0,ne-ke*ce)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ce));var be=new go.PathFigure(te,ce,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*ce,1*te,2*ce-ke*ce,(.5+ge)*te,2*ce)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ce,(.5-ge)*te,2*ce,0,2*ce-ke*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=ke*.5,ve=new go.PathFigure(0,ne-ce,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,ce)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,ke*ce,(.5-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ce,(.5+ge)*te,0,te,ke*ce)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-ce)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-ke*ce,(.5+ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-ce,(.5-ge)*te,ne,0,ne-ke*ce));var be=new go.PathFigure(0,ne-ce,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*ce,0,ne-ce-ke*ce,(.5-ge)*te,ne-2*ce)),be.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-ce,(.5+ge)*te,ne-2*ce,te,ne-ce-ke*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=ke*.5,ve=new go.PathFigure(ce,0,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te-ce,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-ke*ce,0,te,(.5-ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te,(.5+ge)*ne,te-ke*ce,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,ce,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,ke*ce,ne,0,(.5+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,(.5-ge)*ne,ke*ce,0));var be=new go.PathFigure(ce,0,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,2*ce,.5*ne,ce+ke*ce,0,2*ce,(.5-ge)*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,ce,ne,2*ce,(.5+ge)*ne,ce+ke*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=ke*.5,ve=new go.PathFigure(te-ce,0,!0);se.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-ke*ce,0,te,(.5-ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te,(.5+ge)*ne,te-ke*ce,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,ce,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,ke*ce,ne,0,(.5+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,(.5-ge)*ne,ke*ce,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te-ce,0));var be=new go.PathFigure(te-ce,0,!1);return se.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,te-2*ce,.5*ne,te-ce-ke*ce,0,te-2*ce,(.5-ge)*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ne,te-2*ce,(.5+ge)*ne,te-ce-ke*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,ve=ke*se,be=ke*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-ve)*te,(Pe+ge)*ne,(Fe-se)*te,(Pe+be)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-ge)*ne,(Fe-se)*te,(Pe-be)*ne,(Fe-ve)*te,(Pe-ge)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+se)*te,Pe*ne,(Fe+ve)*te,(Pe-ge)*ne,(Fe+se)*te,(Pe-be)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe+ge)*ne,(Fe+se)*te,(Pe+be)*ne,(Fe+ve)*te,(Pe+ge)*ne));var We=.05,Ke=ke*We;Fe=.05,Pe=.25;var Xe=new go.PathFigure(.5*te,.2*ne,!0);return ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),Fe=.95,Pe=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+We)*te,Pe*ne,(Fe+Ke)*te,(Pe-We)*ne,(Fe+We)*te,(Pe-Ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,te,.6*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*te,.35*ne)),We=.025,Ke=ke*We,Fe=.825,Pe=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-We)*ne,(Fe+We)*te,(Pe-Ke)*ne,(Fe+Ke)*te,(Pe-We)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-We)*te,Pe*ne,(Fe-Ke)*te,(Pe-We)*ne,(Fe-We)*te,(Pe-Ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*te,ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne)),We=.05,Ke=ke*We,Fe=.5,Pe=.7,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-We)*ne,(Fe+We)*te,(Pe-Ke)*ne,(Fe+Ke)*te,(Pe-We)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-We)*te,Pe*ne,(Fe-Ke)*te,(Pe-We)*ne,(Fe-We)*te,(Pe-Ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.45*te,ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*te,.35*ne)),We=.025,Ke=ke*We,Fe=.175,Pe=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-We)*ne,(Fe+We)*te,(Pe-Ke)*ne,(Fe+Ke)*te,(Pe-We)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-We)*te,Pe*ne,(Fe-Ke)*te,(Pe-We)*ne,(Fe-We)*te,(Pe-Ke)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.15*te,.6*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,.25*ne)),We=.05,Ke=ke*We,Fe=.05,Pe=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-We)*ne,(Fe-We)*te,(Pe-Ke)*ne,(Fe-Ke)*te,(Pe-We)*ne)),Xe.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 ve=new go.PathFigure(0,se*ne,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),ve.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=ke*.5,ge=ke*.1,ve=new go.PathFigure(te,.1*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var be=new go.PathFigure(te,.1*ne,!1);return ce.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),be.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),be.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+ge)*ne,(.5+se)*te,.4*ne)),be.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=ke*.5,ge=ke*.1,ve=new go.PathFigure(te,.1*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var be=new go.PathFigure(te,.1*ne,!1);return ce.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),be.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),be.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=ke*.2,ve=new go.PathFigure(0,.2*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-ge)*ne,(.2-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+ge)*te,0,te,(.2-ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+ge)*ne,(.8+ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-ge)*te,ne,0,(.8+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var be=new go.PathFigure(0,se*ne,!1);return ce.add(be),be.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 ve=new go.PathFigure(0,se*ne,!1);return ce.add(ve),ve.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 ve=new go.PathFigure(se*te,0,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,0,se*ne)),ve.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ne)),ve.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 ve=new go.PathFigure(te,.5*ne,!1);return ce.add(ve),ve.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 ve=new go.PathFigure(0,0,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var be=new go.PathFigure(se*te,0,!1);return ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),be.add(new go.PathSegment(go.PathSegment.Move,0,ge*ne)),be.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,ve=ke*.5,be=.5,Fe=new go.PathFigure(te,be*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*te,ne,te,(be+ve)*ne,(be+ve)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,be*ne,(be-ve)*te,ne,0,(be+ve)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,be*te,0,0,(be-ve)*ne,(be-ve)*te,0)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te,be*ne,(be+ve)*te,0,te,(be-ve)*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=ke*.5,ge=.5,ve=new go.PathFigure(.5*te,ne,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*te,.9*ne,te,(ge+se)*ne,(ge+se)*te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.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,ve=new go.PathFigure(0,0,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var be=new go.PathFigure(.5*se*te,se*ne,!1);return ce.add(be),be.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=ke*.5,ge=.5,ve=new go.PathFigure(te,ge*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var be=new go.PathFigure(te,.5*ne,!1);return ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),be.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),be.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 ve=new go.PathFigure(0,0,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ve.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 ve=new go.PathFigure(0,0,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,ne)),ve.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 ve=new go.PathFigure((1-se)*te,0,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),ve.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 ve=new go.PathFigure(se*te,0,!1);return ce.add(ve),ve.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 ve=new go.PathFigure(se*te,0,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),ve.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=ke*.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=ke*.5,ge=.5,ve=new go.PathFigure(te,ge*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var be=new go.PathFigure(te,ge*ne,!1);ce.add(be),be.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=ke*.1,ge=.1,ve=.9,be=.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((ve+ge)*te,be*ne,!0);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,be*ne,(ve-se)*te,(be+ge)*ne,(ve-ge)*te,(be+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,be*ne,(ve+se)*te,(be-ge)*ne,(ve+ge)*te,(be-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=ke*.5,ge=ke*.4,ve=ke*.1,be=.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 We=new go.PathFigure((Fe+be)*te,Pe*ne,!0);return ce.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe+be)*ne,(Fe+be)*te,(Pe+ve)*ne,(Fe+ve)*te,(Pe+be)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be)*te,Pe*ne,(Fe-ve)*te,(Pe+be)*ne,(Fe-be)*te,(Pe+ve)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-be)*ne,(Fe-be)*te,(Pe-ve)*ne,(Fe-ve)*te,(Pe-be)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be)*te,Pe*ne,(Fe+ve)*te,(Pe-be)*ne,(Fe+be)*te,(Pe-ve)*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=ke*se,ve=0,be=.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,(be+ge)*ne,(ve+ge)*te,(be+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,(ve+ge)*te,(be-se)*ne,.7*te,(be-ge)*ne)),se=.1,ge=ke*.1,ve=.9,be=.5;var Pe=new go.PathFigure((ve-se)*te,be*ne,!0);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,be*ne,(ve+ge)*te,(be-se)*ne,(ve+se)*te,(be-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,be*ne,(ve-ge)*te,(be+se)*ne,(ve-se)*te,(be+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=ke*se,ve=0,be=.5,Fe=new go.PathFigure(0,0,!0);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(ve+ge+ge)*te,(be-se)*ne,.8*te,(be-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(be+ge)*ne,(ve+ge+ge)*te,(be+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=ke*se,ve=.2,be=.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,(be+ge)*ne,(ve+ge)*te,(be+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,(ve+ge)*te,(be-se)*ne,.7*te,(be-ge)*ne)),se=.1,ge=ke*.1,ve=.9,be=.5;var Ie=new go.PathFigure((ve-se)*te,be*ne,!0);return ce.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,be*ne,(ve+ge)*te,(be-se)*ne,(ve+se)*te,(be-ge)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,be*ne,(ve-ge)*te,(be+se)*ne,(ve-se)*te,(be+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=ke*se,ve=.2,be=.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,(ve+ge)*te,(be-se)*ne,.9*te,(be-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(be+ge)*ne,(ve+ge)*te,(be+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=ke*.1,ge=.1,ve=.1,be=.5,Fe=new go.PathFigure((ve-se*.5)*te,ne,!1);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.3,Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.5,Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.7,Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,0,(ve-se)*te,ne,(ve-ge)*te,0)),ve=.9,Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se*.5)*te,ne,(ve+ge)*te,0,(ve+se)*te,ne)),ce}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Me,te,ne){var ce=new go.Geometry,se=ke*.5,ge=.5,ve=.5,be=.5,Fe=new go.PathFigure((ve-ge)*te,be*ne,!1);return ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,be*ne,(ve+se)*te,(be-ge)*ne,(ve+ge)*te,(be-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,be*ne,(ve-se)*te,(be+ge)*ne,(ve-ge)*te,(be+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Move,(ve-ge+.1)*te,be*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge-.1)*te,be*ne,ve*te,(be-ge)*ne,ve*te,(be+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 ve=ke*.8,be=.8,Fe=0,Pe=.5,Ie=(se-te)/2,We=(ge-ne)/2,Ke=new go.PathFigure(Fe*te+Ie,(Pe+be)*ne+We,!0);ce.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be)*te+Ie,Pe*ne+We,(Fe-ve)*te+Ie,(Pe+be)*ne+We,(Fe-be)*te+Ie,(Pe+ve)*ne+We)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-be)*ne+We,(Fe-be)*te+Ie,(Pe-ve)*ne+We,(Fe-ve)*te+Ie,(Pe-be)*ne+We)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be+ve*.5)*te+Ie,Pe*ne+We,Fe*te+Ie,(Pe-be)*ne+We,(Fe-be+ve*.5)*te+Ie,(Pe-ve)*ne+We)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+be)*ne+We,(Fe-be+ve*.5)*te+Ie,(Pe+ve)*ne+We,Fe*te+Ie,(Pe+be)*ne+We).close()),ve=ke*.4,be=.4,Fe=.2,Pe=.5;var Xe=new go.PathFigure(Fe*te+Ie,(Pe+be)*ne+We,!0);ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be)*te+Ie,Pe*ne+We,(Fe-ve)*te+Ie,(Pe+be)*ne+We,(Fe-be)*te+Ie,(Pe+ve)*ne+We)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-be)*ne+We,(Fe-be)*te+Ie,(Pe-ve)*ne+We,(Fe-ve)*te+Ie,(Pe-be)*ne+We)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be+ve*.5)*te+Ie,Pe*ne+We,Fe*te+Ie,(Pe-be)*ne+We,(Fe-be+ve*.5)*te+Ie,(Pe-ve)*ne+We)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+be)*ne+We,(Fe-be+ve*.5)*te+Ie,(Pe+ve)*ne+We,Fe*te+Ie,(Pe+be)*ne+We).close()),ve=ke*.2,be=.2,Fe=.5,Pe=.5;var ht=new go.PathFigure((Fe-be)*te+Ie,Pe*ne+We,!0);ce.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-be)*ne+We,(Fe-be)*te+Ie,(Pe-ve)*ne+We,(Fe-ve)*te+Ie,(Pe-be)*ne+We)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be)*te+Ie,Pe*ne+We,(Fe+ve)*te+Ie,(Pe-be)*ne+We,(Fe+be)*te+Ie,(Pe-ve)*ne+We)),ht.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+be)*ne+We,(Fe+be)*te+Ie,(Pe+ve)*ne+We,(Fe+ve)*te+Ie,(Pe+be)*ne+We)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-be)*te+Ie,Pe*ne+We,(Fe-ve)*te+Ie,(Pe+be)*ne+We,(Fe-be)*te+Ie,(Pe+ve)*ne+We)),ve=ke*.4,be=.4,Fe=.8,Pe=.5;var Ve=new go.PathFigure(Fe*te+Ie,(Pe-be)*ne+We,!0);ce.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be)*te+Ie,Pe*ne+We,(Fe+ve)*te+Ie,(Pe-be)*ne+We,(Fe+be)*te+Ie,(Pe-ve)*ne+We)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+be)*ne+We,(Fe+be)*te+Ie,(Pe+ve)*ne+We,(Fe+ve)*te+Ie,(Pe+be)*ne+We)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be-ve*.5)*te+Ie,Pe*ne+We,Fe*te+Ie,(Pe+be)*ne+We,(Fe+be-ve*.5)*te+Ie,(Pe+ve)*ne+We)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-be)*ne+We,(Fe+be-ve*.5)*te+Ie,(Pe-ve)*ne+We,Fe*te+Ie,(Pe-be)*ne+We).close()),ve=ke*.8,be=.8,Fe=1,Pe=.5;var Nt=new go.PathFigure(Fe*te+Ie,(Pe-be)*ne+We,!0);return ce.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be)*te+Ie,Pe*ne+We,(Fe+ve)*te+Ie,(Pe-be)*ne+We,(Fe+be)*te+Ie,(Pe-ve)*ne+We)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe+be)*ne+We,(Fe+be)*te+Ie,(Pe+ve)*ne+We,(Fe+ve)*te+Ie,(Pe+be)*ne+We)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+be-ve*.5)*te+Ie,Pe*ne+We,Fe*te+Ie,(Pe+be)*ne+We,(Fe+be-ve*.5)*te+Ie,(Pe+ve)*ne+We)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Pe-be)*ne+We,(Fe+be-ve*.5)*te+Ie,(Pe-ve)*ne+We,Fe*te+Ie,(Pe-be)*ne+We).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 ve=new go.PathFigure(.6*te,ne,!0,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var be=new go.PathFigure(0,.5*ne,!1);return ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),be.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),be.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),be.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),be.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),be.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),be.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=ke*.4,ge=.4,ve=.5,be=.5,Fe=Se(),Pe=Se(),Ie=Se(),We=Se();Rt(ve,be-ge,ve+se,be-ge,ve+ge,be-se,ve+ge,be,.5,Fe,Fe,Pe,Ie,We);var Ke=ye(Pe.x,Pe.y),Xe=new go.PathFigure(Pe.x*te,Pe.y*ne,!0);ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,be*ne,Ie.x*te,Ie.y*ne,We.x*te,We.y*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,be*ne,(ve-se)*te,(be+ge)*ne,(ve-ge)*te,(be+se)*ne)),Rt(ve-ge,be,ve-ge,be-se,ve-se,be-ge,ve,be-ge,.5,Ie,We,Pe,Fe,Fe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*te,Pe.y*ne,Ie.x*te,Ie.y*ne,We.x*te,We.y*ne)),se=ke*.3,ge=.3,Rt(ve-ge,be,ve-ge,be-se,ve-se,be-ge,ve,be-ge,.5,Ie,We,Pe,Fe,Fe),Xe.add(new go.PathSegment(go.PathSegment.Line,Pe.x*te,Pe.y*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ge)*te,be*ne,We.x*te,We.y*ne,Ie.x*te,Ie.y*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+ge)*ne,(ve-ge)*te,(be+se)*ne,(ve-se)*te,(be+ge)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ge)*te,be*ne,(ve+se)*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne)),Rt(ve,be-ge,ve+se,be-ge,ve+ge,be-se,ve+ge,be,.5,Fe,Fe,Pe,Ie,We),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*te,Pe.y*ne,We.x*te,We.y*ne,Ie.x*te,Ie.y*ne).close());var Xe=new go.PathFigure(.45*te,0,!0);return ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.45*te,.5*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,.5*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*te,0).close()),Oe(Fe),Oe(Pe),Oe(Ie),Oe(We),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(ve,be,Fe){ve.add(new go.PathSegment(go.PathSegment.Move,(.3+be)*te,(.8+Fe)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(.5+be)*te,(.5+Fe)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(.1+be)*te,(.5+Fe)*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,(.3+be)*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,ve=0,be=se*ke,Fe=.4*Math.SQRT2/2+.5,Pe=.5-.5*Math.SQRT2/2,Ie=1,We=.5,Ke=.5,Xe=0,ht=new go.PathFigure(Fe*te,(1-Pe)*ne,!1);return ce.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,We*ne,Ie*te,.7*ne,Ie*te,We*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+ge)*te,(Xe+ge)*ne,(.5+se+ge)*te,(.5-be+ge)*ne,(.5+be+ge)*te,(.5-se+ge)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+ve)*ne,(.5-be+ge)*te,(.5-se+ve)*ne,(.5-se+ge)*te,(.5-be+ve)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*te,.9*ne,(.5-se+ge)*te,(.5+be+ve)*ne,(.5-be+ge)*te,.9*ne)),ht.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*te,.8*ne)),ht.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*te,.9*ne)),ht.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 ve=new go.PathFigure(0,.5*ne,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),ve.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 ve=.5-.285,be=.5,Fe=ve,Pe=Math.PI/4,Ie=4*(1-Math.cos(Pe))/(3*Math.sin(Pe)),We=Ie*.5,Ke=ve,Xe=ve,ht=Ie*Ke,Ve=Ie*Xe;ge.add(new go.PathSegment(go.PathSegment.Bezier,(be-Ke)*te,Fe*ne,(be-(ht+Ke)/2)*te,(Fe+(Xe+Ve)/2)*ne,(be-Ke)*te,(Fe+Ve)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,be*te,(Fe-Xe)*ne,(be-Ke)*te,(Fe-Ve)*ne,(be-ht)*te,(Fe-Xe)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(be+Ke)*te,Fe*ne,(be+ht)*te,(Fe-Xe)*ne,(be+Ke)*te,(Fe-Ve)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(be+Ke)*te,(Fe+Ve)*ne,(be+(ht+Ke)/2)*te,(Fe+(Xe+Ve)/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 Nt=new go.PathFigure(.2*te,ne,!1);ce.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var qe=new go.PathFigure(.8*te,ne,!1);return ce.add(qe),qe.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 ve=new go.PathFigure(.1*te,ne,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),ve.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 ve=new go.PathFigure(.675*te,.575*ne,!1);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),ve.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),ve.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=ke*.5,ve=new go.PathFigure(te,se*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ne,te,(se+ge)*ne,(se+ge)*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ne,(se-ge)*te,ne,0,(se+ge)*ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-ge)*ne,(se-ge)*te,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ne,(se+ge)*te,0,te,(se-ge)*ne));var be=new go.PathFigure(se*te,0,!1);return ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),be.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),be.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),be.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),be.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),be.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),be.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),be.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),be.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),be.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),be.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 ve=new go.PathFigure(0,.5*ne,!1);return ce.add(ve),ve.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 ve=new go.PathFigure(0,.6*ne,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ve.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 ve=.1,be=ke*.1,Fe=.2,Pe=.9,Ie=new go.PathFigure((Fe-ve)*te,Pe*ne,!0);ce.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-ve)*ne,(Fe-ve)*te,(Pe-be)*ne,(Fe-be)*te,(Pe-ve)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+ve)*te,Pe*ne,(Fe+be)*te,(Pe-ve)*ne,(Fe+ve)*te,(Pe-be)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe+ve)*ne,(Fe+ve)*te,(Pe+be)*ne,(Fe+be)*te,(Pe+ve)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-ve)*te,Pe*ne,(Fe-be)*te,(Pe+ve)*ne,(Fe-ve)*te,(Pe+be)*ne).close()),ve=.1,be=ke*.1,Fe=.8,Pe=.9;var We=new go.PathFigure((Fe-ve)*te,Pe*ne,!0);return ce.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe-ve)*ne,(Fe-ve)*te,(Pe-be)*ne,(Fe-be)*te,(Pe-ve)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+ve)*te,Pe*ne,(Fe+be)*te,(Pe-ve)*ne,(Fe+ve)*te,(Pe-be)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Pe+ve)*ne,(Fe+ve)*te,(Pe+be)*ne,(Fe+be)*te,(Pe+ve)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-ve)*te,Pe*ne,(Fe-be)*te,(Pe+ve)*ne,(Fe-ve)*te,(Pe+be)*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 ve=new go.PathFigure(.5*te,.8*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var be=new go.PathFigure(.5*te,.7*ne,!1);ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var Fe=.1,Pe=ke*.1,Ie=.1,We=.9,Ke=new go.PathFigure((Ie-Fe)*te,We*ne,!0);ce.add(Ke),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(We-Fe)*ne,(Ie-Fe)*te,(We-Pe)*ne,(Ie-Pe)*te,(We-Fe)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Fe)*te,We*ne,(Ie+Pe)*te,(We-Fe)*ne,(Ie+Fe)*te,(We-Pe)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(We+Fe)*ne,(Ie+Fe)*te,(We+Pe)*ne,(Ie+Pe)*te,(We+Fe)*ne)),Ke.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Fe)*te,We*ne,(Ie-Pe)*te,(We+Fe)*ne,(Ie-Fe)*te,(We+Pe)*ne)),Fe=.1,Pe=ke*.1,Ie=.4,We=.9;var Xe=new go.PathFigure((Ie-Fe)*te,We*ne,!0);return ce.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(We-Fe)*ne,(Ie-Fe)*te,(We-Pe)*ne,(Ie-Pe)*te,(We-Fe)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Fe)*te,We*ne,(Ie+Pe)*te,(We-Fe)*ne,(Ie+Fe)*te,(We-Pe)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(We+Fe)*ne,(Ie+Fe)*te,(We+Pe)*ne,(Ie+Pe)*te,(We+Fe)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Fe)*te,We*ne,(Ie-Pe)*te,(We+Fe)*ne,(Ie-Fe)*te,(We+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 ve=new go.PathFigure(.55*te,.4*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var Ie=.05,We=ke*.05,Ke=.175,Xe=.95,be=new go.PathFigure((Ke-Ie)*te,Xe*ne,!0);ce.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Xe-Ie)*ne,(Ke-Ie)*te,(Xe-We)*ne,(Ke-We)*te,(Xe-Ie)*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Ie)*te,Xe*ne,(Ke+We)*te,(Xe-Ie)*ne,(Ke+Ie)*te,(Xe-We)*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Xe+Ie)*ne,(Ke+Ie)*te,(Xe+We)*ne,(Ke+We)*te,(Xe+Ie)*ne)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Ie)*te,Xe*ne,(Ke-We)*te,(Xe+Ie)*ne,(Ke-Ie)*te,(Xe+We)*ne));var Ie=.05,We=ke*.05,Ke=.375,Xe=.95,Fe=new go.PathFigure((Ke-Ie)*te,Xe*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Xe-Ie)*ne,(Ke-Ie)*te,(Xe-We)*ne,(Ke-We)*te,(Xe-Ie)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Ie)*te,Xe*ne,(Ke+We)*te,(Xe-Ie)*ne,(Ke+Ie)*te,(Xe-We)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Xe+Ie)*ne,(Ke+Ie)*te,(Xe+We)*ne,(Ke+We)*te,(Xe+Ie)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Ie)*te,Xe*ne,(Ke-We)*te,(Xe+Ie)*ne,(Ke-Ie)*te,(Xe+We)*ne));var Ie=.05,We=ke*.05,Ke=.625,Xe=.95,Pe=new go.PathFigure((Ke-Ie)*te,Xe*ne,!0);ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Xe-Ie)*ne,(Ke-Ie)*te,(Xe-We)*ne,(Ke-We)*te,(Xe-Ie)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Ie)*te,Xe*ne,(Ke+We)*te,(Xe-Ie)*ne,(Ke+Ie)*te,(Xe-We)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Xe+Ie)*ne,(Ke+Ie)*te,(Xe+We)*ne,(Ke+We)*te,(Xe+Ie)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Ie)*te,Xe*ne,(Ke-We)*te,(Xe+Ie)*ne,(Ke-Ie)*te,(Xe+We)*ne));var Ie=.05,We=ke*.05,Ke=.825,Xe=.95,ht=new go.PathFigure((Ke-Ie)*te,Xe*ne,!0);ce.add(ht),ht.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Xe-Ie)*ne,(Ke-Ie)*te,(Xe-We)*ne,(Ke-We)*te,(Xe-Ie)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ke+Ie)*te,Xe*ne,(Ke+We)*te,(Xe-Ie)*ne,(Ke+Ie)*te,(Xe-We)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,Ke*te,(Xe+Ie)*ne,(Ke+Ie)*te,(Xe+We)*ne,(Ke+We)*te,(Xe+Ie)*ne)),ht.add(new go.PathSegment(go.PathSegment.Bezier,(Ke-Ie)*te,Xe*ne,(Ke-We)*te,(Xe+Ie)*ne,(Ke-Ie)*te,(Xe+We)*ne).close());var Ve=new go.PathFigure(0,ne,!1);return ce.add(Ve),Ve.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 ve=new go.PathFigure(.15*te,ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var be=.05,Fe=ke*.05,Pe=.35,Ie=.775,We=new go.PathFigure((Pe-be)*te,Ie*ne,!0);return ce.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ie-be)*ne,(Pe-be)*te,(Ie-Fe)*ne,(Pe-Fe)*te,(Ie-be)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+be)*te,Ie*ne,(Pe+Fe)*te,(Ie-be)*ne,(Pe+be)*te,(Ie-Fe)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,Pe*te,(Ie+be)*ne,(Pe+be)*te,(Ie+Fe)*ne,(Pe+Fe)*te,(Ie+be)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-be)*te,Ie*ne,(Pe-Fe)*te,(Ie+be)*ne,(Pe-be)*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=ke*.3,ve=.5,be=.7,Fe=new go.PathFigure((ve-se)*te,be*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,be*ne,(ve+ge)*te,(be-se)*ne,(ve+se)*te,(be-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,be*ne,(ve-ge)*te,(be+se)*ne,(ve-se)*te,(be+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=ke*.5,ve=.5,be=.5,Fe=new go.PathFigure((ve-se)*te,be*ne,!0);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,be*ne,(ve+ge)*te,(be-se)*ne,(ve+se)*te,(be-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,be*ne,(ve-ge)*te,(be+se)*ne,(ve-se)*te,(be+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=ke*.5,ve=.5,be=.5,Fe=new go.PathFigure((ve-se)*te,be*ne,!1);ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,be*ne,(ve+ge)*te,(be-se)*ne,(ve+se)*te,(be-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,be*ne,(ve-ge)*te,(be+se)*ne,(ve-se)*te,(be+ge)*ne).close()),se=.05,ge=ke*.05,ve=.5,be=.8;var Pe=new go.PathFigure((ve-se)*te,be*ne,!1);return ce.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be-se)*ne,(ve-se)*te,(be-ge)*ne,(ve-ge)*te,(be-se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve+se)*te,be*ne,(ve+ge)*te,(be-se)*ne,(ve+se)*te,(be-ge)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ve*te,(be+se)*ne,(ve+se)*te,(be+ge)*ne,(ve+ge)*te,(be+se)*ne)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ve-se)*te,be*ne,(ve-ge)*te,(be+se)*ne,(ve-se)*te,(be+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 ve=new go.PathFigure(.402*te,.85*ne,!1);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),ve.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var be=new go.PathFigure(.678*te,.85*ne,!1);ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),be.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),be.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 ve=new go.PathFigure(te*.408,ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),ve.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),ve.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var be=new go.PathFigure(te*.612,ne,!0);ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),be.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),be.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 ve=new go.PathFigure(te*.055,.13*ne,!0);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var be=new go.PathFigure(te*.055,.18*ne,!0);ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),be.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),be.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 ve=new go.PathFigure(te*.11,ne*.1,!1);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),ve.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var be=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),be.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),be.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*ke,ve=new go.PathFigure(se,0,!1);ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,se,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),ve.add(new go.PathSegment(go.PathSegment.Line,0,se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var be=new go.PathFigure(te*.83,0,!1);ce.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),be.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),be.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*ke,ge=ne*.8,ve=new go.Geometry,be=new go.PathFigure(ce,0,!0);return ve.add(be),be.add(new go.PathSegment(go.PathSegment.Line,te-ce,0)),be.add(new go.PathSegment(go.PathSegment.Bezier,te,ce,te-se,0,te,se)),be.add(new go.PathSegment(go.PathSegment.Line,te,ge-ce)),be.add(new go.PathSegment(go.PathSegment.Bezier,te-ce,ge,te,ge-se,te-se,ge)),be.add(new go.PathSegment(go.PathSegment.Line,te*.7,ge)),be.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),be.add(new go.PathSegment(go.PathSegment.Line,te*.55,ge)),be.add(new go.PathSegment(go.PathSegment.Line,ce,ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-ce,se,ge,0,ge-se)),be.add(new go.PathSegment(go.PathSegment.Line,0,ce)),be.add(new go.PathSegment(go.PathSegment.Bezier,ce,0,0,se,se,0).close()),se>1?(ve.spot1=new go.Spot(0,0,se,se),ve.spot2=new go.Spot(1,.8,-se,-se)):(ve.spot1=go.Spot.TopLeft,ve.spot2=new go.Spot(1,.8)),ve}),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 ve=new go.PathFigure(te*.28,ne*.37,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),ve.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*ke,ve=new go.PathFigure(te*.62,ne*.475,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),ve.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),ve.add(new go.PathSegment(go.PathSegment.Line,se,ne)),ve.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),ve.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 ve=new go.PathFigure(te*.4,ne*0,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),ve.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),ve.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 ve=new go.PathFigure(te*.5,ne*0,!0);return ce.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),ve.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),ve.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")},98598: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={},Fn="5.0",ye={},Se=null,Oe=!1,He=!1,Rt=null,_e=!1,vt=null,ke=null,Tt=0;Tt<arguments.length;Tt++){var Lt=arguments[Tt];if(Lt!==null)switch(typeof Lt){case"number":Fn=Lt.toFixed(1);break;case"string":Lt.match(new RegExp("^[0-9]\\.[0-9]+$"))?Fn=Lt:Rt=Lt;break;case"object":typeof Lt.is3D!="undefined"?Se=Lt:ye=Lt;break;case"boolean":Oe=Lt,He=!0;break}}Se===null&&(Se={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ye.material_id!==void 0&&!He&&(Oe=!0)),Rt!==null&&ye.id===void 0&&(ye.id=Rt);var et="",gt="",ct=!1,wt=null,Me=null,te=null,ne=!1,ce=null,se=null,ge=null,ve=null,be=null;ye.height!==void 0&&(ye.height=Math.round(ye.height)),ye.width!==void 0&&(ye.width=Math.round(ye.width));var Fe=function(kt){return parseFloat(kt)>4?parseFloat(kt):5};Rn.setHTML5Codebase=function(kt,_t){ke=kt,Mt(kt,_t)},Rn.setJavaCodebase=Rn.setJavaCodebaseVersion=Rn.isCompiledInstalled=Rn.setPreCompiledScriptPath=Rn.setPreCompiledResourcePath=function(){},Rn.setHTML5CodebaseVersion=function(kt,_t){var ln=parseFloat(kt);if(ln!==NaN&&ln<5){console.log("The GeoGebra HTML5 codebase version "+ln+" is deprecated. Using version latest instead.");return}vt=kt,Re(kt,_t)},Rn.getHTML5CodebaseVersion=function(){return Me},Rn.getParameters=function(){return ye},Rn.setFontsCSSURL=function(kt){ve=kt},Rn.setGiacJSURL=function(kt){},Rn.setJNLPFile=function(kt){et=kt},Rn.setJNLPBaseDir=function(kt){},Rn.inject=function(){function kt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var _t="auto",ln=ye.id,Bn,wn=!1,Kn=0;Kn<arguments.length;Kn++){var yt=arguments[Kn];typeof yt=="string"?(yt=yt.toLowerCase(),yt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?_t=yt:ln=arguments[Kn]):typeof yt=="boolean"?wn=yt:yt instanceof HTMLElement&&(Bn=yt)}Jn();function Jn(){if(!_e){setTimeout(Jn,200);return}_t=Qt(_t);var bn=Bn||document.getElementById(ln);if(!bn){console.log("possibly bug on ajax loading? ");return}if(Rn.removeExistingApplet(bn,!1),ye.width===void 0&&bn.clientWidth&&(ye.width=bn.clientWidth),ye.height===void 0&&bn.clientHeight&&(ye.height=bn.clientHeight),!(ye.width&&ye.height)&&_t==="html5"&&(delete ye.width,delete ye.height),wt=_t,_t==="screenshot")qe(bn,ye);else{var ci=!1;ye.hasOwnProperty("playButton")&&ye.playButton||ye.hasOwnProperty("clickToLoad")&&ye.clickToLoad?ci=!0:ye.hasOwnProperty("playButtonAutoDecide")&&ye.playButtonAutoDecide&&(ci=(!Pe()||kt())&&Ie()),ci?(wt="screenshot",Zt(bn,ye,wn,_t)):Nt(bn,ye,wn)}}};function Pe(){try{return window.self!==window.top}catch(kt){return!0}}function Ie(){return ye.hasOwnProperty("screenshotGenerator")&&ye.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Rn.getViews=function(){return Se},Rn.isJavaInstalled=function(){return!1};var We=function(kt){var _t=function(Kn){var yt=JSON.parse(Kn),Jn=function(Tn){return Tn.type=="G"||Tn.type=="E"},bn=yt.elements?yt.elements.filter(Jn)[0]:yt;if(!bn||!bn.url){ln();return}ye.fileName=bn.url,Ke(bn.settings||{}),Se.is3D=!0;var ci="https://www.geogebra.org/images/";Rn.setPreviewImage(ce||bn.previewUrl,ci+"GeoGebra_loading.png",ci+"applet_play.png"),kt()},ln=function(){ye.onError&&ye.onError(),Pn("Error: Fetching material (id "+ye.material_id+") failed.",ye)},Bn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",wn="/materials/"+ye.material_id+"?scope=basic";Xe("https://"+Bn+"/api/proxy.php?path="+encodeURIComponent(wn),_t,ln)};function Ke(kt){var _t=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ln){kt[ln]=!!kt[ln]}),_t.forEach(function(ln){ye[ln]===void 0&&kt[ln]!==void 0&&(ye[ln]=kt[ln])}),ye.showToolBarHelp===void 0&&(ye.showToolBarHelp=ye.showToolBar)}function Xe(kt,_t,ln){var Bn=new XMLHttpRequest;Bn.open("GET",kt),Bn.onload=function(){_t(Bn.responseText)},Bn.onerror=ln,Bn.send()}Rn.isHTML5Installed=function(){return!0},Rn.getLoadedAppletType=function(){return wt},Rn.setPreviewImage=function(kt,_t,ln){ce=kt,se=_t,ge=ln},Rn.removeExistingApplet=function(kt,_t){var ln;typeof kt=="string"&&(kt=document.getElementById(kt)),wt=null;var Bn=null;for(ln=0;ln<kt.childNodes.length;ln++){var wn=kt.childNodes[ln],Kn=wn.className;Kn==="applet_screenshot"?_t?(wn.style.display="block",wt="screenshot"):wn.style.display="none":Kn!=="applet_scaler prerender"&&(kt.removeChild(wn),Bn=Kn&&Kn.indexOf("appletParameters")!=-1?wn.id:null,ln--)}var yt=ye.id!==void 0?ye.id:Bn,Jn=window[yt];Jn&&typeof Jn.getBase64=="function"&&(Jn.remove(),window[yt]=null)},Rn.refreshHitPoints=function(){if(Fe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var kt=Rn.getAppletObject();return kt&&typeof kt.recalculateEnvironments=="function"?(kt.recalculateEnvironments(),!0):!1},Rn.startAnimation=function(){var kt=Rn.getAppletObject();return kt&&typeof kt.startAnimation=="function"?(kt.startAnimation(),!0):!1},Rn.stopAnimation=function(){var kt=Rn.getAppletObject();return kt&&typeof kt.stopAnimation=="function"?(kt.stopAnimation(),!0):!1},Rn.getAppletObject=function(){var kt=ye.id!==void 0?ye.id:"ggbApplet";return window[kt]},Rn.resize=function(){};var ht=function(kt,_t,ln){var Bn=document.createElement("param");Bn.setAttribute("name",_t),Bn.setAttribute("value",ln),kt.appendChild(Bn)},Ve=function(kt){return kt&&kt!=="false"},Nt=function(kt,_t,ln){Fe(Me)<=4.2&&(ln=!0);var Bn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Me||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(Bn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var wn=document.createElement("div");wn.classList.add("appletParameters","notranslate");var Kn=_t.width,yt=_t.height;if(_t.disableAutoScale=_t.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():_t.disableAutoScale,_t.width!==void 0)if(Fe(Me)<=4.4)Ve(_t.showToolBar)&&(_t.height-=7),Ve(_t.showAlgebraInput)&&(_t.height-=37),_t.width<605&&Ve(_t.showToolBar)&&(_t.width=605,Kn=605);else{var Jn=100;(Ve(_t.showToolBar)||Ve(_t.showMenuBar))&&(_t.hasOwnProperty("customToolBar")&&(_t.customToolbar=_t.customToolBar),Jn=Ve(_t.showMenuBar)?245:155),Kn<Jn&&(_t.width=Jn,Kn=Jn)}wn.style.border="none",wn.style.display="inline-block";for(var bn in _t)_t.hasOwnProperty(bn)&&bn!=="appletOnLoad"&&wn.setAttribute("data-param-"+bn,_t[bn]);ve&&wn.setAttribute("data-param-fontscssurl",ve),Rn.resize=function(){GGBAppletUtils.responsiveResize(kt,_t)},window.addEventListener("resize",function(pe){Rn.resize()});var ci=typeof _t.appletOnLoad=="function"?_t.appletOnLoad:function(){};if(!ln&&_t.width!==void 0){_t.hasOwnProperty("showSplash")||wn.setAttribute("data-param-showSplash","false");var Tn=kt.querySelector(".applet_scaler.prerender"),tn=Tn!==null;if(tn)var $t=Tn.querySelector(".ggb_preview");else{var $t=Ot(Kn,yt,_t.borderColor,!1);Tn=document.createElement("div"),Tn.className="applet_scaler",Tn.style.position="relative",Tn.style.display="block",Tn.style.width=Kn+"px",Tn.style.height=yt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Tn,"66%"),Fe(Me)>=5?(_t.appletOnLoad=function(pe){var De=kt.querySelector(".ggb_preview");De&&De.parentNode.removeChild(De),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Tn),window.GGBT_wsf_view&&$(window).trigger("resize"),ci(pe)},tn||Tn.appendChild($t)):wn.appendChild($t),Tn.appendChild(wn),tn||kt.appendChild(Tn),setTimeout(function(){Rn.resize()},1)}else{var ft=document.createElement("div");ft.className="applet_scaler",ft.style.position="relative",ft.style.display="block",ft.appendChild(wn),kt.appendChild(ft),_t.appletOnLoad=function(pe){Rn.resize(),ci(pe)}}function Je(pe,De){De&&typeof De.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(pe,De.appletOnLoad):renderGGBElement(pe),Pn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",De)}function Gt(pe,De){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:pe,params:De}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ze){Je(ze.article,ze.params)}),html5AppletsToProcess=null)},Fe(Me)<5&&(pe.className+=" geogebraweb")):Je(pe,De)}if(Bn){scriptLoadStarted=!0;for(var At=0;At<wn.childNodes.length;At++){var lt=wn.childNodes[At].tagName;lt==="TABLE"&&(wn.removeChild(wn.childNodes[At]),At--)}if(ggbHTML5LoadedScript!==null){var Ge=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ge!=null&&Ge.parentNode.removeChild(Ge)}var Be=document.createElement("script"),we=function(){Gt(wn,_t)};Be.src=gt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Me,ggbHTML5LoadedScript=Be.src,Pn("GeoGebra HTML5 codebase loaded: '"+gt+"'.",_t),!ke&&(!vt||vt=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),we()):gt.requirejs?__webpack_require__.e(7374).then(function(){var pe=[__webpack_require__(97374)];we.apply(null,pe)}.bind(this)).catch(__webpack_require__.oe):(Be.onload=we,kt.appendChild(Be))}else Gt(wn,_t);_t.height=yt,_t.width=Kn},qe=function(kt,_t,ln){var Bn=Ot(_t.width,_t.height,_t.borderColor,ln),wn=document.createElement("div");wn.style.position="relative",wn.style.display="block",wn.style.width=_t.width+"px",wn.style.height=_t.height+"px",wn.className="applet_screenshot applet_scaler"+(ln?" applet_screenshot_play":""),wn.appendChild(Bn);var Kn=GGBAppletUtils.getScale(_t,kt,ln);ln?(kt.appendChild(Yt()),window.GGBT_wsf_view||(kt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(wn,"66%"),kt.appendChild(wn),Kn!==1&&!isNaN(Kn)&&(GGBAppletUtils.scaleElement(wn,Kn),wn.style.width=_t.width+"px",wn.style.height=_t.height+"px",wn.parentNode.style.width=_t.width*Kn+"px",wn.parentNode.style.height=_t.height*Kn+"px"),Rn.resize=function(){Ht(kt,Bn,wn,ln)},window.addEventListener("resize",function(yt){Rn.resize()}),Rn.resize()};function Ht(kt,_t,ln,Bn){if(kt.contains(_t)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(kt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(kt)}var wn=GGBAppletUtils.getScale(ye,kt,Bn);ln.parentNode!==null&&(!isNaN(wn)&&wn!==1?(GGBAppletUtils.scaleElement(ln,wn),ln.parentNode.style.width=ye.width*wn+"px",ln.parentNode.style.height=ye.height*wn+"px"):(GGBAppletUtils.scaleElement(ln,1),ln.parentNode.style.width=ye.width+"px",ln.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(kt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Rn.onExitFullscreen=function(kt,_t){_t.appendChild(kt)};var Zt=function(kt,_t,ln,Bn){qe(kt,_t,!0);for(var wn=function(){var Jn=[];for(yt=0;yt<kt.childNodes.length;yt++)Jn.push(kt.childNodes[yt]);if(window.GGBT_wsf_view){var bn=window.GGBT_wsf_view.renderFullScreen(kt,_t.id),ci=document.getElementById("fullscreencontainer"),Tn=jQuery(kt).find(".fullscreencontent");Tn.length>0?(bn.remove(),Tn.attr("id","fullscreencontent").show(),jQuery(ci).append(Tn),window.dispatchEvent(new Event("resize"))):Nt(bn,_t,!1),window.GGBT_wsf_view.launchFullScreen(ci)}else wt=Bn,Nt(kt,_t,!1);if(!window.GGBT_wsf_view)for(yt=0;yt<Jn.length;yt++)kt.removeChild(Jn[yt])},Kn=kt.getElementsByClassName("ggb_preview_play"),yt=0;yt<Kn.length;yt++)Kn[yt].addEventListener("click",wn,!1),Kn[yt].addEventListener("ontouchstart",wn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(kt),Ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Yt=function(){var kt=document.createElement("div");if(kt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var _t='.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");}',ln=document.createElement("style");ln.styleSheet?ln.styleSheet.cssText=_t:ln.appendChild(document.createTextNode(_t)),document.getElementsByTagName("head")[0].appendChild(ln)}return kt},Ot=function(kt,_t,ln,Bn){var wn=document.createElement("div");wn.className="ggb_preview",wn.style.position="absolute",wn.style.zIndex="90",wn.style.width=kt-2+"px",wn.style.height=_t-2+"px",wn.style.top="0px",wn.style.left="0px",wn.style.overflow="hidden",wn.style.backgroundColor="white";var Kn="lightgrey";ln!==void 0&&(ln==="none"?Kn="transparent":Kn=ln),wn.style.border="1px solid "+Kn;var yt=document.createElement("img");if(yt.style.position="relative",yt.style.zIndex="1000",yt.style.top="-1px",yt.style.left="-1px",ce!==null&&yt.setAttribute("src",ce),yt.style.opacity=.7,se!==null){var Jn,bn,ci;if(!Bn){Jn=document.createElement("img"),Jn.style.position="absolute",Jn.style.zIndex="1001",Jn.style.opacity=1,yt.style.opacity=.3,bn=360,bn>kt/4*3&&(bn=kt/4*3),ci=bn/5.8,Jn.setAttribute("src",se),Jn.setAttribute("width",bn),Jn.setAttribute("height",ci);var Tn=(kt-bn)/2,tn=(_t-ci)/2;Jn.style.left=Tn+"px",Jn.style.top=tn+"px",wn.appendChild(Jn)}}return wn.appendChild(yt),wn},Qt=function(kt){return kt=kt.toLowerCase(),kt==="html5"||kt==="screenshot"?kt:"html5"},dt=["web","webSimple","web3d","tablet","tablet3d","phone"],Re=function(kt,_t){if(Me=kt,_t){Mt(Me,!0);return}var ln=!Oe;if(ln){var Bn=Fe(Me);!isNaN(Bn)&&Bn<4.4&&(ln=!1)}var wn,Kn;window.location.protocol.substr(0,4)==="http"?wn=window.location.protocol:wn="http:";var yt=Me.indexOf("//");yt>0?Kn=Me:yt===0?Kn=wn+Me:Kn="https://www.geogebra.org/apps/5.2.814.0/";for(var Jn in dt)if(Me.slice(dt[Jn].length*-1)===dt[Jn]||Me.slice((dt[Jn].length+1)*-1)===dt[Jn]+"/"){Mt(Kn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ln&&!Se.is3D&&!Se.AV&&!Se.SV&&!Se.CV&&!Se.EV2&&!Se.CP&&!Se.PC&&!Se.DA&&!Se.FI&&!Se.PV&&!Ve(ye.showToolBar)&&!Ve(ye.showMenuBar)&&!Ve(ye.showAlgebraInput)&&!Ve(ye.enableRightClick)&&(!ye.appName||ye.appName=="classic")?Kn+="webSimple/":Kn+="web3d/",Mt(Kn,!1)},Mt=function(kt,_t){if(kt.requirejs){gt=kt;return}kt.slice(-1)!=="/"&&(kt+="/"),gt=kt,_t===null&&(_t=kt.indexOf("http")===-1),ct=_t,te="web.nocache.js",ne=!1;var ln=gt.split("/");ln.length>1&&(!_t&&ln[ln.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):dt.indexOf(ln[ln.length-2])>=0&&(te=ln[ln.length-2]+".nocache.js")),ln=kt.split("/"),Me=ln[ln.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 Bn=parseFloat(Me);Bn!==NaN&&Bn<5&&kt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Bn+" is deprecated. Using version latest instead."),Re("5.0",_t))},Pn=function(kt,_t){window.console&&window.console.log&&(!_t||typeof _t.showLogging=="undefined"||_t.showLogging&&_t.showLogging!=="false")&&console.log(kt)};ye.material_id!==void 0?We(mn):mn();function mn(){var kt=Fn;vt!==null?kt=vt:parseFloat(kt)<5&&(kt="5.0"),Re(kt,!1),ke!==null&&Mt(ke,ct),_e=!0}return Rn},GGBAppletUtils=function(){"use strict";function Rn(){return window.GGBT_wsf_edit!==void 0}function Fn(_e,vt){vt!=1?(_e.style.transformOrigin="0% 0% 0px",_e.style.webkitTransformOrigin="0% 0% 0px",_e.style.transform="scale("+vt+","+vt+")",_e.style.webkitTransform="scale("+vt+","+vt+")",_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 ye(_e,vt,ke,Tt,Lt,et){var gt=null;if(et!=null&&et!="")for(var ct=_e.parentNode;ct!=null;)if((" "+ct.className+" ").indexOf(" "+et+" ")>-1){gt=ct;break}else ct=ct.parentNode;var wt=0,Me=0,te=0,ne=0,ce=0,se=0,ge=0;if(gt)wt=gt.offsetWidth,Me=Math.max(Tt?gt.offsetWidth:0,gt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(wt=Math.min(window.innerWidth,document.documentElement.clientWidth),Me=Math.min(window.innerHeight,document.documentElement.clientHeight),te=wt):(wt=window.innerWidth,Me=window.innerHeight,te=window.innerWidth),_e){var ve=_e.getBoundingClientRect();ve.left>0&&ve.left<=wt&&(Lt===void 0||!Lt)&&(document.dir==="rtl"?(ce=wt-ve.width-ve.left,se=te<=480?10:30):(se=ve.left,ce=te<=480?10:30),ne=se+ce)}if(_e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=_e.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,ge=40)}}return _e&&((ke===void 0||!ke)&&vt>0&&vt+ne<wt?wt=vt:wt-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ke===void 0||!ke)&&(Me-=ge)),{width:wt,height:Me}}function Se(_e,vt,ke,Tt,Lt){if(_e.isScreenshoGenerator)return 1;var et=Tt!==void 0&&Tt,gt=_e.noScaleMargin!=null&&_e.noScaleMargin,ct=function(be){return be&&be!=="false"},wt=ct(_e.autoHeight),Me=ye(vt,_e.width,ke,wt,et&&window.GGBT_wsf_view||gt,Lt),te=parseInt(Me.width),ne=_e.width,ce=_e.height;if(ne===void 0){var se=vt.querySelector(".appletParameters");se&&(ne=se.offsetWidth,ce=se.offsetHeight)}var ge=te/ne,ve=et?1:Me.height/ce;return ke!==void 0&&!ke&&(ge=Math.min(1,ge),ve=Math.min(1,ve)),Math.min(ge,ve)}function Oe(_e,vt,ke){var Tt=1,Lt,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)),vt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(et=!0),!(_e.hasOwnProperty("disableAutoScale")&&_e.disableAutoScale))Lt=Se(_e,vt,et,ke,_e.scaleContainerClass);else return Tt;return et&&(!_e.hasOwnProperty("scale")||Tt===1)?Lt:Math.min(Tt,Lt)}function He(_e){var vt=Math.min(window.innerWidth,document.documentElement.clientWidth),ke=Math.min(window.innerHeight,document.documentElement.clientHeight),Tt=_e.getBoundingClientRect(),Lt=(vt-Tt.width)/2,et=(ke-Tt.height)/2;et<0&&(et=0),_e.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Lt<40?_e.style.left="40px":_e.style.left=Lt+"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=Lt+"px")}function Rt(_e,vt){var ke=_e.querySelector(".appletParameters");if(ke){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(vt.id!==ke.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(_e)}if(ke.parentElement&&/fullscreen/.test(ke.parentElement.className))return;var Tt=Oe(vt,_e);Rn()&&ke.setAttribute("data-param-scale",Tt);for(var Lt=null,et=0;et<_e.childNodes.length;et++)if(_e.childNodes[et].className!==void 0&&_e.childNodes[et].className.match(/^applet_scaler/)){Lt=_e.childNodes[et];break}if(Lt!==null&&Lt.querySelector(".noscale")!==null)return;var gt=vt.id!==void 0?vt.id:"ggbApplet",ct=window[gt];(ct==null||!ct.recalculateEnvironments)&&Lt!==null&&!Lt.className.match(/fullscreen/)&&(Lt.parentNode.style.transform="",!isNaN(Tt)&&Tt!==1?(Lt.parentNode.style.width=vt.width*Tt+"px",Lt.parentNode.style.height=vt.height*Tt+"px",Fn(Lt,Tt)):(Fn(Lt,1),Lt.parentNode.style.width=vt.width+"px",Lt.parentNode.style.height=vt.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($(ke).parents(".content-added-content"))}}return{responsiveResize:Rt,isFlexibleWorksheetEditor:Rn,positionCenter:He,getScale:Oe,scaleElement:Fn}}();__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,Fn){}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 Fn=s[L].bindings;s[L].bindings=function(){for(var ye=Fn?Fn():{},Se=Rn[webModule.__softPermutationId],Oe=O;Oe<Se.length;Oe++){var He=Se[Oe];ye[He[O]]=He[P]}return ye}};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 Fn=document.compatMode==U?V:W;t.write(Fn+X),t.close()}}}function w(Rn){function Fn(Se){function Oe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var He=Oe();if(He){Se();return}function Rt(){if(!He){if(!Oe())return;He=!0,Se(),o.removeEventListener&&o.removeEventListener(Z,Rt,!1),_e&&clearInterval(_e)}}o.addEventListener&&o.addEventListener(Z,Rt,!1);var _e=setInterval(function(){Rt()},$)}function ye(Se){var Oe=u(),He=Oe.body,Rt=Oe.createElement(_);Rt.language=ab,Rt.crossOrigin=W,Rt.src=Se,webModule.__errFn&&(Rt.onerror=function(){webModule.__errFn(L,new Error(bb+Se))}),He.appendChild(Rt)}Fn(function(){ye(Rn)})}webModule.__startLoadingFragment=function(Rn){return C(Rn)},webModule.__installRunAsyncCode=function(Rn){var Fn=u(),ye=Fn.body,Se=Fn.createElement(_);Se.language=ab,Se.text=Rn,ye.appendChild(Se),ye.removeChild(Se)};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 Fn=c[Rn];return Fn==null?null:Fn},r=d,webModule.__errFn=e}function B(){function Rn(_e){var vt=_e.lastIndexOf(rb);vt==-1&&(vt=_e.length);var ke=_e.indexOf(sb);ke==-1&&(ke=_e.length);var Tt=_e.lastIndexOf(tb,Math.min(ke,vt));return Tt>=O?_e.substring(O,Tt+P):W}function Fn(_e){if(!_e.match(/^\w+:\/\//)){var vt=o.createElement(ub);vt.src=_e+vb,_e=Rn(vt.src)}return _e}function ye(){var _e=__gwt_getMetaProperty(wb);return _e!=null?_e:W}function Se(){for(var _e=o.getElementsByTagName(_),vt=O;vt<_e.length;++vt)if(_e[vt].src.indexOf(xb)!=-1)return Rn(_e[vt].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=ye();return Rt==W&&(Rt=Se()),Rt==W&&(Rt=Oe()),Rt==W&&He()&&(Rt=Rn(o.location.href)),Rt=Fn(Rt),Rt}function C(Rn){return Rn.match(/^\//)||Rn.match(/^[a-zA-Z]+:\/\//)?Rn:webModule.__moduleBase+Rn}function D(){var Rn=[],Fn=O,ye=[],Se=[];function Oe(_e){var vt=Se[_e](),ke=ye[_e];if(vt in ke)return vt;var Tt=[];for(var Lt in ke)Tt[ke[Lt]]=Lt;throw r&&r(_e,Tt,vt),null}if(__gwt_isKnownPropertyValue=function(_e,vt){return vt in ye[_e]},webModule.__getPropMap=function(){var _e={};for(var vt in ye)ye.hasOwnProperty(vt)&&(_e[vt]=Oe(vt));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&&(Fn=parseInt(He.substring(Rt+P),$),He=He.substring(O,Rt))}catch(_e){}return webModule.__softPermutationId=Fn,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})()},58788:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Ax:function(){return Rt},Ds:function(){return _e},KI:function(){return ke},SI:function(){return He},f1:function(){return Oe}});var Se=ye(10148);function Oe(Tt){let Lt=!0;if(Tt.length>0){for(let et=0;et<Tt.length;et++)if(Tt[et].compile_success==0||!Tt[et].compile_success){Lt=!1;break}}else Lt=!1;return Lt}function He(Tt,Lt=""){let et=[];for(let gt=0;gt<Tt.length;gt++){let ct=Tt[gt],wt=Lt?`${Lt}/${ct.name}`:`${ct.name}`;et.push({title:ct.name,type:ct.type,isLeaf:ct.type!=="tree",key:wt})}return et}function Rt(Tt,Lt,et){for(let gt=0;gt<Tt.length;gt++){let ct=Tt[gt];if(ct.key===Lt){ct.children=et;break}ct.children&&Rt(ct.children,Lt,et)}return Tt}function _e(Tt,Lt,et){let gt;return function(){let ct=this,wt=arguments,Me=function(){gt=null,et||Tt.apply(ct,wt)},te=et&&!gt;clearTimeout(gt),gt=setTimeout(Me,Lt),te&&Tt.apply(ct,wt)}}const vt=!0,ke=Se.Z.API_SERVER},65983:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Ge}});var Se=ye(59301),Oe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},He=ye(92310),Rt=ye.n(He),_e=ye(71418);var vt=function(Be,we){return(vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,De){pe.__proto__=De}||function(pe,De){for(var ze in De)Object.prototype.hasOwnProperty.call(De,ze)&&(pe[ze]=De[ze])})(Be,we)};function ke(Be,we){function pe(){this.constructor=Be}vt(Be,we),Be.prototype=we===null?Object.create(we):(pe.prototype=we.prototype,new pe)}function Tt(Be,we,pe,De){return new(pe||(pe=Promise))(function(ze,Le){function nt(rn){try{En(De.next(rn))}catch(vn){Le(vn)}}function Ut(rn){try{En(De.throw(rn))}catch(vn){Le(vn)}}function En(rn){var vn;rn.done?ze(rn.value):(vn=rn.value,vn instanceof pe?vn:new pe(function(mi){mi(vn)})).then(nt,Ut)}En((De=De.apply(Be,we||[])).next())})}function Lt(Be,we){var pe,De,ze,Le,nt={label:0,sent:function(){if(1&ze[0])throw ze[1];return ze[1]},trys:[],ops:[]};return Le={next:Ut(0),throw:Ut(1),return:Ut(2)},typeof Symbol=="function"&&(Le[Symbol.iterator]=function(){return this}),Le;function Ut(En){return function(rn){return function(vn){if(pe)throw new TypeError("Generator is already executing.");for(;nt;)try{if(pe=1,De&&(ze=2&vn[0]?De.return:vn[0]?De.throw||((ze=De.return)&&ze.call(De),0):De.next)&&!(ze=ze.call(De,vn[1])).done)return ze;switch(De=0,ze&&(vn=[2&vn[0],ze.value]),vn[0]){case 0:case 1:ze=vn;break;case 4:return nt.label++,{value:vn[1],done:!1};case 5:nt.label++,De=vn[1],vn=[0];continue;case 7:vn=nt.ops.pop(),nt.trys.pop();continue;default:if(ze=nt.trys,!((ze=ze.length>0&&ze[ze.length-1])||vn[0]!==6&&vn[0]!==2)){nt=0;continue}if(vn[0]===3&&(!ze||vn[1]>ze[0]&&vn[1]<ze[3])){nt.label=vn[1];break}if(vn[0]===6&&nt.label<ze[1]){nt.label=ze[1],ze=vn;break}if(ze&&nt.label<ze[2]){nt.label=ze[2],nt.ops.push(vn);break}ze[2]&&nt.ops.pop(),nt.trys.pop();continue}vn=we.call(Be,nt)}catch(mi){vn=[6,mi],De=0}finally{pe=ze=0}if(5&vn[0])throw vn[1];return{value:vn[0]?vn[1]:void 0,done:!0}}([En,rn])}}}function et(){for(var Be=0,we=0,pe=arguments.length;we<pe;we++)Be+=arguments[we].length;var De=Array(Be),ze=0;for(we=0;we<pe;we++)for(var Le=arguments[we],nt=0,Ut=Le.length;nt<Ut;nt++,ze++)De[ze]=Le[nt];return De}var gt=function(){function Be(){}return Be.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Be.setAttributes=function(we,pe){for(var De=0,ze=pe;De<ze.length;De++){var Le=ze[De],nt=Le[0],Ut=Le[1];we.setAttribute(nt,Ut)}},Be.createRect=function(we,pe,De){var ze=document.createElementNS("http://www.w3.org/2000/svg","rect");return ze.setAttribute("width",we.toString()),ze.setAttribute("height",pe.toString()),De&&Be.setAttributes(ze,De),ze},Be.createLine=function(we,pe,De,ze,Le){var nt=document.createElementNS("http://www.w3.org/2000/svg","line");return nt.setAttribute("x1",we.toString()),nt.setAttribute("y1",pe.toString()),nt.setAttribute("x2",De.toString()),nt.setAttribute("y2",ze.toString()),Le&&Be.setAttributes(nt,Le),nt},Be.createPolygon=function(we,pe){var De=document.createElementNS("http://www.w3.org/2000/svg","polygon");return De.setAttribute("points",we),pe&&Be.setAttributes(De,pe),De},Be.createCircle=function(we,pe){var De=document.createElementNS("http://www.w3.org/2000/svg","circle");return De.setAttribute("cx",(we/2).toString()),De.setAttribute("cy",(we/2).toString()),De.setAttribute("r",we.toString()),pe&&Be.setAttributes(De,pe),De},Be.createEllipse=function(we,pe,De){var ze=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ze.setAttribute("cx",(we/2).toString()),ze.setAttribute("cy",(pe/2).toString()),ze.setAttribute("rx",(we/2).toString()),ze.setAttribute("ry",(pe/2).toString()),De&&Be.setAttributes(ze,De),ze},Be.createGroup=function(we){var pe=document.createElementNS("http://www.w3.org/2000/svg","g");return we&&Be.setAttributes(pe,we),pe},Be.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Be.createMarker=function(we,pe,De,ze,Le,nt,Ut){var En=document.createElementNS("http://www.w3.org/2000/svg","marker");return Be.setAttributes(En,[["id",we],["orient",pe],["markerWidth",De.toString()],["markerHeight",ze.toString()],["refX",Le.toString()],["refY",nt.toString()]]),En.appendChild(Ut),En},Be.createText=function(we){var pe=document.createElementNS("http://www.w3.org/2000/svg","text");return pe.setAttribute("x","0"),pe.setAttribute("y","0"),we&&Be.setAttributes(pe,we),pe},Be.createTSpan=function(we,pe){var De=document.createElementNS("http://www.w3.org/2000/svg","tspan");return De.textContent=we,pe&&Be.setAttributes(De,pe),De},Be.createImage=function(we){var pe=document.createElementNS("http://www.w3.org/2000/svg","image");return we&&Be.setAttributes(pe,we),pe},Be.createPoint=function(we,pe){var De=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return De.x=we,De.y=pe,De},Be.createPath=function(we,pe){var De=document.createElementNS("http://www.w3.org/2000/svg","path");return De.setAttribute("d",we),pe&&Be.setAttributes(De,pe),De},Be}(),ct=function(){function Be(){}return Be.addKey=function(we){Be.key=we},Object.defineProperty(Be,"isLicensed",{get:function(){return!!Be.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Be.key)},enumerable:!1,configurable:!0}),Be}(),wt=function(){function Be(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Be.prototype.rasterize=function(we,pe,De){var ze=this;return new Promise(function(Le){var nt=De!==void 0?De:document.createElement("canvas");we===null&&(ze.markersOnly=!0,ze.naturalSize=!1);var Ut=document.createElementNS("http://www.w3.org/2000/svg","svg");Ut.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ut.setAttribute("width",pe.width.baseVal.valueAsString),Ut.setAttribute("height",pe.height.baseVal.valueAsString),Ut.setAttribute("viewBox","0 0 "+pe.viewBox.baseVal.width.toString()+" "+pe.viewBox.baseVal.height.toString()),Ut.innerHTML=pe.innerHTML,ze.naturalSize===!0?(Ut.width.baseVal.value=we.naturalWidth,Ut.height.baseVal.value=we.naturalHeight):ze.width!==void 0&&ze.height!==void 0&&(Ut.width.baseVal.value=ze.width,Ut.height.baseVal.value=ze.height),nt.width=Ut.width.baseVal.value,nt.height=Ut.height.baseVal.value;var En=Ut.outerHTML,rn=nt.getContext("2d");ze.markersOnly!==!0&&rn.drawImage(we,0,0,nt.width,nt.height);var vn=window.URL,mi=new Image(nt.width,nt.height);mi.setAttribute("crossOrigin","anonymous");var wi=new Blob([En],{type:"image/svg+xml"}),Ri=vn.createObjectURL(wi);mi.onload=function(){rn.drawImage(mi,0,0),vn.revokeObjectURL(Ri);var Wi=nt.toDataURL(ze.imageType,ze.imageQuality);Le(Wi)},mi.src=Ri})},Be}(),Me=function(){},te=function(){function Be(we){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+we+"_"}return Object.defineProperty(Be.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Be.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(Be.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Be.prototype.addClass=function(we){return this.styleSheet===void 0&&this.addStyleSheet(),we.name=""+this.classNamePrefix+we.localName,this.classes.push(we),this.styleSheet.sheet.insertRule("."+we.name+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length),we},Be.prototype.addRule=function(we){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(we),this.styleSheet.sheet.insertRule(we.selector+" {"+we.style+"}",this.styleSheet.sheet.cssRules.length)},Be.prototype.addStyleSheet=function(){var we;this.styleSheet=document.createElement("style"),((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).appendChild(this.styleSheet),this.addRule(new ne("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ne("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ce("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ce("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Be.prototype.removeStyleSheet=function(){var we;this.styleSheet&&(((we=this.styleSheetRoot)!==null&&we!==void 0?we:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Be}(),ne=function(Be,we){this.selector=Be,this.style=we},ce=function(Be,we){this.localName=Be,this.style=we},se=function(){function Be(we,pe,De,ze,Le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=we,this.displayMode=pe,this.markerItems=De,this.uiStyleSettings=ze,this.styles=Le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Be.prototype.show=function(we){var pe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var De=document.createElement("div");De.className=this.toolbarBlockStyleClass.name,De.style.whiteSpace="nowrap",this.uiContainer.appendChild(De),this.addActionButton(De,'<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(De,'<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(De,'<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(De,'<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(De,'<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(De,'<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(De,'<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(De,'<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(Le){var nt=document.createElement("div");nt.className=""+pe.toolbarButtonStyleClass.name,nt.setAttribute("data-type-name",Le.typeName),nt.innerHTML=Le.icon,nt.addEventListener("click",function(){pe.markerToolbarButtonClicked(nt,Le)}),pe.buttons.push(nt),pe.markerButtons.push(nt)}),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 ze=document.createElement("div");ze.className=this.toolbarBlockStyleClass.name,ze.style.whiteSpace="nowrap",ze.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ze),this.addActionButton(ze,'<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(ze,'<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()},Be.prototype.addButtonClickListener=function(we){this.buttonClickListeners.push(we)},Be.prototype.removeButtonClickListener=function(we){this.buttonClickListeners.indexOf(we)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(we),1)},Be.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Be.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var we=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var pe=0;pe<this.markerButtons.length;pe++)pe<we||pe===we&&this.markerButtons.length-1===we?this.markerButtonBlock.appendChild(this.markerButtons[pe]):(pe===we&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[pe]))}},Be.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")},Be.prototype.resetButtonStyles=function(){var we=this;this.buttons.forEach(function(pe){pe.className=pe.className.replace(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name,"").trim(),pe.className=pe.className.replace(we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?we.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:we.toolbarActiveButtonStyleColorsClass.name,"").trim(),pe.className+=" "+(we.uiStyleSettings.toolbarButtonStyleColorsClassName?we.uiStyleSettings.toolbarButtonStyleColorsClassName:we.toolbarButtonStyleColorsClass.name)})},Be.prototype.addActionButton=function(we,pe,De){var ze=this,Le=document.createElement("div");switch(Le.className=""+this.toolbarButtonStyleClass.name,Le.innerHTML=pe,Le.setAttribute("data-action",De),Le.addEventListener("click",function(){ze.actionToolbarButtonClicked(Le,De)}),De){case"select":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Le.style.fill=this.uiStyleSettings.closeButtonColor}we.appendChild(Le),this.buttons.push(Le)},Be.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ce("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 ce("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ce("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ce("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 ce("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var we=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ce("toolbar_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.toolbarButtonStyleColorsClass=this.styles.addClass(new ce("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ce("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ne("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Be.prototype.markerToolbarButtonClicked=function(we,pe){this.setActiveButton(we),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(De){return De("marker",pe)}),this.markerButtonOverflowBlock.style.display="none"},Be.prototype.actionToolbarButtonClicked=function(we,pe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(De){return De("action",pe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Be.prototype.setActiveButton=function(we){this.resetButtonStyles(),we.className=we.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),we.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Be.prototype.setActiveMarkerButton=function(we){var pe=this.markerButtons.find(function(De){return De.getAttribute("data-type-name")===we});pe&&this.setActiveButton(pe)},Be.prototype.setCurrentMarker=function(we){var pe=this;this.currentMarker=we,this.buttons.filter(function(De){return/delete|notes/.test(De.getAttribute("data-action"))}).forEach(function(De){pe.currentMarker===void 0?(De.style.fillOpacity="0.4",De.style.pointerEvents="none"):(De.style.fillOpacity="1",De.style.pointerEvents="all")})},Be}(),ge=function(){function Be(we,pe,De,ze){this.panels=[],this.panelButtons=[],this.markerjsContainer=we,this.displayMode=pe,this.uiStyleSettings=De,this.styles=ze,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Be.prototype.addStyles=function(){var we;this.toolboxStyleClass=this.styles.addClass(new ce("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 ce("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var pe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ce("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ce("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ce("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 ce("toolbox-panel-row_colors",`
|
|
|
background-color: `+((we=this.uiStyleSettings.toolboxBackgroundColor)!==null&&we!==void 0?we:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ce("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
|
|
|
padding: `+pe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ce("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ce("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ne("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Be.prototype.show=function(we){var pe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=we,this.uiContainer.className=this.toolboxStyleClass.name+" "+((pe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&pe!==void 0?pe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Be.prototype.setPanelButtons=function(we){var pe,De,ze=this;this.panels=we,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((pe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&pe!==void 0?pe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((De=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&De!==void 0?De:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Le){var nt;Le.uiStyleSettings=ze.uiStyleSettings;var Ut=document.createElement("div");Ut.className=ze.toolboxButtonStyleClass.name+" "+((nt=ze.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&nt!==void 0?nt:ze.toolboxButtonStyleColorsClass.name),Ut.innerHTML=Le.icon,Ut.title=Le.title,Ut.addEventListener("click",function(){ze.panelButtonClick(Le)}),ze.panelButtons.push(Ut),ze.buttonRow.appendChild(Ut)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Be.prototype.panelButtonClick=function(we){var pe=this,De=-1;if(we!==this.activePanel){De=this.panels.indexOf(we),this.panelRow.innerHTML="";var ze=we.getUi();ze.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ze),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=we}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){pe.displayMode==="inline"?pe.panelRow.style.display="none":pe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Le,nt){var Ut,En;Le.className=pe.toolboxButtonStyleClass.name+" "+(nt===De?""+((Ut=pe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ut!==void 0?Ut:pe.toolboxActiveButtonStyleColorsClass.name):""+((En=pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&En!==void 0?En:pe.toolboxButtonStyleColorsClass.name))})},Be}(),ve=function(Be,we){this.title=Be,this.icon=we},be=function(Be){function we(pe,De,ze,Le){var nt=Be.call(this,pe,Le||'<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 nt.colors=[],nt.addTransparent=!1,nt.colorBoxes=[],nt.colors=De,nt.currentColor=ze,nt.setCurrentColor=nt.setCurrentColor.bind(nt),nt.getColorBox=nt.getColorBox.bind(nt),nt}return ke(we,Be),we.prototype.getUi=function(){var pe=this,De=document.createElement("div");return De.style.overflow="hidden",De.style.whiteSpace="nowrap",this.colors.forEach(function(ze){var Le=pe.getColorBox(ze);De.appendChild(Le),pe.colorBoxes.push(Le)}),De},we.prototype.getColorBox=function(pe){var De=this,ze=this.uiStyleSettings.toolbarHeight/4,Le=this.uiStyleSettings.toolbarHeight-ze,nt=document.createElement("div");nt.style.display="inline-block",nt.style.boxSizing="content-box",nt.style.width=Le-2+"px",nt.style.height=Le-2+"px",nt.style.padding="1px",nt.style.marginRight="2px",nt.style.marginBottom="2px",nt.style.borderWidth="2px",nt.style.borderStyle="solid",nt.style.borderRadius=(Le+2)/2+"px",nt.style.borderColor=pe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",nt.addEventListener("click",function(){De.setCurrentColor(pe,nt)});var Ut=document.createElement("div");return Ut.style.display="inline-block",Ut.style.width=Le-2+"px",Ut.style.height=Le-2+"px",Ut.style.backgroundColor=pe,Ut.style.borderRadius=Le/2+"px",pe==="transparent"&&(Ut.style.fill=this.uiStyleSettings.toolboxAccentColor,Ut.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>`),nt.appendChild(Ut),nt},we.prototype.setCurrentColor=function(pe,De){var ze=this;this.currentColor=pe,this.colorBoxes.forEach(function(Le){Le.style.borderColor=Le===De?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(pe)},we}(ve),Fe=function(){function Be(we,pe,De){this._state="new",this._isSelected=!1,this._container=we,this._overlayContainer=pe,this.globalSettings=De,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Be.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Be.prototype.ownsTarget=function(we){return!1},Object.defineProperty(Be.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Be.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Be.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Be.prototype.pointerDown=function(we,pe){},Be.prototype.dblClick=function(we,pe){},Be.prototype.manipulate=function(we){},Be.prototype.pointerUp=function(we){this.stateChanged()},Be.prototype.dispose=function(){},Be.prototype.addMarkerVisualToContainer=function(we){this.container.childNodes.length>0?this.container.insertBefore(we,this.container.childNodes[0]):this.container.appendChild(we)},Be.prototype.getState=function(){return{typeName:Be.typeName,state:this.state,notes:this.notes}},Be.prototype.restoreState=function(we){this._state=we.state,this.notes=we.notes},Be.prototype.scale=function(we,pe){},Be.prototype.colorChanged=function(we){this.onColorChanged&&this.onColorChanged(we),this.stateChanged()},Be.prototype.fillColorChanged=function(we){this.onFillColorChanged&&this.onFillColorChanged(we),this.stateChanged()},Be.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var we=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),we.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(we)&&this.onStateChanged(this)}},Be.typeName="MarkerBase",Be}(),Pe=function(){function Be(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Be.prototype.findGripByVisual=function(we){return this.topLeft.ownsTarget(we)?this.topLeft:this.topCenter.ownsTarget(we)?this.topCenter:this.topRight.ownsTarget(we)?this.topRight:this.centerLeft.ownsTarget(we)?this.centerLeft:this.centerRight.ownsTarget(we)?this.centerRight:this.bottomLeft.ownsTarget(we)?this.bottomLeft:this.bottomCenter.ownsTarget(we)?this.bottomCenter:this.bottomRight.ownsTarget(we)?this.bottomRight:void 0},Be}(),Ie=function(){function Be(){this.GRIP_SIZE=10,this.visual=gt.createGroup(),this.visual.appendChild(gt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(gt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Be.prototype.ownsTarget=function(we){return we===this.visual||we===this.visual.childNodes[0]||we===this.visual.childNodes[1]},Be}(),We=function(){function Be(){}return Be.toITransformMatrix=function(we){return{a:we.a,b:we.b,c:we.c,d:we.d,e:we.e,f:we.f}},Be.toSVGMatrix=function(we,pe){return we.a=pe.a,we.b=pe.b,we.c=pe.c,we.d=pe.d,we.e=pe.e,we.f=pe.f,we},Be}(),Ke=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.left=0,Le.top=0,Le.width=0,Le.height=0,Le.defaultSize={x:50,y:20},Le.offsetX=0,Le.offsetY=0,Le.rotationAngle=0,Le.CB_DISTANCE=10,Le._suppressMarkerCreateEvent=!1,Le.container.transform.baseVal.appendItem(gt.createTransform()),Le.setupControlBox(),Le}return ke(we,Be),Object.defineProperty(we.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"visual",{get:function(){return this._visual},set:function(pe){this._visual=pe;var De=gt.createTransform();this._visual.transform.baseVal.appendItem(De)},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(pe){return!!Be.prototype.ownsTarget.call(this,pe)||!!(this.controlGrips.findGripByVisual(pe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(pe))},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.state==="new"&&(this.left=pe.x,this.top=pe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ze=this.unrotatePoint(pe);if(this.manipulationStartX=ze.x,this.manipulationStartY=ze.y,this.offsetX=ze.x-this.left,this.offsetY=ze.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(De),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(De)){this.activeGrip=this.rotatorGrip;var Le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Le.x-this.width/2,this.top=Le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var nt=this.container.transform.baseVal.getItem(0);nt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(nt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},we.prototype.pointerUp=function(pe){var De=this.state;Be.prototype.pointerUp.call(this,pe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(pe),this._state="select",De==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},we.prototype.moveVisual=function(pe){this.visual.style.transform="translate("+pe.x+"px, "+pe.y+"px)"},we.prototype.manipulate=function(pe){var De=this.unrotatePoint(pe);this.state==="creating"?this.resize(pe):this.state==="move"?(this.left=this.manipulationStartLeft+(De.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(De.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(De):this.state==="rotate"&&this.rotate(pe)},we.prototype.resize=function(pe){var De=this.manipulationStartLeft,ze=this.manipulationStartWidth,Le=this.manipulationStartTop,nt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:De=this.manipulationStartLeft+pe.x-this.manipulationStartX,ze=this.manipulationStartWidth+this.manipulationStartLeft-De;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ze=this.manipulationStartWidth+pe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Le=this.manipulationStartTop+pe.y-this.manipulationStartY,nt=this.manipulationStartHeight+this.manipulationStartTop-Le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:nt=this.manipulationStartHeight+pe.y-this.manipulationStartY}ze>=0?(this.left=De,this.width=ze):(this.left=De+ze,this.width=-ze),nt>=0?(this.top=Le,this.height=nt):(this.top=Le+nt,this.height=-nt),this.setSize()},we.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},we.prototype.rotate=function(pe){if(Math.abs(pe.x-this.centerX)>.1){var De=Math.sign(pe.x-this.centerX);this.rotationAngle=180*Math.atan((pe.y-this.centerY)/(pe.x-this.centerX))/Math.PI+90*De,this.applyRotation()}},we.prototype.applyRotation=function(){var pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,0)},we.prototype.rotatePoint=function(pe){if(this.rotationAngle===0)return pe;var De=this.container.getCTM(),ze=gt.createPoint(pe.x,pe.y);return{x:(ze=ze.matrixTransform(De)).x,y:ze.y}},we.prototype.unrotatePoint=function(pe){if(this.rotationAngle===0)return pe;var De=this.container.getCTM();De=De.inverse();var ze=gt.createPoint(pe.x,pe.y);return{x:(ze=ze.matrixTransform(De)).x,y:ze.y}},we.prototype.select=function(){Be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){Be.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=gt.createGroup();var pe=gt.createTransform();pe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(pe),this.container.appendChild(this.controlBox),this.controlRect=gt.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=gt.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 Pe,this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){var pe=this.controlBox.transform.baseVal.getItem(0);pe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(pe,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()},we.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()},we.prototype.createGrip=function(){var pe=new Ie;return pe.visual.transform.baseVal.appendItem(gt.createTransform()),this.controlBox.appendChild(pe.visual),pe},we.prototype.positionGrips=function(){var pe=this.controlGrips.topLeft.GRIP_SIZE,De=-pe/2,ze=De,Le=(this.width+this.CB_DISTANCE)/2-pe/2,nt=(this.height+this.CB_DISTANCE)/2-pe/2,Ut=this.height+this.CB_DISTANCE-pe/2,En=this.width+this.CB_DISTANCE-pe/2;this.positionGrip(this.controlGrips.topLeft.visual,De,ze),this.positionGrip(this.controlGrips.topCenter.visual,Le,ze),this.positionGrip(this.controlGrips.topRight.visual,En,ze),this.positionGrip(this.controlGrips.centerLeft.visual,De,nt),this.positionGrip(this.controlGrips.centerRight.visual,En,nt),this.positionGrip(this.controlGrips.bottomLeft.visual,De,Ut),this.positionGrip(this.controlGrips.bottomCenter.visual,Le,Ut),this.positionGrip(this.controlGrips.bottomRight.visual,En,Ut),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Le,ze-3*this.CB_DISTANCE)},we.prototype.positionGrip=function(pe,De,ze){var Le=pe.transform.baseVal.getItem(0);Le.setTranslate(De,ze),pe.transform.baseVal.replaceItem(Le,0)},we.prototype.hideControlBox=function(){this.controlBox.style.display="none"},we.prototype.showControlBox=function(){this.controlBox.style.display=""},we.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:We.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:We.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Be.prototype.getState.call(this))},we.prototype.restoreState=function(pe){Be.prototype.restoreState.call(this,pe);var De=pe;this.left=De.left,this.top=De.top,this.width=De.width,this.height=De.height,this.rotationAngle=De.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(We.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,De.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(We.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,De.containerTransformMatrix))},we.prototype.scale=function(pe,De){Be.prototype.scale.call(this,pe,De);var ze=this.rotatePoint({x:this.left,y:this.top}),Le=this.unrotatePoint({x:ze.x*pe,y:ze.y*De});this.left=Le.x,this.top=Le.y,this.width=this.width*pe,this.height=this.height*De,this.adjustControlBox()},we}(Fe),Xe=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){return!(!Be.prototype.ownsTarget.call(this,pe)&&pe!==this.visual)},we.prototype.createVisual=function(){this.visual=gt.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)},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.state==="new"&&(this.createVisual(),this.moveVisual(pe),this._state="creating")},we.prototype.manipulate=function(pe){Be.prototype.manipulate.call(this,pe)},we.prototype.resize=function(pe){Be.prototype.resize.call(this,pe),this.setSize()},we.prototype.setSize=function(){Be.prototype.setSize.call(this),gt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(pe){Be.prototype.pointerUp.call(this,pe),this.setSize()},we.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.visual&>.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(pe),this.stateChanged()},we.prototype.setFillColor=function(pe){this.fillColor=pe,this.visual&>.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},we.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.visual&>.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.visual&>.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Be.prototype.getState.call(this))},we.prototype.restoreState=function(pe){var De=pe;this.fillColor=De.fillColor,this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.opacity=De.opacity,this.createVisual(),Be.prototype.restoreState.call(this,pe),this.setSize()},we.prototype.scale=function(pe,De){Be.prototype.scale.call(this,pe,De),this.setSize()},we.title="Rectangle marker",we}(Ke),ht=function(Be){function we(pe,De,ze,Le){var nt=Be.call(this,pe,Le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return nt.widths=[],nt.widthBoxes=[],nt.widths=De,nt.currentWidth=ze,nt.setCurrentWidth=nt.setCurrentWidth.bind(nt),nt}return ke(we,Be),we.prototype.getUi=function(){var pe=this,De=document.createElement("div");return De.style.display="flex",De.style.overflow="hidden",De.style.flexGrow="2",this.widths.forEach(function(ze){var Le=document.createElement("div");Le.style.display="flex",Le.style.flexGrow="2",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=ze===pe.currentWidth?pe.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){pe.setCurrentWidth(ze,Le)}),De.appendChild(Le);var nt=document.createElement("div");nt.innerText=ze.toString(),nt.style.marginRight="5px",Le.appendChild(nt);var Ut=document.createElement("div");Ut.style.minHeight="20px",Ut.style.flexGrow="2",Ut.style.display="flex",Ut.style.alignItems="center";var En=document.createElement("hr");En.style.minWidth="20px",En.style.border="0px",En.style.borderTop=ze+"px solid "+pe.uiStyleSettings.toolboxColor,En.style.flexGrow="2",Ut.appendChild(En),Le.appendChild(Ut),pe.widthBoxes.push(Le)}),De},we.prototype.setCurrentWidth=function(pe,De){var ze=this;this.currentWidth=pe,this.widthBoxes.forEach(function(Le){Le.style.borderColor=Le===De?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},we}(ve),Ve=function(Be){function we(pe,De,ze,Le){var nt=Be.call(this,pe,Le||'<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 nt.styles=[],nt.styleBoxes=[],nt.styles=De,nt.currentStyle=ze,nt.setCurrentStyle=nt.setCurrentStyle.bind(nt),nt}return ke(we,Be),we.prototype.getUi=function(){var pe=this,De=document.createElement("div");return De.style.display="flex",De.style.overflow="hidden",De.style.flexGrow="2",this.styles.forEach(function(ze){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/pe.styles.length-5+"%",Le.style.borderColor=ze===pe.currentStyle?pe.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){pe.setCurrentStyle(ze,Le)}),De.appendChild(Le);var nt=document.createElement("div");nt.style.minHeight="20px",nt.style.flexGrow="2",nt.style.overflow="hidden";var Ut=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+pe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ze!==""?'stroke-dasharray="'+ze+'"':"")+` />
|
|
|
</svg>`;nt.innerHTML=Ut,Le.appendChild(nt),pe.styleBoxes.push(Le)}),De},we.prototype.setCurrentStyle=function(pe,De){var ze=this;this.currentStyle=pe,this.styleBoxes.forEach(function(Le){Le.style.borderColor=Le===De?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},we}(ve),Nt=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.strokeColor=ze.defaultColor,Le.strokeWidth=ze.defaultStrokeWidth,Le.strokeDasharray=ze.defaultStrokeDasharray,Le.strokePanel=new be("Line color",ze.defaultColorSet,ze.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new ht("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ve("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return ke(we,Be),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Be.prototype.getState.call(this);return pe.typeName=we.typeName,pe},we.typeName="FrameMarker",we.title="Frame marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',we}(Xe),qe=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"},Ht=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.x1=0,Le.y1=0,Le.x2=0,Le.y2=0,Le.defaultLength=50,Le.manipulationStartX=0,Le.manipulationStartY=0,Le.manipulationStartX1=0,Le.manipulationStartY1=0,Le.manipulationStartX2=0,Le.manipulationStartY2=0,Le.setupControlBox(),Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){return!!Be.prototype.ownsTarget.call(this,pe)||!(!this.grip1.ownsTarget(pe)&&!this.grip2.ownsTarget(pe))},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.manipulationStartX=pe.x,this.manipulationStartY=pe.y,this.state==="new"&&(this.x1=pe.x,this.y1=pe.y,this.x2=pe.x,this.y2=pe.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(De)?this.activeGrip=this.grip1:this.grip2.ownsTarget(De)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},we.prototype.pointerUp=function(pe){var De=this.state;Be.prototype.pointerUp.call(this,pe),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(pe),this._state="select",De==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},we.prototype.adjustVisual=function(){},we.prototype.manipulate=function(pe){this.state==="creating"?this.resize(pe):this.state==="move"?(this.x1=this.manipulationStartX1+pe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+pe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+pe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+pe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(pe)},we.prototype.resize=function(pe){switch(this.activeGrip){case this.grip1:this.x1=pe.x,this.y1=pe.y;break;case this.grip2:case void 0:this.x2=pe.x,this.y2=pe.y}this.adjustVisual(),this.adjustControlBox()},we.prototype.select=function(){Be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},we.prototype.deselect=function(){Be.prototype.deselect.call(this),this.controlBox.style.display="none"},we.prototype.setupControlBox=function(){this.controlBox=gt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},we.prototype.adjustControlBox=function(){this.positionGrips()},we.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},we.prototype.createGrip=function(){var pe=new Ie;return pe.visual.transform.baseVal.appendItem(gt.createTransform()),this.controlBox.appendChild(pe.visual),pe},we.prototype.positionGrips=function(){var pe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-pe/2,this.y1-pe/2),this.positionGrip(this.grip2.visual,this.x2-pe/2,this.y2-pe/2)},we.prototype.positionGrip=function(pe,De,ze){var Le=pe.transform.baseVal.getItem(0);Le.setTranslate(De,ze),pe.transform.baseVal.replaceItem(Le,0)},we.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Be.prototype.getState.call(this))},we.prototype.restoreState=function(pe){Be.prototype.restoreState.call(this,pe);var De=pe;this.x1=De.x1,this.y1=De.y1,this.x2=De.x2,this.y2=De.y2},we.prototype.scale=function(pe,De){Be.prototype.scale.call(this,pe,De),this.x1=this.x1*pe,this.y1=this.y1*De,this.x2=this.x2*pe,this.y2=this.y2*De,this.adjustVisual(),this.adjustControlBox()},we}(Fe),Zt=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.strokeColor=ze.defaultColor,Le.strokeWidth=ze.defaultStrokeWidth,Le.strokeDasharray=ze.defaultStrokeDasharray,Le.strokePanel=new be("Line color",ze.defaultColorSet,ze.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new ht("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ve("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){return!(!Be.prototype.ownsTarget.call(this,pe)&&pe!==this.visual&&pe!==this.selectorLine&&pe!==this.visibleLine)},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.selectorLine=gt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=gt.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)},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},we.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()),gt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),gt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),gt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.adjustVisual(),this.colorChanged(pe)},we.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.adjustVisual()},we.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Be.prototype.getState.call(this));return pe.typeName=we.typeName,pe},we.prototype.restoreState=function(pe){Be.prototype.restoreState.call(this,pe);var De=pe;this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.createVisual(),this.adjustVisual()},we.typeName="LineMarker",we.title="Line marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',we}(Ht),Yt=function(Be){function we(pe,De,ze,Le){var nt=Be.call(this,pe,Le||'<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 nt.fonts=[],nt.fontBoxes=[],nt.fonts=De,nt.currentFont=ze,nt.setCurrentFont=nt.setCurrentFont.bind(nt),nt}return ke(we,Be),we.prototype.getUi=function(){var pe=this,De=document.createElement("div");return De.style.overflow="hidden",De.style.flexGrow="2",this.fonts.forEach(function(ze){var Le=document.createElement("div");Le.style.display="inline-block",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/pe.fonts.length-5+"%",Le.style.borderColor=ze===pe.currentFont?pe.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){pe.setCurrentFont(ze,Le)}),De.appendChild(Le);var nt=document.createElement("div");nt.style.display="flex",nt.style.minHeight="20px",nt.style.flexGrow="2",nt.style.fontFamily=ze,nt.style.overflow="hidden";var Ut=document.createElement("div");Ut.style.whiteSpace="nowrap",Ut.style.overflow="hidden",Ut.style.textOverflow="ellipsis",Ut.innerHTML="The quick brown fox jumps over the lazy dog",nt.appendChild(Ut),Le.appendChild(nt),pe.fontBoxes.push(Le)}),De},we.prototype.setCurrentFont=function(pe,De){var ze=this;this.currentFont=pe,this.fontBoxes.forEach(function(Le){Le.style.borderColor=Le===De?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},we}(ve),Ot=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.color="transparent",Le.padding=5,Le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Le.text=Le.DEFAULT_TEXT,Le.isMoved=!1,Le.color=ze.defaultColor,Le.fontFamily=ze.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setColor=Le.setColor.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.renderText=Le.renderText.bind(Le),Le.sizeText=Le.sizeText.bind(Le),Le.textEditDivClicked=Le.textEditDivClicked.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.setSize=Le.setSize.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.colorPanel=new be("Color",ze.defaultColorSet,ze.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.fontFamilyPanel=new Yt("Font",ze.defaultFontFamilies,ze.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){if(Be.prototype.ownsTarget.call(this,pe)||pe===this.visual||pe===this.textElement||pe===this.bgRectangle)return!0;var De=!1;return this.textElement.childNodes.forEach(function(ze){ze===pe&&(De=!0)}),De},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.bgRectangle=gt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=gt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(gt.createTransform()),this.textElement.transform.baseVal.appendItem(gt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.isMoved=!1,this.pointerDownPoint=pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(pe),this._state="creating")},we.prototype.renderText=function(){var pe=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(De){pe.textElement.appendChild(gt.createTSpan(De.trim()===""?" ":De.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},we.prototype.getTextScale=function(){var pe=this.textElement.getBBox(),De=1;if(pe.width>0&&pe.height>0){var ze=(1*this.width-this.width*this.padding*2/100)/pe.width,Le=(1*this.height-this.height*this.padding*2/100)/pe.height;De=Math.min(ze,Le)}return De},we.prototype.getTextPosition=function(pe){var De=this.textElement.getBBox(),ze=0,Le=0;return De.width>0&&De.height>0&&(ze=(this.width-De.width*pe)/2,Le=this.height/2-De.height*pe/2),{x:ze,y:Le}},we.prototype.sizeText=function(){var pe=this.textElement.getBBox(),De=this.getTextScale(),ze=this.getTextPosition(De);ze.y-=pe.y*De,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ze.x+"px, "+ze.y+"px) scale("+De+", "+De+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ze.x,ze.y),this.textElement.transform.baseVal.getItem(1).setScale(De,De))},we.prototype.manipulate=function(pe){Be.prototype.manipulate.call(this,pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(pe.x-this.pointerDownPoint.x)>5||Math.abs(pe.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(pe){Be.prototype.resize.call(this,pe),this.isMoved=!0,this.setSize(),this.sizeText()},we.prototype.setSize=function(){Be.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(gt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),gt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},we.prototype.pointerUp=function(pe){var De=this.state;De==="creating"&&(this._suppressMarkerCreateEvent=!0),Be.prototype.pointerUp.call(this,pe),this.setSize(),(De==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.showTextEditor=function(){var pe=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(De){De.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var De=Number.parseFloat(pe.textEditor.style.fontSize);pe.textEditor.clientWidth>=Number.parseInt(pe.textEditor.style.maxWidth)&&De>.9;)De-=.1,pe.textEditor.style.fontSize=Math.max(De,.9)+"em"}),this.textEditor.addEventListener("keyup",function(De){De.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(De){if(De.clipboardData){var ze=De.clipboardData.getData("text"),Le=window.getSelection();if(!Le.rangeCount)return!1;Le.deleteFromDocument(),Le.getRangeAt(0).insertNode(document.createTextNode(ze)),De.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){pe.textEditDivClicked(pe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},we.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var pe=this.getTextScale(),De=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ze=this.textElement.getBBox(),Le={x:ze.width*pe,y:ze.height*pe};De.x-=Le.x/2,De.y-=Le.y/2,this.textEditor.style.top=De.y+"px",this.textEditor.style.left=De.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-De.x+"px",this.textEditor.style.fontSize=Math.max(16*pe,12)+"px",this.textElement.style.display="none"}},we.prototype.textEditDivClicked=function(pe){this.text=pe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},we.prototype.select=function(){Be.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},we.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Be.prototype.deselect.call(this)},we.prototype.dblClick=function(pe,De){Be.prototype.dblClick.call(this,pe,De),this.showTextEditor()},we.prototype.setColor=function(pe){this.textElement&>.setAttributes(this.textElement,[["fill",pe]]),this.color=pe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(pe)},we.prototype.setFont=function(pe){this.textElement&>.setAttributes(this.textElement,[["font-family",pe]]),this.fontFamily=pe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},we.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},we.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Be.prototype.getState.call(this));return pe.typeName=we.typeName,pe},we.prototype.restoreState=function(pe){var De=pe;this.color=De.color,this.fontFamily=De.fontFamily,this.padding=De.padding,this.text=De.text,this.createVisual(),Be.prototype.restoreState.call(this,pe),this.setSize()},we.prototype.scale=function(pe,De){Be.prototype.scale.call(this,pe,De),this.setSize(),this.sizeText(),this.positionTextEditor()},we.typeName="TextMarker",we.title="Text marker",we.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>',we}(Ke),Qt=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.color="transparent",Le.lineWidth=3,Le.drawing=!1,Le.pixelRatio=1,Le.color=ze.defaultColor,Le.lineWidth=ze.defaultStrokeWidth,Le.pixelRatio=ze.freehandPixelRatio,Le.setColor=Le.setColor.bind(Le),Le.addCanvas=Le.addCanvas.bind(Le),Le.finishCreation=Le.finishCreation.bind(Le),Le.setLineWidth=Le.setLineWidth.bind(Le),Le.colorPanel=new be("Color",ze.defaultColorSet,ze.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.lineWidthPanel=new ht("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),Le.lineWidthPanel.onWidthChanged=Le.setLineWidth,Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){return!(!Be.prototype.ownsTarget.call(this,pe)&&pe!==this.visual&&pe!==this.drawingImage)},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.drawingImage=gt.createImage(),this.visual.appendChild(this.drawingImage);var pe=gt.createTransform();this.visual.transform.baseVal.appendItem(pe),this.addMarkerVisualToContainer(this.visual)},we.prototype.pointerDown=function(pe,De){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(pe.x,pe.y),this.drawing=!0):Be.prototype.pointerDown.call(this,pe,De)},we.prototype.manipulate=function(pe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(pe.x,pe.y),this.canvasContext.stroke()):Be.prototype.manipulate.call(this,pe)},we.prototype.resize=function(pe){Be.prototype.resize.call(this,pe),gt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),gt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},we.prototype.pointerUp=function(pe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Be.prototype.pointerUp.call(this,pe)},we.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)},we.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Be.prototype.select.call(this)},we.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Be.prototype.deselect.call(this)},we.prototype.finishCreation=function(){for(var pe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),De=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ze=De[0],Le=De[1],nt=De[2],Ut=De[3],En=!1,rn=0;rn<this.canvasElement.height;rn++)for(var vn=0;vn<this.canvasElement.width;vn++)pe.data[rn*this.canvasElement.width*4+4*vn+3]>0&&(En=!0,rn<Le&&(Le=rn),vn<ze&&(ze=vn),rn>Ut&&(Ut=rn),vn>nt&&(nt=vn));if(En){this.left=ze/this.pixelRatio,this.top=Le/this.pixelRatio,this.width=(nt-ze)/this.pixelRatio,this.height=(Ut-Le)/this.pixelRatio;var mi=document.createElement("canvas");mi.width=nt-ze,mi.height=Ut-Le,mi.getContext("2d").putImageData(this.canvasContext.getImageData(ze,Le,nt-ze,Ut-Le),0,0),this.drawingImgUrl=mi.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},we.prototype.setDrawingImage=function(){gt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),gt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},we.prototype.setColor=function(pe){this.color=pe,this.colorChanged(pe)},we.prototype.setLineWidth=function(pe){this.lineWidth=pe},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Object.assign({drawingImgUrl:this.drawingImgUrl},Be.prototype.getState.call(this));return pe.typeName=we.typeName,pe},we.prototype.restoreState=function(pe){this.createVisual(),Be.prototype.restoreState.call(this,pe),this.drawingImgUrl=pe.drawingImgUrl,this.setDrawingImage()},we.prototype.scale=function(pe,De){Be.prototype.scale.call(this,pe,De),this.setDrawingImage()},we.typeName="FreehandMarker",we.title="Freehand marker",we.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>',we}(Ke),dt=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,ze||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Le.typeBoxes=[],Le.currentType=De,Le.setCurrentType=Le.setCurrentType.bind(Le),Le}return ke(we,Be),we.prototype.getUi=function(){var pe=this,De=document.createElement("div");De.style.display="flex",De.style.overflow="hidden",De.style.flexGrow="2";for(var ze=function(Ut){var En="both";switch(Ut){case 0:En="both";break;case 1:En="start";break;case 2:En="end";break;case 3:En="none"}var rn=document.createElement("div");if(rn.style.display="flex",rn.style.flexGrow="2",rn.style.alignItems="center",rn.style.justifyContent="space-between",rn.style.padding="5px",rn.style.borderWidth="2px",rn.style.borderStyle="solid",rn.style.borderColor=En===Le.currentType?Le.uiStyleSettings.toolboxAccentColor:"transparent",rn.addEventListener("click",function(){pe.setCurrentType(En,rn)}),De.appendChild(rn),En==="both"||En==="start"){var vn=document.createElement("div");vn.style.display="flex",vn.style.alignItems="center",vn.style.minHeight="20px",vn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,vn.style.marginLeft="5px",rn.appendChild(vn)}var mi=document.createElement("div");mi.style.display="flex",mi.style.alignItems="center",mi.style.minHeight="20px",mi.style.flexGrow="2";var wi=document.createElement("hr");if(wi.style.minWidth="20px",wi.style.border="0px",wi.style.borderTop="3px solid "+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee"),wi.style.flexGrow="2",mi.appendChild(wi),rn.appendChild(mi),En==="both"||En==="end"){var Ri=document.createElement("div");Ri.style.display="flex",Ri.style.alignItems="center",Ri.style.minHeight="20px",Ri.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="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ri.style.marginRight="5px",rn.appendChild(Ri)}Le.typeBoxes.push(rn)},Le=this,nt=0;nt<4;nt++)ze(nt);return De},we.prototype.setCurrentType=function(pe,De){var ze=this;this.currentType=pe,this.typeBoxes.forEach(function(Le){Le.style.borderColor=Le===De?ze.uiStyleSettings!==void 0?ze.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},we}(ve),Re=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.arrowType="end",Le.arrowBaseHeight=10,Le.arrowBaseWidth=10,Le.getArrowPoints=Le.getArrowPoints.bind(Le),Le.setArrowType=Le.setArrowType.bind(Le),Le.arrowTypePanel=new dt("Arrow type","end"),Le.arrowTypePanel.onArrowTypeChanged=Le.setArrowType,Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){return!(!Be.prototype.ownsTarget.call(this,pe)&&pe!==this.arrow1&&pe!==this.arrow2)},we.prototype.getArrowPoints=function(pe,De){var ze=this.arrowBaseWidth+2*this.strokeWidth,Le=this.arrowBaseHeight+2*this.strokeWidth;return pe-ze/2+","+(De+Le/2)+" "+pe+","+(De-Le/2)+" "+(pe+ze/2)+","+(De+Le/2)},we.prototype.createTips=function(){this.arrow1=gt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(gt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=gt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(gt.createTransform()),this.visual.appendChild(this.arrow2)},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(Be.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",gt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),gt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var pe=0;Math.abs(this.x1-this.x2)>.1&&(pe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var De=this.arrow1.transform.baseVal.getItem(0);De.setRotate(pe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(De,0);var ze=this.arrow2.transform.baseVal.getItem(0);ze.setRotate(pe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ze,0)}},we.prototype.setArrowType=function(pe){this.arrowType=pe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Object.assign({arrowType:this.arrowType},Be.prototype.getState.call(this));return pe.typeName=we.typeName,pe},we.prototype.restoreState=function(pe){Be.prototype.restoreState.call(this,pe);var De=pe;this.arrowType=De.arrowType,this.createTips(),this.adjustVisual()},we.typeName="ArrowMarker",we.title="Arrow marker",we.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',we}(Zt),Mt=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.fillColor=ze.defaultFillColor,Le.strokeWidth=0,Le.fillPanel=new be("Color",ze.defaultColorSet,ze.defaultFillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le}return ke(we,Be),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Be.prototype.getState.call(this);return pe.typeName=we.typeName,pe},we.typeName="CoverMarker",we.title="Cover marker",we.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',we}(Xe),Pn=function(Be){function we(pe,De,ze,Le){var nt=Be.call(this,pe,Le||'<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 nt.opacities=[],nt.opacityBoxes=[],nt.opacities=De,nt.currentOpacity=ze,nt.setCurrentOpacity=nt.setCurrentOpacity.bind(nt),nt}return ke(we,Be),we.prototype.getUi=function(){var pe=this,De=document.createElement("div");return De.style.display="flex",De.style.overflow="hidden",De.style.flexGrow="2",De.style.justifyContent="space-between",this.opacities.forEach(function(ze){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="center",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=ze===pe.currentOpacity?pe.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){pe.setCurrentOpacity(ze,Le)}),De.appendChild(Le);var nt=document.createElement("div");nt.innerText=100*ze+"%",Le.appendChild(nt),pe.opacityBoxes.push(Le)}),De},we.prototype.setCurrentOpacity=function(pe,De){var ze=this;this.currentOpacity=pe,this.opacityBoxes.forEach(function(Le){Le.style.borderColor=Le===De?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},we}(ve),mn=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.setOpacity=Le.setOpacity.bind(Le),Le.fillColor=ze.defaultHighlightColor,Le.strokeWidth=0,Le.opacity=ze.defaultHighlightOpacity,Le.fillPanel=new be("Color",ze.defaultColorSet,Le.fillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le.opacityPanel=new Pn("Opacity",ze.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return ke(we,Be),we.prototype.setOpacity=function(pe){this.opacity=pe,this.visual&>.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Be.prototype.getState.call(this);return pe.typeName=we.typeName,pe},we.typeName="HighlightMarker",we.title="Highlight marker",we.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>',we}(Mt),kt='<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>',_t='<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>',ln=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.bgColor="transparent",Le.tipPosition={x:0,y:0},Le.tipBase1Position={x:0,y:0},Le.tipBase2Position={x:0,y:0},Le.tipMoving=!1,Le.color=ze.defaultStrokeColor,Le.bgColor=ze.defaultFillColor,Le.fontFamily=ze.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setBgColor=Le.setBgColor.bind(Le),Le.getTipPoints=Le.getTipPoints.bind(Le),Le.positionTip=Le.positionTip.bind(Le),Le.setTipPoints=Le.setTipPoints.bind(Le),Le.colorPanel=new be("Text color",ze.defaultColorSet,Le.color,kt),Le.colorPanel.onColorChanged=Le.setColor,Le.bgColorPanel=new be("Fill color",ze.defaultColorSet,Le.bgColor,_t),Le.bgColorPanel.onColorChanged=Le.setBgColor,Le.fontFamilyPanel=new Yt("Font",ze.defaultFontFamilies,ze.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.tipGrip=new Ie,Le.tipGrip.visual.transform.baseVal.appendItem(gt.createTransform()),Le.controlBox.appendChild(Le.tipGrip.visual),Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){return Be.prototype.ownsTarget.call(this,pe)||this.tipGrip.ownsTarget(pe)||this.tip===pe},we.prototype.createTip=function(){gt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=gt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},we.prototype.pointerDown=function(pe,De){this.state==="new"&&Be.prototype.pointerDown.call(this,pe,De),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(De)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Be.prototype.pointerDown.call(this,pe,De)},we.prototype.pointerUp=function(pe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Be.prototype.pointerUp.call(this,pe);else{var De=this.state==="creating";Be.prototype.pointerUp.call(this,pe),this.setTipPoints(De),this.positionTip()}},we.prototype.manipulate=function(pe){if(this.tipMoving){var De=this.unrotatePoint(pe);this.tipPosition={x:De.x-this.manipulationStartLeft,y:De.y-this.manipulationStartTop},this.positionTip()}else Be.prototype.manipulate.call(this,pe)},we.prototype.setBgColor=function(pe){this.bgRectangle&&this.tip&&(gt.setAttributes(this.bgRectangle,[["fill",pe]]),gt.setAttributes(this.tip,[["fill",pe]])),this.bgColor=pe,this.fillColorChanged(pe)},we.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},we.prototype.setTipPoints=function(pe){pe===void 0&&(pe=!1);var De=Math.min(this.height/2,15),ze=this.height/5;pe&&(this.tipPosition={x:De+ze/2,y:this.height+20});var Le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ze=this.width/5,De=Math.min(this.width/2,15),this.tipBase1Position={x:De,y:0},this.tipBase2Position={x:De+ze,y:0}):(this.tipBase1Position={x:0,y:De},this.tipBase2Position={x:0,y:De+ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ze=this.width/5,De=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-De-ze,y:0},this.tipBase2Position={x:this.width-De,y:0}):(this.tipBase1Position={x:this.width,y:De},this.tipBase2Position={x:this.width,y:De+ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ze=this.width/5,De=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-De-ze,y:this.height},this.tipBase2Position={x:this.width-De,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-De-ze},this.tipBase2Position={x:this.width,y:this.height-De}):Le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ze=this.width/5,De=Math.min(this.width/2,15),this.tipBase1Position={x:De,y:this.height},this.tipBase2Position={x:De+ze,y:this.height}):(this.tipBase1Position={x:0,y:this.height-De},this.tipBase2Position={x:0,y:this.height-De-ze})},we.prototype.resize=function(pe){Be.prototype.resize.call(this,pe),this.positionTip()},we.prototype.positionTip=function(){gt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var pe=this.tipGrip.visual.transform.baseVal.getItem(0);pe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(pe,0)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),we.prototype.select=function(){this.positionTip(),Be.prototype.select.call(this)},we.prototype.getState=function(){var pe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Be.prototype.getState.call(this));return pe.typeName=we.typeName,pe},we.prototype.restoreState=function(pe){var De=pe;this.bgColor=De.bgColor,this.tipPosition=De.tipPosition,Be.prototype.restoreState.call(this,pe),this.createTip(),this.setTipPoints()},we.prototype.scale=function(pe,De){Be.prototype.scale.call(this,pe,De),this.tipPosition={x:this.tipPosition.x*pe,y:this.tipPosition.y*De},this.positionTip()},we.typeName="CalloutMarker",we.title="Callout marker",we.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>',we}(Ot),Bn=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.strokeColor=ze.defaultColor,Le.strokeWidth=ze.defaultStrokeWidth,Le.strokeDasharray=ze.defaultStrokeDasharray,Le.fillColor=ze.defaultFillColor,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.setOpacity=Le.setOpacity.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.strokePanel=new be("Line color",et(ze.defaultColorSet,["transparent"]),ze.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new be("Fill color",et(ze.defaultColorSet,["transparent"]),Le.fillColor,_t),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new ht("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ve("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.opacityPanel=new Pn("Opacity",ze.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){return!(!Be.prototype.ownsTarget.call(this,pe)&&pe!==this.visual)},we.prototype.createVisual=function(){this.visual=gt.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)},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.state==="new"&&(this.createVisual(),this.moveVisual(pe),this._state="creating")},we.prototype.manipulate=function(pe){Be.prototype.manipulate.call(this,pe)},we.prototype.resize=function(pe){Be.prototype.resize.call(this,pe),this.setSize()},we.prototype.setSize=function(){Be.prototype.setSize.call(this),gt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},we.prototype.pointerUp=function(pe){Be.prototype.pointerUp.call(this,pe),this.setSize()},we.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.visual&>.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(pe),this.stateChanged()},we.prototype.setFillColor=function(pe){this.fillColor=pe,this.visual&>.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(pe),this.stateChanged()},we.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.visual&>.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.visual&>.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},we.prototype.setOpacity=function(pe){this.opacity=pe,this.visual&>.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Be.prototype.getState.call(this));return pe.typeName=we.typeName,pe},we.prototype.restoreState=function(pe){var De=pe;this.fillColor=De.fillColor,this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.opacity=De.opacity,this.createVisual(),Be.prototype.restoreState.call(this,pe),this.setSize()},we.prototype.scale=function(pe,De){Be.prototype.scale.call(this,pe,De),this.setSize()},we.typeName="EllipseMarker",we.title="Ellipse marker",we.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>',we}(Ke),wn=function(Be){function we(pe,De,ze){return Be.call(this,pe,De,ze)||this}return ke(we,Be),Object.defineProperty(we.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),we.prototype.ownsTarget=function(pe){return!(!Be.prototype.ownsTarget.call(this,pe)&&pe!==this.tip1&&pe!==this.tip2)},we.prototype.createTips=function(){this.tip1=gt.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(gt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=gt.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(gt.createTransform()),this.visual.appendChild(this.tip2)},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.state==="creating"&&this.createTips()},we.prototype.adjustVisual=function(){if(Be.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(gt.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()]]),gt.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 pe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),De=this.tip1.transform.baseVal.getItem(0);De.setRotate(pe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(De,0);var ze=this.tip2.transform.baseVal.getItem(0);ze.setRotate(pe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ze,0)}},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Be.prototype.getState.call(this);return pe.typeName=we.typeName,pe},we.prototype.restoreState=function(pe){Be.prototype.restoreState.call(this,pe),this.createTips(),this.adjustVisual()},we.typeName="MeasurementMarker",we.title="Measurement marker",we.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>',we}(Zt),Kn=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.strokePanel.colors=ze.defaultColorSet,Le.fillColor="transparent",Le}return ke(we,Be),Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Be.prototype.getState.call(this);return pe.typeName=we.typeName,pe},we.typeName="EllipseFrameMarker",we.title="Ellipse frame marker",we.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>',we}(Bn),yt=function(){function Be(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Be.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Be.prototype.addUndoStep=function(we){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(we)||(this.undoStack.push(we),JSON.stringify(this.lastRedoStep)!==JSON.stringify(we)&&this.redoStack.splice(0,this.redoStack.length))},Be.prototype.replaceLastUndoStep=function(we){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=we)},Be.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Be.prototype.undo=function(){if(this.undoStack.length>1){var we=this.undoStack.pop();return we!==void 0&&this.redoStack.push(we),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Be.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Be}(),Jn=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.curveX=0,Le.curveY=0,Le.manipulationStartCurveX=0,Le.manipulationStartCurveY=0,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.positionGrips=Le.positionGrips.bind(Le),Le.addControlGrips=Le.addControlGrips.bind(Le),Le.adjustVisual=Le.adjustVisual.bind(Le),Le.setupControlBox=Le.setupControlBox.bind(Le),Le.resize=Le.resize.bind(Le),Le.strokeColor=ze.defaultColor,Le.strokeWidth=ze.defaultStrokeWidth,Le.strokeDasharray=ze.defaultStrokeDasharray,Le.strokePanel=new be("Line color",ze.defaultColorSet,ze.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new ht("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ve("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){return!(!Be.prototype.ownsTarget.call(this,pe)&&pe!==this.visual&&pe!==this.selectorCurve&&pe!==this.visibleCurve&&!this.curveGrip.ownsTarget(pe))},we.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.selectorCurve=gt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=gt.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)},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=pe.x,this.curveY=pe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(De)&&(this.activeGrip=this.curveGrip,this._state="resize")},we.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),gt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),gt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),gt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},we.prototype.setupControlBox=function(){Be.prototype.setupControlBox.call(this),this.curveControlLine1=gt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=gt.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)},we.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Be.prototype.addControlGrips.call(this)},we.prototype.positionGrips=function(){Be.prototype.positionGrips.call(this);var pe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-pe/2,this.curveY-pe/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()))},we.prototype.manipulate=function(pe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+pe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+pe.y-this.manipulationStartY),Be.prototype.manipulate.call(this,pe)},we.prototype.resize=function(pe){this.activeGrip===this.curveGrip&&(this.curveX=pe.x,this.curveY=pe.y),Be.prototype.resize.call(this,pe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},we.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.adjustVisual(),this.colorChanged(pe)},we.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.adjustVisual()},we.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.adjustVisual()},we.prototype.scale=function(pe,De){this.curveX=this.curveX*pe,this.curveY=this.curveY*De,Be.prototype.scale.call(this,pe,De)},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Be.prototype.getState.call(this));return pe.typeName=we.typeName,pe},we.prototype.restoreState=function(pe){Be.prototype.restoreState.call(this,pe);var De=pe;this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.curveX=De.curveX,this.curveY=De.curveY,this.createVisual(),this.adjustVisual()},we.typeName="CurveMarker",we.title="Curve marker",we.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>',we}(Ht),bn=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,De,ze)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.textColor="transparent",Le.fontSize="1rem",Le.isMoved=!1,Le.captionText="Caption",Le.PADDING=5,Le.captionBoxWidth=0,Le.captionBoxHeight=0,Le.strokeColor=ze.defaultColor,Le.strokeWidth=ze.defaultStrokeWidth,Le.strokeDasharray=ze.defaultStrokeDasharray,Le.fillColor=ze.defaultFillColor,Le.textColor=ze.defaultStrokeColor,Le.fontFamily=ze.defaultFontFamily,Le.fontSize=ze.defaultCaptionFontSize,Le.captionText=ze.defaultCaptionText,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.sizeCaption=Le.sizeCaption.bind(Le),Le.setCaptionText=Le.setCaptionText.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.finishTextEditing=Le.finishTextEditing.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.setTextColor=Le.setTextColor.bind(Le),Le.strokePanel=new be("Line color",et(ze.defaultColorSet,["transparent"]),Le.strokeColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new be("Fill color",et(ze.defaultColorSet,["transparent"]),Le.fillColor,_t),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new ht("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new Ve("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.fontFamilyPanel=new Yt("Font",ze.defaultFontFamilies,ze.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.textColorPanel=new be("Text color",ze.defaultColorSet,Le.textColor,kt),Le.textColorPanel.onColorChanged=Le.setTextColor,Le}return ke(we,Be),we.prototype.ownsTarget=function(pe){return!(!Be.prototype.ownsTarget.call(this,pe)&&pe!==this.visual&&pe!==this.frame&&pe!==this.captionBg&&pe!==this.captionElement)},we.prototype.createVisual=function(){this.visual=gt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=gt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=gt.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=gt.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()},we.prototype.setCaptionText=function(pe){this.captionText=pe,this.captionElement.textContent=this.captionText,this.sizeCaption()},we.prototype.pointerDown=function(pe,De){Be.prototype.pointerDown.call(this,pe,De),this.isMoved=!1,this.pointerDownPoint=pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(pe),this._state="creating")},we.prototype.manipulate=function(pe){Be.prototype.manipulate.call(this,pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(pe.x-this.pointerDownPoint.x)>5||Math.abs(pe.y-this.pointerDownPoint.y)>5)},we.prototype.resize=function(pe){Be.prototype.resize.call(this,pe),this.setSize()},we.prototype.sizeCaption=function(){var pe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=pe.width+2*this.PADDING,this.captionBoxHeight=pe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),gt.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')"]]),gt.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')"]])},we.prototype.showTextEditor=function(){var pe=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(De){De.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(De){De.key==="Enter"&&pe.finishTextEditing(pe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(De){De.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){pe.finishTextEditing(pe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){pe.finishTextEditing(pe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},we.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"))},we.prototype.finishTextEditing=function(pe){this.setCaptionText(pe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},we.prototype.setFont=function(pe){this.captionElement&>.setAttributes(this.captionElement,[["font-family",pe]]),this.fontFamily=pe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},we.prototype.setTextColor=function(pe){this.captionElement&>.setAttributes(this.captionElement,[["fill",pe]]),this.textColor=pe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},we.prototype.setSize=function(){Be.prototype.setSize.call(this),gt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},we.prototype.pointerUp=function(pe){Be.prototype.pointerUp.call(this,pe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},we.prototype.dblClick=function(pe,De){Be.prototype.dblClick.call(this,pe,De),this.showTextEditor()},we.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.frame&>.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(pe),this.stateChanged()},we.prototype.setFillColor=function(pe){this.fillColor=pe,this.captionBg&>.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(pe),this.stateChanged()},we.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.frame&>.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},we.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.frame&>.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(we.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),we.prototype.getState=function(){var pe=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},Be.prototype.getState.call(this));return pe.typeName=this.typeName,pe},we.prototype.restoreState=function(pe){var De=pe;this.fillColor=De.fillColor,this.strokeColor=De.strokeColor,this.strokeWidth=De.strokeWidth,this.strokeDasharray=De.strokeDasharray,this.textColor=De.textColor,this.fontFamily=De.fontFamily,this.captionText=De.captionText,this.fontSize=De.fontSize,this.createVisual(),Be.prototype.restoreState.call(this,pe),this.setSize()},we.prototype.scale=function(pe,De){Be.prototype.scale.call(this,pe,De),this.setSize()},we.typeName="CaptionFrameMarker",we.title="Caption frame marker",we.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>',we}(Ke),ci=function(){function Be(we,pe){pe===void 0&&(pe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=we,this.cancelable=pe}return Object.defineProperty(Be.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Be.prototype.preventDefault=function(){this._defaultPrevented=!0},Be}(),Tn=function(Be){function we(pe,De,ze){var Le=Be.call(this,pe,!1)||this;return Le.dataUrl=De,Le.state=ze,Le}return ke(we,Be),we}(ci),tn=function(Be){function we(pe,De,ze){ze===void 0&&(ze=!1);var Le=Be.call(this,pe,ze)||this;return Le.marker=De,Le}return ke(we,Be),we}(ci),$t=function(){function Be(){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 Be.prototype.addEventListener=function(we,pe){this[we].push(pe)},Be.prototype.removeEventListener=function(we,pe){var De=this[we].indexOf(pe);De>-1&&this[we].splice(De,1)},Be}(),ft=function(){function Be(we){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new qe,this._isOpen=!1,this.undoRedoManager=new yt,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 $t,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Be.instanceCounter++,this.styles=new te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=we,this.targetRoot=document.body,this.width=we.clientWidth,this.height=we.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(Be.prototype,"ALL_MARKER_TYPES",{get:function(){return[Nt,Qt,Re,Ot,Kn,Bn,mn,ln,wn,Mt,Zt,Jn,bn]},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Nt,Qt,Re,Ot,Bn,mn,ln]},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Nt,Qt,Re,Ot,mn]},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(we){var pe=this;this._availableMarkerTypes.splice(0),we.forEach(function(De){if(typeof De=="string"){var ze=pe.ALL_MARKER_TYPES.find(function(Le){return Le.typeName===De});ze!==void 0&&pe._availableMarkerTypes.push(ze)}else pe._availableMarkerTypes.push(De)})},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(we){this._zoomLevel=we,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(Be.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Be.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ct.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Be.prototype.show=function(){var we=this;this.styles.styleSheetRoot===void 0&&Me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(pe){return pe(new ci(we))})},Be.prototype.render=function(){return Tt(this,void 0,void 0,function(){var we;return Lt(this,function(pe){switch(pe.label){case 0:return this.setCurrentMarker(),(we=new wt).naturalSize=this.renderAtNaturalSize,we.imageType=this.renderImageType,we.imageQuality=this.renderImageQuality,we.markersOnly=this.renderMarkersOnly,we.width=this.renderWidth,we.height=this.renderHeight,[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return pe.sent(),[4,we.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,pe.sent()]}})})},Be.prototype.close=function(we){var pe=this;if(we===void 0&&(we=!1),this.isOpen){var De=!1;we||this.eventListeners.beforeclose.forEach(function(ze){var Le=new ci(pe,!0);ze(Le),Le.defaultPrevented&&(De=!0)}),De||(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(ze){return ze(new ci(pe))}),this.detachEvents(),this._isOpen=!1)}},Be.prototype.addMarkersToToolbar=function(){for(var we,pe=[],De=0;De<arguments.length;De++)pe[De]=arguments[De];(we=this._availableMarkerTypes).push.apply(we,pe)},Be.prototype.addRenderEventListener=function(we){this.addEventListener("render",function(pe){we(pe.dataUrl,pe.state)})},Be.prototype.removeRenderEventListener=function(we){},Be.prototype.addCloseEventListener=function(we){this.addEventListener("close",function(){we()})},Be.prototype.removeCloseEventListener=function(we){},Be.prototype.setupResizeObserver=function(){var we=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){we.resize(we.target.clientWidth,we.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return we.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Be.prototype.onPopupTargetResize=function(){var we=1*this.target.clientWidth/this.target.clientHeight,pe=this.editorCanvas.clientWidth/we>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*we:this.editorCanvas.clientWidth,De=pe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/we;this.resize(pe,De)},Be.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Be.prototype.resize=function(we,pe){this._isResizing=!0;var De=we/this.imageWidth,ze=pe/this.imageHeight;this.imageWidth=Math.round(we),this.imageHeight=Math.round(pe),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(De,ze),this._isResizing=!1},Be.prototype.scaleMarkers=function(we,pe){var De,ze=this;this._currentMarker&&this._currentMarker instanceof Ot?this._currentMarker.scale(we,pe):(De=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Le){Le!==ze._currentMarker&&Le.scale(we,pe)}),De!==void 0&&this.setCurrentMarker(De)},Be.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"},Be.prototype.setTopLeft=function(){var we=this.editingTarget.getBoundingClientRect(),pe=this.editorCanvas.getBoundingClientRect();this.left=we.left-pe.left,this.top=we.top-pe.top},Be.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)},Be.prototype.addDefs=function(){for(var we,pe=[],De=0;De<arguments.length;De++)pe[De]=arguments[De];this.defs=gt.createDefs(),this.addDefsToImage(),(we=this.defs).append.apply(we,pe)},Be.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Be.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)},Be.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Be.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Be.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)},Be.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Be.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)},Be.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 we=document.createElement("a");we.href="https://markerjs.com/",we.target="_blank",we.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>',we.title="Powered by marker.js",we.style.display="grid",we.style.alignItems="center",we.style.justifyItems="center",we.style.padding="3px",we.style.width="20px",we.style.height="20px",this.logoUI.appendChild(we),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Be.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")},Be.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"},Be.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Be.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 we=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=we+"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 se(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 ge(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Be.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Be.prototype.removeMarker=function(we){this.markerImage.removeChild(we.container),this.markers.indexOf(we)>-1&&this.markers.splice(this.markers.indexOf(we),1),we.dispose()},Be.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())},Be.prototype.toolbarButtonClicked=function(we,pe){if(we==="marker"&&pe!==void 0)this.createNewMarker(pe);else if(we==="action")switch(pe){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()}},Be.prototype.deleteSelectedMarker=function(){var we=this;if(this._currentMarker!==void 0){var pe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ze){var Le=new tn(we,we._currentMarker,!0);ze(Le),Le.defaultPrevented&&(pe=!0)}),!pe){var De=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(ze){return ze(new tn(we,De))})}}},Be.prototype.clear=function(){var we=this,pe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(nt){var Ut=new tn(we,void 0,!0);nt(Ut),Ut.defaultPrevented&&(pe=!0)}),!pe)){this.setCurrentMarker();for(var De=function(nt){var Ut=ze.markers[nt];ze.setCurrentMarker(ze.markers[nt]),ze._currentMarker.dispose(),ze.markerImage.removeChild(ze._currentMarker.container),ze.markers.splice(ze.markers.indexOf(ze._currentMarker),1),ze.eventListeners.markerdelete.forEach(function(En){return En(new tn(we,Ut))})},ze=this,Le=this.markers.length-1;Le>=0;Le--)De(Le);this.addUndoStep()}},Object.defineProperty(Be.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Be.prototype.showNotesEditor=function(){var we;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=(we=this._currentMarker.notes)!==null&&we!==void 0?we:"",this.overlayContainer.appendChild(this.notesArea))},Be.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)},Be.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Be.prototype.addUndoStep=function(){var we=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var pe=this.getState(),De=this.undoRedoManager.getLastUndoStep();if(!De||De.width===pe.width&&De.height===pe.height){var ze=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(pe),ze<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Le){return Le(new ci(we))})}else this.undoRedoManager.replaceLastUndoStep(pe),this.eventListeners.statechange.forEach(function(Le){return Le(new ci(we))})}},Be.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Be.prototype.undoStep=function(){var we=this,pe=this.undoRedoManager.undo();pe!==void 0&&(this.restoreState(pe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(De){return De(new ci(we))}))},Be.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Be.prototype.redoStep=function(){var we=this,pe=this.undoRedoManager.redo();pe!==void 0&&(this.restoreState(pe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(De){return De(new ci(we))}))},Be.prototype.stepZoom=function(){var we=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=we<this.zoomSteps.length-1?this.zoomSteps[we+1]:this.zoomSteps[0]},Be.prototype.panTo=function(we){this.contentDiv.scrollBy({left:this.prevPanPoint.x-we.x,top:this.prevPanPoint.y-we.y}),this.prevPanPoint=we},Be.prototype.startRenderAndClose=function(){return Tt(this,void 0,void 0,function(){var we,pe,De=this;return Lt(this,function(ze){switch(ze.label){case 0:return[4,this.render()];case 1:return we=ze.sent(),pe=this.getState(),this.eventListeners.render.forEach(function(Le){return Le(new Tn(De,we,pe))}),this.close(!0),[2]}})})},Be.prototype.getState=function(we){we===!0&&this.setCurrentMarker();var pe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(De){return pe.markers.push(De.getState())}),pe},Be.prototype.restoreState=function(we){var pe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);we.markers.forEach(function(De){var ze=pe._availableMarkerTypes.find(function(nt){return nt.typeName===De.typeName});if(ze!==void 0){var Le=pe.addNewMarker(ze);Le.restoreState(De),pe.markers.push(Le)}}),we.width&&we.height&&(we.width!==this.imageWidth||we.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/we.width,this.imageHeight/we.height),this.eventListeners.restorestate.forEach(function(De){return De(new ci(pe))})},Be.prototype.addNewMarker=function(we){var pe=gt.createGroup();return this.markerImage.appendChild(pe),new we(pe,this.overlayContainer,this.settings)},Be.prototype.createNewMarker=function(we){var pe,De=this;(pe=typeof we=="string"?this._availableMarkerTypes.find(function(ze){return ze.typeName===we}):we)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(pe),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(pe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ze){return ze(new tn(De,De._currentMarker))}))},Be.prototype.markerCreated=function(we){var pe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(we),this.setCurrentMarker(we),we instanceof Qt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Qt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(De){return De(new tn(pe,pe._currentMarker))})},Be.prototype.colorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=we,this.settings.defaultStrokeColor=we)},Be.prototype.fillColorChanged=function(we){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=we)},Be.prototype.markerStateChanged=function(we){var pe=this;this.eventListeners.markerchange.forEach(function(De){return De(new tn(pe,we))})},Be.prototype.setCurrentMarker=function(we){var pe=this;this._currentMarker!==we&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(De){return De(new tn(pe,pe._currentMarker))})),this._currentMarker=we,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(De){return De(new tn(pe,pe._currentMarker))}))},Be.prototype.onPointerDown=function(we){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||we.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var pe=this.markers.find(function(De){return De.ownsTarget(we.target)});pe!==void 0?(this.setCurrentMarker(pe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:we.clientX,y:we.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(we.clientX,we.clientY))},Be.prototype.onDblClick=function(we){if(this._isFocused||this.focus(),this.mode==="select"){var pe=this.markers.find(function(De){return De.ownsTarget(we.target)});pe!==void 0&&pe!==this._currentMarker&&this.setCurrentMarker(pe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(we.clientX,we.clientY),we.target):this.setCurrentMarker()}},Be.prototype.onPointerMove=function(we){this.touchPoints!==1&&we.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||we.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(we.clientX,we.clientY)):this.zoomLevel>1&&this.panTo({x:we.clientX,y:we.clientY}))},Be.prototype.onPointerUp=function(we){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(we.clientX,we.clientY)),this.isDragging=!1,this.addUndoStep()},Be.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Be.prototype.onKeyUp=function(we){this._currentMarker===void 0||this.notesArea!==void 0||we.key!=="Delete"&&we.key!=="Backspace"||this.deleteSelectedMarker()},Be.prototype.clientToLocalCoordinates=function(we,pe){var De=this.markerImage.getBoundingClientRect();return{x:(we-De.left)/this.zoomLevel,y:(pe-De.top)/this.zoomLevel}},Be.prototype.onWindowResize=function(){this.positionUI()},Be.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var we=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=we+"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()},Be.prototype.addLicenseKey=function(we){ct.addKey(we)},Be.prototype.addEventListener=function(we,pe){this.eventListeners.addEventListener(we,pe)},Be.prototype.removeEventListener=function(we,pe){this.eventListeners.removeEventListener(we,pe)},Be.prototype.renderState=function(we){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(we),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Be.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Be.prototype.focus=function(){var we=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(pe){return pe(new ci(we))}))},Be.prototype.blur=function(){var we=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(pe){return pe(new ci(we))}))},Be.instanceCounter=0,Be}(),Je=ye(70635),Gt=ye(58130),At=(Be,we,pe)=>new Promise((De,ze)=>{var Le=En=>{try{Ut(pe.next(En))}catch(rn){ze(rn)}},nt=En=>{try{Ut(pe.throw(En))}catch(rn){ze(rn)}},Ut=En=>En.done?De(En.value):Promise.resolve(En.value).then(Le,nt);Ut((pe=pe.apply(Be,we)).next())}),Ge=({data:Be,className:we,fullWidth:pe,style:De={},onClose:ze,onOk:Le,showFullTools:nt,noAssociationId:Ut})=>{const En=(0,Se.useRef)(null),rn=(0,Se.useRef)(null),vn=(0,Se.useRef)(null),mi=(0,Se.useRef)(null),[wi,Ri]=(0,Se.useState)(!1),[Wi,Mn]=(0,Se.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Se.useEffect)(()=>{vn.current||(vn.current=document.createElement("style"),document.head.appendChild(vn.current)),Be!=null&&Be.visible?(document.body.setAttribute("data-custom","y-hidden"),vn.current.innerHTML=" html { overflow-y: hidden; }",Be!=null&&Be.src&&nr()):(document.body.removeAttribute("data-custom"),vn.current&&(document.head.removeChild(vn.current),vn.current=null))},[Be==null?void 0:Be.visible]);const nr=()=>At(void 0,null,function*(){Ri(!0),Mn("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Fr=yield(0,Gt.ZJ)(Be==null?void 0:Be.src);En.current.src="",En.current.src=Fr,En.current.onload=function(){Tr()},Ri(!1),Mn("")}),Wr=Fr=>At(void 0,null,function*(){Ri(!0),Mn("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Yr=yield(0,Je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Be.title,file:Fr.dataUrl}});Yr!=null&&Yr.id&&!Ut?(yield(0,Je.ZP)(`/api/attachments/${Be.id}/add_subitem.json`,{method:"post",body:{subitem_id:Yr==null?void 0:Yr.id,settings:JSON.stringify(Fr.state)}})).status===0&&Le():Yr!=null&&Yr.id&&Le(Yr),Ri(!1),Mn("")}),Hr=()=>{const Fr=document.querySelector('a[href="https://markerjs.com/"]');Fr&&Fr.parentNode&&(Fr.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(Kr=>{const ar=document.querySelector(Kr.name);ar&&ar.setAttribute("title",Kr.title)})},Tr=()=>{rn.current=new ft(En.current),rn.current.targetRoot=mi.current,rn.current.addEventListener("render",Wr),rn.current.addEventListener("beforeclose",ze),nt&&(rn.current.availableMarkerTypes=rn.current.ALL_MARKER_TYPES,rn.current.uiStyleSettings.redoButtonVisible=!0,rn.current.uiStyleSettings.notesButtonVisible=!0,rn.current.uiStyleSettings.zoomButtonVisible=!0,rn.current.uiStyleSettings.zoomOutButtonVisible=!0,rn.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=rn.current.uiStyleSettings,rn.current.show(),Be!=null&&Be.snapshotData&&rn.current.restoreState(Be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Hr()},300)};return Se.createElement(Se.Fragment,null,(Be==null?void 0:Be.visible)&&Se.createElement(_e.Z,{spinning:wi,tip:Wi,style:{position:"absolute"}},Se.createElement("div",{ref:mi,className:Rt()(Oe.imageDimensions,we,pe?Oe.fullWidth:""),style:De},Se.createElement("img",{className:Oe.img,ref:En}))))}},75890:function(Rn,Fn,ye){"use strict";var Se=ye(59301),Oe=ye(95237),He=ye(43604),Rt=ye(99313),_e=ye(3113),vt=ye(25711),ke=ye(93938),Tt=ye(48136),Lt=ye(59301);const et=(0,Se.forwardRef)(({callback:gt,showSaveButton:ct,value:wt=""},Me)=>{const te=(0,Se.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=be=>{te.current.setValue(te.current.getValue()+" "+be.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Lt.createElement(Oe.Z,{className:ke.Z.lists,gutter:[10,10]},ne.map((be,Fe)=>Lt.createElement(He.Z,{flex:"110px",className:ke.Z.item},Lt.createElement("div",null,Lt.createElement(vt.Z,{value:`$$${be.value}$$`}),be.name),Lt.createElement("div",{className:ke.Z.children},be.children.map((Pe,Ie)=>Lt.createElement("div",{key:Ie},Lt.createElement("h1",null,Pe.name),Lt.createElement(Oe.Z,{gutter:[10,10]},Pe.data.map((We,Ke)=>Lt.createElement(He.Z,{key:Ke,onClick:()=>se(We),className:ke.Z.diamond},Lt.createElement(vt.Z,{value:"`$$"+We.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Lt.createElement(Oe.Z,{className:ke.Z.lists,gutter:[10,10]},ce.map((be,Fe)=>Lt.createElement(He.Z,{flex:"110px",className:ke.Z.item},Lt.createElement("div",null,Lt.createElement(vt.Z,{value:"`$$"+be.value+"$$`"}),be.name),Lt.createElement("div",{className:ke.Z.children},be.children.map((Pe,Ie)=>Lt.createElement("div",{key:Ie},Pe.name&&Lt.createElement("h1",null,Pe.name),Lt.createElement(Oe.Z,{gutter:[10,10]},Pe.data.map((We,Ke)=>Lt.createElement(He.Z,{key:Ke,onClick:()=>se(We),className:ke.Z.diamond},Lt.createElement(vt.Z,{value:"`$$"+We.value+"$$`"}))))))))))}],ve=()=>{var be=document.createElement("div");be.innerHTML=te.current.getValue();var Fe=be.innerText;return gt&>(Fe),Fe};return(0,Se.useImperativeHandle)(Me,()=>({getData:ve})),Lt.createElement("div",{className:ke.Z.mathWrap},Lt.createElement(Rt.default,{defaultActiveKey:"1",items:ge}),Lt.createElement("math-field",{locale:"zh_cn",className:ke.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:te,style:{width:800,marginTop:30,fontSize:18}},wt||""),ct&&Lt.createElement("div",{className:ke.Z.button},Lt.createElement(_e.ZP,{size:"large",onClick:ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Fn.Z=et},97267:function(Rn,Fn,ye){"use strict";var Se=ye(59301),Oe=ye(93314),He=ye(3113),Rt=Object.defineProperty,_e=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,et=(Me,te,ne)=>te in Me?Rt(Me,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Me[te]=ne,gt=(Me,te)=>{for(var ne in te||(te={}))Tt.call(te,ne)&&et(Me,ne,te[ne]);if(ke)for(var ne of ke(te))Lt.call(te,ne)&&et(Me,ne,te[ne]);return Me},ct=(Me,te)=>_e(Me,vt(te));const wt=({img:Me,buttonProps:te={},styles:ne={},customText:ce,ButtonText:se,ButtonClick:ge,Buttonclass:ve,ButtonTwo:be,imgStyles:Fe,loading:Pe=!1})=>Se.createElement("section",{className:"tc animated fadeIn",style:gt(gt({},{color:"#999",margin:"100px auto",visibility:Pe?"hidden":"visible"}),ne)},Se.createElement("img",{src:Me||Oe,style:ct(gt({},Fe),{pointerEvents:"none",userSelect:"none"})}),Se.createElement("p",{className:"mt20 font14"},ce||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&Se.createElement(He.ZP,gt({className:ve,onClick:ge},te),se),be&&be);Fn.Z=wt},46898:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Q:function(){return vt}});var Se=ye(59301),Oe=ye(57809),He=ye(5112),Rt=ye(88897),_e=ye(59301),vt=(Tt=>(Tt[Tt.Number=1]="Number",Tt[Tt.Percent=2]="Percent",Tt))(vt||{});const ke=({value:Tt,onChange:Lt,disabled:et,hidePercentOption:gt=!1,percentType:ct="select"})=>{const wt=(0,Se.useMemo)(()=>gt?1:2,[gt]),[Me,te]=(0,Se.useState)(wt);console.log(Me);const ne=se=>Tt.type===1?`${se}\u5206`:`${se}%`,ce=(0,Se.useCallback)(se=>{if(Me===1){const ge=se.replace("\u5206","");return isNaN(parseInt(ge,10))?0:ge}else return se.replace("%","")},[Me]);return(0,Se.useEffect)(()=>{te(Tt.type)},[Tt]),_e.createElement("div",{style:{display:"flex",alignItems:"center"}},ct=="select"&&_e.createElement(Oe.default,{size:"large",onChange:se=>{te(se),Lt({type:se,inputValue:se===1?5:20})},value:Me||wt,style:{width:100},options:gt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:et}),ct=="radio"&&_e.createElement(He.ZP.Group,{size:"large",onChange:se=>{const ge=se.target.value;te(ge),Lt({type:ge,inputValue:ge===1?5:20})},value:Me||wt,disabled:et},!gt&&_e.createElement(He.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),_e.createElement(He.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),ct=="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=>{Lt({type:Me,inputValue:se})}}),ct=="radio"&&Tt.type==2&&_e.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};Fn.Z=ke},79646:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ve}});var Se=ye(59301),Oe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},He=ye(3113),Rt=ye(63093),_e=ye(48551),vt=ye(6848),ke=ye(58130),Tt=ye(79124),Lt=ye(97267),et=ye(10148),gt=ye(63486),ct=ye(59301),wt=Object.defineProperty,Me=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,ce=(be,Fe,Pe)=>Fe in be?wt(be,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):be[Fe]=Pe,se=(be,Fe)=>{for(var Pe in Fe||(Fe={}))te.call(Fe,Pe)&&ce(be,Pe,Fe[Pe]);if(Me)for(var Pe of Me(Fe))ne.call(Fe,Pe)&&ce(be,Pe,Fe[Pe]);return be},ge=(be,Fe,Pe)=>new Promise((Ie,We)=>{var Ke=Ve=>{try{ht(Pe.next(Ve))}catch(Nt){We(Nt)}},Xe=Ve=>{try{ht(Pe.throw(Ve))}catch(Nt){We(Nt)}},ht=Ve=>Ve.done?Ie(Ve.value):Promise.resolve(Ve.value).then(Ke,Xe);ht((Pe=Pe.apply(be,Fe)).next())}),ve=({editOffice:be="view",data:Fe,theme:Pe,type:Ie,filename:We,monacoEditor:Ke,className:Xe,style:ht,close:Ve,onClose:Nt,hasMask:qe,disabledDownload:Ht,onImgDimensions:Zt,showNodata:Yt,recordInfo:Ot})=>{const[Qt,dt]=(0,Se.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Re,Mt]=(0,Se.useState)(""),[Pn,mn]=(0,Se.useState)(),kt=window.ENV==="build"?"/react/build":"",_t=location.host.startsWith("localhost")?et.Z.PROXY_SERVER:et.Z.API_SERVER,Bn=10*(1024*1024),wn=(0,Se.useRef)();Fe!=null&&Fe.startsWith("/api")&&Ie!=="txt"&&(Fe=et.Z.API_SERVER+Fe);const Kn=ci=>ci.substring(ci.lastIndexOf("/")+1).split(".").pop();We&&Ke&&(Ke.filename=We),(0,Se.useEffect)(()=>{var ci,Tn;const tn=(Tn=(ci=document.cookie)==null?void 0:ci.replace(/\s/g,""))==null?void 0:Tn.split(";");tn==null||tn.map($t=>{let ft=$t.split("=");ft[0]==="_educoder_session"&&Mt(ft[1])})},[]),(0,Se.useEffect)(()=>{Ie==="office"&&(Fe.indexOf("bigfilescdn.")>-1||Fe.indexOf("bigfiles1")>-1?mn({url:Fe,fileType:Kn(Fe),model:Fe.indexOf("model=edit")?"edit":"view"}):yt())},[Ie,Fe]);const yt=()=>ge(void 0,null,function*(){console.log("data:",Fe);let ci=Fe;Fe.startsWith("http")||(ci=location.origin+ci);let Tn=new URL(ci).pathname.split("/").pop();const tn=yield(0,Tt.gJ)({attachment_id:Tn});tn.url=_t+tn.url,mn(tn)}),Jn=()=>{if(Fe.startsWith("http")||Fe.startsWith("blob:")){bn();return}(0,ke.Sv)(We||"educoder",Fe,We)},bn=()=>{Ot&&(0,gt.fc)({id:Ot==null?void 0:Ot.id,watch_type:1,course_id:Ot==null?void 0:Ot.course_id}),(0,ke.Nd)(We||"educoder",decodeURIComponent(Fe))};return ct.createElement("div",{style:se({},ht||{}),className:`${qe&&Oe.bgBlack} ${Ie?Oe.wrp:"hide"}`},Ve&&ct.createElement("div",{className:Oe.close,ref:wn},!!Zt&&ct.createElement(vt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>wn.current},ct.createElement("span",{onClick:()=>{Nt(),Zt()}},ct.createElement("i",{className:"icon-yulanpizhu"}))),!Ht&&ct.createElement(vt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>wn.current},ct.createElement("span",{onClick:bn},ct.createElement("i",{className:"icon-quxiaozhiding"}))),ct.createElement(vt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>wn.current},ct.createElement("span",{className:"",onClick:Nt},ct.createElement("i",{className:"icon-guanbi1"})))),ct.createElement("div",{className:`${Oe[Xe]} ${Xe} ${Oe.monaco} ${Ie==="txt"?"show":"hide"}`},Ie==="txt"&&ct.createElement(ct.Fragment,null,ct.createElement(_e.ZP,se({},Ke)))),Ie==="audio"&&ct.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"&&ct.createElement(ct.Fragment,null,(Fe==null?void 0:Fe.indexOf("http"))>-1?ct.createElement("video",{controls:!0,src:`${Fe}`,autoPlay:!0}):ct.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Fe}`,autoPlay:!0})),Ie==="office"&&Pn&&ct.createElement("iframe",{src:`${kt}/office.html?key=${Pn.key}&url=${btoa(Pn.url)}&callbackUrl=${_t+(Pn.callbackUrl||"")}&fileType=${Pn.fileType}&title=${Pn.title||""}&model=${be}&officeServer=${et.Z.ONLYOFFICE}&disabledDownload=${!!Ht}`}),Ie==="html"&&ct.createElement("iframe",{src:Fe+"&disposition=inline"}),Ie==="pdf"&&ct.createElement("iframe",{src:`${kt}/js/pdfview/index.html?filename=${We||"educoder.pdf"}&url=${encodeURIComponent(Fe)}&disabledDownload=${!!Ht}`}),Ie==="image"&&ct.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")&&ct.createElement(ct.Fragment,null,Yt?ct.createElement(Lt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ct.createElement(He.ZP,{icon:ct.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Jn,disabled:Ht},"\u4E0B\u8F7D")}):ct.createElement(He.ZP,{type:"primary",size:"middle",onClick:Jn,disabled:Ht},ct.createElement(Rt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(Rn,Fn,ye){"use strict";ye.d(Fn,{z:function(){return Ie},Z:function(){return We}});var Se=ye(59301),Oe=ye(1751),He=ye(31087),Rt=ye(64018),_e=ye(37312),vt=ye(10148),ke=ye(58130),Tt=ye(15342),Lt=ye(1012),et=ye(79646),gt=ye(59301),wt=({html:Ke})=>{const Xe=(0,Se.useRef)(null),ht=(0,Se.useRef)(null),Ve=`.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,Se.useEffect)(()=>{const Nt=Xe.current.attachShadow({mode:"open"});ht.current=document.createElement("div"),ht.current.className="markdown-body",ht.current.innerHTML=Ke,Nt.appendChild(ht.current);const qe=document.createElement("style");return qe.textContent=Ve,Nt.appendChild(qe),()=>{Nt.innerHTML=""}},[]),(0,Se.useEffect)(()=>{ht.current&&(ht.current.innerHTML=Ke)},[Ke]),gt.createElement("div",{ref:Xe})},Me=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,se=(Ke,Xe,ht)=>Xe in Ke?Me(Ke,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Ke[Xe]=ht,ge=(Ke,Xe)=>{for(var ht in Xe||(Xe={}))ne.call(Xe,ht)&&se(Ke,ht,Xe[ht]);if(te)for(var ht of te(Xe))ce.call(Xe,ht)&&se(Ke,ht,Xe[ht]);return Ke};const ve="@\u2581\u2581@",be="@\u2581@",Fe=/<pre[^>]*>/g;function Pe(Ke){let Xe=document.createElement("div");return Xe.innerHTML=Ke,Xe.childNodes.length===0?"":Xe.childNodes[0].nodeValue}const Ie=(Ke,Xe)=>{Ke=Ke||"";const ht=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ve=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Nt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,qe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Xe?Ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ht,(Ht,Zt,Yt,Ot,Qt,dt,Re)=>{const Mt=Zt||Ot||dt,Pn=Yt||Qt||Re||"?";return vt.Z.API_SERVER+"/api/attachments/"+Mt+Pn+"&t="+(0,ke.Jn)(Mt,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ke=Ke.replace(qe,(Ht,Zt,Yt,Ot,Qt,dt,Re)=>{const Mt=Zt||Ot||dt,Pn=Yt||Qt||Re||"?";return vt.Z.API_SERVER+"/attachments/download/"+Mt+Pn+"&t="+(0,ke.Jn)(Mt,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replace(ht,(Ht,Zt,Yt,Ot,Qt,dt,Re)=>{const Mt=Zt||Ot||dt,Pn=Yt||Qt||Re||"?";return vt.Z.API_SERVER+"/api/attachments/"+Mt+Pn+"&t="+(0,ke.Jn)(Mt,Date.now())+(Ht.indexOf(")")>-1?")":"&")}).replace(Ve,(Ht,Zt,Yt,Ot,Qt)=>{const dt=Zt||Ot,Re=Yt||Qt||"";return'"'+vt.Z.API_SERVER+"/api/attachments/"+dt+Re+dt+Re+"&t="+(0,ke.Jn)(dt,Date.now())}).replace(Nt,(Ht,Zt,Yt,Ot,Qt)=>{const dt=Zt||Ot,Re=Yt||Qt||"";return"("+vt.Z.API_SERVER+"/files/uploads/"+dt+Re+dt+Re+"&t="+(0,ke.Jn)(dt,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 We=({value:Ke="",className:Xe,showTextOnly:ht,showLines:Ve,style:Nt={},stylesPrev:qe={},highlightKeywords:Ht,showProgramFill:Zt,isProgramFill:Yt,disabledFill:Ot=!1,programFillValue:Qt,onFillChange:dt=Pn=>{},onFillBlur:Re=()=>{},onFillFocus:Mt=()=>{}})=>{let Pn=String(Ke);const[mn,kt]=(0,Se.useState)(""),[_t,ln]=(0,Se.useState)("office"),[Bn,wn]=(0,Se.useState)([]),Kn=(0,Se.useRef)("a"+(0,Lt.Z)()),yt={},Jn=(Be,we,pe)=>{const De=document.createElement(Be===be?"input":"textarea");De.style.width="100%",De.style.height=Be===be?"40px":"151px",De.rows=5,De.spellcheck=!1,De.name="edu-program-fill",De.placeholder="\u8BF7\u8F93\u5165",De.dataset.id=we;const ze=Object.keys(yt).length;return yt[ze]=De,`<span class="edu-program-fill-wrap ${Be===be?"":"show"}" style="width:${Be===be?"400px":"100%"}" title=${pe||""}><span>${De.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function bn(Be){return Be=Be.replace(/!\[.*?\]\(.*?\)/g,""),Be=Be.replace(/\[.*?\]\(.*?\)/g,""),Be=Be.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Be=Be.replace(/<embed.*?>/g,""),Be=Be.replace(/<img.*?>/g,""),Be=Be.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Be=Be.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Be=Be.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Be=Be.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Be}const ci=Be=>Be.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(we,pe){let De=pe.replace(/(\n|\r)/g,"").split("}"),ze=[];return De.map(Le=>{Le!=""&&ze.push(`.${Kn.current} ${Le}`)}),`<style>${ze.join("}")}</style>`}),Tn=(0,Se.useMemo)(()=>{try{const De=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ze=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Le=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,nt=/\(\/attachments\/download\//g;Pn=Pn.replace(nt,"("+vt.Z.API_SERVER+"/attachments/download/").replace(De,"("+vt.Z.API_SERVER+"/api/attachments/").replace(ze,'"'+vt.Z.API_SERVER+"/api/attachments/").replace(Le,'"'+vt.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(De){}if(Zt){let De=-1;return Pn=Pn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ze,Le,nt){var Ut;return++De,Jn(ze,De,(Ut=Qt==null?void 0:Qt[De])==null?void 0:Ut.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ci(Pn||"")}</pre>`}let Be=ci(Pn);Be=(0,He.ZP)(Be);const we=(0,He.ez)();Pn.match(/\[TOC\]/)&&(Be=Be.replace("<p>[TOC]</p>",(0,He.Qv)()),(0,He.Iy)()),Be=Be.replace(/(__special_katext_id_\d+__)/g,(De,ze)=>{const{type:Le,expression:nt}=we[ze];return(0,Tt.renderToString)(Pe(nt)||"",{displayMode:Le==="block",throwOnError:!1,output:"html"})}),Be=Be.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,He.AL)();const pe=document.createElement("div");if(pe.innerHTML=Be,ht)return pe.innerText;if(Ht){const De=Ht.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Je(pe,De),pe.innerHTML}return setTimeout(()=>lt(),500),pe.innerHTML},[Pn,Ht]);(0,Se.useEffect)(()=>{Gt.current&&Gt.current.querySelectorAll(["input","textarea"]).forEach(we=>{we.oninput=tn,we.onblur=$t,we.onfocus=ft})},[Bn]),(0,Se.useEffect)(()=>{var Be,we,pe,De,ze;if(Qt!=null&&Qt.length)try{const Le=Gt.current.querySelectorAll(".edu-program-fill-score"),nt=Gt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ut,En]of nt.entries())En.value=((Be=Qt==null?void 0:Qt[Ut])==null?void 0:Be.value)||"",((we=Qt==null?void 0:Qt[Ut])==null?void 0:we.type)==="warning"?En.className="program-fill-warning":((pe=Qt==null?void 0:Qt[Ut])==null?void 0:pe.type)==="success"?En.className="program-fill-success":En.className="";for(const[Ut,En]of Le.entries())En.innerHTML=(De=Qt==null?void 0:Qt[Ut])!=null&&De.score?`${(ze=Qt==null?void 0:Qt[Ut])==null?void 0:ze.score}\u5206`:"";wn(Qt)}catch(Le){console.log(Le,"error")}},[Qt]);const tn=Be=>{Bn[Be.target.dataset.id]=Bn[Be.target.dataset.id]||{},Bn[Be.target.dataset.id].value=Be.target.value,wn([...Bn]),dt(Bn,Be.target.dataset.id)},$t=Be=>{Bn[Be.target.dataset.id]=Bn[Be.target.dataset.id]||{},Bn[Be.target.dataset.id].value=Be.target.value,wn([...Bn]),Re(Bn,Be.target.dataset.id)},ft=Be=>{Bn[Be.target.dataset.id]=Bn[Be.target.dataset.id]||{},Bn[Be.target.dataset.id].value=Be.target.value,wn([...Bn]),Mt(Bn,Be.target.dataset.id)};function Je(Be,we){return Be.childNodes.forEach(pe=>{var De;if(pe.childNodes.length>0)Je(pe,we);else if(pe.nodeName!=="IMG")if(pe.innerHTML)pe.innerHTML=(De=pe.innerHTML)==null?void 0:De.replace(new RegExp(we,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ze=document.createElement("span");ze.innerHTML=pe.textContent.replace(new RegExp(we,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),pe.replaceWith(ze)}})}const Gt=(0,Se.useRef)();He.jb.WebkitLineClamp=Ve,Ve&&(Nt=ge(ge({},Nt),He.jb));function At(Be){let we=Be.target;if(we.tagName.toUpperCase()==="A"){let pe=we.getAttribute("href");if(pe.indexOf("office")>-1)Be.preventDefault(),kt(pe),ln("office");else if(pe.indexOf("application/pdf")>-1)Be.preventDefault(),kt(pe),ln("pdf");else if(pe.indexOf("text/html")>-1)Be.preventDefault(),kt(pe),ln("html");else if(pe.startsWith("#")){Be.preventDefault();let De=document.getElementById(pe.replace("#",""));De&&De.scrollIntoView(!0)}}}const lt=()=>{var Be;const we=(Be=Gt.current)==null?void 0:Be.querySelectorAll("video");we==null||we.forEach(pe=>{if(pe.oncontextmenu=()=>!1,pe.src.indexOf(".m3u8")>-1&&!pe.canPlayType("application/vnd.apple.mpegurl")){if(_e.ZP.isSupported()){var De=new _e.ZP;De.loadSource(pe.src),De.attachMedia(pe)}}})};(0,Se.useEffect)(()=>{if(Gt.current&&Tn&&Tn.match(Fe)&&window.PR.prettyPrint(),Gt.current)return Gt.current.addEventListener("click",At),()=>{var Be;(Be=Gt.current)==null||Be.removeEventListener("click",At),(0,He.AL)(),(0,He.Iy)()}},[Tn,Gt.current,At]),(0,Se.useEffect)(()=>{var Be;const we=pe=>{pe.preventDefault(),pe.clipboardData.setData("text",window.getSelection().toString())};return(Be=Gt.current)==null||Be.addEventListener("copy",we),()=>{var pe;(pe=Gt.current)==null||pe.removeEventListener("copy",we)}},[Gt.current]);const Ge=Be=>/<style[\s\S]*?>/i.test(Be||"");return Se.createElement(Se.Fragment,null,ht&&Se.createElement("div",{ref:Gt},Tn),!ht&&!Ge(Tn)&&Se.createElement("div",{ref:Gt,style:ge({},Nt),className:`${Xe||""} ${Ot?"disabled-fill":""} markdown-body ${Kn.current}`,dangerouslySetInnerHTML:{__html:Tn}}),!ht&&Ge(Tn)&&Se.createElement(wt,{html:Tn}),Se.createElement(et.Z,{close:!0,data:mn,type:mn!=null&&mn.length?_t:"",style:ge({},qe),onClose:()=>kt("")}))}},83476:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(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=ye(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",vt=(Lt,et,gt)=>new Promise((ct,wt)=>{var Me=ce=>{try{ne(gt.next(ce))}catch(se){wt(se)}},te=ce=>{try{ne(gt.throw(ce))}catch(se){wt(se)}},ne=ce=>ce.done?ct(ce.value):Promise.resolve(ce.value).then(Me,te);ne((gt=gt.apply(Lt,et)).next())}),Tt=({type:Lt,resdata:et,onok:gt,oktext:ct,okloading:wt})=>{const[Me,te]=(0,Se.useState)(!1),{can_copy_list:ne,can_copy_num:ce,challenge_type:se,course_data_list:ge,no_copy_list:ve,no_copy_num:be,no_use_list:Fe,no_use_num:Pe,repeat_shixun_num:Ie,student_count:We,total_num:Ke,use_num:Xe}=et;let ht=ce>0||Lt==="exercise";(0,Se.useEffect)(()=>{(et==null?void 0:et.student_count)>0&&te(!0)},[et]),console.log("---11",wt),(0,Se.useEffect)(()=>{wt||te(!1)},[wt]);const Ve=()=>{if(Lt==="exercise"&&se===1)return Se.createElement(Se.Fragment,null,"\u8BFE\u5802\u5185\u6709",Se.createElement("span",{className:Oe.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Se.createElement("span",{className:Oe.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Se.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(Lt==="exercise"&&se===2)return Se.createElement(Se.Fragment,null,"\u8BFE\u5802\u5185\u6709",Se.createElement("span",{className:Oe.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Se.createElement("span",{className:Oe.orangeColor},Xe),"\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",Se.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(Lt==="shixun"&&se===1)return Se.createElement(Se.Fragment,null,"\u8BFE\u5802\u5185\u6709",Se.createElement("span",{className:Oe.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",Se.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(Lt==="shixun"&&se===2)return Se.createElement(Se.Fragment,null,"\u8BFE\u5802\u5185\u6709",Se.createElement("span",{className:Oe.orangeColor},We),"\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",Se.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(Lt==="subject"&&se===1)return Se.createElement(Se.Fragment,null,"\u8BFE\u5802\u5185\u6709",Se.createElement("span",{className:Oe.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Se.createElement("span",{className:Oe.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Se.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(Lt==="subject"&&se===2)return Se.createElement(Se.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",Se.createElement("span",{className:Oe.orangeColor},We)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",Se.createElement("span",{className:Oe.orangeColor},Xe)," \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",Se.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(Lt==="exercisepush")return Se.createElement(Se.Fragment,null,"\u8BFE\u5802\u5185\u6709",Se.createElement("span",{className:Oe.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",Se.createElement("span",{className:Oe.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",Se.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(Lt==="shixunpush"&&se===1)return Se.createElement(Se.Fragment,null,"\u8BFE\u5802\u5185\u6709",Se.createElement("span",{className:Oe.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",Se.createElement("span",{className:Oe.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",Se.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(Lt==="shixunpush"&&se===2)return Se.createElement(Se.Fragment,null,"\u8BFE\u5802\u5185\u6709",Se.createElement("span",{className:Oe.orangeColor},We),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",Se.createElement("span",{className:Oe.orangeColor},Xe),"\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",Se.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"))},Nt=()=>{if(Lt==="exercise"||Lt==="subject"||Lt==="exercisepush"||Lt==="shixunpush")return Se.createElement("div",{style:{marginTop:20}},be>0&&Se.createElement("div",null,Se.createElement("span",{className:Oe.flex},Se.createElement("img",{src:_e,style:{width:14}}),Se.createElement("span",{className:Oe.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),Se.createElement("div",{className:Oe.statusbody},Lt==="exercise"&&Se.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Se.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"),(Lt==="subject"||Lt==="exercisepush")&&Se.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ht&&Se.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"),Lt==="shixunpush"&&Se.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ht&&Se.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"),Se.createElement("div",null,ve==null?void 0:ve.map((qe,Ht)=>Se.createElement("a",{href:`/shixuns/${qe.identifier}/challenges`,target:"_blank"},"\u300A",qe==null?void 0:qe.name,"\u300B",Ht+1!==be&&"\u3001"))))),ce>0&&Se.createElement("div",{style:{marginTop:20}},Se.createElement("span",{className:Oe.flex},Se.createElement("img",{src:Rt,style:{width:14}}),Se.createElement("span",{className:Oe.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),Se.createElement("div",{className:Oe.statusbody},Lt==="exercise"&&Se.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"),(Lt==="subject"||Lt==="exercisepush")&&Se.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"),Lt==="shixunpush"&&Se.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"),Se.createElement("div",null,ne==null?void 0:ne.map((qe,Ht)=>Se.createElement("a",{href:`/shixuns/${qe.identifier}/challenges`,target:"_blank"},"\u300A",qe==null?void 0:qe.name,"\u300B",Ht+1!==ce&&"\u3001"))))));if(Lt==="shixun")return Se.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 Se.createElement(He.default,{open:Me,onCancel:()=>{te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ht&&"none"}},zIndex:1003,confirmLoading:wt,okText:ht?ct:"\u6211\u77E5\u9053\u4E86",onOk:()=>vt(void 0,null,function*(){ht?yield gt([...ne,...Fe]):te(!1)})},Se.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Ve(),Nt()))}},36866:function(Rn,Fn,ye){"use strict";ye.d(Fn,{h:function(){return be},Z:function(){return ve}});var Se=ye(59301),Oe=ye(57809),He=ye(78241),Rt=ye(3113),_e=ye(89780),vt=ye.n(_e),ke=ye(79906),Tt=Object.defineProperty,Lt=Object.defineProperties,et=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Me=(Fe,Pe,Ie)=>Pe in Fe?Tt(Fe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Fe[Pe]=Ie,te=(Fe,Pe)=>{for(var Ie in Pe||(Pe={}))ct.call(Pe,Ie)&&Me(Fe,Ie,Pe[Ie]);if(gt)for(var Ie of gt(Pe))wt.call(Pe,Ie)&&Me(Fe,Ie,Pe[Ie]);return Fe},ne=(Fe,Pe)=>Lt(Fe,et(Pe));const ce=Oe.default.Option,se={labelCol:{span:4},wrapperCol:{span:20}},ge={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var ve=({callback:Fe,onCancel:Pe})=>{const[Ie,We]=(0,Se.useState)("python");function Ke(ht){We(ge[ht][1])}function Xe(ht){Fe(ht)}return Se.createElement(He.default,ne(te({},se),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),Se.createElement(He.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Se.createElement(Oe.default,{getPopupContainer:ht=>ht.parentNode,onChange:Ke},Object.keys(ge).map(ht=>Se.createElement(ce,{key:ht,value:ht},ge[ht][0])))),Se.createElement(He.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Se.createElement(be,{mode:Ie})),Se.createElement("div",{className:"flex-container flex-end"},Se.createElement(Rt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Se.createElement(Rt.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))};function be({value:Fe,onChange:Pe,mode:Ie,options:We={}}){const Ke=(0,Se.useRef)(),[Xe,ht]=(0,Se.useState)();return(0,Se.useEffect)(()=>{if(Xe){let Ve=function(Nt){const qe=Nt.getValue();Pe&&Pe(qe)};return Xe.on("change",Ve),()=>{Xe.off("change",Ve)}}},[Xe,Pe]),(0,Se.useEffect)(()=>{Xe&&Xe.setOption("mode",Ie)},[Xe,Ie]),(0,Se.useEffect)(()=>{Xe&&(Fe!==Xe.getValue()||Fe==="")&&setTimeout(()=>{Xe.setValue(Fe||"")},300)},[Xe,Fe]),(0,Se.useEffect)(()=>{if(Ke.current&&!Xe){const Ve=vt().fromTextArea(Ke.current,te({mode:Ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},We));ht(Ve)}},[Ke.current,Xe]),Se.createElement("div",{className:"my-codemirror-container"},Se.createElement("textarea",{ref:Ke}))}},23469:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return on}});var Se=ye(59301),Oe=ye(89780),He=ye.n(Oe),Rt=ye(76374),_e=ye(79906),vt=ye(6313),ke=ye(25717),Tt=ye(99498),Lt=ye(25419),et=ye(67549),gt=ye(25711),ct=({value:mt="",className:Pt,showTextOnly:bt,showLines:tt,style:qt={}})=>{const dn=(0,Se.useMemo)(()=>"",[mt]);return Se.createElement(Se.Fragment,null,Se.createElement("div",{dangerouslySetInnerHTML:{__html:dn}}))},wt=ye(59301),Me=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ve=(mt,Pt,bt)=>Pt in mt?Me(mt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):mt[Pt]=bt,be=(mt,Pt)=>{for(var bt in Pt||(Pt={}))se.call(Pt,bt)&&ve(mt,bt,Pt[bt]);if(ce)for(var bt of ce(Pt))ge.call(Pt,bt)&&ve(mt,bt,Pt[bt]);return mt},Fe=(mt,Pt)=>te(mt,ne(Pt));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:mt,title:Pt,icon:bt,actionName:tt,className:qt="",children:dn}){function xt(){mt(tt)}return wt.createElement("a",{title:Pt,className:qt,onClick:xt},wt.createElement("i",{className:`${bt}`}),dn)}var We=({watch:mt,showNullButton:Pt,showNullProgramButton:bt,onActionCallback:tt,fullScreen:qt,insertTemp:dn,hidetoolBar:xt,extraUse:Ye})=>{const an=[...Pe,{title:`${mt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${mt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return wt.createElement("ul",{className:"markdown-toolbar-container"},!xt&&an.map((Bt,jn)=>wt.createElement("li",{key:jn},Bt.actionName?wt.createElement(Ie,Fe(be({},Bt),{onActionCallback:tt})):wt.createElement("span",{className:"v-line"}))),Pt?wt.createElement("li",null,wt.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:tt},wt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,bt?wt.createElement(wt.Fragment,null,wt.createElement("li",null,wt.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:tt},wt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),wt.createElement("li",null,wt.createElement(Ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:tt},wt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,dn&&wt.createElement("li",null,wt.createElement(Ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${dn}`,onActionCallback:tt},wt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ye&&wt.createElement("li",null,Ye),wt.createElement("li",{className:"btn-full-screen"},wt.createElement(Ie,{icon:`${qt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:qt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:tt})))},Ke=ye(50474),Xe=ye(78241),ht=ye(92832),Ve=ye(3113),Nt=Object.defineProperty,qe=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Qt=(mt,Pt,bt)=>Pt in mt?Nt(mt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:bt}):mt[Pt]=bt,dt=(mt,Pt)=>{for(var bt in Pt||(Pt={}))Yt.call(Pt,bt)&&Qt(mt,bt,Pt[bt]);if(Zt)for(var bt of Zt(Pt))Ot.call(Pt,bt)&&Qt(mt,bt,Pt[bt]);return mt},Re=(mt,Pt)=>qe(mt,Ht(Pt));const Mt={labelCol:{span:4},wrapperCol:{span:20}};var Pn=({callback:mt,onCancel:Pt})=>{function bt(tt){mt(tt)}return Se.createElement(Xe.default,Re(dt({},Mt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:bt,style:{width:500}}),Se.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Se.createElement(ht.default,null)),Se.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Se.createElement(ht.default,null)),Se.createElement("div",{className:"flex-container flex-end"},Se.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Se.createElement(Ve.ZP,{type:"ghost",onClick:Pt},"\u53D6\u6D88")))},mn=ye(36866),kt=ye(56701),_t=ye(43418),ln=ye(95237),Bn=ye(65983),wn=ye(59301),Kn=({callback:mt,onCancel:Pt})=>{const bt=document.createElement("canvas"),tt=bt.getContext("2d");bt.width=1e3,bt.height=800,tt.fillStyle="#ffffff",tt.fillRect(0,0,bt.width,bt.height);const qt=bt.toDataURL("image/png");return wn.createElement(_t.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},wn.createElement(ln.Z,{style:{height:"100vh"}},wn.createElement(Bn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:qt,visible:!0,title:String(Date.now())},onOk:dn=>{mt({src:dn.url})},onClose:Pt})))},yt=ye(12378);function Jn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Jn,go.CommandHandler),Jn.prototype.canAlignSelection=function(){var mt=this.diagram;return!(mt===null||mt.isReadOnly||mt.isModelReadOnly||mt.selection.count<2)},Jn.prototype.alignLeft=function(){var mt=this.diagram;mt.startTransaction("aligning left");var Pt=1/0;mt.selection.each(function(bt){bt instanceof go.Link||(Pt=Math.min(bt.position.x,Pt))}),mt.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(Pt,bt.position.y))}),mt.commitTransaction("aligning left")},Jn.prototype.alignRight=function(){var mt=this.diagram;mt.startTransaction("aligning right");var Pt=-1/0;mt.selection.each(function(bt){if(!(bt instanceof go.Link)){var tt=bt.actualBounds.x+bt.actualBounds.width;Pt=Math.max(tt,Pt)}}),mt.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(Pt-bt.actualBounds.width,bt.position.y))}),mt.commitTransaction("aligning right")},Jn.prototype.alignTop=function(){var mt=this.diagram;mt.startTransaction("alignTop");var Pt=1/0;mt.selection.each(function(bt){bt instanceof go.Link||(Pt=Math.min(bt.position.y,Pt))}),mt.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(bt.position.x,Pt))}),mt.commitTransaction("alignTop")},Jn.prototype.alignBottom=function(){var mt=this.diagram;mt.startTransaction("aligning bottom");var Pt=-1/0;mt.selection.each(function(bt){if(!(bt instanceof go.Link)){var tt=bt.actualBounds.y+bt.actualBounds.height;Pt=Math.max(tt,Pt)}}),mt.selection.each(function(bt){bt instanceof go.Link||bt.move(new go.Point(bt.actualBounds.x,Pt-bt.actualBounds.height))}),mt.commitTransaction("aligning bottom")},Jn.prototype.alignCenterX=function(){var mt=this.diagram,Pt=mt.selection.first();if(Pt){mt.startTransaction("aligning Center X");var bt=Pt.actualBounds.x+Pt.actualBounds.width/2;mt.selection.each(function(tt){tt instanceof go.Link||tt.move(new go.Point(bt-tt.actualBounds.width/2,tt.actualBounds.y))}),mt.commitTransaction("aligning Center X")}},Jn.prototype.alignCenterY=function(){var mt=this.diagram,Pt=mt.selection.first();if(Pt){mt.startTransaction("aligning Center Y");var bt=Pt.actualBounds.y+Pt.actualBounds.height/2;mt.selection.each(function(tt){tt instanceof go.Link||tt.move(new go.Point(tt.actualBounds.x,bt-tt.actualBounds.height/2))}),mt.commitTransaction("aligning Center Y")}},Jn.prototype.alignColumn=function(mt){var Pt=this.diagram;Pt.startTransaction("align Column"),mt===void 0&&(mt=0),mt=parseFloat(mt);var bt=new Array;Pt.selection.each(function(Ye){Ye instanceof go.Link||bt.push(Ye)});for(var tt=0;tt<bt.length-1;tt++){var qt=bt[tt],dn=qt.actualBounds.y+qt.actualBounds.height+mt,xt=bt[tt+1];xt.move(new go.Point(qt.actualBounds.x,dn))}Pt.commitTransaction("align Column")},Jn.prototype.alignRow=function(mt){mt===void 0&&(mt=0),mt=parseFloat(mt);var Pt=this.diagram;Pt.startTransaction("align Row");var bt=new Array;Pt.selection.each(function(Ye){Ye instanceof go.Link||bt.push(Ye)});for(var tt=0;tt<bt.length-1;tt++){var qt=bt[tt],dn=qt.actualBounds.x+qt.actualBounds.width+mt,xt=bt[tt+1];xt.move(new go.Point(dn,qt.actualBounds.y))}Pt.commitTransaction("align Row")},Jn.prototype.canRotate=function(mt){var Pt=this.diagram;return!(Pt===null||Pt.isReadOnly||Pt.isModelReadOnly||Pt.selection.count<1)},Jn.prototype.rotate=function(mt){mt===void 0&&(mt=90);var Pt=this.diagram;Pt.startTransaction("rotate "+mt.toString());var Pt=this.diagram;Pt.selection.each(function(bt){bt instanceof go.Link||bt instanceof go.Group||(bt.angle+=mt)}),Pt.commitTransaction("rotate "+mt.toString())},Jn.prototype.pullToFront=function(){var mt=this.diagram;mt.startTransaction("pullToFront");var Pt=new go.Map;mt.selection.each(function(bt){Pt.set(bt.layer,0)}),Pt.iteratorKeys.each(function(bt){var tt=0;bt.parts.each(function(qt){if(!qt.isSelected){var dn=qt.zOrder;isNaN(dn)?qt.zOrder=0:tt=Math.max(tt,dn)}}),Pt.set(bt,tt)}),mt.selection.each(function(bt){Jn._assignZOrder(bt,Pt.get(bt.layer)+1)}),mt.commitTransaction("pullToFront")},Jn.prototype.pushToBack=function(){var mt=this.diagram;mt.startTransaction("pushToBack");var Pt=new go.Map;mt.selection.each(function(bt){Pt.set(bt.layer,0)}),Pt.iteratorKeys.each(function(bt){var tt=0;bt.parts.each(function(qt){if(!qt.isSelected){var dn=qt.zOrder;isNaN(dn)?qt.zOrder=0:tt=Math.min(tt,dn)}}),Pt.set(bt,tt)}),mt.selection.each(function(bt){Jn._assignZOrder(bt,Pt.get(bt.layer)-1-Jn._findGroupDepth(bt))}),mt.commitTransaction("pushToBack")},Jn._assignZOrder=function(mt,Pt,bt){bt===void 0&&(bt=mt),mt.layer===bt.layer&&(mt.zOrder=Pt),mt instanceof go.Group&&mt.memberParts.each(function(tt){Jn._assignZOrder(tt,Pt+1,bt)})},Jn._findGroupDepth=function(mt){if(mt instanceof go.Group){var Pt=0;return mt.memberParts.each(function(bt){Pt=Math.max(Pt,Jn._findGroupDepth(bt))}),Pt+1}else return 0},Jn.prototype.doKeyDown=function(){var mt=this.diagram;if(mt!==null){var Pt=mt.lastInput;if(Pt.key==="Up"||Pt.key==="Down"||Pt.key==="Left"||Pt.key==="Right"){var bt=this.arrowKeyBehavior;if(bt==="none")return;if(bt==="select"){this._arrowKeySelect();return}else if(bt==="move"){this._arrowKeyMove();return}else if(bt==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Jn.prototype._getAllParts=function(){var mt=new Array;return this.diagram.nodes.each(function(Pt){mt.push(Pt)}),this.diagram.parts.each(function(Pt){mt.push(Pt)}),mt},Jn.prototype._arrowKeyMove=function(){var mt=this.diagram,Pt=mt.lastInput,bt=0,tt=0;if(Pt.control||Pt.meta)bt=1,tt=1;else if(mt.grid!==null){var qt=mt.grid.gridCellSize;tt=qt.width,bt=qt.height}mt.startTransaction("arrowKeyMove"),mt.selection.each(function(dn){Pt.key==="Up"?dn.move(new go.Point(dn.actualBounds.x,dn.actualBounds.y-bt)):Pt.key==="Down"?dn.move(new go.Point(dn.actualBounds.x,dn.actualBounds.y+bt)):Pt.key==="Left"?dn.move(new go.Point(dn.actualBounds.x-tt,dn.actualBounds.y)):Pt.key==="Right"&&dn.move(new go.Point(dn.actualBounds.x+tt,dn.actualBounds.y))}),mt.commitTransaction("arrowKeyMove")},Jn.prototype._arrowKeySelect=function(){var mt=this.diagram,Pt=mt.lastInput,bt=null;Pt.key==="Up"?bt=this._findNearestPartTowards(270):Pt.key==="Down"?bt=this._findNearestPartTowards(90):Pt.key==="Left"?bt=this._findNearestPartTowards(180):Pt.key==="Right"&&(bt=this._findNearestPartTowards(0)),bt!==null&&(Pt.shift?bt.isSelected=!0:Pt.control||Pt.meta?bt.isSelected=!bt.isSelected:mt.select(bt))},Jn.prototype._findNearestPartTowards=function(mt){var Pt=this.diagram.selection.first();if(Pt===null)return null;for(var bt=Pt.actualBounds.center,tt=this._getAllParts(),qt=1/0,dn=Pt,xt=0;xt<tt.length;xt++){var Ye=tt[xt];if(Ye!==Pt&&Ye.canSelect()){var an=Ye.actualBounds.center,Bt=bt.directionPoint(an),jn=this._angleCloseness(Bt,mt);if(jn<=45){var cn=bt.distanceSquaredPoint(an);cn*=1+Math.sin(jn*Math.PI/180),cn<qt&&(qt=cn,dn=Ye)}}}return dn},Jn.prototype._angleCloseness=function(mt,Pt){return Math.min(Math.abs(Pt-mt),Math.min(Math.abs(Pt+360-mt),Math.abs(Pt-360-mt)))},Jn.prototype._arrowKeyTree=function(){var mt=this.diagram,Pt=mt.selection.first();if(Pt instanceof go.Node){var bt=mt.lastInput;if(bt.key==="Right"){if(!Pt.isTreeLeaf)if(!Pt.isTreeExpanded)mt.commandHandler.canExpandTree(Pt)&&mt.commandHandler.expandTree(Pt);else{var tt=this._sortTreeChildrenByY(Pt).first();tt!==null&&mt.select(tt)}}else if(bt.key==="Left")if(!Pt.isTreeLeaf&&Pt.isTreeExpanded)mt.commandHandler.canCollapseTree(Pt)&&mt.commandHandler.collapseTree(Pt);else{var qt=Pt.findTreeParentNode();qt!==null&&mt.select(qt)}else if(bt.key==="Up"){var qt=Pt.findTreeParentNode();if(qt!==null){var dn=this._sortTreeChildrenByY(qt),xt=dn.indexOf(Pt);if(xt>0){for(var Ye=dn.elt(xt-1);Ye!==null&&Ye.isTreeExpanded&&!Ye.isTreeLeaf;){var an=this._sortTreeChildrenByY(Ye);Ye=an.last()}Ye!==null&&mt.select(Ye)}else mt.select(qt)}}else if(bt.key==="Down")if(Pt.isTreeExpanded&&!Pt.isTreeLeaf){var tt=this._sortTreeChildrenByY(Pt).first();tt!==null&&mt.select(tt)}else for(;Pt!==null;){var qt=Pt.findTreeParentNode();if(qt===null)break;var dn=this._sortTreeChildrenByY(qt),xt=dn.indexOf(Pt);if(xt<dn.length-1){mt.select(dn.elt(xt+1));break}else Pt=qt}var Bt=mt.selection.first();Bt!==null&&mt.scrollToRect(Bt.actualBounds)}},Jn.prototype._sortTreeChildrenByY=function(mt){var Pt=new go.List().addAll(mt.findTreeChildrenNodes());return Pt.sort(function(bt,tt){var qt=bt.location,dn=tt.location;return qt.y<dn.y?-1:qt.y>dn.y?1:qt.x<dn.x?-1:qt.x>dn.x?1:0}),Pt},Jn.prototype.copyToClipboard=function(mt){go.CommandHandler.prototype.copyToClipboard.call(this,mt),this._lastPasteOffset.set(this.pasteOffset)},Jn.prototype.pasteFromClipboard=function(){var mt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(mt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),mt},Object.defineProperty(Jn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(mt){if(mt!=="move"&&mt!=="select"&&mt!=="scroll"&&mt!=="tree"&&mt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+mt);this._arrowKeyBehavior=mt}}),Object.defineProperty(Jn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(mt){if(!(mt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+mt);this._pasteOffset.set(mt)}});var bn=Jn,ci=ye(37404),Tn=ye(43604),tn=ye(70635),$t={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ft=ye(59301),Je=(mt,Pt,bt)=>new Promise((tt,qt)=>{var dn=an=>{try{Ye(bt.next(an))}catch(Bt){qt(Bt)}},xt=an=>{try{Ye(bt.throw(an))}catch(Bt){qt(Bt)}},Ye=an=>an.done?tt(an.value):Promise.resolve(an.value).then(dn,xt);Ye((bt=bt.apply(mt,Pt)).next())});function Gt({onCancel:mt,callback:Pt}){let bt=(0,Se.useRef)(),tt=(0,Se.useRef)(),qt=(0,Se.useRef)(),dn=(0,Se.useRef)(!1);const xt=(0,Se.useRef)(!1),[Ye,an]=(0,Se.useState)(0);function Bt(){const cn=yt.bx.make,Et={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"};bt.current=new yt.S0(tt.current,{padding:20,grid:cn(yt.s_,"Grid",cn(yt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),cn(yt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Xt=>{var Li=Xt.diagram.commandHandler.addTopLevelParts(Xt.diagram.selection,!0);Li||Xt.diagram.currentTool.doCancel()},commandHandler:cn(bn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Xt=>{var Li=Xt.subject;Li.location=Li.location.copy().snapToGridPoint(Xt.diagram.grid.gridOrigin,Xt.diagram.grid.gridCellSize),setTimeout(()=>{Xt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Xt=>{var Li=Xt.subject;setTimeout(()=>{Xt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Xt=>{var Li=Xt.parameter.part;Li.invalidateConnectedLinks();var rr=Xt.subject;Xt.diagram.toolManager.linkingTool.isForwards?rr.toNode.invalidateConnectedLinks():rr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),bt.current.nodeTemplate=cn(yt.NB,"Auto",{locationSpot:yt.z6.Center,locationObjectName:"SHAPE",desiredSize:new yt.$u(120,60),minSize:new yt.$u(40,40),resizable:!0,resizeCellSize:new yt.$u(10,10),rotatable:!0},new yt.KX("location","loc",yt.E9.parse).makeTwoWay(yt.E9.stringify),new yt.KX("desiredSize","size",yt.$u.parse).makeTwoWay(yt.$u.stringify),cn(yt.bn,{name:"SHAPE",fill:Et.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:yt.z6.AllSides,toSpot:yt.z6.AllSides},new yt.KX("figure"),new yt.KX("fill"),new yt.KX("stroke","borderColor"),new yt.KX("strokeWidth","thickness"),new yt.KX("strokeDashArray","dash")),cn(yt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),cn(yt.al,{margin:1,textAlign:"center",overflow:yt.al.OverflowEllipsis,editable:!0},new yt.KX("text").makeTwoWay(),new yt.KX("stroke","color"))),bt.current.nodeTemplate.toolTip=cn("ToolTip",cn(yt.s_,"Vertical",{maxSize:new yt.$u(200,NaN)},cn(yt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new yt.KX("text")),cn(yt.al,{font:"10pt sans-serif",textAlign:"center"},new yt.KX("text","details"))));function xn(Xt,Li){var rr=(Hi,Er)=>{Hi.handled=!0,Hi.diagram.model.commit(dr=>{var Nr=Er.part.adornedPart,Ti=new yt.E9().setRectSpot(Nr.actualBounds,Xt);Ti.subtract(Nr.location),Ti.scale(2,2),Ti.x+=Math.sign(Ti.x)*130,Ti.y+=Math.sign(Ti.y)*130,Ti.add(Nr.location),Ti.snapToGridPoint(Hi.diagram.grid.gridOrigin,Hi.diagram.grid.gridCellSize);var Qi=dr.copyNodeData(Nr.data);dr.setGroupKeyForNodeData(Qi,dr.getGroupKeyForNodeData(Nr.data)),dr.addNodeData(Qi);var er={from:Nr.key,to:dr.getKeyForNodeData(Qi)};dr.addLinkData(er);var kn=Hi.diagram.findNodeForData(Qi);kn.location=Ti,Hi.diagram.select(kn),setTimeout(()=>{Hi.diagram.commandHandler.editTextBlock()},20)})};return cn(yt.bn,{figure:Li,alignment:Xt,alignmentFocus:Xt.opposite(),width:Xt.equals(yt.z6.Top)||Xt.equals(yt.z6.Bottom)?25:18,height:Xt.equals(yt.z6.Top)||Xt.equals(yt.z6.Bottom)?18:25,fill:"orange",stroke:Et.white,strokeWidth:4,mouseEnter:(Hi,Er)=>Er.fill="dodgerblue",mouseLeave:(Hi,Er)=>Er.fill="orange",isActionable:!0,click:rr,contextClick:rr})}function Qn(Xt){return cn(yt.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:(Li,rr)=>rr.fill="dodgerblue",mouseLeave:(Li,rr)=>rr.fill="orange",click:(Li,rr)=>{Li.diagram.commandHandler.showContextMenu(rr.part.adornedPart)}},Xt||{})}bt.current.nodeTemplate.selectionAdornmentTemplate=cn(yt.uz,"Spot",cn(yt.Vm,{padding:10}),xn(yt.z6.Top,"TriangleUp"),xn(yt.z6.Left,"TriangleLeft"),xn(yt.z6.Right,"TriangleRight"),xn(yt.z6.Bottom,"TriangleDown"),Qn({alignment:new yt.z6(.75,0)}));function Un(Xt,Li){return(rr,Hi)=>{rr.handled=!0,rr.diagram.model.commit(Er=>{Er.set(Hi.part.adornedPart.data,Xt,Li)})}}function zt(Xt,Li){return Li||(Li="color"),cn(yt.bn,{width:16,height:16,stroke:"lightgray",fill:Xt,margin:1,background:"transparent",mouseEnter:(rr,Hi)=>Hi.stroke="dodgerblue",mouseLeave:(rr,Hi)=>Hi.stroke="lightgray",click:Un(Li,Xt),contextClick:Un(Li,Xt)})}function Sn(){return[cn("ContextMenuButton",cn(yt.s_,"Horizontal",zt(Et.white,"fill"),zt(Et.beige,"fill"),zt(Et.extralightblue,"fill"),zt(Et.extralightred,"fill"))),cn("ContextMenuButton",cn(yt.s_,"Horizontal",zt(Et.lightgray,"fill"),zt(Et.lightgreen,"fill"),zt(Et.lightblue,"fill"),zt(Et.lightred,"fill")))]}function Ci(){return[cn("ContextMenuButton",cn(yt.s_,"Horizontal",zt(Et.black),zt(Et.green),zt(Et.blue),zt(Et.red))),cn("ContextMenuButton",cn(yt.s_,"Horizontal",zt(Et.white),zt(Et.magenta),zt(Et.purple),zt(Et.orange)))]}function Si(Xt,Li){return Li||(Li="thickness"),cn(yt.bn,"LineH",{width:16,height:16,strokeWidth:Xt,margin:1,background:"transparent",mouseEnter:(rr,Hi)=>Hi.background="dodgerblue",mouseLeave:(rr,Hi)=>Hi.background="transparent",click:Un(Li,Xt),contextClick:Un(Li,Xt)})}function vi(Xt,Li){return Li||(Li="dash"),cn(yt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Xt,margin:1,background:"transparent",mouseEnter:(rr,Hi)=>Hi.background="dodgerblue",mouseLeave:(rr,Hi)=>Hi.background="transparent",click:Un(Li,Xt),contextClick:Un(Li,Xt)})}function ti(){return[cn("ContextMenuButton",cn(yt.s_,"Horizontal",Si(1),Si(2),Si(3),Si(4))),cn("ContextMenuButton",cn(yt.s_,"Horizontal",vi(null),vi([2,4]),vi([4,4])))]}function xi(Xt,Li){return Li||(Li="figure"),cn(yt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Xt,margin:1,background:"transparent",mouseEnter:(rr,Hi)=>Hi.fill="dodgerblue",mouseLeave:(rr,Hi)=>Hi.fill="lightgray",click:Un(Li,Xt),contextClick:Un(Li,Xt)})}bt.current.nodeTemplate.contextMenu=cn("ContextMenu",cn("ContextMenuButton",cn(yt.s_,"Horizontal",xi("Rectangle"),xi("RoundedRectangle"),xi("Ellipse"),xi("Diamond"))),cn("ContextMenuButton",cn(yt.s_,"Horizontal",xi("Parallelogram2"),xi("ManualOperation"),xi("Procedure"),xi("Cylinder1"))),cn("ContextMenuButton",cn(yt.s_,"Horizontal",xi("Terminator"),xi("CreateRequest"),xi("Document"),xi("TriangleDown"))),Sn(),Ci(),ti()),bt.current.groupTemplate=cn(yt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:yt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Xt,Li)=>{var rr=Li.addMembers(Li.diagram.selection,!0);rr||Li.diagram.currentTool.doCancel()},avoidable:!1},new yt.KX("location","loc",yt.E9.parse).makeTwoWay(yt.E9.stringify),cn(yt.s_,"Auto",{name:"BODY"},cn(yt.bn,{parameter1:10,fill:Et.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:yt.z6.AllSides,toSpot:yt.z6.AllSides},new yt.KX("fill"),new yt.KX("stroke","color"),new yt.KX("strokeWidth","thickness"),new yt.KX("strokeDashArray","dash")),cn(yt.Vm,{background:"transparent",margin:20})),cn(yt.al,{alignment:yt.z6.Top,alignmentFocus:yt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new yt.KX("text"),new yt.KX("stroke","color"))),bt.current.groupTemplate.selectionAdornmentTemplate=cn(yt.uz,"Spot",cn(yt.s_,"Auto",cn(yt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),cn(yt.Vm,{margin:1.5})),Qn({alignment:yt.z6.TopRight,alignmentFocus:yt.z6.BottomRight})),bt.current.groupTemplate.contextMenu=cn("ContextMenu",Sn(),Ci(),ti()),bt.current.linkTemplate=cn(yt.rU,{layerName:"Foreground",routing:yt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new yt.KX("fromSpot","fromSpot",yt.z6.parse),new yt.KX("toSpot","toSpot",yt.z6.parse),new yt.KX("fromShortLength","dir",Xt=>Xt>=1?10:0),new yt.KX("toShortLength","dir",Xt=>Xt>=1?10:0),new yt.KX("points").makeTwoWay(),cn(yt.bn,{strokeWidth:2},new yt.KX("stroke","color"),new yt.KX("strokeWidth","thickness"),new yt.KX("strokeDashArray","dash")),cn(yt.bn,{segmentIndex:0,segmentOffset:new yt.E9(15,0),segmentOrientation:yt.rU.OrientAlong,alignmentFocus:yt.z6.Right,figure:"circle",width:10,strokeWidth:0},new yt.KX("fill","color"),new yt.KX("visible","dir",Xt=>Xt===1)),cn(yt.bn,{segmentIndex:-1,segmentOffset:new yt.E9(-10,6),segmentOrientation:yt.rU.OrientPlus90,alignmentFocus:yt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new yt.KX("fill","color"),new yt.KX("visible","dir",Xt=>Xt>=1),new yt.KX("width","thickness",Xt=>7+3*Xt),new yt.KX("height","thickness",Xt=>7+3*Xt),new yt.KX("segmentOffset","thickness",Xt=>new yt.E9(-15,4+1.5*Xt))),cn(yt.bn,{segmentIndex:0,segmentOffset:new yt.E9(15,-6),segmentOrientation:yt.rU.OrientMinus90,alignmentFocus:yt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new yt.KX("fill","color"),new yt.KX("visible","dir",Xt=>Xt===2),new yt.KX("width","thickness",Xt=>7+3*Xt),new yt.KX("height","thickness",Xt=>7+3*Xt),new yt.KX("segmentOffset","thickness",Xt=>new yt.E9(-15,4+1.5*Xt))),cn(yt.al,{alignmentFocus:new yt.z6(0,1,-4,0),editable:!0},new yt.KX("text").makeTwoWay(),new yt.KX("stroke","color"))),bt.current.linkTemplate.selectionAdornmentTemplate=cn(yt.uz,cn(yt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ni(2)},new yt.KX("pathPattern","thickness",Ni)),Qn({alignmentFocus:new yt.z6(0,0,-6,-4)}));function Ni(Xt){return cn(yt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Xt+4).toString()+" H3"})}function Zi(Xt){var Li="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Xt===0?Li="M0 0 M16 16 M0 8 L16 8":Xt===2&&(Li="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),cn(yt.bn,{geometryString:Li,margin:2,background:"transparent",mouseEnter:(rr,Hi)=>Hi.background="dodgerblue",mouseLeave:(rr,Hi)=>Hi.background="transparent",click:Un("dir",Xt),contextClick:Un("dir",Xt)})}function cr(Xt){var Li=(rr,Hi)=>{rr.handled=!0,rr.diagram.model.commit(Er=>{var dr=Hi.part.adornedPart;Er.set(dr.data,Xt?"toSpot":"fromSpot",yt.z6.stringify(yt.z6.AllSides)),(Xt?dr.toNode:dr.fromNode).invalidateConnectedLinks()})};return cn(yt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(rr,Hi)=>Hi.background="dodgerblue",mouseLeave:(rr,Hi)=>Hi.background="transparent",click:Li,contextClick:Li})}function Gn(Xt,Li){var rr=0,Hi=yt.z6.RightSide;Xt.equals(yt.z6.Top)?(rr=270,Hi=yt.z6.TopSide):Xt.equals(yt.z6.Left)?(rr=180,Hi=yt.z6.LeftSide):Xt.equals(yt.z6.Bottom)&&(rr=90,Hi=yt.z6.BottomSide),Li||(rr-=180);var Er=(dr,Nr)=>{dr.handled=!0,dr.diagram.model.commit(Ti=>{var Qi=Nr.part.adornedPart;Ti.set(Qi.data,Li?"toSpot":"fromSpot",yt.z6.stringify(Hi)),(Li?Qi.toNode:Qi.fromNode).invalidateConnectedLinks()})};return cn(yt.bn,{alignment:Xt,alignmentFocus:Xt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:rr,background:"transparent",mouseEnter:(dr,Nr)=>Nr.background="dodgerblue",mouseLeave:(dr,Nr)=>Nr.background="transparent",click:Er,contextClick:Er})}bt.current.linkTemplate.contextMenu=cn("ContextMenu",Ci(),ti(),cn("ContextMenuButton",cn(yt.s_,"Horizontal",Zi(0),Zi(1),Zi(2))),cn("ContextMenuButton",cn(yt.s_,"Horizontal",cn(yt.s_,"Spot",cr(!1),Gn(yt.z6.Top,!1),Gn(yt.z6.Left,!1),Gn(yt.z6.Right,!1),Gn(yt.z6.Bottom,!1)),cn(yt.s_,"Spot",{margin:new yt.Zt(0,0,0,2)},cr(!0),Gn(yt.z6.Top,!0),Gn(yt.z6.Left,!0),Gn(yt.z6.Right,!0),Gn(yt.z6.Bottom,!0)))));const Ai=`{ "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 br=["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 kr(Xt){return console.log("shapeName:",Xt),br.indexOf(Xt)>=0}var Sr=new yt.YI(qt.current,{maxSelectionCount:1,linkTemplate:cn(yt.rU,{locationSpot:yt.z6.Center,selectionAdornmentTemplate:cn(yt.uz,"Link",{locationSpot:yt.z6.Center},cn(yt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),cn(yt.bn,{toArrow:"Standard",stroke:null}))},{routing:yt.rU.AvoidsNodes,curve:yt.rU.JumpOver,corner:5,toShortLength:4},new yt.KX("points"),cn(yt.bn,{isPanelMain:!0,strokeWidth:2}),cn(yt.bn,{toArrow:"Standard",stroke:null})),model:new yt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...yt.bn.getFigureGenerators().toArray().map(Xt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Xt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return bt.current.addDiagramListener("TextEdited",function(Xt){var Li;const rr=Xt.subject.part;var Hi=(Li=document.activeElement)==null?void 0:Li.value;typeof Hi=="string"&&Hi.trim()===""&&bt.current.model.commit(function(Er){Er.set(rr.data,"text","\u672A\u547D\u540D"),bt.current.commandHandler.stopCommand()},"increment")}),Sr.nodeTemplate=cn(yt.NB,"Auto",{locationSpot:yt.z6.Center},new yt.KX("location","location",yt.E9.parse).makeTwoWay(yt.E9.stringify),cn(yt.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 yt.KX("stroke").makeTwoWay(),new yt.KX("fill").makeTwoWay(),new yt.KX("figure")),cn(yt.al,{margin:new yt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new yt.$u(16,16),maxSize:new yt.$u(10,NaN),textAlign:"center",editable:!0},new yt.KX("key").makeTwoWay())),setTimeout(()=>{bt.current.grid=cn(yt.s_,"Grid",cn(yt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),cn(yt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),bt.current.grid.visible=!0,bt.current.grid.gridCellStroke="darkgray",bt.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=bt.current,bt.current}const jn=()=>Je(this,null,function*(){var cn=bt.current.makeImage();const Et=yield(0,tn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:cn.src}});Pt({src:Et.url})});return(0,Se.useEffect)(()=>(setTimeout(()=>{Bt()},500),an(Ye+1),()=>{bt.current=null}),[]),ft.createElement("div",{ref:xt,className:dn.current?`${$t.maxH60} body-overflow-initial`:"body-overflow-initial"},ft.createElement(_t.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ye,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ft.createElement(ln.Z,null,ft.createElement(Tn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ft.createElement(Tn.Z,{onClick:()=>{var cn,Et,xn=bt.current.selection.first();if(dn.current=!dn.current,document.activeElement&&xn){let Qn=(Et=(cn=document.activeElement)==null?void 0:cn.value)==null?void 0:Et.trim();typeof Qn=="string"&&bt.current.model.commit(function(Un){Un.set(xn.data,"text",Qn||"\u672A\u547D\u540D"),bt.current.commandHandler.stopCommand()},"increment")}an(Ye+1)}},ft.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:mt},ft.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:$t.flowChartWrp},ft.createElement("div",{style:{display:"flex",height:"100%"}},ft.createElement("div",{style:{width:"300px",height:"100%"}},ft.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ft.createElement("div",{style:{height:"calc(100% - 50px)"},className:$t.myPaletteDiv,ref:qt})),ft.createElement("div",{style:{flex:1,position:"relative"}},ft.createElement("div",{ref:tt,style:{height:"80vh"}}))),ft.createElement("div",{className:"tr"},ft.createElement(Ve.ZP,{size:"large",onClick:jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var At=Gt,lt=ye(5112),Ge=ye(88897);const Be=lt.ZP.Group,we={margin:"0 8px"};var pe=({callback:mt,onCancel:Pt})=>{function bt(tt){mt(tt)}return Se.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:bt},Se.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Se.createElement("span",{style:we},"\u5355\u5143\u683C\u6570\uFF1A"),Se.createElement("span",{style:we},"\u884C\u6570"),Se.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Se.createElement(Ge.Z,null)),Se.createElement("span",{style:we},"\u5217\u6570"),Se.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Se.createElement(Ge.Z,null))),Se.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Se.createElement("span",{style:we},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Se.createElement(Xe.default.Item,{name:"align"},Se.createElement(Be,null,Se.createElement(lt.ZP,{value:"default"},Se.createElement("i",{className:"fa fa-align-justify"})),Se.createElement(lt.ZP,{value:"left"},Se.createElement("i",{className:"fa fa-align-left"})),Se.createElement(lt.ZP,{value:"center"},Se.createElement("i",{className:"fa fa-align-center"})),Se.createElement(lt.ZP,{value:"right"},Se.createElement("i",{className:"fa fa-align-right"}))))),Se.createElement("div",{className:"flex-container flex-end"},Se.createElement(Ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Se.createElement(Ve.ZP,{type:"ghost",onClick:Pt},"\u53D6\u6D88")))},De=ye(78673),ze=ye(98598),Le=ye.n(ze),Ut=(0,Se.forwardRef)(({use3d:mt,width:Pt,height:bt,callback:tt,showSaveButton:qt},dn)=>{const xt=(0,Se.useRef)(),Ye=(0,Se.useRef)(),[an,Bt]=(0,Se.useState)(!1),jn=(0,Se.useRef)({id:xt,appName:"graphing",width:Pt||1e3,height:bt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Se.useEffect)(()=>{Ye.current=new(Le())(jn.current,!0),window.onload=function(){Ye.current.inject("applet_container")}},[]);const cn=()=>{var Et=window.ggbApplet.getPNGBase64(1,!0,72);return tt&&tt(Et),Et};return(0,Se.useEffect)(()=>{jn.current.appName=an?"3D":"graphing",Ye.current.inject("applet_container")},[an]),(0,Se.useEffect)(()=>{Bt(mt)},[mt]),(0,Se.useImperativeHandle)(dn,()=>({getImgData:cn})),Se.createElement(Se.Fragment,null,Se.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:xt}),Se.createElement(ln.Z,{align:"middle"},Se.createElement(Tn.Z,{flex:1},Se.createElement(De.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:an,onChange:Et=>Bt(Et)})),Se.createElement(Tn.Z,null,Se.createElement(Ve.ZP,{size:"large",onClick:cn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),En=ye(75890),rn=ye(8591);const vn="link",mi="upload-image",wi="add-flowchart",Ri="draw-image",Wi="add-flowchart",Mn="code-block",nr="add-table",Wr="------------",Hr={default:Wr,left:`:${Wr}`,center:`:${Wr}:`,right:`${Wr}:`};var Tr=ye(91300);function Fr(){}let Yr=0;const Kr=1e4,ar="\u2581",Co="@\u2581\u2581@",$n="@\u2581@",Ce=`
|
|
|
**\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`,hi=["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 ki(mt){return/^\d+$/.test(mt)?`${mt}px`:mt}const Wn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",li={[Wn+"-B"]:"bold",[Wn+"-I"]:"italic"},fn={[vn]:"\u6DFB\u52A0\u94FE\u63A5",[Mn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mi]:"\u6DFB\u52A0\u56FE\u7247",[Ri]:"\u6DFB\u52A0\u753B\u56FE",[wi]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[nr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var on=({defaultValue:mt="",onChange:Pt,width:bt="100%",height:tt=400,miniToolbar:qt=!1,isFocus:dn=!1,watch:xt,insertTemp:Ye,mode:an="markdown",id:Bt="markdown-editor-id",showResizeBar:jn=!1,noStorage:cn=!1,showNullButton:Et=!1,showNullProgramButton:xn=!1,hidetoolBar:Qn=!1,fullScreen:Un=!1,onBlur:zt,onCMBeforeChange:Sn,onFullScreen:Ci,className:Si="",disablePaste:vi=!1,disabled:ti=!1,disabledFill:xi=!1,placeholder:Ni="",values:Zi="",extraUse:cr})=>{const[Gn,Ai]=(0,Se.useState)(null),[br,kr]=(0,Se.useState)(mt),[Sr,Xt]=(0,Se.useState)(xt),[Li,rr]=(0,Se.useState)(Un),[Hi,Er]=(0,Se.useState)(""),[dr,Nr]=(0,Se.useState)(0),[Ti,Qi]=(0,Se.useState)(tt),[er,kn]=(0,Se.useState)(!1),[Dr,Ln]=(0,Se.useState)(0),[pr,Qr]=(0,Se.useState)(0),vr=(0,Se.useRef)(),Ho=(0,Se.useRef)(),co=(0,Se.useRef)(),mr=(0,Se.useRef)();(0,Se.useEffect)(()=>{const Bi=window.scrollY||window.pageYOffset;kr(Zi),Gn==null||Gn.setValue(Zi),window.scrollTo(0,Bi)},[Zi]),(0,Se.useEffect)(()=>{Ci==null||Ci(Li)},[Li]),(0,Se.useEffect)(()=>{if(vr.current){let Bi=function(Gi,zn){var _r;if(vi){zn.preventDefault();return}const Gr=zn.clipboardData;if(Gr){const Ao=Gr.types.toString(),qr=Gr.items;if(Ao==="Files"||Gr.types.indexOf("Files")>-1){if(zn.preventDefault(),an=="stex")return;try{let $r=qr[1];((_r=qr[0])==null?void 0:_r.kind)==="file"&&($r=qr[0]);const to=$r.getAsFile(),$o=to.name.split(".").pop();(0,kt.I)(to,Qo=>{var pa,qo,Cn;Qo.id?((pa=to==null?void 0:to.type)==null?void 0:pa.indexOf("image"))>-1?pi.replaceSelection(``):((qo=to==null?void 0:to.type)==null?void 0:qo.indexOf("video"))>-1?pi.replaceSelection(`<video width="100%" controls src="/api/attachments/${Qo.id}"></video>`):((Cn=to==null?void 0:to.type)==null?void 0:Cn.indexOf("pdf"))>-1?pi.replaceSelection(`<a href="/api/attachments/${Qo.id}?type=${to.type}&disposition=inline" target="_blank">${to.name}</a>`):hi.includes($o)?pi.replaceSelection(`<a href="/api/attachments/${Qo.id}?type=office&disposition=inline" target="_blank">${to.name}</a>`):pi.replaceSelection(`[${to.name}](/api/attachments/${Qo.id}?type=${Qo.content_type})`):(Qo==null?void 0:Qo.status)===401&&(document.location.href="/user/login")})}catch($r){rn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const pi=He().fromTextArea(vr.current,{mode:an,lineNumbers:!qt,lineWrapping:!0,value:mt,autoCloseTags:!0,autoCloseBrackets:!0});return pi.on("keyup",function(Gi,zn){zn.keyCode===8&&(Gi.getValue()==""?pi.setOption("placeholder",Ni):pi.setOption("placeholder",null))}),pi.on("keydown",function(Gi,zn){if(zn.keyCode===8){var _r=fr(Gi);_r&&zn.preventDefault()}}),dn&&pi.focus(),pi.on("paste",Bi),ti&&pi.on("beforeChange",function(Gi,zn){(zn.origin==="paste"||zn.origin==="+input")&&zn.cancel()}),Ai(pi),()=>{pi.off("paste",Bi)}}},[]);const hr=(0,Se.useCallback)(()=>{if(Ho.current)try{}catch(Bi){console.log(Bi,"---- to set md editor body height")}},[Ti,Ho,Li]);(0,Se.useEffect)(()=>{function Bi(){let pi=new Rt.Z(Gi=>{for(let zn of Gi)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&(hr(),Gn.setSize("100%","100%"),Gn.refresh())});return pi.observe(vr.current.parentElement),pi}if(Gn){const pi=Bi();return()=>{var Gi,zn;(Gi=vr.current)!=null&&Gi.parentElement&&pi.unobserve((zn=vr.current)==null?void 0:zn.parentElement)}}},[Gn,hr]),(0,Se.useEffect)(()=>{if(Gn){let Bi=[];for(const[pi,Gi]of Object.entries(li)){let zn={[pi]:()=>{Vr(Gi)}};Bi.push(zn),Gn.addKeyMap(zn)}return()=>{for(let pi of Bi)Gn.removeKeyMap(pi)}}},[Gn]),(0,Se.useEffect)(()=>{Un!==Li&&rr(Un)},[Un]),(0,Tr.Z)(()=>{if(!cn&&dr>0){let Bi=new Date().getTime(),pi=window.sessionStorage.getItem(Bt);Bi>=dr+Kr&&(!pi||pi!==br)&&(window.sessionStorage.setItem(Bt,br),kn(!0))}},Kr),(0,Se.useEffect)(()=>{Xt(xt)},[Gn,xt]),(0,Se.useEffect)(()=>{Gn&&dn&&Gn.focus()},[Gn,dn]),(0,Se.useEffect)(()=>{if(Sr&&Gn){let Bi=function(Gi){let zn=Gi.target;if(mr.current){let _r=zn.scrollTop/zn.scrollHeight;mr.current.scrollTop=mr.current.scrollHeight*_r}};const pi=Gn.getScrollerElement();return pi.addEventListener("scroll",Bi),()=>{pi.removeEventListener("scroll",Bi)}}},[Gn,Sr]),(0,Se.useEffect)(()=>{if(Gn&&Sn){let Bi=function(pi,Gi){Sn(pi,Gi)};return Gn.on("beforeChange",Bi),()=>{Gn.off("beforeChange",Bi)}}},[Gn,Sn]),(0,Se.useEffect)(()=>{if(Gn&&zt){let Bi=function(){zt(Gn.getValue())};return Gn.on("blur",Bi),()=>{Gn.off("blur",Bi)}}},[Gn,zt]);function fr(Bi,pi){var Gi=Bi.getDoc(),zn=Gi.getCursor(),_r=Gi.getLine(zn.line),Gr=_r.charAt(zn.ch-1),Ao=_r.lastIndexOf("@\u2581@",zn.ch),qr=_r.lastIndexOf("@\u2581\u2581@",zn.ch),$r=Ao>qr?Ao:qr,to=Ao>qr?3:4;if(Co.indexOf(Gr)===-1)return null;if(console.log("change1:",pi,Bi,_r,zn,$r,Ao,qr,Gr),$r>=0&&zn.ch-$r<5){var $o=$r+to;return Gi.replaceRange("",{line:zn.line,ch:$r},{line:zn.line,ch:$o}),{line:zn.line,ch:$o}}return null}(0,Se.useEffect)(()=>{if(Gn){let Bi=function(pi,Gi){const zn=pi.getValue();kr(zn),Nr(new Date().getTime()),pi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pt&&(xn?Pt(zn,Wt(zn)):Pt(zn))};return Gn.on("change",Bi),()=>{Gn.off("change",Bi)}}},[Gn,Pt]),(0,Se.useEffect)(()=>{if(Gn)if(mt==null)Gn.setValue(""),kr("");else{const Bi=window.scrollY||window.pageYOffset;mt!==Gn.getValue()&&(Gn.setValue(mt),kr(mt),Gn.setCursor(ti?1:Gn.lineCount(),0),window.scrollTo(0,Bi))}},[Gn,mt]);const Vr=(0,Se.useCallback)(Bi=>{const pi=Gn.getCursor(),Gi=Gn.getSelection();let zn=Gi.split(`
|
|
|
`);switch(Bi){case"bold":return Gn.replaceSelection("**"+Gi+"**"),Gi===""&&Gn.setCursor(pi.line,pi.ch+2),Gn.focus();case"italic":return Gn.replaceSelection("*"+Gi+"*"),Gi===""&&Gn.setCursor(pi.line,pi.ch+1),Gn.focus();case"code":return Gn.replaceSelection("`"+Gi+"`"),Gi===""&&Gn.setCursor(pi.line,pi.ch+1),Gn.focus();case"inline-latex":return Er("inline-latex"),Gn.focus();case"latex":return Gn.replaceSelection("```latex\n"+Gi+"\n```"),Gn.setCursor(pi.line+1,Gi.length+1),Gn.focus();case"line-break":return Gn.replaceSelection(`<br/>
|
|
|
`),Gn.focus();case"list-ul":return Gi===""?Gn.replaceSelection("- "+Gi):Gn.replaceSelection(zn.map(_r=>_r===""?"":`- ${_r}`).join(`
|
|
|
`)),Gn.focus();case"list-ol":return Gi===""?Gn.replaceSelection("1. "+Gi):Gn.replaceSelection(zn.map((_r,Gr)=>_r===""?"":`${Gr+1}. ${_r}`).join(`
|
|
|
`)),Gn.focus();case"add-null-ch":return Gi===""&&Gn.setCursor(pi.line,pi.ch),Gn.replaceSelection(ar),Gn.focus();case"add-signal":return Gi===""&&Gn.setCursor(pi.line,pi.ch),Gn.replaceSelection($n),Gn.focus();case"add-multiple":return Gi===""&&Gn.setCursor(pi.line,pi.ch),Gn.replaceSelection(Co),Gn.focus();case"inster-template-1":return Gi===""&&Gn.setCursor(pi.line,pi.ch),Gn.replaceSelection(Ce),Gn.focus();case"eraser":return Gn.setValue(""),Gn.focus();case"trigger-watch":return Xt(!Sr),Gn.focus();case"trigger-full-screen":return rr(!Li),Gn.focus();case vn:Er(vn);return;case Mn:Er(Mn);return;case mi:Er(mi);return;case Ri:Er(Ri);return;case"maths-latex":Er("maths-latex");return;case wi:Er(wi);return;case nr:Er(nr);return;default:throw new Error}},[Gn,Sr,Li]),Ii=(0,Se.useCallback)((Bi,pi)=>{var Gi,zn,_r,Gr,Ao,qr;switch(Er(""),Hi){case vn:const{title:pa,link:qo}=Bi;return Gn.replaceSelection(`[${pa}](${qo})`),Gn.focus();case Mn:const{language:Cn,content:ca}=Bi;return Gn.replaceSelection(["```"+Cn,ca,"```"].join(`
|
|
|
`)),Gn.focus();case"maths-latex":for(var $r=atob(Bi),to=new Uint8Array($r.length),$o=0;$o<$r.length;$o++)to[$o]=$r.charCodeAt($o);var Qo=new Blob([to],{type:"image/png"});(0,kt.I)(Qo,Pa=>{Pa.id?Gn.replaceSelection(``):(Pa==null?void 0:Pa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Gn.replaceSelection("`$$"+Bi+"$$`");break;case mi:case Ri:case Wi:const{src:es,alt:ts}=Bi,Ga=pi,Ds=(_r=(zn=(Gi=Ga==null?void 0:Ga.name)==null?void 0:Gi.split("."))==null?void 0:zn.pop)==null?void 0:_r.call(zn);return((Gr=Ga==null?void 0:Ga.type)==null?void 0:Gr.indexOf("image"))>-1||!(Ga!=null&&Ga.type)?ts?Gn.replaceSelection(``):Gn.replaceSelection(``):((Ao=Ga==null?void 0:Ga.type)==null?void 0:Ao.indexOf("video"))>-1?Gn.replaceSelection(`<video width="100%" controls src="${es}"></video>`):((qr=Ga==null?void 0:Ga.type)==null?void 0:qr.indexOf("pdf"))>-1?Gn.replaceSelection(`<a href="${es}?type=${Ga.type}&disposition=inline" target="_blank">${Ga.name}</a>`):hi.includes(Ds)?Gn.replaceSelection(`<a href="${es}?type=office&disposition=inline" target="_blank">${Ga.name}</a>`):Gn.replaceSelection(`[${Ga.name}](${es})`),Gn.focus();case nr:const{row:pl,col:ma,align:Fo}=Bi;let Oo=`
|
|
|
`;for(let Pa=0;Pa<pl;Pa++){let no=[],ko=[];for(let oo=0;oo<ma;oo++)Pa===1&&ko.push(Hr[Fo]),no.push(" ");Pa===1&&(Oo+=`| ${ko.join(" | ")} |
|
|
|
`),Oo+=`| ${no.join(ma===1?"":" | ")} |
|
|
|
`}return Gn.replaceSelection(Oo+`
|
|
|
`),Gn.focus();default:throw new Error}},[Gn,Hi]),Qe=(0,Se.useMemo)(()=>{switch(Hi){case vn:return Se.createElement(Pn,{callback:Ii,onCancel:pt});case Mn:return Se.createElement(mn.Z,{callback:Ii,onCancel:pt});case mi:return Se.createElement(kt.Z,{callback:Ii,onCancel:pt});case wi:return Se.createElement(At,{callback:Ii,onCancel:pt});case nr:return Se.createElement(pe,{callback:Ii,onCancel:pt});case"maths-latex":return Se.createElement(Ut,{showSaveButton:!0,callback:Ii});case"inline-latex":return Se.createElement(En.Z,{showSaveButton:!0,callback:Ii});default:return null}},[Hi]);function pt(){Er("")}(0,Se.useEffect)(()=>{if(co.current){let Bi=function(Ao){_r=!0,Gr=Ao.pageY},pi=function(){_r=!1},Gi=function(Ao){if(_r){let qr=Ao.pageY-Gr;qr<0&&(qr=0),qr>300&&(qr=300);let $r=tt+qr+"px";Qi($r)}},zn=co.current,_r=!1,Gr=0;return zn.addEventListener("mousedown",Bi),document.addEventListener("mousemove",Gi),document.addEventListener("mouseup",pi),()=>{zn.removeEventListener("mousedown",Bi),document.removeEventListener("mousemove",Gi),document.removeEventListener("mouseup",pi)}}},[Gn,co]),(0,Se.useEffect)(()=>{Qi(tt)},[tt]);const It=ki(bt),sn=ki(Ti),Hn={width:It,height:sn},On=(0,Se.useMemo)(()=>{if(dr){let Bi=new Date(dr),pi=Bi.getHours(),Gi=Bi.getMinutes(),zn=Bi.getSeconds();return pi=pi<10?"0"+pi:pi,Gi=Gi<10?"0"+Gi:Gi,zn=zn<10?"0"+zn:zn,`${pi}:${Gi}:${zn}`}return 0},[dr]),Wt=Bi=>{const pi=[];if(xn){let Gi=-1;Bi=Bi.replace(/(@▁▁@|@▁@)/g,function(zn,_r,Gr){pi.push({multiLine:zn!==$n})})}return pi};function Nn(){window.sessionStorage.removeItem(Bt),kn(!1),Nr(0)}function ai(){kn(!1),Nr(0),Gn.setValue(window.sessionStorage.getItem(Bt))}(0,Se.useEffect)(()=>{fn[Hi]&&Hi!==Ri&&Hi!==wi&&setTimeout(()=>{const Bi=document.getElementsByClassName("markdown-popup-form")[0],pi=window.innerWidth/2-Bi.offsetWidth/2,Gi=window.innerHeight/2-Bi.offsetHeight/2;Ln(pi),Qr(Gi)},0)},[Hi]);const qn=Bi=>{Bi.preventDefault();const pi=Bi.clientX-Dr,Gi=Bi.clientY-pr;document.body.onmousemove=zn=>{let _r=zn.clientX-pi,Gr=zn.clientY-Gi;const Ao=document.getElementsByClassName("markdown-popup-form")[0],qr=window.innerWidth-Ao.offsetWidth,$r=window.innerHeight-Ao.offsetHeight;_r=Math.max(0,Math.min(_r,qr)),Gr=Math.max(0,Math.min(Gr,$r)),Oi(zn.clientX,zn.clientY,pi,Gi)&&(Ln(_r),Qr(Gr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Oi=(Bi,pi,Gi,zn)=>{const _r=document.body.clientHeight,Gr=document.body.clientWidth;return Bi<20&&Gi>Bi||Bi>Gr-20&&Gi<Bi||pi<20&&zn>pi||pi>_r-20&&zn<pi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Se.createElement(Se.Fragment,null,Se.createElement("div",{className:"markdown-editor-wrapper",ref:Ho},Se.createElement("div",{className:`markdown-editor-container ${Si} ${Sr?"on-preview":""} ${qt?"mini":""} ${Li?"full-screen":""}`,style:Hn},Se.createElement(We,{insertTemp:Ye,watch:Sr,fullScreen:Li,showNullButton:Et,showNullProgramButton:xn,onActionCallback:Vr,hidetoolBar:Qn,extraUse:cr}),Se.createElement("div",{className:"markdown-editor-body"},Se.createElement("div",{className:"codemirror-container"},Se.createElement("textarea",{ref:vr,placeholder:Ni})),Sr?Se.createElement("div",{ref:mr,className:"preview-container"},an==="stex"&&Se.createElement(ct,{value:br}),an!=="stex"&&Se.createElement(gt.Z,{disabledFill:xi,showProgramFill:xn,value:br})):null))),jn?Se.createElement("a",{ref:co,className:"editor-resize"}):null,Hi===Ri&&Se.createElement(Kn,{callback:Ii,onCancel:pt}),Hi===wi&&Se.createElement(At,{callback:Ii,onCancel:pt}),Se.createElement(Ke.Z,null,fn[Hi]&&Hi!==Ri&&Hi!==wi?Se.createElement(_t.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Dr,top:pr},title:Se.createElement("div",{style:{cursor:"move"},onMouseDown:qn},fn[Hi]),open:!0,onCancel:pt,footer:null,destroyOnClose:!0,width:Hi===wi?"1200px":null,height:Hi===wi?"80vh":null,className:"markdown-popup-form"},Qe):null))}},56701:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ve},I:function(){return Fe}});var Se=ye(78241),Oe=ye(8591),He=ye(92832),Rt=ye(3113),_e=ye(58788),vt=ye(59301),ke=ye(59301),Tt=Object.defineProperty,Lt=Object.defineProperties,et=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Me=(Pe,Ie,We)=>Ie in Pe?Tt(Pe,Ie,{enumerable:!0,configurable:!0,writable:!0,value:We}):Pe[Ie]=We,te=(Pe,Ie)=>{for(var We in Ie||(Ie={}))ct.call(Ie,We)&&Me(Pe,We,Ie[We]);if(gt)for(var We of gt(Ie))wt.call(Ie,We)&&Me(Pe,We,Ie[We]);return Pe},ne=(Pe,Ie)=>Lt(Pe,et(Ie));const{useForm:ce}=Se.default,se={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var ve=({callback:Pe,onCancel:Ie})=>{const[We]=ce();let Ke=(0,vt.useRef)();function Xe(Nt){Pe(Nt,Ke.current)}function ht(Nt,qe){if(Nt.status===-1){Oe.ZP.error(Nt.message);return}We.setFieldsValue({src:`/api/attachments/${Nt.id}`,type:qe.type})}function Ve(Nt){let qe=Nt.target.files[0];Ke.current=qe,Fe(qe,ht)}return ke.createElement(Se.default,ne(te({form:We},ge),{className:"upload-image-panel",onFinish:Xe,style:{width:470,overflow:"hidden"}}),ke.createElement(Se.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ke.createElement("div",{className:"flex-container"},ke.createElement(Se.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ke.createElement(He.default,{style:se})),ke.createElement(be,{onFileChange:Ve}))),ke.createElement(Se.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ke.createElement(He.default,{style:{width:264}})),ke.createElement(Se.default.Item,{style:{textAlign:"right"}},ke.createElement(Rt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ke.createElement(Rt.ZP,{type:"default",onClick:Ie},"\u53D6\u6D88")))};function be({onFileChange:Pe}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:Pe}))}function Fe(Pe,Ie){if(!Pe)throw new String("\u6CA1\u6709\u6587\u4EF6");let We=new FormData;We.append("editormd-image-file",Pe),We.append("file_param_name","editormd-image-file"),We.append("byxhr","true");var Ke=new window.XMLHttpRequest;Ke.withCredentials=!0,Ke.addEventListener("load",function(Xe){Ie(JSON.parse(Xe.target.responseText),Pe)},!1),Ke.addEventListener("error",function(Xe){console.error(Xe)},!1),Ke.open("POST",`${_e.KI}/api/attachments.json`),Ke.send(We)}},50474:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return He}});var Se=ye(59301),Oe=ye(4676);class He extends Se.Component{constructor(_e){super(_e);const vt=window.document;this.node=vt.createElement("div"),vt.body.appendChild(this.node)}render(){const{children:_e}=this.props;return(0,Oe.createPortal)(_e,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(Rn,Fn,ye){"use strict";ye.d(Fn,{SV:function(){return Gt},ZP:function(){return Je}});var Se=ye(59301),Oe=ye(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(`
|
|
|
`)}]},vt={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(`
|
|
|
`)}]},ke={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=ye(86061),Lt=ye.n(Tt),et=Object.defineProperty,gt=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(At,lt,Ge)=>lt in At?et(At,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):At[lt]=Ge,ce=(At,lt)=>{for(var Ge in lt||(lt={}))Me.call(lt,Ge)&&ne(At,Ge,lt[Ge]);if(wt)for(var Ge of wt(lt))te.call(lt,Ge)&&ne(At,Ge,lt[Ge]);return At},se=(At,lt)=>gt(At,ct(lt)),ge=(At,lt,Ge)=>new Promise((Be,we)=>{var pe=Le=>{try{ze(Ge.next(Le))}catch(nt){we(nt)}},De=Le=>{try{ze(Ge.throw(Le))}catch(nt){we(nt)}},ze=Le=>Le.done?Be(Le.value):Promise.resolve(Le.value).then(pe,De);ze((Ge=Ge.apply(At,lt)).next())});const ve={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"]}},be=(At,lt)=>lt.map(Ge=>({label:Ge,kind:At.languages.CompletionItemKind.Keyword,insertText:Ge})),Fe=At=>Object.keys(ve.tables).map(lt=>({label:lt,kind:At.languages.CompletionItemKind.Variable,insertText:lt})),Pe=(At,lt)=>{const Ge=ve.tables[At];return Ge?Ge.map(Be=>({label:Be,kind:lt.languages.CompletionItemKind.Field,insertText:Be})):[]};function Ie(At,lt,Ge,Be,we){let pe=lt.getWordUntilPosition(Ge),De={startLineNumber:Ge.lineNumber,endLineNumber:Ge.lineNumber,startColumn:pe.startColumn,endColumn:pe.endColumn},ze=Be.map(Le=>({label:Le,kind:At.languages.CompletionItemKind.Keyword,insertText:Le,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:De}));return we.map(Le=>{ze.push(se(ce({},Le),{range:De}))}),ze}var We=At=>{ve.languages.map(we=>(At.languages.registerDocumentFormattingEditProvider(we,{provideDocumentFormattingEdits(pe,De,ze){return ge(this,null,function*(){const Le=Lt()(pe.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:pe.getFullModelRange(),text:Le}]})}}),we));const lt=_e.quickKey.map(we=>({label:we.label,kind:At.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ge=vt.quickKey.map(we=>({label:we.label,kind:At.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Be=Rt.quickKey.map(we=>({label:we.label,kind:At.languages.CompletionItemKind.Method,insertText:we.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet}));At.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(we,pe){var De=we.getWordUntilPosition(pe),ze={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Le=we.getLineContent(pe.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[..._e.keywords.map(nt=>({label:nt,kind:At.languages.CompletionItemKind.Function,documentation:nt,insertText:nt,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),..._e.quickKey.map(nt=>({label:nt.label,kind:At.languages.CompletionItemKind.Function,documentation:nt.content,insertText:Le.startsWith("#")?nt.content.replace(/#/,""):nt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}}),At.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(we,pe){var De=we.getWordUntilPosition(pe),ze={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn};return{suggestions:[...He.keywords.map(Le=>({label:Le,kind:At.languages.CompletionItemKind.Function,documentation:Le,insertText:Le,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}}),At.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(we,pe){var De=we.getWordUntilPosition(pe),ze={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Le=we.getLineContent(pe.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...Rt.keywords.map(nt=>({label:nt,kind:At.languages.CompletionItemKind.Function,documentation:nt,insertText:nt,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...Rt.quickKey.map(nt=>({label:nt.label,kind:At.languages.CompletionItemKind.Function,documentation:nt.content,insertText:Le.startsWith("#")?nt.content.replace(/#/,""):nt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}}),At.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(we,pe){var De=we.getWordUntilPosition(pe),ze={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Le=we.getLineContent(pe.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...ke.keywords.map(nt=>({label:nt,kind:At.languages.CompletionItemKind.Function,documentation:nt,insertText:nt,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...ke.quickKey.map(nt=>({label:nt.label,kind:At.languages.CompletionItemKind.Function,documentation:nt.content,insertText:Le.startsWith("#")?nt.content.replace(/#/,""):nt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}}),At.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(we,pe){var De=we.getWordUntilPosition(pe),ze={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:De.startColumn,endColumn:De.endColumn},Le=we.getLineContent(pe.lineNumber).substring(De.startColumn-2,De.endColumn);return{suggestions:[...vt.keywords.map(nt=>({label:nt,kind:At.languages.CompletionItemKind.Function,documentation:nt,insertText:nt,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...vt.quickKey.map(nt=>({label:nt.label,kind:At.languages.CompletionItemKind.Function,documentation:nt.content,insertText:Le.startsWith("#")?nt.content.replace(/#/,""):nt.content,insertTextRules:At.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}})};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 Xe=Object.defineProperty,ht=(At,lt,Ge)=>lt in At?Xe(At,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):At[lt]=Ge,Ve=(At,lt,Ge)=>ht(At,typeof lt!="symbol"?lt+"":lt,Ge);const Nt=class bx{constructor(lt,Ge,Be){this.placeholder=lt,this.editor=Ge,this.monaco=Be,Ge.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)}};Ve(Nt,"ID","editor.widget.placeholderHint");var Ht=Nt,Zt=ye(96236),Yt=ye(8591),Ot=ye(6848),Qt=ye(89392),dt=ye(86766),Re=ye(56102),Mt=Object.defineProperty,Pn=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,Bn=(At,lt,Ge)=>lt in At?Mt(At,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):At[lt]=Ge,wn=(At,lt)=>{for(var Ge in lt||(lt={}))_t.call(lt,Ge)&&Bn(At,Ge,lt[Ge]);if(kt)for(var Ge of kt(lt))ln.call(lt,Ge)&&Bn(At,Ge,lt[Ge]);return At},Kn=(At,lt)=>Pn(At,mn(lt)),yt=(At,lt)=>{var Ge={};for(var Be in At)_t.call(At,Be)&<.indexOf(Be)<0&&(Ge[Be]=At[Be]);if(At!=null&&kt)for(var Be of kt(At))lt.indexOf(Be)<0&&ln.call(At,Be)&&(Ge[Be]=At[Be]);return Ge},Jn=(At,lt,Ge)=>new Promise((Be,we)=>{var pe=Le=>{try{ze(Ge.next(Le))}catch(nt){we(nt)}},De=Le=>{try{ze(Ge.throw(Le))}catch(nt){we(nt)}},ze=Le=>Le.done?Be(Le.value):Promise.resolve(Le.value).then(pe,De);ze((Ge=Ge.apply(At,lt)).next())});function bn(At){return/^\d+$/.test(At)?`${At}px`:At}function ci(){}let Tn=!1;const tn={"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 $t(At=[]){let lt=At;if(Array.isArray(At)){for(let Ge=0;Ge<At.length;Ge++){let Be=tn[At[Ge]];if(Be)return Be}return lt[0]}return tn[lt]||lt}let ft=null;var Je=At=>{var lt=At,{width:Ge="100%",height:Be="100%",value:we,language:pe="javascript",style:De={},options:ze={},overrideServices:Le={},theme:nt="vs-dark",onEditBlur:Ut,isCopy:En=!1,onSave:rn,autoHeight:vn=!1,forbidCopy:mi=!1,onChange:wi=ci,editorDidMount:Ri=ci,onFocus:Wi=ci,onBreakPoint:Mn=ci,breakPointValue:nr=[],filename:Wr="educoder.txt",errorLine:Hr,errorContent:Tr="",highlightLine:Fr,openBreakPoint:Yr=!1,placeholder:Kr=""}=lt,ar=yt(lt,["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 Co=(0,Se.useRef)(),$n=(0,Se.useRef)({}),Ce=(0,Se.useRef)(),hi=(0,Se.useRef)(),ki=(0,Se.useRef)([]),un=(0,Se.useRef)(!1),Wn=(0,Se.useRef)(),li=(0,Se.useRef)(),fn=(0,Se.useRef)(!1),[on,mt]=(0,Se.useState)(!1);function Pt(){let zt;return Co.current&&(zt=new Oe.Z(Sn=>{for(let Ci of Sn)(Ci.target.offsetHeight>0||Ci.target.offsetWidth>0)&&$n.current.instance.layout()}),zt.observe(Co.current)),zt}function bt(){Yt.ZP.warning({content:decodeURIComponent(Ke),key:"monaco-editor-tip"})}const tt=()=>{let zt=$n.current.instance;if(we!=null&&zt&&on){const Sn=zt.getModel();Sn&&we!==Sn.getValue()&&(Tn=!0,Sn.setValue(we),zt.layout(),Tn=!1)}};(0,Se.useEffect)(()=>{const zt=dt.Z.subscribe("formatDocument",Sn=>{var Ci;let Si=$n.current.instance;(Ci=Si==null?void 0:Si.getAction)==null||Ci.call(Si,"editor.action.formatDocument").run()});return window.updateMonacoValue=Sn=>{wi(Sn)},zt},[]),(0,Se.useEffect)(()=>{var zt;let Sn=$n.current.instance;hi.current&&clearTimeout(hi.current),hi.current=setTimeout(()=>{tt()},500),we&&(we!=null&&we.length)&&((zt=Sn==null?void 0:Sn.updateOptions)==null||zt.call(Sn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(we.split(/\r\n|\r|\n/g).length))+3,5)}))},[we,on,$n.current]),(0,Se.useEffect)(()=>{if(Hr&&$n.current&&$n.current.instance){let Sn=$n.current.instance;Sn.changeViewZones(function(Ci){var Si=document.createElement("div");Si.style.padding="10px 20px",Si.style.width="calc(100% - 20px)",Si.className="my-error-line-wrp",Si.innerHTML=Tr,Ci.addZone({afterLineNumber:Hr||11,heightInLines:3,domNode:Si})});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}};Sn.addOverlayWidget(zt),Sn.revealPositionInCenter({lineNumber:20,column:1})}},[Hr,$n.current,on]);const qt=(zt="",Sn)=>{if(!zt||zt.trim()==="")return!0;const Si=$n.current.instance.getModel().getLineTokens(Sn);let vi=!1;for(let ti=0;ti<2;ti++)Si.getStandardTokenType(ti)===1&&(vi=!0);return vi};(0,Se.useEffect)(()=>{var zt;const Sn=(zt=$n.current)==null?void 0:zt.instance;if(Sn&&on&&mi){const Ci=Sn.onDidBlurEditorWidget(()=>{fn.current=!1}),Si=Sn.onDidFocusEditorText(()=>{fn.current=!0});return()=>{Ci.dispose(),Si.dispose()}}},[$n.current,on,mi]),(0,Se.useEffect)(()=>{var zt;if((zt=$n.current)!=null&&zt.instance&&on&&Yr){let Sn=$n.current.instance,Ci=Sn.getModel();if(!Ci)return;(()=>{var Sr;let Xt=[],Li=[];const rr=Ci.getAllDecorations();for(let Er of rr)Er.options.className==="highlighted-line"&&(Xt.push((Sr=Er==null?void 0:Er.range)==null?void 0:Sr.startLineNumber),Li.push(Er==null?void 0:Er.id));if(Fr===Xt[0])return;Ci.deltaDecorations(Li,[]);const Hi=Ci.getLineCount();Fr&&Fr<=Hi&&(Sn.deltaDecorations([],[{range:new ft.Range(Fr,1,Fr,Ci.getLineMaxColumn(Fr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Sn.revealLineInCenter(Fr))})();const vi=(Sr=!1)=>{var Xt;let Li=[],rr=[];const Hi=Ci.getAllDecorations();for(let Er of Hi)Er.options.linesDecorationsClassName==="breakpoints-select"&&(Li.push((Xt=Er==null?void 0:Er.range)==null?void 0:Xt.startLineNumber),rr.push(Er==null?void 0:Er.id));if(Sr)return{lines:Li,ids:rr};Mn(Li)},ti=Sr=>Jn(void 0,null,function*(){let Xt={range:new ft.Range(Sr,1,Sr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ci.deltaDecorations([],[Xt]),vi()}),xi=Sr=>Jn(void 0,null,function*(){let Xt=[];const Li=Sn.getLineDecorations(Sr);for(let rr of Li)rr.options.linesDecorationsClassName==="breakpoints-select"&&Xt.push(rr.id);yield Ci.deltaDecorations(Xt,[]),vi()}),Ni=Sr=>{let Xt=Sn.getLineDecorations(Sr);for(let Li of Xt)if(Li.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Qt.isEqual)(nr,vi(!0).lines)){Ci.deltaDecorations(vi(!0).ids,[]);const Sr=nr.map(Xt=>({range:new ft.Range(Xt,1,Xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ci.deltaDecorations([],Sr)}const Zi=Sn.onDidChangeModelContent(Sr=>{let Xt=Sn.getPosition();if(Xt){let Li=Xt.lineNumber;clearTimeout(li.current),li.current=setTimeout(()=>{qt(Ci.getLineContent(Li),Li)?xi(Li):Ni(Li)?(xi(Li),ti(Li)):vi()},100)}}),cr=Sn.onMouseDown(Sr=>{var Xt,Li,rr;if(Sr.target.detail&&((rr=(Li=(Xt=Sr.target)==null?void 0:Xt.element)==null?void 0:Li.className)!=null&&rr.includes("line-numbers"))){let Hi=Sr.target.position.lineNumber;if(qt(Ci.getLineContent(Hi),Hi))return;Ni(Hi)?xi(Hi):ti(Hi)}}),Gn=Sr=>{let Xt={range:new ft.Range(Sr,1,Sr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};ki.current=Sn.deltaDecorations(ki.current,[Xt])},Ai=()=>{ki.current=Sn.deltaDecorations(ki.current,[])},br=Sn.onMouseMove(Sr=>{var Xt,Li,rr;if(Ai(),Sr.target.detail&&((rr=(Li=(Xt=Sr.target)==null?void 0:Xt.element)==null?void 0:Li.className)!=null&&rr.includes("line-numbers"))){let Hi=Sr.target.position.lineNumber;if(qt(Ci.getLineContent(Hi),Hi))return;Gn(Hi)}}),kr=Sn.onMouseLeave(()=>{Ai()});return()=>{Zi.dispose(),cr.dispose(),br.dispose(),kr.dispose()}}},[$n.current,on,nr,Fr,Yr,pe]),(0,Se.useEffect)(()=>{var zt;(zt=$n.current)!=null&&zt.instance&&Yr&&$n.current.instance.setPosition({lineNumber:0,column:0})},[Fr]);function dn(){let zt=$n.current.instance;if(zt){const Sn=zt.getSelection(),Ci=$n.current.pastePos||{},Si=new ft.Range(Ci.startLineNumber||Sn.endLineNumber,Ci.startColumn||Sn.endColumn,Ci.endLineNumber||Sn.endLineNumber,Ci.endColumn||Sn.endColumn);setTimeout(()=>{zt.executeEdits("",[{range:Si,text:""}])},300)}}function xt(zt){(window.navigator.platform.match("Mac")?zt.metaKey:zt.ctrlKey)&&zt.keyCode==83&&(zt.preventDefault(),rn())}const Ye=()=>{if(vn&&$n.current.instance){const zt=$n.current.instance.getContentHeight();Qn(zt<Be?Be:zt)}else Qn(Be)};function an(zt){var Sn=document.createEvent("MouseEvents");Sn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),zt.dispatchEvent(Sn)}const Bt=zt=>{if(!fn.current)return;const{keyCode:Sn,ctrlKey:Ci,metaKey:Si,target:vi,type:ti}=zt;return(ti==="paste"||(Sn===67||Sn===86)&&(Si||Ci))&&vi.nodeName==="TEXTAREA"&&(bt(),zt.preventDefault()),!1};function jn(zt,Sn){var Ci=window.URL||window.webkitURL||window,Si=new Blob([Sn]),vi=document.createElementNS("http://www.w3.org/1999/xhtml","a");vi.href=Ci.createObjectURL(Si),vi.download=zt,an(vi)}(0,Se.useEffect)(()=>{Ye()},[Ye]),(0,Se.useEffect)(()=>{Co.current&&!on&&Promise.all([ye.e(8909),ye.e(1810)]).then(ye.bind(ye,71448)).then(zt=>{try{ft=zt,$n.current.instance=ft.editor.create(Co.current,{value:we,language:$t(pe),theme:nt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Le);const Sn=$n.current.instance;let vi=[...Zt.BH._menuItems].find(Zi=>Zi[0]._debugName=="EditorContext")[1],ti=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xi=(Zi,cr)=>{var Gn,Ai;let br=Zi._first;do cr.includes((Ai=(Gn=br.element)==null?void 0:Gn.command)==null?void 0:Ai.id)&&Zi._remove(br);while(br=br.next)};if(Ri(Sn,ft),setTimeout(()=>{Ye(),$n.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{jn(Wr||"educoder.txt",Sn.getValue())}})},500),$n.current.subscription=Sn.onDidChangeModelContent(Zi=>{un.current?clearTimeout(Wn.current):(Ye(),wi(Sn.getValue(),Zi)),Wn.current=setTimeout(()=>{un.current=!1},500)}),window.Monaco||We(ft,$t(pe)),mi&&(xi(vi,ti),Co.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Bt),window.removeEventListener("paste",Bt),window.addEventListener("keydown",Bt),window.addEventListener("paste",Bt)),window.Monaco=ft,Ut&&Sn.onDidBlurEditorWidget(()=>{Ut(Sn.getValue())}),Wi&&Sn.onDidFocusEditorText(()=>{Wi(Sn.getValue())}),mi)try{Sn.onDidPaste(Zi=>{const cr=Sn.getSelection(),Gn=$n.current.pastePos||{},Ai=new ft.Range(Gn.startLineNumber||cr.endLineNumber,Gn.startColumn||cr.endColumn,Gn.endLineNumber||cr.endLineNumber,Gn.endColumn||cr.endColumn);Sn.executeEdits("",[{range:Zi.range,text:""}])})}catch(Zi){}let Ni=Pt();return Kr&&typeof Kr=="string"&&new Ht(Kr,Sn,ft),mt(!0),()=>{const Zi=$n.current.instance;Zi.dispose();const cr=Zi.getModel();cr&&cr.dispose(),$n.current.subscription&&$n.current.subscription.dispose(),Ni.unobserve(Co.current)}}catch(Sn){}})},[]),(0,Se.useEffect)(()=>{if($n.current.instance&&on)return document.addEventListener("keydown",xt,!1),()=>{document.removeEventListener("keydown",xt)}},[rn,on]),(0,Se.useEffect)(()=>{let zt=$n.current.instance;if(zt&&on){let Sn=$t(pe);ft.editor.setModelLanguage(zt.getModel(),Sn)}},[pe,on]),(0,Se.useEffect)(()=>{$n.current.instance&&on&&ft.editor.setTheme(nt)},[nt,on]),(0,Se.useEffect)(()=>{let zt=$n.current.instance;Ce.current=ze,zt&&on&&(zt.updateOptions(wn({},ze)),setTimeout(()=>{zt.getModel().updateOptions(wn({},ze))},200))},[JSON.stringify(ze),on]),(0,Se.useEffect)(()=>{let zt=$n.current.instance;zt&&on&&zt.layout()},[Ge,Be,on]);const[cn,Et]=(0,Se.useState)(bn(Ge)),[xn,Qn]=(0,Se.useState)(bn(Be)),Un=Kn(wn({},De),{width:cn,height:xn,position:"relative"});return Se.createElement("div",{className:"my-monaco-editor",ref:Co,style:Un},En&&Se.createElement(Re.CopyToClipboard,{text:we,onCopy:()=>Yt.ZP.success("\u590D\u5236\u6210\u529F")},Se.createElement(Ot.Z,{title:"\u590D\u5236\u4EE3\u7801"},Se.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Se.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Gt({width:At="100%",height:lt="100%",original:Ge,modified:Be,language:we,options:pe={}}){const De=(0,Se.useRef)(),[ze,Le]=(0,Se.useState)(null);function nt(vn){let mi;return De.current&&(mi=new Oe.Z(wi=>{for(let Ri of wi)(Ri.target.offsetHeight>0||Ri.target.offsetWidth>0)&&vn.layout()}),mi.observe(De.current)),mi}(0,Se.useEffect)(()=>(De.current&&Promise.all([ye.e(8909),ye.e(9404)]).then(ye.bind(ye,2550)).then(vn=>{ft=vn;const mi=ft.editor.createDiffEditor(De.current,Kn(wn({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},pe),{wordWrap:!0}));Le(mi);let wi=nt(mi);return()=>{mi.dispose();const Ri=mi.getModel();Ri&&Ri.dispose(),wi.unobserve(De.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Se.useEffect)(()=>{ze&&ze.setModel({original:ft.editor.createModel(Ge,we),modified:ft.editor.createModel(Be,we)})},[Ge,Be,we,ze]);const Ut=bn(At),En=bn(lt),rn={width:Ut,height:En};return Se.createElement("div",{className:"my-diff-editor",ref:De,style:rn})}},94606:function(Rn,Fn,ye){"use strict";ye.d(Fn,{jL:function(){return _e},w9:function(){return _t},QD:function(){return wi},cQ:function(){return Re},op:function(){return nt},O5:function(){return fn},_b:function(){return Hr},t7:function(){return se},Gi:function(){return Jn},YG:function(){return Kn},qp:function(){return gt},vr:function(){return Mn},qE:function(){return rn},Je:function(){return be},wb:function(){return Zt},cq:function(){return ft},tp:function(){return Me}});var Se=ye(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+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJY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btYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",_e=({dataSource:on=[],img:mt,imgWidth:Pt=346,title:bt,sunTitle:tt,bannerExtraContent:qt})=>Se.createElement("div",{className:Oe.banner},Se.createElement("div",{className:Oe.content},Se.createElement("aside",null,Se.createElement("p",null,Se.createElement("b",null,bt),Se.createElement("span",null,tt)),on.length>0&&Se.createElement("div",{className:Oe.btns},on.map((dn,xt)=>Se.createElement("div",{key:xt,onClick:dn.click},dn.name,dn.sign?Se.createElement("img",{src:He,width:39}):null))),qt),mt&&Se.createElement("img",{style:{marginTop:33,marginRight:38},src:mt,width:Pt}))),vt={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"},ke=ye(92310),Tt=ye.n(ke),Lt=ye(89392),gt=({dataSource:on=[],value:mt,onChange:Pt,onTitleChange:bt,className:tt,title:qt,titleWidth:dn=41,style:xt={},fontColor:Ye="#6A7283",showCount:an})=>{const[Bt,jn]=(0,Se.useState)(0),[cn,Et]=(0,Se.useState)(!1),xn=(0,Se.useRef)(null),Qn=(0,Se.useRef)(null);return(0,Se.useEffect)(()=>{var Un;on.length!==0&&(((Un=xn==null?void 0:xn.current)==null?void 0:Un.clientHeight)>97?jn(1):jn(0)),on.length===0&&jn(0),Et(!1)},[on]),Se.createElement("div",{className:Tt()(vt.row,tt),style:xt},Se.createElement("div",{onClick:(0,Lt.throttle)(()=>bt==null?void 0:bt(),2e3),style:{width:dn,marginTop:cn?12:4},className:`${vt.title} ${bt?"current":""}`},qt),Se.createElement("div",{className:cn?`${vt.tagsWrap} ${vt.tagsBorderWrap}`:vt.tagsWrap},Se.createElement("div",{className:vt.bar,ref:Qn,style:Bt>0?{height:Bt===1?97:"auto",overflow:Bt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Se.createElement("div",{className:vt.tag,ref:xn},on==null?void 0:on.map(Un=>Se.createElement("span",{onClick:()=>Pt(Un.id),key:Un.id,style:{color:Ye},className:mt===Un.id?vt.active:""},Se.createElement("span",{title:Un.name,className:vt.name},Un.name),!!an&&Se.createElement("span",{className:vt.num},Un.count))))),!!Bt&&Se.createElement(Se.Fragment,null,Bt===1?Se.createElement("div",{onClick:()=>{var Un;jn(2),((Un=xn==null?void 0:xn.current)==null?void 0:Un.clientHeight)>245?Et(!0):Et(!1)},className:vt.action},"\u5C55\u5F00",Se.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Se.createElement("div",{onClick:()=>{Qn.current.scrollTop=0,jn(1),Et(!1)},className:vt.action},"\u6536\u8D77",Se.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ct={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:on=[],value:mt,onChange:Pt,className:bt,style:tt={}})=>Se.createElement("div",{style:tt,className:Tt()(ct.tabs,bt)},on.map(qt=>Se.createElement("span",{onClick:()=>Pt(qt.id),className:mt===qt.id?ct.active:"",key:qt.id},qt.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=ye(92832),se=({dataSource:on=[],value:mt="",onChange:Pt,onInputChange:bt=()=>{},className:tt,style:qt={},placeholder:dn,allowClear:xt=!1})=>{var Ye;const[an,Bt]=(0,Se.useState)(""),[jn,cn]=(0,Se.useState)("");(0,Se.useEffect)(()=>{var Qn;let Un=mt;(Qn=JSON.stringify(mt))!=null&&Qn.includes("{")&&(Bt(mt.id),Un=mt.value||"");try{cn(decodeURIComponent(Un||""))}catch(zt){cn(decodeURIComponent(Un||""))}},[mt]);const Et=()=>{Pt(encodeURIComponent(jn),an||null)},xn=Qn=>{Qn!==an&&(Bt(Qn),Pt(encodeURIComponent(jn),Qn))};return Se.createElement("div",{className:Tt()(te.input,tt),style:qt},!!on.length&&Se.createElement("div",{className:te.dropdown},Se.createElement("div",{className:te.text},(Ye=on.find(Qn=>Qn.id===an))==null?void 0:Ye.name,Se.createElement("i",{className:"iconfont icon-zhankai4"}),Se.createElement("b",{className:te.b1}),Se.createElement("b",{className:te.b2})),Se.createElement("div",{className:te.menu},on.map((Qn,Un)=>Se.createElement("div",{key:Un,onClick:()=>xn(Qn.id)},Qn.name)))),Se.createElement(ne.default,{onPressEnter:Et,value:jn,onChange:Qn=>{cn(Qn.target.value),bt(encodeURIComponent(Qn.target.value),an||null)},bordered:!1,placeholder:dn}),Se.createElement("i",{onClick:Et,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"},be=({value:on,onChange:mt,className:Pt,total:bt,pageSize:tt,style:qt={}})=>{const dn=on<2,xt=on>=Math.ceil(bt/tt);return bt<=tt?Se.createElement(Se.Fragment,null):Se.createElement("div",{className:Tt()(ge.quickPager,Pt),style:qt},Se.createElement("div",{onClick:()=>{dn||mt(on-1,"prev")},className:dn?ge.disabled:""},"\u4E0A\u4E00\u9875"),Se.createElement("div",{onClick:()=>{xt||mt(on+1,"next")},className:xt?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=ye(71418),Ie=ye(6848),We=ye(39978),Ke=ye(10148),Xe=ye(58130),ht=ye(96908),Ve=ye(57177),Nt=ye(81378),qe=ye(97267),Zt=({className:on,dataSource:mt=[],col:Pt=4,right:bt,bottom:tt=23,precision:qt=0,wrapWidth:dn=1200,trackEventItems:xt,loading:Ye})=>{const an=Math.floor((dn-(Pt-1)*bt)/Pt);return Se.createElement(Pe.Z,{spinning:Ye},Se.createElement("div",{className:Tt()(Fe.list,on)},!!mt.length&&mt.map((Bt,jn)=>{const{name:cn,id:Et,identifier:xn,power:Qn,cover_image_id:Un,pic:zt}=Bt;return Se.createElement("div",{className:Fe.wrap,key:Et,style:{width:an,marginRight:(1+jn)%Pt===0?0:bt+qt,marginBottom:tt}},Se.createElement("a",{target:"_blank",href:`/shixuns/${xn}/challenges`,className:Fe.li,onClick:Sn=>{Sn.preventDefault(),xt&&(0,Xe.L9)([xt]),Qn&&(0,Xe.xg)(`/shixuns/${xn}/challenges`)}},Se.createElement("div",{className:Fe.img},Se.createElement("img",{className:Fe.cover,src:`${zt}`}),Bt.is_jupyter&&Se.createElement("img",{className:Fe.sign,src:ht}),Bt.is_jupyter_lab&&Se.createElement("img",{className:Fe.sign,src:Ve}),Bt.is_unity_3d&&Se.createElement("img",{className:Fe.sign,src:Nt})),Se.createElement("div",{className:Fe.name},Se.createElement(Ie.Z,{title:cn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Se.createElement("span",{className:Fe.e},cn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Se.createElement("div",{className:Fe.tags},Se.createElement(Ie.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Se.createElement("span",null,Bt.challenges_count))),!!Bt.myshixuns_count&&Se.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Se.createElement("span",null,Bt.myshixuns_count))),Se.createElement(Ie.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Se.createElement("span",null,Se.createElement("span",null,Bt.level))),Se.createElement("div",{className:Fe.rate},Se.createElement(We.Z,{allowHalf:!0,disabled:!0,defaultValue:Bt.score_info}),Se.createElement("span",null,"\xA0",Bt.score_info?`${Bt.score_info}\u5206`:"5\u5206")))),!Qn&&Se.createElement("div",{className:Fe.lockWrap},Se.createElement("img",{src:`${Ke.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Se.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!mt.length&&Se.createElement(qe.Z,null)))},Yt={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"},Ot=ye(2119),Qt=ye(59301),Re=({className:on,dataSource:mt=[],col:Pt=4,right:bt,bottom:tt=23,precision:qt=0,wrapWidth:dn=1200,trackEventItems:xt,loading:Ye,onRemove:an=()=>{},isCurrent:Bt=!0,showAlias:jn=!1})=>{const cn=Math.floor((dn-(Pt-1)*bt)/Pt),Et=[{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 Qt.createElement(Pe.Z,{spinning:Ye},Qt.createElement("div",{className:Tt()(Yt.list,on)},!!(mt!=null&&mt.length)&&(mt==null?void 0:mt.map((xn,Qn)=>{var Un;const{name:zt,id:Sn,identifier:Ci,featured:Si,school_name:vi,image_url:ti,excellent:xi,is_plan:Ni}=xn;return Qt.createElement("div",{key:Sn,className:Yt.wrap,style:{width:cn,marginRight:(1+Qn)%Pt===0?0:bt+qt,marginBottom:tt}},Qt.createElement("a",{className:Yt.li,onClick:Zi=>{Zi.preventDefault(),Zi.stopPropagation(),xt&&(0,Xe.L9)([xt]),(0,Xe.xg)(`/paths/${Ci}`)}},Qt.createElement("div",{className:Yt.img},Qt.createElement("img",{className:Yt.cover,src:`${ti}`}),Bt&&(0,Ot.bg)()&&(xn==null?void 0:xn.studying)&&Qt.createElement("div",{className:`${Yt.movebq} user-path-items`,onClick:Zi=>{Zi.stopPropagation(),an(xn)}},Qt.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Qt.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Un=xn==null?void 0:xn.subject_tags)==null?void 0:Un.map((Zi,cr)=>{var Gn,Ai;if(cr===0){const kr=(Gn=Et.find(Sr=>Sr.name==Zi))==null?void 0:Gn.swimg;return Qt.createElement("img",{className:Yt.sign,src:kr,style:{left:"-4px"}})}const br=(Ai=Et.find(kr=>kr.name==Zi))==null?void 0:Ai.ptimg;return Qt.createElement("img",{className:Yt.sign,src:br,style:{left:`${48+52*(cr-1)+2*cr}px`}})}),Qt.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(xn==null?void 0:xn.excellent)&&Qt.createElement("div",{className:Yt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Qt.createElement("div",{className:Yt.name},Qt.createElement(Ie.Z,{title:jn&&(xn!=null&&xn.excellent_alias_name)?Qt.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${zt}`,Qt.createElement("br",null),Qt.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${xn==null?void 0:xn.excellent_alias_name}`)):zt},Qt.createElement("span",{className:Yt.e},jn&&(xn==null?void 0:xn.excellent_alias_name)||zt))),Qt.createElement(Ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${vi}`},Qt.createElement("div",{className:Yt.unit},Qt.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),vi)),Qt.createElement("div",{className:Yt.tags},Qt.createElement("div",null,Qt.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Qt.createElement("span",null,Qt.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Qt.createElement("span",null,xn.stages_count))),Qt.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Qt.createElement("span",null,Qt.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Qt.createElement("span",null,xn.members_count)))))))})),!mt.length&&Qt.createElement(qe.Z,null)))},Mt={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"},Pn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo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VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",mn=ye(59301),_t=({className:on,dataSource:mt=[],col:Pt=4,right:bt,bottom:tt=23,precision:qt=0,wrapWidth:dn=1200,trackEventItems:xt,loading:Ye})=>{const an=Math.floor((dn-(Pt-1)*bt)/Pt);return mn.createElement(Pe.Z,{spinning:Ye},mn.createElement("div",{className:Tt()(Mt.list,on)},!!mt.length&&mt.map((Bt,jn)=>{const{subject_identifier:cn,id:Et,identifier:xn,power:Qn}=Bt,Un=Bt.is_public!=0&&Bt.is_public;return mn.createElement("div",{className:Mt.wrap,key:Et,style:{width:an,marginRight:(1+jn)%Pt===0?0:bt+qt,marginBottom:tt}},mn.createElement("a",{className:Mt.li,onClick:zt=>{zt.preventDefault(),xt&&(0,Xe.L9)([xt]),(0,Xe.xg)(Bt.first_category_url)}},mn.createElement("div",{className:Mt.top},mn.createElement(Ie.Z,{title:Bt.name},mn.createElement("div",{className:Mt.name},Bt.name)),mn.createElement("img",{className:Mt.img,src:Ke.Z.IMG_SERVER+"/images/"+Bt.avatar_url}),mn.createElement("div",{className:Mt.text,title:Bt.creator},Bt.creator),cn&&mn.createElement("div",{className:Mt.btns},mn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),mn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Un&&mn.createElement("div",{className:Mt.sign},"\u516C\u5F00")),mn.createElement("div",{className:Mt.bottom},Bt.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,Bt.visits))),Bt.course_members_count>0&&mn.createElement(Ie.Z,{title:"\u6210\u5458",placement:"bottom"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-chengyuan"}),Bt.course_members_count)),Bt.tasks_count>0&&mn.createElement(Ie.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},mn.createElement("span",null,mn.createElement("i",{className:"iconfont icon-zuoye"}),Bt.tasks_count)),Bt.is_end?mn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):mn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Bt.is_accessible&&mn.createElement("div",{className:Mt.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")))}),!mt.length&&mn.createElement(qe.Z,null)))},ln={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"},Bn=ye(42203),Kn=({dataSource:on=[],value:mt,onChange:Pt,className:bt,style:tt={},tabBarExtraContent:qt})=>Se.createElement("div",{className:Tt()(ln.tabs,bt),style:tt},Se.createElement("div",{className:ln.tabsWrap},on.map((dn,xt)=>Se.createElement("aside",{className:ln.tab,onClick:()=>{Pt(dn.id),dn.link&&Bn.history.push(dn.link)},key:xt},Se.createElement("div",{className:mt===dn.id?ln.active:""},dn.name),(dn==null?void 0:dn.resetCount)==null&&(dn==null?void 0:dn.total)!==void 0&&Se.createElement("span",null,"\uFF08",dn==null?void 0:dn.total,"\uFF09"),(dn==null?void 0:dn.resetCount)!==void 0&&(dn==null?void 0:dn.total)!==void 0&&Se.createElement(Ie.Z,{title:(dn==null?void 0:dn.tip)!=null?dn==null?void 0:dn.tip:""},Se.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Se.createElement("span",{style:{color:"#000"}},dn==null?void 0:dn.resetCount),"/",Se.createElement("span",null,dn==null?void 0:dn.total),"\uFF09"))))),Se.createElement("div",{className:ln.tabBar},qt)),Jn=({className:on,style:mt={},children:Pt})=>Se.createElement("div",{className:Tt()(on),style:mt},Pt),bn={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"},ci=ye(38854),Tn=ye(20834);const tn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ft=({sortValue:on,dropValue:mt,className:Pt,onSort:bt,onDrop:tt,dataSource:qt=tn})=>{var dn;return Se.createElement("div",{className:Tt()(bn.orderWrap,Pt)},Se.createElement(ci.Z,{dropdownRender:()=>Se.createElement(Tn.default,null,qt.map((xt,Ye)=>Se.createElement(Tn.default.Item,{key:Ye,onClick:()=>tt(xt.id)},xt.name)))},Se.createElement("span",{className:bn.orderTextWrap},(dn=qt.find(xt=>mt===xt.id))==null?void 0:dn.name)),Se.createElement("span",{className:bn.orderIconWrap},Se.createElement("span",{className:bn.orderAsc},Se.createElement("i",{className:on==="asc"?`iconfont icon-sanjiaoxing-up font12 ${bn.cursorPointer} ${bn.active}`:`iconfont icon-sanjiaoxing-up font12 ${bn.cursorPointer}`,onClick:()=>bt(on==="asc"?"desc":"asc")})),Se.createElement("span",{className:bn.orderDesc},Se.createElement("i",{className:on==="desc"?`iconfont icon-sanjiaoxing-down font12 ${bn.cursorPointer} ${bn.active}`:`iconfont icon-sanjiaoxing-down font12 ${bn.cursorPointer}`,onClick:()=>bt(on==="asc"?"desc":"asc")}))))},Je={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"},Gt=ye(3113),At=Object.defineProperty,lt=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,we=(on,mt,Pt)=>mt in on?At(on,mt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):on[mt]=Pt,pe=(on,mt)=>{for(var Pt in mt||(mt={}))Ge.call(mt,Pt)&&we(on,Pt,mt[Pt]);if(lt)for(var Pt of lt(mt))Be.call(mt,Pt)&&we(on,Pt,mt[Pt]);return on},De=(on,mt)=>{var Pt={};for(var bt in on)Ge.call(on,bt)&&mt.indexOf(bt)<0&&(Pt[bt]=on[bt]);if(on!=null&<)for(var bt of lt(on))mt.indexOf(bt)<0&&Be.call(on,bt)&&(Pt[bt]=on[bt]);return Pt},ze=(on,mt,Pt)=>new Promise((bt,tt)=>{var qt=Ye=>{try{xt(Pt.next(Ye))}catch(an){tt(an)}},dn=Ye=>{try{xt(Pt.throw(Ye))}catch(an){tt(an)}},xt=Ye=>Ye.done?bt(Ye.value):Promise.resolve(Ye.value).then(qt,dn);xt((Pt=Pt.apply(on,mt)).next())}),nt=on=>{var mt=on,{className:Pt,style:bt,children:tt,loading:qt=!1,openLoading:dn,onClick:xt=()=>{},size:Ye="middle",shape:an="round"}=mt,Bt=De(mt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[jn,cn]=(0,Se.useState)(!1);return Se.createElement(Gt.ZP,pe({onClick:(0,Lt.throttle)(Et=>ze(void 0,null,function*(){dn&&cn(!0);try{yield xt(Et)}catch(xn){console.log("error",xn)}dn&&cn(!1)}),2e3,{leading:!0,trailing:!1}),className:Tt()(Je.btn,Je[`${Ye}-${an}`],Pt),style:bt,size:Ye,shape:an,loading:jn||qt},Bt),tt)},Ut={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"},rn=({className:on,style:mt,children:Pt=null,onClick:bt,title:tt})=>Se.createElement("div",{className:Tt()(Ut.head,on),style:mt},Se.createElement("span",{className:"primary-hover",onClick:bt},Se.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Se.createElement("b",{title:tt},tt),Se.createElement("div",{className:Ut.node},Pt)),vn={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"},wi=({confirmShow:on=!0,confirmTitle:mt,confirmClick:Pt,cancelShow:bt=!0,cancelTitle:tt,cancelClick:qt,className:dn,style:xt,confirmLoading:Ye=!1})=>Se.createElement("div",{className:Tt()(vn.btns,dn),style:xt},on&&Se.createElement(Gt.ZP,{loading:Ye,onClick:Pt,type:"primary",className:vn.confirm},mt),bt&&Se.createElement(Gt.ZP,{onClick:qt,className:vn.cancel},tt)),Ri={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"},Mn=({className:on,style:mt={},LeftContent:Pt,children:bt,RightContent:tt})=>Se.createElement("div",{className:Tt()(Ri.fixedBottom,on),style:mt},Se.createElement("div",{className:Ri.wrap},Se.createElement("div",{className:Ri.left},Pt),Se.createElement("div",{className:Ri.center},bt),Se.createElement("div",{className:Ri.right},tt))),nr={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Hr=({className:on,style:mt={},dataSource:Pt=[]})=>Se.createElement("div",{className:Tt()(nr.crumbs,on),style:mt},Pt.map((bt,tt)=>tt<Pt.length-1?Se.createElement(Se.Fragment,{key:tt},bt.path||bt.onClick?Se.createElement("span",{className:nr.hover,onClick:bt!=null&&bt.onClick?bt.onClick:()=>Bn.history.push(bt.path)},bt.name):Se.createElement("span",null,bt.name),Se.createElement("span",null,"\xA0",">","\xA0")):Se.createElement("span",{key:tt,style:{color:"#5F6368"}},bt.name))),Tr=ye(31797),Fr=Object.defineProperty,Yr=Object.defineProperties,Kr=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,Ce=(on,mt,Pt)=>mt in on?Fr(on,mt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):on[mt]=Pt,hi=(on,mt)=>{for(var Pt in mt||(mt={}))Co.call(mt,Pt)&&Ce(on,Pt,mt[Pt]);if(ar)for(var Pt of ar(mt))$n.call(mt,Pt)&&Ce(on,Pt,mt[Pt]);return on},ki=(on,mt)=>Yr(on,Kr(mt)),un=(on,mt)=>{var Pt={};for(var bt in on)Co.call(on,bt)&&mt.indexOf(bt)<0&&(Pt[bt]=on[bt]);if(on!=null&&ar)for(var bt of ar(on))mt.indexOf(bt)<0&&$n.call(on,bt)&&(Pt[bt]=on[bt]);return Pt};const{Countdown:Wn}=Tr.default;var fn=on=>{var mt=on,{onChange:Pt}=mt,bt=un(mt,["onChange"]);const[tt,qt]=(0,Se.useState)(null);(0,Se.useEffect)(()=>{typeof tt=="number"&&tt>=0&&Pt(tt)},[tt]);const dn=xt=>{const Ye=Math.floor(xt/1e3);qt(Ye)};return Se.createElement(Wn,ki(hi({},bt),{onChange:dn}))}},91300:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Oe}});var Se=ye(59301);function Oe(He,Rt){const _e=(0,Se.useRef)();(0,Se.useEffect)(()=>{_e.current=He}),(0,Se.useEffect)(()=>{function vt(){_e.current()}if(Rt!==null){let ke=setInterval(vt,Rt);return()=>clearInterval(ke)}},[Rt])}},41997:function(Rn,Fn,ye){"use strict";ye.r(Fn),ye.d(Fn,{default:function(){return li}});var Se=ye(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=ye(92310),Rt=ye.n(He),_e=ye(94606),vt=ye(23469),ke=ye(95237),Tt=ye(3113),Lt=ye(43418),et=ye(92832),gt=ye(2595),ct=ye(78241),wt=ye(6848),Me=ye(88897),te=ye(8591),ne=ye(71418),ce=ye(24905),se=ye(5112),ge=ye(78550),ve=ye(58130),be=ye(42203),Fe=ye(44757),Pe=ye(87954),Ie=ye(18257),We=ye(19719),Ke=ye(35241),Xe=ye(97267),ht=Object.defineProperty,Ve=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,Yt=(fn,on,mt)=>on in fn?ht(fn,on,{enumerable:!0,configurable:!0,writable:!0,value:mt}):fn[on]=mt,Ot=(fn,on)=>{for(var mt in on||(on={}))Ht.call(on,mt)&&Yt(fn,mt,on[mt]);if(qe)for(var mt of qe(on))Zt.call(on,mt)&&Yt(fn,mt,on[mt]);return fn},Qt=(fn,on)=>Ve(fn,Nt(on));const dt=Se.createContext({}),Re=()=>{const{setActivatorNodeRef:fn,listeners:on}=(0,Se.useContext)(dt);return Se.createElement(Tt.ZP,Ot({type:"text",size:"small",icon:Se.createElement(wt.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"},Se.createElement(Fe.Z,null)),style:{cursor:"move"},ref:fn},on))},Mt=fn=>{const{attributes:on,listeners:mt,setNodeRef:Pt,setActivatorNodeRef:bt,transform:tt,transition:qt,isDragging:dn}=(0,We.nB)({id:fn["data-row-key"]}),xt=Ot(Qt(Ot({},fn.style),{transform:Ke.ux.Translate.toString(tt),transition:qt}),dn?{position:"relative",zIndex:99}:{}),Ye=(0,Se.useMemo)(()=>({setActivatorNodeRef:bt,listeners:mt}),[bt,mt]);return Se.createElement(dt.Provider,{value:Ye},Se.createElement("tr",Ot(Qt(Ot({},fn),{ref:Pt,style:xt}),on)))};var mn=({columns:fn,dataSource:on,setDataSource:mt,loading:Pt})=>{const bt=({active:tt,over:qt})=>{tt.id!==(qt==null?void 0:qt.id)&&mt(dn=>{const xt=dn.findIndex(an=>an.id===(tt==null?void 0:tt.id)),Ye=dn.findIndex(an=>an.id===(qt==null?void 0:qt.id));return(0,We.Rp)(dn,xt,Ye)})};return Se.createElement(Pe.LB,{modifiers:[Ie.DL],onDragEnd:bt},Se.createElement(We.Fo,{items:on.map(tt=>tt.id),strategy:We.qw},Se.createElement(gt.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:Pt,locale:{emptyText:Se.createElement(Xe.Z,{styles:{margin:"80px auto"},customText:Se.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Se.createElement("span",{style:{color:"#CA7720"}},"\u53F3\u4E0A\u89D2\u64CD\u4F5C\u6309\u94AE"),"\u8FDB\u884C\u6DFB\u52A0\uFF5E")})},dataSource:on,components:{body:{row:Mt}},columns:[{key:"sort",align:"center",width:80,render:()=>Se.createElement(Re,null)},...fn],size:"middle"})))},kt=ye(99313),_t=ye(19842),ln=ye(57809),Bn=ye(98228),wn=ye(25700),Kn=ye(70635),yt={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"},Jn=ye(69831),bn={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"},ci=ye(25711),Tn=ye(24334);const tn=["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 ft=({qitem:fn})=>{var on,mt,Pt,bt,tt,qt,dn,xt,Ye,an;return Se.createElement("div",{className:bn.warp},Se.createElement("div",{className:bn.mainPart},Se.createElement("div",{className:bn.qcount},(fn==null?void 0:fn.question_type)===8&&Se.createElement(ci.Z,{className:bn.content,showProgramFill:!0,value:(on=fn==null?void 0:fn.program_attr)==null?void 0:on.description}),(fn==null?void 0:fn.question_type)!=8&&Se.createElement(ci.Z,{className:bn.qtitle,value:(fn==null?void 0:fn.name)||(fn==null?void 0:fn.title)})),((fn==null?void 0:fn.question_type)===0||(fn==null?void 0:fn.question_type)===2)&&Se.createElement("div",null,(mt=fn==null?void 0:fn.choices)==null?void 0:mt.map((Bt,jn)=>Se.createElement("div",{className:bn.redio},!(Bt!=null&&Bt.is_answer)&&Se.createElement("span",{className:bn.redioitem}),(Bt==null?void 0:Bt.is_answer)&&Se.createElement("i",{className:`${bn.redioitemyes} icon-duigou1`}),Se.createElement(ci.Z,{className:Bt!=null&&Bt.is_answer?bn.titleyes:bn.title,value:tn[jn]+(Bt==null?void 0:Bt.choice_text)}),(Bt==null?void 0:Bt.is_answer)&&Se.createElement("div",{className:bn.yestag},"\u6B63\u786E\u7B54\u6848")))),(fn==null?void 0:fn.question_type)===1&&Se.createElement("div",null,(Pt=fn==null?void 0:fn.choices)==null?void 0:Pt.map((Bt,jn)=>Se.createElement("div",{className:bn.checkbox},!(Bt!=null&&Bt.is_answer)&&Se.createElement("span",{className:bn.checkboxitem}),(Bt==null?void 0:Bt.is_answer)&&Se.createElement("i",{className:`${bn.checkboxitemyes} icon-duigou1`}),Se.createElement(ci.Z,{className:Bt!=null&&Bt.is_answer?bn.titleyes:bn.title,value:tn[jn]+(Bt==null?void 0:Bt.choice_text)}),(Bt==null?void 0:Bt.is_answer)&&Se.createElement("div",{className:bn.yestag},"\u6B63\u786E\u7B54\u6848")))),(fn==null?void 0:fn.question_type)===3&&Se.createElement("div",{className:bn.completion},(bt=fn==null?void 0:fn.standard_answer)==null?void 0:bt.map((Bt,jn)=>{var cn;return Se.createElement("div",{style:{display:"flex"}},Se.createElement("span",{className:bn.title},"\u586B\u7A7A\u9879",jn+1),Se.createElement("div",{className:bn.content},(cn=Bt==null?void 0:Bt.answer_text)==null?void 0:cn.map((Et,xn)=>Se.createElement("div",{className:bn.items},Et))))})),(fn==null?void 0:fn.question_type)===4&&Se.createElement("div",{className:bn.simple},Se.createElement("div",{className:bn.title},"\u53C2\u8003\u7B54\u6848"),Se.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(tt=fn==null?void 0:fn.answer_texts)!=null&&tt[0]?Se.createElement(ci.Z,{className:bn.content,value:(qt=fn==null?void 0:fn.answer_texts)==null?void 0:qt[0]}):Se.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(fn==null?void 0:fn.question_type)===5&&((dn=fn==null?void 0:fn.challenge_names)==null?void 0:dn.map((Bt,jn)=>Se.createElement("div",{className:bn.shixun},Se.createElement("span",{className:bn.qtitle},Se.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,ve.EM)(jn+1),"\u9898"),Bt)))),(fn==null?void 0:fn.question_type)===6&&Se.createElement("div",{className:bn.program},Se.createElement(ci.Z,{className:bn.content,value:((xt=fn==null?void 0:fn.program_attr)==null?void 0:xt.description)||"- -"})),(fn==null?void 0:fn.question_type)===7&&((Ye=fn==null?void 0:fn.sub_item_banks)==null?void 0:Ye.map((Bt,jn)=>{var cn,Et,xn,Qn,Un;return Se.createElement("div",null,Se.createElement("div",{className:bn.combination},Se.createElement("span",{className:bn.qtitle},Bt==null?void 0:Bt.name)),Se.createElement("div",{className:bn.warp,style:{padding:"0px",paddingTop:20}},Se.createElement("div",null,((Bt==null?void 0:Bt.item_type)=="SINGLE"||(Bt==null?void 0:Bt.item_type)=="JUDGMENT")&&((cn=Bt==null?void 0:Bt.choices)==null?void 0:cn.map((zt,Sn)=>Se.createElement("div",{className:bn.redio},!(zt!=null&&zt.is_answer)&&Se.createElement("span",{className:bn.redioitem}),(zt==null?void 0:zt.is_answer)&&Se.createElement("i",{className:`${bn.redioitemyes} icon-duigou1`}),Se.createElement(ci.Z,{className:zt!=null&&zt.is_answer?bn.titleyes:bn.title,value:tn[Sn]+(zt==null?void 0:zt.choice_text)}),(zt==null?void 0:zt.is_answer)&&Se.createElement("div",{className:bn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Bt==null?void 0:Bt.item_type)=="MULTIPLE"&&((Et=Bt==null?void 0:Bt.choices)==null?void 0:Et.map((zt,Sn)=>Se.createElement("div",{className:bn.checkbox},!(zt!=null&&zt.is_answer)&&Se.createElement("span",{className:bn.checkboxitem}),(zt==null?void 0:zt.is_answer)&&Se.createElement("i",{className:`${bn.checkboxitemyes} icon-duigou1`}),Se.createElement(ci.Z,{className:zt!=null&&zt.is_answer?bn.titleyes:bn.title,value:tn[Sn]+(zt==null?void 0:zt.choice_text)}),(zt==null?void 0:zt.is_answer)&&Se.createElement("div",{className:bn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Bt==null?void 0:Bt.item_type)=="COMPLETION"&&Se.createElement("div",{className:bn.completion},(xn=Bt==null?void 0:Bt.standard_answer)==null?void 0:xn.map((zt,Sn)=>{var Ci;return Se.createElement("div",{style:{display:"flex"}},Se.createElement("span",{className:bn.title},"\u586B\u7A7A\u9879",Sn+1),Se.createElement("div",{className:bn.content},(Ci=zt==null?void 0:zt.answer_text)==null?void 0:Ci.map((Si,vi)=>Se.createElement("div",{className:bn.items},Si))))})),(Bt==null?void 0:Bt.item_type)=="SUBJECTIVE"&&Se.createElement("div",{className:bn.simple},Se.createElement("div",{className:bn.title},"\u53C2\u8003\u7B54\u6848"),Se.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Qn=Bt==null?void 0:Bt.answer_texts)!=null&&Qn[0]?Se.createElement(ci.Z,{className:bn.content,value:(Un=Bt==null?void 0:Bt.answer_texts)==null?void 0:Un[0]}):Se.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(fn==null?void 0:fn.question_type)===8&&Se.createElement("div",null,Se.createElement(ci.Z,{disabledFill:!0,className:bn.content,showProgramFill:!0,value:Tn.Base64.decode(((an=fn==null?void 0:fn.program_attr)==null?void 0:an.code)||"")})),(fn==null?void 0:fn.question_type)===5&&Se.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},Se.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},Se.createElement("div",{style:{marginRight:30}},Se.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),Se.createElement("span",{style:{color:"#000000"}},(fn==null?void 0:fn.author_name)||"- -")),Se.createElement("div",{style:{marginRight:30}},Se.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),Se.createElement("span",{style:{color:"#000000"}},(fn==null?void 0:fn.author_school_name)||"- -")),Se.createElement("div",{style:{marginRight:30}},Se.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),Se.createElement("span",{style:{color:"#000000"}},(fn==null?void 0:fn.study_count)||"0"))),Se.createElement("a",{className:bn.shixunbutton,href:`/shixuns/${fn==null?void 0:fn.identifier}/challenges?exercise=true`,target:"_blank"},Se.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((fn==null?void 0:fn.question_type)<=4||[6,8].includes(fn==null?void 0:fn.question_type))&&Se.createElement("div",{className:bn.bottom},Se.createElement("div",{className:bn.bottomitem},Se.createElement("span",{className:bn.left},"\u89E3\u6790"),Se.createElement("span",{className:bn.right},fn!=null&&fn.analysis?Se.createElement(ci.Z,{value:fn==null?void 0:fn.analysis}):Se.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),Se.createElement("div",{className:bn.bottomitem},Se.createElement("span",{className:bn.left},"\u96BE\u5EA6"),Se.createElement("span",{className:bn.right},(fn==null?void 0:fn.difficulty)===1?"\u7B80\u5355":(fn==null?void 0:fn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Se.createElement("div",{className:bn.bottomitem},Se.createElement("span",{className:bn.left},"\u77E5\u8BC6\u70B9"),Se.createElement("span",{className:bn.right},fn!=null&&fn.tag_discipline?fn==null?void 0:fn.tag_discipline:Se.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Je=ye(11961),Gt=ye(49731),At=ye(2908),lt=ye(86902),Ge=ye(59301),Be=Object.defineProperty,we=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,nt=(fn,on,mt)=>on in fn?Be(fn,on,{enumerable:!0,configurable:!0,writable:!0,value:mt}):fn[on]=mt,Ut=(fn,on)=>{for(var mt in on||(on={}))ze.call(on,mt)&&nt(fn,mt,on[mt]);if(De)for(var mt of De(on))Le.call(on,mt)&&nt(fn,mt,on[mt]);return fn},En=(fn,on)=>we(fn,pe(on)),rn=(fn,on,mt)=>new Promise((Pt,bt)=>{var tt=xt=>{try{dn(mt.next(xt))}catch(Ye){bt(Ye)}},qt=xt=>{try{dn(mt.throw(xt))}catch(Ye){bt(Ye)}},dn=xt=>xt.done?Pt(xt.value):Promise.resolve(xt.value).then(tt,qt);dn((mt=mt.apply(fn,on)).next())});const vn=({setScoreShow:fn,ScoreShow:on,onOk:mt,isshixuns:Pt,isloadings:bt,dispatch:tt,selectedIds:qt,user:dn,virtualId:xt,shixunsDetail:Ye})=>{var an;let[Bt,jn]=(0,Se.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[cn,Et]=(0,Se.useState)([]),[xn,Qn]=(0,Se.useState)([]),[Un,zt]=(0,Se.useState)([]),[Sn,Ci]=(0,Se.useState)([]);const[Si,vi]=(0,Se.useState)(!1),[ti]=ct.default.useForm(),[xi,Ni]=(0,Se.useState)(),[Zi,cr]=(0,Se.useState)(!1);let[Gn,Ai]=(0,Se.useState)(Pt);const[br,kr]=(0,Se.useState)([]),[Sr,Xt]=(0,Se.useState)(0),[Li,rr]=(0,Se.useState)(!0),[Hi,Er]=(0,Se.useState)([]),[dr,Nr]=(0,Se.useState)([]),Ti=[{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}],[Qi,er]=(0,Se.useState)([]),kn=(0,Se.useRef)(new Set),Dr=(0,Se.useRef)(new Set),Ln=(0,Se.useRef)(1),pr=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Qr=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],vr=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Ho,co]=(0,Se.useState)(!1),mr=()=>{ti.resetFields(),Gn=!1,Ai(!1),co(!1),ti.submit()};(0,Se.useEffect)(()=>{on&&(ti.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),Li&&Gn&&(ti.setFieldsValue({item_type:"SHIXUN"}),Bt.item_type="SHIXUN",jn(Ut({},Bt)),rr(!1)),Bt.type="0",Qn(qt),zt(qt),Dr.current=new Set(qt),hr(Bt),fr(),Vr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Ii())},[on]),console.log(xn,Un,"listitems"),(0,Se.useEffect)(()=>{Sr>0&&setTimeout(()=>{Xt(0)},2e3)},[Sr]);function hr(Wt){return rn(this,null,function*(){var Nn,ai,qn;if(vi(!0),jn(Ut({},Wt)),(Un==null?void 0:Un.length)<=0&&Wt.type==="5"){Ci([]),vi(!1);return}let Oi=Wt.type==="5"?Un==null?void 0:Un.filter(zn=>!br.includes(zn)):null,Bi=Wt.type==="5"?Un==null?void 0:Un.filter(zn=>br.includes(zn)):null;Ln.current=Ln.current+1;const pi=Ln.current;Wt.group_id=((Nn=Wt.group_id)==null?void 0:Nn.map(zn=>zn==null?void 0:zn.value))||null;let Gi=yield(0,Kn.ZP)("/api/item_banks.json",{method:"get",params:En(Ut({},Wt),{discipline_id:((ai=Wt==null?void 0:Wt.courseid)==null?void 0:ai[0])||null,sub_discipline_id:((qn=Wt==null?void 0:Wt.courseid)==null?void 0:qn[1])||null,ids:Oi,shixun_ids:Bi,include_shixuns:!0,keyword:Wt.keyword?encodeURIComponent(Wt.keyword):Wt.keyword,type:Wt.type==="5"?null:Wt.type,clazz:Wt.type==="3"?"ItemBanksGroup":null})});Ln.current===pi&&(Ci(Gi),vi(!1))})}function fr(){return rn(this,null,function*(){let Wt=yield(0,Kn.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Bt.type==="5"?null:Bt.type,clazz:"ItemBanksGroup"}});Et((0,Jn.L)(Wt==null?void 0:Wt.disciplines))})}function Vr(Wt){return rn(this,null,function*(){var Nn;let ai=yield(0,Kn.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Wt}),qn=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Nn=ai==null?void 0:ai.data)==null?void 0:Nn.map(Oi=>({title:Oi.name,id:Oi.id,pid:Oi.id,value:Oi.id,key:Oi.id,isLeaf:!Oi.have_child}))}];Er(qn)})}function Ii(){return rn(this,null,function*(){let Wt=yield(0,At.Dm)({});(Wt==null?void 0:Wt.status)===0&&Nr(Wt==null?void 0:Wt.groups)})}function Qe(Wt){return rn(this,null,function*(){var Nn,ai,qn,Oi;vi(!0);let Bi=(Nn=Wt.list)==null?void 0:Nn.filter(zn=>!br.includes(zn)),pi=(ai=Wt.list)==null?void 0:ai.filter(zn=>br.includes(zn));if(Bi.length===0&&pi.length===0){vi(!1),Ci([]);return}let Gi=yield(0,Kn.ZP)("/api/item_banks.json",{method:"get",params:En(Ut({},Wt),{discipline_id:((qn=Wt==null?void 0:Wt.courseid)==null?void 0:qn[0])||null,sub_discipline_id:((Oi=Wt==null?void 0:Wt.courseid)==null?void 0:Oi[1])||null,ids:Bi,shixun_ids:pi,type:Wt.type==="5"?null:Wt.type,clazz:Wt.type==="3"?"ItemBanksGroup":null})});vi(!1),Ci(Gi)})}const pt=Wt=>rn(void 0,null,function*(){const Nn=yield tt({type:"shixunsDetail/release",payload:{id:Wt}});let ai=Nn==null?void 0:Nn.tag_position,qn=(Nn==null?void 0:Nn.evaluation_set_position)||[],Oi=Nn.status;return Oi===0?(te.ZP.success("\u53D1\u5E03\u6210\u529F"),hr(Bt),!0):(Oi===2?te.ZP.error(`\u7B2C${qn.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Oi===3?te.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${ai.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)}),It=Wt=>(Wt==null?void 0:Wt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",sn=()=>Si?"\u6682\u65E0\u6570\u636E":Bt.type==="3"&&!(dr!=null&&dr.length)?Ge.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",Ge.createElement("span",{onClick:()=>{var Wt;return(0,ve.xg)(`/users/${(Wt=dn==null?void 0:dn.userInfo)==null?void 0:Wt.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):Bt.type==="0"&&(Sn==null?void 0:Sn.items_count)===0&&!(Bt!=null&&Bt.tag_discipline_id)&&!(Bt!=null&&Bt.difficulty)&&!(Bt!=null&&Bt.keyword)&&!(Bt!=null&&Bt.group_id)&&!(Bt!=null&&Bt.difficulty)?Ge.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",Ge.createElement("span",{onClick:()=>{(0,ve.xg)(`/problems/newcreate?&pageId=${xt}`),fn(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",Hn=(Wt,Nn,ai)=>Wt.map(qn=>qn.key===Nn?Ut(Ut({},qn),ai):qn.children?En(Ut({},qn),{children:Hn(qn.children,Nn,ai)}):qn),On=Wt=>rn(void 0,null,function*(){const{key:Nn}=Wt;let ai=Bt.type;const qn=yield(0,At.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Nn),type:ai}),{data:Oi,total_count:Bi}=qn||{};Bi>0&&Er(pi=>Hn(pi,Nn,{children:Oi.map(Gi=>({title:Gi.name,id:Gi.id,pid:Gi.id,value:Gi.id,key:Gi.id,isLeaf:!Gi.have_child}))}))});return Ge.createElement("div",null,Ge.createElement(Lt.default,{title:!1,footer:!1,open:on,width:1200,centered:!0,className:yt.scoremodal,onCancel:()=>{fn(!1)}},Ge.createElement("div",{style:{display:"flex",alignItems:"center"}},Ge.createElement("div",{className:yt.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),Ge.createElement(kt.default,{className:yt.tabWrap,activeKey:Bt.type,onChange:Wt=>{Wt==="3"?(Bt.show_all_share=!0,Vr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Bt.show_all_share=null,Wt==="0"&&Vr({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Bt.type=Wt,Bt.page=1,Bt.updated_at="",Bt.quotes="",Bt.courseid="",Bt.tag_discipline_id=null,Bt.difficulty=null,Bt.keyword=null,Bt.group_id=null,Bt.teach_group_id=null,ti.setFieldsValue({courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(Bt==null?void 0:Bt.item_type)==="SHIXUN"&&Bt.type!=="5"&&(Gn=!0,Ai(!0)),co(!1),Bt.type==="5"&&(Gn=!1,Ai(!1)),jn(Ut({},Bt)),hr(Ut({},Bt)),fr()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:Ge.createElement("div",null,"\u5DF2\u9009",Un.length>0&&Ge.createElement("span",{className:yt.titlecount},Un.length),Sr>0&&Ge.createElement("span",{className:yt.add},"+",Sr)),key:"5"}]}),Ge.createElement(ct.default,{layout:"inline",form:ti,onValuesChange:(Wt,Nn)=>{const ai=Object.values(Nn).some(Oi=>Oi!==null&&Oi!==""&&Oi!==void 0),qn=Nn.keyword==="";if(co(ai||!qn),Bt.page=1,(Nn==null?void 0:Nn.item_type)==="SHIXUN"){if(Bt.type==="5"?Ai(!1):Ai(!0),Wt.keyword||Wt.keyword==="")return;ti.submit()}else{if(Wt!=null&&Wt.courseid&&ti.setFieldsValue({tag_discipline_id:""}),Ai(!1),Wt.keyword||Wt.keyword==="")return;ti.submit()}},onFinish:Wt=>{var Nn;Bt.type==="3"&&(!Wt.group_id||((Nn=Wt==null?void 0:Wt.group_id)==null?void 0:Nn.length)===0)?Bt.show_all_share=!0:Bt.show_all_share=null,jn(Ut(Ut({},Bt),Wt)),hr(Ut(Ut({},Bt),Wt))}},Ge.createElement(ct.default.Item,{name:"courseid"},Ge.createElement(_t.Z,{className:yt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:cn})),!Gn&&Ge.createElement(ct.default.Item,{name:"tag_discipline_id"},Ge.createElement(ln.default,{className:yt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(an=Sn==null?void 0:Sn.tag_disciplines)==null?void 0:an.map(Wt=>Ge.createElement(ln.default.Option,{key:Wt.id},Wt.name)))),Ge.createElement(ct.default.Item,{name:Gn?"diff":"difficulty"},Ge.createElement(ln.default,{className:yt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Gn&&pr.map(Wt=>Ge.createElement(ln.default.Option,{key:Wt.value},Wt.name)),Gn&&Qr.map(Wt=>Ge.createElement(ln.default.Option,{key:Wt.value},Wt.name)))),Gn&&Ge.createElement(ct.default.Item,{name:"shixun_publish_status"},Ge.createElement(ln.default,{className:yt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},vr.map(Wt=>Ge.createElement(ln.default.Option,{key:Wt.value},Wt.name)))),Bt.type==="3"&&!Gn&&Ge.createElement(ct.default.Item,{name:"teach_group_id"},Ge.createElement(ln.default,{className:yt.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(Wt,Nn)=>(console.log("---",Wt,Nn),Nn.children.toUpperCase().indexOf(Wt.toUpperCase())!==-1)},dr==null?void 0:dr.map(Wt=>Ge.createElement(ln.default.Option,{key:Wt.group_id},Wt.name)))),(Bt.type==="3"||Bt.type==="0")&&!Gn&&Ge.createElement(ct.default.Item,{name:"group_id"},Ge.createElement(Bn.default,{treeDataSimpleMode:!0,style:{width:118},className:yt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Wt,Nn)=>Nn.title.toUpperCase().indexOf(Wt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:On,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Hi})),Ho&&Ge.createElement("span",{className:yt.allqingchu,onClick:mr},Ge.createElement("i",{className:"iconfont icon-guanbi4"}),Ge.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ge.createElement(ct.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ge.createElement(et.default.Search,{className:yt.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ge.createElement("i",{className:`iconfont icon-sousuo9 font14 ${yt.searchIcon}`,onClick:()=>ti.submit()}),onSearch:Wt=>{ti.submit()}}))),Ge.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ge.createElement("div",{onClick:()=>{Bt.updated_at==="asc"?Bt.updated_at="desc":Bt.updated_at="asc",jn(En(Ut({},Bt),{page:1})),hr(En(Ut({},Bt),{page:1}))}}," ",Bt.updated_at?Ge.createElement("img",{src:Bt.updated_at==="asc"?Je.Z:Gt.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ge.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ge.createElement("div",{onClick:()=>{Bt.quotes==="asc"?Bt.quotes="desc":Bt.quotes="asc",jn(En(Ut({},Bt),{page:1})),hr(En(Ut({},Bt),{page:1}))},style:{marginLeft:20}}," ",Bt.quotes?Ge.createElement("img",{src:Bt.quotes==="asc"?Je.Z:Gt.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ge.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ge.createElement(gt.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Sn==null?void 0:Sn.items)||(Sn==null?void 0:Sn.shixun_list),pagination:!1,locale:{emptyText:Ge.createElement(Xe.Z,{styles:{margin:"18px auto"},customText:sn()})},loading:Si,rowKey:Wt=>Wt.id,rowSelection:{type:"checkbox",selectedRowKeys:xn,getCheckboxProps:Wt=>({disabled:Wt.shixun_tag_num===1}),onSelect(Wt,Nn,ai){if(Nn)Gn&&kr([...br,Wt.id]),Qn([...xn,Wt.id]),er([...Qi,Wt]),Wt.identifier?kn.current.add(Wt.id):Dr.current.add(Wt.id),Xt(1),zt([...Un,Wt.id]);else{const qn=Qi.filter(pi=>pi.id!==Wt.id);er(qn);const Oi=qn.map(pi=>pi.id);Qn([...Oi]),Wt.identifier?kn.current.delete(Wt.id):Dr.current.delete(Wt.id);let Bi=Un.filter(pi=>pi!==Wt.id);if(zt(Bi),Gn){let pi=br.filter(Gi=>Gi!==Wt.id);kr([...pi])}if(Bt.type==="5"){Qe(En(Ut({},Bt),{list:[...Bi]}));return}}},onSelectAll(Wt,Nn,ai){if(Wt){const qn=ai.map(Oi=>Oi.id);Gn&&kr([...br,...qn]),er([...Qi,...ai]),Qn([...xn,...qn]),zt([...Un,...qn]);for(const Oi of ai)Oi.identifier?kn.current.add(Oi.id):Dr.current.add(Oi.id)}else{const qn=ai.map(pi=>pi.id),Oi=xn.filter(pi=>!qn.some(Gi=>Gi===pi)),Bi=Qi.filter(pi=>!qn.some(Gi=>Gi===pi.id));if(er(Bi),Qn([...Oi]),zt([...Oi]),Gn){let pi=br.filter(Gi=>!qn.some(zn=>zn===Gi.id));kr([...pi])}Bt.type==="5"&&Qe(En(Ut({},Bt),{list:[...Oi]}));for(const pi of qn)pi.identifier?kn.current.delete(pi):Dr.current.delete(pi)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(Wt,Nn,ai)=>{const qn=`No.${Wt}`;return Ge.createElement(wt.Z,{title:qn},Ge.createElement("span",null,qn))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Gn?"30%":"60%",key:"name",render:(Wt,Nn,ai)=>{var qn;return Ge.createElement(wt.Z,{title:It(Nn)},Ge.createElement("span",null,Ge.createElement(ci.Z,{key:1,showLines:1,showTextOnly:!0,value:Gn||Nn!=null&&Nn.challenge_names?Nn!=null&&Nn.title||Wt===null?"--":Wt:(Nn==null?void 0:Nn.item_type)=="BPROGRAM"?(qn=Nn==null?void 0:Nn.program_attr)==null?void 0:qn.description:Wt})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(Wt,Nn,ai)=>Ge.createElement(wt.Z,{title:Wt},Ge.createElement("span",null,Wt||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Gn,render:(Wt,Nn,ai)=>{var qn;return Ge.createElement(wt.Z,{title:It(Nn)},Ge.createElement("span",null,Wt?(qn=Wt==null?void 0:Wt.split("\u3001"))==null?void 0:qn[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Gn,render:(Wt,Nn,ai)=>Ge.createElement(wt.Z,{title:It(Nn)},Ge.createElement("span",null,Wt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(Wt,Nn,ai)=>{var qn,Oi,Bi,pi;return Ge.createElement(wt.Z,{title:It(Nn)},Ge.createElement("div",null,Gn||Nn!=null&&Nn.challenge_names?(Nn==null?void 0:Nn.level)||((Oi=(qn=pr==null?void 0:pr.filter(Gi=>Gi.value===Wt))==null?void 0:qn[0])==null?void 0:Oi.name):(pi=(Bi=pr==null?void 0:pr.filter(Gi=>Gi.value===Wt))==null?void 0:Bi[0])==null?void 0:pi.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Gn,render:(Wt,Nn,ai)=>Ge.createElement(wt.Z,{title:It(Nn)},Ge.createElement("div",null,Wt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(Wt,Nn,ai)=>Ge.createElement(wt.Z,{title:It(Nn)},Ge.createElement("div",null,Gn||Nn!=null&&Nn.challenge_names?(Nn==null?void 0:Nn.study_count)||(Nn==null?void 0:Nn.stu_num):Wt))},{title:Ge.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ge.createElement(wt.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ge.createElement(lt.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Gn,render:(Wt,Nn,ai)=>Ge.createElement(wt.Z,{title:It(Nn)},Ge.createElement("div",null,Wt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(Wt,Nn,ai)=>Ge.createElement(wt.Z,{title:It(Nn)},Ge.createElement("div",{style:{flex:1,textAlign:"start"}},Ge.createElement("a",{onClick:()=>{var qn,Oi;Ni(En(Ut({},Nn),{question_type:Gn||Nn!=null&&Nn.challenge_names?5:(Oi=(qn=Ti==null?void 0:Ti.filter(Bi=>Bi.value===(Nn==null?void 0:Nn.item_type)))==null?void 0:qn[0])==null?void 0:Oi.question_type})),cr(!0)}},"\u67E5\u770B"),(Nn==null?void 0:Nn.shixun_tag_num)===1&&Ge.createElement("a",{style:{marginLeft:10},onClick:()=>{Lt.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ge.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ge.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Nn==null?void 0:Nn.identifier}/challenges`)}},(Nn==null?void 0:Nn.shixun_name)||"--"),"\uFF1F"),onOk:()=>rn(void 0,null,function*(){if(!pt(Nn==null?void 0:Nn.identifier))return new Promise((qn,Oi)=>{Oi()})})})}},"\u53D1\u5E03")))}].filter(Wt=>!Wt.hidden)}),Ge.createElement(wn.Z,{current:Bt.page,total:(Sn==null?void 0:Sn.items_count)||(Sn==null?void 0:Sn.shixuns_count),style:{marginBottom:20},defaultPageSize:Bt.per_page,hideOnSinglePage:!(Sn!=null&&Sn.items_count),showTotal:Wt=>Ge.createElement("span",null,"\u5171\xA0",Ge.createElement("span",{style:{color:"#165DFF"}},Wt),"\xA0\u6761\u6570\u636E"),pageSize:Bt.per_page,onChange:(Wt,Nn)=>{Bt.page=Wt,Bt.per_page=Nn,jn(Ut({},Bt)),hr(Ut({},Bt))}}),Ge.createElement("div",{className:yt.bottom},Ge.createElement(Tt.ZP,{className:yt.no,onClick:()=>{fn(!1)}},"\u53D6\u6D88"),Ge.createElement(Tt.ZP,{loading:bt,style:{width:bt&&75},className:yt.yes,onClick:()=>rn(void 0,null,function*(){if((Un==null?void 0:Un.length)<=0){te.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}mt([...Dr.current],[...kn.current],!0,Un==null?void 0:Un.length)})},"\u786E\u8BA4"))),Ge.createElement(Lt.default,{open:Zi,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:yt.previewModal,width:1e3,centered:!0,onCancel:()=>{cr(!1)},onOk:()=>{cr(!1)}},Ge.createElement(ft,{qitem:xi})))};var mi=(0,be.connect)(({shixunsDetail:fn,user:on})=>({shixunsDetail:fn,user:on}))(vn),wi=ye(37010),Ri=ye(61186),Wi=ye.n(Ri),Mn=ye(59301),nr=Object.defineProperty,Wr=Object.defineProperties,Hr=Object.getOwnPropertyDescriptors,Tr=Object.getOwnPropertySymbols,Fr=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,Kr=(fn,on,mt)=>on in fn?nr(fn,on,{enumerable:!0,configurable:!0,writable:!0,value:mt}):fn[on]=mt,ar=(fn,on)=>{for(var mt in on||(on={}))Fr.call(on,mt)&&Kr(fn,mt,on[mt]);if(Tr)for(var mt of Tr(on))Yr.call(on,mt)&&Kr(fn,mt,on[mt]);return fn},Co=(fn,on)=>Wr(fn,Hr(on)),$n=(fn,on)=>{var mt={};for(var Pt in fn)Fr.call(fn,Pt)&&on.indexOf(Pt)<0&&(mt[Pt]=fn[Pt]);if(fn!=null&&Tr)for(var Pt of Tr(fn))on.indexOf(Pt)<0&&Yr.call(fn,Pt)&&(mt[Pt]=fn[Pt]);return mt},Ce=(fn,on,mt)=>new Promise((Pt,bt)=>{var tt=xt=>{try{dn(mt.next(xt))}catch(Ye){bt(Ye)}},qt=xt=>{try{dn(mt.throw(xt))}catch(Ye){bt(Ye)}},dn=xt=>xt.done?Pt(xt.value):Promise.resolve(xt.value).then(tt,qt);dn((mt=mt.apply(fn,on)).next())});const hi=({title:fn,icon:on,className:mt,style:Pt,children:bt})=>Mn.createElement("div",{className:Rt()(Oe.card,mt),style:Pt},Mn.createElement("div",{className:Oe.head},Mn.createElement("i",{className:on}),Mn.createElement("b",null,fn)),Mn.createElement("div",{className:Oe.element},bt)),ki=fn=>{var on=fn,{value:mt,onChange:Pt}=on,bt=$n(on,["value","onChange"]);return Mn.createElement(vt.Z,Co(ar({},bt),{defaultValue:mt,onChange:Pt}))},un=({value:fn=[],onChange:on,params:mt,className:Pt})=>{const[bt,tt]=(0,Se.useState)(!1),[qt,dn]=(0,Se.useState)([]),[xt,Ye]=(0,Se.useState)(""),[an,Bt]=(0,Se.useState)([]),[jn,cn]=(0,Se.useState)("");(0,Se.useEffect)(()=>{Et()},[]);function Et(){return Ce(this,null,function*(){let xn=yield(0,Kn.ZP)(`/api/courses/${mt==null?void 0:mt.coursesId}/teachers`,{method:"get",params:{homework_id:mt.categoryId,limit:1e3}});Bt((xn==null?void 0:xn.teacher_list)||[])})}return Mn.createElement(Se.Fragment,null,Mn.createElement("div",{className:Rt()(Oe.collaborator,Pt)},fn==null?void 0:fn.map(xn=>Mn.createElement(ke.Z,{align:"middle",className:`${Oe.btn} ${jn==(xn==null?void 0:xn.user_id)?Oe.delBorder:""}`,key:xn.user_id},Mn.createElement("span",{className:"c-grey-333"},xn==null?void 0:xn.name),Mn.createElement("span",{className:`iconfont icon-guanbi11 current ml20 c-grey-ccc ${Oe.delSty}`,onMouseEnter:()=>{cn(xn==null?void 0:xn.user_id)},onMouseLeave:()=>{cn("")},onClick:()=>{const Qn=fn.filter(Un=>Un.user_id!==xn.user_id);dn(Qn.map(Un=>Un.user_id)),on(Qn)}}))),Mn.createElement(Tt.ZP,{className:Oe.copHover,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:()=>tt(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),Mn.createElement(Lt.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:bt,onCancel:()=>tt(!1),onOk:()=>{const xn=an.filter(Qn=>qt.includes(Qn.user_id));on(xn),tt(!1)},afterClose:()=>{Ye("")}},Mn.createElement(ke.Z,{align:"middle"},Mn.createElement("label",null,"\u59D3\u540D\uFF1A"),Mn.createElement(et.default.Search,{value:xt,size:"middle",style:{flex:1},onChange:xn=>Ye(xn.target.value)})),Mn.createElement(gt.default,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:xn=>{dn(xn)},selectedRowKeys:qt,getCheckboxProps:xn=>({disabled:xn.is_collaborator})},pagination:!1,rowKey:"user_id",size:"middle",dataSource:an.filter(xn=>xn.name.includes(xt)),columns:[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u89D2\u8272",dataIndex:"role"}]})))};var li=()=>{var fn;const on=(0,be.useParams)(),mt=(0,be.useDispatch)(),[Pt]=ct.default.useForm(),bt=ct.default.useWatch("hack_score_settings",Pt),tt=ct.default.useWatch("open_code",Pt),qt=ct.default.useWatch("rank_forbidden",Pt),dn=ct.default.useWatch("hack_analysis",Pt),xt=ct.default.useWatch("hack_answer",Pt),[Ye,an]=(0,Se.useState)([]),[Bt,jn]=(0,Se.useState)({}),[cn,Et]=(0,Se.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),[xn,Qn]=(0,Se.useState)(!0),[Un,zt]=(0,Se.useState)(!1),[Sn,Ci]=(0,Se.useState)(!1),[Si,vi]=(0,Se.useState)({}),[ti,xi]=(0,Se.useState)(!1),[Ni,Zi]=(0,Se.useState)(!1),cr=(0,Se.useRef)(!1),Gn=(0,Se.useRef)(String(Math.random()).slice(-6)),Ai=(fn=window.location.pathname)==null?void 0:fn.includes("add");(0,Se.useEffect)(()=>(window.addEventListener("visibilitychange",br),()=>{window.removeEventListener("visibilitychange",br)}),[Ye,Si]),(0,Se.useEffect)(()=>(mt({type:"globalSetting/footerToggle",payload:!1}),()=>{mt({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,Se.useEffect)(()=>{Ye.length&&bt!==void 0&&Hi()},[bt,JSON.stringify(Ye==null?void 0:Ye.map(Ti=>Ti.id+Ti.hack_score))]),(0,Se.useEffect)(()=>{kr(),Ai?Qn(!1):Sr()},[]);const br=()=>Ce(void 0,null,function*(){var Ti;if(document.visibilityState==="visible"){Zi(!0);let Qi=Ye.map(Dr=>Dr.id),er=localStorage.getItem(Gn.current);er&&(er=JSON.parse(er),er=Array.isArray(er)?er:[],Qi=[...Qi,...er],localStorage.removeItem(Gn.current));const kn=yield(0,Kn.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:Qi.length?Qi:-1,homework_common_id:Ai?null:Si==null?void 0:Si.homework_id}});if(kn!=null&&kn.items){const Dr=(Ti=kn==null?void 0:kn.items)==null?void 0:Ti.map(Ln=>{const pr=Ye.find(Qr=>Qr.id===Ln.id);return pr?Co(ar({},Ln),{hack_score:pr.hack_score}):Ln});an(Dr)}Zi(!1)}}),kr=()=>Ce(void 0,null,function*(){const Ti=yield(0,Kn.ZP)(`/api/courses/${on.coursesId}/homework_commons/new.json`,{method:"get",params:{category:on==null?void 0:on.categoryId,type:5}});Ti!=null&&Ti.course_name&&jn(Ti)}),Sr=()=>Ce(void 0,null,function*(){var Ti,Qi;const er=yield(0,Kn.ZP)(`/api/homework_commons/${on==null?void 0:on.categoryId}/edit_hack.json`,{method:"get"});if((er==null?void 0:er.status)===0){const kn=(Ti=er==null?void 0:er.collaborators_data)==null?void 0:Ti.map(Ln=>({user_id:Ln.id,name:Ln.real_name}));Pt.setFieldsValue(Co(ar({},er),{user_ids:kn,rank_forbidden_start:er!=null&&er.rank_forbidden_start?Wi()(er==null?void 0:er.rank_forbidden_start):"",rank_forbidden_end:er!=null&&er.rank_forbidden_end?Wi()(er==null?void 0:er.rank_forbidden_end):""}));const Dr=(Qi=er==null?void 0:er.items)==null?void 0:Qi.map((Ln,pr)=>{var Qr,vr;return Co(ar({},Ln),{hack_score:(vr=(Qr=er==null?void 0:er.hack_settings)==null?void 0:Qr[pr])==null?void 0:vr.hack_score})});an(Dr||[]),vi(ar({},er))}Qn(!1)}),Xt=()=>{let Ti=`/classrooms/${on==null?void 0:on.coursesId}/program_homework`;return Ai||(Ti=`/classrooms/${on==null?void 0:on.coursesId}/program_homework/${on==null?void 0:on.categoryId}/detail`),Ti},Li=[{name:(Bt==null?void 0:Bt.course_name)||"",path:`/classrooms/${Bt==null?void 0:Bt.course_id}/program_homework`},{name:Ai?"\u7F16\u7A0B\u4F5C\u4E1A":Si==null?void 0:Si.name,path:Xt()},{name:(Ai?"\u65B0\u5EFA":"\u7F16\u8F91")+"\u7F16\u7A0B\u4F5C\u4E1A"}],rr=[{title:"\u5E8F\u53F7",dataIndex:"index",width:80,render:(Ti,Qi,er)=>er+1},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,render:Ti=>Mn.createElement(wt.Z,{placement:"topLeft",title:Ti},Mn.createElement("span",null,Ti||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(Ti,Qi,er)=>Mn.createElement(Me.Z,{disabled:bt!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:Ti,onChange:kn=>{Ye[er].hack_score=kn;const Dr=Ye.reduce((Ln,pr)=>Ln+Number(pr.hack_score||0),0);Pt.setFieldsValue({total_score:Dr.toFixed(2)}),an([...Ye])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:Ti=>Mn.createElement("span",null,Ti===1?"\u7B80\u5355":Ti===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:Ti=>Mn.createElement(wt.Z,{placement:"topLeft",title:Ti},Mn.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},Ti||"--"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes"},{title:"\u64CD\u4F5C",dataIndex:"action",width:146,render:(Ti,Qi)=>Mn.createElement("span",null,Mn.createElement("span",{onClick:()=>Ce(void 0,null,function*(){var er;mt({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let kn=yield(0,Kn.ZP)(`/api/problems/${(er=Qi==null?void 0:Qi.program_attr)==null?void 0:er.identifier}/start.json`,{method:"get"});(kn==null?void 0:kn.status)===0&&(0,ve.xg)(`/myproblems/${kn==null?void 0:kn.identifier}?type=1&pageId=edit&backUrl=${Xt()}`),mt({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),Mn.createElement("span",{onClick:()=>{var er;return(0,ve.xg)(`/problems/newedit/${(er=Qi==null?void 0:Qi.program_attr)==null?void 0:er.identifier}?type=1&pageId=edit&backUrl=${window.location.pathname}`)},className:"c-light-primary current mr20 ml20"},"\u7F16\u8F91"),Mn.createElement("span",{onClick:()=>{const er=Ye.filter(kn=>kn.id!==Qi.id);an(er),te.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],Hi=()=>{const Ti=[...Ye],Qi=Pt.getFieldValue("total_score"),er=Ti==null?void 0:Ti.length;let kn=0,Dr;switch(bt){case 0:const Ln=(Qi/er).toFixed(2);Ti.map((fr,Vr)=>{kn=Vr,fr.hack_score=Ln>0?Ln:0}),Dr=(Qi-Ln*(er-1)).toFixed(2),Ti[kn].hack_score=Dr>0?Dr:0;break;case 1:const pr=[0,1,3,6];let Qr=0;const vr=Ti.filter(fr=>fr.difficulty===1).length*pr[1],Ho=Ti.filter(fr=>fr.difficulty===2).length*pr[2],co=Ti.filter(fr=>fr.difficulty===3).length*pr[3],mr=Qi/(vr+Ho+co);Ti.map((fr,Vr)=>{kn=Vr,fr.hack_score=(pr[fr.difficulty]*mr).toFixed(2),Qr=Qr+Number(fr.hack_score)});let hr=Ti[kn].hack_score;Dr=(Qi-Qr+Number(hr)).toFixed(2),Ti[kn].hack_score=Dr>0?Dr:0;break}an(Ti)},Er=Ti=>{cr.current=Ti,Pt.submit()},dr=Ti=>Ce(void 0,null,function*(){var Qi;if(!Ye.length){te.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),Pt.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}xi(!0);const er=[],kn=Ye.map(pr=>(er.push(pr.hack_id),{hack_id:pr.hack_id,hack_name:pr.name,hack_score:pr.hack_score,difficult:pr.difficulty})),Dr=(Qi=Ti==null?void 0:Ti.user_ids)==null?void 0:Qi.map(pr=>pr.user_id),Ln=yield(0,Kn.ZP)(`/api/courses/${on.coursesId}/homework_commons/create_hack_homework.json`,{method:"post",body:Co(ar({},Ti),{category:Ai?Number(on==null?void 0:on.categoryId):null,homework_id:Ai?null:Si==null?void 0:Si.homework_id,hack_settings:kn,user_ids:Dr,hack_ids:er})});if((Ln==null?void 0:Ln.status)===0)if(te.ZP.success("\u4FDD\u5B58\u6210\u529F"),cr.current){const pr=ar({},Ln);Et(pr),mt({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[Ln==null?void 0:Ln.id],selectArrsAll:[pr],params:on,detail:!0,type:2,manage_all_group:pr==null?void 0:pr.manage_all_group}})}else be.history.push(`/classrooms/${on.coursesId}/program_homework/${Ln==null?void 0:Ln.id}/detail`);xi(!1)}),Nr=Ti=>Ce(void 0,null,function*(){if(!Ti.length){te.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898");return}if(Ti.length>200){te.ZP.warning("\u7F16\u7A0B\u9898\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC7200\u9053");return}const Qi=[],er=Ye.map(Ln=>{var pr;return(pr=Ln.program_attr)==null?void 0:pr.origin_item_bank_id}),kn=[];Ti.forEach(Ln=>{if(er.includes(Ln)){const pr=Ye.find(Qr=>{var vr;return((vr=Qr.program_attr)==null?void 0:vr.origin_item_bank_id)===Ln});kn.push(pr)}else Qi.push(Ln)}),Ci(!0);const Dr=yield(0,Kn.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:Qi}});if(Dr!=null&&Dr.items){const Ln=[...kn,...Dr==null?void 0:Dr.items];if(bt===2){const pr=Ln.reduce((Qr,vr)=>Qr+Number(vr.hack_score||0),0);Pt.setFieldsValue({total_score:pr.toFixed(2)})}an(Ln),zt(!1)}Ci(!1)});return Mn.createElement("div",{className:Oe.wrap},Mn.createElement(ne.Z,{spinning:xn},Mn.createElement("div",{className:Oe.center},Mn.createElement(_e._b,{dataSource:Li,className:"mb20"}),Mn.createElement(ct.default,{form:Pt,preserve:!1,onValuesChange:Ti=>{"total_score"in Ti&&Hi()},onFinishFailed:Ti=>Ce(void 0,null,function*(){var Qi,er;te.ZP.error(Ti.errorFields[0].errors[0]),Pt.scrollToField((er=(Qi=Ti==null?void 0:Ti.errorFields)==null?void 0:Qi[0])==null?void 0:er.name,{behavior:"smooth",block:"center"})}),onFinish:dr,colon:!1,size:"large"},Mn.createElement(hi,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},Mn.createElement(ct.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"}]},Mn.createElement(et.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),Mn.createElement(ct.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"}]},Mn.createElement(ki,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0}))),Mn.createElement(hi,{className:"mb20",title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},Mn.createElement(ct.default.Item,{label:"\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00",name:"languages",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00"}]},Mn.createElement(ce.default.Group,null,Mn.createElement(ce.default,{value:"c"},"C\u8BED\u8A00"),Mn.createElement(ce.default,{value:"c++"},"C++\u8BED\u8A00"),Mn.createElement(ce.default,{value:"java"},"Java\u8BED\u8A00"),Mn.createElement(ce.default,{value:"python"},"Python\u8BED\u8A00"))),Mn.createElement(ke.Z,{align:"middle"},Mn.createElement(ct.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},Mn.createElement(Me.Z,{precision:1,disabled:bt===2,min:0,style:{width:223},addonAfter:"\u5206"})),Mn.createElement(ct.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},Mn.createElement(Me.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),Mn.createElement(ct.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},Mn.createElement(se.ZP.Group,null,Mn.createElement(se.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),Mn.createElement(se.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),Mn.createElement(se.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),Mn.createElement(ke.Z,{align:"middle"},Mn.createElement("span",null,"\u9898\u76EE\u5217\u8868"),Mn.createElement(Tt.ZP,{onClick:()=>zt(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),Mn.createElement(Tt.ZP,{onClick:()=>(0,ve.xg)(`/problems/newcreate?pageId=${Gn.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),Mn.createElement("div",{className:Oe.tip},Mn.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"),Mn.createElement(ct.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},Mn.createElement(mn,{dataSource:Ye,setDataSource:an,columns:rr,loading:Ni}))),Mn.createElement(hi,{style:{marginBottom:100},title:"\u4F5C\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-zuoyeshezhi"},Mn.createElement("div",{className:Oe.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),Mn.createElement("div",{className:`${Oe.content} mb30`},Mn.createElement(ct.default.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0},Mn.createElement(se.ZP.Group,null,Mn.createElement(se.ZP,{value:0},Mn.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),Mn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),Mn.createElement(se.ZP,{style:{marginLeft:40},value:1},Mn.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),Mn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09"))))),Mn.createElement("div",{className:`${Oe.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),Mn.createElement("div",{className:Oe.content},Mn.createElement(ct.default.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0},Mn.createElement(ce.default,null,Mn.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),Mn.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")))),Mn.createElement("div",{className:`${Oe.title} mt30`},"\u516C\u5F00\u8BBE\u7F6E"),Mn.createElement("div",{className:Oe.content},Mn.createElement(ct.default.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1},Mn.createElement(ce.default,null,Mn.createElement("span",{className:"c-black"},"\u516C\u5F00\u6210\u7EE9"),Mn.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"))),Mn.createElement(ct.default.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1},Mn.createElement(ce.default,null,Mn.createElement("span",{className:"c-black"},"\u516C\u5F00\u4EE3\u7801"),Mn.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"))),!!tt&&Mn.createElement(ct.default.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1},Mn.createElement(se.ZP.Group,null,Mn.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Mn.createElement(se.ZP,{style:{marginLeft:60},value:0},"\u4EFB\u610F\u65F6\u95F4"))),Mn.createElement(ct.default.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1},Mn.createElement(ce.default,null,Mn.createElement("span",{className:"c-black"},"\u5F00\u542F\u5C01\u699C"),Mn.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"))),!!qt&&Mn.createElement(ke.Z,{align:"middle",className:"ml25"},Mn.createElement(ct.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"},Mn.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:ve.Q8,disabledTime:ve.d0})),Mn.createElement(ct.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"},Mn.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:ve.Q8,disabledTime:ve.d0}))),Mn.createElement(ct.default.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1},Mn.createElement(ce.default,null,Mn.createElement("span",{className:"c-black"},"\u516C\u5F00\u89E3\u6790"),Mn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u89E3\u6790\uFF09"))),!!dn&&Mn.createElement(ct.default.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2},Mn.createElement(se.ZP.Group,null,Mn.createElement(se.ZP,{value:2},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Mn.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4"),Mn.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"))),Mn.createElement(ct.default.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1},Mn.createElement(ce.default,null,Mn.createElement("span",{className:"c-black"},"\u516C\u5F00\u7B54\u6848"),Mn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),!!xt&&Mn.createElement(ct.default.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1},Mn.createElement(se.ZP.Group,null,Mn.createElement(se.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),Mn.createElement(se.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4")))),Mn.createElement("div",{className:`${Oe.title} mt30`},"\u534F\u4F5C\u8BBE\u7F6E"),Mn.createElement(ct.default.Item,{name:"user_ids",noStyle:!0,initialValue:[]},Mn.createElement(un,{params:on}))))),Mn.createElement("div",{className:Oe.fixedBtns},Mn.createElement(ke.Z,{align:"middle",className:Oe.center},Mn.createElement(Tt.ZP,{onClick:()=>be.history.push(Xt()),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),Mn.createElement(Tt.ZP,{loading:ti&&!cr.current,disabled:ti&&cr.current,onClick:()=>Er(!1),style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0},"\u4FDD\u5B58\u4F5C\u4E1A"),Mn.createElement(Tt.ZP,{loading:ti&&cr.current,disabled:ti&&!cr.current,onClick:()=>Er(!0),style:{padding:"6px 19px"},type:"primary"},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u4F5C\u4E1A")))),Mn.createElement(mi,{setScoreShow:zt,isshixuns:!1,ScoreShow:Un,virtualId:Gn.current,isloadings:Sn,onOk:Nr,selectedIds:Ye.map(Ti=>{var Qi;return(Qi=Ti.program_attr)==null?void 0:Qi.origin_item_bank_id})||[]}),Mn.createElement(wi.Z,{courseEndTime:cn==null?void 0:cn.course_end_date,onWindowBack:()=>{window.location.href=`/classrooms/${on==null?void 0:on.coursesId}/program_homework/${cn==null?void 0:cn.id}/detail`}}))}},37010:function(Rn,Fn,ye){"use strict";var Se=ye(59301),Oe=ye(78241),He=ye(8591),Rt=ye(43418),_e=ye(95237),vt=ye(5112),ke=ye(88897),Tt=ye(43604),Lt=ye(78550),et=ye(24905),gt=ye(61186),ct=ye.n(gt),wt=ye(70635),Me=ye(2119),te=ye(58130),ne=ye(42203),ce=ye(706),se=ye(16597),ge=ye(66539),ve=ye(59301),be=Object.defineProperty,Fe=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Xe=(Zt,Yt,Ot)=>Yt in Zt?be(Zt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Zt[Yt]=Ot,ht=(Zt,Yt)=>{for(var Ot in Yt||(Yt={}))We.call(Yt,Ot)&&Xe(Zt,Ot,Yt[Ot]);if(Ie)for(var Ot of Ie(Yt))Ke.call(Yt,Ot)&&Xe(Zt,Ot,Yt[Ot]);return Zt},Ve=(Zt,Yt)=>Fe(Zt,Pe(Yt)),Nt=(Zt,Yt)=>{var Ot={};for(var Qt in Zt)We.call(Zt,Qt)&&Yt.indexOf(Qt)<0&&(Ot[Qt]=Zt[Qt]);if(Zt!=null&&Ie)for(var Qt of Ie(Zt))Yt.indexOf(Qt)<0&&Ke.call(Zt,Qt)&&(Ot[Qt]=Zt[Qt]);return Ot},qe=(Zt,Yt,Ot)=>new Promise((Qt,dt)=>{var Re=mn=>{try{Pn(Ot.next(mn))}catch(kt){dt(kt)}},Mt=mn=>{try{Pn(Ot.throw(mn))}catch(kt){dt(kt)}},Pn=mn=>mn.done?Qt(mn.value):Promise.resolve(mn.value).then(Re,Mt);Pn((Ot=Ot.apply(Zt,Yt)).next())});const Ht=Zt=>{var Yt=Zt,{classroomList:Ot,dispatch:Qt,courseEndTime:dt,onWindowBack:Re}=Yt,Mt=Nt(Yt,["classroomList","dispatch","courseEndTime","onWindowBack"]),Pn,mn,kt,_t,ln,Bn,wn,Kn,yt,Jn,bn,ci,Tn,tn,$t,ft,Je,Gt,At,lt,Ge,Be,we,pe,De,ze,Le,nt,Ut,En,rn,vn,mi,wi,Ri,Wi,Mn,nr,Wr;const Hr=(0,ne.useParams)(),[Tr]=Oe.default.useForm(),[Fr,Yr]=(0,Se.useState)(1),[Kr,ar]=(0,Se.useState)([]),[Co,$n]=(0,Se.useState)(0),[Ce,hi]=(0,Se.useState)(2e3),[ki,un]=(0,Se.useState)(!0),[Wn,li]=(0,Se.useState)(!1),[fn,on]=(0,Se.useState)(!1),[mt,Pt]=(0,Se.useState)([]),[bt,tt]=(0,Se.useState)(!0),[qt,dn]=(0,Se.useState)(!((kt=(mn=(Pn=Ot.actionTabs)==null?void 0:Pn.selectArrsAll)==null?void 0:mn[0])!=null&&kt.send_type));let[xt,Ye]=(0,Se.useState)([0,0,0]);(0,Se.useEffect)(()=>{var Un,zt,Sn,Ci,Si,vi,ti,xi,Ni,Zi,cr,Gn,Ai;if(Ot.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(cn(),(Sn=(zt=(Un=Ot.actionTabs)==null?void 0:Un.selectArrsAll)==null?void 0:zt[0])!=null&&Sn.can_publish?Ye([...(Ni=(xi=(ti=Ot.actionTabs)==null?void 0:ti.selectArrsAll)==null?void 0:xi[0])==null?void 0:Ni.difficult_count]):Ye([...(vi=(Si=(Ci=Ot.actionTabs)==null?void 0:Ci.selectArrsAll)==null?void 0:Si[0])==null?void 0:vi.difficult_settings]),dn(!((Gn=(cr=(Zi=Ot.actionTabs)==null?void 0:Zi.selectArrsAll)==null?void 0:cr[0])!=null&&Gn.send_type)),an(),Ot.actionTabs.type===2){const br=(Ai=Ot.actionTabs.selectArrsAll)==null?void 0:Ai[0];tt(br.unified_setting)}else tt(!1)},[Ot.actionTabs]),(0,Se.useEffect)(()=>{if(Wn){if(fn)return;Qt({type:"classroomList/setActionTabs",payload:{}}),(0,Me.GJ)()?(Qt({type:"classroomList/getClassroomTeacherCommonList",payload:Ve(ht({},Ot.actionTabs.params),{type:1})}),Qt({type:"shixunHomeworks/getWorkList",payload:ht({},Hr)})):Qt({type:"classroomList/getClassroomCommonList",payload:ht({},Ot.actionTabs.params)})}},[Wn]);const an=Un=>qe(void 0,null,function*(){un(!0);const zt=yield(0,se.c_)(Ve(ht({},Hr),{page:Un||Fr,limit:2e4,homework_id:Ot.actionTabs.type===1?"":Ot.actionTabs.selectArrs[0]}));zt==null||zt.course_groups.map((Sn,Ci)=>{Sn.key=Sn.id,Sn.title=Sn.name,Sn.disabled=Sn.is_published}),zt&&(ar([...zt==null?void 0:zt.course_groups]),$n(zt==null?void 0:zt.course_groups_count),un(!1),Un||Tr.setFieldsValue({publish_time:ct()(ct()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:ct()(ct()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),Bt=()=>{(0,Me.GJ)()?Ot.actionTabs.detail?(Qt({type:"shixunHomeworks/setActionTabs",payload:{}}),Qt({type:"shixunHomeworks/getWorkList",payload:ht({},Hr)}),Qt({type:"shixunHomeworks/getWorkSetting",payload:ht({},Hr)})):Qt({type:"classroomList/getClassroomTeacherCommonList",payload:Ve(ht({},Ot.actionTabs.params),{type:5,category:Ot.actionTabs.params.categoryId})}):Qt({type:"classroomList/getClassroomCommonList",payload:ht({},Ot.actionTabs.params)})},jn=()=>qe(void 0,null,function*(){var Un,zt;if((0,Me.Rm)()&&!((Un=Ot.AssistantObject.hack)!=null&&Un.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"),Qn(!1);return}const Sn=ht({},Tr.getFieldsValue());if(Sn.end_time<=Sn.publish_time){He.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),Qn(!1);return}if((mt==null?void 0:mt.length)<=0&&!bt&&Kr.length>0){He.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Qn(!1);return}if(xt.reduce((vi,ti)=>vi+ti)===0&&!qt){He.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),Qn(!1);return}let Ci={homework_ids:[...Ot.actionTabs.selectArrs],group_ids:mt.length>0?mt.map(vi=>vi.id):(zt=Ot.detailCommonHomeworksList)==null?void 0:zt.course_groups,end_time:ct()(Sn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:ct()(Sn.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:xt==null?void 0:xt.map(vi=>vi),send_type:qt?"0":"1",unified_setting:!mt.length};if(Qn(!0),(yield(0,wt.ZP)(`/api/courses/${Hr.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:ht({},Ci)})).status===0){if(Qn(!1),(0,te.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),He.ZP.success("\u53D1\u5E03\u6210\u529F"),Qt({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),Re){Re();return}Mt.onCallback&&Mt.onCallback(),Bt(),localStorage.getItem("Noviceguide")==="0"||Qt({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:ve.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 Qn(!1)}),cn=()=>{Yr(1),ar([]),Pt([])},Et=Co>Fr*Ce,[xn,Qn]=(0,Se.useState)(!1);return ve.createElement(Rt.default,{width:600,confirmLoading:xn,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:Ot.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:jn,onCancel:()=>{if(cn(),Qt({type:"classroomList/setActionTabs",payload:{}}),Re){Re();return}Bt()}},ve.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",ve.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),Kr&&ve.createElement(Oe.default,{form:Tr},ve.createElement("div",{style:{paddingLeft:0}},Ot.actionTabs.type===2&&ve.createElement(_e.Z,{style:{marginBottom:"10px"}},ve.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),ve.createElement(vt.ZP.Group,{value:qt,disabled:!((Bn=(ln=(_t=Ot.actionTabs)==null?void 0:_t.selectArrsAll)==null?void 0:ln[0])!=null&&Bn.can_publish),onChange:Un=>{dn(Un.target.value)}},ve.createElement(vt.ZP,{value:!0},"\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"),ve.createElement(vt.ZP,{className:"ml20",value:!1},"\u968F\u673A\u62BD\u53D6"))),!qt&&ve.createElement(_e.Z,{style:{marginBottom:"10px"}},ve.createElement("span",{style:{marginRight:65}}),ve.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",ve.createElement(ke.Z,{value:xt[0],onChange:Un=>{xt[0]=Un,Ye([...xt])},min:0,disabled:!((yt=(Kn=(wn=Ot.actionTabs)==null?void 0:wn.selectArrsAll)==null?void 0:Kn[0])!=null&&yt.can_publish),placeholder:`\u6700\u5927${(Tn=(ci=(bn=(Jn=Ot.actionTabs)==null?void 0:Jn.selectArrsAll)==null?void 0:bn[0])==null?void 0:ci.difficult_count)==null?void 0:Tn[0]}`,max:(Je=(ft=($t=(tn=Ot.actionTabs)==null?void 0:tn.selectArrsAll)==null?void 0:$t[0])==null?void 0:ft.difficult_count)==null?void 0:Je[0],style:{width:60}})),ve.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",ve.createElement(ke.Z,{value:xt[1],onChange:Un=>{xt[1]=Un,Ye([...xt])},min:0,disabled:!((lt=(At=(Gt=Ot.actionTabs)==null?void 0:Gt.selectArrsAll)==null?void 0:At[0])!=null&<.can_publish),max:(pe=(we=(Be=(Ge=Ot.actionTabs)==null?void 0:Ge.selectArrsAll)==null?void 0:Be[0])==null?void 0:we.difficult_count)==null?void 0:pe[1],placeholder:`\u6700\u5927${(nt=(Le=(ze=(De=Ot.actionTabs)==null?void 0:De.selectArrsAll)==null?void 0:ze[0])==null?void 0:Le.difficult_count)==null?void 0:nt[1]}`,style:{width:60}})),ve.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",ve.createElement(ke.Z,{value:xt[2],onChange:Un=>{xt[2]=Un,Ye([...xt])},min:0,disabled:!((rn=(En=(Ut=Ot.actionTabs)==null?void 0:Ut.selectArrsAll)==null?void 0:En[0])!=null&&rn.can_publish),placeholder:`\u6700\u5927${(Ri=(wi=(mi=(vn=Ot.actionTabs)==null?void 0:vn.selectArrsAll)==null?void 0:mi[0])==null?void 0:wi.difficult_count)==null?void 0:Ri[2]}`,max:(Wr=(nr=(Mn=(Wi=Ot.actionTabs)==null?void 0:Wi.selectArrsAll)==null?void 0:Mn[0])==null?void 0:nr.difficult_count)==null?void 0:Wr[2],style:{width:60}}))),ve.createElement(_e.Z,{className:"mt30",align:"middle"},ve.createElement(Tt.Z,null,ve.createElement(Oe.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},ve.createElement(Lt.default,{style:{width:170,marginRight:"25px"},disabledDate:Un=>(0,ge.Q8)(Un,dt),disabledTime:Un=>(0,ge.d0)(Un),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ct()((0,te.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),ve.createElement(Tt.Z,{className:"ml20"},ve.createElement(Oe.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},ve.createElement(Lt.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ct()((0,te.U6)(),"HH:mm")},disabledDate:Un=>(0,ge.Q8)(Un,dt,Tr.getFieldValue("publish_time")),disabledTime:Un=>(0,ge.d0)(Un,Tr.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),Ot.actionTabs.type===2&&ve.createElement(_e.Z,{style:{marginBottom:"10px"}},ve.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),ve.createElement(vt.ZP.Group,{value:bt,onChange:Un=>{tt(Un.target.value),Pt([])}},ve.createElement(vt.ZP,{value:!0,disabled:!Ot.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),ve.createElement(vt.ZP,{className:"ml20",disabled:Kr.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),Kr.length<=0&&Ot.actionTabs.type===2&&ve.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"')),(Ot.actionTabs.type===1||!bt)&&Kr.length>0&&ve.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},ve.createElement("span",{style:{flex:1}},ve.createElement(et.default,{checked:mt.length===Kr.length,onChange:Un=>{mt.length===Kr.length?Pt([]):Pt(Kr.filter(zt=>!zt.is_published))}},"\u5168\u9009")," "),ve.createElement("span",{style:{width:16}}),ve.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",mt.length||0,"\u4E2A\u5206\u73ED")),(Ot.actionTabs.type===1||!bt)&&Kr.length>0&&ve.createElement(ce.Z,{data:Kr,selectedRowKeys:mt,setSelectedRowKeys:Pt})))};Fn.Z=(0,ne.connect)(({classroomList:Zt})=>({classroomList:Zt}))(Ht)},66539:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Q8:function(){return Re},d0:function(){return Mt},w6:function(){return dt}});var Se=ye(59301),Oe=ye(78550),He=ye(57809),Rt=ye(8591),_e=ye(43418),vt=ye(5112),ke=ye(95237),Tt=ye(43604),Lt=ye(6848),et=ye(24905),gt=ye(3113),ct=ye(61186),wt=ye.n(ct),Me=ye(2119),te=ye(70635),ne=ye(89392),ce=ye.n(ne),se=ye(58130),ge=ye(57534),ve=ye(42203),be=ye(46898),Fe=ye(18032),Pe=ye(30738),Ie=ye(83476),We=ye(20387),Ke=ye(59301),Xe=Object.defineProperty,ht=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,Zt=(_t,ln,Bn)=>ln in _t?Xe(_t,ln,{enumerable:!0,configurable:!0,writable:!0,value:Bn}):_t[ln]=Bn,Yt=(_t,ln)=>{for(var Bn in ln||(ln={}))qe.call(ln,Bn)&&Zt(_t,Bn,ln[Bn]);if(Nt)for(var Bn of Nt(ln))Ht.call(ln,Bn)&&Zt(_t,Bn,ln[Bn]);return _t},Ot=(_t,ln)=>ht(_t,Ve(ln)),Qt=(_t,ln,Bn)=>new Promise((wn,Kn)=>{var yt=ci=>{try{bn(Bn.next(ci))}catch(Tn){Kn(Tn)}},Jn=ci=>{try{bn(Bn.throw(ci))}catch(Tn){Kn(Tn)}},bn=ci=>ci.done?wn(ci.value):Promise.resolve(ci.value).then(yt,Jn);bn((Bn=Bn.apply(_t,ln)).next())});function dt(_t,ln){const Bn=[];for(let wn=_t;wn<ln;wn++)Bn.push(wn);return Bn}const Re=(_t,ln,Bn)=>{const wn=_t<wt()().startOf("day"),Kn=_t>wt()(ln).endOf("day"),yt=_t<wt()(Bn).startOf("day");return ln?Bn?wt()()<=wt()(Bn)?yt||Kn:wn||Kn:_t&&wn||Kn:Bn&&wt()()<=wt()(Bn)?yt:wn},Mt=(_t,ln)=>{const Bn=parseInt(wt()(_t).format("HH")),wn=parseInt(wt()().format("HH")),Kn=parseInt(wt()().format("mm"));if(!_t)return{disabledHours:()=>dt(0,wn),disabledMinutes:()=>dt(0,Kn)};if(ln){const yt=parseInt(wt()(ln).format("HH")),Jn=parseInt(wt()(ln).format("mm"));return wt()(_t).isSame(wt()(ln),"day")?{disabledHours:()=>dt(0,yt),disabledMinutes:()=>Bn<=yt?dt(0,Jn):[]}:void 0}if(wt()(_t).isSame(wt()(),"day"))return{disabledHours:()=>dt(0,wn),disabledMinutes:()=>wt()(_t).isSame(wt()(),"hour")&&Bn<=wn?dt(0,Kn):[]}},{RangePicker:Pn}=Oe.default,{Option:mn}=He.default,kt=({shixunHomeworks:_t,loading:ln,dispatch:Bn,classroomList:wn,user:Kn})=>{var yt,Jn,bn,ci,Tn,tn,$t,ft,Je;const Gt=(0,ve.useParams)(),{workSetting:At,workList:lt,shixunWorkList:Ge,headerInfo:Be,changeData:we}=_t,[pe,De]=(0,Se.useState)(!1),[ze,Le]=(0,Se.useState)(!1);let[nt,Ut]=(0,Se.useState)([]),[En,rn]=(0,Se.useState)([]),[vn,mi]=(0,Se.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:be.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[wi,Ri]=(0,Se.useState)({}),[Wi,Mn]=(0,Se.useState)({});(0,Se.useEffect)(()=>()=>{Ut([])},[]),(0,Se.useEffect)(()=>{De(!(0,Me.GJ)())},[(0,Me.GJ)()]);const nr=()=>{Bn({type:"shixunHomeworks/getWorkSetting",payload:Yt({},Gt)})};(0,Se.useEffect)(()=>{if(!(At!=null&&At.course_id))return;Object.keys(vn).map(function(hi){vn[hi]=At[hi]}),(!vn.allow_late||!vn.unified_late)&&(vn.late_penalty=20,vn.penalty_type=be.Q.Percent),vn.unified_setting||(vn.unified_late=!1,vn.unified_anonymous_comment=!1,vn.unified_anonymous_appeal=!1),nt=JSON.parse(JSON.stringify(At.group_settings.map(hi=>Ot(Yt({},hi),{group_name:[hi.group_name]})).filter(hi=>hi.publish_time!==null))),En=JSON.parse(JSON.stringify(At.allow_late_settings.map(hi=>Ot(Yt({},hi),{group_name:[hi.group_name]})).filter(hi=>hi.late_time!==null))),mi(Yt({},vn));const Ce=(0,se.QE)((nt==null?void 0:nt.length)>0?nt:[]);Ut([...Ce]),(En==null?void 0:En.length)<=0?rn([{penalty_type:be.Q.Percent,late_penalty:20}]):rn([...En])},[At]);const Wr=()=>Qt(void 0,null,function*(){var Ce,hi;if(((Ce=Kn==null?void 0:Kn.userInfo)==null?void 0:Ce.user_status)===2){(0,Fe.Rd)();return}const ki=JSON.parse(JSON.stringify(vn));if(ki.challenge_settings.filter(Wn=>!Wn.hide),ki.categoryId=Gt.categoryId,(hi=ki.challenge_settings)!=null&&hi.every(Wn=>!Wn.checked)){Rt.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(nt),!vn.unified_setting)nt=nt==null?void 0:nt.map(Wn=>{var li;if(!Wn.publish_time||!Wn.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(!Wn.group_name)throw Rt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Wn.group_name=typeof(Wn==null?void 0:Wn.group_name)=="string"?[Wn==null?void 0:Wn.group_name]:Wn==null?void 0:Wn.group_name,Wn.group_id=(li=At.group_settings)==null?void 0:li.filter(fn=>{var on;return(on=Wn==null?void 0:Wn.group_name)==null?void 0:on.includes(fn.group_name)}).map(fn=>fn.group_id||fn.id).toString().split(","),Wn});else if(!vn.publish_time||!vn.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(ki.group_settings=nt,vn.allow_late)if(vn.unified_late){if(vn.late_penalty===null||vn.late_penalty===void 0||vn.late_penalty<0||vn.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(!vn.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 En=En==null?void 0:En.map(Wn=>{var li,fn;if(Wn.late_penalty===null||Wn.late_penalty===void 0||Wn.late_penalty<0||Wn.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(!Wn.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(!Wn.group_name)throw Rt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Wn.group_name=typeof(Wn==null?void 0:Wn.group_name)=="string"?[Wn==null?void 0:Wn.group_name]:Wn==null?void 0:Wn.group_name,Wn.group_id=(fn=(li=Wn==null?void 0:Wn.group_name)==null?void 0:li.map(on=>{var mt,Pt;let bt=(Pt=(mt=At.group_settings)==null?void 0:mt.filter(tt=>(tt==null?void 0:tt.group_name)===on))==null?void 0:Pt[0];return bt==null?void 0:bt.group_id}))==null?void 0:fn.toString().split(","),Wn}),ki.allow_late_settings=En;let un=yield(0,We.Tr)({homework_common_ids:[parseInt(Gt.categoryId)],course_id:Gt.coursesId,type:"homework_common"});(un==null?void 0:un.student_count)===0?Hr(ki):(Mn(ki),Ri(un))}),Hr=Ce=>{var hi;if(Ce.total_score===null){Rt.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Ce!=null&&Ce.work_efficiency&&Ce.eff_score===null){Rt.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const ki=Ce.challenge_settings.reduce((li,fn)=>li+Number(fn.challenge_score),0);if((ki==null?void 0:ki.toFixed(10))!==((hi=Ce.total_score-Ce.eff_score)==null?void 0:hi.toFixed(10))){Rt.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Ce.total_score}\u5206`);return}const un={shixun_evaluation:Ce.shixun_evaluation,challenge_settings:Ce.challenge_settings};let Wn=()=>{var li;const fn=()=>Qt(void 0,null,function*(){Le(!0),(yield(0,te.ZP)(`/api/homework_commons/${Gt.categoryId}/publish_setting.json`,{method:"post",body:Yt({},Ce)})).status===0&&(Rt.ZP.success("\u66F4\u65B0\u6210\u529F"),nr(),Bn({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:Yt({},Gt)})),Le(!1)});!(0,ne.isEqual)(we,un)&&!((li=Be==null?void 0:Be.homework_status)!=null&&li.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:fn}):fn()};At!=null&&At.high_resources_consume&&!(At!=null&&At.high_resources_consume_permission)?Bn({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:Gt.coursesId,type:"shixun",type_id:Gt.categoryId,name:At.homework_name,fn:()=>{Wn()}}}):Wn()},Tr=(Ce,hi,ki="group_id")=>{var un;return hi?hi.find(Wn=>Wn[ki]===Ce):(un=At==null?void 0:At.group_settings)==null?void 0:un.find(Wn=>Wn.group_id[0]===Ce)},Fr=(At==null?void 0:At.allow_late)||(At==null?void 0:At.anonymous_comment),Yr=Ce=>{var hi,ki;const un=Tr(Ce,At==null?void 0:At.allow_late_settings,"id"),Wn=Tr(Ce,At==null?void 0:At.anonymous_comment_settings),li=Tr(Ce);return(At==null?void 0:At.allow_late)&&un&&wt()(un==null?void 0:un.late_time)<=wt()()||(At==null?void 0:At.anonymous_comment)&&Wn&&(Wn==null?void 0:Wn.evaluation_start)!==null||((ki=(wt()(li==null?void 0:li.end_time)<=wt()()&&((hi=At==null?void 0:At.allow_late_settings)==null?void 0:hi.filter(fn=>fn.group_id.includes(Ce))))[0])==null?void 0:ki.late_time)!=null},Kr=(0,Se.useMemo)(()=>(At==null?void 0:At.allow_late)||(At==null?void 0:At.all_group_late),[At,Be]),ar=At==null?void 0:At.anonymous_comment,Co=Ce=>{if(!Ce)return!1;const hi=Tr(Ce,At==null?void 0:At.anonymous_comment_settings);return(At==null?void 0:At.anonymous_comment)&&hi&&(hi==null?void 0:hi.evaluation_start)!==null},$n=(Ce,hi)=>{var ki,un,Wn;Bn({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Ce,index:hi,rangePickerDisabled:pe||(wt()()<=wt()((un=Tr((ki=Ce==null?void 0:Ce.group_id)==null?void 0:ki[0]))==null?void 0:un.publish_time)?!1:[!0,Yr((Wn=Ce==null?void 0:Ce.group_id)==null?void 0:Wn[0])]),disabledDate:At==null?void 0:At.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(vt.ZP.Group,{disabled:pe||!((yt=Be==null?void 0:Be.homework_status)!=null&&yt.includes("\u672A\u53D1\u5E03"))||(0,Me.Rm)()&&!((Jn=wn.AssistantObject.practice)!=null&&Jn.can_publish),value:vn.unified_setting,onChange:Ce=>{var hi;if(!((hi=Be==null?void 0:Be.homework_status)!=null&&hi.includes("\u672A\u53D1\u5E03"))){Rt.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(vn.unified_setting=!vn.unified_setting,vn.unified_setting||(vn.unified_late=!1,rn([{late_penalty:5}])),mi(Object.assign({},vn)),vn.unified_setting===!1&&nt==""){Ut(nt.concat({}));return}vn.unified_setting&&(Ut([]),rn([{late_penalty:5}]))}},Ke.createElement(vt.ZP,{value:!0,disabled:pe||!(At!=null&&At.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Ke.createElement(vt.ZP,{disabled:pe||!((bn=At==null?void 0:At.group_settings)!=null&&bn.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((ci=At==null?void 0:At.group_settings)==null?void 0:ci.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")),vn.unified_setting&&Ke.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Ke.createElement(ke.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:pe||!((Tn=Be==null?void 0:Be.homework_status)!=null&&Tn.includes("\u672A\u53D1\u5E03")||(tn=Be==null?void 0:Be.homework_status)!=null&&tn.includes("\u672A\u5F00\u59CB"))||(0,Me.Rm)()&&!(($t=wn.AssistantObject.practice)!=null&&$t.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:Ce=>Re(Ce,At==null?void 0:At.course_end_date),disabledTime:Ce=>Mt(Ce),value:vn.publish_time?wt()(vn.publish_time):"",onChange:(Ce,hi)=>{vn.publish_time=hi,(vn.end_time==""||!vn.end_time)&&vn.unified_setting&&(vn.end_time=wt()(Ce).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),mi(Object.assign({},vn))}}))),Ke.createElement(ke.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:wt()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(At==null?void 0:At.allow_late)&&(At==null?void 0:At.homework_status.includes("\u5DF2\u622A\u6B62"))||pe||(At==null?void 0:At.allow_late)&&wt()()>=wt()(At==null?void 0:At.end_time)||(0,Me.Rm)()&&!((ft=wn.AssistantObject.practice)!=null&&ft.can_publish),disabledDate:Ce=>Re(Ce,At==null?void 0:At.course_end_date,vn.publish_time),disabledTime:Ce=>Mt(Ce,vn.publish_time),value:vn.end_time?wt()(vn.end_time):"",onChange:(Ce,hi)=>{vn.end_time=hi,mi(Object.assign({},vn))}})))),!vn.unified_setting&&(nt==null?void 0:nt.length)>0&&Ke.createElement(ke.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},nt&&nt.map(function(Ce,hi){var ki,un,Wn,li,fn,on,mt;return Ke.createElement(Tt.Z,{span:24,key:hi},Ke.createElement(ke.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:hi==(nt==null?void 0:nt.length)-1?"0px":"10px"}},Ke.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",hi+1),Ke.createElement(He.default,{disabled:pe||((ki=Be==null?void 0:Be.homework_status)!=null&&ki.includes("\u672A\u53D1\u5E03")&&Ce.id||wt()()<wt()(Ce==null?void 0:Ce.publish_time)?!1:!!(Ce!=null&&Ce.publish_time))||(0,Me.Rm)()&&!((un=wn.AssistantObject.practice)!=null&&un.can_publish),mode:"multiple",className:ge.Z.multiple_select,style:{width:"250px"},value:Ce.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:Pt=>{var bt;if((0,Me.Rm)()&&!((bt=wn.AssistantObject.practice)!=null&&bt.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}nt[hi].group_name=Pt,nt[hi].group_id=Ce.group_id;const tt=(0,ne.flattenDeep)(nt.map(dn=>dn.group_name)),qt=En.map(dn=>{let xt=(dn==null?void 0:dn.group_name)||[];return Ot(Yt({},dn),{group_name:(0,ne.remove)(xt,Ye=>tt.includes(Ye))})});rn(qt),Ut(nt.slice())},maxTagCount:4,maxTagPlaceholder:Pt=>Ke.createElement("div",{style:{cursor:"pointer"},onClick:()=>$n(Ce,hi)},"+",Pt==null?void 0:Pt.length)},At.group_settings&&At.group_settings.map(function(Pt){if(!nt.map(tt=>tt.group_name).flat().includes(Pt.group_name))return Ke.createElement(mn,{value:Pt.group_name,key:Pt.id},Pt.group_name)})),Ke.createElement("div",{className:"ml20"},Ke.createElement(Pn,{size:"large",ranges:{\u6B64\u523B:[Ce.publish_time?wt()(Ce.publish_time):wt()(),wt()()]},allowClear:!1,disabled:pe||(wt()()<=wt()((li=Tr((Wn=Ce==null?void 0:Ce.group_id)==null?void 0:Wn[0]))==null?void 0:li.publish_time)?!1:[!0,Yr((fn=Ce==null?void 0:Ce.group_id)==null?void 0:fn[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:Pt=>Re(Pt,At==null?void 0:At.course_end_date),disabledTime:Pt=>Mt(Pt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[wt()((0,se.U6)(),"HH:mm"),wt()((0,se.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:Ce.publish_time&&[wt()(Ce.publish_time),Ce.end_time?wt()(Ce.end_time):void 0],onChange:(Pt,bt)=>{var tt;if((0,Me.Rm)()&&!((tt=wn.AssistantObject.practice)!=null&&tt.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}nt[hi].publish_time=bt[0],!Ce.end_time&&bt[0]?nt[hi].end_time=wt()(bt[0]).add(7,"days"):nt[hi].end_time=bt[1],Ut([...nt])},onCalendarChange:(Pt,bt,tt)=>{if(bt!=null&&bt[0]&&!bt[1]){const qt=wt()(bt[0]).add(7,"days");nt[hi].publish_time=bt[0],nt[hi].end_time=qt,Ut([...nt])}}})),!pe&&Ke.createElement("div",{style:{display:"flex",width:"50px"}},((on=Ce==null?void 0:Ce.group_id)==null?void 0:on.length)>1&&Ke.createElement(Lt.Z,{title:"\u89C4\u5219\u62C6\u5206"},Ke.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>$n(Ce,hi)})),nt.length<((mt=At==null?void 0:At.group_settings)==null?void 0:mt.length)&&Ke.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var Pt;if((0,Me.Rm)()&&!((Pt=wn.AssistantObject.practice)!=null&&Pt.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}Ut(nt.concat({}))}}),((Ce==null?void 0:Ce.publish_time)&&wt()()<wt()(Ce==null?void 0:Ce.publish_time)||!(Ce!=null&&Ce.publish_time))&&hi!=0&&Ke.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const Pt=(0,ne.cloneDeep)(En);Pt.forEach((bt,tt)=>{bt.group_name&&(bt.group_name=bt.group_name.filter(qt=>{var dn;return!((dn=nt[hi].group_name)!=null&&dn.includes(qt))}))}),nt=nt.filter((bt,tt)=>hi!==tt),rn(Pt),Ut(nt.slice()),setTimeout(()=>Ut(nt.slice()),10)}}))))}))),Ke.createElement(ke.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:vn.allow_late,disabled:pe||Kr,onChange:Ce=>{var hi;if((0,Me.Rm)()&&!((hi=wn.AssistantObject.practice)!=null&&hi.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}Ce.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"))}),vn.allow_late=!vn.allow_late,En==""&&rn([{late_penalty:5}]),mi(Object.assign({},vn))}},Ke.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(vn==null?void 0:vn.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(vt.ZP.Group,{style:{marginLeft:"20px"},disabled:pe||(At==null?void 0:At.anonymous_comment)||(At==null?void 0:At.allow_late),value:vn.unified_late,onChange:Ce=>{var hi;if((0,Me.Rm)()&&!((hi=wn.AssistantObject.practice)!=null&&hi.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}vn.unified_late=Ce.target.value,En==""&&!Ce.target.value&&rn([{penalty_type:be.Q.Percent,late_penalty:20}]),mi(Yt({},vn))}},(vn==null?void 0:vn.unified_setting)&&Ke.createElement(vt.ZP,{value:!0,disabled:!(At!=null&&At.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((Je=At==null?void 0:At.group_settings)==null?void 0:Je.length)>0&&Ke.createElement(vt.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),vn!=null&&vn.unified_late?Ke.createElement(Ke.Fragment,null,Ke.createElement(ke.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(be.Z,{disabled:pe||ar,value:{type:vn.penalty_type,inputValue:vn.late_penalty},onChange:Ce=>{var hi;if((0,Me.Rm)()&&!((hi=wn.AssistantObject.practice)!=null&&hi.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}mi(Ot(Yt({},vn),{late_penalty:Ce.inputValue,penalty_type:Ce.type}))}})),Ke.createElement(Tt.Z,{flex:"1",className:"ml5"},Ke.createElement("span",{className:"c-grey-c ml10"},vn.penalty_type===be.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(ke.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:wt()((0,se.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:pe||ar,value:vn.late_time?wt()(vn.late_time):"",disabledDate:Ce=>Re(Ce,At==null?void 0:At.course_end_date),onChange:(Ce,hi)=>{var ki;if((0,Me.Rm)()&&!((ki=wn.AssistantObject.practice)!=null&&ki.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}vn.late_time=hi,mi(Object.assign({},vn))}})))):En.map(function(Ce,hi){var ki;return Ke.createElement(Tt.Z,{span:24,key:hi},Ke.createElement(ke.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Ke.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",hi+1),Ke.createElement(He.default,{disabled:pe||!((ki=Be==null?void 0:Be.homework_status)!=null&&ki.includes("\u672A\u53D1\u5E03"))&&Ce.id||(At==null?void 0:At.anonymous_comment),mode:"multiple",className:ge.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Ce.group_name=="string"?[Ce.group_name]:Ce.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:un=>{var Wn;if((0,Me.Rm)()&&!((Wn=wn.AssistantObject.practice)!=null&&Wn.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}En[hi].group_name=un,En[hi].group_id=Ce.group_id,rn(En.slice())}},At.group_settings&&At.group_settings.map(function(un){const Wn=En.map(fn=>fn.group_name).flat(),li=nt.map(fn=>fn.group_name).flat();if(vn!=null&&vn.unified_setting){if(!Wn.includes(un.group_name))return Ke.createElement(mn,{value:un.group_name,key:un.id},un.group_name)}else if(li.includes(un.group_name)&&!Wn.includes(un.group_name))return Ke.createElement(mn,{value:un.group_name,key:un.id},un.group_name)})),Ke.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Ke.createElement(be.Z,{disabled:pe||Co(Ce.id),value:{type:Ce.penalty_type,inputValue:Ce.late_penalty},onChange:un=>{var Wn;if((0,Me.Rm)()&&!((Wn=wn.AssistantObject.practice)!=null&&Wn.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}En[hi].late_penalty=un.inputValue,En[hi].penalty_type=un.type,rn([...En])}}),Ke.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ke.createElement(Oe.default,{size:"large",disabled:pe||Co(Ce.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:wt()((0,se.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:un=>Re(un,At==null?void 0:At.course_end_date),format:"YYYY-MM-DD HH:mm",value:Ce!=null&&Ce.late_time?wt()(Ce.late_time):void 0,onChange:(un,Wn)=>{var li;if((0,Me.Rm)()&&!((li=wn.AssistantObject.practice)!=null&&li.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}En[hi].late_time=Wn,rn([...En])}}),!pe&&Ke.createElement("div",{style:{display:"flex",width:"50px"}},Ke.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var un;if((0,Me.Rm)()&&!((un=wn.AssistantObject.practice)!=null&&un.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}rn(En.concat({penalty_type:be.Q.Percent,late_penalty:20}))}}),hi>0&&!Ce.id&&Ke.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var un;if((0,Me.Rm)()&&!((un=wn.AssistantObject.practice)!=null&&un.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}En=En.filter((Wn,li)=>hi!==li),rn(En.slice()),setTimeout(()=>rn(En.slice()),10)}}))))})),!pe&&Ke.createElement(Ke.Fragment,null,Ke.createElement(gt.ZP,{type:"primary",size:"large",loading:ze,style:{width:"138px",marginTop:"30px"},onClick:()=>Wr()},"\u4FDD\u5B58")),Ke.createElement(Pe.Z,{onConfirm:(Ce,hi)=>{nt.splice(Ce,0,...hi),nt.splice(Ce+hi.length,1);const ki=(0,se.QE)([...nt]);Ut([...ki])}}),Ke.createElement(Ie.Z,{resdata:wi,type:"shixun",okloading:ze,oktext:(wi==null?void 0:wi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Ce=>Qt(void 0,null,function*(){Le(!0);let hi=yield(0,te.ZP)(`/api/courses/${Gt.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(Gt.categoryId)]}});Le(!1),(hi==null?void 0:hi.status)===0&&Hr(Wi)})}))};Fn.ZP=(0,ve.connect)(({shixunHomeworks:_t,classroomList:ln,loading:Bn,user:wn})=>({shixunHomeworks:_t,classroomList:ln,loading:Bn.effects,user:wn}))(kt)},706:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return et}});var Se=ye(59301),Oe=ye(92832),He=ye(24905),Rt=ye(95237),_e={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",ke=ye(97267),Tt=(gt,ct,wt)=>new Promise((Me,te)=>{var ne=ge=>{try{se(wt.next(ge))}catch(ve){te(ve)}},ce=ge=>{try{se(wt.throw(ge))}catch(ve){te(ve)}},se=ge=>ge.done?Me(ge.value):Promise.resolve(ge.value).then(ne,ce);se((wt=wt.apply(gt,ct)).next())}),et=({data:gt,value:ct=[],handleChangePage:wt,setSelectedRowKeys:Me,selectedRowKeys:te,onChange:ne=()=>{}})=>{const[ce,se]=(0,Se.useState)([]),[ge,ve]=(0,Se.useState)([]),[be,Fe]=(0,Se.useState)([]);let[Pe,Ie]=(0,Se.useState)(1),[We,Ke]=(0,Se.useState)();return(0,Se.useEffect)(()=>{se(gt),ve([]),Fe([])},[gt]),(0,Se.useEffect)(()=>{Me&&(ve(te),Fe(te))},[te]),Se.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},Se.createElement("div",{className:_e.leftdiv},Se.createElement(Oe.default.Search,{size:"middle",onChange:Xe=>Tt(void 0,null,function*(){se(gt.filter(ht=>{var Ve;return(Ve=ht==null?void 0:ht.name)==null?void 0:Ve.includes(Xe.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),ce.length===0&&Se.createElement(ke.Z,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),Se.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},Se.createElement(He.default.Group,{value:ge.map(Xe=>`${Xe.id}`),onChange:Xe=>{Me(ce.filter(ht=>Xe.includes(`${ht.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},ce.map((Xe,ht)=>Se.createElement(Rt.Z,{key:Xe.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},Se.createElement(He.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:Xe.is_published,value:`${Xe.id}`},Se.createElement("div",{className:_e.listClass},Se.createElement("span",{className:_e.spantitle,style:{width:Xe.is_published?"108px":"170px"}},Xe.name),Xe.is_published&&Se.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),Se.createElement("div",{className:_e.rightdiv},Se.createElement(Oe.default.Search,{onChange:Xe=>{Fe(ge.filter(ht=>ht.name.includes(Xe.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),be.length===0&&Se.createElement(ke.Z,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),be.length>0&&Se.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},Se.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},be.map((Xe,ht)=>Se.createElement(Rt.Z,{justify:"space-between",style:{marginTop:"10px"},key:Xe.id},Se.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},Xe.name),Se.createElement("img",{src:vt,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:()=>{Me(ge.filter(Ve=>`${Ve.id}`!=`${Xe.id}`))}})))))))}},30738:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ne}});var Se=ye(59301),Oe=ye(42203),He=ye(78550),Rt=ye(43418),_e=ye(92832),vt=ye(95237),ke=ye(43604),Tt={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Lt=ye(61186),et=ye.n(Lt),gt=ye(58130),ct=ye(97267),wt=ye(59301);const{RangePicker:Me}=He.default,te=({dispatch:ce,classroomList:se,onConfirm:ge})=>{const[ve,be]=(0,Se.useState)([]),[Fe,Pe]=(0,Se.useState)([]),[Ie,We]=(0,Se.useState)("");(0,Se.useEffect)(()=>{var ht;if(se.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){let Ve=se.actionTabs.data;console.log("data",Ve);let Nt=(ht=Ve==null?void 0:Ve.group_name)==null?void 0:ht.map((qe,Ht)=>{var Zt;return{group_id:Ve==null?void 0:Ve.group_id[Ht],group_name:Ve==null?void 0:Ve.group_name[Ht],is_admin:Ve==null?void 0:Ve.is_admin,end_time:Ve==null?void 0:Ve.end_time,publish_time:Array.isArray(Ve==null?void 0:Ve.publish_time)?(Zt=Ve==null?void 0:Ve.publish_time)==null?void 0:Zt[0]:Ve==null?void 0:Ve.publish_time}});Nt&&(be([...Nt]),Pe([...Nt]))}},[se.actionTabs]);const Ke=()=>{ce({type:"classroomList/setActionTabs",payload:{}}),We("")},Xe=ht=>{if(ht){const Ve=Fe==null?void 0:Fe.filter(Nt=>{var qe,Ht;return(Ht=(qe=Nt==null?void 0:Nt.group_name)==null?void 0:qe.toLowerCase())==null?void 0:Ht.includes(ht==null?void 0:ht.toLowerCase())});be(Ve)}else be(Fe)};return wt.createElement(Rt.default,{width:980,title:wt.createElement("div",{style:{fontWeight:"bold",display:"flex"}},wt.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",wt.createElement("span",{className:Tt.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")),wt.createElement(_e.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:Ie,onChange:ht=>{We(ht.target.value.trim()),Xe(ht.target.value.trim())}})),centered:!0,maskClosable:!1,open:se.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>Ke(),onOk:()=>{var ht;ge((ht=se.actionTabs)==null?void 0:ht.index,Fe),Ke()}},wt.createElement("div",{className:Tt.modal_con},wt.createElement(vt.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(ve==null?void 0:ve.length)>0?ve.map(function(ht,Ve){var Nt,qe;return wt.createElement(ke.Z,{span:24,key:Ve},wt.createElement(vt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Ve==(ve==null?void 0:ve.length)-1?"0px":"10px"}},wt.createElement("div",{className:Tt.multiple_select,title:ht.group_name},ht.group_name),wt.createElement("div",{className:"ml20"},wt.createElement(Me,{size:"large",ranges:{\u6B64\u523B:[ht.publish_time?et()(ht.publish_time):et()(),et()()]},allowClear:!1,disabled:(Nt=se.actionTabs)==null?void 0:Nt.rangePickerDisabled,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:Ht=>{var Zt;return(0,gt.Q8)(Ht,(Zt=se.actionTabs)==null?void 0:Zt.disabledDate)},disabledTime:Ht=>(0,gt.d0)(Ht),showTime:{showNow:!0,format:"HH:mm",defaultValue:[et()((0,gt.U6)(),"HH:mm"),et()((0,gt.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:ht.publish_time&&[et()(ht.publish_time),ht.end_time?et()(ht.end_time):void 0],onChange:(Ht,Zt)=>{ve[Ve].publish_time=Zt[0],ve[Ve].end_time=Zt[1],be([...ve]),Fe.forEach(Yt=>{Yt.group_id===ht.group_id&&(Yt.publish_time=Zt[0],Yt.end_time=Zt[1])}),Pe([...Fe])}})),(qe=se.actionTabs)!=null&&qe.rangePickerDisabled?wt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):wt.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{ve.splice(Ve,1),be([...ve]),Fe.forEach((Ht,Zt)=>{Ht.group_id===ht.group_id&&Fe.splice(Zt,1)}),Pe([...Fe])}})))}):wt.createElement(ct.Z,null))))};var ne=(0,Oe.connect)(({classroomList:ce})=>({classroomList:ce}))(te)},31087:function(Rn,Fn,ye){"use strict";ye.d(Fn,{AL:function(){return be},Iy:function(){return gt},Qv:function(){return Me},ez:function(){return ve},jb:function(){return ct}});var Se=ye(32834),Oe=ye.n(Se),He=ye(11690),Rt=ye.n(He);let _e=1;function vt(Ke,Xe){const ht=Ke.match(/^(\s+)(?:```)/);if(ht===null)return Xe;const Ve=ht[1];return Xe.split(`
|
|
|
`).map(Nt=>{const qe=Nt.match(/^\s+/);if(qe===null)return Nt;const[Ht]=qe;return Ht.length>=Ve.length?Nt.slice(Ve.length):Nt}).join(`
|
|
|
`)}let ke=[],Tt=["<ul>"];const Lt=new(Oe()).Renderer,et=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function gt(){ke.length=0,Tt=["<ul>"]}const ct={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function wt(Ke,Xe,ht,Ve){if(Xe>=Ke.length||Ke[Xe].level<=ht)return Xe;var Nt=Ke[Xe];Ve.push("<li><a href='#"+_e+Nt.anchor+"'>"+Nt.text+"</a>"),Xe++;var qe=[];return Xe=wt(Ke,Xe,Nt.level,qe),qe.length>0&&(Ve.push("<ul>"),qe.forEach(function(Ht){Ve.push(Ht)}),Ve.push("</ul>")),Ve.push("</li>"),Xe=wt(Ke,Xe,ht,Ve),Xe}function Me(){return wt(ke,0,0,Tt),Tt.push("</ul>"),Tt.join("")}const te={heading(Ke){const Xe=et.exec(Ke);if(_e+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(Ke){const Xe=this.rules.block.fences.exec(Ke);if(Xe){const ht=Xe[0];let Ve=vt(ht,Xe[3]||"");const Nt=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(Nt)>=0){const qe=se(),Ht=Ve;Ve=qe,ge[qe]={type:"block",expression:Ht}}return{type:"code",raw:ht,lang:Nt,text:Ve}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ce=0;const se=()=>`__special_katext_id_${ce++}__`;let ge={};function ve(){return ge}function be(){ce=0,ge={}}function Fe(Ke){return Ke=Ke.replace(ne,(Xe,ht)=>{const Ve=se();return ge[Ve]={type:"inline",expression:ht},Ve}),Ke}const Pe=Lt.listitem;Lt.listitem=function(Ke){return Pe(Fe(Ke))};const Ie=Lt.paragraph;Lt.paragraph=function(Ke){return Ie(Fe(Ke))};const We=Lt.tablecell;Lt.tablecell=function(Ke,Xe){return We(Fe(Ke),Xe)},Lt.code=function(Ke,Xe,ht){const Ve=(Xe||"").match(/\S*/)[0];return Ve?["latex","katex","math"].indexOf(Ve)>=0?`<p class='editormd-tex'>${Ke}</p>`:`<pre class="prettyprint linenums"><code class="language-${Xe}">${ht?Ke:(0,He.escape)(Ke,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(ht?Ke:(0,He.escape)(Ke,!0))+"</code></pre>"},Lt.heading=function(Ke,Xe,ht){let Ve=this.options.headerPrefix+ht.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ke.push({anchor:Ve,level:Xe,text:Ke}),"<h"+Xe+' id="'+_e+Ve+'">'+Ke+"</h"+Xe+">"},Oe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Oe().use({tokenizer:te,renderer:Lt}),Fn.ZP=Oe()},18032:function(Rn,Fn,ye){"use strict";ye.d(Fn,{rX:function(){return be},pW:function(){return Fe},gy:function(){return Pe},xY:function(){return ve},O5:function(){return ge},tJ:function(){return Me},o1:function(){return te},Rd:function(){return se}});var Se=ye(42203),Oe=ye(43418),He=ye(28103),Rt=ye(8591),_e=ye(2119),vt=ye(58130),ke=ye(80205),Tt=ye(25510),Lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIB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WI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",et=ye.p+"static/newqrcode.a8740efb.png",gt=ye(32637),ct=ye(59301),wt=(Ie,We,Ke)=>new Promise((Xe,ht)=>{var Ve=Ht=>{try{qe(Ke.next(Ht))}catch(Zt){ht(Zt)}},Nt=Ht=>{try{qe(Ke.throw(Ht))}catch(Zt){ht(Zt)}},qe=Ht=>Ht.done?Xe(Ht.value):Promise.resolve(Ht.value).then(Ve,Nt);qe((Ke=Ke.apply(Ie,We)).next())});const Me=(Ie,We=!1)=>!!(te(Ie)&&ne(We)),te=Ie=>(0,_e.bg)()?!0:(Ie({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),ne=(Ie=!1)=>{var We;const{user:Ke}=(0,Se.getDvaApp)()._store.getState();return(We=Ke.userInfo)!=null&&We.profile_completed?!0:(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,vt.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:ct.createElement("div",{style:{textAlign:"center"}},ct.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"),ct.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:gt}),ct.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:We}=(0,Se.getDvaApp)()._store.getState();return(Ie=We.userInfo)!=null&&Ie.professional_certification?!0:(Oe.default.confirm({title:"\u63D0\u793A",centered:!0,content:ct.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,vt.xg)("/account/certification")}}),!1)},ve=()=>(0,_e.V9)()?!0:(Oe.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:ct.createElement("div",{className:"tc",style:{marginLeft:-38}},ct.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),ct.createElement("img",{src:et,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),be=(Ie,We)=>Ie?!0:(Oe.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:ct.createElement("div",null,ct.createElement("p",null,We||"\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"),ct.createElement("div",{style:{marginLeft:"110px"}},ct.createElement("img",{src:Lt,width:200}),ct.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,vt.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:ct.createElement("div",null,ct.createElement("div",null,ct.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"),ct.createElement(He.Z,null),ct.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ct.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 ",ct.createElement("a",null,Ie),"\u5929\u3002"),ct.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ct.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")),ct.createElement("div",{style:{textAlign:"center",marginTop:30}},ct.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Tt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Pe=(Ie,We="")=>{const{shixunsDetail:{detail:Ke}}=(0,Se.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 Xe="";return(Ke==null?void 0:Ke.public)===2&&(Xe="\u5DF2\u516C\u5F00"),(Ke==null?void 0:Ke.public)===1&&(Xe="\u5F85\u5BA1\u6838"),(Ke==null?void 0:Ke.shixun_status)===3&&(Xe="\u5DF2\u5173\u95ED"),Oe.default.info({centered:!0,icon:ct.createElement(ke.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:ct.createElement("div",{className:"tc",style:{marginLeft:-38}},ct.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},ct.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Xe,"\uFF0C",We,"\u3002"),ct.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),ct.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:ct.createElement(ke.Z,null),title:"\u63D0\u793A",content:ct.createElement("div",null,ct.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",We,"\u3002"),ct.createElement("br",null),ct.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:ct.createElement(ke.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:()=>wt(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,Fn){"use strict";function ye(){const Se=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&&(Se[Rt]=_e)})}return Se}Fn.Z=ye},13845:function(Rn,Fn,ye){"use strict";ye.d(Fn,{F:function(){return Se},Z:function(){return Oe}});function Se(He){return He!=null&&He===He.window}function Oe(He,Rt){var _e,vt;if(typeof window=="undefined")return 0;const ke=Rt?"scrollTop":"scrollLeft";let Tt=0;return Se(He)?Tt=He[Rt?"pageYOffset":"pageXOffset"]:He instanceof Document?Tt=He.documentElement[ke]:(He instanceof HTMLElement||He)&&(Tt=He[ke]),He&&!Se(He)&&typeof Tt!="number"&&(Tt=(vt=((_e=He.ownerDocument)!==null&&_e!==void 0?_e:He).documentElement)===null||vt===void 0?void 0:vt[ke]),Tt}},56762:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Oe}});var Se=ye(59301);function Oe(){const[,He]=Se.useReducer(Rt=>Rt+1,0);return He}},68031:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Rt}});var Se=ye(23073);function Oe(_e,vt,ke,Tt){const Lt=ke-vt;return _e/=Tt/2,_e<1?Lt/2*_e*_e*_e+vt:Lt/2*((_e-=2)*_e*_e+2)+vt}var He=ye(13845);function Rt(_e){let vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ke=()=>window,callback:Tt,duration:Lt=450}=vt,et=ke(),gt=(0,He.Z)(et,!0),ct=Date.now(),wt=()=>{const te=Date.now()-ct,ne=Oe(te>Lt?Lt:te,gt,_e,Lt);(0,He.F)(et)?et.scrollTo(window.pageXOffset,ne):et instanceof Document||et.constructor.name==="HTMLDocument"?et.documentElement.scrollTop=ne:et.scrollTop=ne,te<Lt?(0,Se.Z)(wt):typeof Tt=="function"&&Tt()};(0,Se.Z)(wt)}},19842:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ki}});var Se=ye(26390),Oe=ye(59301),He=ye(16537),Rt=ye(50023),_e=ye(53878),vt=ye(92310),ke=ye.n(vt),Tt=ye(5891),Lt=ye(29043),et=ye(19149),gt=ye(77861),ct=ye(17115),wt=ye(90782),Me=ye(8107),te=ye(35788),ne=Oe.createContext(null),ce=ne,se=ye(80665),ge=ye(80962),ve=ye(57259),be="__rc_cascader_search_mark__",Fe=function(Wn,li,fn){var on=fn.label;return li.some(function(mt){return String(mt[on]).toLowerCase().includes(Wn.toLowerCase())})},Pe=function(Wn,li,fn,on){return li.map(function(mt){return mt[on.label]}).join(" / ")},Ie=function(un,Wn,li,fn,on,mt){var Pt=on.filter,bt=Pt===void 0?Fe:Pt,tt=on.render,qt=tt===void 0?Pe:tt,dn=on.limit,xt=dn===void 0?50:dn,Ye=on.sort;return Oe.useMemo(function(){var an=[];if(!un)return[];function Bt(jn,cn){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;jn.forEach(function(xn){if(!(!Ye&&xt!==!1&&xt>0&&an.length>=xt)){var Qn=[].concat((0,Se.Z)(cn),[xn]),Un=xn[li.children],zt=Et||xn.disabled;if((!Un||Un.length===0||mt)&&bt(un,Qn,{label:li.label})){var Sn;an.push((0,ve.Z)((0,ve.Z)({},xn),{},(Sn={disabled:zt},(0,ge.Z)(Sn,li.label,qt(un,Qn,fn,li)),(0,ge.Z)(Sn,be,Qn),(0,ge.Z)(Sn,li.children,void 0),Sn)))}Un&&Bt(xn[li.children],Qn,zt)}})}return Bt(Wn,[]),Ye&&an.sort(function(jn,cn){return Ye(jn[be],cn[be],un,li)}),xt!==!1&&xt>0?an.slice(0,xt):an},[un,Wn,li,fn,qt,mt,bt,Ye,xt])},We="__RC_CASCADER_SPLIT__",Ke="SHOW_PARENT",Xe="SHOW_CHILD";function ht(un){return un.join(We)}function Ve(un){return un.map(ht)}function Nt(un){return un.split(We)}function qe(un){var Wn=un||{},li=Wn.label,fn=Wn.value,on=Wn.children,mt=fn||"value";return{label:li||"label",value:mt,key:mt,children:on||"children"}}function Ht(un,Wn){var li,fn;return(li=un.isLeaf)!==null&&li!==void 0?li:!((fn=un[Wn.children])!==null&&fn!==void 0&&fn.length)}function Zt(un){var Wn=un.parentElement;if(Wn){var li=un.offsetTop-Wn.offsetTop;li-Wn.scrollTop<0?Wn.scrollTo({top:li}):li+un.offsetHeight-Wn.scrollTop>Wn.offsetHeight&&Wn.scrollTo({top:li+un.offsetHeight-Wn.offsetHeight})}}function Yt(un,Wn){return un.map(function(li){var fn;return(fn=li[be])===null||fn===void 0?void 0:fn.map(function(on){return on[Wn.value]})})}function Ot(un,Wn,li){var fn=new Set(un),on=Wn();return un.filter(function(mt){var Pt=on[mt],bt=Pt?Pt.parent:null,tt=Pt?Pt.children:null;return Pt&&Pt.node.disabled?!0:li===Xe?!(tt&&tt.some(function(qt){return qt.key&&fn.has(qt.key)})):!(bt&&!bt.node.disabled&&fn.has(bt.key))})}function Qt(un,Wn,li){for(var fn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,on=Wn,mt=[],Pt=function(){var qt,dn,xt,Ye=un[bt],an=(qt=on)===null||qt===void 0?void 0:qt.findIndex(function(jn){var cn=jn[li.value];return fn?String(cn)===String(Ye):cn===Ye}),Bt=an!==-1?(dn=on)===null||dn===void 0?void 0:dn[an]:null;mt.push({value:(xt=Bt==null?void 0:Bt[li.value])!==null&&xt!==void 0?xt:Ye,index:an,option:Bt}),on=Bt==null?void 0:Bt[li.children]},bt=0;bt<un.length;bt+=1)Pt();return mt}var dt=function(un,Wn,li,fn,on){return Oe.useMemo(function(){var mt=on||function(Pt){var bt=fn?Pt.slice(-1):Pt,tt=" / ";return bt.every(function(qt){return["string","number"].includes((0,se.Z)(qt))})?bt.join(tt):bt.reduce(function(qt,dn,xt){var Ye=Oe.isValidElement(dn)?Oe.cloneElement(dn,{key:xt}):dn;return xt===0?[Ye]:[].concat((0,Se.Z)(qt),[tt,Ye])},[])};return un.map(function(Pt){var bt,tt,qt=Qt(Pt,Wn,li),dn=mt(qt.map(function(Ye){var an,Bt=Ye.option,jn=Ye.value;return(an=Bt==null?void 0:Bt[li.label])!==null&&an!==void 0?an:jn}),qt.map(function(Ye){var an=Ye.option;return an})),xt=ht(Pt);return{label:dn,value:xt,key:xt,valueCells:Pt,disabled:(bt=qt[qt.length-1])===null||bt===void 0||(tt=bt.option)===null||tt===void 0?void 0:tt.disabled}})},[un,Wn,li,on,fn])},Re=ye(71430),Mt=function(un,Wn){var li=Oe.useRef({options:null,info:null}),fn=Oe.useCallback(function(){return li.current.options!==un&&(li.current.options=un,li.current.info=(0,Re.I8)(un,{fieldNames:Wn,initWrapper:function(mt){return(0,ve.Z)((0,ve.Z)({},mt),{},{pathKeyEntities:{}})},processEntity:function(mt,Pt){var bt=mt.nodes.map(function(tt){return tt[Wn.value]}).join(We);Pt.pathKeyEntities[bt]=mt,mt.key=bt}})),li.current.info.pathKeyEntities},[Wn,un]);return fn},Pn=function(un,Wn){return Oe.useCallback(function(li){var fn=[],on=[];return li.forEach(function(mt){var Pt=Qt(mt,un,Wn);Pt.every(function(bt){return bt.option})?on.push(mt):fn.push(mt)}),[on,fn]},[un,Wn])},mn=ye(51395);function kt(un){return Oe.useMemo(function(){if(!un)return[!1,{}];var Wn={matchInputWidth:!0,limit:50};return un&&(0,se.Z)(un)==="object"&&(Wn=(0,ve.Z)((0,ve.Z)({},Wn),un)),Wn.limit<=0&&delete Wn.limit,[!0,Wn]},[un])}var _t=Oe.memo(function(un){var Wn=un.children;return Wn},function(un,Wn){return!Wn.open}),ln=_t;function Bn(un){var Wn,li=un.prefixCls,fn=un.checked,on=un.halfChecked,mt=un.disabled,Pt=un.onClick,bt=un.disableCheckbox,tt=Oe.useContext(ce),qt=tt.checkable,dn=typeof qt!="boolean"?qt:null;return Oe.createElement("span",{className:ke()("".concat(li),(Wn={},(0,ge.Z)(Wn,"".concat(li,"-checked"),fn),(0,ge.Z)(Wn,"".concat(li,"-indeterminate"),!fn&&on),(0,ge.Z)(Wn,"".concat(li,"-disabled"),mt||bt),Wn)),onClick:Pt},dn)}var wn="__cascader_fix_label__";function Kn(un){var Wn=un.prefixCls,li=un.multiple,fn=un.options,on=un.activeValue,mt=un.prevValuePath,Pt=un.onToggleOpen,bt=un.onSelect,tt=un.onActive,qt=un.checkedSet,dn=un.halfCheckedSet,xt=un.loadingKeys,Ye=un.isSelectable,an=un.searchValue,Bt="".concat(Wn,"-menu"),jn="".concat(Wn,"-menu-item"),cn=Oe.useContext(ce),Et=cn.fieldNames,xn=cn.changeOnSelect,Qn=cn.expandTrigger,Un=cn.expandIcon,zt=cn.loadingIcon,Sn=cn.dropdownMenuColumnStyle,Ci=Qn==="hover",Si=Oe.useMemo(function(){return fn.map(function(vi){var ti,xi=vi.disabled,Ni=vi.disableCheckbox,Zi=vi[be],cr=(ti=vi[wn])!==null&&ti!==void 0?ti:vi[Et.label],Gn=vi[Et.value],Ai=Ht(vi,Et),br=Zi?Zi.map(function(rr){return rr[Et.value]}):[].concat((0,Se.Z)(mt),[Gn]),kr=ht(br),Sr=xt.includes(kr),Xt=qt.has(kr),Li=dn.has(kr);return{disabled:xi,label:cr,value:Gn,isLeaf:Ai,isLoading:Sr,checked:Xt,halfChecked:Li,option:vi,disableCheckbox:Ni,fullPath:br,fullPathKey:kr}})},[fn,qt,Et,dn,xt,mt]);return Oe.createElement("ul",{className:Bt,role:"menu"},Si.map(function(vi){var ti,xi=vi.disabled,Ni=vi.label,Zi=vi.value,cr=vi.isLeaf,Gn=vi.isLoading,Ai=vi.checked,br=vi.halfChecked,kr=vi.option,Sr=vi.fullPath,Xt=vi.fullPathKey,Li=vi.disableCheckbox,rr=function(){if(!(xi||an)){var Nr=(0,Se.Z)(Sr);Ci&&cr&&Nr.pop(),tt(Nr)}},Hi=function(){Ye(kr)&&bt(Sr,cr)},Er;return typeof kr.title=="string"?Er=kr.title:typeof Ni=="string"&&(Er=Ni),Oe.createElement("li",{key:Xt,className:ke()(jn,(ti={},(0,ge.Z)(ti,"".concat(jn,"-expand"),!cr),(0,ge.Z)(ti,"".concat(jn,"-active"),on===Zi||on===Xt),(0,ge.Z)(ti,"".concat(jn,"-disabled"),xi),(0,ge.Z)(ti,"".concat(jn,"-loading"),Gn),ti)),style:Sn,role:"menuitemcheckbox",title:Er,"aria-checked":Ai,"data-path-key":Xt,onClick:function(){rr(),!Li&&(!li||cr)&&Hi()},onDoubleClick:function(){xn&&Pt(!1)},onMouseEnter:function(){Ci&&rr()},onMouseDown:function(Nr){Nr.preventDefault()}},li&&Oe.createElement(Bn,{prefixCls:"".concat(Wn,"-checkbox"),checked:Ai,halfChecked:br,disabled:xi||Li,disableCheckbox:Li,onClick:function(Nr){Li||(Nr.stopPropagation(),Hi())}}),Oe.createElement("div",{className:"".concat(jn,"-content")},Ni),!Gn&&Un&&!cr&&Oe.createElement("div",{className:"".concat(jn,"-expand-icon")},Un),Gn&&zt&&Oe.createElement("div",{className:"".concat(jn,"-loading-icon")},zt))}))}var yt=function(){var un=(0,gt.lk)(),Wn=un.multiple,li=un.open,fn=Oe.useContext(ce),on=fn.values,mt=Oe.useState([]),Pt=(0,Lt.Z)(mt,2),bt=Pt[0],tt=Pt[1];return Oe.useEffect(function(){if(li&&!Wn){var qt=on[0];tt(qt||[])}},[li]),[bt,tt]},Jn=ye(85108),bn=function(un,Wn,li,fn,on,mt){var Pt=(0,gt.lk)(),bt=Pt.direction,tt=Pt.searchValue,qt=Pt.toggleOpen,dn=Pt.open,xt=bt==="rtl",Ye=Oe.useMemo(function(){for(var Sn=-1,Ci=Wn,Si=[],vi=[],ti=fn.length,xi=Yt(Wn,li),Ni=function(kr){var Sr=Ci.findIndex(function(Xt,Li){return(xi[Li]?ht(xi[Li]):Xt[li.value])===fn[kr]});if(Sr===-1)return"break";Sn=Sr,Si.push(Sn),vi.push(fn[kr]),Ci=Ci[Sn][li.children]},Zi=0;Zi<ti&&Ci;Zi+=1){var cr=Ni(Zi);if(cr==="break")break}for(var Gn=Wn,Ai=0;Ai<Si.length-1;Ai+=1)Gn=Gn[Si[Ai]][li.children];return[vi,Sn,Gn,xi]},[fn,li,Wn]),an=(0,Lt.Z)(Ye,4),Bt=an[0],jn=an[1],cn=an[2],Et=an[3],xn=function(Ci){on(Ci)},Qn=function(Ci){var Si=cn.length,vi=jn;vi===-1&&Ci<0&&(vi=Si);for(var ti=0;ti<Si;ti+=1){vi=(vi+Ci+Si)%Si;var xi=cn[vi];if(xi&&!xi.disabled){var Ni=Bt.slice(0,-1).concat(Et[vi]?ht(Et[vi]):xi[li.value]);xn(Ni);return}}},Un=function(){if(Bt.length>1){var Ci=Bt.slice(0,-1);xn(Ci)}else qt(!1)},zt=function(){var Ci,Si=((Ci=cn[jn])===null||Ci===void 0?void 0:Ci[li.children])||[],vi=Si.find(function(xi){return!xi.disabled});if(vi){var ti=[].concat((0,Se.Z)(Bt),[vi[li.value]]);xn(ti)}};Oe.useImperativeHandle(un,function(){return{onKeyDown:function(Ci){var Si=Ci.which;switch(Si){case Jn.Z.UP:case Jn.Z.DOWN:{var vi=0;Si===Jn.Z.UP?vi=-1:Si===Jn.Z.DOWN&&(vi=1),vi!==0&&Qn(vi);break}case Jn.Z.LEFT:{if(tt)break;xt?zt():Un();break}case Jn.Z.RIGHT:{if(tt)break;xt?Un():zt();break}case Jn.Z.BACKSPACE:{tt||Un();break}case Jn.Z.ENTER:{if(Bt.length){var ti=cn[jn],xi=(ti==null?void 0:ti[be])||[];xi.length?mt(xi.map(function(Ni){return Ni[li.value]}),xi[xi.length-1]):mt(Bt,cn[jn])}break}case Jn.Z.ESC:qt(!1),dn&&Ci.stopPropagation()}},onKeyUp:function(){}}})},ci=Oe.forwardRef(function(un,Wn){var li,fn,on,mt,Pt=(0,gt.lk)(),bt=Pt.prefixCls,tt=Pt.multiple,qt=Pt.searchValue,dn=Pt.toggleOpen,xt=Pt.notFoundContent,Ye=Pt.direction,an=Pt.open,Bt=Oe.useRef(),jn=Ye==="rtl",cn=Oe.useContext(ce),Et=cn.options,xn=cn.values,Qn=cn.halfValues,Un=cn.fieldNames,zt=cn.changeOnSelect,Sn=cn.onSelect,Ci=cn.searchOptions,Si=cn.dropdownPrefixCls,vi=cn.loadData,ti=cn.expandTrigger,xi=Si||bt,Ni=Oe.useState([]),Zi=(0,Lt.Z)(Ni,2),cr=Zi[0],Gn=Zi[1],Ai=function(vr){if(!(!vi||qt)){var Ho=Qt(vr,Et,Un),co=Ho.map(function(fr){var Vr=fr.option;return Vr}),mr=co[co.length-1];if(mr&&!Ht(mr,Un)){var hr=ht(vr);Gn(function(fr){return[].concat((0,Se.Z)(fr),[hr])}),vi(co)}}};Oe.useEffect(function(){cr.length&&cr.forEach(function(Qr){var vr=Nt(Qr),Ho=Qt(vr,Et,Un,!0).map(function(mr){var hr=mr.option;return hr}),co=Ho[Ho.length-1];(!co||co[Un.children]||Ht(co,Un))&&Gn(function(mr){return mr.filter(function(hr){return hr!==Qr})})})},[Et,cr,Un]);var br=Oe.useMemo(function(){return new Set(Ve(xn))},[xn]),kr=Oe.useMemo(function(){return new Set(Ve(Qn))},[Qn]),Sr=yt(),Xt=(0,Lt.Z)(Sr,2),Li=Xt[0],rr=Xt[1],Hi=function(vr){rr(vr),Ai(vr)},Er=function(vr){var Ho=vr.disabled,co=Ht(vr,Un);return!Ho&&(co||zt||tt)},dr=function(vr,Ho){var co=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Sn(vr),!tt&&(Ho||zt&&(ti==="hover"||co))&&dn(!1)},Nr=Oe.useMemo(function(){return qt?Ci:Et},[qt,Ci,Et]),Ti=Oe.useMemo(function(){for(var Qr=[{options:Nr}],vr=Nr,Ho=Yt(vr,Un),co=function(){var Vr=Li[mr],Ii=vr.find(function(pt,It){return(Ho[It]?ht(Ho[It]):pt[Un.value])===Vr}),Qe=Ii==null?void 0:Ii[Un.children];if(!(Qe!=null&&Qe.length))return"break";vr=Qe,Qr.push({options:Qe})},mr=0;mr<Li.length;mr+=1){var hr=co();if(hr==="break")break}return Qr},[Nr,Li,Un]),Qi=function(vr,Ho){Er(Ho)&&dr(vr,Ht(Ho,Un),!0)};bn(Wn,Nr,Un,Li,Hi,Qi),Oe.useEffect(function(){for(var Qr=0;Qr<Li.length;Qr+=1){var vr,Ho=Li.slice(0,Qr+1),co=ht(Ho),mr=(vr=Bt.current)===null||vr===void 0?void 0:vr.querySelector('li[data-path-key="'.concat(co.replace(/\\{0,2}"/g,'\\"'),'"]'));mr&&Zt(mr)}},[Li]);var er=!((li=Ti[0])!==null&&li!==void 0&&(fn=li.options)!==null&&fn!==void 0&&fn.length),kn=[(on={},(0,ge.Z)(on,Un.value,"__EMPTY__"),(0,ge.Z)(on,wn,xt),(0,ge.Z)(on,"disabled",!0),on)],Dr=(0,ve.Z)((0,ve.Z)({},un),{},{multiple:!er&&tt,onSelect:dr,onActive:Hi,onToggleOpen:dn,checkedSet:br,halfCheckedSet:kr,loadingKeys:cr,isSelectable:Er}),Ln=er?[{options:kn}]:Ti,pr=Ln.map(function(Qr,vr){var Ho=Li.slice(0,vr),co=Li[vr];return Oe.createElement(Kn,(0,Tt.Z)({key:vr},Dr,{searchValue:qt,prefixCls:xi,options:Qr.options,prevValuePath:Ho,activeValue:co}))});return Oe.createElement(ln,{open:an},Oe.createElement("div",{className:ke()("".concat(xi,"-menus"),(mt={},(0,ge.Z)(mt,"".concat(xi,"-menu-empty"),er),(0,ge.Z)(mt,"".concat(xi,"-rtl"),jn),mt)),ref:Bt},pr))}),Tn=ci;function tn(un){var Wn=un.onPopupVisibleChange,li=un.popupVisible,fn=un.popupClassName,on=un.popupPlacement;warning(!Wn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(li===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(fn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(on===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function $t(un,Wn){if(un){var li=function fn(on){for(var mt=0;mt<on.length;mt++){var Pt=on[mt];if(Pt[Wn==null?void 0:Wn.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Pt[Wn==null?void 0:Wn.children])&&fn(Pt[Wn==null?void 0:Wn.children]))return!0}};li(un)}}var ft=null,Je=["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 Gt(un){return Array.isArray(un)&&Array.isArray(un[0])}function At(un){return un?Gt(un)?un:(un.length===0?[]:[un]).map(function(Wn){return Array.isArray(Wn)?Wn:[Wn]}):[]}var lt=Oe.forwardRef(function(un,Wn){var li=un.id,fn=un.prefixCls,on=fn===void 0?"rc-cascader":fn,mt=un.fieldNames,Pt=un.defaultValue,bt=un.value,tt=un.changeOnSelect,qt=un.onChange,dn=un.displayRender,xt=un.checkable,Ye=un.autoClearSearchValue,an=Ye===void 0?!0:Ye,Bt=un.searchValue,jn=un.onSearch,cn=un.showSearch,Et=un.expandTrigger,xn=un.options,Qn=un.dropdownPrefixCls,Un=un.loadData,zt=un.popupVisible,Sn=un.open,Ci=un.popupClassName,Si=un.dropdownClassName,vi=un.dropdownMenuColumnStyle,ti=un.popupPlacement,xi=un.placement,Ni=un.onDropdownVisibleChange,Zi=un.onPopupVisibleChange,cr=un.expandIcon,Gn=cr===void 0?">":cr,Ai=un.loadingIcon,br=un.children,kr=un.dropdownMatchSelectWidth,Sr=kr===void 0?!1:kr,Xt=un.showCheckedStrategy,Li=Xt===void 0?Ke:Xt,rr=(0,et.Z)(un,Je),Hi=(0,ct.ZP)(li),Er=!!xt,dr=(0,te.Z)(Pt,{value:bt,postState:At}),Nr=(0,Lt.Z)(dr,2),Ti=Nr[0],Qi=Nr[1],er=Oe.useMemo(function(){return qe(mt)},[JSON.stringify(mt)]),kn=Oe.useMemo(function(){return xn||[]},[xn]),Dr=Mt(kn,er),Ln=Oe.useCallback(function(qr){var $r=Dr();return qr.map(function(to){var $o=$r[to].nodes;return $o.map(function(Qo){return Qo[er.value]})})},[Dr,er]),pr=(0,te.Z)("",{value:Bt,postState:function($r){return $r||""}}),Qr=(0,Lt.Z)(pr,2),vr=Qr[0],Ho=Qr[1],co=function($r,to){Ho($r),to.source!=="blur"&&jn&&jn($r)},mr=kt(cn),hr=(0,Lt.Z)(mr,2),fr=hr[0],Vr=hr[1],Ii=Ie(vr,kn,er,Qn||on,Vr,tt),Qe=Pn(kn,er),pt=Oe.useMemo(function(){var qr=Qe(Ti),$r=(0,Lt.Z)(qr,2),to=$r[0],$o=$r[1];if(!Er||!Ti.length)return[to,[],$o];var Qo=Ve(to),pa=Dr(),qo=(0,wt.S)(Qo,!0,pa),Cn=qo.checkedKeys,ca=qo.halfCheckedKeys;return[Ln(Cn),Ln(ca),$o]},[Er,Ti,Dr,Ln,Qe]),It=(0,Lt.Z)(pt,3),sn=It[0],Hn=It[1],On=It[2],Wt=Oe.useMemo(function(){var qr=Ve(sn),$r=Ot(qr,Dr,Li);return[].concat((0,Se.Z)(On),(0,Se.Z)(Ln($r)))},[sn,Dr,Ln,On,Li]),Nn=dt(Wt,kn,er,Er,dn),ai=(0,Me.Z)(function(qr){if(Qi(qr),qt){var $r=At(qr),to=$r.map(function(pa){return Qt(pa,kn,er).map(function(qo){return qo.option})}),$o=Er?$r:$r[0],Qo=Er?to:to[0];qt($o,Qo)}}),qn=(0,Me.Z)(function(qr){if((!Er||an)&&Ho(""),!Er)ai(qr);else{var $r=ht(qr),to=Ve(sn),$o=Ve(Hn),Qo=to.includes($r),pa=On.some(function(ma){return ht(ma)===$r}),qo=sn,Cn=On;if(pa&&!Qo)Cn=On.filter(function(ma){return ht(ma)!==$r});else{var ca=Qo?to.filter(function(ma){return ma!==$r}):[].concat((0,Se.Z)(to),[$r]),es=Dr(),ts;if(Qo){var Ga=(0,wt.S)(ca,{checked:!1,halfCheckedKeys:$o},es);ts=Ga.checkedKeys}else{var Ds=(0,wt.S)(ca,!0,es);ts=Ds.checkedKeys}var pl=Ot(ts,Dr,Li);qo=Ln(pl)}ai([].concat((0,Se.Z)(Cn),(0,Se.Z)(qo)))}}),Oi=function($r,to){if(to.type==="clear"){ai([]);return}var $o=to.values[0],Qo=$o.valueCells;qn(Qo)},Bi=Sn!==void 0?Sn:zt,pi=Si||Ci,Gi=xi||ti,zn=function($r){Ni==null||Ni($r),Zi==null||Zi($r)},_r=Oe.useMemo(function(){return{options:kn,fieldNames:er,values:sn,halfValues:Hn,changeOnSelect:tt,onSelect:qn,checkable:xt,searchOptions:Ii,dropdownPrefixCls:Qn,loadData:Un,expandTrigger:Et,expandIcon:Gn,loadingIcon:Ai,dropdownMenuColumnStyle:vi}},[kn,er,sn,Hn,tt,qn,xt,Ii,Qn,Un,Et,Gn,Ai,vi]),Gr=!(vr?Ii:kn).length,Ao=vr&&Vr.matchInputWidth||Gr?{}:{minWidth:"auto"};return Oe.createElement(ce.Provider,{value:_r},Oe.createElement(gt.Ac,(0,Tt.Z)({},rr,{ref:Wn,id:Hi,prefixCls:on,autoClearSearchValue:an,dropdownMatchSelectWidth:Sr,dropdownStyle:Ao,displayValues:Nn,onDisplayValuesChange:Oi,mode:Er?"multiple":void 0,searchValue:vr,onSearch:co,showSearch:fr,OptionList:Tn,emptyOptions:Gr,open:Bi,dropdownClassName:pi,placement:Gi,onDropdownVisibleChange:zn,getRawInputElement:function(){return br}})))});lt.SHOW_PARENT=Ke,lt.SHOW_CHILD=Xe;var Ge=lt,Be=Ge,we=ye(64002),pe=ye(62892),De=ye(53487),ze=ye(19080),Le=ye(36355),nt=ye(93891),Ut=ye(1684),En=ye(19716),rn=ye(32441),vn=ye(14154),mi=ye(58582),wi=ye(84443),Ri=ye(66339),Wi=ye(33234),Mn=ye(98447),nr=ye(17313),Wr=ye(74207),Hr=ye(83116);const Tr=un=>{const{prefixCls:Wn,componentCls:li,antCls:fn}=un,on=`${li}-menu-item`,mt=`
|
|
|
&${on}-expand ${on}-expand-icon,
|
|
|
${on}-loading-icon
|
|
|
`;return[{[li]:{width:un.controlWidth}},{[`${li}-dropdown`]:[(0,Mn.C2)(`${Wn}-checkbox`,un),{[`&${fn}-select-dropdown`]:{padding:0}},{[li]:{"&-checkbox":{top:0,marginInlineEnd:un.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${li}-menu-empty`]:{[`${li}-menu`]:{width:"100%",height:"auto",[on]:{color:un.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:un.controlItemWidth,height:un.dropdownHeight,margin:0,padding:un.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${un.lineWidth}px ${un.lineType} ${un.colorSplit}`},"&-item":Object.assign(Object.assign({},nr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:un.optionPadding,lineHeight:un.lineHeight,cursor:"pointer",transition:`all ${un.motionDurationMid}`,borderRadius:un.borderRadiusSM,"&:hover":{background:un.controlItemBgHover},"&-disabled":{color:un.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[mt]:{color:un.colorTextDisabled}},[`&-active:not(${on}-disabled)`]:{"&, &:hover":{fontWeight:un.optionSelectedFontWeight,backgroundColor:un.optionSelectedBg}},"&-content":{flex:"auto"},[mt]:{marginInlineStart:un.paddingXXS,color:un.colorTextDescription,fontSize:un.fontSizeIcon},"&-keyword":{color:un.colorHighlight}})}}}]},{[`${li}-dropdown-rtl`]:{direction:"rtl"}},(0,Wr.c)(un)]};var Fr=(0,Hr.Z)("Cascader",un=>[Tr(un)],un=>{const Wn=Math.round((un.controlHeight-un.fontSize*un.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:un.controlItemBgActive,optionSelectedFontWeight:un.fontWeightStrong,optionPadding:`${Wn}px ${un.paddingSM}px`,menuPadding:un.paddingXXS}}),Yr=function(un,Wn){var li={};for(var fn in un)Object.prototype.hasOwnProperty.call(un,fn)&&Wn.indexOf(fn)<0&&(li[fn]=un[fn]);if(un!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,fn=Object.getOwnPropertySymbols(un);on<fn.length;on++)Wn.indexOf(fn[on])<0&&Object.prototype.propertyIsEnumerable.call(un,fn[on])&&(li[fn[on]]=un[fn[on]]);return li};const{SHOW_CHILD:Kr,SHOW_PARENT:ar}=Be;function Co(un,Wn,li){const fn=un.toLowerCase().split(Wn).reduce((Pt,bt,tt)=>tt===0?[bt]:[].concat((0,Se.Z)(Pt),[Wn,bt]),[]),on=[];let mt=0;return fn.forEach((Pt,bt)=>{const tt=mt+Pt.length;let qt=un.slice(mt,tt);mt=tt,bt%2===1&&(qt=Oe.createElement("span",{className:`${li}-menu-item-keyword`,key:`separator-${bt}`},qt)),on.push(qt)}),on}const $n=(un,Wn,li,fn)=>{const on=[],mt=un.toLowerCase();return Wn.forEach((Pt,bt)=>{bt!==0&&on.push(" / ");let tt=Pt[fn.label];const qt=typeof tt;(qt==="string"||qt==="number")&&(tt=Co(String(tt),mt,li)),on.push(tt)}),on},Ce=Oe.forwardRef((un,Wn)=>{const{prefixCls:li,size:fn,disabled:on,className:mt,rootClassName:Pt,multiple:bt,bordered:tt=!0,transitionName:qt,choiceTransitionName:dn="",popupClassName:xt,dropdownClassName:Ye,expandIcon:an,placement:Bt,showSearch:jn,allowClear:cn=!0,notFoundContent:Et,direction:xn,getPopupContainer:Qn,status:Un,showArrow:zt,builtinPlacements:Sn,style:Ci}=un,Si=Yr(un,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),vi=(0,we.Z)(Si,["suffixIcon"]),{getPopupContainer:ti,getPrefixCls:xi,renderEmpty:Ni,direction:Zi,popupOverflow:cr,cascader:Gn}=Oe.useContext(Le.E_),Ai=xn||Zi,br=Ai==="rtl",{status:kr,hasFeedback:Sr,isFormItemInput:Xt,feedbackIcon:Li}=Oe.useContext(rn.aM),rr=(0,ze.F)(kr,Un),Hi=Et||(Ni==null?void 0:Ni("Cascader"))||Oe.createElement(nt.Z,{componentName:"Cascader"}),Er=xi(),dr=xi("select",li),Nr=xi("cascader",li),[Ti,Qi]=(0,vn.Z)(dr),[er]=Fr(Nr),{compactSize:kn,compactItemClassnames:Dr}=(0,Wi.ri)(dr,xn),Ln=ke()(xt||Ye,`${Nr}-dropdown`,{[`${Nr}-dropdown-rtl`]:Ai==="rtl"},Pt,Qi),pr=Oe.useMemo(()=>{if(!jn)return jn;let On={render:$n};return typeof jn=="object"&&(On=Object.assign(Object.assign({},On),jn)),On},[jn]),Qr=(0,En.Z)(On=>{var Wt;return(Wt=fn!=null?fn:kn)!==null&&Wt!==void 0?Wt:On}),vr=Oe.useContext(Ut.Z),Ho=on!=null?on:vr;let co=an;an||(co=br?Oe.createElement(He.Z,null):Oe.createElement(_e.Z,null));const mr=Oe.createElement("span",{className:`${dr}-menu-item-loading-icon`},Oe.createElement(Rt.Z,{spin:!0})),hr=Oe.useMemo(()=>bt?Oe.createElement("span",{className:`${Nr}-checkbox-inner`}):!1,[bt]),fr=(0,wi.Z)(un.suffixIcon,zt),{suffixIcon:Vr,removeIcon:Ii,clearIcon:Qe}=(0,Ri.Z)(Object.assign(Object.assign({},un),{hasFeedback:Sr,feedbackIcon:Li,showSuffixIcon:fr,multiple:bt,prefixCls:dr,componentName:"Cascader"})),pt=Oe.useMemo(()=>Bt!==void 0?Bt:br?"bottomRight":"bottomLeft",[Bt,br]),It=(0,mi.Z)(Sn,cr),sn=cn===!0?{clearIcon:Qe}:cn,Hn=Oe.createElement(Be,Object.assign({prefixCls:dr,className:ke()(!li&&Nr,{[`${dr}-lg`]:Qr==="large",[`${dr}-sm`]:Qr==="small",[`${dr}-rtl`]:br,[`${dr}-borderless`]:!tt,[`${dr}-in-form-item`]:Xt},(0,ze.Z)(dr,rr,Sr),Dr,Gn==null?void 0:Gn.className,mt,Pt,Qi),disabled:Ho,style:Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Ci)},vi,{builtinPlacements:It,direction:Ai,placement:pt,notFoundContent:Hi,allowClear:sn,showSearch:pr,expandIcon:co,suffixIcon:Vr,removeIcon:Ii,loadingIcon:mr,checkable:hr,dropdownClassName:Ln,dropdownPrefixCls:li||Nr,choiceTransitionName:(0,pe.m)(Er,"",dn),transitionName:(0,pe.m)(Er,"slide-up",qt),getPopupContainer:Qn||ti,ref:Wn}));return er(Ti(Hn))}),hi=(0,De.Z)(Ce);Ce.SHOW_PARENT=ar,Ce.SHOW_CHILD=Kr,Ce._InternalPanelDoNotUseOrYouWillBeFired=hi;var ki=Ce},24905:function(Rn,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Ie}});var Se=ye(92310),Oe=ye.n(Se),He=ye(5630),Rt=ye(59301),_e=ye(36355),vt=ye(1684),ke=ye(32441),Lt=Rt.createContext(null),et=ye(98447),gt=ye(14088),ct=ye(4572),wt=function(We,Ke){var Xe={};for(var ht in We)Object.prototype.hasOwnProperty.call(We,ht)&&Ke.indexOf(ht)<0&&(Xe[ht]=We[ht]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,ht=Object.getOwnPropertySymbols(We);Ve<ht.length;Ve++)Ke.indexOf(ht[Ve])<0&&Object.prototype.propertyIsEnumerable.call(We,ht[Ve])&&(Xe[ht[Ve]]=We[ht[Ve]]);return Xe};const Me=(We,Ke)=>{var Xe;const{prefixCls:ht,className:Ve,rootClassName:Nt,children:qe,indeterminate:Ht=!1,style:Zt,onMouseEnter:Yt,onMouseLeave:Ot,skipGroup:Qt=!1,disabled:dt}=We,Re=wt(We,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Mt,direction:Pn,checkbox:mn}=Rt.useContext(_e.E_),kt=Rt.useContext(Lt),{isFormItemInput:_t}=Rt.useContext(ke.aM),ln=Rt.useContext(vt.Z),Bn=(Xe=(kt==null?void 0:kt.disabled)||dt)!==null&&Xe!==void 0?Xe:ln,wn=Rt.useRef(Re.value);Rt.useEffect(()=>{kt==null||kt.registerValue(Re.value)},[]),Rt.useEffect(()=>{if(!Qt)return Re.value!==wn.current&&(kt==null||kt.cancelValue(wn.current),kt==null||kt.registerValue(Re.value),wn.current=Re.value),()=>kt==null?void 0:kt.cancelValue(Re.value)},[Re.value]);const Kn=Mt("checkbox",ht),[yt,Jn]=(0,et.ZP)(Kn),bn=Object.assign({},Re);kt&&!Qt&&(bn.onChange=function(){Re.onChange&&Re.onChange.apply(Re,arguments),kt.toggleOption&&kt.toggleOption({label:qe,value:Re.value})},bn.name=kt.name,bn.checked=kt.value.includes(Re.value));const ci=Oe()(`${Kn}-wrapper`,{[`${Kn}-rtl`]:Pn==="rtl",[`${Kn}-wrapper-checked`]:bn.checked,[`${Kn}-wrapper-disabled`]:Bn,[`${Kn}-wrapper-in-form-item`]:_t},mn==null?void 0:mn.className,Ve,Nt,Jn),Tn=Oe()({[`${Kn}-indeterminate`]:Ht},ct.A,Jn),tn=Ht?"mixed":void 0;return yt(Rt.createElement(gt.Z,{component:"Checkbox",disabled:Bn},Rt.createElement("label",{className:ci,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),Zt),onMouseEnter:Yt,onMouseLeave:Ot},Rt.createElement(He.Z,Object.assign({"aria-checked":tn},bn,{prefixCls:Kn,className:Tn,disabled:Bn,ref:Ke})),qe!==void 0&&Rt.createElement("span",null,qe))))};var ne=Rt.forwardRef(Me),ce=ye(26390),se=ye(64002),ge=function(We,Ke){var Xe={};for(var ht in We)Object.prototype.hasOwnProperty.call(We,ht)&&Ke.indexOf(ht)<0&&(Xe[ht]=We[ht]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,ht=Object.getOwnPropertySymbols(We);Ve<ht.length;Ve++)Ke.indexOf(ht[Ve])<0&&Object.prototype.propertyIsEnumerable.call(We,ht[Ve])&&(Xe[ht[Ve]]=We[ht[Ve]]);return Xe};const ve=(We,Ke)=>{const{defaultValue:Xe,children:ht,options:Ve=[],prefixCls:Nt,className:qe,rootClassName:Ht,style:Zt,onChange:Yt}=We,Ot=ge(We,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Qt,direction:dt}=Rt.useContext(_e.E_),[Re,Mt]=Rt.useState(Ot.value||Xe||[]),[Pn,mn]=Rt.useState([]);Rt.useEffect(()=>{"value"in Ot&&Mt(Ot.value||[])},[Ot.value]);const kt=Rt.useMemo(()=>Ve.map($t=>typeof $t=="string"||typeof $t=="number"?{label:$t,value:$t}:$t),[Ve]),_t=$t=>{mn(ft=>ft.filter(Je=>Je!==$t))},ln=$t=>{mn(ft=>[].concat((0,ce.Z)(ft),[$t]))},Bn=$t=>{const ft=Re.indexOf($t.value),Je=(0,ce.Z)(Re);ft===-1?Je.push($t.value):Je.splice(ft,1),"value"in Ot||Mt(Je),Yt==null||Yt(Je.filter(Gt=>Pn.includes(Gt)).sort((Gt,At)=>{const lt=kt.findIndex(Be=>Be.value===Gt),Ge=kt.findIndex(Be=>Be.value===At);return lt-Ge}))},wn=Qt("checkbox",Nt),Kn=`${wn}-group`,[yt,Jn]=(0,et.ZP)(wn),bn=(0,se.Z)(Ot,["value","disabled"]),ci=Ve.length?kt.map($t=>Rt.createElement(ne,{prefixCls:wn,key:$t.value.toString(),disabled:"disabled"in $t?$t.disabled:Ot.disabled,value:$t.value,checked:Re.includes($t.value),onChange:$t.onChange,className:`${Kn}-item`,style:$t.style,title:$t.title},$t.label)):ht,Tn={toggleOption:Bn,value:Re,disabled:Ot.disabled,name:Ot.name,registerValue:ln,cancelValue:_t},tn=Oe()(Kn,{[`${Kn}-rtl`]:dt==="rtl"},qe,Ht,Jn);return yt(Rt.createElement("div",Object.assign({className:tn,style:Zt},bn,{ref:Ke}),Rt.createElement(Lt.Provider,{value:Tn},ci)))},be=Rt.forwardRef(ve);var Fe=Rt.memo(be);const Pe=ne;Pe.Group=Fe,Pe.__ANT_CHECKBOX=!0;var Ie=Pe},98447:function(Rn,Fn,ye){"use strict";ye.d(Fn,{C2:function(){return _e}});var Se=ye(17313),Oe=ye(37613),He=ye(83116);const Rt=vt=>{const{checkboxCls:ke}=vt,Tt=`${ke}-wrapper`;return[{[`${ke}-group`]:Object.assign(Object.assign({},(0,Se.Wf)(vt)),{display:"inline-flex",flexWrap:"wrap",columnGap:vt.marginXS,[`> ${vt.antCls}-row`]:{flex:1}}),[Tt]:Object.assign(Object.assign({},(0,Se.Wf)(vt)),{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}}}),[ke]:Object.assign(Object.assign({},(0,Se.Wf)(vt)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:vt.borderRadiusSM,alignSelf:"center",[`${ke}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ke}-inner`]:Object.assign({},(0,Se.oN)(vt))},[`${ke}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:vt.checkboxSize,height:vt.checkboxSize,direction:"ltr",backgroundColor:vt.colorBgContainer,border:`${vt.lineWidth}px ${vt.lineType} ${vt.colorBorder}`,borderRadius:vt.borderRadiusSM,borderCollapse:"separate",transition:`all ${vt.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:vt.checkboxSize/14*5,height:vt.checkboxSize/14*8,border:`${vt.lineWidthBold}px solid ${vt.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${vt.motionDurationFast} ${vt.motionEaseInBack}, opacity ${vt.motionDurationFast}`}},"& + span":{paddingInlineStart:vt.paddingXS,paddingInlineEnd:vt.paddingXS}})},{[`
|
|
|
${Tt}:not(${Tt}-disabled),
|
|
|
${ke}:not(${ke}-disabled)
|
|
|
`]:{[`&:hover ${ke}-inner`]:{borderColor:vt.colorPrimary}},[`${Tt}:not(${Tt}-disabled)`]:{[`&:hover ${ke}-checked:not(${ke}-disabled) ${ke}-inner`]:{backgroundColor:vt.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ke}-checked:not(${ke}-disabled):after`]:{borderColor:vt.colorPrimaryHover}}},{[`${ke}-checked`]:{[`${ke}-inner`]:{backgroundColor:vt.colorPrimary,borderColor:vt.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${vt.motionDurationMid} ${vt.motionEaseOutBack} ${vt.motionDurationFast}`}}},[`
|
|
|
${Tt}-checked:not(${Tt}-disabled),
|
|
|
${ke}-checked:not(${ke}-disabled)
|
|
|
`]:{[`&:hover ${ke}-inner`]:{backgroundColor:vt.colorPrimaryHover,borderColor:"transparent"}}},{[ke]:{"&-indeterminate":{[`${ke}-inner`]:{backgroundColor:vt.colorBgContainer,borderColor:vt.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:vt.fontSizeLG/2,height:vt.fontSizeLG/2,backgroundColor:vt.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Tt}-disabled`]:{cursor:"not-allowed"},[`${ke}-disabled`]:{[`&, ${ke}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ke}-inner`]:{background:vt.colorBgContainerDisabled,borderColor:vt.colorBorder,"&:after":{borderColor:vt.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:vt.colorTextDisabled},[`&${ke}-indeterminate ${ke}-inner::after`]:{background:vt.colorTextDisabled}}}]};function _e(vt,ke){const Tt=(0,Oe.TS)(ke,{checkboxCls:`.${vt}`,checkboxSize:ke.controlInteractiveSize});return[Rt(Tt)]}Fn.ZP=(0,He.Z)("Checkbox",(vt,ke)=>{let{prefixCls:Tt}=ke;return[_e(Tt,vt)]})},93891:function(Rn,Fn,ye){"use strict";var Se=ye(59301),Oe=ye(36355),He=ye(64165);const Rt=_e=>{const{componentName:vt}=_e,{getPrefixCls:ke}=(0,Se.useContext)(Oe.E_),Tt=ke("empty");switch(vt){case"Table":case"List":return Se.createElement(He.Z,{image:He.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Se.createElement(He.Z,{image:He.Z.PRESENTED_IMAGE_SIMPLE,className:`${Tt}-small`});default:return Se.createElement(He.Z,null)}};Fn.Z=Rt},78550:function(Rn,Fn,ye){"use strict";ye.d(Fn,{default:function(){return ol}});var Se=ye(61186),Oe=ye.n(Se),He=ye(51395),Rt=ye(90111),_e=ye.n(Rt),vt=ye(58319),ke=ye.n(vt),Tt=ye(23250),Lt=ye.n(Tt),et=ye(74959),gt=ye.n(et),ct=ye(10238),wt=ye.n(ct),Me=ye(33656),te=ye.n(Me);Oe().extend(te()),Oe().extend(wt()),Oe().extend(_e()),Oe().extend(ke()),Oe().extend(Lt()),Oe().extend(gt()),Oe().extend(function(je,$e){var st=$e.prototype,nn=st.format;st.format=function(In){var Zn=(In||"").replace("Wo","wo");return nn.bind(this)(Zn)}});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($e){var st=ne[$e];return st||$e.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($e){return Oe()($e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function($e){return $e.endOf("month")},getWeekDay:function($e){var st=$e.locale("en");return st.weekday()+st.localeData().firstDayOfWeek()},getYear:function($e){return $e.year()},getMonth:function($e){return $e.month()},getDate:function($e){return $e.date()},getHour:function($e){return $e.hour()},getMinute:function($e){return $e.minute()},getSecond:function($e){return $e.second()},addYear:function($e,st){return $e.add(st,"year")},addMonth:function($e,st){return $e.add(st,"month")},addDate:function($e,st){return $e.add(st,"day")},setYear:function($e,st){return $e.year(st)},setMonth:function($e,st){return $e.month(st)},setDate:function($e,st){return $e.date(st)},setHour:function($e,st){return $e.hour(st)},setMinute:function($e,st){return $e.minute(st)},setSecond:function($e,st){return $e.second(st)},isAfter:function($e,st){return $e.isAfter(st)},isValidate:function($e){return $e.isValid()},locale:{getWeekFirstDay:function($e){return Oe()().locale(ce($e)).localeData().firstDayOfWeek()},getWeekFirstDate:function($e,st){return st.locale(ce($e)).weekday(0)},getWeek:function($e,st){return st.locale(ce($e)).week()},getShortWeekDays:function($e){return Oe()().locale(ce($e)).localeData().weekdaysMin()},getShortMonths:function($e){return Oe()().locale(ce($e)).localeData().monthsShort()},format:function($e,st,nn){return st.locale(ce($e)).format(nn)},parse:function($e,st,nn){for(var hn=ce($e),In=0;In<nn.length;In+=1){var Zn=nn[In],oi=st;if(Zn.includes("wo")||Zn.includes("Wo")){for(var ui=oi.split("-")[0],Mi=oi.split("-")[1],sr=Oe()(ui,"YYYY").startOf("year").locale(hn),Ei=0;Ei<=52;Ei+=1){var _i=sr.add(Ei,"week");if(_i.format("Wo")===Mi)return _i}return se(),null}var bi=Oe()(oi,Zn,!0).locale(hn);if(bi.isValid())return bi}return st&&se(),null}}},ve=ge,be=ye(53487),Fe=ye(5891),Pe=ye(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"},We=Ie,Ke=ye(88853),Xe=function($e,st){return Pe.createElement(Ke.Z,(0,Fe.Z)({},$e,{ref:st,icon:We}))},ht=Pe.forwardRef(Xe),Ve=ht,Nt={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"},qe=Nt,Ht=function($e,st){return Pe.createElement(Ke.Z,(0,Fe.Z)({},$e,{ref:st,icon:qe}))},Zt=Pe.forwardRef(Ht),Yt=Zt,Ot=ye(33130),Qt={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"},dt=Qt,Re=function($e,st){return Pe.createElement(Ke.Z,(0,Fe.Z)({},$e,{ref:st,icon:dt}))},Mt=Pe.forwardRef(Re),Pn=Mt,mn=ye(92310),kt=ye.n(mn),_t=ye(79545),ln=ye(68550),Bn=ye(21882),wn=ye(17928),Kn=ye(7711),yt=ye(80962),Jn=ye(57259),bn=ye(29043),ci=ye(35788),Tn=ye(36994),tn=ye(79722),$t=ye(51346),ft=10,Je=ft*10,Gt=7;function At(je,$e){if(!je&&!$e)return!0;if(!je||!$e)return!1}function lt(je,$e,st){var nn=At($e,st);if(typeof nn=="boolean")return nn;var hn=Math.floor(je.getYear($e)/10),In=Math.floor(je.getYear(st)/10);return hn===In}function Ge(je,$e,st){var nn=At($e,st);return typeof nn=="boolean"?nn:je.getYear($e)===je.getYear(st)}function Be(je,$e){var st=Math.floor(je.getMonth($e)/3);return st+1}function we(je,$e,st){var nn=At($e,st);return typeof nn=="boolean"?nn:Ge(je,$e,st)&&Be(je,$e)===Be(je,st)}function pe(je,$e,st){var nn=At($e,st);return typeof nn=="boolean"?nn:Ge(je,$e,st)&&je.getMonth($e)===je.getMonth(st)}function De(je,$e,st){var nn=At($e,st);return typeof nn=="boolean"?nn:je.getYear($e)===je.getYear(st)&&je.getMonth($e)===je.getMonth(st)&&je.getDate($e)===je.getDate(st)}function ze(je,$e,st){var nn=At($e,st);return typeof nn=="boolean"?nn:je.getHour($e)===je.getHour(st)&&je.getMinute($e)===je.getMinute(st)&&je.getSecond($e)===je.getSecond(st)}function Le(je,$e,st,nn){var hn=At(st,nn);return typeof hn=="boolean"?hn:Ge(je,st,nn)&&je.locale.getWeek($e,st)===je.locale.getWeek($e,nn)}function nt(je,$e,st){return De(je,$e,st)&&ze(je,$e,st)}function Ut(je,$e,st,nn){return!$e||!st||!nn?!1:!De(je,$e,nn)&&!De(je,st,nn)&&je.isAfter(nn,$e)&&je.isAfter(st,nn)}function En(je,$e,st){var nn=$e.locale.getWeekFirstDay(je),hn=$e.setDate(st,1),In=$e.getWeekDay(hn),Zn=$e.addDate(hn,nn-In);return $e.getMonth(Zn)===$e.getMonth(st)&&$e.getDate(Zn)>1&&(Zn=$e.addDate(Zn,-7)),Zn}function rn(je,$e,st){var nn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch($e){case"year":return st.addYear(je,nn*10);case"quarter":case"month":return st.addYear(je,nn);default:return st.addMonth(je,nn)}}function vn(je,$e){var st=$e.generateConfig,nn=$e.locale,hn=$e.format;return typeof hn=="function"?hn(je):st.locale.format(nn.locale,je,hn)}function mi(je,$e){var st=$e.generateConfig,nn=$e.locale,hn=$e.formatList;return!je||typeof hn[0]=="function"?null:st.locale.parse(nn.locale,je,hn)}function wi(je){var $e=je.cellDate,st=je.mode,nn=je.disabledDate,hn=je.generateConfig;if(!nn)return!1;var In=function(xr,ni,$i){for(var wr=ni;wr<=$i;){var ho=void 0;switch(xr){case"date":{if(ho=hn.setDate($e,wr),!nn(ho))return!1;break}case"month":{if(ho=hn.setMonth($e,wr),!wi({cellDate:ho,mode:"month",generateConfig:hn,disabledDate:nn}))return!1;break}case"year":{if(ho=hn.setYear($e,wr),!wi({cellDate:ho,mode:"year",generateConfig:hn,disabledDate:nn}))return!1;break}}wr+=1}return!0};switch(st){case"date":case"week":return nn($e);case"month":{var Zn=1,oi=hn.getDate(hn.getEndDate($e));return In("date",Zn,oi)}case"quarter":{var ui=Math.floor(hn.getMonth($e)/3)*3,Mi=ui+2;return In("month",ui,Mi)}case"year":return In("month",0,11);case"decade":{var sr=hn.getYear($e),Ei=Math.floor(sr/ft)*ft,_i=Ei+ft-1;return In("year",Ei,_i)}}}function Ri(je,$e){var st=$e.formatList,nn=$e.generateConfig,hn=$e.locale;return(0,tn.Z)(function(){if(!je)return[[""],""];for(var In="",Zn=[],oi=0;oi<st.length;oi+=1){var ui=st[oi],Mi=vn(je,{generateConfig:nn,locale:hn,format:ui});Zn.push(Mi),oi===0&&(In=Mi)}return[Zn,In]},[je,st,hn],function(In,Zn){return!nt(nn,In[0],Zn[0])||!(0,$t.Z)(In[1],Zn[1],!0)||!(0,$t.Z)(In[2],Zn[2],!0)})}function Wi(je,$e){var st=$e.formatList,nn=$e.generateConfig,hn=$e.locale,In=(0,Pe.useState)(null),Zn=(0,bn.Z)(In,2),oi=Zn[0],ui=Zn[1],Mi=(0,Pe.useRef)(null);function sr($i){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Mi.current),wr){ui($i);return}Mi.current=requestAnimationFrame(function(){ui($i)})}var Ei=Ri(oi,{formatList:st,generateConfig:nn,locale:hn}),_i=(0,bn.Z)(Ei,2),bi=_i[1];function xr($i){sr($i)}function ni(){var $i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;sr(null,$i)}return(0,Pe.useEffect)(function(){ni(!0)},[je]),(0,Pe.useEffect)(function(){return function(){return cancelAnimationFrame(Mi.current)}},[]),[bi,xr,ni]}var Mn=ye(85108),nr=ye(23073),Wr=ye(26390),Hr=ye(48886),Tr=new Map;function Fr(je,$e){var st;function nn(){(0,Hr.Z)(je)?$e():st=(0,nr.Z)(function(){nn()})}return nn(),function(){nr.Z.cancel(st)}}function Yr(je,$e,st){if(Tr.get(je)&&cancelAnimationFrame(Tr.get(je)),st<=0){Tr.set(je,requestAnimationFrame(function(){je.scrollTop=$e}));return}var nn=$e-je.scrollTop,hn=nn/st*10;Tr.set(je,requestAnimationFrame(function(){je.scrollTop+=hn,je.scrollTop!==$e&&Yr(je,$e,st-10)}))}function Kr(je,$e){var st=$e.onLeftRight,nn=$e.onCtrlLeftRight,hn=$e.onUpDown,In=$e.onPageUpDown,Zn=$e.onEnter,oi=je.which,ui=je.ctrlKey,Mi=je.metaKey;switch(oi){case Mn.Z.LEFT:if(ui||Mi){if(nn)return nn(-1),!0}else if(st)return st(-1),!0;break;case Mn.Z.RIGHT:if(ui||Mi){if(nn)return nn(1),!0}else if(st)return st(1),!0;break;case Mn.Z.UP:if(hn)return hn(-1),!0;break;case Mn.Z.DOWN:if(hn)return hn(1),!0;break;case Mn.Z.PAGE_UP:if(In)return In(-1),!0;break;case Mn.Z.PAGE_DOWN:if(In)return In(1),!0;break;case Mn.Z.ENTER:if(Zn)return Zn(),!0;break}return!1}function ar(je,$e,st,nn){var hn=je;if(!hn)switch($e){case"time":hn=nn?"hh:mm:ss a":"HH:mm:ss";break;case"week":hn="gggg-wo";break;case"month":hn="YYYY-MM";break;case"quarter":hn="YYYY-[Q]Q";break;case"year":hn="YYYY";break;default:hn=st?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return hn}function Co(je,$e,st){var nn=je==="time"?8:10,hn=typeof $e=="function"?$e(st.getNow()).length:$e.length;return Math.max(nn,hn)+2}var $n=null,Ce=new Set;function hi(je){return!$n&&typeof window!="undefined"&&window.addEventListener&&($n=function(st){(0,Wr.Z)(Ce).forEach(function(nn){nn(st)})},window.addEventListener("mousedown",$n)),Ce.add(je),function(){Ce.delete(je),Ce.size===0&&(window.removeEventListener("mousedown",$n),$n=null)}}function ki(je){var $e=je.target;if(je.composed&&$e.shadowRoot){var st;return((st=je.composedPath)===null||st===void 0?void 0:st.call(je)[0])||$e}return $e}var un=function($e){return $e==="month"||$e==="date"?"year":$e},Wn=function($e){return $e==="date"?"month":$e},li=function($e){return $e==="month"||$e==="date"?"quarter":$e},fn=function($e){return $e==="date"?"week":$e},on={year:un,month:Wn,quarter:li,week:fn,time:null,date:null};function mt(je,$e){return je.some(function(st){return st&&st.contains($e)})}function Pt(je){var $e=je.open,st=je.value,nn=je.isClickOutside,hn=je.triggerOpen,In=je.forwardKeyDown,Zn=je.onKeyDown,oi=je.blurToCancel,ui=je.onSubmit,Mi=je.onCancel,sr=je.onFocus,Ei=je.onBlur,_i=je.changeOnBlur,bi=(0,Pe.useState)(!1),xr=(0,bn.Z)(bi,2),ni=xr[0],$i=xr[1],wr=(0,Pe.useState)(!1),ho=(0,bn.Z)(wr,2),io=ho[0],mo=ho[1],vo=(0,Pe.useRef)(!1),fo=(0,Pe.useRef)(!1),lr=(0,Pe.useRef)(!1),aa={onMouseDown:function(){$i(!0),hn(!0)},onKeyDown:function(Sa){var Ka=function(){lr.current=!0};if(Zn(Sa,Ka),!lr.current){switch(Sa.which){case Mn.Z.ENTER:{$e?ui()!==!1&&$i(!0):hn(!0),Sa.preventDefault();return}case Mn.Z.TAB:{ni&&$e&&!Sa.shiftKey?($i(!1),Sa.preventDefault()):!ni&&$e&&!In(Sa)&&Sa.shiftKey&&($i(!0),Sa.preventDefault());return}case Mn.Z.ESC:{$i(!0),Mi();return}}!$e&&![Mn.Z.SHIFT].includes(Sa.which)?hn(!0):ni||In(Sa)}},onFocus:function(Sa){$i(!0),mo(!0),sr&&sr(Sa)},onBlur:function(Sa){if(vo.current||!nn(document.activeElement)){vo.current=!1;return}oi?setTimeout(function(){for(var Ka=document,Ha=Ka.activeElement;Ha&&Ha.shadowRoot;)Ha=Ha.shadowRoot.activeElement;nn(Ha)&&Mi()},0):$e&&(hn(!1),fo.current&&ui()),mo(!1),Ei==null||Ei(Sa)}};return(0,Pe.useEffect)(function(){fo.current=!1},[$e]),(0,Pe.useEffect)(function(){fo.current=!0},[st]),(0,Pe.useEffect)(function(){return hi(function(ea){var Sa=ki(ea),Ka=nn(Sa);$e&&(Ka?!_i&&(!io||Ka)&&hn(!1):(vo.current=!0,(0,nr.Z)(function(){vo.current=!1})))})}),[aa,{focused:io,typing:ni}]}function bt(je,$e){return Pe.useMemo(function(){return je||($e?((0,He.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries($e).map(function(st){var nn=(0,bn.Z)(st,2),hn=nn[0],In=nn[1];return{label:hn,value:In}})):[])},[je,$e])}var tt=ye(28800);function qt(je){var $e=je.valueTexts,st=je.onTextChange,nn=Pe.useState(""),hn=(0,bn.Z)(nn,2),In=hn[0],Zn=hn[1],oi=Pe.useRef([]);oi.current=$e;function ui(sr){Zn(sr),st(sr)}function Mi(){Zn(oi.current[0])}return(0,tt.Z)(function(){$e.every(function(sr){return sr!==In})&&Mi()},[$e.join("||")]),[In,ui,Mi]}var dn=Pe.createContext({}),xt=dn,Ye=ye(80665);function an(je){var $e=je.cellRender,st=je.monthCellRender,nn=je.dateRender,hn=Pe.useMemo(function(){if($e)return $e;if(!(!st&&!nn))return function(In,Zn){var oi=In;return nn&&Zn.type==="date"?nn(oi,Zn.today):st&&Zn.type==="month"?st(oi,Zn.locale):Zn.originNode}},[$e,st,nn]);return hn}function Bt(je,$e){for(var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",nn=String(je);nn.length<$e;)nn="".concat(st).concat(je);return nn}var jn=function(){for(var $e=arguments.length,st=new Array($e),nn=0;nn<$e;nn++)st[nn]=arguments[nn];return st};function cn(je){return je==null?[]:Array.isArray(je)?je:[je]}function Et(je,$e){return je?je[$e]:null}function xn(je,$e,st){var nn=[Et(je,0),Et(je,1)];return nn[st]=typeof $e=="function"?$e(nn[st]):$e,!nn[0]&&!nn[1]?null:nn}function Qn(je){return typeof je=="function"?je():je}function Un(je){var $e=je.cellPrefixCls,st=je.generateConfig,nn=je.rangedValue,hn=je.hoverRangedValue,In=je.isInView,Zn=je.isSameCell,oi=je.offsetCell,ui=je.today,Mi=je.value;function sr(Ei){var _i,bi=oi(Ei,-1),xr=oi(Ei,1),ni=Et(nn,0),$i=Et(nn,1),wr=Et(hn,0),ho=Et(hn,1),io=Ut(st,wr,ho,Ei);function mo(Sa){return Zn(ni,Sa)}function vo(Sa){return Zn($i,Sa)}var fo=Zn(wr,Ei),lr=Zn(ho,Ei),aa=(io||lr)&&(!In(bi)||vo(bi)),ea=(io||fo)&&(!In(xr)||mo(xr));return _i={},(0,yt.Z)(_i,"".concat($e,"-in-view"),In(Ei)),(0,yt.Z)(_i,"".concat($e,"-in-range"),Ut(st,ni,$i,Ei)),(0,yt.Z)(_i,"".concat($e,"-range-start"),mo(Ei)),(0,yt.Z)(_i,"".concat($e,"-range-end"),vo(Ei)),(0,yt.Z)(_i,"".concat($e,"-range-start-single"),mo(Ei)&&!$i),(0,yt.Z)(_i,"".concat($e,"-range-end-single"),vo(Ei)&&!ni),(0,yt.Z)(_i,"".concat($e,"-range-start-near-hover"),mo(Ei)&&(Zn(bi,wr)||Ut(st,wr,ho,bi))),(0,yt.Z)(_i,"".concat($e,"-range-end-near-hover"),vo(Ei)&&(Zn(xr,ho)||Ut(st,wr,ho,xr))),(0,yt.Z)(_i,"".concat($e,"-range-hover"),io),(0,yt.Z)(_i,"".concat($e,"-range-hover-start"),fo),(0,yt.Z)(_i,"".concat($e,"-range-hover-end"),lr),(0,yt.Z)(_i,"".concat($e,"-range-hover-edge-start"),aa),(0,yt.Z)(_i,"".concat($e,"-range-hover-edge-end"),ea),(0,yt.Z)(_i,"".concat($e,"-range-hover-edge-start-near-range"),aa&&Zn(bi,$i)),(0,yt.Z)(_i,"".concat($e,"-range-hover-edge-end-near-range"),ea&&Zn(xr,ni)),(0,yt.Z)(_i,"".concat($e,"-today"),Zn(ui,Ei)),(0,yt.Z)(_i,"".concat($e,"-selected"),Zn(Mi,Ei)),_i}return sr}var zt=Pe.createContext({}),Sn=zt;function Ci(je,$e,st,nn,hn){var In=je.setHour($e,st);return In=je.setMinute(In,nn),In=je.setSecond(In,hn),In}function Si(je,$e,st){if(!st)return $e;var nn=$e;return nn=je.setHour(nn,je.getHour(st)),nn=je.setMinute(nn,je.getMinute(st)),nn=je.setSecond(nn,je.getSecond(st)),nn}function vi(je,$e,st,nn,hn,In){var Zn=Math.floor(je/nn)*nn;if(Zn<je)return[Zn,60-hn,60-In];var oi=Math.floor($e/hn)*hn;if(oi<$e)return[Zn,oi,60-In];var ui=Math.floor(st/In)*In;return[Zn,oi,ui]}function ti(je,$e){var st=je.getYear($e),nn=je.getMonth($e)+1,hn=je.getEndDate(je.getFixedDate("".concat(st,"-").concat(nn,"-01"))),In=je.getDate(hn),Zn=nn<10?"0".concat(nn):"".concat(nn);return"".concat(st,"-").concat(Zn,"-").concat(In)}function xi(je){for(var $e=je.prefixCls,st=je.disabledDate,nn=je.onSelect,hn=je.picker,In=je.rowNum,Zn=je.colNum,oi=je.prefixColumn,ui=je.rowClassName,Mi=je.baseDate,sr=je.getCellClassName,Ei=je.getCellText,_i=je.getCellNode,bi=je.getCellDate,xr=je.generateConfig,ni=je.titleCell,$i=je.headerCells,wr=Pe.useContext(xt),ho=wr.onDateMouseEnter,io=wr.onDateMouseLeave,mo=wr.mode,vo="".concat($e,"-cell"),fo=[],lr=0;lr<In;lr+=1){for(var aa=[],ea=void 0,Sa=function(){var Ba,fs=lr*Zn+Ka,La=bi(Mi,fs),Ca=wi({cellDate:La,mode:mo,disabledDate:st,generateConfig:xr});Ka===0&&(ea=La,oi&&aa.push(oi(ea)));var Ta=ni&&ni(La),as=Pe.createElement("div",{className:"".concat(vo,"-inner")},Ei(La));aa.push(Pe.createElement("td",{key:Ka,title:Ta,className:kt()(vo,(0,Jn.Z)((Ba={},(0,yt.Z)(Ba,"".concat(vo,"-disabled"),Ca),(0,yt.Z)(Ba,"".concat(vo,"-start"),Ei(La)===1||hn==="year"&&Number(Ta)%10===0),(0,yt.Z)(Ba,"".concat(vo,"-end"),Ta===ti(xr,La)||hn==="year"&&Number(Ta)%10===9),Ba),sr(La))),onClick:function(){Ca||nn(La)},onMouseEnter:function(){!Ca&&ho&&ho(La)},onMouseLeave:function(){!Ca&&io&&io(La)}},_i?_i(La,as):as))},Ka=0;Ka<Zn;Ka+=1)Sa();fo.push(Pe.createElement("tr",{key:lr,className:ui&&ui(ea)},aa))}return Pe.createElement("div",{className:"".concat($e,"-body")},Pe.createElement("table",{className:"".concat($e,"-content")},$i&&Pe.createElement("thead",null,Pe.createElement("tr",null,$i)),Pe.createElement("tbody",null,fo)))}function Ni(je){var $e=je.prefixCls,st=je.generateConfig,nn=je.prefixColumn,hn=je.locale,In=je.rowCount,Zn=je.viewDate,oi=je.value,ui=je.cellRender,Mi=je.isSameCell,sr=Pe.useContext(Sn),Ei=sr.rangedValue,_i=sr.hoverRangedValue,bi=En(hn.locale,st,Zn),xr="".concat($e,"-cell"),ni=st.locale.getWeekFirstDay(hn.locale),$i=st.getNow(),wr=[],ho=hn.shortWeekDays||(st.locale.getShortWeekDays?st.locale.getShortWeekDays(hn.locale):[]);nn&&wr.push(Pe.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var io=0;io<Gt;io+=1)wr.push(Pe.createElement("th",{key:io},ho[(io+ni)%Gt]));var mo=Un({cellPrefixCls:xr,today:$i,value:oi,generateConfig:st,rangedValue:nn?null:Ei,hoverRangedValue:nn?null:_i,isSameCell:Mi||function(fo,lr){return De(st,fo,lr)},isInView:function(lr){return pe(st,lr,Zn)},offsetCell:function(lr,aa){return st.addDate(lr,aa)}}),vo=ui?function(fo,lr){return ui(fo,{originNode:lr,today:$i,type:"date",locale:hn})}:void 0;return Pe.createElement(xi,(0,Fe.Z)({},je,{rowNum:In,colNum:Gt,baseDate:bi,getCellNode:vo,getCellText:st.getDate,getCellClassName:mo,getCellDate:st.addDate,titleCell:function(lr){return vn(lr,{locale:hn,format:"YYYY-MM-DD",generateConfig:st})},headerCells:wr}))}var Zi=Ni,cr={visibility:"hidden"};function Gn(je){var $e=je.prefixCls,st=je.prevIcon,nn=st===void 0?"\u2039":st,hn=je.nextIcon,In=hn===void 0?"\u203A":hn,Zn=je.superPrevIcon,oi=Zn===void 0?"\xAB":Zn,ui=je.superNextIcon,Mi=ui===void 0?"\xBB":ui,sr=je.onSuperPrev,Ei=je.onSuperNext,_i=je.onPrev,bi=je.onNext,xr=je.children,ni=Pe.useContext(xt),$i=ni.hideNextBtn,wr=ni.hidePrevBtn;return Pe.createElement("div",{className:$e},sr&&Pe.createElement("button",{type:"button",onClick:sr,tabIndex:-1,className:"".concat($e,"-super-prev-btn"),style:wr?cr:{}},oi),_i&&Pe.createElement("button",{type:"button",onClick:_i,tabIndex:-1,className:"".concat($e,"-prev-btn"),style:wr?cr:{}},nn),Pe.createElement("div",{className:"".concat($e,"-view")},xr),bi&&Pe.createElement("button",{type:"button",onClick:bi,tabIndex:-1,className:"".concat($e,"-next-btn"),style:$i?cr:{}},In),Ei&&Pe.createElement("button",{type:"button",onClick:Ei,tabIndex:-1,className:"".concat($e,"-super-next-btn"),style:$i?cr:{}},Mi))}var Ai=Gn;function br(je){var $e=je.prefixCls,st=je.generateConfig,nn=je.locale,hn=je.viewDate,In=je.onNextMonth,Zn=je.onPrevMonth,oi=je.onNextYear,ui=je.onPrevYear,Mi=je.onYearClick,sr=je.onMonthClick,Ei=Pe.useContext(xt),_i=Ei.hideHeader;if(_i)return null;var bi="".concat($e,"-header"),xr=nn.shortMonths||(st.locale.getShortMonths?st.locale.getShortMonths(nn.locale):[]),ni=st.getMonth(hn),$i=Pe.createElement("button",{type:"button",key:"year",onClick:Mi,tabIndex:-1,className:"".concat($e,"-year-btn")},vn(hn,{locale:nn,format:nn.yearFormat,generateConfig:st})),wr=Pe.createElement("button",{type:"button",key:"month",onClick:sr,tabIndex:-1,className:"".concat($e,"-month-btn")},nn.monthFormat?vn(hn,{locale:nn,format:nn.monthFormat,generateConfig:st}):xr[ni]),ho=nn.monthBeforeYear?[wr,$i]:[$i,wr];return Pe.createElement(Ai,(0,Fe.Z)({},je,{prefixCls:bi,onSuperPrev:ui,onPrev:Zn,onNext:In,onSuperNext:oi}),ho)}var kr=br,Sr=6;function Xt(je){var $e=je.prefixCls,st=je.panelName,nn=st===void 0?"date":st,hn=je.keyboardConfig,In=je.active,Zn=je.operationRef,oi=je.generateConfig,ui=je.value,Mi=je.viewDate,sr=je.onViewDateChange,Ei=je.onPanelChange,_i=je.onSelect,bi="".concat($e,"-").concat(nn,"-panel");Zn.current={onKeyDown:function(wr){return Kr(wr,(0,Jn.Z)({onLeftRight:function(io){_i(oi.addDate(ui||Mi,io),"key")},onCtrlLeftRight:function(io){_i(oi.addYear(ui||Mi,io),"key")},onUpDown:function(io){_i(oi.addDate(ui||Mi,io*Gt),"key")},onPageUpDown:function(io){_i(oi.addMonth(ui||Mi,io),"key")}},hn))}};var xr=function(wr){var ho=oi.addYear(Mi,wr);sr(ho),Ei(null,ho)},ni=function(wr){var ho=oi.addMonth(Mi,wr);sr(ho),Ei(null,ho)};return Pe.createElement("div",{className:kt()(bi,(0,yt.Z)({},"".concat(bi,"-active"),In))},Pe.createElement(kr,(0,Fe.Z)({},je,{prefixCls:$e,value:ui,viewDate:Mi,onPrevYear:function(){xr(-1)},onNextYear:function(){xr(1)},onPrevMonth:function(){ni(-1)},onNextMonth:function(){ni(1)},onMonthClick:function(){Ei("month",Mi)},onYearClick:function(){Ei("year",Mi)}})),Pe.createElement(Zi,(0,Fe.Z)({},je,{onSelect:function(wr){return _i(wr,"mouse")},prefixCls:$e,value:ui,viewDate:Mi,rowCount:Sr})))}var Li=Xt;function rr(je){var $e=Pe.useContext(xt),st=$e.hideHeader;if(st)return null;var nn=je.prefixCls,hn=je.generateConfig,In=je.locale,Zn=je.value,oi=je.format,ui="".concat(nn,"-header");return Pe.createElement(Ai,{prefixCls:ui},Zn?vn(Zn,{locale:In,format:oi,generateConfig:hn}):"\xA0")}var Hi=rr;function Er(je){var $e=je.value,st=je.generateConfig,nn=je.disabledMinutes,hn=je.disabledSeconds,In=je.minutes,Zn=je.seconds,oi=je.use12Hours,ui=function(sr,Ei,_i,bi){var xr=st.getNow(),ni=$e||xr,$i=Ei<0?st.getHour(xr):Ei,wr=_i<0?st.getMinute(xr):_i,ho=bi<0?st.getSecond(xr):bi,io=nn&&nn($i);if(io!=null&&io.includes(wr)){var mo=In.find(function(lr){return!io.includes(lr.value)});if(mo)wr=mo.value;else return null}var vo=hn&&hn($i,wr);if(vo!=null&&vo.includes(ho)){var fo=Zn.find(function(lr){return!vo.includes(lr.value)});if(fo)ho=fo.value;else return null}return ni=Ci(st,ni,!oi||!sr?$i:$i+12,wr,ho),ni};return ui}function dr(je){var $e=je.prefixCls,st=je.units,nn=je.onSelect,hn=je.value,In=je.active,Zn=je.hideDisabledOptions,oi=je.info,ui=je.type,Mi="".concat($e,"-cell"),sr=Pe.useContext(xt),Ei=sr.open,_i=(0,Pe.useRef)(null),bi=(0,Pe.useRef)(new Map),xr=(0,Pe.useRef)();return(0,Pe.useLayoutEffect)(function(){var ni=bi.current.get(hn);ni&&Ei!==!1&&Yr(_i.current,ni.offsetTop,120)},[hn]),(0,Pe.useLayoutEffect)(function(){if(Ei){var ni=bi.current.get(hn);ni&&(xr.current=Fr(ni,function(){Yr(_i.current,ni.offsetTop,0)}))}return function(){var $i;($i=xr.current)===null||$i===void 0||$i.call(xr)}},[Ei]),Pe.createElement("ul",{className:kt()("".concat($e,"-column"),(0,yt.Z)({},"".concat($e,"-column-active"),In)),ref:_i,style:{position:"relative"}},st.map(function(ni){var $i;return Zn&&ni.disabled?null:Pe.createElement("li",{key:ni.value,ref:function(ho){bi.current.set(ni.value,ho)},className:kt()(Mi,($i={},(0,yt.Z)($i,"".concat(Mi,"-disabled"),ni.disabled),(0,yt.Z)($i,"".concat(Mi,"-selected"),hn===ni.value),$i)),onClick:function(){ni.disabled||nn(ni.value)}},oi.cellRender?oi.cellRender(ni.value,{today:oi.today,locale:oi.locale,originNode:Pe.createElement("div",{className:"".concat(Mi,"-inner")},ni.label),type:"time",subType:ui}):Pe.createElement("div",{className:"".concat(Mi,"-inner")},ni.label))}))}var Nr=dr;function Ti(je,$e){if(je.length!==$e.length)return!0;for(var st=0;st<je.length;st+=1)if(je[st].disabled!==$e[st].disabled)return!0;return!1}function Qi(je,$e,st,nn){for(var hn=[],In=st>=1?st|0:1,Zn=je;Zn<=$e;Zn+=In)hn.push({label:Bt(Zn,2),value:Zn,disabled:(nn||[]).includes(Zn)});return hn}function er(je){var $e=je.generateConfig,st=je.prefixCls,nn=je.operationRef,hn=je.activeColumnIndex,In=je.value,Zn=je.showHour,oi=je.showMinute,ui=je.showSecond,Mi=je.use12Hours,sr=je.hourStep,Ei=sr===void 0?1:sr,_i=je.minuteStep,bi=_i===void 0?1:_i,xr=je.secondStep,ni=xr===void 0?1:xr,$i=je.disabledHours,wr=je.disabledMinutes,ho=je.disabledSeconds,io=je.disabledTime,mo=je.hideDisabledOptions,vo=je.onSelect,fo=je.cellRender,lr=je.locale,aa=[],ea="".concat(st,"-content"),Sa="".concat(st,"-time-panel"),Ka,Ha=In?$e.getHour(In):-1,Ba=Ha,fs=In?$e.getMinute(In):-1,La=In?$e.getSecond(In):-1,Ca=$e.getNow(),Ta=Pe.useMemo(function(){if(io){var ii=io(Ca);return[ii.disabledHours,ii.disabledMinutes,ii.disabledSeconds]}return[$i,wr,ho]},[$i,wr,ho,io,Ca]),as=(0,bn.Z)(Ta,3),gs=as[0],Ja=as[1],Oa=as[2],Rs=Qi(0,23,Ei,gs&&gs()),hl=(0,tn.Z)(function(){return Rs},Rs,Ti);Mi&&(Ka=Ba>=12,Ba%=12);var it=Pe.useMemo(function(){if(!Mi)return[!1,!1];var ii=[!0,!0];return hl.forEach(function(yi){var Ji=yi.disabled,Ui=yi.value;Ji||(Ui>=12?ii[1]=!1:ii[0]=!1)}),ii},[Mi,hl]),ut=(0,bn.Z)(it,2),Jt=ut[0],en=ut[1],An=Pe.useMemo(function(){return Mi?hl.filter(Ka?function(ii){return ii.value>=12}:function(ii){return ii.value<12}).map(function(ii){var yi=ii.value%12,Ji=yi===0?"12":Bt(yi,2);return(0,Jn.Z)((0,Jn.Z)({},ii),{},{label:Ji,value:yi})}):hl},[Mi,Ka,hl]),gn=Qi(0,59,bi,Ja&&Ja(Ha)),Xn=Qi(0,59,ni,Oa&&Oa(Ha,fs)),Yn=Er({value:In,generateConfig:$e,disabledMinutes:Ja,disabledSeconds:Oa,minutes:gn,seconds:Xn,use12Hours:Mi});nn.current={onUpDown:function(yi){var Ji=aa[hn];if(Ji)for(var Ui=Ji.units.findIndex(function(Ar){return Ar.value===Ji.value}),zi=Ji.units.length,yr=1;yr<zi;yr+=1){var Ki=Ji.units[(Ui+yi*yr+zi)%zi];if(Ki.disabled!==!0){Ji.onSelect(Ki.value);break}}}};function Vn(ii,yi,Ji,Ui,zi){ii!==!1&&aa.push({node:Pe.cloneElement(yi,{prefixCls:Sa,value:Ji,active:hn===aa.length,onSelect:zi,units:Ui,hideDisabledOptions:mo}),onSelect:zi,value:Ji,units:Ui})}Vn(Zn,Pe.createElement(Nr,{key:"hour",type:"hour",info:{today:Ca,locale:lr,cellRender:fo}}),Ba,An,function(ii){vo(Yn(Ka,ii,fs,La),"mouse")}),Vn(oi,Pe.createElement(Nr,{key:"minute",type:"minute",info:{today:Ca,locale:lr,cellRender:fo}}),fs,gn,function(ii){vo(Yn(Ka,Ba,ii,La),"mouse")}),Vn(ui,Pe.createElement(Nr,{key:"second",type:"second",info:{today:Ca,locale:lr,cellRender:fo}}),La,Xn,function(ii){vo(Yn(Ka,Ba,fs,ii),"mouse")});var Pi=-1;return typeof Ka=="boolean"&&(Pi=Ka?1:0),Vn(Mi===!0,Pe.createElement(Nr,{key:"meridiem",type:"meridiem",info:{today:Ca,locale:lr,cellRender:fo}}),Pi,[{label:"AM",value:0,disabled:Jt},{label:"PM",value:1,disabled:en}],function(ii){vo(Yn(!!ii,Ba,fs,La),"mouse")}),Pe.createElement("div",{className:ea},aa.map(function(ii){var yi=ii.node;return yi}))}var kn=er,Dr=function($e){return $e.filter(function(st){return st!==!1}).length};function Ln(je){var $e=je.generateConfig,st=je.format,nn=st===void 0?"HH:mm:ss":st,hn=je.prefixCls,In=je.active,Zn=je.operationRef,oi=je.showHour,ui=je.showMinute,Mi=je.showSecond,sr=je.use12Hours,Ei=sr===void 0?!1:sr,_i=je.onSelect,bi=je.value,xr="".concat(hn,"-time-panel"),ni=Pe.useRef(),$i=Pe.useState(-1),wr=(0,bn.Z)($i,2),ho=wr[0],io=wr[1],mo=Dr([oi,ui,Mi,Ei]);return Zn.current={onKeyDown:function(fo){return Kr(fo,{onLeftRight:function(aa){io((ho+aa+mo)%mo)},onUpDown:function(aa){ho===-1?io(0):ni.current&&ni.current.onUpDown(aa)},onEnter:function(){_i(bi||$e.getNow(),"key"),io(-1)}})},onBlur:function(){io(-1)}},Pe.createElement("div",{className:kt()(xr,(0,yt.Z)({},"".concat(xr,"-active"),In))},Pe.createElement(Hi,(0,Fe.Z)({},je,{format:nn,prefixCls:hn})),Pe.createElement(kn,(0,Fe.Z)({},je,{prefixCls:hn,activeColumnIndex:ho,operationRef:ni})))}var pr=Ln,Qr=jn("date","time");function vr(je){var $e=je.prefixCls,st=je.operationRef,nn=je.generateConfig,hn=je.value,In=je.defaultValue,Zn=je.disabledTime,oi=je.showTime,ui=je.onSelect,Mi=je.cellRender,sr="".concat($e,"-datetime-panel"),Ei=Pe.useState(null),_i=(0,bn.Z)(Ei,2),bi=_i[0],xr=_i[1],ni=Pe.useRef({}),$i=Pe.useRef({}),wr=(0,Ye.Z)(oi)==="object"?(0,Jn.Z)({},oi):{};function ho(fo){var lr=Qr.indexOf(bi)+fo,aa=Qr[lr]||null;return aa}var io=function(lr){$i.current.onBlur&&$i.current.onBlur(lr),xr(null)};st.current={onKeyDown:function(lr){if(lr.which===Mn.Z.TAB){var aa=ho(lr.shiftKey?-1:1);return xr(aa),aa&&lr.preventDefault(),!0}if(bi){var ea=bi==="date"?ni:$i;return ea.current&&ea.current.onKeyDown&&ea.current.onKeyDown(lr),!0}return[Mn.Z.LEFT,Mn.Z.RIGHT,Mn.Z.UP,Mn.Z.DOWN].includes(lr.which)?(xr("date"),!0):!1},onBlur:io,onClose:io};var mo=function(lr,aa){var ea=lr;aa==="date"&&!hn&&wr.defaultValue?(ea=nn.setHour(ea,nn.getHour(wr.defaultValue)),ea=nn.setMinute(ea,nn.getMinute(wr.defaultValue)),ea=nn.setSecond(ea,nn.getSecond(wr.defaultValue))):aa==="time"&&!hn&&In&&(ea=nn.setYear(ea,nn.getYear(In)),ea=nn.setMonth(ea,nn.getMonth(In)),ea=nn.setDate(ea,nn.getDate(In))),ui&&ui(ea,"mouse")},vo=Zn?Zn(hn||null):{};return Pe.createElement("div",{className:kt()(sr,(0,yt.Z)({},"".concat(sr,"-active"),bi))},Pe.createElement(Li,(0,Fe.Z)({},je,{cellRender:Mi,operationRef:ni,active:bi==="date",onSelect:function(lr){mo(Si(nn,lr,!hn&&(0,Ye.Z)(oi)==="object"?oi.defaultValue:null),"date")}})),Pe.createElement(pr,(0,Fe.Z)({},je,{cellRender:Mi?function(fo,lr){return Mi(fo,(0,Jn.Z)((0,Jn.Z)({},lr),{},{type:"time"}))}:void 0,format:void 0},wr,vo,{disabledTime:null,defaultValue:void 0,operationRef:$i,active:bi==="time",onSelect:function(lr){mo(lr,"time")}})))}var Ho=vr;function co(je){var $e=je.prefixCls,st=je.generateConfig,nn=je.viewDate,hn=je.onPrevDecades,In=je.onNextDecades,Zn=Pe.useContext(xt),oi=Zn.hideHeader;if(oi)return null;var ui="".concat($e,"-header"),Mi=st.getYear(nn),sr=Math.floor(Mi/Je)*Je,Ei=sr+Je-1;return Pe.createElement(Ai,(0,Fe.Z)({},je,{prefixCls:ui,onSuperPrev:hn,onSuperNext:In}),sr,"-",Ei)}var mr=co,hr=3,fr=4;function Vr(je){var $e=ft-1,st=je.prefixCls,nn=je.viewDate,hn=je.generateConfig,In=je.cellRender,Zn=je.locale,oi="".concat(st,"-cell"),ui=hn.getYear(nn),Mi=Math.floor(ui/ft)*ft,sr=Math.floor(ui/Je)*Je,Ei=sr+Je-1,_i=hn.setYear(nn,sr-Math.ceil((hr*fr*ft-Je)/2)),bi=function($i){var wr,ho=hn.getYear($i),io=ho+$e;return wr={},(0,yt.Z)(wr,"".concat(oi,"-in-view"),sr<=ho&&io<=Ei),(0,yt.Z)(wr,"".concat(oi,"-selected"),ho===Mi),wr},xr=In?function(ni,$i){return In(ni,{originNode:$i,today:hn.getNow(),type:"decade",locale:Zn})}:void 0;return Pe.createElement(xi,(0,Fe.Z)({},je,{rowNum:fr,colNum:hr,baseDate:_i,getCellNode:xr,getCellText:function($i){var wr=hn.getYear($i);return"".concat(wr,"-").concat(wr+$e)},getCellClassName:bi,getCellDate:function($i,wr){return hn.addYear($i,wr*ft)}}))}var Ii=Vr;function Qe(je){var $e=je.prefixCls,st=je.onViewDateChange,nn=je.generateConfig,hn=je.viewDate,In=je.operationRef,Zn=je.onSelect,oi=je.onPanelChange,ui="".concat($e,"-decade-panel");In.current={onKeyDown:function(_i){return Kr(_i,{onLeftRight:function(xr){Zn(nn.addYear(hn,xr*ft),"key")},onCtrlLeftRight:function(xr){Zn(nn.addYear(hn,xr*Je),"key")},onUpDown:function(xr){Zn(nn.addYear(hn,xr*ft*hr),"key")},onEnter:function(){oi("year",hn)}})}};var Mi=function(_i){var bi=nn.addYear(hn,_i*Je);st(bi),oi(null,bi)},sr=function(_i){Zn(_i,"mouse"),oi("year",_i)};return Pe.createElement("div",{className:ui},Pe.createElement(mr,(0,Fe.Z)({},je,{prefixCls:$e,onPrevDecades:function(){Mi(-1)},onNextDecades:function(){Mi(1)}})),Pe.createElement(Ii,(0,Fe.Z)({},je,{prefixCls:$e,onSelect:sr})))}var pt=Qe;function It(je){var $e=je.prefixCls,st=je.generateConfig,nn=je.locale,hn=je.viewDate,In=je.onNextYear,Zn=je.onPrevYear,oi=je.onYearClick,ui=Pe.useContext(xt),Mi=ui.hideHeader;if(Mi)return null;var sr="".concat($e,"-header");return Pe.createElement(Ai,(0,Fe.Z)({},je,{prefixCls:sr,onSuperPrev:Zn,onSuperNext:In}),Pe.createElement("button",{type:"button",onClick:oi,className:"".concat($e,"-year-btn")},vn(hn,{locale:nn,format:nn.yearFormat,generateConfig:st})))}var sn=It,Hn=3,On=4;function Wt(je){var $e=je.prefixCls,st=je.locale,nn=je.value,hn=je.viewDate,In=je.generateConfig,Zn=je.cellRender,oi=Pe.useContext(Sn),ui=oi.rangedValue,Mi=oi.hoverRangedValue,sr="".concat($e,"-cell"),Ei=Un({cellPrefixCls:sr,value:nn,generateConfig:In,rangedValue:ui,hoverRangedValue:Mi,isSameCell:function($i,wr){return pe(In,$i,wr)},isInView:function(){return!0},offsetCell:function($i,wr){return In.addMonth($i,wr)}}),_i=st.shortMonths||(In.locale.getShortMonths?In.locale.getShortMonths(st.locale):[]),bi=In.setMonth(hn,0),xr=Zn?function(ni,$i){return Zn(ni,{originNode:$i,locale:st,today:In.getNow(),type:"month"})}:void 0;return Pe.createElement(xi,(0,Fe.Z)({},je,{rowNum:On,colNum:Hn,baseDate:bi,getCellNode:xr,getCellText:function($i){return st.monthFormat?vn($i,{locale:st,format:st.monthFormat,generateConfig:In}):_i[In.getMonth($i)]},getCellClassName:Ei,getCellDate:In.addMonth,titleCell:function($i){return vn($i,{locale:st,format:"YYYY-MM",generateConfig:In})}}))}var Nn=Wt;function ai(je){var $e=je.prefixCls,st=je.operationRef,nn=je.onViewDateChange,hn=je.generateConfig,In=je.value,Zn=je.viewDate,oi=je.onPanelChange,ui=je.onSelect,Mi="".concat($e,"-month-panel");st.current={onKeyDown:function(_i){return Kr(_i,{onLeftRight:function(xr){ui(hn.addMonth(In||Zn,xr),"key")},onCtrlLeftRight:function(xr){ui(hn.addYear(In||Zn,xr),"key")},onUpDown:function(xr){ui(hn.addMonth(In||Zn,xr*Hn),"key")},onEnter:function(){oi("date",In||Zn)}})}};var sr=function(_i){var bi=hn.addYear(Zn,_i);nn(bi),oi(null,bi)};return Pe.createElement("div",{className:Mi},Pe.createElement(sn,(0,Fe.Z)({},je,{prefixCls:$e,onPrevYear:function(){sr(-1)},onNextYear:function(){sr(1)},onYearClick:function(){oi("year",Zn)}})),Pe.createElement(Nn,(0,Fe.Z)({},je,{prefixCls:$e,onSelect:function(_i){ui(_i,"mouse"),oi("date",_i)}})))}var qn=ai;function Oi(je){var $e=je.prefixCls,st=je.generateConfig,nn=je.locale,hn=je.viewDate,In=je.onNextYear,Zn=je.onPrevYear,oi=je.onYearClick,ui=Pe.useContext(xt),Mi=ui.hideHeader;if(Mi)return null;var sr="".concat($e,"-header");return Pe.createElement(Ai,(0,Fe.Z)({},je,{prefixCls:sr,onSuperPrev:Zn,onSuperNext:In}),Pe.createElement("button",{type:"button",onClick:oi,className:"".concat($e,"-year-btn")},vn(hn,{locale:nn,format:nn.yearFormat,generateConfig:st})))}var Bi=Oi,pi=4,Gi=1;function zn(je){var $e=je.prefixCls,st=je.locale,nn=je.value,hn=je.viewDate,In=je.generateConfig,Zn=je.cellRender,oi=Pe.useContext(Sn),ui=oi.rangedValue,Mi=oi.hoverRangedValue,sr="".concat($e,"-cell"),Ei=Un({cellPrefixCls:sr,value:nn,generateConfig:In,rangedValue:ui,hoverRangedValue:Mi,isSameCell:function(ni,$i){return we(In,ni,$i)},isInView:function(){return!0},offsetCell:function(ni,$i){return In.addMonth(ni,$i*3)}}),_i=In.setDate(In.setMonth(hn,0),1),bi=Zn?function(xr,ni){return Zn(xr,{originNode:ni,locale:st,today:In.getNow(),type:"quarter"})}:void 0;return Pe.createElement(xi,(0,Fe.Z)({},je,{rowNum:Gi,colNum:pi,baseDate:_i,getCellNode:bi,getCellText:function(ni){return vn(ni,{locale:st,format:st.quarterFormat||"[Q]Q",generateConfig:In})},getCellClassName:Ei,getCellDate:function(ni,$i){return In.addMonth(ni,$i*3)},titleCell:function(ni){return vn(ni,{locale:st,format:"YYYY-[Q]Q",generateConfig:In})}}))}var _r=zn;function Gr(je){var $e=je.prefixCls,st=je.operationRef,nn=je.onViewDateChange,hn=je.generateConfig,In=je.value,Zn=je.viewDate,oi=je.onPanelChange,ui=je.onSelect,Mi="".concat($e,"-quarter-panel");st.current={onKeyDown:function(_i){return Kr(_i,{onLeftRight:function(xr){ui(hn.addMonth(In||Zn,xr*3),"key")},onCtrlLeftRight:function(xr){ui(hn.addYear(In||Zn,xr),"key")},onUpDown:function(xr){ui(hn.addYear(In||Zn,xr),"key")}})}};var sr=function(_i){var bi=hn.addYear(Zn,_i);nn(bi),oi(null,bi)};return Pe.createElement("div",{className:Mi},Pe.createElement(Bi,(0,Fe.Z)({},je,{prefixCls:$e,onPrevYear:function(){sr(-1)},onNextYear:function(){sr(1)},onYearClick:function(){oi("year",Zn)}})),Pe.createElement(_r,(0,Fe.Z)({},je,{prefixCls:$e,onSelect:function(_i){ui(_i,"mouse")}})))}var Ao=Gr;function qr(je){var $e=je.prefixCls,st=je.generateConfig,nn=je.locale,hn=je.value,In=je.disabledDate,Zn=je.onSelect,oi=Pe.useContext(Sn),ui=oi.rangedValue,Mi=oi.hoverRangedValue,sr=Pe.useContext(xt),Ei=sr.onDateMouseEnter,_i=sr.onDateMouseLeave,bi=(Mi==null?void 0:Mi[0])||(ui==null?void 0:ui[0]),xr=(Mi==null?void 0:Mi[1])||(ui==null?void 0:ui[1]),ni="".concat($e,"-cell"),$i=function(mo){var vo=wi({cellDate:mo,mode:"week",disabledDate:In,generateConfig:st});return Pe.createElement("td",{key:"week",className:kt()(ni,"".concat(ni,"-week")),onClick:function(){vo||Zn(mo,"mouse")},onMouseEnter:function(){!vo&&Ei&&Ei(mo)},onMouseLeave:function(){!vo&&_i&&_i(mo)}},Pe.createElement("div",{className:"".concat(ni,"-inner")},st.locale.getWeek(nn.locale,mo)))},wr="".concat($e,"-week-panel-row"),ho=function(mo){var vo,fo=Le(st,nn.locale,bi,mo),lr=Le(st,nn.locale,xr,mo);return kt()(wr,(vo={},(0,yt.Z)(vo,"".concat(wr,"-selected"),!ui&&Le(st,nn.locale,hn,mo)),(0,yt.Z)(vo,"".concat(wr,"-range-start"),fo),(0,yt.Z)(vo,"".concat(wr,"-range-end"),lr),(0,yt.Z)(vo,"".concat(wr,"-range-hover"),!fo&&!lr&&Ut(st,bi,xr,mo)),vo))};return Pe.createElement(Li,(0,Fe.Z)({},je,{panelName:"week",prefixColumn:$i,rowClassName:ho,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var $r=qr,to=10;function $o(je){var $e=je.prefixCls,st=je.generateConfig,nn=je.viewDate,hn=je.onPrevDecade,In=je.onNextDecade,Zn=je.onDecadeClick,oi=Pe.useContext(xt),ui=oi.hideHeader;if(ui)return null;var Mi="".concat($e,"-header"),sr=st.getYear(nn),Ei=Math.floor(sr/to)*to,_i=Ei+to-1;return Pe.createElement(Ai,(0,Fe.Z)({},je,{prefixCls:Mi,onSuperPrev:hn,onSuperNext:In}),Pe.createElement("button",{type:"button",onClick:Zn,className:"".concat($e,"-decade-btn")},Ei,"-",_i))}var Qo=$o,pa=3,qo=4;function Cn(je){var $e=je.prefixCls,st=je.value,nn=je.viewDate,hn=je.locale,In=je.generateConfig,Zn=je.cellRender,oi=Pe.useContext(Sn),ui=oi.rangedValue,Mi=oi.hoverRangedValue,sr="".concat($e,"-cell"),Ei=In.getYear(nn),_i=Math.floor(Ei/to)*to,bi=_i+to-1,xr=In.setYear(nn,_i-Math.ceil((pa*qo-to)/2)),ni=In.getNow(),$i=function(mo){var vo=In.getYear(mo);return _i<=vo&&vo<=bi},wr=Un({cellPrefixCls:sr,value:st,generateConfig:In,rangedValue:ui,hoverRangedValue:Mi,isSameCell:function(mo,vo){return Ge(In,mo,vo)},isInView:$i,offsetCell:function(mo,vo){return In.addYear(mo,vo)}}),ho=Zn?function(io,mo){return Zn(io,{originNode:mo,today:ni,type:"year",locale:hn})}:void 0;return Pe.createElement(xi,(0,Fe.Z)({},je,{rowNum:qo,colNum:pa,baseDate:xr,getCellNode:ho,getCellText:In.getYear,getCellClassName:wr,getCellDate:In.addYear,titleCell:function(mo){return vn(mo,{locale:hn,format:"YYYY",generateConfig:In})}}))}var ca=Cn;function es(je){var $e=je.prefixCls,st=je.operationRef,nn=je.onViewDateChange,hn=je.generateConfig,In=je.value,Zn=je.viewDate,oi=je.sourceMode,ui=je.onSelect,Mi=je.onPanelChange,sr="".concat($e,"-year-panel");st.current={onKeyDown:function(bi){return Kr(bi,{onLeftRight:function(ni){ui(hn.addYear(In||Zn,ni),"key")},onCtrlLeftRight:function(ni){ui(hn.addYear(In||Zn,ni*to),"key")},onUpDown:function(ni){ui(hn.addYear(In||Zn,ni*pa),"key")},onEnter:function(){Mi(oi==="date"?"date":"month",In||Zn)}})}};var Ei=function(bi){var xr=hn.addYear(Zn,bi*10);nn(xr),Mi(null,xr)};return Pe.createElement("div",{className:sr},Pe.createElement(Qo,(0,Fe.Z)({},je,{prefixCls:$e,onPrevDecade:function(){Ei(-1)},onNextDecade:function(){Ei(1)},onDecadeClick:function(){Mi("decade",Zn)}})),Pe.createElement(ca,(0,Fe.Z)({},je,{prefixCls:$e,onSelect:function(bi){Mi(oi==="date"?"date":"month",bi),ui(bi,"mouse")}})))}var ts=es;function Ga(je,$e,st){return st?Pe.createElement("div",{className:"".concat(je,"-footer-extra")},st($e)):null}function Ds(je){var $e=je.prefixCls,st=je.components,nn=st===void 0?{}:st,hn=je.needConfirmButton,In=je.onNow,Zn=je.onOk,oi=je.okDisabled,ui=je.showNow,Mi=je.locale,sr,Ei;if(hn){var _i=nn.button||"button";In&&ui!==!1&&(sr=Pe.createElement("li",{className:"".concat($e,"-now")},Pe.createElement("a",{className:"".concat($e,"-now-btn"),onClick:In},Mi.now))),Ei=hn&&Pe.createElement("li",{className:"".concat($e,"-ok")},Pe.createElement(_i,{disabled:oi,onClick:Zn},Mi.ok))}return!sr&&!Ei?null:Pe.createElement("ul",{className:"".concat($e,"-ranges")},sr,Ei)}var pl=["date","month"];function ma(je){var $e,st=je,nn=st.prefixCls,hn=nn===void 0?"rc-picker":nn,In=st.className,Zn=st.style,oi=st.locale,ui=st.generateConfig,Mi=st.value,sr=st.defaultValue,Ei=st.pickerValue,_i=st.defaultPickerValue,bi=st.disabledDate,xr=st.mode,ni=st.picker,$i=ni===void 0?"date":ni,wr=st.tabIndex,ho=wr===void 0?0:wr,io=st.showNow,mo=st.showTime,vo=st.showToday,fo=st.renderExtraFooter,lr=st.hideHeader,aa=st.onSelect,ea=st.onChange,Sa=st.onPanelChange,Ka=st.onMouseDown,Ha=st.onPickerValueChange,Ba=st.onOk,fs=st.components,La=st.direction,Ca=st.hourStep,Ta=Ca===void 0?1:Ca,as=st.minuteStep,gs=as===void 0?1:as,Ja=st.secondStep,Oa=Ja===void 0?1:Ja,Rs=st.dateRender,hl=st.monthCellRender,it=st.cellRender,ut=$i==="date"&&!!mo||$i==="time",Jt=24%Ta===0,en=60%gs===0,An=60%Oa===0,gn=Pe.useContext(xt),Xn=gn.operationRef,Yn=gn.onSelect,Vn=gn.hideRanges,Pi=gn.defaultOpenValue,ii=Pe.useContext(Sn),yi=ii.inRange,Ji=ii.panelPosition,Ui=ii.rangedValue,zi=ii.hoverRangedValue,yr=Pe.useRef({}),Ki=Pe.useRef(!0),Ar=(0,ci.Z)(null,{value:Mi,defaultValue:sr,postState:function(qi){return!qi&&Pi&&$i==="time"?Pi:qi}}),Pr=(0,bn.Z)(Ar,2),Br=Pr[0],yo=Pr[1],Lo=(0,ci.Z)(null,{value:Ei,defaultValue:_i||Br,postState:function(qi){var Zr=ui.getNow();if(!qi)return Zr;if(!Br&&mo){var Uo=(0,Ye.Z)(mo)==="object"?mo.defaultValue:sr;return Si(ui,Array.isArray(qi)?qi[0]:qi,Uo||Zr)}return Array.isArray(qi)?qi[0]:qi}}),zr=(0,bn.Z)(Lo,2),eo=zr[0],Ko=zr[1],Or=function(qi){Ko(qi),Ha&&Ha(qi)},so=function(qi){var Zr=on[$i];return Zr?Zr(qi):qi},jr=(0,ci.Z)(function(){return $i==="time"?"time":so("date")},{value:xr}),gr=(0,bn.Z)(jr,2),Lr=gr[0],lo=gr[1];Pe.useEffect(function(){lo($i)},[$i]);var Mo=Pe.useState(function(){return Lr}),No=(0,bn.Z)(Mo,2),Mr=No[0],Vo=No[1],_o=function(qi,Zr){var Uo=so(qi||Lr);Vo(Lr),lo(Uo),Sa&&(Lr!==Uo||nt(ui,eo,eo))&&Sa(Zr,Uo)},na=function(qi,Zr){var Uo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Lr===$i||Uo)&&(yo(qi),aa&&aa(qi),Yn&&Yn(qi,Zr),ea&&!nt(ui,qi,Br)&&!(bi!=null&&bi(qi))&&ea(qi))},ta=function(qi){if(pl.includes(Lr)){var Zr,Uo,sa=Lr==="date";switch(qi===Mn.Z.PAGE_UP||qi===Mn.Z.PAGE_DOWN?Uo=sa?ui.addMonth:ui.addYear:Uo=sa?ui.addDate:ui.addMonth,qi){case Mn.Z.LEFT:case Mn.Z.PAGE_UP:Zr=Uo(eo,-1);break;case Mn.Z.RIGHT:case Mn.Z.PAGE_DOWN:Zr=Uo(eo,1);break;case Mn.Z.UP:case Mn.Z.DOWN:Zr=Uo(eo,Number("".concat(qi===Mn.Z.UP?"-":"").concat(sa?Gt:Hn)));break}if(Zr)return!(bi!=null&&bi(Zr))}return!0},Qa=function(qi){if(yr.current&&yr.current.onKeyDown){var Zr=!0,Uo=qi.which;if([Mn.Z.LEFT,Mn.Z.RIGHT,Mn.Z.UP,Mn.Z.DOWN,Mn.Z.PAGE_UP,Mn.Z.PAGE_DOWN,Mn.Z.ENTER].includes(Uo)&&(qi.preventDefault(),Uo!==Mn.Z.ENTER&&ho===0&&(Zr=ta(Uo))),Zr)return yr.current.onKeyDown(qi)}return(0,He.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},fa=function(qi){yr.current&&yr.current.onBlur&&yr.current.onBlur(qi)};Xn&&Ji!=="right"&&(Xn.current={onKeyDown:Qa,onClose:function(){yr.current&&yr.current.onClose&&yr.current.onClose()}}),Pe.useEffect(function(){Mi&&!Ki.current&&Ko(Mi)},[Mi]),Pe.useEffect(function(){Ki.current=!1},[]);var Wo,wo=an({cellRender:it,monthCellRender:hl,dateRender:Rs}),To=(0,Jn.Z)((0,Jn.Z)({},je),{},{cellRender:wo,operationRef:yr,prefixCls:hn,viewDate:eo,value:Br,onViewDateChange:Or,sourceMode:Mr,onPanelChange:_o,disabledDate:bi});switch(delete To.onChange,delete To.onSelect,Lr){case"decade":Wo=Pe.createElement(pt,(0,Fe.Z)({},To,{onSelect:function(qi,Zr){Or(qi),na(qi,Zr)}}));break;case"year":Wo=Pe.createElement(ts,(0,Fe.Z)({},To,{onSelect:function(qi,Zr){Or(qi),na(qi,Zr)}}));break;case"month":Wo=Pe.createElement(qn,(0,Fe.Z)({},To,{onSelect:function(qi,Zr){Or(qi),na(qi,Zr)}}));break;case"quarter":Wo=Pe.createElement(Ao,(0,Fe.Z)({},To,{onSelect:function(qi,Zr){Or(qi),na(qi,Zr)}}));break;case"week":Wo=Pe.createElement($r,(0,Fe.Z)({},To,{onSelect:function(qi,Zr){Or(qi),na(qi,Zr)}}));break;case"time":delete To.showTime,Wo=Pe.createElement(pr,(0,Fe.Z)({},To,(0,Ye.Z)(mo)==="object"?mo:null,{onSelect:function(qi,Zr){Or(qi),na(qi,Zr)}}));break;default:mo?Wo=Pe.createElement(Ho,(0,Fe.Z)({},To,{onSelect:function(qi,Zr){Or(qi),na(qi,Zr)}})):Wo=Pe.createElement(Li,(0,Fe.Z)({},To,{onSelect:function(qi,Zr){Or(qi),na(qi,Zr)}}))}var Ya,Ia,ns=function(){var qi=ui.getNow(),Zr=vi(ui.getHour(qi),ui.getMinute(qi),ui.getSecond(qi),Jt?Ta:1,en?gs:1,An?Oa:1),Uo=Ci(ui,qi,Zr[0],Zr[1],Zr[2]);na(Uo,"submit")};Vn||(Ya=Ga(hn,Lr,fo),mo&&Lr!=="date"?Ia=null:Ia=Ds({prefixCls:hn,components:fs,needConfirmButton:ut,okDisabled:!Br||bi&&bi(Br),locale:oi,showNow:io,onNow:ut&&ns,onOk:function(){Br&&(na(Br,"submit",!0),Ba&&Ba(Br))}}));var Ro;if(vo&&Lr==="date"&&$i==="date"&&!mo){var bo=ui.getNow(),Zo="".concat(hn,"-today-btn"),xo=bi&&bi(bo);Ro=Pe.createElement("a",{className:kt()(Zo,xo&&"".concat(Zo,"-disabled")),"aria-disabled":xo,onClick:function(){xo||na(bo,"mouse",!0)}},oi.today)}return Pe.createElement(xt.Provider,{value:(0,Jn.Z)((0,Jn.Z)({},gn),{},{mode:Lr,hideHeader:"hideHeader"in je?lr:gn.hideHeader,hidePrevBtn:yi&&Ji==="right",hideNextBtn:yi&&Ji==="left"})},Pe.createElement("div",{tabIndex:ho,className:kt()("".concat(hn,"-panel"),In,($e={},(0,yt.Z)($e,"".concat(hn,"-panel-has-range"),Ui&&Ui[0]&&Ui[1]),(0,yt.Z)($e,"".concat(hn,"-panel-has-range-hover"),zi&&zi[0]&&zi[1]),(0,yt.Z)($e,"".concat(hn,"-panel-rtl"),La==="rtl"),$e)),style:Zn,onKeyDown:Qa,onBlur:fa,onMouseDown:Ka},Wo,Ya||Ia||Ro?Pe.createElement("div",{className:"".concat(hn,"-footer")},Ya,Ia,Ro):null))}var Fo=ma,Oo=ye(35593),Pa={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 no(je){var $e,st=je.prefixCls,nn=je.popupElement,hn=je.popupStyle,In=je.visible,Zn=je.dropdownClassName,oi=je.dropdownAlign,ui=je.transitionName,Mi=je.getPopupContainer,sr=je.children,Ei=je.range,_i=je.popupPlacement,bi=je.direction,xr="".concat(st,"-dropdown"),ni=function(){return _i!==void 0?_i:bi==="rtl"?"bottomRight":"bottomLeft"};return Pe.createElement(Oo.Z,{showAction:[],hideAction:[],popupPlacement:ni(),builtinPlacements:Pa,prefixCls:xr,popupTransitionName:ui,popup:nn,popupAlign:oi,popupVisible:In,popupClassName:kt()(Zn,($e={},(0,yt.Z)($e,"".concat(xr,"-range"),Ei),(0,yt.Z)($e,"".concat(xr,"-rtl"),bi==="rtl"),$e)),popupStyle:hn,getPopupContainer:Mi},sr)}var ko=no;function oo(je){var $e=je.prefixCls,st=je.presets,nn=je.onClick,hn=je.onHover;return st.length?Pe.createElement("div",{className:"".concat($e,"-presets")},Pe.createElement("ul",null,st.map(function(In,Zn){var oi=In.label,ui=In.value;return Pe.createElement("li",{key:Zn,onClick:function(){return nn==null?void 0:nn(Qn(ui))},onMouseEnter:function(){return hn==null?void 0:hn(Qn(ui))},onMouseLeave:function(){return hn==null?void 0:hn(null)}},oi)}))):null}function Vi(je){var $e=je.picker,st=je.disabledHours,nn=je.disabledMinutes,hn=je.disabledSeconds;$e==="time"&&(st||nn||hn)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function ha(je,$e,st){var nn=(0,Ye.Z)($e)==="object"?$e.clearIcon:st;return nn||Pe.createElement("span",{className:"".concat(je,"-clear-btn")})}function Na(je){var $e,st=je,nn=st.prefixCls,hn=nn===void 0?"rc-picker":nn,In=st.id,Zn=st.name,oi=st.tabIndex,ui=st.style,Mi=st.className,sr=st.dropdownClassName,Ei=st.dropdownAlign,_i=st.popupStyle,bi=st.transitionName,xr=st.generateConfig,ni=st.locale,$i=st.inputReadOnly,wr=st.allowClear,ho=st.autoFocus,io=st.showTime,mo=st.picker,vo=mo===void 0?"date":mo,fo=st.format,lr=st.use12Hours,aa=st.value,ea=st.defaultValue,Sa=st.presets,Ka=st.open,Ha=st.defaultOpen,Ba=st.defaultOpenValue,fs=st.suffixIcon,La=st.clearIcon,Ca=st.disabled,Ta=st.disabledDate,as=st.placeholder,gs=st.getPopupContainer,Ja=st.pickerRef,Oa=st.panelRender,Rs=st.onChange,hl=st.onOpenChange,it=st.onFocus,ut=st.onBlur,Jt=st.onMouseDown,en=st.onMouseUp,An=st.onMouseEnter,gn=st.onMouseLeave,Xn=st.onContextMenu,Yn=st.onClick,Vn=st.onKeyDown,Pi=st.onSelect,ii=st.direction,yi=st.autoComplete,Ji=yi===void 0?"off":yi,Ui=st.inputRender,zi=st.changeOnBlur,yr=Pe.useRef(null),Ki=vo==="date"&&!!io||vo==="time",Ar=bt(Sa),Pr=cn(ar(fo,vo,io,lr)),Br=Pe.useRef(null),yo=Pe.useRef(null),Lo=Pe.useRef(null),zr=(0,ci.Z)(null,{value:aa,defaultValue:ea}),eo=(0,bn.Z)(zr,2),Ko=eo[0],Or=eo[1],so=Pe.useState(Ko),jr=(0,bn.Z)(so,2),gr=jr[0],Lr=jr[1],lo=Pe.useRef(null),Mo=(0,ci.Z)(!1,{value:Ka,defaultValue:Ha,postState:function(zo){return Ca?!1:zo},onChange:function(zo){hl&&hl(zo),!zo&&lo.current&&lo.current.onClose&&lo.current.onClose()}}),No=(0,bn.Z)(Mo,2),Mr=No[0],Vo=No[1],_o=Ri(gr,{formatList:Pr,generateConfig:xr,locale:ni}),na=(0,bn.Z)(_o,2),ta=na[0],Qa=na[1],fa=qt({valueTexts:ta,onTextChange:function(zo){var Ms=mi(zo,{locale:ni,formatList:Pr,generateConfig:xr});Ms&&(!Ta||!Ta(Ms))&&Lr(Ms)}}),Wo=(0,bn.Z)(fa,3),wo=Wo[0],To=Wo[1],Ya=Wo[2],Ia=function(zo){Lr(zo),Or(zo),Rs&&!nt(xr,Ko,zo)&&Rs(zo,zo?vn(zo,{generateConfig:xr,locale:ni,format:Pr[0]}):"")},ns=function(zo){Ca&&zo||Vo(zo)},Ro=function(zo){return Mr&&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),yr.current&&(yr.current.focus(),ns(!0))},Zo=function(zo){zi&&Ia(gr),ut==null||ut(zo)},xo=Pt({blurToCancel:Ki,open:Mr,value:wo,triggerOpen:ns,forwardKeyDown:Ro,isClickOutside:function(zo){return!mt([Br.current,yo.current,Lo.current],zo)},onSubmit:function(){return!gr||Ta&&Ta(gr)?!1:(Ia(gr),ns(!1),Ya(),!0)},onCancel:function(){ns(!1),Lr(Ko),Ya()},onKeyDown:function(zo,Ms){Vn==null||Vn(zo,Ms)},onFocus:it,onBlur:Zo,changeOnBlur:zi}),ao=(0,bn.Z)(xo,2),qi=ao[0],Zr=ao[1],Uo=Zr.focused,sa=Zr.typing;Pe.useEffect(function(){Mr||(Lr(Ko),!ta.length||ta[0]===""?To(""):Qa!==wo&&Ya())},[Mr,ta]),Pe.useEffect(function(){Mr||Ya()},[vo]),Pe.useEffect(function(){Lr(Ko)},[Ko]),Ja&&(Ja.current={focus:function(){var zo;(zo=yr.current)===null||zo===void 0||zo.focus()},blur:function(){var zo;(zo=yr.current)===null||zo===void 0||zo.blur()}});var al=Wi(wo,{formatList:Pr,generateConfig:xr,locale:ni}),zs=(0,bn.Z)(al,3),Al=zs[0],ka=zs[1],Ua=zs[2],Do=(0,Jn.Z)((0,Jn.Z)({},je),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Vs=Pe.createElement("div",{className:"".concat(hn,"-panel-layout")},Pe.createElement(oo,{prefixCls:hn,presets:Ar,onClick:function(zo){Ia(zo),ns(!1)}}),Pe.createElement(Fo,(0,Fe.Z)({},Do,{generateConfig:xr,className:kt()((0,yt.Z)({},"".concat(hn,"-panel-focused"),!sa)),value:gr,locale:ni,tabIndex:-1,onSelect:function(zo){Pi==null||Pi(zo),Lr(zo)},direction:ii,onPanelChange:function(zo,Ms){var Ys=je.onPanelChange;Ua(!0),Ys==null||Ys(zo,Ms)}})));Oa&&(Vs=Oa(Vs));var Ll=Pe.createElement("div",{className:"".concat(hn,"-panel-container"),ref:Br,onMouseDown:function(zo){zo.preventDefault()}},Vs),Wa;fs&&(Wa=Pe.createElement("span",{className:"".concat(hn,"-suffix"),onMouseDown:function(zo){zo.preventDefault()}},fs));var _a=ha(hn,wr,La),is=Pe.createElement("span",{onMouseDown:function(zo){zo.preventDefault(),zo.stopPropagation()},onMouseUp:function(zo){zo.preventDefault(),zo.stopPropagation(),Ia(null),ns(!1)},className:"".concat(hn,"-clear"),role:"button"},_a),bs=!!wr&&Ko&&!Ca,Gs=(0,Jn.Z)((0,Jn.Z)((0,Jn.Z)({id:In,tabIndex:oi,disabled:Ca,readOnly:$i||typeof Pr[0]=="function"||!sa,value:Al||wo,onChange:function(zo){To(zo.target.value)},autoFocus:ho,placeholder:as,ref:yr,title:wo},qi),{},{size:Co(vo,Pr[0],xr),name:Zn},(0,Tn.Z)(je,{aria:!0,data:!0})),{},{autoComplete:Ji}),xa=Ui?Ui(Gs):Pe.createElement("input",Gs),ss=function(zo,Ms){(Ms==="submit"||Ms!=="key"&&!Ki)&&(Ia(zo),ns(!1))},Js=ii==="rtl"?"bottomRight":"bottomLeft";return Pe.createElement(xt.Provider,{value:{operationRef:lo,hideHeader:vo==="time",onSelect:ss,open:Mr,defaultOpenValue:Ba,onDateMouseEnter:ka,onDateMouseLeave:Ua}},Pe.createElement(ko,{visible:Mr,popupElement:Ll,popupStyle:_i,prefixCls:hn,dropdownClassName:sr,dropdownAlign:Ei,getPopupContainer:gs,transitionName:bi,popupPlacement:Js,direction:ii},Pe.createElement("div",{ref:Lo,className:kt()(hn,Mi,($e={},(0,yt.Z)($e,"".concat(hn,"-disabled"),Ca),(0,yt.Z)($e,"".concat(hn,"-focused"),Uo),(0,yt.Z)($e,"".concat(hn,"-rtl"),ii==="rtl"),$e)),style:ui,onMouseDown:Jt,onMouseUp:en,onMouseEnter:An,onMouseLeave:gn,onContextMenu:Xn,onClick:bo},Pe.createElement("div",{className:kt()("".concat(hn,"-input"),(0,yt.Z)({},"".concat(hn,"-input-placeholder"),!!Al)),ref:yo},xa,Wa,bs&&is))))}var Bs=function(je){(0,wn.Z)(st,je);var $e=(0,Kn.Z)(st);function st(){var nn;(0,_t.Z)(this,st);for(var hn=arguments.length,In=new Array(hn),Zn=0;Zn<hn;Zn++)In[Zn]=arguments[Zn];return nn=$e.call.apply($e,[this].concat(In)),(0,yt.Z)((0,Bn.Z)(nn),"pickerRef",Pe.createRef()),(0,yt.Z)((0,Bn.Z)(nn),"focus",function(){nn.pickerRef.current&&nn.pickerRef.current.focus()}),(0,yt.Z)((0,Bn.Z)(nn),"blur",function(){nn.pickerRef.current&&nn.pickerRef.current.blur()}),nn}return(0,ln.Z)(st,[{key:"render",value:function(){return Pe.createElement(Na,(0,Fe.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),st}(Pe.Component),ys=Bs;function nl(je,$e){var st=je.picker,nn=je.locale,hn=je.selectedValue,In=je.disabledDate,Zn=je.disabled,oi=je.generateConfig,ui=Et(hn,0),Mi=Et(hn,1);function sr(ni){return oi.locale.getWeekFirstDate(nn.locale,ni)}function Ei(ni){var $i=oi.getYear(ni),wr=oi.getMonth(ni);return $i*100+wr}function _i(ni){var $i=oi.getYear(ni),wr=Be(oi,ni);return $i*10+wr}var bi=Pe.useCallback(function(ni){if(Zn[0]||In&&In(ni))return!0;if(Zn[1]&&Mi)return!De(oi,ni,Mi)&&oi.isAfter(ni,Mi);if(!$e&&Mi)switch(st){case"quarter":return _i(ni)>_i(Mi);case"month":return Ei(ni)>Ei(Mi);case"week":return sr(ni)>sr(Mi);default:return!De(oi,ni,Mi)&&oi.isAfter(ni,Mi)}return!1},[In,Zn[1],Mi,$e]),xr=Pe.useCallback(function(ni){if(Zn[1]||In&&In(ni))return!0;if(Zn[0]&&ui)return!De(oi,ni,Mi)&&oi.isAfter(ui,ni);if(!$e&&ui)switch(st){case"quarter":return _i(ni)<_i(ui);case"month":return Ei(ni)<Ei(ui);case"week":return sr(ni)<sr(ui);default:return!De(oi,ni,ui)&&oi.isAfter(ui,ni)}return!1},[In,Zn[0],ui,$e]);return[bi,xr]}var Yi=ye(80764),Da=ye(8107);function ga(je,$e,st,nn,hn,In,Zn,oi,ui,Mi){var sr=Pe.useState(!1),Ei=(0,bn.Z)(sr,2),_i=Ei[0],bi=Ei[1],xr=(0,Yi.useMergedState)(je||!1,{value:$e}),ni=(0,bn.Z)(xr,2),$i=ni[0],wr=ni[1],ho=(0,Yi.useMergedState)(je||!1,{value:$e,onChange:function(Ta){Mi==null||Mi(Ta)}}),io=(0,bn.Z)(ho,2),mo=io[0],vo=io[1],fo=(0,Yi.useMergedState)(0,{value:st}),lr=(0,bn.Z)(fo,2),aa=lr[0],ea=lr[1],Sa=Pe.useState(null),Ka=(0,bn.Z)(Sa,2),Ha=Ka[0],Ba=Ka[1];Pe.useEffect(function(){mo&&bi(!0)},[mo]);var fs=function(Ta){return Ta===0?1:0},La=(0,Da.Z)(function(Ca,Ta,as){if(Ta===!1)vo(Ca);else if(Ca){ea(Ta),vo(Ca);var gs=fs(Ta);!mo||![Zn,oi][gs]?Ba(gs):(bi(!1),Ha!==null&&Ba(null))}else if(as==="confirm"||as==="blur"&&nn){var Ja=$i?fs(Ta):Ha;Ja!==null&&(bi(!1),ea(Ja)),Ba(null),Ja!==null&&!ui[Ja]?(0,nr.Z)(function(){var Oa,Rs=[hn,In][Ja];(Oa=Rs.current)===null||Oa===void 0||Oa.focus()}):vo(!1)}else vo(!1),wr(!1)});return[mo,aa,_i,La]}function Is(je,$e,st,nn){var hn=rn(je,st,nn,1);function In(Zn){return Zn(je,$e)?"same":Zn(hn,$e)?"closing":"far"}switch(st){case"year":return In(function(Zn,oi){return lt(nn,Zn,oi)});case"quarter":case"month":return In(function(Zn,oi){return Ge(nn,Zn,oi)});default:return In(function(Zn,oi){return pe(nn,Zn,oi)})}}function ml(je,$e,st,nn){var hn=Et(je,0),In=Et(je,1);if($e===0)return hn;if(hn&&In){var Zn=Is(hn,In,st,nn);switch(Zn){case"same":return hn;case"closing":return hn;default:return rn(In,st,nn,-1)}}return hn}function Gl(je){var $e=je.values,st=je.picker,nn=je.defaultDates,hn=je.generateConfig,In=Pe.useState(function(){return[Et(nn,0),Et(nn,1)]}),Zn=(0,bn.Z)(In,2),oi=Zn[0],ui=Zn[1],Mi=Pe.useState(null),sr=(0,bn.Z)(Mi,2),Ei=sr[0],_i=sr[1],bi=Et($e,0),xr=Et($e,1);function ni(wr){return oi[wr]?oi[wr]:Et(Ei,wr)||ml($e,wr,st,hn)||bi||xr||hn.getNow()}function $i(wr,ho){if(wr){var io=xn(Ei,wr,ho);ui(xn(oi,null,ho)||[null,null]);var mo=(ho+1)%2;Et($e,mo)||(io=xn(io,wr,mo)),_i(io)}else(bi||xr)&&_i(null)}return[ni,$i]}function So(je,$e){return je&&je[0]&&je[1]&&$e.isAfter(je[0],je[1])?[je[1],je[0]]:je}function Au(je,$e,st,nn){return!!(je||nn&&nn[$e]||st[($e+1)%2])}function il(je){var $e,st,nn,hn=je,In=hn.prefixCls,Zn=In===void 0?"rc-picker":In,oi=hn.id,ui=hn.style,Mi=hn.className,sr=hn.popupStyle,Ei=hn.dropdownClassName,_i=hn.transitionName,bi=hn.dropdownAlign,xr=hn.getPopupContainer,ni=hn.generateConfig,$i=hn.locale,wr=hn.placeholder,ho=hn.autoFocus,io=hn.disabled,mo=hn.format,vo=hn.picker,fo=vo===void 0?"date":vo,lr=hn.showTime,aa=hn.use12Hours,ea=hn.separator,Sa=ea===void 0?"~":ea,Ka=hn.value,Ha=hn.defaultValue,Ba=hn.defaultPickerValue,fs=hn.open,La=hn.defaultOpen,Ca=hn.disabledDate,Ta=hn.disabledTime,as=hn.dateRender,gs=hn.monthCellRender,Ja=hn.cellRender,Oa=hn.panelRender,Rs=hn.presets,hl=hn.ranges,it=hn.allowEmpty,ut=hn.allowClear,Jt=hn.suffixIcon,en=hn.clearIcon,An=hn.pickerRef,gn=hn.inputReadOnly,Xn=hn.mode,Yn=hn.renderExtraFooter,Vn=hn.onChange,Pi=hn.onOpenChange,ii=hn.onPanelChange,yi=hn.onCalendarChange,Ji=hn.onFocus,Ui=hn.onBlur,zi=hn.onMouseDown,yr=hn.onMouseUp,Ki=hn.onMouseEnter,Ar=hn.onMouseLeave,Pr=hn.onClick,Br=hn.onOk,yo=hn.onKeyDown,Lo=hn.components,zr=hn.order,eo=hn.direction,Ko=hn.activePickerIndex,Or=hn.autoComplete,so=Or===void 0?"off":Or,jr=hn.changeOnBlur,gr=fo==="date"&&!!lr||fo==="time",Lr=(0,Pe.useRef)(null),lo=(0,Pe.useRef)(null),Mo=(0,Pe.useRef)(null),No=(0,Pe.useRef)(null),Mr=(0,Pe.useRef)(null),Vo=(0,Pe.useRef)(null),_o=(0,Pe.useRef)(null),na=(0,Pe.useRef)(null),ta=cn(ar(mo,fo,lr,aa)),Qa=(0,Pe.useRef)(null),fa=Pe.useMemo(function(){return Array.isArray(io)?io:[io||!1,io||!1]},[io]),Wo=(0,ci.Z)(null,{value:Ka,defaultValue:Ha,postState:function(Go){return fo==="time"&&!zr?Go:So(Go,ni)}}),wo=(0,bn.Z)(Wo,2),To=wo[0],Ya=wo[1],Ia=Gl({values:To,picker:fo,defaultDates:Ba,generateConfig:ni}),ns=(0,bn.Z)(Ia,2),Ro=ns[0],bo=ns[1],Zo=(0,ci.Z)(To,{postState:function(Go){var la=Go;if(fa[0]&&fa[1])return la;for(var rs=0;rs<2;rs+=1)fa[rs]&&!la&&!Et(la,rs)&&!Et(it,rs)&&(la=xn(la,ni.getNow(),rs));return la}}),xo=(0,bn.Z)(Zo,2),ao=xo[0],qi=xo[1],Zr=(0,ci.Z)([fo,fo],{value:Xn}),Uo=(0,bn.Z)(Zr,2),sa=Uo[0],al=Uo[1];(0,Pe.useEffect)(function(){al([fo,fo])},[fo]);var zs=function(Go,la){al(Go),ii&&ii(la,Go)},Al=ga(La,fs,Ko,jr,Vo,_o,Et(ao,0),Et(ao,1),fa,Pi),ka=(0,bn.Z)(Al,4),Ua=ka[0],Do=ka[1],Vs=ka[2],Ll=ka[3],Wa=Ua&&Do===0,_a=Ua&&Do===1,is=nl({picker:fo,selectedValue:ao,locale:$i,disabled:fa,disabledDate:Ca,generateConfig:ni},!Ua||Vs),bs=(0,bn.Z)(is,2),Gs=bs[0],xa=bs[1],ss=(0,Pe.useState)(0),Js=(0,bn.Z)(ss,2),Xa=Js[0],zo=Js[1];(0,Pe.useEffect)(function(){!Ua&&Lr.current&&zo(Lr.current.offsetWidth)},[Ua]);function Ms(us){Ll(!0,us,"open"),(0,nr.Z)(function(){var Go,la=[Vo,_o][us];(Go=la.current)===null||Go===void 0||Go.focus()},0)}function Ys(us,Go){var la=us,rs=Et(la,0),ll=Et(la,1);rs&&ll&&ni.isAfter(rs,ll)&&(fo==="week"&&!Le(ni,$i.locale,rs,ll)||fo==="quarter"&&!we(ni,rs,ll)||fo!=="week"&&fo!=="quarter"&&fo!=="time"&&!De(ni,rs,ll)?Go===0?(la=[rs,null],ll=null):(rs=null,la=[null,ll]):(fo!=="time"||zr!==!1)&&(la=So(la,ni))),qi(la);var md=la&&la[0]?vn(la[0],{generateConfig:ni,locale:$i,format:ta[0]}):"",tu=la&&la[1]?vn(la[1],{generateConfig:ni,locale:$i,format:ta[0]}):"";if(yi){var td={range:Go===0?"start":"end"};yi(la,[md,tu],td)}var Ac=Au(rs,0,fa,it),ph=Au(ll,1,fa,it),nd=la===null||Ac&&ph;nd&&(Ya(la),Vn&&(!nt(ni,Et(To,0),rs)||!nt(ni,Et(To,1),ll))&&Vn(la,[md,tu]))}var Wu=function(Go){return Ua&&Qa.current&&Qa.current.onKeyDown?Qa.current.onKeyDown(Go):((0,He.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},vu={formatList:ta,generateConfig:ni,locale:$i},$a=Ri(Et(ao,0),vu),Ml=(0,bn.Z)($a,2),Ps=Ml[0],ps=Ml[1],ku=Ri(Et(ao,1),vu),Cc=(0,bn.Z)(ku,2),ql=Cc[0],ac=Cc[1],sc=function(Go,la){var rs=mi(Go,{locale:$i,formatList:ta,generateConfig:ni}),ll=la===0?Gs:xa;rs&&!ll(rs)&&(qi(xn(ao,rs,la)),bo(rs,la))},yu=qt({valueTexts:Ps,onTextChange:function(Go){return sc(Go,0)}}),Ra=(0,bn.Z)(yu,3),ls=Ra[0],Qs=Ra[1],ms=Ra[2],za=qt({valueTexts:ql,onTextChange:function(Go){return sc(Go,1)}}),_s=(0,bn.Z)(za,3),Rl=_s[0],Zu=_s[1],uh=_s[2],pn=(0,Pe.useState)(null),Rc=(0,bn.Z)(pn,2),bc=Rc[0],jh=Rc[1],bd=(0,Pe.useState)(null),_c=(0,bn.Z)(bd,2),zc=_c[0],gf=_c[1],Nl=Wi(ls,{formatList:ta,generateConfig:ni,locale:$i}),fd=(0,bn.Z)(Nl,3),Wd=fd[0],Zd=fd[1],Kd=fd[2],pf=Wi(Rl,{formatList:ta,generateConfig:ni,locale:$i}),Vd=(0,bn.Z)(pf,3),Gd=Vd[0],Nu=Vd[1],$c=Vd[2],Hh=function(Go){gf(xn(ao,Go,Do)),Do===0?Zd(Go):Nu(Go)},lc=function(){gf(xn(ao,null,Do)),Do===0?Kd():$c()},qc=Pe.useState(Ua),gd=(0,bn.Z)(qc,2),pd=gd[0],eu=gd[1];Pe.useEffect(function(){eu(Ua)},[Ua]);var ch=function(Go){if(jr&&pd){var la=Et(ao,Do);la&&Ys(ao,Do)}return Ui==null?void 0:Ui(Go)},Yd=function(Go,la){return{blurToCancel:!jr&&gr,forwardKeyDown:Wu,onBlur:ch,isClickOutside:function(ll){return!mt([lo.current,Mo.current,No.current,Lr.current],ll)},onFocus:function(ll){Ji&&Ji(ll)},triggerOpen:function(ll){ll?Ll(ll,Go,"open"):Ll(ll,Et(ao,Go)?Go:!1,"blur")},onSubmit:function(){if(!ao||Ca&&Ca(ao[Go]))return!1;Ys(ao,Go),la(),Ll(!1,Do,"confirm")},onCancel:function(){Ll(!1,Go,"cancel"),qi(To),la()}}},Su={onKeyDown:function(Go,la){yo==null||yo(Go,la)},changeOnBlur:jr},Ed=Pt((0,Jn.Z)((0,Jn.Z)({},Yd(0,ms)),{},{open:Wa,value:ls},Su)),Ud=(0,bn.Z)(Ed,2),dh=Ud[0],jc=Ud[1],Hl=jc.focused,Xd=jc.typing,sl=Pt((0,Jn.Z)((0,Jn.Z)({},Yd(1,uh)),{},{open:_a,value:Rl},Su)),Va=(0,bn.Z)(sl,2),Es=Va[0],Dl=Va[1],Du=Dl.focused,Bu=Dl.typing,hh=function(Go){Pr&&Pr(Go),!Ua&&!Vo.current.contains(Go.target)&&!_o.current.contains(Go.target)&&(fa[0]?fa[1]||Ms(1):Ms(0))},ed=function(Go){zi&&zi(Go),Ua&&(Hl||Du)&&!Vo.current.contains(Go.target)&&!_o.current.contains(Go.target)&&Go.preventDefault()},Jd=To&&To[0]?vn(To[0],{locale:$i,format:"YYYYMMDDHHmmss",generateConfig:ni}):"",Qu=To&&To[1]?vn(To[1],{locale:$i,format:"YYYYMMDDHHmmss",generateConfig:ni}):"";(0,Pe.useEffect)(function(){Ua||(qi(To),!Ps.length||Ps[0]===""?Qs(""):ps!==ls&&ms(),!ql.length||ql[0]===""?Zu(""):ac!==Rl&&uh())},[Ua,Ps,ql]),(0,Pe.useEffect)(function(){qi(To)},[Jd,Qu]);var uc=an({cellRender:Ja,monthCellRender:gs,dateRender:as}),mf=Pe.useMemo(function(){if(uc)return function(us,Go){return uc(us,(0,Jn.Z)((0,Jn.Z)({},Go),{},{range:Do?"end":"start"}))}},[Do,uc]);An&&(An.current={focus:function(){Vo.current&&Vo.current.focus()},blur:function(){Vo.current&&Vo.current.blur(),_o.current&&_o.current.blur()}});var vf=bt(Rs,hl);function fh(){var us=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},la=null;Ua&&zc&&zc[0]&&zc[1]&&ni.isAfter(zc[1],zc[0])&&(la=zc);var rs=lr;if(lr&&(0,Ye.Z)(lr)==="object"&&lr.defaultValue){var ll=lr.defaultValue;rs=(0,Jn.Z)((0,Jn.Z)({},lr),{},{defaultValue:Et(ll,Do)||void 0})}return Pe.createElement(Sn.Provider,{value:{inRange:!0,panelPosition:us,rangedValue:bc||ao,hoverRangedValue:la}},Pe.createElement(Fo,(0,Fe.Z)({},je,Go,{cellRender:mf,showTime:rs,mode:sa[Do],generateConfig:ni,style:void 0,direction:eo,disabledDate:Do===0?Gs:xa,disabledTime:function(tu){return Ta?Ta(tu,Do===0?"start":"end"):!1},className:kt()((0,yt.Z)({},"".concat(Zn,"-panel-focused"),Do===0?!Xd:!Bu)),value:Et(ao,Do),locale:$i,tabIndex:-1,onPanelChange:function(tu,td){Do===0&&Kd(!0),Do===1&&$c(!0),zs(xn(sa,td,Do),xn(ao,tu,Do));var Ac=tu;us==="right"&&sa[Do]===td&&(Ac=rn(Ac,td,ni,-1)),bo(Ac,Do)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Do===0?Et(ao,1):Et(ao,0)})))}var _u=0,yf=0;if(Do&&Mo.current&&Mr.current&&lo.current&&na.current){_u=Mo.current.offsetWidth+Mr.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-(eo==="rtl"?0:Kf)&&(yf=_u)}var wg=eo==="rtl"?{right:_u}:{left:_u};function Vf(){var us,Go=Ga(Zn,sa[Do],Yn),la=Ds({prefixCls:Zn,components:Lo,needConfirmButton:gr,okDisabled:!Et(ao,Do)||Ca&&Ca(ao[Do]),locale:$i,onOk:function(){var Lc=Et(ao,Do);Lc&&(Ys(ao,Do),Br==null||Br(ao),Ll(!1,Do,"confirm"))}});if(fo!=="time"&&!lr){var rs=Ro(Do),ll=rn(rs,fo,ni),md=sa[Do],tu=md===fo,td=fh(tu?"left":!1,{pickerValue:rs,onPickerValueChange:function(Lc){bo(Lc,Do)}}),Ac=fh("right",{pickerValue:ll,onPickerValueChange:function(Lc){bo(rn(Lc,fo,ni,-1),Do)}});eo==="rtl"?us=Pe.createElement(Pe.Fragment,null,Ac,tu&&td):us=Pe.createElement(Pe.Fragment,null,td,tu&&Ac)}else us=fh();var ph=Pe.createElement("div",{className:"".concat(Zn,"-panel-layout")},Pe.createElement(oo,{prefixCls:Zn,presets:vf,onClick:function(Lc){Ys(Lc,null),Ll(!1,Do,"preset")},onHover:function(Lc){jh(Lc)}}),Pe.createElement("div",null,Pe.createElement("div",{className:"".concat(Zn,"-panels")},us),(Go||la)&&Pe.createElement("div",{className:"".concat(Zn,"-footer")},Go,la)));return Oa&&(ph=Oa(ph)),Pe.createElement("div",{className:"".concat(Zn,"-panel-container"),style:{marginLeft:yf},ref:lo,onMouseDown:function(Lc){Lc.preventDefault()}},ph)}var gh=Pe.createElement("div",{className:kt()("".concat(Zn,"-range-wrapper"),"".concat(Zn,"-").concat(fo,"-range-wrapper")),style:{minWidth:Xa}},Pe.createElement("div",{ref:na,className:"".concat(Zn,"-range-arrow"),style:wg}),Vf()),Ad;Jt&&(Ad=Pe.createElement("span",{className:"".concat(Zn,"-suffix"),onMouseDown:function(Go){Go.preventDefault()}},Jt));var Gf=ha(Zn,ut,en),Hc=Pe.createElement("span",{onMouseDown:function(Go){Go.preventDefault(),Go.stopPropagation()},onMouseUp:function(Go){Go.preventDefault(),Go.stopPropagation();var la=To;fa[0]||(la=xn(la,null,0)),fa[1]||(la=xn(la,null,1)),Ys(la,null),Ll(!1,Do,"clear")},className:"".concat(Zn,"-clear"),role:"button"},Gf),Yf=ut&&(Et(To,0)&&!fa[0]||Et(To,1)&&!fa[1]),Wh={size:Co(fo,ta[0],ni)},xf=0,Zh=0;Mo.current&&No.current&&Mr.current&&(Do===0?Zh=Mo.current.offsetWidth:(xf=_u,Zh=No.current.offsetWidth));var Uf=eo==="rtl"?{right:xf}:{left:xf},up=function(Go,la){var rs=xn(ao,Go,Do);if(la==="submit"||la!=="key"&&!gr){Ys(rs,Do),Do===0?Kd():$c();var ll=Do===0?1:0;fa[ll]?Ll(!1,!1,"confirm"):Ll(!1,Do,"confirm")}else qi(rs)};return Pe.createElement(xt.Provider,{value:{operationRef:Qa,hideHeader:fo==="time",onDateMouseEnter:Hh,onDateMouseLeave:lc,hideRanges:!0,onSelect:up,open:Ua}},Pe.createElement(ko,{visible:Ua,popupElement:gh,popupStyle:sr,prefixCls:Zn,dropdownClassName:Ei,dropdownAlign:bi,getPopupContainer:xr,transitionName:_i,range:!0,direction:eo},Pe.createElement("div",(0,Fe.Z)({ref:Lr,className:kt()(Zn,"".concat(Zn,"-range"),Mi,($e={},(0,yt.Z)($e,"".concat(Zn,"-disabled"),fa[0]&&fa[1]),(0,yt.Z)($e,"".concat(Zn,"-focused"),Do===0?Hl:Du),(0,yt.Z)($e,"".concat(Zn,"-rtl"),eo==="rtl"),$e)),style:ui,onClick:hh,onMouseEnter:Ki,onMouseLeave:Ar,onMouseDown:ed,onMouseUp:yr},(0,Tn.Z)(je,{aria:!0,data:!0})),Pe.createElement("div",{className:kt()("".concat(Zn,"-input"),(st={},(0,yt.Z)(st,"".concat(Zn,"-input-active"),Do===0),(0,yt.Z)(st,"".concat(Zn,"-input-placeholder"),!!Wd),st)),ref:Mo},Pe.createElement("input",(0,Fe.Z)({id:oi,disabled:fa[0],readOnly:gn||typeof ta[0]=="function"||!Xd,value:Wd||ls,onChange:function(Go){Qs(Go.target.value)},autoFocus:ho,placeholder:Et(wr,0)||"",ref:Vo},dh,Wh,{autoComplete:so}))),Pe.createElement("div",{className:"".concat(Zn,"-range-separator"),ref:Mr},Sa),Pe.createElement("div",{className:kt()("".concat(Zn,"-input"),(nn={},(0,yt.Z)(nn,"".concat(Zn,"-input-active"),Do===1),(0,yt.Z)(nn,"".concat(Zn,"-input-placeholder"),!!Gd),nn)),ref:No},Pe.createElement("input",(0,Fe.Z)({disabled:fa[1],readOnly:gn||typeof ta[0]=="function"||!Bu,value:Gd||Rl,onChange:function(Go){Zu(Go.target.value)},placeholder:Et(wr,1)||"",ref:_o},Es,Wh,{autoComplete:so}))),Pe.createElement("div",{className:"".concat(Zn,"-active-bar"),style:(0,Jn.Z)((0,Jn.Z)({},Uf),{},{width:Zh,position:"absolute"})}),Ad,Yf&&Hc)))}var kl=function(je){(0,wn.Z)(st,je);var $e=(0,Kn.Z)(st);function st(){var nn;(0,_t.Z)(this,st);for(var hn=arguments.length,In=new Array(hn),Zn=0;Zn<hn;Zn++)In[Zn]=arguments[Zn];return nn=$e.call.apply($e,[this].concat(In)),(0,yt.Z)((0,Bn.Z)(nn),"pickerRef",Pe.createRef()),(0,yt.Z)((0,Bn.Z)(nn),"focus",function(){nn.pickerRef.current&&nn.pickerRef.current.focus()}),(0,yt.Z)((0,Bn.Z)(nn),"blur",function(){nn.pickerRef.current&&nn.pickerRef.current.blur()}),nn}return(0,ln.Z)(st,[{key:"render",value:function(){return Pe.createElement(il,(0,Fe.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),st}(Pe.Component),vl=kl,fu=ys,yl=ye(19080),rl=ye(36355),Sl=ye(1684),oc=ye(19716),Sc=ye(32441),xc=ye(9763),Qc=ye(33234),gu=ye(48183),zl=ye(64993),xl=ye(9937),Tl=ye(17313),pu=ye(47585),wc=ye(74207),mu=ye(13826),Xo=ye(92899),va=ye(37613),dl=ye(83116);const Cs=(je,$e,st,nn)=>{const{lineHeight:hn}=je,In=Math.floor(st*hn)+2,Zn=Math.max(($e-In)/2,0),oi=Math.max($e-In-Zn,0);return{padding:`${Zn}px ${nn}px ${oi}px`}},Ss=je=>{const{componentCls:$e,pickerCellCls:st,pickerCellInnerCls:nn,cellHeight:hn,motionDurationSlow:In,borderRadiusSM:Zn,motionDurationMid:oi,cellHoverBg:ui,lineWidth:Mi,lineType:sr,colorPrimary:Ei,cellActiveWithRangeBg:_i,colorTextLightSolid:bi,controlHeightSM:xr,cellRangeBorderColor:ni,pickerCellBorderGap:$i,cellHoverWithRangeBg:wr,cellWidth:ho,colorTextDisabled:io,cellBgDisabled:mo}=je;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:hn,transform:"translateY(-50%)",transition:`all ${In}`,content:'""'},[nn]:{position:"relative",zIndex:2,display:"inline-block",minWidth:hn,height:hn,lineHeight:`${hn}px`,borderRadius:Zn,transition:`background ${oi}, border ${oi}`},"&-range-hover-start, &-range-hover-end":{[nn]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${st}-in-view),
|
|
|
&:hover:not(${st}-selected):not(${st}-range-start):not(${st}-range-end):not(${st}-range-hover-start):not(${st}-range-hover-end)`]:{[nn]:{background:ui}},[`&-in-view${st}-today ${nn}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Mi}px ${sr} ${Ei}`,borderRadius:Zn,content:'""'}},[`&-in-view${st}-in-range`]:{position:"relative","&::before":{background:_i}},[`&-in-view${st}-selected ${nn},
|
|
|
&-in-view${st}-range-start ${nn},
|
|
|
&-in-view${st}-range-end ${nn}`]:{color:bi,background:Ei},[`&-in-view${st}-range-start:not(${st}-range-start-single),
|
|
|
&-in-view${st}-range-end:not(${st}-range-end-single)`]:{"&::before":{background:_i}},[`&-in-view${st}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${st}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${st}-range-hover-start:not(${st}-in-range):not(${st}-range-start):not(${st}-range-end),
|
|
|
&-in-view${st}-range-hover-end:not(${st}-in-range):not(${st}-range-start):not(${st}-range-end),
|
|
|
&-in-view${st}-range-hover-start${st}-range-start-single,
|
|
|
&-in-view${st}-range-hover-start${st}-range-start${st}-range-end${st}-range-end-near-hover,
|
|
|
&-in-view${st}-range-hover-end${st}-range-start${st}-range-end${st}-range-start-near-hover,
|
|
|
&-in-view${st}-range-hover-end${st}-range-end-single,
|
|
|
&-in-view${st}-range-hover:not(${st}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:xr,borderTop:`${Mi}px dashed ${ni}`,borderBottom:`${Mi}px dashed ${ni}`,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${st}-in-range${st}-range-hover::before,
|
|
|
&-in-view${st}-in-range${st}-range-hover-start::before,
|
|
|
&-in-view${st}-in-range${st}-range-hover-end::before,
|
|
|
&-in-view${st}-range-start${st}-range-hover::before,
|
|
|
&-in-view${st}-range-end${st}-range-hover::before,
|
|
|
&-in-view${st}-range-start:not(${st}-range-start-single)${st}-range-hover-start::before,
|
|
|
&-in-view${st}-range-end:not(${st}-range-end-single)${st}-range-hover-end::before,
|
|
|
${$e}-panel
|
|
|
> :not(${$e}-date-panel)
|
|
|
&-in-view${st}-in-range${st}-range-hover-start::before,
|
|
|
${$e}-panel
|
|
|
> :not(${$e}-date-panel)
|
|
|
&-in-view${st}-in-range${st}-range-hover-end::before`]:{background:wr},[`&-in-view${st}-range-start:not(${st}-range-start-single):not(${st}-range-end) ${nn}`]:{borderStartStartRadius:Zn,borderEndStartRadius:Zn,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${st}-range-end:not(${st}-range-end-single):not(${st}-range-start) ${nn}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Zn,borderEndEndRadius:Zn},[`&-range-hover${st}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${st}-range-hover:first-child::after,
|
|
|
tr > &-in-view${st}-range-hover-end:first-child::after,
|
|
|
&-in-view${st}-start${st}-range-hover-edge-start${st}-range-hover-edge-start-near-range::after,
|
|
|
&-in-view${st}-range-hover-edge-start:not(${st}-range-hover-edge-start-near-range)::after,
|
|
|
&-in-view${st}-range-hover-start::after`]:{insetInlineStart:(ho-hn)/2,borderInlineStart:`${Mi}px dashed ${ni}`,borderStartStartRadius:Zn,borderEndStartRadius:Zn},[`tr > &-in-view${st}-range-hover:last-child::after,
|
|
|
tr > &-in-view${st}-range-hover-start:last-child::after,
|
|
|
&-in-view${st}-end${st}-range-hover-edge-end${st}-range-hover-edge-end-near-range::after,
|
|
|
&-in-view${st}-range-hover-edge-end:not(${st}-range-hover-edge-end-near-range)::after,
|
|
|
&-in-view${st}-range-hover-end::after`]:{insetInlineEnd:(ho-hn)/2,borderInlineEnd:`${Mi}px dashed ${ni}`,borderStartEndRadius:Zn,borderEndEndRadius:Zn},"&-disabled":{color:io,pointerEvents:"none",[nn]:{background:"transparent"},"&::before":{background:mo}},[`&-disabled${st}-today ${nn}::before`]:{borderColor:io}}},os=je=>{const{componentCls:$e,pickerCellCls:st,pickerCellInnerCls:nn,pickerYearMonthCellWidth:hn,pickerControlIconSize:In,cellWidth:Zn,paddingSM:oi,paddingXS:ui,paddingXXS:Mi,colorBgContainer:sr,lineWidth:Ei,lineType:_i,borderRadiusLG:bi,colorPrimary:xr,colorTextHeading:ni,colorSplit:$i,pickerControlIconBorderWidth:wr,colorIcon:ho,textHeight:io,motionDurationMid:mo,colorIconHover:vo,fontWeightStrong:fo,cellHeight:lr,pickerCellPaddingVertical:aa,colorTextDisabled:ea,colorText:Sa,fontSize:Ka,cellHoverWithRangeBg:Ha,motionDurationSlow:Ba,withoutTimeCellHeight:fs,pickerQuarterPanelContentHeight:La,colorLink:Ca,colorLinkActive:Ta,colorLinkHover:as,cellRangeBorderColor:gs,borderRadiusSM:Ja,colorTextLightSolid:Oa,cellHoverBg:Rs,timeColumnHeight:hl,timeColumnWidth:it,timeCellHeight:ut,controlItemBgActive:Jt,marginXXS:en,pickerDatePanelPaddingHorizontal:An}=je,gn=Zn*7+An*2,Xn=(gn-ui*2)/3-hn-oi,Yn=(gn-ui*2)/4-hn;return{[$e]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:sr,border:`${Ei}px ${_i} ${$i}`,borderRadius:bi,outline:"none","&-focused":{borderColor:xr},"&-rtl":{direction:"rtl",[`${$e}-prev-icon,
|
|
|
${$e}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${$e}-next-icon,
|
|
|
${$e}-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:gn},"&-header":{display:"flex",padding:`0 ${ui}px`,color:ni,borderBottom:`${Ei}px ${_i} ${$i}`,"> *":{flex:"none"},button:{padding:0,color:ho,lineHeight:`${io}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${mo}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Ka,"&:hover":{color:vo}},"&-view":{flex:"auto",fontWeight:fo,lineHeight:`${io}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:ui},"&: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:lr,fontWeight:"normal"},th:{height:lr+aa*2,color:Sa,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${aa}px 0`,color:ea,cursor:"pointer","&-in-view":{color:Sa}},Ss(je)),[`&-date-panel ${$e}-cell-in-view${$e}-cell-in-range${$e}-cell-range-hover-start ${nn},
|
|
|
&-date-panel ${$e}-cell-in-view${$e}-cell-in-range${$e}-cell-range-hover-end ${nn}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Ha,transition:`all ${Ba}`,content:'""'}},[`&-date-panel
|
|
|
${$e}-cell-in-view${$e}-cell-in-range${$e}-cell-range-hover-start
|
|
|
${nn}::after`]:{insetInlineEnd:-(Zn-lr)/2,insetInlineStart:0},[`&-date-panel ${$e}-cell-in-view${$e}-cell-in-range${$e}-cell-range-hover-end ${nn}::after`]:{insetInlineEnd:0,insetInlineStart:-(Zn-lr)/2},[`&-range-hover${$e}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${$e}-content`]:{height:fs*4},[nn]:{padding:`0 ${ui}px`}},"&-quarter-panel":{[`${$e}-content`]:{height:La},[`${$e}-cell-range-hover-start::after`]:{insetInlineStart:Yn,borderInlineStart:`${Ei}px dashed ${gs}`,[`${$e}-panel-rtl &`]:{insetInlineEnd:Yn,borderInlineEnd:`${Ei}px dashed ${gs}`}},[`${$e}-cell-range-hover-end::after`]:{insetInlineEnd:Yn,borderInlineEnd:`${Ei}px dashed ${gs}`,[`${$e}-panel-rtl &`]:{insetInlineStart:Yn,borderInlineStart:`${Ei}px dashed ${gs}`}}},[`&-panel ${$e}-footer`]:{borderTop:`${Ei}px ${_i} ${$i}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${io-2*Ei}px`,textAlign:"center","&-extra":{padding:`0 ${oi}px`,lineHeight:`${io-2*Ei}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Ei}px ${_i} ${$i}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:Ca,"&:hover":{color:as},"&:active":{color:Ta},[`&${$e}-today-btn-disabled`]:{color:ea,cursor:"not-allowed"}},"&-decade-panel":{[nn]:{padding:`0 ${ui/2}px`},[`${$e}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${$e}-body`]:{padding:`0 ${ui}px`},[nn]:{width:hn},[`${$e}-cell-range-hover-start::after`]:{borderStartStartRadius:Ja,borderEndStartRadius:Ja,borderStartEndRadius:0,borderEndEndRadius:0,[`${$e}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ja,borderEndEndRadius:Ja}},[`${$e}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ja,borderEndEndRadius:Ja,[`${$e}-panel-rtl &`]:{borderStartStartRadius:Ja,borderEndStartRadius:Ja,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${$e}-cell-range-hover-start::after`]:{insetInlineStart:Xn,borderInlineStart:`${Ei}px dashed ${gs}`,[`${$e}-panel-rtl &`]:{insetInlineEnd:Xn,borderInlineEnd:`${Ei}px dashed ${gs}`}},[`${$e}-cell-range-hover-end::after`]:{insetInlineEnd:Xn,borderInlineEnd:`${Ei}px dashed ${gs}`,[`${$e}-panel-rtl &`]:{insetInlineStart:Xn,borderInlineStart:`${Ei}px dashed ${gs}`}}},"&-week-panel":{[`${$e}-body`]:{padding:`${ui}px ${oi}px`},[`${$e}-cell`]:{[`&:hover ${nn},
|
|
|
&-selected ${nn},
|
|
|
${nn}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${mo}`},"&:first-child:before":{borderStartStartRadius:Ja,borderEndStartRadius:Ja},"&:last-child:before":{borderStartEndRadius:Ja,borderEndEndRadius:Ja}},"&:hover td":{"&:before":{background:Rs}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${st}`]:{"&:before":{background:xr},[`&${$e}-cell-week`]:{color:new zl.C(Oa).setAlpha(.5).toHexString()},[nn]:{color:Oa}}},"&-range-hover td:before":{background:Jt}}},"&-date-panel":{[`${$e}-body`]:{padding:`${ui}px ${An}px`},[`${$e}-content`]:{width:Zn*7,th:{width:Zn,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${$e}-time-panel`]:{borderInlineStart:`${Ei}px ${_i} ${$i}`},[`${$e}-date-panel,
|
|
|
${$e}-time-panel`]:{transition:`opacity ${Ba}`},"&-active":{[`${$e}-date-panel,
|
|
|
${$e}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${$e}-content`]:{display:"flex",flex:"auto",height:hl},"&-column":{flex:"1 0 auto",width:it,margin:`${Mi}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${mo}`,overflowX:"hidden","&::after":{display:"block",height:hl-ut,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ei}px ${_i} ${$i}`},"&-active":{background:new zl.C(Jt).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${$e}-time-panel-cell`]:{marginInline:en,[`${$e}-time-panel-cell-inner`]:{display:"block",width:it-2*en,height:ut,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(it-ut)/2,color:Sa,lineHeight:`${ut}px`,borderRadius:Ja,cursor:"pointer",transition:`background ${mo}`,"&:hover":{background:Rs}},"&-selected":{[`${$e}-time-panel-cell-inner`]:{background:Jt}},"&-disabled":{[`${$e}-time-panel-cell-inner`]:{color:ea,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${$e}-time-panel-column:after`]:{height:hl-ut+Mi*2}}}},hs=je=>{const{componentCls:$e,colorBgContainer:st,colorError:nn,errorActiveShadow:hn,colorWarning:In,warningActiveShadow:Zn}=je;return{[`${$e}:not(${$e}-disabled)`]:{[`&${$e}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:st,borderColor:nn},[`&${$e}-focused, &:focus`]:Object.assign({},(0,xl.M1)((0,va.TS)(je,{activeBorderColor:nn,activeShadow:hn}))),[`${$e}-active-bar`]:{background:nn}},[`&${$e}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:st,borderColor:In},[`&${$e}-focused, &:focus`]:Object.assign({},(0,xl.M1)((0,va.TS)(je,{activeBorderColor:In,activeShadow:Zn}))),[`${$e}-active-bar`]:{background:In}}}}},Ls=je=>{const{componentCls:$e,antCls:st,controlHeight:nn,fontSize:hn,paddingInline:In,colorBgContainer:Zn,lineWidth:oi,lineType:ui,colorBorder:Mi,borderRadius:sr,motionDurationMid:Ei,colorBgContainerDisabled:_i,colorTextDisabled:bi,colorTextPlaceholder:xr,controlHeightLG:ni,fontSizeLG:$i,controlHeightSM:wr,paddingInlineSM:ho,paddingXS:io,marginXS:mo,colorTextDescription:vo,lineWidthBold:fo,lineHeight:lr,colorPrimary:aa,motionDurationSlow:ea,zIndexPopup:Sa,paddingXXS:Ka,paddingSM:Ha,textHeight:Ba,cellActiveWithRangeBg:fs,colorPrimaryBorder:La,sizePopupArrow:Ca,borderRadiusXS:Ta,borderRadiusOuter:as,colorBgElevated:gs,borderRadiusLG:Ja,boxShadowSecondary:Oa,borderRadiusSM:Rs,colorSplit:hl,cellHoverBg:it,presetsWidth:ut,presetsMaxWidth:Jt,boxShadowPopoverArrow:en,colorTextQuaternary:An}=je;return[{[$e]:Object.assign(Object.assign(Object.assign({},(0,Tl.Wf)(je)),Cs(je,nn,hn,In)),{position:"relative",display:"inline-flex",alignItems:"center",background:Zn,lineHeight:1,border:`${oi}px ${ui} ${Mi}`,borderRadius:sr,transition:`border ${Ei}, box-shadow ${Ei}`,"&:hover, &-focused":Object.assign({},(0,xl.pU)(je)),"&-focused":Object.assign({},(0,xl.M1)(je)),[`&${$e}-disabled`]:{background:_i,borderColor:Mi,cursor:"not-allowed",[`${$e}-suffix`]:{color:An}},[`&${$e}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${$e}-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":{[`${$e}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:xr}}},"&-large":Object.assign(Object.assign({},Cs(je,ni,$i,In)),{[`${$e}-input > input`]:{fontSize:$i}}),"&-small":Object.assign({},Cs(je,wr,hn,ho)),[`${$e}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:io/2,color:bi,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:mo}}},[`${$e}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:bi,lineHeight:1,background:Zn,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Ei}, color ${Ei}`,"> *":{verticalAlign:"top"},"&:hover":{color:vo}},[`${$e}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:$i,color:bi,fontSize:$i,verticalAlign:"top",cursor:"default",[`${$e}-focused &`]:{color:vo},[`${$e}-range-separator &`]:{[`${$e}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${$e}-clear`]:{insetInlineEnd:In},"&:hover":{[`${$e}-clear`]:{opacity:1}},[`${$e}-active-bar`]:{bottom:-oi,height:fo,marginInlineStart:In,background:aa,opacity:0,transition:`all ${ea} ease-out`,pointerEvents:"none"},[`&${$e}-focused`]:{[`${$e}-active-bar`]:{opacity:1}},[`${$e}-range-separator`]:{alignItems:"center",padding:`0 ${io}px`,lineHeight:1},[`&${$e}-small`]:{[`${$e}-clear`]:{insetInlineEnd:ho},[`${$e}-active-bar`]:{marginInlineStart:ho}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,Tl.Wf)(je)),os(je)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Sa,[`&${$e}-dropdown-hidden`]:{display:"none"},[`&${$e}-dropdown-placement-bottomLeft`]:{[`${$e}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${$e}-dropdown-placement-topLeft`]:{[`${$e}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${st}-slide-up-enter${st}-slide-up-enter-active${$e}-dropdown-placement-topLeft,
|
|
|
&${st}-slide-up-enter${st}-slide-up-enter-active${$e}-dropdown-placement-topRight,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${$e}-dropdown-placement-topLeft,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${$e}-dropdown-placement-topRight`]:{animationName:mu.Qt},[`&${st}-slide-up-enter${st}-slide-up-enter-active${$e}-dropdown-placement-bottomLeft,
|
|
|
&${st}-slide-up-enter${st}-slide-up-enter-active${$e}-dropdown-placement-bottomRight,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${$e}-dropdown-placement-bottomLeft,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${$e}-dropdown-placement-bottomRight`]:{animationName:mu.fJ},[`&${st}-slide-up-leave${st}-slide-up-leave-active${$e}-dropdown-placement-topLeft,
|
|
|
&${st}-slide-up-leave${st}-slide-up-leave-active${$e}-dropdown-placement-topRight`]:{animationName:mu.ly},[`&${st}-slide-up-leave${st}-slide-up-leave-active${$e}-dropdown-placement-bottomLeft,
|
|
|
&${st}-slide-up-leave${st}-slide-up-leave-active${$e}-dropdown-placement-bottomRight`]:{animationName:mu.Uw},[`${$e}-panel > ${$e}-time-panel`]:{paddingTop:Ka},[`${$e}-ranges`]:{marginBottom:0,padding:`${Ka}px ${Ha}px`,overflow:"hidden",lineHeight:`${Ba-2*oi-io/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${$e}-preset > ${st}-tag-blue`]:{color:aa,background:fs,borderColor:La,cursor:"pointer"},[`${$e}-ok`]:{marginInlineStart:"auto"}},[`${$e}-range-wrapper`]:{display:"flex",position:"relative"},[`${$e}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:In*1.5,transition:`left ${ea} ease-out`},(0,pu.r)(Ca,Ta,as,gs,en)),[`${$e}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:gs,borderRadius:Ja,boxShadow:Oa,transition:`margin ${ea}`,[`${$e}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${$e}-presets`]:{display:"flex",flexDirection:"column",minWidth:ut,maxWidth:Jt,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:io,borderInlineEnd:`${oi}px ${ui} ${hl}`,li:Object.assign(Object.assign({},Tl.vS),{borderRadius:Rs,paddingInline:io,paddingBlock:(wr-Math.round(hn*lr))/2,cursor:"pointer",transition:`all ${ea}`,"+ li":{marginTop:mo},"&:hover":{background:it}})}},[`${$e}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${$e}-panel`]:{borderWidth:`0 0 ${oi}px`},"&:last-child":{[`${$e}-panel`]:{borderWidth:0}}},[`${$e}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${$e}-content,
|
|
|
table`]:{textAlign:"center"},"&-focused":{borderColor:Mi}}}}),"&-dropdown-range":{padding:`${Ca*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${$e}-separator`]:{transform:"rotate(180deg)"},[`${$e}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,mu.oN)(je,"slide-up"),(0,mu.oN)(je,"slide-down"),(0,Xo.Fm)(je,"move-up"),(0,Xo.Fm)(je,"move-down")]},xs=je=>{const{componentCls:$e,controlHeightLG:st,paddingXXS:nn,padding:hn}=je;return{pickerCellCls:`${$e}-cell`,pickerCellInnerCls:`${$e}-cell-inner`,pickerYearMonthCellWidth:st*1.5,pickerQuarterPanelContentHeight:st*1.4,pickerCellPaddingVertical:nn+nn/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:hn+nn/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 Ts=(0,dl.Z)("DatePicker",je=>{const $e=(0,va.TS)((0,xl.e5)(je),xs(je));return[Ls($e),hs($e),(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,$e,st){return st!==void 0?st:$e==="year"&&je.lang.yearPlaceholder?je.lang.yearPlaceholder:$e==="quarter"&&je.lang.quarterPlaceholder?je.lang.quarterPlaceholder:$e==="month"&&je.lang.monthPlaceholder?je.lang.monthPlaceholder:$e==="week"&&je.lang.weekPlaceholder?je.lang.weekPlaceholder:$e==="time"&&je.timePickerLocale.placeholder?je.timePickerLocale.placeholder:je.lang.placeholder}function Hu(je,$e,st){return st!==void 0?st:$e==="year"&&je.lang.yearPlaceholder?je.lang.rangeYearPlaceholder:$e==="quarter"&&je.lang.quarterPlaceholder?je.lang.rangeQuarterPlaceholder:$e==="month"&&je.lang.monthPlaceholder?je.lang.rangeMonthPlaceholder:$e==="week"&&je.lang.weekPlaceholder?je.lang.rangeWeekPlaceholder:$e==="time"&&je.timePickerLocale.placeholder?je.timePickerLocale.rangePlaceholder:je.lang.rangePlaceholder}function Ol(je,$e){const st={adjustX:1,adjustY:1};switch($e){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:st};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:st};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:st};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:st};default:return{points:je==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:st}}}function El(je){return je?Array.isArray(je)?je:[je]:[]}function Rr(je){const{format:$e,picker:st,showHour:nn,showMinute:hn,showSecond:In,use12Hours:Zn}=je,oi=El($e)[0],ui=Object.assign({},je);return $e&&Array.isArray($e)&&(ui.format=oi),oi&&typeof oi=="string"&&(!oi.includes("s")&&In===void 0&&(ui.showSecond=!1),!oi.includes("m")&&hn===void 0&&(ui.showMinute=!1),!oi.includes("H")&&!oi.includes("h")&&!oi.includes("K")&&!oi.includes("k")&&nn===void 0&&(ui.showHour=!1),(oi.includes("a")||oi.includes("A"))&&Zn===void 0&&(ui.use12Hours=!0)),st==="time"?ui:(typeof oi=="function"&&delete ui.format,{showTime:ui})}function Lu(je,$e,st){if(je===!1)return!1;const nn={clearIcon:$e!=null?$e:st};return typeof je=="object"?Object.assign(Object.assign({},nn),je):nn}var Kt=ye(3113);function di(je){return Pe.createElement(Kt.ZP,Object.assign({size:"small",type:"primary"},je))}var Fu={button:di},_l=function(je,$e){var st={};for(var nn in je)Object.prototype.hasOwnProperty.call(je,nn)&&$e.indexOf(nn)<0&&(st[nn]=je[nn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,nn=Object.getOwnPropertySymbols(je);hn<nn.length;hn++)$e.indexOf(nn[hn])<0&&Object.prototype.propertyIsEnumerable.call(je,nn[hn])&&(st[nn[hn]]=je[nn[hn]]);return st};function $l(je){return(0,Pe.forwardRef)((st,nn)=>{const{prefixCls:hn,getPopupContainer:In,className:Zn,placement:oi,size:ui,disabled:Mi,bordered:sr=!0,placeholder:Ei,popupClassName:_i,dropdownClassName:bi,status:xr,clearIcon:ni,allowClear:$i,rootClassName:wr}=st,ho=_l(st,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),io=Pe.useRef(null),{getPrefixCls:mo,direction:vo,getPopupContainer:fo}=(0,Pe.useContext)(rl.E_),lr=mo("picker",hn),{compactSize:aa,compactItemClassnames:ea}=(0,Qc.ri)(lr,vo),{format:Sa,showTime:Ka,picker:Ha}=st,Ba=mo(),[fs,La]=Ts(lr),Ca=Object.assign(Object.assign({},Ka?Rr(Object.assign({format:Sa,picker:Ha},Ka)):{}),Ha==="time"?Rr(Object.assign(Object.assign({format:Sa},st),{picker:Ha})):{}),Ta=(0,oc.Z)(en=>{var An;return(An=ui!=null?ui:aa)!==null&&An!==void 0?An:en}),as=Pe.useContext(Sl.Z),gs=Mi!=null?Mi:as,Ja=(0,Pe.useContext)(Sc.aM),{hasFeedback:Oa,status:Rs,feedbackIcon:hl}=Ja,it=Pe.createElement(Pe.Fragment,null,Ha==="time"?Pe.createElement(Yt,null):Pe.createElement(Ve,null),Oa&&hl);(0,Pe.useImperativeHandle)(nn,()=>({focus:()=>{var en;return(en=io.current)===null||en===void 0?void 0:en.focus()},blur:()=>{var en;return(en=io.current)===null||en===void 0?void 0:en.blur()}}));const[ut]=(0,xc.Z)("Calendar",gu.Z),Jt=Object.assign(Object.assign({},ut),st.locale);return fs(Pe.createElement(vl,Object.assign({separator:Pe.createElement("span",{"aria-label":"to",className:`${lr}-separator`},Pe.createElement(Pn,null)),disabled:gs,ref:io,dropdownAlign:Ol(vo,oi),placeholder:Hu(Jt,Ha,Ei),suffixIcon:it,prevIcon:Pe.createElement("span",{className:`${lr}-prev-icon`}),nextIcon:Pe.createElement("span",{className:`${lr}-next-icon`}),superPrevIcon:Pe.createElement("span",{className:`${lr}-super-prev-icon`}),superNextIcon:Pe.createElement("span",{className:`${lr}-super-next-icon`}),transitionName:`${Ba}-slide-up`},ho,Ca,{className:kt()({[`${lr}-${Ta}`]:Ta,[`${lr}-borderless`]:!sr},(0,yl.Z)(lr,(0,yl.F)(Rs,xr),Oa),La,ea,Zn,wr),locale:Jt.lang,prefixCls:lr,getPopupContainer:In||fo,generateConfig:je,components:Fu,direction:vo,dropdownClassName:kt()(La,_i||bi,wr),allowClear:Lu($i,ni,Pe.createElement(Ot.Z,null))})))})}var jl=function(je,$e){var st={};for(var nn in je)Object.prototype.hasOwnProperty.call(je,nn)&&$e.indexOf(nn)<0&&(st[nn]=je[nn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,nn=Object.getOwnPropertySymbols(je);hn<nn.length;hn++)$e.indexOf(nn[hn])<0&&Object.prototype.propertyIsEnumerable.call(je,nn[hn])&&(st[nn[hn]]=je[nn[hn]]);return st};function Pc(je){function $e(ui,Mi){const sr=Mi==="TimePicker"?"timePicker":"datePicker",Ei=(0,Pe.forwardRef)((_i,bi)=>{const{prefixCls:xr,getPopupContainer:ni,style:$i,className:wr,rootClassName:ho,size:io,bordered:mo=!0,placement:vo,placeholder:fo,popupClassName:lr,dropdownClassName:aa,disabled:ea,status:Sa,clearIcon:Ka,allowClear:Ha}=_i,Ba=jl(_i,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:fs,direction:La,getPopupContainer:Ca,[sr]:Ta}=(0,Pe.useContext)(rl.E_),as=fs("picker",xr),{compactSize:gs,compactItemClassnames:Ja}=(0,Qc.ri)(as,La),Oa=Pe.useRef(null),{format:Rs,showTime:hl}=_i,[it,ut]=Ts(as);(0,Pe.useImperativeHandle)(bi,()=>({focus:()=>{var Ki;return(Ki=Oa.current)===null||Ki===void 0?void 0:Ki.focus()},blur:()=>{var Ki;return(Ki=Oa.current)===null||Ki===void 0?void 0:Ki.blur()}}));const Jt={showToday:!0};let en={};ui&&(en.picker=ui);const An=ui||_i.picker;en=Object.assign(Object.assign(Object.assign({},en),hl?Rr(Object.assign({format:Rs,picker:An},hl)):{}),An==="time"?Rr(Object.assign(Object.assign({format:Rs},_i),{picker:An})):{});const gn=fs(),Xn=(0,oc.Z)(Ki=>{var Ar;return(Ar=io!=null?io:gs)!==null&&Ar!==void 0?Ar:Ki}),Yn=Pe.useContext(Sl.Z),Vn=ea!=null?ea:Yn,Pi=(0,Pe.useContext)(Sc.aM),{hasFeedback:ii,status:yi,feedbackIcon:Ji}=Pi,Ui=Pe.createElement(Pe.Fragment,null,An==="time"?Pe.createElement(Yt,null):Pe.createElement(Ve,null),ii&&Ji),[zi]=(0,xc.Z)("DatePicker",gu.Z),yr=Object.assign(Object.assign({},zi),_i.locale);return it(Pe.createElement(fu,Object.assign({ref:Oa,placeholder:Fa(yr,An,fo),suffixIcon:Ui,dropdownAlign:Ol(La,vo),prevIcon:Pe.createElement("span",{className:`${as}-prev-icon`}),nextIcon:Pe.createElement("span",{className:`${as}-next-icon`}),superPrevIcon:Pe.createElement("span",{className:`${as}-super-prev-icon`}),superNextIcon:Pe.createElement("span",{className:`${as}-super-next-icon`}),transitionName:`${gn}-slide-up`},Jt,Ba,en,{locale:yr.lang,className:kt()({[`${as}-${Xn}`]:Xn,[`${as}-borderless`]:!mo},(0,yl.Z)(as,(0,yl.F)(yi,Sa),ii),ut,Ja,Ta==null?void 0:Ta.className,wr,ho),style:Object.assign(Object.assign({},Ta==null?void 0:Ta.style),$i),prefixCls:as,getPopupContainer:ni||Ca,generateConfig:je,components:Fu,direction:La,disabled:Vn,dropdownClassName:kt()(ut,ho,lr||aa),allowClear:Lu(Ha,Ka,Pe.createElement(Ot.Z,null))})))});return Mi&&(Ei.displayName=Mi),Ei}const st=$e(),nn=$e("week","WeekPicker"),hn=$e("month","MonthPicker"),In=$e("year","YearPicker"),Zn=$e("time","TimePicker"),oi=$e("quarter","QuarterPicker");return{DatePicker:st,WeekPicker:nn,MonthPicker:hn,YearPicker:In,TimePicker:Zn,QuarterPicker:oi}}const Ic=null;function Os(je){const{DatePicker:$e,WeekPicker:st,MonthPicker:nn,YearPicker:hn,TimePicker:In,QuarterPicker:Zn}=Pc(je),oi=$l(je),ui=$e;return ui.WeekPicker=st,ui.MonthPicker=nn,ui.YearPicker=hn,ui.RangePicker=oi,ui.TimePicker=In,ui.QuarterPicker=Zn,ui}var Io=Os;const wl=Io(ve);function Il(je){const $e=Ol(je.direction,je.placement);return $e.overflow.adjustY=!1,$e.overflow.adjustX=!1,Object.assign(Object.assign({},je),{dropdownAlign:$e})}const ws=(0,be.Z)(wl,"picker",null,Il);wl._InternalPanelDoNotUseOrYouWillBeFired=ws;const ya=(0,be.Z)(wl.RangePicker,"picker",null,Il);wl._InternalRangePanelDoNotUseOrYouWillBeFired=ya,wl.generatePicker=Io;var ol=wl},28103:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ct}});var Se=ye(92310),Oe=ye.n(Se),He=ye(59301),Rt=ye(36355),_e=ye(17313),vt=ye(83116),ke=ye(37613);const Tt=wt=>{const{componentCls:Me,sizePaddingEdgeHorizontal:te,colorSplit:ne,lineWidth:ce,textPaddingInline:se,orientationMargin:ge,verticalMarginInline:ve}=wt;return{[Me]:Object.assign(Object.assign({},(0,_e.Wf)(wt)),{borderBlockStart:`${ce}px solid ${ne}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ve,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ce}px solid ${ne}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${wt.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Me}-with-text`]:{display:"flex",alignItems:"center",margin:`${wt.dividerHorizontalWithTextGutterMargin}px 0`,color:wt.colorTextHeading,fontWeight:500,fontSize:wt.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:wt.colorText,fontWeight:"normal",fontSize:wt.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 Lt=(0,vt.Z)("Divider",wt=>{const Me=(0,ke.TS)(wt,{dividerHorizontalWithTextGutterMargin:wt.margin,dividerHorizontalGutterMargin:wt.marginLG,sizePaddingEdgeHorizontal:0});return[Tt(Me)]},wt=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:wt.marginXS})),et=function(wt,Me){var te={};for(var ne in wt)Object.prototype.hasOwnProperty.call(wt,ne)&&Me.indexOf(ne)<0&&(te[ne]=wt[ne]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ne=Object.getOwnPropertySymbols(wt);ce<ne.length;ce++)Me.indexOf(ne[ce])<0&&Object.prototype.propertyIsEnumerable.call(wt,ne[ce])&&(te[ne[ce]]=wt[ne[ce]]);return te},ct=wt=>{const{getPrefixCls:Me,direction:te,divider:ne}=He.useContext(Rt.E_),{prefixCls:ce,type:se="horizontal",orientation:ge="center",orientationMargin:ve,className:be,rootClassName:Fe,children:Pe,dashed:Ie,plain:We,style:Ke}=wt,Xe=et(wt,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ht=Me("divider",ce),[Ve,Nt]=Lt(ht),qe=ge.length>0?`-${ge}`:ge,Ht=!!Pe,Zt=ge==="left"&&ve!=null,Yt=ge==="right"&&ve!=null,Ot=Oe()(ht,ne==null?void 0:ne.className,Nt,`${ht}-${se}`,{[`${ht}-with-text`]:Ht,[`${ht}-with-text${qe}`]:Ht,[`${ht}-dashed`]:!!Ie,[`${ht}-plain`]:!!We,[`${ht}-rtl`]:te==="rtl",[`${ht}-no-default-orientation-margin-left`]:Zt,[`${ht}-no-default-orientation-margin-right`]:Yt},be,Fe),Qt=He.useMemo(()=>typeof ve=="number"?ve:/^\d+$/.test(ve)?Number(ve):ve,[ve]),dt=Object.assign(Object.assign({},Zt&&{marginLeft:Qt}),Yt&&{marginRight:Qt});return Ve(He.createElement("div",Object.assign({className:Ot,style:Object.assign(Object.assign({},ne==null?void 0:ne.style),Ke)},Xe,{role:"separator"}),Pe&&se!=="vertical"&&He.createElement("span",{className:`${ht}-inner-text`,style:dt},Pe)))}},91857:function(Rn,Fn,ye){"use strict";var Se=ye(59301),Oe=ye(53878),He=ye(92310),Rt=ye.n(He),_e=ye(31561),vt=ye(80764),ke=ye(35788),Tt=ye(64002),Lt=ye(79676),et=ye(53487),gt=ye(92343),ct=ye(36355),wt=ye(20834),Me=ye(40875),te=ye(88088),ne=ye(47211);const ce=null,se=Fe=>{const{menu:Pe,arrow:Ie,prefixCls:We,children:Ke,trigger:Xe,disabled:ht,dropdownRender:Ve,getPopupContainer:Nt,overlayClassName:qe,rootClassName:Ht,open:Zt,onOpenChange:Yt,visible:Ot,onVisibleChange:Qt,mouseEnterDelay:dt=.15,mouseLeaveDelay:Re=.1,autoAdjustOverflow:Mt=!0,placement:Pn="",overlay:mn,transitionName:kt}=Fe,{getPopupContainer:_t,getPrefixCls:ln,direction:Bn}=Se.useContext(ct.E_),wn=Se.useMemo(()=>{const pe=ln();return kt!==void 0?kt:Pn.includes("top")?`${pe}-slide-down`:`${pe}-slide-up`},[ln,Pn,kt]),Kn=Se.useMemo(()=>Pn?Pn.includes("Center")?Pn.slice(0,Pn.indexOf("Center")):Pn:Bn==="rtl"?"bottomRight":"bottomLeft",[Pn,Bn]),yt=ln("dropdown",We),[Jn,bn]=(0,ne.Z)(yt),[,ci]=(0,te.Z)(),Tn=Se.Children.only(Ke),tn=(0,gt.Tm)(Tn,{className:Rt()(`${yt}-trigger`,{[`${yt}-rtl`]:Bn==="rtl"},Tn.props.className),disabled:ht}),$t=ht?[]:Xe;let ft;$t&&$t.includes("contextMenu")&&(ft=!0);const[Je,Gt]=(0,ke.Z)(!1,{value:Zt!=null?Zt:Ot}),At=(0,vt.useEvent)(pe=>{Yt==null||Yt(pe),Qt==null||Qt(pe),Gt(pe)}),lt=Rt()(qe,Ht,bn,{[`${yt}-rtl`]:Bn==="rtl"}),Ge=(0,Lt.Z)({arrowPointAtCenter:typeof Ie=="object"&&Ie.pointAtCenter,autoAdjustOverflow:Mt,offset:ci.marginXXS,arrowWidth:Ie?ci.sizePopupArrow:0,borderRadius:ci.borderRadius}),Be=Se.useCallback(()=>{Gt(!1)},[]),we=()=>{let pe;return Pe!=null&&Pe.items?pe=Se.createElement(wt.default,Object.assign({},Pe)):typeof mn=="function"?pe=mn():pe=mn,Ve&&(pe=Ve(pe)),pe=Se.Children.only(typeof pe=="string"?Se.createElement("span",null,pe):pe),Se.createElement(Me.J,{prefixCls:`${yt}-menu`,expandIcon:Se.createElement("span",{className:`${yt}-menu-submenu-arrow`},Se.createElement(Oe.Z,{className:`${yt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Be,validator:De=>{let{mode:ze}=De}},pe)};return Jn(Se.createElement(_e.Z,Object.assign({alignPoint:ft},(0,Tt.Z)(Fe,["rootClassName"]),{mouseEnterDelay:dt,mouseLeaveDelay:Re,visible:Je,builtinPlacements:Ge,arrow:!!Ie,overlayClassName:lt,prefixCls:yt,getPopupContainer:Nt||_t,transitionName:wn,trigger:$t,overlay:we,placement:Kn,onVisibleChange:At}),tn))};function ge(Fe){return Object.assign(Object.assign({},Fe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ve=(0,et.Z)(se,"dropdown",Fe=>Fe,ge),be=Fe=>Se.createElement(ve,Object.assign({},Fe),Se.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=be,Fn.Z=se},38854:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return te}});var Se=ye(91857),Oe=ye(92310),He=ye.n(Oe),Rt=ye(59301),_e=ye(19362),vt=ye(3113),ke=ye(36355),Tt=ye(81327),Lt=ye(33234),et=ye(47211),gt=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 ve=0,ge=Object.getOwnPropertySymbols(ne);ve<ge.length;ve++)ce.indexOf(ge[ve])<0&&Object.prototype.propertyIsEnumerable.call(ne,ge[ve])&&(se[ge[ve]]=ne[ge[ve]]);return se};const ct=ne=>{const{getPopupContainer:ce,getPrefixCls:se,direction:ge}=Rt.useContext(ke.E_),{prefixCls:ve,type:be="default",danger:Fe,disabled:Pe,loading:Ie,onClick:We,htmlType:Ke,children:Xe,className:ht,menu:Ve,arrow:Nt,autoFocus:qe,overlay:Ht,trigger:Zt,align:Yt,open:Ot,onOpenChange:Qt,placement:dt,getPopupContainer:Re,href:Mt,icon:Pn=Rt.createElement(_e.Z,null),title:mn,buttonsRender:kt=we=>we,mouseEnterDelay:_t,mouseLeaveDelay:ln,overlayClassName:Bn,overlayStyle:wn,destroyPopupOnHide:Kn,dropdownRender:yt}=ne,Jn=gt(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"]),bn=se("dropdown",ve),ci=`${bn}-button`,[Tn,tn]=(0,et.Z)(bn),$t={menu:Ve,arrow:Nt,autoFocus:qe,align:Yt,disabled:Pe,trigger:Pe?[]:Zt,onOpenChange:Qt,getPopupContainer:Re||ce,mouseEnterDelay:_t,mouseLeaveDelay:ln,overlayClassName:Bn,overlayStyle:wn,destroyPopupOnHide:Kn,dropdownRender:yt},{compactSize:ft,compactItemClassnames:Je}=(0,Lt.ri)(bn,ge),Gt=He()(ci,Je,ht,tn);"overlay"in ne&&($t.overlay=Ht),"open"in ne&&($t.open=Ot),"placement"in ne?$t.placement=dt:$t.placement=ge==="rtl"?"bottomLeft":"bottomRight";const At=Rt.createElement(vt.ZP,{type:be,danger:Fe,disabled:Pe,loading:Ie,onClick:We,htmlType:Ke,href:Mt,title:mn},Xe),lt=Rt.createElement(vt.ZP,{type:be,danger:Fe,icon:Pn}),[Ge,Be]=kt([At,lt]);return Tn(Rt.createElement(Tt.Z.Compact,Object.assign({className:Gt,size:ft,block:!0},Jn),Ge,Rt.createElement(Se.Z,Object.assign({},$t),Be)))};ct.__ANT_BUTTON=!0;var wt=ct;const Me=Se.Z;Me.Button=wt;var te=Me},47211:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return gt}});var Se=ye(17313),Oe=ye(13826),He=ye(92899),Rt=ye(29878),_e=ye(19447),vt=ye(83116),ke=ye(37613),Lt=ct=>{const{componentCls:wt,menuCls:Me,colorError:te,colorTextLightSolid:ne}=ct,ce=`${Me}-item`;return{[`${wt}, ${wt}-menu-submenu`]:{[`${Me} ${ce}`]:{[`&${ce}-danger:not(${ce}-disabled)`]:{color:te,"&:hover":{color:ne,backgroundColor:te}}}}}};const et=ct=>{const{componentCls:wt,menuCls:Me,zIndexPopup:te,dropdownArrowDistance:ne,sizePopupArrow:ce,antCls:se,iconCls:ge,motionDurationMid:ve,dropdownPaddingVertical:be,fontSize:Fe,dropdownEdgeChildPadding:Pe,colorTextDisabled:Ie,fontSizeIcon:We,controlPaddingHorizontal:Ke,colorBgElevated:Xe}=ct;return[{[wt]:Object.assign(Object.assign({},(0,Se.Wf)(ct)),{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:We}},[`${wt}-wrap`]:{position:"relative",[`${se}-btn > ${ge}-down`]:{fontSize:We},[`${ge}-down::before`]:{transition:`transform ${ve}`}},[`${wt}-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${wt}-placement-bottomLeft,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${wt}-placement-bottomLeft,
|
|
|
&${se}-slide-down-enter${se}-slide-down-enter-active${wt}-placement-bottom,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${wt}-placement-bottom,
|
|
|
&${se}-slide-down-enter${se}-slide-down-enter-active${wt}-placement-bottomRight,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${wt}-placement-bottomRight`]:{animationName:Oe.fJ},[`&${se}-slide-up-enter${se}-slide-up-enter-active${wt}-placement-topLeft,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${wt}-placement-topLeft,
|
|
|
&${se}-slide-up-enter${se}-slide-up-enter-active${wt}-placement-top,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${wt}-placement-top,
|
|
|
&${se}-slide-up-enter${se}-slide-up-enter-active${wt}-placement-topRight,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${wt}-placement-topRight`]:{animationName:Oe.Qt},[`&${se}-slide-down-leave${se}-slide-down-leave-active${wt}-placement-bottomLeft,
|
|
|
&${se}-slide-down-leave${se}-slide-down-leave-active${wt}-placement-bottom,
|
|
|
&${se}-slide-down-leave${se}-slide-down-leave-active${wt}-placement-bottomRight`]:{animationName:Oe.Uw},[`&${se}-slide-up-leave${se}-slide-up-leave-active${wt}-placement-topLeft,
|
|
|
&${se}-slide-up-leave${se}-slide-up-leave-active${wt}-placement-top,
|
|
|
&${se}-slide-up-leave${se}-slide-up-leave-active${wt}-placement-topRight`]:{animationName:Oe.ly}})},(0,_e.ZP)(ct,{colorBg:Xe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${wt} ${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}},[`${wt}, ${wt}-menu-submenu`]:{[Me]:Object.assign(Object.assign({padding:Pe,listStyleType:"none",backgroundColor:Xe,backgroundClip:"padding-box",borderRadius:ct.borderRadiusLG,outline:"none",boxShadow:ct.boxShadowSecondary},(0,Se.Qy)(ct)),{[`${Me}-item-group-title`]:{padding:`${be}px ${Ke}px`,color:ct.colorTextDescription,transition:`all ${ve}`},[`${Me}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Me}-item-icon`]:{minWidth:Fe,marginInlineEnd:ct.marginXS,fontSize:ct.fontSizeSM},[`${Me}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ve}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Me}-item, ${Me}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${be}px ${Ke}px`,color:ct.colorText,fontWeight:"normal",fontSize:Fe,lineHeight:ct.lineHeight,cursor:"pointer",transition:`all ${ve}`,borderRadius:ct.borderRadiusSM,"&:hover, &-active":{backgroundColor:ct.controlItemBgHover}},(0,Se.Qy)(ct)),{"&-selected":{color:ct.colorPrimary,backgroundColor:ct.controlItemBgActive,"&:hover, &-active":{backgroundColor:ct.controlItemBgActiveHover}},"&-disabled":{color:Ie,cursor:"not-allowed","&:hover":{color:Ie,backgroundColor:Xe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ct.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ct.colorSplit},[`${wt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ct.paddingXS,[`${wt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ct.colorTextDescription,fontSize:We,fontStyle:"normal"}}}),[`${Me}-item-group-list`]:{margin:`0 ${ct.marginXS}px`,padding:0,listStyle:"none"},[`${Me}-submenu-title`]:{paddingInlineEnd:Ke+ct.fontSizeSM},[`${Me}-submenu-vertical`]:{position:"relative"},[`${Me}-submenu${Me}-submenu-disabled ${wt}-menu-submenu-title`]:{[`&, ${wt}-menu-submenu-arrow-icon`]:{color:Ie,backgroundColor:Xe,cursor:"not-allowed"}},[`${Me}-submenu-selected ${wt}-menu-submenu-title`]:{color:ct.colorPrimary}})}},[(0,Oe.oN)(ct,"slide-up"),(0,Oe.oN)(ct,"slide-down"),(0,He.Fm)(ct,"move-up"),(0,He.Fm)(ct,"move-down"),(0,Rt._y)(ct,"zoom-big")]]};var gt=(0,vt.Z)("Dropdown",(ct,wt)=>{let{rootPrefixCls:Me}=wt;const{marginXXS:te,sizePopupArrow:ne,controlHeight:ce,fontSize:se,lineHeight:ge,paddingXXS:ve,componentCls:be,borderRadiusLG:Fe}=ct,Pe=(ce-se*ge)/2,{dropdownArrowOffset:Ie}=(0,_e.fS)({contentRadius:Fe}),We=(0,ke.TS)(ct,{menuCls:`${be}-menu`,rootPrefixCls:Me,dropdownArrowDistance:ne/2+te,dropdownArrowOffset:Ie,dropdownPaddingVertical:Pe,dropdownEdgeChildPadding:ve});return[et(We),Lt(We)]},ct=>({zIndexPopup:ct.zIndexPopupBase+50}))},64165:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ve}});var Se=ye(92310),Oe=ye.n(Se),He=ye(59301),Rt=ye(36355),_e=ye(9763),vt=ye(64993),ke=ye(88088),Lt=()=>{const[,be]=(0,ke.Z)(),Pe=new vt.C(be.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"}))))},gt=()=>{const[,be]=(0,ke.Z)(),{colorFill:Fe,colorFillTertiary:Pe,colorFillQuaternary:Ie,colorBgContainer:We}=be,{borderColor:Ke,shadowColor:Xe,contentColor:ht}=(0,He.useMemo)(()=>({borderColor:new vt.C(Fe).onBackground(We).toHexShortString(),shadowColor:new vt.C(Pe).onBackground(We).toHexShortString(),contentColor:new vt.C(Ie).onBackground(We).toHexShortString()}),[Fe,Pe,Ie,We]);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:Xe,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:ht}))))},ct=ye(83116),wt=ye(37613);const Me=be=>{const{componentCls:Fe,margin:Pe,marginXS:Ie,marginXL:We,fontSize:Ke,lineHeight:Xe}=be;return{[Fe]:{marginInline:Ie,fontSize:Ke,lineHeight:Xe,textAlign:"center",[`${Fe}-image`]:{height:be.emptyImgHeight,marginBottom:Ie,opacity:be.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Fe}-description`]:{color:be.colorText},[`${Fe}-footer`]:{marginTop:Pe},"&-normal":{marginBlock:We,color:be.colorTextDisabled,[`${Fe}-description`]:{color:be.colorTextDisabled},[`${Fe}-image`]:{height:be.emptyImgHeightMD}},"&-small":{marginBlock:Ie,color:be.colorTextDisabled,[`${Fe}-image`]:{height:be.emptyImgHeightSM}}}}};var te=(0,ct.Z)("Empty",be=>{const{componentCls:Fe,controlHeightLG:Pe}=be,Ie=(0,wt.TS)(be,{emptyImgCls:`${Fe}-img`,emptyImgHeight:Pe*2.5,emptyImgHeightMD:Pe,emptyImgHeightSM:Pe*.875});return[Me(Ie)]}),ne=function(be,Fe){var Pe={};for(var Ie in be)Object.prototype.hasOwnProperty.call(be,Ie)&&Fe.indexOf(Ie)<0&&(Pe[Ie]=be[Ie]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ie=Object.getOwnPropertySymbols(be);We<Ie.length;We++)Fe.indexOf(Ie[We])<0&&Object.prototype.propertyIsEnumerable.call(be,Ie[We])&&(Pe[Ie[We]]=be[Ie[We]]);return Pe};const ce=He.createElement(Lt,null),se=He.createElement(gt,null),ge=be=>{var{className:Fe,rootClassName:Pe,prefixCls:Ie,image:We=ce,description:Ke,children:Xe,imageStyle:ht,style:Ve}=be,Nt=ne(be,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:qe,direction:Ht,empty:Zt}=He.useContext(Rt.E_),Yt=qe("empty",Ie),[Ot,Qt]=te(Yt),[dt]=(0,_e.Z)("Empty"),Re=typeof Ke!="undefined"?Ke:dt==null?void 0:dt.description,Mt=typeof Re=="string"?Re:"empty";let Pn=null;return typeof We=="string"?Pn=He.createElement("img",{alt:Mt,src:We}):Pn=We,Ot(He.createElement("div",Object.assign({className:Oe()(Qt,Yt,Zt==null?void 0:Zt.className,{[`${Yt}-normal`]:We===se,[`${Yt}-rtl`]:Ht==="rtl"},Fe,Pe),style:Object.assign(Object.assign({},Zt==null?void 0:Zt.style),Ve)},Nt),He.createElement("div",{className:`${Yt}-image`,style:ht},Pn),Re&&He.createElement("div",{className:`${Yt}-description`},Re),Xe&&He.createElement("div",{className:`${Yt}-footer`},Xe)))};ge.PRESENTED_IMAGE_DEFAULT=ce,ge.PRESENTED_IMAGE_SIMPLE=se;var ve=ge},78241:function(Rn,Fn,ye){"use strict";ye.d(Fn,{default:function(){return bt}});var Se=ye(26390),Oe=ye(92310),He=ye.n(Oe),Rt=ye(43469),_e=ye(59301),vt=ye(62892),ke=ye(32441);function Tt(tt){const[qt,dn]=_e.useState(tt);return _e.useEffect(()=>{const xt=setTimeout(()=>{dn(tt)},tt.length?0:10);return()=>{clearTimeout(xt)}},[tt]),qt}var Lt=ye(17313),et=ye(29878),gt=ye(8378),ct=ye(37613),wt=ye(83116),te=tt=>{const{componentCls:qt}=tt,dn=`${qt}-show-help`,xt=`${qt}-show-help-item`;return{[dn]:{transition:`opacity ${tt.motionDurationSlow} ${tt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[xt]:{overflow:"hidden",transition:`height ${tt.motionDurationSlow} ${tt.motionEaseInOut},
|
|
|
opacity ${tt.motionDurationSlow} ${tt.motionEaseInOut},
|
|
|
transform ${tt.motionDurationSlow} ${tt.motionEaseInOut} !important`,[`&${xt}-appear, &${xt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${xt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ne=tt=>({legend:{display:"block",width:"100%",marginBottom:tt.marginLG,padding:0,color:tt.colorTextDescription,fontSize:tt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${tt.lineWidth}px ${tt.lineType} ${tt.colorBorder}`},label:{fontSize:tt.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 ${tt.controlOutlineWidth}px ${tt.controlOutline}`},output:{display:"block",paddingTop:15,color:tt.colorText,fontSize:tt.fontSize,lineHeight:tt.lineHeight}}),ce=(tt,qt)=>{const{formItemCls:dn}=tt;return{[dn]:{[`${dn}-label > label`]:{height:qt},[`${dn}-control-input`]:{minHeight:qt}}}},se=tt=>{const{componentCls:qt}=tt;return{[tt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(tt)),ne(tt)),{[`${qt}-text`]:{display:"inline-block",paddingInlineEnd:tt.paddingSM},"&-small":Object.assign({},ce(tt,tt.controlHeightSM)),"&-large":Object.assign({},ce(tt,tt.controlHeightLG))})}},ge=tt=>{const{formItemCls:qt,iconCls:dn,componentCls:xt,rootPrefixCls:Ye,labelRequiredMarkColor:an,labelColor:Bt,labelFontSize:jn,labelHeight:cn,labelColonMarginInlineStart:Et,labelColonMarginInlineEnd:xn,itemMarginBottom:Qn}=tt;return{[qt]:Object.assign(Object.assign({},(0,Lt.Wf)(tt)),{marginBottom:Qn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ye}-row`]:{display:"none"},"&-has-warning":{[`${qt}-split`]:{color:tt.colorError}},"&-has-error":{[`${qt}-split`]:{color:tt.colorWarning}},[`${qt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${tt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:cn,color:Bt,fontSize:jn,[`> ${dn}`]:{fontSize:tt.fontSize,verticalAlign:"top"},[`&${qt}-required:not(${qt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:tt.marginXXS,color:an,fontSize:tt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${xt}-hide-required-mark &`]:{display:"none"}},[`${qt}-optional`]:{display:"inline-block",marginInlineStart:tt.marginXXS,color:tt.colorTextDescription,[`${xt}-hide-required-mark &`]:{display:"none"}},[`${qt}-tooltip`]:{color:tt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:tt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Et,marginInlineEnd:xn},[`&${qt}-no-colon::after`]:{content:'"\\a0"'}}},[`${qt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ye}-col-'"]):not([class*="' ${Ye}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:tt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[qt]:{"&-explain, &-extra":{clear:"both",color:tt.colorTextDescription,fontSize:tt.fontSize,lineHeight:tt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:tt.controlHeightSM,transition:`color ${tt.motionDurationMid} ${tt.motionEaseOut}`},"&-explain":{"&-error":{color:tt.colorError},"&-warning":{color:tt.colorWarning}}},[`&-with-help ${qt}-explain`]:{height:"auto",opacity:1},[`${qt}-feedback-icon`]:{fontSize:tt.fontSize,textAlign:"center",visibility:"visible",animationName:et.kr,animationDuration:tt.motionDurationMid,animationTimingFunction:tt.motionEaseOutBack,pointerEvents:"none","&-success":{color:tt.colorSuccess},"&-error":{color:tt.colorError},"&-warning":{color:tt.colorWarning},"&-validating":{color:tt.colorPrimary}}})}},ve=tt=>{const{componentCls:qt,formItemCls:dn}=tt;return{[`${qt}-horizontal`]:{[`${dn}-label`]:{flexGrow:0},[`${dn}-control`]:{flex:"1 1 0",minWidth:0},[`${dn}-label[class$='-24'], ${dn}-label[class*='-24 ']`]:{[`& + ${dn}-control`]:{minWidth:"unset"}}}}},be=tt=>{const{componentCls:qt,formItemCls:dn}=tt;return{[`${qt}-inline`]:{display:"flex",flexWrap:"wrap",[dn]:{flex:"none",marginInlineEnd:tt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${dn}-label,
|
|
|
> ${dn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${dn}-label`]:{flex:"none"},[`${qt}-text`]:{display:"inline-block"},[`${dn}-has-feedback`]:{display:"inline-block"}}}}},Fe=tt=>({padding:tt.verticalLabelPadding,margin:tt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pe=tt=>{const{componentCls:qt,formItemCls:dn,rootPrefixCls:xt}=tt;return{[`${dn} ${dn}-label`]:Fe(tt),[qt]:{[dn]:{flexWrap:"wrap",[`${dn}-label, ${dn}-control`]:{[`&:not([class*=" ${xt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ie=tt=>{const{componentCls:qt,formItemCls:dn,rootPrefixCls:xt}=tt;return{[`${qt}-vertical`]:{[dn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${qt}-item-control`]:{width:"100%"}}},[`${qt}-vertical ${dn}-label,
|
|
|
.${xt}-col-24${dn}-label,
|
|
|
.${xt}-col-xl-24${dn}-label`]:Fe(tt),[`@media (max-width: ${tt.screenXSMax}px)`]:[Pe(tt),{[qt]:{[`.${xt}-col-xs-24${dn}-label`]:Fe(tt)}}],[`@media (max-width: ${tt.screenSMMax}px)`]:{[qt]:{[`.${xt}-col-sm-24${dn}-label`]:Fe(tt)}},[`@media (max-width: ${tt.screenMDMax}px)`]:{[qt]:{[`.${xt}-col-md-24${dn}-label`]:Fe(tt)}},[`@media (max-width: ${tt.screenLGMax}px)`]:{[qt]:{[`.${xt}-col-lg-24${dn}-label`]:Fe(tt)}}}},We=(tt,qt)=>(0,ct.TS)(tt,{formItemCls:`${tt.componentCls}-item`,rootPrefixCls:qt});var Ke=(0,wt.Z)("Form",(tt,qt)=>{let{rootPrefixCls:dn}=qt;const xt=We(tt,dn);return[se(xt),ge(xt),te(xt),ve(xt),be(xt),Ie(xt),(0,gt.Z)(xt),et.kr]},tt=>({labelRequiredMarkColor:tt.colorError,labelColor:tt.colorTextHeading,labelFontSize:tt.fontSize,labelHeight:tt.controlHeight,labelColonMarginInlineStart:tt.marginXXS/2,labelColonMarginInlineEnd:tt.marginXS,itemMarginBottom:tt.marginLG,verticalLabelPadding:`0 0 ${tt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Xe=[];function ht(tt,qt,dn){let xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof tt=="string"?tt:`${qt}-${xt}`,error:tt,errorStatus:dn}}var Nt=tt=>{let{help:qt,helpStatus:dn,errors:xt=Xe,warnings:Ye=Xe,className:an,fieldId:Bt,onVisibleChanged:jn}=tt;const{prefixCls:cn}=_e.useContext(ke.Rk),Et=`${cn}-item-explain`,[,xn]=Ke(cn),Qn=(0,_e.useMemo)(()=>(0,vt.Z)(cn),[cn]),Un=Tt(xt),zt=Tt(Ye),Sn=_e.useMemo(()=>qt!=null?[ht(qt,"help",dn)]:[].concat((0,Se.Z)(Un.map((Si,vi)=>ht(Si,"error","error",vi))),(0,Se.Z)(zt.map((Si,vi)=>ht(Si,"warning","warning",vi)))),[qt,dn,Un,zt]),Ci={};return Bt&&(Ci.id=`${Bt}_help`),_e.createElement(Rt.default,{motionDeadline:Qn.motionDeadline,motionName:`${cn}-show-help`,visible:!!Sn.length,onVisibleChanged:jn},Si=>{const{className:vi,style:ti}=Si;return _e.createElement("div",Object.assign({},Ci,{className:He()(Et,vi,an,xn),style:ti,role:"alert"}),_e.createElement(Rt.CSSMotionList,Object.assign({keys:Sn},(0,vt.Z)(cn),{motionName:`${cn}-show-help-item`,component:!1}),xi=>{const{key:Ni,error:Zi,errorStatus:cr,className:Gn,style:Ai}=xi;return _e.createElement("div",{key:Ni,className:He()(Gn,{[`${Et}-${cr}`]:cr}),style:Ai},Zi)}))})},qe=ye(95013),Ht=ye(36355),Zt=ye(1684),Yt=ye(52946),Ot=ye(19716),Qt=ye(16722);const dt=["parentNode"],Re="form_item";function Mt(tt){return tt===void 0||tt===!1?[]:Array.isArray(tt)?tt:[tt]}function Pn(tt,qt){if(!tt.length)return;const dn=tt.join("_");return qt?`${qt}_${dn}`:dt.includes(dn)?`${Re}_${dn}`:dn}function mn(tt,qt,dn,xt,Ye,an){let Bt=xt;return an!==void 0?Bt=an:dn.validating?Bt="validating":tt.length?Bt="error":qt.length?Bt="warning":(dn.touched||Ye&&dn.validated)&&(Bt="success"),Bt}function kt(tt){return Mt(tt).join("_")}function _t(tt){const[qt]=(0,qe.useForm)(),dn=_e.useRef({}),xt=_e.useMemo(()=>tt!=null?tt:Object.assign(Object.assign({},qt),{__INTERNAL__:{itemRef:Ye=>an=>{const Bt=kt(Ye);an?dn.current[Bt]=an:delete dn.current[Bt]}},scrollToField:function(Ye){let an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Bt=Mt(Ye),jn=Pn(Bt,xt.__INTERNAL__.name),cn=jn?document.getElementById(jn):null;cn&&(0,Qt.Z)(cn,Object.assign({scrollMode:"if-needed",block:"nearest"},an))},getFieldInstance:Ye=>{const an=kt(Ye);return dn.current[an]}}),[tt,qt]);return[xt]}var ln=ye(28726),Bn=function(tt,qt){var dn={};for(var xt in tt)Object.prototype.hasOwnProperty.call(tt,xt)&&qt.indexOf(xt)<0&&(dn[xt]=tt[xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,xt=Object.getOwnPropertySymbols(tt);Ye<xt.length;Ye++)qt.indexOf(xt[Ye])<0&&Object.prototype.propertyIsEnumerable.call(tt,xt[Ye])&&(dn[xt[Ye]]=tt[xt[Ye]]);return dn};const wn=(tt,qt)=>{const dn=_e.useContext(Zt.Z),{getPrefixCls:xt,direction:Ye,form:an}=_e.useContext(Ht.E_),{prefixCls:Bt,className:jn,rootClassName:cn,size:Et,disabled:xn=dn,form:Qn,colon:Un,labelAlign:zt,labelWrap:Sn,labelCol:Ci,wrapperCol:Si,hideRequiredMark:vi,layout:ti="horizontal",scrollToFirstError:xi,requiredMark:Ni,onFinishFailed:Zi,name:cr,style:Gn,feedbackIcons:Ai}=tt,br=Bn(tt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),kr=(0,Ot.Z)(Et),Sr=_e.useContext(ln.Z),Xt=(0,_e.useMemo)(()=>Ni!==void 0?Ni:an&&an.requiredMark!==void 0?an.requiredMark:!vi,[vi,Ni,an]),Li=Un!=null?Un:an==null?void 0:an.colon,rr=xt("form",Bt),[Hi,Er]=Ke(rr),dr=He()(rr,`${rr}-${ti}`,{[`${rr}-hide-required-mark`]:Xt===!1,[`${rr}-rtl`]:Ye==="rtl",[`${rr}-${kr}`]:kr},Er,an==null?void 0:an.className,jn,cn),[Nr]=_t(Qn),{__INTERNAL__:Ti}=Nr;Ti.name=cr;const Qi=(0,_e.useMemo)(()=>({name:cr,labelAlign:zt,labelCol:Ci,labelWrap:Sn,wrapperCol:Si,vertical:ti==="vertical",colon:Li,requiredMark:Xt,itemRef:Ti.itemRef,form:Nr,feedbackIcons:Ai}),[cr,zt,Ci,Si,ti,Li,Xt,Nr,Ai]);_e.useImperativeHandle(qt,()=>Nr);const er=(Dr,Ln)=>{if(Dr){let pr={block:"nearest"};typeof Dr=="object"&&(pr=Dr),Nr.scrollToField(Ln,pr)}},kn=Dr=>{if(Zi==null||Zi(Dr),Dr.errorFields.length){const Ln=Dr.errorFields[0].name;if(xi!==void 0){er(xi,Ln);return}an&&an.scrollToFirstError!==void 0&&er(an.scrollToFirstError,Ln)}};return Hi(_e.createElement(Zt.n,{disabled:xn},_e.createElement(Yt.q,{size:kr},_e.createElement(ke.RV,Object.assign({},{validateMessages:Sr}),_e.createElement(ke.q3.Provider,{value:Qi},_e.createElement(qe.default,Object.assign({id:cr},br,{name:cr,onFinishFailed:kn,form:Nr,style:Object.assign(Object.assign({},an==null?void 0:an.style),Gn),className:dr})))))))};var yt=_e.forwardRef(wn),Jn=ye(12383),bn=ye(20475),ci=ye(92343),Tn=ye(38298);function tn(tt){if(typeof tt=="function")return tt;const qt=(0,Tn.Z)(tt);return qt.length<=1?qt[0]:qt}const $t=()=>{const{status:tt,errors:qt=[],warnings:dn=[]}=(0,_e.useContext)(ke.aM);return{status:tt,errors:qt,warnings:dn}};$t.Context=ke.aM;var ft=$t,Je=ye(23073);function Gt(tt){const[qt,dn]=_e.useState(tt),xt=(0,_e.useRef)(null),Ye=(0,_e.useRef)([]),an=(0,_e.useRef)(!1);_e.useEffect(()=>(an.current=!1,()=>{an.current=!0,Je.Z.cancel(xt.current),xt.current=null}),[]);function Bt(jn){an.current||(xt.current===null&&(Ye.current=[],xt.current=(0,Je.Z)(()=>{xt.current=null,dn(cn=>{let Et=cn;return Ye.current.forEach(xn=>{Et=xn(Et)}),Et})})),Ye.current.push(jn))}return[qt,Bt]}function At(){const{itemRef:tt}=_e.useContext(ke.q3),qt=_e.useRef({});function dn(xt,Ye){const an=Ye&&typeof Ye=="object"&&Ye.ref,Bt=xt.join("_");return(qt.current.name!==Bt||qt.current.originRef!==an)&&(qt.current.name=Bt,qt.current.originRef=an,qt.current.ref=(0,bn.sQ)(tt(xt),an)),qt.current.ref}return dn}var lt=ye(48886),Ge=ye(28800),Be=ye(64002),we=ye(27382),pe=ye(37028);const De=tt=>{const{formItemCls:qt}=tt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${qt}-control`]:{display:"flex"}}}};var ze=(0,wt.b)(["Form","item-item"],(tt,qt)=>{let{rootPrefixCls:dn}=qt;const xt=We(tt,dn);return[De(xt)]}),nt=tt=>{const{prefixCls:qt,status:dn,wrapperCol:xt,children:Ye,errors:an,warnings:Bt,_internalItemRender:jn,extra:cn,help:Et,fieldId:xn,marginBottom:Qn,onErrorVisibleChanged:Un}=tt,zt=`${qt}-item`,Sn=_e.useContext(ke.q3),Ci=xt||Sn.wrapperCol||{},Si=He()(`${zt}-control`,Ci.className),vi=_e.useMemo(()=>Object.assign({},Sn),[Sn]);delete vi.labelCol,delete vi.wrapperCol;const ti=_e.createElement("div",{className:`${zt}-control-input`},_e.createElement("div",{className:`${zt}-control-input-content`},Ye)),xi=_e.useMemo(()=>({prefixCls:qt,status:dn}),[qt,dn]),Ni=Qn!==null||an.length||Bt.length?_e.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},_e.createElement(ke.Rk.Provider,{value:xi},_e.createElement(Nt,{fieldId:xn,errors:an,warnings:Bt,help:Et,helpStatus:dn,className:`${zt}-explain-connected`,onVisibleChanged:Un})),!!Qn&&_e.createElement("div",{style:{width:0,height:Qn}})):null,Zi={};xn&&(Zi.id=`${xn}_extra`);const cr=cn?_e.createElement("div",Object.assign({},Zi,{className:`${zt}-extra`}),cn):null,Gn=jn&&jn.mark==="pro_table_render"&&jn.render?jn.render(tt,{input:ti,errorList:Ni,extra:cr}):_e.createElement(_e.Fragment,null,ti,Ni,cr);return _e.createElement(ke.q3.Provider,{value:vi},_e.createElement(pe.Z,Object.assign({},Ci,{className:Si}),Gn),_e.createElement(ze,{prefixCls:qt}))},Ut=ye(86902),En=ye(31724),rn=ye(9763),vn=ye(6848),mi=function(tt,qt){var dn={};for(var xt in tt)Object.prototype.hasOwnProperty.call(tt,xt)&&qt.indexOf(xt)<0&&(dn[xt]=tt[xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,xt=Object.getOwnPropertySymbols(tt);Ye<xt.length;Ye++)qt.indexOf(xt[Ye])<0&&Object.prototype.propertyIsEnumerable.call(tt,xt[Ye])&&(dn[xt[Ye]]=tt[xt[Ye]]);return dn};function wi(tt){return tt?typeof tt=="object"&&!_e.isValidElement(tt)?tt:{title:tt}:null}var Wi=tt=>{let{prefixCls:qt,label:dn,htmlFor:xt,labelCol:Ye,labelAlign:an,colon:Bt,required:jn,requiredMark:cn,tooltip:Et}=tt;var xn;const[Qn]=(0,rn.Z)("Form"),{vertical:Un,labelAlign:zt,labelCol:Sn,labelWrap:Ci,colon:Si}=_e.useContext(ke.q3);if(!dn)return null;const vi=Ye||Sn||{},ti=an||zt,xi=`${qt}-item-label`,Ni=He()(xi,ti==="left"&&`${xi}-left`,vi.className,{[`${xi}-wrap`]:!!Ci});let Zi=dn;const cr=Bt===!0||Si!==!1&&Bt!==!1;cr&&!Un&&typeof dn=="string"&&dn.trim()!==""&&(Zi=dn.replace(/[:|:]\s*$/,""));const Ai=wi(Et);if(Ai){const{icon:Xt=_e.createElement(Ut.Z,null)}=Ai,Li=mi(Ai,["icon"]),rr=_e.createElement(vn.Z,Object.assign({},Li),_e.cloneElement(Xt,{className:`${qt}-item-tooltip`,title:""}));Zi=_e.createElement(_e.Fragment,null,Zi,rr)}const br=cn==="optional",kr=typeof cn=="function";kr?Zi=cn(Zi,{required:!!jn}):br&&!jn&&(Zi=_e.createElement(_e.Fragment,null,Zi,_e.createElement("span",{className:`${qt}-item-optional`,title:""},(Qn==null?void 0:Qn.optional)||((xn=En.Z.Form)===null||xn===void 0?void 0:xn.optional))));const Sr=He()({[`${qt}-item-required`]:jn,[`${qt}-item-required-mark-optional`]:br||kr,[`${qt}-item-no-colon`]:!cr});return _e.createElement(pe.Z,Object.assign({},vi,{className:Ni}),_e.createElement("label",{htmlFor:xt,className:Sr,title:typeof dn=="string"?dn:""},Zi))},Mn=ye(79999),nr=ye(33130),Wr=ye(85404),Hr=ye(50023);const Tr={success:Mn.Z,warning:Wr.Z,error:nr.Z,validating:Hr.Z};function Fr(tt){let{children:qt,errors:dn,warnings:xt,hasFeedback:Ye,validateStatus:an,prefixCls:Bt,meta:jn,noStyle:cn}=tt;const Et=`${Bt}-item`,{feedbackIcons:xn}=_e.useContext(ke.q3),Qn=mn(dn,xt,jn,null,!!Ye,an),{isFormItemInput:Un,status:zt}=_e.useContext(ke.aM),Sn=_e.useMemo(()=>{var Ci;let Si;if(Ye){const xi=Ye!==!0&&Ye.icons||xn,Ni=Qn&&((Ci=xi==null?void 0:xi({status:Qn,errors:dn,warnings:xt}))===null||Ci===void 0?void 0:Ci[Qn]),Zi=Qn&&Tr[Qn];Si=Ni!==!1&&Zi?_e.createElement("span",{className:He()(`${Et}-feedback-icon`,`${Et}-feedback-icon-${Qn}`)},Ni||_e.createElement(Zi,null)):null}let vi=!0,ti=Qn||"";return cn&&(vi=Un,ti=(Qn!=null?Qn:zt)||""),{status:ti,errors:dn,warnings:xt,hasFeedback:!!Ye,feedbackIcon:Si,isFormItemInput:vi}},[Qn,Ye,cn,Un,zt]);return _e.createElement(ke.aM.Provider,{value:Sn},qt)}var Yr=function(tt,qt){var dn={};for(var xt in tt)Object.prototype.hasOwnProperty.call(tt,xt)&&qt.indexOf(xt)<0&&(dn[xt]=tt[xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,xt=Object.getOwnPropertySymbols(tt);Ye<xt.length;Ye++)qt.indexOf(xt[Ye])<0&&Object.prototype.propertyIsEnumerable.call(tt,xt[Ye])&&(dn[xt[Ye]]=tt[xt[Ye]]);return dn};function Kr(tt){const{prefixCls:qt,className:dn,rootClassName:xt,style:Ye,help:an,errors:Bt,warnings:jn,validateStatus:cn,meta:Et,hasFeedback:xn,hidden:Qn,children:Un,fieldId:zt,required:Sn,isRequired:Ci,onSubItemMetaChange:Si}=tt,vi=Yr(tt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),ti=`${qt}-item`,{requiredMark:xi}=_e.useContext(ke.q3),Ni=_e.useRef(null),Zi=Tt(Bt),cr=Tt(jn),Gn=an!=null,Ai=!!(Gn||Bt.length||jn.length),br=!!Ni.current&&(0,lt.Z)(Ni.current),[kr,Sr]=_e.useState(null);(0,Ge.Z)(()=>{if(Ai&&Ni.current){const Er=getComputedStyle(Ni.current);Sr(parseInt(Er.marginBottom,10))}},[Ai,br]);const Xt=Er=>{Er||Sr(null)},rr=function(){let Er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const dr=Er?Zi:Et.errors,Nr=Er?cr:Et.warnings;return mn(dr,Nr,Et,"",!!xn,cn)}(),Hi=He()(ti,dn,xt,{[`${ti}-with-help`]:Gn||Zi.length||cr.length,[`${ti}-has-feedback`]:rr&&xn,[`${ti}-has-success`]:rr==="success",[`${ti}-has-warning`]:rr==="warning",[`${ti}-has-error`]:rr==="error",[`${ti}-is-validating`]:rr==="validating",[`${ti}-hidden`]:Qn});return _e.createElement("div",{className:Hi,style:Ye,ref:Ni},_e.createElement(we.Z,Object.assign({className:`${ti}-row`},(0,Be.Z)(vi,["_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(Wi,Object.assign({htmlFor:zt},tt,{requiredMark:xi,required:Sn!=null?Sn:Ci,prefixCls:qt})),_e.createElement(nt,Object.assign({},tt,Et,{errors:Zi,warnings:cr,prefixCls:qt,status:rr,help:an,marginBottom:kr,onErrorVisibleChanged:Xt}),_e.createElement(ke.qI.Provider,{value:Si},_e.createElement(Fr,{prefixCls:qt,meta:Et,errors:Et.errors,warnings:Et.warnings,hasFeedback:xn,validateStatus:rr},Un)))),!!kr&&_e.createElement("div",{className:`${ti}-margin-offset`,style:{marginBottom:-kr}}))}const ar="__SPLIT__",Co=null,$n=_e.memo(tt=>{let{children:qt}=tt;return qt},(tt,qt)=>tt.value===qt.value&&tt.update===qt.update&&tt.childProps.length===qt.childProps.length&&tt.childProps.every((dn,xt)=>dn===qt.childProps[xt]));function Ce(tt){return tt!=null}function hi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ki(tt){const{name:qt,noStyle:dn,className:xt,dependencies:Ye,prefixCls:an,shouldUpdate:Bt,rules:jn,children:cn,required:Et,label:xn,messageVariables:Qn,trigger:Un="onChange",validateTrigger:zt,hidden:Sn,help:Ci}=tt,{getPrefixCls:Si}=_e.useContext(Ht.E_),{name:vi}=_e.useContext(ke.q3),ti=tn(cn),xi=typeof ti=="function",Ni=_e.useContext(ke.qI),{validateTrigger:Zi}=_e.useContext(qe.FieldContext),cr=zt!==void 0?zt:Zi,Gn=Ce(qt),Ai=Si("form",an),[br,kr]=Ke(Ai),Sr=_e.useContext(qe.ListContext),Xt=_e.useRef(),[Li,rr]=Gt({}),[Hi,Er]=(0,Jn.Z)(()=>hi()),dr=Ln=>{const pr=Sr==null?void 0:Sr.getKey(Ln.name);if(Er(Ln.destroy?hi():Ln,!0),dn&&Ci!==!1&&Ni){let Qr=Ln.name;if(Ln.destroy)Qr=Xt.current||Qr;else if(pr!==void 0){const[vr,Ho]=pr;Qr=[vr].concat((0,Se.Z)(Ho)),Xt.current=Qr}Ni(Ln,Qr)}},Nr=(Ln,pr)=>{rr(Qr=>{const vr=Object.assign({},Qr),co=[].concat((0,Se.Z)(Ln.name.slice(0,-1)),(0,Se.Z)(pr)).join(ar);return Ln.destroy?delete vr[co]:vr[co]=Ln,vr})},[Ti,Qi]=_e.useMemo(()=>{const Ln=(0,Se.Z)(Hi.errors),pr=(0,Se.Z)(Hi.warnings);return Object.values(Li).forEach(Qr=>{Ln.push.apply(Ln,(0,Se.Z)(Qr.errors||[])),pr.push.apply(pr,(0,Se.Z)(Qr.warnings||[]))}),[Ln,pr]},[Li,Hi.errors,Hi.warnings]),er=At();function kn(Ln,pr,Qr){return dn&&!Sn?_e.createElement(Fr,{prefixCls:Ai,hasFeedback:tt.hasFeedback,validateStatus:tt.validateStatus,meta:Hi,errors:Ti,warnings:Qi,noStyle:!0},Ln):_e.createElement(Kr,Object.assign({key:"row"},tt,{className:He()(xt,kr),prefixCls:Ai,fieldId:pr,isRequired:Qr,errors:Ti,warnings:Qi,meta:Hi,onSubItemMetaChange:Nr}),Ln)}if(!Gn&&!xi&&!Ye)return br(kn(ti));let Dr={};return typeof xn=="string"?Dr.label=xn:qt&&(Dr.label=String(qt)),Qn&&(Dr=Object.assign(Object.assign({},Dr),Qn)),br(_e.createElement(qe.Field,Object.assign({},tt,{messageVariables:Dr,trigger:Un,validateTrigger:cr,onMetaChange:dr}),(Ln,pr,Qr)=>{const vr=Mt(qt).length&&pr?pr.name:[],Ho=Pn(vr,vi),co=Et!==void 0?Et:!!(jn&&jn.some(fr=>{if(fr&&typeof fr=="object"&&fr.required&&!fr.warningOnly)return!0;if(typeof fr=="function"){const Vr=fr(Qr);return Vr&&Vr.required&&!Vr.warningOnly}return!1})),mr=Object.assign({},Ln);let hr=null;if(Array.isArray(ti)&&Gn)hr=ti;else if(!(xi&&(!(Bt||Ye)||Gn))){if(!(Ye&&!xi&&!Gn))if((0,ci.l$)(ti)){const fr=Object.assign(Object.assign({},ti.props),mr);if(fr.id||(fr.id=Ho),Ci||Ti.length>0||Qi.length>0||tt.extra){const Qe=[];(Ci||Ti.length>0)&&Qe.push(`${Ho}_help`),tt.extra&&Qe.push(`${Ho}_extra`),fr["aria-describedby"]=Qe.join(" ")}Ti.length>0&&(fr["aria-invalid"]="true"),co&&(fr["aria-required"]="true"),(0,bn.Yr)(ti)&&(fr.ref=er(vr,ti)),new Set([].concat((0,Se.Z)(Mt(Un)),(0,Se.Z)(Mt(cr)))).forEach(Qe=>{fr[Qe]=function(){for(var pt,It,sn,Hn,On,Wt=arguments.length,Nn=new Array(Wt),ai=0;ai<Wt;ai++)Nn[ai]=arguments[ai];(sn=mr[Qe])===null||sn===void 0||(pt=sn).call.apply(pt,[mr].concat(Nn)),(On=(Hn=ti.props)[Qe])===null||On===void 0||(It=On).call.apply(It,[Hn].concat(Nn))}});const Ii=[fr["aria-required"],fr["aria-invalid"],fr["aria-describedby"]];hr=_e.createElement($n,{value:mr[tt.valuePropName||"value"],update:ti,childProps:Ii},(0,ci.Tm)(ti,fr))}else xi&&(Bt||Ye)&&!Gn?hr=ti(Qr):hr=ti}return kn(hr,Ho,co)}))}const un=ki;un.useStatus=ft;var Wn=un,li=function(tt,qt){var dn={};for(var xt in tt)Object.prototype.hasOwnProperty.call(tt,xt)&&qt.indexOf(xt)<0&&(dn[xt]=tt[xt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,xt=Object.getOwnPropertySymbols(tt);Ye<xt.length;Ye++)qt.indexOf(xt[Ye])<0&&Object.prototype.propertyIsEnumerable.call(tt,xt[Ye])&&(dn[xt[Ye]]=tt[xt[Ye]]);return dn},on=tt=>{var{prefixCls:qt,children:dn}=tt,xt=li(tt,["prefixCls","children"]);const{getPrefixCls:Ye}=_e.useContext(Ht.E_),an=Ye("form",qt),Bt=_e.useMemo(()=>({prefixCls:an,status:"error"}),[an]);return _e.createElement(qe.List,Object.assign({},xt),(jn,cn,Et)=>_e.createElement(ke.Rk.Provider,{value:Bt},dn(jn.map(xn=>Object.assign(Object.assign({},xn),{fieldKey:xn.key})),cn,{errors:Et.errors,warnings:Et.warnings})))};function mt(){const{form:tt}=(0,_e.useContext)(ke.q3);return tt}const Pt=yt;Pt.Item=Wn,Pt.List=on,Pt.ErrorList=Nt,Pt.useForm=_t,Pt.useFormInstance=mt,Pt.useWatch=qe.useWatch,Pt.Provider=ke.RV,Pt.create=()=>{};var bt=Pt},8628:function(Rn,Fn,ye){"use strict";var Se=ye(59301),Oe=ye(28800),He=ye(56762),Rt=ye(69507);function _e(){let vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ke=(0,Se.useRef)({}),Tt=(0,He.Z)(),Lt=(0,Rt.ZP)();return(0,Oe.Z)(()=>{const et=Lt.subscribe(gt=>{ke.current=gt,vt&&Tt()});return()=>Lt.unsubscribe(et)},[]),ke.current}Fn.Z=_e},9432:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ge},n:function(){return ce}});var Se=ye(33130),Oe=ye(92310),He=ye.n(Oe),Rt=ye(93681),_e=ye(20475),vt=ye(59301),ke=ye(19080),Tt=ye(36355),Lt=ye(1684),et=ye(19716),gt=ye(32441),ct=ye(33234),wt=ye(59412),Me=ye(9937);function te(ve){return!!(ve.prefix||ve.suffix||ve.allowClear)}var ne=function(ve,be){var Fe={};for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&be.indexOf(Pe)<0&&(Fe[Pe]=ve[Pe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Pe=Object.getOwnPropertySymbols(ve);Ie<Pe.length;Ie++)be.indexOf(Pe[Ie])<0&&Object.prototype.propertyIsEnumerable.call(ve,Pe[Ie])&&(Fe[Pe[Ie]]=ve[Pe[Ie]]);return Fe};function ce(ve,be){if(!ve)return;ve.focus(be);const{cursor:Fe}=be||{};if(Fe){const Pe=ve.value.length;switch(Fe){case"start":ve.setSelectionRange(0,0);break;case"end":ve.setSelectionRange(Pe,Pe);break;default:ve.setSelectionRange(0,Pe);break}}}var ge=(0,vt.forwardRef)((ve,be)=>{var Fe;const{prefixCls:Pe,bordered:Ie=!0,status:We,size:Ke,disabled:Xe,onBlur:ht,onFocus:Ve,suffix:Nt,allowClear:qe,addonAfter:Ht,addonBefore:Zt,className:Yt,style:Ot,styles:Qt,rootClassName:dt,onChange:Re,classNames:Mt}=ve,Pn=ne(ve,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:mn,direction:kt,input:_t}=vt.useContext(Tt.E_),ln=mn("input",Pe),Bn=(0,vt.useRef)(null),[wn,Kn]=(0,Me.ZP)(ln),{compactSize:yt,compactItemClassnames:Jn}=(0,ct.ri)(ln,kt),bn=(0,et.Z)(ze=>{var Le;return(Le=Ke!=null?Ke:yt)!==null&&Le!==void 0?Le:ze}),ci=vt.useContext(Lt.Z),Tn=Xe!=null?Xe:ci,{status:tn,hasFeedback:$t,feedbackIcon:ft}=(0,vt.useContext)(gt.aM),Je=(0,ke.F)(tn,We),Gt=te(ve)||!!$t,At=(0,vt.useRef)(Gt);(0,vt.useEffect)(()=>{var ze;Gt&&At.current,At.current=Gt},[Gt]);const lt=(0,wt.Z)(Bn,!0),Ge=ze=>{lt(),ht==null||ht(ze)},Be=ze=>{lt(),Ve==null||Ve(ze)},we=ze=>{lt(),Re==null||Re(ze)},pe=($t||Nt)&&vt.createElement(vt.Fragment,null,Nt,$t&&ft);let De;return typeof qe=="object"&&(qe!=null&&qe.clearIcon)?De=qe:qe&&(De={clearIcon:vt.createElement(Se.Z,null)}),wn(vt.createElement(Rt.default,Object.assign({ref:(0,_e.sQ)(be,Bn),prefixCls:ln,autoComplete:_t==null?void 0:_t.autoComplete},Pn,{disabled:Tn,onBlur:Ge,onFocus:Be,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),Ot),styles:Object.assign(Object.assign({},_t==null?void 0:_t.styles),Qt),suffix:pe,allowClear:De,className:He()(Yt,dt,Jn,_t==null?void 0:_t.className),onChange:we,addonAfter:Ht&&vt.createElement(ct.BR,null,vt.createElement(gt.Ux,{override:!0,status:!0},Ht)),addonBefore:Zt&&vt.createElement(ct.BR,null,vt.createElement(gt.Ux,{override:!0,status:!0},Zt)),classNames:Object.assign(Object.assign(Object.assign({},Mt),_t==null?void 0:_t.classNames),{input:He()({[`${ln}-sm`]:bn==="small",[`${ln}-lg`]:bn==="large",[`${ln}-rtl`]:kt==="rtl",[`${ln}-borderless`]:!Ie},!Gt&&(0,ke.Z)(ln,Je),Mt==null?void 0:Mt.input,(Fe=_t==null?void 0:_t.classNames)===null||Fe===void 0?void 0:Fe.input,Kn)}),classes:{affixWrapper:He()({[`${ln}-affix-wrapper-sm`]:bn==="small",[`${ln}-affix-wrapper-lg`]:bn==="large",[`${ln}-affix-wrapper-rtl`]:kt==="rtl",[`${ln}-affix-wrapper-borderless`]:!Ie},(0,ke.Z)(`${ln}-affix-wrapper`,Je,$t),Kn),wrapper:He()({[`${ln}-group-rtl`]:kt==="rtl"},Kn),group:He()({[`${ln}-group-wrapper-sm`]:bn==="small",[`${ln}-group-wrapper-lg`]:bn==="large",[`${ln}-group-wrapper-rtl`]:kt==="rtl",[`${ln}-group-wrapper-disabled`]:Tn},(0,ke.Z)(`${ln}-group-wrapper`,Je,$t),Kn)}})))})},1643:function(Rn,Fn,ye){"use strict";var Se=ye(33130),Oe=ye(92310),He=ye.n(Oe),Rt=ye(9296),_e=ye(59301),vt=ye(19080),ke=ye(36355),Tt=ye(1684),Lt=ye(19716),et=ye(32441),gt=ye(9432),ct=ye(9937),wt=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:ve,status:be,allowClear:Fe,showCount:Pe,classNames:Ie,rootClassName:We,className:Ke}=te,Xe=wt(te,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ht,direction:Ve}=_e.useContext(ke.E_),Nt=(0,Lt.Z)(ge),qe=_e.useContext(Tt.Z),Ht=ve!=null?ve:qe,{status:Zt,hasFeedback:Yt,feedbackIcon:Ot}=_e.useContext(et.aM),Qt=(0,vt.F)(Zt,be),dt=_e.useRef(null);_e.useImperativeHandle(ne,()=>{var kt;return{resizableTextArea:(kt=dt.current)===null||kt===void 0?void 0:kt.resizableTextArea,focus:_t=>{var ln,Bn;(0,gt.n)((Bn=(ln=dt.current)===null||ln===void 0?void 0:ln.resizableTextArea)===null||Bn===void 0?void 0:Bn.textArea,_t)},blur:()=>{var _t;return(_t=dt.current)===null||_t===void 0?void 0:_t.blur()}}});const Re=ht("input",ce);let Mt;typeof Fe=="object"&&(Fe!=null&&Fe.clearIcon)?Mt=Fe:Fe&&(Mt={clearIcon:_e.createElement(Se.Z,null)});const[Pn,mn]=(0,ct.ZP)(Re);return Pn(_e.createElement(Rt.default,Object.assign({},Xe,{disabled:Ht,allowClear:Mt,className:He()(Ke,We),classes:{affixWrapper:He()(`${Re}-textarea-affix-wrapper`,{[`${Re}-affix-wrapper-rtl`]:Ve==="rtl",[`${Re}-affix-wrapper-borderless`]:!se,[`${Re}-affix-wrapper-sm`]:Nt==="small",[`${Re}-affix-wrapper-lg`]:Nt==="large",[`${Re}-textarea-show-count`]:Pe},(0,vt.Z)(`${Re}-affix-wrapper`,Qt),mn)},classNames:Object.assign(Object.assign({},Ie),{textarea:He()({[`${Re}-borderless`]:!se,[`${Re}-sm`]:Nt==="small",[`${Re}-lg`]:Nt==="large"},(0,vt.Z)(Re,Qt),mn,Ie==null?void 0:Ie.textarea)}),prefixCls:Re,suffix:Yt&&_e.createElement("span",{className:`${Re}-textarea-suffix`},Ot),showCount:Pe,ref:dt})))});Fn.Z=Me},59412:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Oe}});var Se=ye(59301);function Oe(He,Rt){const _e=(0,Se.useRef)([]),vt=()=>{_e.current.push(setTimeout(()=>{var ke,Tt,Lt,et;!((ke=He.current)===null||ke===void 0)&&ke.input&&((Tt=He.current)===null||Tt===void 0?void 0:Tt.input.getAttribute("type"))==="password"&&(!((Lt=He.current)===null||Lt===void 0)&&Lt.input.hasAttribute("value"))&&((et=He.current)===null||et===void 0||et.input.removeAttribute("value"))}))};return(0,Se.useEffect)(()=>(Rt&&vt(),()=>_e.current.forEach(ke=>{ke&&clearTimeout(ke)})),[]),vt}},92832:function(Rn,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Nt}});var Se=ye(92310),Oe=ye.n(Se),He=ye(59301),Rt=ye(36355),_e=ye(32441),vt=ye(9937),Tt=qe=>{const{getPrefixCls:Ht,direction:Zt}=(0,He.useContext)(Rt.E_),{prefixCls:Yt,className:Ot}=qe,Qt=Ht("input-group",Yt),dt=Ht("input"),[Re,Mt]=(0,vt.ZP)(dt),Pn=Oe()(Qt,{[`${Qt}-lg`]:qe.size==="large",[`${Qt}-sm`]:qe.size==="small",[`${Qt}-compact`]:qe.compact,[`${Qt}-rtl`]:Zt==="rtl"},Mt,Ot),mn=(0,He.useContext)(_e.aM),kt=(0,He.useMemo)(()=>Object.assign(Object.assign({},mn),{isFormItemInput:!1}),[mn]);return Re(He.createElement("span",{className:Pn,style:qe.style,onMouseEnter:qe.onMouseEnter,onMouseLeave:qe.onMouseLeave,onFocus:qe.onFocus,onBlur:qe.onBlur},He.createElement(_e.aM.Provider,{value:kt},qe.children)))},Lt=ye(9432),et=ye(61441),gt=ye(30631),ct=ye(64002),wt=ye(20475),Me=ye(59412),te=function(qe,Ht){var Zt={};for(var Yt in qe)Object.prototype.hasOwnProperty.call(qe,Yt)&&Ht.indexOf(Yt)<0&&(Zt[Yt]=qe[Yt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Yt=Object.getOwnPropertySymbols(qe);Ot<Yt.length;Ot++)Ht.indexOf(Yt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(qe,Yt[Ot])&&(Zt[Yt[Ot]]=qe[Yt[Ot]]);return Zt};const ne=qe=>qe?He.createElement(gt.Z,null):He.createElement(et.Z,null),ce={click:"onClick",hover:"onMouseOver"};var ge=He.forwardRef((qe,Ht)=>{const{visibilityToggle:Zt=!0}=qe,Yt=typeof Zt=="object"&&Zt.visible!==void 0,[Ot,Qt]=(0,He.useState)(()=>Yt?Zt.visible:!1),dt=(0,He.useRef)(null);He.useEffect(()=>{Yt&&Qt(Zt.visible)},[Yt,Zt]);const Re=(0,Me.Z)(dt),Mt=()=>{const{disabled:Tn}=qe;Tn||(Ot&&Re(),Qt(tn=>{var $t;const ft=!tn;return typeof Zt=="object"&&(($t=Zt.onVisibleChange)===null||$t===void 0||$t.call(Zt,ft)),ft}))},Pn=Tn=>{const{action:tn="click",iconRender:$t=ne}=qe,ft=ce[tn]||"",Je=$t(Ot),Gt={[ft]:Mt,className:`${Tn}-icon`,key:"passwordIcon",onMouseDown:At=>{At.preventDefault()},onMouseUp:At=>{At.preventDefault()}};return He.cloneElement(He.isValidElement(Je)?Je:He.createElement("span",null,Je),Gt)},{className:mn,prefixCls:kt,inputPrefixCls:_t,size:ln}=qe,Bn=te(qe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:wn}=He.useContext(Rt.E_),Kn=wn("input",_t),yt=wn("input-password",kt),Jn=Zt&&Pn(yt),bn=Oe()(yt,mn,{[`${yt}-${ln}`]:!!ln}),ci=Object.assign(Object.assign({},(0,ct.Z)(Bn,["suffix","iconRender","visibilityToggle"])),{type:Ot?"text":"password",className:bn,prefixCls:Kn,suffix:Jn});return ln&&(ci.size=ln),He.createElement(Lt.Z,Object.assign({ref:(0,wt.sQ)(Ht,dt)},ci))}),ve=ye(21970),be=ye(92343),Fe=ye(3113),Pe=ye(19716),Ie=ye(33234),We=function(qe,Ht){var Zt={};for(var Yt in qe)Object.prototype.hasOwnProperty.call(qe,Yt)&&Ht.indexOf(Yt)<0&&(Zt[Yt]=qe[Yt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Yt=Object.getOwnPropertySymbols(qe);Ot<Yt.length;Ot++)Ht.indexOf(Yt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(qe,Yt[Ot])&&(Zt[Yt[Ot]]=qe[Yt[Ot]]);return Zt},Xe=He.forwardRef((qe,Ht)=>{const{prefixCls:Zt,inputPrefixCls:Yt,className:Ot,size:Qt,suffix:dt,enterButton:Re=!1,addonAfter:Mt,loading:Pn,disabled:mn,onSearch:kt,onChange:_t,onCompositionStart:ln,onCompositionEnd:Bn}=qe,wn=We(qe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Kn,direction:yt}=He.useContext(Rt.E_),Jn=He.useRef(!1),bn=Kn("input-search",Zt),ci=Kn("input",Yt),{compactSize:Tn}=(0,Ie.ri)(bn,yt),tn=(0,Pe.Z)(nt=>{var Ut;return(Ut=Qt!=null?Qt:Tn)!==null&&Ut!==void 0?Ut:nt}),$t=He.useRef(null),ft=nt=>{nt&&nt.target&&nt.type==="click"&&kt&&kt(nt.target.value,nt,{source:"clear"}),_t&&_t(nt)},Je=nt=>{var Ut;document.activeElement===((Ut=$t.current)===null||Ut===void 0?void 0:Ut.input)&&nt.preventDefault()},Gt=nt=>{var Ut,En;kt&&kt((En=(Ut=$t.current)===null||Ut===void 0?void 0:Ut.input)===null||En===void 0?void 0:En.value,nt,{source:"input"})},At=nt=>{Jn.current||Pn||Gt(nt)},lt=typeof Re=="boolean"?He.createElement(ve.Z,null):null,Ge=`${bn}-button`;let Be;const we=Re||{},pe=we.type&&we.type.__ANT_BUTTON===!0;pe||we.type==="button"?Be=(0,be.Tm)(we,Object.assign({onMouseDown:Je,onClick:nt=>{var Ut,En;(En=(Ut=we==null?void 0:we.props)===null||Ut===void 0?void 0:Ut.onClick)===null||En===void 0||En.call(Ut,nt),Gt(nt)},key:"enterButton"},pe?{className:Ge,size:tn}:{})):Be=He.createElement(Fe.ZP,{className:Ge,type:Re?"primary":void 0,size:tn,disabled:mn,key:"enterButton",onMouseDown:Je,onClick:Gt,loading:Pn,icon:lt},Re),Mt&&(Be=[Be,(0,be.Tm)(Mt,{key:"addonAfter"})]);const De=Oe()(bn,{[`${bn}-rtl`]:yt==="rtl",[`${bn}-${tn}`]:!!tn,[`${bn}-with-button`]:!!Re},Ot),ze=nt=>{Jn.current=!0,ln==null||ln(nt)},Le=nt=>{Jn.current=!1,Bn==null||Bn(nt)};return He.createElement(Lt.Z,Object.assign({ref:(0,wt.sQ)($t,Ht),onPressEnter:At},wn,{size:tn,onCompositionStart:ze,onCompositionEnd:Le,prefixCls:ci,addonAfter:Be,suffix:dt,onChange:ft,className:De,disabled:mn}))}),ht=ye(1643);const Ve=Lt.Z;Ve.Group=Tt,Ve.Search=Xe,Ve.TextArea=ht.Z,Ve.Password=ge;var Nt=Ve},99580:function(Rn,Fn,ye){"use strict";ye.d(Fn,{D:function(){return ve},Z:function(){return Pe}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(We,Ke){return Oe.createElement(_e.Z,(0,Se.Z)({},We,{ref:Ke,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke,Lt=ye(16537),et=ye(53878),gt=ye(92310),ct=ye.n(gt),wt=ye(64002),te=Ie=>!isNaN(parseFloat(Ie))&&isFinite(Ie),ne=ye(36355),ce=ye(84966),se=function(Ie,We){var Ke={};for(var Xe in Ie)Object.prototype.hasOwnProperty.call(Ie,Xe)&&We.indexOf(Xe)<0&&(Ke[Xe]=Ie[Xe]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Xe=Object.getOwnPropertySymbols(Ie);ht<Xe.length;ht++)We.indexOf(Xe[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Xe[ht])&&(Ke[Xe[ht]]=Ie[Xe[ht]]);return Ke};const ge={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ve=Oe.createContext({}),be=(()=>{let Ie=0;return function(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ie+=1,`${We}${Ie}`}})();var Pe=Oe.forwardRef((Ie,We)=>{const{prefixCls:Ke,className:Xe,trigger:ht,children:Ve,defaultCollapsed:Nt=!1,theme:qe="dark",style:Ht={},collapsible:Zt=!1,reverseArrow:Yt=!1,width:Ot=200,collapsedWidth:Qt=80,zeroWidthTriggerStyle:dt,breakpoint:Re,onCollapse:Mt,onBreakpoint:Pn}=Ie,mn=se(Ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:kt}=(0,Oe.useContext)(ce.Gs),[_t,ln]=(0,Oe.useState)("collapsed"in Ie?Ie.collapsed:Nt),[Bn,wn]=(0,Oe.useState)(!1);(0,Oe.useEffect)(()=>{"collapsed"in Ie&&ln(Ie.collapsed)},[Ie.collapsed]);const Kn=(tn,$t)=>{"collapsed"in Ie||ln(tn),Mt==null||Mt(tn,$t)},yt=(0,Oe.useRef)();yt.current=tn=>{wn(tn.matches),Pn==null||Pn(tn.matches),_t!==tn.matches&&Kn(tn.matches,"responsive")},(0,Oe.useEffect)(()=>{function tn(ft){return yt.current(ft)}let $t;if(typeof window!="undefined"){const{matchMedia:ft}=window;if(ft&&Re&&Re in ge){$t=ft(`(max-width: ${ge[Re]})`);try{$t.addEventListener("change",tn)}catch(Je){$t.addListener(tn)}tn($t)}}return()=>{try{$t==null||$t.removeEventListener("change",tn)}catch(ft){$t==null||$t.removeListener(tn)}}},[Re]),(0,Oe.useEffect)(()=>{const tn=be("ant-sider-");return kt.addSider(tn),()=>kt.removeSider(tn)},[]);const Jn=()=>{Kn(!_t,"clickTrigger")},{getPrefixCls:bn}=(0,Oe.useContext)(ne.E_),ci=()=>{const tn=bn("layout-sider",Ke),$t=(0,wt.Z)(mn,["collapsed"]),ft=_t?Qt:Ot,Je=te(ft)?`${ft}px`:String(ft),Gt=parseFloat(String(Qt||0))===0?Oe.createElement("span",{onClick:Jn,className:ct()(`${tn}-zero-width-trigger`,`${tn}-zero-width-trigger-${Yt?"right":"left"}`),style:dt},ht||Oe.createElement(Tt,null)):null,Ge={expanded:Yt?Oe.createElement(et.Z,null):Oe.createElement(Lt.Z,null),collapsed:Yt?Oe.createElement(Lt.Z,null):Oe.createElement(et.Z,null)}[_t?"collapsed":"expanded"],Be=ht!==null?Gt||Oe.createElement("div",{className:`${tn}-trigger`,onClick:Jn,style:{width:Je}},ht||Ge):null,we=Object.assign(Object.assign({},Ht),{flex:`0 0 ${Je}`,maxWidth:Je,minWidth:Je,width:Je}),pe=ct()(tn,`${tn}-${qe}`,{[`${tn}-collapsed`]:!!_t,[`${tn}-has-trigger`]:Zt&&ht!==null&&!Gt,[`${tn}-below`]:!!Bn,[`${tn}-zero-width`]:parseFloat(Je)===0},Xe);return Oe.createElement("aside",Object.assign({className:pe},$t,{style:we,ref:We}),Oe.createElement("div",{className:`${tn}-children`},Ve),Zt||Bn&&Gt?Be:null)},Tn=Oe.useMemo(()=>({siderCollapsed:_t}),[_t]);return Oe.createElement(ve.Provider,{value:Tn},ci())})},84966:function(Rn,Fn,ye){"use strict";ye.d(Fn,{VY:function(){return ve},$_:function(){return ge},h4:function(){return se},Gs:function(){return wt},ZP:function(){return be}});var Se=ye(26390),Oe=ye(92310),He=ye.n(Oe),Rt=ye(64002),_e=ye(59301),vt=ye(36355),ke=ye(83116),Lt=Fe=>{const{componentCls:Pe,bodyBg:Ie,lightSiderBg:We,lightTriggerBg:Ke,lightTriggerColor:Xe}=Fe;return{[`${Pe}-sider-light`]:{background:We,[`${Pe}-sider-trigger`]:{color:Xe,background:Ke},[`${Pe}-sider-zero-width-trigger`]:{color:Xe,background:Ke,border:`1px solid ${Ie}`,borderInlineStart:0}}}};const et=Fe=>{const{antCls:Pe,componentCls:Ie,colorText:We,triggerColor:Ke,footerBg:Xe,triggerBg:ht,headerHeight:Ve,headerPadding:Nt,headerColor:qe,footerPadding:Ht,triggerHeight:Zt,zeroTriggerHeight:Yt,zeroTriggerWidth:Ot,motionDurationMid:Qt,motionDurationSlow:dt,fontSize:Re,borderRadius:Mt,bodyBg:Pn,headerBg:mn,siderBg:kt}=Fe;return{[Ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Pn,"&, *":{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:kt,transition:`all ${Qt}, 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:ht,cursor:"pointer",transition:`all ${Qt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ve,insetInlineEnd:-Ot,zIndex:1,width:Ot,height:Yt,color:Ke,fontSize:Fe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:kt,borderStartStartRadius:0,borderStartEndRadius:Mt,borderEndEndRadius:Mt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${dt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${dt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ot,borderStartStartRadius:Mt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Mt}}}}},Lt(Fe)),{"&-rtl":{direction:"rtl"}}),[`${Ie}-header`]:{height:Ve,padding:Nt,color:qe,lineHeight:`${Ve}px`,background:mn,[`${Pe}-menu`]:{lineHeight:"inherit"}},[`${Ie}-footer`]:{padding:Ht,color:We,fontSize:Re,background:Xe},[`${Ie}-content`]:{flex:"auto",minHeight:0}}};var gt=(0,ke.Z)("Layout",Fe=>[et(Fe)],Fe=>{const{colorBgLayout:Pe,controlHeight:Ie,controlHeightLG:We,colorText:Ke,controlHeightSM:Xe,marginXXS:ht,colorTextLightSolid:Ve,colorBgContainer:Nt}=Fe,qe=We*1.25;return{colorBgHeader:"#001529",colorBgBody:Pe,colorBgTrigger:"#002140",bodyBg:Pe,headerBg:"#001529",headerHeight:Ie*2,headerPadding:`0 ${qe}px`,headerColor:Ke,footerPadding:`${Xe}px ${qe}px`,footerBg:Pe,siderBg:"#001529",triggerHeight:We+ht*2,triggerBg:"#002140",triggerColor:Ve,zeroTriggerWidth:We,zeroTriggerHeight:We,lightSiderBg:Nt,lightTriggerBg:Nt,lightTriggerColor:Ke}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ct=function(Fe,Pe){var Ie={};for(var We in Fe)Object.prototype.hasOwnProperty.call(Fe,We)&&Pe.indexOf(We)<0&&(Ie[We]=Fe[We]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,We=Object.getOwnPropertySymbols(Fe);Ke<We.length;Ke++)Pe.indexOf(We[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Fe,We[Ke])&&(Ie[We[Ke]]=Fe[We[Ke]]);return Ie};const wt=_e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Me(Fe){let{suffixCls:Pe,tagName:Ie,displayName:We}=Fe;return Ke=>_e.forwardRef((ht,Ve)=>_e.createElement(Ke,Object.assign({ref:Ve,suffixCls:Pe,tagName:Ie},ht)))}const te=_e.forwardRef((Fe,Pe)=>{const{prefixCls:Ie,suffixCls:We,className:Ke,tagName:Xe}=Fe,ht=ct(Fe,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ve}=_e.useContext(vt.E_),Nt=Ve("layout",Ie),[qe,Ht]=gt(Nt),Zt=We?`${Nt}-${We}`:Nt;return qe(_e.createElement(Xe,Object.assign({className:He()(Ie||Zt,Ke,Ht),ref:Pe},ht)))}),ne=_e.forwardRef((Fe,Pe)=>{const{direction:Ie}=_e.useContext(vt.E_),[We,Ke]=_e.useState([]),{prefixCls:Xe,className:ht,rootClassName:Ve,children:Nt,hasSider:qe,tagName:Ht,style:Zt}=Fe,Yt=ct(Fe,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ot=(0,Rt.Z)(Yt,["suffixCls"]),{getPrefixCls:Qt,layout:dt}=_e.useContext(vt.E_),Re=Qt("layout",Xe),[Mt,Pn]=gt(Re),mn=He()(Re,{[`${Re}-has-sider`]:typeof qe=="boolean"?qe:We.length>0,[`${Re}-rtl`]:Ie==="rtl"},dt==null?void 0:dt.className,ht,Ve,Pn),kt=_e.useMemo(()=>({siderHook:{addSider:_t=>{Ke(ln=>[].concat((0,Se.Z)(ln),[_t]))},removeSider:_t=>{Ke(ln=>ln.filter(Bn=>Bn!==_t))}}}),[]);return Mt(_e.createElement(wt.Provider,{value:kt},_e.createElement(Ht,Object.assign({ref:Pe,className:mn,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Zt)},Ot),Nt)))}),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),ve=Me({suffixCls:"content",tagName:"main",displayName:"Content"})(te);var be=ce},40875:function(Rn,Fn,ye){"use strict";ye.d(Fn,{J:function(){return vt}});var Se=ye(59301),Oe=ye(33234),He=ye(80764),Rt=function(ke,Tt){var Lt={};for(var et in ke)Object.prototype.hasOwnProperty.call(ke,et)&&Tt.indexOf(et)<0&&(Lt[et]=ke[et]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(ke);gt<et.length;gt++)Tt.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(ke,et[gt])&&(Lt[et[gt]]=ke[et[gt]]);return Lt};const _e=Se.createContext(null),vt=Se.forwardRef((ke,Tt)=>{const{children:Lt}=ke,et=Rt(ke,["children"]),gt=Se.useContext(_e),ct=Se.useMemo(()=>Object.assign(Object.assign({},gt),et),[gt,et.prefixCls,et.mode,et.selectable]);return Se.createElement(_e.Provider,{value:ct},Se.createElement(Oe.BR,null,(0,He.supportNodeRef)(Lt)?Se.cloneElement(Lt,{ref:Tt}):Lt))});Fn.Z=_e},20834:function(Rn,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Tn}});var Se=ye(22798),Oe=ye(59301),He=ye(99580),Rt=ye(92310),_e=ye.n(Rt),vt=ye(36355),ke=function(tn,$t){var ft={};for(var Je in tn)Object.prototype.hasOwnProperty.call(tn,Je)&&$t.indexOf(Je)<0&&(ft[Je]=tn[Je]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Je=Object.getOwnPropertySymbols(tn);Gt<Je.length;Gt++)$t.indexOf(Je[Gt])<0&&Object.prototype.propertyIsEnumerable.call(tn,Je[Gt])&&(ft[Je[Gt]]=tn[Je[Gt]]);return ft},Lt=tn=>{const{prefixCls:$t,className:ft,dashed:Je}=tn,Gt=ke(tn,["prefixCls","className","dashed"]),{getPrefixCls:At}=Oe.useContext(vt.E_),lt=At("menu",$t),Ge=_e()({[`${lt}-item-divider-dashed`]:!!Je},ft);return Oe.createElement(Se.iz,Object.assign({className:Ge},Gt))},et=ye(38298),gt=ye(64002),ct=ye(6848),wt=ye(92343),te=(0,Oe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ce=tn=>{var $t;const{className:ft,children:Je,icon:Gt,title:At,danger:lt}=tn,{prefixCls:Ge,firstLevel:Be,direction:we,disableMenuItemTitleTooltip:pe,inlineCollapsed:De}=Oe.useContext(te),ze=vn=>{const mi=Oe.createElement("span",{className:`${Ge}-title-content`},Je);return(!Gt||(0,wt.l$)(Je)&&Je.type==="span")&&Je&&vn&&Be&&typeof Je=="string"?Oe.createElement("div",{className:`${Ge}-inline-collapsed-noicon`},Je.charAt(0)):mi},{siderCollapsed:Le}=Oe.useContext(He.D);let nt=At;typeof At=="undefined"?nt=Be?Je:"":At===!1&&(nt="");const Ut={title:nt};!Le&&!De&&(Ut.title=null,Ut.open=!1);const En=(0,et.Z)(Je).length;let rn=Oe.createElement(Se.ck,Object.assign({},(0,gt.Z)(tn,["title","icon","danger"]),{className:_e()({[`${Ge}-item-danger`]:lt,[`${Ge}-item-only-child`]:(Gt?En+1:En)===1},ft),title:typeof At=="string"?At:void 0}),(0,wt.Tm)(Gt,{className:_e()((0,wt.l$)(Gt)?($t=Gt.props)===null||$t===void 0?void 0:$t.className:"",`${Ge}-item-icon`)}),ze(De));return pe||(rn=Oe.createElement(ct.Z,Object.assign({},Ut,{placement:we==="rtl"?"left":"right",overlayClassName:`${Ge}-inline-collapsed-tooltip`}),rn)),rn},ge=tn=>{var $t;const{popupClassName:ft,icon:Je,title:Gt,theme:At}=tn,lt=Oe.useContext(te),{prefixCls:Ge,inlineCollapsed:Be,theme:we}=lt,pe=(0,Se.Xl)();let De;if(!Je)De=Be&&!pe.length&&Gt&&typeof Gt=="string"?Oe.createElement("div",{className:`${Ge}-inline-collapsed-noicon`},Gt.charAt(0)):Oe.createElement("span",{className:`${Ge}-title-content`},Gt);else{const Le=(0,wt.l$)(Gt)&&Gt.type==="span";De=Oe.createElement(Oe.Fragment,null,(0,wt.Tm)(Je,{className:_e()((0,wt.l$)(Je)?($t=Je.props)===null||$t===void 0?void 0:$t.className:"",`${Ge}-item-icon`)}),Le?Gt:Oe.createElement("span",{className:`${Ge}-title-content`},Gt))}const ze=Oe.useMemo(()=>Object.assign(Object.assign({},lt),{firstLevel:!1}),[lt]);return Oe.createElement(te.Provider,{value:ze},Oe.createElement(Se.Wd,Object.assign({},(0,gt.Z)(tn,["icon"]),{title:De,popupClassName:_e()(Ge,ft,`${Ge}-${At||we}`)})))},ve=ye(19362),be=ye(80764),Fe=ye(62892),Pe=ye(40875),Ie=function(tn,$t){var ft={};for(var Je in tn)Object.prototype.hasOwnProperty.call(tn,Je)&&$t.indexOf(Je)<0&&(ft[Je]=tn[Je]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Je=Object.getOwnPropertySymbols(tn);Gt<Je.length;Gt++)$t.indexOf(Je[Gt])<0&&Object.prototype.propertyIsEnumerable.call(tn,Je[Gt])&&(ft[Je[Gt]]=tn[Je[Gt]]);return ft};function We(tn){return(tn||[]).map(($t,ft)=>{if($t&&typeof $t=="object"){const Je=$t,{label:Gt,children:At,key:lt,type:Ge}=Je,Be=Ie(Je,["label","children","key","type"]),we=lt!=null?lt:`tmp-${ft}`;return At||Ge==="group"?Ge==="group"?Oe.createElement(Se.BW,Object.assign({key:we},Be,{title:Gt}),We(At)):Oe.createElement(ge,Object.assign({key:we},Be,{title:Gt}),We(At)):Ge==="divider"?Oe.createElement(Lt,Object.assign({key:we},Be)):Oe.createElement(ce,Object.assign({key:we},Be),Gt)}return null}).filter($t=>$t)}function Ke(tn){return Oe.useMemo(()=>tn&&We(tn),[tn])}var Xe=ye(64993),ht=ye(17313),Ve=ye(8378),Nt=ye(13826),qe=ye(29878),Ht=ye(83116),Zt=ye(37613),Ot=tn=>{const{componentCls:$t,motionDurationSlow:ft,horizontalLineHeight:Je,colorSplit:Gt,lineWidth:At,lineType:lt,itemPaddingInline:Ge}=tn;return{[`${$t}-horizontal`]:{lineHeight:Je,border:0,borderBottom:`${At}px ${lt} ${Gt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${$t}-item, ${$t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ge},[`> ${$t}-item:hover,
|
|
|
> ${$t}-item-active,
|
|
|
> ${$t}-submenu ${$t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${$t}-item, ${$t}-submenu-title`]:{transition:[`border-color ${ft}`,`background ${ft}`].join(",")},[`${$t}-submenu-arrow`]:{display:"none"}}}},dt=tn=>{let{componentCls:$t,menuArrowOffset:ft}=tn;return{[`${$t}-rtl`]:{direction:"rtl"},[`${$t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${$t}-rtl${$t}-vertical,
|
|
|
${$t}-submenu-rtl ${$t}-vertical`]:{[`${$t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ft})`},"&::after":{transform:`rotate(45deg) translateY(${ft})`}}}}};const Re=tn=>Object.assign({},(0,ht.oN)(tn));var Pn=(tn,$t)=>{const{componentCls:ft,itemColor:Je,itemSelectedColor:Gt,groupTitleColor:At,itemBg:lt,subMenuItemBg:Ge,itemSelectedBg:Be,activeBarHeight:we,activeBarWidth:pe,activeBarBorderWidth:De,motionDurationSlow:ze,motionEaseInOut:Le,motionEaseOut:nt,itemPaddingInline:Ut,motionDurationMid:En,itemHoverColor:rn,lineType:vn,colorSplit:mi,itemDisabledColor:wi,dangerItemColor:Ri,dangerItemHoverColor:Wi,dangerItemSelectedColor:Mn,dangerItemActiveBg:nr,dangerItemSelectedBg:Wr,itemHoverBg:Hr,itemActiveBg:Tr,menuSubMenuBg:Fr,horizontalItemSelectedColor:Yr,horizontalItemSelectedBg:Kr,horizontalItemBorderRadius:ar,horizontalItemHoverBg:Co,popupBg:$n}=tn;return{[`${ft}-${$t}, ${ft}-${$t} > ${ft}`]:{color:Je,background:lt,[`&${ft}-root:focus-visible`]:Object.assign({},Re(tn)),[`${ft}-item-group-title`]:{color:At},[`${ft}-submenu-selected`]:{[`> ${ft}-submenu-title`]:{color:Gt}},[`${ft}-item-disabled, ${ft}-submenu-disabled`]:{color:`${wi} !important`},[`${ft}-item:not(${ft}-item-selected):not(${ft}-submenu-selected)`]:{[`&:hover, > ${ft}-submenu-title:hover`]:{color:rn}},[`&:not(${ft}-horizontal)`]:{[`${ft}-item:not(${ft}-item-selected)`]:{"&:hover":{backgroundColor:Hr},"&:active":{backgroundColor:Tr}},[`${ft}-submenu-title`]:{"&:hover":{backgroundColor:Hr},"&:active":{backgroundColor:Tr}}},[`${ft}-item-danger`]:{color:Ri,[`&${ft}-item:hover`]:{[`&:not(${ft}-item-selected):not(${ft}-submenu-selected)`]:{color:Wi}},[`&${ft}-item:active`]:{background:nr}},[`${ft}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ft}-item-selected`]:{color:Gt,[`&${ft}-item-danger`]:{color:Mn},"a, a:hover":{color:"inherit"}},[`& ${ft}-item-selected`]:{backgroundColor:Be,[`&${ft}-item-danger`]:{backgroundColor:Wr}},[`${ft}-item, ${ft}-submenu-title`]:{[`&:not(${ft}-item-disabled):focus-visible`]:Object.assign({},Re(tn))},[`&${ft}-submenu > ${ft}`]:{backgroundColor:Fr},[`&${ft}-popup > ${ft}`]:{backgroundColor:$n},[`&${ft}-horizontal`]:Object.assign(Object.assign({},$t==="dark"?{borderBottom:0}:{}),{[`> ${ft}-item, > ${ft}-submenu`]:{top:De,marginTop:-De,marginBottom:0,borderRadius:ar,"&::after":{position:"absolute",insetInline:Ut,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${ze} ${Le}`,content:'""'},"&:hover, &-active, &-open":{background:Co,"&::after":{borderBottomWidth:we,borderBottomColor:Yr}},"&-selected":{color:Yr,backgroundColor:Kr,"&:hover":{backgroundColor:Kr},"&::after":{borderBottomWidth:we,borderBottomColor:Yr}}}}),[`&${ft}-root`]:{[`&${ft}-inline, &${ft}-vertical`]:{borderInlineEnd:`${De}px ${vn} ${mi}`}},[`&${ft}-inline`]:{[`${ft}-sub${ft}-inline`]:{background:Ge},[`${ft}-item, ${ft}-submenu-title`]:De&&pe?{width:`calc(100% + ${De}px)`}:{},[`${ft}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${pe}px solid ${Gt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${En} ${nt}`,`opacity ${En} ${nt}`].join(","),content:'""'},[`&${ft}-item-danger`]:{"&::after":{borderInlineEndColor:Mn}}},[`${ft}-selected, ${ft}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${En} ${Le}`,`opacity ${En} ${Le}`].join(",")}}}}}};const mn=tn=>{const{componentCls:$t,itemHeight:ft,itemMarginInline:Je,padding:Gt,menuArrowSize:At,marginXS:lt,itemMarginBlock:Ge}=tn,Be=Gt+At+lt;return{[`${$t}-item`]:{position:"relative",overflow:"hidden"},[`${$t}-item, ${$t}-submenu-title`]:{height:ft,lineHeight:`${ft}px`,paddingInline:Gt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Je,marginBlock:Ge,width:`calc(100% - ${Je*2}px)`},[`> ${$t}-item,
|
|
|
> ${$t}-submenu > ${$t}-submenu-title`]:{height:ft,lineHeight:`${ft}px`},[`${$t}-item-group-list ${$t}-submenu-title,
|
|
|
${$t}-submenu-title`]:{paddingInlineEnd:Be}}};var _t=tn=>{const{componentCls:$t,iconCls:ft,itemHeight:Je,colorTextLightSolid:Gt,dropdownWidth:At,controlHeightLG:lt,motionDurationMid:Ge,motionEaseOut:Be,paddingXL:we,itemMarginInline:pe,fontSizeLG:De,motionDurationSlow:ze,paddingXS:Le,boxShadowSecondary:nt,collapsedWidth:Ut,collapsedIconSize:En}=tn,rn={height:Je,lineHeight:`${Je}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[$t]:{"&-inline, &-vertical":Object.assign({[`&${$t}-root`]:{boxShadow:"none"}},mn(tn))},[`${$t}-submenu-popup`]:{[`${$t}-vertical`]:Object.assign(Object.assign({},mn(tn)),{boxShadow:nt})}},{[`${$t}-submenu-popup ${$t}-vertical${$t}-sub`]:{minWidth:At,maxHeight:`calc(100vh - ${lt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${$t}-inline`]:{width:"100%",[`&${$t}-root`]:{[`${$t}-item, ${$t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ze}`,`background ${ze}`,`padding ${Ge} ${Be}`].join(","),[`> ${$t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${$t}-sub${$t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${$t}-submenu > ${$t}-submenu-title`]:rn,[`& ${$t}-item-group-title`]:{paddingInlineStart:we}},[`${$t}-item`]:rn}},{[`${$t}-inline-collapsed`]:{width:Ut,[`&${$t}-root`]:{[`${$t}-item, ${$t}-submenu ${$t}-submenu-title`]:{[`> ${$t}-inline-collapsed-noicon`]:{fontSize:De,textAlign:"center"}}},[`> ${$t}-item,
|
|
|
> ${$t}-item-group > ${$t}-item-group-list > ${$t}-item,
|
|
|
> ${$t}-item-group > ${$t}-item-group-list > ${$t}-submenu > ${$t}-submenu-title,
|
|
|
> ${$t}-submenu > ${$t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${De/2}px - ${pe}px)`,textOverflow:"clip",[`
|
|
|
${$t}-submenu-arrow,
|
|
|
${$t}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${$t}-item-icon, ${ft}`]:{margin:0,fontSize:En,lineHeight:`${Je}px`,"+ span":{display:"inline-block",opacity:0}}},[`${$t}-item-icon, ${ft}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${$t}-item-icon, ${ft}`]:{display:"none"},"a, a:hover":{color:Gt}},[`${$t}-item-group-title`]:Object.assign(Object.assign({},ht.vS),{paddingInline:Le})}}]};const ln=tn=>{const{componentCls:$t,motionDurationSlow:ft,motionDurationMid:Je,motionEaseInOut:Gt,motionEaseOut:At,iconCls:lt,iconSize:Ge,iconMarginInlineEnd:Be}=tn;return{[`${$t}-item, ${$t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ft}`,`background ${ft}`,`padding ${ft} ${Gt}`].join(","),[`${$t}-item-icon, ${lt}`]:{minWidth:Ge,fontSize:Ge,transition:[`font-size ${Je} ${At}`,`margin ${ft} ${Gt}`,`color ${ft}`].join(","),"+ span":{marginInlineStart:Be,opacity:1,transition:[`opacity ${ft} ${Gt}`,`margin ${ft}`,`color ${ft}`].join(",")}},[`${$t}-item-icon`]:Object.assign({},(0,ht.Ro)()),[`&${$t}-item-only-child`]:{[`> ${lt}, > ${$t}-item-icon`]:{marginInlineEnd:0}}},[`${$t}-item-disabled, ${$t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${$t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Bn=tn=>{const{componentCls:$t,motionDurationSlow:ft,motionEaseInOut:Je,borderRadius:Gt,menuArrowSize:At,menuArrowOffset:lt}=tn;return{[`${$t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:tn.margin,width:At,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ft} ${Je}, opacity ${ft}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:At*.6,height:At*.15,backgroundColor:"currentcolor",borderRadius:Gt,transition:[`background ${ft} ${Je}`,`transform ${ft} ${Je}`,`top ${ft} ${Je}`,`color ${ft} ${Je}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${lt})`},"&::after":{transform:`rotate(-45deg) translateY(${lt})`}}}}},wn=tn=>{const{antCls:$t,componentCls:ft,fontSize:Je,motionDurationSlow:Gt,motionDurationMid:At,motionEaseInOut:lt,paddingXS:Ge,padding:Be,colorSplit:we,lineWidth:pe,zIndexPopup:De,borderRadiusLG:ze,subMenuItemBorderRadius:Le,menuArrowSize:nt,menuArrowOffset:Ut,lineType:En,menuPanelMaskInset:rn,groupTitleLineHeight:vn,groupTitleFontSize:mi}=tn;return[{"":{[`${ft}`]:Object.assign(Object.assign({},(0,ht.dF)()),{"&-hidden":{display:"none"}})},[`${ft}-submenu-hidden`]:{display:"none"}},{[ft]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(tn)),(0,ht.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Je,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Gt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ft}-item`]:{flex:"none"}},[`${ft}-item, ${ft}-submenu, ${ft}-submenu-title`]:{borderRadius:tn.itemBorderRadius},[`${ft}-item-group-title`]:{padding:`${Ge}px ${Be}px`,fontSize:mi,lineHeight:vn,transition:`all ${Gt}`},[`&-horizontal ${ft}-submenu`]:{transition:[`border-color ${Gt} ${lt}`,`background ${Gt} ${lt}`].join(",")},[`${ft}-submenu, ${ft}-submenu-inline`]:{transition:[`border-color ${Gt} ${lt}`,`background ${Gt} ${lt}`,`padding ${At} ${lt}`].join(",")},[`${ft}-submenu ${ft}-sub`]:{cursor:"initial",transition:[`background ${Gt} ${lt}`,`padding ${Gt} ${lt}`].join(",")},[`${ft}-title-content`]:{transition:`color ${Gt}`},[`${ft}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ft}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:En,borderWidth:0,borderTopWidth:pe,marginBlock:pe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ln(tn)),{[`${ft}-item-group`]:{[`${ft}-item-group-list`]:{margin:0,padding:0,[`${ft}-item, ${ft}-submenu-title`]:{paddingInline:`${Je*2}px ${Be}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:De,borderRadius:ze,boxShadow:"none",transformOrigin:"0 0",[`&${ft}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${rn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:rn},"\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:tn.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:tn.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:tn.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:tn.paddingXS},[`> ${ft}`]:Object.assign(Object.assign(Object.assign({borderRadius:ze},ln(tn)),Bn(tn)),{[`${ft}-item, ${ft}-submenu > ${ft}-submenu-title`]:{borderRadius:Le},[`${ft}-submenu-title::after`]:{transition:`transform ${Gt} ${lt}`}})}}),Bn(tn)),{[`&-inline-collapsed ${ft}-submenu-arrow,
|
|
|
&-inline ${ft}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ut})`},"&::after":{transform:`rotate(45deg) translateX(-${Ut})`}},[`${ft}-submenu-open${ft}-submenu-inline > ${ft}-submenu-title > ${ft}-submenu-arrow`]:{transform:`translateY(-${nt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ut})`},"&::before":{transform:`rotate(45deg) translateX(${Ut})`}}})},{[`${$t}-layout-header`]:{[ft]:{lineHeight:"inherit"}}}]};var Kn=(tn,$t)=>(0,Ht.Z)("Menu",Je=>{if($t===!1)return[];const{colorBgElevated:Gt,colorPrimary:At,colorTextLightSolid:lt,controlHeightLG:Ge,fontSize:Be,darkItemColor:we,darkDangerItemColor:pe,darkItemBg:De,darkSubMenuItemBg:ze,darkItemSelectedColor:Le,darkItemSelectedBg:nt,darkDangerItemSelectedBg:Ut,darkItemHoverBg:En,darkGroupTitleColor:rn,darkItemHoverColor:vn,darkItemDisabledColor:mi,darkDangerItemHoverColor:wi,darkDangerItemSelectedColor:Ri,darkDangerItemActiveBg:Wi}=Je,Mn=Be/7*5,nr=(0,Zt.TS)(Je,{menuArrowSize:Mn,menuHorizontalHeight:Ge*1.15,menuArrowOffset:`${Mn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Gt}),Wr=(0,Zt.TS)(nr,{itemColor:we,itemHoverColor:vn,groupTitleColor:rn,itemSelectedColor:Le,itemBg:De,popupBg:De,subMenuItemBg:ze,itemActiveBg:"transparent",itemSelectedBg:nt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:En,itemDisabledColor:mi,dangerItemColor:pe,dangerItemHoverColor:wi,dangerItemSelectedColor:Ri,dangerItemActiveBg:Wi,dangerItemSelectedBg:Ut,menuSubMenuBg:ze,horizontalItemSelectedColor:lt,horizontalItemSelectedBg:At});return[wn(nr),Ot(nr),_t(nr),Pn(nr,"light"),Pn(Wr,"dark"),dt(nr),(0,Ve.Z)(nr),(0,Nt.oN)(nr,"slide-up"),(0,Nt.oN)(nr,"slide-down"),(0,qe._y)(nr,"zoom-big")]},Je=>{const{colorPrimary:Gt,colorError:At,colorTextDisabled:lt,colorErrorBg:Ge,colorText:Be,colorTextDescription:we,colorBgContainer:pe,colorFillAlter:De,colorFillContent:ze,lineWidth:Le,lineWidthBold:nt,controlItemBgActive:Ut,colorBgTextHover:En,controlHeightLG:rn,lineHeight:vn,colorBgElevated:mi,marginXXS:wi,padding:Ri,fontSize:Wi,controlHeightSM:Mn,fontSizeLG:nr,colorTextLightSolid:Wr,colorErrorHover:Hr}=Je,Tr=new Xe.C(Wr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Je.zIndexPopupBase+50,radiusItem:Je.borderRadiusLG,itemBorderRadius:Je.borderRadiusLG,radiusSubMenuItem:Je.borderRadiusSM,subMenuItemBorderRadius:Je.borderRadiusSM,colorItemText:Be,itemColor:Be,colorItemTextHover:Be,itemHoverColor:Be,colorItemTextHoverHorizontal:Gt,horizontalItemHoverColor:Gt,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Gt,itemSelectedColor:Gt,colorItemTextSelectedHorizontal:Gt,horizontalItemSelectedColor:Gt,colorItemBg:pe,itemBg:pe,colorItemBgHover:En,itemHoverBg:En,colorItemBgActive:ze,itemActiveBg:Ut,colorSubItemBg:De,subMenuItemBg:De,colorItemBgSelected:Ut,itemSelectedBg:Ut,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:nt,activeBarHeight:nt,colorActiveBarBorderSize:Le,activeBarBorderWidth:Le,colorItemTextDisabled:lt,itemDisabledColor:lt,colorDangerItemText:At,dangerItemColor:At,colorDangerItemTextHover:At,dangerItemHoverColor:At,colorDangerItemTextSelected:At,dangerItemSelectedColor:At,colorDangerItemBgActive:Ge,dangerItemActiveBg:Ge,colorDangerItemBgSelected:Ge,dangerItemSelectedBg:Ge,itemMarginInline:Je.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:rn,groupTitleLineHeight:vn,collapsedWidth:rn*2,popupBg:mi,itemMarginBlock:wi,itemPaddingInline:Ri,horizontalLineHeight:`${rn*1.15}px`,iconSize:Wi,iconMarginInlineEnd:Mn-Wi,collapsedIconSize:nr,groupTitleFontSize:Wi,darkItemDisabledColor:new Xe.C(Wr).setAlpha(.25).toRgbString(),darkItemColor:Tr,darkDangerItemColor:At,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Wr,darkItemSelectedBg:Gt,darkDangerItemSelectedBg:At,darkItemHoverBg:"transparent",darkGroupTitleColor:Tr,darkItemHoverColor:Wr,darkDangerItemHoverColor:Hr,darkDangerItemSelectedColor:Wr,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"]]})(tn),yt=function(tn,$t){var ft={};for(var Je in tn)Object.prototype.hasOwnProperty.call(tn,Je)&&$t.indexOf(Je)<0&&(ft[Je]=tn[Je]);if(tn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Je=Object.getOwnPropertySymbols(tn);Gt<Je.length;Gt++)$t.indexOf(Je[Gt])<0&&Object.prototype.propertyIsEnumerable.call(tn,Je[Gt])&&(ft[Je[Gt]]=tn[Je[Gt]]);return ft},bn=(0,Oe.forwardRef)((tn,$t)=>{var ft,Je;const Gt=Oe.useContext(Pe.Z),At=Gt||{},{getPrefixCls:lt,getPopupContainer:Ge,direction:Be,menu:we}=Oe.useContext(vt.E_),pe=lt(),{prefixCls:De,className:ze,style:Le,theme:nt="light",expandIcon:Ut,_internalDisableMenuItemTitleTooltip:En,inlineCollapsed:rn,siderCollapsed:vn,items:mi,children:wi,rootClassName:Ri,mode:Wi,selectable:Mn,onClick:nr,overflowedIndicatorPopupClassName:Wr}=tn,Hr=yt(tn,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Tr=(0,gt.Z)(Hr,["collapsedWidth"]),Fr=Ke(mi)||wi;(ft=At.validator)===null||ft===void 0||ft.call(At,{mode:Wi});const Yr=(0,be.useEvent)(function(){var fn;nr==null||nr.apply(void 0,arguments),(fn=At.onClick)===null||fn===void 0||fn.call(At)}),Kr=At.mode||Wi,ar=Mn!=null?Mn:At.selectable,Co=Oe.useMemo(()=>vn!==void 0?vn:rn,[rn,vn]),$n={horizontal:{motionName:`${pe}-slide-up`},inline:(0,Fe.Z)(pe),other:{motionName:`${pe}-zoom-big`}},Ce=lt("menu",De||At.prefixCls),[hi,ki]=Kn(Ce,!Gt),un=_e()(`${Ce}-${nt}`,we==null?void 0:we.className,ze);let Wn;if(typeof Ut=="function")Wn=Ut;else if(Ut===null||Ut===!1)Wn=null;else if(At.expandIcon===null||At.expandIcon===!1)Wn=null;else{const fn=Ut!=null?Ut:At.expandIcon;Wn=(0,wt.Tm)(fn,{className:_e()(`${Ce}-submenu-expand-icon`,(0,wt.l$)(fn)?(Je=fn.props)===null||Je===void 0?void 0:Je.className:"")})}const li=Oe.useMemo(()=>({prefixCls:Ce,inlineCollapsed:Co||!1,direction:Be,firstLevel:!0,theme:nt,mode:Kr,disableMenuItemTitleTooltip:En}),[Ce,Co,Be,En,nt]);return hi(Oe.createElement(Pe.Z.Provider,{value:null},Oe.createElement(te.Provider,{value:li},Oe.createElement(Se.ZP,Object.assign({getPopupContainer:Ge,overflowedIndicator:Oe.createElement(ve.Z,null),overflowedIndicatorPopupClassName:_e()(Ce,`${Ce}-${nt}`,Wr),mode:Kr,selectable:ar,onClick:Yr},Tr,{inlineCollapsed:Co,style:Object.assign(Object.assign({},we==null?void 0:we.style),Le),className:un,prefixCls:Ce,direction:Be,defaultMotions:$n,expandIcon:Wn,ref:$t,rootClassName:_e()(Ri,ki)}),Fr))))});const ci=(0,Oe.forwardRef)((tn,$t)=>{const ft=(0,Oe.useRef)(null),Je=Oe.useContext(He.D);return(0,Oe.useImperativeHandle)($t,()=>({menu:ft.current,focus:Gt=>{var At;(At=ft.current)===null||At===void 0||At.focus(Gt)}})),Oe.createElement(bn,Object.assign({ref:ft},tn,Je))});ci.Item=ce,ci.SubMenu=ge,ci.Divider=Lt,ci.ItemGroup=Se.BW;var Tn=ci},25700:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return At}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(Ge,Be){return Oe.createElement(_e.Z,(0,Se.Z)({},Ge,{ref:Be,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke,Lt=ye(93343),et=ye(16537),gt=ye(53878),ct=ye(92310),wt=ye.n(ct),Me=ye(80962),te=ye(57259),ne=ye(79545),ce=ye(68550),se=ye(17928),ge=ye(7711),ve=ye(36994),be={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Fe=be,Pe=ye(91735),Ie=function(lt){(0,se.Z)(Be,lt);var Ge=(0,ge.Z)(Be);function Be(){var we;(0,ne.Z)(this,Be);for(var pe=arguments.length,De=new Array(pe),ze=0;ze<pe;ze++)De[ze]=arguments[ze];return we=Ge.call.apply(Ge,[this].concat(De)),we.state={goInputText:""},we.getValidValue=function(){var Le=we.state.goInputText;return!Le||Number.isNaN(Le)?void 0:Number(Le)},we.buildOptionText=function(Le){return"".concat(Le," ").concat(we.props.locale.items_per_page)},we.changeSize=function(Le){we.props.changeSize(Number(Le))},we.handleChange=function(Le){we.setState({goInputText:Le.target.value})},we.handleBlur=function(Le){var nt=we.props,Ut=nt.goButton,En=nt.quickGo,rn=nt.rootPrefixCls,vn=we.state.goInputText;Ut||vn===""||(we.setState({goInputText:""}),!(Le.relatedTarget&&(Le.relatedTarget.className.indexOf("".concat(rn,"-item-link"))>=0||Le.relatedTarget.className.indexOf("".concat(rn,"-item"))>=0))&&En(we.getValidValue()))},we.go=function(Le){var nt=we.state.goInputText;nt!==""&&(Le.keyCode===Fe.ENTER||Le.type==="click")&&(we.setState({goInputText:""}),we.props.quickGo(we.getValidValue()))},we}return(0,ce.Z)(Be,[{key:"getPageSizeOptions",value:function(){var pe=this.props,De=pe.pageSize,ze=pe.pageSizeOptions;return ze.some(function(Le){return Le.toString()===De.toString()})?ze:ze.concat([De.toString()]).sort(function(Le,nt){var Ut=Number.isNaN(Number(Le))?0:Number(Le),En=Number.isNaN(Number(nt))?0:Number(nt);return Ut-En})}},{key:"render",value:function(){var pe=this,De=this.props,ze=De.pageSize,Le=De.locale,nt=De.rootPrefixCls,Ut=De.changeSize,En=De.quickGo,rn=De.goButton,vn=De.selectComponentClass,mi=De.buildOptionText,wi=De.selectPrefixCls,Ri=De.disabled,Wi=this.state.goInputText,Mn="".concat(nt,"-options"),nr=vn,Wr=null,Hr=null,Tr=null;if(!Ut&&!En)return null;var Fr=this.getPageSizeOptions();if(Ut&&nr){var Yr=Fr.map(function(Kr,ar){return Oe.createElement(nr.Option,{key:ar,value:Kr.toString()},(mi||pe.buildOptionText)(Kr))});Wr=Oe.createElement(nr,{disabled:Ri,prefixCls:wi,showSearch:!1,className:"".concat(Mn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(ze||Fr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ar){return ar.parentNode},"aria-label":Le.page_size,defaultOpen:!1},Yr)}return En&&(rn&&(Tr=typeof rn=="boolean"?Oe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ri,className:"".concat(Mn,"-quick-jumper-button")},Le.jump_to_confirm):Oe.createElement("span",{onClick:this.go,onKeyUp:this.go},rn)),Hr=Oe.createElement("div",{className:"".concat(Mn,"-quick-jumper")},Le.jump_to,Oe.createElement("input",{disabled:Ri,type:"text",value:Wi,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Le.page}),Le.page,Tr)),Oe.createElement("li",{className:"".concat(Mn)},Wr,Hr)}}]),Be}(Oe.Component);Ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var We=Ie,Ke=function(Ge){var Be,we=Ge.rootPrefixCls,pe=Ge.page,De=Ge.active,ze=Ge.className,Le=Ge.showTitle,nt=Ge.onClick,Ut=Ge.onKeyPress,En=Ge.itemRender,rn="".concat(we,"-item"),vn=wt()(rn,"".concat(rn,"-").concat(pe),(Be={},(0,Me.Z)(Be,"".concat(rn,"-active"),De),(0,Me.Z)(Be,"".concat(rn,"-disabled"),!pe),(0,Me.Z)(Be,Ge.className,ze),Be)),mi=function(){nt(pe)},wi=function(Mn){Ut(Mn,nt,pe)},Ri=En(pe,"page",Oe.createElement("a",{rel:"nofollow"},pe));return Ri?Oe.createElement("li",{title:Le?pe.toString():null,className:vn,onClick:mi,onKeyPress:wi,tabIndex:0},Ri):null},Xe=Ke;function ht(){}function Ve(lt){var Ge=Number(lt);return typeof Ge=="number"&&!Number.isNaN(Ge)&&isFinite(Ge)&&Math.floor(Ge)===Ge}var Nt=function(Ge,Be,we){return we};function qe(lt,Ge,Be){var we=typeof lt=="undefined"?Ge.pageSize:lt;return Math.floor((Be.total-1)/we)+1}var Ht=function(lt){(0,se.Z)(Be,lt);var Ge=(0,ge.Z)(Be);function Be(we){var pe;(0,ne.Z)(this,Be),pe=Ge.call(this,we),pe.paginationNode=Oe.createRef(),pe.getJumpPrevPage=function(){return Math.max(1,pe.state.current-(pe.props.showLessItems?3:5))},pe.getJumpNextPage=function(){return Math.min(qe(void 0,pe.state,pe.props),pe.state.current+(pe.props.showLessItems?3:5))},pe.getItemIcon=function(Ut,En){var rn=pe.props.prefixCls,vn=Ut||Oe.createElement("button",{type:"button","aria-label":En,className:"".concat(rn,"-item-link")});return typeof Ut=="function"&&(vn=Oe.createElement(Ut,(0,te.Z)({},pe.props))),vn},pe.isValid=function(Ut){var En=pe.props.total;return Ve(Ut)&&Ut!==pe.state.current&&Ve(En)&&En>0},pe.shouldDisplayQuickJumper=function(){var Ut=pe.props,En=Ut.showQuickJumper,rn=Ut.total,vn=pe.state.pageSize;return rn<=vn?!1:En},pe.handleKeyDown=function(Ut){(Ut.keyCode===Fe.ARROW_UP||Ut.keyCode===Fe.ARROW_DOWN)&&Ut.preventDefault()},pe.handleKeyUp=function(Ut){var En=pe.getValidValue(Ut),rn=pe.state.currentInputValue;En!==rn&&pe.setState({currentInputValue:En}),Ut.keyCode===Fe.ENTER?pe.handleChange(En):Ut.keyCode===Fe.ARROW_UP?pe.handleChange(En-1):Ut.keyCode===Fe.ARROW_DOWN&&pe.handleChange(En+1)},pe.handleBlur=function(Ut){var En=pe.getValidValue(Ut);pe.handleChange(En)},pe.changePageSize=function(Ut){var En=pe.state.current,rn=qe(Ut,pe.state,pe.props);En=En>rn?rn:En,rn===0&&(En=pe.state.current),typeof Ut=="number"&&("pageSize"in pe.props||pe.setState({pageSize:Ut}),"current"in pe.props||pe.setState({current:En,currentInputValue:En})),pe.props.onShowSizeChange(En,Ut),"onChange"in pe.props&&pe.props.onChange&&pe.props.onChange(En,Ut)},pe.handleChange=function(Ut){var En=pe.props,rn=En.disabled,vn=En.onChange,mi=pe.state,wi=mi.pageSize,Ri=mi.current,Wi=mi.currentInputValue;if(pe.isValid(Ut)&&!rn){var Mn=qe(void 0,pe.state,pe.props),nr=Ut;return Ut>Mn?nr=Mn:Ut<1&&(nr=1),"current"in pe.props||pe.setState({current:nr}),nr!==Wi&&pe.setState({currentInputValue:nr}),vn(nr,wi),nr}return Ri},pe.prev=function(){pe.hasPrev()&&pe.handleChange(pe.state.current-1)},pe.next=function(){pe.hasNext()&&pe.handleChange(pe.state.current+1)},pe.jumpPrev=function(){pe.handleChange(pe.getJumpPrevPage())},pe.jumpNext=function(){pe.handleChange(pe.getJumpNextPage())},pe.hasPrev=function(){return pe.state.current>1},pe.hasNext=function(){return pe.state.current<qe(void 0,pe.state,pe.props)},pe.runIfEnter=function(Ut,En){if(Ut.key==="Enter"||Ut.charCode===13){for(var rn=arguments.length,vn=new Array(rn>2?rn-2:0),mi=2;mi<rn;mi++)vn[mi-2]=arguments[mi];En.apply(void 0,vn)}},pe.runIfEnterPrev=function(Ut){pe.runIfEnter(Ut,pe.prev)},pe.runIfEnterNext=function(Ut){pe.runIfEnter(Ut,pe.next)},pe.runIfEnterJumpPrev=function(Ut){pe.runIfEnter(Ut,pe.jumpPrev)},pe.runIfEnterJumpNext=function(Ut){pe.runIfEnter(Ut,pe.jumpNext)},pe.handleGoTO=function(Ut){(Ut.keyCode===Fe.ENTER||Ut.type==="click")&&pe.handleChange(pe.state.currentInputValue)},pe.renderPrev=function(Ut){var En=pe.props,rn=En.prevIcon,vn=En.itemRender,mi=vn(Ut,"prev",pe.getItemIcon(rn,"prev page")),wi=!pe.hasPrev();return(0,Oe.isValidElement)(mi)?(0,Oe.cloneElement)(mi,{disabled:wi}):mi},pe.renderNext=function(Ut){var En=pe.props,rn=En.nextIcon,vn=En.itemRender,mi=vn(Ut,"next",pe.getItemIcon(rn,"next page")),wi=!pe.hasNext();return(0,Oe.isValidElement)(mi)?(0,Oe.cloneElement)(mi,{disabled:wi}):mi};var De=we.onChange!==ht,ze="current"in we;ze&&!De&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Le=we.defaultCurrent;"current"in we&&(Le=we.current);var nt=we.defaultPageSize;return"pageSize"in we&&(nt=we.pageSize),Le=Math.min(Le,qe(nt,void 0,we)),pe.state={current:Le,currentInputValue:Le,pageSize:nt},pe}return(0,ce.Z)(Be,[{key:"componentDidUpdate",value:function(pe,De){var ze=this.props.prefixCls;if(De.current!==this.state.current&&this.paginationNode.current){var Le=this.paginationNode.current.querySelector(".".concat(ze,"-item-").concat(De.current));if(Le&&document.activeElement===Le){var nt;Le==null||(nt=Le.blur)===null||nt===void 0||nt.call(Le)}}}},{key:"getValidValue",value:function(pe){var De=pe.target.value,ze=qe(void 0,this.state,this.props),Le=this.state.currentInputValue,nt;return De===""?nt=De:Number.isNaN(Number(De))?nt=Le:De>=ze?nt=ze:nt=Number(De),nt}},{key:"getShowSizeChanger",value:function(){var pe=this.props,De=pe.showSizeChanger,ze=pe.total,Le=pe.totalBoundaryShowSizeChanger;return typeof De!="undefined"?De:ze>Le}},{key:"render",value:function(){var pe=this.props,De=pe.prefixCls,ze=pe.className,Le=pe.style,nt=pe.disabled,Ut=pe.hideOnSinglePage,En=pe.total,rn=pe.locale,vn=pe.showQuickJumper,mi=pe.showLessItems,wi=pe.showTitle,Ri=pe.showTotal,Wi=pe.simple,Mn=pe.itemRender,nr=pe.showPrevNextJumpers,Wr=pe.jumpPrevIcon,Hr=pe.jumpNextIcon,Tr=pe.selectComponentClass,Fr=pe.selectPrefixCls,Yr=pe.pageSizeOptions,Kr=this.state,ar=Kr.current,Co=Kr.pageSize,$n=Kr.currentInputValue;if(Ut===!0&&En<=Co)return null;var Ce=qe(void 0,this.state,this.props),hi=[],ki=null,un=null,Wn=null,li=null,fn=null,on=vn&&vn.goButton,mt=mi?1:2,Pt=ar-1>0?ar-1:0,bt=ar+1<Ce?ar+1:Ce,tt=(0,ve.Z)(this.props,{aria:!0,data:!0}),qt=Ri&&Oe.createElement("li",{className:"".concat(De,"-total-text")},Ri(En,[En===0?0:(ar-1)*Co+1,ar*Co>En?En:ar*Co]));if(Wi){on&&(typeof on=="boolean"?fn=Oe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},rn.jump_to_confirm):fn=Oe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},on),fn=Oe.createElement("li",{title:wi?"".concat(rn.jump_to).concat(ar,"/").concat(Ce):null,className:"".concat(De,"-simple-pager")},fn));var dn=this.renderPrev(Pt);return Oe.createElement("ul",(0,Se.Z)({className:wt()(De,"".concat(De,"-simple"),(0,Me.Z)({},"".concat(De,"-disabled"),nt),ze),style:Le,ref:this.paginationNode},tt),qt,dn?Oe.createElement("li",{title:wi?rn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:wt()("".concat(De,"-prev"),(0,Me.Z)({},"".concat(De,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},dn):null,Oe.createElement("li",{title:wi?"".concat(ar,"/").concat(Ce):null,className:"".concat(De,"-simple-pager")},Oe.createElement("input",{type:"text",value:$n,disabled:nt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Oe.createElement("span",{className:"".concat(De,"-slash")},"/"),Ce),Oe.createElement("li",{title:wi?rn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:wt()("".concat(De,"-next"),(0,Me.Z)({},"".concat(De,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(bt)),fn)}if(Ce<=3+mt*2){var xt={locale:rn,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:wi,itemRender:Mn};Ce||hi.push(Oe.createElement(Xe,(0,Se.Z)({},xt,{key:"noPager",page:1,className:"".concat(De,"-item-disabled")})));for(var Ye=1;Ye<=Ce;Ye+=1){var an=ar===Ye;hi.push(Oe.createElement(Xe,(0,Se.Z)({},xt,{key:Ye,page:Ye,active:an})))}}else{var Bt=mi?rn.prev_3:rn.prev_5,jn=mi?rn.next_3:rn.next_5,cn=Mn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Wr,"prev page")),Et=Mn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Hr,"next page"));nr&&(ki=cn?Oe.createElement("li",{title:wi?Bt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:wt()("".concat(De,"-jump-prev"),(0,Me.Z)({},"".concat(De,"-jump-prev-custom-icon"),!!Wr))},cn):null,un=Et?Oe.createElement("li",{title:wi?jn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:wt()("".concat(De,"-jump-next"),(0,Me.Z)({},"".concat(De,"-jump-next-custom-icon"),!!Hr))},Et):null),li=Oe.createElement(Xe,{locale:rn,last:!0,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ce,page:Ce,active:!1,showTitle:wi,itemRender:Mn}),Wn=Oe.createElement(Xe,{locale:rn,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:wi,itemRender:Mn});var xn=Math.max(1,ar-mt),Qn=Math.min(ar+mt,Ce);ar-1<=mt&&(Qn=1+mt*2),Ce-ar<=mt&&(xn=Ce-mt*2);for(var Un=xn;Un<=Qn;Un+=1){var zt=ar===Un;hi.push(Oe.createElement(Xe,{locale:rn,rootPrefixCls:De,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Un,page:Un,active:zt,showTitle:wi,itemRender:Mn}))}ar-1>=mt*2&&ar!==3&&(hi[0]=(0,Oe.cloneElement)(hi[0],{className:"".concat(De,"-item-after-jump-prev")}),hi.unshift(ki)),Ce-ar>=mt*2&&ar!==Ce-2&&(hi[hi.length-1]=(0,Oe.cloneElement)(hi[hi.length-1],{className:"".concat(De,"-item-before-jump-next")}),hi.push(un)),xn!==1&&hi.unshift(Wn),Qn!==Ce&&hi.push(li)}var Sn=!this.hasPrev()||!Ce,Ci=!this.hasNext()||!Ce,Si=this.renderPrev(Pt),vi=this.renderNext(bt);return Oe.createElement("ul",(0,Se.Z)({className:wt()(De,ze,(0,Me.Z)({},"".concat(De,"-disabled"),nt)),style:Le,ref:this.paginationNode},tt),qt,Si?Oe.createElement("li",{title:wi?rn.prev_page:null,onClick:this.prev,tabIndex:Sn?null:0,onKeyPress:this.runIfEnterPrev,className:wt()("".concat(De,"-prev"),(0,Me.Z)({},"".concat(De,"-disabled"),Sn)),"aria-disabled":Sn},Si):null,hi,vi?Oe.createElement("li",{title:wi?rn.next_page:null,onClick:this.next,tabIndex:Ci?null:0,onKeyPress:this.runIfEnterNext,className:wt()("".concat(De,"-next"),(0,Me.Z)({},"".concat(De,"-disabled"),Ci)),"aria-disabled":Ci},vi):null,Oe.createElement(We,{disabled:nt,locale:rn,rootPrefixCls:De,selectComponentClass:Tr,selectPrefixCls:Fr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ar,pageSize:Co,pageSizeOptions:Yr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:on}))}}],[{key:"getDerivedStateFromProps",value:function(pe,De){var ze={};if("current"in pe&&(ze.current=pe.current,pe.current!==De.current&&(ze.currentInputValue=ze.current)),"pageSize"in pe&&pe.pageSize!==De.pageSize){var Le=De.current,nt=qe(pe.pageSize,De,pe);Le=Le>nt?nt:Le,"current"in pe||(ze.current=Le,ze.currentInputValue=Le),ze.pageSize=pe.pageSize}return ze}}]),Be}(Oe.Component);Ht.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:ht,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ht,locale:Pe.Z,style:{},itemRender:Nt,totalBoundaryShowSizeChanger:50};var Zt=Ht,Yt=ye(22075),Ot=ye(36355),Qt=ye(19716),dt=ye(8628),Re=ye(9763),Mt=ye(57809);const Pn=lt=>Oe.createElement(Mt.default,Object.assign({},lt,{showSearch:!0,size:"small"})),mn=lt=>Oe.createElement(Mt.default,Object.assign({},lt,{showSearch:!0,size:"middle"}));Pn.Option=Mt.default.Option,mn.Option=Mt.default.Option;var kt=ye(9937),_t=ye(17313),ln=ye(83116),Bn=ye(37613);const wn=lt=>{const{componentCls:Ge}=lt;return{[`${Ge}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ge}-item-link`]:{color:lt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ge}-item-link`]:{color:lt.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ge}-disabled`]:{cursor:"not-allowed",[`${Ge}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:lt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:lt.colorBorder,backgroundColor:lt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:lt.itemActiveBgDisabled},a:{color:lt.itemActiveColorDisabled}}},[`${Ge}-item-link`]:{color:lt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ge}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ge}-simple-pager`]:{color:lt.colorTextDisabled},[`${Ge}-jump-prev, ${Ge}-jump-next`]:{[`${Ge}-item-link-icon`]:{opacity:0},[`${Ge}-item-ellipsis`]:{opacity:1}}},[`&${Ge}-simple`]:{[`${Ge}-prev, ${Ge}-next`]:{[`&${Ge}-disabled ${Ge}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Kn=lt=>{const{componentCls:Ge}=lt;return{[`&${Ge}-mini ${Ge}-total-text, &${Ge}-mini ${Ge}-simple-pager`]:{height:lt.itemSizeSM,lineHeight:`${lt.itemSizeSM}px`},[`&${Ge}-mini ${Ge}-item`]:{minWidth:lt.itemSizeSM,height:lt.itemSizeSM,margin:0,lineHeight:`${lt.itemSizeSM-2}px`},[`&${Ge}-mini:not(${Ge}-disabled) ${Ge}-item:not(${Ge}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:lt.colorBgTextHover},"&:active":{backgroundColor:lt.colorBgTextActive}},[`&${Ge}-mini ${Ge}-prev, &${Ge}-mini ${Ge}-next`]:{minWidth:lt.itemSizeSM,height:lt.itemSizeSM,margin:0,lineHeight:`${lt.itemSizeSM}px`},[`&${Ge}-mini:not(${Ge}-disabled)`]:{[`${Ge}-prev, ${Ge}-next`]:{[`&:hover ${Ge}-item-link`]:{backgroundColor:lt.colorBgTextHover},[`&:active ${Ge}-item-link`]:{backgroundColor:lt.colorBgTextActive},[`&${Ge}-disabled:hover ${Ge}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Ge}-mini ${Ge}-prev ${Ge}-item-link,
|
|
|
&${Ge}-mini ${Ge}-next ${Ge}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:lt.itemSizeSM,lineHeight:`${lt.itemSizeSM}px`}},[`&${Ge}-mini ${Ge}-jump-prev, &${Ge}-mini ${Ge}-jump-next`]:{height:lt.itemSizeSM,marginInlineEnd:0,lineHeight:`${lt.itemSizeSM}px`},[`&${Ge}-mini ${Ge}-options`]:{marginInlineStart:lt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:lt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:lt.itemSizeSM,lineHeight:`${lt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,kt.x0)(lt)),{width:lt.paginationMiniQuickJumperInputWidth,height:lt.controlHeightSM})}}}},yt=lt=>{const{componentCls:Ge}=lt;return{[`
|
|
|
&${Ge}-simple ${Ge}-prev,
|
|
|
&${Ge}-simple ${Ge}-next
|
|
|
`]:{height:lt.itemSizeSM,lineHeight:`${lt.itemSizeSM}px`,verticalAlign:"top",[`${Ge}-item-link`]:{height:lt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:lt.colorBgTextHover},"&:active":{backgroundColor:lt.colorBgTextActive},"&::after":{height:lt.itemSizeSM,lineHeight:`${lt.itemSizeSM}px`}}},[`&${Ge}-simple ${Ge}-simple-pager`]:{display:"inline-block",height:lt.itemSizeSM,marginInlineEnd:lt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:lt.marginXS,padding:`0 ${lt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:lt.itemInputBg,border:`${lt.lineWidth}px ${lt.lineType} ${lt.colorBorder}`,borderRadius:lt.borderRadius,outline:"none",transition:`border-color ${lt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:lt.colorPrimary},"&:focus":{borderColor:lt.colorPrimaryHover,boxShadow:`${lt.inputOutlineOffset}px 0 ${lt.controlOutlineWidth}px ${lt.controlOutline}`},"&[disabled]":{color:lt.colorTextDisabled,backgroundColor:lt.colorBgContainerDisabled,borderColor:lt.colorBorder,cursor:"not-allowed"}}}}},Jn=lt=>{const{componentCls:Ge}=lt;return{[`${Ge}-jump-prev, ${Ge}-jump-next`]:{outline:0,[`${Ge}-item-container`]:{position:"relative",[`${Ge}-item-link-icon`]:{color:lt.colorPrimary,fontSize:lt.fontSizeSM,opacity:0,transition:`all ${lt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ge}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:lt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:lt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:lt.paginationEllipsisTextIndent,opacity:1,transition:`all ${lt.motionDurationMid}`}},"&:hover":{[`${Ge}-item-link-icon`]:{opacity:1},[`${Ge}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Ge}-prev,
|
|
|
${Ge}-jump-prev,
|
|
|
${Ge}-jump-next
|
|
|
`]:{marginInlineEnd:lt.marginXS},[`
|
|
|
${Ge}-prev,
|
|
|
${Ge}-next,
|
|
|
${Ge}-jump-prev,
|
|
|
${Ge}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:lt.itemSize,height:lt.itemSize,color:lt.colorText,fontFamily:lt.fontFamily,lineHeight:`${lt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:lt.borderRadius,cursor:"pointer",transition:`all ${lt.motionDurationMid}`},[`${Ge}-prev, ${Ge}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:lt.colorText,cursor:"pointer",userSelect:"none"},[`${Ge}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:lt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${lt.lineWidth}px ${lt.lineType} transparent`,borderRadius:lt.borderRadius,outline:"none",transition:`all ${lt.motionDurationMid}`},[`&:hover ${Ge}-item-link`]:{backgroundColor:lt.colorBgTextHover},[`&:active ${Ge}-item-link`]:{backgroundColor:lt.colorBgTextActive},[`&${Ge}-disabled:hover`]:{[`${Ge}-item-link`]:{backgroundColor:"transparent"}}},[`${Ge}-slash`]:{marginInlineEnd:lt.paginationSlashMarginInlineEnd,marginInlineStart:lt.paginationSlashMarginInlineStart},[`${Ge}-options`]:{display:"inline-block",marginInlineStart:lt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:lt.controlHeight,marginInlineStart:lt.marginXS,lineHeight:`${lt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,kt.ik)(lt)),{width:lt.controlHeightLG*1.25,height:lt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:lt.marginXS,marginInlineEnd:lt.marginXS})}}}},bn=lt=>{const{componentCls:Ge}=lt;return{[`${Ge}-item`]:{display:"inline-block",minWidth:lt.itemSize,height:lt.itemSize,marginInlineEnd:lt.marginXS,fontFamily:lt.fontFamily,lineHeight:`${lt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${lt.lineWidth}px ${lt.lineType} transparent`,borderRadius:lt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${lt.paginationItemPaddingInline}px`,color:lt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ge}-item-active)`]:{"&:hover":{transition:`all ${lt.motionDurationMid}`,backgroundColor:lt.colorBgTextHover},"&:active":{backgroundColor:lt.colorBgTextActive}},"&-active":{fontWeight:lt.fontWeightStrong,backgroundColor:lt.itemActiveBg,borderColor:lt.colorPrimary,a:{color:lt.colorPrimary},"&:hover":{borderColor:lt.colorPrimaryHover},"&:hover a":{color:lt.colorPrimaryHover}}}}},ci=lt=>{const{componentCls:Ge}=lt;return{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_t.Wf)(lt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ge}-total-text`]:{display:"inline-block",height:lt.itemSize,marginInlineEnd:lt.marginXS,lineHeight:`${lt.itemSize-2}px`,verticalAlign:"middle"}}),bn(lt)),Jn(lt)),yt(lt)),Kn(lt)),wn(lt)),{[`@media only screen and (max-width: ${lt.screenLG}px)`]:{[`${Ge}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${lt.screenSM}px)`]:{[`${Ge}-options`]:{display:"none"}}}),[`&${lt.componentCls}-rtl`]:{direction:"rtl"}}},Tn=lt=>{const{componentCls:Ge}=lt;return{[`${Ge}${Ge}-disabled:not(${Ge}-mini)`]:{"&, &:hover":{[`${Ge}-item-link`]:{borderColor:lt.colorBorder}},"&:focus-visible":{[`${Ge}-item-link`]:{borderColor:lt.colorBorder}},[`${Ge}-item, ${Ge}-item-link`]:{backgroundColor:lt.colorBgContainerDisabled,borderColor:lt.colorBorder,[`&:hover:not(${Ge}-item-active)`]:{backgroundColor:lt.colorBgContainerDisabled,borderColor:lt.colorBorder,a:{color:lt.colorTextDisabled}},[`&${Ge}-item-active`]:{backgroundColor:lt.itemActiveBgDisabled}},[`${Ge}-prev, ${Ge}-next`]:{"&:hover button":{backgroundColor:lt.colorBgContainerDisabled,borderColor:lt.colorBorder,color:lt.colorTextDisabled},[`${Ge}-item-link`]:{backgroundColor:lt.colorBgContainerDisabled,borderColor:lt.colorBorder}}},[`${Ge}:not(${Ge}-mini)`]:{[`${Ge}-prev, ${Ge}-next`]:{"&:hover button":{borderColor:lt.colorPrimaryHover,backgroundColor:lt.itemBg},[`${Ge}-item-link`]:{backgroundColor:lt.itemLinkBg,borderColor:lt.colorBorder},[`&:hover ${Ge}-item-link`]:{borderColor:lt.colorPrimary,backgroundColor:lt.itemBg,color:lt.colorPrimary},[`&${Ge}-disabled`]:{[`${Ge}-item-link`]:{borderColor:lt.colorBorder,color:lt.colorTextDisabled}}},[`${Ge}-item`]:{backgroundColor:lt.itemBg,border:`${lt.lineWidth}px ${lt.lineType} ${lt.colorBorder}`,[`&:hover:not(${Ge}-item-active)`]:{borderColor:lt.colorPrimary,backgroundColor:lt.itemBg,a:{color:lt.colorPrimary}},"&-active":{borderColor:lt.colorPrimary}}}}},tn=lt=>{const{componentCls:Ge}=lt;return{[`${Ge}:not(${Ge}-disabled)`]:{[`${Ge}-item`]:Object.assign({},(0,_t.Qy)(lt)),[`${Ge}-jump-prev, ${Ge}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ge}-item-link-icon`]:{opacity:1},[`${Ge}-item-ellipsis`]:{opacity:0}},(0,_t.oN)(lt))},[`${Ge}-prev, ${Ge}-next`]:{[`&:focus-visible ${Ge}-item-link`]:Object.assign({},(0,_t.oN)(lt))}}}};var $t=(0,ln.Z)("Pagination",lt=>{const Ge=(0,Bn.TS)(lt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:lt.marginXXS/2,paginationMiniQuickJumperInputWidth:lt.controlHeightLG*1.1,paginationItemPaddingInline:lt.marginXXS*1.5,paginationEllipsisLetterSpacing:lt.marginXXS/2,paginationSlashMarginInlineStart:lt.marginXXS,paginationSlashMarginInlineEnd:lt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,kt.e5)(lt),(0,kt.TM)(lt));return[ci(Ge),tn(Ge),lt.wireframe&&Tn(Ge)]},lt=>({itemBg:lt.colorBgContainer,itemSize:lt.controlHeight,itemSizeSM:lt.controlHeightSM,itemActiveBg:lt.colorBgContainer,itemLinkBg:lt.colorBgContainer,itemActiveColorDisabled:lt.colorTextDisabled,itemActiveBgDisabled:lt.controlItemBgActiveDisabled,itemInputBg:lt.colorBgContainer,miniOptionsSizeChangerTop:0})),ft=function(lt,Ge){var Be={};for(var we in lt)Object.prototype.hasOwnProperty.call(lt,we)&&Ge.indexOf(we)<0&&(Be[we]=lt[we]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,we=Object.getOwnPropertySymbols(lt);pe<we.length;pe++)Ge.indexOf(we[pe])<0&&Object.prototype.propertyIsEnumerable.call(lt,we[pe])&&(Be[we[pe]]=lt[we[pe]]);return Be},Gt=lt=>{const{prefixCls:Ge,selectPrefixCls:Be,className:we,rootClassName:pe,style:De,size:ze,locale:Le,selectComponentClass:nt,responsive:Ut,showSizeChanger:En}=lt,rn=ft(lt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:vn}=(0,dt.Z)(Ut),{getPrefixCls:mi,direction:wi,pagination:Ri={}}=Oe.useContext(Ot.E_),Wi=mi("pagination",Ge),[Mn,nr]=$t(Wi),Wr=En!=null?En:Ri.showSizeChanger,Hr=Oe.useMemo(()=>{const Ce=Oe.createElement("span",{className:`${Wi}-item-ellipsis`},"\u2022\u2022\u2022"),hi=Oe.createElement("button",{className:`${Wi}-item-link`,type:"button",tabIndex:-1},wi==="rtl"?Oe.createElement(gt.Z,null):Oe.createElement(et.Z,null)),ki=Oe.createElement("button",{className:`${Wi}-item-link`,type:"button",tabIndex:-1},wi==="rtl"?Oe.createElement(et.Z,null):Oe.createElement(gt.Z,null)),un=Oe.createElement("a",{className:`${Wi}-item-link`},Oe.createElement("div",{className:`${Wi}-item-container`},wi==="rtl"?Oe.createElement(Lt.Z,{className:`${Wi}-item-link-icon`}):Oe.createElement(Tt,{className:`${Wi}-item-link-icon`}),Ce)),Wn=Oe.createElement("a",{className:`${Wi}-item-link`},Oe.createElement("div",{className:`${Wi}-item-container`},wi==="rtl"?Oe.createElement(Tt,{className:`${Wi}-item-link-icon`}):Oe.createElement(Lt.Z,{className:`${Wi}-item-link-icon`}),Ce));return{prevIcon:hi,nextIcon:ki,jumpPrevIcon:un,jumpNextIcon:Wn}},[wi,Wi]),[Tr]=(0,Re.Z)("Pagination",Yt.Z),Fr=Object.assign(Object.assign({},Tr),Le),Yr=(0,Qt.Z)(ze),Kr=Yr==="small"||!!(vn&&!Yr&&Ut),ar=mi("select",Be),Co=wt()({[`${Wi}-mini`]:Kr,[`${Wi}-rtl`]:wi==="rtl"},Ri==null?void 0:Ri.className,we,pe,nr),$n=Object.assign(Object.assign({},Ri==null?void 0:Ri.style),De);return Mn(Oe.createElement(Zt,Object.assign({},Hr,rn,{style:$n,prefixCls:Wi,selectPrefixCls:ar,className:Co,selectComponentClass:nt||(Kr?Pn:mn),locale:Fr,showSizeChanger:Wr})))},At=Gt},39978:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Re}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(Pn,mn){return Oe.createElement(_e.Z,(0,Se.Z)({},Pn,{ref:mn,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke,Lt=ye(92310),et=ye.n(Lt),gt=ye(80962),ct=ye(29043),wt=ye(19149),Me=ye(35788),te=ye(85108),ne=ye(36994);function ce(Mt,Pn){var mn=Mt.disabled,kt=Mt.prefixCls,_t=Mt.character,ln=Mt.characterRender,Bn=Mt.index,wn=Mt.count,Kn=Mt.value,yt=Mt.allowHalf,Jn=Mt.focused,bn=Mt.onHover,ci=Mt.onClick,Tn=function(Ge){bn(Ge,Bn)},tn=function(Ge){ci(Ge,Bn)},$t=function(Ge){Ge.keyCode===te.Z.ENTER&&ci(Ge,Bn)},ft=Bn+1,Je=new Set([kt]);Kn===0&&Bn===0&&Jn?Je.add("".concat(kt,"-focused")):yt&&Kn+.5>=ft&&Kn<ft?(Je.add("".concat(kt,"-half")),Je.add("".concat(kt,"-active")),Jn&&Je.add("".concat(kt,"-focused"))):(ft<=Kn?Je.add("".concat(kt,"-full")):Je.add("".concat(kt,"-zero")),ft===Kn&&Jn&&Je.add("".concat(kt,"-focused")));var Gt=typeof _t=="function"?_t(Mt):_t,At=Oe.createElement("li",{className:et()(Array.from(Je)),ref:Pn},Oe.createElement("div",{onClick:mn?null:tn,onKeyDown:mn?null:$t,onMouseMove:mn?null:Tn,role:"radio","aria-checked":Kn>Bn?"true":"false","aria-posinset":Bn+1,"aria-setsize":wn,tabIndex:mn?-1:0},Oe.createElement("div",{className:"".concat(kt,"-first")},Gt),Oe.createElement("div",{className:"".concat(kt,"-second")},Gt)));return ln&&(At=ln(At,Mt)),At}var se=Oe.forwardRef(ce);function ge(){var Mt=Oe.useRef({});function Pn(kt){return Mt.current[kt]}function mn(kt){return function(_t){Mt.current[kt]=_t}}return[Pn,mn]}function ve(Mt){var Pn=Mt.pageXOffset,mn="scrollLeft";if(typeof Pn!="number"){var kt=Mt.document;Pn=kt.documentElement[mn],typeof Pn!="number"&&(Pn=kt.body[mn])}return Pn}function be(Mt){var Pn,mn,kt=Mt.ownerDocument,_t=kt.body,ln=kt&&kt.documentElement,Bn=Mt.getBoundingClientRect();return Pn=Bn.left,mn=Bn.top,Pn-=ln.clientLeft||_t.clientLeft||0,mn-=ln.clientTop||_t.clientTop||0,{left:Pn,top:mn}}function Fe(Mt){var Pn=be(Mt),mn=Mt.ownerDocument,kt=mn.defaultView||mn.parentWindow;return Pn.left+=ve(kt),Pn.left}var Pe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ie(Mt,Pn){var mn,kt=Mt.prefixCls,_t=kt===void 0?"rc-rate":kt,ln=Mt.className,Bn=Mt.defaultValue,wn=Mt.value,Kn=Mt.count,yt=Kn===void 0?5:Kn,Jn=Mt.allowHalf,bn=Jn===void 0?!1:Jn,ci=Mt.allowClear,Tn=ci===void 0?!0:ci,tn=Mt.character,$t=tn===void 0?"\u2605":tn,ft=Mt.characterRender,Je=Mt.disabled,Gt=Mt.direction,At=Gt===void 0?"ltr":Gt,lt=Mt.tabIndex,Ge=lt===void 0?0:lt,Be=Mt.autoFocus,we=Mt.onHoverChange,pe=Mt.onChange,De=Mt.onFocus,ze=Mt.onBlur,Le=Mt.onKeyDown,nt=Mt.onMouseLeave,Ut=(0,wt.Z)(Mt,Pe),En=ge(),rn=(0,ct.Z)(En,2),vn=rn[0],mi=rn[1],wi=Oe.useRef(null),Ri=function(){if(!Je){var Ye;(Ye=wi.current)===null||Ye===void 0||Ye.focus()}};Oe.useImperativeHandle(Pn,function(){return{focus:Ri,blur:function(){if(!Je){var Ye;(Ye=wi.current)===null||Ye===void 0||Ye.blur()}}}});var Wi=(0,Me.Z)(Bn||0,{value:wn}),Mn=(0,ct.Z)(Wi,2),nr=Mn[0],Wr=Mn[1],Hr=(0,Me.Z)(null),Tr=(0,ct.Z)(Hr,2),Fr=Tr[0],Yr=Tr[1],Kr=function(Ye,an){var Bt=At==="rtl",jn=Ye+1;if(bn){var cn=vn(Ye),Et=Fe(cn),xn=cn.clientWidth;(Bt&&an-Et>xn/2||!Bt&&an-Et<xn/2)&&(jn-=.5)}return jn},ar=function(Ye){Wr(Ye),pe==null||pe(Ye)},Co=Oe.useState(!1),$n=(0,ct.Z)(Co,2),Ce=$n[0],hi=$n[1],ki=function(){hi(!0),De==null||De()},un=function(){hi(!1),ze==null||ze()},Wn=Oe.useState(null),li=(0,ct.Z)(Wn,2),fn=li[0],on=li[1],mt=function(Ye,an){var Bt=Kr(an,Ye.pageX);Bt!==Fr&&(on(Bt),Yr(null)),we==null||we(Bt)},Pt=function(Ye){Je||(on(null),Yr(null),we==null||we(void 0)),Ye&&(nt==null||nt(Ye))},bt=function(Ye,an){var Bt=Kr(an,Ye.pageX),jn=!1;Tn&&(jn=Bt===nr),Pt(),ar(jn?0:Bt),Yr(jn?Bt:null)},tt=function(Ye){var an=Ye.keyCode,Bt=At==="rtl",jn=nr;an===te.Z.RIGHT&&jn<yt&&!Bt?(bn?jn+=.5:jn+=1,ar(jn),Ye.preventDefault()):an===te.Z.LEFT&&jn>0&&!Bt||an===te.Z.RIGHT&&jn>0&&Bt?(bn?jn-=.5:jn-=1,ar(jn),Ye.preventDefault()):an===te.Z.LEFT&&jn<yt&&Bt&&(bn?jn+=.5:jn+=1,ar(jn),Ye.preventDefault()),Le==null||Le(Ye)};Oe.useEffect(function(){Be&&!Je&&Ri()},[]);var qt=new Array(yt).fill(0).map(function(xt,Ye){return Oe.createElement(se,{ref:mi(Ye),index:Ye,count:yt,disabled:Je,prefixCls:"".concat(_t,"-star"),allowHalf:bn,value:fn===null?nr:fn,onClick:bt,onHover:mt,key:xt||Ye,character:$t,characterRender:ft,focused:Ce})}),dn=et()(_t,ln,(mn={},(0,gt.Z)(mn,"".concat(_t,"-disabled"),Je),(0,gt.Z)(mn,"".concat(_t,"-rtl"),At==="rtl"),mn));return Oe.createElement("ul",(0,Se.Z)({className:dn,onMouseLeave:Pt,tabIndex:Je?-1:Ge,onFocus:Je?null:ki,onBlur:Je?null:un,onKeyDown:Je?null:tt,ref:wi,role:"radiogroup"},(0,ne.Z)(Ut,{aria:!0,data:!0,attr:!0})),qt)}var We=Oe.forwardRef(Ie),Ke=We,Xe=ye(36355),ht=ye(6848),Ve=ye(17313),Nt=ye(83116),qe=ye(37613);const Ht=Mt=>{const{componentCls:Pn}=Mt;return{[`${Pn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Mt.marginXS},"> div":{transition:`all ${Mt.motionDurationMid}, outline 0s`,"&:hover":{transform:Mt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Mt.lineWidth}px dashed ${Mt.starColor}`,transform:Mt.starHoverScale}},"&-first, &-second":{color:Mt.starBg,transition:`all ${Mt.motionDurationMid}`,userSelect:"none",[Mt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Pn}-star-first, &-half ${Pn}-star-second`]:{opacity:1},[`&-half ${Pn}-star-first, &-full ${Pn}-star-second`]:{color:"inherit"}}}},Zt=Mt=>({[`&-rtl${Mt.componentCls}`]:{direction:"rtl"}}),Yt=Mt=>{const{componentCls:Pn}=Mt;return{[Pn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ve.Wf)(Mt)),{display:"inline-block",margin:0,padding:0,color:Mt.starColor,fontSize:Mt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Pn} ${Pn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ht(Mt)),{[`+ ${Pn}-text`]:{display:"inline-block",marginInlineStart:Mt.marginXS,fontSize:Mt.fontSize}}),Zt(Mt))}};var Ot=(0,Nt.Z)("Rate",Mt=>{const Pn=(0,qe.TS)(Mt,{});return[Yt(Pn)]},Mt=>({starColor:Mt.yellow6,starSize:Mt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Mt.colorFillContent})),Qt=function(Mt,Pn){var mn={};for(var kt in Mt)Object.prototype.hasOwnProperty.call(Mt,kt)&&Pn.indexOf(kt)<0&&(mn[kt]=Mt[kt]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,kt=Object.getOwnPropertySymbols(Mt);_t<kt.length;_t++)Pn.indexOf(kt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Mt,kt[_t])&&(mn[kt[_t]]=Mt[kt[_t]]);return mn},Re=Oe.forwardRef((Mt,Pn)=>{const{prefixCls:mn,className:kt,rootClassName:_t,style:ln,tooltips:Bn,character:wn=Oe.createElement(Tt,null)}=Mt,Kn=Qt(Mt,["prefixCls","className","rootClassName","style","tooltips","character"]),yt=(Je,Gt)=>{let{index:At}=Gt;return Bn?Oe.createElement(ht.Z,{title:Bn[At]},Je):Je},{getPrefixCls:Jn,direction:bn,rate:ci}=Oe.useContext(Xe.E_),Tn=Jn("rate",mn),[tn,$t]=Ot(Tn),ft=Object.assign(Object.assign({},ci==null?void 0:ci.style),ln);return tn(Oe.createElement(Ke,Object.assign({ref:Pn,character:wn,characterRender:yt},Kn,{className:et()(kt,_t,$t,ci==null?void 0:ci.className),style:ft,prefixCls:Tn,direction:bn})))})},57809:function(Rn,Fn,ye){"use strict";var Se=ye(92310),Oe=ye.n(Se),He=ye(77861),Rt=ye(64002),_e=ye(59301),vt=ye(53487),ke=ye(62892),Tt=ye(19080),Lt=ye(36355),et=ye(1684),gt=ye(93891),ct=ye(19716),wt=ye(32441),Me=ye(33234),te=ye(14154),ne=ye(58582),ce=ye(84443),se=ye(66339),ge=function(Ie,We){var Ke={};for(var Xe in Ie)Object.prototype.hasOwnProperty.call(Ie,Xe)&&We.indexOf(Xe)<0&&(Ke[Xe]=Ie[Xe]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Xe=Object.getOwnPropertySymbols(Ie);ht<Xe.length;ht++)We.indexOf(Xe[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Xe[ht])&&(Ke[Xe[ht]]=Ie[Xe[ht]]);return Ke};const ve="SECRET_COMBOBOX_MODE_DO_NOT_USE",be=(Ie,We)=>{var Ke,{prefixCls:Xe,bordered:ht=!0,className:Ve,rootClassName:Nt,getPopupContainer:qe,popupClassName:Ht,dropdownClassName:Zt,listHeight:Yt=256,placement:Ot,listItemHeight:Qt=24,size:dt,disabled:Re,notFoundContent:Mt,status:Pn,builtinPlacements:mn,dropdownMatchSelectWidth:kt,popupMatchSelectWidth:_t,direction:ln,style:Bn,allowClear:wn}=Ie,Kn=ge(Ie,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:yt,getPrefixCls:Jn,renderEmpty:bn,direction:ci,virtual:Tn,popupMatchSelectWidth:tn,popupOverflow:$t,select:ft}=_e.useContext(Lt.E_),Je=Jn("select",Xe),Gt=Jn(),At=ln!=null?ln:ci,{compactSize:lt,compactItemClassnames:Ge}=(0,Me.ri)(Je,At),[Be,we]=(0,te.Z)(Je),pe=_e.useMemo(()=>{const{mode:$n}=Kn;if($n!=="combobox")return $n===ve?"combobox":$n},[Kn.mode]),De=pe==="multiple"||pe==="tags",ze=(0,ce.Z)(Kn.suffixIcon,Kn.showArrow),Le=(Ke=_t!=null?_t:kt)!==null&&Ke!==void 0?Ke:tn,{status:nt,hasFeedback:Ut,isFormItemInput:En,feedbackIcon:rn}=_e.useContext(wt.aM),vn=(0,Tt.F)(nt,Pn);let mi;Mt!==void 0?mi=Mt:pe==="combobox"?mi=null:mi=(bn==null?void 0:bn("Select"))||_e.createElement(gt.Z,{componentName:"Select"});const{suffixIcon:wi,itemIcon:Ri,removeIcon:Wi,clearIcon:Mn}=(0,se.Z)(Object.assign(Object.assign({},Kn),{multiple:De,hasFeedback:Ut,feedbackIcon:rn,showSuffixIcon:ze,prefixCls:Je,showArrow:Kn.showArrow,componentName:"Select"})),nr=wn===!0?{clearIcon:Mn}:wn,Wr=(0,Rt.Z)(Kn,["suffixIcon","itemIcon"]),Hr=Oe()(Ht||Zt,{[`${Je}-dropdown-${At}`]:At==="rtl"},Nt,we),Tr=(0,ct.Z)($n=>{var Ce;return(Ce=dt!=null?dt:lt)!==null&&Ce!==void 0?Ce:$n}),Fr=_e.useContext(et.Z),Yr=Re!=null?Re:Fr,Kr=Oe()({[`${Je}-lg`]:Tr==="large",[`${Je}-sm`]:Tr==="small",[`${Je}-rtl`]:At==="rtl",[`${Je}-borderless`]:!ht,[`${Je}-in-form-item`]:En},(0,Tt.Z)(Je,vn,Ut),Ge,ft==null?void 0:ft.className,Ve,Nt,we),ar=_e.useMemo(()=>Ot!==void 0?Ot:At==="rtl"?"bottomRight":"bottomLeft",[Ot,At]),Co=(0,ne.Z)(mn,$t);return Be(_e.createElement(He.ZP,Object.assign({ref:We,virtual:Tn,showSearch:ft==null?void 0:ft.showSearch},Wr,{style:Object.assign(Object.assign({},ft==null?void 0:ft.style),Bn),dropdownMatchSelectWidth:Le,builtinPlacements:Co,transitionName:(0,ke.m)(Gt,"slide-up",Kn.transitionName),listHeight:Yt,listItemHeight:Qt,mode:pe,prefixCls:Je,placement:ar,direction:At,suffixIcon:wi,menuItemSelectedIcon:Ri,removeIcon:Wi,allowClear:nr,notFoundContent:mi,className:Kr,getPopupContainer:qe||yt,dropdownClassName:Hr,disabled:Yr})))},Fe=_e.forwardRef(be),Pe=(0,vt.Z)(Fe);Fe.SECRET_COMBOBOX_MODE_DO_NOT_USE=ve,Fe.Option=He.Wx,Fe.OptGroup=He.Xo,Fe._InternalPanelDoNotUseOrYouWillBeFired=Pe,Fn.default=Fe},14154:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Fe}});var Se=ye(17313),Oe=ye(74207),He=ye(37613),Rt=ye(83116),_e=ye(13826),vt=ye(92899);const ke=Pe=>{const{optionHeight:Ie,optionFontSize:We,optionLineHeight:Ke,optionPadding:Xe}=Pe;return{position:"relative",display:"block",minHeight:Ie,padding:Xe,color:Pe.colorText,fontWeight:"normal",fontSize:We,lineHeight:Ke,boxSizing:"border-box"}};var Lt=Pe=>{const{antCls:Ie,componentCls:We}=Pe,Ke=`${We}-item`,Xe=`&${Ie}-slide-up-enter${Ie}-slide-up-enter-active`,ht=`&${Ie}-slide-up-appear${Ie}-slide-up-appear-active`,Ve=`&${Ie}-slide-up-leave${Ie}-slide-up-leave-active`,Nt=`${We}-dropdown-placement-`;return[{[`${We}-dropdown`]:Object.assign(Object.assign({},(0,Se.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,[`
|
|
|
${Xe}${Nt}bottomLeft,
|
|
|
${ht}${Nt}bottomLeft
|
|
|
`]:{animationName:_e.fJ},[`
|
|
|
${Xe}${Nt}topLeft,
|
|
|
${ht}${Nt}topLeft,
|
|
|
${Xe}${Nt}topRight,
|
|
|
${ht}${Nt}topRight
|
|
|
`]:{animationName:_e.Qt},[`${Ve}${Nt}bottomLeft`]:{animationName:_e.Uw},[`
|
|
|
${Ve}${Nt}topLeft,
|
|
|
${Ve}${Nt}topRight
|
|
|
`]:{animationName:_e.ly},"&-hidden":{display:"none"},[`${Ke}`]:Object.assign(Object.assign({},ke(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"},Se.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,vt.Fm)(Pe,"move-up"),(0,vt.Fm)(Pe,"move-down")]};const et=2,gt=Pe=>{let{controlHeightSM:Ie,controlHeight:We,lineWidth:Ke}=Pe;const Xe=(We-Ie)/2-Ke,ht=Math.ceil(Xe/2);return[Xe,ht]};function ct(Pe,Ie){const{componentCls:We,iconCls:Ke}=Pe,Xe=`${We}-selection-overflow`,ht=Pe.multipleSelectItemHeight,[Ve]=gt(Pe),Nt=Ie?`${We}-${Ie}`:"";return{[`${We}-multiple${Nt}`]:{fontSize:Pe.fontSize,[Xe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${We}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ve-et}px ${et*2}px`,borderRadius:Pe.borderRadius,[`${We}-show-search&`]:{cursor:"text"},[`${We}-disabled&`]:{background:Pe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${et}px 0`,lineHeight:`${ht}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${We}-show-arrow ${We}-selector,
|
|
|
&${We}-allow-clear ${We}-selector
|
|
|
`]:{paddingInlineEnd:Pe.fontSizeIcon+Pe.controlPaddingHorizontal},[`${We}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ht,marginTop:et,marginBottom:et,lineHeight:`${ht-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,[`${We}-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,Se.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}})},[`${Xe}-item + ${Xe}-item`]:{[`${We}-selection-search`]:{marginInlineStart:0}},[`${We}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Pe.inputPaddingHorizontalBase-Ve,"\n &-input,\n &-mirror\n ":{height:ht,fontFamily:Pe.fontFamily,lineHeight:`${ht}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"}},[`${We}-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,We=(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}),[,Xe]=gt(Pe);return[ct(Pe),ct(We,"sm"),{[`${Ie}-multiple${Ie}-sm`]:{[`${Ie}-selection-placeholder`]:{insetInline:Pe.controlPaddingHorizontalSM-Pe.lineWidth},[`${Ie}-selection-search`]:{marginInlineStart:Xe}}},ct(Ke,"lg")]};function te(Pe,Ie){const{componentCls:We,inputPaddingHorizontalBase:Ke,borderRadius:Xe}=Pe,ht=Pe.controlHeight-Pe.lineWidth*2,Ve=Math.ceil(Pe.fontSize*1.25),Nt=Ie?`${We}-${Ie}`:"";return{[`${We}-single${Nt}`]:{fontSize:Pe.fontSize,[`${We}-selector`]:Object.assign(Object.assign({},(0,Se.Wf)(Pe)),{display:"flex",borderRadius:Xe,[`${We}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ke,insetInlineEnd:Ke,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${We}-selection-item,
|
|
|
${We}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${ht}px`,transition:`all ${Pe.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ht}px`}},[`${We}-selection-item`]:{position:"relative",userSelect:"none"},[`${We}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${We}-selection-item:after`,`${We}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${We}-show-arrow ${We}-selection-item,
|
|
|
&${We}-show-arrow ${We}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ve},[`&${We}-open ${We}-selection-item`]:{color:Pe.colorTextPlaceholder},[`&:not(${We}-customize-input)`]:{[`${We}-selector`]:{width:"100%",height:Pe.controlHeight,padding:`0 ${Ke}px`,[`${We}-selection-search-input`]:{height:ht},"&:after":{lineHeight:`${ht}px`}}},[`&${We}-customize-input`]:{[`${We}-selector`]:{"&:after":{display:"none"},[`${We}-selection-search`]:{position:"static",width:"100%"},[`${We}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ke}px`,"&:after":{display:"none"}}}}}}}function ne(Pe){const{componentCls:Ie}=Pe,We=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:We,insetInlineEnd:We},[`${Ie}-selector`]:{padding:`0 ${We}px`},[`&${Ie}-show-arrow ${Ie}-selection-search`]:{insetInlineEnd:We+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:We}=Pe;return{position:"relative",backgroundColor:We,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 We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ke,borderHoverColor:Xe,outlineColor:ht,antCls:Ve}=Ie,Nt=We?{[`${Ke}-selector`]:{borderColor:Xe}}:{};return{[Pe]:{[`&:not(${Ke}-disabled):not(${Ke}-customize-input):not(${Ve}-pagination-size-changer)`]:Object.assign(Object.assign({},Nt),{[`${Ke}-focused& ${Ke}-selector`]:{borderColor:Xe,boxShadow:`0 0 0 ${Ie.controlOutlineWidth}px ${ht}`,outline:0},[`&:hover ${Ke}-selector`]:{borderColor:Xe}})}}},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"}}}},ve=Pe=>{const{componentCls:Ie,inputPaddingHorizontalBase:We,iconCls:Ke}=Pe;return{[Ie]:Object.assign(Object.assign({},(0,Se.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"},Se.vS),[`${Ie}-selection-placeholder`]:Object.assign(Object.assign({},Se.vS),{flex:1,color:Pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Ie}-arrow`]:Object.assign(Object.assign({},(0,Se.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:We,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:We,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:We+Pe.fontSize+Pe.paddingXS}}}},be=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%"}}},ve(Pe),ne(Pe),Me(Pe),Lt(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:We}=Ie;const Ke=(0,He.TS)(Pe,{rootPrefixCls:We,inputPaddingHorizontalBase:Pe.paddingSM-1,multipleSelectItemHeight:Pe.multipleItemHeight});return[be(Ke)]},Pe=>{const{fontSize:Ie,lineHeight:We,controlHeight:Ke,controlPaddingHorizontal:Xe,zIndexPopupBase:ht,colorText:Ve,fontWeightStrong:Nt,controlItemBgActive:qe,controlItemBgHover:Ht,colorBgContainer:Zt,colorFillSecondary:Yt,controlHeightLG:Ot,controlHeightSM:Qt,colorBgContainerDisabled:dt,colorTextDisabled:Re}=Pe;return{zIndexPopup:ht+50,optionSelectedColor:Ve,optionSelectedFontWeight:Nt,optionSelectedBg:qe,optionActiveBg:Ht,optionPadding:`${(Ke-Ie*We)/2}px ${Xe}px`,optionFontSize:Ie,optionLineHeight:We,optionHeight:Ke,selectorBg:Zt,clearBg:Zt,singleItemHeightLG:Ot,multipleItemBg:Yt,multipleItemBorderColor:"transparent",multipleItemHeight:Qt,multipleItemHeightLG:Ke,multipleSelectorBgDisabled:dt,multipleItemColorDisabled:Re,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Oe}});const Se=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||Se(Rt)}},84443:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Se}});function Se(Oe,He){return He!==void 0?He:Oe!==null}},66339:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});var Se=ye(10402),Oe=ye(33130),He=ye(72119),Rt=ye(18290),_e=ye(50023),vt=ye(21970),ke=ye(59301);function Tt(Lt){let{suffixIcon:et,clearIcon:gt,menuItemSelectedIcon:ct,removeIcon:wt,loading:Me,multiple:te,hasFeedback:ne,prefixCls:ce,showSuffixIcon:se,feedbackIcon:ge,showArrow:ve,componentName:be}=Lt;const Fe=gt!=null?gt:ke.createElement(Oe.Z,null),Pe=Xe=>et===null&&!ne&&!ve?null:ke.createElement(ke.Fragment,null,se!==!1&&Xe,ne&&ge);let Ie=null;if(et!==void 0)Ie=Pe(et);else if(Me)Ie=Pe(ke.createElement(_e.Z,{spin:!0}));else{const Xe=`${ce}-suffix`;Ie=ht=>{let{open:Ve,showSearch:Nt}=ht;return Pe(Ve&&Nt?ke.createElement(vt.Z,{className:Xe}):ke.createElement(Rt.Z,{className:Xe}))}}let We=null;ct!==void 0?We=ct:te?We=ke.createElement(Se.Z,null):We=null;let Ke=null;return wt!==void 0?Ke=wt:Ke=ke.createElement(He.Z,null),{clearIcon:Fe,suffixIcon:Ie,itemIcon:We,removeIcon:Ke}}},78485:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return $t}});var Se=ye(92310),Oe=ye.n(Se),He=ye(59301),Rt=ye(36355),_e=ye(64002),ke=ft=>{const{prefixCls:Je,className:Gt,style:At,size:lt,shape:Ge}=ft,Be=Oe()({[`${Je}-lg`]:lt==="large",[`${Je}-sm`]:lt==="small"}),we=Oe()({[`${Je}-circle`]:Ge==="circle",[`${Je}-square`]:Ge==="square",[`${Je}-round`]:Ge==="round"}),pe=He.useMemo(()=>typeof lt=="number"?{width:lt,height:lt,lineHeight:`${lt}px`}:{},[lt]);return He.createElement("span",{className:Oe()(Je,Be,we,Gt),style:Object.assign(Object.assign({},pe),At)})},Tt=ye(9792),Lt=ye(83116),et=ye(37613);const gt=new Tt.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ct=ft=>({height:ft,lineHeight:`${ft}px`}),wt=ft=>Object.assign({width:ft},ct(ft)),Me=ft=>({background:ft.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:gt,animationDuration:ft.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),te=ft=>Object.assign({width:ft*5,minWidth:ft*5},ct(ft)),ne=ft=>{const{skeletonAvatarCls:Je,gradientFromColor:Gt,controlHeight:At,controlHeightLG:lt,controlHeightSM:Ge}=ft;return{[`${Je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Gt},wt(At)),[`${Je}${Je}-circle`]:{borderRadius:"50%"},[`${Je}${Je}-lg`]:Object.assign({},wt(lt)),[`${Je}${Je}-sm`]:Object.assign({},wt(Ge))}},ce=ft=>{const{controlHeight:Je,borderRadiusSM:Gt,skeletonInputCls:At,controlHeightLG:lt,controlHeightSM:Ge,gradientFromColor:Be}=ft;return{[`${At}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Be,borderRadius:Gt},te(Je)),[`${At}-lg`]:Object.assign({},te(lt)),[`${At}-sm`]:Object.assign({},te(Ge))}},se=ft=>Object.assign({width:ft},ct(ft)),ge=ft=>{const{skeletonImageCls:Je,imageSizeBase:Gt,gradientFromColor:At,borderRadiusSM:lt}=ft;return{[`${Je}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:At,borderRadius:lt},se(Gt*2)),{[`${Je}-path`]:{fill:"#bfbfbf"},[`${Je}-svg`]:Object.assign(Object.assign({},se(Gt)),{maxWidth:Gt*4,maxHeight:Gt*4}),[`${Je}-svg${Je}-svg-circle`]:{borderRadius:"50%"}}),[`${Je}${Je}-circle`]:{borderRadius:"50%"}}},ve=(ft,Je,Gt)=>{const{skeletonButtonCls:At}=ft;return{[`${Gt}${At}-circle`]:{width:Je,minWidth:Je,borderRadius:"50%"},[`${Gt}${At}-round`]:{borderRadius:Je}}},be=ft=>Object.assign({width:ft*2,minWidth:ft*2},ct(ft)),Fe=ft=>{const{borderRadiusSM:Je,skeletonButtonCls:Gt,controlHeight:At,controlHeightLG:lt,controlHeightSM:Ge,gradientFromColor:Be}=ft;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Gt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Be,borderRadius:Je,width:At*2,minWidth:At*2},be(At))},ve(ft,At,Gt)),{[`${Gt}-lg`]:Object.assign({},be(lt))}),ve(ft,lt,`${Gt}-lg`)),{[`${Gt}-sm`]:Object.assign({},be(Ge))}),ve(ft,Ge,`${Gt}-sm`))},Pe=ft=>{const{componentCls:Je,skeletonAvatarCls:Gt,skeletonTitleCls:At,skeletonParagraphCls:lt,skeletonButtonCls:Ge,skeletonInputCls:Be,skeletonImageCls:we,controlHeight:pe,controlHeightLG:De,controlHeightSM:ze,gradientFromColor:Le,padding:nt,marginSM:Ut,borderRadius:En,titleHeight:rn,blockRadius:vn,paragraphLiHeight:mi,controlHeightXS:wi,paragraphMarginTop:Ri}=ft;return{[`${Je}`]:{display:"table",width:"100%",[`${Je}-header`]:{display:"table-cell",paddingInlineEnd:nt,verticalAlign:"top",[`${Gt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Le},wt(pe)),[`${Gt}-circle`]:{borderRadius:"50%"},[`${Gt}-lg`]:Object.assign({},wt(De)),[`${Gt}-sm`]:Object.assign({},wt(ze))},[`${Je}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${At}`]:{width:"100%",height:rn,background:Le,borderRadius:vn,[`+ ${lt}`]:{marginBlockStart:ze}},[`${lt}`]:{padding:0,"> li":{width:"100%",height:mi,listStyle:"none",background:Le,borderRadius:vn,"+ li":{marginBlockStart:wi}}},[`${lt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Je}-content`]:{[`${At}, ${lt} > li`]:{borderRadius:En}}},[`${Je}-with-avatar ${Je}-content`]:{[`${At}`]:{marginBlockStart:Ut,[`+ ${lt}`]:{marginBlockStart:Ri}}},[`${Je}${Je}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Fe(ft)),ne(ft)),ce(ft)),ge(ft)),[`${Je}${Je}-block`]:{width:"100%",[`${Ge}`]:{width:"100%"},[`${Be}`]:{width:"100%"}},[`${Je}${Je}-active`]:{[`
|
|
|
${At},
|
|
|
${lt} > li,
|
|
|
${Gt},
|
|
|
${Ge},
|
|
|
${Be},
|
|
|
${we}
|
|
|
`]:Object.assign({},Me(ft))}}};var Ie=(0,Lt.Z)("Skeleton",ft=>{const{componentCls:Je}=ft,Gt=(0,et.TS)(ft,{skeletonAvatarCls:`${Je}-avatar`,skeletonTitleCls:`${Je}-title`,skeletonParagraphCls:`${Je}-paragraph`,skeletonButtonCls:`${Je}-button`,skeletonInputCls:`${Je}-input`,skeletonImageCls:`${Je}-image`,imageSizeBase:ft.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ft.gradientFromColor} 25%, ${ft.gradientToColor} 37%, ${ft.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Pe(Gt)]},ft=>{const{colorFillContent:Je,colorFill:Gt}=ft,At=Je,lt=Gt;return{color:At,colorGradientEnd:lt,gradientFromColor:At,gradientToColor:lt,titleHeight:ft.controlHeight/2,blockRadius:ft.borderRadiusSM,paragraphMarginTop:ft.marginLG+ft.marginXXS,paragraphLiHeight:ft.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ke=ft=>{const{prefixCls:Je,className:Gt,rootClassName:At,active:lt,shape:Ge="circle",size:Be="default"}=ft,{getPrefixCls:we}=He.useContext(Rt.E_),pe=we("skeleton",Je),[De,ze]=Ie(pe),Le=(0,_e.Z)(ft,["prefixCls","className"]),nt=Oe()(pe,`${pe}-element`,{[`${pe}-active`]:lt},Gt,At,ze);return De(He.createElement("div",{className:nt},He.createElement(ke,Object.assign({prefixCls:`${pe}-avatar`,shape:Ge,size:Be},Le))))},ht=ft=>{const{prefixCls:Je,className:Gt,rootClassName:At,active:lt,block:Ge=!1,size:Be="default"}=ft,{getPrefixCls:we}=He.useContext(Rt.E_),pe=we("skeleton",Je),[De,ze]=Ie(pe),Le=(0,_e.Z)(ft,["prefixCls"]),nt=Oe()(pe,`${pe}-element`,{[`${pe}-active`]:lt,[`${pe}-block`]:Ge},Gt,At,ze);return De(He.createElement("div",{className:nt},He.createElement(ke,Object.assign({prefixCls:`${pe}-button`,size:Be},Le))))};const Ve="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 qe=ft=>{const{prefixCls:Je,className:Gt,rootClassName:At,style:lt,active:Ge}=ft,{getPrefixCls:Be}=He.useContext(Rt.E_),we=Be("skeleton",Je),[pe,De]=Ie(we),ze=Oe()(we,`${we}-element`,{[`${we}-active`]:Ge},Gt,At,De);return pe(He.createElement("div",{className:ze},He.createElement("div",{className:Oe()(`${we}-image`,Gt),style:lt},He.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${we}-image-svg`},He.createElement("path",{d:Ve,className:`${we}-image-path`})))))},Zt=ft=>{const{prefixCls:Je,className:Gt,rootClassName:At,active:lt,block:Ge,size:Be="default"}=ft,{getPrefixCls:we}=He.useContext(Rt.E_),pe=we("skeleton",Je),[De,ze]=Ie(pe),Le=(0,_e.Z)(ft,["prefixCls"]),nt=Oe()(pe,`${pe}-element`,{[`${pe}-active`]:lt,[`${pe}-block`]:Ge},Gt,At,ze);return De(He.createElement("div",{className:nt},He.createElement(ke,Object.assign({prefixCls:`${pe}-input`,size:Be},Le))))},Yt=ye(5891),Ot={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"},Qt=Ot,dt=ye(88853),Re=function(Je,Gt){return He.createElement(dt.Z,(0,Yt.Z)({},Je,{ref:Gt,icon:Qt}))},Mt=He.forwardRef(Re),Pn=Mt,kt=ft=>{const{prefixCls:Je,className:Gt,rootClassName:At,style:lt,active:Ge,children:Be}=ft,{getPrefixCls:we}=He.useContext(Rt.E_),pe=we("skeleton",Je),[De,ze]=Ie(pe),Le=Oe()(pe,`${pe}-element`,{[`${pe}-active`]:Ge},ze,Gt,At),nt=Be!=null?Be:He.createElement(Pn,null);return De(He.createElement("div",{className:Le},He.createElement("div",{className:Oe()(`${pe}-image`,Gt),style:lt},nt)))},_t=ye(26390),Bn=ft=>{const Je=we=>{const{width:pe,rows:De=2}=ft;if(Array.isArray(pe))return pe[we];if(De-1===we)return pe},{prefixCls:Gt,className:At,style:lt,rows:Ge}=ft,Be=(0,_t.Z)(Array(Ge)).map((we,pe)=>He.createElement("li",{key:pe,style:{width:Je(pe)}}));return He.createElement("ul",{className:Oe()(Gt,At),style:lt},Be)},Kn=ft=>{let{prefixCls:Je,className:Gt,width:At,style:lt}=ft;return He.createElement("h3",{className:Oe()(Je,Gt),style:Object.assign({width:At},lt)})};function yt(ft){return ft&&typeof ft=="object"?ft:{}}function Jn(ft,Je){return ft&&!Je?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function bn(ft,Je){return!ft&&Je?{width:"38%"}:ft&&Je?{width:"50%"}:{}}function ci(ft,Je){const Gt={};return(!ft||!Je)&&(Gt.width="61%"),!ft&&Je?Gt.rows=3:Gt.rows=2,Gt}const Tn=ft=>{const{prefixCls:Je,loading:Gt,className:At,rootClassName:lt,style:Ge,children:Be,avatar:we=!1,title:pe=!0,paragraph:De=!0,active:ze,round:Le}=ft,{getPrefixCls:nt,direction:Ut,skeleton:En}=He.useContext(Rt.E_),rn=nt("skeleton",Je),[vn,mi]=Ie(rn);if(Gt||!("loading"in ft)){const wi=!!we,Ri=!!pe,Wi=!!De;let Mn;if(wi){const Hr=Object.assign(Object.assign({prefixCls:`${rn}-avatar`},Jn(Ri,Wi)),yt(we));Mn=He.createElement("div",{className:`${rn}-header`},He.createElement(ke,Object.assign({},Hr)))}let nr;if(Ri||Wi){let Hr;if(Ri){const Fr=Object.assign(Object.assign({prefixCls:`${rn}-title`},bn(wi,Wi)),yt(pe));Hr=He.createElement(Kn,Object.assign({},Fr))}let Tr;if(Wi){const Fr=Object.assign(Object.assign({prefixCls:`${rn}-paragraph`},ci(wi,Ri)),yt(De));Tr=He.createElement(Bn,Object.assign({},Fr))}nr=He.createElement("div",{className:`${rn}-content`},Hr,Tr)}const Wr=Oe()(rn,{[`${rn}-with-avatar`]:wi,[`${rn}-active`]:ze,[`${rn}-rtl`]:Ut==="rtl",[`${rn}-round`]:Le},En==null?void 0:En.className,At,lt,mi);return vn(He.createElement("div",{className:Wr,style:Object.assign(Object.assign({},En==null?void 0:En.style),Ge)},Mn,nr))}return typeof Be!="undefined"?Be:null};Tn.Button=ht,Tn.Avatar=Ke,Tn.Input=Zt,Tn.Image=qe,Tn.Node=kt;var tn=Tn,$t=tn},81327:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ce}});var Se=ye(59301),Oe=ye(92310),He=ye.n(Oe),Rt=ye(38298),_e=ye(36355),vt=ye(33234);const ke=Se.createContext({latestIndex:0}),Tt=ke.Provider;var et=se=>{let{className:ge,index:ve,children:be,split:Fe,style:Pe}=se;const{latestIndex:Ie}=Se.useContext(ke);return be==null?null:Se.createElement(Se.Fragment,null,Se.createElement("div",{className:ge,style:Pe},be),ve<Ie&&Fe&&Se.createElement("span",{className:`${ge}-split`},Fe))},gt=ye(2856);function ct(se){return["small","middle","large"].includes(se)}function wt(se){return se?typeof se=="number"&&!Number.isNaN(se):!1}var Me=function(se,ge){var ve={};for(var be in se)Object.prototype.hasOwnProperty.call(se,be)&&ge.indexOf(be)<0&&(ve[be]=se[be]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,be=Object.getOwnPropertySymbols(se);Fe<be.length;Fe++)ge.indexOf(be[Fe])<0&&Object.prototype.propertyIsEnumerable.call(se,be[Fe])&&(ve[be[Fe]]=se[be[Fe]]);return ve};const ne=Se.forwardRef((se,ge)=>{var ve,be;const{getPrefixCls:Fe,space:Pe,direction:Ie}=Se.useContext(_e.E_),{size:We=(Pe==null?void 0:Pe.size)||"small",align:Ke,className:Xe,rootClassName:ht,children:Ve,direction:Nt="horizontal",prefixCls:qe,split:Ht,style:Zt,wrap:Yt=!1,classNames:Ot,styles:Qt}=se,dt=Me(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Re,Mt]=Array.isArray(We)?We:[We,We],Pn=ct(Mt),mn=ct(Re),kt=wt(Mt),_t=wt(Re),ln=(0,Rt.Z)(Ve,{keepEmpty:!0}),Bn=Ke===void 0&&Nt==="horizontal"?"center":Ke,wn=Fe("space",qe),[Kn,yt]=(0,gt.Z)(wn),Jn=He()(wn,Pe==null?void 0:Pe.className,yt,`${wn}-${Nt}`,{[`${wn}-rtl`]:Ie==="rtl",[`${wn}-align-${Bn}`]:Bn,[`${wn}-gap-row-${Mt}`]:Pn,[`${wn}-gap-col-${Re}`]:mn},Xe,ht),bn=He()(`${wn}-item`,(ve=Ot==null?void 0:Ot.item)!==null&&ve!==void 0?ve:(be=Pe==null?void 0:Pe.classNames)===null||be===void 0?void 0:be.item);let ci=0;const Tn=ln.map((ft,Je)=>{var Gt,At;ft!=null&&(ci=Je);const lt=ft&&ft.key||`${bn}-${Je}`;return Se.createElement(et,{className:bn,key:lt,index:Je,split:Ht,style:(Gt=Qt==null?void 0:Qt.item)!==null&&Gt!==void 0?Gt:(At=Pe==null?void 0:Pe.styles)===null||At===void 0?void 0:At.item},ft)}),tn=Se.useMemo(()=>({latestIndex:ci}),[ci]);if(ln.length===0)return null;const $t={};return Yt&&($t.flexWrap="wrap"),!mn&&_t&&($t.columnGap=Re),!Pn&&kt&&($t.rowGap=Mt),Kn(Se.createElement("div",Object.assign({ref:ge,className:Jn,style:Object.assign(Object.assign(Object.assign({},$t),Pe==null?void 0:Pe.style),Zt)},dt),Se.createElement(Tt,{value:tn},Tn)))});ne.Compact=vt.ZP;var ce=ne},31797:function(Rn,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Ie}});var Se=ye(59301),Oe=ye(56762),He=ye(92343),Rt=ye(92310),_e=ye.n(Rt),vt=ye(36355),ke=ye(78485),Lt=We=>{const{value:Ke,formatter:Xe,precision:ht,decimalSeparator:Ve,groupSeparator:Nt="",prefixCls:qe}=We;let Ht;if(typeof Xe=="function")Ht=Xe(Ke);else{const Zt=String(Ke),Yt=Zt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Yt||Zt==="-")Ht=Zt;else{const Ot=Yt[1];let Qt=Yt[2]||"0",dt=Yt[4]||"";Qt=Qt.replace(/\B(?=(\d{3})+(?!\d))/g,Nt),typeof ht=="number"&&(dt=dt.padEnd(ht,"0").slice(0,ht>0?ht:0)),dt&&(dt=`${Ve}${dt}`),Ht=[Se.createElement("span",{key:"int",className:`${qe}-content-value-int`},Ot,Qt),dt&&Se.createElement("span",{key:"decimal",className:`${qe}-content-value-decimal`},dt)]}}return Se.createElement("span",{className:`${qe}-content-value`},Ht)},et=ye(17313),gt=ye(83116),ct=ye(37613);const wt=We=>{const{componentCls:Ke,marginXXS:Xe,padding:ht,colorTextDescription:Ve,titleFontSize:Nt,colorTextHeading:qe,contentFontSize:Ht,fontFamily:Zt}=We;return{[`${Ke}`]:Object.assign(Object.assign({},(0,et.Wf)(We)),{[`${Ke}-title`]:{marginBottom:Xe,color:Ve,fontSize:Nt},[`${Ke}-skeleton`]:{paddingTop:ht},[`${Ke}-content`]:{color:qe,fontSize:Ht,fontFamily:Zt,[`${Ke}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ke}-content-prefix, ${Ke}-content-suffix`]:{display:"inline-block"},[`${Ke}-content-prefix`]:{marginInlineEnd:Xe},[`${Ke}-content-suffix`]:{marginInlineStart:Xe}}})}};var Me=(0,gt.Z)("Statistic",We=>{const Ke=(0,ct.TS)(We,{});return[wt(Ke)]},We=>{const{fontSizeHeading3:Ke,fontSize:Xe}=We;return{titleFontSize:Xe,contentFontSize:Ke}}),ne=We=>{const{prefixCls:Ke,className:Xe,rootClassName:ht,style:Ve,valueStyle:Nt,value:qe=0,title:Ht,valueRender:Zt,prefix:Yt,suffix:Ot,loading:Qt=!1,onMouseEnter:dt,onMouseLeave:Re,decimalSeparator:Mt=".",groupSeparator:Pn=","}=We,{getPrefixCls:mn,direction:kt,statistic:_t}=Se.useContext(vt.E_),ln=mn("statistic",Ke),[Bn,wn]=Me(ln),Kn=Se.createElement(Lt,Object.assign({decimalSeparator:Mt,groupSeparator:Pn,prefixCls:ln},We,{value:qe})),yt=_e()(ln,{[`${ln}-rtl`]:kt==="rtl"},_t==null?void 0:_t.className,Xe,ht,wn);return Bn(Se.createElement("div",{className:yt,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),Ve),onMouseEnter:dt,onMouseLeave:Re},Ht&&Se.createElement("div",{className:`${ln}-title`},Ht),Se.createElement(ke.Z,{paragraph:!1,loading:Qt,className:`${ln}-skeleton`},Se.createElement("div",{style:Nt,className:`${ln}-content`},Yt&&Se.createElement("span",{className:`${ln}-content-prefix`},Yt),Zt?Zt(Kn):Kn,Ot&&Se.createElement("span",{className:`${ln}-content-suffix`},Ot)))))};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(We,Ke){let Xe=We;const ht=/\[[^\]]*]/g,Ve=(Ke.match(ht)||[]).map(Zt=>Zt.slice(1,-1)),Nt=Ke.replace(ht,"[]"),qe=ce.reduce((Zt,Yt)=>{let[Ot,Qt]=Yt;if(Zt.includes(Ot)){const dt=Math.floor(Xe/Qt);return Xe-=dt*Qt,Zt.replace(new RegExp(`${Ot}+`,"g"),Re=>{const Mt=Re.length;return dt.toString().padStart(Mt,"0")})}return Zt},Nt);let Ht=0;return qe.replace(ht,()=>{const Zt=Ve[Ht];return Ht+=1,Zt})}function ge(We,Ke){const{format:Xe=""}=Ke,ht=new Date(We).getTime(),Ve=Date.now(),Nt=Math.max(ht-Ve,0);return se(Nt,Xe)}const ve=1e3/30;function be(We){return new Date(We).getTime()}const Fe=We=>{const{value:Ke,format:Xe="HH:mm:ss",onChange:ht,onFinish:Ve}=We,Nt=(0,Oe.Z)(),qe=Se.useRef(null),Ht=()=>{Ve==null||Ve(),qe.current&&(clearInterval(qe.current),qe.current=null)},Zt=()=>{const Qt=be(Ke);Qt>=Date.now()&&(qe.current=setInterval(()=>{Nt(),ht==null||ht(Qt-Date.now()),Qt<Date.now()&&Ht()},ve))};Se.useEffect(()=>(Zt(),()=>{qe.current&&(clearInterval(qe.current),qe.current=null)}),[Ke]);const Yt=(Qt,dt)=>ge(Qt,Object.assign(Object.assign({},dt),{format:Xe})),Ot=Qt=>(0,He.Tm)(Qt,{title:void 0});return Se.createElement(ne,Object.assign({},We,{valueRender:Ot,formatter:Yt}))};var Pe=Se.memo(Fe);ne.Countdown=Pe;var Ie=ne},15969:function(Rn,Fn,ye){"use strict";ye.d(Fn,{N:function(){return Se}});const Se=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,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Nt}});var Se=ye(50023),Oe=ye(92310),He=ye.n(Oe),Rt=ye(5891),_e=ye(80962),vt=ye(29043),ke=ye(19149),Tt=ye(59301),Lt=ye(35788),et=ye(85108),gt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ct=Tt.forwardRef(function(qe,Ht){var Zt,Yt=qe.prefixCls,Ot=Yt===void 0?"rc-switch":Yt,Qt=qe.className,dt=qe.checked,Re=qe.defaultChecked,Mt=qe.disabled,Pn=qe.loadingIcon,mn=qe.checkedChildren,kt=qe.unCheckedChildren,_t=qe.onClick,ln=qe.onChange,Bn=qe.onKeyDown,wn=(0,ke.Z)(qe,gt),Kn=(0,Lt.Z)(!1,{value:dt,defaultValue:Re}),yt=(0,vt.Z)(Kn,2),Jn=yt[0],bn=yt[1];function ci(ft,Je){var Gt=Jn;return Mt||(Gt=ft,bn(Gt),ln==null||ln(Gt,Je)),Gt}function Tn(ft){ft.which===et.Z.LEFT?ci(!1,ft):ft.which===et.Z.RIGHT&&ci(!0,ft),Bn==null||Bn(ft)}function tn(ft){var Je=ci(!Jn,ft);_t==null||_t(Je,ft)}var $t=He()(Ot,Qt,(Zt={},(0,_e.Z)(Zt,"".concat(Ot,"-checked"),Jn),(0,_e.Z)(Zt,"".concat(Ot,"-disabled"),Mt),Zt));return Tt.createElement("button",(0,Rt.Z)({},wn,{type:"button",role:"switch","aria-checked":Jn,disabled:Mt,className:$t,ref:Ht,onKeyDown:Tn,onClick:tn}),Pn,Tt.createElement("span",{className:"".concat(Ot,"-inner")},Tt.createElement("span",{className:"".concat(Ot,"-inner-checked")},mn),Tt.createElement("span",{className:"".concat(Ot,"-inner-unchecked")},kt)))});ct.displayName="Switch";var wt=ct,Me=ye(14088),te=ye(36355),ne=ye(1684),ce=ye(19716),se=ye(64993),ge=ye(17313),ve=ye(83116),be=ye(37613);const Fe=qe=>{const{componentCls:Ht,trackHeightSM:Zt,trackPadding:Yt,trackMinWidthSM:Ot,innerMinMarginSM:Qt,innerMaxMarginSM:dt,handleSizeSM:Re}=qe,Mt=`${Ht}-inner`;return{[Ht]:{[`&${Ht}-small`]:{minWidth:Ot,height:Zt,lineHeight:`${Zt}px`,[`${Ht}-inner`]:{paddingInlineStart:dt,paddingInlineEnd:Qt,[`${Mt}-checked`]:{marginInlineStart:`calc(-100% + ${Re+Yt*2}px - ${dt*2}px)`,marginInlineEnd:`calc(100% - ${Re+Yt*2}px + ${dt*2}px)`},[`${Mt}-unchecked`]:{marginTop:-Zt,marginInlineStart:0,marginInlineEnd:0}},[`${Ht}-handle`]:{width:Re,height:Re},[`${Ht}-loading-icon`]:{top:(Re-qe.switchLoadingIconSize)/2,fontSize:qe.switchLoadingIconSize},[`&${Ht}-checked`]:{[`${Ht}-inner`]:{paddingInlineStart:Qt,paddingInlineEnd:dt,[`${Mt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Mt}-unchecked`]:{marginInlineStart:`calc(100% - ${Re+Yt*2}px + ${dt*2}px)`,marginInlineEnd:`calc(-100% + ${Re+Yt*2}px - ${dt*2}px)`}},[`${Ht}-handle`]:{insetInlineStart:`calc(100% - ${Re+Yt}px)`}},[`&:not(${Ht}-disabled):active`]:{[`&:not(${Ht}-checked) ${Mt}`]:{[`${Mt}-unchecked`]:{marginInlineStart:qe.marginXXS/2,marginInlineEnd:-qe.marginXXS/2}},[`&${Ht}-checked ${Mt}`]:{[`${Mt}-checked`]:{marginInlineStart:-qe.marginXXS/2,marginInlineEnd:qe.marginXXS/2}}}}}}},Pe=qe=>{const{componentCls:Ht,handleSize:Zt}=qe;return{[Ht]:{[`${Ht}-loading-icon${qe.iconCls}`]:{position:"relative",top:(Zt-qe.fontSize)/2,color:qe.switchLoadingIconColor,verticalAlign:"top"},[`&${Ht}-checked ${Ht}-loading-icon`]:{color:qe.switchColor}}}},Ie=qe=>{const{componentCls:Ht,motion:Zt,trackPadding:Yt,handleBg:Ot,handleShadow:Qt,handleSize:dt}=qe,Re=`${Ht}-handle`;return{[Ht]:{[Re]:{position:"absolute",top:Yt,insetInlineStart:Yt,width:dt,height:dt,transition:`all ${qe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ot,borderRadius:dt/2,boxShadow:Qt,transition:`all ${qe.switchDuration} ease-in-out`,content:'""'}},[`&${Ht}-checked ${Re}`]:{insetInlineStart:`calc(100% - ${dt+Yt}px)`},[`&:not(${Ht}-disabled):active`]:Zt?{[`${Re}::before`]:{insetInlineEnd:qe.switchHandleActiveInset,insetInlineStart:0},[`&${Ht}-checked ${Re}::before`]:{insetInlineEnd:0,insetInlineStart:qe.switchHandleActiveInset}}:{}}}},We=qe=>{const{componentCls:Ht,trackHeight:Zt,trackPadding:Yt,innerMinMargin:Ot,innerMaxMargin:Qt,handleSize:dt}=qe,Re=`${Ht}-inner`;return{[Ht]:{[Re]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Qt,paddingInlineEnd:Ot,transition:`padding-inline-start ${qe.switchDuration} ease-in-out, padding-inline-end ${qe.switchDuration} ease-in-out`,[`${Re}-checked, ${Re}-unchecked`]:{display:"block",color:qe.colorTextLightSolid,fontSize:qe.fontSizeSM,transition:`margin-inline-start ${qe.switchDuration} ease-in-out, margin-inline-end ${qe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Re}-checked`]:{marginInlineStart:`calc(-100% + ${dt+Yt*2}px - ${Qt*2}px)`,marginInlineEnd:`calc(100% - ${dt+Yt*2}px + ${Qt*2}px)`},[`${Re}-unchecked`]:{marginTop:-Zt,marginInlineStart:0,marginInlineEnd:0}},[`&${Ht}-checked ${Re}`]:{paddingInlineStart:Ot,paddingInlineEnd:Qt,[`${Re}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Re}-unchecked`]:{marginInlineStart:`calc(100% - ${dt+Yt*2}px + ${Qt*2}px)`,marginInlineEnd:`calc(-100% + ${dt+Yt*2}px - ${Qt*2}px)`}},[`&:not(${Ht}-disabled):active`]:{[`&:not(${Ht}-checked) ${Re}`]:{[`${Re}-unchecked`]:{marginInlineStart:Yt*2,marginInlineEnd:-Yt*2}},[`&${Ht}-checked ${Re}`]:{[`${Re}-checked`]:{marginInlineStart:-Yt*2,marginInlineEnd:Yt*2}}}}}},Ke=qe=>{const{componentCls:Ht,trackHeight:Zt,trackMinWidth:Yt}=qe;return{[Ht]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(qe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Yt,height:Zt,lineHeight:`${Zt}px`,verticalAlign:"middle",background:qe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${qe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ht}-disabled)`]:{background:qe.colorTextTertiary}}),(0,ge.Qy)(qe)),{[`&${Ht}-checked`]:{background:qe.switchColor,[`&:hover:not(${Ht}-disabled)`]:{background:qe.colorPrimaryHover}},[`&${Ht}-loading, &${Ht}-disabled`]:{cursor:"not-allowed",opacity:qe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ht}-rtl`]:{direction:"rtl"}})}};var Xe=(0,ve.Z)("Switch",qe=>{const Ht=(0,be.TS)(qe,{switchDuration:qe.motionDurationMid,switchColor:qe.colorPrimary,switchDisabledOpacity:qe.opacityLoading,switchLoadingIconSize:qe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${qe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ke(Ht),We(Ht),Ie(Ht),Pe(Ht),Fe(Ht)]},qe=>{const{fontSize:Ht,lineHeight:Zt,controlHeight:Yt,colorWhite:Ot}=qe,Qt=Ht*Zt,dt=Yt/2,Re=2,Mt=Qt-Re*2,Pn=dt-Re*2;return{trackHeight:Qt,trackHeightSM:dt,trackMinWidth:Mt*2+Re*4,trackMinWidthSM:Pn*2+Re*2,trackPadding:Re,handleBg:Ot,handleSize:Mt,handleSizeSM:Pn,handleShadow:`0 2px 4px 0 ${new se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Mt/2,innerMaxMargin:Mt+Re+Re*2,innerMinMarginSM:Pn/2,innerMaxMarginSM:Pn+Re+Re*2}}),ht=function(qe,Ht){var Zt={};for(var Yt in qe)Object.prototype.hasOwnProperty.call(qe,Yt)&&Ht.indexOf(Yt)<0&&(Zt[Yt]=qe[Yt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Yt=Object.getOwnPropertySymbols(qe);Ot<Yt.length;Ot++)Ht.indexOf(Yt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(qe,Yt[Ot])&&(Zt[Yt[Ot]]=qe[Yt[Ot]]);return Zt};const Ve=Tt.forwardRef((qe,Ht)=>{const{prefixCls:Zt,size:Yt,disabled:Ot,loading:Qt,className:dt,rootClassName:Re,style:Mt}=qe,Pn=ht(qe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:mn,direction:kt,switch:_t}=Tt.useContext(te.E_),ln=Tt.useContext(ne.Z),Bn=(Ot!=null?Ot:ln)||Qt,wn=mn("switch",Zt),Kn=Tt.createElement("div",{className:`${wn}-handle`},Qt&&Tt.createElement(Se.Z,{className:`${wn}-loading-icon`})),[yt,Jn]=Xe(wn),bn=(0,ce.Z)(Yt),ci=He()(_t==null?void 0:_t.className,{[`${wn}-small`]:bn==="small",[`${wn}-loading`]:Qt,[`${wn}-rtl`]:kt==="rtl"},dt,Re,Jn),Tn=Object.assign(Object.assign({},_t==null?void 0:_t.style),Mt);return yt(Tt.createElement(Me.Z,{component:"Switch"},Tt.createElement(wt,Object.assign({},Pn,{prefixCls:wn,className:ci,style:Tn,disabled:Bn,ref:Ht,loadingIcon:Kn}))))});Ve.__ANT_SWITCH=!0;var Nt=Ve},2595:function(Rn,Fn,ye){"use strict";ye.d(Fn,{default:function(){return hl}});var Se={},Oe="rc-table-internal-hook",He=ye(29043),Rt=ye(8107),_e=ye(28800),vt=ye(51346),ke=ye(59301),Tt=ye(4676);function Lt(it){var ut=ke.createContext(void 0),Jt=function(An){var gn=An.value,Xn=An.children,Yn=ke.useRef(gn);Yn.current=gn;var Vn=ke.useState(function(){return{getValue:function(){return Yn.current},listeners:new Set}}),Pi=(0,He.Z)(Vn,1),ii=Pi[0];return(0,_e.Z)(function(){(0,Tt.unstable_batchedUpdates)(function(){ii.listeners.forEach(function(yi){yi(gn)})})},[gn]),ke.createElement(ut.Provider,{value:ii},Xn)};return{Context:ut,Provider:Jt,defaultValue:it}}function et(it,ut){var Jt=(0,Rt.Z)(typeof ut=="function"?ut:function(yi){if(ut===void 0)return yi;if(!Array.isArray(ut))return yi[ut];var Ji={};return ut.forEach(function(Ui){Ji[Ui]=yi[Ui]}),Ji}),en=ke.useContext(it==null?void 0:it.Context),An=en||{},gn=An.listeners,Xn=An.getValue,Yn=ke.useRef();Yn.current=Jt(en?Xn():it==null?void 0:it.defaultValue);var Vn=ke.useState({}),Pi=(0,He.Z)(Vn,2),ii=Pi[1];return(0,_e.Z)(function(){if(!en)return;function yi(Ji){var Ui=Jt(Ji);(0,vt.Z)(Yn.current,Ui,!0)||ii({})}return gn.add(yi),function(){gn.delete(yi)}},[en]),Yn.current}var gt=ye(5891),ct=ye(20475);function wt(){var it=ke.createContext(null);function ut(){return ke.useContext(it)}function Jt(An,gn){var Xn=(0,ct.Yr)(An),Yn=function(Pi,ii){var yi=Xn?{ref:ii}:{},Ji=ke.useRef(0),Ui=ke.useRef(Pi),zi=ut();return zi!==null?ke.createElement(An,(0,gt.Z)({},Pi,yi)):((!gn||gn(Ui.current,Pi))&&(Ji.current+=1),Ui.current=Pi,ke.createElement(it.Provider,{value:Ji.current},ke.createElement(An,(0,gt.Z)({},Pi,yi))))};return Xn?ke.forwardRef(Yn):Yn}function en(An,gn){var Xn=(0,ct.Yr)(An),Yn=function(Pi,ii){var yi=Xn?{ref:ii}:{};return ut(),ke.createElement(An,(0,gt.Z)({},Pi,yi))};return Xn?ke.memo(ke.forwardRef(Yn),gn):ke.memo(Yn,gn)}return{makeImmutable:Jt,responseImmutable:en,useImmutableMark:ut}}var Me=wt(),te=Me.makeImmutable,ne=Me.responseImmutable,ce=Me.useImmutableMark,se=wt(),ge=se.makeImmutable,ve=se.responseImmutable,be=se.useImmutableMark,Fe=Lt(),Pe=Fe;function Ie(it,ut){var Jt=ke.useRef(0);Jt.current+=1;var en=ke.useRef(it),An=[];Object.keys(it||{}).map(function(Xn){var Yn;(it==null?void 0:it[Xn])!==((Yn=en.current)===null||Yn===void 0?void 0:Yn[Xn])&&An.push(Xn)}),en.current=it;var gn=ke.useRef([]);return An.length&&(gn.current=An),ke.useDebugValue(Jt.current),ke.useDebugValue(gn.current.join(", ")),ut&&console.log("".concat(ut,":"),Jt.current,gn.current),Jt.current}var We=null,Ke=ke.memo(function(){var it=Ie();return ke.createElement("h1",null,"Render Times: ",it)});Ke.displayName="RenderBlock";var Xe=ye(80665),ht=ye(57259),Ve=ye(80962),Nt=ye(92310),qe=ye.n(Nt),Ht=ye(79722),Zt=ye(69004),Yt=ye(51395),Ot=ke.createContext({renderWithProps:!1}),Qt=Ot,dt="RC_TABLE_KEY";function Re(it){return it==null?[]:Array.isArray(it)?it:[it]}function Mt(it){var ut=[],Jt={};return it.forEach(function(en){for(var An=en||{},gn=An.key,Xn=An.dataIndex,Yn=gn||Re(Xn).join("-")||dt;Jt[Yn];)Yn="".concat(Yn,"_next");Jt[Yn]=!0,ut.push(Yn)}),ut}function Pn(it){return it!=null}function mn(it){return it&&(0,Xe.Z)(it)==="object"&&!Array.isArray(it)&&!ke.isValidElement(it)}function kt(it,ut,Jt,en,An,gn){var Xn=ke.useContext(Qt),Yn=be(),Vn=(0,Ht.Z)(function(){if(Pn(en))return[en];var Pi=ut==null||ut===""?[]:Array.isArray(ut)?ut:[ut],ii=(0,Zt.Z)(it,Pi),yi=ii,Ji=void 0;if(An){var Ui=An(ii,it,Jt);mn(Ui)?(yi=Ui.children,Ji=Ui.props,Xn.renderWithProps=!0):yi=Ui}return[yi,Ji]},[Yn,it,en,ut,An,Jt],function(Pi,ii){if(gn){var yi=(0,He.Z)(Pi,2),Ji=yi[1],Ui=(0,He.Z)(ii,2),zi=Ui[1];return gn(zi,Ji)}return Xn.renderWithProps?!0:!(0,vt.Z)(Pi,ii,!0)});return Vn}function _t(it,ut,Jt,en){var An=it+ut-1;return it<=en&&An>=Jt}function ln(it,ut){return et(Pe,function(Jt){var en=_t(it,ut||1,Jt.hoverStartRow,Jt.hoverEndRow);return[en,Jt.onHover]})}var Bn=function(ut){var Jt=ut.ellipsis,en=ut.rowType,An=ut.children,gn,Xn=Jt===!0?{showTitle:!0}:Jt;return Xn&&(Xn.showTitle||en==="header")&&(typeof An=="string"||typeof An=="number"?gn=An.toString():ke.isValidElement(An)&&typeof An.props.children=="string"&&(gn=An.props.children)),gn};function wn(it){var ut,Jt,en,An,gn,Xn,Yn,Vn,Pi=it.component,ii=it.children,yi=it.ellipsis,Ji=it.scope,Ui=it.prefixCls,zi=it.className,yr=it.align,Ki=it.record,Ar=it.render,Pr=it.dataIndex,Br=it.renderIndex,yo=it.shouldCellUpdate,Lo=it.index,zr=it.rowType,eo=it.colSpan,Ko=it.rowSpan,Or=it.fixLeft,so=it.fixRight,jr=it.firstFixLeft,gr=it.lastFixLeft,Lr=it.firstFixRight,lo=it.lastFixRight,Mo=it.appendNode,No=it.additionalProps,Mr=No===void 0?{}:No,Vo=it.isSticky,_o="".concat(Ui,"-cell"),na=et(Pe,["supportSticky","allColumnsFixedLeft"]),ta=na.supportSticky,Qa=na.allColumnsFixedLeft,fa=kt(Ki,Pr,Br,ii,Ar,yo),Wo=(0,He.Z)(fa,2),wo=Wo[0],To=Wo[1],Ya={},Ia=typeof Or=="number"&&ta,ns=typeof so=="number"&&ta;Ia&&(Ya.position="sticky",Ya.left=Or),ns&&(Ya.position="sticky",Ya.right=so);var Ro=(ut=(Jt=(en=To==null?void 0:To.colSpan)!==null&&en!==void 0?en:Mr.colSpan)!==null&&Jt!==void 0?Jt:eo)!==null&&ut!==void 0?ut:1,bo=(An=(gn=(Xn=To==null?void 0:To.rowSpan)!==null&&Xn!==void 0?Xn:Mr.rowSpan)!==null&&gn!==void 0?gn:Ko)!==null&&An!==void 0?An:1,Zo=ln(Lo,bo),xo=(0,He.Z)(Zo,2),ao=xo[0],qi=xo[1],Zr=function(Do){var Vs;Ki&&qi(Lo,Lo+bo-1),Mr==null||(Vs=Mr.onMouseEnter)===null||Vs===void 0||Vs.call(Mr,Do)},Uo=function(Do){var Vs;Ki&&qi(-1,-1),Mr==null||(Vs=Mr.onMouseLeave)===null||Vs===void 0||Vs.call(Mr,Do)};if(Ro===0||bo===0)return null;var sa=(Yn=Mr.title)!==null&&Yn!==void 0?Yn:Bn({rowType:zr,ellipsis:yi,children:wo}),al=qe()(_o,zi,(Vn={},(0,Ve.Z)(Vn,"".concat(_o,"-fix-left"),Ia&&ta),(0,Ve.Z)(Vn,"".concat(_o,"-fix-left-first"),jr&&ta),(0,Ve.Z)(Vn,"".concat(_o,"-fix-left-last"),gr&&ta),(0,Ve.Z)(Vn,"".concat(_o,"-fix-left-all"),gr&&Qa&&ta),(0,Ve.Z)(Vn,"".concat(_o,"-fix-right"),ns&&ta),(0,Ve.Z)(Vn,"".concat(_o,"-fix-right-first"),Lr&&ta),(0,Ve.Z)(Vn,"".concat(_o,"-fix-right-last"),lo&&ta),(0,Ve.Z)(Vn,"".concat(_o,"-ellipsis"),yi),(0,Ve.Z)(Vn,"".concat(_o,"-with-append"),Mo),(0,Ve.Z)(Vn,"".concat(_o,"-fix-sticky"),(Ia||ns)&&Vo&&ta),(0,Ve.Z)(Vn,"".concat(_o,"-row-hover"),!To&&ao),Vn),Mr.className,To==null?void 0:To.className),zs={};yr&&(zs.textAlign=yr);var Al=(0,ht.Z)((0,ht.Z)((0,ht.Z)((0,ht.Z)({},Ya),Mr.style),zs),To==null?void 0:To.style),ka=wo;return(0,Xe.Z)(ka)==="object"&&!Array.isArray(ka)&&!ke.isValidElement(ka)&&(ka=null),yi&&(gr||Lr)&&(ka=ke.createElement("span",{className:"".concat(_o,"-content")},ka)),ke.createElement(Pi,(0,gt.Z)({},To,Mr,{className:al,style:Al,title:sa,scope:Ji,onMouseEnter:Zr,onMouseLeave:Uo,colSpan:Ro!==1?Ro:null,rowSpan:bo!==1?bo:null}),Mo,ka)}var Kn=ke.memo(wn);function yt(it,ut,Jt,en,An,gn){var Xn=Jt[it]||{},Yn=Jt[ut]||{},Vn,Pi;Xn.fixed==="left"?Vn=en.left[An==="rtl"?ut:it]:Yn.fixed==="right"&&(Pi=en.right[An==="rtl"?it:ut]);var ii=!1,yi=!1,Ji=!1,Ui=!1,zi=Jt[ut+1],yr=Jt[it-1],Ki=!(gn!=null&&gn.children);if(An==="rtl"){if(Vn!==void 0){var Ar=yr&&yr.fixed==="left";Ui=!Ar&&Ki}else if(Pi!==void 0){var Pr=zi&&zi.fixed==="right";Ji=!Pr&&Ki}}else if(Vn!==void 0){var Br=zi&&zi.fixed==="left";ii=!Br&&Ki}else if(Pi!==void 0){var yo=yr&&yr.fixed==="right";yi=!yo&&Ki}return{fixLeft:Vn,fixRight:Pi,lastFixLeft:ii,firstFixRight:yi,lastFixRight:Ji,firstFixLeft:Ui,isSticky:en.isSticky}}var Jn=ke.createContext({}),bn=Jn;function ci(it){var ut=it.className,Jt=it.index,en=it.children,An=it.colSpan,gn=An===void 0?1:An,Xn=it.rowSpan,Yn=it.align,Vn=et(Pe,["prefixCls","direction"]),Pi=Vn.prefixCls,ii=Vn.direction,yi=ke.useContext(bn),Ji=yi.scrollColumnIndex,Ui=yi.stickyOffsets,zi=yi.flattenColumns,yr=yi.columns,Ki=Jt+gn-1,Ar=Ki+1===Ji?gn+1:gn,Pr=yt(Jt,Jt+Ar-1,zi,Ui,ii,yr==null?void 0:yr[Jt]);return ke.createElement(Kn,(0,gt.Z)({className:ut,index:Jt,component:"td",prefixCls:Pi,record:null,dataIndex:null,align:Yn,colSpan:Ar,rowSpan:Xn,render:function(){return en}},Pr))}var Tn=ye(19149),tn=["children"];function $t(it){var ut=it.children,Jt=(0,Tn.Z)(it,tn);return ke.createElement("tr",Jt,ut)}function ft(it){var ut=it.children;return ut}ft.Row=$t,ft.Cell=ci;var Je=ft;function Gt(it){var ut=it.children,Jt=it.stickyOffsets,en=it.flattenColumns,An=it.columns,gn=et(Pe,"prefixCls"),Xn=en.length-1,Yn=en[Xn],Vn=ke.useMemo(function(){return{stickyOffsets:Jt,flattenColumns:en,scrollColumnIndex:Yn!=null&&Yn.scrollbar?Xn:null,columns:An}},[Yn,en,Xn,Jt,An]);return ke.createElement(bn.Provider,{value:Vn},ke.createElement("tfoot",{className:"".concat(gn,"-summary")},ut))}var At=ve(Gt),lt=Je,Ge=ye(80764),Be=ye(29301),we=ye(48886),pe=ye(24387),De=ye(59055),ze=ye(36994);function Le(it,ut,Jt,en,An,gn,Xn){it.push({record:ut,indent:Jt,index:Xn});var Yn=gn(ut),Vn=An==null?void 0:An.has(Yn);if(ut&&Array.isArray(ut[en])&&Vn)for(var Pi=0;Pi<ut[en].length;Pi+=1)Le(it,ut[en][Pi],Jt+1,en,An,gn,Pi)}function nt(it,ut,Jt,en){var An=ke.useMemo(function(){if(Jt!=null&&Jt.size){for(var gn=[],Xn=0;Xn<(it==null?void 0:it.length);Xn+=1){var Yn=it[Xn];Le(gn,Yn,0,ut,Jt,en,Xn)}return gn}return it==null?void 0:it.map(function(Vn,Pi){return{record:Vn,indent:0,index:Pi}})},[it,ut,Jt,en]);return An}function Ut(it){var ut=it.prefixCls,Jt=it.children,en=it.component,An=it.cellComponent,gn=it.className,Xn=it.expanded,Yn=it.colSpan,Vn=it.isEmpty,Pi=et(Pe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ii=Pi.scrollbarSize,yi=Pi.fixHeader,Ji=Pi.fixColumn,Ui=Pi.componentWidth,zi=Pi.horizonScroll,yr=Jt;return(Vn?zi&&Ui:Ji)&&(yr=ke.createElement("div",{style:{width:Ui-(yi?ii:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ut,"-expanded-row-fixed")},yr)),ke.createElement(en,{className:gn,style:{display:Xn?null:"none"}},ke.createElement(Kn,{component:An,prefixCls:ut,colSpan:Yn},yr))}var En=Ut;function rn(it,ut,Jt,en){var An=et(Pe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),gn=An.flattenColumns,Xn=An.expandableType,Yn=An.expandedKeys,Vn=An.childrenColumnName,Pi=An.onTriggerExpand,ii=An.rowExpandable,yi=An.onRow,Ji=An.expandRowByClick,Ui=An.rowClassName,zi=Xn==="nest",yr=Xn==="row"&&(!ii||ii(it)),Ki=yr||zi,Ar=Yn&&Yn.has(ut),Pr=Vn&&it&&it[Vn],Br=(0,Ge.useEvent)(Pi),yo=yi==null?void 0:yi(it,Jt),Lo=yo==null?void 0:yo.onClick,zr=function(so){Ji&&Ki&&Pi(it,so);for(var jr=arguments.length,gr=new Array(jr>1?jr-1:0),Lr=1;Lr<jr;Lr++)gr[Lr-1]=arguments[Lr];Lo==null||Lo.apply(void 0,[so].concat(gr))},eo;typeof Ui=="string"?eo=Ui:typeof Ui=="function"&&(eo=Ui(it,Jt,en));var Ko=Mt(gn);return(0,ht.Z)((0,ht.Z)({},An),{},{columnsKey:Ko,nestExpandable:zi,expanded:Ar,hasNestChildren:Pr,record:it,onTriggerExpand:Br,rowSupportExpand:yr,expandable:Ki,rowProps:(0,ht.Z)((0,ht.Z)({},yo),{},{className:qe()(eo,yo==null?void 0:yo.className),onClick:zr})})}function vn(it,ut,Jt,en,An){var gn=it.record,Xn=it.prefixCls,Yn=it.columnsKey,Vn=it.fixedInfoList,Pi=it.expandIconColumnIndex,ii=it.nestExpandable,yi=it.indentSize,Ji=it.expandIcon,Ui=it.expanded,zi=it.hasNestChildren,yr=it.onTriggerExpand,Ki=Yn[Jt],Ar=Vn[Jt],Pr;Jt===(Pi||0)&&ii&&(Pr=ke.createElement(ke.Fragment,null,ke.createElement("span",{style:{paddingLeft:"".concat(yi*en,"px")},className:"".concat(Xn,"-row-indent indent-level-").concat(en)}),Ji({prefixCls:Xn,expanded:Ui,expandable:zi,record:gn,onExpand:yr})));var Br;return ut.onCell&&(Br=ut.onCell(gn,An)),{key:Ki,fixedInfo:Ar,appendCellNode:Pr,additionalCellProps:Br||{}}}function mi(it){var ut=it.className,Jt=it.style,en=it.record,An=it.index,gn=it.renderIndex,Xn=it.rowKey,Yn=it.indent,Vn=Yn===void 0?0:Yn,Pi=it.rowComponent,ii=it.cellComponent,yi=it.scopeCellComponent,Ji=rn(en,Xn,An,Vn),Ui=Ji.prefixCls,zi=Ji.flattenColumns,yr=Ji.expandedRowClassName,Ki=Ji.expandedRowRender,Ar=Ji.rowProps,Pr=Ji.expanded,Br=Ji.rowSupportExpand,yo=ke.useState(!1),Lo=(0,He.Z)(yo,2),zr=Lo[0],eo=Lo[1];ke.useEffect(function(){Pr&&eo(!0)},[Pr]);var Ko=ke.createElement(Pi,(0,gt.Z)({},Ar,{"data-row-key":Xn,className:qe()(ut,"".concat(Ui,"-row"),"".concat(Ui,"-row-level-").concat(Vn),Ar==null?void 0:Ar.className),style:(0,ht.Z)((0,ht.Z)({},Jt),Ar==null?void 0:Ar.style)}),zi.map(function(gr,Lr){var lo=gr.render,Mo=gr.dataIndex,No=gr.className,Mr=vn(Ji,gr,Lr,Vn,An),Vo=Mr.key,_o=Mr.fixedInfo,na=Mr.appendCellNode,ta=Mr.additionalCellProps;return ke.createElement(Kn,(0,gt.Z)({className:No,ellipsis:gr.ellipsis,align:gr.align,scope:gr.rowScope,component:gr.rowScope?yi:ii,prefixCls:Ui,key:Vo,record:en,index:An,renderIndex:gn,dataIndex:Mo,render:lo,shouldCellUpdate:gr.shouldCellUpdate},_o,{appendNode:na,additionalProps:ta}))})),Or;if(Br&&(zr||Pr)){var so=Ki(en,An,Vn+1,Pr),jr=yr&&yr(en,An,Vn);Or=ke.createElement(En,{expanded:Pr,className:qe()("".concat(Ui,"-expanded-row"),"".concat(Ui,"-expanded-row-level-").concat(Vn+1),jr),prefixCls:Ui,component:Pi,cellComponent:ii,colSpan:zi.length,isEmpty:!1},so)}return ke.createElement(ke.Fragment,null,Ko,Or)}mi.displayName="BodyRow";var wi=ve(mi);function Ri(it){var ut=it.columnKey,Jt=it.onColumnResize,en=ke.useRef();return ke.useEffect(function(){en.current&&Jt(ut,en.current.offsetWidth)},[]),ke.createElement(Be.Z,{data:ut},ke.createElement("td",{ref:en,style:{padding:0,border:0,height:0}},ke.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Wi(it){var ut=it.prefixCls,Jt=it.columnsKey,en=it.onColumnResize;return ke.createElement("tr",{"aria-hidden":"true",className:"".concat(ut,"-measure-row"),style:{height:0,fontSize:0}},ke.createElement(Be.Z.Collection,{onBatchResize:function(gn){gn.forEach(function(Xn){var Yn=Xn.data,Vn=Xn.size;en(Yn,Vn.offsetWidth)})}},Jt.map(function(An){return ke.createElement(Ri,{key:An,columnKey:An,onColumnResize:en})})))}function Mn(it){var ut=it.data,Jt=it.measureColumnWidth,en=et(Pe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),An=en.prefixCls,gn=en.getComponent,Xn=en.onColumnResize,Yn=en.flattenColumns,Vn=en.getRowKey,Pi=en.expandedKeys,ii=en.childrenColumnName,yi=en.emptyNode,Ji=nt(ut,ii,Pi,Vn),Ui=ke.useRef({renderWithProps:!1}),zi=gn(["body","wrapper"],"tbody"),yr=gn(["body","row"],"tr"),Ki=gn(["body","cell"],"td"),Ar=gn(["body","cell"],"th"),Pr;ut.length?Pr=Ji.map(function(yo,Lo){var zr=yo.record,eo=yo.indent,Ko=yo.index,Or=Vn(zr,Lo);return ke.createElement(wi,{key:Or,rowKey:Or,record:zr,index:Lo,renderIndex:Ko,rowComponent:yr,cellComponent:Ki,scopeCellComponent:Ar,getRowKey:Vn,indent:eo})}):Pr=ke.createElement(En,{expanded:!0,className:"".concat(An,"-placeholder"),prefixCls:An,component:yr,cellComponent:Ki,colSpan:Yn.length,isEmpty:!0},yi);var Br=Mt(Yn);return ke.createElement(Qt.Provider,{value:Ui.current},ke.createElement(zi,{className:"".concat(An,"-tbody")},Jt&&ke.createElement(Wi,{prefixCls:An,columnsKey:Br,onColumnResize:Xn}),Pr))}Mn.displayName="Body";var nr=ve(Mn),Wr=["expandable"],Hr="RC_TABLE_INTERNAL_COL_DEFINE";function Tr(it){var ut=it.expandable,Jt=(0,Tn.Z)(it,Wr),en;return"expandable"in it?en=(0,ht.Z)((0,ht.Z)({},Jt),ut):en=Jt,en.showExpandColumn===!1&&(en.expandIconColumnIndex=-1),en}var Fr=["columnType"];function Yr(it){for(var ut=it.colWidths,Jt=it.columns,en=it.columCount,An=[],gn=en||Jt.length,Xn=!1,Yn=gn-1;Yn>=0;Yn-=1){var Vn=ut[Yn],Pi=Jt&&Jt[Yn],ii=Pi&&Pi[Hr];if(Vn||ii||Xn){var yi=ii||{},Ji=yi.columnType,Ui=(0,Tn.Z)(yi,Fr);An.unshift(ke.createElement("col",(0,gt.Z)({key:Yn,style:{width:Vn}},Ui))),Xn=!0}}return ke.createElement("colgroup",null,An)}var Kr=Yr,ar=ye(26390),Co=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function $n(it,ut){return(0,ke.useMemo)(function(){for(var Jt=[],en=0;en<ut;en+=1){var An=it[en];if(An!==void 0)Jt[en]=An;else return null}return Jt},[it.join("_"),ut])}var Ce=ke.forwardRef(function(it,ut){var Jt=it.className,en=it.noData,An=it.columns,gn=it.flattenColumns,Xn=it.colWidths,Yn=it.columCount,Vn=it.stickyOffsets,Pi=it.direction,ii=it.fixHeader,yi=it.stickyTopOffset,Ji=it.stickyBottomOffset,Ui=it.stickyClassName,zi=it.onScroll,yr=it.maxContentScroll,Ki=it.children,Ar=(0,Tn.Z)(it,Co),Pr=et(Pe,["prefixCls","scrollbarSize","isSticky"]),Br=Pr.prefixCls,yo=Pr.scrollbarSize,Lo=Pr.isSticky,zr=Lo&&!ii?0:yo,eo=ke.useRef(null),Ko=ke.useCallback(function(No){(0,ct.mH)(ut,No),(0,ct.mH)(eo,No)},[]);ke.useEffect(function(){var No;function Mr(Vo){var _o=Vo,na=_o.currentTarget,ta=_o.deltaX;ta&&(zi({currentTarget:na,scrollLeft:na.scrollLeft+ta}),Vo.preventDefault())}return(No=eo.current)===null||No===void 0||No.addEventListener("wheel",Mr),function(){var Vo;(Vo=eo.current)===null||Vo===void 0||Vo.removeEventListener("wheel",Mr)}},[]);var Or=ke.useMemo(function(){return gn.every(function(No){return No.width})},[gn]),so=gn[gn.length-1],jr={fixed:so?so.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Br,"-cell-scrollbar")}}},gr=(0,ke.useMemo)(function(){return zr?[].concat((0,ar.Z)(An),[jr]):An},[zr,An]),Lr=(0,ke.useMemo)(function(){return zr?[].concat((0,ar.Z)(gn),[jr]):gn},[zr,gn]),lo=(0,ke.useMemo)(function(){var No=Vn.right,Mr=Vn.left;return(0,ht.Z)((0,ht.Z)({},Vn),{},{left:Pi==="rtl"?[].concat((0,ar.Z)(Mr.map(function(Vo){return Vo+zr})),[0]):Mr,right:Pi==="rtl"?No:[].concat((0,ar.Z)(No.map(function(Vo){return Vo+zr})),[0]),isSticky:Lo})},[zr,Vn,Lo]),Mo=$n(Xn,Yn);return ke.createElement("div",{style:(0,ht.Z)({overflow:"hidden"},Lo?{top:yi,bottom:Ji}:{}),ref:Ko,className:qe()(Jt,(0,Ve.Z)({},Ui,!!Ui))},ke.createElement("table",{style:{tableLayout:"fixed",visibility:en||Mo?null:"hidden"}},(!en||!yr||Or)&&ke.createElement(Kr,{colWidths:Mo?[].concat((0,ar.Z)(Mo),[zr]):[],columCount:Yn+1,columns:Lr}),Ki((0,ht.Z)((0,ht.Z)({},Ar),{},{stickyOffsets:lo,columns:gr,flattenColumns:Lr}))))});Ce.displayName="FixedHolder";var hi=ke.memo(Ce);function ki(it){var ut=it.cells,Jt=it.stickyOffsets,en=it.flattenColumns,An=it.rowComponent,gn=it.cellComponent,Xn=it.tdCellComponent,Yn=it.onHeaderRow,Vn=it.index,Pi=et(Pe,["prefixCls","direction"]),ii=Pi.prefixCls,yi=Pi.direction,Ji;Yn&&(Ji=Yn(ut.map(function(zi){return zi.column}),Vn));var Ui=Mt(ut.map(function(zi){return zi.column}));return ke.createElement(An,Ji,ut.map(function(zi,yr){var Ki=zi.column,Ar=yt(zi.colStart,zi.colEnd,en,Jt,yi,Ki),Pr;return Ki&&Ki.onHeaderCell&&(Pr=zi.column.onHeaderCell(Ki)),ke.createElement(Kn,(0,gt.Z)({},zi,{scope:Ki.title?zi.colSpan>1?"colgroup":"col":null,ellipsis:Ki.ellipsis,align:Ki.align,component:Ki.title?gn:Xn,prefixCls:ii,key:Ui[yr]},Ar,{additionalProps:Pr,rowType:"header"}))}))}ki.displayName="HeaderRow";var un=ki;function Wn(it){var ut=[];function Jt(Xn,Yn){var Vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ut[Vn]=ut[Vn]||[];var Pi=Yn,ii=Xn.filter(Boolean).map(function(yi){var Ji={key:yi.key,className:yi.className||"",children:yi.title,column:yi,colStart:Pi},Ui=1,zi=yi.children;return zi&&zi.length>0&&(Ui=Jt(zi,Pi,Vn+1).reduce(function(yr,Ki){return yr+Ki},0),Ji.hasSubColumns=!0),"colSpan"in yi&&(Ui=yi.colSpan),"rowSpan"in yi&&(Ji.rowSpan=yi.rowSpan),Ji.colSpan=Ui,Ji.colEnd=Ji.colStart+Ui-1,ut[Vn].push(Ji),Pi+=Ui,Ui});return ii}Jt(it,0);for(var en=ut.length,An=function(Yn){ut[Yn].forEach(function(Vn){!("rowSpan"in Vn)&&!Vn.hasSubColumns&&(Vn.rowSpan=en-Yn)})},gn=0;gn<en;gn+=1)An(gn);return ut}function li(it){var ut=it.stickyOffsets,Jt=it.columns,en=it.flattenColumns,An=it.onHeaderRow,gn=et(Pe,["prefixCls","getComponent"]),Xn=gn.prefixCls,Yn=gn.getComponent,Vn=ke.useMemo(function(){return Wn(Jt)},[Jt]),Pi=Yn(["header","wrapper"],"thead"),ii=Yn(["header","row"],"tr"),yi=Yn(["header","cell"],"th"),Ji=Yn(["header","cell"],"td");return ke.createElement(Pi,{className:"".concat(Xn,"-thead")},Vn.map(function(Ui,zi){var yr=ke.createElement(un,{key:zi,flattenColumns:en,cells:Ui,stickyOffsets:ut,rowComponent:ii,cellComponent:yi,tdCellComponent:Ji,onHeaderRow:An,index:zi});return yr}))}var fn=ve(li),on=ye(38298);function mt(it){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ut=="number"?ut:ut.endsWith("%")?it*parseFloat(ut)/100:null}function Pt(it,ut){return ke.useMemo(function(){if(ut&&ut>0){var Jt=0,en=0;it.forEach(function(Pi){var ii=mt(ut,Pi.width);ii?Jt+=ii:en+=1});var An=ut-Jt,gn=en,Xn=An/en,Yn=0,Vn=it.map(function(Pi){var ii=(0,ht.Z)({},Pi),yi=mt(ut,ii.width);if(yi)ii.width=yi;else{var Ji=Math.floor(Xn);ii.width=gn===1?An:Ji,An-=Ji,gn-=1}return Yn+=ii.width,ii});return[Vn,Yn]}return[it,ut]},[it,ut])}var bt=["children"],tt=["fixed"];function qt(it){return(0,on.Z)(it).filter(function(ut){return ke.isValidElement(ut)}).map(function(ut){var Jt=ut.key,en=ut.props,An=en.children,gn=(0,Tn.Z)(en,bt),Xn=(0,ht.Z)({key:Jt},gn);return An&&(Xn.children=qt(An)),Xn})}function dn(it){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return it.filter(function(Jt){return Jt&&(0,Xe.Z)(Jt)==="object"}).reduce(function(Jt,en,An){var gn=en.fixed,Xn=gn===!0?"left":gn,Yn="".concat(ut,"-").concat(An),Vn=en.children;return Vn&&Vn.length>0?[].concat((0,ar.Z)(Jt),(0,ar.Z)(dn(Vn,Yn).map(function(Pi){return(0,ht.Z)({fixed:Xn},Pi)}))):[].concat((0,ar.Z)(Jt),[(0,ht.Z)((0,ht.Z)({key:Yn},en),{},{fixed:Xn})])},[])}function xt(it){for(var ut=!0,Jt=0;Jt<it.length;Jt+=1){var en=it[Jt];if(ut&&en.fixed!=="left")ut=!1;else if(!ut&&en.fixed==="left"){warning(!1,"Index ".concat(Jt-1," of `columns` missing `fixed='left'` prop."));break}}for(var An=!0,gn=it.length-1;gn>=0;gn-=1){var Xn=it[gn];if(An&&Xn.fixed!=="right")An=!1;else if(!An&&Xn.fixed==="right"){warning(!1,"Index ".concat(gn+1," of `columns` missing `fixed='right'` prop."));break}}}function Ye(it){return it.map(function(ut){var Jt=ut.fixed,en=(0,Tn.Z)(ut,tt),An=Jt;return Jt==="left"?An="right":Jt==="right"&&(An="left"),(0,ht.Z)({fixed:An},en)})}function an(it,ut){var Jt=it.prefixCls,en=it.columns,An=it.children,gn=it.expandable,Xn=it.expandedKeys,Yn=it.columnTitle,Vn=it.getRowKey,Pi=it.onTriggerExpand,ii=it.expandIcon,yi=it.rowExpandable,Ji=it.expandIconColumnIndex,Ui=it.direction,zi=it.expandRowByClick,yr=it.columnWidth,Ki=it.fixed,Ar=it.scrollWidth,Pr=ke.useMemo(function(){return en||qt(An)},[en,An]),Br=ke.useMemo(function(){if(gn){var so,jr=Pr.slice();if(!jr.includes(Se)){var gr=Ji||0;gr>=0&&jr.splice(gr,0,Se)}var Lr=jr.indexOf(Se);jr=jr.filter(function(Mr,Vo){return Mr!==Se||Vo===Lr});var lo=Pr[Lr],Mo;(Ki==="left"||Ki)&&!Ji?Mo="left":(Ki==="right"||Ki)&&Ji===Pr.length?Mo="right":Mo=lo?lo.fixed:null;var No=(so={},(0,Ve.Z)(so,Hr,{className:"".concat(Jt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ve.Z)(so,"title",Yn),(0,Ve.Z)(so,"fixed",Mo),(0,Ve.Z)(so,"className","".concat(Jt,"-row-expand-icon-cell")),(0,Ve.Z)(so,"width",yr),(0,Ve.Z)(so,"render",function(Vo,_o,na){var ta=Vn(_o,na),Qa=Xn.has(ta),fa=yi?yi(_o):!0,Wo=ii({prefixCls:Jt,expanded:Qa,expandable:fa,record:_o,onExpand:Pi});return zi?ke.createElement("span",{onClick:function(To){return To.stopPropagation()}},Wo):Wo}),so);return jr.map(function(Mr){return Mr===Se?No:Mr})}return Pr.filter(function(Mr){return Mr!==Se})},[gn,Pr,Vn,Xn,ii,Ui]),yo=ke.useMemo(function(){var so=Br;return ut&&(so=ut(so)),so.length||(so=[{render:function(){return null}}]),so},[ut,Br,Ui]),Lo=ke.useMemo(function(){return Ui==="rtl"?Ye(dn(yo)):dn(yo)},[yo,Ui,Ar]),zr=Pt(Lo,Ar),eo=(0,He.Z)(zr,2),Ko=eo[0],Or=eo[1];return[yo,Ko,Or]}var Bt=an;function jn(it){var ut,Jt=it.prefixCls,en=it.record,An=it.onExpand,gn=it.expanded,Xn=it.expandable,Yn="".concat(Jt,"-row-expand-icon");if(!Xn)return ke.createElement("span",{className:qe()(Yn,"".concat(Jt,"-row-spaced"))});var Vn=function(ii){An(en,ii),ii.stopPropagation()};return ke.createElement("span",{className:qe()(Yn,(ut={},(0,Ve.Z)(ut,"".concat(Jt,"-row-expanded"),gn),(0,Ve.Z)(ut,"".concat(Jt,"-row-collapsed"),!gn),ut)),onClick:Vn})}function cn(it,ut,Jt){var en=[];function An(gn){(gn||[]).forEach(function(Xn,Yn){en.push(ut(Xn,Yn)),An(Xn[Jt])})}return An(it),en}function Et(it,ut,Jt){var en=Tr(it),An=en.expandIcon,gn=en.expandedRowKeys,Xn=en.defaultExpandedRowKeys,Yn=en.defaultExpandAllRows,Vn=en.expandedRowRender,Pi=en.onExpand,ii=en.onExpandedRowsChange,yi=en.childrenColumnName,Ji=An||jn,Ui=yi||"children",zi=ke.useMemo(function(){return Vn?"row":it.expandable&&it.internalHooks===Oe&&it.expandable.__PARENT_RENDER_ICON__||ut.some(function(Lo){return Lo&&(0,Xe.Z)(Lo)==="object"&&Lo[Ui]})?"nest":!1},[!!Vn,ut]),yr=ke.useState(function(){return Xn||(Yn?cn(ut,Jt,Ui):[])}),Ki=(0,He.Z)(yr,2),Ar=Ki[0],Pr=Ki[1],Br=ke.useMemo(function(){return new Set(gn||Ar||[])},[gn,Ar]),yo=ke.useCallback(function(Lo){var zr=Jt(Lo,ut.indexOf(Lo)),eo,Ko=Br.has(zr);Ko?(Br.delete(zr),eo=(0,ar.Z)(Br)):eo=[].concat((0,ar.Z)(Br),[zr]),Pr(eo),Pi&&Pi(!Ko,Lo),ii&&ii(eo)},[Jt,Br,ut,Pi,ii]);return[en,zi,Br,Ji,Ui,yo]}function xn(it,ut,Jt,en){var An=it.map(function(gn,Xn){return yt(Xn,Xn,it,ut,Jt,en==null?void 0:en[Xn])});return(0,Ht.Z)(function(){return An},[An],function(gn,Xn){return!(0,vt.Z)(gn,Xn)})}function Qn(it){var ut=(0,ke.useRef)(it),Jt=(0,ke.useState)({}),en=(0,He.Z)(Jt,2),An=en[1],gn=(0,ke.useRef)(null),Xn=(0,ke.useRef)([]);function Yn(Vn){Xn.current.push(Vn);var Pi=Promise.resolve();gn.current=Pi,Pi.then(function(){if(gn.current===Pi){var ii=Xn.current,yi=ut.current;Xn.current=[],ii.forEach(function(Ji){ut.current=Ji(ut.current)}),gn.current=null,yi!==ut.current&&An({})}})}return(0,ke.useEffect)(function(){return function(){gn.current=null}},[]),[ut.current,Yn]}function Un(it){var ut=(0,ke.useRef)(it||null),Jt=(0,ke.useRef)();function en(){window.clearTimeout(Jt.current)}function An(Xn){ut.current=Xn,en(),Jt.current=window.setTimeout(function(){ut.current=null,Jt.current=void 0},100)}function gn(){return ut.current}return(0,ke.useEffect)(function(){return en},[]),[An,gn]}function zt(){var it=ke.useState(-1),ut=(0,He.Z)(it,2),Jt=ut[0],en=ut[1],An=ke.useState(-1),gn=(0,He.Z)(An,2),Xn=gn[0],Yn=gn[1],Vn=ke.useCallback(function(Pi,ii){en(Pi),Yn(ii)},[]);return[Jt,Xn,Vn]}var Sn=ye(87746),Ci=(0,Sn.Z)()?window:null;function Si(it,ut){var Jt=(0,Xe.Z)(it)==="object"?it:{},en=Jt.offsetHeader,An=en===void 0?0:en,gn=Jt.offsetSummary,Xn=gn===void 0?0:gn,Yn=Jt.offsetScroll,Vn=Yn===void 0?0:Yn,Pi=Jt.getContainer,ii=Pi===void 0?function(){return Ci}:Pi,yi=ii()||Ci;return ke.useMemo(function(){var Ji=!!it;return{isSticky:Ji,stickyClassName:Ji?"".concat(ut,"-sticky-holder"):"",offsetHeader:An,offsetSummary:Xn,offsetScroll:Vn,container:yi}},[Vn,An,Xn,ut,yi])}function vi(it,ut,Jt){var en=(0,ke.useMemo)(function(){for(var An=[],gn=[],Xn=0,Yn=0,Vn=0;Vn<ut;Vn+=1)if(Jt==="rtl"){gn[Vn]=Yn,Yn+=it[Vn]||0;var Pi=ut-Vn-1;An[Pi]=Xn,Xn+=it[Pi]||0}else{An[Vn]=Xn,Xn+=it[Vn]||0;var ii=ut-Vn-1;gn[ii]=Yn,Yn+=it[ii]||0}return{left:An,right:gn}},[it,ut,Jt]);return en}var ti=vi;function xi(it){var ut=it.className,Jt=it.children;return ke.createElement("div",{className:ut},Jt)}var Ni=xi,Zi=ye(8178),cr=ye(21783),Gn=function(ut,Jt){var en,An,gn=ut.scrollBodyRef,Xn=ut.onScroll,Yn=ut.offsetScroll,Vn=ut.container,Pi=et(Pe,"prefixCls"),ii=((en=gn.current)===null||en===void 0?void 0:en.scrollWidth)||0,yi=((An=gn.current)===null||An===void 0?void 0:An.clientWidth)||0,Ji=ii&&yi*(yi/ii),Ui=ke.useRef(),zi=Qn({scrollLeft:0,isHiddenScrollBar:!1}),yr=(0,He.Z)(zi,2),Ki=yr[0],Ar=yr[1],Pr=ke.useRef({delta:0,x:0}),Br=ke.useState(!1),yo=(0,He.Z)(Br,2),Lo=yo[0],zr=yo[1],eo=function(){zr(!1)},Ko=function(Lr){Lr.persist(),Pr.current.delta=Lr.pageX-Ki.scrollLeft,Pr.current.x=0,zr(!0),Lr.preventDefault()},Or=function(Lr){var lo,Mo=Lr||((lo=window)===null||lo===void 0?void 0:lo.event),No=Mo.buttons;if(!Lo||No===0){Lo&&zr(!1);return}var Mr=Pr.current.x+Lr.pageX-Pr.current.x-Pr.current.delta;Mr<=0&&(Mr=0),Mr+Ji>=yi&&(Mr=yi-Ji),Xn({scrollLeft:Mr/yi*(ii+2)}),Pr.current.x=Lr.pageX},so=function(){if(gn.current){var Lr=(0,cr.os)(gn.current).top,lo=Lr+gn.current.offsetHeight,Mo=Vn===window?document.documentElement.scrollTop+window.innerHeight:(0,cr.os)(Vn).top+Vn.clientHeight;lo-(0,De.Z)()<=Mo||Lr>=Mo-Yn?Ar(function(No){return(0,ht.Z)((0,ht.Z)({},No),{},{isHiddenScrollBar:!0})}):Ar(function(No){return(0,ht.Z)((0,ht.Z)({},No),{},{isHiddenScrollBar:!1})})}},jr=function(Lr){Ar(function(lo){return(0,ht.Z)((0,ht.Z)({},lo),{},{scrollLeft:Lr/ii*yi||0})})};return ke.useImperativeHandle(Jt,function(){return{setScrollLeft:jr}}),ke.useEffect(function(){var gr=(0,Zi.Z)(document.body,"mouseup",eo,!1),Lr=(0,Zi.Z)(document.body,"mousemove",Or,!1);return so(),function(){gr.remove(),Lr.remove()}},[Ji,Lo]),ke.useEffect(function(){var gr=(0,Zi.Z)(Vn,"scroll",so,!1),Lr=(0,Zi.Z)(window,"resize",so,!1);return function(){gr.remove(),Lr.remove()}},[Vn]),ke.useEffect(function(){Ki.isHiddenScrollBar||Ar(function(gr){var Lr=gn.current;return Lr?(0,ht.Z)((0,ht.Z)({},gr),{},{scrollLeft:Lr.scrollLeft/Lr.scrollWidth*Lr.clientWidth}):gr})},[Ki.isHiddenScrollBar]),ii<=yi||!Ji||Ki.isHiddenScrollBar?null:ke.createElement("div",{style:{height:(0,De.Z)(),width:yi,bottom:Yn},className:"".concat(Pi,"-sticky-scroll")},ke.createElement("div",{onMouseDown:Ko,ref:Ui,className:qe()("".concat(Pi,"-sticky-scroll-bar"),(0,Ve.Z)({},"".concat(Pi,"-sticky-scroll-bar-active"),Lo)),style:{width:"".concat(Ji,"px"),transform:"translate3d(".concat(Ki.scrollLeft,"px, 0, 0)")}}))},Ai=ke.forwardRef(Gn);function br(it){return null}var kr=br;function Sr(it){return null}var Xt=Sr,Li="rc-table",rr=[],Hi={};function Er(){return"No Data"}function dr(it){var ut,Jt=(0,ht.Z)({rowKey:"key",prefixCls:Li,emptyText:Er},it),en=Jt.prefixCls,An=Jt.className,gn=Jt.rowClassName,Xn=Jt.style,Yn=Jt.data,Vn=Jt.rowKey,Pi=Jt.scroll,ii=Jt.tableLayout,yi=Jt.direction,Ji=Jt.title,Ui=Jt.footer,zi=Jt.summary,yr=Jt.caption,Ki=Jt.id,Ar=Jt.showHeader,Pr=Jt.components,Br=Jt.emptyText,yo=Jt.onRow,Lo=Jt.onHeaderRow,zr=Jt.internalHooks,eo=Jt.transformColumns,Ko=Jt.internalRefs,Or=Jt.tailor,so=Jt.sticky,jr=Yn||rr,gr=!!jr.length,Lr=zr===Oe,lo=ke.useCallback(function(Va,Es){return(0,Zt.Z)(Pr,Va)||Es},[Pr]),Mo=ke.useMemo(function(){return typeof Vn=="function"?Vn:function(Va){var Es=Va&&Va[Vn];return Es}},[Vn]),No=lo(["body"]),Mr=zt(),Vo=(0,He.Z)(Mr,3),_o=Vo[0],na=Vo[1],ta=Vo[2],Qa=Et(Jt,jr,Mo),fa=(0,He.Z)(Qa,6),Wo=fa[0],wo=fa[1],To=fa[2],Ya=fa[3],Ia=fa[4],ns=fa[5],Ro=Pi==null?void 0:Pi.x,bo=ke.useState(0),Zo=(0,He.Z)(bo,2),xo=Zo[0],ao=Zo[1],qi=Bt((0,ht.Z)((0,ht.Z)((0,ht.Z)({},Jt),Wo),{},{expandable:!!Wo.expandedRowRender,columnTitle:Wo.columnTitle,expandedKeys:To,getRowKey:Mo,onTriggerExpand:ns,expandIcon:Ya,expandIconColumnIndex:Wo.expandIconColumnIndex,direction:yi,scrollWidth:Lr&&Or&&typeof Ro=="number"?Ro:null}),Lr?eo:null),Zr=(0,He.Z)(qi,3),Uo=Zr[0],sa=Zr[1],al=Zr[2],zs=al!=null?al:Ro,Al=ke.useMemo(function(){return{columns:Uo,flattenColumns:sa}},[Uo,sa]),ka=ke.useRef(),Ua=ke.useRef(),Do=ke.useRef(),Vs=ke.useRef(),Ll=ke.useRef(),Wa=ke.useState(!1),_a=(0,He.Z)(Wa,2),is=_a[0],bs=_a[1],Gs=ke.useState(!1),xa=(0,He.Z)(Gs,2),ss=xa[0],Js=xa[1],Xa=Qn(new Map),zo=(0,He.Z)(Xa,2),Ms=zo[0],Ys=zo[1],Wu=Mt(sa),vu=Wu.map(function(Va){return Ms.get(Va)}),$a=ke.useMemo(function(){return vu},[vu.join("_")]),Ml=ti($a,sa.length,yi),Ps=Pi&&Pn(Pi.y),ps=Pi&&Pn(zs)||!!Wo.fixed,ku=ps&&sa.some(function(Va){var Es=Va.fixed;return Es}),Cc=ke.useRef(),ql=Si(so,en),ac=ql.isSticky,sc=ql.offsetHeader,yu=ql.offsetSummary,Ra=ql.offsetScroll,ls=ql.stickyClassName,Qs=ql.container,ms=ke.useMemo(function(){return zi==null?void 0:zi(jr)},[zi,jr]),za=(Ps||ac)&&ke.isValidElement(ms)&&ms.type===Je&&ms.props.fixed,_s,Rl,Zu;Ps&&(Rl={overflowY:"scroll",maxHeight:Pi.y}),ps&&(_s={overflowX:"auto"},Ps||(Rl={overflowY:"hidden"}),Zu={width:zs===!0?"auto":zs,minWidth:"100%"});var uh=ke.useCallback(function(Va,Es){(0,we.Z)(ka.current)&&Ys(function(Dl){if(Dl.get(Va)!==Es){var Du=new Map(Dl);return Du.set(Va,Es),Du}return Dl})},[]),pn=Un(null),Rc=(0,He.Z)(pn,2),bc=Rc[0],jh=Rc[1];function bd(Va,Es){Es&&(typeof Es=="function"?Es(Va):Es.scrollLeft!==Va&&(Es.scrollLeft=Va,Es.scrollLeft!==Va&&setTimeout(function(){Es.scrollLeft=Va},0)))}var _c=(0,Rt.Z)(function(Va){var Es=Va.currentTarget,Dl=Va.scrollLeft,Du=yi==="rtl",Bu=typeof Dl=="number"?Dl:Es.scrollLeft,hh=Es||Hi;if(!jh()||jh()===hh){var ed;bc(hh),bd(Bu,Ua.current),bd(Bu,Do.current),bd(Bu,Ll.current),bd(Bu,(ed=Cc.current)===null||ed===void 0?void 0:ed.setScrollLeft)}var Jd=Es||Ua.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(){ps&&Do.current?_c({currentTarget:Do.current}):(bs(!1),Js(!1))},gf=function(Es){var Dl=Es.width;Dl!==xo&&(zc(),ao(ka.current?ka.current.offsetWidth:Dl))},Nl=ke.useRef(!1);ke.useEffect(function(){Nl.current&&zc()},[ps,Yn,Uo.length]),ke.useEffect(function(){Nl.current=!0},[]);var fd=ke.useState(0),Wd=(0,He.Z)(fd,2),Zd=Wd[0],Kd=Wd[1],pf=ke.useState(!0),Vd=(0,He.Z)(pf,2),Gd=Vd[0],Nu=Vd[1];ke.useEffect(function(){(!Or||!Lr)&&(Do.current instanceof Element?Kd((0,De.o)(Do.current).width):Kd((0,De.o)(Vs.current).width)),Nu((0,pe.G)("position","sticky"))},[]),ke.useEffect(function(){Lr&&Ko&&(Ko.body.current=Do.current)});var $c=ke.useCallback(function(Va){return ke.createElement(ke.Fragment,null,ke.createElement(fn,Va),za==="top"&&ke.createElement(At,Va,ms))},[za,ms]),Hh=ke.useCallback(function(Va){return ke.createElement(At,Va,ms)},[ms]),lc=lo(["table"],"table"),qc=ke.useMemo(function(){return ii||(ku?zs==="max-content"?"auto":"fixed":Ps||ac||sa.some(function(Va){var Es=Va.ellipsis;return Es})?"fixed":"auto")},[Ps,ku,sa,ii,ac]),gd,pd={colWidths:$a,columCount:sa.length,stickyOffsets:Ml,onHeaderRow:Lo,fixHeader:Ps,scroll:Pi},eu=ke.useMemo(function(){return gr?null:typeof Br=="function"?Br():Br},[gr,Br]),ch=ke.createElement(nr,{data:jr,measureColumnWidth:Ps||ps||ac}),Yd=ke.createElement(Kr,{colWidths:sa.map(function(Va){var Es=Va.width;return Es}),columns:sa}),Su=yr!=null?ke.createElement("caption",{className:"".concat(en,"-caption")},yr):void 0,Ed=(0,ze.Z)(Jt,{data:!0}),Ud=(0,ze.Z)(Jt,{aria:!0});if(Ps||ac){var dh;typeof No=="function"?(dh=No(jr,{scrollbarSize:Zd,ref:Do,onScroll:_c}),pd.colWidths=sa.map(function(Va,Es){var Dl=Va.width,Du=Es===sa.length-1?Dl-Zd:Dl;return typeof Du=="number"&&!Number.isNaN(Du)?Du:0})):dh=ke.createElement("div",{style:(0,ht.Z)((0,ht.Z)({},_s),Rl),onScroll:_c,ref:Do,className:qe()("".concat(en,"-body"))},ke.createElement(lc,(0,gt.Z)({style:(0,ht.Z)((0,ht.Z)({},Zu),{},{tableLayout:qc})},Ud),Su,Yd,ch,!za&&ms&&ke.createElement(At,{stickyOffsets:Ml,flattenColumns:sa,columns:Uo},ms)));var jc=(0,ht.Z)((0,ht.Z)((0,ht.Z)({noData:!jr.length,maxContentScroll:ps&&zs==="max-content"},pd),Al),{},{direction:yi,stickyClassName:ls,onScroll:_c});gd=ke.createElement(ke.Fragment,null,Ar!==!1&&ke.createElement(hi,(0,gt.Z)({},jc,{stickyTopOffset:sc,className:"".concat(en,"-header"),ref:Ua}),$c),dh,za&&za!=="top"&&ke.createElement(hi,(0,gt.Z)({},jc,{stickyBottomOffset:yu,className:"".concat(en,"-summary"),ref:Ll}),Hh),ac&&ke.createElement(Ai,{ref:Cc,offsetScroll:Ra,scrollBodyRef:Do,onScroll:_c,container:Qs}))}else gd=ke.createElement("div",{style:(0,ht.Z)((0,ht.Z)({},_s),Rl),className:qe()("".concat(en,"-content")),onScroll:_c,ref:Do},ke.createElement(lc,(0,gt.Z)({style:(0,ht.Z)((0,ht.Z)({},Zu),{},{tableLayout:qc})},Ud),Su,Yd,Ar!==!1&&ke.createElement(fn,(0,gt.Z)({},pd,Al)),ch,ms&&ke.createElement(At,{stickyOffsets:Ml,flattenColumns:sa,columns:Uo},ms)));var Hl=ke.createElement("div",(0,gt.Z)({className:qe()(en,An,(ut={},(0,Ve.Z)(ut,"".concat(en,"-rtl"),yi==="rtl"),(0,Ve.Z)(ut,"".concat(en,"-ping-left"),is),(0,Ve.Z)(ut,"".concat(en,"-ping-right"),ss),(0,Ve.Z)(ut,"".concat(en,"-layout-fixed"),ii==="fixed"),(0,Ve.Z)(ut,"".concat(en,"-fixed-header"),Ps),(0,Ve.Z)(ut,"".concat(en,"-fixed-column"),ku),(0,Ve.Z)(ut,"".concat(en,"-scroll-horizontal"),ps),(0,Ve.Z)(ut,"".concat(en,"-has-fix-left"),sa[0]&&sa[0].fixed),(0,Ve.Z)(ut,"".concat(en,"-has-fix-right"),sa[sa.length-1]&&sa[sa.length-1].fixed==="right"),ut)),style:Xn,id:Ki,ref:ka},Ed),Ji&&ke.createElement(Ni,{className:"".concat(en,"-title")},Ji(jr)),ke.createElement("div",{ref:Vs,className:"".concat(en,"-container")},gd),Ui&&ke.createElement(Ni,{className:"".concat(en,"-footer")},Ui(jr)));ps&&(Hl=ke.createElement(Be.Z,{onResize:gf},Hl));var Xd=xn(sa,Ml,yi,Uo),sl=ke.useMemo(function(){return{scrollX:zs,prefixCls:en,getComponent:lo,scrollbarSize:Zd,direction:yi,fixedInfoList:Xd,isSticky:ac,supportSticky:Gd,componentWidth:xo,fixHeader:Ps,fixColumn:ku,horizonScroll:ps,tableLayout:qc,rowClassName:gn,expandedRowClassName:Wo.expandedRowClassName,expandIcon:Ya,expandableType:wo,expandRowByClick:Wo.expandRowByClick,expandedRowRender:Wo.expandedRowRender,onTriggerExpand:ns,expandIconColumnIndex:Wo.expandIconColumnIndex,indentSize:Wo.indentSize,allColumnsFixedLeft:sa.every(function(Va){return Va.fixed==="left"}),emptyNode:eu,columns:Uo,flattenColumns:sa,onColumnResize:uh,hoverStartRow:_o,hoverEndRow:na,onHover:ta,rowExpandable:Wo.rowExpandable,onRow:yo,getRowKey:Mo,expandedKeys:To,childrenColumnName:Ia}},[zs,en,lo,Zd,yi,Xd,ac,Gd,xo,Ps,ku,ps,qc,gn,Wo.expandedRowClassName,Ya,wo,Wo.expandRowByClick,Wo.expandedRowRender,ns,Wo.expandIconColumnIndex,Wo.indentSize,eu,Uo,sa,uh,_o,na,ta,Wo.rowExpandable,yo,Mo,To,Ia]);return ke.createElement(Pe.Provider,{value:sl},Hl)}function Nr(it){return ge(dr,it)}var Ti=Nr();Ti.EXPAND_COLUMN=Se,Ti.INTERNAL_HOOKS=Oe,Ti.Column=kr,Ti.ColumnGroup=Xt,Ti.Summary=lt;var Qi=Ti,er=ye(21881),kn=Lt(null),Dr=Lt(null);function Ln(it,ut,Jt){var en=ut||1;return Jt[it+en]-(Jt[it]||0)}function pr(it){var ut=it.rowInfo,Jt=it.column,en=it.colIndex,An=it.indent,gn=it.index,Xn=it.renderIndex,Yn=it.record,Vn=it.style,Pi=it.className,ii=it.inverse,yi=it.getHeight,Ji=Jt.render,Ui=Jt.dataIndex,zi=Jt.className,yr=Jt.width,Ki=et(Dr,["columnsOffset"]),Ar=Ki.columnsOffset,Pr=vn(ut,Jt,en,An,gn),Br=Pr.key,yo=Pr.fixedInfo,Lo=Pr.appendCellNode,zr=Pr.additionalCellProps,eo=zr.style,Ko=zr.colSpan,Or=Ko===void 0?1:Ko,so=zr.rowSpan,jr=so===void 0?1:so,gr=en-1,Lr=Ln(gr,Or,Ar),lo=Or>1?yr-Lr:0,Mo=(0,ht.Z)((0,ht.Z)((0,ht.Z)({},eo),Vn),{},{flex:"0 0 ".concat(Lr,"px"),width:"".concat(Lr,"px"),marginRight:lo,pointerEvents:"auto"}),No=ke.useMemo(function(){return ii?jr<=1:Or===0||jr===0||jr>1},[jr,Or,ii]);No?Mo.visibility="hidden":ii&&(Mo.height=yi==null?void 0:yi(jr));var Mr=No?function(){return null}:Ji,Vo={};return(jr===0||Or===0)&&(Vo.rowSpan=1,Vo.colSpan=1),ke.createElement(Kn,(0,gt.Z)({className:qe()(zi,Pi),ellipsis:Jt.ellipsis,align:Jt.align,scope:Jt.rowScope,component:"div",prefixCls:ut.prefixCls,key:Br,record:Yn,index:gn,renderIndex:Xn,dataIndex:Ui,render:Mr,shouldCellUpdate:Jt.shouldCellUpdate},yo,{appendNode:Lo,additionalProps:(0,ht.Z)((0,ht.Z)({},zr),{},{style:Mo},Vo)}))}var Qr=pr,vr=["data","index","className","rowKey","style","extra","getHeight"],Ho=ke.forwardRef(function(it,ut){var Jt=it.data,en=it.index,An=it.className,gn=it.rowKey,Xn=it.style,Yn=it.extra,Vn=it.getHeight,Pi=(0,Tn.Z)(it,vr),ii=Jt.record,yi=Jt.indent,Ji=Jt.index,Ui=et(Pe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),zi=Ui.scrollX,yr=Ui.flattenColumns,Ki=Ui.prefixCls,Ar=Ui.fixColumn,Pr=Ui.componentWidth,Br=rn(ii,gn,en,yi),yo=Br.rowSupportExpand,Lo=Br.expanded,zr=Br.rowProps,eo=Br.expandedRowRender,Ko=Br.expandedRowClassName,Or;if(yo&&Lo){var so=eo(ii,en,yi+1,Lo),jr=Ko==null?void 0:Ko(ii,en,yi),gr={};Ar&&(gr={style:(0,Ve.Z)({},"--virtual-width","".concat(Pr,"px"))});var Lr="".concat(Ki,"-expanded-row-cell");Or=ke.createElement("div",{className:qe()("".concat(Ki,"-expanded-row"),"".concat(Ki,"-expanded-row-level-").concat(yi+1),jr)},ke.createElement(Kn,{component:"div",prefixCls:Ki,className:qe()(Lr,(0,Ve.Z)({},"".concat(Lr,"-fixed"),Ar)),additionalProps:gr},so))}var lo=(0,ht.Z)((0,ht.Z)({},Xn),{},{width:zi});Yn&&(lo.position="absolute",lo.pointerEvents="none");var Mo=ke.createElement("div",(0,gt.Z)({},zr,Pi,{ref:yo?null:ut,className:qe()(An,"".concat(Ki,"-row"),zr==null?void 0:zr.className,(0,Ve.Z)({},"".concat(Ki,"-row-extra"),Yn)),style:(0,ht.Z)((0,ht.Z)({},lo),zr==null?void 0:zr.style)}),yr.map(function(No,Mr){return ke.createElement(Qr,{key:Mr,rowInfo:Br,column:No,colIndex:Mr,indent:yi,index:en,renderIndex:Ji,record:ii,inverse:Yn,getHeight:Vn})}));return yo?ke.createElement("div",{ref:ut},Mo,Or):Mo}),co=ve(Ho),mr=co,hr=ke.forwardRef(function(it,ut){var Jt=it.data,en=it.onScroll,An=et(Pe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),gn=An.flattenColumns,Xn=An.onColumnResize,Yn=An.getRowKey,Vn=An.expandedKeys,Pi=An.prefixCls,ii=An.childrenColumnName,yi=An.emptyNode,Ji=An.scrollX,Ui=et(kn),zi=Ui.scrollY,yr=Ui.listItemHeight,Ki=ke.useRef(),Ar=nt(Jt,ii,Vn,Yn),Pr=ke.useMemo(function(){var Or=0;return gn.map(function(so){var jr=so.width,gr=so.key;return Or+=jr,[gr,jr,Or]})},[gn]),Br=ke.useMemo(function(){return Pr.map(function(Or){return Or[2]})},[Pr]);ke.useEffect(function(){Pr.forEach(function(Or){var so=(0,He.Z)(Or,2),jr=so[0],gr=so[1];Xn(jr,gr)})},[Pr]),ke.useImperativeHandle(ut,function(){var Or={};return Object.defineProperty(Or,"scrollLeft",{get:function(){var jr;return((jr=Ki.current)===null||jr===void 0?void 0:jr.getScrollInfo().x)||0},set:function(jr){var gr;(gr=Ki.current)===null||gr===void 0||gr.scrollTo({left:jr})}}),Or});var yo=function(so,jr){var gr,Lr=(gr=Ar[jr])===null||gr===void 0?void 0:gr.record,lo=so.onCell;if(lo){var Mo,No=lo(Lr,jr);return(Mo=No==null?void 0:No.rowSpan)!==null&&Mo!==void 0?Mo:1}return 1},Lo=function(so){var jr=so.start,gr=so.end,Lr=so.getSize,lo=so.offsetY;if(gr<0)return null;for(var Mo=gn.filter(function(Ro){return yo(Ro,jr)===0}),No=jr,Mr=function(bo){if(Mo=Mo.filter(function(Zo){return yo(Zo,bo)===0}),!Mo.length)return No=bo,"break"},Vo=jr;Vo>=0;Vo-=1){var _o=Mr(Vo);if(_o==="break")break}for(var na=gn.filter(function(Ro){return yo(Ro,gr)!==1}),ta=gr,Qa=function(bo){if(na=na.filter(function(Zo){return yo(Zo,bo)!==1}),!na.length)return ta=Math.max(bo-1,gr),"break"},fa=gr;fa<Ar.length;fa+=1){var Wo=Qa(fa);if(Wo==="break")break}for(var wo=[],To=function(bo){var Zo=Ar[bo];if(!Zo)return"continue";gn.some(function(xo){return yo(xo,bo)>1})&&wo.push(bo)},Ya=No;Ya<=ta;Ya+=1)var Ia=To(Ya);var ns=wo.map(function(Ro){var bo=Ar[Ro],Zo=Yn(bo.record,Ro),xo=function(Zr){var Uo=Ro+Zr-1,sa=Yn(Ar[Uo].record,Uo),al=Lr(Zo,sa);return al.bottom-al.top},ao=Lr(Zo);return ke.createElement(mr,{key:Ro,data:bo,rowKey:Zo,index:Ro,style:{top:-lo+ao.top},extra:!0,getHeight:xo})});return ns},zr=ke.useMemo(function(){return{columnsOffset:Br}},[Br]),eo="".concat(Pi,"-tbody"),Ko;return Ar.length?Ko=ke.createElement(er.Z,{fullHeight:!1,ref:Ki,className:qe()(eo,"".concat(eo,"-virtual")),height:zi,itemHeight:yr||24,data:Ar,itemKey:function(so){return Yn(so.record)},scrollWidth:Ji,onVirtualScroll:function(so){var jr=so.x;en({scrollLeft:jr})},extraRender:Lo},function(Or,so,jr){var gr=Yn(Or.record,so);return ke.createElement(mr,(0,gt.Z)({data:Or,rowKey:gr,index:so},jr))}):Ko=ke.createElement("div",{className:qe()("".concat(Pi,"-placeholder"))},ke.createElement(Kn,{component:"div",prefixCls:Pi},yi)),ke.createElement(Dr.Provider,{value:zr},Ko)}),fr=ve(hr),Vr=fr,Ii=function(ut,Jt){var en=Jt.ref,An=Jt.onScroll;return ke.createElement(Vr,{ref:en,data:ut,onScroll:An})},Qe=100;function pt(it){var ut=it.columns,Jt=it.scroll,en=it.prefixCls,An=en===void 0?Li:en,gn=it.className,Xn=it.listItemHeight,Yn=Jt||{},Vn=Yn.x,Pi=Yn.y;typeof Vn!="number"&&(Vn=((ut||[]).length+1)*Qe),typeof Pi!="number"&&(Pi=500);var ii=ke.useMemo(function(){return{scrollY:Pi,listItemHeight:Xn}},[Pi,Xn]);return ke.createElement(kn.Provider,{value:ii},ke.createElement(Qi,(0,gt.Z)({},it,{className:qe()(gn,"".concat(An,"-virtual")),scroll:(0,ht.Z)((0,ht.Z)({},Jt),{},{x:Vn}),components:{body:Ii},columns:ut,internalHooks:Oe,tailor:!0})))}function It(it){return ge(pt,it)}var sn=It(),Hn=null;function On(it){return null}var Wt=On;function Nn(it){return null}var ai=Nn,qn=ye(64002),Oi=ye(68031),Bi=ye(36355),pi=ye(93891),Gi=ye(19716),zn=ye(8628),_r=ye(31724),Gr=ye(25700),Ao=ye(71418),qr=ye(88088);function $r(it){return function(Jt){let{prefixCls:en,onExpand:An,record:gn,expanded:Xn,expandable:Yn}=Jt;const Vn=`${en}-row-expand-icon`;return ke.createElement("button",{type:"button",onClick:Pi=>{An(gn,Pi),Pi.stopPropagation()},className:qe()(Vn,{[`${Vn}-spaced`]:!Yn,[`${Vn}-expanded`]:Yn&&Xn,[`${Vn}-collapsed`]:Yn&&!Xn}),"aria-label":Xn?it.collapse:it.expand,"aria-expanded":Xn})}}var to=$r;function $o(it,ut){return"key"in it&&it.key!==void 0&&it.key!==null?it.key:it.dataIndex?Array.isArray(it.dataIndex)?it.dataIndex.join("."):it.dataIndex:ut}function Qo(it,ut){return ut?`${ut}-${it}`:`${it}`}function pa(it,ut){return typeof it=="function"?it(ut):it}function qo(it,ut){const Jt=pa(it,ut);return Object.prototype.toString.call(Jt)==="[object Object]"?"":Jt}var Cn={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"},ca=Cn,es=ye(88853),ts=function(ut,Jt){return ke.createElement(es.Z,(0,gt.Z)({},ut,{ref:Jt,icon:ca}))},Ga=ke.forwardRef(ts),Ds=Ga,pl=ye(56762);function ma(it){const ut=ke.useRef(it),Jt=(0,pl.Z)();return[()=>ut.current,en=>{ut.current=en,Jt()}]}var Fo=ye(3113),Oo=ye(24905),Pa=ye(38854),no=ye(64165),ko=ye(20834),oo=ye(40875),Vi=ye(5112),ha=ye(86914),Na=ye(21970),Bs=ye(92832);function ys(it){let{value:ut,onChange:Jt,filterSearch:en,tablePrefixCls:An,locale:gn}=it;return en?ke.createElement("div",{className:`${An}-filter-dropdown-search`},ke.createElement(Bs.default,{prefix:ke.createElement(Na.Z,null),placeholder:gn.filterSearchPlaceholder,onChange:Jt,value:ut,htmlSize:1,className:`${An}-filter-dropdown-search-input`})):null}var nl=ys,Yi=ye(85108);const Da=it=>{const{keyCode:ut}=it;ut===Yi.Z.ENTER&&it.stopPropagation()};var Is=ke.forwardRef((it,ut)=>ke.createElement("div",{className:it.className,onClick:Jt=>Jt.stopPropagation(),onKeyDown:Da,ref:ut},it.children));function ml(it){let ut=[];return(it||[]).forEach(Jt=>{let{value:en,children:An}=Jt;ut.push(en),An&&(ut=[].concat((0,ar.Z)(ut),(0,ar.Z)(ml(An))))}),ut}function Gl(it){return it.some(ut=>{let{children:Jt}=ut;return Jt})}function So(it,ut){return typeof ut=="string"||typeof ut=="number"?ut==null?void 0:ut.toString().toLowerCase().includes(it.trim().toLowerCase()):!1}function Au(it){let{filters:ut,prefixCls:Jt,filteredKeys:en,filterMultiple:An,searchValue:gn,filterSearch:Xn}=it;return ut.map((Yn,Vn)=>{const Pi=String(Yn.value);if(Yn.children)return{key:Pi||Vn,label:Yn.text,popupClassName:`${Jt}-dropdown-submenu`,children:Au({filters:Yn.children,prefixCls:Jt,filteredKeys:en,filterMultiple:An,searchValue:gn,filterSearch:Xn})};const ii=An?Oo.default:Vi.ZP,yi={key:Yn.value!==void 0?Pi:Vn,label:ke.createElement(ke.Fragment,null,ke.createElement(ii,{checked:en.includes(Pi)}),ke.createElement("span",null,Yn.text))};return gn.trim()?typeof Xn=="function"?Xn(gn,Yn)?yi:null:So(gn,Yn.text)?yi:null:yi})}function il(it){var ut,Jt;const{tablePrefixCls:en,prefixCls:An,column:gn,dropdownPrefixCls:Xn,columnKey:Yn,filterMultiple:Vn,filterMode:Pi="menu",filterSearch:ii=!1,filterState:yi,triggerFilter:Ji,locale:Ui,children:zi,getPopupContainer:yr}=it,{filterDropdownOpen:Ki,onFilterDropdownOpenChange:Ar,filterResetToDefaultFilteredValue:Pr,defaultFilteredValue:Br,filterDropdownVisible:yo,onFilterDropdownVisibleChange:Lo}=gn,[zr,eo]=ke.useState(!1),Ko=!!(yi&&(!((ut=yi.filteredKeys)===null||ut===void 0)&&ut.length||yi.forceFiltered)),Or=qi=>{eo(qi),Ar==null||Ar(qi),Lo==null||Lo(qi)},so=(Jt=Ki!=null?Ki:yo)!==null&&Jt!==void 0?Jt:zr,jr=yi==null?void 0:yi.filteredKeys,[gr,Lr]=ma(jr||[]),lo=qi=>{let{selectedKeys:Zr}=qi;Lr(Zr)},Mo=(qi,Zr)=>{let{node:Uo,checked:sa}=Zr;lo(Vn?{selectedKeys:qi}:{selectedKeys:sa&&Uo.key?[Uo.key]:[]})};ke.useEffect(()=>{zr&&lo({selectedKeys:jr||[]})},[jr]);const[No,Mr]=ke.useState([]),Vo=qi=>{Mr(qi)},[_o,na]=ke.useState(""),ta=qi=>{const{value:Zr}=qi.target;na(Zr)};ke.useEffect(()=>{zr||na("")},[zr]);const Qa=qi=>{const Zr=qi&&qi.length?qi:null;if(Zr===null&&(!yi||!yi.filteredKeys)||(0,vt.Z)(Zr,yi==null?void 0:yi.filteredKeys,!0))return null;Ji({column:gn,key:Yn,filteredKeys:Zr})},fa=()=>{Or(!1),Qa(gr())},Wo=function(){let{confirm:qi,closeDropdown:Zr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};qi&&Qa([]),Zr&&Or(!1),na(""),Lr(Pr?(Br||[]).map(Uo=>String(Uo)):[])},wo=function(){let{closeDropdown:qi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};qi&&Or(!1),Qa(gr())},To=qi=>{qi&&jr!==void 0&&Lr(jr||[]),Or(qi),!qi&&!gn.filterDropdown&&fa()},Ya=qe()({[`${Xn}-menu-without-submenu`]:!Gl(gn.filters||[])}),Ia=qi=>{if(qi.target.checked){const Zr=ml(gn==null?void 0:gn.filters).map(Uo=>String(Uo));Lr(Zr)}else Lr([])},ns=qi=>{let{filters:Zr}=qi;return(Zr||[]).map((Uo,sa)=>{const al=String(Uo.value),zs={title:Uo.text,key:Uo.value!==void 0?al:sa};return Uo.children&&(zs.children=ns({filters:Uo.children})),zs})},Ro=qi=>{var Zr;return Object.assign(Object.assign({},qi),{text:qi.title,value:qi.key,children:((Zr=qi.children)===null||Zr===void 0?void 0:Zr.map(Uo=>Ro(Uo)))||[]})};let bo;if(typeof gn.filterDropdown=="function")bo=gn.filterDropdown({prefixCls:`${Xn}-custom`,setSelectedKeys:qi=>lo({selectedKeys:qi}),selectedKeys:gr(),confirm:wo,clearFilters:Wo,filters:gn.filters,visible:so,close:()=>{Or(!1)}});else if(gn.filterDropdown)bo=gn.filterDropdown;else{const qi=gr()||[],Zr=()=>(gn.filters||[]).length===0?ke.createElement(no.Z,{image:no.Z.PRESENTED_IMAGE_SIMPLE,description:Ui.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Pi==="tree"?ke.createElement(ke.Fragment,null,ke.createElement(nl,{filterSearch:ii,value:_o,onChange:ta,tablePrefixCls:en,locale:Ui}),ke.createElement("div",{className:`${en}-filter-dropdown-tree`},Vn?ke.createElement(Oo.default,{checked:qi.length===ml(gn.filters).length,indeterminate:qi.length>0&&qi.length<ml(gn.filters).length,className:`${en}-filter-dropdown-checkall`,onChange:Ia},Ui.filterCheckall):null,ke.createElement(ha.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Vn,checkStrictly:!Vn,className:`${Xn}-menu`,onCheck:Mo,checkedKeys:qi,selectedKeys:qi,showIcon:!1,treeData:ns({filters:gn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:_o.trim()?sa=>typeof ii=="function"?ii(_o,Ro(sa)):So(_o,sa.title):void 0}))):ke.createElement(ke.Fragment,null,ke.createElement(nl,{filterSearch:ii,value:_o,onChange:ta,tablePrefixCls:en,locale:Ui}),ke.createElement(ko.default,{selectable:!0,multiple:Vn,prefixCls:`${Xn}-menu`,className:Ya,onSelect:lo,onDeselect:lo,selectedKeys:qi,getPopupContainer:yr,openKeys:No,onOpenChange:Vo,items:Au({filters:gn.filters||[],filterSearch:ii,prefixCls:An,filteredKeys:gr(),filterMultiple:Vn,searchValue:_o})})),Uo=()=>Pr?(0,vt.Z)((Br||[]).map(sa=>String(sa)),qi,!0):qi.length===0;bo=ke.createElement(ke.Fragment,null,Zr(),ke.createElement("div",{className:`${An}-dropdown-btns`},ke.createElement(Fo.ZP,{type:"link",size:"small",disabled:Uo(),onClick:()=>Wo()},Ui.filterReset),ke.createElement(Fo.ZP,{type:"primary",size:"small",onClick:fa},Ui.filterConfirm)))}gn.filterDropdown&&(bo=ke.createElement(oo.J,{selectable:void 0},bo));const Zo=()=>ke.createElement(Is,{className:`${An}-dropdown`},bo);let xo;typeof gn.filterIcon=="function"?xo=gn.filterIcon(Ko):gn.filterIcon?xo=gn.filterIcon:xo=ke.createElement(Ds,null);const{direction:ao}=ke.useContext(Bi.E_);return ke.createElement("div",{className:`${An}-column`},ke.createElement("span",{className:`${en}-column-title`},zi),ke.createElement(Pa.Z,{dropdownRender:Zo,trigger:["click"],open:so,onOpenChange:To,getPopupContainer:yr,placement:ao==="rtl"?"bottomLeft":"bottomRight"},ke.createElement("span",{role:"button",tabIndex:-1,className:qe()(`${An}-trigger`,{active:Ko}),onClick:qi=>{qi.stopPropagation()}},xo)))}var kl=il;function vl(it,ut,Jt){let en=[];return(it||[]).forEach((An,gn)=>{var Xn;const Yn=Qo(gn,Jt);if(An.filters||"filterDropdown"in An||"onFilter"in An)if("filteredValue"in An){let Vn=An.filteredValue;"filterDropdown"in An||(Vn=(Xn=Vn==null?void 0:Vn.map(String))!==null&&Xn!==void 0?Xn:Vn),en.push({column:An,key:$o(An,Yn),filteredKeys:Vn,forceFiltered:An.filtered})}else en.push({column:An,key:$o(An,Yn),filteredKeys:ut&&An.defaultFilteredValue?An.defaultFilteredValue:void 0,forceFiltered:An.filtered});"children"in An&&(en=[].concat((0,ar.Z)(en),(0,ar.Z)(vl(An.children,ut,Yn))))}),en}function fu(it,ut,Jt,en,An,gn,Xn,Yn){return Jt.map((Vn,Pi)=>{const ii=Qo(Pi,Yn),{filterMultiple:yi=!0,filterMode:Ji,filterSearch:Ui}=Vn;let zi=Vn;if(zi.filters||zi.filterDropdown){const yr=$o(zi,ii),Ki=en.find(Ar=>{let{key:Pr}=Ar;return yr===Pr});zi=Object.assign(Object.assign({},zi),{title:Ar=>ke.createElement(kl,{tablePrefixCls:it,prefixCls:`${it}-filter`,dropdownPrefixCls:ut,column:zi,columnKey:yr,filterState:Ki,filterMultiple:yi,filterMode:Ji,filterSearch:Ui,triggerFilter:gn,locale:An,getPopupContainer:Xn},pa(Vn.title,Ar))})}return"children"in zi&&(zi=Object.assign(Object.assign({},zi),{children:fu(it,ut,zi.children,en,An,gn,Xn,ii)})),zi})}function yl(it){const ut={};return it.forEach(Jt=>{let{key:en,filteredKeys:An,column:gn}=Jt;const{filters:Xn,filterDropdown:Yn}=gn;if(Yn)ut[en]=An||null;else if(Array.isArray(An)){const Vn=ml(Xn);ut[en]=Vn.filter(Pi=>An.includes(String(Pi)))}else ut[en]=null}),ut}function rl(it,ut){return ut.reduce((Jt,en)=>{const{column:{onFilter:An,filters:gn},filteredKeys:Xn}=en;return An&&Xn&&Xn.length?Jt.filter(Yn=>Xn.some(Vn=>{const Pi=ml(gn),ii=Pi.findIndex(Ji=>String(Ji)===String(Vn)),yi=ii!==-1?Pi[ii]:Vn;return An(yi,Yn)})):Jt},it)}const Sl=it=>it.flatMap(ut=>"children"in ut?[ut].concat((0,ar.Z)(Sl(ut.children||[]))):[ut]);function oc(it){let{prefixCls:ut,dropdownPrefixCls:Jt,mergedColumns:en,onFilterChange:An,getPopupContainer:gn,locale:Xn}=it;const Yn=ke.useMemo(()=>Sl(en||[]),[en]),[Vn,Pi]=ke.useState(()=>vl(Yn,!0)),ii=ke.useMemo(()=>{const zi=vl(Yn,!1);if(zi.length===0)return zi;let yr=!0,Ki=!0;if(zi.forEach(Ar=>{let{filteredKeys:Pr}=Ar;Pr!==void 0?yr=!1:Ki=!1}),yr){const Ar=(Yn||[]).map((Pr,Br)=>$o(Pr,Qo(Br)));return Vn.filter(Pr=>{let{key:Br}=Pr;return Ar.includes(Br)}).map(Pr=>{const Br=Yn[Ar.findIndex(yo=>yo===Pr.key)];return Object.assign(Object.assign({},Pr),{column:Object.assign(Object.assign({},Pr.column),Br),forceFiltered:Br.filtered})})}return zi},[Yn,Vn]),yi=ke.useMemo(()=>yl(ii),[ii]),Ji=zi=>{const yr=ii.filter(Ki=>{let{key:Ar}=Ki;return Ar!==zi.key});yr.push(zi),Pi(yr),An(yl(yr),yr)};return[zi=>fu(ut,Jt,zi,ii,Xn,Ji,gn),ii,yi]}var Sc=oc;function xc(it,ut,Jt){const en=ke.useRef({});function An(gn){if(!en.current||en.current.data!==it||en.current.childrenColumnName!==ut||en.current.getRowKey!==Jt){let Yn=function(Vn){Vn.forEach((Pi,ii)=>{const yi=Jt(Pi,ii);Xn.set(yi,Pi),Pi&&typeof Pi=="object"&&ut in Pi&&Yn(Pi[ut]||[])})};const Xn=new Map;Yn(it),en.current={data:it,childrenColumnName:ut,kvMap:Xn,getRowKey:Jt}}return en.current.kvMap.get(gn)}return[An]}var Qc=ye(50371),gu=function(it,ut){var Jt={};for(var en in it)Object.prototype.hasOwnProperty.call(it,en)&&ut.indexOf(en)<0&&(Jt[en]=it[en]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,en=Object.getOwnPropertySymbols(it);An<en.length;An++)ut.indexOf(en[An])<0&&Object.prototype.propertyIsEnumerable.call(it,en[An])&&(Jt[en[An]]=it[en[An]]);return Jt};const zl=10;function xl(it,ut){const Jt={current:it.current,pageSize:it.pageSize};return Object.keys(ut&&typeof ut=="object"?ut:{}).forEach(An=>{const gn=it[An];typeof gn!="function"&&(Jt[An]=gn)}),Jt}function Tl(it,ut,Jt){const en=Jt&&typeof Jt=="object"?Jt:{},{total:An=0}=en,gn=gu(en,["total"]),[Xn,Yn]=(0,ke.useState)(()=>({current:"defaultCurrent"in gn?gn.defaultCurrent:1,pageSize:"defaultPageSize"in gn?gn.defaultPageSize:zl})),Vn=(0,Qc.Z)(Xn,gn,{total:An>0?An:it}),Pi=Math.ceil((An||it)/Vn.pageSize);Vn.current>Pi&&(Vn.current=Pi||1);const ii=(Ji,Ui)=>{Yn({current:Ji!=null?Ji:1,pageSize:Ui||Vn.pageSize})},yi=(Ji,Ui)=>{var zi;Jt&&((zi=Jt.onChange)===null||zi===void 0||zi.call(Jt,Ji,Ui)),ii(Ji,Ui),ut(Ji,Ui||(Vn==null?void 0:Vn.pageSize))};return Jt===!1?[{},()=>{}]:[Object.assign(Object.assign({},Vn),{onChange:yi}),ii]}var pu=Tl,wc=ye(18290),mu=ye(35654),Xo=ye(90782),va=ye(71430),dl=ye(35788);const Cs={},Ss="SELECT_ALL",os="SELECT_INVERT",hs="SELECT_NONE",Ls=[],xs=(it,ut)=>{let Jt=[];return(ut||[]).forEach(en=>{Jt.push(en),en&&typeof en=="object"&&it in en&&(Jt=[].concat((0,ar.Z)(Jt),(0,ar.Z)(xs(it,en[it]))))}),Jt};var Ts=(it,ut)=>{const{preserveSelectedRowKeys:Jt,selectedRowKeys:en,defaultSelectedRowKeys:An,getCheckboxProps:gn,onChange:Xn,onSelect:Yn,onSelectAll:Vn,onSelectInvert:Pi,onSelectNone:ii,onSelectMultiple:yi,columnWidth:Ji,type:Ui,selections:zi,fixed:yr,renderCell:Ki,hideSelectAll:Ar,checkStrictly:Pr=!0}=ut||{},{prefixCls:Br,data:yo,pageData:Lo,getRecordByKey:zr,getRowKey:eo,expandType:Ko,childrenColumnName:Or,locale:so,getPopupContainer:jr}=it,[gr,Lr]=(0,dl.Z)(en||An||Ls,{value:en}),lo=ke.useRef(new Map),Mo=(0,ke.useCallback)(Ro=>{if(Jt){const bo=new Map;Ro.forEach(Zo=>{let xo=zr(Zo);!xo&&lo.current.has(Zo)&&(xo=lo.current.get(Zo)),bo.set(Zo,xo)}),lo.current=bo}},[zr,Jt]);ke.useEffect(()=>{Mo(gr)},[gr]);const{keyEntities:No}=(0,ke.useMemo)(()=>{if(Pr)return{keyEntities:null};let Ro=yo;if(Jt){const bo=new Set(yo.map((xo,ao)=>eo(xo,ao))),Zo=Array.from(lo.current).reduce((xo,ao)=>{let[qi,Zr]=ao;return bo.has(qi)?xo:xo.concat(Zr)},[]);Ro=[].concat((0,ar.Z)(Ro),(0,ar.Z)(Zo))}return(0,va.I8)(Ro,{externalGetKey:eo,childrenPropName:Or})},[yo,eo,Pr,Or,Jt]),Mr=(0,ke.useMemo)(()=>xs(Or,Lo),[Or,Lo]),Vo=(0,ke.useMemo)(()=>{const Ro=new Map;return Mr.forEach((bo,Zo)=>{const xo=eo(bo,Zo),ao=(gn?gn(bo):null)||{};Ro.set(xo,ao)}),Ro},[Mr,eo,gn]),_o=(0,ke.useCallback)(Ro=>{var bo;return!!(!((bo=Vo.get(eo(Ro)))===null||bo===void 0)&&bo.disabled)},[Vo,eo]),[na,ta]=(0,ke.useMemo)(()=>{if(Pr)return[gr||[],[]];const{checkedKeys:Ro,halfCheckedKeys:bo}=(0,Xo.S)(gr,!0,No,_o);return[Ro||[],bo]},[gr,Pr,No,_o]),Qa=(0,ke.useMemo)(()=>{const Ro=Ui==="radio"?na.slice(0,1):na;return new Set(Ro)},[na,Ui]),fa=(0,ke.useMemo)(()=>Ui==="radio"?new Set:new Set(ta),[ta,Ui]),[Wo,wo]=(0,ke.useState)(null);ke.useEffect(()=>{ut||Lr(Ls)},[!!ut]);const To=(0,ke.useCallback)((Ro,bo)=>{let Zo,xo;Mo(Ro),Jt?(Zo=Ro,xo=Ro.map(ao=>lo.current.get(ao))):(Zo=[],xo=[],Ro.forEach(ao=>{const qi=zr(ao);qi!==void 0&&(Zo.push(ao),xo.push(qi))})),Lr(Zo),Xn==null||Xn(Zo,xo,{type:bo})},[Lr,zr,Xn,Jt]),Ya=(0,ke.useCallback)((Ro,bo,Zo,xo)=>{if(Yn){const ao=Zo.map(qi=>zr(qi));Yn(zr(Ro),bo,ao,xo)}To(Zo,"single")},[Yn,zr,To]),Ia=(0,ke.useMemo)(()=>!zi||Ar?null:(zi===!0?[Ss,os,hs]:zi).map(bo=>bo===Ss?{key:"all",text:so.selectionAll,onSelect(){To(yo.map((Zo,xo)=>eo(Zo,xo)).filter(Zo=>{const xo=Vo.get(Zo);return!(xo!=null&&xo.disabled)||Qa.has(Zo)}),"all")}}:bo===os?{key:"invert",text:so.selectInvert,onSelect(){const Zo=new Set(Qa);Lo.forEach((ao,qi)=>{const Zr=eo(ao,qi),Uo=Vo.get(Zr);Uo!=null&&Uo.disabled||(Zo.has(Zr)?Zo.delete(Zr):Zo.add(Zr))});const xo=Array.from(Zo);Pi&&Pi(xo),To(xo,"invert")}}:bo===hs?{key:"none",text:so.selectNone,onSelect(){ii==null||ii(),To(Array.from(Qa).filter(Zo=>{const xo=Vo.get(Zo);return xo==null?void 0:xo.disabled}),"none")}}:bo).map(bo=>Object.assign(Object.assign({},bo),{onSelect:function(){for(var Zo,xo,ao=arguments.length,qi=new Array(ao),Zr=0;Zr<ao;Zr++)qi[Zr]=arguments[Zr];(xo=bo.onSelect)===null||xo===void 0||(Zo=xo).call.apply(Zo,[bo].concat(qi)),wo(null)}})),[zi,Qa,Lo,eo,Pi,To]);return[(0,ke.useCallback)(Ro=>{var bo;if(!ut)return Ro.filter(Wa=>Wa!==Cs);let Zo=(0,ar.Z)(Ro);const xo=new Set(Qa),ao=Mr.map(eo).filter(Wa=>!Vo.get(Wa).disabled),qi=ao.every(Wa=>xo.has(Wa)),Zr=ao.some(Wa=>xo.has(Wa)),Uo=()=>{const Wa=[];qi?ao.forEach(is=>{xo.delete(is),Wa.push(is)}):ao.forEach(is=>{xo.has(is)||(xo.add(is),Wa.push(is))});const _a=Array.from(xo);Vn==null||Vn(!qi,_a.map(is=>zr(is)),Wa.map(is=>zr(is))),To(_a,"all"),wo(null)};let sa;if(Ui!=="radio"){let Wa;if(Ia){const xa={getPopupContainer:jr,items:Ia.map((ss,Js)=>{const{key:Xa,text:zo,onSelect:Ms}=ss;return{key:Xa!=null?Xa:Js,onClick:()=>{Ms==null||Ms(ao)},label:zo}})};Wa=ke.createElement("div",{className:`${Br}-selection-extra`},ke.createElement(Pa.Z,{menu:xa,getPopupContainer:jr},ke.createElement("span",null,ke.createElement(wc.Z,null))))}const _a=Mr.map((xa,ss)=>{const Js=eo(xa,ss),Xa=Vo.get(Js)||{};return Object.assign({checked:xo.has(Js)},Xa)}).filter(xa=>{let{disabled:ss}=xa;return ss}),is=!!_a.length&&_a.length===Mr.length,bs=is&&_a.every(xa=>{let{checked:ss}=xa;return ss}),Gs=is&&_a.some(xa=>{let{checked:ss}=xa;return ss});sa=!Ar&&ke.createElement("div",{className:`${Br}-selection`},ke.createElement(Oo.default,{checked:is?bs:!!Mr.length&&qi,indeterminate:is?!bs&&Gs:!qi&&Zr,onChange:Uo,disabled:Mr.length===0||is,"aria-label":Wa?"Custom selection":"Select all",skipGroup:!0}),Wa)}let al;Ui==="radio"?al=(Wa,_a,is)=>{const bs=eo(_a,is),Gs=xo.has(bs);return{node:ke.createElement(Vi.ZP,Object.assign({},Vo.get(bs),{checked:Gs,onClick:xa=>xa.stopPropagation(),onChange:xa=>{xo.has(bs)||Ya(bs,!0,[bs],xa.nativeEvent)}})),checked:Gs}}:al=(Wa,_a,is)=>{var bs;const Gs=eo(_a,is),xa=xo.has(Gs),ss=fa.has(Gs),Js=Vo.get(Gs);let Xa;return Ko==="nest"?Xa=ss:Xa=(bs=Js==null?void 0:Js.indeterminate)!==null&&bs!==void 0?bs:ss,{node:ke.createElement(Oo.default,Object.assign({},Js,{indeterminate:Xa,checked:xa,skipGroup:!0,onClick:zo=>zo.stopPropagation(),onChange:zo=>{let{nativeEvent:Ms}=zo;const{shiftKey:Ys}=Ms;let Wu=-1,vu=-1;if(Ys&&Pr){const $a=new Set([Wo,Gs]);ao.some((Ml,Ps)=>{if($a.has(Ml))if(Wu===-1)Wu=Ps;else return vu=Ps,!0;return!1})}if(vu!==-1&&Wu!==vu&&Pr){const $a=ao.slice(Wu,vu+1),Ml=[];xa?$a.forEach(ps=>{xo.has(ps)&&(Ml.push(ps),xo.delete(ps))}):$a.forEach(ps=>{xo.has(ps)||(Ml.push(ps),xo.add(ps))});const Ps=Array.from(xo);yi==null||yi(!xa,Ps.map(ps=>zr(ps)),Ml.map(ps=>zr(ps))),To(Ps,"multiple")}else{const $a=na;if(Pr){const Ml=xa?(0,mu._5)($a,Gs):(0,mu.L0)($a,Gs);Ya(Gs,!xa,Ml,Ms)}else{const Ml=(0,Xo.S)([].concat((0,ar.Z)($a),[Gs]),!0,No,_o),{checkedKeys:Ps,halfCheckedKeys:ps}=Ml;let ku=Ps;if(xa){const Cc=new Set(Ps);Cc.delete(Gs),ku=(0,Xo.S)(Array.from(Cc),{checked:!1,halfCheckedKeys:ps},No,_o).checkedKeys}Ya(Gs,!xa,ku,Ms)}}wo(xa?null:Gs)}})),checked:xa}};const zs=(Wa,_a,is)=>{const{node:bs,checked:Gs}=al(Wa,_a,is);return Ki?Ki(Gs,_a,is,bs):bs};if(!Zo.includes(Cs))if(Zo.findIndex(Wa=>{var _a;return((_a=Wa[Hr])===null||_a===void 0?void 0:_a.columnType)==="EXPAND_COLUMN"})===0){const[Wa,..._a]=Zo;Zo=[Wa,Cs].concat((0,ar.Z)(_a))}else Zo=[Cs].concat((0,ar.Z)(Zo));const Al=Zo.indexOf(Cs);Zo=Zo.filter((Wa,_a)=>Wa!==Cs||_a===Al);const ka=Zo[Al-1],Ua=Zo[Al+1];let Do=yr;Do===void 0&&((Ua==null?void 0:Ua.fixed)!==void 0?Do=Ua.fixed:(ka==null?void 0:ka.fixed)!==void 0&&(Do=ka.fixed)),Do&&ka&&((bo=ka[Hr])===null||bo===void 0?void 0:bo.columnType)==="EXPAND_COLUMN"&&ka.fixed===void 0&&(ka.fixed=Do);const Vs=qe()(`${Br}-selection-col`,{[`${Br}-selection-col-with-dropdown`]:zi&&Ui==="checkbox"}),Ll={fixed:Do,width:Ji,className:`${Br}-selection-column`,title:ut.columnTitle||sa,render:zs,onCell:ut.onCell,[Hr]:{className:Vs}};return Zo.map(Wa=>Wa===Cs?Ll:Wa)},[eo,Mr,ut,na,Qa,fa,Ji,Ia,Ko,Wo,Vo,yi,Ya,_o]),Qa]},Fa=ye(35323),Hu=ye(19155),Ol=ye(6848);const El="ascend",Rr="descend";function Lu(it){return typeof it.sorter=="object"&&typeof it.sorter.multiple=="number"?it.sorter.multiple:!1}function Kt(it){return typeof it=="function"?it:it&&typeof it=="object"&&it.compare?it.compare:!1}function di(it,ut){return ut?it[it.indexOf(ut)+1]:it[0]}function Mu(it,ut,Jt){let en=[];function An(gn,Xn){en.push({column:gn,key:$o(gn,Xn),multiplePriority:Lu(gn),sortOrder:gn.sortOrder})}return(it||[]).forEach((gn,Xn)=>{const Yn=Qo(Xn,Jt);gn.children?("sortOrder"in gn&&An(gn,Yn),en=[].concat((0,ar.Z)(en),(0,ar.Z)(Mu(gn.children,ut,Yn)))):gn.sorter&&("sortOrder"in gn?An(gn,Yn):ut&&gn.defaultSortOrder&&en.push({column:gn,key:$o(gn,Yn),multiplePriority:Lu(gn),sortOrder:gn.defaultSortOrder}))}),en}function Fu(it,ut,Jt,en,An,gn,Xn,Yn){return(ut||[]).map((Vn,Pi)=>{const ii=Qo(Pi,Yn);let yi=Vn;if(yi.sorter){const Ji=yi.sortDirections||An,Ui=yi.showSorterTooltip===void 0?Xn:yi.showSorterTooltip,zi=$o(yi,ii),yr=Jt.find(Ko=>{let{key:Or}=Ko;return Or===zi}),Ki=yr?yr.sortOrder:null,Ar=di(Ji,Ki);let Pr;if(Vn.sortIcon)Pr=Vn.sortIcon({sortOrder:Ki});else{const Ko=Ji.includes(El)&&ke.createElement(Hu.Z,{className:qe()(`${it}-column-sorter-up`,{active:Ki===El})}),Or=Ji.includes(Rr)&&ke.createElement(Fa.Z,{className:qe()(`${it}-column-sorter-down`,{active:Ki===Rr})});Pr=ke.createElement("span",{className:qe()(`${it}-column-sorter`,{[`${it}-column-sorter-full`]:!!(Ko&&Or)})},ke.createElement("span",{className:`${it}-column-sorter-inner`,"aria-hidden":"true"},Ko,Or))}const{cancelSort:Br,triggerAsc:yo,triggerDesc:Lo}=gn||{};let zr=Br;Ar===Rr?zr=Lo:Ar===El&&(zr=yo);const eo=typeof Ui=="object"?Ui:{title:zr};yi=Object.assign(Object.assign({},yi),{className:qe()(yi.className,{[`${it}-column-sort`]:Ki}),title:Ko=>{const Or=ke.createElement("div",{className:`${it}-column-sorters`},ke.createElement("span",{className:`${it}-column-title`},pa(Vn.title,Ko)),Pr);return Ui?ke.createElement(Ol.Z,Object.assign({},eo),Or):Or},onHeaderCell:Ko=>{const Or=Vn.onHeaderCell&&Vn.onHeaderCell(Ko)||{},so=Or.onClick,jr=Or.onKeyDown;Or.onClick=lo=>{en({column:Vn,key:zi,sortOrder:Ar,multiplePriority:Lu(Vn)}),so==null||so(lo)},Or.onKeyDown=lo=>{lo.keyCode===Yi.Z.ENTER&&(en({column:Vn,key:zi,sortOrder:Ar,multiplePriority:Lu(Vn)}),jr==null||jr(lo))};const gr=qo(Vn.title,{}),Lr=gr==null?void 0:gr.toString();return Ki?Or["aria-sort"]=Ki==="ascend"?"ascending":"descending":Or["aria-label"]=Lr||"",Or.className=qe()(Or.className,`${it}-column-has-sorters`),Or.tabIndex=0,Vn.ellipsis&&(Or.title=(gr!=null?gr:"").toString()),Or}})}return"children"in yi&&(yi=Object.assign(Object.assign({},yi),{children:Fu(it,yi.children,Jt,en,An,gn,Xn,ii)})),yi})}function _l(it){const{column:ut,sortOrder:Jt}=it;return{column:ut,order:Jt,field:ut.dataIndex,columnKey:ut.key}}function $l(it){const ut=it.filter(Jt=>{let{sortOrder:en}=Jt;return en}).map(_l);return ut.length===0&&it.length?Object.assign(Object.assign({},_l(it[it.length-1])),{column:void 0}):ut.length<=1?ut[0]||{}:ut}function jl(it,ut,Jt){const en=ut.slice().sort((Xn,Yn)=>Yn.multiplePriority-Xn.multiplePriority),An=it.slice(),gn=en.filter(Xn=>{let{column:{sorter:Yn},sortOrder:Vn}=Xn;return Kt(Yn)&&Vn});return gn.length?An.sort((Xn,Yn)=>{for(let Vn=0;Vn<gn.length;Vn+=1){const Pi=gn[Vn],{column:{sorter:ii},sortOrder:yi}=Pi,Ji=Kt(ii);if(Ji&&yi){const Ui=Ji(Xn,Yn,yi);if(Ui!==0)return yi===El?Ui:-Ui}}return 0}).map(Xn=>{const Yn=Xn[Jt];return Yn?Object.assign(Object.assign({},Xn),{[Jt]:jl(Yn,ut,Jt)}):Xn}):An}function Pc(it){let{prefixCls:ut,mergedColumns:Jt,onSorterChange:en,sortDirections:An,tableLocale:gn,showSorterTooltip:Xn}=it;const[Yn,Vn]=ke.useState(Mu(Jt,!0)),Pi=ke.useMemo(()=>{let zi=!0;const yr=Mu(Jt,!1);if(!yr.length)return Yn;const Ki=[];function Ar(Br){zi?Ki.push(Br):Ki.push(Object.assign(Object.assign({},Br),{sortOrder:null}))}let Pr=null;return yr.forEach(Br=>{Pr===null?(Ar(Br),Br.sortOrder&&(Br.multiplePriority===!1?zi=!1:Pr=!0)):(Pr&&Br.multiplePriority!==!1||(zi=!1),Ar(Br))}),Ki},[Jt,Yn]),ii=ke.useMemo(()=>{const zi=Pi.map(yr=>{let{column:Ki,sortOrder:Ar}=yr;return{column:Ki,order:Ar}});return{sortColumns:zi,sortColumn:zi[0]&&zi[0].column,sortOrder:zi[0]&&zi[0].order}},[Pi]);function yi(zi){let yr;zi.multiplePriority===!1||!Pi.length||Pi[0].multiplePriority===!1?yr=[zi]:yr=[].concat((0,ar.Z)(Pi.filter(Ki=>{let{key:Ar}=Ki;return Ar!==zi.key})),[zi]),Vn(yr),en($l(yr),yr)}return[zi=>Fu(ut,zi,Pi,yi,An,gn,Xn),Pi,ii,()=>$l(Pi)]}function Ic(it,ut){return it.map(Jt=>{const en=Object.assign({},Jt);return en.title=pa(Jt.title,ut),"children"in en&&(en.children=Ic(en.children,ut)),en})}function Os(it){return[ke.useCallback(Jt=>Ic(Jt,it),[it])]}var Io=Nr((it,ut)=>{const{_renderTimes:Jt}=it,{_renderTimes:en}=ut;return Jt!==en}),wl=It((it,ut)=>{const{_renderTimes:Jt}=it,{_renderTimes:en}=ut;return Jt!==en}),Il=ye(64993),ws=ye(17313),ya=ye(83116),ol=ye(37613),$e=it=>{const{componentCls:ut}=it,Jt=`${it.lineWidth}px ${it.lineType} ${it.tableBorderColor}`,en=(An,gn,Xn)=>({[`&${ut}-${An}`]:{[`> ${ut}-container`]:{[`> ${ut}-content, > ${ut}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ut}-expanded-row-fixed`]:{margin:`-${gn}px -${Xn+it.lineWidth}px`}}}}}});return{[`${ut}-wrapper`]:{[`${ut}${ut}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ut}-title`]:{border:Jt,borderBottom:0},[`> ${ut}-container`]:{borderInlineStart:Jt,borderTop:Jt,[`
|
|
|
> ${ut}-content,
|
|
|
> ${ut}-header,
|
|
|
> ${ut}-body,
|
|
|
> ${ut}-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:Jt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Jt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ut}-cell-fix-right-first::after`]:{borderInlineEnd:Jt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ut}-expanded-row-fixed`]:{margin:`-${it.tablePaddingVertical}px -${it.tablePaddingHorizontal+it.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:it.lineWidth,bottom:0,borderInlineEnd:Jt,content:'""'}}}}}},[`&${ut}-scroll-horizontal`]:{[`> ${ut}-container > ${ut}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ut}-expanded-row,
|
|
|
> tr${ut}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},en("middle",it.tablePaddingVerticalMiddle,it.tablePaddingHorizontalMiddle)),en("small",it.tablePaddingVerticalSmall,it.tablePaddingHorizontalSmall)),{[`> ${ut}-footer`]:{border:Jt,borderTop:0}}),[`${ut}-cell`]:{[`${ut}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${it.lineWidth}px 0 ${it.lineWidth}px ${it.tableHeaderBg}`}},[`${ut}-bordered ${ut}-cell-scrollbar`]:{borderInlineEnd:Jt}}}},nn=it=>{const{componentCls:ut}=it;return{[`${ut}-wrapper`]:{[`${ut}-cell-ellipsis`]:Object.assign(Object.assign({},ws.vS),{wordBreak:"keep-all",[`
|
|
|
&${ut}-cell-fix-left-last,
|
|
|
&${ut}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ut}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ut}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},In=it=>{const{componentCls:ut}=it;return{[`${ut}-wrapper`]:{[`${ut}-tbody > tr${ut}-placeholder`]:{textAlign:"center",color:it.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:it.colorBgContainer}}}}},Zn=ye(15969),ui=it=>{const{componentCls:ut,antCls:Jt,controlInteractiveSize:en,motionDurationSlow:An,lineWidth:gn,paddingXS:Xn,lineType:Yn,tableBorderColor:Vn,tableExpandIconBg:Pi,tableExpandColumnWidth:ii,borderRadius:yi,fontSize:Ji,fontSizeSM:Ui,lineHeight:zi,tablePaddingVertical:yr,tablePaddingHorizontal:Ki,tableExpandedRowBg:Ar,paddingXXS:Pr}=it,Br=en/2-gn,yo=Br*2+gn*3,Lo=`${gn}px ${Yn} ${Vn}`,zr=Pr-gn;return{[`${ut}-wrapper`]:{[`${ut}-expand-icon-col`]:{width:ii},[`${ut}-row-expand-icon-cell`]:{textAlign:"center",[`${ut}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ut}-row-indent`]:{height:1,float:"left"},[`${ut}-row-expand-icon`]:Object.assign(Object.assign({},(0,Zn.N)(it)),{position:"relative",float:"left",boxSizing:"border-box",width:yo,height:yo,padding:0,color:"inherit",lineHeight:`${yo}px`,background:Pi,border:Lo,borderRadius:yi,transform:`scale(${en/yo})`,transition:`all ${An}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${An} ease-out`,content:'""'},"&::before":{top:Br,insetInlineEnd:zr,insetInlineStart:zr,height:gn},"&::after":{top:zr,bottom:zr,insetInlineStart:Br,width:gn,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"}}),[`${ut}-row-indent + ${ut}-row-expand-icon`]:{marginTop:(Ji*zi-gn*3)/2-Math.ceil((Ui*1.4-gn*3)/2),marginInlineEnd:Xn},[`tr${ut}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ar}},[`${Jt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ut}-expanded-row-fixed`]:{position:"relative",margin:`-${yr}px -${Ki}px`,padding:`${yr}px ${Ki}px`}}}},sr=it=>{const{componentCls:ut,antCls:Jt,iconCls:en,tableFilterDropdownWidth:An,tableFilterDropdownSearchWidth:gn,paddingXXS:Xn,paddingXS:Yn,colorText:Vn,lineWidth:Pi,lineType:ii,tableBorderColor:yi,tableHeaderIconColor:Ji,fontSizeSM:Ui,tablePaddingHorizontal:zi,borderRadius:yr,motionDurationSlow:Ki,colorTextDescription:Ar,colorPrimary:Pr,tableHeaderFilterActiveBg:Br,colorTextDisabled:yo,tableFilterDropdownBg:Lo,tableFilterDropdownHeight:zr,controlItemBgHover:eo,controlItemBgActive:Ko,boxShadowSecondary:Or,filterDropdownMenuBg:so}=it,jr=`${Jt}-dropdown`,gr=`${ut}-filter-dropdown`,Lr=`${Jt}-tree`,lo=`${Pi}px ${ii} ${yi}`;return[{[`${ut}-wrapper`]:{[`${ut}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ut}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Xn,marginInline:`${Xn}px ${-zi/2}px`,padding:`0 ${Xn}px`,color:Ji,fontSize:Ui,borderRadius:yr,cursor:"pointer",transition:`all ${Ki}`,"&:hover":{color:Ar,background:Br},"&.active":{color:Pr}}}},{[`${Jt}-dropdown`]:{[gr]:Object.assign(Object.assign({},(0,ws.Wf)(it)),{minWidth:An,backgroundColor:Lo,borderRadius:yr,boxShadow:Or,overflow:"hidden",[`${jr}-menu`]:{maxHeight:zr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:so,"&:empty::after":{display:"block",padding:`${Yn}px 0`,color:yo,fontSize:Ui,textAlign:"center",content:'"Not Found"'}},[`${gr}-tree`]:{paddingBlock:`${Yn}px 0`,paddingInline:Yn,[Lr]:{padding:0},[`${Lr}-treenode ${Lr}-node-content-wrapper:hover`]:{backgroundColor:eo},[`${Lr}-treenode-checkbox-checked ${Lr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Ko}}},[`${gr}-search`]:{padding:Yn,borderBottom:lo,"&-input":{input:{minWidth:gn},[en]:{color:yo}}},[`${gr}-checkall`]:{width:"100%",marginBottom:Xn,marginInlineStart:Xn},[`${gr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Yn-Pi}px ${Yn}px`,overflow:"hidden",borderTop:lo}})}},{[`${Jt}-dropdown ${gr}, ${gr}-submenu`]:{[`${Jt}-checkbox-wrapper + span`]:{paddingInlineStart:Yn,color:Vn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},_i=it=>{const{componentCls:ut,lineWidth:Jt,colorSplit:en,motionDurationSlow:An,zIndexTableFixed:gn,tableBg:Xn,zIndexTableSticky:Yn}=it,Vn=en;return{[`${ut}-wrapper`]:{[`
|
|
|
${ut}-cell-fix-left,
|
|
|
${ut}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:gn,background:Xn},[`
|
|
|
${ut}-cell-fix-left-first::after,
|
|
|
${ut}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Jt,width:30,transform:"translateX(100%)",transition:`box-shadow ${An}`,content:'""',pointerEvents:"none"},[`${ut}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ut}-cell-fix-right-first::after,
|
|
|
${ut}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Jt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${An}`,content:'""',pointerEvents:"none"},[`${ut}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Yn+1,width:30,transition:`box-shadow ${An}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ut}-ping-left`]:{[`&:not(${ut}-has-fix-left) ${ut}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Vn}`}},[`
|
|
|
${ut}-cell-fix-left-first::after,
|
|
|
${ut}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Vn}`},[`${ut}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ut}-ping-right`]:{[`&:not(${ut}-has-fix-right) ${ut}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Vn}`}},[`
|
|
|
${ut}-cell-fix-right-first::after,
|
|
|
${ut}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Vn}`}}}}},xr=it=>{const{componentCls:ut,antCls:Jt}=it;return{[`${ut}-wrapper`]:{[`${ut}-pagination${Jt}-pagination`]:{margin:`${it.margin}px 0`},[`${ut}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:it.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},$i=it=>{const{componentCls:ut,tableRadius:Jt}=it;return{[`${ut}-wrapper`]:{[ut]:{[`${ut}-title, ${ut}-header`]:{borderRadius:`${Jt}px ${Jt}px 0 0`},[`${ut}-title + ${ut}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ut}-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:Jt,borderStartEndRadius:Jt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Jt},"> *:last-child":{borderStartEndRadius:Jt}}},"&-footer":{borderRadius:`0 0 ${Jt}px ${Jt}px`}}}}},ho=it=>{const{componentCls:ut}=it;return{[`${ut}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ut}-pagination-left`]:{justifyContent:"flex-end"},[`${ut}-pagination-right`]:{justifyContent:"flex-start"},[`${ut}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ut}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ut}-row-indent`]:{float:"right"}}}}},mo=it=>{const{componentCls:ut,antCls:Jt,iconCls:en,fontSizeIcon:An,padding:gn,paddingXS:Xn,tableHeaderIconColor:Yn,tableHeaderIconColorHover:Vn,tableSelectionColumnWidth:Pi}=it;return{[`${ut}-wrapper`]:{[`${ut}-selection-col`]:{width:Pi,[`&${ut}-selection-col-with-dropdown`]:{width:Pi+An+gn/4}},[`${ut}-bordered ${ut}-selection-col`]:{width:Pi+Xn*2,[`&${ut}-selection-col-with-dropdown`]:{width:Pi+An+gn/4+Xn*2}},[`
|
|
|
table tr th${ut}-selection-column,
|
|
|
table tr td${ut}-selection-column
|
|
|
`]:{paddingInlineEnd:it.paddingXS,paddingInlineStart:it.paddingXS,textAlign:"center",[`${Jt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ut}-selection-column${ut}-cell-fix-left`]:{zIndex:it.zIndexTableFixed+1},[`table tr th${ut}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ut}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ut}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${it.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${it.tablePaddingHorizontal/4}px`,[en]:{color:Yn,fontSize:An,verticalAlign:"baseline","&:hover":{color:Vn}}}}}},fo=it=>{const{componentCls:ut}=it,Jt=(en,An,gn,Xn)=>({[`${ut}${ut}-${en}`]:{fontSize:Xn,[`
|
|
|
${ut}-title,
|
|
|
${ut}-footer,
|
|
|
${ut}-cell,
|
|
|
${ut}-thead > tr > th,
|
|
|
${ut}-tbody > tr > th,
|
|
|
${ut}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${An}px ${gn}px`},[`${ut}-filter-trigger`]:{marginInlineEnd:`-${gn/2}px`},[`${ut}-expanded-row-fixed`]:{margin:`-${An}px -${gn}px`},[`${ut}-tbody`]:{[`${ut}-wrapper:only-child ${ut}`]:{marginBlock:`-${An}px`,marginInline:`${it.tableExpandColumnWidth-gn}px -${gn}px`}},[`${ut}-selection-column`]:{paddingInlineStart:`${gn/4}px`}}});return{[`${ut}-wrapper`]:Object.assign(Object.assign({},Jt("middle",it.tablePaddingVerticalMiddle,it.tablePaddingHorizontalMiddle,it.tableFontSizeMiddle)),Jt("small",it.tablePaddingVerticalSmall,it.tablePaddingHorizontalSmall,it.tableFontSizeSmall))}},aa=it=>{const{componentCls:ut,marginXXS:Jt,fontSizeIcon:en,tableHeaderIconColor:An,tableHeaderIconColorHover:gn}=it;return{[`${ut}-wrapper`]:{[`${ut}-thead th${ut}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${it.motionDurationSlow}`,"&:hover":{background:it.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:it.colorPrimary},[`
|
|
|
&${ut}-cell-fix-left:hover,
|
|
|
&${ut}-cell-fix-right:hover
|
|
|
`]:{background:it.tableFixedHeaderSortActiveBg}},[`${ut}-thead th${ut}-column-sort`]:{background:it.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ut}-column-sort`]:{background:it.tableBodySortBg},[`${ut}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ut}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ut}-column-sorter`]:{marginInlineStart:Jt,color:An,fontSize:0,transition:`color ${it.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:en,"&.active":{color:it.colorPrimary}},[`${ut}-column-sorter-up + ${ut}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ut}-column-sorters:hover ${ut}-column-sorter`]:{color:gn}}}},Sa=it=>{const{componentCls:ut,opacityLoading:Jt,tableScrollThumbBg:en,tableScrollThumbBgHover:An,tableScrollThumbSize:gn,tableScrollBg:Xn,zIndexTableSticky:Yn,stickyScrollBarBorderRadius:Vn}=it,Pi=`${it.lineWidth}px ${it.lineType} ${it.tableBorderColor}`;return{[`${ut}-wrapper`]:{[`${ut}-sticky`]:{"&-holder":{position:"sticky",zIndex:Yn,background:it.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${gn}px !important`,zIndex:Yn,display:"flex",alignItems:"center",background:Xn,borderTop:Pi,opacity:Jt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:gn,backgroundColor:en,borderRadius:Vn,transition:`all ${it.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:An}}}}}}},Ha=it=>{const{componentCls:ut,lineWidth:Jt,tableBorderColor:en}=it,An=`${Jt}px ${it.lineType} ${en}`;return{[`${ut}-wrapper`]:{[`${ut}-summary`]:{position:"relative",zIndex:it.zIndexTableFixed,background:it.tableBg,"> tr":{"> th, > td":{borderBottom:An}}},[`div${ut}-summary`]:{boxShadow:`0 -${Jt}px 0 ${en}`}}}},fs=it=>{const{componentCls:ut}=it,Jt=`${it.lineWidth}px ${it.lineType} ${it.tableBorderColor}`,en=`${ut}-expanded-row-cell`;return{[`${ut}-wrapper`]:{[`${ut}-tbody-virtual`]:{[`${ut}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ut}-cell`]:{borderBottom:Jt},[`${ut}-expanded-row`]:{[`${en}${en}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${it.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ut}-bordered`]:{[`${ut}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Jt,position:"absolute"},[`${ut}-cell`]:{borderInlineEnd:Jt,[`&${ut}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-it.lineWidth,borderInlineStart:Jt}}}}}}};const La=it=>{const{componentCls:ut,fontWeightStrong:Jt,tablePaddingVertical:en,tablePaddingHorizontal:An,lineWidth:gn,lineType:Xn,tableBorderColor:Yn,tableFontSize:Vn,tableBg:Pi,tableRadius:ii,tableHeaderTextColor:yi,motionDurationMid:Ji,tableHeaderBg:Ui,tableHeaderCellSplitColor:zi,tableRowHoverBg:yr,tableSelectedRowBg:Ki,tableSelectedRowHoverBg:Ar,tableFooterTextColor:Pr,tableFooterBg:Br,paddingContentVerticalLG:yo}=it,Lo=`${gn}px ${Xn} ${Yn}`;return{[`${ut}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ws.dF)()),{[ut]:Object.assign(Object.assign({},(0,ws.Wf)(it)),{fontSize:Vn,background:Pi,borderRadius:`${ii}px ${ii}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${ii}px ${ii}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ut}-cell,
|
|
|
${ut}-thead > tr > th,
|
|
|
${ut}-tbody > tr > th,
|
|
|
${ut}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${yo}px ${An}px`,overflowWrap:"break-word"},[`${ut}-title`]:{padding:`${en}px ${An}px`},[`${ut}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:yi,fontWeight:Jt,textAlign:"start",background:Ui,borderBottom:Lo,transition:`background ${Ji} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ut}-selection-column):not(${ut}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:zi,transform:"translateY(-50%)",transition:`background-color ${Ji}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ut}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ji}, border-color ${Ji}`,borderBottom:Lo,[`
|
|
|
> ${ut}-wrapper:only-child,
|
|
|
> ${ut}-expanded-row-fixed > ${ut}-wrapper:only-child
|
|
|
`]:{[ut]:{marginBlock:`-${en}px`,marginInline:`${it.tableExpandColumnWidth-An}px -${An}px`,[`${ut}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:yi,fontWeight:Jt,textAlign:"start",background:Ui,borderBottom:Lo,transition:`background ${Ji} ease`},[`
|
|
|
&${ut}-row:hover > th,
|
|
|
&${ut}-row:hover > td,
|
|
|
> th${ut}-cell-row-hover,
|
|
|
> td${ut}-cell-row-hover
|
|
|
`]:{background:yr},[`&${ut}-row-selected`]:{"> th, > td":{background:Ki},"&:hover > th, &:hover > td":{background:Ar}}}},[`${ut}-footer`]:{padding:`${en}px ${An}px`,color:Pr,background:Br}})}};var Ca=(0,ya.Z)("Table",it=>{const{colorTextHeading:ut,colorSplit:Jt,colorIcon:en,colorIconHover:An,opacityLoading:gn,colorBgContainer:Xn,controlInteractiveSize:Yn,headerBg:Vn,headerColor:Pi,headerSortActiveBg:ii,headerSortHoverBg:yi,bodySortBg:Ji,rowHoverBg:Ui,rowSelectedBg:zi,rowSelectedHoverBg:yr,rowExpandedBg:Ki,cellPaddingBlock:Ar,cellPaddingInline:Pr,cellPaddingBlockMD:Br,cellPaddingInlineMD:yo,cellPaddingBlockSM:Lo,cellPaddingInlineSM:zr,borderColor:eo,footerBg:Ko,footerColor:Or,headerBorderRadius:so,cellFontSize:jr,cellFontSizeMD:gr,cellFontSizeSM:Lr,headerSplitColor:lo,fixedHeaderSortActiveBg:Mo,headerFilterHoverBg:No,filterDropdownBg:Mr,expandIconBg:Vo,selectionColumnWidth:_o,stickyScrollBarBg:na}=it,ta=new Il.C(en),Qa=new Il.C(An),fa=2,Wo=(0,ol.TS)(it,{tableFontSize:jr,tableBg:Xn,tableRadius:so,tablePaddingVertical:Ar,tablePaddingHorizontal:Pr,tablePaddingVerticalMiddle:Br,tablePaddingHorizontalMiddle:yo,tablePaddingVerticalSmall:Lo,tablePaddingHorizontalSmall:zr,tableBorderColor:eo,tableHeaderTextColor:Pi,tableHeaderBg:Vn,tableFooterTextColor:Or,tableFooterBg:Ko,tableHeaderCellSplitColor:lo,tableHeaderSortBg:ii,tableHeaderSortHoverBg:yi,tableHeaderIconColor:ta.clone().setAlpha(ta.getAlpha()*gn).toRgbString(),tableHeaderIconColorHover:Qa.clone().setAlpha(Qa.getAlpha()*gn).toRgbString(),tableBodySortBg:Ji,tableFixedHeaderSortActiveBg:Mo,tableHeaderFilterActiveBg:No,tableFilterDropdownBg:Mr,tableRowHoverBg:Ui,tableSelectedRowBg:zi,tableSelectedRowHoverBg:yr,zIndexTableFixed:fa,zIndexTableSticky:fa+1,tableFontSizeMiddle:gr,tableFontSizeSmall:Lr,tableSelectionColumnWidth:_o,tableExpandIconBg:Vo,tableExpandColumnWidth:Yn+2*it.padding,tableExpandedRowBg:Ki,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:na,tableScrollThumbBgHover:ut,tableScrollBg:Jt});return[La(Wo),xr(Wo),Ha(Wo),aa(Wo),sr(Wo),$e(Wo),$i(Wo),ui(Wo),Ha(Wo),In(Wo),mo(Wo),_i(Wo),Sa(Wo),nn(Wo),fo(Wo),ho(Wo),fs(Wo)]},it=>{const{colorFillAlter:ut,colorBgContainer:Jt,colorTextHeading:en,colorFillSecondary:An,colorFillContent:gn,controlItemBgActive:Xn,controlItemBgActiveHover:Yn,padding:Vn,paddingSM:Pi,paddingXS:ii,colorBorderSecondary:yi,borderRadiusLG:Ji,fontSize:Ui,controlHeight:zi,colorTextPlaceholder:yr}=it,Ki=new Il.C(An).onBackground(Jt).toHexShortString(),Ar=new Il.C(gn).onBackground(Jt).toHexShortString(),Pr=new Il.C(ut).onBackground(Jt).toHexShortString();return{headerBg:Pr,headerColor:en,headerSortActiveBg:Ki,headerSortHoverBg:Ar,bodySortBg:Pr,rowHoverBg:Pr,rowSelectedBg:Xn,rowSelectedHoverBg:Yn,rowExpandedBg:ut,cellPaddingBlock:Vn,cellPaddingInline:Vn,cellPaddingBlockMD:Pi,cellPaddingInlineMD:ii,cellPaddingBlockSM:ii,cellPaddingInlineSM:ii,borderColor:yi,headerBorderRadius:Ji,footerBg:Pr,footerColor:en,cellFontSize:Ui,cellFontSizeMD:Ui,cellFontSizeSM:Ui,headerSplitColor:yi,fixedHeaderSortActiveBg:Ki,headerFilterHoverBg:gn,filterDropdownMenuBg:Jt,filterDropdownBg:Jt,expandIconBg:Jt,selectionColumnWidth:zi,stickyScrollBarBg:yr,stickyScrollBarBorderRadius:100}});const Ta=[],as=(it,ut)=>{const{prefixCls:Jt,className:en,rootClassName:An,style:gn,size:Xn,bordered:Yn,dropdownPrefixCls:Vn,dataSource:Pi,pagination:ii,rowSelection:yi,rowKey:Ji="key",rowClassName:Ui,columns:zi,children:yr,childrenColumnName:Ki,onChange:Ar,getPopupContainer:Pr,loading:Br,expandIcon:yo,expandable:Lo,expandedRowRender:zr,expandIconColumnIndex:eo,indentSize:Ko,scroll:Or,sortDirections:so,locale:jr,showSorterTooltip:gr=!0,virtual:Lr}=it,lo=ke.useMemo(()=>zi||qt(yr),[zi,yr]),Mo=ke.useMemo(()=>lo.some(Ra=>Ra.responsive),[lo]),No=(0,zn.Z)(Mo),Mr=ke.useMemo(()=>{const Ra=new Set(Object.keys(No).filter(ls=>No[ls]));return lo.filter(ls=>!ls.responsive||ls.responsive.some(Qs=>Ra.has(Qs)))},[lo,No]),Vo=(0,qn.Z)(it,["className","style","columns"]),{locale:_o=_r.Z,direction:na,table:ta,renderEmpty:Qa,getPrefixCls:fa,getPopupContainer:Wo}=ke.useContext(Bi.E_),wo=(0,Gi.Z)(Xn),To=Object.assign(Object.assign({},_o.Table),jr),Ya=Pi||Ta,Ia=fa("table",Jt),ns=fa("dropdown",Vn),Ro=Object.assign({childrenColumnName:Ki,expandIconColumnIndex:eo},Lo),{childrenColumnName:bo="children"}=Ro,Zo=ke.useMemo(()=>Ya.some(Ra=>Ra==null?void 0:Ra[bo])?"nest":zr||Lo&&Lo.expandedRowRender?"row":null,[Ya]),xo={body:ke.useRef()},ao=ke.useMemo(()=>typeof Ji=="function"?Ji:Ra=>Ra==null?void 0:Ra[Ji],[Ji]),[qi]=xc(Ya,bo,ao),Zr={},Uo=function(Ra,ls){let Qs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ms,za,_s;const Rl=Object.assign(Object.assign({},Zr),Ra);Qs&&((ms=Zr.resetPagination)===null||ms===void 0||ms.call(Zr),!((za=Rl.pagination)===null||za===void 0)&&za.current&&(Rl.pagination.current=1),ii&&ii.onChange&&ii.onChange(1,(_s=Rl.pagination)===null||_s===void 0?void 0:_s.pageSize)),Or&&Or.scrollToFirstRowOnChange!==!1&&xo.body.current&&(0,Oi.Z)(0,{getContainer:()=>xo.body.current}),Ar==null||Ar(Rl.pagination,Rl.filters,Rl.sorter,{currentDataSource:rl(jl(Ya,Rl.sorterStates,bo),Rl.filterStates),action:ls})},sa=(Ra,ls)=>{Uo({sorter:Ra,sorterStates:ls},"sort",!1)},[al,zs,Al,ka]=Pc({prefixCls:Ia,mergedColumns:Mr,onSorterChange:sa,sortDirections:so||["ascend","descend"],tableLocale:To,showSorterTooltip:gr}),Ua=ke.useMemo(()=>jl(Ya,zs,bo),[Ya,zs]);Zr.sorter=ka(),Zr.sorterStates=zs;const Do=(Ra,ls)=>{Uo({filters:Ra,filterStates:ls},"filter",!0)},[Vs,Ll,Wa]=Sc({prefixCls:Ia,locale:To,dropdownPrefixCls:ns,mergedColumns:Mr,onFilterChange:Do,getPopupContainer:Pr||Wo}),_a=rl(Ua,Ll);Zr.filters=Wa,Zr.filterStates=Ll;const is=ke.useMemo(()=>{const Ra={};return Object.keys(Wa).forEach(ls=>{Wa[ls]!==null&&(Ra[ls]=Wa[ls])}),Object.assign(Object.assign({},Al),{filters:Ra})},[Al,Wa]),[bs]=Os(is),Gs=(Ra,ls)=>{Uo({pagination:Object.assign(Object.assign({},Zr.pagination),{current:Ra,pageSize:ls})},"paginate")},[xa,ss]=pu(_a.length,Gs,ii);Zr.pagination=ii===!1?{}:xl(xa,ii),Zr.resetPagination=ss;const Js=ke.useMemo(()=>{if(ii===!1||!xa.pageSize)return _a;const{current:Ra=1,total:ls,pageSize:Qs=zl}=xa;return _a.length<ls?_a.length>Qs?_a.slice((Ra-1)*Qs,Ra*Qs):_a:_a.slice((Ra-1)*Qs,Ra*Qs)},[!!ii,_a,xa&&xa.current,xa&&xa.pageSize,xa&&xa.total]),[Xa,zo]=Ts({prefixCls:Ia,data:_a,pageData:Js,getRowKey:ao,getRecordByKey:qi,expandType:Zo,childrenColumnName:bo,locale:To,getPopupContainer:Pr||Wo},yi),Ms=(Ra,ls,Qs)=>{let ms;return typeof Ui=="function"?ms=qe()(Ui(Ra,ls,Qs)):ms=qe()(Ui),qe()({[`${Ia}-row-selected`]:zo.has(ao(Ra,ls))},ms)};Ro.__PARENT_RENDER_ICON__=Ro.expandIcon,Ro.expandIcon=Ro.expandIcon||yo||to(To),Zo==="nest"&&Ro.expandIconColumnIndex===void 0?Ro.expandIconColumnIndex=yi?1:0:Ro.expandIconColumnIndex>0&&yi&&(Ro.expandIconColumnIndex-=1),typeof Ro.indentSize!="number"&&(Ro.indentSize=typeof Ko=="number"?Ko:15);const Ys=ke.useCallback(Ra=>bs(Xa(Vs(al(Ra)))),[al,Vs,Xa]);let Wu,vu;if(ii!==!1&&(xa!=null&&xa.total)){let Ra;xa.size?Ra=xa.size:Ra=wo==="small"||wo==="middle"?"small":void 0;const ls=za=>ke.createElement(Gr.Z,Object.assign({},xa,{className:qe()(`${Ia}-pagination ${Ia}-pagination-${za}`,xa.className),size:Ra})),Qs=na==="rtl"?"left":"right",{position:ms}=xa;if(ms!==null&&Array.isArray(ms)){const za=ms.find(Zu=>Zu.includes("top")),_s=ms.find(Zu=>Zu.includes("bottom")),Rl=ms.every(Zu=>`${Zu}`=="none");!za&&!_s&&!Rl&&(vu=ls(Qs)),za&&(Wu=ls(za.toLowerCase().replace("top",""))),_s&&(vu=ls(_s.toLowerCase().replace("bottom","")))}else vu=ls(Qs)}let $a;typeof Br=="boolean"?$a={spinning:Br}:typeof Br=="object"&&($a=Object.assign({spinning:!0},Br));const[Ml,Ps]=Ca(Ia),[,ps]=(0,qr.Z)(),ku=qe()(`${Ia}-wrapper`,ta==null?void 0:ta.className,{[`${Ia}-wrapper-rtl`]:na==="rtl"},en,An,Ps),Cc=Object.assign(Object.assign({},ta==null?void 0:ta.style),gn),ql=jr&&jr.emptyText||(Qa==null?void 0:Qa("Table"))||ke.createElement(pi.Z,{componentName:"Table"}),ac=Lr?wl:Io,sc={},yu=ke.useMemo(()=>{const{fontSize:Ra,lineHeight:ls,padding:Qs,paddingXS:ms,paddingSM:za}=ps,_s=Math.floor(Ra*ls);switch(wo){case"large":return Qs*2+_s;case"small":return ms*2+_s;default:return za*2+_s}},[ps,wo]);return Lr&&(sc.listItemHeight=yu),Ml(ke.createElement("div",{ref:ut,className:ku,style:Cc},ke.createElement(Ao.Z,Object.assign({spinning:!1},$a),Wu,ke.createElement(ac,Object.assign({},sc,Vo,{columns:Mr,direction:na,expandable:Ro,prefixCls:Ia,className:qe()({[`${Ia}-middle`]:wo==="middle",[`${Ia}-small`]:wo==="small",[`${Ia}-bordered`]:Yn,[`${Ia}-empty`]:Ya.length===0}),data:Js,rowKey:ao,rowClassName:Ms,emptyText:ql,internalHooks:Oe,internalRefs:xo,transformColumns:Ys})),vu)))};var gs=ke.forwardRef(as);const Ja=(it,ut)=>{const Jt=ke.useRef(0);return Jt.current+=1,ke.createElement(gs,Object.assign({},it,{ref:ut,_renderTimes:Jt.current}))},Oa=ke.forwardRef(Ja);Oa.SELECTION_COLUMN=Cs,Oa.EXPAND_COLUMN=Se,Oa.SELECTION_ALL=Ss,Oa.SELECTION_INVERT=os,Oa.SELECTION_NONE=hs,Oa.Column=Wt,Oa.ColumnGroup=ai,Oa.Summary=lt;var Rs=Oa,hl=Rs},98228:function(Rn,Fn,ye){"use strict";ye.d(Fn,{default:function(){return Co}});var Se=ye(92310),Oe=ye.n(Se),He=ye(5891),Rt=ye(26390),_e=ye(57259),vt=ye(29043),ke=ye(19149),Tt=ye(80665),Lt=ye(77861),et=ye(17115),gt=ye(90782),ct=ye(35788),wt=ye(51395),Me=ye(59301),te=function($n){var Ce=Me.useRef({valueLabels:new Map});return Me.useMemo(function(){var hi=Ce.current.valueLabels,ki=new Map,un=$n.map(function(Wn){var li,fn=Wn.value,on=(li=Wn.label)!==null&&li!==void 0?li:hi.get(fn);return ki.set(fn,on),(0,_e.Z)((0,_e.Z)({},Wn),{},{label:on})});return Ce.current.valueLabels=ki,[un]},[$n])},ne=function($n,Ce,hi,ki){return Me.useMemo(function(){var un=$n.map(function(on){var mt=on.value;return mt}),Wn=Ce.map(function(on){var mt=on.value;return mt}),li=un.filter(function(on){return!ki[on]});if(hi){var fn=(0,gt.S)(un,!0,ki);un=fn.checkedKeys,Wn=fn.halfCheckedKeys}return[Array.from(new Set([].concat((0,Rt.Z)(li),(0,Rt.Z)(un)))),Wn]},[$n,Ce,hi,ki])},ce=ye(71430),se=function($n,Ce){return Me.useMemo(function(){var hi=(0,ce.I8)($n,{fieldNames:Ce,initWrapper:function(un){return(0,_e.Z)((0,_e.Z)({},un),{},{valueEntities:new Map})},processEntity:function(un,Wn){var li=un.node[Ce.value];if(0)var fn;Wn.valueEntities.set(li,un)}});return hi},[$n,Ce])},ge=ye(80962),ve=ye(38298),be=function(){return null},Fe=be,Pe=["children","value"];function Ie($n){return(0,ve.Z)($n).map(function(Ce){if(!Me.isValidElement(Ce)||!Ce.type)return null;var hi=Ce,ki=hi.key,un=hi.props,Wn=un.children,li=un.value,fn=(0,ke.Z)(un,Pe),on=(0,_e.Z)({key:ki,value:li},fn),mt=Ie(Wn);return mt.length&&(on.children=mt),on}).filter(function(Ce){return Ce})}function We($n){if(!$n)return $n;var Ce=(0,_e.Z)({},$n);return"props"in Ce||Object.defineProperty(Ce,"props",{get:function(){return(0,wt.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ce}}),Ce}function Ke($n,Ce,hi,ki,un,Wn){var li=null,fn=null;function on(){function mt(Pt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Pt.map(function(qt,dn){var xt="".concat(bt,"-").concat(dn),Ye=qt[Wn.value],an=hi.includes(Ye),Bt=mt(qt[Wn.children]||[],xt,an),jn=Me.createElement(Fe,qt,Bt.map(function(Et){return Et.node}));if(Ce===Ye&&(li=jn),an){var cn={pos:xt,node:jn,children:Bt};return tt||fn.push(cn),cn}return null}).filter(function(qt){return qt})}fn||(fn=[],mt(ki),fn.sort(function(Pt,bt){var tt=Pt.node.props.value,qt=bt.node.props.value,dn=hi.indexOf(tt),xt=hi.indexOf(qt);return dn-xt}))}Object.defineProperty($n,"triggerNode",{get:function(){return(0,wt.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),on(),li}}),Object.defineProperty($n,"allCheckedNodes",{get:function(){return(0,wt.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),on(),un?fn:fn.map(function(Pt){var bt=Pt.node;return bt})}})}var Xe=function($n,Ce,hi){var ki=hi.treeNodeFilterProp,un=hi.filterTreeNode,Wn=hi.fieldNames,li=Wn.children;return Me.useMemo(function(){if(!Ce||un===!1)return $n;var fn;if(typeof un=="function")fn=un;else{var on=Ce.toUpperCase();fn=function(bt,tt){var qt=tt[ki];return String(qt).toUpperCase().includes(on)}}function mt(Pt){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Pt.reduce(function(tt,qt){var dn=qt[li],xt=bt||fn(Ce,We(qt)),Ye=mt(dn||[],xt);return(xt||Ye.length)&&tt.push((0,_e.Z)((0,_e.Z)({},qt),{},(0,ge.Z)({isLeaf:void 0},li,Ye))),tt},[])}return mt($n)},[$n,Ce,li,ki,un])};function ht($n){var Ce=Me.useRef();Ce.current=$n;var hi=Me.useCallback(function(){return Ce.current.apply(Ce,arguments)},[]);return hi}function Ve($n,Ce){var hi=Ce.id,ki=Ce.pId,un=Ce.rootPId,Wn={},li=[],fn=$n.map(function(on){var mt=(0,_e.Z)({},on),Pt=mt[hi];return Wn[Pt]=mt,mt.key=mt.key||Pt,mt});return fn.forEach(function(on){var mt=on[ki],Pt=Wn[mt];Pt&&(Pt.children=Pt.children||[],Pt.children.push(on)),(mt===un||!Pt&&un===null)&&li.push(on)}),li}function Nt($n,Ce,hi){return Me.useMemo(function(){return $n?hi?Ve($n,(0,_e.Z)({id:"id",pId:"pId",rootPId:null},hi!==!0?hi:{})):$n:Ie(Ce)},[Ce,hi,$n])}var qe=Me.createContext(null),Ht=qe,Zt=ye(85108),Yt=ye(79722),Ot=ye(99581),Qt=Me.createContext(null),dt=Qt;function Re($n){return Array.isArray($n)?$n:$n!==void 0?[$n]:[]}function Mt($n){var Ce=$n||{},hi=Ce.label,ki=Ce.value,un=Ce.children,Wn=ki||"value";return{_title:hi?[hi]:["title","label"],value:Wn,key:Wn,children:un||"children"}}function Pn($n){return!$n||$n.disabled||$n.disableCheckbox||$n.checkable===!1}function mn($n,Ce){var hi=[];function ki(un){un.forEach(function(Wn){var li=Wn[Ce.children];li&&(hi.push(Wn[Ce.value]),ki(li))})}return ki($n),hi}function kt($n){return $n==null}var _t={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ln=function(Ce,hi){var ki=(0,Lt.lk)(),un=ki.prefixCls,Wn=ki.multiple,li=ki.searchValue,fn=ki.toggleOpen,on=ki.open,mt=ki.notFoundContent,Pt=Me.useContext(dt),bt=Pt.virtual,tt=Pt.listHeight,qt=Pt.listItemHeight,dn=Pt.treeData,xt=Pt.fieldNames,Ye=Pt.onSelect,an=Pt.dropdownMatchSelectWidth,Bt=Pt.treeExpandAction,jn=Me.useContext(Ht),cn=jn.checkable,Et=jn.checkedKeys,xn=jn.halfCheckedKeys,Qn=jn.treeExpandedKeys,Un=jn.treeDefaultExpandAll,zt=jn.treeDefaultExpandedKeys,Sn=jn.onTreeExpand,Ci=jn.treeIcon,Si=jn.showTreeIcon,vi=jn.switcherIcon,ti=jn.treeLine,xi=jn.treeNodeFilterProp,Ni=jn.loadData,Zi=jn.treeLoadedKeys,cr=jn.treeMotion,Gn=jn.onTreeLoad,Ai=jn.keyEntities,br=Me.useRef(),kr=(0,Yt.Z)(function(){return dn},[on,dn],function(fr,Vr){return Vr[0]&&fr[1]!==Vr[1]}),Sr=Me.useState(null),Xt=(0,vt.Z)(Sr,2),Li=Xt[0],rr=Xt[1],Hi=Ai[Li],Er=Me.useMemo(function(){return cn?{checked:Et,halfChecked:xn}:null},[cn,Et,xn]);Me.useEffect(function(){if(on&&!Wn&&Et.length){var fr;(fr=br.current)===null||fr===void 0||fr.scrollTo({key:Et[0]}),rr(Et[0])}},[on]);var dr=String(li).toLowerCase(),Nr=function(Vr){return dr?String(Vr[xi]).toLowerCase().includes(dr):!1},Ti=Me.useState(zt),Qi=(0,vt.Z)(Ti,2),er=Qi[0],kn=Qi[1],Dr=Me.useState(null),Ln=(0,vt.Z)(Dr,2),pr=Ln[0],Qr=Ln[1],vr=Me.useMemo(function(){return Qn?(0,Rt.Z)(Qn):li?pr:er},[er,pr,Qn,li]);Me.useEffect(function(){li&&Qr(mn(dn,xt))},[li]);var Ho=function(Vr){kn(Vr),Qr(Vr),Sn&&Sn(Vr)},co=function(Vr){Vr.preventDefault()},mr=function(Vr,Ii){var Qe=Ii.node;cn&&Pn(Qe)||(Ye(Qe.key,{selected:!Et.includes(Qe.key)}),Wn||fn(!1))};if(Me.useImperativeHandle(hi,function(){var fr;return{scrollTo:(fr=br.current)===null||fr===void 0?void 0:fr.scrollTo,onKeyDown:function(Ii){var Qe,pt=Ii.which;switch(pt){case Zt.Z.UP:case Zt.Z.DOWN:case Zt.Z.LEFT:case Zt.Z.RIGHT:(Qe=br.current)===null||Qe===void 0||Qe.onKeyDown(Ii);break;case Zt.Z.ENTER:{if(Hi){var It=(Hi==null?void 0:Hi.node)||{},sn=It.selectable,Hn=It.value;sn!==!1&&mr(null,{node:{key:Li},selected:!Et.includes(Hn)})}break}case Zt.Z.ESC:fn(!1)}},onKeyUp:function(){}}}),kr.length===0)return Me.createElement("div",{role:"listbox",className:"".concat(un,"-empty"),onMouseDown:co},mt);var hr={fieldNames:xt};return Zi&&(hr.loadedKeys=Zi),vr&&(hr.expandedKeys=vr),Me.createElement("div",{onMouseDown:co},Hi&&on&&Me.createElement("span",{style:_t,"aria-live":"assertive"},Hi.node.value),Me.createElement(Ot.Z,(0,He.Z)({ref:br,focusable:!1,prefixCls:"".concat(un,"-tree"),treeData:kr,height:tt,itemHeight:qt,virtual:bt!==!1&&an!==!1,multiple:Wn,icon:Ci,showIcon:Si,switcherIcon:vi,showLine:ti,loadData:li?null:Ni,motion:cr,activeKey:Li,checkable:cn,checkStrictly:!0,checkedKeys:Er,selectedKeys:cn?[]:Et,defaultExpandAll:Un},hr,{onActiveChange:rr,onSelect:mr,onCheck:mr,onExpand:Ho,onLoad:Gn,filterTreeNode:Nr,expandAction:Bt})))},Bn=Me.forwardRef(ln);Bn.displayName="OptionList";var wn=Bn,Kn="SHOW_ALL",yt="SHOW_PARENT",Jn="SHOW_CHILD";function bn($n,Ce,hi,ki){var un=new Set($n);return Ce===Jn?$n.filter(function(Wn){var li=hi[Wn];return!(li&&li.children&&li.children.some(function(fn){var on=fn.node;return un.has(on[ki.value])})&&li.children.every(function(fn){var on=fn.node;return Pn(on)||un.has(on[ki.value])}))}):Ce===yt?$n.filter(function(Wn){var li=hi[Wn],fn=li?li.parent:null;return!(fn&&!Pn(fn.node)&&un.has(fn.key))}):$n}function ci($n){var Ce=$n.searchPlaceholder,hi=$n.treeCheckStrictly,ki=$n.treeCheckable,un=$n.labelInValue,Wn=$n.value,li=$n.multiple;warning(!Ce,"`searchPlaceholder` has been removed."),hi&&un===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(un||hi)&&warning(toArray(Wn).every(function(fn){return fn&&_typeof(fn)==="object"&&"value"in fn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),hi||li||ki?warning(!Wn||Array.isArray(Wn),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Wn),"`value` should not be array when `TreeSelect` is single mode.")}var Tn=null,tn=["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 $t($n){return!$n||(0,Tt.Z)($n)!=="object"}var ft=Me.forwardRef(function($n,Ce){var hi=$n.id,ki=$n.prefixCls,un=ki===void 0?"rc-tree-select":ki,Wn=$n.value,li=$n.defaultValue,fn=$n.onChange,on=$n.onSelect,mt=$n.onDeselect,Pt=$n.searchValue,bt=$n.inputValue,tt=$n.onSearch,qt=$n.autoClearSearchValue,dn=qt===void 0?!0:qt,xt=$n.filterTreeNode,Ye=$n.treeNodeFilterProp,an=Ye===void 0?"value":Ye,Bt=$n.showCheckedStrategy,jn=$n.treeNodeLabelProp,cn=$n.multiple,Et=$n.treeCheckable,xn=$n.treeCheckStrictly,Qn=$n.labelInValue,Un=$n.fieldNames,zt=$n.treeDataSimpleMode,Sn=$n.treeData,Ci=$n.children,Si=$n.loadData,vi=$n.treeLoadedKeys,ti=$n.onTreeLoad,xi=$n.treeDefaultExpandAll,Ni=$n.treeExpandedKeys,Zi=$n.treeDefaultExpandedKeys,cr=$n.onTreeExpand,Gn=$n.treeExpandAction,Ai=$n.virtual,br=$n.listHeight,kr=br===void 0?200:br,Sr=$n.listItemHeight,Xt=Sr===void 0?20:Sr,Li=$n.onDropdownVisibleChange,rr=$n.dropdownMatchSelectWidth,Hi=rr===void 0?!0:rr,Er=$n.treeLine,dr=$n.treeIcon,Nr=$n.showTreeIcon,Ti=$n.switcherIcon,Qi=$n.treeMotion,er=(0,ke.Z)($n,tn),kn=(0,et.ZP)(hi),Dr=Et&&!xn,Ln=Et||xn,pr=xn||Qn,Qr=Ln||cn,vr=(0,ct.Z)(li,{value:Wn}),Ho=(0,vt.Z)(vr,2),co=Ho[0],mr=Ho[1],hr=Me.useMemo(function(){return Et?Bt||Jn:Kn},[Bt,Et]),fr=Me.useMemo(function(){return Mt(Un)},[JSON.stringify(Un)]),Vr=(0,ct.Z)("",{value:Pt!==void 0?Pt:bt,postState:function(Fo){return Fo||""}}),Ii=(0,vt.Z)(Vr,2),Qe=Ii[0],pt=Ii[1],It=function(Fo){pt(Fo),tt==null||tt(Fo)},sn=Nt(Sn,Ci,zt),Hn=se(sn,fr),On=Hn.keyEntities,Wt=Hn.valueEntities,Nn=Me.useCallback(function(ma){var Fo=[],Oo=[];return ma.forEach(function(Pa){Wt.has(Pa)?Oo.push(Pa):Fo.push(Pa)}),{missingRawValues:Fo,existRawValues:Oo}},[Wt]),ai=Xe(sn,Qe,{fieldNames:fr,treeNodeFilterProp:an,filterTreeNode:xt}),qn=Me.useCallback(function(ma){if(ma){if(jn)return ma[jn];for(var Fo=fr._title,Oo=0;Oo<Fo.length;Oo+=1){var Pa=ma[Fo[Oo]];if(Pa!==void 0)return Pa}}},[fr,jn]),Oi=Me.useCallback(function(ma){var Fo=Re(ma);return Fo.map(function(Oo){return $t(Oo)?{value:Oo}:Oo})},[]),Bi=Me.useCallback(function(ma){var Fo=Oi(ma);return Fo.map(function(Oo){var Pa=Oo.label,no=Oo.value,ko=Oo.halfChecked,oo,Vi=Wt.get(no);if(Vi){var ha;Pa=(ha=Pa)!==null&&ha!==void 0?ha:qn(Vi.node),oo=Vi.node.disabled}else if(Pa===void 0){var Na=Oi(co).find(function(Bs){return Bs.value===no});Pa=Na.label}return{label:Pa,value:no,halfChecked:ko,disabled:oo}})},[Wt,qn,Oi,co]),pi=Me.useMemo(function(){return Oi(co)},[Oi,co]),Gi=Me.useMemo(function(){var ma=[],Fo=[];return pi.forEach(function(Oo){Oo.halfChecked?Fo.push(Oo):ma.push(Oo)}),[ma,Fo]},[pi]),zn=(0,vt.Z)(Gi,2),_r=zn[0],Gr=zn[1],Ao=Me.useMemo(function(){return _r.map(function(ma){return ma.value})},[_r]),qr=ne(_r,Gr,Dr,On),$r=(0,vt.Z)(qr,2),to=$r[0],$o=$r[1],Qo=Me.useMemo(function(){var ma=bn(to,hr,On,fr),Fo=ma.map(function(ko){var oo,Vi,ha;return(oo=(Vi=On[ko])===null||Vi===void 0||(ha=Vi.node)===null||ha===void 0?void 0:ha[fr.value])!==null&&oo!==void 0?oo:ko}),Oo=Fo.map(function(ko){var oo=_r.find(function(Vi){return Vi.value===ko});return{value:ko,label:oo==null?void 0:oo.label}}),Pa=Bi(Oo),no=Pa[0];return!Qr&&no&&kt(no.value)&&kt(no.label)?[]:Pa.map(function(ko){var oo;return(0,_e.Z)((0,_e.Z)({},ko),{},{label:(oo=ko.label)!==null&&oo!==void 0?oo:ko.value})})},[fr,Qr,to,_r,Bi,hr,On]),pa=te(Qo),qo=(0,vt.Z)(pa,1),Cn=qo[0],ca=ht(function(ma,Fo,Oo){var Pa=Bi(ma);if(mr(Pa),dn&&pt(""),fn){var no=ma;if(Dr){var ko=bn(ma,hr,On,fr);no=ko.map(function(ga){var Is=Wt.get(ga);return Is?Is.node[fr.value]:ga})}var oo=Fo||{triggerValue:void 0,selected:void 0},Vi=oo.triggerValue,ha=oo.selected,Na=no;if(xn){var Bs=Gr.filter(function(ga){return!no.includes(ga.value)});Na=[].concat((0,Rt.Z)(Na),(0,Rt.Z)(Bs))}var ys=Bi(Na),nl={preValue:_r,triggerValue:Vi},Yi=!0;(xn||Oo==="selection"&&!ha)&&(Yi=!1),Ke(nl,Vi,ma,sn,Yi,fr),Ln?nl.checked=ha:nl.selected=ha;var Da=pr?ys:ys.map(function(ga){return ga.value});fn(Qr?Da:Da[0],pr?null:ys.map(function(ga){return ga.label}),nl)}}),es=Me.useCallback(function(ma,Fo){var Oo,Pa=Fo.selected,no=Fo.source,ko=On[ma],oo=ko==null?void 0:ko.node,Vi=(Oo=oo==null?void 0:oo[fr.value])!==null&&Oo!==void 0?Oo:ma;if(!Qr)ca([Vi],{selected:!0,triggerValue:Vi},"option");else{var ha=Pa?[].concat((0,Rt.Z)(Ao),[Vi]):to.filter(function(Is){return Is!==Vi});if(Dr){var Na=Nn(ha),Bs=Na.missingRawValues,ys=Na.existRawValues,nl=ys.map(function(Is){return Wt.get(Is).key}),Yi;if(Pa){var Da=(0,gt.S)(nl,!0,On);Yi=Da.checkedKeys}else{var ga=(0,gt.S)(nl,{checked:!1,halfCheckedKeys:$o},On);Yi=ga.checkedKeys}ha=[].concat((0,Rt.Z)(Bs),(0,Rt.Z)(Yi.map(function(Is){return On[Is].node[fr.value]})))}ca(ha,{selected:Pa,triggerValue:Vi},no||"option")}Pa||!Qr?on==null||on(Vi,We(oo)):mt==null||mt(Vi,We(oo))},[Nn,Wt,On,fr,Qr,Ao,ca,Dr,on,mt,to,$o]),ts=Me.useCallback(function(ma){if(Li){var Fo={};Object.defineProperty(Fo,"documentClickClose",{get:function(){return(0,wt.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Li(ma,Fo)}},[Li]),Ga=ht(function(ma,Fo){var Oo=ma.map(function(Pa){return Pa.value});if(Fo.type==="clear"){ca(Oo,{},"selection");return}Fo.values.length&&es(Fo.values[0].value,{selected:!1,source:"selection"})}),Ds=Me.useMemo(function(){return{virtual:Ai,dropdownMatchSelectWidth:Hi,listHeight:kr,listItemHeight:Xt,treeData:ai,fieldNames:fr,onSelect:es,treeExpandAction:Gn}},[Ai,Hi,kr,Xt,ai,fr,es,Gn]),pl=Me.useMemo(function(){return{checkable:Ln,loadData:Si,treeLoadedKeys:vi,onTreeLoad:ti,checkedKeys:to,halfCheckedKeys:$o,treeDefaultExpandAll:xi,treeExpandedKeys:Ni,treeDefaultExpandedKeys:Zi,onTreeExpand:cr,treeIcon:dr,treeMotion:Qi,showTreeIcon:Nr,switcherIcon:Ti,treeLine:Er,treeNodeFilterProp:an,keyEntities:On}},[Ln,Si,vi,ti,to,$o,xi,Ni,Zi,cr,dr,Qi,Nr,Ti,Er,an,On]);return Me.createElement(dt.Provider,{value:Ds},Me.createElement(Ht.Provider,{value:pl},Me.createElement(Lt.Ac,(0,He.Z)({ref:Ce},er,{id:kn,prefixCls:un,mode:Qr?"multiple":void 0,displayValues:Cn,onDisplayValuesChange:Ga,searchValue:Qe,onSearch:It,OptionList:wn,emptyOptions:!sn.length,onDropdownVisibleChange:ts,dropdownMatchSelectWidth:Hi}))))}),Je=ft;Je.TreeNode=Fe,Je.SHOW_ALL=Kn,Je.SHOW_PARENT=yt,Je.SHOW_CHILD=Jn;var Gt=Je,At=Gt,lt=ye(64002),Ge=ye(53487),Be=ye(62892),we=ye(19080),pe=ye(36355),De=ye(1684),ze=ye(93891),Le=ye(19716),nt=ye(32441),Ut=ye(14154),En=ye(58582),rn=ye(84443),vn=ye(66339),mi=ye(33234),wi=ye(48610),Ri=ye(98447),Wi=ye(37613),Mn=ye(83116),nr=ye(20648);const Wr=$n=>{const{componentCls:Ce,treePrefixCls:hi,colorBgElevated:ki}=$n,un=`.${hi}`;return[{[`${Ce}-dropdown`]:[{padding:`${$n.paddingXS}px ${$n.paddingXS/2}px`},(0,nr.Yk)(hi,(0,Wi.TS)($n,{colorBgContainer:ki})),{[un]:{borderRadius:0,[`${un}-list-holder-inner`]:{alignItems:"stretch",[`${un}-treenode`]:{[`${un}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Ri.C2)(`${hi}-checkbox`,$n),{"&-rtl":{direction:"rtl",[`${un}-switcher${un}-switcher_close`]:{[`${un}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Hr($n,Ce){return(0,Mn.Z)("TreeSelect",hi=>{const ki=(0,Wi.TS)(hi,{treePrefixCls:Ce});return[Wr(ki)]},nr.TM)($n)}var Tr=function($n,Ce){var hi={};for(var ki in $n)Object.prototype.hasOwnProperty.call($n,ki)&&Ce.indexOf(ki)<0&&(hi[ki]=$n[ki]);if($n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,ki=Object.getOwnPropertySymbols($n);un<ki.length;un++)Ce.indexOf(ki[un])<0&&Object.prototype.propertyIsEnumerable.call($n,ki[un])&&(hi[ki[un]]=$n[ki[un]]);return hi};const Fr=($n,Ce)=>{var hi,{prefixCls:ki,size:un,disabled:Wn,bordered:li=!0,className:fn,rootClassName:on,treeCheckable:mt,multiple:Pt,listHeight:bt=256,listItemHeight:tt=26,placement:qt,notFoundContent:dn,switcherIcon:xt,treeLine:Ye,getPopupContainer:an,popupClassName:Bt,dropdownClassName:jn,treeIcon:cn=!1,transitionName:Et,choiceTransitionName:xn="",status:Qn,treeExpandAction:Un,builtinPlacements:zt,dropdownMatchSelectWidth:Sn,popupMatchSelectWidth:Ci,allowClear:Si}=$n,vi=Tr($n,["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:ti,getPrefixCls:xi,renderEmpty:Ni,direction:Zi,virtual:cr,popupMatchSelectWidth:Gn,popupOverflow:Ai}=Me.useContext(pe.E_),br=xi(),kr=xi("select",ki),Sr=xi("select-tree",ki),Xt=xi("tree-select",ki),{compactSize:Li,compactItemClassnames:rr}=(0,mi.ri)(kr,Zi),[Hi,Er]=(0,Ut.Z)(kr),[dr]=Hr(Xt,Sr),Nr=Oe()(Bt||jn,`${Xt}-dropdown`,{[`${Xt}-dropdown-rtl`]:Zi==="rtl"},on,Er),Ti=!!(mt||Pt),Qi=(0,rn.Z)(vi.suffixIcon,vi.showArrow),er=(hi=Ci!=null?Ci:Sn)!==null&&hi!==void 0?hi:Gn,{status:kn,hasFeedback:Dr,isFormItemInput:Ln,feedbackIcon:pr}=Me.useContext(nt.aM),Qr=(0,we.F)(kn,Qn),{suffixIcon:vr,removeIcon:Ho,clearIcon:co}=(0,vn.Z)(Object.assign(Object.assign({},vi),{multiple:Ti,showSuffixIcon:Qi,hasFeedback:Dr,feedbackIcon:pr,prefixCls:kr,componentName:"TreeSelect"})),mr=Si===!0?{clearIcon:co}:Si;let hr;dn!==void 0?hr=dn:hr=(Ni==null?void 0:Ni("Select"))||Me.createElement(ze.Z,{componentName:"Select"});const fr=(0,lt.Z)(vi,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Vr=Me.useMemo(()=>qt!==void 0?qt:Zi==="rtl"?"bottomRight":"bottomLeft",[qt,Zi]),Ii=(0,En.Z)(zt,Ai),Qe=(0,Le.Z)(Wt=>{var Nn;return(Nn=un!=null?un:Li)!==null&&Nn!==void 0?Nn:Wt}),pt=Me.useContext(De.Z),It=Wn!=null?Wn:pt,sn=Oe()(!ki&&Xt,{[`${kr}-lg`]:Qe==="large",[`${kr}-sm`]:Qe==="small",[`${kr}-rtl`]:Zi==="rtl",[`${kr}-borderless`]:!li,[`${kr}-in-form-item`]:Ln},(0,we.Z)(kr,Qr,Dr),rr,fn,on,Er),Hn=Wt=>Me.createElement(wi.Z,{prefixCls:Sr,switcherIcon:xt,treeNodeProps:Wt,showLine:Ye}),On=Me.createElement(At,Object.assign({virtual:cr,disabled:It},fr,{dropdownMatchSelectWidth:er,builtinPlacements:Ii,ref:Ce,prefixCls:kr,className:sn,listHeight:bt,listItemHeight:tt,treeCheckable:mt&&Me.createElement("span",{className:`${kr}-tree-checkbox-inner`}),treeLine:!!Ye,suffixIcon:vr,multiple:Ti,placement:Vr,removeIcon:Ho,allowClear:mr,switcherIcon:Hn,showTreeIcon:cn,notFoundContent:hr,getPopupContainer:an||ti,treeMotion:null,dropdownClassName:Nr,choiceTransitionName:(0,Be.m)(br,"",xn),transitionName:(0,Be.m)(br,"slide-up",Et),treeExpandAction:Un}));return Hi(dr(On))},Kr=Me.forwardRef(Fr),ar=(0,Ge.Z)(Kr);Kr.TreeNode=Fe,Kr.SHOW_ALL=Kn,Kr.SHOW_PARENT=yt,Kr.SHOW_CHILD=Jn,Kr._InternalPanelDoNotUseOrYouWillBeFired=ar;var Co=Kr},86914:function(Rn,Fn,ye){"use strict";ye.d(Fn,{default:function(){return dt}});var Se=ye(99581),Oe=ye(26390),He=ye(43971),Rt=ye(58358),_e=ye(5891),vt=ye(59301),ke={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=ke,Lt=ye(88853),et=function(Mt,Pn){return vt.createElement(Lt.Z,(0,_e.Z)({},Mt,{ref:Pn,icon:Tt}))},gt=vt.forwardRef(et),ct=gt,wt=ye(92310),Me=ye.n(wt),te=ye(35654),ne=ye(71430),ce=ye(36355),se=ye(44757),ge=ye(62892),ve=ye(20648);const be=4;function Fe(Re){const{dropPosition:Mt,dropLevelOffset:Pn,prefixCls:mn,indent:kt,direction:_t="ltr"}=Re,ln=_t==="ltr"?"left":"right",Bn=_t==="ltr"?"right":"left",wn={[ln]:-Pn*kt+be,[Bn]:0};switch(Mt){case-1:wn.top=-3;break;case 1:wn.bottom=-3;break;default:wn.bottom=-3,wn[ln]=kt+be;break}return vt.createElement("div",{style:wn,className:`${mn}-drop-indicator`})}var Pe=ye(48610),We=vt.forwardRef((Re,Mt)=>{const{getPrefixCls:Pn,direction:mn,virtual:kt,tree:_t}=vt.useContext(ce.E_),{prefixCls:ln,className:Bn,showIcon:wn=!1,showLine:Kn,switcherIcon:yt,blockNode:Jn=!1,children:bn,checkable:ci=!1,selectable:Tn=!0,draggable:tn,motion:$t,style:ft}=Re,Je=Pn("tree",ln),Gt=Pn(),At=$t!=null?$t:Object.assign(Object.assign({},(0,ge.Z)(Gt)),{motionAppear:!1}),lt=Object.assign(Object.assign({},Re),{checkable:ci,selectable:Tn,showIcon:wn,motion:At,blockNode:Jn,showLine:!!Kn,dropIndicatorRender:Fe}),[Ge,Be]=(0,ve.ZP)(Je),we=vt.useMemo(()=>{if(!tn)return!1;let De={};switch(typeof tn){case"function":De.nodeDraggable=tn;break;case"object":De=Object.assign({},tn);break;default:break}return De.icon!==!1&&(De.icon=De.icon||vt.createElement(se.Z,null)),De},[tn]),pe=De=>vt.createElement(Pe.Z,{prefixCls:Je,switcherIcon:yt,treeNodeProps:De,showLine:Kn});return Ge(vt.createElement(Se.Z,Object.assign({itemHeight:20,ref:Mt,virtual:kt},lt,{style:Object.assign(Object.assign({},_t==null?void 0:_t.style),ft),prefixCls:Je,className:Me()({[`${Je}-icon-hide`]:!wn,[`${Je}-block-node`]:Jn,[`${Je}-unselectable`]:!Tn,[`${Je}-rtl`]:mn==="rtl"},_t==null?void 0:_t.className,Bn,Be),direction:mn,checkable:ci&&vt.createElement("span",{className:`${Je}-checkbox-inner`}),selectable:Tn,switcherIcon:pe,draggable:we}),bn))}),Ke;(function(Re){Re[Re.None=0]="None",Re[Re.Start=1]="Start",Re[Re.End=2]="End"})(Ke||(Ke={}));function Xe(Re,Mt){function Pn(mn){const{key:kt,children:_t}=mn;Mt(kt,mn)!==!1&&Xe(_t||[],Mt)}Re.forEach(Pn)}function ht(Re){let{treeData:Mt,expandedKeys:Pn,startKey:mn,endKey:kt}=Re;const _t=[];let ln=Ke.None;if(mn&&mn===kt)return[mn];if(!mn||!kt)return[];function Bn(wn){return wn===mn||wn===kt}return Xe(Mt,wn=>{if(ln===Ke.End)return!1;if(Bn(wn)){if(_t.push(wn),ln===Ke.None)ln=Ke.Start;else if(ln===Ke.Start)return ln=Ke.End,!1}else ln===Ke.Start&&_t.push(wn);return Pn.includes(wn)}),_t}function Ve(Re,Mt){const Pn=(0,Oe.Z)(Mt),mn=[];return Xe(Re,(kt,_t)=>{const ln=Pn.indexOf(kt);return ln!==-1&&(mn.push(_t),Pn.splice(ln,1)),!!Pn.length}),mn}var Nt=function(Re,Mt){var Pn={};for(var mn in Re)Object.prototype.hasOwnProperty.call(Re,mn)&&Mt.indexOf(mn)<0&&(Pn[mn]=Re[mn]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,mn=Object.getOwnPropertySymbols(Re);kt<mn.length;kt++)Mt.indexOf(mn[kt])<0&&Object.prototype.propertyIsEnumerable.call(Re,mn[kt])&&(Pn[mn[kt]]=Re[mn[kt]]);return Pn};function qe(Re){const{isLeaf:Mt,expanded:Pn}=Re;return Mt?vt.createElement(He.Z,null):Pn?vt.createElement(Rt.Z,null):vt.createElement(ct,null)}function Ht(Re){let{treeData:Mt,children:Pn}=Re;return Mt||(0,ne.zn)(Pn)}const Zt=(Re,Mt)=>{var{defaultExpandAll:Pn,defaultExpandParent:mn,defaultExpandedKeys:kt}=Re,_t=Nt(Re,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ln=vt.useRef(),Bn=vt.useRef(),wn=()=>{const{keyEntities:we}=(0,ne.I8)(Ht(_t));let pe;return Pn?pe=Object.keys(we):mn?pe=(0,te.r7)(_t.expandedKeys||kt||[],we):pe=_t.expandedKeys||kt,pe},[Kn,yt]=vt.useState(_t.selectedKeys||_t.defaultSelectedKeys||[]),[Jn,bn]=vt.useState(()=>wn());vt.useEffect(()=>{"selectedKeys"in _t&&yt(_t.selectedKeys)},[_t.selectedKeys]),vt.useEffect(()=>{"expandedKeys"in _t&&bn(_t.expandedKeys)},[_t.expandedKeys]);const ci=(we,pe)=>{var De;return"expandedKeys"in _t||bn(we),(De=_t.onExpand)===null||De===void 0?void 0:De.call(_t,we,pe)},Tn=(we,pe)=>{var De;const{multiple:ze}=_t,{node:Le,nativeEvent:nt}=pe,{key:Ut=""}=Le,En=Ht(_t),rn=Object.assign(Object.assign({},pe),{selected:!0}),vn=(nt==null?void 0:nt.ctrlKey)||(nt==null?void 0:nt.metaKey),mi=nt==null?void 0:nt.shiftKey;let wi;ze&&vn?(wi=we,ln.current=Ut,Bn.current=wi,rn.selectedNodes=Ve(En,wi)):ze&&mi?(wi=Array.from(new Set([].concat((0,Oe.Z)(Bn.current||[]),(0,Oe.Z)(ht({treeData:En,expandedKeys:Jn,startKey:Ut,endKey:ln.current}))))),rn.selectedNodes=Ve(En,wi)):(wi=[Ut],ln.current=Ut,Bn.current=wi,rn.selectedNodes=Ve(En,wi)),(De=_t.onSelect)===null||De===void 0||De.call(_t,wi,rn),"selectedKeys"in _t||yt(wi)},{getPrefixCls:tn,direction:$t}=vt.useContext(ce.E_),{prefixCls:ft,className:Je,showIcon:Gt=!0,expandAction:At="click"}=_t,lt=Nt(_t,["prefixCls","className","showIcon","expandAction"]),Ge=tn("tree",ft),Be=Me()(`${Ge}-directory`,{[`${Ge}-directory-rtl`]:$t==="rtl"},Je);return vt.createElement(We,Object.assign({icon:qe,ref:Mt,blockNode:!0},lt,{showIcon:Gt,expandAction:At,prefixCls:Ge,className:Be,expandedKeys:Jn,selectedKeys:Kn,onSelect:Tn,onExpand:ci}))};var Ot=vt.forwardRef(Zt);const Qt=We;Qt.DirectoryTree=Ot,Qt.TreeNode=Se.O;var dt=Qt},20648:function(Rn,Fn,ye){"use strict";ye.d(Fn,{TM:function(){return wt},Yk:function(){return ct}});var Se=ye(9792),Oe=ye(98447),He=ye(17313),Rt=ye(8378),_e=ye(37613),vt=ye(83116);const ke=new Se.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}`}}}),Lt=(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:ve,nodeHoverBg:be}=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:ke,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:be},[`&${ne}-node-selected`]:{backgroundColor:ve},[`${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"},Lt(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`}}}}})}},gt=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"}}}}}},ct=(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),gt(ge)]},wt=Me=>{const{controlHeightSM:te}=Me;return{titleHeight:te,nodeHoverBg:Me.controlItemBgHover,nodeSelectedBg:Me.controlItemBgActive}};Fn.ZP=(0,vt.Z)("Tree",(Me,te)=>{let{prefixCls:ne}=te;return[{[Me.componentCls]:(0,Oe.C2)(`${ne}-checkbox`,Me)},ct(ne,Me),(0,Rt.Z)(Me)]},Me=>{const{colorTextLightSolid:te,colorPrimary:ne}=Me;return Object.assign(Object.assign({},wt(Me)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:ne})})},48610:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ce}});var Se=ye(5891),Oe=ye(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=ye(88853),vt=function(ge,ve){return Oe.createElement(_e.Z,(0,Se.Z)({},ge,{ref:ve,icon:Rt}))},ke=Oe.forwardRef(vt),Tt=ke,Lt=ye(43971),et=ye(50023),gt=ye(77042),ct=ye(5527),wt=ye(92310),Me=ye.n(wt),te=ye(92343),ce=se=>{const{prefixCls:ge,switcherIcon:ve,treeNodeProps:be,showLine:Fe}=se,{isLeaf:Pe,expanded:Ie,loading:We}=be;if(We)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 Ve=typeof Ke=="function"?Ke(be):Ke,Nt=`${ge}-switcher-line-custom-icon`;return(0,te.l$)(Ve)?(0,te.Tm)(Ve,{className:Me()(Ve.props.className||"",Nt)}):Ve}return Ke?Oe.createElement(Lt.Z,{className:`${ge}-switcher-line-icon`}):Oe.createElement("span",{className:`${ge}-switcher-leaf-line`})}const Xe=`${ge}-switcher-icon`,ht=typeof ve=="function"?ve(be):ve;return(0,te.l$)(ht)?(0,te.Tm)(ht,{className:Me()(ht.props.className||"",Xe)}):ht!==void 0?ht:Fe?Ie?Oe.createElement(gt.Z,{className:`${ge}-switcher-line-icon`}):Oe.createElement(ct.Z,{className:`${ge}-switcher-line-icon`}):Oe.createElement(Tt,{className:Xe})}},99498:function(Rn,Fn,ye){(function(Se){Se(ye(89780))})(function(Se){Se.defineOption("placeholder","",function(Tt,Lt,et){var gt=et&&et!=Se.Init;if(Lt&&!gt)Tt.on("blur",_e),Tt.on("change",vt),Tt.on("swapDoc",vt),Se.on(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose=function(){Rt(Tt)}),vt(Tt);else if(!Lt&>){Tt.off("blur",_e),Tt.off("change",vt),Tt.off("swapDoc",vt),Se.off(Tt.getInputField(),"compositionupdate",Tt.state.placeholderCompose),Oe(Tt);var ct=Tt.getWrapperElement();ct.className=ct.className.replace(" CodeMirror-empty","")}Lt&&!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 Lt=Tt.state.placeholder=document.createElement("pre");Lt.style.cssText="height: 0; overflow: visible",Lt.style.direction=Tt.getOption("direction"),Lt.className="CodeMirror-placeholder CodeMirror-line-like";var et=Tt.getOption("placeholder");typeof et=="string"&&(et=document.createTextNode(et)),Lt.appendChild(et),Tt.display.lineSpace.insertBefore(Lt,Tt.display.lineSpace.firstChild)}function Rt(Tt){setTimeout(function(){var Lt=!1,et=Tt.getInputField();et.nodeName=="TEXTAREA"?Lt=!et.value:Tt.lineCount()==1&&(Lt=!/[^\u200b]/.test(et.querySelector(".CodeMirror-line").textContent)),Lt?He(Tt):Oe(Tt)},20)}function _e(Tt){ke(Tt)&&He(Tt)}function vt(Tt){var Lt=Tt.getWrapperElement(),et=ke(Tt);Lt.className=Lt.className.replace(" CodeMirror-empty","")+(et?" CodeMirror-empty":""),et?He(Tt):Oe(Tt)}function ke(Tt){return Tt.lineCount()===1&&Tt.getLine(0)===""}})},25717:function(Rn,Fn,ye){(function(Se){Se(ye(89780))})(function(Se){var Oe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},He=Se.Pos;Se.defineOption("autoCloseBrackets",!1,function(te,ne,ce){ce&&ce!=Se.Init&&(te.removeKeyMap(_e),te.state.closeBrackets=null),ne&&(vt(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:Lt,Enter:et};function vt(te){for(var ne=0;ne<te.length;ne++){var ce=te.charAt(ne),se="'"+ce+"'";_e[se]||(_e[se]=ke(ce))}}vt(Oe.pairs+"`");function ke(te){return function(ne){return ct(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 Lt(te){var ne=Tt(te);if(!ne||te.getOption("disableInput"))return Se.Pass;for(var ce=Rt(ne,"pairs"),se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return Se.Pass;var ve=wt(te,se[ge].head);if(!ve||ce.indexOf(ve)%2!=0)return Se.Pass}for(var ge=se.length-1;ge>=0;ge--){var be=se[ge].head;te.replaceRange("",He(be.line,be.ch-1),He(be.line,be.ch+1),"+delete")}}function et(te){var ne=Tt(te),ce=ne&&Rt(ne,"explode");if(!ce||te.getOption("disableInput"))return Se.Pass;for(var se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return Se.Pass;var ve=wt(te,se[ge].head);if(!ve||ce.indexOf(ve)%2!=0)return Se.Pass}te.operation(function(){var be=te.lineSeparator()||`
|
|
|
`;te.replaceSelection(be+be,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 gt(te){var ne=Se.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 ct(te,ne){var ce=Tt(te);if(!ce||te.getOption("disableInput"))return Se.Pass;var se=Rt(ce,"pairs"),ge=se.indexOf(ne);if(ge==-1)return Se.Pass;for(var ve=Rt(ce,"closeBefore"),be=Rt(ce,"triples"),Fe=se.charAt(ge+1)==ne,Pe=te.listSelections(),Ie=ge%2==0,We,Ke=0;Ke<Pe.length;Ke++){var Xe=Pe[Ke],ht=Xe.head,Ve,Nt=te.getRange(ht,He(ht.line,ht.ch+1));if(Ie&&!Xe.empty())Ve="surround";else if((Fe||!Ie)&&Nt==ne)Fe&&Me(te,ht)?Ve="both":be.indexOf(ne)>=0&&te.getRange(ht,He(ht.line,ht.ch+3))==ne+ne+ne?Ve="skipThree":Ve="skip";else if(Fe&&ht.ch>1&&be.indexOf(ne)>=0&&te.getRange(He(ht.line,ht.ch-2),ht)==ne+ne){if(ht.ch>2&&/\bstring/.test(te.getTokenTypeAt(He(ht.line,ht.ch-2))))return Se.Pass;Ve="addFour"}else if(Fe){var qe=ht.ch==0?" ":te.getRange(He(ht.line,ht.ch-1),ht);if(!Se.isWordChar(Nt)&&qe!=ne&&!Se.isWordChar(qe))Ve="both";else return Se.Pass}else if(Ie&&(Nt.length===0||/\s/.test(Nt)||ve.indexOf(Nt)>-1))Ve="both";else return Se.Pass;if(!We)We=Ve;else if(We!=Ve)return Se.Pass}var Ht=ge%2?se.charAt(ge-1):ne,Zt=ge%2?ne:se.charAt(ge+1);te.operation(function(){if(We=="skip")te.execCommand("goCharRight");else if(We=="skipThree")for(var Yt=0;Yt<3;Yt++)te.execCommand("goCharRight");else if(We=="surround"){for(var Ot=te.getSelections(),Yt=0;Yt<Ot.length;Yt++)Ot[Yt]=Ht+Ot[Yt]+Zt;te.replaceSelections(Ot,"around"),Ot=te.listSelections().slice();for(var Yt=0;Yt<Ot.length;Yt++)Ot[Yt]=gt(Ot[Yt]);te.setSelections(Ot)}else We=="both"?(te.replaceSelection(Ht+Zt,null),te.triggerElectric(Ht+Zt),te.execCommand("goCharLeft")):We=="addFour"&&(te.replaceSelection(Ht+Ht+Ht+Ht,"before"),te.execCommand("goCharRight"))})}function wt(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,Fn,ye){(function(Se){Se(ye(89780),ye(32855))})(function(Se){Se.defineOption("autoCloseTags",!1,function(Lt,et,gt){if(gt!=Se.Init&>&&Lt.removeKeyMap("autoCloseTags"),!!et){var ct={name:"autoCloseTags"};(typeof et!="object"||et.whenClosing!==!1)&&(ct["'/'"]=function(wt){return vt(wt)}),(typeof et!="object"||et.whenOpening!==!1)&&(ct["'>'"]=function(wt){return Rt(wt)}),Lt.addKeyMap(ct)}});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(Lt){if(Lt.getOption("disableInput"))return Se.Pass;for(var et=Lt.listSelections(),gt=[],ct=Lt.getOption("autoCloseTags"),wt=0;wt<et.length;wt++){if(!et[wt].empty())return Se.Pass;var Me=et[wt].head,te=Lt.getTokenAt(Me),ne=Se.innerMode(Lt.getMode(),te.state),ce=ne.state,se=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(ce),ge=se&&se.name;if(!ge)return Se.Pass;var ve=ne.mode.configuration=="html",be=typeof ct=="object"&&ct.dontCloseTags||ve&&Oe,Fe=typeof ct=="object"&&ct.indentTags||ve&&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||be&&ke(be,Pe)>-1||Tt(Lt,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(ce)||[],ge,Me,!0))return Se.Pass;var Ie=typeof ct=="object"&&ct.emptyTags;if(Ie&&ke(Ie,ge)>-1){gt[wt]={text:"/>",newPos:Se.Pos(Me.line,Me.ch+2)};continue}var We=Fe&&ke(Fe,Pe)>-1;gt[wt]={indent:We,text:">"+(We?`
|
|
|
|
|
|
`:"")+"</"+ge+">",newPos:We?Se.Pos(Me.line+1,0):Se.Pos(Me.line,Me.ch+1)}}for(var Ke=typeof ct=="object"&&ct.dontIndentOnAutoClose,wt=et.length-1;wt>=0;wt--){var Xe=gt[wt];Lt.replaceRange(Xe.text,et[wt].head,et[wt].anchor,"+insert");var ht=Lt.listSelections().slice(0);ht[wt]={head:Xe.newPos,anchor:Xe.newPos},Lt.setSelections(ht),!Ke&&Xe.indent&&(Lt.indentLine(Xe.newPos.line,null,!0),Lt.indentLine(Xe.newPos.line+1,null,!0))}}function _e(Lt,et){for(var gt=Lt.listSelections(),ct=[],wt=et?"/":"</",Me=Lt.getOption("autoCloseTags"),te=typeof Me=="object"&&Me.dontIndentOnSlash,ne=0;ne<gt.length;ne++){if(!gt[ne].empty())return Se.Pass;var ce=gt[ne].head,se=Lt.getTokenAt(ce),ge=Se.innerMode(Lt.getMode(),se.state),ve=ge.state;if(et&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=ce.ch-1))return Se.Pass;var be,Fe=ge.mode.name!="xml"&&Lt.getMode().name=="htmlmixed";if(Fe&&ge.mode.name=="javascript")be=wt+"script";else if(Fe&&ge.mode.name=="css")be=wt+"style";else{var Pe=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(ve);if(!Pe||Pe.length&&Tt(Lt,Pe,Pe[Pe.length-1],ce))return Se.Pass;be=wt+Pe[Pe.length-1]}Lt.getLine(ce.line).charAt(se.end)!=">"&&(be+=">"),ct[ne]=be}if(Lt.replaceSelections(ct),gt=Lt.listSelections(),!te)for(var ne=0;ne<gt.length;ne++)(ne==gt.length-1||gt[ne].head.line<gt[ne+1].head.line)&&Lt.indentLine(gt[ne].head.line)}function vt(Lt){return Lt.getOption("disableInput")?Se.Pass:_e(Lt,!0)}Se.commands.closeTag=function(Lt){return _e(Lt)};function ke(Lt,et){if(Lt.indexOf)return Lt.indexOf(et);for(var gt=0,ct=Lt.length;gt<ct;++gt)if(Lt[gt]==et)return gt;return-1}function Tt(Lt,et,gt,ct,wt){if(!Se.scanForClosingTag)return!1;var Me=Math.min(Lt.lastLine()+1,ct.line+500),te=Se.scanForClosingTag(Lt,ct,null,Me);if(!te||te.tag!=gt)return!1;for(var ne=wt?1:0,ce=et.length-1;ce>=0&&et[ce]==gt;ce--)++ne;ct=te.to;for(var ce=1;ce<ne;ce++){var se=Se.scanForClosingTag(Lt,ct,null,Me);if(!se||se.tag!=gt)return!1;ct=se.to}return!0}})},32855:function(Rn,Fn,ye){(function(Se){Se(ye(89780))})(function(Se){"use strict";var Oe=Se.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",vt=new RegExp("<(/?)(["+Rt+"]["+_e+"]*)","g");function ke(ce,se,ge,ve){this.line=se,this.ch=ge,this.cm=ce,this.text=ce.getLine(se),this.min=ve?Math.max(ve.from,ce.firstLine()):ce.firstLine(),this.max=ve?Math.min(ve.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 Lt(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 gt(ce){for(;;){var se=ce.text.indexOf(">",ce.ch);if(se==-1){if(Lt(ce))continue;return}if(!Tt(ce,se+1)){ce.ch=se+1;continue}var ge=ce.text.lastIndexOf("/",se),ve=ge>-1&&!/\S/.test(ce.text.slice(ge+1,se));return ce.ch=se+1,ve?"selfClose":"regular"}}function ct(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}vt.lastIndex=se,ce.ch=se;var ge=vt.exec(ce.text);if(ge&&ge.index==se)return ge}}function wt(ce){for(;;){vt.lastIndex=ce.ch;var se=vt.exec(ce.text);if(!se){if(Lt(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),ve=ge>-1&&!/\S/.test(ce.text.slice(ge+1,se));return ce.ch=se+1,ve?"selfClose":"regular"}}function te(ce,se){for(var ge=[];;){var ve=wt(ce),be,Fe=ce.line,Pe=ce.ch-(ve?ve[0].length:0);if(!ve||!(be=gt(ce)))return;if(be!="selfClose")if(ve[1]){for(var Ie=ge.length-1;Ie>=0;--Ie)if(ge[Ie]==ve[2]){ge.length=Ie;break}if(Ie<0&&(!se||se==ve[2]))return{tag:ve[2],from:Oe(Fe,Pe),to:Oe(ce.line,ce.ch)}}else ge.push(ve[2])}}function ne(ce,se){for(var ge=[];;){var ve=Me(ce);if(!ve)return;if(ve=="selfClose"){ct(ce);continue}var be=ce.line,Fe=ce.ch,Pe=ct(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(be,Fe)}}}}Se.registerHelper("fold","xml",function(ce,se){for(var ge=new ke(ce,se.line,0);;){var ve=wt(ge);if(!ve||ge.line!=se.line)return;var be=gt(ge);if(!be)return;if(!ve[1]&&be!="selfClose"){var Fe=Oe(ge.line,ge.ch),Pe=te(ge,ve[2]);return Pe&&He(Pe.from,Fe)>0?{from:Fe,to:Pe.from}:null}}}),Se.findMatchingTag=function(ce,se,ge){var ve=new ke(ce,se.line,se.ch,ge);if(!(ve.text.indexOf(">")==-1&&ve.text.indexOf("<")==-1)){var be=gt(ve),Fe=be&&Oe(ve.line,ve.ch),Pe=be&&ct(ve);if(!(!be||!Pe||He(ve,se)>0)){var Ie={from:Oe(ve.line,ve.ch),to:Fe,tag:Pe[2]};return be=="selfClose"?{open:Ie,close:null,at:"open"}:Pe[1]?{open:ne(ve,Pe[2]),close:Ie,at:"close"}:(ve=new ke(ce,Fe.line,Fe.ch,ge),{open:Ie,close:te(ve,Pe[2]),at:"open"})}}},Se.findEnclosingTag=function(ce,se,ge,ve){for(var be=new ke(ce,se.line,se.ch,ge);;){var Fe=ne(be,ve);if(!Fe)break;var Pe=new ke(ce,se.line,se.ch,ge),Ie=te(Pe,Fe.tag);if(Ie)return{open:Fe,close:Ie}}},Se.scanForClosingTag=function(ce,se,ge,ve){var be=new ke(ce,se.line,se.ch,ve?{from:0,to:ve}:null);return te(be,ge)}})},89780:function(Rn){(function(Fn,ye){Rn.exports=ye()})(this,function(){"use strict";var Fn=navigator.userAgent,ye=navigator.platform,Se=/gecko\/\d/i.test(Fn),Oe=/MSIE \d/.test(Fn),He=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Fn),Rt=/Edge\/(\d+)/.exec(Fn),_e=Oe||He||Rt,vt=_e&&(Oe?document.documentMode||6:+(Rt||He)[1]),ke=!Rt&&/WebKit\//.test(Fn),Tt=ke&&/Qt\/\d+\.\d+/.test(Fn),Lt=!Rt&&/Chrome\//.test(Fn),et=/Opera\//.test(Fn),gt=/Apple Computer/.test(navigator.vendor),ct=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Fn),wt=/PhantomJS/.test(Fn),Me=!Rt&&/AppleWebKit/.test(Fn)&&/Mobile\/\w+/.test(Fn),te=/Android/.test(Fn),ne=Me||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Fn),ce=Me||/Mac/.test(ye),se=/\bCrOS\b/.test(Fn),ge=/win/i.test(ye),ve=et&&Fn.match(/Version\/(\d*\.\d*)/);ve&&(ve=Number(ve[1])),ve&&ve>=15&&(et=!1,ke=!0);var be=ce&&(Tt||et&&(ve==null||ve<12.11)),Fe=Se||_e&&vt>=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 me=he.slice(de.index+de[0].length);ie.className=he.slice(0,de.index)+(me?de[1]+me:"")}};function We(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function Ke(ie,ae){return We(ie).appendChild(ae)}function Xe(ie,ae,he,de){var me=document.createElement(ie);if(he&&(me.className=he),de&&(me.style.cssText=de),typeof ae=="string")me.appendChild(document.createTextNode(ae));else if(ae)for(var Ne=0;Ne<ae.length;++Ne)me.appendChild(ae[Ne]);return me}function ht(ie,ae,he,de){var me=Xe(ie,ae,he,de);return me.setAttribute("role","presentation"),me}var Ve;document.createRange?Ve=function(ie,ae,he,de){var me=document.createRange();return me.setEnd(de||ie,he),me.setStart(ie,ae),me}:Ve=function(ie,ae,he){var de=document.body.createTextRange();try{de.moveToElementText(ie.parentNode)}catch(me){return de}return de.collapse(!0),de.moveEnd("character",he),de.moveStart("character",ae),de};function Nt(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 qe(){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 Ht(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 Yt=function(ie){ie.select()};Me?Yt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:_e&&(Yt=function(ie){try{ie.select()}catch(ae){}});function Ot(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function Qt(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 dt(ie,ae,he,de,me){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Ne=de||0,Ze=me||0;;){var at=ie.indexOf(" ",Ne);if(at<0||at>=ae)return Ze+(ae-Ne);Ze+=at-Ne,Ze+=he-Ze%he,Ne=at+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=Ot(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 Mt(ie,ae){for(var he=0;he<ie.length;++he)if(ie[he]==ae)return he;return-1}var Pn=50,mn={toString:function(){return"CodeMirror.Pass"}},kt={scroll:!1},_t={origin:"*mouse"},ln={origin:"+move"};function Bn(ie,ae,he){for(var de=0,me=0;;){var Ne=ie.indexOf(" ",de);Ne==-1&&(Ne=ie.length);var Ze=Ne-de;if(Ne==ie.length||me+Ze>=ae)return de+Math.min(Ze,ae-me);if(me+=Ne-de,me+=he-me%he,de=Ne+1,me>=ae)return de}}var wn=[""];function Kn(ie){for(;wn.length<=ie;)wn.push(yt(wn)+" ");return wn[ie]}function yt(ie){return ie[ie.length-1]}function Jn(ie,ae){for(var he=[],de=0;de<ie.length;de++)he[de]=ae(ie[de],de);return he}function bn(ie,ae,he){for(var de=0,me=he(ae);de<ie.length&&he(ie[de])<=me;)de++;ie.splice(de,0,ae)}function ci(){}function Tn(ie,ae){var he;return Object.create?he=Object.create(ie):(ci.prototype=ie,he=new ci),ae&&Qt(ae,he),he}var tn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $t(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||tn.test(ie))}function ft(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&$t(ie)?!0:ae.test(ie):$t(ie)}function Je(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var Gt=/[\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&&Gt.test(ie)}function lt(ie,ae,he){for(;(he<0?ae>0:ae<ie.length)&&At(ie.charAt(ae));)ae+=he;return ae}function Ge(ie,ae,he){for(var de=ae>he?-1:1;;){if(ae==he)return ae;var me=(ae+he)/2,Ne=de<0?Math.ceil(me):Math.floor(me);if(Ne==ae)return ie(Ne)?ae:he;ie(Ne)?he=Ne:ae=Ne+de}}function Be(ie,ae,he,de){if(!ie)return de(ae,he,"ltr",0);for(var me=!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),me=!0)}me||de(ae,he,"ltr")}var we=null;function pe(ie,ae,he){var de;we=null;for(var me=0;me<ie.length;++me){var Ne=ie[me];if(Ne.from<ae&&Ne.to>ae)return me;Ne.to==ae&&(Ne.from!=Ne.to&&he=="before"?de=me:we=me),Ne.from==ae&&(Ne.from!=Ne.to&&he!="before"?de=me:we=me)}return de!=null?de:we}var De=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]/,me=/[stwN]/,Ne=/[LRr]/,Ze=/[Lb1n]/,at=/[1n]/;function rt(Dt,Dn,Vt){this.level=Dt,this.from=Dn,this.to=Vt}return function(Dt,Dn){var Vt=Dn=="ltr"?"L":"R";if(Dt.length==0||Dn=="ltr"&&!de.test(Dt))return!1;for(var ri=Dt.length,ei=[],tr=0;tr<ri;++tr)ei.push(he(Dt.charCodeAt(tr)));for(var or=0,Cr=Vt;or<ri;++or){var Jr=ei[or];Jr=="m"?ei[or]=Cr:Cr=Jr}for(var Eo=0,po=Vt;Eo<ri;++Eo){var jo=ei[Eo];jo=="1"&&po=="r"?ei[Eo]="n":Ne.test(jo)&&(po=jo,jo=="r"&&(ei[Eo]="R"))}for(var ua=1,uo=ei[0];ua<ri-1;++ua){var Ma=ei[ua];Ma=="+"&&uo=="1"&&ei[ua+1]=="1"?ei[ua]="1":Ma==","&&uo==ei[ua+1]&&(uo=="1"||uo=="n")&&(ei[ua]=uo),uo=Ma}for(var $s=0;$s<ri;++$s){var Ul=ei[$s];if(Ul==",")ei[$s]="N";else if(Ul=="%"){var fl=void 0;for(fl=$s+1;fl<ri&&ei[fl]=="%";++fl);for(var qu=$s&&ei[$s-1]=="!"||fl<ri&&ei[fl]=="1"?"1":"N",Tu=$s;Tu<fl;++Tu)ei[Tu]=qu;$s=fl-1}}for(var Zl=0,cc=Vt;Zl<ri;++Zl){var xu=ei[Zl];cc=="L"&&xu=="1"?ei[Zl]="L":Ne.test(xu)&&(cc=xu)}for(var Kl=0;Kl<ri;++Kl)if(me.test(ei[Kl])){var ds=void 0;for(ds=Kl+1;ds<ri&&me.test(ei[ds]);++ds);for(var Pl=(Kl?ei[Kl-1]:Vt)=="L",nu=(ds<ri?ei[ds]:Vt)=="L",wu=Pl==nu?Pl?"L":"R":Vt,id=Kl;id<ds;++id)ei[id]=wu;Kl=ds-1}for(var gl=[],Wc,Fl=0;Fl<ri;)if(Ze.test(ei[Fl])){var $f=Fl;for(++Fl;Fl<ri&&Ze.test(ei[Fl]);++Fl);gl.push(new rt(0,$f,Fl))}else{var Mc=Fl,dc=gl.length,ec=Dn=="rtl"?1:0;for(++Fl;Fl<ri&&ei[Fl]!="L";++Fl);for(var Hs=Mc;Hs<Fl;)if(at.test(ei[Hs])){Mc<Hs&&(gl.splice(dc,0,new rt(1,Mc,Hs)),dc+=ec);var iu=Hs;for(++Hs;Hs<Fl&&at.test(ei[Hs]);++Hs);gl.splice(dc,0,new rt(2,iu,Hs)),dc+=ec,Mc=Hs}else++Hs;Mc<Fl&&gl.splice(dc,0,new rt(1,Mc,Fl))}return Dn=="ltr"&&(gl[0].level==1&&(Wc=Dt.match(/^\s+/))&&(gl[0].from=Wc[0].length,gl.unshift(new rt(0,0,Wc[0].length))),yt(gl).level==1&&(Wc=Dt.match(/\s+$/))&&(yt(gl).to-=Wc[0].length,gl.push(new rt(0,ri-Wc[0].length,ri)))),Dn=="rtl"?gl.reverse():gl}}();function ze(ie,ae){var he=ie.order;return he==null&&(he=ie.order=De(ie.text,ae)),he}var Le=[],nt=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]||Le).concat(he)}};function Ut(ie,ae){return ie._handlers&&ie._handlers[ae]||Le}function En(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,me=de&&de[ae];if(me){var Ne=Mt(me,he);Ne>-1&&(de[ae]=me.slice(0,Ne).concat(me.slice(Ne+1)))}}}function rn(ie,ae){var he=Ut(ie,ae);if(he.length)for(var de=Array.prototype.slice.call(arguments,2),me=0;me<he.length;++me)he[me].apply(null,de)}function vn(ie,ae,he){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),rn(ie,he||ae.type,ie,ae),nr(ae)||ae.codemirrorIgnore}function mi(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)Mt(he,ae[de])==-1&&he.push(ae[de])}function wi(ie,ae){return Ut(ie,ae).length>0}function Ri(ie){ie.prototype.on=function(ae,he){nt(this,ae,he)},ie.prototype.off=function(ae,he){En(this,ae,he)}}function Wi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Mn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function nr(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Wr(ie){Wi(ie),Mn(ie)}function Hr(ie){return ie.target||ie.srcElement}function Tr(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 Fr=function(){if(_e&&vt<9)return!1;var ie=Xe("div");return"draggable"in ie||"dragDrop"in ie}(),Yr;function Kr(ie){if(Yr==null){var ae=Xe("span","\u200B");Ke(ie,Xe("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Yr=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(_e&&vt<8))}var he=Yr?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return he.setAttribute("cm-text",""),he}var ar;function Co(ie){if(ar!=null)return ar;var ae=Ke(ie,document.createTextNode("A\u062EA")),he=Ve(ae,0,1).getBoundingClientRect(),de=Ve(ae,1,2).getBoundingClientRect();return We(ie),!he||he.left==he.right?!1:ar=de.right-he.right<3}var $n=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,he=[],de=ie.length;ae<=de;){var me=ie.indexOf(`
|
|
|
`,ae);me==-1&&(me=ie.length);var Ne=ie.slice(ae,ie.charAt(me-1)=="\r"?me-1:me),Ze=Ne.indexOf("\r");Ze!=-1?(he.push(Ne.slice(0,Ze)),ae+=Ze+1):(he.push(Ne),ae=me+1)}return he}:function(ie){return ie.split(/\r\n?|\n/)},Ce=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},hi=function(){var ie=Xe("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),ki=null;function un(ie){if(ki!=null)return ki;var ae=Ke(ie,Xe("span","x")),he=ae.getBoundingClientRect(),de=Ve(ae,0,1).getBoundingClientRect();return ki=Math.abs(he.left-de.left)>1}var Wn={},li={};function fn(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),Wn[ie]=ae}function on(ie,ae){li[ie]=ae}function mt(ie){if(typeof ie=="string"&&li.hasOwnProperty(ie))ie=li[ie];else if(ie&&typeof ie.name=="string"&&li.hasOwnProperty(ie.name)){var ae=li[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Tn(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return mt("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return mt("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function Pt(ie,ae){ae=mt(ae);var he=Wn[ae.name];if(!he)return Pt(ie,"text/plain");var de=he(ie,ae);if(bt.hasOwnProperty(ae.name)){var me=bt[ae.name];for(var Ne in me)me.hasOwnProperty(Ne)&&(de.hasOwnProperty(Ne)&&(de["_"+Ne]=de[Ne]),de[Ne]=me[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 bt={};function tt(ie,ae){var he=bt.hasOwnProperty(ie)?bt[ie]:bt[ie]={};Qt(ae,he)}function qt(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var he={};for(var de in ae){var me=ae[de];me instanceof Array&&(me=me.concat([])),he[de]=me}return he}function dn(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 xt(ie,ae,he){return ie.startState?ie.startState(ae,he):!0}var Ye=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};Ye.prototype.eol=function(){return this.pos>=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ye.prototype.eat=function(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},Ye.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},Ye.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},Ye.prototype.backUp=function(ie){this.pos-=ie},Ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=dt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?dt(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return dt(this.string,null,this.tabSize)-(this.lineStart?dt(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.match=function(ie,ae,he){if(typeof ie=="string"){var de=function(Ze){return he?Ze.toLowerCase():Ze},me=this.string.substr(this.pos,ie.length);if(de(me)==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)}},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},Ye.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},Ye.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function an(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 me=he.children[de],Ne=me.chunkSize();if(ae<Ne){he=me;break}ae-=Ne}return he.lines[ae]}function Bt(ie,ae,he){var de=[],me=ae.line;return ie.iter(ae.line,he.line+1,function(Ne){var Ze=Ne.text;me==he.line&&(Ze=Ze.slice(0,he.ch)),me==ae.line&&(Ze=Ze.slice(ae.ch)),de.push(Ze),++me}),de}function jn(ie,ae,he){var de=[];return ie.iter(ae,he,function(me){de.push(me.text)}),de}function cn(ie,ae){var he=ae-ie.height;if(he)for(var de=ie;de;de=de.parent)de.height+=he}function Et(ie){if(ie.parent==null)return null;for(var ae=ie.parent,he=Mt(ae.lines,ie),de=ae.parent;de;ae=de,de=de.parent)for(var me=0;de.children[me]!=ae;++me)he+=de.children[me].chunkSize();return he+ae.first}function xn(ie,ae){var he=ie.first;e:do{for(var de=0;de<ie.children.length;++de){var me=ie.children[de],Ne=me.height;if(ae<Ne){ie=me;continue e}ae-=Ne,he+=me.chunkSize()}return he}while(!ie.lines);for(var Ze=0;Ze<ie.lines.length;++Ze){var at=ie.lines[Ze],rt=at.height;if(ae<rt)break;ae-=rt}return he+Ze}function Qn(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function Un(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 Sn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function Ci(ie,ae){return ie.sticky==ae.sticky&&Sn(ie,ae)==0}function Si(ie){return zt(ie.line,ie.ch)}function vi(ie,ae){return Sn(ie,ae)<0?ae:ie}function ti(ie,ae){return Sn(ie,ae)<0?ie:ae}function xi(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Ni(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,an(ie,he).text.length):Zi(ae,an(ie,ae.line).text.length)}function Zi(ie,ae){var he=ie.ch;return he==null||he>ae?zt(ie.line,ae):he<0?zt(ie.line,0):ie}function cr(ie,ae){for(var he=[],de=0;de<ae.length;de++)he[de]=Ni(ie,ae[de]);return he}var Gn=function(ie,ae){this.state=ie,this.lookAhead=ae},Ai=function(ie,ae,he,de){this.state=ae,this.doc=ie,this.line=he,this.maxLookAhead=de||0,this.baseTokens=null,this.baseTokenPos=1};Ai.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Ai.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}},Ai.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ai.fromSaved=function(ie,ae,he){return ae instanceof Gn?new Ai(ie,qt(ie.mode,ae.state),he,ae.lookAhead):new Ai(ie,qt(ie.mode,ae),he)},Ai.prototype.save=function(ie){var ae=ie!==!1?qt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Gn(ae,this.maxLookAhead):ae};function br(ie,ae,he,de){var me=[ie.state.modeGen],Ne={};Nr(ie,ae.text,ie.doc.mode,he,function(Dt,Dn){return me.push(Dt,Dn)},Ne,de);for(var Ze=he.state,at=function(Dt){he.baseTokens=me;var Dn=ie.state.overlays[Dt],Vt=1,ri=0;he.state=!0,Nr(ie,ae.text,Dn.mode,he,function(ei,tr){for(var or=Vt;ri<ei;){var Cr=me[Vt];Cr>ei&&me.splice(Vt,1,ei,me[Vt+1],Cr),Vt+=2,ri=Math.min(ei,Cr)}if(tr)if(Dn.opaque)me.splice(or,Vt-or,ei,"overlay "+tr),Vt=or+2;else for(;or<Vt;or+=2){var Jr=me[or+1];me[or+1]=(Jr?Jr+" ":"")+"overlay "+tr}},Ne),he.state=Ze,he.baseTokens=null,he.baseTokenPos=1},rt=0;rt<ie.state.overlays.length;++rt)at(rt);return{styles:me,classes:Ne.bgClass||Ne.textClass?Ne:null}}function kr(ie,ae,he){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var de=Sr(ie,Et(ae)),me=ae.text.length>ie.options.maxHighlightLength&&qt(ie.doc.mode,de.state),Ne=br(ie,ae,de);me&&(de.state=me),ae.stateAfter=de.save(!me),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 Sr(ie,ae,he){var de=ie.doc,me=ie.display;if(!de.mode.startState)return new Ai(de,!0,ae);var Ne=Ti(ie,ae,he),Ze=Ne>de.first&&an(de,Ne-1).stateAfter,at=Ze?Ai.fromSaved(de,Ze,Ne):new Ai(de,xt(de.mode),Ne);return de.iter(Ne,ae,function(rt){Xt(ie,rt.text,at);var Dt=at.line;rt.stateAfter=Dt==ae-1||Dt%5==0||Dt>=me.viewFrom&&Dt<me.viewTo?at.save():null,at.nextLine()}),he&&(de.modeFrontier=at.line),at}function Xt(ie,ae,he,de){var me=ie.doc.mode,Ne=new Ye(ae,ie.options.tabSize,he);for(Ne.start=Ne.pos=de||0,ae==""&&Li(me,he.state);!Ne.eol();)rr(me,Ne,he.state),Ne.start=Ne.pos}function Li(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var he=dn(ie,ae);if(he.mode.blankLine)return he.mode.blankLine(he.state)}}function rr(ie,ae,he,de){for(var me=0;me<10;me++){de&&(de[0]=dn(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 Hi=function(ie,ae,he){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=he};function Er(ie,ae,he,de){var me=ie.doc,Ne=me.mode,Ze;ae=Ni(me,ae);var at=an(me,ae.line),rt=Sr(ie,ae.line,he),Dt=new Ye(at.text,ie.options.tabSize,rt),Dn;for(de&&(Dn=[]);(de||Dt.pos<ae.ch)&&!Dt.eol();)Dt.start=Dt.pos,Ze=rr(Ne,Dt,rt.state),de&&Dn.push(new Hi(Dt,Ze,qt(me.mode,rt.state)));return de?Dn:new Hi(Dt,Ze,rt.state)}function dr(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 Nr(ie,ae,he,de,me,Ne,Ze){var at=he.flattenSpans;at==null&&(at=ie.options.flattenSpans);var rt=0,Dt=null,Dn=new Ye(ae,ie.options.tabSize,de),Vt,ri=ie.options.addModeClass&&[null];for(ae==""&&dr(Li(he,de.state),Ne);!Dn.eol();){if(Dn.pos>ie.options.maxHighlightLength?(at=!1,Ze&&Xt(ie,ae,de,Dn.pos),Dn.pos=ae.length,Vt=null):Vt=dr(rr(he,Dn,de.state,ri),Ne),ri){var ei=ri[0].name;ei&&(Vt="m-"+(Vt?ei+" "+Vt:ei))}if(!at||Dt!=Vt){for(;rt<Dn.start;)rt=Math.min(Dn.start,rt+5e3),me(rt,Dt);Dt=Vt}Dn.start=Dn.pos}for(;rt<Dn.pos;){var tr=Math.min(Dn.pos,rt+5e3);me(tr,Dt),rt=tr}}function Ti(ie,ae,he){for(var de,me,Ne=ie.doc,Ze=he?-1:ae-(ie.doc.mode.innerMode?1e3:100),at=ae;at>Ze;--at){if(at<=Ne.first)return Ne.first;var rt=an(Ne,at-1),Dt=rt.stateAfter;if(Dt&&(!he||at+(Dt instanceof Gn?Dt.lookAhead:0)<=Ne.modeFrontier))return at;var Dn=dt(rt.text,null,ie.options.tabSize);(me==null||de>Dn)&&(me=at-1,de=Dn)}return me}function Qi(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 me=an(ie,de).stateAfter;if(me&&(!(me instanceof Gn)||de+me.lookAhead<ae)){he=de+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,he)}}var er=!1,kn=!1;function Dr(){er=!0}function Ln(){kn=!0}function pr(ie,ae,he){this.marker=ie,this.from=ae,this.to=he}function Qr(ie,ae){if(ie)for(var he=0;he<ie.length;++he){var de=ie[he];if(de.marker==ae)return de}}function vr(ie,ae){for(var he,de=0;de<ie.length;++de)ie[de]!=ae&&(he||(he=[])).push(ie[de]);return he}function Ho(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function co(ie,ae,he){var de;if(ie)for(var me=0;me<ie.length;++me){var Ne=ie[me],Ze=Ne.marker,at=Ne.from==null||(Ze.inclusiveLeft?Ne.from<=ae:Ne.from<ae);if(at||Ne.from==ae&&Ze.type=="bookmark"&&(!he||!Ne.marker.insertLeft)){var rt=Ne.to==null||(Ze.inclusiveRight?Ne.to>=ae:Ne.to>ae);(de||(de=[])).push(new pr(Ze,Ne.from,rt?null:Ne.to))}}return de}function mr(ie,ae,he){var de;if(ie)for(var me=0;me<ie.length;++me){var Ne=ie[me],Ze=Ne.marker,at=Ne.to==null||(Ze.inclusiveRight?Ne.to>=ae:Ne.to>ae);if(at||Ne.from==ae&&Ze.type=="bookmark"&&(!he||Ne.marker.insertLeft)){var rt=Ne.from==null||(Ze.inclusiveLeft?Ne.from<=ae:Ne.from<ae);(de||(de=[])).push(new pr(Ze,rt?null:Ne.from-ae,Ne.to==null?null:Ne.to-ae))}}return de}function hr(ie,ae){if(ae.full)return null;var he=Qn(ie,ae.from.line)&&an(ie,ae.from.line).markedSpans,de=Qn(ie,ae.to.line)&&an(ie,ae.to.line).markedSpans;if(!he&&!de)return null;var me=ae.from.ch,Ne=ae.to.ch,Ze=Sn(ae.from,ae.to)==0,at=co(he,me,Ze),rt=mr(de,Ne,Ze),Dt=ae.text.length==1,Dn=yt(ae.text).length+(Dt?me:0);if(at)for(var Vt=0;Vt<at.length;++Vt){var ri=at[Vt];if(ri.to==null){var ei=Qr(rt,ri.marker);ei?Dt&&(ri.to=ei.to==null?null:ei.to+Dn):ri.to=me}}if(rt)for(var tr=0;tr<rt.length;++tr){var or=rt[tr];if(or.to!=null&&(or.to+=Dn),or.from==null){var Cr=Qr(at,or.marker);Cr||(or.from=Dn,Dt&&(at||(at=[])).push(or))}else or.from+=Dn,Dt&&(at||(at=[])).push(or)}at&&(at=fr(at)),rt&&rt!=at&&(rt=fr(rt));var Jr=[at];if(!Dt){var Eo=ae.text.length-2,po;if(Eo>0&&at)for(var jo=0;jo<at.length;++jo)at[jo].to==null&&(po||(po=[])).push(new pr(at[jo].marker,null,null));for(var ua=0;ua<Eo;++ua)Jr.push(po);Jr.push(rt)}return Jr}function fr(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 Vr(ie,ae,he){var de=null;if(ie.iter(ae.line,he.line+1,function(ei){if(ei.markedSpans)for(var tr=0;tr<ei.markedSpans.length;++tr){var or=ei.markedSpans[tr].marker;or.readOnly&&(!de||Mt(de,or)==-1)&&(de||(de=[])).push(or)}}),!de)return null;for(var me=[{from:ae,to:he}],Ne=0;Ne<de.length;++Ne)for(var Ze=de[Ne],at=Ze.find(0),rt=0;rt<me.length;++rt){var Dt=me[rt];if(!(Sn(Dt.to,at.from)<0||Sn(Dt.from,at.to)>0)){var Dn=[rt,1],Vt=Sn(Dt.from,at.from),ri=Sn(Dt.to,at.to);(Vt<0||!Ze.inclusiveLeft&&!Vt)&&Dn.push({from:Dt.from,to:at.from}),(ri>0||!Ze.inclusiveRight&&!ri)&&Dn.push({from:at.to,to:Dt.to}),me.splice.apply(me,Dn),rt+=Dn.length-3}}return me}function Ii(ie){var ae=ie.markedSpans;if(ae){for(var he=0;he<ae.length;++he)ae[he].marker.detachLine(ie);ie.markedSpans=null}}function Qe(ie,ae){if(ae){for(var he=0;he<ae.length;++he)ae[he].marker.attachLine(ie);ie.markedSpans=ae}}function pt(ie){return ie.inclusiveLeft?-1:0}function It(ie){return ie.inclusiveRight?1:0}function sn(ie,ae){var he=ie.lines.length-ae.lines.length;if(he!=0)return he;var de=ie.find(),me=ae.find(),Ne=Sn(de.from,me.from)||pt(ie)-pt(ae);if(Ne)return-Ne;var Ze=Sn(de.to,me.to)||It(ie)-It(ae);return Ze||ae.id-ie.id}function Hn(ie,ae){var he=kn&&ie.markedSpans,de;if(he)for(var me=void 0,Ne=0;Ne<he.length;++Ne)me=he[Ne],me.marker.collapsed&&(ae?me.from:me.to)==null&&(!de||sn(de,me.marker)<0)&&(de=me.marker);return de}function On(ie){return Hn(ie,!0)}function Wt(ie){return Hn(ie,!1)}function Nn(ie,ae){var he=kn&&ie.markedSpans,de;if(he)for(var me=0;me<he.length;++me){var Ne=he[me];Ne.marker.collapsed&&(Ne.from==null||Ne.from<ae)&&(Ne.to==null||Ne.to>ae)&&(!de||sn(de,Ne.marker)<0)&&(de=Ne.marker)}return de}function ai(ie,ae,he,de,me){var Ne=an(ie,ae),Ze=kn&&Ne.markedSpans;if(Ze)for(var at=0;at<Ze.length;++at){var rt=Ze[at];if(rt.marker.collapsed){var Dt=rt.marker.find(0),Dn=Sn(Dt.from,he)||pt(rt.marker)-pt(me),Vt=Sn(Dt.to,de)||It(rt.marker)-It(me);if(!(Dn>=0&&Vt<=0||Dn<=0&&Vt>=0)&&(Dn<=0&&(rt.marker.inclusiveRight&&me.inclusiveLeft?Sn(Dt.to,he)>=0:Sn(Dt.to,he)>0)||Dn>=0&&(rt.marker.inclusiveRight&&me.inclusiveLeft?Sn(Dt.from,de)<=0:Sn(Dt.from,de)<0)))return!0}}}function qn(ie){for(var ae;ae=On(ie);)ie=ae.find(-1,!0).line;return ie}function Oi(ie){for(var ae;ae=Wt(ie);)ie=ae.find(1,!0).line;return ie}function Bi(ie){for(var ae,he;ae=Wt(ie);)ie=ae.find(1,!0).line,(he||(he=[])).push(ie);return he}function pi(ie,ae){var he=an(ie,ae),de=qn(he);return he==de?ae:Et(de)}function Gi(ie,ae){if(ae>ie.lastLine())return ae;var he=an(ie,ae),de;if(!zn(ie,he))return ae;for(;de=Wt(he);)he=de.find(1,!0).line;return Et(he)+1}function zn(ie,ae){var he=kn&&ae.markedSpans;if(he){for(var de=void 0,me=0;me<he.length;++me)if(de=he[me],!!de.marker.collapsed){if(de.from==null)return!0;if(!de.marker.widgetNode&&de.from==0&&de.marker.inclusiveLeft&&_r(ie,ae,de))return!0}}}function _r(ie,ae,he){if(he.to==null){var de=he.marker.find(1,!0);return _r(ie,de.line,Qr(de.line.markedSpans,he.marker))}if(he.marker.inclusiveRight&&he.to==ae.text.length)return!0;for(var me=void 0,Ne=0;Ne<ae.markedSpans.length;++Ne)if(me=ae.markedSpans[Ne],me.marker.collapsed&&!me.marker.widgetNode&&me.from==he.to&&(me.to==null||me.to!=he.from)&&(me.marker.inclusiveLeft||he.marker.inclusiveRight)&&_r(ie,ae,me))return!0}function Gr(ie){ie=qn(ie);for(var ae=0,he=ie.parent,de=0;de<he.lines.length;++de){var me=he.lines[de];if(me==ie)break;ae+=me.height}for(var Ne=he.parent;Ne;he=Ne,Ne=he.parent)for(var Ze=0;Ze<Ne.children.length;++Ze){var at=Ne.children[Ze];if(at==he)break;ae+=at.height}return ae}function Ao(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,he,de=ie;he=On(de);){var me=he.find(0,!0);de=me.from.line,ae+=me.from.ch-me.to.ch}for(de=ie;he=Wt(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 qr(ie){var ae=ie.display,he=ie.doc;ae.maxLine=an(he,he.first),ae.maxLineLength=Ao(ae.maxLine),ae.maxLineChanged=!0,he.iter(function(de){var me=Ao(de);me>ae.maxLineLength&&(ae.maxLineLength=me,ae.maxLine=de)})}var $r=function(ie,ae,he){this.text=ie,Qe(this,ae),this.height=he?he(this):1};$r.prototype.lineNo=function(){return Et(this)},Ri($r);function to(ie,ae,he,de){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),Ii(ie),Qe(ie,he);var me=de?de(ie):1;me!=ie.height&&cn(ie,me)}function $o(ie){ie.parent=null,Ii(ie)}var Qo={},pa={};function qo(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var he=ae.addModeClass?pa:Qo;return he[ie]||(he[ie]=ie.replace(/\S+/g,"cm-$&"))}function Cn(ie,ae){var he=ht("span",null,null,ke?"padding-right: .1px":null),de={pre:ht("pre",[he],"CodeMirror-line"),content:he,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var me=0;me<=(ae.rest?ae.rest.length:0);me++){var Ne=me?ae.rest[me-1]:ae.line,Ze=void 0;de.pos=0,de.addToken=es,Co(ie.display.measure)&&(Ze=ze(Ne,ie.doc.direction))&&(de.addToken=Ga(de.addToken,Ze)),de.map=[];var at=ae!=ie.display.externalMeasured&&Et(Ne);pl(Ne,de,kr(ie,Ne,at)),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(Kr(ie.display.measure))),me==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(ke){var rt=de.content.lastChild;(/\bcm-tab\b/.test(rt.className)||rt.querySelector&&rt.querySelector(".cm-tab"))&&(de.content.className="cm-tab-wrap-hack")}return rn(ie,"renderLine",ie,ae.line,de.pre),de.pre.className&&(de.textClass=Zt(de.pre.className,de.textClass||"")),de}function ca(ie){var ae=Xe("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function es(ie,ae,he,de,me,Ne,Ze){if(ae){var at=ie.splitSpaces?ts(ae,ie.trailingSpace):ae,rt=ie.cm.state.specialChars,Dt=!1,Dn;if(!rt.test(ae))ie.col+=ae.length,Dn=document.createTextNode(at),ie.map.push(ie.pos,ie.pos+ae.length,Dn),_e&&vt<9&&(Dt=!0),ie.pos+=ae.length;else{Dn=document.createDocumentFragment();for(var Vt=0;;){rt.lastIndex=Vt;var ri=rt.exec(ae),ei=ri?ri.index-Vt:ae.length-Vt;if(ei){var tr=document.createTextNode(at.slice(Vt,Vt+ei));_e&&vt<9?Dn.appendChild(Xe("span",[tr])):Dn.appendChild(tr),ie.map.push(ie.pos,ie.pos+ei,tr),ie.col+=ei,ie.pos+=ei}if(!ri)break;Vt+=ei+1;var or=void 0;if(ri[0]==" "){var Cr=ie.cm.options.tabSize,Jr=Cr-ie.col%Cr;or=Dn.appendChild(Xe("span",Kn(Jr),"cm-tab")),or.setAttribute("role","presentation"),or.setAttribute("cm-text"," "),ie.col+=Jr}else ri[0]=="\r"||ri[0]==`
|
|
|
`?(or=Dn.appendChild(Xe("span",ri[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),or.setAttribute("cm-text",ri[0]),ie.col+=1):(or=ie.cm.options.specialCharPlaceholder(ri[0]),or.setAttribute("cm-text",ri[0]),_e&&vt<9?Dn.appendChild(Xe("span",[or])):Dn.appendChild(or),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,or),ie.pos++}}if(ie.trailingSpace=at.charCodeAt(ae.length-1)==32,he||de||me||Dt||Ne||Ze){var Eo=he||"";de&&(Eo+=de),me&&(Eo+=me);var po=Xe("span",[Dn],Eo,Ne);if(Ze)for(var jo in Ze)Ze.hasOwnProperty(jo)&&jo!="style"&&jo!="class"&&po.setAttribute(jo,Ze[jo]);return ie.content.appendChild(po)}ie.content.appendChild(Dn)}}function ts(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var he=ae,de="",me=0;me<ie.length;me++){var Ne=ie.charAt(me);Ne==" "&&he&&(me==ie.length-1||ie.charCodeAt(me+1)==32)&&(Ne="\xA0"),de+=Ne,he=Ne==" "}return de}function Ga(ie,ae){return function(he,de,me,Ne,Ze,at,rt){me=me?me+" cm-force-border":"cm-force-border";for(var Dt=he.pos,Dn=Dt+de.length;;){for(var Vt=void 0,ri=0;ri<ae.length&&(Vt=ae[ri],!(Vt.to>Dt&&Vt.from<=Dt));ri++);if(Vt.to>=Dn)return ie(he,de,me,Ne,Ze,at,rt);ie(he,de.slice(0,Vt.to-Dt),me,Ne,null,at,rt),Ne=null,de=de.slice(Vt.to-Dt),Dt=Vt.to}}}function Ds(ie,ae,he,de){var me=!de&&he.widgetNode;me&&ie.map.push(ie.pos,ie.pos+ae,me),!de&&ie.cm.display.input.needsContentAttribute&&(me||(me=ie.content.appendChild(document.createElement("span"))),me.setAttribute("cm-marker",he.id)),me&&(ie.cm.display.input.setUneditable(me),ie.content.appendChild(me)),ie.pos+=ae,ie.trailingSpace=!1}function pl(ie,ae,he){var de=ie.markedSpans,me=ie.text,Ne=0;if(!de){for(var Ze=1;Ze<he.length;Ze+=2)ae.addToken(ae,me.slice(Ne,Ne=he[Ze]),qo(he[Ze+1],ae.cm.options));return}for(var at=me.length,rt=0,Dt=1,Dn="",Vt,ri,ei=0,tr,or,Cr,Jr,Eo;;){if(ei==rt){tr=or=Cr=ri="",Eo=null,Jr=null,ei=1/0;for(var po=[],jo=void 0,ua=0;ua<de.length;++ua){var uo=de[ua],Ma=uo.marker;if(Ma.type=="bookmark"&&uo.from==rt&&Ma.widgetNode)po.push(Ma);else if(uo.from<=rt&&(uo.to==null||uo.to>rt||Ma.collapsed&&uo.to==rt&&uo.from==rt)){if(uo.to!=null&&uo.to!=rt&&ei>uo.to&&(ei=uo.to,or=""),Ma.className&&(tr+=" "+Ma.className),Ma.css&&(ri=(ri?ri+";":"")+Ma.css),Ma.startStyle&&uo.from==rt&&(Cr+=" "+Ma.startStyle),Ma.endStyle&&uo.to==ei&&(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&&(!Jr||sn(Jr.marker,Ma)<0)&&(Jr=uo)}else uo.from>rt&&ei>uo.from&&(ei=uo.from)}if(jo)for(var Ul=0;Ul<jo.length;Ul+=2)jo[Ul+1]==ei&&(or+=" "+jo[Ul]);if(!Jr||Jr.from==rt)for(var fl=0;fl<po.length;++fl)Ds(ae,0,po[fl]);if(Jr&&(Jr.from||0)==rt){if(Ds(ae,(Jr.to==null?at+1:Jr.to)-rt,Jr.marker,Jr.from==null),Jr.to==null)return;Jr.to==rt&&(Jr=!1)}}if(rt>=at)break;for(var qu=Math.min(at,ei);;){if(Dn){var Tu=rt+Dn.length;if(!Jr){var Zl=Tu>qu?Dn.slice(0,qu-rt):Dn;ae.addToken(ae,Zl,Vt?Vt+tr:tr,Cr,rt+Zl.length==ei?or:"",ri,Eo)}if(Tu>=qu){Dn=Dn.slice(qu-rt),rt=qu;break}rt=Tu,Cr=""}Dn=me.slice(Ne,Ne=he[Dt++]),Vt=qo(he[Dt++],ae.cm.options)}}}function ma(ie,ae,he){this.line=ae,this.rest=Bi(ae),this.size=this.rest?Et(yt(this.rest))-he+1:1,this.node=this.text=null,this.hidden=zn(ie,ae)}function Fo(ie,ae,he){for(var de=[],me,Ne=ae;Ne<he;Ne=me){var Ze=new ma(ie.doc,an(ie.doc,Ne),Ne);me=Ne+Ze.size,de.push(Ze)}return de}var Oo=null;function Pa(ie){Oo?Oo.ops.push(ie):ie.ownsGroup=Oo={ops:[ie],delayedCallbacks:[]}}function no(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 me=ie.ops[de];if(me.cursorActivityHandlers)for(;me.cursorActivityCalled<me.cursorActivityHandlers.length;)me.cursorActivityHandlers[me.cursorActivityCalled++].call(null,me.cm)}}while(he<ae.length)}function ko(ie,ae){var he=ie.ownsGroup;if(he)try{no(he)}finally{Oo=null,ae(he)}}var oo=null;function Vi(ie,ae){var he=Ut(ie,ae);if(he.length){var de=Array.prototype.slice.call(arguments,2),me;Oo?me=Oo.delayedCallbacks:oo?me=oo:(me=oo=[],setTimeout(ha,0));for(var Ne=function(at){me.push(function(){return he[at].apply(null,de)})},Ze=0;Ze<he.length;++Ze)Ne(Ze)}}function ha(){var ie=oo;oo=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function Na(ie,ae,he,de){for(var me=0;me<ae.changes.length;me++){var Ne=ae.changes[me];Ne=="text"?Yi(ie,ae):Ne=="gutter"?ga(ie,ae,he,de):Ne=="class"?Da(ie,ae):Ne=="widget"&&Is(ie,ae,de)}ae.changes=null}function Bs(ie){return ie.node==ie.text&&(ie.node=Xe("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),_e&&vt<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=Bs(ae);ae.background=de.insertBefore(Xe("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):Cn(ie,ae)}function Yi(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?Bs(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 ga(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 me=Bs(ae);ae.gutterBackground=Xe("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),me.insertBefore(ae.gutterBackground,ae.text)}var Ne=ae.line.gutterMarkers;if(ie.options.lineNumbers||Ne){var Ze=Bs(ae),at=ae.gutter=Xe("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(at),Ze.insertBefore(at,ae.text),ae.line.gutterClass&&(at.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Ne||!Ne["CodeMirror-linenumbers"])&&(ae.lineNumber=at.appendChild(Xe("div",Un(ie.options,he),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+de.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Ne)for(var rt=0;rt<ie.display.gutterSpecs.length;++rt){var Dt=ie.display.gutterSpecs[rt].className,Dn=Ne.hasOwnProperty(Dt)&&Ne[Dt];Dn&&at.appendChild(Xe("div",[Dn],"CodeMirror-gutter-elt","left: "+de.gutterLeft[Dt]+"px; width: "+de.gutterWidth[Dt]+"px"))}}}function Is(ie,ae,he){ae.alignable&&(ae.alignable=null);for(var de=Pe("CodeMirror-linewidget"),me=ae.node.firstChild,Ne=void 0;me;me=Ne)Ne=me.nextSibling,de.test(me.className)&&ae.node.removeChild(me);Gl(ie,ae,he)}function ml(ie,ae,he,de){var me=nl(ie,ae);return ae.text=ae.node=me.pre,me.bgClass&&(ae.bgClass=me.bgClass),me.textClass&&(ae.textClass=me.textClass),Da(ie,ae),ga(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,me){if(ae.widgets)for(var Ne=Bs(he),Ze=0,at=ae.widgets;Ze<at.length;++Ze){var rt=at[Ze],Dt=Xe("div",[rt.node],"CodeMirror-linewidget"+(rt.className?" "+rt.className:""));rt.handleMouseEvents||Dt.setAttribute("cm-ignore-events","true"),Au(rt,Dt,he,de),ie.display.input.setUneditable(Dt),me&&rt.above?Ne.insertBefore(Dt,he.gutter||he.text):Ne.appendChild(Dt),Vi(rt,"redraw")}}function Au(ie,ae,he,de){if(ie.noHScroll){(he.alignable||(he.alignable=[])).push(ae);var me=de.wrapperWidth;ae.style.left=de.fixedPos+"px",ie.coverGutter||(me-=de.gutterTotalWidth,ae.style.paddingLeft=de.gutterTotalWidth+"px"),ae.style.width=me+"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(!Nt(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,Xe("div",[ie.node],null,he))}return ie.height=ie.node.parentNode.offsetHeight}function kl(ie,ae){for(var he=Hr(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,Xe("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 Pn-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,me=de&&Sl(ie);if(!ae.measure.heights||de&&ae.measure.width!=me){var Ne=ae.measure.heights=[];if(de){ae.measure.width=me;for(var Ze=ae.text.firstChild.getClientRects(),at=0;at<Ze.length-1;at++){var rt=Ze[at],Dt=Ze[at+1];Math.abs(rt.bottom-Dt.bottom)>2&&Ne.push((rt.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 me=0;me<ie.rest.length;me++)if(Et(ie.rest[me])>he)return{map:ie.measure.maps[me],cache:ie.measure.caches[me],before:!0}}function Qc(ie,ae){ae=qn(ae);var he=Et(ae),de=ie.display.externalMeasured=new ma(ie.doc,ae,he);de.lineN=he;var me=de.built=Cn(ie,de);return de.text=me.pre,Ke(ie.display.lineMeasure,me.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=Et(ae),de=zl(ie,he);de&&!de.text?de=null:de&&de.changes&&(Na(ie,de,he,Pc(ie)),ie.curOp.forceUpdate=!0),de||(de=Qc(ie,ae));var me=xc(de,ae,he);return{line:ae,view:de,rect:null,map:me.map,cache:me.cache,before:me.before,hasHeights:!1}}function Tl(ie,ae,he,de,me){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=Xo(ie,ae,he,de),Ze.bogus||(ae.cache[Ne]=Ze)),{left:Ze.left,right:Ze.right,top:me?Ze.rtop:Ze.top,bottom:me?Ze.rbottom:Ze.bottom}}var pu={left:0,right:0,top:0,bottom:0};function wc(ie,ae,he){for(var de,me,Ne,Ze,at,rt,Dt=0;Dt<ie.length;Dt+=3)if(at=ie[Dt],rt=ie[Dt+1],ae<at?(me=0,Ne=1,Ze="left"):ae<rt?(me=ae-at,Ne=me+1):(Dt==ie.length-3||ae==rt&&ie[Dt+3]>ae)&&(Ne=rt-at,me=Ne-1,ae>=rt&&(Ze="right")),me!=null){if(de=ie[Dt+2],at==rt&&he==(de.insertLeft?"left":"right")&&(Ze=he),he=="left"&&me==0)for(;Dt&&ie[Dt-2]==ie[Dt-3]&&ie[Dt-1].insertLeft;)de=ie[(Dt-=3)+2],Ze="left";if(he=="right"&&me==rt-at)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:me,end:Ne,collapse:Ze,coverStart:at,coverEnd:rt}}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 me=ie.length-1;me>=0&&(he=ie[me]).left==he.right;me--);return he}function Xo(ie,ae,he,de){var me=wc(ae.map,he,de),Ne=me.node,Ze=me.start,at=me.end,rt=me.collapse,Dt;if(Ne.nodeType==3){for(var Dn=0;Dn<4;Dn++){for(;Ze&&At(ae.line.text.charAt(me.coverStart+Ze));)--Ze;for(;me.coverStart+at<me.coverEnd&&At(ae.line.text.charAt(me.coverStart+at));)++at;if(_e&&vt<9&&Ze==0&&at==me.coverEnd-me.coverStart?Dt=Ne.parentNode.getBoundingClientRect():Dt=mu(Ve(Ne,Ze,at).getClientRects(),de),Dt.left||Dt.right||Ze==0)break;at=Ze,Ze=Ze-1,rt="right"}_e&&vt<11&&(Dt=va(ie.display.measure,Dt))}else{Ze>0&&(rt=de="right");var Vt;ie.options.lineWrapping&&(Vt=Ne.getClientRects()).length>1?Dt=Vt[de=="right"?Vt.length-1:0]:Dt=Ne.getBoundingClientRect()}if(_e&&vt<9&&!Ze&&(!Dt||!Dt.left&&!Dt.right)){var ri=Ne.parentNode.getClientRects()[0];ri?Dt={left:ri.left,right:ri.left+jl(ie.display),top:ri.top,bottom:ri.bottom}:Dt=pu}for(var ei=Dt.top-ae.rect.top,tr=Dt.bottom-ae.rect.top,or=(ei+tr)/2,Cr=ae.view.measure.heights,Jr=0;Jr<Cr.length-1&&!(or<Cr[Jr]);Jr++);var Eo=Jr?Cr[Jr-1]:0,po=Cr[Jr],jo={left:(rt=="right"?Dt.right:Dt.left)-ae.rect.left,right:(rt=="left"?Dt.left:Dt.right)-ae.rect.left,top:Eo,bottom:po};return!Dt.left&&!Dt.right&&(jo.bogus=!0),ie.options.singleCursorHeightPerLine||(jo.rtop=ei,jo.rbottom=tr),jo}function va(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!un(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,We(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 os(){return Lt&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hs(){return Lt&&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,me){if(!me){var Ne=Ls(ae);he.top+=Ne,he.bottom+=Ne}if(de=="line")return he;de||(de="local");var Ze=Gr(ae);if(de=="local"?Ze+=vl(ie.display):Ze-=ie.display.viewOffset,de=="page"||de=="window"){var at=ie.display.lineSpace.getBoundingClientRect();Ze+=at.top+(de=="window"?0:hs());var rt=at.left+(de=="window"?0:os());he.left+=rt,he.right+=rt}return he.top+=Ze,he.bottom+=Ze,he}function Ks(ie,ae,he){if(he=="div")return ae;var de=ae.left,me=ae.top;if(he=="page")de-=os(),me-=hs();else if(he=="local"||!he){var Ne=ie.display.sizer.getBoundingClientRect();de+=Ne.left,me+=Ne.top}var Ze=ie.display.lineSpace.getBoundingClientRect();return{left:de-Ze.left,top:me-Ze.top}}function Ts(ie,ae,he,de,me){return de||(de=an(ie.doc,ae.line)),xs(ie,de,gu(ie,de,ae.ch,me),he)}function Fa(ie,ae,he,de,me,Ne){de=de||an(ie.doc,ae.line),me||(me=xl(ie,de));function Ze(tr,or){var Cr=Tl(ie,me,tr,or?"right":"left",Ne);return or?Cr.left=Cr.right:Cr.right=Cr.left,xs(ie,de,Cr,he)}var at=ze(de,ie.doc.direction),rt=ae.ch,Dt=ae.sticky;if(rt>=de.text.length?(rt=de.text.length,Dt="before"):rt<=0&&(rt=0,Dt="after"),!at)return Ze(Dt=="before"?rt-1:rt,Dt=="before");function Dn(tr,or,Cr){var Jr=at[or],Eo=Jr.level==1;return Ze(Cr?tr-1:tr,Eo!=Cr)}var Vt=pe(at,rt,Dt),ri=we,ei=Dn(rt,Vt,Dt=="before");return ri!=null&&(ei.other=Dn(rt,ri,Dt!="before")),ei}function Hu(ie,ae){var he=0;ae=Ni(ie.doc,ae),ie.options.lineWrapping||(he=jl(ie.display)*ae.ch);var de=an(ie.doc,ae.line),me=Gr(de)+vl(ie.display);return{left:he,right:he,top:me,bottom:me+de.height}}function Ol(ie,ae,he,de,me){var Ne=zt(ie,ae,he);return Ne.xRel=me,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 me=xn(de,he),Ne=de.first+de.size-1;if(me>Ne)return Ol(de.first+de.size-1,an(de,Ne).text.length,null,1,1);ae<0&&(ae=0);for(var Ze=an(de,me);;){var at=di(ie,Ze,me,ae,he),rt=Nn(Ze,at.ch+(at.xRel>0||at.outside>0?1:0));if(!rt)return at;var Dt=rt.find(1);if(Dt.line==me)return Dt;Ze=an(de,me=Dt.line)}}function Rr(ie,ae,he,de){de-=Ls(ae);var me=ae.text.length,Ne=Ge(function(Ze){return Tl(ie,he,Ze-1).bottom<=de},me,0);return me=Ge(function(Ze){return Tl(ie,he,Ze).top>de},Ne,me),{begin:Ne,end:me}}function Lu(ie,ae,he,de){he||(he=xl(ie,ae));var me=xs(ie,ae,Tl(ie,he,de),"line").top;return Rr(ie,ae,he,me)}function Kt(ie,ae,he,de){return ie.bottom<=he?!1:ie.top>he?!0:(de?ie.left:ie.right)>ae}function di(ie,ae,he,de,me){me-=Gr(ae);var Ne=xl(ie,ae),Ze=Ls(ae),at=0,rt=ae.text.length,Dt=!0,Dn=ze(ae,ie.doc.direction);if(Dn){var Vt=(ie.options.lineWrapping?Fu:Mu)(ie,ae,he,Ne,Dn,de,me);Dt=Vt.level!=1,at=Dt?Vt.from:Vt.to-1,rt=Dt?Vt.to:Vt.from-1}var ri=null,ei=null,tr=Ge(function(ua){var uo=Tl(ie,Ne,ua);return uo.top+=Ze,uo.bottom+=Ze,Kt(uo,de,me,!1)?(uo.top<=me&&uo.left<=de&&(ri=ua,ei=uo),!0):!1},at,rt),or,Cr,Jr=!1;if(ei){var Eo=de-ei.left<ei.right-de,po=Eo==Dt;tr=ri+(po?0:1),Cr=po?"after":"before",or=Eo?ei.left:ei.right}else{!Dt&&(tr==rt||tr==at)&&tr++,Cr=tr==0?"after":tr==ae.text.length?"before":Tl(ie,Ne,tr-(Dt?1:0)).bottom+Ze<=me==Dt?"after":"before";var jo=Fa(ie,zt(he,tr,Cr),"line",ae,Ne);or=jo.left,Jr=me<jo.top?-1:me>=jo.bottom?1:0}return tr=lt(ae.text,tr,1),Ol(he,tr,Cr,Jr,de-or)}function Mu(ie,ae,he,de,me,Ne,Ze){var at=Ge(function(Vt){var ri=me[Vt],ei=ri.level!=1;return Kt(Fa(ie,zt(he,ei?ri.to:ri.from,ei?"before":"after"),"line",ae,de),Ne,Ze,!0)},0,me.length-1),rt=me[at];if(at>0){var Dt=rt.level!=1,Dn=Fa(ie,zt(he,Dt?rt.from:rt.to,Dt?"after":"before"),"line",ae,de);Kt(Dn,Ne,Ze,!0)&&Dn.top>Ze&&(rt=me[at-1])}return rt}function Fu(ie,ae,he,de,me,Ne,Ze){var at=Rr(ie,ae,de,Ze),rt=at.begin,Dt=at.end;/\s/.test(ae.text.charAt(Dt-1))&&Dt--;for(var Dn=null,Vt=null,ri=0;ri<me.length;ri++){var ei=me[ri];if(!(ei.from>=Dt||ei.to<=rt)){var tr=ei.level!=1,or=Tl(ie,de,tr?Math.min(Dt,ei.to)-1:Math.max(rt,ei.from)).right,Cr=or<Ne?Ne-or+1e9:or-Ne;(!Dn||Vt>Cr)&&(Dn=ei,Vt=Cr)}}return Dn||(Dn=me[me.length-1]),Dn.from<rt&&(Dn={from:rt,to:Dn.to,level:Dn.level}),Dn.to>Dt&&(Dn={from:Dn.from,to:Dt,level:Dn.level}),Dn}var _l;function $l(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(_l==null){_l=Xe("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)_l.appendChild(document.createTextNode("x")),_l.appendChild(Xe("br"));_l.appendChild(document.createTextNode("x"))}Ke(ie.measure,_l);var he=_l.offsetHeight/50;return he>3&&(ie.cachedTextHeight=he),We(ie.measure),he||1}function jl(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Xe("span","xxxxxxxxxx"),he=Xe("pre",[ae],"CodeMirror-line-like");Ke(ie.measure,he);var de=ae.getBoundingClientRect(),me=(de.right-de.left)/10;return me>2&&(ie.cachedCharWidth=me),me||10}function Pc(ie){for(var ae=ie.display,he={},de={},me=ae.gutters.clientLeft,Ne=ae.gutters.firstChild,Ze=0;Ne;Ne=Ne.nextSibling,++Ze){var at=ie.display.gutterSpecs[Ze].className;he[at]=Ne.offsetLeft+Ne.clientLeft+me,de[at]=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 Os(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(me){if(zn(ie.doc,me))return 0;var Ne=0;if(me.widgets)for(var Ze=0;Ze<me.widgets.length;Ze++)me.widgets[Ze].height&&(Ne+=me.widgets[Ze].height);return he?Ne+(Math.ceil(me.text.length/de)||1)*ae:Ne+ae}}function Io(ie){var ae=ie.doc,he=Os(ie);ae.iter(function(de){var me=he(de);me!=de.height&&cn(de,me)})}function wl(ie,ae,he,de){var me=ie.display;if(!he&&Hr(ae).getAttribute("cm-not-content")=="true")return null;var Ne,Ze,at=me.lineSpace.getBoundingClientRect();try{Ne=ae.clientX-at.left,Ze=ae.clientY-at.top}catch(Vt){return null}var rt=El(ie,Ne,Ze),Dt;if(de&&rt.xRel>0&&(Dt=an(ie.doc,rt.line).text).length==rt.ch){var Dn=dt(Dt,Dt.length,ie.options.tabSize)-Dt.length;rt=zt(rt.line,Math.max(0,Math.round((Ne-yl(ie.display).left)/jl(ie.display))-Dn))}return rt}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 me=ie.display;if(de&&he<me.viewTo&&(me.updateLineNumbers==null||me.updateLineNumbers>ae)&&(me.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=me.viewTo)kn&&pi(ie.doc,ae)<me.viewTo&&ol(ie);else if(he<=me.viewFrom)kn&&Gi(ie.doc,he+de)>me.viewFrom?ol(ie):(me.viewFrom+=de,me.viewTo+=de);else if(ae<=me.viewFrom&&he>=me.viewTo)ol(ie);else if(ae<=me.viewFrom){var Ne=je(ie,he,he+de,1);Ne?(me.view=me.view.slice(Ne.index),me.viewFrom=Ne.lineN,me.viewTo+=de):ol(ie)}else if(he>=me.viewTo){var Ze=je(ie,ae,ae,-1);Ze?(me.view=me.view.slice(0,Ze.index),me.viewTo=Ze.lineN):ol(ie)}else{var at=je(ie,ae,ae,-1),rt=je(ie,he,he+de,1);at&&rt?(me.view=me.view.slice(0,at.index).concat(Fo(ie,at.lineN,rt.lineN)).concat(me.view.slice(rt.index)),me.viewTo+=de):ol(ie)}var Dt=me.externalMeasured;Dt&&(he<Dt.lineN?Dt.lineN+=de:ae<Dt.lineN+Dt.size&&(me.externalMeasured=null))}function ya(ie,ae,he){ie.curOp.viewChanged=!0;var de=ie.display,me=ie.display.externalMeasured;if(me&&ae>=me.lineN&&ae<me.lineN+me.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=[]);Mt(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 me=Il(ie,ae),Ne,Ze=ie.display.view;if(!kn||he==ie.doc.first+ie.doc.size)return{index:me,lineN:he};for(var at=ie.display.viewFrom,rt=0;rt<me;rt++)at+=Ze[rt].size;if(at!=ae){if(de>0){if(me==Ze.length-1)return null;Ne=at+Ze[me].size-ae,me++}else Ne=at-ae;ae+=Ne,he+=Ne}for(;pi(ie.doc,he)!=he;){if(me==(de<0?0:Ze.length-1))return null;he+=de*Ze[me-(de<0?1:0)].size,me+=de}return{index:me,lineN:he}}function $e(ie,ae,he){var de=ie.display,me=de.view;me.length==0||ae>=de.viewTo||he<=de.viewFrom?(de.view=Fo(ie,ae,he),de.viewFrom=ae):(de.viewFrom>ae?de.view=Fo(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(Fo(ie,de.viewTo,he)):de.viewTo>he&&(de.view=de.view.slice(0,Il(ie,he)))),de.viewTo=he}function st(ie){for(var ae=ie.display.view,he=0,de=0;de<ae.length;de++){var me=ae[de];!me.hidden&&(!me.node||me.changes)&&++he}return he}function nn(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function hn(ie,ae){ae===void 0&&(ae=!0);for(var he=ie.doc,de={},me=de.cursors=document.createDocumentFragment(),Ne=de.selection=document.createDocumentFragment(),Ze=0;Ze<he.sel.ranges.length;Ze++)if(!(!ae&&Ze==he.sel.primIndex)){var at=he.sel.ranges[Ze];if(!(at.from().line>=ie.display.viewTo||at.to().line<ie.display.viewFrom)){var rt=at.empty();(rt||ie.options.showCursorWhenSelecting)&&In(ie,at.head,me),rt||oi(ie,at,Ne)}}return de}function In(ie,ae,he){var de=Fa(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),me=he.appendChild(Xe("div","\xA0","CodeMirror-cursor"));if(me.style.left=de.left+"px",me.style.top=de.top+"px",me.style.height=Math.max(0,de.bottom-de.top)*ie.options.cursorHeight+"px",de.other){var Ne=he.appendChild(Xe("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 Zn(ie,ae){return ie.top-ae.top||ie.left-ae.left}function oi(ie,ae,he){var de=ie.display,me=ie.doc,Ne=document.createDocumentFragment(),Ze=yl(ie.display),at=Ze.left,rt=Math.max(de.sizerWidth,Sl(ie)-de.sizer.offsetLeft)-Ze.right,Dt=me.direction=="ltr";function Dn(po,jo,ua,uo){jo<0&&(jo=0),jo=Math.round(jo),uo=Math.round(uo),Ne.appendChild(Xe("div",null,"CodeMirror-selected","position: absolute; left: "+po+`px;
|
|
|
top: `+jo+"px; width: "+(ua==null?rt-po:ua)+`px;
|
|
|
height: `+(uo-jo)+"px"))}function Vt(po,jo,ua){var uo=an(me,po),Ma=uo.text.length,$s,Ul;function fl(Zl,cc){return Ts(ie,zt(po,Zl),"div",uo,cc)}function qu(Zl,cc,xu){var Kl=Lu(ie,uo,null,Zl),ds=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,ds)[ds]}var Tu=ze(uo,me.direction);return Be(Tu,jo||0,ua==null?Ma:ua,function(Zl,cc,xu,Kl){var ds=xu=="ltr",Pl=fl(Zl,ds?"left":"right"),nu=fl(cc-1,ds?"right":"left"),wu=jo==null&&Zl==0,id=ua==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?at:(ds?Pl:nu).left,dc=$f?rt:(ds?nu:Pl).right;Dn(Mc,Pl.top,dc-Mc,Pl.bottom)}else{var ec,Hs,iu,Ld;ds?(ec=Dt&&wu&&gl?at:Pl.left,Hs=Dt?rt:qu(Zl,xu,"before"),iu=Dt?at:qu(cc,xu,"after"),Ld=Dt&&id&&Wc?rt:nu.right):(ec=Dt?qu(Zl,xu,"before"):at,Hs=!Dt&&wu&&gl?rt:Pl.right,iu=!Dt&&id&&Wc?at:nu.left,Ld=Dt?qu(cc,xu,"after"):rt),Dn(ec,Pl.top,Hs-ec,Pl.bottom),Pl.bottom<nu.top&&Dn(at,Pl.bottom,null,nu.top),Dn(iu,nu.top,Ld-iu,nu.bottom)}(!$s||Zn(Pl,$s)<0)&&($s=Pl),Zn(nu,$s)<0&&($s=nu),(!Ul||Zn(Pl,Ul)<0)&&(Ul=Pl),Zn(nu,Ul)<0&&(Ul=nu)}),{start:$s,end:Ul}}var ri=ae.from(),ei=ae.to();if(ri.line==ei.line)Vt(ri.line,ri.ch,ei.ch);else{var tr=an(me,ri.line),or=an(me,ei.line),Cr=qn(tr)==qn(or),Jr=Vt(ri.line,ri.ch,Cr?tr.text.length+1:null).end,Eo=Vt(ei.line,Cr?0:null,ei.ch).start;Cr&&(Jr.top<Eo.top-2?(Dn(Jr.right,Jr.top,null,Jr.bottom),Dn(at,Eo.top,Eo.left,Eo.bottom)):Dn(Jr.right,Jr.top,Eo.left-Jr.right,Jr.bottom)),Jr.bottom<Eo.top&&Dn(at,Jr.bottom,null,Eo.top)}he.appendChild(Ne)}function ui(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 Mi(ie){ie.state.focused||(ie.display.input.focus(),Ei(ie))}function sr(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,_i(ie))},100)}function Ei(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(rn(ie,"focus",ie,ae),ie.state.focused=!0,Ht(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),ke&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),ui(ie))}function _i(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(rn(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 me=ae.view[de],Ne=ie.options.lineWrapping,Ze=void 0,at=0;if(!me.hidden){if(_e&&vt<8){var rt=me.node.offsetTop+me.node.offsetHeight;Ze=rt-he,he=rt}else{var Dt=me.node.getBoundingClientRect();Ze=Dt.bottom-Dt.top,!Ne&&me.text.firstChild&&(at=me.text.firstChild.getBoundingClientRect().right-Dt.left-1)}var Dn=me.line.height-Ze;if((Dn>.005||Dn<-.005)&&(cn(me.line,Ze),xr(me.line),me.rest))for(var Vt=0;Vt<me.rest.length;Vt++)xr(me.rest[Vt]);if(at>ie.display.sizerWidth){var ri=Math.ceil(at/jl(ie.display));ri>ie.display.maxLineLength&&(ie.display.maxLineLength=ri,ie.display.maxLine=me.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 ni(ie,ae,he){var de=he&&he.top!=null?Math.max(0,he.top):ie.scroller.scrollTop;de=Math.floor(de-vl(ie));var me=he&&he.bottom!=null?he.bottom:de+ie.wrapper.clientHeight,Ne=xn(ae,de),Ze=xn(ae,me);if(he&&he.ensure){var at=he.ensure.from.line,rt=he.ensure.to.line;at<Ne?(Ne=at,Ze=xn(ae,Gr(an(ae,at))+ie.wrapper.clientHeight)):Math.min(rt,ae.lastLine())>=Ze&&(Ne=xn(ae,Gr(an(ae,rt))-ie.wrapper.clientHeight),Ze=rt)}return{from:Ne,to:Math.max(Ze,Ne+1)}}function $i(ie,ae){if(!vn(ie,"scrollCursorIntoView")){var he=ie.display,de=he.sizer.getBoundingClientRect(),me=null;if(ae.top+de.top<0?me=!0:ae.bottom+de.top>(window.innerHeight||document.documentElement.clientHeight)&&(me=!1),me!=null&&!wt){var Ne=Xe("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(me),ie.display.lineSpace.removeChild(Ne)}}}function wr(ie,ae,he,de){de==null&&(de=0);var me;!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,at=Fa(ie,ae),rt=!he||he==ae?at:Fa(ie,he);me={left:Math.min(at.left,rt.left),top:Math.min(at.top,rt.top)-de,right:Math.max(at.left,rt.left),bottom:Math.max(at.bottom,rt.bottom)+de};var Dt=io(ie,me),Dn=ie.doc.scrollTop,Vt=ie.doc.scrollLeft;if(Dt.scrollTop!=null&&(Sa(ie,Dt.scrollTop),Math.abs(ie.doc.scrollTop-Dn)>1&&(Ze=!0)),Dt.scrollLeft!=null&&(Ha(ie,Dt.scrollLeft),Math.abs(ie.doc.scrollLeft-Vt)>1&&(Ze=!0)),!Ze)break}return me}function ho(ie,ae){var he=io(ie,ae);he.scrollTop!=null&&Sa(ie,he.scrollTop),he.scrollLeft!=null&&Ha(ie,he.scrollLeft)}function io(ie,ae){var he=ie.display,de=$l(ie.display);ae.top<0&&(ae.top=0);var me=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 at=ie.doc.height+fu(he),rt=ae.top<de,Dt=ae.bottom>at-de;if(ae.top<me)Ze.scrollTop=rt?0:ae.top;else if(ae.bottom>me+Ne){var Dn=Math.min(ae.top,(Dt?at:ae.bottom)-Ne);Dn!=me&&(Ze.scrollTop=Dn)}var Vt=ie.options.fixedGutter?0:he.gutters.offsetWidth,ri=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:he.scroller.scrollLeft-Vt,ei=Sl(ie)-he.gutters.offsetWidth,tr=ae.right-ae.left>ei;return tr&&(ae.right=ae.left+ei),ae.left<10?Ze.scrollLeft=0:ae.left<ri?Ze.scrollLeft=Math.max(0,ae.left+Vt-(tr?0:10)):ae.right>ei+ri-3&&(Ze.scrollLeft=ae.right+(tr?0:10)-ei),Ze}function mo(ie,ae){ae!=null&&(aa(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function vo(ie){aa(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function fo(ie,ae,he){(ae!=null||he!=null)&&aa(ie),ae!=null&&(ie.curOp.scrollLeft=ae),he!=null&&(ie.curOp.scrollTop=he)}function lr(ie,ae){aa(ie),ie.curOp.scrollToPos=ae}function aa(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 me=io(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});fo(ie,me.scrollLeft,me.scrollTop)}function Sa(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(Se||Ar(ie,{top:ae}),Ka(ie,ae,!0),Se&&Ar(ie),Pi(ie,100))}function Ka(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 fs=function(ie,ae,he){this.cm=he;var de=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),me=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");de.tabIndex=me.tabIndex=-1,ie(de),ie(me),nt(de,"scroll",function(){de.clientHeight&&ae(de.scrollTop,"vertical")}),nt(me,"scroll",function(){me.clientWidth&&ae(me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,_e&&vt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};fs.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 me=ie.viewHeight-(ae?de:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+me)+"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}},fs.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},fs.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},fs.prototype.zeroWidthHack=function(){var ie=ce&&!ct?"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},fs.prototype.enableZeroWidthBar=function(ie,ae,he){ie.style.pointerEvents="auto";function de(){var me=ie.getBoundingClientRect(),Ne=he=="vert"?document.elementFromPoint(me.right-1,(me.top+me.bottom)/2):document.elementFromPoint((me.right+me.left)/2,me.bottom-1);Ne!=ie?ie.style.pointerEvents="none":ae.set(1e3,de)}ae.set(1e3,de)},fs.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 me=0;me<4&&he!=ie.display.barWidth||de!=ie.display.barHeight;me++)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 as={native:fs,null:La};function gs(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ie(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new as[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),nt(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):Sa(ie,ae)},ie),ie.display.scrollbars.addClass&&Ht(ie.display.wrapper,ie.display.scrollbars.addClass)}var Ja=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:++Ja},Pa(ie.curOp)}function Rs(ie){var ae=ie.curOp;ae&&ko(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++)it(ae[he]);for(var de=0;de<ae.length;de++)ut(ae[de]);for(var me=0;me<ae.length;me++)Jt(ae[me]);for(var Ne=0;Ne<ae.length;Ne++)en(ae[Ne]);for(var Ze=0;Ze<ae.length;Ze++)An(ae[Ze])}function it(ie){var ae=ie.cm,he=ae.display;Ji(ae),ie.updateMaxLine&&qr(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 yi(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function ut(ie){ie.updatedDisplay=ie.mustUpdate&&yr(ie.cm,ie.update)}function Jt(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 en(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==qe();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&&ui(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),he&&Mi(ie.cm)}function An(ie){var ae=ie.cm,he=ae.display,de=ae.doc;if(ie.updatedDisplay&&Ki(ae,ie.update),he.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(he.wheelStartX=he.wheelStartY=null),ie.scrollTop!=null&&Ka(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&Ha(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var me=wr(ae,Ni(de,ie.scrollToPos.from),Ni(de,ie.scrollToPos.to),ie.scrollToPos.margin);$i(ae,me)}var Ne=ie.maybeHiddenMarkers,Ze=ie.maybeUnhiddenMarkers;if(Ne)for(var at=0;at<Ne.length;++at)Ne[at].lines.length||rn(Ne[at],"hide");if(Ze)for(var rt=0;rt<Ze.length;++rt)Ze[rt].lines.length&&rn(Ze[rt],"unhide");he.wrapper.offsetHeight&&(de.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&rn(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function gn(ie,ae){if(ie.curOp)return ae();Oa(ie);try{return ae()}finally{Rs(ie)}}function Xn(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);Oa(ie);try{return ae.apply(ie,arguments)}finally{Rs(ie)}}}function Yn(ie){return function(){if(this.curOp)return ie.apply(this,arguments);Oa(this);try{return ie.apply(this,arguments)}finally{Rs(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{Rs(ae)}}}function Pi(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,Ot(ii,ie))}function ii(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var he=+new Date+ie.options.workTime,de=Sr(ie,ae.highlightFrontier),me=[];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,at=Ne.text.length>ie.options.maxHighlightLength?qt(ae.mode,de.state):null,rt=br(ie,Ne,de,!0);at&&(de.state=at),Ne.styles=rt.styles;var Dt=Ne.styleClasses,Dn=rt.classes;Dn?Ne.styleClasses=Dn:Dt&&(Ne.styleClasses=null);for(var Vt=!Ze||Ze.length!=Ne.styles.length||Dt!=Dn&&(!Dt||!Dn||Dt.bgClass!=Dn.bgClass||Dt.textClass!=Dn.textClass),ri=0;!Vt&&ri<Ze.length;++ri)Vt=Ze[ri]!=Ne.styles[ri];Vt&&me.push(de.line),Ne.stateAfter=de.save(),de.nextLine()}else Ne.text.length<=ie.options.maxHighlightLength&&Xt(ie,Ne.text,de),Ne.stateAfter=de.line%5==0?de.save():null,de.nextLine();if(+new Date>he)return Pi(ie,ie.options.workDelay),!0}),ae.highlightFrontier=de.line,ae.modeFrontier=Math.max(ae.modeFrontier,de.line),me.length&&gn(ie,function(){for(var Ne=0;Ne<me.length;Ne++)ya(ie,me[Ne],"text")})}}var yi=function(ie,ae,he){var de=ie.display;this.viewport=ae,this.visible=ni(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=[]};yi.prototype.signal=function(ie,ae){wi(ie,ae)&&this.events.push(arguments)},yi.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)rn.apply(null,this.events[ie])};function Ji(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 Ui(ie){if(ie.hasFocus())return null;var ae=qe();if(!ae||!Nt(ie.display.lineDiv,ae))return null;var he={activeElt:ae};if(window.getSelection){var de=window.getSelection();de.anchorNode&&de.extend&&Nt(ie.display.lineDiv,de.anchorNode)&&(he.anchorNode=de.anchorNode,he.anchorOffset=de.anchorOffset,he.focusNode=de.focusNode,he.focusOffset=de.focusOffset)}return he}function zi(ie){if(!(!ie||!ie.activeElt||ie.activeElt==qe())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Nt(document.body,ie.anchorNode)&&Nt(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 yr(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&&st(ie)==0)return!1;zr(ie)&&(ol(ie),ae.dims=Pc(ie));var me=de.first+de.size,Ne=Math.max(ae.visible.from-ie.options.viewportMargin,de.first),Ze=Math.min(me,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(me,he.viewTo)),kn&&(Ne=pi(ie.doc,Ne),Ze=Gi(ie.doc,Ze));var at=Ne!=he.viewFrom||Ze!=he.viewTo||he.lastWrapHeight!=ae.wrapperHeight||he.lastWrapWidth!=ae.wrapperWidth;$e(ie,Ne,Ze),he.viewOffset=Gr(an(ie.doc,he.viewFrom)),ie.display.mover.style.top=he.viewOffset+"px";var rt=st(ie);if(!at&&rt==0&&!ae.force&&he.renderedView==he.view&&(he.updateLineNumbers==null||he.updateLineNumbers>=he.viewTo))return!1;var Dt=Ui(ie);return rt>4&&(he.lineDiv.style.display="none"),Pr(ie,he.updateLineNumbers,ae.dims),rt>4&&(he.lineDiv.style.display=""),he.renderedView=he.view,zi(Dt),We(he.cursorDiv),We(he.selectionDiv),he.gutters.style.height=he.sizer.style.minHeight=0,at&&(he.lastWrapHeight=ae.wrapperHeight,he.lastWrapWidth=ae.wrapperWidth,Pi(ie,400)),he.updateLineNumbers=null,!0}function Ki(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=ni(ie.display,ie.doc,he),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else de&&(ae.visible=ni(ie.display,ie.doc,he));if(!yr(ie,ae))break;bi(ie);var me=Ba(ie);nn(ie),Ca(ie,me),yo(ie,me),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 Ar(ie,ae){var he=new yi(ie,ae);if(yr(ie,he)){bi(ie),Ki(ie,he);var de=Ba(ie);nn(ie),Ca(ie,de),yo(ie,de),he.finish()}}function Pr(ie,ae,he){var de=ie.display,me=ie.options.lineNumbers,Ne=de.lineDiv,Ze=Ne.firstChild;function at(tr){var or=tr.nextSibling;return ke&&ce&&ie.display.currentWheelTarget==tr?tr.style.display="none":tr.parentNode.removeChild(tr),or}for(var rt=de.view,Dt=de.viewFrom,Dn=0;Dn<rt.length;Dn++){var Vt=rt[Dn];if(!Vt.hidden)if(!Vt.node||Vt.node.parentNode!=Ne){var ri=ml(ie,Vt,Dt,he);Ne.insertBefore(ri,Ze)}else{for(;Ze!=Vt.node;)Ze=at(Ze);var ei=me&&ae!=null&&ae<=Dt&&Vt.lineNumber;Vt.changes&&(Mt(Vt.changes,"gutter")>-1&&(ei=!1),Na(ie,Vt,Dt,he)),ei&&(We(Vt.lineNumber),Vt.lineNumber.appendChild(document.createTextNode(Un(ie.options,Dt)))),Ze=Vt.node.nextSibling}Dt+=Vt.size}for(;Ze;)Ze=at(Ze)}function Br(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,me=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 at=he[Ze].alignable;if(at)for(var rt=0;rt<at.length;rt++)at[rt].style.left=Ne}ie.options.fixedGutter&&(ae.gutters.style.left=de+me+"px")}}function zr(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,he=Un(ie.options,ae.first+ae.size-1),de=ie.display;if(he.length!=de.lineNumChars){var me=de.measure.appendChild(Xe("div",[Xe("div",he)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ne=me.firstChild.offsetWidth,Ze=me.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",Br(ie.display),!0}return!1}function eo(ie,ae){for(var he=[],de=!1,me=0;me<ie.length;me++){var Ne=ie[me],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 Ko(ie){var ae=ie.gutters,he=ie.gutterSpecs;We(ae),ie.lineGutter=null;for(var de=0;de<he.length;++de){var me=he[de],Ne=me.className,Ze=me.style,at=ae.appendChild(Xe("div",null,"CodeMirror-gutter "+Ne));Ze&&(at.style.cssText=Ze),Ne=="CodeMirror-linenumbers"&&(ie.lineGutter=at,at.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=he.length?"":"none",Br(ie)}function Or(ie){Ko(ie.display),ws(ie),Lo(ie)}function so(ie,ae,he,de){var me=this;this.input=he,me.scrollbarFiller=Xe("div",null,"CodeMirror-scrollbar-filler"),me.scrollbarFiller.setAttribute("cm-not-content","true"),me.gutterFiller=Xe("div",null,"CodeMirror-gutter-filler"),me.gutterFiller.setAttribute("cm-not-content","true"),me.lineDiv=ht("div",null,"CodeMirror-code"),me.selectionDiv=Xe("div",null,null,"position: relative; z-index: 1"),me.cursorDiv=Xe("div",null,"CodeMirror-cursors"),me.measure=Xe("div",null,"CodeMirror-measure"),me.lineMeasure=Xe("div",null,"CodeMirror-measure"),me.lineSpace=ht("div",[me.measure,me.lineMeasure,me.selectionDiv,me.cursorDiv,me.lineDiv],null,"position: relative; outline: none");var Ne=ht("div",[me.lineSpace],"CodeMirror-lines");me.mover=Xe("div",[Ne],null,"position: relative"),me.sizer=Xe("div",[me.mover],"CodeMirror-sizer"),me.sizerWidth=null,me.heightForcer=Xe("div",null,null,"position: absolute; height: "+Pn+"px; width: 1px;"),me.gutters=Xe("div",null,"CodeMirror-gutters"),me.lineGutter=null,me.scroller=Xe("div",[me.sizer,me.heightForcer,me.gutters],"CodeMirror-scroll"),me.scroller.setAttribute("tabIndex","-1"),me.wrapper=Xe("div",[me.scrollbarFiller,me.gutterFiller,me.scroller],"CodeMirror"),_e&&vt<8&&(me.gutters.style.zIndex=-1,me.scroller.style.paddingRight=0),!ke&&!(Se&&ne)&&(me.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(me.wrapper):ie(me.wrapper)),me.viewFrom=me.viewTo=ae.first,me.reportedViewFrom=me.reportedViewTo=ae.first,me.view=[],me.renderedView=null,me.externalMeasured=null,me.viewOffset=0,me.lastWrapHeight=me.lastWrapWidth=0,me.updateLineNumbers=null,me.nativeBarWidth=me.barHeight=me.barWidth=0,me.scrollbarsClipped=!1,me.lineNumWidth=me.lineNumInnerWidth=me.lineNumChars=null,me.alignWidgets=!1,me.cachedCharWidth=me.cachedTextHeight=me.cachedPaddingH=null,me.maxLine=null,me.maxLineLength=0,me.maxLineChanged=!1,me.wheelDX=me.wheelDY=me.wheelStartX=me.wheelStartY=null,me.shift=!1,me.selForContextMenu=null,me.activeTouch=null,me.gutterSpecs=eo(de.gutters,de.lineNumbers),Ko(me),he.init(me)}var jr=0,gr=null;_e?gr=-.53:Se?gr=15:Lt?gr=-.7:gt&&(gr=-1/3);function Lr(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=Lr(ie);return ae.x*=gr,ae.y*=gr,ae}function Mo(ie,ae){var he=Lr(ae),de=he.x,me=he.y,Ne=ie.display,Ze=Ne.scroller,at=Ze.scrollWidth>Ze.clientWidth,rt=Ze.scrollHeight>Ze.clientHeight;if(de&&at||me&&rt){if(me&&ce&&ke){e:for(var Dt=ae.target,Dn=Ne.view;Dt!=Ze;Dt=Dt.parentNode)for(var Vt=0;Vt<Dn.length;Vt++)if(Dn[Vt].node==Dt){ie.display.currentWheelTarget=Dt;break e}}if(de&&!Se&&!et&&gr!=null){me&&rt&&Sa(ie,Math.max(0,Ze.scrollTop+me*gr)),Ha(ie,Math.max(0,Ze.scrollLeft+de*gr)),(!me||me&&rt)&&Wi(ae),Ne.wheelStartX=null;return}if(me&&gr!=null){var ri=me*gr,ei=ie.doc.scrollTop,tr=ei+Ne.wrapper.clientHeight;ri<0?ei=Math.max(0,ei+ri-50):tr=Math.min(ie.doc.height,tr+ri+50),Ar(ie,{top:ei,bottom:tr})}jr<20&&(Ne.wheelStartX==null?(Ne.wheelStartX=Ze.scrollLeft,Ne.wheelStartY=Ze.scrollTop,Ne.wheelDX=de,Ne.wheelDY=me,setTimeout(function(){if(Ne.wheelStartX!=null){var or=Ze.scrollLeft-Ne.wheelStartX,Cr=Ze.scrollTop-Ne.wheelStartY,Jr=Cr&&Ne.wheelDY&&Cr/Ne.wheelDY||or&&Ne.wheelDX&&or/Ne.wheelDX;Ne.wheelStartX=Ne.wheelStartY=null,Jr&&(gr=(gr*jr+Jr)/(jr+1),++jr)}},200)):(Ne.wheelDX+=de,Ne.wheelDY+=me))}}var No=function(ie,ae){this.ranges=ie,this.primIndex=ae};No.prototype.primary=function(){return this.ranges[this.primIndex]},No.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(!Ci(he.anchor,de.anchor)||!Ci(he.head,de.head))return!1}return!0},No.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new Mr(Si(this.ranges[ae].anchor),Si(this.ranges[ae].head));return new No(ie,this.primIndex)},No.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},No.prototype.contains=function(ie,ae){ae||(ae=ie);for(var he=0;he<this.ranges.length;he++){var de=this.ranges[he];if(Sn(ae,de.from())>=0&&Sn(ie,de.to())<=0)return he}return-1};var Mr=function(ie,ae){this.anchor=ie,this.head=ae};Mr.prototype.from=function(){return ti(this.anchor,this.head)},Mr.prototype.to=function(){return vi(this.anchor,this.head)},Mr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Vo(ie,ae,he){var de=ie&&ie.options.selectionsMayTouch,me=ae[he];ae.sort(function(ri,ei){return Sn(ri.from(),ei.from())}),he=Mt(ae,me);for(var Ne=1;Ne<ae.length;Ne++){var Ze=ae[Ne],at=ae[Ne-1],rt=Sn(at.to(),Ze.from());if(de&&!Ze.empty()?rt>0:rt>=0){var Dt=ti(at.from(),Ze.from()),Dn=vi(at.to(),Ze.to()),Vt=at.empty()?Ze.from()==Ze.head:at.from()==at.head;Ne<=he&&--he,ae.splice(--Ne,2,new Mr(Vt?Dn:Dt,Vt?Dt:Dn))}}return new No(ae,he)}function _o(ie,ae){return new No([new Mr(ie,ae||ie)],0)}function na(ie){return ie.text?zt(ie.from.line+ie.text.length-1,yt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function ta(ie,ae){if(Sn(ie,ae.from)<0)return ie;if(Sn(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 Qa(ie,ae){for(var he=[],de=0;de<ie.sel.ranges.length;de++){var me=ie.sel.ranges[de];he.push(new Mr(ta(me.anchor,ae),ta(me.head,ae)))}return Vo(ie.cm,he,ie.sel.primIndex)}function fa(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 Wo(ie,ae,he){for(var de=[],me=zt(ie.first,0),Ne=me,Ze=0;Ze<ae.length;Ze++){var at=ae[Ze],rt=fa(at.from,me,Ne),Dt=fa(na(at),me,Ne);if(me=at.to,Ne=Dt,he=="around"){var Dn=ie.sel.ranges[Ze],Vt=Sn(Dn.head,Dn.anchor)<0;de[Ze]=new Mr(Vt?Dt:rt,Vt?rt:Dt)}else de[Ze]=new Mr(rt,rt)}return new No(de,ie.sel.primIndex)}function wo(ie){ie.doc.mode=Pt(ie.options,ie.doc.modeOption),To(ie)}function To(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,Pi(ie,100),ie.state.modeGen++,ie.curOp&&ws(ie)}function Ya(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&yt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Ia(ie,ae,he,de){function me(Eo){return he?he[Eo]:null}function Ne(Eo,po,jo){to(Eo,po,jo,de),Vi(Eo,"change",Eo,ae)}function Ze(Eo,po){for(var jo=[],ua=Eo;ua<po;++ua)jo.push(new $r(Dt[ua],me(ua),de));return jo}var at=ae.from,rt=ae.to,Dt=ae.text,Dn=an(ie,at.line),Vt=an(ie,rt.line),ri=yt(Dt),ei=me(Dt.length-1),tr=rt.line-at.line;if(ae.full)ie.insert(0,Ze(0,Dt.length)),ie.remove(Dt.length,ie.size-Dt.length);else if(Ya(ie,ae)){var or=Ze(0,Dt.length-1);Ne(Vt,Vt.text,ei),tr&&ie.remove(at.line,tr),or.length&&ie.insert(at.line,or)}else if(Dn==Vt)if(Dt.length==1)Ne(Dn,Dn.text.slice(0,at.ch)+ri+Dn.text.slice(rt.ch),ei);else{var Cr=Ze(1,Dt.length-1);Cr.push(new $r(ri+Dn.text.slice(rt.ch),ei,de)),Ne(Dn,Dn.text.slice(0,at.ch)+Dt[0],me(0)),ie.insert(at.line+1,Cr)}else if(Dt.length==1)Ne(Dn,Dn.text.slice(0,at.ch)+Dt[0]+Vt.text.slice(rt.ch),me(0)),ie.remove(at.line+1,tr);else{Ne(Dn,Dn.text.slice(0,at.ch)+Dt[0],me(0)),Ne(Vt,ri+Vt.text.slice(rt.ch),ei);var Jr=Ze(1,Dt.length-1);tr>1&&ie.remove(at.line+1,tr-1),ie.insert(at.line+1,Jr)}Vi(ie,"change",ie,ae)}function ns(ie,ae,he){function de(me,Ne,Ze){if(me.linked)for(var at=0;at<me.linked.length;++at){var rt=me.linked[at];if(rt.doc!=Ne){var Dt=Ze&&rt.sharedHist;he&&!Dt||(ae(rt.doc,Dt),de(rt.doc,me,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||qr(ie),ie.options.mode=ae.modeOption,ws(ie)}function bo(ie){(ie.doc.direction=="rtl"?Ht:Ie)(ie.display.lineDiv,"CodeMirror-rtl")}function Zo(ie){gn(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 ao(ie,ae){var he={from:Si(ae.from),to:na(ae),text:Bt(ie,ae.from,ae.to)};return Al(ie,he,ae.from.line,ae.to.line+1),ns(ie,function(de){return Al(de,he,ae.from.line,ae.to.line+1)},!0),he}function qi(ie){for(;ie.length;){var ae=yt(ie);if(ae.ranges)ie.pop();else break}}function Zr(ie,ae){if(ae)return qi(ie.done),yt(ie.done);if(ie.done.length&&!yt(ie.done).ranges)return yt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),yt(ie.done)}function Uo(ie,ae,he,de){var me=ie.history;me.undone.length=0;var Ne=+new Date,Ze,at;if((me.lastOp==de||me.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&me.lastModTime>Ne-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Ze=Zr(me,me.lastOp==de)))at=yt(Ze.changes),Sn(ae.from,ae.to)==0&&Sn(ae.from,at.to)==0?at.to=na(ae):Ze.changes.push(ao(ie,ae));else{var rt=yt(me.done);for((!rt||!rt.ranges)&&zs(ie.sel,me.done),Ze={changes:[ao(ie,ae)],generation:me.generation},me.done.push(Ze);me.done.length>me.undoDepth;)me.done.shift(),me.done[0].ranges||me.done.shift()}me.done.push(he),me.generation=++me.maxGeneration,me.lastModTime=me.lastSelTime=Ne,me.lastOp=me.lastSelOp=de,me.lastOrigin=me.lastSelOrigin=ae.origin,at||rn(ie,"historyAdded")}function sa(ie,ae,he,de){var me=ae.charAt(0);return me=="*"||me=="+"&&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 me=ie.history,Ne=de&&de.origin;he==me.lastSelOp||Ne&&me.lastSelOrigin==Ne&&(me.lastModTime==me.lastSelTime&&me.lastOrigin==Ne||sa(ie,Ne,yt(me.done),ae))?me.done[me.done.length-1]=ae:zs(ae,me.done),me.lastSelTime=+new Date,me.lastSelOrigin=Ne,me.lastSelOp=he,de&&de.clearRedo!==!1&&qi(me.undone)}function zs(ie,ae){var he=yt(ae);he&&he.ranges&&he.equals(ie)||ae.push(ie)}function Al(ie,ae,he,de){var me=ae["spans_"+ie.id],Ne=0;ie.iter(Math.max(ie.first,he),Math.min(ie.first+ie.size,de),function(Ze){Ze.markedSpans&&((me||(me=ae["spans_"+ie.id]={}))[Ne]=Ze.markedSpans),++Ne})}function ka(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 Ua(ie,ae){var he=ae["spans_"+ie.id];if(!he)return null;for(var de=[],me=0;me<ae.text.length;++me)de.push(ka(he[me]));return de}function Do(ie,ae){var he=Ua(ie,ae),de=hr(ie,ae);if(!he)return de;if(!de)return he;for(var me=0;me<he.length;++me){var Ne=he[me],Ze=de[me];if(Ne&&Ze)e:for(var at=0;at<Ze.length;++at){for(var rt=Ze[at],Dt=0;Dt<Ne.length;++Dt)if(Ne[Dt].marker==rt.marker)continue e;Ne.push(rt)}else Ze&&(he[me]=Ze)}return he}function Vs(ie,ae,he){for(var de=[],me=0;me<ie.length;++me){var Ne=ie[me];if(Ne.ranges){de.push(he?No.prototype.deepCopy.call(Ne):Ne);continue}var Ze=Ne.changes,at=[];de.push({changes:at});for(var rt=0;rt<Ze.length;++rt){var Dt=Ze[rt],Dn=void 0;if(at.push({from:Dt.from,to:Dt.to,text:Dt.text}),ae)for(var Vt in Dt)(Dn=Vt.match(/^spans_(\d+)$/))&&Mt(ae,Number(Dn[1]))>-1&&(yt(at)[Vt]=Dt[Vt],delete Dt[Vt])}}return de}function Ll(ie,ae,he,de){if(de){var me=ie.anchor;if(he){var Ne=Sn(ae,me)<0;Ne!=Sn(he,me)<0?(me=ae,ae=he):Ne!=Sn(ae,he)<0&&(ae=he)}return new Mr(me,ae)}else return new Mr(he||ae,ae)}function Wa(ie,ae,he,de,me){me==null&&(me=ie.cm&&(ie.cm.display.shift||ie.extend)),ss(ie,new No([Ll(ie.sel.primary(),ae,he,me)],0),de)}function _a(ie,ae,he){for(var de=[],me=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,me);var Ze=Vo(ie.cm,de,ie.sel.primIndex);ss(ie,Ze,he)}function is(ie,ae,he,de){var me=ie.sel.ranges.slice(0);me[ae]=he,ss(ie,Vo(ie.cm,me,ie.sel.primIndex),de)}function bs(ie,ae,he,de){ss(ie,_o(ae,he),de)}function Gs(ie,ae,he){var de={ranges:ae.ranges,update:function(me){this.ranges=[];for(var Ne=0;Ne<me.length;Ne++)this.ranges[Ne]=new Mr(Ni(ie,me[Ne].anchor),Ni(ie,me[Ne].head))},origin:he&&he.origin};return rn(ie,"beforeSelectionChange",ie,de),ie.cm&&rn(ie.cm,"beforeSelectionChange",ie.cm,de),de.ranges!=ae.ranges?Vo(ie.cm,de.ranges,de.ranges.length-1):ae}function xa(ie,ae,he){var de=ie.history.done,me=yt(de);me&&me.ranges?(de[de.length-1]=ae,Js(ie,ae,he)):ss(ie,ae,he)}function ss(ie,ae,he){Js(ie,ae,he),al(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,he)}function Js(ie,ae,he){(wi(ie,"beforeSelectionChange")||ie.cm&&wi(ie.cm,"beforeSelectionChange"))&&(ae=Gs(ie,ae,he));var de=he&&he.bias||(Sn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Xa(ie,Ms(ie,ae,de,!0)),!(he&&he.scroll===!1)&&ie.cm&&vo(ie.cm)}function Xa(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,mi(ie.cm)),Vi(ie,"cursorActivity",ie))}function zo(ie){Xa(ie,Ms(ie,ie.sel,null,!1))}function Ms(ie,ae,he,de){for(var me,Ne=0;Ne<ae.ranges.length;Ne++){var Ze=ae.ranges[Ne],at=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Ne],rt=Wu(ie,Ze.anchor,at&&at.anchor,he,de),Dt=Wu(ie,Ze.head,at&&at.head,he,de);(me||rt!=Ze.anchor||Dt!=Ze.head)&&(me||(me=ae.ranges.slice(0,Ne)),me[Ne]=new Mr(rt,Dt))}return me?Vo(ie.cm,me,ae.primIndex):ae}function Ys(ie,ae,he,de,me){var Ne=an(ie,ae.line);if(Ne.markedSpans)for(var Ze=0;Ze<Ne.markedSpans.length;++Ze){var at=Ne.markedSpans[Ze],rt=at.marker,Dt="selectLeft"in rt?!rt.selectLeft:rt.inclusiveLeft,Dn="selectRight"in rt?!rt.selectRight:rt.inclusiveRight;if((at.from==null||(Dt?at.from<=ae.ch:at.from<ae.ch))&&(at.to==null||(Dn?at.to>=ae.ch:at.to>ae.ch))){if(me&&(rn(rt,"beforeCursorEnter"),rt.explicitlyCleared))if(Ne.markedSpans){--Ze;continue}else break;if(!rt.atomic)continue;if(he){var Vt=rt.find(de<0?1:-1),ri=void 0;if((de<0?Dn:Dt)&&(Vt=vu(ie,Vt,-de,Vt&&Vt.line==ae.line?Ne:null)),Vt&&Vt.line==ae.line&&(ri=Sn(Vt,he))&&(de<0?ri<0:ri>0))return Ys(ie,Vt,ae,de,me)}var ei=rt.find(de<0?-1:1);return(de<0?Dt:Dn)&&(ei=vu(ie,ei,de,ei.line==ae.line?Ne:null)),ei?Ys(ie,ei,ae,de,me):null}}return ae}function Wu(ie,ae,he,de,me){var Ne=de||1,Ze=Ys(ie,ae,he,Ne,me)||!me&&Ys(ie,ae,he,Ne,!0)||Ys(ie,ae,he,-Ne,me)||!me&&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?Ni(ie,zt(ae.line-1)):null:he>0&&ae.ch==(de||an(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 $a(ie){ie.setSelection(zt(ie.firstLine(),0),zt(ie.lastLine()),kt)}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(me,Ne,Ze,at){me&&(de.from=Ni(ie,me)),Ne&&(de.to=Ni(ie,Ne)),Ze&&(de.text=Ze),at!==void 0&&(de.origin=at)}),rn(ie,"beforeChange",ie,de),ie.cm&&rn(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 Xn(ie.cm,Ps)(ie,ae,he);if(ie.cm.state.suppressEdits)return}if(!((wi(ie,"beforeChange")||ie.cm&&wi(ie.cm,"beforeChange"))&&(ae=Ml(ie,ae,!0),!ae))){var de=er&&!he&&Vr(ie,ae.from,ae.to);if(de)for(var me=de.length-1;me>=0;--me)ps(ie,{from:de[me].from,to:de[me].to,text:me?[""]:ae.text,origin:ae.origin});else ps(ie,ae)}}function ps(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&Sn(ae.from,ae.to)==0)){var he=Qa(ie,ae);Uo(ie,ae,he,ie.cm?ie.cm.curOp.id:NaN),ql(ie,ae,he,hr(ie,ae));var de=[];ns(ie,function(me,Ne){!Ne&&Mt(de,me.history)==-1&&(ls(me.history,ae),de.push(me.history)),ql(me,ae,null,hr(me,ae))})}}function ku(ie,ae,he){var de=ie.cm&&ie.cm.state.suppressEdits;if(!(de&&!he)){for(var me=ie.history,Ne,Ze=ie.sel,at=ae=="undo"?me.done:me.undone,rt=ae=="undo"?me.undone:me.done,Dt=0;Dt<at.length&&(Ne=at[Dt],!(he?Ne.ranges&&!Ne.equals(ie.sel):!Ne.ranges));Dt++);if(Dt!=at.length){for(me.lastOrigin=me.lastSelOrigin=null;;)if(Ne=at.pop(),Ne.ranges){if(zs(Ne,rt),he&&!Ne.equals(ie.sel)){ss(ie,Ne,{clearRedo:!1});return}Ze=Ne}else if(de){at.push(Ne);return}else break;var Dn=[];zs(Ze,rt),rt.push({changes:Dn,generation:me.generation}),me.generation=Ne.generation||++me.maxGeneration;for(var Vt=wi(ie,"beforeChange")||ie.cm&&wi(ie.cm,"beforeChange"),ri=function(or){var Cr=Ne.changes[or];if(Cr.origin=ae,Vt&&!Ml(ie,Cr,!1))return at.length=0,{};Dn.push(ao(ie,Cr));var Jr=or?Qa(ie,Cr):yt(at);ql(ie,Cr,Jr,Do(ie,Cr)),!or&&ie.cm&&ie.cm.scrollIntoView({from:Cr.from,to:na(Cr)});var Eo=[];ns(ie,function(po,jo){!jo&&Mt(Eo,po.history)==-1&&(ls(po.history,Cr),Eo.push(po.history)),ql(po,Cr,null,Do(po,Cr))})},ei=Ne.changes.length-1;ei>=0;--ei){var tr=ri(ei);if(tr)return tr.v}}}}function Cc(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new No(Jn(ie.sel.ranges,function(me){return new Mr(zt(me.anchor.line+ae,me.anchor.ch),zt(me.head.line+ae,me.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++)ya(ie.cm,de,"gutter")}}function ql(ie,ae,he,de){if(ie.cm&&!ie.cm.curOp)return Xn(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 me=ae.text.length-1-(ie.first-ae.from.line);Cc(ie,me),ae={from:zt(ie.first,0),to:zt(ae.to.line+me,ae.to.ch),text:[yt(ae.text)],origin:ae.origin}}var Ne=ie.lastLine();ae.to.line>Ne&&(ae={from:ae.from,to:zt(Ne,an(ie,Ne).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=Bt(ie,ae.from,ae.to),he||(he=Qa(ie,ae)),ie.cm?ac(ie.cm,ae,de):Ia(ie,ae,de),Js(ie,he,kt),ie.cantEdit&&Wu(ie,zt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function ac(ie,ae,he){var de=ie.doc,me=ie.display,Ne=ae.from,Ze=ae.to,at=!1,rt=Ne.line;ie.options.lineWrapping||(rt=Et(qn(an(de,Ne.line))),de.iter(rt,Ze.line+1,function(ei){if(ei==me.maxLine)return at=!0,!0})),de.sel.contains(ae.from,ae.to)>-1&&mi(ie),Ia(de,ae,he,Os(ie)),ie.options.lineWrapping||(de.iter(rt,Ne.line+ae.text.length,function(ei){var tr=Ao(ei);tr>me.maxLineLength&&(me.maxLine=ei,me.maxLineLength=tr,me.maxLineChanged=!0,at=!1)}),at&&(ie.curOp.updateMaxLine=!0)),Qi(de,Ne.line),Pi(ie,400);var Dt=ae.text.length-(Ze.line-Ne.line)-1;ae.full?ws(ie):Ne.line==Ze.line&&ae.text.length==1&&!Ya(ie.doc,ae)?ya(ie,Ne.line,"text"):ws(ie,Ne.line,Ze.line+1,Dt);var Dn=wi(ie,"changes"),Vt=wi(ie,"change");if(Vt||Dn){var ri={from:Ne,to:Ze,text:ae.text,removed:ae.removed,origin:ae.origin};Vt&&Vi(ie,"change",ie,ri),Dn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(ri)}ie.display.selForContextMenu=null}function sc(ie,ae,he,de,me){var Ne;de||(de=he),Sn(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:me})}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 me=0;me<ie.length;++me){var Ne=ie[me],Ze=!0;if(Ne.ranges){Ne.copied||(Ne=ie[me]=Ne.deepCopy(),Ne.copied=!0);for(var at=0;at<Ne.ranges.length;at++)yu(Ne.ranges[at].anchor,ae,he,de),yu(Ne.ranges[at].head,ae,he,de);continue}for(var rt=0;rt<Ne.changes.length;++rt){var Dt=Ne.changes[rt];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,me+1),me=0)}}function ls(ie,ae){var he=ae.from.line,de=ae.to.line,me=ae.text.length-(de-he)-1;Ra(ie.done,he,de,me),Ra(ie.undone,he,de,me)}function Qs(ie,ae,he,de){var me=ae,Ne=ae;return typeof ae=="number"?Ne=an(ie,xi(ie,ae)):me=Et(ae),me==null?null:(de(Ne,me)&&ie.cm&&ya(ie.cm,me,he),Ne)}function ms(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}ms.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var he=ie,de=ie+ae;he<de;++he){var me=this.lines[he];this.height-=me.height,$o(me),Vi(me,"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 me=ie[de];ae+=me.chunkSize(),he+=me.height,me.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],me=de.chunkSize();if(ie<me){var Ne=Math.min(ae,me-ie),Ze=de.height;if(de.removeInner(ie,Ne),this.height-=Ze-de.height,me==Ne&&(this.children.splice(he--,1),de.parent=null),(ae-=Ne)==0)break;ie=0}else ie-=me}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof ms))){var at=[];this.collapse(at),this.children=[new ms(at)],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 me=this.children[de],Ne=me.chunkSize();if(ie<=Ne){if(me.insertInner(ie,ae,he),me.lines&&me.lines.length>50){for(var Ze=me.lines.length%25+25,at=Ze;at<me.lines.length;){var rt=new ms(me.lines.slice(at,at+=25));me.height-=rt.height,this.children.splice(++de,0,rt),rt.parent=this}me.lines=me.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 me=Mt(ie.parent.children,ie);ie.parent.children.splice(me+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 me=this.children[de],Ne=me.chunkSize();if(ie<Ne){var Ze=Math.min(ae,Ne-ie);if(me.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=Et(he);if(!(de==null||!ae)){for(var me=0;me<ae.length;++me)ae[me]==this&&ae.splice(me--,1);ae.length||(he.widgets=null);var Ne=il(this);cn(he,Math.max(0,he.height-Ne)),ie&&(gn(ie,function(){Rl(ie,he,-Ne),ya(ie,de,"widget")}),Vi(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 me=il(this)-ae;me&&(zn(this.doc,de)||cn(de,de.height+me),he&&gn(he,function(){he.curOp.forceUpdate=!0,Rl(he,de,me),Vi(he,"lineWidgetChanged",he,ie,Et(de))}))},Ri(_s);function Rl(ie,ae,he){Gr(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&mo(ie,he)}function Zu(ie,ae,he,de){var me=new _s(ie,he,de),Ne=ie.cm;return Ne&&me.noHScroll&&(Ne.display.alignWidgets=!0),Qs(ie,ae,"widget",function(Ze){var at=Ze.widgets||(Ze.widgets=[]);if(me.insertAt==null?at.push(me):at.splice(Math.min(at.length-1,Math.max(0,me.insertAt)),0,me),me.line=Ze,Ne&&!zn(ie,Ze)){var rt=Gr(Ze)<ie.scrollTop;cn(Ze,Ze.height+il(me)),rt&&mo(Ne,me.height),Ne.curOp.forceUpdate=!0}return!0}),Ne&&Vi(Ne,"lineWidgetAdded",Ne,me,typeof ae=="number"?ae:Et(ae)),me}var uh=0,pn=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++uh};pn.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&Oa(ie),wi(this,"clear")){var he=this.find();he&&Vi(this,"clear",he.from,he.to)}for(var de=null,me=null,Ne=0;Ne<this.lines.length;++Ne){var Ze=this.lines[Ne],at=Qr(Ze.markedSpans,this);ie&&!this.collapsed?ya(ie,Et(Ze),"text"):ie&&(at.to!=null&&(me=Et(Ze)),at.from!=null&&(de=Et(Ze))),Ze.markedSpans=vr(Ze.markedSpans,at),at.from==null&&this.collapsed&&!zn(this.doc,Ze)&&ie&&cn(Ze,$l(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var rt=0;rt<this.lines.length;++rt){var Dt=qn(this.lines[rt]),Dn=Ao(Dt);Dn>ie.display.maxLineLength&&(ie.display.maxLine=Dt,ie.display.maxLineLength=Dn,ie.display.maxLineChanged=!0)}de!=null&&ie&&this.collapsed&&ws(ie,de,me+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&zo(ie.doc)),ie&&Vi(ie,"markerCleared",ie,this,de,me),ae&&Rs(ie),this.parent&&this.parent.clear()}},pn.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var he,de,me=0;me<this.lines.length;++me){var Ne=this.lines[me],Ze=Qr(Ne.markedSpans,this);if(Ze.from!=null&&(he=zt(ae?Ne:Et(Ne),Ze.from),ie==-1))return he;if(Ze.to!=null&&(de=zt(ae?Ne:Et(Ne),Ze.to),ie==1))return de}return he&&{from:he,to:de}},pn.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),he=this,de=this.doc.cm;!ae||!de||gn(de,function(){var me=ae.line,Ne=Et(ae.line),Ze=zl(de,Ne);if(Ze&&(dl(Ze),de.curOp.selectionChanged=de.curOp.forceUpdate=!0),de.curOp.updateMaxLine=!0,!zn(he.doc,me)&&he.height!=null){var at=he.height;he.height=null;var rt=il(he)-at;rt&&cn(me,me.height+rt)}Vi(de,"markerChanged",de,ie)})},pn.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||Mt(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},pn.prototype.detachLine=function(ie){if(this.lines.splice(Mt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},Ri(pn);function Rc(ie,ae,he,de,me){if(de&&de.shared)return jh(ie,ae,he,de,me);if(ie.cm&&!ie.cm.curOp)return Xn(ie.cm,Rc)(ie,ae,he,de,me);var Ne=new pn(ie,me),Ze=Sn(ae,he);if(de&&Qt(de,Ne,!1),Ze>0||Ze==0&&Ne.clearWhenEmpty!==!1)return Ne;if(Ne.replacedWith&&(Ne.collapsed=!0,Ne.widgetNode=ht("span",[Ne.replacedWith],"CodeMirror-widget"),de.handleMouseEvents||Ne.widgetNode.setAttribute("cm-ignore-events","true"),de.insertLeft&&(Ne.widgetNode.insertLeft=!0)),Ne.collapsed){if(ai(ie,ae.line,ae,he,Ne)||ae.line!=he.line&&ai(ie,he.line,ae,he,Ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ln()}Ne.addToHistory&&Uo(ie,{from:ae,to:he,origin:"markText"},ie.sel,NaN);var at=ae.line,rt=ie.cm,Dt;if(ie.iter(at,he.line+1,function(Vt){rt&&Ne.collapsed&&!rt.options.lineWrapping&&qn(Vt)==rt.display.maxLine&&(Dt=!0),Ne.collapsed&&at!=ae.line&&cn(Vt,0),Ho(Vt,new pr(Ne,at==ae.line?ae.ch:null,at==he.line?he.ch:null)),++at}),Ne.collapsed&&ie.iter(ae.line,he.line+1,function(Vt){zn(ie,Vt)&&cn(Vt,0)}),Ne.clearOnEnter&&nt(Ne,"beforeCursorEnter",function(){return Ne.clear()}),Ne.readOnly&&(Dr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Ne.collapsed&&(Ne.id=++uh,Ne.atomic=!0),rt){if(Dt&&(rt.curOp.updateMaxLine=!0),Ne.collapsed)ws(rt,ae.line,he.line+1);else if(Ne.className||Ne.startStyle||Ne.endStyle||Ne.css||Ne.attributes||Ne.title)for(var Dn=ae.line;Dn<=he.line;Dn++)ya(rt,Dn,"text");Ne.atomic&&zo(rt.doc),Vi(rt,"markerAdded",rt,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();Vi(this,"clear")}},bc.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},Ri(bc);function jh(ie,ae,he,de,me){de=Qt(de),de.shared=!1;var Ne=[Rc(ie,ae,he,de,me)],Ze=Ne[0],at=de.widgetNode;return ns(ie,function(rt){at&&(de.widgetNode=at.cloneNode(!0)),Ne.push(Rc(rt,Ni(rt,ae),Ni(rt,he),de,me));for(var Dt=0;Dt<rt.linked.length;++Dt)if(rt.linked[Dt].isParent)return;Ze=yt(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],me=de.find(),Ne=ie.clipPos(me.from),Ze=ie.clipPos(me.to);if(Sn(Ne,Ze)){var at=Rc(ie,Ne,Ze,de.primary,de.primary.type);de.markers.push(at),at.parent=de}}}function zc(ie){for(var ae=function(de){var me=ie[de],Ne=[me.primary.doc];ns(me.primary.doc,function(rt){return Ne.push(rt)});for(var Ze=0;Ze<me.markers.length;Ze++){var at=me.markers[Ze];Mt(Ne,at.doc)==-1&&(at.parent=null,me.markers.splice(Ze--,1))}},he=0;he<ie.length;he++)ae(he)}var gf=0,Nl=function(ie,ae,he,de,me){if(!(this instanceof Nl))return new Nl(ie,ae,he,de,me);he==null&&(he=0),za.call(this,[new ms([new $r("",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=me=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Ia(this,{from:Ne,to:Ne,text:ie}),ss(this,_o(Ne),kt)};Nl.prototype=Tn(za.prototype,{constructor:Nl,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=jn(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,an(this,he).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&fo(this.cm,0,0),ss(this,_o(ae),kt)}),replaceRange:function(ie,ae,he,de){ae=Ni(this,ae),he=he?Ni(this,he):ae,sc(this,ie,ae,he,de)},getRange:function(ie,ae,he){var de=Bt(this,Ni(this,ie),Ni(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(Qn(this,ie))return an(this,ie)},getLineNumber:function(ie){return Et(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=an(this,ie)),qn(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Ni(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,Ni(this,typeof ie=="number"?zt(ie,ae||0):ie),null,he)}),setSelection:Vn(function(ie,ae,he){bs(this,Ni(this,ie),Ni(this,ae||ie),he)}),extendSelection:Vn(function(ie,ae,he){Wa(this,Ni(this,ie),ae&&Ni(this,ae),he)}),extendSelections:Vn(function(ie,ae){_a(this,cr(this,ie),ae)}),extendSelectionsBy:Vn(function(ie,ae){var he=Jn(this.sel.ranges,ie);_a(this,cr(this,he),ae)}),setSelections:Vn(function(ie,ae,he){if(ie.length){for(var de=[],me=0;me<ie.length;me++)de[me]=new Mr(Ni(this,ie[me].anchor),Ni(this,ie[me].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),ss(this,Vo(this.cm,de,ae),he)}}),addSelection:Vn(function(ie,ae,he){var de=this.sel.ranges.slice(0);de.push(new Mr(Ni(this,ie),Ni(this,ae||ie))),ss(this,Vo(this.cm,de,de.length-1),he)}),getSelection:function(ie){for(var ae=this.sel.ranges,he,de=0;de<ae.length;de++){var me=Bt(this,ae[de].from(),ae[de].to());he=he?he.concat(me):me}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 me=Bt(this,he[de].from(),he[de].to());ie!==!1&&(me=me.join(ie||this.lineSeparator())),ae[de]=me}return ae},replaceSelection:function(ie,ae,he){for(var de=[],me=0;me<this.sel.ranges.length;me++)de[me]=ie;this.replaceSelections(de,ae,he||"+input")},replaceSelections:Vn(function(ie,ae,he){for(var de=[],me=this.sel,Ne=0;Ne<me.ranges.length;Ne++){var Ze=me.ranges[Ne];de[Ne]={from:Ze.from(),to:Ze.to(),text:this.splitLines(ie[Ne]),origin:he}}for(var at=ae&&ae!="end"&&Wo(this,de,ae),rt=de.length-1;rt>=0;rt--)Ps(this,de[rt]);at?xa(this,at):this.cm&&vo(this.cm)}),undo:Vn(function(){ku(this,"undo")}),redo:Vn(function(){ku(this,"redo")}),undoSelection:Vn(function(){ku(this,"undo",!0)}),redoSelection:Vn(function(){ku(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 me=0;me<ie.undone.length;me++)ie.undone[me].ranges||++he;return{undo:ae,redo:he}},clearHistory:function(){var ie=this;this.history=new xo(this.history.maxGeneration),ns(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 me=de.gutterMarkers||(de.gutterMarkers={});return me[ae]=he,!he&&Je(me)&&(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,Je(he.gutterMarkers)&&(he.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!Qn(this,ie)||(ae=ie,ie=an(this,ie),!ie))return null}else if(ae=Et(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 me=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!de[me])de[me]=he;else{if(Pe(he).test(de[me]))return!1;de[me]+=" "+he}return!0})}),removeLineClass:Vn(function(ie,ae,he){return Qs(this,ie,ae=="gutter"?"gutter":"class",function(de){var me=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Ne=de[me];if(Ne)if(he==null)de[me]=null;else{var Ze=Ne.match(Pe(he));if(!Ze)return!1;var at=Ze.index+Ze[0].length;de[me]=Ne.slice(0,Ze.index)+(!Ze.index||at==Ne.length?"":" ")+Ne.slice(at)||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,Ni(this,ie),Ni(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=Ni(this,ie),Rc(this,ie,ie,he,"bookmark")},findMarksAt:function(ie){ie=Ni(this,ie);var ae=[],he=an(this,ie.line).markedSpans;if(he)for(var de=0;de<he.length;++de){var me=he[de];(me.from==null||me.from<=ie.ch)&&(me.to==null||me.to>=ie.ch)&&ae.push(me.marker.parent||me.marker)}return ae},findMarks:function(ie,ae,he){ie=Ni(this,ie),ae=Ni(this,ae);var de=[],me=ie.line;return this.iter(ie.line,ae.line+1,function(Ne){var Ze=Ne.markedSpans;if(Ze)for(var at=0;at<Ze.length;at++){var rt=Ze[at];!(rt.to!=null&&me==ie.line&&ie.ch>=rt.to||rt.from==null&&me!=ie.line||rt.from!=null&&me==ae.line&&rt.from>=ae.ch)&&(!he||he(rt.marker))&&de.push(rt.marker.parent||rt.marker)}++me}),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(me){var Ne=me.text.length+de;if(Ne>ie)return ae=ie,!0;ie-=Ne,++he}),Ni(this,zt(he,ae))},indexFromPos:function(ie){ie=Ni(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 Nl(jn(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 Nl(jn(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 cs&&(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];ns(ie,function(me){return de.push(me.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){ns(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):$n(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&&Zo(this.cm))})}),Nl.prototype.eachLine=Nl.prototype.iter;var fd=0;function Wd(ie){var ae=this;if(pf(ae),!(vn(ae,ie)||kl(ae.display,ie))){Wi(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 me=de.length,Ne=Array(me),Ze=0,at=function(){++Ze==me&&Xn(ae,function(){he=Ni(ae.doc,he);var ei={from:he,to:he,text:ae.doc.splitLines(Ne.filter(function(tr){return tr!=null}).join(ae.doc.lineSeparator())),origin:"paste"};Ps(ae.doc,ei),xa(ae.doc,_o(Ni(ae.doc,he),Ni(ae.doc,na(ei))))})()},rt=function(ei,tr){if(ae.options.allowDropFileTypes&&Mt(ae.options.allowDropFileTypes,ei.type)==-1){at();return}var or=new FileReader;or.onerror=function(){return at()},or.onload=function(){var Cr=or.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Cr)){at();return}Ne[tr]=Cr,at()},or.readAsText(ei)},Dt=0;Dt<de.length;Dt++)rt(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 Dn=ie.dataTransfer.getData("Text");if(Dn){var Vt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(Vt=ae.listSelections()),Js(ae.doc,_o(he,he)),Vt)for(var ri=0;ri<Vt.length;++ri)sc(ae.doc,"",Vt[ri].anchor,Vt[ri].head,"drag");ae.replaceSelection(Dn,"around","paste"),ae.display.input.focus()}}catch(ei){}}}}function Zd(ie,ae){if(_e&&(!ie.state.draggingText||+new Date-fd<100)){Wr(ae);return}if(!(vn(ie,ae)||kl(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!gt)){var he=Xe("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=Xe("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 me=ae[de].CodeMirror;me&&he.push(me)}he.length&&he[0].operation(function(){for(var Ne=0;Ne<he.length;Ne++)ie(he[Ne])})}}var Gd=!1;function Nu(){Gd||($c(),Gd=!0)}function $c(){var ie;nt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,Vd(Hh)},100))}),nt(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,me,Ne,Ze=0;Ze<ae.length-1;Ze++){var at=ae[Ze];if(/^(cmd|meta|m)$/i.test(at))Ne=!0;else if(/^a(lt)?$/i.test(at))he=!0;else if(/^(c|ctrl|control)$/i.test(at))de=!0;else if(/^s(hift)?$/i.test(at))me=!0;else throw new Error("Unrecognized modifier name: "+at)}return he&&(ie="Alt-"+ie),de&&(ie="Ctrl-"+ie),Ne&&(ie="Cmd-"+ie),me&&(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 me=Jn(he.split(" "),ch),Ne=0;Ne<me.length;Ne++){var Ze=void 0,at=void 0;Ne==me.length-1?(at=me.join(" "),Ze=de):(at=me.slice(0,Ne+1).join(" "),Ze="...");var rt=ae[at];if(!rt)ae[at]=Ze;else if(rt!=Ze)throw new Error("Inconsistent bindings for "+at)}delete ie[he]}for(var Dt in ae)ie[Dt]=ae[Dt];return ie}function Su(ie,ae,he,de){ae=jc(ae);var me=ae.call?ae.call(ie,de):ae[ie];if(me===!1)return"nothing";if(me==="...")return"multi";if(me!=null&&he(me))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),(be?ae.metaKey:ae.ctrlKey)&&de!="Ctrl"&&(ie="Ctrl-"+ie),(be?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=[],me=0;me<he.length;me++){for(var Ne=ae(he[me]);de.length&&Sn(Ne.from,yt(de).to)<=0;){var Ze=de.pop();if(Sn(Ze.from,Ne.from)<0){Ne.from=Ze.from;break}}de.push(Ne)}gn(ie,function(){for(var at=de.length-1;at>=0;at--)sc(ie.doc,"",de[at].from,de[at].to,"+delete");vo(ie)})}function Xd(ie,ae,he){var de=lt(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 Va(ie,ae,he,de,me){if(ie){ae.doc.direction=="rtl"&&(me=-me);var Ne=ze(he,ae.doc.direction);if(Ne){var Ze=me<0?yt(Ne):Ne[0],at=me<0==(Ze.level==1),rt=at?"after":"before",Dt;if(Ze.level>0||ae.doc.direction=="rtl"){var Dn=xl(ae,he);Dt=me<0?he.text.length-1:0;var Vt=Tl(ae,Dn,Dt).top;Dt=Ge(function(ri){return Tl(ae,Dn,ri).top==Vt},me<0==(Ze.level==1)?Ze.from:Ze.to-1,Dt),rt=="before"&&(Dt=Xd(he,Dt,1))}else Dt=me<0?Ze.to:Ze.from;return new zt(de,Dt,rt)}}return new zt(de,me<0?he.text.length:0,me<0?"before":"after")}function Es(ie,ae,he,de){var me=ze(ae,ie.doc.direction);if(!me)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=pe(me,he.ch,he.sticky),Ze=me[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 at=function(Jr,Eo){return Xd(ae,Jr instanceof zt?Jr.ch:Jr,Eo)},rt,Dt=function(Jr){return ie.options.lineWrapping?(rt=rt||xl(ie,ae),Lu(ie,ae,rt,Jr)):{begin:0,end:ae.text.length}},Dn=Dt(he.sticky=="before"?at(he,-1):he.ch);if(ie.doc.direction=="rtl"||Ze.level==1){var Vt=Ze.level==1==de<0,ri=at(he,Vt?1:-1);if(ri!=null&&(Vt?ri<=Ze.to&&ri<=Dn.end:ri>=Ze.from&&ri>=Dn.begin)){var ei=Vt?"before":"after";return new zt(he.line,ri,ei)}}var tr=function(Jr,Eo,po){for(var jo=function($s,Ul){return Ul?new zt(he.line,at($s,1),"before"):new zt(he.line,$s,"after")};Jr>=0&&Jr<me.length;Jr+=Eo){var ua=me[Jr],uo=Eo>0==(ua.level!=1),Ma=uo?po.begin:at(po.end,-1);if(ua.from<=Ma&&Ma<ua.to||(Ma=uo?ua.from:at(ua.to,-1),po.begin<=Ma&&Ma<po.end))return jo(Ma,uo)}},or=tr(Ne+de,de,Dn);if(or)return or;var Cr=de>0?Dn.end:at(Dn.begin,-1);return Cr!=null&&!(de>0&&Cr==ae.text.length)&&(or=tr(de>0?0:me.length-1,de,Dt(Cr)),or)?or:null}var Dl={selectAll:$a,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),kt)},killLine:function(ie){return Hl(ie,function(ae){if(ae.empty()){var he=an(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:Ni(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")},ln)},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")},ln)},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},ln)},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,me=0;me<he.length;me++){var Ne=he[me].from(),Ze=dt(ie.getLine(Ne.line),Ne.ch,de);ae.push(Kn(de-Ze%de))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return gn(ie,function(){for(var ae=ie.listSelections(),he=[],de=0;de<ae.length;de++)if(ae[de].empty()){var me=ae[de].head,Ne=an(ie.doc,me.line).text;if(Ne){if(me.ch==Ne.length&&(me=new zt(me.line,me.ch-1)),me.ch>0)me=new zt(me.line,me.ch+1),ie.replaceRange(Ne.charAt(me.ch-1)+Ne.charAt(me.ch-2),zt(me.line,me.ch-2),me,"+transpose");else if(me.line>ie.doc.first){var Ze=an(ie.doc,me.line-1).text;Ze&&(me=new zt(me.line,1),ie.replaceRange(Ne.charAt(0)+ie.doc.lineSeparator()+Ze.charAt(Ze.length-1),zt(me.line-1,Ze.length-1),me,"+transpose"))}}he.push(new Mr(me,me))}ie.setSelections(he)})},newlineAndIndent:function(ie){return gn(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=an(ie.doc,ae),de=qn(he);return de!=he&&(ae=Et(de)),Va(!0,ie,de,ae,1)}function Bu(ie,ae){var he=an(ie.doc,ae),de=Oi(he);return de!=he&&(ae=Et(de)),Va(!0,ie,he,ae,-1)}function hh(ie,ae){var he=Du(ie,ae.line),de=an(ie.doc,he.line),me=ze(de,ie.doc.direction);if(!me||me[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,me=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),he&&(ie.display.shift=!1),me=ae(ie)!=mn}finally{ie.display.shift=de,ie.state.suppressEdits=!1}return me}function Jd(ie,ae,he){for(var de=0;de<ie.state.keyMaps.length;de++){var me=Su(ae,ie.state.keyMaps[de],he,ie);if(me)return me}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 me=ie.state.keySeq;if(me){if(Ed(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Qu.set(50,function(){ie.state.keySeq==me&&(ie.state.keySeq=null,ie.display.input.reset())}),mf(ie,me+" "+ae,he,de))return!0}return mf(ie,ae,he,de)}function mf(ie,ae,he,de){var me=Jd(ie,ae,de);return me=="multi"&&(ie.state.keySeq=ae),me=="handled"&&Vi(ie,"keyHandled",ie,ae,he),(me=="handled"||me=="multi")&&(Wi(he),ui(ie)),!!me}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=qe(),!vn(ae,ie))){_e&&vt<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&&!hi&&(ce?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),Se&&!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;Ht(ae,"CodeMirror-crosshair");function he(de){(de.keyCode==18||!de.altKey)&&(Ie(ae,"CodeMirror-crosshair"),En(document,"keyup",he),En(document,"mouseover",he))}nt(document,"keyup",he),nt(document,"mouseover",he)}function Sf(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),vn(this,ie)}function Ec(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(kl(ae.display,ie)||vn(ae,ie)||ie.ctrlKey&&!ie.altKey||ce&&ie.metaKey)){var he=ie.keyCode,de=ie.charCode;if(et&&he==_u){_u=null,Wi(ie);return}if(!(et&&(!ie.which||ie.which<10)&&vf(ae,ie))){var me=String.fromCharCode(de==null?he:de);me!="\b"&&(fh(ae,ie,me)||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&&Sn(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(!(vn(ae,ie)||he.activeTouch&&he.input.supportsTouch())){if(he.input.ensurePolled(),he.shift=ie.shiftKey,kl(he,ie)){ke||(he.scroller.draggable=!1,setTimeout(function(){return he.scroller.draggable=!0},100));return}if(!la(ae,ie)){var de=wl(ae,ie),me=Tr(ie),Ne=de?Gf(de,me):"single";window.focus(),me==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(de&&Yf(ae,me,de,Ne,ie))&&(me==1?de?xf(ae,de,Ne,ie):Hr(ie)==he.scroller&&Wi(ie):me==2?(de&&Wa(ae.doc,de),setTimeout(function(){return he.input.focus()},20)):me==3&&(Fe?ae.display.input.onContextMenu(ie):sr(ae)))}}}function Yf(ie,ae,he,de,me){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,me),me,function(Ze){if(typeof Ze=="string"&&(Ze=Dl[Ze]),!Ze)return!1;var at=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),at=Ze(ie,he)!=mn}finally{ie.state.suppressEdits=!1}return at})}function Wh(ie,ae,he){var de=ie.getOption("configureMouse"),me=de?de(ie,ae,he):{};if(me.unit==null){var Ne=se?he.shiftKey&&he.metaKey:he.altKey;me.unit=Ne?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(me.extend==null||ie.doc.extend)&&(me.extend=ie.doc.extend||he.shiftKey),me.addNew==null&&(me.addNew=ce?he.metaKey:he.ctrlKey),me.moveOnDrag==null&&(me.moveOnDrag=!(ce?he.altKey:he.ctrlKey)),me}function xf(ie,ae,he,de){_e?setTimeout(Ot(Mi,ie),0):ie.curOp.focus=qe();var me=Wh(ie,he,de),Ne=ie.doc.sel,Ze;ie.options.dragDrop&&Fr&&!ie.isReadOnly()&&he=="single"&&(Ze=Ne.contains(ae))>-1&&(Sn((Ze=Ne.ranges[Ze]).from(),ae)<0||ae.xRel>0)&&(Sn(Ze.to(),ae)>0||ae.xRel<0)?Zh(ie,de,ae,me):up(ie,de,ae,me)}function Zh(ie,ae,he,de){var me=ie.display,Ne=!1,Ze=Xn(ie,function(Dt){ke&&(me.scroller.draggable=!1),ie.state.draggingText=!1,En(me.wrapper.ownerDocument,"mouseup",Ze),En(me.wrapper.ownerDocument,"mousemove",at),En(me.scroller,"dragstart",rt),En(me.scroller,"drop",Ze),Ne||(Wi(Dt),de.addNew||Wa(ie.doc,he,null,null,de.extend),ke&&!gt||_e&&vt==9?setTimeout(function(){me.wrapper.ownerDocument.body.focus({preventScroll:!0}),me.input.focus()},20):me.input.focus())}),at=function(Dt){Ne=Ne||Math.abs(ae.clientX-Dt.clientX)+Math.abs(ae.clientY-Dt.clientY)>=10},rt=function(){return Ne=!0};ke&&(me.scroller.draggable=!0),ie.state.draggingText=Ze,Ze.copy=!de.moveOnDrag,me.scroller.dragDrop&&me.scroller.dragDrop(),nt(me.wrapper.ownerDocument,"mouseup",Ze),nt(me.wrapper.ownerDocument,"mousemove",at),nt(me.scroller,"dragstart",rt),nt(me.scroller,"drop",Ze),sr(ie),setTimeout(function(){return me.input.focus()},20)}function Uf(ie,ae,he){if(he=="char")return new Mr(ae,ae);if(he=="word")return ie.findWordAt(ae);if(he=="line")return new Mr(zt(ae.line,0),Ni(ie.doc,zt(ae.line+1,0)));var de=he(ie,ae);return new Mr(de.from,de.to)}function up(ie,ae,he,de){var me=ie.display,Ne=ie.doc;Wi(ae);var Ze,at,rt=Ne.sel,Dt=rt.ranges;if(de.addNew&&!de.extend?(at=Ne.sel.contains(he),at>-1?Ze=Dt[at]:Ze=new Mr(he,he)):(Ze=Ne.sel.primary(),at=Ne.sel.primIndex),de.unit=="rectangle")de.addNew||(Ze=new Mr(he,he)),he=wl(ie,ae,!0,!0),at=-1;else{var Dn=Uf(ie,he,de.unit);de.extend?Ze=Ll(Ze,Dn.anchor,Dn.head,de.extend):Ze=Dn}de.addNew?at==-1?(at=Dt.length,ss(Ne,Vo(ie,Dt.concat([Ze]),at),{scroll:!1,origin:"*mouse"})):Dt.length>1&&Dt[at].empty()&&de.unit=="char"&&!de.extend?(ss(Ne,Vo(ie,Dt.slice(0,at).concat(Dt.slice(at+1)),0),{scroll:!1,origin:"*mouse"}),rt=Ne.sel):is(Ne,at,Ze,_t):(at=0,ss(Ne,new No([Ze],0),_t),rt=Ne.sel);var Vt=he;function ri(po){if(Sn(Vt,po)!=0)if(Vt=po,de.unit=="rectangle"){for(var jo=[],ua=ie.options.tabSize,uo=dt(an(Ne,he.line).text,he.ch,ua),Ma=dt(an(Ne,po.line).text,po.ch,ua),$s=Math.min(uo,Ma),Ul=Math.max(uo,Ma),fl=Math.min(he.line,po.line),qu=Math.min(ie.lastLine(),Math.max(he.line,po.line));fl<=qu;fl++){var Tu=an(Ne,fl).text,Zl=Bn(Tu,$s,ua);$s==Ul?jo.push(new Mr(zt(fl,Zl),zt(fl,Zl))):Tu.length>Zl&&jo.push(new Mr(zt(fl,Zl),zt(fl,Bn(Tu,Ul,ua))))}jo.length||jo.push(new Mr(he,he)),ss(Ne,Vo(ie,rt.ranges.slice(0,at).concat(jo),at),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(po)}else{var cc=Ze,xu=Uf(ie,po,de.unit),Kl=cc.anchor,ds;Sn(xu.anchor,Kl)>0?(ds=xu.head,Kl=ti(cc.from(),xu.anchor)):(ds=xu.anchor,Kl=vi(cc.to(),xu.head));var Pl=rt.ranges.slice(0);Pl[at]=us(ie,new Mr(Ni(Ne,Kl),ds)),ss(Ne,Vo(ie,Pl,at),_t)}}var ei=me.wrapper.getBoundingClientRect(),tr=0;function or(po){var jo=++tr,ua=wl(ie,po,!0,de.unit=="rectangle");if(ua)if(Sn(ua,Vt)!=0){ie.curOp.focus=qe(),ri(ua);var uo=ni(me,Ne);(ua.line>=uo.to||ua.line<uo.from)&&setTimeout(Xn(ie,function(){tr==jo&&or(po)}),150)}else{var Ma=po.clientY<ei.top?-20:po.clientY>ei.bottom?20:0;Ma&&setTimeout(Xn(ie,function(){tr==jo&&(me.scroller.scrollTop+=Ma,or(po))}),50)}}function Cr(po){ie.state.selectingText=!1,tr=1/0,po&&(Wi(po),me.input.focus()),En(me.wrapper.ownerDocument,"mousemove",Jr),En(me.wrapper.ownerDocument,"mouseup",Eo),Ne.history.lastSelOrigin=null}var Jr=Xn(ie,function(po){po.buttons===0||!Tr(po)?Cr(po):or(po)}),Eo=Xn(ie,Cr);ie.state.selectingText=Eo,nt(me.wrapper.ownerDocument,"mousemove",Jr),nt(me.wrapper.ownerDocument,"mouseup",Eo)}function us(ie,ae){var he=ae.anchor,de=ae.head,me=an(ie.doc,he.line);if(Sn(he,de)==0&&he.sticky==de.sticky)return ae;var Ne=ze(me);if(!Ne)return ae;var Ze=pe(Ne,he.ch,he.sticky),at=Ne[Ze];if(at.from!=he.ch&&at.to!=he.ch)return ae;var rt=Ze+(at.from==he.ch==(at.level!=1)?0:1);if(rt==0||rt==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 Dn=pe(Ne,de.ch,de.sticky),Vt=Dn-Ze||(de.ch-he.ch)*(at.level==1?-1:1);Dn==rt-1||Dn==rt?Dt=Vt<0:Dt=Vt>0}var ri=Ne[rt+(Dt?-1:0)],ei=Dt==(ri.level==1),tr=ei?ri.from:ri.to,or=ei?"after":"before";return he.ch==tr&&he.sticky==or?ae:new Mr(new zt(he.line,tr,or),de)}function Go(ie,ae,he,de){var me,Ne;if(ae.touches)me=ae.touches[0].clientX,Ne=ae.touches[0].clientY;else try{me=ae.clientX,Ne=ae.clientY}catch(ri){return!1}if(me>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;de&&Wi(ae);var Ze=ie.display,at=Ze.lineDiv.getBoundingClientRect();if(Ne>at.bottom||!wi(ie,he))return nr(ae);Ne-=at.top-Ze.viewOffset;for(var rt=0;rt<ie.display.gutterSpecs.length;++rt){var Dt=Ze.gutters.childNodes[rt];if(Dt&&Dt.getBoundingClientRect().right>=me){var Dn=xn(ie.doc,Ne),Vt=ie.display.gutterSpecs[rt];return rn(ie,he,ie,Dn,Vt.className,ae),nr(ae)}}}function la(ie,ae){return Go(ie,ae,"gutterClick",!0)}function rs(ie,ae){kl(ie.display,ae)||ll(ie,ae)||vn(ie,ae,"contextmenu")||Fe||ie.display.input.onContextMenu(ae)}function ll(ie,ae){return wi(ie,"gutterContextMenu")?Go(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,me,Ne,Ze){ie.defaults[de]=me,Ne&&(ae[de]=Ze?function(at,rt,Dt){Dt!=tu&&Ne(at,rt,Dt)}:Ne)}ie.defineOption=he,ie.Init=tu,he("value","",function(de,me){return de.setValue(me)},!0),he("mode",null,function(de,me){de.doc.modeOption=me,wo(de)},!0),he("indentUnit",2,wo,!0),he("indentWithTabs",!1),he("smartIndent",!0),he("tabSize",4,function(de){To(de),Ss(de),ws(de)},!0),he("lineSeparator",null,function(de,me){if(de.doc.lineSep=me,!!me){var Ne=[],Ze=de.doc.first;de.doc.iter(function(rt){for(var Dt=0;;){var Dn=rt.text.indexOf(me,Dt);if(Dn==-1)break;Dt=Dn+me.length,Ne.push(zt(Ze,Dn))}Ze++});for(var at=Ne.length-1;at>=0;at--)sc(de.doc,me,Ne[at],zt(Ne[at].line,Ne[at].ch+me.length))}}),he("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(de,me,Ne){de.state.specialChars=new RegExp(me.source+(me.test(" ")?"":"| "),"g"),Ne!=tu&&de.refresh()}),he("specialCharPlaceholder",ca,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,me){return de.getInputField().spellcheck=me},!0),he("autocorrect",!1,function(de,me){return de.getInputField().autocorrect=me},!0),he("autocapitalize",!1,function(de,me){return de.getInputField().autocapitalize=me},!0),he("rtlMoveVisually",!ge),he("wholeLineUpdateBefore",!0),he("theme","default",function(de){md(de),Or(de)},!0),he("keyMap","default",function(de,me,Ne){var Ze=jc(me),at=Ne!=tu&&jc(Ne);at&&at.detach&&at.detach(de,Ze),Ze.attach&&Ze.attach(de,at||null)}),he("extraKeys",null),he("configureMouse",null),he("lineWrapping",!1,Lc,!0),he("gutters",[],function(de,me){de.display.gutterSpecs=eo(me,de.options.lineNumbers),Or(de)},!0),he("fixedGutter",!0,function(de,me){de.display.gutters.style.left=me?Ic(de.display)+"px":"0",de.refresh()},!0),he("coverGutterNextToScrollbar",!1,function(de){return Ca(de)},!0),he("scrollbarStyle","native",function(de){gs(de),Ca(de),de.display.scrollbars.setScrollTop(de.doc.scrollTop),de.display.scrollbars.setScrollLeft(de.doc.scrollLeft)},!0),he("lineNumbers",!1,function(de,me){de.display.gutterSpecs=eo(de.options.gutters,me),Or(de)},!0),he("firstLineNumber",1,Or,!0),he("lineNumberFormatter",function(de){return de},Or,!0),he("showCursorWhenSelecting",!1,nn,!0),he("resetSelectionOnContextMenu",!0),he("lineWiseCopyCut",!0),he("pasteLinesPerSelection",!0),he("selectionsMayTouch",!1),he("readOnly",!1,function(de,me){me=="nocursor"&&(_i(de),de.display.input.blur()),de.display.input.readOnlyChanged(me)}),he("screenReaderLabel",null,function(de,me){me=me===""?null:me,de.display.input.screenReaderLabelChanged(me)}),he("disableInput",!1,function(de,me){me||de.display.input.reset()},!0),he("dragDrop",!0,nd),he("allowDropFileTypes",null),he("cursorBlinkRate",530),he("cursorScrollMargin",0),he("cursorHeight",1,nn,!0),he("singleCursorHeightPerLine",!0,nn,!0),he("workTime",100),he("workDelay",100),he("flattenSpans",!0,To,!0),he("addModeClass",!1,To,!0),he("pollInterval",100),he("undoDepth",200,function(de,me){return de.doc.history.undoDepth=me}),he("historyEventDelay",1250),he("viewportMargin",10,function(de){return de.refresh()},!0),he("maxHighlightLength",1e4,To,!0),he("moveInputWithCursor",!0,function(de,me){me||de.display.input.resetPosition()}),he("tabindex",null,function(de,me){return de.display.input.getField().tabIndex=me||""}),he("autofocus",null),he("direction","ltr",function(de,me){return de.doc.setDirection(me)},!0),he("phrases",null)}function nd(ie,ae,he){var de=he&&he!=tu;if(!ae!=!de){var me=ie.display.dragFunctions,Ne=ae?nt:En;Ne(ie.display.scroller,"dragstart",me.start),Ne(ie.display.scroller,"dragenter",me.enter),Ne(ie.display.scroller,"dragover",me.over),Ne(ie.display.scroller,"dragleave",me.leave),Ne(ie.display.scroller,"drop",me.drop)}}function Lc(ie){ie.options.lineWrapping?(Ht(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ie(ie.display.wrapper,"CodeMirror-wrap"),qr(ie)),Io(ie),ws(ie),Ss(ie),setTimeout(function(){return Ca(ie)},100)}function cs(ie,ae){var he=this;if(!(this instanceof cs))return new cs(ie,ae);this.options=ae=ae?Qt(ae):{},Qt(td,ae,!1);var de=ae.value;typeof de=="string"?de=new Nl(de,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(de.modeOption=ae.mode),this.doc=de;var me=new cs.inputStyles[ae.inputStyle](this),Ne=this.display=new so(ie,de,me,ae);Ne.wrapper.CodeMirror=this,md(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),gs(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&&vt<11&&setTimeout(function(){return he.display.input.reset(!0)},20),wf(this),Nu(),Oa(this),this.curOp.forceUpdate=!0,Ro(this,de),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){he.hasFocus()&&!he.state.focused&&Ei(he)},20):_i(this);for(var Ze in Ac)Ac.hasOwnProperty(Ze)&&Ac[Ze](this,ae[Ze],tu);zr(this),ae.finishInit&&ae.finishInit(this);for(var at=0;at<Kh.length;++at)Kh[at](this);Rs(this),ke&&ae.lineWrapping&&getComputedStyle(Ne.lineDiv).textRendering=="optimizelegibility"&&(Ne.lineDiv.style.textRendering="auto")}cs.defaults=td,cs.optionHandlers=Ac;function wf(ie){var ae=ie.display;nt(ae.scroller,"mousedown",Xn(ie,Hc)),_e&&vt<11?nt(ae.scroller,"dblclick",Xn(ie,function(rt){if(!vn(ie,rt)){var Dt=wl(ie,rt);if(!(!Dt||la(ie,rt)||kl(ie.display,rt))){Wi(rt);var Dn=ie.findWordAt(Dt);Wa(ie.doc,Dn.anchor,Dn.head)}}})):nt(ae.scroller,"dblclick",function(rt){return vn(ie,rt)||Wi(rt)}),nt(ae.scroller,"contextmenu",function(rt){return rs(ie,rt)}),nt(ae.input.getField(),"contextmenu",function(rt){ae.scroller.contains(rt.target)||rs(ie,rt)});var he,de={end:0};function me(){ae.activeTouch&&(he=setTimeout(function(){return ae.activeTouch=null},1e3),de=ae.activeTouch,de.end=+new Date)}function Ne(rt){if(rt.touches.length!=1)return!1;var Dt=rt.touches[0];return Dt.radiusX<=1&&Dt.radiusY<=1}function Ze(rt,Dt){if(Dt.left==null)return!0;var Dn=Dt.left-rt.left,Vt=Dt.top-rt.top;return Dn*Dn+Vt*Vt>20*20}nt(ae.scroller,"touchstart",function(rt){if(!vn(ie,rt)&&!Ne(rt)&&!la(ie,rt)){ae.input.ensurePolled(),clearTimeout(he);var Dt=+new Date;ae.activeTouch={start:Dt,moved:!1,prev:Dt-de.end<=300?de:null},rt.touches.length==1&&(ae.activeTouch.left=rt.touches[0].pageX,ae.activeTouch.top=rt.touches[0].pageY)}}),nt(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),nt(ae.scroller,"touchend",function(rt){var Dt=ae.activeTouch;if(Dt&&!kl(ae,rt)&&Dt.left!=null&&!Dt.moved&&new Date-Dt.start<300){var Dn=ie.coordsChar(ae.activeTouch,"page"),Vt;!Dt.prev||Ze(Dt,Dt.prev)?Vt=new Mr(Dn,Dn):!Dt.prev.prev||Ze(Dt,Dt.prev.prev)?Vt=ie.findWordAt(Dn):Vt=new Mr(zt(Dn.line,0),Ni(ie.doc,zt(Dn.line+1,0))),ie.setSelection(Vt.anchor,Vt.head),ie.focus(),Wi(rt)}me()}),nt(ae.scroller,"touchcancel",me),nt(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(Sa(ie,ae.scroller.scrollTop),Ha(ie,ae.scroller.scrollLeft,!0),rn(ie,"scroll",ie))}),nt(ae.scroller,"mousewheel",function(rt){return Mo(ie,rt)}),nt(ae.scroller,"DOMMouseScroll",function(rt){return Mo(ie,rt)}),nt(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(rt){vn(ie,rt)||Wr(rt)},over:function(rt){vn(ie,rt)||(Kd(ie,rt),Wr(rt))},start:function(rt){return Zd(ie,rt)},drop:Xn(ie,Wd),leave:function(rt){vn(ie,rt)||pf(ie)}};var at=ae.input.getField();nt(at,"keyup",function(rt){return Sf.call(ie,rt)}),nt(at,"keydown",Xn(ie,yf)),nt(at,"keypress",Xn(ie,Ec)),nt(at,"focus",function(rt){return Ei(ie,rt)}),nt(at,"blur",function(rt){return _i(ie,rt)})}var Kh=[];cs.defineInitHook=function(ie){return Kh.push(ie)};function Yl(ie,ae,he,de){var me=ie.doc,Ne;he==null&&(he="add"),he=="smart"&&(me.mode.indent?Ne=Sr(ie,ae).state:he="prev");var Ze=ie.options.tabSize,at=an(me,ae),rt=dt(at.text,null,Ze);at.stateAfter&&(at.stateAfter=null);var Dt=at.text.match(/^\s*/)[0],Dn;if(!de&&!/\S/.test(at.text))Dn=0,he="not";else if(he=="smart"&&(Dn=me.mode.indent(Ne,at.text.slice(Dt.length),at.text),Dn==mn||Dn>150)){if(!de)return;he="prev"}he=="prev"?ae>me.first?Dn=dt(an(me,ae-1).text,null,Ze):Dn=0:he=="add"?Dn=rt+ie.options.indentUnit:he=="subtract"?Dn=rt-ie.options.indentUnit:typeof he=="number"&&(Dn=rt+he),Dn=Math.max(0,Dn);var Vt="",ri=0;if(ie.options.indentWithTabs)for(var ei=Math.floor(Dn/Ze);ei;--ei)ri+=Ze,Vt+=" ";if(ri<Dn&&(Vt+=Kn(Dn-ri)),Vt!=Dt)return sc(me,Vt,zt(ae,0),zt(ae,Dt.length),"+input"),at.stateAfter=null,!0;for(var tr=0;tr<me.sel.ranges.length;tr++){var or=me.sel.ranges[tr];if(or.head.line==ae&&or.head.ch<Dt.length){var Cr=zt(ae,Dt.length);is(me,tr,new Mr(Cr,Cr));break}}}var $u=null;function Vh(ie){$u=ie}function Xf(ie,ae,he,de,me){var Ne=ie.doc;ie.display.shift=!1,de||(de=Ne.sel);var Ze=+new Date-200,at=me=="paste"||ie.state.pasteIncoming>Ze,rt=$n(ae),Dt=null;if(at&&de.ranges.length>1)if($u&&$u.text.join(`
|
|
|
`)==ae){if(de.ranges.length%$u.text.length==0){Dt=[];for(var Dn=0;Dn<$u.text.length;Dn++)Dt.push(Ne.splitLines($u.text[Dn]))}}else rt.length==de.ranges.length&&ie.options.pasteLinesPerSelection&&(Dt=Jn(rt,function(Jr){return[Jr]}));for(var Vt=ie.curOp.updateInput,ri=de.ranges.length-1;ri>=0;ri--){var ei=de.ranges[ri],tr=ei.from(),or=ei.to();ei.empty()&&(he&&he>0?tr=zt(tr.line,tr.ch-he):ie.state.overwrite&&!at?or=zt(or.line,Math.min(an(Ne,or.line).text.length,or.ch+yt(rt).length)):at&&$u&&$u.lineWise&&$u.text.join(`
|
|
|
`)==rt.join(`
|
|
|
`)&&(tr=or=zt(tr.line,0)));var Cr={from:tr,to:or,text:Dt?Dt[ri%Dt.length]:rt,origin:me||(at?"paste":ie.state.cutIncoming>Ze?"cut":"+input")};Ps(ie.doc,Cr),Vi(ie,"inputRead",ie,Cr)}ae&&!at&&dp(ie,ae),vo(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=Vt),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&&gn(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 me=he.ranges[de];if(!(me.head.ch>100||de&&he.ranges[de-1].head.line==me.head.line)){var Ne=ie.getModeAt(me.head),Ze=!1;if(Ne.electricChars){for(var at=0;at<Ne.electricChars.length;at++)if(ae.indexOf(Ne.electricChars.charAt(at))>-1){Ze=Yl(ie,me.head.line,"smart");break}}else Ne.electricInput&&Ne.electricInput.test(an(ie.doc,me.head.line).text.slice(0,me.head.ch))&&(Ze=Yl(ie,me.head.line,"smart"));Ze&&Vi(ie,"electricInput",ie,me.head.line)}}}function hp(ie){for(var ae=[],he=[],de=0;de<ie.doc.sel.ranges.length;de++){var me=ie.doc.sel.ranges[de].head.line,Ne={anchor:zt(me,0),head:zt(me+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=Xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=Xe("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ke?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,me){var Ne=this.options,Ze=Ne[de];Ne[de]==me&&de!="mode"||(Ne[de]=me,ae.hasOwnProperty(de)&&Xn(this,ae[de])(this,me,Ze),rn(this,"optionChange",this,de))},getOption:function(de){return this.options[de]},getDoc:function(){return this.doc},addKeyMap:function(de,me){this.state.keyMaps[me?"push":"unshift"](jc(de))},removeKeyMap:function(de){for(var me=this.state.keyMaps,Ne=0;Ne<me.length;++Ne)if(me[Ne]==de||me[Ne].name==de)return me.splice(Ne,1),!0},addOverlay:Yn(function(de,me){var Ne=de.token?de:ie.getMode(this.options,de);if(Ne.startState)throw new Error("Overlays may not be stateful.");bn(this.state.overlays,{mode:Ne,modeSpec:de,opaque:me&&me.opaque,priority:me&&me.priority||0},function(Ze){return Ze.priority}),this.state.modeGen++,ws(this)}),removeOverlay:Yn(function(de){for(var me=this.state.overlays,Ne=0;Ne<me.length;++Ne){var Ze=me[Ne].modeSpec;if(Ze==de||typeof de=="string"&&Ze.name==de){me.splice(Ne,1),this.state.modeGen++,ws(this);return}}}),indentLine:Yn(function(de,me,Ne){typeof me!="string"&&typeof me!="number"&&(me==null?me=this.options.smartIndent?"smart":"prev":me=me?"add":"subtract"),Qn(this.doc,de)&&Yl(this,de,me,Ne)}),indentSelection:Yn(function(de){for(var me=this.doc.sel.ranges,Ne=-1,Ze=0;Ze<me.length;Ze++){var at=me[Ze];if(at.empty())at.head.line>Ne&&(Yl(this,at.head.line,de,!0),Ne=at.head.line,Ze==this.doc.sel.primIndex&&vo(this));else{var rt=at.from(),Dt=at.to(),Dn=Math.max(Ne,rt.line);Ne=Math.min(this.lastLine(),Dt.line-(Dt.ch?0:1))+1;for(var Vt=Dn;Vt<Ne;++Vt)Yl(this,Vt,de);var ri=this.doc.sel.ranges;rt.ch==0&&me.length==ri.length&&ri[Ze].from().ch>0&&is(this.doc,Ze,new Mr(rt,ri[Ze].to()),kt)}}}),getTokenAt:function(de,me){return Er(this,de,me)},getLineTokens:function(de,me){return Er(this,zt(de),me,!0)},getTokenTypeAt:function(de){de=Ni(this.doc,de);var me=kr(this,an(this.doc,de.line)),Ne=0,Ze=(me.length-1)/2,at=de.ch,rt;if(at==0)rt=me[2];else for(;;){var Dt=Ne+Ze>>1;if((Dt?me[Dt*2-1]:0)>=at)Ze=Dt;else if(me[Dt*2+1]<at)Ne=Dt+1;else{rt=me[Dt*2+2];break}}var Dn=rt?rt.indexOf("overlay "):-1;return Dn<0?rt:Dn==0?null:rt.slice(0,Dn-1)},getModeAt:function(de){var me=this.doc.mode;return me.innerMode?ie.innerMode(me,this.getTokenAt(de).state).mode:me},getHelper:function(de,me){return this.getHelpers(de,me)[0]},getHelpers:function(de,me){var Ne=[];if(!he.hasOwnProperty(me))return Ne;var Ze=he[me],at=this.getModeAt(de);if(typeof at[me]=="string")Ze[at[me]]&&Ne.push(Ze[at[me]]);else if(at[me])for(var rt=0;rt<at[me].length;rt++){var Dt=Ze[at[me][rt]];Dt&&Ne.push(Dt)}else at.helperType&&Ze[at.helperType]?Ne.push(Ze[at.helperType]):Ze[at.name]&&Ne.push(Ze[at.name]);for(var Dn=0;Dn<Ze._global.length;Dn++){var Vt=Ze._global[Dn];Vt.pred(at,this)&&Mt(Ne,Vt.val)==-1&&Ne.push(Vt.val)}return Ne},getStateAfter:function(de,me){var Ne=this.doc;return de=xi(Ne,de==null?Ne.first+Ne.size-1:de),Sr(this,de+1,me).state},cursorCoords:function(de,me){var Ne,Ze=this.doc.sel.primary();return de==null?Ne=Ze.head:typeof de=="object"?Ne=Ni(this.doc,de):Ne=de?Ze.from():Ze.to(),Fa(this,Ne,me||"page")},charCoords:function(de,me){return Ts(this,Ni(this.doc,de),me||"page")},coordsChar:function(de,me){return de=Ks(this,de,me||"page"),El(this,de.left,de.top)},lineAtHeight:function(de,me){return de=Ks(this,{top:de,left:0},me||"page").top,xn(this.doc,de+this.display.viewOffset)},heightAtLine:function(de,me,Ne){var Ze=!1,at;if(typeof de=="number"){var rt=this.doc.first+this.doc.size-1;de<this.doc.first?de=this.doc.first:de>rt&&(de=rt,Ze=!0),at=an(this.doc,de)}else at=de;return xs(this,at,{top:0,left:0},me||"page",Ne||Ze).top+(Ze?this.doc.height-Gr(at):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,me,Ne,Ze,at){var rt=this.display;de=Fa(this,Ni(this.doc,de));var Dt=de.bottom,Dn=de.left;if(me.style.position="absolute",me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(me),rt.sizer.appendChild(me),Ze=="over")Dt=de.top;else if(Ze=="above"||Ze=="near"){var Vt=Math.max(rt.wrapper.clientHeight,this.doc.height),ri=Math.max(rt.sizer.clientWidth,rt.lineSpace.clientWidth);(Ze=="above"||de.bottom+me.offsetHeight>Vt)&&de.top>me.offsetHeight?Dt=de.top-me.offsetHeight:de.bottom+me.offsetHeight<=Vt&&(Dt=de.bottom),Dn+me.offsetWidth>ri&&(Dn=ri-me.offsetWidth)}me.style.top=Dt+"px",me.style.left=me.style.right="",at=="right"?(Dn=rt.sizer.clientWidth-me.offsetWidth,me.style.right="0px"):(at=="left"?Dn=0:at=="middle"&&(Dn=(rt.sizer.clientWidth-me.offsetWidth)/2),me.style.left=Dn+"px"),Ne&&ho(this,{left:Dn,top:Dt,right:Dn+me.offsetWidth,bottom:Dt+me.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,me,Ne,Ze){var at=1;me<0&&(at=-1,me=-me);for(var rt=Ni(this.doc,de),Dt=0;Dt<me&&(rt=Jf(this.doc,rt,at,Ne,Ze),!rt.hitSide);++Dt);return rt},moveH:Yn(function(de,me){var Ne=this;this.extendSelectionsBy(function(Ze){return Ne.display.shift||Ne.doc.extend||Ze.empty()?Jf(Ne.doc,Ze.head,de,me,Ne.options.rtlMoveVisually):de<0?Ze.from():Ze.to()},ln)}),deleteH:Yn(function(de,me){var Ne=this.doc.sel,Ze=this.doc;Ne.somethingSelected()?Ze.replaceSelection("",null,"+delete"):Hl(this,function(at){var rt=Jf(Ze,at.head,de,me,!1);return de<0?{from:rt,to:at.head}:{from:at.head,to:rt}})}),findPosV:function(de,me,Ne,Ze){var at=1,rt=Ze;me<0&&(at=-1,me=-me);for(var Dt=Ni(this.doc,de),Dn=0;Dn<me;++Dn){var Vt=Fa(this,Dt,"div");if(rt==null?rt=Vt.left:Vt.left=rt,Dt=vh(this,Vt,at,Ne),Dt.hitSide)break}return Dt},moveV:Yn(function(de,me){var Ne=this,Ze=this.doc,at=[],rt=!this.display.shift&&!Ze.extend&&Ze.sel.somethingSelected();if(Ze.extendSelectionsBy(function(Dn){if(rt)return de<0?Dn.from():Dn.to();var Vt=Fa(Ne,Dn.head,"div");Dn.goalColumn!=null&&(Vt.left=Dn.goalColumn),at.push(Vt.left);var ri=vh(Ne,Vt,de,me);return me=="page"&&Dn==Ze.sel.primary()&&mo(Ne,Ts(Ne,ri,"div").top-Vt.top),ri},ln),at.length)for(var Dt=0;Dt<Ze.sel.ranges.length;Dt++)Ze.sel.ranges[Dt].goalColumn=at[Dt]}),findWordAt:function(de){var me=this.doc,Ne=an(me,de.line).text,Ze=de.ch,at=de.ch;if(Ne){var rt=this.getHelper(de,"wordChars");(de.sticky=="before"||at==Ne.length)&&Ze?--Ze:++at;for(var Dt=Ne.charAt(Ze),Dn=ft(Dt,rt)?function(Vt){return ft(Vt,rt)}:/\s/.test(Dt)?function(Vt){return/\s/.test(Vt)}:function(Vt){return!/\s/.test(Vt)&&!ft(Vt)};Ze>0&&Dn(Ne.charAt(Ze-1));)--Ze;for(;at<Ne.length&&Dn(Ne.charAt(at));)++at}return new Mr(zt(de.line,Ze),zt(de.line,at))},toggleOverwrite:function(de){de!=null&&de==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ht(this.display.cursorDiv,"CodeMirror-overwrite"):Ie(this.display.cursorDiv,"CodeMirror-overwrite"),rn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==qe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Yn(function(de,me){fo(this,de,me)}),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,me){de==null?(de={from:this.doc.sel.primary().head,to:null},me==null&&(me=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=me||0,de.from.line!=null?lr(this,de):ea(this,de.from,de.to,de.margin)}),setSize:Yn(function(de,me){var Ne=this,Ze=function(rt){return typeof rt=="number"||/^\d+$/.test(String(rt))?rt+"px":rt};de!=null&&(this.display.wrapper.style.width=Ze(de)),me!=null&&(this.display.wrapper.style.height=Ze(me)),this.options.lineWrapping&&Cs(this);var at=this.display.viewFrom;this.doc.iter(at,this.display.viewTo,function(rt){if(rt.widgets){for(var Dt=0;Dt<rt.widgets.length;Dt++)if(rt.widgets[Dt].noHScroll){ya(Ne,at,"widget");break}}++at}),this.curOp.forceUpdate=!0,rn(this,"refresh",this)}),operation:function(de){return gn(this,de)},startOperation:function(){return Oa(this)},endOperation:function(){return Rs(this)},refresh:Yn(function(){var de=this.display.cachedTextHeight;ws(this),this.curOp.forceUpdate=!0,Ss(this),fo(this,this.doc.scrollLeft,this.doc.scrollTop),Br(this.display),(de==null||Math.abs(de-$l(this.display))>.5||this.options.lineWrapping)&&Io(this),rn(this,"refresh",this)}),swapDoc:Yn(function(de){var me=this.doc;return me.cm=null,this.state.selectingText&&this.state.selectingText(),Ro(this,de),Ss(this),this.display.input.reset(),fo(this,de.scrollLeft,de.scrollTop),this.curOp.forceScroll=!0,Vi(this,"swapDoc",this,me),me}),phrase:function(de){var me=this.options.phrases;return me&&Object.prototype.hasOwnProperty.call(me,de)?me[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}},Ri(ie),ie.registerHelper=function(de,me,Ne){he.hasOwnProperty(de)||(he[de]=ie[de]={_global:[]}),he[de][me]=Ne},ie.registerGlobalHelper=function(de,me,Ne,Ze){ie.registerHelper(de,me,Ze),he[de]._global.push({pred:Ne,val:Ze})}}function Jf(ie,ae,he,de,me){var Ne=ae,Ze=he,at=an(ie,ae.line),rt=me&&ie.direction=="rtl"?-he:he;function Dt(){var Eo=ae.line+rt;return Eo<ie.first||Eo>=ie.first+ie.size?!1:(ae=new zt(Eo,ae.ch,ae.sticky),at=an(ie,Eo))}function Dn(Eo){var po;if(de=="codepoint"){var jo=at.text.charCodeAt(ae.ch+(de>0?0:-1));isNaN(jo)?po=null:po=new zt(ae.line,Math.max(0,Math.min(at.text.length,ae.ch+he*(jo>=55296&&jo<56320?2:1))),-he)}else me?po=Es(ie.cm,at,ae,he):po=sl(at,ae,he);if(po==null)if(!Eo&&Dt())ae=Va(me,ie.cm,at,ae.line,rt);else return!1;else ae=po;return!0}if(de=="char"||de=="codepoint")Dn();else if(de=="column")Dn(!0);else if(de=="word"||de=="group")for(var Vt=null,ri=de=="group",ei=ie.cm&&ie.cm.getHelper(ae,"wordChars"),tr=!0;!(he<0&&!Dn(!tr));tr=!1){var or=at.text.charAt(ae.ch)||`
|
|
|
`,Cr=ft(or,ei)?"w":ri&&or==`
|
|
|
`?"n":!ri||/\s/.test(or)?null:"p";if(ri&&!tr&&!Cr&&(Cr="s"),Vt&&Vt!=Cr){he<0&&(he=1,Dn(),ae.sticky="after");break}if(Cr&&(Vt=Cr),he>0&&!Dn(!tr))break}var Jr=Wu(ie,ae,Ne,Ze,!0);return Ci(Ne,Jr)&&(Jr.hitSide=!0),Jr}function vh(ie,ae,he,de){var me=ie.doc,Ne=ae.left,Ze;if(de=="page"){var at=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),rt=Math.max(at-.5*$l(ie.display),3);Ze=(he>0?ae.bottom:ae.top)+he*rt}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>=me.height){Dt.hitSide=!0;break}Ze+=he*5}return Dt}var js=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};js.prototype.init=function(ie){var ae=this,he=this,de=he.cm,me=he.div=ie.lineDiv;fp(me,de.options.spellcheck,de.options.autocorrect,de.options.autocapitalize);function Ne(at){for(var rt=at.target;rt;rt=rt.parentNode){if(rt==me)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(rt.className))break}return!1}nt(me,"paste",function(at){!Ne(at)||vn(de,at)||cp(at,de)||vt<=11&&setTimeout(Xn(de,function(){return ae.updateFromDOM()}),20)}),nt(me,"compositionstart",function(at){ae.composing={data:at.data,done:!1}}),nt(me,"compositionupdate",function(at){ae.composing||(ae.composing={data:at.data,done:!1})}),nt(me,"compositionend",function(at){ae.composing&&(at.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),nt(me,"touchstart",function(){return he.forceCompositionEnd()}),nt(me,"input",function(){ae.composing||ae.readFromDOMSoon()});function Ze(at){if(!(!Ne(at)||vn(de,at))){if(de.somethingSelected())Vh({lineWise:!1,text:de.getSelections()}),at.type=="cut"&&de.replaceSelection("",null,"cut");else if(de.options.lineWiseCopyCut){var rt=hp(de);Vh({lineWise:!0,text:rt.text}),at.type=="cut"&&de.operation(function(){de.setSelections(rt.ranges,0,kt),de.replaceSelection("",null,"cut")})}else return;if(at.clipboardData){at.clipboardData.clearData();var Dt=$u.text.join(`
|
|
|
`);if(at.clipboardData.setData("Text",Dt),at.clipboardData.getData("Text")==Dt){at.preventDefault();return}}var Dn=gp(),Vt=Dn.firstChild;de.display.lineSpace.insertBefore(Dn,de.display.lineSpace.firstChild),Vt.value=$u.text.join(`
|
|
|
`);var ri=document.activeElement;Yt(Vt),setTimeout(function(){de.display.lineSpace.removeChild(Dn),ri.focus(),ri==me&&he.showPrimarySelection()},50)}}nt(me,"copy",Ze),nt(me,"cut",Ze)},js.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},js.prototype.prepareSelection=function(){var ie=hn(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},js.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},js.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,he=ae.doc.sel.primary(),de=he.from(),me=he.to();if(ae.display.viewTo==ae.display.viewFrom||de.line>=ae.display.viewTo||me.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&&Sn(ti(Ne,Ze),de)==0&&Sn(vi(Ne,Ze),me)==0)){var at=ae.display.view,rt=de.line>=ae.display.viewFrom&&Pg(ae,de)||{node:at[0].measure.map[2],offset:0},Dt=me.line<ae.display.viewTo&&Pg(ae,me);if(!Dt){var Dn=at[at.length-1].measure,Vt=Dn.maps?Dn.maps[Dn.maps.length-1]:Dn.map;Dt={node:Vt[Vt.length-1],offset:Vt[Vt.length-2]-Vt[Vt.length-3]}}if(!rt||!Dt){ie.removeAllRanges();return}var ri=ie.rangeCount&&ie.getRangeAt(0),ei;try{ei=Ve(rt.node,rt.offset,Dt.offset,Dt.node)}catch(tr){}ei&&(!Se&&ae.state.focused?(ie.collapse(rt.node,rt.offset),ei.collapsed||(ie.removeAllRanges(),ie.addRange(ei))):(ie.removeAllRanges(),ie.addRange(ei)),ri&&ie.anchorNode==null?ie.addRange(ri):Se&&this.startGracePeriod()),this.rememberSelection()}},js.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)},js.prototype.showMultipleSelections=function(ie){Ke(this.cm.display.cursorDiv,ie.cursors),Ke(this.cm.display.selectionDiv,ie.selection)},js.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},js.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return Nt(this.div,ae)},js.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},js.prototype.blur=function(){this.div.blur()},js.prototype.getField=function(){return this.div},js.prototype.supportsTouch=function(){return!0},js.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():gn(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)},js.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},js.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(te&&Lt&&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&&gn(ae,function(){ss(ae.doc,_o(he,de),kt),(he.bad||de.bad)&&(ae.curOp.selectionChanged=!0)})}}},js.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(),me=he.to();if(de.ch==0&&de.line>ie.firstLine()&&(de=zt(de.line-1,an(ie.doc,de.line-1).length)),me.ch==an(ie.doc,me.line).text.length&&me.line<ie.lastLine()&&(me=zt(me.line+1,0)),de.line<ae.viewFrom||me.line>ae.viewTo-1)return!1;var Ne,Ze,at;de.line==ae.viewFrom||(Ne=Il(ie,de.line))==0?(Ze=Et(ae.view[0].line),at=ae.view[0].node):(Ze=Et(ae.view[Ne].line),at=ae.view[Ne-1].node.nextSibling);var rt=Il(ie,me.line),Dt,Dn;if(rt==ae.view.length-1?(Dt=ae.viewTo-1,Dn=ae.lineDiv.lastChild):(Dt=Et(ae.view[rt+1].line)-1,Dn=ae.view[rt+1].node.previousSibling),!at)return!1;for(var Vt=ie.doc.splitLines(Cf(ie,at,Dn,Ze,Dt)),ri=Bt(ie.doc,zt(Ze,0),zt(Dt,an(ie.doc,Dt).text.length));Vt.length>1&&ri.length>1;)if(yt(Vt)==yt(ri))Vt.pop(),ri.pop(),Dt--;else if(Vt[0]==ri[0])Vt.shift(),ri.shift(),Ze++;else break;for(var ei=0,tr=0,or=Vt[0],Cr=ri[0],Jr=Math.min(or.length,Cr.length);ei<Jr&&or.charCodeAt(ei)==Cr.charCodeAt(ei);)++ei;for(var Eo=yt(Vt),po=yt(ri),jo=Math.min(Eo.length-(Vt.length==1?ei:0),po.length-(ri.length==1?ei:0));tr<jo&&Eo.charCodeAt(Eo.length-tr-1)==po.charCodeAt(po.length-tr-1);)++tr;if(Vt.length==1&&ri.length==1&&Ze==de.line)for(;ei&&ei>de.ch&&Eo.charCodeAt(Eo.length-tr-1)==po.charCodeAt(po.length-tr-1);)ei--,tr++;Vt[Vt.length-1]=Eo.slice(0,Eo.length-tr).replace(/^\u200b+/,""),Vt[0]=Vt[0].slice(ei).replace(/\u200b+$/,"");var ua=zt(Ze,ei),uo=zt(Dt,ri.length?yt(ri).length-tr:0);if(Vt.length>1||Vt[0]||Sn(ua,uo))return sc(ie.doc,Vt,ua,uo,"+input"),!0},js.prototype.ensurePolled=function(){this.forceCompositionEnd()},js.prototype.reset=function(){this.forceCompositionEnd()},js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},js.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))},js.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&gn(this.cm,function(){return ws(ie.cm)})},js.prototype.setUneditable=function(ie){ie.contentEditable="false"},js.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Xn(this.cm,Xf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},js.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},js.prototype.onContextMenu=function(){},js.prototype.resetPosition=function(){},js.prototype.needsContentAttribute=!0;function Pg(ie,ae){var he=zl(ie,ae.line);if(!he||he.hidden)return null;var de=an(ie.doc,ae.line),me=xc(he,de,ae.line),Ne=ze(de,ie.doc.direction),Ze="left";if(Ne){var at=pe(Ne,ae.ch);Ze=at%2?"right":"left"}var rt=wc(me.map,ae.ch,Ze);return rt.offset=rt.collapse=="right"?rt.end:rt.start,rt}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,me){var Ne="",Ze=!1,at=ie.doc.lineSeparator(),rt=!1;function Dt(ei){return function(tr){return tr.id==ei}}function Dn(){Ze&&(Ne+=at,rt&&(Ne+=at),Ze=rt=!1)}function Vt(ei){ei&&(Dn(),Ne+=ei)}function ri(ei){if(ei.nodeType==1){var tr=ei.getAttribute("cm-text");if(tr){Vt(tr);return}var or=ei.getAttribute("cm-marker"),Cr;if(or){var Jr=ie.findMarks(zt(de,0),zt(me+1,0),Dt(+or));Jr.length&&(Cr=Jr[0].find(0))&&Vt(Bt(ie.doc,Cr.from,Cr.to).join(at));return}if(ei.getAttribute("contenteditable")=="false")return;var Eo=/^(pre|div|p|li|table|br)$/i.test(ei.nodeName);if(!/^br$/i.test(ei.nodeName)&&ei.textContent.length==0)return;Eo&&Dn();for(var po=0;po<ei.childNodes.length;po++)ri(ei.childNodes[po]);/^(pre|p)$/i.test(ei.nodeName)&&(rt=!0),Eo&&(Ze=!0)}else ei.nodeType==3&&Vt(ei.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ri(ae),ae!=he;)ae=ae.nextSibling,rt=!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 me=0;me<ie.display.view.length;me++){var Ne=ie.display.view[me];if(Ne.node==de)return fm(Ne,ae,he)}}function fm(ie,ae,he){var de=ie.text.firstChild,me=!1;if(!ae||!Nt(de,ae))return Pf(zt(Et(ie.line),0),!0);if(ae==de&&(me=!0,ae=de.childNodes[he],he=0,!ae)){var Ne=ie.rest?yt(ie.rest):ie.line;return Pf(zt(Et(Ne),Ne.text.length),me)}var Ze=ae.nodeType==3?ae:null,at=ae;for(!Ze&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Ze=ae.firstChild,he&&(he=Ze.nodeValue.length));at.parentNode!=de;)at=at.parentNode;var rt=ie.measure,Dt=rt.maps;function Dn(Cr,Jr,Eo){for(var po=-1;po<(Dt?Dt.length:0);po++)for(var jo=po<0?rt.map:Dt[po],ua=0;ua<jo.length;ua+=3){var uo=jo[ua+2];if(uo==Cr||uo==Jr){var Ma=Et(po<0?ie.line:ie.rest[po]),$s=jo[ua]+Eo;return(Eo<0||uo!=Cr)&&($s=jo[ua+(Eo?1:0)]),zt(Ma,$s)}}}var Vt=Dn(Ze,at,he);if(Vt)return Pf(Vt,me);for(var ri=at.nextSibling,ei=Ze?Ze.nodeValue.length-he:0;ri;ri=ri.nextSibling){if(Vt=Dn(ri,ri.firstChild,0),Vt)return Pf(zt(Vt.line,Vt.ch-ei),me);ei+=ri.textContent.length}for(var tr=at.previousSibling,or=he;tr;tr=tr.previousSibling){if(Vt=Dn(tr,tr.firstChild,-1),Vt)return Pf(zt(Vt.line,Vt.ch+or),me);or+=tr.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 me=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Me&&(me.style.width="0px"),nt(me,"input",function(){_e&&vt>=9&&ae.hasSelection&&(ae.hasSelection=null),he.poll()}),nt(me,"paste",function(Ze){vn(de,Ze)||cp(Ze,de)||(de.state.pasteIncoming=+new Date,he.fastPoll())});function Ne(Ze){if(!vn(de,Ze)){if(de.somethingSelected())Vh({lineWise:!1,text:de.getSelections()});else if(de.options.lineWiseCopyCut){var at=hp(de);Vh({lineWise:!0,text:at.text}),Ze.type=="cut"?de.setSelections(at.ranges,null,kt):(he.prevInput="",me.value=at.text.join(`
|
|
|
`),Yt(me))}else return;Ze.type=="cut"&&(de.state.cutIncoming=+new Date)}}nt(me,"cut",Ne),nt(me,"copy",Ne),nt(ie.scroller,"paste",function(Ze){if(!(kl(ie,Ze)||vn(de,Ze))){if(!me.dispatchEvent){de.state.pasteIncoming=+new Date,he.focus();return}var at=new Event("paste");at.clipboardData=Ze.clipboardData,me.dispatchEvent(at)}}),nt(ie.lineSpace,"selectstart",function(Ze){kl(ie,Ze)||Wi(Ze)}),nt(me,"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"})}}),nt(me,"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=hn(ie);if(ie.options.moveInputWithCursor){var me=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,me.top+Ze.top-Ne.top)),de.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,me.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&&Yt(this.textarea),_e&&vt>=9&&(this.hasSelection=he)}else ie||(this.prevInput=this.textarea.value="",_e&&vt>=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||qe()!=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||Ce(he)&&!de&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var me=he.value;if(me==de&&!ae.somethingSelected())return!1;if(_e&&vt>=9&&this.hasSelection===me||ce&&/[\uf700-\uf7ff]/.test(me))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Ne=me.charCodeAt(0);if(Ne==8203&&!de&&(de="\u200B"),Ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ze=0,at=Math.min(de.length,me.length);Ze<at&&de.charCodeAt(Ze)==me.charCodeAt(Ze);)++Ze;return gn(ae,function(){Xf(ae,me.slice(Ze),de.length-Ze,null,ie.composing?"*compose":null),me.length>1e3||me.indexOf(`
|
|
|
`)>-1?he.value=ie.prevInput="":ie.prevInput=me,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&&vt>=9&&(this.hasSelection=null),this.fastPoll()},Wl.prototype.onContextMenu=function(ie){var ae=this,he=ae.cm,de=he.display,me=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Ne=wl(he,ie),Ze=de.scroller.scrollTop;if(!Ne||et)return;var at=he.options.resetSelectionOnContextMenu;at&&he.doc.sel.contains(Ne)==-1&&Xn(he,ss)(he.doc,_o(Ne),kt);var rt=me.style.cssText,Dt=ae.wrapper.style.cssText,Dn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",me.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-Dn.top-5)+"px; left: "+(ie.clientX-Dn.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 Vt;ke&&(Vt=window.scrollY),de.input.focus(),ke&&window.scrollTo(null,Vt),de.input.reset(),he.somethingSelected()||(me.value=ae.prevInput=" "),ae.contextMenuPending=ei,de.selForContextMenu=he.doc.sel,clearTimeout(de.detectingSelectAll);function ri(){if(me.selectionStart!=null){var or=he.somethingSelected(),Cr="\u200B"+(or?me.value:"");me.value="\u21DA",me.value=Cr,ae.prevInput=or?"":"\u200B",me.selectionStart=1,me.selectionEnd=Cr.length,de.selForContextMenu=he.doc.sel}}function ei(){if(ae.contextMenuPending==ei&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=Dt,me.style.cssText=rt,_e&&vt<9&&de.scrollbars.setScrollTop(de.scroller.scrollTop=Ze),me.selectionStart!=null)){(!_e||_e&&vt<9)&&ri();var or=0,Cr=function(){de.selForContextMenu==he.doc.sel&&me.selectionStart==0&&me.selectionEnd>0&&ae.prevInput=="\u200B"?Xn(he,$a)(he):or++<10?de.detectingSelectAll=setTimeout(Cr,500):(de.selForContextMenu=null,de.input.reset())};de.detectingSelectAll=setTimeout(Cr,200)}}if(_e&&vt>=9&&ri(),Fe){Wr(ie);var tr=function(){En(window,"mouseup",tr),setTimeout(ei,20)};nt(window,"mouseup",tr)}else setTimeout(ei,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?Qt(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=qe();ae.autofocus=he==ie||ie.getAttribute("autofocus")!=null&&he==document.body}function de(){ie.value=at.getValue()}var me;if(ie.form&&(nt(ie.form,"submit",de),!ae.leaveSubmitMethodAlone)){var Ne=ie.form;me=Ne.submit;try{var Ze=Ne.submit=function(){de(),Ne.submit=me,Ne.submit(),Ne.submit=Ze}}catch(rt){}}ae.finishInit=function(rt){rt.save=de,rt.getTextArea=function(){return ie},rt.toTextArea=function(){rt.toTextArea=isNaN,de(),ie.parentNode.removeChild(rt.getWrapperElement()),ie.style.display="",ie.form&&(En(ie.form,"submit",de),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=me))}},ie.style.display="none";var at=cs(function(rt){return ie.parentNode.insertBefore(rt,ie.nextSibling)},ae);return at}function bf(ie){ie.off=En,ie.on=nt,ie.wheelEventPixels=lo,ie.Doc=Nl,ie.splitLines=$n,ie.countColumn=dt,ie.findColumn=Bn,ie.isWordChar=$t,ie.Pass=mn,ie.signal=rn,ie.Line=$r,ie.changeEnd=na,ie.scrollbarModel=as,ie.Pos=zt,ie.cmpPos=Sn,ie.modes=Wn,ie.mimeModes=li,ie.resolveMode=mt,ie.getMode=Pt,ie.modeExtensions=bt,ie.extendMode=tt,ie.copyState=qt,ie.startState=xt,ie.innerMode=dn,ie.commands=Dl,ie.keyMap=eu,ie.keyName=dh,ie.isModifierKey=Ed,ie.lookupKey=Su,ie.normalizeKeyMap=Yd,ie.StringStream=Ye,ie.SharedTextMarker=bc,ie.TextMarker=pn,ie.LineWidget=_s,ie.e_preventDefault=Wi,ie.e_stopPropagation=Mn,ie.e_stop=Wr,ie.addClass=Ht,ie.contains=Nt,ie.rmClass=Ie,ie.keyNames=lc}ph(cs),mh(cs);var Qd="iter insert remove copy getEditor constructor".split(" ");for(var _f in Nl.prototype)Nl.prototype.hasOwnProperty(_f)&&Mt(Qd,_f)<0&&(cs.prototype[_f]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Nl.prototype[_f]));return Ri(Nl),cs.inputStyles={textarea:Wl,contenteditable:js},cs.defineMode=function(ie){!cs.defaults.mode&&ie!="null"&&(cs.defaults.mode=ie),fn.apply(this,arguments)},cs.defineMIME=on,cs.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),cs.defineMIME("text/plain","null"),cs.defineExtension=function(ie,ae){cs.prototype[ie]=ae},cs.defineDocExtension=function(ie,ae){Nl.prototype[ie]=ae},cs.fromTextArea=gm,bf(cs),cs.version="5.58.2",cs})},25419:function(Rn,Fn,ye){(function(Se){Se(ye(89780),ye(15525),ye(98101))})(function(Se){"use strict";Se.defineMode("markdown",function(Oe,He){var Rt=Se.getMode(Oe,"text/html"),_e=Rt.name=="null";function vt(dt){if(Se.findModeByName){var Re=Se.findModeByName(dt);Re&&(dt=Re.mime||Re.mimes[0])}var Mt=Se.getMode(Oe,dt);return Mt.name=="null"?null:Mt}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 ke={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 ke)ke.hasOwnProperty(Tt)&&He.tokenTypeOverrides[Tt]&&(ke[Tt]=He.tokenTypeOverrides[Tt]);var Lt=/^([*\-_])(?:\s*\1){2,}\s*$/,et=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,gt=/^\[(x| )\](?=\s)/i,ct=He.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,wt=/^ {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(dt,Re,Mt){return Re.f=Re.inline=Mt,Mt(dt,Re)}function ve(dt,Re,Mt){return Re.f=Re.block=Mt,Mt(dt,Re)}function be(dt){return!dt||!/\S/.test(dt.string)}function Fe(dt){if(dt.linkTitle=!1,dt.linkHref=!1,dt.linkText=!1,dt.em=!1,dt.strong=!1,dt.strikethrough=!1,dt.quote=0,dt.indentedCode=!1,dt.f==Ie){var Re=_e;if(!Re){var Mt=Se.innerMode(Rt,dt.htmlState);Re=Mt.mode.name=="xml"&&Mt.state.tagStart===null&&!Mt.state.context&&Mt.state.tokenize.isInText}Re&&(dt.f=ht,dt.block=Pe,dt.htmlState=null)}return dt.trailingSpace=0,dt.trailingSpaceNewLine=!1,dt.prevLine=dt.thisLine,dt.thisLine={stream:null},null}function Pe(dt,Re){var Mt=dt.column()===Re.indentation,Pn=be(Re.prevLine.stream),mn=Re.indentedCode,kt=Re.prevLine.hr,_t=Re.list!==!1,ln=(Re.listStack[Re.listStack.length-1]||0)+3;Re.indentedCode=!1;var Bn=Re.indentation;if(Re.indentationDiff===null&&(Re.indentationDiff=Re.indentation,_t)){for(Re.list=null;Bn<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=Bn-Re.listStack[Re.listStack.length-1])}var wn=!Pn&&!kt&&!Re.prevLine.header&&(!_t||!mn)&&!Re.prevLine.fencedCodeEnd,Kn=(Re.list===!1||kt||Pn)&&Re.indentation<=ln&&dt.match(Lt),yt=null;if(Re.indentationDiff>=4&&(mn||Re.prevLine.fencedCodeEnd||Re.prevLine.header||Pn))return dt.skipToEnd(),Re.indentedCode=!0,ke.code;if(dt.eatSpace())return null;if(Mt&&Re.indentation<=ln&&(yt=dt.match(ct))&&yt[1].length<=6)return Re.quote=0,Re.header=yt[1].length,Re.thisLine.header=!0,He.highlightFormatting&&(Re.formatting="header"),Re.f=Re.inline,Ke(Re);if(Re.indentation<=ln&&dt.eat(">"))return Re.quote=Mt?1:Re.quote+1,He.highlightFormatting&&(Re.formatting="quote"),dt.eatSpace(),Ke(Re);if(!Kn&&!Re.setext&&Mt&&Re.indentation<=ln&&(yt=dt.match(et))){var Jn=yt[1]?"ol":"ul";return Re.indentation=Bn+dt.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&&dt.match(gt,!1)&&(Re.taskList=!0),Re.f=Re.inline,He.highlightFormatting&&(Re.formatting=["list","list-"+Jn]),Ke(Re)}else{if(Mt&&Re.indentation<=ln&&(yt=dt.match(te,!0)))return Re.quote=0,Re.fencedEndRE=new RegExp(yt[1]+"+ *$"),Re.localMode=He.fencedCodeBlockHighlighting&&vt(yt[2]||He.fencedCodeBlockDefaultMode),Re.localMode&&(Re.localState=Se.startState(Re.localMode)),Re.f=Re.block=We,He.highlightFormatting&&(Re.formatting="code-block"),Re.code=-1,Ke(Re);if(Re.setext||(!wn||!_t)&&!Re.quote&&Re.list===!1&&!Re.code&&!Kn&&!ne.test(dt.string)&&(yt=dt.lookAhead(1))&&(yt=yt.match(wt)))return Re.setext?(Re.header=Re.setext,Re.setext=0,dt.skipToEnd(),He.highlightFormatting&&(Re.formatting="header")):(Re.header=yt[0].charAt(0)=="="?1:2,Re.setext=Re.header),Re.thisLine.header=!0,Re.f=Re.inline,Ke(Re);if(Kn)return dt.skipToEnd(),Re.hr=!0,Re.thisLine.hr=!0,ke.hr;if(dt.peek()==="[")return ge(dt,Re,Zt)}return ge(dt,Re,Re.inline)}function Ie(dt,Re){var Mt=Rt.token(dt,Re.htmlState);if(!_e){var Pn=Se.innerMode(Rt,Re.htmlState);(Pn.mode.name=="xml"&&Pn.state.tagStart===null&&!Pn.state.context&&Pn.state.tokenize.isInText||Re.md_inside&&dt.current().indexOf(">")>-1)&&(Re.f=ht,Re.block=Pe,Re.htmlState=null)}return Mt}function We(dt,Re){var Mt=Re.listStack[Re.listStack.length-1]||0,Pn=Re.indentation<Mt,mn=Mt+3;if(Re.fencedEndRE&&Re.indentation<=mn&&(Pn||dt.match(Re.fencedEndRE))){He.highlightFormatting&&(Re.formatting="code-block");var kt;return Pn||(kt=Ke(Re)),Re.localMode=Re.localState=null,Re.block=Pe,Re.f=ht,Re.fencedEndRE=null,Re.code=0,Re.thisLine.fencedCodeEnd=!0,Pn?ve(dt,Re,Re.block):kt}else return Re.localMode?Re.localMode.token(dt,Re.localState):(dt.skipToEnd(),ke.code)}function Ke(dt){var Re=[];if(dt.formatting){Re.push(ke.formatting),typeof dt.formatting=="string"&&(dt.formatting=[dt.formatting]);for(var Mt=0;Mt<dt.formatting.length;Mt++)Re.push(ke.formatting+"-"+dt.formatting[Mt]),dt.formatting[Mt]==="header"&&Re.push(ke.formatting+"-"+dt.formatting[Mt]+"-"+dt.header),dt.formatting[Mt]==="quote"&&(!He.maxBlockquoteDepth||He.maxBlockquoteDepth>=dt.quote?Re.push(ke.formatting+"-"+dt.formatting[Mt]+"-"+dt.quote):Re.push("error"))}if(dt.taskOpen)return Re.push("meta"),Re.length?Re.join(" "):null;if(dt.taskClosed)return Re.push("property"),Re.length?Re.join(" "):null;if(dt.linkHref?Re.push(ke.linkHref,"url"):(dt.strong&&Re.push(ke.strong),dt.em&&Re.push(ke.em),dt.strikethrough&&Re.push(ke.strikethrough),dt.emoji&&Re.push(ke.emoji),dt.linkText&&Re.push(ke.linkText),dt.code&&Re.push(ke.code),dt.image&&Re.push(ke.image),dt.imageAltText&&Re.push(ke.imageAltText,"link"),dt.imageMarker&&Re.push(ke.imageMarker)),dt.header&&Re.push(ke.header,ke.header+"-"+dt.header),dt.quote&&(Re.push(ke.quote),!He.maxBlockquoteDepth||He.maxBlockquoteDepth>=dt.quote?Re.push(ke.quote+"-"+dt.quote):Re.push(ke.quote+"-"+He.maxBlockquoteDepth)),dt.list!==!1){var Pn=(dt.listStack.length-1)%3;Pn?Pn===1?Re.push(ke.list2):Re.push(ke.list3):Re.push(ke.list1)}return dt.trailingSpaceNewLine?Re.push("trailing-space-new-line"):dt.trailingSpace&&Re.push("trailing-space-"+(dt.trailingSpace%2?"a":"b")),Re.length?Re.join(" "):null}function Xe(dt,Re){if(dt.match(Me,!0))return Ke(Re)}function ht(dt,Re){var Mt=Re.text(dt,Re);if(typeof Mt!="undefined")return Mt;if(Re.list)return Re.list=null,Ke(Re);if(Re.taskList){var Pn=dt.match(gt,!0)[1]===" ";return Pn?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&&dt.match(/^#+$/,!0))return He.highlightFormatting&&(Re.formatting="header"),Ke(Re);var mn=dt.next();if(Re.linkTitle){Re.linkTitle=!1;var kt=mn;mn==="("&&(kt=")"),kt=(kt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var _t="^\\s*(?:[^"+kt+"\\\\]+|\\\\\\\\|\\\\.)"+kt;if(dt.match(new RegExp(_t),!0))return ke.linkHref}if(mn==="`"){var ln=Re.formatting;He.highlightFormatting&&(Re.formatting="code"),dt.eatWhile("`");var Bn=dt.current().length;if(Re.code==0&&(!Re.quote||Bn==1))return Re.code=Bn,Ke(Re);if(Bn==Re.code){var wn=Ke(Re);return Re.code=0,wn}else return Re.formatting=ln,Ke(Re)}else if(Re.code)return Ke(Re);if(mn==="\\"&&(dt.next(),He.highlightFormatting)){var Kn=Ke(Re),yt=ke.formatting+"-escape";return Kn?Kn+" "+yt:yt}if(mn==="!"&&dt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Re.imageMarker=!0,Re.image=!0,He.highlightFormatting&&(Re.formatting="image"),Ke(Re);if(mn==="["&&Re.imageMarker&&dt.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 Kn=Ke(Re);return Re.imageAltText=!1,Re.image=!1,Re.inline=Re.f=Nt,Kn}if(mn==="["&&!Re.image)return Re.linkText&&dt.match(/^.*?\]/)||(Re.linkText=!0,He.highlightFormatting&&(Re.formatting="link")),Ke(Re);if(mn==="]"&&Re.linkText){He.highlightFormatting&&(Re.formatting="link");var Kn=Ke(Re);return Re.linkText=!1,Re.inline=Re.f=dt.match(/\(.*?\)| ?\[.*?\]/,!1)?Nt:ht,Kn}if(mn==="<"&&dt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Re.f=Re.inline=Ve,He.highlightFormatting&&(Re.formatting="link");var Kn=Ke(Re);return Kn?Kn+=" ":Kn="",Kn+ke.linkInline}if(mn==="<"&&dt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Re.f=Re.inline=Ve,He.highlightFormatting&&(Re.formatting="link");var Kn=Ke(Re);return Kn?Kn+=" ":Kn="",Kn+ke.linkEmail}if(He.xml&&mn==="<"&&dt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Jn=dt.string.indexOf(">",dt.pos);if(Jn!=-1){var bn=dt.string.substring(dt.start,Jn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(bn)&&(Re.md_inside=!0)}return dt.backUp(1),Re.htmlState=Se.startState(Rt),ve(dt,Re,Ie)}if(He.xml&&mn==="<"&&dt.match(/^\/\w*?>/))return Re.md_inside=!1,"tag";if(mn==="*"||mn==="_"){for(var ci=1,Tn=dt.pos==1?" ":dt.string.charAt(dt.pos-2);ci<3&&dt.eat(mn);)ci++;var tn=dt.peek()||" ",$t=!/\s/.test(tn)&&(!ce.test(tn)||/\s/.test(Tn)||ce.test(Tn)),ft=!/\s/.test(Tn)&&(!ce.test(Tn)||/\s/.test(tn)||ce.test(tn)),Je=null,Gt=null;if(ci%2&&(!Re.em&&$t&&(mn==="*"||!ft||ce.test(Tn))?Je=!0:Re.em==mn&&ft&&(mn==="*"||!$t||ce.test(tn))&&(Je=!1)),ci>1&&(!Re.strong&&$t&&(mn==="*"||!ft||ce.test(Tn))?Gt=!0:Re.strong==mn&&ft&&(mn==="*"||!$t||ce.test(tn))&&(Gt=!1)),Gt!=null||Je!=null){He.highlightFormatting&&(Re.formatting=Je==null?"strong":Gt==null?"em":"strong em"),Je===!0&&(Re.em=mn),Gt===!0&&(Re.strong=mn);var wn=Ke(Re);return Je===!1&&(Re.em=!1),Gt===!1&&(Re.strong=!1),wn}}else if(mn===" "&&(dt.eat("*")||dt.eat("_"))){if(dt.peek()===" ")return Ke(Re);dt.backUp(1)}if(He.strikethrough){if(mn==="~"&&dt.eatWhile(mn)){if(Re.strikethrough){He.highlightFormatting&&(Re.formatting="strikethrough");var wn=Ke(Re);return Re.strikethrough=!1,wn}else if(dt.match(/^[^\s]/,!1))return Re.strikethrough=!0,He.highlightFormatting&&(Re.formatting="strikethrough"),Ke(Re)}else if(mn===" "&&dt.match(/^~~/,!0)){if(dt.peek()===" ")return Ke(Re);dt.backUp(2)}}if(He.emoji&&mn===":"&&dt.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===" "&&(dt.match(/^ +$/,!1)?Re.trailingSpace++:Re.trailingSpace&&(Re.trailingSpaceNewLine=!0)),Ke(Re)}function Ve(dt,Re){var Mt=dt.next();if(Mt===">"){Re.f=Re.inline=ht,He.highlightFormatting&&(Re.formatting="link");var Pn=Ke(Re);return Pn?Pn+=" ":Pn="",Pn+ke.linkInline}return dt.match(/^[^>]+/,!0),ke.linkInline}function Nt(dt,Re){if(dt.eatSpace())return null;var Mt=dt.next();return Mt==="("||Mt==="["?(Re.f=Re.inline=Ht(Mt==="("?")":"]"),He.highlightFormatting&&(Re.formatting="link-string"),Re.linkHref=!0,Ke(Re)):"error"}var qe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ht(dt){return function(Re,Mt){var Pn=Re.next();if(Pn===dt){Mt.f=Mt.inline=ht,He.highlightFormatting&&(Mt.formatting="link-string");var mn=Ke(Mt);return Mt.linkHref=!1,mn}return Re.match(qe[dt]),Mt.linkHref=!0,Ke(Mt)}}function Zt(dt,Re){return dt.match(/^([^\]\\]|\\.)*\]:/,!1)?(Re.f=Yt,dt.next(),He.highlightFormatting&&(Re.formatting="link"),Re.linkText=!0,Ke(Re)):ge(dt,Re,ht)}function Yt(dt,Re){if(dt.match(/^\]:/,!0)){Re.f=Re.inline=Ot,He.highlightFormatting&&(Re.formatting="link");var Mt=Ke(Re);return Re.linkText=!1,Mt}return dt.match(/^([^\]\\]|\\.)+/,!0),ke.linkText}function Ot(dt,Re){return dt.eatSpace()?null:(dt.match(/^[^\s]+/,!0),dt.peek()===void 0?Re.linkTitle=!0:dt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Re.f=Re.inline=ht,ke.linkHref+" url")}var Qt={startState:function(){return{f:Pe,prevLine:{stream:null},thisLine:{stream:null},block:Pe,htmlState:null,indentation:0,inline:ht,text:Xe,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(dt){return{f:dt.f,prevLine:dt.prevLine,thisLine:dt.thisLine,block:dt.block,htmlState:dt.htmlState&&Se.copyState(Rt,dt.htmlState),indentation:dt.indentation,localMode:dt.localMode,localState:dt.localMode?Se.copyState(dt.localMode,dt.localState):null,inline:dt.inline,text:dt.text,formatting:!1,linkText:dt.linkText,linkTitle:dt.linkTitle,linkHref:dt.linkHref,code:dt.code,em:dt.em,strong:dt.strong,strikethrough:dt.strikethrough,emoji:dt.emoji,header:dt.header,setext:dt.setext,hr:dt.hr,taskList:dt.taskList,list:dt.list,listStack:dt.listStack.slice(0),quote:dt.quote,indentedCode:dt.indentedCode,trailingSpace:dt.trailingSpace,trailingSpaceNewLine:dt.trailingSpaceNewLine,md_inside:dt.md_inside,fencedEndRE:dt.fencedEndRE}},token:function(dt,Re){if(Re.formatting=!1,dt!=Re.thisLine.stream){if(Re.header=0,Re.hr=!1,dt.match(/^\s*$/,!0))return Fe(Re),null;if(Re.prevLine=Re.thisLine,Re.thisLine={stream:dt},Re.taskList=!1,Re.trailingSpace=0,Re.trailingSpaceNewLine=!1,!Re.localState&&(Re.f=Re.block,Re.f!=Ie)){var Mt=dt.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(Re.indentation=Mt,Re.indentationDiff=null,Mt>0)return null}}return Re.f(dt,Re)},innerMode:function(dt){return dt.block==Ie?{state:dt.htmlState,mode:Rt}:dt.localState?{state:dt.localState,mode:dt.localMode}:{state:dt,mode:Qt}},indent:function(dt,Re,Mt){return dt.block==Ie&&Rt.indent?Rt.indent(dt.htmlState,Re,Mt):dt.localState&&dt.localMode.indent?dt.localMode.indent(dt.localState,Re,Mt):Se.Pass},blankLine:Fe,getType:Ke,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Qt},"xml"),Se.defineMIME("text/markdown","markdown"),Se.defineMIME("text/x-markdown","markdown")})},98101:function(Rn,Fn,ye){(function(Se){Se(ye(89780))})(function(Se){"use strict";Se.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<Se.modeInfo.length;Oe++){var He=Se.modeInfo[Oe];He.mimes&&(He.mime=He.mimes[0])}Se.findModeByMIME=function(Rt){Rt=Rt.toLowerCase();for(var _e=0;_e<Se.modeInfo.length;_e++){var vt=Se.modeInfo[_e];if(vt.mime==Rt)return vt;if(vt.mimes){for(var ke=0;ke<vt.mimes.length;ke++)if(vt.mimes[ke]==Rt)return vt}}if(/\+xml$/.test(Rt))return Se.findModeByMIME("application/xml");if(/\+json$/.test(Rt))return Se.findModeByMIME("application/json")},Se.findModeByExtension=function(Rt){Rt=Rt.toLowerCase();for(var _e=0;_e<Se.modeInfo.length;_e++){var vt=Se.modeInfo[_e];if(vt.ext){for(var ke=0;ke<vt.ext.length;ke++)if(vt.ext[ke]==Rt)return vt}}},Se.findModeByFileName=function(Rt){for(var _e=0;_e<Se.modeInfo.length;_e++){var vt=Se.modeInfo[_e];if(vt.file&&vt.file.test(Rt))return vt}var ke=Rt.lastIndexOf("."),Tt=ke>-1&&Rt.substring(ke+1,Rt.length);if(Tt)return Se.findModeByExtension(Tt)},Se.findModeByName=function(Rt){Rt=Rt.toLowerCase();for(var _e=0;_e<Se.modeInfo.length;_e++){var vt=Se.modeInfo[_e];if(vt.name.toLowerCase()==Rt)return vt;if(vt.alias){for(var ke=0;ke<vt.alias.length;ke++)if(vt.alias[ke].toLowerCase()==Rt)return vt}}}})},67549:function(Rn,Fn,ye){(function(Se){Se(ye(89780))})(function(Se){"use strict";Se.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 vt(Me){var te=Me.cmdState.pop();te&&te.closeBracket()}function ke(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 Lt={};Lt.importmodule=Tt("importmodule","tag",["string","builtin"]),Lt.documentclass=Tt("documentclass","tag",["","atom"]),Lt.usepackage=Tt("usepackage","tag",["atom"]),Lt.begin=Tt("begin","tag",["atom"]),Lt.end=Tt("end","tag",["atom"]),Lt.label=Tt("label","tag",["atom"]),Lt.ref=Tt("ref","tag",["atom"]),Lt.eqref=Tt("eqref","tag",["atom"]),Lt.cite=Tt("cite","tag",["atom"]),Lt.bibitem=Tt("bibitem","tag",["atom"]),Lt.Bibitem=Tt("Bibitem","tag",["atom"]),Lt.RBibitem=Tt("RBibitem","tag",["atom"]),Lt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function et(Me,te){Me.f=te}function gt(Me,te){var ne;if(Me.match(/^\\[a-zA-Z@]+/)){var ce=Me.current().slice(1);return ne=Lt.hasOwnProperty(ce)?Lt[ce]:Lt.DEFAULT,ne=new ne,Rt(te,ne),et(te,wt),ne.style}if(Me.match(/^\\[$&%#{}_]/)||Me.match(/^\\[,;!\/\\]/))return"tag";if(Me.match("\\["))return et(te,function(ge,ve){return ct(ge,ve,"\\]")}),"keyword";if(Me.match("\\("))return et(te,function(ge,ve){return ct(ge,ve,"\\)")}),"keyword";if(Me.match("$$"))return et(te,function(ge,ve){return ct(ge,ve,"$$")}),"keyword";if(Me.match("$"))return et(te,function(ge,ve){return ct(ge,ve,"$")}),"keyword";var se=Me.next();if(se=="%")return Me.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=_e(te),ne)ne.closeBracket(se),et(te,wt);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=Lt.DEFAULT,ne=new ne,Rt(te,ne),"bracket"):/\d/.test(se)?(Me.eatWhile(/[\w.%]/),"atom"):(Me.eatWhile(/[\w\-_]/),ne=ke(te),ne.name=="begin"&&(ne.argument=Me.current()),ne.styleIdentifier())}function ct(Me,te,ne){if(Me.eatSpace())return null;if(ne&&Me.match(ne))return et(te,gt),"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 wt(Me,te){var ne=Me.peek(),ce;return ne=="{"||ne=="["?(ce=_e(te),ce.openBracket(ne),Me.eat(ne),et(te,gt),"bracket"):/[ \t\r]/.test(ne)?(Me.eat(ne),null):(et(te,gt),vt(te),gt(Me,te))}return{startState:function(){var Me=He.inMathMode?function(te,ne){return ct(te,ne)}:gt;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=gt,Me.cmdState.length=0},lineComment:"%"}}),Se.defineMIME("text/x-stex","stex"),Se.defineMIME("text/x-latex","stex")})},15525:function(Rn,Fn,ye){(function(Se){Se(ye(89780))})(function(Se){"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};Se.defineMode("xml",function(Rt,_e){var vt=Rt.indentUnit,ke={},Tt=_e.htmlMode?Oe:He;for(var Lt in Tt)ke[Lt]=Tt[Lt];for(var Lt in _e)ke[Lt]=_e[Lt];var et,gt;function ct(Ve,Nt){function qe(Yt){return Nt.tokenize=Yt,Yt(Ve,Nt)}var Ht=Ve.next();if(Ht=="<")return Ve.eat("!")?Ve.eat("[")?Ve.match("CDATA[")?qe(te("atom","]]>")):null:Ve.match("--")?qe(te("comment","-->")):Ve.match("DOCTYPE",!0,!0)?(Ve.eatWhile(/[\w\._\-]/),qe(ne(1))):null:Ve.eat("?")?(Ve.eatWhile(/[\w\._\-]/),Nt.tokenize=te("meta","?>"),"meta"):(et=Ve.eat("/")?"closeTag":"openTag",Nt.tokenize=wt,"tag bracket");if(Ht=="&"){var Zt;return Ve.eat("#")?Ve.eat("x")?Zt=Ve.eatWhile(/[a-fA-F\d]/)&&Ve.eat(";"):Zt=Ve.eatWhile(/[\d]/)&&Ve.eat(";"):Zt=Ve.eatWhile(/[\w\.\-:]/)&&Ve.eat(";"),Zt?"atom":"error"}else return Ve.eatWhile(/[^&<]/),null}ct.isInText=!0;function wt(Ve,Nt){var qe=Ve.next();if(qe==">"||qe=="/"&&Ve.eat(">"))return Nt.tokenize=ct,et=qe==">"?"endTag":"selfcloseTag","tag bracket";if(qe=="=")return et="equals",null;if(qe=="<"){Nt.tokenize=ct,Nt.state=ve,Nt.tagName=Nt.tagStart=null;var Ht=Nt.tokenize(Ve,Nt);return Ht?Ht+" tag error":"tag error"}else return/[\'\"]/.test(qe)?(Nt.tokenize=Me(qe),Nt.stringStartCol=Ve.column(),Nt.tokenize(Ve,Nt)):(Ve.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Me(Ve){var Nt=function(qe,Ht){for(;!qe.eol();)if(qe.next()==Ve){Ht.tokenize=wt;break}return"string"};return Nt.isInAttribute=!0,Nt}function te(Ve,Nt){return function(qe,Ht){for(;!qe.eol();){if(qe.match(Nt)){Ht.tokenize=ct;break}qe.next()}return Ve}}function ne(Ve){return function(Nt,qe){for(var Ht;(Ht=Nt.next())!=null;){if(Ht=="<")return qe.tokenize=ne(Ve+1),qe.tokenize(Nt,qe);if(Ht==">")if(Ve==1){qe.tokenize=ct;break}else return qe.tokenize=ne(Ve-1),qe.tokenize(Nt,qe)}return"meta"}}function ce(Ve,Nt,qe){this.prev=Ve.context,this.tagName=Nt,this.indent=Ve.indented,this.startOfLine=qe,(ke.doNotIndent.hasOwnProperty(Nt)||Ve.context&&Ve.context.noIndent)&&(this.noIndent=!0)}function se(Ve){Ve.context&&(Ve.context=Ve.context.prev)}function ge(Ve,Nt){for(var qe;;){if(!Ve.context||(qe=Ve.context.tagName,!ke.contextGrabbers.hasOwnProperty(qe)||!ke.contextGrabbers[qe].hasOwnProperty(Nt)))return;se(Ve)}}function ve(Ve,Nt,qe){return Ve=="openTag"?(qe.tagStart=Nt.column(),be):Ve=="closeTag"?Fe:ve}function be(Ve,Nt,qe){return Ve=="word"?(qe.tagName=Nt.current(),gt="tag",We):ke.allowMissingTagName&&Ve=="endTag"?(gt="tag bracket",We(Ve,Nt,qe)):(gt="error",be)}function Fe(Ve,Nt,qe){if(Ve=="word"){var Ht=Nt.current();return qe.context&&qe.context.tagName!=Ht&&ke.implicitlyClosed.hasOwnProperty(qe.context.tagName)&&se(qe),qe.context&&qe.context.tagName==Ht||ke.matchClosing===!1?(gt="tag",Pe):(gt="tag error",Ie)}else return ke.allowMissingTagName&&Ve=="endTag"?(gt="tag bracket",Pe(Ve,Nt,qe)):(gt="error",Ie)}function Pe(Ve,Nt,qe){return Ve!="endTag"?(gt="error",Pe):(se(qe),ve)}function Ie(Ve,Nt,qe){return gt="error",Pe(Ve,Nt,qe)}function We(Ve,Nt,qe){if(Ve=="word")return gt="attribute",Ke;if(Ve=="endTag"||Ve=="selfcloseTag"){var Ht=qe.tagName,Zt=qe.tagStart;return qe.tagName=qe.tagStart=null,Ve=="selfcloseTag"||ke.autoSelfClosers.hasOwnProperty(Ht)?ge(qe,Ht):(ge(qe,Ht),qe.context=new ce(qe,Ht,Zt==qe.indented)),ve}return gt="error",We}function Ke(Ve,Nt,qe){return Ve=="equals"?Xe:(ke.allowMissing||(gt="error"),We(Ve,Nt,qe))}function Xe(Ve,Nt,qe){return Ve=="string"?ht:Ve=="word"&&ke.allowUnquoted?(gt="string",We):(gt="error",We(Ve,Nt,qe))}function ht(Ve,Nt,qe){return Ve=="string"?ht:We(Ve,Nt,qe)}return{startState:function(Ve){var Nt={tokenize:ct,state:ve,indented:Ve||0,tagName:null,tagStart:null,context:null};return Ve!=null&&(Nt.baseIndent=Ve),Nt},token:function(Ve,Nt){if(!Nt.tagName&&Ve.sol()&&(Nt.indented=Ve.indentation()),Ve.eatSpace())return null;et=null;var qe=Nt.tokenize(Ve,Nt);return(qe||et)&&qe!="comment"&&(gt=null,Nt.state=Nt.state(et||qe,Ve,Nt),gt&&(qe=gt=="error"?qe+" error":gt)),qe},indent:function(Ve,Nt,qe){var Ht=Ve.context;if(Ve.tokenize.isInAttribute)return Ve.tagStart==Ve.indented?Ve.stringStartCol+1:Ve.indented+vt;if(Ht&&Ht.noIndent)return Se.Pass;if(Ve.tokenize!=wt&&Ve.tokenize!=ct)return qe?qe.match(/^(\s*)/)[0].length:0;if(Ve.tagName)return ke.multilineTagIndentPastTag!==!1?Ve.tagStart+Ve.tagName.length+2:Ve.tagStart+vt*(ke.multilineTagIndentFactor||1);if(ke.alignCDATA&&/<!\[CDATA\[/.test(Nt))return 0;var Zt=Nt&&/^<(\/)?([\w_:\.-]*)/.exec(Nt);if(Zt&&Zt[1])for(;Ht;)if(Ht.tagName==Zt[2]){Ht=Ht.prev;break}else if(ke.implicitlyClosed.hasOwnProperty(Ht.tagName))Ht=Ht.prev;else break;else if(Zt)for(;Ht;){var Yt=ke.contextGrabbers[Ht.tagName];if(Yt&&Yt.hasOwnProperty(Zt[2]))Ht=Ht.prev;else break}for(;Ht&&Ht.prev&&!Ht.startOfLine;)Ht=Ht.prev;return Ht?Ht.indent+vt:Ve.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ke.htmlMode?"html":"xml",helperType:ke.htmlMode?"html":"xml",skipAttribute:function(Ve){Ve.state==Xe&&(Ve.state=We)},xmlCurrentTag:function(Ve){return Ve.tagName?{name:Ve.tagName,close:Ve.type=="closeTag"}:null},xmlCurrentContext:function(Ve){for(var Nt=[],qe=Ve.context;qe;qe=qe.prev)qe.tagName&&Nt.push(qe.tagName);return Nt.reverse()}}}),Se.defineMIME("text/xml","xml"),Se.defineMIME("application/xml","xml"),Se.mimeModes.hasOwnProperty("text/html")||Se.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Rn,Fn,ye){"use strict";ye.d(Fn,{$u:function(){return Lt},BD:function(){return ci},E9:function(){return Tt},FF:function(){return Yr},FJ:function(){return ve},Hn:function(){return ge},KX:function(){return Fe},NB:function(){return Be},S0:function(){return yt},UL:function(){return et},Vk:function(){return se},Vm:function(){return pe},YI:function(){return Jn},ZA:function(){return He},Zt:function(){return gt},al:function(){return Je},bn:function(){return ft},bx:function(){return Tn},g2:function(){return bn},h1:function(){return Xe},hD:function(){return Ri},l4:function(){return vt},rU:function(){return we},s_:function(){return tn},uz:function(){return Ge},z6:function(){return ct}}),Rn=ye.hmd(Rn),function(){var Ce;function hi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function ki(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:hi(a)}}function un(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var Wn=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},li;if(typeof Object.setPrototypeOf=="function")li=Object.setPrototypeOf;else{var fn;e:{var on={a:!0},mt={};try{mt.__proto__=on,fn=mt.a;break e}catch(a){}fn=!1}li=fn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Pt=li;function bt(a,y){if(a.prototype=Wn(y.prototype),a.prototype.constructor=a,Pt)Pt(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 tt=typeof ye.g!="undefined"&&ye.g!=null?ye.g:self,qt=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},dn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function xt(a,y){if(y){var x=tt;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&&dn(x,a,{writable:!0,value:y})}}xt("Object.assign",function(a){return a||qt}),xt("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var Ye=typeof globalThis=="object"&&globalThis||typeof ye.g=="object"&&ye.g.global===ye.g&&ye.g||typeof self=="object"&&self.self===self&&self||{};Ye.requestAnimationFrame===void 0&&(Ye.setImmediate===void 0?Ye.requestAnimationFrame=function(a){Ye.setTimeout(a,0)}:Ye.requestAnimationFrame=Ye.setImmediate);function an(){}function Bt(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ye.clearTimeout(x),x=jn(function(){x=-1,a.apply(b,E)},y)}}function jn(a,y){return Ye.setTimeout(a,y)}function cn(a){return Ye.document.createElement(a)}function Et(a){throw Error(a)}function xn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Et(a)}function Qn(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),Et(x+" is not in the range "+y+": "+a)}function Un(a){Ye.console&&Ye.console.log(a)}function zt(a){return typeof a=="object"&&a!==null}function Sn(a){return Array.isArray(a)||Ye.NodeList&&a instanceof Ye.NodeList||Ye.HTMLCollection&&a instanceof Ye.HTMLCollection}function Ci(a){return Array.prototype.slice.call(a)}function Si(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Et("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function vi(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Et("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ti(){var a=Sr.pop();return a===void 0?[]:a}function xi(a){a.length=0,Sr.push(a)}function Ni(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 Ni(a.constructor);return typeof a}function Zi(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 cr(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 Gn(a,y,x){Object.defineProperty(ni.prototype,a,{get:y,set:x})}function Ai(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 br=Ye.navigator!==void 0&&0<Ye.navigator.userAgent.indexOf("Trident/7"),kr=Ye.navigator!==void 0&&Ye.navigator.platform!==void 0&&Ye.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Sr=[];Object.freeze([]),an.className="Util",an.Dx="32ab5ff3b26f42dc0ed90f21472913b5",an.adym="gojs.net",an.vfo="28e645fdb266",an.className="Util";function Xt(a,y,x){pr(this),this.j=a,this.xa=y,this.o=x}Xt.prototype.toString=function(){return"EnumValue."+this.xa};function Li(a,y){return y==null||y===""?null:a[y]}tt.Object.defineProperties(Xt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Xt.className="EnumValue";function rr(){this.ew=[]}rr.prototype.toString=function(){return this.ew.join("")},rr.prototype.add=function(a){a!==""&&this.ew.push(a)},rr.className="StringBuilder";function Hi(){}Hi.className="PropertyCollection";var Er={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Ye.console&&Ye.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(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 dr(){}dr.prototype.reset=function(){},dr.prototype.next=function(){return!1},dr.prototype.Ad=function(){return!1},dr.prototype.first=function(){return null},dr.prototype.any=function(){return!1},dr.prototype.all=function(){return!0},dr.prototype.each=function(){return this},dr.prototype.map=function(){return this},dr.prototype.filter=function(){return this},dr.prototype.de=function(){},dr.prototype.toString=function(){return"EmptyIterator"},tt.Object.defineProperties(dr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),dr.prototype.first=dr.prototype.first,dr.prototype.hasNext=dr.prototype.Ad,dr.prototype.next=dr.prototype.next,dr.prototype.reset=dr.prototype.reset;var Nr=null;dr.className="EmptyIterator",Nr=new dr;function Ti(a){this.key=-1,this.value=a}Ti.prototype.reset=function(){this.key=-1},Ti.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Ti.prototype.Ad=function(){return this.next()},Ti.prototype.first=function(){return this.key=0,this.value},Ti.prototype.any=function(a){return this.key=-1,a(this.value)},Ti.prototype.all=function(a){return this.key=-1,a(this.value)},Ti.prototype.each=function(a){return this.key=-1,a(this.value),this},Ti.prototype.map=function(a){return new Ti(a(this.value))},Ti.prototype.filter=function(a){return a(this.value)?new Ti(this.value):Nr},Ti.prototype.de=function(){this.value=null},Ti.prototype.toString=function(){return"SingletonIterator("+this.value+")"},tt.Object.defineProperties(Ti.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Ti.prototype.first=Ti.prototype.first,Ti.prototype.hasNext=Ti.prototype.Ad,Ti.prototype.next=Ti.prototype.next,Ti.prototype.reset=Ti.prototype.reset,Ti.className="SingletonIterator";function Qi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Qi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Qi.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},Qi.prototype.Ad=function(){return this.next()},Qi.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},Qi.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},Qi.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},Qi.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},Qi.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 kn,a.s=x,a.xb(),a.iterator},Qi.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 kn,a.s=x,a.xb(),a.iterator},Qi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Qi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},tt.Object.defineProperties(Qi.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}}}),Qi.prototype.first=Qi.prototype.first,Qi.prototype.hasNext=Qi.prototype.Ad,Qi.prototype.next=Qi.prototype.next,Qi.prototype.reset=Qi.prototype.reset,Qi.className="ListIterator";function er(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}er.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},er.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)},er.prototype.Ad=function(){return this.next()},er.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},er.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},er.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},er.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},er.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 kn,a.s=x,a.xb(),a.iterator},er.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 kn,a.s=x,a.xb(),a.iterator},er.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},er.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},tt.Object.defineProperties(er.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),er.prototype.first=er.prototype.first,er.prototype.hasNext=er.prototype.Ad,er.prototype.next=er.prototype.next,er.prototype.reset=er.prototype.reset,er.className="ListIteratorBackwards";function kn(a){pr(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=kn.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.toString=function(){return"List()#"+vr(this)},Ce.add=function(a){return a===null?this:(this._isFrozen&&xn(this,a),this.s.push(a),this.xb(),this)},Ce.push=function(a){this.add(a)},Ce.addAll=function(a){if(a===null)return this;this._isFrozen&&xn(this);var y=this.s;if(Sn(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},Ce.clear=function(){this._isFrozen&&xn(this),this.s.length=0,this.xb()},Ce.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ce.has=function(a){return this.contains(a)},Ce.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ce.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Qn(a,"0 <= i < length",kn,"elt:i"),y[a]},Ce.get=function(a){return this.M(a)},Ce.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Qn(a,"0 <= i < length",kn,"setElt:i"),this._isFrozen&&xn(this,a),x[a]=y},Ce.set=function(a,y){this.cd(a,y)},Ce.first=function(){var a=this.s;return a.length===0?null:a[0]},Ce.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ce.pop=function(){this._isFrozen&&xn(this);var a=this.s;return 0<a.length?a.pop():null},kn.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},kn.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},kn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},kn.prototype.map=function(a){for(var y=new kn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},kn.prototype.filter=function(a){for(var y=new kn,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},Ce=kn.prototype,Ce.Gb=function(a,y){0>a&&Qn(a,">= 0",kn,"insertAt:i"),this._isFrozen&&xn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&xn(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)},Ce.delete=function(a){return this.remove(a)},Ce.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Qn(a,"0 <= i < length",kn,"removeAt:i"),this._isFrozen&&xn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ce.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&&xn(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},kn.prototype.copy=function(){var a=new kn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ce=kn.prototype,Ce.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Ce.Iv=function(){for(var a=new Ln,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Ce.sort=function(a){return this._isFrozen&&xn(this),this.s.sort(a),this.xb(),this},Ce.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&xn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Qn(y,"0 <= from < length",kn,"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},Ce.reverse=function(){return this._isFrozen&&xn(this),this.s.reverse(),this.xb(),this},tt.Object.defineProperties(kn.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 Nr;var a=this.Sa;return a!==null?(a.reset(),a):new Qi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Nr;var a=this.Hg;return a!==null?(a.reset(),a):new er(this)}}}),kn.prototype.reverse=kn.prototype.reverse,kn.prototype.sortRange=kn.prototype.zi,kn.prototype.sort=kn.prototype.sort,kn.prototype.toSet=kn.prototype.Iv,kn.prototype.toArray=kn.prototype.Fa,kn.prototype.removeRange=kn.prototype.removeRange,kn.prototype.removeAt=kn.prototype.mb,kn.prototype.delete=kn.prototype.delete,kn.prototype.remove=kn.prototype.remove,kn.prototype.insertAt=kn.prototype.Gb,kn.prototype.pop=kn.prototype.pop,kn.prototype.last=kn.prototype.jc,kn.prototype.first=kn.prototype.first,kn.prototype.set=kn.prototype.set,kn.prototype.setElt=kn.prototype.cd,kn.prototype.get=kn.prototype.get,kn.prototype.elt=kn.prototype.M,kn.prototype.indexOf=kn.prototype.indexOf,kn.prototype.has=kn.prototype.has,kn.prototype.contains=kn.prototype.contains,kn.prototype.clear=kn.prototype.clear,kn.prototype.addAll=kn.prototype.addAll,kn.prototype.push=kn.prototype.push,kn.prototype.add=kn.prototype.add,kn.prototype.thaw=kn.prototype.ka,kn.prototype.freeze=kn.prototype.freeze,kn.className="List";function Dr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Dr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Dr.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)},Dr.prototype.Ad=function(){return this.next()},Dr.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},Dr.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},Dr.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},Dr.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},Dr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new kn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Dr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new kn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Dr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Dr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},tt.Object.defineProperties(Dr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Dr.prototype.first=Dr.prototype.first,Dr.prototype.hasNext=Dr.prototype.Ad,Dr.prototype.next=Dr.prototype.next,Dr.prototype.reset=Dr.prototype.reset,Dr.className="SetIterator";function Ln(a){pr(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=Ln.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.toString=function(){return"Set()#"+vr(this)},Ce.add=function(a){if(a===null)return this;this._isFrozen&&xn(this,a);var y=a;return zt(a)&&(y=Qr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new fr(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},Ce.addAll=function(a){if(a===null)return this;if(this._isFrozen&&xn(this),Sn(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},Ce.contains=function(a){if(a===null)return!1;var y=a;return zt(a)&&(y=vr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ce.has=function(a){return this.contains(a)},Ce.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ce.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ce.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},Ce=Ln.prototype,Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&xn(this,a);var y=a;if(zt(a)&&(y=vr(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},Ce.delete=function(a){return this.remove(a)},Ce.hp=function(a){if(a===null)return this;if(this._isFrozen&&xn(this),Sn(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},Ce.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&xn(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},Ce.clear=function(){this._isFrozen&&xn(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 kn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function pr(a){a.__gohashid=Ho++}function Qr(a){var y=a.__gohashid;return y===void 0&&(y=Ho++,a.__gohashid=y),y}function vr(a){return a.__gohashid}tt.Object.defineProperties(Ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Nr;var a=this.Sa;return a!==null?(a.reset(),a):new Dr(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 Ho=1;Ln.className="Set",Ln.uniqueHash=pr,Ln.hashIdUnique=Qr,Ln.hashId=vr;function co(a){this.ma=a,this.qa=a.Ja,this.sa=null}co.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},co.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)},co.prototype.Ad=function(){return this.next()},co.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},co.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},co.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},co.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},co.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new kn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},co.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new kn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},co.prototype.de=function(){this.value=this.key=null,this.qa=-1},co.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},tt.Object.defineProperties(co.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),co.prototype.first=co.prototype.first,co.prototype.hasNext=co.prototype.Ad,co.prototype.next=co.prototype.next,co.prototype.reset=co.prototype.reset,co.className="MapKeySetIterator";function mr(a){Ln.call(this),pr(this),this._isFrozen=!0,this.ma=a}bt(mr,Ln),Ce=mr.prototype,Ce.freeze=function(){return this},Ce.ka=function(){return this},Ce.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ce.add=function(){Et("This Set is read-only: "+this.toString())},Ce.contains=function(a){return this.ma.contains(a)},Ce.has=function(a){return this.contains(a)},Ce.remove=function(){Et("This Set is read-only: "+this.toString())},Ce.delete=function(a){return this.remove(a)},Ce.clear=function(){Et("This Set is read-only: "+this.toString())},Ce.first=function(){var a=this.ma.ea;return a!==null?a.key:null},mr.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},mr.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},mr.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},mr.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},mr.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},mr.prototype.copy=function(){return new mr(this.ma)},mr.prototype.Iv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},mr.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},mr.prototype.Hv=function(){var a=new kn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},tt.Object.defineProperties(mr.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Nr:new co(this.ma)}}}),mr.prototype.toList=mr.prototype.Hv,mr.prototype.toArray=mr.prototype.Fa,mr.prototype.toSet=mr.prototype.Iv,mr.prototype.first=mr.prototype.first,mr.prototype.clear=mr.prototype.clear,mr.prototype.delete=mr.prototype.delete,mr.prototype.remove=mr.prototype.remove,mr.prototype.has=mr.prototype.has,mr.prototype.contains=mr.prototype.contains,mr.prototype.add=mr.prototype.add,mr.prototype.thaw=mr.prototype.ka,mr.prototype.freeze=mr.prototype.freeze,mr.className="MapKeySet";function hr(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}hr.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},hr.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)},hr.prototype.Ad=function(){return this.next()},hr.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},hr.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},hr.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},hr.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},hr.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new kn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},hr.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new kn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},hr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},hr.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},tt.Object.defineProperties(hr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),hr.prototype.first=hr.prototype.first,hr.prototype.hasNext=hr.prototype.Ad,hr.prototype.next=hr.prototype.next,hr.prototype.reset=hr.prototype.reset,hr.className="MapValueSetIterator";function fr(a,y){this.key=a,this.value=y,this.ll=this.va=null}fr.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},fr.className="KeyValuePair";function Vr(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Vr.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Vr.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)},Vr.prototype.Ad=function(){return this.next()},Vr.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},Vr.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},Vr.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},Vr.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},Vr.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new kn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Vr.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new kn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Vr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Vr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},tt.Object.defineProperties(Vr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Vr.prototype.first=Vr.prototype.first,Vr.prototype.hasNext=Vr.prototype.Ad,Vr.prototype.next=Vr.prototype.next,Vr.prototype.reset=Vr.prototype.reset,Vr.className="MapIterator";function Ii(a){pr(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"&&Et("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=Ii.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.toString=function(){return"Map()#"+vr(this)},Ce.add=function(a,y){this._isFrozen&&xn(this,a);var x=a;zt(a)&&(x=Qr(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new fr(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},Ce.set=function(a,y){return this.add(a,y)},Ce.addAll=function(a){if(a===null)return this;if(Sn(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 Ii)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},Ce.first=function(){return this.ea},Ii.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Ii.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Ii.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Ii.prototype.map=function(a){for(var y=new Ii,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Ii.prototype.filter=function(a){for(var y=new Ii,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ce=Ii.prototype,Ce.contains=function(a){var y=a;return zt(a)&&(y=vr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ce.has=function(a){return this.contains(a)},Ce.I=function(a){var y=a;return zt(a)&&(y=vr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ce.get=function(a){return this.I(a)},Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&xn(this,a);var y=a;if(zt(a)&&(y=vr(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},Ce.delete=function(a){return this.remove(a)},Ce.clear=function(){this._isFrozen&&xn(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()},Ii.prototype.copy=function(){var a=new Ii,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Ii.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 fr(E.key,E.value),x++}return y},Ii.prototype.Lf=function(){return new mr(this)},tt.Object.defineProperties(Ii.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Nr;var a=this.Sa;return a!==null?(a.reset(),a):new Vr(this)}},iteratorKeys:{get:function(){return 0>=this.count?Nr:new co(this)}},iteratorValues:{get:function(){if(0>=this.count)return Nr;var a=this.jf;return a!==null?(a.reset(),a):new hr(this)}}}),Ii.prototype.toKeySet=Ii.prototype.Lf,Ii.prototype.toArray=Ii.prototype.Fa,Ii.prototype.clear=Ii.prototype.clear,Ii.prototype.delete=Ii.prototype.delete,Ii.prototype.remove=Ii.prototype.remove,Ii.prototype.get=Ii.prototype.get,Ii.prototype.getValue=Ii.prototype.I,Ii.prototype.has=Ii.prototype.has,Ii.prototype.contains=Ii.prototype.contains,Ii.prototype.first=Ii.prototype.first,Ii.prototype.addAll=Ii.prototype.addAll,Ii.prototype.set=Ii.prototype.set,Ii.prototype.add=Ii.prototype.add,Ii.prototype.thaw=Ii.prototype.ka,Ii.prototype.freeze=Ii.prototype.freeze,Ii.className="Map";function Qe(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Et("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var pt,It,sn,Hn,On;Qe.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Qe.prototype.h=function(a,y){return this.x=a,this.y=y,this},Qe.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Qe.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Qe.prototype.copy=function(){var a=new Qe;return a.x=this.x,a.y=this.y,a},Ce=Qe.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function Wt(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 Qe(x,E)}return new Qe}function Nn(a){return a.x.toString()+" "+a.y.toString()}Ce.toString=function(){return"Point("+this.x+","+this.y+")"},Ce.D=function(a){return a instanceof Qe?this.x===a.x&&this.y===a.y:!1},Ce.hi=function(a,y){return this.x===a&&this.y===y},Ce.Xa=function(a){return Kt.B(this.x,a.x)&&Kt.B(this.y,a.y)},Ce.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ce.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ce.offset=function(a,y){return this.x+=a,this.y+=y,this},Qe.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},Ce=Qe.prototype,Ce.scale=function(a,y){return this.x*=a,this.y*=y,this},Ce.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ce.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ce.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},Ce.ab=function(a){return ai(a.x-this.x,a.y-this.y)},Ce.direction=function(a,y){return ai(a-this.x,y-this.y)};function ai(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}Ce.Ry=function(a,y){return Kt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ce.fA=function(a,y,x,b){return Kt.qh(a,y,x,b,this.x,this.y,this),this},Ce.gA=function(a,y){return Kt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ce.uA=function(a,y,x,b){return Kt.No(this.x,this.y,a,y,x,b,this),this},Ce.vA=function(a,y){return Kt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ce.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},Ce.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},Ce.transform=function(a){return a.Ga(this),this};function qn(a,y){return y.Cd(a),a}function Oi(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 Bi(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function pi(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)}Ce.w=function(){return isFinite(this.x)&&isFinite(this.y)},Qe.alloc=function(){var a=Gi.pop();return a===void 0?new Qe:a},Qe.allocAt=function(a,y){var x=Gi.pop();return x===void 0?new Qe(a,y):(x.x=a,x.y=y,x)},Qe.free=function(a){Gi.push(a)},Qe.prototype.isReal=Qe.prototype.w,Qe.prototype.setSpot=Qe.prototype.yi,Qe.prototype.setRectSpot=Qe.prototype.xi,Qe.prototype.snapToGridPoint=Qe.prototype.vA,Qe.prototype.snapToGrid=Qe.prototype.uA,Qe.prototype.projectOntoLineSegmentPoint=Qe.prototype.gA,Qe.prototype.projectOntoLineSegment=Qe.prototype.fA,Qe.intersectingLineSegments=function(a,y,x,b,E,z,ee,re){return Kt.Rl(a,y,x,b,E,z,ee,re)},Qe.prototype.compareWithLineSegmentPoint=Qe.prototype.Ry,Qe.compareWithLineSegment=function(a,y,x,b,E,z){return Kt.Fl(a,y,x,b,E,z)},Qe.prototype.direction=Qe.prototype.direction,Qe.prototype.directionPoint=Qe.prototype.ab,Qe.prototype.normalize=Qe.prototype.normalize,Qe.prototype.distanceSquared=Qe.prototype.zd,Qe.prototype.distanceSquaredPoint=Qe.prototype.Bf,Qe.prototype.scale=Qe.prototype.scale,Qe.prototype.rotate=Qe.prototype.rotate,Qe.prototype.offset=Qe.prototype.offset,Qe.prototype.subtract=Qe.prototype.re,Qe.prototype.add=Qe.prototype.add,Qe.prototype.equalsApprox=Qe.prototype.Xa,Qe.prototype.equalTo=Qe.prototype.hi,Qe.prototype.equals=Qe.prototype.D,Qe.prototype.set=Qe.prototype.set,Qe.prototype.setTo=Qe.prototype.sg;var Gi=[];Qe.className="Point",Qe.parse=Wt,Qe.stringify=Nn,Qe.distanceLineSegmentSquared=Oi,Qe.distanceSquared=Bi,Qe.direction=pi,Qe.Origin=pt=new Qe(0,0).ja(),Qe.InfiniteTopLeft=It=new Qe(-1/0,-1/0).ja(),Qe.InfiniteBottomRight=sn=new Qe(1/0,1/0).ja(),Qe.SixPoint=Hn=new Qe(6,6).ja(),Qe.NoPoint=On=new Qe(NaN,NaN).ja(),Qe.parse=Wt,Qe.stringify=Nn,Qe.distanceLineSegmentSquared=Oi,Qe.distanceSquared=Bi,Qe.direction=pi;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):Et("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var _r,Gr,Ao,qr,$r,to,$o;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},Ce=zn.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function Qo(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 pa(a){return a.width.toString()+" "+a.height.toString()}Ce.toString=function(){return"Size("+this.width+","+this.height+")"},Ce.D=function(a){return a instanceof zn?this.width===a.width&&this.height===a.height:!1},Ce.hi=function(a,y){return this.width===a&&this.height===y},Ce.Xa=function(a){return Kt.B(this.width,a.width)&&Kt.B(this.height,a.height)},Ce.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},Ce.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=Qo,zn.stringify=pa,zn.ZeroSize=_r=new zn(0,0).ja(),zn.OneSize=Gr=new zn(1,1).ja(),zn.SixSize=Ao=new zn(6,6).ja(),zn.EightSize=qr=new zn(8,8).ja(),zn.TenSize=$r=new zn(10,10).ja(),zn.InfiniteSize=to=new zn(1/0,1/0).ja(),zn.NoSize=$o=new zn(NaN,NaN).ja(),zn.parse=Qo,zn.stringify=pa;function Cn(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 Qe?(x=a.x,a=a.y,y instanceof Qe?(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):Et("Incorrect second argument supplied to Rect constructor "+y)):Et("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Ce=Cn.prototype,Ce.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ce.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ca(a,y,x){a.width=y,a.height=x}Ce.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Ce.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ce.dd=function(a){return this.x=a.x,this.y=a.y,this},Ce.tA=function(a){return this.width=a.width,this.height=a.height,this},Cn.prototype.copy=function(){var a=new Cn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ce=Cn.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function es(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 Cn(x,E,z,ee)}return new Cn}function ts(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ce.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ce.D=function(a){return a instanceof Cn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ce.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Ce.Xa=function(a){return Kt.B(this.x,a.x)&&Kt.B(this.y,a.y)&&Kt.B(this.width,a.width)&&Kt.B(this.height,a.height)};function Ga(a,y){return Kt.$(a.x,y.x)&&Kt.$(a.y,y.y)&&Kt.$(a.width,y.width)&&Kt.$(a.height,y.height)}Ce.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ce.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},Ce.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},Ce.offset=function(a,y){return this.x+=a,this.y+=y,this},Ce.Bc=function(a,y){return Ds(this,y,a,y,a)},Ce.Co=function(a){return Ds(this,a.top,a.right,a.bottom,a.left)},Ce.Fv=function(a){return Ds(this,-a.top,-a.right,-a.bottom,-a.left)},Ce.Hz=function(a,y,x,b){return Ds(this,a,y,x,b)};function Ds(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}Ce.Ex=function(a){return pl(this,a.x,a.y,a.width,a.height)},Ce.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}Ce.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ce.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 ma(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))}Ce.Ye=function(a){return Fo(this,a.x,a.y,0,0)},Ce.ed=function(a){return Fo(this,a.x,a.y,a.width,a.height)},Ce.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Fo(this,a,y,x,b)};function Fo(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}Ce.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 Oo(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 Pa(a,y,x,b,E,z,ee,re){return a>ee+E||E>x+a?!1:!(y>re+z||z>b+y)}Ce.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ce.Mz=function(){return this.width===0&&this.height===0},Cn.alloc=function(){var a=oo.pop();return a===void 0?new Cn:a},Cn.allocAt=function(a,y,x,b){var E=oo.pop();return E===void 0?new Cn(a,y,x,b):E.h(a,y,x,b)},Cn.free=function(a){oo.push(a)},tt.Object.defineProperties(Cn.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 Qe(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 Qe(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}}}),Cn.prototype.isEmpty=Cn.prototype.Mz,Cn.prototype.isReal=Cn.prototype.w,Cn.intersectsLineSegment=function(a,y,x,b,E,z,ee,re){return Kt.Fx(a,y,x,b,E,z,ee,re)},Cn.prototype.setSpot=Cn.prototype.yi,Cn.prototype.union=Cn.prototype.Kv,Cn.prototype.unionRect=Cn.prototype.ed,Cn.prototype.unionPoint=Cn.prototype.Ye,Cn.prototype.intersects=Cn.prototype.Vu,Cn.prototype.intersectsRect=Cn.prototype.Yc,Cn.prototype.intersect=Cn.prototype.Uu,Cn.prototype.intersectRect=Cn.prototype.Ex,Cn.prototype.grow=Cn.prototype.Hz,Cn.prototype.subtractMargin=Cn.prototype.Fv,Cn.prototype.addMargin=Cn.prototype.Co,Cn.prototype.inflate=Cn.prototype.Bc,Cn.prototype.offset=Cn.prototype.offset,Cn.prototype.contains=Cn.prototype.contains,Cn.prototype.containsRect=Cn.prototype.Re,Cn.prototype.containsPoint=Cn.prototype.ca,Cn.prototype.equalsApprox=Cn.prototype.Xa,Cn.prototype.equalTo=Cn.prototype.hi,Cn.prototype.equals=Cn.prototype.D,Cn.prototype.setSize=Cn.prototype.tA,Cn.prototype.setPoint=Cn.prototype.dd,Cn.prototype.set=Cn.prototype.set,Cn.prototype.setTo=Cn.prototype.sg;var no=null,ko=null,oo=[];Cn.className="Rect",Cn.parse=es,Cn.stringify=ts,Cn.contains=Oo,Cn.intersects=Pa,Cn.ZeroRect=no=new Cn(0,0,0,0).ja(),Cn.NoRect=ko=new Cn(NaN,NaN,NaN,NaN).ja(),Cn.parse=es,Cn.stringify=ts,Cn.contains=Oo,Cn.intersects=Pa;function Vi(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):Et("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Vi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Vi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Vi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Vi.prototype.copy=function(){var a=new Vi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ce=Vi.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this};function ha(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 Vi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Vi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Vi(x,E);for(var ee=NaN;a[y]==="";)y++;return(b=a[y++])&&(ee=parseFloat(b)),isNaN(ee)?new Vi(x,E):new Vi(x,E,z,ee)}return new Vi}function Na(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ce.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ce.D=function(a){return a instanceof Vi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ce.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Ce.Xa=function(a){return Kt.B(this.top,a.top)&&Kt.B(this.right,a.right)&&Kt.B(this.bottom,a.bottom)&&Kt.B(this.left,a.left)},Ce.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Vi.alloc=function(){var a=nl.pop();return a===void 0?new Vi:a},Vi.free=function(a){nl.push(a)},Vi.prototype.isReal=Vi.prototype.w,Vi.prototype.equalsApprox=Vi.prototype.Xa,Vi.prototype.equalTo=Vi.prototype.hi,Vi.prototype.equals=Vi.prototype.D,Vi.prototype.set=Vi.prototype.set,Vi.prototype.setTo=Vi.prototype.sg;var Bs=null,ys=null,nl=[];Vi.className="Margin",Vi.parse=ha,Vi.stringify=Na,Vi.ZeroMargin=Bs=new Vi(0,0,0,0).ja(),Vi.TwoMargin=ys=new Vi(2,2,2,2).ja(),Vi.parse=ha,Vi.stringify=Na;function Yi(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,ga,Is,ml,Gl,So,Au,il,kl,vl,fu,yl,rl,Sl,oc,Sc,xc,Qc,gu,zl,xl,Tl,pu,wc,mu,Xo,va,dl,Cs,Ss,os,hs,Ls,xs,Ks,Ts;Yi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Yi.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},Yi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},Yi.prototype.copy=function(){var a=new Yi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ce=Yi.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Et("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 ga;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Is;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 kl;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 Xo;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 Yi(x,E,z,ee)}return new Yi}function Ol(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ce.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(ga)?"TopLeft":this.D(Is)?"Top":this.D(ml)?"TopRight":this.D(Gl)?"Left":this.D(So)?"Center":this.D(Au)?"Right":this.D(il)?"BottomLeft":this.D(kl)?"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(Xo)?"Default":"None"},Ce.D=function(a){return a instanceof Yi?(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},Ce.gv=function(){return new Yi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ce.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(va))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},Ce.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ce.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ce.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ce.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ce.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},Yi.alloc=function(){var a=El.pop();return a===void 0?new Yi:a},Yi.free=function(a){El.push(a)},Yi.prototype.isDefault=Yi.prototype.Xb,Yi.prototype.isNone=Yi.prototype.ys,Yi.prototype.isSide=Yi.prototype.$c,Yi.prototype.isNoSpot=Yi.prototype.Mc,Yi.prototype.isSpot=Yi.prototype.sb,Yi.prototype.includesSide=Yi.prototype.Hf,Yi.prototype.opposite=Yi.prototype.gv,Yi.prototype.equals=Yi.prototype.D,Yi.prototype.set=Yi.prototype.set,Yi.prototype.setTo=Yi.prototype.sg;var El=[];Yi.className="Spot",Yi.parse=Hu,Yi.stringify=Ol,Yi.None=Da=Fa(new Yi(0,0,0,0),0).ja(),Yi.Default=Xo=Fa(new Yi(0,0,-1,0),-1).ja(),Yi.TopLeft=ga=new Yi(0,0,0,0).ja(),Yi.TopCenter=Is=new Yi(.5,0,0,0).ja(),Yi.TopRight=ml=new Yi(1,0,0,0).ja(),Yi.LeftCenter=Gl=new Yi(0,.5,0,0).ja(),Yi.Center=So=new Yi(.5,.5,0,0).ja(),Yi.RightCenter=Au=new Yi(1,.5,0,0).ja(),Yi.BottomLeft=il=new Yi(0,1,0,0).ja(),Yi.BottomCenter=kl=new Yi(.5,1,0,0).ja(),Yi.BottomRight=vl=new Yi(1,1,0,0).ja(),Yi.MiddleTop=os=Is,Yi.MiddleLeft=hs=Gl,Yi.MiddleRight=Ls=Au,Yi.MiddleBottom=xs=kl,Yi.Top=Cs=Is,Yi.Left=va=Gl,Yi.Right=dl=Au,Yi.Bottom=Ss=kl,Yi.TopSide=fu=Fa(new Yi(0,0,1,1),1).ja(),Yi.LeftSide=yl=Fa(new Yi(0,0,1,2),1).ja(),Yi.RightSide=rl=Fa(new Yi(0,0,1,4),1).ja(),Yi.BottomSide=Sl=Fa(new Yi(0,0,1,8),1).ja(),Yi.TopBottomSides=oc=Fa(new Yi(0,0,1,9),1).ja(),Yi.LeftRightSides=Sc=Fa(new Yi(0,0,1,6),1).ja(),Yi.TopLeftSides=xc=Fa(new Yi(0,0,1,3),1).ja(),Yi.TopRightSides=Qc=Fa(new Yi(0,0,1,5),1).ja(),Yi.BottomLeftSides=gu=Fa(new Yi(0,0,1,10),1).ja(),Yi.BottomRightSides=zl=Fa(new Yi(0,0,1,12),1).ja(),Yi.NotTopSide=xl=Fa(new Yi(0,0,1,14),1).ja(),Yi.NotLeftSide=Tl=Fa(new Yi(0,0,1,13),1).ja(),Yi.NotRightSide=pu=Fa(new Yi(0,0,1,11),1).ja(),Yi.NotBottomSide=wc=Fa(new Yi(0,0,1,7),1).ja(),Yi.AllSides=mu=Fa(new Yi(0,0,1,15),1).ja(),Ks=new Yi(.156,.156).ja(),Ts=new Yi(.844,.844).ja(),Yi.parse=Hu,Yi.stringify=Ol;function Rr(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Rr.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},Rr.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},Rr.prototype.copy=function(){var a=new Rr;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},Rr.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Rr.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},Rr.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Rr.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Rr.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},Rr.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},Rr.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},Rr.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},Ce=Rr.prototype,Ce.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ce.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ce.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)},Ce.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))},Ce.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))},Ce.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,Ee=b*z+x*re+le,Ae=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,Ee),fe=Math.max(fe,Ee),Ee=Math.min(xe,Ae),xe=Math.max(xe,Ae),E=Math.min(E,x),fe=Math.max(fe,x),Ee=Math.min(Ee,y),xe=Math.max(xe,y),E=Math.min(E,z),fe=Math.max(fe,z),Ee=Math.min(Ee,b),xe=Math.max(xe,b),a.h(E,Ee,fe-E,xe-Ee),a},Rr.alloc=function(){var a=Lu.pop();return a===void 0?new Rr:a},Rr.free=function(a){Lu.push(a)},Rr.prototype.transformRect=Rr.prototype.pp,Rr.prototype.transformPoint=Rr.prototype.Ga,Rr.prototype.scale=Rr.prototype.scale,Rr.prototype.translate=Rr.prototype.translate,Rr.prototype.rotate=Rr.prototype.rotate,Rr.prototype.invert=Rr.prototype.Vj,Rr.prototype.multiplyInverted=Rr.prototype.bv,Rr.prototype.multiply=Rr.prototype.multiply,Rr.prototype.reset=Rr.prototype.reset,Rr.prototype.isIdentity=Rr.prototype.ws,Rr.prototype.equals=Rr.prototype.D,Rr.prototype.setTransform=Rr.prototype.setTransform,Rr.prototype.set=Rr.prototype.set;var Lu=[];Rr.className="Transform",Rr.xF="54a702f3e53909c447824c6706603faf4c";var Kt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Kt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Kt.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(Kt.Yb(a,y,ee,re,fe,x,b)&&Kt.Yb(a,y,ee,re,fe,E,z))return Kt.Yb(a,y,ee,re,fe,le,ue);var xe=(a+x)/2,Ee=(y+b)/2,Ae=(x+E)/2,Te=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(xe+Ae)/2,x=(Ee+Te)/2,Ae=(Ae+E)/2,Te=(Te+z)/2;var ot=(b+Ae)/2,Ue=(x+Te)/2;return Kt.cs(a,y,xe,Ee,b,x,ot,Ue,oe,le,ue,fe)||Kt.cs(ot,Ue,Ae,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 pi(((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(Kt.Yb(a,y,ee,re,oe,x,b)&&Kt.Yb(a,y,ee,re,oe,E,z))Fo(le,a,y,0,0),Fo(le,ee,re,0,0);else{var ue=(a+x)/2,fe=(y+b)/2,xe=(x+E)/2,Ee=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+xe)/2,x=(fe+Ee)/2,xe=(xe+E)/2,Ee=(Ee+z)/2;var Ae=(b+xe)/2,Te=(x+Ee)/2;Kt.Dl(a,y,ue,fe,b,x,Ae,Te,oe,le),Kt.Dl(Ae,Te,xe,Ee,E,z,ee,re,oe,le)}return le},Qe:function(a,y,x,b,E,z,ee,re,oe,le){if(Kt.Yb(a,y,ee,re,oe,x,b)&&Kt.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,Ee=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(ue+xe)/2,x=(fe+Ee)/2,xe=(xe+E)/2,Ee=(Ee+z)/2;var Ae=(b+xe)/2,Te=(x+Ee)/2;Kt.Qe(a,y,ue,fe,b,x,Ae,Te,oe,le),Kt.Qe(Ae,Te,xe,Ee,E,z,ee,re,oe,le)}return le},jv:function(a,y,x,b,E,z,ee,re,oe,le){if(Kt.Yb(a,y,E,z,le,x,b))return Kt.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,Ee=(fe+b)/2;return Kt.jv(a,y,ue,fe,xe,Ee,ee,re,oe,le)||Kt.jv(xe,Ee,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(Kt.Yb(a,y,E,z,ee,x,b))Fo(re,a,y,0,0),Fo(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;Kt.iv(a,y,oe,le,ue,fe,ee,re),Kt.iv(ue,fe,x,b,E,z,ee,re)}return re},ep:function(a,y,x,b,E,z,ee,re){if(Kt.Yb(a,y,E,z,ee,x,b))re.length===0&&(re.push(a),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*(oe*fe-le*ue))/xe,Te=((a*re-y*ee)*(le-fe)-(y-re)*(oe*fe-le*ue))/xe;if(Ae>=ue)return Ee;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 Ee}else if(a<ee?(oe=a,a=ee):oe=ee,Ae<oe||Ae>a)return Ee;0<xe?Ee++:0>xe&&Ee--}else{Ae=(a+x)/2,Te=(y+b)/2;var ot=(x+E)/2,Ue=(b+z)/2;E=(E+ee)/2,z=(z+re)/2,b=(Ae+ot)/2,x=(Te+Ue)/2,ot=(ot+E)/2,Ue=(Ue+z)/2;var St=(b+ot)/2,Ct=(x+Ue)/2;Ee+=Kt.Fo(a,y,Ae,Te,b,x,St,Ct,oe,le,ue,fe,xe),Ee+=Kt.Fo(St,Ct,ot,Ue,E,z,ee,re,oe,le,ue,fe,xe)}return Ee},qh:function(a,y,x,b,E,z,ee){return Kt.$(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)):Kt.$(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 Kt.B(a,x)&&Kt.B(y,b)?(oe.h(a,y),!1):Kt.$(E,ee)?Kt.$(a,x)?(Kt.qh(a,y,x,b,E,z,oe),!1):Kt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,oe):(re=(re-z)/(ee-E),Kt.$(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),Kt.$(re,ee)?(Kt.qh(a,y,x,b,E,z,oe),!1):(E=(ee*a-re*E+z-y)/(ee-re),Kt.$(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)):Kt.qh(a,y,x,b,E,ee*(E-a)+y,oe))))},MA:function(a,y,x,b,E){return Kt.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(ot,Ue){var St=(ot-a)*(ot-a)+(Ue-y)*(Ue-y);St<fe&&(fe=St,oe.h(ot,Ue))}var fe=1/0;ue(oe.x,oe.y);var xe=0,Ee=0,Ae=0,Te=0;if(E<ee?(xe=E,Ee=ee):(xe=ee,Ee=E),z<re?(Ae=E,Te=ee):(Ae=ee,Te=E),xe=(Ee-xe)/2+le,le=(Te-Ae)/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(Kt.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 Kt.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)),Kt.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)),Kt.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 Kt.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):!!(Oo(a,y,x,b,E,z)||Oo(a,y,x,b,ee,re)||Kt.Rl(a,y,oe,y,E,z,ee,re)||Kt.Rl(oe,y,oe,le,E,z,ee,re)||Kt.Rl(oe,le,a,le,E,z,ee,re)||Kt.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>=Kt.Fl(a,y,x,b,E,z)*Kt.Fl(a,y,x,b,ee,re)&&0>=Kt.Fl(E,z,ee,re,a,y)*Kt.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(Kt.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),Kt.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 Hi,um:new Hi,Mf:new Hi,Nf:0,vm:100};Kt.za=Kt.AA;function di(a){pr(this),this.l=2,a===void 0&&(a=di.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===di.o?this.ee=new kn:(di.V===null&&(di.V=new kn().freeze()),this.ee=di.V),this.aq=this.ee.Ja,this.Ip=new Cn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ga,this.gg=vl,this.Rk=this.Sk=NaN,this.Uf=ri}di.prototype.copy=function(){var a=new di;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===di.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},di.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},di.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==di.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},di.prototype.ka=function(){if(Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==di.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},di.prototype.Xa=function(a){if(!(a instanceof di))return!1;if(this.type!==a.type)return this.type===di.j&&a.type===di.o?Mu(this,a):a.type===di.j&&this.type===di.o?Mu(a,this):!1;if(this.type===di.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 Kt.B(this.startX,a.startX)&&Kt.B(this.startY,a.startY)&&Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY)};function Mu(a,y){return a.type!==di.j||y.type!==di.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Kt.B(a.startX,y.startX)&&Kt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===ya&&Kt.B(a.endX,y.endX)&&Kt.B(a.endY,y.endY))))}di.ia=function(a){return a.toString()},di.prototype.qb=function(a){a.classType===di&&(this.type=a)},di.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case di.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 di.u:var y=new Cn(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 di.F:if(y=new Cn(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 di.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()}},di.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},di.parse=function(a,y){function x(){return Te>=Ft-1?!0:le[Te+1].match(jt)!==null}function b(){return Te++,le[Te]}function E(Ur){var Ir=parseFloat(b()),Jo=parseFloat(b());ot===ot.toLowerCase()&&(Ir=Ct.x+Ir,Jo=Ct.y+Jo),Ur.h(Ir,Jo)}function z(){return E(Ct),Ct}function ee(){return E(St),St}function re(){var Ur=Ue.toLowerCase();return Ur!=="c"&&Ur!=="s"&&Ur!=="q"&&Ur!=="t"?Ct:new Qe(2*Ct.x-St.x,2*Ct.y-St.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=ti();for(var fe="",xe=!1,Ee=0;Ee<ue.length;Ee++){var Ae=ue[Ee];Ae!=="."||xe?Ae==="."?(oe.push(fe),fe="."):fe+=Ae:(xe=!0,fe+=Ae)}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,xi(oe)}}var Te=-1,ot="",Ue="";oe=new Qe(0,0);var St=new Qe(0,0),Ct=new Qe(0,0),Ft=le.length;a=O1(null),xe=fe=ue=!1,Ee=!0,Ae=null;for(var jt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Te>=Ft-1);)if(Ue=ot,ot=b(),ot!=="")switch(ot.toUpperCase()){case"X":Ee=!0,fe=ue=!1;break;case"M":for(Ae=z(),a.mc===null||Ee===!0?(Ig(a,Ae.x,Ae.y,ue,!fe,xe),Ee=!1):a.moveTo(Ae.x,Ae.y),oe.assign(Ct);!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"L":for(;!x();)Ae=z(),a.lineTo(Ae.x,Ae.y);break;case"H":for(;!x();)Ct=new Qe((ot===ot.toLowerCase()?Ct.x:0)+parseFloat(b()),Ct.y),a.lineTo(Ct.x,Ct.y);break;case"V":for(;!x();)Ct=new Qe(Ct.x,(ot===ot.toLowerCase()?Ct.y:0)+parseFloat(b())),a.lineTo(Ct.x,Ct.y);break;case"C":for(;!x();){Ae=new Qe,E(Ae);var yn=ee(),Fi=z();wh(a,Ae.x,Ae.y,yn.x,yn.y,Fi.x,Fi.y)}break;case"S":for(;!x();)Ae=re(),yn=ee(),Fi=z(),wh(a,Ae.x,Ae.y,yn.x,yn.y,Fi.x,Fi.y);break;case"Q":for(;!x();)Ae=ee(),yn=z(),Vm(a,Ae.x,Ae.y,yn.x,yn.y);break;case"T":for(;!x();)St=Ae=re(),yn=z(),Vm(a,Ae.x,Ae.y,yn.x,yn.y);break;case"B":for(;!x();){Ae=parseFloat(b()),yn=parseFloat(b()),Fi=parseFloat(b());var Xi=parseFloat(b()),ji=parseFloat(b()),fi=ji,_n=!1;x()||(fi=parseFloat(b()),x()||(_n=parseFloat(b())!==0)),ot===ot.toLowerCase()&&(Fi+=Ct.x,Xi+=Ct.y),a.arcTo(Ae,yn,Fi,Xi,ji,fi,_n)}break;case"A":for(;!x();)Ae=Math.abs(parseFloat(b())),yn=Math.abs(parseFloat(b())),Fi=parseFloat(b()),ji=Xi=!1,_n=fi=0,fi=b(),fi.length===1?(Xi=!!parseFloat(fi),ji=!!parseFloat(b()),fi=parseFloat(b())):fi.length===2?(Xi=!!parseFloat(fi[0]),ji=!!parseFloat(fi[1]),fi=parseFloat(b())):(Xi=!!parseFloat(fi[0]),ji=!!parseFloat(fi[1]),fi=parseFloat(fi.slice(2))),_n=parseFloat(b()),ot===ot.toLowerCase()&&(fi=Ct.x+fi,_n=Ct.y+_n),Ct.h(fi,_n),Nx(a,Ae,yn,Fi,Xi,ji,fi,_n);break;case"Z":kx(a),Ct.assign(oe);break;case"F":for(Ae="",yn=1;le[Te+yn];)if(le[Te+yn]==="0")xe=!0,yn++;else if(le[Te+yn].match(/[Uu]/)!==null)yn++;else if(le[Te+yn].match(jt)===null)yn++;else{Ae=le[Te+yn];break}Ae.match(/[Mm]/)?ue=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ae="",yn=1;le[Te+yn];)if(le[Te+yn].match(/[Ff]/)!==null)yn++;else if(le[Te+yn].match(jt)===null)yn++;else{Ae=le[Te+yn];break}Ae.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},di.Ha=function(a,y){for(var x=a.length,b=Qe.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}Qe.free(b)},di.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===di.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},di.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===di.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),Fo(a,0,0,0,0),a.freeze()},di.prototype.ix=function(){var a=new Cn;return Fu(this,a,!0),a};function Fu(a,y,x){switch(a.type){case di.j:case di.u:case di.F:x?y.h(a.od,a.pd,0,0):Fo(y,a.od,a.pd,0,0),Fo(y,a.Dc,a.Ec,0,0);break;case di.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):Fo(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 ya:case ws:oe=fe.endX,le=fe.endY,Fo(y,oe,le,0,0);break;case ol:Kt.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:Kt.iv(oe,le,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,y),oe=fe.endX,le=fe.endY;break;case $e:case st:var xe=fe.type===$e?wl(fe,z):Il(fe,z,oe,le),Ee=xe.length;if(Ee===0){oe=fe.type===$e?fe.centerX:fe.endX,le=fe.type===$e?fe.centerY:fe.endY,Fo(y,oe,le,0,0);break}fe=null;for(var Ae=0;Ae<Ee;Ae++)fe=xe[Ae],Kt.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:Et("Unknown Segment type: "+fe.type)}}}break;default:Et("Unknown Geometry type: "+a.type)}}di.prototype.normalize=function(){this._isFrozen&&xn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Qe(-a.x,-a.y)},di.prototype.offset=function(a,y){return this._isFrozen&&xn(this),this.transform(1,0,0,1,a,y),this},di.prototype.scale=function(a,y){return this._isFrozen&&xn(this),this.transform(a,0,0,y,0,0),this},di.prototype.rotate=function(a,y,x){this._isFrozen&&xn(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Rr.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Rr.free(b),this},Ce=di.prototype,Ce.transform=function(a,y,x,b,E,z){switch(this.type){case di.j:case di.u:case di.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 di.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,Ee=0;Ee<xe;Ee++){var Ae=fe[Ee];switch(Ae.type){case ya:case ws:ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+E,Ae.endY=ee*y+re*b+z;break;case ol:ee=Ae.point1X,re=Ae.point1Y,Ae.point1X=ee*a+re*x+E,Ae.point1Y=ee*y+re*b+z,ee=Ae.point2X,re=Ae.point2Y,Ae.point2X=ee*a+re*x+E,Ae.point2Y=ee*y+re*b+z,ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+E,Ae.endY=ee*y+re*b+z;break;case je:ee=Ae.point1X,re=Ae.point1Y,Ae.point1X=ee*a+re*x+E,Ae.point1Y=ee*y+re*b+z,ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+E,Ae.endY=ee*y+re*b+z;break;case $e:ee=Ae.centerX,re=Ae.centerY,Ae.centerX=ee*a+re*x+E,Ae.centerY=ee*y+re*b+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ae.startAngle+=ee),0>a&&(Ae.startAngle=180-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),0>b&&(Ae.startAngle=-Ae.startAngle,Ae.sweepAngle=-Ae.sweepAngle),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY!==void 0&&(Ae.radiusY*=Math.sqrt(y*y+b*b));break;case st:if(ee=Ae.endX,re=Ae.endY,Ae.endX=ee*a+re*x+E,Ae.endY=ee*y+re*b+z,Ae.radiusX===0||Ae.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ae.xAxisRotation+=ee),0>a&&(Ae.xAxisRotation=180-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),0>b&&(Ae.xAxisRotation=-Ae.xAxisRotation,Ae.isClockwiseArc=!Ae.isClockwiseArc),Ae.radiusX*=Math.sqrt(a*a+x*x),Ae.radiusY*=Math.sqrt(y*y+b*b);break;default:Et("Unknown Segment type: "+Ae.type)}}}}return this._isInvalidBounds=!0,this},Ce.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 di.j:return Kt.Yb(x,b,E,z,y,a.x,a.y);case di.u:var ee=Cn.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),Cn.free(ee),a;case di.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 di.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,Ee=xe.length,Ae=0;Ae<Ee;Ae++){var Te=xe[Ae],ot=!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 St=oe,Ct=le,Ft=Ue.s,jt=0;jt<=Ue.length;jt++){var yn=void 0;if(jt!==Ue.length){yn=Ft[jt];var Fi=yn.type;a=yn.endX,fe=yn.endY}else Fi=ya,a=St,fe=Ct;switch(Fi){case ws:if(St=$l(z,y,ee,y,oe,le,St,Ct),isNaN(St))return!0;re+=St,St=a,Ct=fe;break;case ya:if(oe=$l(z,y,ee,y,oe,le,a,fe),isNaN(oe))return!0;re+=oe;break;case ol:ue=Kt.Fo(oe,le,yn.point1X,yn.point1Y,yn.point2X,yn.point2Y,a,fe,ee,y,z,y,.5),re+=ue;break;case je:ue=Kt.Fo(oe,le,(oe+2*yn.point1X)/3,(le+2*yn.point1Y)/3,(2*yn.point1X+a)/3,(2*yn.point1Y+fe)/3,a,fe,ee,y,z,y,.5),re+=ue;break;case $e:case st:Fi=yn.type===$e?wl(yn,Te):Il(yn,Te,oe,le);var Xi=Fi.length;if(Xi===0){if(oe=$l(z,y,ee,y,oe,le,yn.type===$e?yn.centerX:yn.endX,yn.type===$e?yn.centerY:yn.endY),isNaN(oe))return!0;re+=oe;break}yn=null;for(var ji=0;ji<Xi;ji++){if(yn=Fi[ji],ji===0){if(ue=$l(z,y,ee,y,oe,le,yn[0],yn[1]),isNaN(ue))return!0;re+=ue}ue=Kt.Fo(yn[0],yn[1],yn[2],yn[3],yn[4],yn[5],yn[6],yn[7],ee,y,z,y,.5),re+=ue}yn!==null&&(a=yn[6],fe=yn[7]);break;default:Et("Unknown Segment type: "+yn.type)}oe=a,le=fe}if(ot){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(Kt.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}Ce.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Qe),this.type===di.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},Ce.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===di.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},Ce.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===di.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},Ce.xx=function(a){if(this.type===di.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=Qe.alloc();return Kt.qh(y,x,b,E,z,a,re),a=re.x,z=re.y,Qe.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===di.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=Qe.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],Ee=x[fe],Ae=xe.length,Te=0;Te<Ae;Te+=2){var ot=xe[Te],Ue=xe[Te+1];if(Te!==0){Kt.qh(le,ue,ot,Ue,a.x,a.y,b);var St=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);St<E&&(E=St,ee=re,ee+=Math.sqrt((b.x-le)*(b.x-le)+(b.y-ue)*(b.y-ue))),re+=Ee[(Te-2)/2]}le=ot,ue=Ue}return Qe.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===di.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===di.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===di.F){var z=new Os;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new Io($e);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];Kt.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 ya:b.push(xe.endX),b.push(xe.endY),ee=xe.endX,z=xe.endY;break;case ol:Kt.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:Kt.ep(ee,z,xe.point1X,xe.point1Y,xe.endX,xe.endY,.5,b),ee=xe.endX,z=xe.endY;break;case $e:var Ee=wl(xe,E),Ae=Ee.length;if(Ae===0){b.push(xe.centerX),b.push(xe.centerY),ee=xe.centerX,z=xe.centerY;break}for(var Te=0;Te<Ae;Te++){var ot=Ee[Te];Kt.Qe(ee,z,ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],.5,b),ee=ot[6],z=ot[7]}break;case st:if(Ee=Il(xe,E,ee,z),Ae=Ee.length,Te=xe.endX,ot=xe.endY,Ae===0){b.push(Te),b.push(ot),ee=Te,z=ot;break}for(Te=0;Te<Ae;Te++)ot=Ee[Te],Kt.Qe(ee,z,ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],.5,b),ee=ot[6],z=ot[7];break;default:Et("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(Bi(x,b,ee,re))),x=ee,b=re}return y}Ce.add=function(a){return this.ee.add(a),this},Ce.pm=function(a,y,x,b,E,z,ee,re){return this._isFrozen&&xn(this),this.fg=new Yi(a,y,E,z).freeze(),this.gg=new Yi(x,b,ee,re).freeze(),this},tt.Object.defineProperties(di.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===di.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===di.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&&xn(this,a),this.na=a,a===di.o?this.ee=new kn:(di.V===null&&(di.V=new kn().freeze()),this.ee=di.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&xn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&xn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&xn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&xn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&xn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&xn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&xn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&xn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),di.prototype.setSpots=di.prototype.pm,di.prototype.add=di.prototype.add,di.prototype.getFractionForPoint=di.prototype.xx,di.prototype.getPointAndAngleAlongPath=di.prototype.Qu,di.prototype.getAngleAlongPath=di.prototype.wx,di.prototype.getPointAlongPath=di.prototype.Pu,di.prototype.containsPoint=di.prototype.ca,di.prototype.transform=di.prototype.transform,di.prototype.rotate=di.prototype.rotate,di.prototype.scale=di.prototype.scale,di.prototype.offset=di.prototype.offset,di.prototype.normalize=di.prototype.normalize,di.prototype.computeBoundsWithoutOrigin=di.prototype.ix,di.prototype.equalsApprox=di.prototype.Xa,di.className="Geometry",di.j=new Xt(di,"Line",0),di.u=new Xt(di,"Rectangle",1),di.F=new Xt(di,"Ellipse",2),di.o=new Xt(di,"Path",3),di.V=null,di.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",di.className="Geometry",di.stringify=di.ia,di.fillPath=di.nb,di.parse=di.parse,di.Line=di.j,di.Rectangle=di.u,di.Ellipse=di.F,di.Path=di.o;function Os(a,y,x,b,E){pr(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 kn,this.sr=this.pl.Ja,this.fw=null}Os.prototype.copy=function(){var a=new Os;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},Ce=Os.prototype,Ce.Xa=function(a){if(!(a instanceof Os&&Kt.B(this.startX,a.startX)&&Kt.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},Ce.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},Ce.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},Ce.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},Ce.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},Ce.add=function(a){return this.pl.add(a),this},Ce.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 ya:if(Kt.Yb(b,E,ue.endX,ue.endY,x,a,y))return!0;b=ue.endX,E=ue.endY;break;case ol:if(Kt.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(Kt.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 $e:case st:var fe=ue.type===$e?wl(ue,this):Il(ue,this,b,E),xe=fe.length,Ee=ue.type===$e?ue.centerX:ue.endX,Ae=ue.type===$e?ue.centerY:ue.endY;if(xe===0){if(Kt.Yb(b,E,Ee,Ae,x,a,y))return!0;b=Ee,E=Ae;break}for(Ee=null,Ae=0;Ae<xe;Ae++)if(Ee=fe[Ae],Ae===0&&Kt.Yb(b,E,Ee[0],Ee[1],x,a,y)||Kt.cs(Ee[0],Ee[1],Ee[2],Ee[3],Ee[4],Ee[5],Ee[6],Ee[7],.5,a,y,x))return!0;Ee!==null&&(b=Ee[6],E=Ee[7]);break;default:Et("Unknown Segment type: "+ue.type)}if(ue.isClosed&&(b!==z||E!==ee)&&Kt.Yb(b,E,z,ee,x,a,y))return!0}return!1},tt.Object.defineProperties(Os.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&&xn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&xn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&xn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&xn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&xn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&xn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Os.prototype.add=Os.prototype.add,Os.prototype.equalsApprox=Os.prototype.Xa,Os.className="PathFigure";function Io(a,y,x,b,E,z,ee,re){pr(this),a===void 0&&(a=ya),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===st?(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===$e&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===$e&&(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},Ce=Io.prototype,Ce.Xa=function(a){if(!(a instanceof Io)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ws:case ya:return Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY);case ol:return Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY)&&Kt.B(this.point1X,a.point1X)&&Kt.B(this.point1Y,a.point1Y)&&Kt.B(this.point2X,a.point2X)&&Kt.B(this.point2Y,a.point2Y);case je:return Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY)&&Kt.B(this.point1X,a.point1X)&&Kt.B(this.point1Y,a.point1Y);case $e:return Kt.B(this.startAngle,a.startAngle)&&Kt.B(this.sweepAngle,a.sweepAngle)&&Kt.B(this.centerX,a.centerX)&&Kt.B(this.centerY,a.centerY)&&Kt.B(this.radiusX,a.radiusX)&&Kt.B(this.radiusY,a.radiusY);case st:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Kt.B(this.xAxisRotation,a.xAxisRotation)&&Kt.B(this.endX,a.endX)&&Kt.B(this.endY,a.endY)&&Kt.B(this.radiusX,a.radiusX)&&Kt.B(this.radiusY,a.radiusY);default:return!1}},Ce.qb=function(a){a.classType===Io&&(this.type=a)},Ce.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 ya: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 $e: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 st: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":"")},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.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=Kt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ee=Rr.alloc();ee.reset(),x<b?ee.scale(1,b/x):ee.scale(x/b,1),di.Ha(z,ee),Rr.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,ot,Ue,St){return(Te*St<ot*Ue?-1:1)*Math.acos((Te*Ue+ot*St)/(Math.sqrt(Te*Te+ot*ot)*Math.sqrt(Ue*Ue+St*St)))}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),Ee=fe*(x-le)/2+xe*(b-ue)/2;ee=-xe*(x-le)/2+fe*(b-ue)/2;var Ae=Ee*Ee/(y*y)+ee*ee/(z*z);return 1<Ae&&(y*=Math.sqrt(Ae),z*=Math.sqrt(Ae)),Ae=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Ee*Ee)/(y*y*ee*ee+z*z*Ee*Ee)),isNaN(Ae)&&(Ae=0),re=Ae*y*ee/z,Ae=Ae*-z*Ee/y,isNaN(re)&&(re=0),isNaN(Ae)&&(Ae=0),x=(x+le)/2+fe*re-xe*Ae,b=(b+ue)/2+xe*re+fe*Ae,ue=E(1,0,(Ee-re)/y,(ee-Ae)/z),fe=(Ee-re)/y,le=(ee-Ae)/z,Ee=(-Ee-re)/y,re=(-ee-Ae)/z,ee=E(fe,le,Ee,re),Ee=(fe*Ee+le*re)/(Math.sqrt(fe*fe+le*le)*Math.sqrt(Ee*Ee+re*re)),-1>=Ee?ee=Math.PI:1<=Ee&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,Ee=y>z?z/y:1,y=Kt.jx(0,0,y>z?y:z,ue,ue+ee,!0),z=Rr.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(oe,Ee),di.Ha(y,z),Rr.free(z),a.ae=y,a.ae}tt.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&&xn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&xn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&xn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&xn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&xn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&xn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&xn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&xn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&xn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Qn(a,">= zero",Io,"radiusX"),this._isFrozen&&xn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Qn(a,">= zero",Io,"radiusY"),this._isFrozen&&xn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&xn(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&&xn(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&&xn(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&&xn(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&&xn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Io.prototype.equalsApprox=Io.prototype.Xa;var ws=new Xt(Io,"Move",0),ya=new Xt(Io,"Line",1),ol=new Xt(Io,"Bezier",2),je=new Xt(Io,"QuadraticBezier",3),$e=new Xt(Io,"Arc",4),st=new Xt(Io,"SvgArc",4);Io.className="PathSegment",Io.Move=ws,Io.Line=ya,Io.Bezier=ol,Io.QuadraticBezier=je,Io.Arc=$e,Io.SvgArc=st;function nn(){this.H=null,this.xu=new Qe(0,0).freeze(),this.mt=new Qe(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}nn.prototype.copy=function(){var a=new nn;return this.clone(a)},nn.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},nn.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},nn.prototype.So=function(a,y){var x=this.diagram;return x===null||Ud(x,a,y),y},nn.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Ud(x,a,y),y.assign(x.Ps(y))),y},tt.Object.defineProperties(nn.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}}}),nn.prototype.getMultiTouchDocumentPoint=nn.prototype.Bz,nn.prototype.getMultiTouchViewPoint=nn.prototype.So,nn.className="InputEvent";function hn(){this.H=null,this.xa="",this.ar=this.Lr=null}hn.prototype.copy=function(){var a=new hn;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},hn.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},tt.Object.defineProperties(hn.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}}}),hn.className="DiagramEvent";function In(){this.Fm=oi,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===Zn?a+"* ":this.change===oi?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===Zn?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Zi(this.object)),this.oldValue!==null&&(a+=" old: "+Zi(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Zi(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))},tt.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===Zn&&(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 Zn=new Xt(In,"Transaction",-1),oi=new Xt(In,"Property",0),ui=new Xt(In,"Insert",1),Mi=new Xt(In,"Remove",2);In.className="ChangedEvent",In.Transaction=Zn,In.Property=oi,In.Insert=ui,In.Remove=Mi;function sr(){this.o=new kn().freeze(),this.xa="",this.j=!1}sr.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},sr.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()},sr.prototype.canUndo=function(){return this.isComplete},sr.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()}},sr.prototype.canRedo=function(){return this.isComplete},sr.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()}},sr.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Ii,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===oi&&b.object){var E=y.get(b.object);E||(E=new Ii,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()}},tt.Object.defineProperties(sr.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}}}),sr.prototype.optimize=sr.prototype.ak,sr.prototype.redo=sr.prototype.redo,sr.prototype.canRedo=sr.prototype.canRedo,sr.prototype.undo=sr.prototype.undo,sr.prototype.canUndo=sr.prototype.canUndo,sr.prototype.clear=sr.prototype.clear,sr.className="Transaction";function Ei(){this.Pt=new Ln,this.Jd=!1,this.u=new kn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new kn().freeze(),this.hl=new kn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ei.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},Ei.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},Ei.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ce=Ei.prototype,Ce.Xw=function(a){this.Pt.add(a)},Ce.Rx=function(a){this.Pt.remove(a)},Ce.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},Ce.eb=function(a){return a===void 0&&(a=""),_i(this,!0,a)},Ce.Kf=function(){return _i(this,!1,"")};function _i(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&Un("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}Ce.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()}},Ei.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Ei.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){Un("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Ei.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Ei.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){Un("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Ei.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new In;for(b.change=Zn,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Ei.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new sr);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||Un("Change not within a transaction: "+x.toString()))}},Ei.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},tt.Object.defineProperties(Ei.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}}}),Ei.prototype.handleChanged=Ei.prototype.Tu,Ei.prototype.redo=Ei.prototype.redo,Ei.prototype.undo=Ei.prototype.undo,Ei.prototype.canUndo=Ei.prototype.canUndo,Ei.prototype.discardHistoryAfterIndex=Ei.prototype.lx,Ei.prototype.rollbackTransaction=Ei.prototype.Kf,Ei.prototype.commitTransaction=Ei.prototype.eb,Ei.prototype.startTransaction=Ei.prototype.Ea,Ei.prototype.removeModel=Ei.prototype.Rx,Ei.prototype.addModel=Ei.prototype.Xw,Ei.prototype.clear=Ei.prototype.clear,Ei.className="UndoManager";function bi(){pr(this),this.H=bc,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new nn,this.Zr=-1}bi.prototype.toString=function(){return this.name!==""?this.name+" Tool":Ni(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,Qe.allocAt(NaN,NaN)),b=y.So(1,Qe.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}Qe.free(x),Qe.free(b)},bi.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Qe.allocAt(NaN,NaN)),b=y.So(1,Qe.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 Qe((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}Qe.free(x),Qe.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(kr?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||(kr?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===ho&&!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===ho&&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=jn(function(){x.doWaitAfter(b)},a)},bi.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ye.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 Yo);)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},tt.Object.defineProperties(bi.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof pn&&(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 ni(){bi.call(this),this.name="ToolManager",this.hb=new kn,this.ob=new kn,this.Hb=new kn,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}bt(ni,bi),ni.prototype.initializeStandardTools=function(){},ni.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Yo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},ni.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===fo){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=ho:this.mouseWheelBehavior===ho&&(this.mouseWheelBehavior=wr)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},ni.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===fo){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)}ni.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Yo&&(y===a||y.rg(a))||this.hideToolTip()},ni.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()))},ni.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)},ni.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof Yo)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},ni.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Yo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof Lr&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Ye.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=jn(function(){E.hideToolTip()},a)}},ni.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}},ni.prototype.hideToolTip=function(){this.zj!==-1&&(Ye.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Yo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Lr&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},ni.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()},ni.prototype.doMouseWheel=function(){this.standardMouseWheel()},ni.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},ni.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},ni.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},ni.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},ni.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)},tt.Object.defineProperties(ni.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof Yo?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),ni.prototype.replaceStandardTool=ni.prototype.gb;var wr=new Xt(ni,"WheelScroll",0),ho=new Xt(ni,"WheelZoom",1),io=new Xt(ni,"WheelNone",2),mo=new Xt(ni,"GestureZoom",3),vo=new Xt(ni,"GestureCancel",4),fo=new Xt(ni,"GestureNone",5);ni.className="ToolManager",ni.WheelScroll=wr,ni.WheelZoom=ho,ni.WheelNone=io,ni.GestureZoom=mo,ni.GestureCancel=vo,ni.GestureNone=fo;function lr(){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 Qe(NaN,NaN),this.Fr=new Qe,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 aa;bt(lr,bi),lr.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},lr.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},lr.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,(kr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},lr.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),en=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&&Nl(a),fh(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,en=this,An=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 gi?(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 zi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}lr.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},lr.prototype.Pd=function(a){return a===void 0?new Qd(pt):this.isGridSnapEnabled?new Qd(new Qe(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new Qd(a.copy())},lr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Sa(this),_u(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<aa.count){for(var y=aa,x=y.length,b=0;b<x;b++){var E=y.M(b);fs(E),Ba(E),Sa(E),E.diagram.ug()}y.clear()}fs(this),this.tl.h(NaN,NaN),An!==null&&(An.currentCursor=""),en=An=null,Ba(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),fd(a,!0)},lr.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 Sa(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,as(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Ka(){var a=en;Ba(a),Ca(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}lr.prototype.doCancel=function(){Ba(this),Ca(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},lr.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},lr.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 Ii,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 gi&&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 gi&&(x.value.point=new Qe(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function fs(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=Qe.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Qe.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Nl(b),b.hk())}lr.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 gi&&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=as(a,E,b),!a.isActive&&en===null)return;var re=b!==null?b.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Xr)){var oe=x.mouseDragOver;oe!==null&&(oe(E),ee=!0)}if(!a.isActive&&en===null||(a.doDragOver(y,b),!a.isActive&&en===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)}lr.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 Yo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},lr.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 as(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&&en===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=gs(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 gs(a){var y=a.panel;return y!==null?y:a instanceof ur&&!(a instanceof Xr)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Ja(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=Qe.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 Qe.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=Ja(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=Ja(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)):yr(E,ee,z,oe,re):yr(E,null,null,null,null)}}}}lr.prototype.doDragOver=function(){};function Rs(a,y){var x=a.diagram;a.dragsLink&&Oa(a,!0),Sa(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=gs(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||en!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Di&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||en!==null){for(a=Cn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Di&&it(x,b,a);Cn.free(a)}}}function hl(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Xr||(x=a.mouseDrop,x!==null&&x(y))}function it(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 gi},!0,function(E){return E instanceof gi},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}lr.prototype.doDropOnto=function(){},lr.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))}},lr.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,Rs(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&ut(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)}}},lr.prototype.simulatedMouseMove=function(a,y,x){if(en===null)return!1;var b=en.diagram;x instanceof pn||(x=null);var E=An;return x!==E&&(E!==null&&E!==b&&(E.ug(),en.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),An=x,x!==null&&x!==b&&(Ka(),E=x.toolManager.findTool("Dragging"),E!==null&&(aa.contains(E)||aa.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)},lr.prototype.simulatedMouseUp=function(a,y,x){if(en===null)return!1;var b=An,E=en.diagram;if(x===null)return en.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),en.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;An=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Ka(),aa.contains(b)||aa.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 Qe),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=en,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function ut(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Di&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}lr.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(kr?!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())},lr.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())},lr.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())},lr.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},lr.prototype.Az=function(){return en},lr.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=en;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},lr.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Hl(a),a.animationManager.Cc(),a=en,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},lr.prototype.doSimulatedDragLeave=function(){var a=en;a!==null&&a.doSimulatedDragOut(),this.doCancel()},lr.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=en;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Jt(this,y.draggedParts.Lf(),!1,a.firstInput),La(this,this.copiedParts,!1),Ta(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},lr.prototype.doSimulatedDrop=function(){var a=this.diagram,y=en;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"),Jt(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)})),Rs(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 Jt(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=Cn.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,Cn.free(z),z=a.Fr,ee=new Ii,re=Qe.alloc(),oe=y.iterator;oe.next();)le=oe.value,le instanceof gi&&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))));Qe.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)}}}lr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},lr.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Qe},tt.Object.defineProperties(lr.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}}}),lr.prototype.getDraggingSource=lr.prototype.Az;var en=null,An=null;lr.className="DraggingTool",aa=new kn,Gn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),ni.prototype.doCancel=function(){en!==null&&en.doCancel(),bi.prototype.doCancel.call(this)};function gn(){bi.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new gi,y=new ro;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new ro,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Di,y=new ro,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Gr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Di,y=new ro,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Gr,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 Ii,this.Of=this.gj=this.Pf=null}bt(gn,bi),gn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},gn.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=Qe.alloc(),x.location=y.ga(So,z),Qe.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},gn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Gr,y.fromSpot=Da,y.toSpot=Da),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},gn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},gn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Di){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)}},gn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Di))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Di)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},gn.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 Di){var oe=ee.ga(So,Qe.alloc()),le=x.x-oe.x,ue=x.y-oe.y;Qe.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 Di&&(x.layer===null||x.layer.allowLink))?y:null},gn.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},gn.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},gn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},gn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Di))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Di))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},gn.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)},gn.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),Xn(this,x,y,b)};function Xn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Xn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Xn(a,y.labeledLink,x,b))))}gn.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=Pi(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 Pi(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&&Pi(a,y,re,b,E))return!0}}return!1}tt.Object.defineProperties(gn.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}}}),gn.className="LinkingBaseTool";function ii(){gn.call(this),this.name="Linking",this.V={},this.F=null,this.K=yi,this.Xd=null}bt(ii,gn),ii.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},ii.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 Di)))return null;var x=this.direction;if(x===yi||x===Ji){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===yi||x===Ui)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},ii.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 Di&&(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 Di&&(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)},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(){gn.prototype.doStop.call(this),this.startObject=null},ii.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 Di&&(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)}}},ii.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof gi)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)},ii.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},ii.prototype.doNoLink=function(){},tt.Object.defineProperties(ii.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 yi=new Xt(ii,"Either",0),Ji=new Xt(ii,"ForwardsOnly",0),Ui=new Xt(ii,"BackwardsOnly",0);ii.className="LinkingTool",ii.Either=yi,ii.ForwardsOnly=Ji,ii.BackwardsOnly=Ui;function zi(){gn.call(this),this.name="Relinking";var a=new ro;a.figure="Diamond",a.desiredSize=qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new ro,a.figure="Diamond",a.desiredSize=qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Cn}bt(zi,gn),zi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof gi){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)}},zi.prototype.makeAdornment=function(a,y){var x=new Yo;return x.type=si.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},zi.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},zi.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof Yo&&x.adornedPart instanceof gi))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=_r),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=_r),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},zi.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}},zi.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()},zi.prototype.doStop=function(){gn.prototype.doStop.call(this),this.handle=null},zi.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 Di&&(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()}}},zi.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},zi.prototype.doNoRelink=function(){};function yr(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)}tt.Object.defineProperties(zi.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof Yo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),zi.className="RelinkingTool",Gn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Gn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ki(){bi.call(this),this.name="LinkReshaping";var a=new ro;a.figure="Rectangle",a.desiredSize=Ao,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new ro,a.figure="Diamond",a.desiredSize=qr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Qe,this.Yq=new kn}bt(Ki,bi),Ki.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Pr},Ki.prototype.om=function(a,y){a.reshapingBehavior=y},Ki.prototype.updateAdornments=function(a){if(a!==null&&a instanceof gi){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)}},Ki.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Yo,E.type=si.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);Kt.B(oe.x,le.x)&&Kt.B(oe.y,le.y)&&(le=y.i(x-1)),Kt.B(oe.x,le.x)?(this.om(re,yo),re.cursor="n-resize"):Kt.B(oe.y,le.y)&&(this.om(re,Br),re.cursor="w-resize")}else ee===z-1&&b?(oe=y.i(z-1),le=y.i(z),Kt.B(oe.x,le.x)&&Kt.B(oe.y,le.y)&&(oe=y.i(z+1)),Kt.B(oe.x,le.x)?(this.om(re,yo),re.cursor="n-resize"):Kt.B(oe.y,le.y)&&(this.om(re,Br),re.cursor="w-resize")):ee!==z&&(this.om(re,Lo),re.cursor="move");E.add(re)}E.adornedObject=a}return E},Ki.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ki.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ki.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},Ki.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 gi){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}}},Ki.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ki.prototype.stopTransaction=function(){var a=this.diagram,y=bi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ki.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ki.prototype.getResegmentingPoint=function(){return this.handle.ga(So)},Ki.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ki.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&&(Ar(this,ee,b,E,z,!0)||Ar(this,ee,b,E,z,!1))){var re=y.points.copy();Ar(this,ee,b,E,z,!0)?(re.cd(x-2,new Qe(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new Qe(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new Qe((z.x+ee.x)/2,ee.y)),re.cd(x+1,new Qe((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&&(Ar(this,b,E,z,ee,!0)||Ar(this,b,E,z,ee,!1))&&(re=y.points.copy(),Ar(this,b,E,z,ee,!0)?(re.cd(x-1,new Qe(b.x,(b.y+ee.y)/2)),re.cd(x+2,new Qe(ee.x,(b.y+ee.y)/2))):(re.cd(x-1,new Qe((b.x+ee.x)/2,b.y)),re.cd(x+2,new Qe((b.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=Qe.alloc(),Kt.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()),Qe.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Ar(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}Ki.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===Br&&(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?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&&(z=E.ga(So,Qe.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Qe.alloc()),y.L(0,b.x,b.y),Qe.free(z),Qe.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,Qe.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Qe.alloc()),y.L(y.pointsCount-1,a.x,a.y),Qe.free(x),Qe.free(a));y.zf()},Ki.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 Qe(y.i(x).x,a.y);case Br:return new Qe(a.x,y.i(x).y);default:case Pr:return y.i(x)}},tt.Object.defineProperties(Ki.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Yo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Ki.prototype.setReshapingBehavior=Ki.prototype.om,Ki.prototype.getReshapingBehavior=Ki.prototype.Ru;var Pr=new Xt(Ki,"None",0),Br=new Xt(Ki,"Horizontal",1),yo=new Xt(Ki,"Vertical",2),Lo=new Xt(Ki,"All",3);Ki.className="LinkReshapingTool",Ki.None=Pr,Ki.Horizontal=Br,Ki.Vertical=yo,Ki.All=Lo,Gn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function zr(){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 ro;a.alignmentFocus=So,a.figure="Rectangle",a.desiredSize=Ao,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Qe,this.Dw=new zn,this.Tn=new Qe,this.rt=new zn(0,0),this.qt=new zn(1/0,1/0),this.pt=new zn(1,1)}bt(zr,bi),zr.prototype.updateAdornments=function(a){if(!(a===null||a instanceof gi)){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)}},zr.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Yo,y.type=si.Spot,y.locationSpot=So;var x=new ou;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ga)),y.add(this.makeHandle(a,ml)),y.add(this.makeHandle(a,vl)),y.add(this.makeHandle(a,il)),y.add(this.makeHandle(a,os)),y.add(this.makeHandle(a,Ls)),y.add(this.makeHandle(a,xs)),y.add(this.makeHandle(a,hs))}else if(kc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},zr.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},zr.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 si)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},zr.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},zr.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))},zr.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},zr.prototype.stopTransaction=function(){var a=this.diagram,y=bi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},zr.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},zr.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,Qe.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Qe.free(E)}},zr.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,Qe.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Qe.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},zr.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Xr){var b=new kn;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()}},zr.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=Qe.alloc(),Kt.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))),Qe.free(xe),a},zr.prototype.computeReshape=function(){var a=ei;return this.adornedObject instanceof ro&&(a=Mv(this.adornedObject)),!(a===tr||this.diagram.lastInput.shift)},zr.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},zr.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},zr.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},tt.Object.defineProperties(zr.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof Yo))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Yo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),zr.className="ResizingTool",Gn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function eo(){bi.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Qe,this.ue=null;var a=new ro;a.figure="Ellipse",a.desiredSize=qr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Qe(NaN,NaN),this.u=0,this.F=50}bt(eo,bi),eo.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)}},eo.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Yo,y.type=si.Position,y.locationSpot=So;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(kc(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},eo.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},eo.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)},eo.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)},eo.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)},eo.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Qe(NaN,NaN),this.isActive=a.isMouseCaptured=!1},eo.prototype.stopTransaction=function(){var a=this.diagram,y=bi.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},eo.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},eo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},eo.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()},eo.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()}},eo.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},tt.Object.defineProperties(eo.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof Yo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof Yo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),eo.className="RotatingTool",Gn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Ko(){bi.call(this),this.name="ClickSelecting"}bt(Ko,bi),Ko.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Ko.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Ko.className="ClickSelectingTool";function Or(){bi.call(this),this.name="Action",this.pk=null}bt(Or,bi),Or.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},Or.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()},Or.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))}},Or.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()},Or.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())},Or.prototype.doStop=function(){this.pk=null},Or.className="ActionTool";function so(){bi.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Qe(0,0)}bt(so,bi),so.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},so.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},so.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var b=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof ur)x.Zc()&&(kc(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=Qe.allocAt(a.x,a.y);this.isGridSnapEnabled&&vf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Qe.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},tt.Object.defineProperties(so.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),so.className="ClickCreatingTool";function jr(){bi.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ur;a.layerName="Tool",a.selectable=!1;var y=new ro;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}bt(jr,bi),jr.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))},jr.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},jr.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},jr.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)}},jr.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()},jr.prototype.computeBoxBounds=function(){var a=this.diagram;return new Cn(a.firstInput.documentPoint,a.lastInput.documentPoint)},jr.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),kr?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 kn,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)}},tt.Object.defineProperties(jr.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}}}),jr.className="DragSelectingTool";function gr(){bi.call(this),this.name="Panning",this.Xt=new Qe,this.xy=new Qe,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Ye.document,"scroll",a.Kw,!1),a.stopTool()}}bt(gr,bi),gr.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())},gr.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Ye.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},gr.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},gr.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},gr.prototype.doMouseMove=function(){this.move()},gr.prototype.doMouseUp=function(){this.move(),this.stopTool()},gr.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)}},tt.Object.defineProperties(gr.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),gr.className="PanningTool",Gn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Gn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Gn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Gn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Gn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Lr(){this.F=this.u=this.j=this.o=null}tt.Object.defineProperties(Lr.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}}}),Lr.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 Qe,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}bt(Mo,bi);function No(a){var y=new Lr;y.show=function(E,z,ee){ee.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},ta=y,a.tu=function(){a.stopTool()},y=cn("div");var x=cn("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=cn("style");Ye.document.getElementsByTagName("head")[0].appendChild(b),b.sheet.insertRule(".goCXul { list-style: none; }",0),b.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),b.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),b=a.diagram,b!==null&&(b.addEventListener(y,"contextmenu",Mr,!1),b.addEventListener(y,"selectstart",Mr,!1),b.addEventListener(x,"contextmenu",Mr,!1)),y.className="goCXforeground",x.className="goCXbackground",Ye.document.body&&(Ye.document.body.appendChild(y),Ye.document.body.appendChild(x)),Wo=y,fa=x,Qa=!0}function Mr(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 pn||(a instanceof Vt?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 Yo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Vo(this)},Mo.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Yo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Vo(this)};function Vo(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Lr||(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 Vt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Yo&&!a.currentContextMenu.visible&&a.stopTool()}}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 Yo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof Lr&&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 Yo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Lr&&(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 kn;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)),Wo.innerHTML="",fa.addEventListener("pointerdown",this.tu,!1);var y=this,x=cn("ul");x.className="goCXul",Wo.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=cn("li"),z.className="goCXli";var ee=cn("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)}}Wo.style.display="block",fa.style.display="block"},Mo.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===ta){Wo.style.display="none",fa.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(fa,"pointerdown",this.tu,!1),this.currentContextMenu=null}},tt.Object.defineProperties(Mo.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Yo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Qa===!1&&ta===null&&cs&&No(this),ta},set:function(a){a===null&&(Qa=!0),ta=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var ta=null,Qa=!1,fa=null,Wo=null;Mo.className="ContextMenuTool",Gn("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 Lr,this.kt=null,To(this,this.j)}bt(wo,bi);function To(a,y){if(cs){var x=cn("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===Zr&&(a.qa=Uo),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(ns),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===ao&&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=Zr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new Cn(this.textBlock.ga(ga),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(ns)},wo.prototype.acceptText=function(a){switch(a){case ns:this.qa===zs?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Zr||this.qa===al||this.qa===Uo)&&(this.qa=sa,Ya(this));break;case Ia:case bo:case Ro:(bo!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Zr||this.qa===al||this.qa===Uo)&&(this.qa=sa,Ya(this))}};function Ya(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=zs,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},tt.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 Xt(wo,"LostFocus",0),ns=new Xt(wo,"MouseDown",1),Ro=new Xt(wo,"Tab",2),bo=new Xt(wo,"Enter",3),Zo=new Xt(wo,"SingleClick",0),xo=new Xt(wo,"SingleClickSelected",1),ao=new Xt(wo,"DoubleClick",2),qi=new Xt(wo,"StateNone",0),Zr=new Xt(wo,"StateActive",1),Uo=new Xt(wo,"StateEditing",2),sa=new Xt(wo,"StateValidating",3),al=new Xt(wo,"StateInvalid",4),zs=new Xt(wo,"StateValidated",5),Al=null;wo.className="TextEditingTool",wo.LostFocus=Ia,wo.MouseDown=ns,wo.Tab=Ro,wo.Enter=bo,wo.SingleClick=Zo,wo.SingleClickSelected=xo,wo.DoubleClick=ao,wo.StateNone=qi,wo.StateActive=Zr,wo.StateEditing=Uo,wo.StateValidating=sa,wo.StateInvalid=al,wo.StateValidated=zs,Gn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ka(a){Ms||(Xa(),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 $a,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)}ka.prototype.Xe=function(a){this.H=a},ka.prototype.canStart=function(){return!0};function Ua(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),sl(a.H),a.zb=!0)}function Do(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),Ye.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Nl(x),Wd(x),a.zb=!1,y.start(),y.bc&&(is(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 gi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Ce=ka.prototype,Ce.fv=function(a){return this.ce.fv(a)},Ce.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 Vt&&oe.diagram!==null||oe instanceof pn){re=!0;break e}}re=!1}re?ku(ee,!1):ee.Xk=!0}}E.pu.clear(),E.bc!==!1&&(is(E),Hl(E.H),bs(E)),Ye.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Ye.requestAnimationFrame(function(){x()}))}function _a(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function is(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}Ce.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)},Ce.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))},Ce.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),ss(this,a))},Ce.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),ss(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 xa(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function ss(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 Xa(){function a(x,b,E,z,ee,re){x.position=new Qe(z(ee,b.x,E.x-b.x,re),z(ee,b.y,E.y-b.y,re))}var y=new Ii;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 Qe(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 Qe(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 Qe(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 Qe(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 Cn(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}tt.Object.defineProperties(ka.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&&Qn(a,">= 1",ka,"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}}}),ka.prototype.stopAnimation=ka.prototype.Cc;var zo=null,Ms=!1,Ys=new Xt(ka,"Default",1),Wu=new Xt(ka,"AnimateLocations",2),vu=new Xt(ka,"None",3);ka.className="AnimationManager",ka.defineAnimationEffect=function(a,y){Ms||(Xa(),Ms=!0),zo.add(a,y)},ka.Default=Ys,ka.AnimateLocations=Wu,ka.None=vu;function $a(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=pt,this.vc=new Ii,this.Tt=new Ii,this.yl=new Ln,this.Ut=new Ln,this.dw=mh,a&&Object.assign(this,a)}$a.prototype.suspend=function(){this.Xk=!0},$a.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,ku(this,!0),is(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}Ce=$a.prototype,Ce.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 pn?a=x:x instanceof Vt&&(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),is(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)},Ce.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ce.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof pn?this.H=a:a instanceof Vt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof ur){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 pn&&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]=ps(b)),le[x]=ps(E)}else oe={},le={},oe[x]=ps(b),le[x]=ps(E),re=oe.position,y instanceof Vt&&re instanceof Qe&&!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 Qe&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof ur?re.Ku.location=ps(y.location):z&&(re.Ku[x]=ps(b))}function ps(a){return a instanceof Qe||a instanceof zn?a.copy():a}Ce.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ce.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function ku(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),is(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 Vt&&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)}}}Ce.stop=function(){return this.bc?(this.Ml(!0),this):this},Ce.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,is(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 ur&&(ee.location=ue.location),re.nv&&ee instanceof ur&&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())}},Ce.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Xr&&(b=y.placeholder),b!==null?(x=b.ga(ga),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Qe(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Xr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Di&&this.Cj(b,y)},Ce.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Xr&&(x=y.placeholder),x!==null){var b=x.ga(ga);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Xr)for(a=a.memberParts;a.next();)b=a.value,b instanceof Di&&this.Aj(b,y)}},Ce.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},tt.Object.defineProperties($a.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Qn(a,">= 1",$a,"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:Et("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}}}),$a.prototype.getTemporaryState=$a.prototype.Ez,$a.prototype.stop=$a.prototype.stop,$a.prototype.add=$a.prototype.add,$a.prototype.addTemporaryPart=$a.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}$a.className="Animation",$a.EaseLinear=function(a,y,x,b){return x*a/b+y},$a.EaseInOutQuad=ql,$a.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},$a.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},$a.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},$a.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||ls,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))}tt.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 ls=new Xt(yu,"Default",1),Qs=new Xt(yu,"Immediate",2),ms=new Xt(yu,"Bundled",3);yu.className="AnimationTrigger",yu.Default=ls,yu.Immediate=Qs,yu.Bundled=ms;function za(a){pr(this),this.H=null,this.Pa=new kn,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)}Ce=za.prototype,Ce.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},Ce.Xe=function(a){this.H=a},Ce.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 Xr?E++:oe instanceof Di?b++:oe instanceof gi?z++:oe instanceof Yo?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&&vr(b)&&(re+=" #"+vr(b)),x instanceof Di?re+=" "+Zi(b):x instanceof gi&&(re+=" "+Zi(x.fromNode)+" "+Zi(x.toNode));return y+" "+this.Pa.count+": "+re},Ce.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=Qe.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((b!==!0||Uh(re)!==!1)&&re.isVisible()&&(E.assign(a),qn(E,re.oe),re=re.ic(E,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return Qe.free(E),re}return Qe.free(E),null},Ce.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof kn||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=Qe.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((E!==!0||Uh(oe)!==!1)&&oe.isVisible()){z.assign(a),qn(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 Qe.free(z),b},Ce.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 kn||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},Ce.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},Ce.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 kn||E instanceof Ln)&&(z=E),E=!0),z instanceof kn||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=Qe.alloc(),oe=Qe.alloc(),le=this.Pa.s,ue=le.length;ue--;){var fe=le[ue];if((ee!==!0||Uh(fe)!==!1)&&fe.isVisible()){re.assign(a),qn(re,fe.oe),oe.h(a.x+y,a.y),qn(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 Qe.free(re),Qe.free(oe),z},Ce.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=ti();for(var E=ti(),z=0;z<b;z++){var ee=x[z];if(ee.vw=z,ee instanceof gi){if(ee.fd===!1)continue}else if(ee instanceof Yo&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&ma(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]);xi(a),xi(E)}}};function _s(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ce.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=Cn.alloc(),oe=0;oe<b;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(Cn.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=Cn.alloc(),ue=0;ue<z;ue++){var fe=E[ue];b.contains(fe)&&a.Oj(y,fe,x,re,oe,le,!1)}Cn.free(le),y.globalAlpha=ee}}}Ce.Oj=function(a,y,x,b,E,z,ee){if(ee&&!Uh(y))a.Hs(y);else{if(b!==null&&y instanceof gi&&(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&&(ds(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(ds(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),ds(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))}},Ce.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(oi,a,this,y,x,b,E)},Ce.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},Ce.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 Xr&&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}tt.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===""&&Et("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Et("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)&&Qn(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 pn(a,y){if(fm||(Wl(),fm=!0),pr(this),bc=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,cs){var x=this,b=function(){x.removeEventListener(Ye.document,"DOMContentLoaded",b,!1),x.setRTL()};Ye.document.body!==null?this.setRTL():x.addEventListener(Ye.document,"DOMContentLoaded",b,!1)}this.ol=null,nd.add("Model",ra);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===oi&&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"||Ye.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 ka,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new kn,a.pj=new Ii,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Qe(NaN,NaN).freeze(),a.du=new Qe(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Qe(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Rr,a.zu=new Qe(NaN,NaN).freeze(),a.ut=new Cn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Vi(0,0,0,0).freeze(),a.sj=mh,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Yl,a.zk=Xo,a.Fg=Yl,a.pq=Xo,a.yt=ga,a.Bt=ga,a.Fc=!0,a.pn=!1,a.De=new Ln,a.Eh=new Ii,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Vi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new nn,a.bq.diagram=a,a.Qg=new nn,a.Qg.diagram=a,a.cj=new nn,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 Ii,a.Xn=new kn,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 Vi(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 Qe,bounds:new Cn,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 Cn(NaN,NaN,NaN,NaN).freeze(),a.wo=new zn(NaN,NaN).freeze(),a.Sp=new Cn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Ii;var y=new Di,x=new ba;x.bind(new Fs("text","",Zi)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Di,x=new ba,x.stroke="brown",x.bind(new Fs("text","",Zi)),y.add(x),a.Lg.add("Comment",y),y=new Di,y.selectable=!1,y.avoidable=!1,x=new ro,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 Ii,y=new Xr,y.selectionObjectName="GROUPPANEL",y.type=si.Vertical,x=new ba,x.font="bold 12pt sans-serif",x.bind(new Fs("text","",Zi)),y.add(x),x=new si(si.Auto),x.name="GROUPPANEL";var b=new ro;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new ou,b.padding=new Vi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Ii,y=new gi,x=new ro,x.isPanelMain=!0,y.add(x),x=new ro,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new gi,x=new ro,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Yo,y.type=si.Auto,x=new ro,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new ou,x.margin=new Vi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Yo,y.type=si.Link,x=new ro,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 ra,a.toolManager=new ni,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=On,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 Qe,a.zy=500,a.wp=new Qe,a.wq=!1}pn.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(),Sr=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function _c(){return null}pn.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 Ei,this.vb=this.rn=!1,this.N()},pn.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ye.document.body);var y=cn("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},pn.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ye.document.body);var y=0;if(cs){var x=Lc;y=Rc,x===null&&(x=Lc=cn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Rc=cn("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||kr||(y=11)}this.Db=y,this.Gw=!0},pn.prototype.qb=function(a){a.classType===pn&&(this.autoScale=a)},pn.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(cs){if(y!=null||Et("Diagram setup requires an argument DIV."),a.Ka!==null&&Et("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ye.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Et("No DIV or DIV id supplied: "+y),a.Ka===null&&Et("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Et("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ye.ResizeObserver){var x=Bt(function(){a.$b()},250);a.ol=new Ye.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ye.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var b="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=b,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=Ye.go;var E=new Fc(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Ye.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),E.style.zIndex="2",E.style.userSelect="none",E.style.MozUserSelect="none",E.style.touchAction="none",E.style.letterSpacing="normal !important",E.style.wordSpacing="normal !important"),a.ta=E,a.ib=E.context,b=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),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,cs){E=cn("div");var z=cn("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=Bt(function(){a.Yh=null,a.N()},300),a.Ov=Bt(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=Ye.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=Ye.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 pn&&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)}}pn.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},pn.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(Ye,"resize",a.Ov,!1)}function Nl(a){30<a.Sq&&(a.Yh=1)}function fd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Er&&Er.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}pn.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ye.devicePixelRatio||1},pn.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},pn.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},pn.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},pn.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},pn.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},pn.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},pn.prototype.doFocus=function(){this.focus()},pn.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Ye.scrollX||Ye.pageXOffset,y=Ye.scrollY||Ye.pageYOffset;this.ta.focus(),Ye.scrollTo(a,y)}},pn.prototype.Oy=function(){this.H.R("GainedFocus")},pn.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 si(si.Grid);y.name="GRID";var x=new ro;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new ro,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new ro,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ro,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new ro,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new ro,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ur,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)}pn.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,Ee=E.height,Ae=E.right,Te=E.bottom;E=this.scale;var ot=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":ot=ot+a.scrollWidth-a.clientWidth;break;case"reverse":ot=a.scrollWidth-ot-a.clientWidth}var Ue=ot;xe<oe||Ee<le?(ot=Qe.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ue&&(ot.x=Ue/E+ee,this.ju=Ue),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(ot.y=a.scrollTop/E+re,this.lu=a.scrollTop),this.position=ot,Qe.free(ot),this.Ee=this.qr=!1):(ot=Qe.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<fe&&(this.position=ot.h(Ue+ee,this.position.y)),ue>Ae&&(this.position=ot.h(-(y.scrollWidth-this.Aa)+Ue-this.Aa/E+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<b&&(this.position=ot.h(this.position.x,a.scrollTop+re)),z>Te&&(this.position=ot.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Qe.free(ot),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ue=b.right,Ae=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<=Ae&&(x.style.width="1px"),Ee>=le&&re>=b&&z<=Te&&(x.style.height="1px"))}},pn.prototype.computeBounds=function(a){return a===void 0&&(a=new Cn),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}pn.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Sn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof gi||(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 gi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Cn(NaN,NaN,0,0):x};function Nu(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=Qe.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Cn.allocAt(0,0,b.width,b.height);var E=Qe.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Cn.free(b),Qe.free(E),Qe.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,Kt.B(z.x,x)&&Kt.B(z.y,b)&&Kt.B(z.width,E)&&Kt.B(z.height,ee)||a.onViewportBoundsChanged(new Cn(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}pn.prototype.zoomToFit=function(){var a=this.sj;this.sj=mh,this.scale=$c(this,$u),a!==mh&&(Nu(this,!1),Hh(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ce=pn.prototype,Ce.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 Qe(a.x,a.y)}},Ce.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Qe(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))},Ce.zz=function(a){if(a instanceof Vt){this.eq=a;var y=Qe.alloc();this.fq=this.op(a.ga(ga,y)),Qe.free(y)}else this.eq=null,this.fq=On};function Hh(a,y,x,b,E,z){var ee=Qe.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var le=Qe.alloc();le=a.eq.ga(ga,le),re=le.x-a.fq.x/a.scale,oe=le.y-a.fq.y/a.scale,E=Da,Qe.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),Qe.free(ee)}Ce.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 ur)return a}else if(a=lc(this,a,function(x){return x.part}),a instanceof ur)return a;return null},Ce.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}Ce.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 ur&&b.canSelect()}:null,x)};function qc(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof kn||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}Ce.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof kn||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},Ce.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 ur&&(!x||E.canSelect())},y,b)},Ce.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof kn||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},Ce.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 kn||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}Ce.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 ur&&(!b||z.canSelect())},x,E)},Ce.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 kn||E instanceof Ln)&&(z=E),E=!0),z instanceof kn||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 kn||E instanceof Ln)&&(z=E),E=!0),z instanceof kn||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}pn.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),kr&&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,kr&&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)}pn.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)},pn.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)},pn.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)},pn.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)},pn.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Qe(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?qn(new Qe(y,a),this.Ab):new Qe(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=Qe.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),Qe.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))}}pn.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function dh(a){a.ld||sl(a),a.Va()}pn.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ce=pn.prototype,Ce.Pz=function(){return this.kg},Ce.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 Qe(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&jn(function(){b.ld=!1,Ua(y,"Model"),a(b)},1)},Ce.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Ye.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ce.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&&Nu(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];Hs(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=Cn.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),Cn.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)),Nu(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)}Nu(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 Xr&&b.U&65536&&(b.U=b.U^65536)})}}Ce.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Xr||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Xr&&x.isVisible()&&Va(this,x);for(a.reset();a.next();)x=a.value,x instanceof gi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof Yo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function Va(a,y){for(var x=ti(),b=ti(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Xr?(ec(z)||iu(z)||Yh(z))&&Va(a,z):z instanceof gi?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(xi(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();xi(b)}Ce.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Ce.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Et("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&&(Rr.prototype.Cd=Rr.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&&(Rr.prototype.Cd=Rr.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=Er&&Er.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&&Et("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 Ee=new Cn(z.x,z.y,b.width/E,b.height/E),Ae=Ee.copy();Ae.Co(x),Ec(a,Ae),sl(a),a.Fd(fe,xe,a,Ee),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 ot=Rr.alloc();ot.reset(),ot.translate(x.left,x.top),ot.scale(E),z.x===0&&z.y===0||ot.translate(-z.x,-z.y),y.setTransform(ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),y.yc(),y instanceof Ku&&qy(y,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),Rr.free(ot),Dl(a,y),y.globalAlpha=a.pb;var Ue=a.Qj("Grid");if(ee){var St=new Ln,Ct=ee.iterator;for(Ct.reset();Ct.next();){var Ft=Ct.value;Ft instanceof ur&&(le||Ft.layer!==Ue)&&(Ft.Gj(),St.add(Ft))}for(le=0;le<xe;le++)Rl(fe[le],y,a,St,oe);St.each(function(yn){return yn.Gj()})}else for(St=0;St<xe;St++){var jt=fe[St];jt===Ue?le&&jt.gc(y,a,!0):jt.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())}}}Ce.Gf=function(a){return this.Rg[a]},Ce.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ce.Tx=function(){this.Rg=new Hi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(kr||br),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))}Ce.Ql=function(a){return this.on[a]},Ce.sA=function(a,y){this.on[a]=y},Ce.Sx=function(){this.on=new Hi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ce.set=function(a){return Object.assign(this,a),this},Ce.Du=function(a){return this.nm(a)},Ce.nm=function(a){return Du(this,a),this};function Du(a,y){var x=a instanceof si,b=a instanceof pn,E;for(E in y){E===""&&Et("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):Et("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+E)}}if(ee[0]!=="_"&&!cr(z,ee))if(b&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(b&&ee==="Changed"){a.Pe(y[ee]);continue}else if(b&&cr(a.toolManager,ee))z=a.toolManager;else if(b&&us(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof ir&&ee==="Changed"){a.Pe(y[ee]);continue}else Et('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[E],ee[0]==="_"&&z instanceof Vt&&z.Vw(ee)}}Ce.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Ii,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ce.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")},pn.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=Cn.alloc(),Yf(this,this.computeBounds(b)),Cn.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),Ee=Math.floor(re-fe);a.drawImage(b.Oa,ue,fe,xe,Ee,0,0,xe,Ee),bf(this.Yf,this)&&a.clearRect(0,0,oe,le),b=ti(),a=ti(),Ee=Math.abs(z),xe=Math.abs(y);var Ae=ue===0?0:E-Ee;ue=Qe.allocAt(Ae,0),Ee=Qe.allocAt(Ee+Ae,re),a.push(new Cn(Math.min(ue.x,Ee.x),Math.min(ue.y,Ee.y),Math.abs(ue.x-Ee.x),Math.abs(ue.y-Ee.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),qn(ue,Te),qn(Ee,Te),b.push(new Cn(Math.min(ue.x,Ee.x),Math.min(ue.y,Ee.y),Math.abs(ue.x-Ee.x),Math.abs(ue.y-Ee.y))),Ae=fe===0?0:re-xe,ue.h(0,Ae),Ee.h(E,xe+Ae),a.push(new Cn(Math.min(ue.x,Ee.x),Math.min(ue.y,Ee.y),Math.abs(ue.x-Ee.x),Math.abs(ue.y-Ee.y))),qn(ue,Te),qn(Ee,Te),b.push(new Cn(Math.min(ue.x,Ee.x),Math.min(ue.y,Ee.y),Math.abs(ue.x-Ee.x),Math.abs(ue.y-Ee.y))),bf(this.Yf,this)&&(E=0<z?0:-z,re=0<y?0:-y,ue.h(E,re),Ee.h(oe+E,le+re),a.push(new Cn(Math.min(ue.x,Ee.x),Math.min(ue.y,Ee.y),Math.abs(ue.x-Ee.x),Math.abs(ue.y-Ee.y))),qn(ue,Te),qn(Ee,Te),b.push(new Cn(Math.min(ue.x,Ee.x),Math.min(ue.y,Ee.y),Math.abs(ue.x-Ee.x),Math.abs(ue.y-Ee.y)))),Qe.free(ue),Qe.free(Ee),jc(this,!1,!0),this.Ka===null&&Et("No div specified"),this.ta===null&&Et("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=Cn.alloc(),Ee=ee.Pa.s,Te=Ee.length,Ae=oe.length;for(var ot=0;ot<Te;ot++){var Ue=Ee[ot],St=Nf(Ue,Ue.actualBounds);e:{for(var Ct=2/ue,Ft=4/ue,jt=0;jt<Ae;jt++){var yn=oe[jt];if(yn.width!==0&&yn.height!==0&&St.Vu(yn.x-Ct,yn.y-Ct,yn.width+Ft,yn.height+Ft)){St=!0;break e}}St=!1}St&&ee.Oj(E,Ue,this,fe,ue,xe,!0)}Cn.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()}xi(b),xi(a),this.ld=!1}}else this.bd();x&&(Nl(this),this.bd(),fd(this,!0))}else x?(Nl(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,Ee=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 Ae=a.ku,Te=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var ot=a.documentBounds,Ue=0,St=0,Ct=0,Ft=0,jt=ue.width,yn=ue.height,Fi=a.rj;a.contentAlignment.sb()?(ot.width>jt&&(Ue=Fi.left,St=Fi.right),ot.height>yn&&(Ct=Fi.top,Ft=Fi.bottom)):(Ue=Fi.left,St=Fi.right,Ct=Fi.top,Ft=Fi.bottom);var Xi=ot.width+Ue+St,ji=ot.height+Ct+Ft;Fi=a.scale;var fi=Xi>oe/Fi,_n=ji>le/Fi;if(!(z||a.gf||a.Be||fi||_n))return!0;Ue=ot.x-Ue,oe=ue.x,St=ot.right+St,le=ue.right+ee,Ct=ot.y-Ct;var Ur=ue.y;ot=ot.bottom+Ft,ue=ue.bottom+re;var Ir="1px";if(Ft="1px",a.scrollMode===mh&&(fi||_n)&&(fi&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(fi=1,Ue+1<oe&&(fi=Math.max((oe-Ue)*Fi+a.Aa,fi)),St>le+1&&(fi=Math.max((St-le)*Fi+a.Aa,fi)),jt+ee+1<Xi&&(fi=Math.max((Xi-jt)*Fi+a.Aa,fi)),Ir=fi.toString()+"px"),_n&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(fi=1,Ct+1<Ur&&(fi=Math.max((Ur-Ct)*Fi+a.ya,fi)),ot>ue+1&&(fi=Math.max((ot-ue)*Fi+a.ya,fi)),yn+re+1<ji&&(fi=Math.max((ji-yn)*Fi+a.ya,fi)),Ft=fi.toString()+"px")),fi=Ir!=="1px",_n=Ft!=="1px",fi&&_n||!fi&&!_n||(_n&&(le-=a.Db),fi&&(ue-=a.Db),Xi<jt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ue+1<oe&&(ee=Math.max((oe-Ue)*Fi+a.Aa,ee)),St>le+1&&(ee=Math.max((St-le)*Fi+a.Aa,ee)),jt+1<Xi&&(ee=Math.max((Xi-jt)*Fi+a.Aa,ee)),Ir=ee.toString()+"px"),fi=Ir!=="1px",ee=a.ya,fi!==a.Be&&(ee=fi?a.ya-a.Db:a.ya+a.Db),ji<yn+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,Ct+1<Ur&&(re=Math.max((Ur-Ct)*Fi+ee,re)),ot>ue+1&&(re=Math.max((ot-ue)*Fi+ee,re)),yn+1<ji&&(re=Math.max((ji-yn)*Fi+ee,re)),Ft=re.toString()+"px"),_n=Ft!=="1px"),a.qr&&fi===a.Be&&_n===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(fi!==a.Be&&(Ir==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=fi,Te.style.width=Ir,_n!==a.gf&&(Ft==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=Qe.alloc(),_n?(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)),Qe.free(re))),z&&Hc(a),a.gf=_n,Te.style.height=Ft,a.gu=!0,z&&(a.pn=!0),y=Ae.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(jt+1<Xi?y=(a.position.x-Ue)*Fi:Ue+1<oe?y=Ae.scrollWidth-Ae.clientWidth:St>le+1&&(y=a.position.x*Fi)),a.tn)switch(a.bu){case"negative":y=-(Ae.scrollWidth-y-Ae.clientWidth);break;case"reverse":y=Ae.scrollWidth-y-Ae.clientWidth}return Ae.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(yn+1<ji?Ae.scrollTop=(a.position.y-Ct)*Fi:Ct+1<Ur?Ae.scrollTop=Ae.scrollHeight-Ae.clientHeight:ot>ue+1&&(Ae.scrollTop=a.position.y*Fi)),oe=a.Aa,le=a.ya,Ae.style.width=oe+(a.gf?a.Db:0)+"px",Ae.style.height=le+(a.Be?a.Db:0)+"px",x!==oe||b!==le||a.animationManager.zb?(x=Cn.allocAt(E,fe,xe,Ee),a.onViewportBoundsChanged(x,a.viewportBounds,Fi,z),Cn.free(x),!1):!0}Ce=pn.prototype,Ce.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Et("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&&Et('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(ui,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ce.oi=function(a){this.partManager.oi(a);var y=this;Mf(a,function(x){gh(y,x)}),(a instanceof Yo||a instanceof Xr&&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(Nf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Nf(a,a.actualBounds)),this.$b()},Ce.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(Nf(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Nf(a,a.actualBounds)),this.$b()},Ce.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(Mi,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Ce.Is=function(a,y){if(y===void 0&&(y=!1),Sn(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)},Ce.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},pn.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 Ii;if(a!==null)if(Sn(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 Di){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Xr&&(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 gi)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Qu(a,y,x.value,b,E);else x instanceof Yo||y.add(x,a.Pd(E,x,x.location))}function uc(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Qe.alloc(),ee=Qe.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=ti(),oe=ti(),le=y.iterator,ue=Qe.alloc();le.next();){var fe=le.key,xe=le.value;if(fe.Zc()){var Ee=yf(a,fe,y);Ee!==null?re.push(new ie(fe,xe,Ee)):(!E||fe.canMove())&&(Ee=xe.point,z.assign(Ee),a.computeMove(fe,z.add(ee),b,ue),fe.location=ue,xe.shifted===void 0&&(xe.shifted=new Qe),xe.shifted.assign(ue.re(Ee)))}else le.key instanceof gi&&oe.push(le.sa)}for(Qe.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 Qe),fe.node.location=z.add(fe.Su.shifted);for(E=Qe.alloc(),le=Qe.alloc(),fe=oe.length,xe=0;xe<fe;xe++){var Ae=oe[xe];if(Ee=Ae.key,Ee instanceof gi)if(Ee.suspendsRouting){Ee.Tg=null,ue=Ee.fromNode;var Te=Ee.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Te=Ae.value.point,Ee.dragComputation===null)y.add(Ee,a.Pd(b,Ee,ee)),bh(Ee,ee.x-Te.x,ee.y-Te.y);else{Ae=Qe.allocAt(0,0),(ue=Ee.i(0))&&ue.w()&&Ae.assign(ue);var ot=ue=Qe.alloc().assign(Ae).add(ee);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(ot=Qe.alloc(),vf(a,Ee,ue,ot,b)),ue.assign(Ee.dragComputation(Ee,ue,ot)).re(Ae),y.add(Ee,a.Pd(b,Ee,ue)),bh(Ee,ue.x-Te.x,ue.y-Te.y),Qe.free(Ae),Qe.free(ue),ot!==ue&&Qe.free(ot)}else ue!==null&&(E.assign(ue.location),ot=y.I(ue),ot!==null&&E.re(ot.point)),Te!==null&&(le.assign(Te.location),ot=y.I(Te),ot!==null&&le.re(ot.point)),ue!==null&&Te!==null?E.Xa(le)?(ue=Ae.value.point,Te=z,Te.assign(E),Te.re(ue),y.add(Ee,a.Pd(b,Ee,E)),bh(Ee,Te.x,Te.y)):(Ee.suspendsRouting=!1,Ee.bb()):(Ae=Ae.value.point,ue=ue!==null?E:Te!==null?le:ee,y.add(Ee,a.Pd(b,Ee,ue)),bh(Ee,ue.x-Ae.x,ue.y-Ae.y))}else(Ee.fromNode===null||Ee.toNode===null)&&(ue=Ae.value.point,y.add(Ee,a.Pd(b,Ee,ee)),bh(Ee,ee.x-ue.x,ee.y-ue.y))}Qe.free(z),Qe.free(ee),Qe.free(E),Qe.free(le),xi(re),xi(oe),x||(sl(a),_u(a,y))}}pn.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Qe),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Qe.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&&Qe.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=Qe.allocAt(0,0),z.yi(0,0,a,y,E),Kt.No(x.x,x.y,re+z.x,ee+z.y,a,y,b),Qe.free(z)}}function fh(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof gi&&(y.suspendsRouting=!0)}function _u(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof gi&&(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}Ce=pn.prototype,Ce.Pd=function(a,y,x){if(x===void 0)return new Qd(pt);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new Qd(new Qe(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&&Et("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Et("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Et("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Et("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&&Et("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ce.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(ui,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ce.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(Mi,"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(ui,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Ce.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(Mi,"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(ui,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Ce.kA=function(a){if(a.diagram!==this&&Et("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(Mi,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ce.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ce.Yw=function(a){return this.pf===null&&(this.pf=new kn),this.pf.add(a),this.model.Pe(a),this},Ce.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ce.Pe=function(a){return this.zg===null&&(this.zg=new kn),this.zg.add(a),this},Ce.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ce.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Zn&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Ce.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)},Ce.g=function(a,y,x,b,E){this.cb(oi,a,this,y,x,b,E)},pn.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===oi){var E=a.object;if(ja(E,a.propertyName,a.I(y)),E instanceof Vt){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===ui){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof si)if(typeof re=="number"&&oe instanceof Vt){y?ee.pc(re):ee.Gb(re,oe);var le=ee.part;le!==null&&le.Wb()}else typeof re=="number"&&oe instanceof Ws&&(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 ur&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(ue?re:-1,oe,ue)):ee.oi(re,oe,ue))}else ee instanceof pn?typeof re=="number"&&oe instanceof za&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):Et("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Mi){var fe=a.object,xe=a.oldParam,Ee=a.oldValue;if(fe instanceof si)typeof xe=="number"&&Ee instanceof Vt?y?fe.Gb(xe,Ee):fe.pc(xe):typeof xe=="number"&&Ee instanceof Ws&&(Ee.isRow?p1(fe,xe,y?Ee:void 0):m1(fe,xe,y?Ee:void 0));else if(fe instanceof za){var Ae=a.newParam===!0;typeof xe=="number"&&Ee instanceof ur&&(y?0>fe.Pa.indexOf(Ee)&&fe.oi(xe,Ee,Ae):(Ee.isSelected=!1,Ee.isHighlighted=!1,Ee.Wb(),fe.pc(Ae?xe:-1,Ee,Ae)))}else fe instanceof pn?typeof xe=="number"&&Ee instanceof za&&(y?(Ee.Xe(this),this.Wa.Gb(xe,Ee)):this.Wa.mb(xe)):Et("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Zn&&Et("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},pn.prototype.Ea=function(a){return this.undoManager.Ea(a)},pn.prototype.eb=function(a){return this.undoManager.eb(a)},pn.prototype.Kf=function(){return this.undoManager.Kf()},pn.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}},pn.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},pn.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=Qe.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Qe.free(z),a.Ca=x,Hc(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Nu(a,!1),b.zb&&(Vs(b)||b.ce.add(b.H,"scale",y,a.Ca))}}pn.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 ni&&(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/Kt.vx(z,ue):E=E*ue/Kt.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=Cn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Cn.free(y);return}E=y.width,z=y.height,a=y.x,ee=y.y,Cn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Qe.alloc(),Kt.No(a,ee,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),zn.free(b),x.part.location=y,Qe.free(y)}}pn.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)}},pn.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))},pn.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Sn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof ur||Et("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 ur||Et("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},pn.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()}},Ce=pn.prototype,Ce.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ce.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 ur||Et("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ce.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Qe.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)),Qe.free(z);return}Et("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):Et("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Qe.free(z)},Ce.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)},Ce.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ce.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)},Ce.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 Ee=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,Ee),xe=Math.max(xe,Ee),Ee=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),xe=Math.max(xe,b),Ee=Math.min(Ee,x),y=Math.max(y,x),z=Math.min(z,ee),xe=Math.max(xe,ee),Ee=Math.min(Ee,E),y=Math.max(y,E),new Cn(z,Ee,xe-z,y-Ee)},Ce.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),qn(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 ra}pn.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Zn&&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===Zn){(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||Do(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;jn(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}}}}}pn.prototype.Wd=function(){this.partManager.Wd()},pn.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},pn.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},pn.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},pn.prototype.Vb=function(a){return this.partManager.Vb(a)},pn.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ce=pn.prototype,Ce.Lc=function(a){return this.partManager.Lc(a)},Ce.ii=function(a){return this.partManager.ii(a)},Ce.Kc=function(a){return this.partManager.Kc(a)},Ce.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:un(ki(y)))},Ce.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:un(ki(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),Nu(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ce.Va=function(){if(this.Zi){var a=Cn.alloc();Yf(this,this.computeBounds(a)),Cn.free(a)}},Ce.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},Ce.qz=function(){return this.ai.iterator},Ce.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||Ua(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||Do(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),Va(a,y),E.isValidLayout=!0):a.xh=!0)}}Ce.yz=function(){for(var a=new kn,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 kn;x.add(E,ee),x.add(z,ee),b.add(E,E),b.add(z,E)}var x=new Ii,b=new Ii;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 us(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function Go(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Et("Unknown DiagramEvent name: "+y)}Ce.Bj=function(a,y){return a=Go(this,a),a!==null&&a.add(y),this},Ce.am=function(a,y){a=Go(this,a),a!==null&&a.remove(y)},Ce.R=function(a,y,x){var b=Go(this,a),E=new hn;if(E.diagram=this,a=us(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 la(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ce.Yj=function(a,y){return rs(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},pn.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Gd(this,a):a.assign(this.documentBounds)};function rs(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=Cn.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)}Cn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Cn.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof Di&&md(a,ee,b,y);Cn.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 Xr)for(y=y.memberParts;y.next();)E=y.value,E instanceof Di&&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)}pn.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=jn(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=Cn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Yf(a,y),Cn.free(y),a.Fc=!0,a.bd(),td(a))}},a.vp))}pn.prototype.ug=function(){this.vk!==-1&&(Ye.clearTimeout(this.vk),this.vk=-1)},pn.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=Cn.allocAt(0,0,b.width*E,b.height*E);var z=Qe.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(pt)||(y=new Qe(y.x+z.x/E,y.y+z.y/E)),Cn.free(b),Qe.free(z),y},Ce=pn.prototype,Ce.Cs=function(){return null},Ce.av=function(){return null},Ce.bs=function(a,y){this.pj.add(a,y)},Ce.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Xr&&(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):Ye.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 Ye.requestAnimationFrame(function(){b()}),null}Ce.Wz=function(a){return cs?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ce.Jx=function(a){return a===void 0&&(a={}),Ac(this,this.Xz,a)},Ce.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"&&Et('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"&&Et("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,Ee=y.elementFinished||null,Ae=y.showTemporary;Ae===void 0&&(Ae=!fe),y=y.showGrid,y===void 0&&(y=Ae),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof le=="number"?le=new Vi(le):le instanceof Vi||Et("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=Ee,Es(a,b.context,le,new zn(fe.width,fe.height),a.Ca,a.pa,oe,ue,Ae,y),b.context):(a.Xm=!1,Es(a,Te,le,new zn(fe.width,fe.height),a.Ca,a.pa,oe,ue,Ae,y),a.Xm=!0,fe.context);var ot=a.Pp,Ue=a.documentBounds.copy();if(Ue.Fv(a.yb),Ae)for(var St=a.Wa.s,Ct=St.length,Ft=0;Ft<Ct;Ft++){var jt=St[Ft];if(jt.visible&&jt.isTemporary){jt=jt.Pa.s;for(var yn=jt.length,Fi=0;Fi<yn;Fi++){var Xi=jt[Fi];Xi.isInDocumentBounds&&Xi.isVisible()&&(Xi=Xi.actualBounds,Xi.w()&&Ue.ed(Xi))}}}if(St=new Qe(Ue.x,Ue.y),oe!==null){for(Ct=new Cn(0,0,0,0),Ft=!0,jt=oe.iterator,jt.reset();jt.next();)yn=jt.value,yn instanceof ur&&(Fi=yn.layer,Fi!==null&&!Fi.visible||Fi!==null&&!Ae&&Fi.isTemporary||!yn.isVisible()||(yn=yn.actualBounds,yn.w()&&(Ft?(Ft=!1,Ct.assign(yn)):Ct.ed(yn))));Ue.width=Ct.width,Ue.height=Ct.height,St.x=Ct.x,St.y=Ct.y}return re!==null&&re.w()&&(St=re,z||(z=ot)),Ct=re=0,le!==null&&(re=le.left+le.right,Ct=le.top+le.bottom),Ft=jt=0,E!==null&&(jt=E.width,Ft=E.height,isFinite(jt)&&(jt=Math.max(0,jt-re)),isFinite(Ft)&&(Ft=Math.max(0,Ft-Ct))),E!==null&&z!==null?(z==="NaN"&&(z=ot),E.w()?(E=jt,Ue=Ft):isNaN(Ft)?(E=jt,Ue=Ue.height*z):(E=Ue.width*z,Ue=Ft)):E!==null?E.w()?(z=Math.min(jt/Ue.width,Ft/Ue.height),E=jt,Ue=Ft):isNaN(Ft)?(z=jt/Ue.width,E=jt,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-Ct)/Ue.height),z>ot?(z=ot,E=Ue.width,Ue=Ue.height):(E=ee.width,Ue=ee.height)):(E=Ue.width*z,Ue=Ue.height*z):(z=ot,E=Ue.width,Ue=Ue.height),le!==null?(E+=re,Ue+=Ct):le=new Vi(0),ee!==null&&(ot=ee.width,ee=ee.height,isNaN(ot)&&(ot=2e3),isNaN(ee)&&(ee=2e3),isFinite(ot)&&(E=Math.min(E,ot)),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=Ee,Es(a,b.context,le,new zn(Math.ceil(E),Math.ceil(Ue)),z,St,oe,ue,Ae,y),b.context):(a.Xm=!1,Es(a,Te,le,new zn(Math.ceil(E),Math.ceil(Ue)),z,St,oe,ue,Ae,y),a.Xm=!0,fe.context)}tt.Object.defineProperties(pn.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof me||(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,Ye.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new vd(this,Ye.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(Ye,"resize",this.Ov,!1),this.removeEventListener(Ye,"wheel",this.$j,!0),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)&&Qn(a,"0 <= value <= 1",pn,"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),Nu(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),Nu(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),Nu(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),Nu(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Qn(a,">= 0",pn,"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&&Qn(a,">= 0",pn,"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 Qn(a,">= 0",pn,"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&&Et("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,Ua(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(Ye,"pointermove",this.dk,!0),this.addEventListener(Ye,"pointerdown",this.ui,!0),this.addEventListener(Ye,"pointerup",this.fk,!0),this.addEventListener(Ye,"pointerout",this.ek,!0),this.addEventListener(Ye,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Ye,"wheel",this.$j,!0),this.addEventListener(Ye,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ye,"pointermove",this.dk,!0),this.removeEventListener(Ye,"pointerdown",this.ui,!0),this.removeEventListener(Ye,"pointerup",this.fk,!0),this.removeEventListener(Ye,"pointerout",this.ek,!0),this.removeEventListener(Ye,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(Ye,"wheel",this.$j,!0),this.removeEventListener(Ye,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Qe.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)}Qe.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!==si.Grid&&Et("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||Et("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 Vi(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&&Nu(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,Nu(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&&Nu(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()||Et("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()||Et("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)):Qn(a,"> 0",pn,"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)):Qn(a,"> 0",pn,"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),Nu(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 Vi(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&&Et("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!==js&&a!==Pg&&Et("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 Vi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),tt.Object.defineProperties(pn,{licenseKey:{get:function(){return pp.jc()},set:function(a){pp.add(a.replace(/\s/g,""))}},version:{get:function(){return Pf}}}),pn.prototype.makeImageData=pn.prototype.Jx,pn.prototype.makeImage=pn.prototype.Wz,pn.prototype.cacheGroupExternalLinks=pn.prototype.Fu,pn.prototype.addRenderer=pn.prototype.bs,pn.prototype.makeSVG=pn.prototype.av,pn.prototype.makeSvg=pn.prototype.Cs,pn.prototype.stopAutoScroll=pn.prototype.ug,pn.prototype.doAutoScroll=pn.prototype.gs,pn.prototype.isUnoccupied=pn.prototype.Yj,pn.prototype.raiseDiagramEvent=pn.prototype.R,pn.prototype.removeDiagramListener=pn.prototype.am,pn.prototype.addDiagramListener=pn.prototype.Bj,pn.prototype.findTreeRoots=pn.prototype.yz,pn.prototype.layoutDiagram=pn.prototype.Uz,pn.prototype.findTopLevelGroups=pn.prototype.qz,pn.prototype.findTopLevelNodesAndLinks=pn.prototype.rz,pn.prototype.ensureBounds=pn.prototype.Va,pn.prototype.findLinksByExample=pn.prototype.ls,pn.prototype.findNodesByExample=pn.prototype.ms,pn.prototype.findLinkForData=pn.prototype.Kc,pn.prototype.findNodeForData=pn.prototype.ii,pn.prototype.findPartForData=pn.prototype.Lc,pn.prototype.findLinkForKey=pn.prototype.findLinkForKey,pn.prototype.findNodeForKey=pn.prototype.Vb,pn.prototype.findPartForKey=pn.prototype.findPartForKey,pn.prototype.rebuildParts=pn.prototype.Wd,pn.prototype.transformViewToDoc=pn.prototype.Ps,pn.prototype.transformRectDocToView=pn.prototype.zA,pn.prototype.transformDocToView=pn.prototype.op,pn.prototype.centerRect=pn.prototype.es,pn.prototype.scrollToRect=pn.prototype.tv,pn.prototype.scroll=pn.prototype.scroll,pn.prototype.highlightCollection=pn.prototype.Jz,pn.prototype.highlight=pn.prototype.Iz,pn.prototype.selectCollection=pn.prototype.rA,pn.prototype.select=pn.prototype.select,pn.prototype.updateAllRelationshipsFromData=pn.prototype.rp,pn.prototype.updateAllTargetBindings=pn.prototype.updateAllTargetBindings,pn.prototype.commit=pn.prototype.commit,pn.prototype.rollbackTransaction=pn.prototype.Kf,pn.prototype.commitTransaction=pn.prototype.eb,pn.prototype.startTransaction=pn.prototype.Ea,pn.prototype.raiseChanged=pn.prototype.g,pn.prototype.raiseChangedEvent=pn.prototype.cb,pn.prototype.removeChangedListener=pn.prototype.ik,pn.prototype.addChangedListener=pn.prototype.Pe,pn.prototype.removeModelChangedListener=pn.prototype.mA,pn.prototype.addModelChangedListener=pn.prototype.Yw,pn.prototype.findLayer=pn.prototype.Qj,pn.prototype.removeLayer=pn.prototype.kA,pn.prototype.addLayerAfter=pn.prototype.Cy,pn.prototype.addLayerBefore=pn.prototype.Ww,pn.prototype.addLayer=pn.prototype.Al,pn.prototype.moveParts=pn.prototype.moveParts,pn.prototype.copyParts=pn.prototype.Kj,pn.prototype.removeParts=pn.prototype.Is,pn.prototype.remove=pn.prototype.remove,pn.prototype.add=pn.prototype.add,pn.prototype.clearDelayedGeometries=pn.prototype.bx,pn.prototype.setProperties=pn.prototype.nm,pn.prototype.attach=pn.prototype.Du,pn.prototype.set=pn.prototype.set,pn.prototype.resetInputOptions=pn.prototype.Sx,pn.prototype.setInputOption=pn.prototype.sA,pn.prototype.getInputOption=pn.prototype.Ql,pn.prototype.resetRenderingHints=pn.prototype.Tx,pn.prototype.setRenderingHint=pn.prototype.Xx,pn.prototype.getRenderingHint=pn.prototype.Gf,pn.prototype.maybeUpdate=pn.prototype.bd,pn.prototype.requestUpdate=pn.prototype.$b,pn.prototype.delayInitialization=pn.prototype.Xy,pn.prototype.isUpdateRequested=pn.prototype.Pz,pn.prototype.invalidateDocumentBounds=pn.prototype.Ya,pn.prototype.findObjectsNear=pn.prototype.og,pn.prototype.findPartsNear=pn.prototype.mz,pn.prototype.findObjectsIn=pn.prototype.Cf,pn.prototype.findPartsIn=pn.prototype.ux,pn.prototype.findObjectsAt=pn.prototype.ji,pn.prototype.findPartsAt=pn.prototype.lz,pn.prototype.findObjectAt=pn.prototype.ic,pn.prototype.findPartAt=pn.prototype.Ol,pn.prototype.focusObject=pn.prototype.zz,pn.prototype.alignDocument=pn.prototype.Jy,pn.prototype.zoomToRect=pn.prototype.BA,pn.prototype.zoomToFit=pn.prototype.zoomToFit,pn.prototype.diagramScroll=pn.prototype.kx,pn.prototype.focus=pn.prototype.focus;var nd=new Ii,Lc=null,cs=Ye.document!==void 0,wf=null,Kh="",Yl=new Xt(pn,"None",0),$u=new Xt(pn,"Uniform",1),Vh=new Xt(pn,"UniformToFill",2),Xf=new Xt(pn,"CycleAll",10),cp=new Xt(pn,"CycleNotDirected",11),dp=new Xt(pn,"CycleNotDirectedFast",12),hp=new Xt(pn,"CycleNotUndirected",13),fp=new Xt(pn,"CycleDestinationTree",14),gp=new Xt(pn,"CycleSourceTree",15),mh=new Xt(pn,"DocumentScroll",1),Jf=new Xt(pn,"InfiniteScroll",2),vh=new Xt(pn,"TreeParentCollapsed",21),js=new Xt(pn,"AllParentsCollapsed",22),Pg=new Xt(pn,"AnyParentsCollapsed",23),pp=new kn,Pf="2.3.10",Cf="image",Qf=null,fm=!1;function Wl(){if(cs){var a=Ye.document.createElement("canvas"),y=a.getContext("2d"),x=Ai("7ca11abfd022028846");y[x]=Ai("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",an.Dx+"4ae6247590da4bb21c324ba3a84e385776",Rr.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Kt.za],E=1;5>E;E++)y[Ai("7ca11abfd7330390")](Ai(b[E-1]),10,15*E);for(y[x]=Ai("39f046ebb36e4b"),x=1;5>x;x++)y[Ai("7ca11abfd7330390")](Ai(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Rr.prototype.Cd=Rr.prototype.Eu),Qf=a}}pn.className="Diagram",pn.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ye.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof pn?y.H:null},pn.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},pn.useDOM=function(a){cs=a?Ye.document!==void 0:!1},pn.isUsingDOM=function(){return cs},pn.None=Yl,pn.Uniform=$u,pn.UniformToFill=Vh,pn.CycleAll=Xf,pn.CycleNotDirected=cp,pn.CycleNotDirectedFast=dp,pn.CycleNotUndirected=hp,pn.CycleDestinationTree=fp,pn.CycleSourceTree=gp,pn.DocumentScroll=mh,pn.InfiniteScroll=Jf,pn.TreeParentCollapsed=vh,pn.AllParentsCollapsed=js,pn.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=Ye[Ai("76a715b2f73f148a")][Ai("72ba13b5")]||"";if(a.Rc=!0,cs){var b=pn[Ai("76a115b6ed251eaf4692")];if(b)for(var E=pp.iterator;E.next()&&(b=E.value,b=Ai(b).split(Ai("39e9")),!(6>b.length));){var z=Ai(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ee=Ai(an[Ai("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=Ye[Ai("74a900bae4370f8b51")][Ai("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[Ai("73a612b6fb191d")](Ai("3aad1ab6e022098b4dc4")),z=Ai(b[2]),-1<ee&&(re=re[Ai("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[Ai("76ad18b4f73e")],re=x[Ai("73a612b6fb191d")](Ai("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[Ai("73a612b6fb191d")](z),0>ee&&z!==Ai("7da71ca0ad381e90")&&(ee=y[Ai("73a612b6fb191d")](Ai("76a715b2ef3e149757"))),0>ee&&(ee=y[Ai("73a612b6fb191d")](Ai("76a715b2ef3e149757"))),0>ee&&(ee=y[Ai("73a612b6fb191d")](Ai("2bfa41fdb3784bca12"))),0>ee&&(ee=x[Ai("73a612b6fb191d")](Ai("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Ai("73a612b6fb191d")](Ai("35"))||y[Ai("73a612b6fb191d")](Ai("35"))===-1),!a.Rc||x[Ai("73a612b6fb191d")](Ai("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Ai("73a612b6fb191d")](z)),!a.Rc)||(ee=Ye[Ai("76a715b2f73f148a")][Ai("69ad17a1e03e")],re=ee[Ai("73a612b6fb191d")](Ai("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[Ai("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=Ye.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[Ai("79a417a0f0181a8946")]=b,Ye.document[Ai("78a712aa")]){Ye.document[Ai("78a712aa")][Ai("7bb806b6ed32388c4a875b")](ee),oe=Ye.getComputedStyle(ee).getPropertyValue(Ai("78a704b7e62456904c9b12701b6532a8"));var le=Ye.getComputedStyle(ee).getPropertyValue(Ai("75b817b0ea2202"));if(Ye.document[Ai("78a712aa")][Ai("68ad1bbcf533388c4a875b")](ee),oe){if(ee=Ye[Ai("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(Ai("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[Ai("76ad18b4f73e")],E=x[Ai("73a612b6fb191d")](Ai("35e7"))+2;E<ue;E++)y+=x[E];x=y[Ai("73a612b6fb191d")](Ai("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Ai("73a612b6fb191d")](Ai("35")))}}}return 0<a.Rc&&a!==a.wy}gm.className="DiagramHelper";function Qd(a){this.j=a===void 0?new Qe:a,this.o=new Qe}tt.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=ga,this.gridSnapOrigin=new Qe(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"||Ye.Element&&a instanceof Element)var x=pn.call(this,a)||this;else x=pn.call(this)||this,y=a;return de(x),y&&x.nm(y),x}bt(he,pn);function de(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Is,a.layout=new Cl}he.prototype.reset=function(){pn.prototype.reset.call(this),de(this)},he.className="Palette";function me(a,y){if(typeof a=="string"||Ye.Element&&a instanceof Element)var x=pn.call(this,a)||this;else x=pn.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 ur;var E=new ro;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 Vi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new at,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var ee=z.viewportBounds,re=b.lastInput.documentPoint;z.position=new Qe(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}bt(me,pn),me.prototype.computePixelRatio=function(){return 1},me.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}}}pn.prototype.redraw.call(this)},me.prototype.gc=function(){if(this.Ka===null&&Et("No div specified"),this.ta===null&&Et("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=Cn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Ec(y,E),Cn.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=Cn.alloc(),Ee=re.Pa.s,Ae=Ee.length,Te=0;Te<Ae;Te++){var ot=Ee[Te];(b||ot!==le)&&re.Oj(E,ot,oe,null,fe,xe,!1)}Cn.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 ro&&(b.strokeWidth=a),y.location=new Qe(x.x-a/2,x.y-a/2),y.isSelected=!0}}}me.prototype.computeBounds=function(){var a=this.observed;if(a===null)return no;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},me.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},me.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))},tt.Object.defineProperties(me.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof me&&Et("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)}}}),me.className="Overview";function at(){lr.call(this),this.j=null}bt(at,lr),at.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 Qe(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Qe(a.x-this.j.x,a.y-this.j.y)),!0)},at.prototype.doActivate=function(){this.j=null,lr.prototype.doActivate.call(this)},at.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},at.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 Qe(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Qe(a.x-this.j.x,a.y-this.j.y)}}},at.className="OverviewDraggingTool";function rt(){pr(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=no,this.hb=!0,this.cg=null,this.ob=200}rt.prototype.toString=function(){return"CommandHandler"},rt.prototype.Xe=function(a){this.H=a},rt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=kr?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()},rt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},rt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof ni&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},rt.prototype.canStopCommand=function(){return!0},rt.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=""}},rt.prototype.canSelectAll=function(){return this.diagram.allowSelect},rt.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=""}},rt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},rt.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)},rt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},rt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},rt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},rt.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 kn,x.addAll(z),wf=x,Kh=y.model.dataFormat}}y.R("ClipboardChanged",x)},rt.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},rt.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 Qe(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=""}},rt.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)},rt.prototype.undo=function(){this.diagram.undoManager.undo()},rt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},rt.prototype.redo=function(){this.diagram.undoManager.redo()},rt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},rt.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))},rt.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)},rt.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))},rt.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)},rt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},rt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},rt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Ua(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=no):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Do(y)},rt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},rt.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;Ua(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 Di&&oe.isTreeExpanded&&(!(oe instanceof Xr)||oe.isSubGraphExpanded);)oe=E.pop();0<E.length?(oe instanceof ur&&y.tv(oe.actualBounds),oe instanceof Di&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof Xr&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof ur&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){jn(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 Yo)Dt(a,y.adornedPart,x);else if(y instanceof gi){var b=y.fromNode;b!==null&&Dt(a,b,x),y=y.toNode,y!==null&&Dt(a,y,x)}else y instanceof Di&&(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}rt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof ur)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},rt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Ua(y.animationManager,"Collapse Tree");var x=new kn;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 Di&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},rt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Di&&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 Di&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},rt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Ua(y.animationManager,"Expand Tree");var x=new kn;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 Di&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},rt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Di)||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 Di&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},rt.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 kn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&E.add(ee)}for(var re=new kn,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 Xr)kc(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Ee=y.copyNodeData(x);zt(Ee)&&(y.xf(Ee),b=a.ii(Ee))}if(b!==null){fe!==null&&this.isValidMember(fe,b)&&(b.containingGroup=fe);for(var Ae=re.iterator;Ae.next();){var Te=Ae.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=""}}}},rt.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 Dn(a){var y=ti();for(a=a.iterator;a.next();){var x=a.value;x instanceof gi||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 xi(y),a}rt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof gi)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},rt.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 kn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Xr&&z.canUngroup()&&b.add(z)}var ee=new kn;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 gi)){var Ee=xe.data;Ee!==null?x.mp(Ee,ue):xe.containingGroup=le}}y.remove(oe)}}y.R("SelectionUngrouped",b,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},rt.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Xr))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Xr&&y.canUngroup())return!0;return!1},rt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=Dn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},rt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Ua(y.animationManager,"Collapse SubGraph");var x=new kn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Xr&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},rt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Xr&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Xr&&y.isSubGraphExpanded)return!0;return!1},rt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Ua(y.animationManager,"Expand SubGraph");var x=new kn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Xr&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},rt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Xr&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Xr&&!y.isSubGraphExpanded)return!0;return!1},rt.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)}},rt.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},rt.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 Vt?E=a.ga(So):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Qe(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)}},rt.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)},rt.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 Ii,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 gi&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},tt.Object.defineProperties(rt.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||Et("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}}}),rt.className="CommandHandler",_c=function(){return new rt};function Vt(){pr(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Qe(NaN,NaN).freeze(),this.jd=$o,this.Ab=new Rr,this.wh=new Rr,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Bs,this.uc=new Cn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Cn(NaN,NaN,NaN,NaN).freeze(),this.dc=new Cn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Xo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var ri,ei,tr,or,Cr,Jr,Eo,po,jo,ua;Vt.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=Ci(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Vt.prototype.Vw=function(a){var y=this.Dh;if(Sn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Vt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Vt.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},Vt.prototype.copy=function(){return this.clone()},Ce=Vt.prototype,Ce.qb=function(a){a.classType===gi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Et("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Vt&&(this.stretch=a)},Ce.toString=function(){return Ni(this.constructor)+"#"+vr(this)},Ce.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())}Ce.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}},Ce.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===oi&&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 Ii),ee=z.undoManager.transactionLevel===0,a.startCondition===Qs?ee=!0:a.startCondition===ms&&(ee=!1),ee?(z=new $a,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()):(Ua(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof si&&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 si&&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=NS(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))}}Ce.ks=function(a){return this.bindingId===a?this:null},Ce.g=function(a,y,x){this.cb(oi,a,this,y,x)},Ce.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 Rr);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))}Ce.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Oi(a.x,a.y,0,0,0,b.height)<=y||Oi(a.x,a.y,0,b.height,b.width,b.height)<=y||Oi(a.x,a.y,b.width,b.height,b.width,0)<=y||Oi(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},Ce.se=function(){return!0},Ce.ca=function(a){var y=Qe.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Qe.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=Oo(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),Qe.free(y),a}return E=!1,(this instanceof Yo||this instanceof ro?Oo(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)),Qe.free(y),E},Ce.gh=function(a){var y=this.naturalBounds;return Oo(0,0,y.width,y.height,a.x,a.y)},Ce.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Cn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Qe.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)))),Qe.free(E),Cn.free(y),b},Ce.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Qe.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)))),Qe.free(E),b},Ce.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Qe.allocAt(0,0),E=Qe.allocAt(0,x.height),z=Qe.allocAt(x.width,x.height),ee=Qe.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=Cn.allocAt(0,0,x.width,x.height);var oe=Qe.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)))),Qe.free(oe),Cn.free(x),!re&&(Kt.us(a,b,E)||Kt.us(a,E,z)||Kt.us(a,z,ee)||Kt.us(a,ee,b))&&(re=!0)}return Qe.free(b),Qe.free(E),Qe.free(z),Qe.free(ee),re},Ce.ga=function(a,y){if(y===void 0&&(y=new Qe),a instanceof Yi){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},Ce.mi=function(a){a===void 0&&(a=new Cn);var y=this.naturalBounds,x=this.oe,b=Qe.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Fo(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Fo(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Fo(a,b.x,b.y,0,0),Qe.free(b),a},Ce.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},Ce.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ce.qs=function(a,y){return y===void 0&&(y=new Qe),y.assign(a),this.oe.Cd(y),y},Ce.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ce.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,Kt.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=Kt.Ff(0,0,b.width,b.height,ee,a,y,x,E),E.transform(z),x)},Vt.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 si;switch(wu(this,!0)){case ei:ee=E=0,re&&(y=a=1/0);break;case ri: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 Cr: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()||Et("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Hs(this,!1)}},Vt.prototype.Wl=function(){},Vt.prototype.Dd=function(){return!1},Vt.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=Cn.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()||Et("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ld(this,!1),Cn.free(z)},Ce=Vt.prototype,Ce.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=ei),y){case ei:(x>b||z>E)&&(Hs(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case ri:Hs(a,!0),a.measure(b,E,0,0);break;case or:Hs(a,!0),a.measure(b,z,0,0);break;case Cr:Hs(a,!0),a.measure(x,E,0,0)}}}Ce.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(),Ga(a,y)||(x.oh(),this.Pn(x)))},Ce.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof Di&&X1(a,this))},Ce.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 si&&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&&(ds(this,a,le,!0,!0,oe,re),le instanceof ia&&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&&(ds(this,a,ue,!0,!1,oe,re),ue instanceof ia&&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 Ee=this.naturalBounds;xe=this.wh;var Ae=xe.m11,Te=xe.m21,ot=xe.dx,Ue=xe.m12,St=xe.m22,Ct=xe.dy,Ft,jt=Ft=0;xe=Ft*Ae+jt*Te+ot;var yn=Ft*Ue+jt*St+Ct;Ft=Ee.width+fe,jt=0;var Fi=Ft*Ae+jt*Te+ot;Ft=Ft*Ue+jt*St+Ct,jt=Math.min(xe,Fi);var Xi=Math.min(yn,Ft),ji=Math.max(xe+0,Fi)-jt,fi=Math.max(yn+0,Ft)-Xi;xe=jt,yn=Xi,Ft=Ee.width+fe,jt=Ee.height+fe,Fi=Ft*Ae+jt*Te+ot,Ft=Ft*Ue+jt*St+Ct,jt=Math.min(xe,Fi),Xi=Math.min(yn,Ft),ji=Math.max(xe+ji,Fi)-jt,fi=Math.max(yn+fi,Ft)-Xi,xe=jt,yn=Xi,Ft=0,jt=Ee.height+fe,Fi=Ft*Ae+jt*Te+ot,Ft=Ft*Ue+jt*St+Ct,jt=Math.min(xe,Fi),Xi=Math.min(yn,Ft),ji=Math.max(xe+ji,Fi)-jt,fi=Math.max(yn+fi,Ft)-Xi,xe=jt,yn=Xi,fe=y.viewportBounds,Ee=fe.x,Ae=fe.y,xe=!(xe>fe.width+Ee||Ee>ji+xe||yn>fe.height+Ae||Ae>fi+yn)}if(xe){if(xe=(this.l&256)!==0,a.clipInsteadOfFill&&(xe=!1),this instanceof ba&&(a.font=this.font),xe){if(yn=re.se()?re.naturalBounds:re.actualBounds,ji=Math.max(ee.x,yn.x),fi=Math.max(ee.y,yn.y),fe=Math.min(ee.right,yn.right)-ji,Ee=Math.min(ee.bottom,yn.bottom)-fi,Ae=this.tb,Ae!==null&&(ji=Ae.x,fi=Ae.y,fe=Ae.width,Ee=Ae.height),ji>ee.width+ee.x||ee.x>yn.width+yn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(ji,fi,fe,Ee),a.clip()}if(ue){if(!le.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}oe&&(yn=le.shadowOffset,a.Ev(yn.x*y.scale*this.scale*y.Mb,yn.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 si)),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===si.Auto||y.type===si.Spot)&&y.Pb()!==a)}Ce.Dv=function(){};function qu(a,y,x,b){ds(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof ia&&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;ds(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof ia&&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===si.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 si;var re=a instanceof si?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)}Ce.$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"+Ho++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:ee,height:x}),this instanceof si&&(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=ki(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()}}Ce.hh=function(){},Ce.lv=function(){this.Uc=!0},Ce.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 si?xh(this):!1;if(!(this instanceof si&&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 si)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof ro){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 si))&&(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},Ce.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 ds(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,Ee=0,Ae=0,Te=0,ot=0;if(ot=Te=0,E?(Te=ee.x,ot=ee.y):b||(Te-=le/2,ot-=le/2),fe=x.start.x*re+x.start.offsetX,xe=x.start.y*oe+x.start.offsetY,Ee=x.end.x*re+x.end.offsetX,Ae=x.end.y*oe+x.end.offsetY,fe+=Te,Ee+=Te,xe+=ot,Ae+=ot,x.type===qd)ue=y.createLinearGradient(fe,xe,Ee,Ae);else if(x.type===fc)ot=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Te=0,ot=Math.max(re,oe)/2):Te=x.startRadius,ue=y.createRadialGradient(fe,xe,Te,Ee,Ae,ot);else if(x.type===Fg)try{ue=y.createPattern(x.pattern,"repeat")}catch(St){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&&jn(function(){Ue.redraw()},600)}}b?y.fillStyle=ue:y.strokeStyle=ue}}}Ce.rg=function(a){if(a instanceof si)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},Ce.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ce.If=function(){for(var a=this instanceof si?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)))}Ce.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Qe.alloc();z.yi(y,x,b,E,So),a.rotate(this.Kb,z.x,z.y),Qe.free(z)}},Ce.v=function(a){if(!ec(this)){a===void 0&&(a=!1),Hs(this,!0),Ld(this,!0);var y=this.panel;y===null||a||y.v()}},Ce.Uj=function(){ec(this)||(Hs(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 Di&&a.Bd(),y.$b())),Ld(a,!0)}}Ce.Uk=function(){!(this.l&2048)&&(Mc(this,!0),dc(this,!0))},Ce.Wu=function(){dc(this,!0)},Ce.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===si.Table?id(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===si.Auto&&b.Pb()===a?gl(a,ri,y):x===Jr?b!==null?b.type===si.Spot&&b.Pb()===a?gl(a,ri,y):(x=b.defaultStretch,x===Jr?gl(a,ei,y):gl(a,x,y)):gl(a,ei,y):gl(a,x,y)}function id(a,y,x,b){var E=a.stretch;if(E!==Jr)return gl(a,E,b);var z=E=null;switch(y.stretch){case Cr:z=!0;break;case ri:z=!0}switch(x.stretch){case or:E=!0;break;case ri:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===or||y===ri),z===null&&(z=y===Cr||y===ri),E===!0&&z===!0?gl(a,ri,b):E===!0?gl(a,or,b):z===!0?gl(a,Cr,b):gl(a,ei,b)}function gl(a,y,x){if(x)return y;if(y===ei||(x=a.desiredSize,x.w()))return ei;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===or)return ei;if(y===ri)return Cr}else{if(y===Cr)return ei;if(y===ri)return or}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Cr)return ei;if(y===ri)return or}else{if(y===or)return ei;if(y===ri)return Cr}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 Hs(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}Ce.Gj=function(){this.svg=null},Ce.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ce.Av=function(){},Ce.zv=function(a){return this.pa=a,nu(this),!0},Ce.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ce.kq=function(){return 0};function Ef(a){var y=a.part;if(y instanceof Di&&(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 si?a instanceof Di?a.Bd():a.qm(a,function(x){Ef(x)}):Ef(a))}Ce.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)&&Et("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new kn),this.localBindings.add(E),this},Ce.set=function(a){return Object.assign(this,a),this},Ce.Du=function(a){return av(this,a),this},Ce.apply=function(a){return a(this),this},Ce.nm=function(a){return Du(this,a),this},Ce.pz=function(){return this.ih()},Ce.ih=function(){for(var a=this instanceof si?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ce.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Ii),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=Ci(arguments),b=z(x),zt(b)||Et('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ye.go[a]}if(b===null&&(E!=null&&E.constructor||Et("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 pn&&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?Et("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 ro)a.figure=y;else if(a instanceof Cu)a.source=y;else if(a instanceof si)y=Zc.I(y),y!==null&&(a.type=y);else if(a instanceof ia){var x=Li(ia,y);x!==null?a.type=x:Et("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof di?(y=Li(di,y),y!==null&&(a.type=y)):a instanceof Io&&(y=Li(Io,y),y!==null&&(a.type=y));else if(y instanceof Vt)a instanceof si||Et("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ws){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 Ws?Bm(b,y):Et("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Xt)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Us)a.type=y;else if(y instanceof Fs)a instanceof Vt||a instanceof Ws?a.bind(y):Et("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof yu)a instanceof Vt?a.Jv(y):Et("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Os)a instanceof di&&a.type===di.o?a.figures.add(y):Et("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Io)a instanceof Os?a.segments.add(y):Et("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Za)a instanceof pn||a instanceof Xr?a.layout=y:Et("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 ia){x=new Hi;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 Ws){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Et("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)&&Et("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Hi;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);Du(a,E)}else Du(a,y);else Et('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}tt.Object.defineProperties(Vt.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:pt},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:Jr},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)&&Qn(a,"0 <= value <= 1",Vt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Nf(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(Nf(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 ia&&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 ia&&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 ur)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 Qe(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&&Et("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 ro&&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 ro&&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 ro&&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:_r},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:to},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 Vi(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:ei},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()&&Et("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&&Qn(a,">= 0",Vt,"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&&Qn(a,">= 1",Vt,"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&&Qn(a,">= 0",Vt,"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&&Qn(a,">= 1",Vt,"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 Di||Et("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&&Qn(a,">= 0",Vt,"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&&Qn(a,">= 0",Vt,"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&&Qn(a,">= 0",Vt,"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&&Qn(a,">= 0",Vt,"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))}}}),Vt.prototype.trigger=Vt.prototype.Jv,Vt.prototype.findBindingPanel=Vt.prototype.ih,Vt.prototype.findTemplateBinder=Vt.prototype.pz,Vt.prototype.setProperties=Vt.prototype.nm,Vt.prototype.apply=Vt.prototype.apply,Vt.prototype.attach=Vt.prototype.Du,Vt.prototype.set=Vt.prototype.set,Vt.prototype.isEnabledObject=Vt.prototype.If,Vt.prototype.isVisibleObject=Vt.prototype.Ed,Vt.prototype.isContainedBy=Vt.prototype.rg,Vt.prototype.getNearestIntersectionPoint=Vt.prototype.rs,Vt.prototype.getLocalPoint=Vt.prototype.qs,Vt.prototype.getDocumentScale=Vt.prototype.Df,Vt.prototype.getDocumentAngle=Vt.prototype.li,Vt.prototype.getDocumentBounds=Vt.prototype.mi,Vt.prototype.getDocumentPoint=Vt.prototype.ga,Vt.prototype.intersectsRect=Vt.prototype.Yc,Vt.prototype.containedInRect=Vt.prototype.fh,Vt.prototype.containsRect=Vt.prototype.Re,Vt.prototype.containsPoint=Vt.prototype.ca,Vt.prototype.raiseChanged=Vt.prototype.g,Vt.prototype.raiseChangedEvent=Vt.prototype.cb,Vt.prototype.addCopyProperty=Vt.prototype.Vw;var Cg=null;Vt.className="GraphObject",Cg=new Ii,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(si,si.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof si){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(ro,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new Yi(0,0,2.76142374915397,2.761423749153969),spot2:new Yi(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 si&&(x=b.fb("ButtonBorder"),x instanceof ro)){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 si&&(x=b.fb("ButtonBorder"),x instanceof ro&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof si&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof ro){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 si&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof ro){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 si&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof ro){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 si&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof ro))){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(ro,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:qr},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 Yo&&(x=x.adornedPart),x instanceof Di){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(ro,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:qr},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 Yo&&(x=x.adornedPart),x instanceof Xr){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),yh("ToolTip",function(){return hc(Yo,si.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Qe(0,3),shadowBlur:5},hc(ro,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new Yi(0,0,4,6),spot2:new Yi(1,1,-4,-4)}))}),yh("ContextMenu",function(){return hc(Yo,si.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Qe(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 ro&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new Yi(0,0,2,3),y.spot2=new Yi(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(ro,{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 ro&&(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(ro,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:ri,geometryStretch:tr,visible:!1},y!==""?new Fs("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof si){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 Vi(0,1,0,0)});var y=hc(si,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Vi(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}),Vt.None=ei=new Xt(Vt,"None",0),Vt.Default=Jr=new Xt(Vt,"Default",0),Vt.Vertical=Cr=new Xt(Vt,"Vertical",4),Vt.Horizontal=or=new Xt(Vt,"Horizontal",5),Vt.Fill=ri=new Xt(Vt,"Fill",3),Vt.Uniform=tr=new Xt(Vt,"Uniform",1),Vt.UniformToFill=Eo=new Xt(Vt,"UniformToFill",2),Vt.FlipVertical=po=new Xt(Vt,"FlipVertical",1),Vt.FlipHorizontal=jo=new Xt(Vt,"FlipHorizontal",2),Vt.FlipBoth=ua=new Xt(Vt,"FlipBoth",3),Vt.make=hc,Vt.getBuilders=function(){var a=new Ii,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},Vt.defineBuilder=yh,Vt.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 Vt))return y&&b.set(y),b;Et('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Vt.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=_r,this.o=to,this.hg=Jr,this.ob=this.Bi=1,this.Pf=ei,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=pt,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=Xo,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?Ye.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new 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},tt.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=Ho++,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+")")}Ce=Ku.prototype,Ce.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,Ee=y+fe,Ae=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(ee-xe)||1e-6<Math.abs(re-Ee))&&this.path.push(["L",xe,+Ee]),0>b&&(b=b%oe+oe),b>le?(this.path.push(["A",x,x,0,1,Ae,a-ue,y-fe]),this.path.push(["A",x,x,0,1,Ae,xe,Ee])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Ae,a+x*Math.cos(E),y+x*Math.sin(E)])},Ce.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ce.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ce.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Ce.clearRect=function(){},Ce.clip=function(){this.Yl.clipPath=!0},Ce.closePath=function(){this.path.push(["z"])},Ce.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},Ce.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"+Ho++,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+")"},Ce.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)}Ce.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},Kt.$(b,re)&&Kt.$(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)},Ce.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),sv(this,this.Yl)},Ce.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ce.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)},Ce.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))},Ce.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])},Ce.lineTo=function(a,y){this.path.push(["L",a,y])},Ce.moveTo=function(a,y){this.path.push(["M",a,y])},Ce.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Ce.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"])},Ce.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},Ce.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())},Ce.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]+")"}Ce.scale=function(a,y){this.rb.scale(a,y)},Ce.translate=function(a,y){this.rb.translate(a,y)},Ce.transform=function(){},Ce.yc=function(){},Ce.stroke=function(){i1(this,this.Yl)},Ce.jk=function(){this.clipInsteadOfFill||this.stroke()},Ce.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ce.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"+Ho++,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+")"}Ce.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Ci(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}Ce.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}Ce.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ce.fs=function(){this.Ct=!1},Ce.Vc=function(){},Ce.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",pn.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new vd(this,Ye.document));var y=new vd(this,Ye.document,!0);a===void 0&&(a=new Hi);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)},pn.prototype.makeSvg=pn.prototype.Cs,pn.prototype.av=function(a){return this.Cs(a)},pn.prototype.makeSVG=pn.prototype.av;function Fc(a,y,x,b){this.ownerDocument=y=y===void 0?Ye.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new 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},tt.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&&Et("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 Rr,this.isTemporary=!!x}Ce=Lf.prototype,Ce.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ce.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Ce.beginPath=function(){this.Z.beginPath()},Ce.Se=function(){},Ce.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Ce.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Ce.clip=function(){this.Z.clip()},Ce.closePath=function(){this.Z.closePath()},Ce.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Ce.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ce.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Ce.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)},Ce.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ce.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ce.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Ce.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ce.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Ce.lineTo=function(a,y){this.Z.lineTo(a,y)},Ce.measureText=function(a){return this.Z.measureText(a)},Ce.moveTo=function(a,y){this.Z.moveTo(a,y)},Ce.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Ce.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Ce.restore=function(){this.Z.restore()},Ce.save=function(){this.yc(),this.Z.save()},Lf.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ce=Lf.prototype,Ce.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Ce.scale=function(a,y){this.El.scale(a,y)},Ce.translate=function(a,y){this.El.translate(a,y)},Ce.stroke=function(){this.Z.stroke()},Ce.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}},Ce.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ce.ng=function(a,y){if(a instanceof ia&&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)},Ce.jk=function(){this.Hm||this.stroke()},Ce.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ce.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ce.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Ex),a.lineDashOffset=0)},Ce.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ce.Hs=function(){},tt.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 ia(a,y){Mg||(gv(),Mg=!0),pr(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=Is,this.Lk=kl):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)}ia.prototype.copy=function(){var a=new ia;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},Ce=ia.prototype,Ce.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ce.ka=function(){return Object.isFrozen(this)&&Et("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ce.qb=function(a){a.classType===ia&&(this.type=a)},Ce.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+")"},Ce.addColorStop=function(a,y){return this._isFrozen&&xn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Qn(a,"0 <= loc <= 1",ia,"addColorStop:loc"),this.we===null&&(this.we=new Ii),this.we.add(a,y),this.na===Sh&&(this.type=qd),this.xe=null,this},Ce.Vz=function(a,y){if(this._isFrozen&&xn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?kg: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?kg:x,$d(a),Ag(y,x)}Ce.Wy=function(a,y){if(this._isFrozen&&xn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?kg: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?kg: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)+")"}Ce.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 ia?a.Gx():($d(a),128>(299*Aa.j+587*Aa.u+114*Aa.o)/1e3):!1}function Ag(a,y){switch(y){case kg: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:Et("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 ia||Et("Value for "+y+" must be a color string or a Brush, not "+a))}function gv(){mv=cs?new Fc(null,void 0,{willReadFrequently:!0}).context:null}tt.Object.defineProperties(ia.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&xn(this,a),this.na=a,this.start.Mc()&&(a===qd?this.start=Is:a===fc&&(this.start=So)),this.end.Mc()&&(a===qd?this.end=kl:a===fc&&(this.end=So)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&xn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&xn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&xn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&xn(this,a),0>a&&Qn(a,">= zero",ia,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&xn(this,a),0>a&&Qn(a,">= zero",ia,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&xn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&xn(this,a),this.cr=a,this.xe=null}}}),ia.prototype.isDark=ia.prototype.Gx,ia.prototype.darkenBy=ia.prototype.Wy,ia.prototype.lightenBy=ia.prototype.Vz,ia.prototype.addColorStop=ia.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;ia.className="Brush";var Sh;ia.Solid=Sh=new Xt(ia,"Solid",0);var qd;ia.Linear=qd=new Xt(ia,"Linear",1);var fc;ia.Radial=fc=new Xt(ia,"Radial",2);var Fg;ia.Pattern=Fg=new Xt(ia,"Pattern",4);var kg;ia.Lab=kg=new Xt(ia,"Lab",5);var s1;ia.HSL=s1=new Xt(ia,"HSL",6),ia.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},ia.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)},ia.lighten=function(a){return r1(a)},ia.lightenBy=r1,ia.darken=function(a){return o1(a)},ia.darkenBy=o1,ia.mix=uv,ia.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(){},tt.Object.defineProperties(Us.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return si}}}),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"}bt(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 Ee=le.position.y;isFinite(xe)||(xe=0),isFinite(Ee)||(Ee=0),le instanceof ro&&le.isGeometryPositioned&&(le=le.strokeWidth/2,xe-=le,Ee-=le),Fo(E,xe,Ee,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 ro&&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"}bt(xm,Us),xm.prototype.measure=function(a,y,x,b,E,z,ee){var re=b.length;y=ti(),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!==ei&&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));xi(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,Ee=xe.top+xe.bottom,Ae=z+E.bottom,Te=fe.height,ot=wu(ue,!1);(isNaN(ue.desiredSize.height)&&ot===ri||ot===Cr)&&(Te=Math.max(x.height-Ee-Ae,0)),Ee=Te+Ee+Ae,Ae=ue.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=So),ee&&(re-=fe.width+xe.left+xe.right),ue.arrange(re+Ae.offsetX+xe.left,le+Ae.offsetY+xe.top+(x.height*Ae.y-Ee*Ae.y),fe.width,Te),ee||(re+=fe.width+xe.left+xe.right)}}};function wm(){this.xa="Base"}bt(wm,Us),wm.prototype.measure=function(a,y,x,b,E,z){var ee=b.length;x=ti();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!==ei&&ue!==Cr)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,ca(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);xi(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,Ee=xe.left+xe.right,Ae=z+E.right,Te=fe.width,ot=wu(ue,!1);(isNaN(ue.desiredSize.width)&&ot===ri||ot===or)&&(Te=Math.max(x.width-Ee-Ae,0)),Ee=Te+Ee+Ae,Ae=ue.alignment,Ae.Xb()&&(Ae=a.defaultAlignment),Ae.sb()||(Ae=So),ee&&(re-=fe.height+xe.bottom+xe.top),ue.arrange(le+Ae.offsetX+xe.left+(x.width*Ae.x-Ee*Ae.x),re+Ae.offsetY+xe.top,Te,fe.height),ee||(re+=fe.height+xe.bottom+xe.top)}}};function Pm(){this.xa="Base"}bt(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 Ee=Math.max(z+ue,0),Ae=Math.max(ee+fe,0),Te=a.isClipping,ot=Cn.allocAt(-le.left,-le.top,Ee,Ae),Ue=Cn.allocAt(0,0,z,ee);vv(oe,Ue,!0),z=Ue.width,ee=Ue.height;for(var St=!0,Ct=eh(a),Ft=0;Ft<re;Ft++){var jt=b[Ft];xe=y;var yn=x;if(jt!==oe&&(jt.visible||jt===Ct)){le=jt.margin;var Fi=le.left,Xi=le.top;switch(Ee=le.right+le.left,Ae=le.top+le.bottom,le=wu(jt,!1),le){case ri:xe=z,yn=ee,Xi=Fi=Ae=Ee=0;break;case or:xe=z,Fi=Ee=0;break;case Cr:yn=ee,Xi=Ae=0}jt.measure(xe,yn,0,0),xe=jt.measuredBounds,Ee=Math.max(xe.width+Ee,0),Ae=Math.max(xe.height+Ae,0),le=jt.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=So);var ji=jt.alignmentFocus;if(ji.Xb()&&(ji=So),yn=null,jt instanceof si&&jt.$e!==""&&(yn=jt.fb(jt.$e),yn===jt&&(yn=null)),Fi=Ue.x-Fi,Xi=Ue.y-Xi,yn!==null){for(jt.arrange(0,0,xe.width,xe.height),xe=yn.actualBounds,xe=Qe.allocAt(xe.x+(ji.x*xe.width-ji.offsetX),xe.y+(ji.y*xe.height-ji.offsetY)),yn=yn.panel;yn!==jt;)yn.transform.Ga(xe),yn=yn.panel;Fi+=le.x*z+le.offsetX-xe.x,Xi+=le.y*ee+le.offsetY-xe.y,Qe.free(xe)}else Fi+=le.x*z+le.offsetX-(ji.x*xe.width+ji.offsetX),Xi+=le.y*ee+le.offsetY-(ji.y*xe.height+ji.offsetY);St?(St=!1,E.h(Fi,Xi,Ee,Ae)):Fo(E,Fi,Xi,Ee,Ae)}}switch(St?E.assign(ot):Te?E.Uu(Ue.x,Ue.y,Ue.width,Ue.height):Fo(E,ot.x,ot.y,ot.width,ot.height),Cn.free(ot),Cn.free(Ue),le=oe.stretch,le===Jr&&(le=wu(oe,!1)),le){case ei:return;case ri:if(!isFinite(y)&&!isFinite(x))return;break;case or:if(!isFinite(y))return;break;case Cr:if(!isFinite(x))return}for(xe=oe.measuredBounds,z=xe.width,ee=xe.height,Ee=Math.max(z+ue,0),Ae=Math.max(ee+fe,0),le=oe.margin,Ue=Cn.allocAt(-le.left,-le.top,Ee,Ae),vv(oe,Ue,!0),z=Ue.width,ee=Ue.height,y=0;y<re;y++)x=b[y],x===oe||!x.visible&&x!==Ct||(le=x.margin,Ee=le.right+le.left,Ae=le.top+le.bottom,xe=x.measuredBounds,Ee=Math.max(xe.width+Ee,0),Ae=Math.max(xe.height+Ae,0),ue=x.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=So),x=x.alignmentFocus,x.Xb()&&(x=So),St?(St=!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,Ee,Ae)):Fo(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,Ee,Ae));St?E.assign(ot):Te?E.Uu(Ue.x,Ue.y,Ue.width,Ue.height):Fo(E,ot.x,ot.y,ot.width,ot.height),Cn.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=Cn.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,Ee=le.height;ue=fe.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=So);var Ae=fe.alignmentFocus;if(Ae.Xb()&&(Ae=So),le=null,fe instanceof si&&fe.$e!==""&&(le=fe.fb(fe.$e),le===fe&&(le=null)),le!==null){var Te=le.actualBounds;for(Ae=Qe.allocAt(Te.x+(Ae.x*Te.width-Ae.offsetX),Te.y+(Ae.y*Te.height-Ae.offsetY)),le=le.panel;le!==fe;)le.transform.Ga(Ae),le=le.panel;le=ue.x*ee.width+ue.offsetX-Ae.x,ue=ue.y*ee.height+ue.offsetY-Ae.y,Qe.free(Ae)}else le=ue.x*ee.width+ue.offsetX-(Ae.x*xe+Ae.offsetX),ue=ue.y*ee.height+ue.offsetY-(Ae.y*Ee+Ae.offsetY);le+=ee.x-x.x,ue+=ee.y-x.y,fe.visible&&fe.arrange(z+le,oe+ue,xe,Ee)}}Cn.free(ee)};function vv(a,y,x){var b=null;if(a instanceof si&&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"}bt(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,Ee=le.top+le.bottom;oe.measure(y,x,z,ee),le=oe.measuredBounds;var Ae=0,Te=null;oe instanceof ro&&(Te=oe,Ae=Te.strokeWidth*Te.scale);var ot=Math.max(le.width+xe,0);le=Math.max(le.height+Ee,0);var Ue=wv(oe),St=Ue.x*ot+Ue.offsetX;Ue=Ue.y*le+Ue.offsetY;var Ct=Pv(oe),Ft=Ct.x*ot+Ct.offsetX;for(Ct=Ct.y*le+Ct.offsetY,isFinite(y)&&(ue=Math.max(Math.abs(St-Ft)-Ae,0)),isFinite(x)&&(fe=Math.max(Math.abs(Ue-Ct)-Ae,0)),Ae=zn.alloc(),Ae.h(0,0),a=eh(a),Ct=0;Ct<re;Ct++)Ue=b[Ct],Ue===oe||!Ue.visible&&Ue!==a||(le=Ue.margin,ot=le.right+le.left,St=le.top+le.bottom,Ue.measure(ue,fe,0,0),le=Ue.measuredBounds,ot=Math.max(le.width+ot,0),le=Math.max(le.height+St,0),Ae.h(Math.max(ot,Ae.width),Math.max(le,Ae.height)));if(re===1)E.width=ot,E.height=le,zn.free(Ae);else{switch(Ue=wv(oe),Ct=Pv(oe),re=b=0,Ct.x!==Ue.x&&Ct.y!==Ue.y&&(b=Ae.width/Math.abs(Ct.x-Ue.x),re=Ae.height/Math.abs(Ct.y-Ue.y)),zn.free(Ae),Ae=0,Te!==null&&(Ae=Te.strokeWidth*Te.scale,Mv(Te)===tr&&(b=re=Math.max(b,re))),b+=Math.abs(Ue.offsetX)+Math.abs(Ct.offsetX)+Ae,re+=Math.abs(Ue.offsetY)+Math.abs(Ct.offsetY)+Ae,Te=oe.stretch,Te===Jr&&(Te=wu(oe,!1)),Te){case ei:ee=z=0;break;case ri:isFinite(y)&&(b=y),isFinite(x)&&(re=x);break;case or:isFinite(y)&&(b=y),ee=0;break;case Cr: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+Ee}},Cm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=Cn.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,Ee=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,Fo(z,Ee,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&&(Oo(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 Cn(z.x,z.y,z.width,z.height))));Cn.free(z)};function bm(){this.xa="Base",this.name="Table"}bt(bm,Us),bm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,ee=ti(),re=ti(),oe=0;oe<z;oe++){var le=b[oe],ue=le instanceof si?le:null;if(ue!==null&&xh(ue)&&le.visible){re.push(ue);for(var fe=ue.O.s,xe=fe.length,Ee=0;Ee<xe;Ee++){var Ae=fe[Ee];ue.type===si.TableRow?Ae.row=le.row:ue.type===si.TableColumn&&(Ae.column=le.column),ee.push(Ae)}}else ee.push(le)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Te=[],ot=0;ot<z;ot++){var Ue=ee[ot];Ue.visible&&(Hs(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))}xi(ee);var St=ti(),Ct=ti(),Ft=ti(),jt={count:0},yn={count:0},Fi=y,Xi=x,ji=a.rowDefs,fi=a.colDefs,_n=null;z=ji.length;for(var Ur=0;Ur<z;Ur++)_n=ji[Ur],_n!==void 0&&(_n.actual=0);z=fi.length;for(var Ir=0;Ir<z;Ir++)_n=fi[Ir],_n!==void 0&&(_n.actual=0);for(var Jo=Te.length,wa=0,qs=0;qs<Jo;qs++)Te[qs]&&(wa=Math.max(wa,Te[qs].length));var cl=Math.min(a.topIndex,Jo-1),Xl=Math.min(a.leftIndex,wa-1),el=0;Jo=Te.length;for(var kh=eh(a),ks=0;ks<Jo;ks++)if(Te[ks]){wa=Te[ks].length;var ld=a.Fb(ks);ld.actual=0;for(var Jl=ld.oc=0;Jl<wa;Jl++)if(Te[ks][Jl]){var Nh=a.Eb(Jl);St[Jl]===void 0&&(Nh.actual=0,Nh.oc=0,St[Jl]=!0);for(var rc=Te[ks][Jl],Bc=rc.length,Yu=0;Yu<Bc;Yu++){var Iu=rc[Yu];if(Iu.visible||Iu===kh){var af=1<Iu.rowSpan||1<Iu.columnSpan;af&&(ks<cl||Jl<Xl||Ct.push(Iu));var ud=Iu.margin,qg=ud.right+ud.left,Uu=ud.top+ud.bottom,Ql=id(Iu,ld,Nh,!1),om=Iu.desiredSize,fg=!isNaN(om.height),xd=!isNaN(om.width)&&fg;if(af||Ql===ei||xd||ks<cl||Jl<Xl||(jt[Jl]!==void 0||Ql!==ri&&Ql!==or||(jt[Jl]=-1,jt.count++),yn[ks]!==void 0||Ql!==ri&&Ql!==Cr||(yn[ks]=-1,yn.count++),Ft.push(Iu)),Iu.measure(1/0,1/0,0,0),!(ks<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===ei||Ql===or)){_n=a.Fb(ks);var sf=_n.Wc();el=Math.max(Xu-_n.actual,0),el+sf>Xi&&(el=Math.max(Xi-sf,0));var U0=_n.oa===0;_n.oc=_n.oc+el,_n.actual=_n.oa+el,Xi=Math.max(Xi-(el+(U0?sf:0)),0)}if(Iu.columnSpan===1&&(Ql===ei||Ql===Cr)){_n=a.Eb(Jl);var am=_n.Wc();el=Math.max(If-_n.actual,0),el+am>Fi&&(el=Math.max(Fi-am,0));var Vy=_n.oa===0;_n.oc=_n.oc+el,_n.actual=_n.oa+el,Fi=Math.max(Fi-(el+(Vy?am:0)),0)}af&&Iu.Uj()}}}}}xi(St);var zd=0,ih=0;z=a.columnCount;for(var gg=0;gg<z;gg++){var lf=fi[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=ji[ep];uf!==void 0&&(ih+=isNaN(uf.Hc)?uf.oc:uf.Hc,uf.oc!==0&&(ih+=uf.Wc()))}Fi=Math.max(y-zd,0);var jd=Xi=Math.max(x-ih,0),Dh=Fi;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;jt[wd.column]=rh.oc===0&&jt[wd.column]!==void 0?Math.max(tp.width+Rf,jt[wd.column]):null,yn[wd.row]=X0.oc===0&&yn[wd.row]!==void 0?Math.max(tp.height+Pd,yn[wd.row]):null}var pg=0,np=0,Xc;for(Xc in yn)Xc!=="count"&&(pg+=yn[Xc]);for(Xc in jt)Xc!=="count"&&(np+=jt[Xc]);for(var bl=zn.alloc(),sm=0;sm<z;sm++){var du=Ft[sm];if(du.visible||du===kh){var Ns=a.Fb(du.row),hu=a.Eb(du.column),oh=0;isFinite(hu.width)?oh=hu.width:(isFinite(Fi)&&jt[du.column]!==null?np===0?oh=hu.actual+Fi:oh=jt[du.column]/np*Dh:jt[du.column]!==null?oh=Fi:oh=hu.actual||Fi,oh=Math.max(0,oh-hu.Wc()));var Bh=0;switch(isFinite(Ns.height)?Bh=Ns.height:(isFinite(Xi)&&yn[du.row]!==null?pg===0?Bh=Ns.actual+Xi:Bh=yn[du.row]/pg*jd:yn[du.row]!==null?Bh=Xi:Bh=Ns.actual||Xi,Bh=Math.max(0,Bh-Ns.Wc())),bl.h(Math.max(hu.minimum,Math.min(oh,hu.maximum)),Math.max(Ns.minimum,Math.min(Bh,Ns.maximum))),Ql=id(du,Ns,hu,!1),Ql){case or:bl.height=Math.max(bl.height,Ns.actual+Xi);break;case Cr:bl.width=Math.max(bl.width,hu.actual+Fi)}var zf=du.margin,Gy=zf.right+zf.left,J0=zf.top+zf.bottom;du.Uj(),du.measure(bl.width,bl.height,hu.minimum,Ns.minimum);var ip=du.measuredBounds,jf=Math.max(ip.width+Gy,0),mg=Math.max(ip.height+J0,0);isFinite(Fi)&&(jf=Math.min(jf,bl.width)),isFinite(Xi)&&(mg=Math.min(mg,bl.height));var ju=0;ju=Ns.actual,Ns.actual=Math.max(Ns.actual,mg),Ns.oc=Math.max(Ns.oc,mg),el=Ns.actual-ju,Xi=Math.max(Xi-el,0),yn[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,Fi=Math.max(Fi-el,0),jt[du.column]===null&&(Dh=Math.max(Dh-el,0))}}xi(Ft);var ah=zn.alloc(),dd=ti(),yc=ti();if(z=Ct.length,z!==0){for(var cf=0;cf<Jo;cf++)if(Te[cf]){wa=Te[cf].length;var rp=a.Fb(cf);dd[cf]=rp.actual;for(var df=0;df<wa;df++)if(Te[cf][df]){var Q0=a.Eb(df);yc[df]=Q0.actual}}}for(var op=0;op<z;op++){var vs=Ct[op];if(vs.visible||vs===kh){var Jc=a.Fb(vs.row),Tc=a.Eb(vs.column);switch(bl.h(Math.max(Tc.minimum,Math.min(y,Tc.maximum)),Math.max(Jc.minimum,Math.min(x,Jc.maximum))),Ql=id(vs,Jc,Tc,!1),Ql){case ri: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 Cr: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<vs.rowSpan&&!(vs.row+Th>=a.rowCount);Th++)_n=a.Fb(vs.row+Th),el=0,el=Ql===ri||Ql===Cr?Math.max(_n.minimum,dd[vs.row+Th]===0?_n.maximum:Math.min(dd[vs.row+Th],_n.maximum)):Math.max(_n.minimum,isNaN(_n.Hc)?_n.maximum:Math.min(_n.Hc,_n.maximum)),ah.height+=el,Ju+=_n.minimum;for(var Oc=1;Oc<vs.columnSpan&&!(vs.column+Oc>=a.columnCount);Oc++)_n=a.Eb(vs.column+Oc),el=0,el=Ql===ri||Ql===or?Math.max(_n.minimum,yc[vs.column+Oc]===0?_n.maximum:Math.min(yc[vs.column+Oc],_n.maximum)):Math.max(_n.minimum,isNaN(_n.Hc)?_n.maximum:Math.min(_n.Hc,_n.maximum)),ah.width+=el,_0+=_n.minimum;bl.width+=ah.width,bl.height+=ah.height;var ap=vs.margin,hf=ap.right+ap.left,lm=ap.top+ap.bottom;vs.measure(bl.width,bl.height,_0,Ju);for(var sp=vs.measuredBounds,Cd=Math.max(sp.width+hf,0),Hf=Math.max(sp.height+lm,0),ff=0,lp=0;lp<vs.rowSpan&&!(vs.row+lp>=a.rowCount);lp++)_n=a.Fb(vs.row+lp),ff+=_n.total||0;if(ff<Hf){var Oh=Hf-ff,Hd=Hf-ff;if(vs.spanAllocation!==null)for(var Ih=vs.spanAllocation,sh=0;sh<vs.rowSpan&&!(0>=Oh)&&!(vs.row+sh>=a.rowCount);sh++){_n=a.Fb(vs.row+sh);var Rh=_n.oa||0,Wf=Ih(vs,_n,Hd);_n.actual=Math.min(_n.maximum,Rh+Wf),_n.oa!==Rh&&(Oh-=_n.oa-Rh)}for(;0<Oh;){var hd=_n.oa||0;if(isNaN(_n.height)&&_n.maximum>hd&&(_n.actual=Math.min(_n.maximum,hd+Oh),_n.oa!==hd&&(Oh-=_n.oa-hd)),_n.index===0)break;_n=a.Fb(_n.index-1)}}for(var vg=0,zh=0;zh<vs.columnSpan&&!(vs.column+zh>=a.columnCount);zh++)_n=a.Eb(vs.column+zh),vg+=_n.total||0;if(vg<Cd){var yg=Cd-vg,Yy=Cd-vg;if(vs.spanAllocation!==null)for(var lh=vs.spanAllocation,Zf=0;Zf<vs.columnSpan&&!(0>=yg)&&!(vs.column+Zf>=a.columnCount);Zf++){_n=a.Eb(vs.column+Zf);var um=_n.oa||0,Uy=lh(vs,_n,Yy);_n.actual=Math.min(_n.maximum,um+Uy),_n.oa!==um&&(yg-=_n.oa-um)}for(;0<yg;){var $0=_n.oa||0;if(isNaN(_n.width)&&_n.maximum>$0&&(_n.actual=Math.min(_n.maximum,$0+yg),_n.oa!==$0&&(yg-=_n.oa-$0)),_n.index===0)break;_n=a.Eb(_n.index-1)}}}}xi(Ct),zn.free(ah),zn.free(bl),dd!==void 0&&xi(dd),yc!==void 0&&xi(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++)fi[ev]!==void 0&&(_n=a.Eb(ev),isFinite(_n.width)?(cm+=_n.width,cm+=_n.Wc()):Tm(_n)===Pp?(cm+=_n.oa,cm+=_n.Wc()):_n.oa!==0&&(zd+=_n.oa,zd+=_n.Wc()));isFinite(q0.width)?Sg=Math.min(q0.width,Sx.width):Sg=Ql!==ei&&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++)fi[tv]!==void 0&&(_n=a.Eb(tv),isFinite(_n.width)||Tm(_n)===Pp||(_n.actual=_n.oa*aw),_n.position=E.width,_n.oa!==0&&(E.width+=_n.oa,E.width+=_n.Wc()));z=a.rowCount;for(var nv=0;nv<z;nv++)ji[nv]!==void 0&&(_n=a.Fb(nv),isFinite(_n.height)?(dm+=_n.height,dm+=_n.Wc()):Tm(_n)===Pp?(dm+=_n.oa,dm+=_n.Wc()):_n.oa!==0&&(ih+=_n.oa,ih+=_n.Wc()));isFinite(q0.height)?xg=Math.min(q0.height,Sx.height):xg=Ql!==ei&&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++)ji[iv]!==void 0&&(_n=a.Fb(iv),isFinite(_n.height)||Tm(_n)===Pp||(_n.actual=_n.oa*sw),_n.position=E.height,_n.oa!==0&&(E.height+=_n.oa,E.height+=_n.Wc()));z=re.length;for(var Xy=0;Xy<z;Xy++){var hm=re[Xy],Jy=0,Qy=0;hm.type===si.TableRow?(Jy=E.width,_n=a.Fb(hm.row),Qy=_n.actual):(_n=a.Eb(hm.column),Jy=_n.actual,Qy=E.height),hm.measuredBounds.h(0,0,Jy,Qy),Hs(hm,!1)}xi(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,Ee=Math.min(a.topIndex,le-1);if(0<oe.length){for(;Ee!==le&&(oe[Ee]===void 0||oe[Ee].oa===0);)Ee++;Ee=Math.max(Math.min(Ee,le-1),0),fe=-oe[Ee].position}var Ae=Math.min(a.leftIndex,ue-1);if(0<re.length){for(;Ae!==ue&&(re[Ae]===void 0||re[Ae].oa===0);)Ae++;Ae=Math.max(Math.min(Ae,ue-1),0),xe=-re[Ae].position}for(var Te=0,ot=0;Te!==le&&oe[Te]===void 0;)Te++;for(;ot!==le&&re[ot]===void 0;)ot++;ue=a.part,a.Fb(Te),a.Eb(ot);for(var Ue=0;Ue<y.length;Ue++){var St=y[Ue];if(St instanceof si&&St.visible&&xh(St)){if(St.type===si.TableRow){re=a.Fb(St.row);var Ct=a.Eb(ot)}else re=a.Fb(Te),Ct=a.Eb(St.column);oe=re.position+fe+E,re.oa!==0&&(oe+=re.Io(Math.max(Te,Ee))),re=Ct.position+xe+z,Ct.oa!==0&&(re+=Ct.Io(Math.max(ot,Ae))),Ct=St.measuredBounds,St.Uk(),St.actualBounds.ka();var Ft=St.actualBounds,jt=Cn.allocAt(Ft.x,Ft.y,Ft.width,Ft.height);Ft.x=St.type===si.TableRow?z:re,Ft.y=St.type===si.TableColumn?E:oe,Ft.width=Ct.width,Ft.height=Ct.height,St.actualBounds.freeze(),Ld(St,!1),Ga(jt,Ft)||ue===null||(ue.oh(),St.Pn(ue)),Cn.free(jt)}}for(Ue=zn.alloc(),St=0;St<le;St++)if(ee[St]){for(ue=ee[St].length,Ct=a.Fb(St),oe=Ct.position+fe+E,Ct.oa!==0&&(oe+=Ct.Io(Math.max(Te,Ee))),Ft=0;Ft<ue;Ft++)if(ee[St][Ft]){jt=a.Eb(Ft),re=jt.position+xe+z,jt.oa!==0&&(re+=jt.Io(Math.max(ot,Ae)));for(var yn=ee[St][Ft],Fi=yn.length,Xi=0;Xi<Fi;Xi++){var ji=yn[Xi],fi=ji.measuredBounds;Ue.h(0,0);for(var _n=1;_n<ji.rowSpan&&!(St+_n>=a.rowCount);_n++){var Ur=a.Fb(St+_n);Ur.oa!==0&&(Ue.height+=Ur.total)}for(_n=1;_n<ji.columnSpan&&!(Ft+_n>=a.columnCount);_n++)Ur=a.Eb(Ft+_n),Ur.oa!==0&&(Ue.width+=Ur.total);var Ir=jt.oa+Ue.width,Jo=Ct.oa+Ue.height;_n=re,Ur=oe;var wa=Ir,qs=Jo,cl=re,Xl=oe,el=Ir,kh=Jo;re+Ir>x.width&&(el=Math.max(x.width-re,0)),oe+Jo>x.height&&(kh=Math.max(x.height-oe,0));var ks=ji.alignment;if(ks.Xb()){ks=a.defaultAlignment,ks.sb()||(ks=So);var ld=ks.x,Jl=ks.y,Nh=ks.offsetX;ks=ks.offsetY;var rc=jt.alignment,Bc=Ct.alignment;rc.sb()&&(ld=rc.x,Nh=rc.offsetX),Bc.sb()&&(Jl=Bc.y,ks=Bc.offsetY)}else ld=ks.x,Jl=ks.y,Nh=ks.offsetX,ks=ks.offsetY;(isNaN(ld)||isNaN(Jl))&&(Jl=ld=.5,ks=Nh=0),rc=fi.width,Bc=fi.height;var Yu=ji.margin,Iu=Yu.left+Yu.right,af=Yu.top+Yu.bottom,ud=id(ji,Ct,jt,!1);!isNaN(ji.desiredSize.width)||ud!==ri&&ud!==or||(rc=Math.max(Ir-Iu,0)),!isNaN(ji.desiredSize.height)||ud!==ri&&ud!==Cr||(Bc=Math.max(Jo-af,0)),Ir=ji.maxSize,Jo=ji.minSize,rc=Math.min(Ir.width,rc),Bc=Math.min(Ir.height,Bc),rc=Math.max(Jo.width,rc),Bc=Math.max(Jo.height,Bc),Ir=Bc+af,_n+=wa*ld-(rc+Iu)*ld+Nh+Yu.left,Ur+=qs*Jl-Ir*Jl+ks+Yu.top,ji.visible&&(Oo(cl,Xl,el,kh,_n,Ur,fi.width,fi.height)?ji.arrange(_n,Ur,rc,Bc):ji.arrange(_n,Ur,rc,Bc,new Cn(cl,Xl,el,kh)))}}}for(zn.free(Ue),a=0;a<b;a++)x=y[a],z=x instanceof si?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"}bt(Em,Us),Em.prototype.measure=function(){},Em.prototype.arrange=function(){};function Am(){this.xa="Base"}bt(Am,Us),Am.prototype.measure=function(){},Am.prototype.arrange=function(){};function Lm(){this.xa="Base"}bt(Lm,Us),Lm.prototype.measure=function(a,y,x,b,E,z,ee){1<b.length&&Et("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),Ee=Math.max(x-oe,0),Ae=1;a.viewboxStretch===tr?fe!==0&&re!==0&&(Ae=Math.min(xe/fe,Ee/re)):fe!==0&&re!==0&&(Ae=Math.max(xe/fe,Ee/re)),Ae===0&&(Ae=1e-4),b.Ca*=Ae,ue!==b.scale&&(Hs(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"}bt(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 Ee=[],Ae=a.O.s,Te=Ae.length,ot=0;ot<Te;ot++){var Ue=Ae[ot],St=[];if(Ee.push(St),Ue.visible){var Ct=Ue.interval;if(!(0>Ct)){Ue=Sv(Ue.figure);for(var Ft=0;Ft<Te;Ft++)if(Ft!==ot){var jt=Ae[Ft];jt.visible&&Sv(jt.figure)===Ue&&(jt=jt.interval,jt>Ct&&St.push(jt))}}}}for(Ae=a.O.s,Te=Ae.length,ot=0;ot<Te;ot++){var yn=Ae[ot];if(yn.visible&&(St=yn.interval||1,Ue=Math.abs(St),!(2>E*Ue*x))){if(Ct=yn.segmentIndex,(!isFinite(Ct)||isNaN(Ct))&&(Ct=0),0>Ct&&(Ct=Ue-Math.min(-Ct,Ue)),Ct=Math.round(Ct%Ue),Ue=yn.opacity,Ft=1,Ue!==1){if(Ue===0)continue;Ft=y.globalAlpha,y.globalAlpha=Ft*Ue}jt=Ee[ot];var Fi=!1,Xi=yn.strokeDashArray;if(Xi!==null&&(Fi=!0,y.js(Xi,yn.strokeDashOffset)),yn.figure==="LineV"&&yn.stroke!==null&&0<yn.strokeWidth){for(y.lineWidth=yn.strokeWidth,ds(a,y,yn.stroke,!1,!1,z,ee),y.beginPath(),Xi=yn=Math.floor((xe-E)/E);Xi<=yn+le;Xi++){var ji=Xi*E+xe;0<=ji&&ji<=re&&Mm(Xi,St,Ct,jt)&&(y.moveTo(ji,0),y.lineTo(ji,oe))}y.stroke(),y.Se()}else if(yn.figure==="LineH"&&yn.stroke!==null&&0<yn.strokeWidth){for(y.lineWidth=yn.strokeWidth,ds(a,y,yn.stroke,!1,!1,z,ee),y.beginPath(),Xi=yn=Math.floor((fe-b)/b);Xi<=yn+ue;Xi++)ji=Xi*b+fe,0<=ji&&ji<=oe&&Mm(Xi,St,Ct,jt)&&(y.moveTo(0,ji),y.lineTo(re,ji));y.stroke(),y.Se()}else if(yn.figure==="BarV"&&yn.fill!==null)for(ds(a,y,yn.fill,!0,!1,z,ee),yn=yn.width,isNaN(yn)&&(yn=E),ji=Xi=Math.floor((xe-E)/E);ji<=Xi+le;ji++){var fi=ji*E+xe;0<=fi+yn&&fi<=re&&Mm(ji,St,Ct,jt)&&y.fillRect(fi,0,yn,oe)}else if(yn.figure==="BarH"&&yn.fill!==null)for(ds(a,y,yn.fill,!0,!1,z,ee),yn=yn.height,isNaN(yn)&&(yn=b),ji=Xi=Math.floor((fe-b)/b);ji<=Xi+ue;ji++)fi=ji*b+fe,0<=fi+yn&&fi<=oe&&Mm(ji,St,Ct,jt)&&y.fillRect(0,fi,re,yn);Fi&&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"}bt(Fm,Us),Fm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Yo||a instanceof gi){var ee=null,re=null;if(a instanceof gi&&(ee=a),a instanceof Yo&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof gi){var oe=ee;if(z===0)ca(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof Yo?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,Ee=a.j;if(Ee.length=0,le!==null){l1(a,re,xe,le);var Ae=le.measuredBounds;x.ed(Ae),Ee.push(Ae)}Ae=Rr.alloc();for(var Te=Qe.alloc(),ot=Qe.alloc(),Ue=0;Ue<z;Ue++){var St=b[Ue];if(St!==le)if(St.isPanelMain&&St instanceof ro){l1(a,re,xe,St);var Ct=St.measuredBounds;x.ed(Ct),Ee.push(Ct)}else if(2>fe)St.measure(1/0,1/0,0,0),Ct=St.measuredBounds,x.ed(Ct),Ee.push(Ct);else{var Ft=St.segmentIndex,jt=St.segmentFraction,yn=St.alignmentFocus;yn.Mc()&&(yn=So);var Fi=St.segmentOrientation,Xi=St.segmentOffset;if(isNaN(Ft)){var ji=oe.ua;Ct=ti(),ji.Qu(jt,Ct);var fi=Qe.allocAt(Ct[0],Ct[1]);if(fi.add(oe.i(0)),ji.type===di.j?fi.offset(-ji.startX,-ji.startY):(ji=ji.figures.first(),ji!==null&&fi.offset(-ji.startX,-ji.startY)),ji=Ct[2],Fi!==au){var _n=oe.computeAngle(St,Fi,ji);St.Kb=_n}_n=fi.x-y.x;var Ur=fi.y-y.y;Qe.free(fi),xi(Ct)}else if(Ft<-fe||Ft>=fe)Ct=Qe.alloc(),oe.vg(),oe.computeMidPoint(Ct),ji=oe.midAngle,Fi!==au&&(_n=oe.computeAngle(St,Fi,ji),St.Kb=_n),_n=Ct.x-y.x,Ur=Ct.y-y.y,Qe.free(Ct);else{if(_n=0,0<=Ft?(Ur=ue.M(Ft),Ct=Ft<fe-1?ue.M(Ft+1):Ur):(_n=fe+Ft,Ur=ue.M(_n),Ct=0<_n?ue.M(_n-1):Ur),Ur.Xa(Ct)){0<=Ft?(ji=0<Ft?ue.M(Ft-1):Ur,_n=Ft<fe-2?ue.M(Ft+2):Ct):(ji=_n<fe-1?ue.M(_n+1):Ur,_n=1<_n?ue.M(_n-2):Ct),fi=ji.Bf(Ur);var Ir=Ct.Bf(_n);ji=fi>Ir+10?0<=Ft?ji.ab(Ur):Ur.ab(ji):Ir>fi+10?0<=Ft?Ct.ab(_n):_n.ab(Ct):0<=Ft?ji.ab(_n):_n.ab(ji)}else ji=0<=Ft?Ur.ab(Ct):Ct.ab(Ur);Fi!==au&&(_n=oe.computeAngle(St,Fi,ji),St.Kb=_n),_n=Ur.x+(Ct.x-Ur.x)*jt-y.x,Ur=Ur.y+(Ct.y-Ur.y)*jt-y.y}St.measure(1/0,1/0,0,0),Ct=St.measuredBounds,fi=St.naturalBounds;var Jo=0;St instanceof ro&&(Jo=St.strokeWidth),Ir=fi.width+Jo;var wa=fi.height+Jo;Ae.reset(),Ae.translate(-Ct.x,-Ct.y),Ae.scale(St.scale,St.scale),Ae.rotate(Fi===au?St.angle:ji,Ir/2,wa/2),Fi!==Dp&&Fi!==Tp||Ae.rotate(90,Ir/2,wa/2),Fi!==Bp&&Fi!==Op||Ae.rotate(-90,Ir/2,wa/2),Fi===o0&&(45<ji&&135>ji||225<ji&&315>ji)&&Ae.rotate(-ji,Ir/2,wa/2),fi=new Cn(0,0,Ir,wa),Te.xi(fi,yn),Ae.Ga(Te),yn=-Te.x+Jo/2*St.scale,St=-Te.y+Jo/2*St.scale,ot.assign(Xi),Jo=isNaN(Xi.x);var qs=isNaN(Xi.y);if(Jo||qs){Ir=Ir/2+3,wa=wa/2+3;var cl=45<=ji&&135>=ji,Xl=225<=ji&&315>=ji;Fi===au&&(cl||Xl)?(ot.x=qs?Ir:Xi.y,ot.y=Jo?wa:Xi.x,cl?0<=Ft||isNaN(Ft)&&.5>jt||!Jo||(ot.y=-wa):Xl&&((0<=Ft||isNaN(Ft)&&.5>jt)&&Jo&&(ot.y=-wa),qs&&(ot.x=-Ir))):(Jo&&(ot.x=0<=Ft||isNaN(Ft)&&.5>jt?Ir:-Ir),qs&&(ot.y=-wa),ot.rotate(ji))}else ot.rotate(ji);_n+=ot.x,Ur+=ot.y,fi.set(Ct),fi.h(_n+yn,Ur+St,Ct.width,Ct.height),Ee.push(fi),x.ed(fi)}}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),ca(E,x.width||0,x.height||0),Rr.free(Ae),Qe.free(Te),Qe.free(ot)}}}},Fm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Yo||a instanceof gi){var b=a,E=null;a instanceof Yo&&(E=a,b=E.adornedPart);var z=a instanceof Yo?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 gi)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 Ee=fe.ua,Ae=ti();Ee.Qu(oe,Ae);var Te=Qe.allocAt(Ae[0],Ae[1]);Te.add(fe.i(0)),Ee.type===di.j||(Ee=Ee.figures.first()),Te.offset(-Ee.startX,-Ee.startY),Ee=Ae[2],le!==au&&(fe=fe.computeAngle(ee,le,Ee),ee.angle=fe),fe=Te.x;var ot=Te.y;Qe.free(Te),xi(Ae)}else if(re<-x||re>=x)Ae=Qe.alloc(),Ee=fe,ot=Ae,Ee.vg(),Ee.computeMidPoint(ot),Ee=fe.midAngle,le!==au&&(fe=fe.computeAngle(ee,le,Ee),ee.angle=fe),fe=Ae.x,ot=Ae.y,Qe.free(Ae);else{if(Te=0,0<=re?(Ae=y.s[re],ot=re<x-1?y.s[re+1]:Ae):(Te=x+re,Ae=y.s[Te],ot=0<Te?y.s[Te-1]:Ae),Ae.Xa(ot)){0<=re?(Ee=0<re?y.s[re-1]:Ae,Te=re<x-2?y.s[re+2]:ot):(Ee=Te<x-1?y.s[Te+1]:Ae,Te=1<Te?y.s[Te-2]:ot);var Ue=Ee.Bf(Ae),St=ot.Bf(Te);Ee=Ue>St+10?0<=re?Ee.ab(Ae):Ae.ab(Ee):St>Ue+10?0<=re?ot.ab(Te):Te.ab(ot):0<=re?Ee.ab(Te):Te.ab(Ee)}else Ee=0<=re?Ae.ab(ot):ot.ab(Ae);le!==au&&(fe=fe.computeAngle(ee,le,Ee),ee.angle=fe),fe=Ae.x+(ot.x-Ae.x)*oe,ot=Ae.y+(ot.y-Ae.y)*oe}if(xe.ys())ee.location=new Qe(fe,ot);else{xe.Mc()&&(xe=So),Ae=Rr.alloc(),Ae.reset(),Ae.scale(ee.scale,ee.scale),Ae.rotate(ee.angle,0,0);var Ct=ee.naturalBounds;Te=Cn.allocAt(0,0,Ct.width,Ct.height),Ue=Qe.alloc(),Ue.xi(Te,xe),Ae.Ga(Ue),xe=-Ue.x,St=-Ue.y;var Ft=Ct.width,jt=Ct.height;Ct=Qe.alloc(),Ct.assign(ue);var yn=isNaN(ue.x),Fi=isNaN(ue.y);if(yn||Fi){Ft=Ft/2+3,jt=jt/2+3;var Xi=45<=Ee&&135>=Ee,ji=225<=Ee&&315>=Ee;le===au&&(Xi||ji)?(Ct.x=Fi?Ft:ue.y,Ct.y=yn?jt:ue.x,Xi?0<=re||isNaN(re)&&.5>oe||!yn||(Ct.y=-jt):ji&&((0<=re||isNaN(re)&&.5>oe)&&yn&&(Ct.y=-jt),Fi&&(Ct.x=-Ft))):(yn&&(Ct.x=0<=re||isNaN(re)&&.5>oe?Ft:-Ft),Fi&&(Ct.y=-jt),Ct.rotate(Ee))}else Ct.rotate(Ee);fe+=Ct.x,ot+=Ct.y,Ae.pp(Te),xe+=Te.x,St+=Te.y,re=Qe.allocAt(fe+xe,ot+St),ee.move(re),Qe.free(re),Qe.free(Ct),Qe.free(Ue),Cn.free(Te),Rr.free(Ae)}}E!==null?E.Ul(!1):b.Ul(!1),b=R1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Qe.free(b)}};function l1(a,y,x,b){if(ec(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Yo&&a.type===si.Link&&a.adornedObject instanceof ro&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof gi&&a.ua!==null?(a=a.geometry.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):a instanceof Yo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),Hs(b,!1)}}function xp(){this.xa="Base"}bt(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 Cn(-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 Ee=re.geometry,Ae=re.strokeWidth,Te=Ee.flattenedSegments,ot=Ee.flattenedLengths,Ue=Ee.flattenedTotalLength,St=Te.length,Ct=0,Ft=0,jt=ti(),yn=0;yn<St;yn++){var Fi=Te[yn],Xi=[];Ft=Ct=0;for(var ji=Fi.length,fi=0;fi<ji;fi+=2){var _n=Fi[fi],Ur=Fi[fi+1];if(fi!==0){var Ir=180*Math.atan2(Ur-Ft,_n-Ct)/Math.PI;0>Ir&&(Ir+=360),Xi.push(Ir)}Ct=_n,Ft=Ur}jt.push(Xi)}if(a.graduatedIntervals===null){for(var Jo=[],wa=a.O.s,qs=wa.length,cl=0;cl<qs;cl++){var Xl=wa[cl],el=[];if(Jo.push(el),Xl.visible){var kh=Xl.interval;if(!(0>kh)){for(var ks=0;ks<qs;ks++)if(ks!==cl){var ld=wa[ks];if(ld.visible&&Xl.constructor===ld.constructor){var Jl=ld.interval;Jl>kh&&el.push(Jl)}}}}}a.graduatedIntervals=Jo}var Nh=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=ot[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=Nh[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 ro&&!Uu.graduatedSkip(Xu,Uu))&&(Yu=(Xu-a.graduatedMin)*Ue/a.graduatedRange,Yu>Ue&&(Yu=Ue),Iu<=Yu&&Yu<=af)){for(var jd=jt[xd][Ru],Dh=ot[xd][Ru];xd<ot.length;){for(;Yu>fg&&Ru<ot[xd].length-1;)Ru++,jd=jt[xd][Ru],Dh=ot[xd][Ru],fg+=Dh;if(Yu<=fg)break;xd++,Ru=0,jd=jt[xd][Ru],Dh=ot[xd][Ru],fg+=Dh}var zu=Te[xd],wd=zu[2*Ru],X0=zu[2*Ru+1],rh=(Yu-(fg-Dh))/Dh,tp=new Qe(wd+(zu[2*Ru+2]-wd)*rh+Ae/2-Ee.bounds.x,X0+(zu[2*Ru+3]-X0)*rh+Ae/2-Ee.bounds.y);tp.scale(re.scale,re.scale);e:{var cd=jd,Rf=jt[xd];if(!(.5005>rh&&.4995<rh)){var Pd=cd;if(.5>rh?0<Ru?Pd=Rf[Ru-1]:Kt.$(zu[0],zu[zu.length-2])&&Kt.$(zu[1],zu[zu.length-1])&&(Pd=Rf[Rf.length-1]):.5<rh&&(Ru+1<Rf.length?Pd=Rf[Ru+1]:Kt.$(zu[0],zu[zu.length-2])&&Kt.$(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)}xi(jt);var bl=a.graduatedMarks;if(bl!==null)for(var sm=b.length,du=0;du<sm;du++){var Ns=b[du],hu=bl[du];if(Ns.visible&&Ns!==re&&hu.length!==0){if(Ns instanceof ro){var oh=a,Bh=E,zf=Ns.alignmentFocus;zf.Mc()&&(zf=Is);var Gy=Ns.angle;Ns.Kb=0,Ns.measure(1/0,1/0,0,0),Ns.Kb=Gy;var J0=Ns.measuredBounds,ip=J0.width,jf=J0.height,mg=Cn.allocAt(0,0,ip,jf),ju=Qe.alloc();ju.xi(mg,zf),Cn.free(mg);for(var ah=-ju.x,dd=-ju.y,yc=new Cn,cf=hu.length,rp=0;rp<cf;rp++)for(var df=hu[rp],Q0=df.$l.x,op=df.$l.y,vs=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(vs+Ns.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(-vs-Ns.angle)}Qe.free(ju),oh.graduatedBounds!==null&&oh.graduatedBounds.push(yc),Fo(Bh,yc.x,yc.y,yc.width,yc.height)}else if(Ns instanceof ba){var Tc=a,_0=E;Tc.temporaryTextBlock===null&&(Tc.temporaryTextBlock=new ba);var Ju=Tc.temporaryTextBlock;C1(Ju,Ns);var Th=Ns.alignmentFocus;Th.Mc()&&(Th=Is);for(var Oc=Ns.segmentOrientation,ap=Ns.segmentOffset,hf=new Cn,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=Ns.angle,Oc!==au&&(ff=Oc===Np||Oc===r0?Cd+Ns.angle:Cd,Hf=gi.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=Rr.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=Cn.allocAt(0,0,Rh,Wf),zh=Qe.alloc();zh.xi(vg,Th),hd.Ga(zh);var yg=-zh.x,Yy=-zh.y,lh=Qe.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 Cn(lm,sp,Ih.width,Ih.height),um=new Cn(Ih.x,Ih.y,Ih.width,Ih.height),Uy=new Cn(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),Qe.free(lh),Qe.free(zh),Cn.free(vg),Rr.free(hd)}Tc.graduatedBounds!==null&&Tc.graduatedBounds.push(hf),Fo(_0,hf.x,hf.y,hf.width,hf.height)}Hs(Ns,!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],Ee=le[fe],Ae=Ee.length;if(xe.visible&&xe!==z&&Ee.length!==0){if(xe instanceof ro){if(!(2>a.graduatedTickUnit*xe.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&xe.graduatedSkip===null)){var Te=xe.measuredBounds,ot=xe.strokeWidth*xe.scale,Ue=xe.alignmentFocus;Ue.Mc()&&(Ue=Is);for(var St=0;St<Ae;St++){var Ct=Ee[St].$l,Ft=Ee[St].angle,jt=Ue,yn=xe.Ab;yn.reset(),yn.translate(Ct.x+re.x,Ct.y+re.y),yn.rotate(Ft+xe.angle,0,0),yn.translate(-Te.width*jt.x+jt.offsetX+ot/2,-Te.height*jt.y+jt.offsetY+ot/2),yn.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),ot=0;ot<Ae;ot++)Ue=Ee[ot],Ue.actualBounds&&Ue.measuredBounds&&Ue.naturalBounds&&(Te.ec=Ue.text||"",Te.Kb=Ue.Sz||0,Te.Gc=Ue.lineCount||0,St=Ue.lines,St!==void 0&&(Te.Cb=St[0],Te.Ih=St[1],Te.df=St[2],Te.Le=St[3],Te.Qc=St[4],Te.Qb=St[5],Te.ze=St[6]),Ue.naturalBounds&&(Te.dc=Ue.naturalBounds),Ue.actualBounds&&(St=Ue.actualBounds,Te.arrange(St.x,St.y,St.width,St.height)),St=Ue.actualBounds,Te.arrange(St.x,St.y,St.width,St.height),Ct=Ue.measuredBounds,Ue=Ue.naturalBounds,Ft=Te.Ab,Ft.reset(),Ft.translate(St.x+re.x,St.y+re.y),Ft.translate(-Ct.x,-Ct.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 si(a,y){if(Vt.call(this),this.na=null,a===void 0)this.na=si.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=si.Position,y=a);this.na===null&&Et("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===si.Grid?1048576:0),this.O=new kn,this.yb=Bs,this.Tm=Xo,this.Uf=Jr,this.$g=null,this.$e="",this.jg=new Cn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=tr,this.jn=$r,this.kn=pt,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}bt(si,Vt),si.prototype.cloneProtected=function(a){Vt.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},si.prototype.Af=function(a){Vt.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},si.prototype.copy=function(){var a=Vt.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 Di&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb(ui,"elements",a,null,E,null,ee)}}return a}return null},Ce=si.prototype,Ce.toString=function(){return"Panel("+this.type.name+")#"+vr(this)},Ce.Pn=function(a){Vt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Ce.hh=function(a,y){if(this.na===si.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===si.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===si.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===si.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&&km(a,y,!0,x,!0),b!==null&&km(a,y,!1,b,!0),x!==null&&u1(a,y,!0,x),b!==null&&u1(a,y,!1,b),x!==null&&km(a,y,!0,x,!1),b!==null&&km(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){ds(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 km(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 Ee=fe.Wc(),Ae=fe.separatorStrokeWidth;isNaN(Ae)&&(Ae=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Te=fe.separatorStroke;Te===null&&(Te=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Te===null||fe.index===(x?oe:le))&&(Ae=0),Ee-=Ae,Ae=fe.position+Ae,Ee+=fe.actual,Ae+Ee>xe&&(Ee=xe-Ae),0>=Ee||(xe=a.yb,ds(a,y,fe.background,!0,!1,re,ee),x?y.fillRect(xe.left,Ae+xe.top,ee.width-(xe.left+xe.right),Ee):y.fillRect(Ae+xe.left,xe.top,Ee,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"}Ce.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ce.kk=function(a,y,x){if(!Vt.prototype.kk.call(this,a,y,x))return!1;if(this.type===si.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===si.Grid||this.na===si.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},Ce.nk=function(){return!0},Ce.$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 Vt.prototype.$o.call(this,a,y,x,b)},Ce.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),Ee=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Kt.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+Ee,a=x*oe+b*ue+xe,oe=x*le+b*fe+Ee,E.h(0,0),x=this.naturalBounds,z=Kt.Ff(0,0,x.width,x.height,z,re,a,oe,E),E.transform(ee),z;z||(oe=1,ue=le=0,fe=1,Ee=xe=0),re=a*oe+y*ue+xe,a=a*le+y*fe+Ee,oe=x*oe+b*ue+xe,x=x*le+b*fe+Ee,E.h(oe,x),b=(oe-re)*(oe-re)+(x-a)*(x-a),le=!1,fe=this.O.s,Ee=fe.length,ue=Qe.alloc(),xe=null,y=1/0;var Ae=null,Te=this.isClipping&&this.na===si.Spot;Te&&(Ae=Qe.alloc(),xe=this.Pb(),(le=xe.Sj(re,a,oe,x,Ae))&&(y=(re-Ae.x)*(re-Ae.x)+(a-Ae.y)*(a-Ae.y)));for(var ot=0;ot<Ee;ot++){var Ue=fe[ot];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(Ae),Qe.free(Ae)),Qe.free(ue),z&&E.transform(ee),le},Ce.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Vt.prototype.Gj.call(this)},Ce.v=function(a){if(!ec(this)){Vt.prototype.v.call(this,a),a=null,(this.na===si.Auto||this.na===si.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 si||E instanceof ba||z!==ei)&&E.v(!0)}}}},Ce.Uj=function(){if(!ec(this)){Hs(this,!0),Ld(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ce.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()}},Ce.Wu=function(){dc(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ce.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),ca(E,a,oe),ca(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Ce.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}Ce.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=ei),a){case ei:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case ri:this.v(!0),this.measure(x+re,b+ee,0,0);break;case or:this.v(!0),this.measure(x+re,z+ee,0,0);break;case Cr:this.v(!0),this.measure(y+re,b+ee,0,0)}}this.na.arrange(this,E,this.jg)}},Ce.gh=function(a){var y=this.naturalBounds,x=eh(this);if(Oo(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Qe.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(qn(E.set(a),z.transform),z.ca(E)))return Qe.free(E),!0}return Qe.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Ce.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},Ce.qm=function(a,y){if(y(this,a),a instanceof si){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 si&&d1(a,z,x)}}function Ax(a,y){h1(a,a,y)}function h1(a,y,x){if(x(y),y instanceof si){y=y.O.s;for(var b=y.length,E=0;E<b;E++)h1(a,y[E],x)}}Ce.Nl=function(a){return f1(this,this,a)};function f1(a,y,x){if(x(y))return y;if(y instanceof si){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}Ce.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 si){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 si?x=Math.max(x,g1(E)):E instanceof ro&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Ce.se=function(){return!(this.type===si.TableRow||this.type===si.TableColumn)};function xh(a){return a.type===si.TableRow||a.type===si.TableColumn}Ce.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:qn(Qe.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,le=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),le=oe/2),Oo(-(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=Qe.alloc(),le=(oe=this.isClipping&&this.na===si.Spot)?this.Pb():null,oe&&(le.se()?qn(re.set(a),le.transform):re.set(a),!le.ca(re)))return Qe.free(re),z||Qe.free(ee),null;for(var fe=eh(this);ue--;){var xe=E[ue];if((xe.visible||xe===fe)&&(xe.se()?qn(re.set(a),xe.transform):re.set(a),!oe||xe!==le)){var Ee=null;if(xe instanceof si?Ee=xe.ic(re,y,x):xe.pickable===!0&&xe.ca(re)&&(Ee=xe),Ee!==null&&(y!==null&&(Ee=y(Ee)),Ee!==null&&(x===null||x(Ee))))return Qe.free(re),z||Qe.free(ee),Ee}}Qe.free(re)}return this.background===null&&this.areaBackground===null?(z||Qe.free(ee),null):(a=Oo(0,0,b.width,b.height,ee.x,ee.y)?this:null,z||Qe.free(ee),a)}return z||Qe.free(ee),null},Ce.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:qn(Qe.allocAt(a.x,a.y),this.transform);if(E=Oo(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=Qe.alloc(),ue=eh(this);oe--;){var fe=re[oe];if(fe.visible||fe===ue){fe.se()?qn(le.set(a),fe.transform):le.set(a);var xe=fe;fe=fe instanceof si?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))}}Qe.free(le)}return z||Qe.free(ee),E&&(this.background!==null||this.areaBackground!==null)}return z||Qe.free(ee),!1},Ce.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=Rr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return xv(this,y,x,E),z===void 0&&Rr.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 si?ue:null,xe=Rr.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)),Rr.free(xe))}}return z===void 0&&Rr.free(ee),b}return z===void 0&&Rr.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 si&&xv(ee,y,x,b),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||b.add(ee))}}}Ce.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:qn(Qe.allocAt(a.x,a.y),this.transform),le=re?y:qn(Qe.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||Oi(oe.x,oe.y,0,0,0,ee.height)<=ue||Oi(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=ue||Oi(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=ue||Oi(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||(Qe.free(oe),Qe.free(le)),fe){if(!this.isAtomic){oe=Qe.alloc(),le=Qe.alloc(),ue=eh(this);for(var xe=this.O.s,Ee=xe.length;Ee--;){var Ae=xe[Ee];if(Ae.visible||Ae===ue){var Te=Ae.actualBounds,ot=this.naturalBounds;(!re||!(Te.x>ot.width||Te.y>ot.height||0>Te.x+Te.width||0>Te.y+Te.height))&&(Ae.se()?(Te=Ae.transform,qn(oe.set(a),Te),qn(le.set(y),Te)):(oe.set(a),le.set(y)),Te=Ae,Ae=Ae instanceof si?Ae:null,(Ae!==null?Ae.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)))}}Qe.free(oe),Qe.free(le)}return E?fe:ee}return!1};function wv(a){var y=null;return a instanceof ro&&(y=a.spot1,y===Xo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ga),y}function Pv(a){var y=null;return a instanceof ro&&(y=a.spot2,y===Xo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=vl),y}Ce.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},Ce.M=function(a){return this.O.M(a)},Ce.Gb=function(a,y){y instanceof ur&&Et("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Et("Cannot make a Panel contain itself: "+this.toString()),Et("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Et("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!==si.Grid||y instanceof ro||Et("Can only add Shapes to a Grid Panel, not: "+y),this.na!==si.Graduated||y instanceof ro||y instanceof ba||Et("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 Ii),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 Et("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 si&&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 Di&&(x.Te=!0),x.Te&&x instanceof Di&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Mi,"elements",this,y,null,b,null),x.cb(ui,"elements",this,null,y,null,a)))};function Cv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ce.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)},Ce.mb=function(a){0<=a&&this.pc(a,!0)},Ce.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),Hs(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 Di&&(b instanceof si?b.qm(b,function(ee,re){Yv(z,re,y)}):Yv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Mi,"elements",this,b,null,a,null))},Ce.Fb=function(a){0>a&&Qn(a,">= 0",si,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ws;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ui,"rowdefs",this,null,x,null,a)}return y[a]},Ce.oA=function(a){if(0>a&&Qn(a,">= 0",si,"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(Mi,"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 Ws?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ce.Eb=function(a){0>a&&Qn(a,">= 0",si,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ws;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ui,"coldefs",this,null,x,null,a)}return y[a]},Ce.jA=function(a){if(0>a&&Qn(a,">= 0",si,"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(Mi,"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 Ws?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Ce.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},Ce.Hy=function(a,y){return(a=this.Fb(a))&&Bm(a,new Ws(y)),this},Ce.By=function(a,y){return(a=this.Eb(a))&&Bm(a,new Ws(y)),this},Ce.nz=function(a){if(0>a||this.type!==si.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},Ce.fz=function(a){if(0>a||this.type!==si.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},Ce.Fz=function(a,y){if(y===void 0&&(y=new Qe(NaN,NaN)),this.type!==si.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)},Ce.Gz=function(a){if(this.type!==si.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 kc(a){var y=a.allBindings;if(y===null)a.data!==null&&Et("Template cannot have .data be non-null: "+a),a.allBindings=y=new kn;else if(y._isFrozen)return;var x=new kn;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 Ee=xe.sourceName;Ee!==null&&(Ee==="/"&&Cv(le,!0),Ee=NS(xe,le,ue),Ee!==null&&(x.add(Ee),Ee.srcBindings===null&&(Ee.srcBindings=new kn),Ee.srcBindings.add(xe))),y.add(xe)}if(ue instanceof si&&ue.type===si.Table){if(0<ue.rowCount){for(le=ue.rowDefs,fe=le.length,xe=0;xe<fe;xe++)if(Ee=le[xe],Ee!==void 0&&Ee.be!==null)for(var Ae=Ee.be.iterator;Ae.next();){var Te=Ae.value;Te.xd=Ee,Te.to=2,Te.wl=Ee.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(Ee=xe.be.iterator;Ee.next();)Ae=Ee.value,Ae.xd=xe,Ae.to=1,Ae.wl=xe.index,y.add(Ae)}}});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 kn),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 si&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,E.targetProperty=re):Un('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+E.toString())),z instanceof Ws?(ee=vr(z.panel),E.Ai=ee===void 0?-1:ee,z.panel.bindingId=E.Ai):z instanceof Vt?(ee=vr(z),E.Ai=ee===void 0?-1:ee,z.bindingId=E.Ai):Et("Unknown type of binding target: "+z)}y.freeze(),a instanceof ur&&a.Zc()&&a.Va()}Ce.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Ax(y,function(x){x instanceof si&&(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&&kc(y),y},Ce.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 si))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Ce.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 si&&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 si)||z.data!==y[ee])return!0;E++,ee++}return!1}function wp(a){if(a.type===si.Spot||a.type===si.Auto)return Math.min(a.O.length,1);if(a.type===si.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof ro&&b.isPanelMain))break}return x}return a.type===si.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof si&&xh(a))?1:0}Ce.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++)Nm(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 si){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),Nm(a,z,E,!1)):ee.data=z}}else Nm(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 Di&&(y.Te=!0),y.Te&&y instanceof Di&&(y.wc=null))}}function Nm(a,y,x,b){if(!(y==null||0>x)){var E=Ev(a,y);if(E=Av(a,E),E!==null){if(kc(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 Ii),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 si){var E=y,z=x;b.type===si.TableRow?b.row=E:b.type===si.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;Et("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,Un('No item template Panel found for category "'+y+'" on '+a),Un(" Using default item template."),a=new si,y=new ba,y.bind(new Fs("text","",Zi)),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 si){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof si&&!z.isEnabled||Dm(a,z,x)}}}function yd(a,y){y.name=a,Zc.add(a,y)}tt.Object.defineProperties(si.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===si.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&&Qn(a,">= 0",si,"padding"),a=new Vi(a)):(0>a.left&&Qn(a.left,">= 0",si,"padding:value.left"),0>a.right&&Qn(a.right,">= 0",si,"padding:value.right"),0>a.top&&Qn(a.top,">= 0",si,"padding:value.top"),0>a.bottom&&Qn(a.bottom,">= 0",si,"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:Bs},set:function(a){typeof a=="number"&&(a=new Vi(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 ia)&&(a instanceof ia&&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)||Et("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 ia)&&(a instanceof ia&&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)||Et("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||Et("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()||Et("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)&&Et("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)&&Et("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 ur&&!(this instanceof Yo);kc(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof gi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ur&&(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 Ii}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ur||a.isPanelMain)&&Et("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 Xr&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&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))}}}),tt.Object.defineProperties(si,{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")}}}),si.prototype.rebuildItemElements=si.prototype.mv,si.prototype.findItemPanelForData=si.prototype.sx,si.prototype.updateTargetBindings=si.prototype.La,si.prototype.copyTemplate=si.prototype.Uy,si.prototype.graduatedValueForPoint=si.prototype.Gz,si.prototype.graduatedPointForValue=si.prototype.Fz,si.prototype.findColumnForLocalX=si.prototype.fz,si.prototype.findRowForLocalY=si.prototype.nz,si.prototype.addColumnDefinition=si.prototype.By,si.prototype.addRowDefinition=si.prototype.Hy,si.prototype.addRowColumnDefinition=si.prototype.Gy,si.prototype.removeColumnDefinition=si.prototype.jA,si.prototype.getColumnDefinition=si.prototype.Eb,si.prototype.removeRowDefinition=si.prototype.oA,si.prototype.getRowDefinition=si.prototype.Fb,si.prototype.removeAt=si.prototype.mb,si.prototype.remove=si.prototype.remove,si.prototype.insertAt=si.prototype.Gb,si.prototype.elt=si.prototype.M,si.prototype.add=si.prototype.add,si.prototype.findObject=si.prototype.fb,si.prototype.findInVisualTree=si.prototype.Nl,si.prototype.walkVisualTreeFrom=si.prototype.qm,si.prototype.findMainElement=si.prototype.Pb;var S1=!1,x1=null,Zc=new Ii;si.className="Panel",si.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=Bs,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 Ws(a){pr(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Xo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Lv,this.hg=Jr,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))}Ws.prototype.copy=function(){var a=new Ws;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=Ci(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=Ci(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ce=Ws.prototype,Ce.qb=function(a){a.classType===Ws&&(this.sizing=a)},Ce.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+vr(this)},Ce.wi=function(a){this.Me=a},Ce.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)},Ce.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===si.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)},Ce.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(oi,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}Ce.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)&&Et("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new kn),this.be.add(E),this},tt.Object.defineProperties(Ws.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&&Qn(a,">= 0",Ws,"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&&Qn(a,">= 0",Ws,"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))&&Qn(a,">= 0",Ws,"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&&Qn(a,">= 0",Ws,"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 Vi(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 ia&&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)||Et("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 ia&&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}}}),Ws.prototype.computeEffectiveSpacing=Ws.prototype.Wc,Ws.prototype.computeEffectiveSpacingTop=Ws.prototype.Io;var Lv=new Xt(Ws,"Default",0),Pp=new Xt(Ws,"None",1),Om=new Xt(Ws,"ProportionalExtra",2);Ws.className="RowColumnDefinition",Ws.Default=Lv,Ws.None=Pp,Ws.ProportionalExtra=Om;function ro(a,y){Vt.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)}bt(ro,Vt),ro.prototype.cloneProtected=function(a){Vt.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=Ci(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 kv:a.Na.nc&&(a.Na=a.Na.copy())}Ce=ro.prototype,Ce.th=function(){Vt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ce.qb=function(a){a===ei||a===tr||a===Eo||a===Jr?this.geometryStretch=a:Vt.prototype.qb.call(this,a)},Ce.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+vr(this)};function Ng(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,Ee,Ae,Te=0,ot=ti(),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,Ee=Math.atan2(re,fe),Ae=Math.sqrt(fe*fe+re*re),ot.push([fe,Ee,xe,Ae]),Te+=Ae,re=le,oe=ue;re=x[0],oe=x[1],fe=b.measuredBounds.width,b instanceof ro&&(fe-=b.strokeWidth),1>fe&&(fe=1),E=x=fe,le=ee/2,ue=le!==0,Ue=0,Ae=ot[Ue],fe=Ae[0],Ee=Ae[1],xe=Ae[2],Ae=Ae[3];for(var St=0;.1<=Te;){if(St===0&&(ue?(E=x,E-=le,Te-=le,ue=!1):E=x,E===0&&(E=1)),E>Te){xi(ot);return}E>Ae?(St=E-Ae,E=Ae):St=0;var Ct=Math.sqrt(E*E/(1+xe*xe));if(0>fe&&(Ct=-Ct),re+=Ct,oe+=xe*Ct,a.translate(re,oe),a.rotate(Ee),a.translate(-(ee/2),-(z/2)),St===0&&b.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Ee),a.translate(-re,-oe),Te-=E,Ae-=E,St!==0){if(Ue++,Ue===ot.length){xi(ot);return}Ae=ot[Ue],fe=Ae[0],Ee=Ae[1],xe=Ae[2],Ae=Ae[3],E=St}}xi(ot)}}Ce.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&&ds(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===si.Link&&re instanceof Yo&&re.category==="Selection"&&re.adornedObject instanceof ro&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(ds(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===di.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===di.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===di.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+Kt.wg*E,oe-xe,le+E,oe-Kt.wg*xe,le+E,oe),a.bezierCurveTo(le+E,oe+Kt.wg*xe,le+Kt.wg*E,oe+xe,le,oe+xe),a.bezierCurveTo(le-Kt.wg*E,oe+xe,le-E,oe+Kt.wg*xe,le-E,oe),a.bezierCurveTo(le-E,oe-Kt.wg*xe,le-Kt.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===di.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 Ee=null,Ae=0;Ae<fe;Ae++){var Te=ue[Ae];switch(Te.type){case ws:a.moveTo(Te.endX,Te.endY);break;case ya: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 $e:if(Te.radiusX===Te.radiusY){var ot=Math.PI/180;a.arc(Te.point1X,Te.point1Y,Te.radiusX,Te.startAngle*ot,(Te.startAngle+Te.sweepAngle)*ot,0>Te.sweepAngle,Ee!==null?Ee.endX:le.startX,Ee!==null?Ee.endY:le.startY)}else if(Ee=wl(Te,le),ot=Ee.length,ot===0)a.lineTo(Te.centerX,Te.centerY);else for(var Ue=0;Ue<ot;Ue++){var St=Ee[Ue];Ue===0&&a.lineTo(St[0],St[1]),a.bezierCurveTo(St[2],St[3],St[4],St[5],St[6],St[7])}break;case st:if(Ue=ot=0,Ee!==null&&Ee.type===$e){if(Ee=wl(Ee,le),St=Ee.length,St===0){a.lineTo(Te.endX,Te.endY);break}Ee=Ee[St-1]||null,Ee!==null&&(ot=Ee[6],Ue=Ee[7])}else ot=Ee!==null?Ee.endX:le.startX,Ue=Ee!==null?Ee.endY:le.startY;if(Ee=Il(Te,le,ot,Ue),ot=Ee.length,ot===0){a.lineTo(Te.endX,Te.endY);break}for(Ue=0;Ue<ot;Ue++)St=Ee[Ue],a.bezierCurveTo(St[2],St[3],St[4],St[5],St[6],St[7]);break;default:Et("Segment not of valid type: "+Te.type)}Te.isClosed&&a.closePath(),Ee=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=ti(),z.type===di.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),Ng(a,y,b,x);else if(z.type===di.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(Ae=le[fe],Ae.type){case ws:Ng(a,y,b,x),b.length=0,b.push(Ae.endX),b.push(Ae.endY),ee=Ae.endX,E=Ae.endY,oe=ee,xe=E;break;case ya:b.push(Ae.endX),b.push(Ae.endY),ee=Ae.endX,E=Ae.endY;break;case ol:Kt.Qe(ee,E,Ae.point1X,Ae.point1Y,Ae.point2X,Ae.point2Y,Ae.endX,Ae.endY,.5,b),ee=Ae.endX,E=Ae.endY;break;case je:Kt.ep(ee,E,Ae.point1X,Ae.point1Y,Ae.endX,Ae.endY,.5,b),ee=Ae.endX,E=Ae.endY;break;case $e:if(Te=wl(Ae,re),Ee=Te.length,Ee===0){b.push(Ae.centerX),b.push(Ae.centerY),ee=Ae.centerX,E=Ae.centerY;break}for(ot=0;ot<Ee;ot++)Ue=Te[ot],Kt.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 st:if(Te=Il(Ae,re,ee,E),Ee=Te.length,Ee===0){b.push(Ae.endX),b.push(Ae.endY),ee=Ae.endX,E=Ae.endY;break}for(ot=0;ot<Ee;ot++)Ue=Te[ot],Kt.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:Et("Segment not of valid type: "+Ae.type)}Ae.isClosed&&(b.push(oe),b.push(xe),Ng(a,y,b,x))}Ng(a,y,b,x)}else if(z.type===di.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),Ng(a,y,b,x);else if(z.type===di.F){if(E=new Os,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,ee=new Io($e),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],Kt.Qe(ee,E,xe[2],xe[3],xe[4],xe[5],xe[6],xe[7],.5,b),ee=xe[6],E=xe[7];Ng(a,y,b,x)}xi(b),a.restore(),a.Vc(!1)}}}},Ce.kk=function(a,y,x){return!Vt.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)},Ce.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Vt.prototype.nk.call(this,a)},Ce.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)}},Ce.ga=function(a,y){if(y===void 0&&(y=new Qe),a instanceof Yi){a.Mc()&&Et("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},Ce.mi=function(a){a===void 0&&(a=new Cn);var y=this.naturalBounds,x=this.oe;y=Cn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Qe.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Fo(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Fo(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Fo(a,b.x,b.y,0,0),Cn.free(y),Qe.free(b),a},Ce.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!==di.j||y||(E+=2);var z=Cn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return Cn.free(z),!1;if(b=E+1e-4,x.type===di.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:(Cn.free(z),Kt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===di.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 Cn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),Cn.free(z),a}if(x.type===di.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 Cn.free(z),!1;ee+=b,E+=b}return this.stroke!==null&&(ee+=b,E+=b),Cn.free(z),0>=ee||0>=E?!1:1>=x*x/(ee*ee)+y*y/(E*E)}if(x.type===di.o)return Cn.free(z),this.fill===null?jl(x,a.x,a.y,E):_l(x,a,E,1<this.strokeWidth,y);Et("Unknown Geometry type: "+x.type)},Ce.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=Kt.Ze[re];typeof le=="string"&&(le=Kt.Ze[le]),typeof le=="function"?(oe=le(null,100,100),Fv[re]=oe):Et("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,le=ee.width;var ue=ee.height;switch(wu(this,!0)){case ei:b=x=0;break;case ri: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 Cr: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 ei:break;case ri:re=le,oe=ue;break;case tr:x=Math.min(le/re,ue/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:Et(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&&Kt.$(this.ua.Sk,a-z)&&Kt.$(this.ua.Rk,y-z)||(this.ua=ro.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===Jr?ri:y:y===Jr?Fv[a.figure].defaultStretch:y}Ce.eh=function(a,y,x,b){Ul(this,a,y,x,b)},Ce.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ce.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 Ee=le.bounds;if(ue=!1,le.type===di.j)if(1.5>=this.strokeWidth)ue=Kt.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=ti(),a=new Qe,Kt.Ve(le.startX+b,le.startY+ue,le.endX+b,le.endY+ue,z,ee,re,oe,a)&&y.push(a),a=new Qe,Kt.Ve(le.startX-b,le.startY-ue,le.endX-b,le.endY-ue,z,ee,re,oe,a)&&y.push(a),a=new Qe,Kt.Ve(le.startX+b,le.startY+ue,le.startX-b,le.startY-ue,z,ee,re,oe,a)&&y.push(a),a=new Qe,Kt.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 xi(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);xi(y)}else if(le.type===di.u)ue=Kt.Ff(Ee.x-fe,Ee.y-fe,Ee.x+Ee.width+fe,Ee.y+Ee.height+fe,z,ee,re,oe,E);else if(le.type===di.F){y=Cn.allocAt(Ee.x,Ee.y,Ee.width,Ee.height).Bc(fe,fe);e:if(y.width===0)ue=Kt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,E);else if(y.height===0)ue=Kt.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}Cn.free(y)}else if(le.type===di.o){xe=Qe.alloc();var Ae=re-z,Te=oe-ee,ot=Ae*Ae+Te*Te,Ue=z,St=ee;if(0<ot&&Ee.contains(Ue,St)&&(xe.x=Ue,xe.y=St,this.ca(xe)))for(Ae!==0&&.5>Math.abs(Ae)?(Te*=.5/Ae,Ae=.5):Te!==0&&.5>Math.abs(Te)&&(Ae*=.5/Te,Te=.5),Ue-=Ae,St-=Te;Ee.contains(Ue,St);)Ue-=Ae,St-=Te;for(E.x=re,E.y=oe,Te=0;Te<le.figures.count;Te++){var Ct=le.figures.s[Te],Ft=Ct.isFilled?Ue:z,jt=Ct.isFilled?St:ee,yn=Ct.segments;Ee=Ct.startX,Ae=Ct.startY;for(var Fi=Ee,Xi=Ae,ji=0;ji<yn.count;ji++){var fi=yn.s[ji],_n=fi.type,Ur=fi.endX,Ir=fi.endY,Jo=!1;switch(_n){case ws:Fi=Ur,Xi=Ir;break;case ya:Jo=Rm(Ee,Ae,Ur,Ir,Ft,jt,re,oe,xe);break;case ol:Jo=Kt.Eo(Ee,Ae,fi.point1X,fi.point1Y,fi.point2X,fi.point2Y,Ur,Ir,Ft,jt,re,oe,.6,xe);break;case je:Jo=Kt.Eo(Ee,Ae,Ee+2/3*(fi.point1X-Ee),Ae+2/3*(fi.point1Y-Ae),Ur+2/3*(fi.point1X-Ur),Ir+2/3*(fi.point1Y-Ir),Ur,Ir,Ft,jt,re,oe,.6,xe);break;case $e:case st:_n=fi.type===$e?wl(fi,Ct):Il(fi,Ct,Ee,Ae);var wa=_n.length;if(wa===0){Jo=Rm(Ee,Ae,fi.type===$e?fi.centerX:fi.endX,fi.type===$e?fi.centerY:fi.endY,Ft,jt,re,oe,xe);break}for(Ir=null,Ur=0;Ur<wa;Ur++){if(Ir=_n[Ur],Ur===0&&Rm(Ee,Ae,Ir[0],Ir[1],Ft,jt,re,oe,xe)){var qs=Im(Ft,jt,xe,ot,E);qs<ot&&(ot=qs,ue=!0)}Kt.Eo(Ir[0],Ir[1],Ir[2],Ir[3],Ir[4],Ir[5],Ir[6],Ir[7],Ft,jt,re,oe,.6,xe)&&(qs=Im(Ft,jt,xe,ot,E),qs<ot&&(ot=qs,ue=!0))}Ur=Ir[6],Ir=Ir[7];break;default:Et("Unknown Segment type: "+_n)}Ee=Ur,Ae=Ir,Jo&&(Jo=Im(Ft,jt,xe,ot,E),Jo<ot&&(ot=Jo,ue=!0)),fi.isClosed&&(Ur=Fi,Ir=Xi,Rm(Ee,Ae,Ur,Ir,Ft,jt,re,oe,xe)&&(fi=Im(Ft,jt,xe,ot,E),fi<ot&&(ot=fi,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,Qe.free(xe)}else Et("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(Kt.$(a,x)&&Kt.$(y,b)||Kt.$(E,ee)&&Kt.$(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||Kt.$(oe.y,a))&&(oe.y<y||Kt.$(oe.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||Kt.$(oe.x,y))&&(oe.x<a||Kt.$(oe.x,a))&&(le=!0)),le)}Ce.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=Qe.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)))),Qe.free(z),E},Ce.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Rr.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var ee=Qe.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 Qe.free(ee),!0;var re=Qe.alloc(),oe=Qe.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,kf(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=a,ee.transform(x),kf(this,ee,re,oe)?y=!0:(re.x=b,re.y=a,re.transform(x),kf(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=z,ee.transform(x),kf(this,ee,re,oe)&&(y=!0)))),Qe.free(ee),Rr.free(x),Qe.free(re),Qe.free(oe),y};function kf(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)}Ce.tx=function(a,y,x){function b(ot,Ue){for(var St=ot.length,Ct=0;Ct<St;Ct+=2)if(Ue.zd(ot[Ct],ot[Ct+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,Bi(a.x,a.y,re,oe)<=E&&Bi(a.x,a.y,le,oe)<=E&&Bi(a.x,a.y,re,ee)<=E&&Bi(a.x,a.y,le,ee)<=E)return!0}if(re=y.startX,oe=y.startY,le=y.endX,ee=y.endY,y.type===di.j){if(x=(re-le)*(a.x-le)+(oe-ee)*(a.y-ee),Oi(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===di.u)return y=!1,x&&(y=Oi(a.x,a.y,re,oe,re,ee)<=E||Oi(a.x,a.y,re,oe,le,oe)<=E||Oi(a.x,a.y,le,oe,le,ee)<=E||Oi(a.x,a.y,re,ee,le,ee)<=E),y;if(y.type===di.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 Oi(a.x,a.y,re,oe,le,ee)<=E;if(x){if(a=Kt.$y(ue,fe,y,z),a*a<=E)return!0}else return!(Bi(y,z,-ue,0)>=E||Bi(y,z,0,-fe)>=E||Bi(y,z,0,fe)>=E||Bi(y,z,ue,0)>=E)}else if(y.type===di.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&&Oi(a.x,a.y,z,re,z,le)>E&&Oi(a.x,a.y,z,re,oe,re)>E&&Oi(a.x,a.y,oe,le,z,le)>E&&Oi(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 ya:if(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E)return!1;break;case ol:var xe=ti();if(Kt.Qe(ee,ue,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.8,xe),ee=b(xe,a),xi(xe),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case je:if(xe=ti(),Kt.ep(ee,ue,fe.point1X,fe.point1Y,fe.endX,fe.endY,.8,xe),ee=b(xe,a),xi(xe),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case $e:case st:xe=fe.type===$e?wl(fe,z):Il(fe,z,ee,ue);var Ee=xe.length;if(Ee===0){if(ee=fe.type===$e?fe.centerX:fe.endX,ue=fe.type===$e?fe.centerY:fe.endY,a.zd(ee,ue)>E)return!1;break}fe=null;for(var Ae=ti(),Te=0;Te<Ee;Te++)if(fe=xe[Te],Ae.length=0,Kt.Qe(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.8,Ae),b(Ae,a))return xi(Ae),!1;xi(Ae),fe!==null&&(ee=fe[6],ue=fe[7]);break;default:Et("Unknown Segment type: "+fe.type)}}return!0}}}return!1},Ce.qc=function(){this.ua=null},Ce.kq=function(){return this.ig};function w1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Np,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ls):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new Yi(1-Ls.x,Ls.y)))}ro.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=kd[a.toArrow];else a.fromArrow!=="None"?b=kd[a.fromArrow]:(b=Kt.Ze[a.figure],typeof b=="string"&&(b=Kt.Ze[b]),b===void 0&&Et("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Kt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function P1(a){var y=kd[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=kd[x],y===void 0){var b=null,E;for(E in Kt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=di.parse(Kt.um[b],!1),kd[b]=a,x!==b&&(kd[x]=b),b}}return typeof y=="string"?y:y instanceof di?a:null}tt.Object.defineProperties(ro.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=di.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Qe.allocAt(-y.x,-y.y),Qe.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 ia&&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 ia&&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 Qn(a,"value >= 0",ro,"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"?Qn(a,'"butt", "round", or "square"',ro,"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"?Qn(a,'"miter", "bevel", or "round"',ro,"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)||Et("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=Kt.Ze[a];typeof x=="function"?x=a:(x=Kt.Ze[a.toLowerCase()])||Et("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?Et("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?Et("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:Xo},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:Xo},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:Jr},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 Nd),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 Nd),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 Nd),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 Nd),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),ro.prototype.intersectsRect=ro.prototype.Yc,ro.prototype.containedInRect=ro.prototype.fh,ro.prototype.getNearestIntersectionPoint=ro.prototype.rs,ro.prototype.getDocumentBounds=ro.prototype.mi,ro.prototype.getDocumentPoint=ro.prototype.ga;var kd=new Hi,Fv=new Hi;ro.className="Shape",ro.getFigureGenerators=function(){var a=new Ii,y;for(y in Kt.Ze)y!==y.toLowerCase()&&a.add(y,Kt.Ze[y]);return a.freeze(),a},ro.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Kt.Ze;b[a]=y,b[x]=a},ro.getArrowheadGeometries=function(){var a=new Ii;for(b in Kt.um)if(kd[b]===void 0){var y=di.parse(Kt.um[b],!1);kd[b]=y,y=b.toLowerCase(),y!==b&&(kd[y]=b)}for(var x in kd)if(x!==x.toLowerCase()){var b=kd[x];b instanceof di&&a.add(x,b)}return a.freeze(),a},ro.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=di.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Et("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=kd;b[a]=x,b[y]=a};function kv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Jr,this.gg=this.fg=Xo}kv.prototype.copy=function(){var a=new kv;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 Vt.call(this),Zm||(Pu=cs?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}bt(ba,Vt),ba.prototype.cloneProtected=function(a){Vt.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())}Ce=ba.prototype,Ce.th=function(){Vt.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}Ce.qb=function(a){a.classType===ba?this.wrap=a:Vt.prototype.qb.call(this,a)},Ce.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ce.v=function(){Vt.prototype.v.call(this)},Ce.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;ds(this,a,this.xc,!0,!1,x,b),(oe||le)&&ds(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 po:a.translate(0,z),a.scale(1,-1);break;case ua: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 Ee=this.Qc[xe];Ee>E&&(Ee=E),b+=y,this.Oj(this.Qb[xe],a,0,b,E,ee,Ee,x,re,oe,le),b+=ee+fe}switch(this.flip){case jo:a.scale(-1,1),a.translate(-E,0);break;case po:a.scale(1,-1),a.translate(0,-z);break;case ua:a.scale(-1,-1),a.translate(-E,-z)}}},Ce.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"))}},Ce.kk=function(a,y,x){if(!Vt.prototype.kk.call(this,a,y,x))return!1;if(ds(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},Ce.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Vt.prototype.nk.call(this,a)},Ce.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)}},Ce.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Pu!==null&&k1!==z&&(k1=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),ca(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Ce.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 Nv(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();Nv(a,z,y,oe),E+=oe.height,zn.free(oe),a.Gc+=a.Le}else Nv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=E}tt.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:ei},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();Nv(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),ca(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r: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 ia&&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 Nd),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 Nd),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 Nd),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 Nd),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 Nd),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&&Qn(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 Xt(ba,"None",0),A1=new Xt(ba,"WrapFit",1),Bv=new Xt(ba,"WrapDesiredSize",2),L1=new Xt(ba,"WrapBreakAll",3),Tv=new Xt(ba,"OverflowClip",0),Hm=new Xt(ba,"OverflowEllipsis",1),Ep=new Xt(ba,"FormatTrim",0),M1=new Xt(ba,"FormatNone",0),Mx=/[ \u200b\u00ad]/,Ov=new Hi,F1=0,Wm=new Hi,Iv=0,Ap="...",k1="",Pu=null,Zm=!1;ba.className="TextBlock";function Rv(){this.nc=!1,this.Hd=null,this.Xf=ei,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 Hi,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=cs?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 Nd(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Nd.prototype.copy=function(){var a=new Nd;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Nd.className="GradElementSettings";function Cu(a,y){Vt.call(this),this.Eg=null,this.qo="",this.Xg=ko,this.Nk=ri,this.Zg=this.Hd=null,this.Mk=So,this.Xf=ei,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;bt(Cu,Vt),Cu.prototype.cloneProtected=function(a){Vt.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===ei||a===tr||a===Eo?this.imageStretch=a:Vt.prototype.qb.call(this,a)},Cu.prototype.toString=function(){return"Picture("+this.source+")#"+vr(this)};function Tg(a){a===void 0&&(a=""),a!==""?Bg[a]&&(delete Bg[a],Km--):(Bg=new Hi,Km=0)}function N1(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()||(Hs(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=ti();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);xi(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,Ee=this.Nk,Ae=this.Mk;switch(Ee){case ei:if(this.sourceRect.w())break;fe>=b.width&&(z=z+Ae.offsetX+(fe*Ae.x-b.width*Ae.x)),xe>=b.height&&(ee=ee+Ae.offsetY+(xe*Ae.y-b.height*Ae.y)),oe=Math.min(b.width,fe),re=Math.min(b.height,xe);break;case ri:fe=b.width,xe=b.height;break;case tr:case Eo:Ee===tr?(Ee=Math.min(b.height/xe,b.width/fe),fe*=Ee,xe*=Ee):Ee===Eo&&(Ee=Math.max(b.height/xe,b.width/fe),fe*=Ee,xe*=Ee,fe>=b.width&&(z=(z+Ae.offsetX+(fe*Ae.x-b.width*Ae.x)/fe)*oe),xe>=b.height&&(ee=(ee+Ae.offsetY+(xe*Ae.y-b.height*Ae.y)/xe)*re),oe*=1/(fe/b.width),re*=1/(xe/b.height),fe=b.width,xe=b.height)}Ee=this.Df()*y.scale;var Te=fe*Ee*xe*Ee,ot=oe*re/Te,Ue=x.__goCache;Ee=null;var St=Fx;if(!E){if(x.sq&&Ue!==void 0&&4<Te&&ot>St*St)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<ot;ue++)Ee=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(Ct){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Ct){this.vl=!0}}if(this.vl)return}}switch(E=fe<b.width?Ae.offsetX+(b.width*Ae.x-fe*Ae.x):0,Ae=xe<b.height?Ae.offsetY+(b.height*Ae.y-xe*Ae.y):0,this.flip){case jo:a.translate(Math.min(b.width,fe),0),a.scale(-1,1);break;case po:a.translate(0,Math.min(b.height,xe)),a.scale(1,-1);break;case ua: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&&Ee!==null&&Ee.ratio!==1){a.save(),y=Ee.ratio;try{a.drawImage(Ee.source,z/y,ee/y,Math.min(Ee.source.width,oe/y),Math.min(Ee.source.height,re/y),E,Ae,Math.min(b.width,fe),Math.min(b.height,xe)),a instanceof Ku&&(this.bt=[z/y,ee/y,Math.min(Ee.source.width,oe/y),Math.min(Ee.source.height,re/y),E,Ae,Math.min(b.width,fe),Math.min(b.height,xe)])}catch(Ct){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,E,Ae,Math.min(b.width,fe),Math.min(b.height,xe)),a instanceof Ku&&(this.bt=[z,ee,oe,re,E,Ae,Math.min(b.width,fe),Math.min(b.height,xe)])}catch(Ct){this.en=!1}switch(this.flip){case jo:a.scale(-1,1),a.translate(-Math.min(b.width,fe),0);break;case po:a.scale(1,-1),a.translate(0,-Math.min(b.height,xe));break;case ua: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===ri||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===ri||z===Cr?(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)),ca(this.dc,a,y),this.Ge(0,0,a,y)},Cu.prototype.eh=function(a,y,x,b){Ul(this,a,y,x,b)},tt.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||Et("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()||(Hs(this,!1),this.v())):x&&N1(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(cs){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Km&&(Tg(),x=Bg),b=cn("img"),b.hn=!0,N1(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 Hi,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 di,this.mc=null}Og.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new di,this.mc=null};function Ig(a,y,x,b,E,z){a.mc=new Os,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 kx(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(ya);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($e);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 Nx(a,y,x,b,E,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new Io(st,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=Kt.Ze;b[a]=y,b[x]=a}Vl("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Kt.Mf[a];return b!==void 0||(b=new di(di.u),b.endX=y,b.endY=x,Kt.Nf<Kt.vm&&(Kt.Mf[a]=b,Kt.Nf++)),b}),Vl("Square",function(a,y,x){a="s"+y+","+x;var b=Kt.Mf[a];return b!==void 0||(b=new di(di.u),b.endX=y,b.endY=x,b.defaultStretch=tr,Kt.Nf<Kt.vm&&(Kt.Mf[a]=b,Kt.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=Kt.Mf[b];if(E!==void 0)return E;var z=a*Kt.wg;return E=new di().add(new Os(a,0,!0).add(new Io(ya,y-a,0)).add(new Io(ol,y,a,y-z,0,y,z)).add(new Io(ya,y,x-a)).add(new Io(ol,y-a,x,y,x-z,y-z,x)).add(new Io(ya,a,x)).add(new Io(ol,0,x-a,z,x,0,x-z)).add(new Io(ya,0,a)).add(new Io(ol,a,0,0,z,z,0).close())),1<z&&(E.spot1=new Yi(0,0,z,z),E.spot2=new Yi(1,1,-z,-z)),Kt.Nf<Kt.vm&&(Kt.Mf[b]=E,Kt.Nf++),E}),Vl("Border","RoundedRectangle"),Vl("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Kt.Mf[a];return b!==void 0||(b=new di(di.F),b.endX=y,b.endY=x,b.spot1=Ks,b.spot2=Ts,Kt.Nf<Kt.vm&&(Kt.Mf[a]=b,Kt.Nf++)),b}),Vl("Circle",function(a,y,x){a="c"+y+","+x;var b=Kt.Mf[a];return b!==void 0||(b=new di(di.F),b.endX=y,b.endY=x,b.spot1=Ks,b.spot2=Ts,b.defaultStretch=tr,Kt.Nf<Kt.vm&&(Kt.Mf[a]=b,Kt.Nf++)),b}),Vl("TriangleRight",function(a,y,x){return new di().add(new Os(0,0).add(new Io(ya,y,.5*x)).add(new Io(ya,0,x).close())).pm(0,.25,.5,.75)}),Vl("TriangleDown",function(a,y,x){return new di().add(new Os(0,0).add(new Io(ya,y,0)).add(new Io(ya,.5*y,x).close())).pm(.25,0,.75,.5)}),Vl("TriangleLeft",function(a,y,x){return new di().add(new Os(y,x).add(new Io(ya,0,.5*x)).add(new Io(ya,y,0).close())).pm(.5,.25,1,.75)}),Vl("TriangleUp",function(a,y,x){return new di().add(new Os(y,x).add(new Io(ya,0,x)).add(new Io(ya,.5*y,0).close())).pm(.25,.5,.75,1)}),Vl("Triangle","TriangleUp"),Vl("Diamond",function(a,y,x){return new di().add(new Os(.5*y,0).add(new Io(ya,0,.5*x)).add(new Io(ya,.5*y,x)).add(new Io(ya,y,.5*x).close())).pm(.25,.25,.75,.75)}),Vl("LineH",function(a,y,x){return a=new di(di.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 di(di.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 di().add(new Os(0,x/2,!1).add(new Io(ya,y,x/2)).add(new Io(ws,y/2,0)).add(new Io(ya,y/2,x)))}),Vl("XLine",function(a,y,x){return new di().add(new Os(0,x,!1).add(new Io(ya,y,0)).add(new Io(ws,0,0)).add(new Io(ya,y,x)))}),Vl("LineRight",function(a,y,x){return new di().add(new Os(.25*y,0,!1).add(new Io(ya,.75*y,.5*x)).add(new Io(ya,.25*y,x)))}),Vl("LineDown",function(a,y,x){return new di().add(new Os(0,.25*x,!1).add(new Io(ya,.5*y,.75*x)).add(new Io(ya,y,.25*x)))}),Vl("LineLeft",function(a,y,x){return new di().add(new Os(.75*y,0,!1).add(new Io(ya,.25*y,.5*x)).add(new Io(ya,.75*y,x)))}),Vl("LineUp",function(a,y,x){return new di().add(new Os(0,.75*x,!1).add(new Io(ya,.5*y,.25*x)).add(new Io(ya,y,.75*x)))}),Kt.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=$o,this.ir=null,this.jr="",this.lr=Xo,this.Gq="",this.Hq=ga,this.Pq=It,this.Kq=sn,this.Up=null,this.Cq=127,this.zr=Hn,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 ur(a,y){a===void 0||a instanceof Us||typeof a=="string"?si.call(this,a):(si.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 Qe(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Cn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}bt(ur,si),ur.prototype.cloneProtected=function(a){si.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},Ce=ur.prototype,Ce.Af=function(a){si.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ce.toString=function(){var a=Ni(this.constructor)+"#"+vr(this);return this.data!==null&&(a+="("+Zi(this.data)+")"),a};function bu(a){a.P===null?a.P=new zv:a.P.nc&&(a.P=a.P.copy())}Ce.th=function(){si.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ce.gk=function(a,y,x,b,E,z,ee){var re=this.diagram;re!==null&&(a===ui&&y==="elements"?E instanceof si?Mf(E,function(oe){dy(re.partManager,oe),gh(re,oe)}):Ad(re,E):a===Mi&&y==="elements"&&(E instanceof si?Mf(E,function(oe){hy(re.partManager,oe,re)}):Gf(re,E)),re.cb(a,y,x,b,E,z,ee))},Ce.La=function(a){if(si.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 si&&Mf(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},ur.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},ur.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},ur.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 Ii),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)))}}},ur.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)}},ur.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=ti();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);xi(y)}},ur.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 Xr?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Yo))break e;kc(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=si.Link),x.adornedObject=y)}if(x!==null){x.type===si.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Dx(this,a),y=this.adornments;y.next();)y.value.La()}},ur.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=Cn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Cn.free(b),Wv(a,!1)}}ur.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Rr);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},ur.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=Qe.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),Qe.free(ee)}},ur.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},ur.prototype.moveTo=function(a,y,x){a=Qe.allocAt(a,y),this.move(a,x),Qe.free(a)},ur.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())},ur.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())},ur.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Ii),y.I(a)!==null)return y.I(a);var x=si.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 Qe),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}ur.prototype.mi=function(a){return a===void 0&&(a=new Cn),a.assign(this.actualBounds)},ur.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function R1(a){var y=Qe.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof ro?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 Nf(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}ur.prototype.arrange=function(){if(iu(this)===!1)I1(this);else{Ld(this,!1);var a=this.Ib,y=Cn.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()||Kt.B(y.width,a.width)&&Kt.B(y.height,a.height)||0<=this.vw&&this.C(16),Cn.free(y),Wv(this,!1)}},Ce=ur.prototype,Ce.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Cn.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),Cn.free(E)}!(this.G&65536)&&a.D(y)||Z1(this,b,x),x.N(),!a.w()&&!y.w()||Ga(a,y)||(this instanceof Di&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ce.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 Qe(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 Yo||(y=y.animationManager,y.zb&&Ll(y,a,new Qe(b,E),x))}Ce.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)},Ce.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,Qe.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 Yo||Ll(x,a,new Qe(z,ee),y),b||y.x===z&&y.y===ee||a.g("position",new Qe(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 Di&&tu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?Uh(a)?(ma(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ce.si=function(){return!0},Ce.Zc=function(){return!0},Ce.ph=function(){return!1},Ce.Dd=function(){return!0};function Hv(a,y,x,b){y.constructor===a.constructor||G1||(G1=!0,Un('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),Un(" Old class: "+Ni(a.constructor)+", new class: "+Ni(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 Di&&(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 Di&&(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)}ur.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},ur.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},ur.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},ur.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},ur.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},ur.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},ur.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},ur.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},ur.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}Ce=ur.prototype,Ce.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}Ce.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ce.N=function(){var a=this.diagram;a!==null&&!iu(this)&&!Yh(this)&&this.isVisible()&&this.Ib.w()&&a.N(Nf(this,this.Ib))},Ce.v=function(){si.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Di&&this.labeledLink!==null&&nu(this.labeledLink),a.$b(!0))},Ce.Vo=function(a){a||(a=this.Ah,a!==null&&Xv(a,this))},Ce.Wo=function(a){a||(a=this.Ah,a!==null&&Jv(a,this))},Ce.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ce.oz=function(){return Kv(this,this)};function Kv(a,y){var x=y.containingGroup;return x!==null?1+Kv(a,x):y instanceof Di&&(y=y.labeledLink,y!==null)?Kv(a,y):0}Ce.sz=function(){return K1(this,this)};function K1(a,y){var x=y.containingGroup;return x!==null||y instanceof Di&&(x=y.labeledLink,x!==null)?K1(a,x):y}Ce.Td=function(a){return a instanceof Xr?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 Di&&(y=y.labeledLink,y!==null)?Vv(a,y,x):!1:!0}Ce.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Xr&&Um(y,!0),y instanceof Di){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 Di&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Xr&&Um(y,!1),y instanceof Di&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},ur.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Di&&this.isLinkLabel)},ur.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 Di&&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 Yo)){if(a.add(y),y instanceof Di){if(x&&y instanceof Xr)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 gi)for(y=y.labelNodes;y.next();)Xh(a,y.value,x,b,E,z)}}tt.Object.defineProperties(ur.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Nr: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(Mi,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(ui,"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 Yo?this.type!==si.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:It},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:sn},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:ga},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 Yo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(E=this.clone(),E.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||b===null||this instanceof Yo?this instanceof Yo&&(E=this.adornedPart,E!==null&&(a=E.Qf,a!==null&&a.remove(y),E.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(b,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(kc(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&&(kc(x),x=x.copy(),x===null||x instanceof gi||(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 gi?(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:$o},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:Xo},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&&Et("Cannot make a Group a member of itself: "+this.toString()),Et("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 Xr&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Xv(a,this):this instanceof Xr&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var z=E.wa(a!==null?a.data:null);E.mp(b,z)}}if(b=this.containingGroupChanged,b!==null&&(E=!0,x!==null&&(E=x.aa,x.aa=!0),b(this,y,a),x!==null&&(x.aa=E)),this instanceof Xr){for(x=new Ln,Xh(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Di)for(b=b.linksConnected;b.next();)Rg(b.value)}if(this instanceof Di){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 Et("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 Di&&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:Hn},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))}}}),ur.prototype.invalidateLayout=ur.prototype.C,ur.prototype.findCommonContainingGroup=ur.prototype.px,ur.prototype.isMemberOf=ur.prototype.Td,ur.prototype.findTopLevelPart=ur.prototype.sz,ur.prototype.findSubGraphLevel=ur.prototype.oz,ur.prototype.ensureBounds=ur.prototype.Va,ur.prototype.getDocumentBounds=ur.prototype.mi,ur.prototype.findObject=ur.prototype.fb,ur.prototype.moveTo=ur.prototype.moveTo,ur.prototype.invalidateAdornments=ur.prototype.Wb,ur.prototype.clearAdornments=ur.prototype.Ej,ur.prototype.removeAdornment=ur.prototype.Jf,ur.prototype.addAdornment=ur.prototype.bh,ur.prototype.findAdornment=ur.prototype.Pj,ur.prototype.updateTargetBindings=ur.prototype.La;var G1=!1;ur.className="Part",ur.LayoutNone=0,ur.LayoutAdded=1,ur.LayoutRemoved=2,ur.LayoutShown=4,ur.LayoutHidden=8,ur.LayoutNodeSized=16,ur.LayoutGroupLayout=32,ur.LayoutNodeReplaced=64,ur.LayoutStandard=127,ur.LayoutAll=16777215;function Yo(a,y){a===void 0||a instanceof Us||typeof a=="string"?ur.call(this,a):(ur.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)}bt(Yo,ur),Yo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Yo.prototype.updateRelationshipsFromData=function(){},Yo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof gi&&y instanceof ro){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 ro&&(E.ua=a)}}},Yo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!iu(a))},Yo.prototype.Zc=function(){return!1},Yo.prototype.gk=function(a,y,x,b,E,z,ee){if(a===ui&&y==="elements"){if(E instanceof ou)this.$a===null&&(this.$a=E);else if(E instanceof si){var re=E.Nl(function(oe){return oe instanceof ou});re instanceof ou&&this.$a===null&&(this.$a=re)}}else a===Mi&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof si&&this.$a.rg(b)&&(this.$a=null));ur.prototype.gk.call(this,a,y,x,b,E,z,ee)},Yo.prototype.updateAdornments=function(){},Yo.prototype.Lj=function(){},tt.Object.defineProperties(Yo.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),Yo.className="Adornment";function 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 Di(a,y){a===void 0||a instanceof Us||typeof a=="string"?ur.call(this,a):(ur.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new kn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}bt(Di,ur),Di.prototype.cloneProtected=function(a){ur.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ce=Di.prototype,Ce.Af=function(a){ur.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())}Ce.th=function(){ur.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}Ce.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=U1(this,a,y,x),a!==null&&a.Sl()},Ce.gk=function(a,y,x,b,E,z,ee){a===ui&&y==="elements"?this.wc=null:a===Mi&&y==="elements"&&(this.wc=null),ur.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ce.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)}}Ce.si=function(){return!0},Di.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Di.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Di.prototype.isVisible=function(){if(!ur.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===js){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},Di.prototype.Zb=function(a){ur.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)}},Di.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)})}}Di.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Qi(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Ce=Di.prototype,Ce.Mo=function(a){a===void 0&&(a=null);var y=new Qi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Ce.Sd=function(a){a===void 0&&(a=null);var y=new Qi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Ce.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 Ti(x):Nr},Ce.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 Ti(x):Nr},Ce.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 Ti(x):Nr},Ce.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Qi(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},Ce.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Qi(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}}}Di.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ce=Di.prototype,Ce.Vo=function(a){ur.prototype.Vo.call(this,a),a||(Lp(this),a=this.Yk,a!==null&&rS(a,this))},Ce.Wo=function(a){ur.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ce.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,ur.prototype.Lj.call(this)},Ce.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 Ii: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=ti()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);xi(x)}}}Ce.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},Ce.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}},Ce.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},Ce.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},Ce.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Di)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},Ce.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},Ce.uz=function(){return $1(this,this)};function $1(a,y){return y=y.pg(),y===null?0:1+$1(a,y)}Ce.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Qi(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},Ce.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 kn,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 kn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Ti(x):Nr},Ce.wz=function(a){a===void 0&&(a=1/0);var y=new Ln;return Xh(y,this,!1,a,!0),y},Di.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(Ee){return Ee===xe.uv||!Ee.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}Di.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(Ee){return Ee===xe.vv||!Ee.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}tt.Object.defineProperties(Di.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 Vi(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))}}}),Di.prototype.expandTree=Di.prototype.expandTree,Di.prototype.collapseTree=Di.prototype.collapseTree,Di.prototype.findTreeParts=Di.prototype.wz,Di.prototype.findTreeChildrenNodes=Di.prototype.Ou,Di.prototype.findTreeChildrenLinks=Di.prototype.Qo,Di.prototype.findTreeLevel=Di.prototype.uz,Di.prototype.findTreeParentChain=Di.prototype.vz,Di.prototype.findTreeParentNode=Di.prototype.pg,Di.prototype.findTreeParentLink=Di.prototype.kh,Di.prototype.findCommonTreeParent=Di.prototype.gz,Di.prototype.findTreeRoot=Di.prototype.xz,Di.prototype.isInTreeOf=Di.prototype.Nz,Di.prototype.findPort=Di.prototype.ns,Di.prototype.findLinksTo=Di.prototype.kz,Di.prototype.findLinksBetween=Di.prototype.jz,Di.prototype.findNodesInto=Di.prototype.Oo,Di.prototype.findNodesOutOf=Di.prototype.Po,Di.prototype.findNodesConnected=Di.prototype.Mu,Di.prototype.findLinksInto=Di.prototype.Sd,Di.prototype.findLinksOutOf=Di.prototype.Mo,Di.prototype.findExternalTreeLinksConnected=Di.prototype.qx,Di.prototype.invalidateConnectedLinks=Di.prototype.Bd,Di.prototype.invalidateLinkBundle=Di.prototype.Lz;var Bx=new Xt(Di,"SpreadingNone",10),Qm=new Xt(Di,"SpreadingEvenly",11),Uv=new Xt(Di,"SpreadingPacked",12);Di.className="Node",Di.SpreadingNone=Bx,Di.SpreadingEvenly=Qm,Di.SpreadingPacked=Uv;function Xr(a,y){a===void 0||a instanceof Us||typeof a=="string"?Di.call(this,a):(Di.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)}bt(Xr,Di),Xr.prototype.cloneProtected=function(a){Di.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())},Ce=Xr.prototype,Ce.Af=function(a){Di.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 Di)x.Bd(y);else if(x instanceof gi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ce.gk=function(a,y,x,b,E,z,ee){if(a===ui&&y==="elements"){if(E instanceof ou)this.$a===null?this.$a=E:this.$a!==E&&Et("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof si){var re=E.Nl(function(oe){return oe instanceof ou});re instanceof ou&&(this.$a===null?this.$a=re:this.$a!==re&&Et("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Mi&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof si&&this.$a.rg(b)&&(this.$a=null));Di.prototype.gk.call(this,a,y,x,b,E,z,ee)},Ce.Xl=function(a,y){Di.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==si.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof si&&(a=a.Pb()),this.tb===null&&(this.tb=new Cn),a.mi(this.tb),a instanceof ro&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ce.eh=function(a,y,x,b){this.nf=this.$a,Di.prototype.eh.call(this,a,y,x,b)},Ce.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof gi||y.Va()}),Di.prototype.Va.call(this)},Ce.si=function(){if(!Di.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Di){if(y.isVisible()&&iu(y))return!1}else if(y instanceof gi&&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 Xr&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof gi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Jv(a,y){if(a.Gn.remove(y)){y instanceof Xr&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof gi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ce.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)}Di.prototype.Lj.call(this)},Xr.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=Dn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Xr.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=Dn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Xr.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Ce=Xr.prototype,Ce.Bd=function(a){var y=(this.U&65536)!==0;if(Di.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()))}}},Ce.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 Di)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ce.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 Di)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},Ce.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ln;return a(this,y),y},Ce.Rj=function(){var a=new Ln;return Xh(a,this,!0,0,!0),a.remove(this),a},Ce.Zb=function(a){Di.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Xr.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();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 Xr&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nS(z,y,x,b)),z instanceof Di)z.Bd(y),x.Aj(z,b);else if(z instanceof gi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Xr.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();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 Xr&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,iS(z,y,x,b)),z instanceof Di)z.Bd(y),x.Cj(z,b);else if(z instanceof gi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Xr.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,z=a.y;if(!(b===E||isNaN(b)&&isNaN(E))||!(x===z||isNaN(x)&&isNaN(z))){for(b=E-(isNaN(b)?0:b),x=z-(isNaN(x)?0:x),z=Qe.alloc(),Di.prototype.move.call(this,a,y),a=new Ln,y=this.Rj().iterator;y.next();)E=y.value,E instanceof gi&&(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 Di&&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 gi&&(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());Qe.free(z)}},tt.Object.defineProperties(Xr.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&Et("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)}}}),Xr.prototype.expandSubGraph=Xr.prototype.expandSubGraph,Xr.prototype.collapseSubGraph=Xr.prototype.collapseSubGraph,Xr.prototype.findSubGraphParts=Xr.prototype.Rj,Xr.prototype.findContainingGroupChain=Xr.prototype.hz,Xr.prototype.findExternalNodesConnected=Xr.prototype.iz,Xr.prototype.findExternalLinksConnected=Xr.prototype.Lu,Xr.prototype.ensureBounds=Xr.prototype.Va,Xr.className="Group";function ou(a){Vt.call(this),this.yb=Bs,this.ko=new Cn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}bt(ou,Vt),ou.prototype.cloneProtected=function(a){Vt.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 Oo(0,0,y.width,y.height,a.x,a.y)},ou.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Xr||a instanceof Yo)||Et("Placeholder is not inside a Group or Adornment."),a instanceof Xr){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ca(b,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,b.width,b.height),b=a.memberParts,x=!1;b.next();)if(b.value.isVisible()){x=!0;break}b=a.diagram,!x||b===null||b.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Qe.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Qe.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 ro&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,le=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==si.Link&&(re=z.ga(a.category==="Selection"?ga:a.locationSpot,Qe.alloc()),a.location=re,Qe.free(re)),isNaN(le)||isNaN(ee)?(a=z.ga(ga,Qe.alloc()),le=Cn.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)),ca(y,le.width+b||0,le.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Qe.free(a),Cn.free(le)):(ca(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 Xr&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=Cn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Xr&&!y.isSubGraphExpanded?a.h(E.x-z.left,E.y-z.top,0,0):a.h(E.x-z.left,E.y-z.top,Math.max(E.width+z.left+z.right,0),Math.max(E.height+z.top+z.bottom,0)),Cn.free(x),b&&y instanceof Xr&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},ou.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Xr))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof gi&&(!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},tt.Object.defineProperties(ou.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Vi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),ou.className="Placeholder";function gi(a){ur.call(this,si.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 kn().freeze(),this.Tg=this.Mg=null,this.ml=new Cn,this.ua=new di,this.u=this.o=this.Sf=this.Wf=null,this.su=new Qe,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}bt(gi,ur),gi.prototype.cloneProtected=function(a){ur.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())},Ce=gi.prototype,Ce.Af=function(a){ur.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)},Ce.qb=function(a){a.classType===gi?(a.value&2)===2?this.routing=a:a===nc||a===Eh||a===jg?this.curve=a:a===kp||a===n0||a===i0?this.adjusting=a:a!==ey&&a!==au&&Et("Unknown Link enum value for a Link property: "+a):ur.prototype.qb.call(this,a)},Ce.Xc=function(){this.ba===null&&(this.ba=new mp)},Ce.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)))},Ce.zv=function(){return!1},Ce.Av=function(){},Ce.Zc=function(){return!1},gi.prototype.computeAngle=function(a,y,x){return gi.computeAngle(y,x)},gi.computeAngle=function(a,y){switch(a){default:case au:a=0;break;case Np:a=y;break;case Dp:a=y+90;break;case Bp:a=y-90;break;case ty:a=y+180;break;case r0:a=Kt.bp(y),90<a&&270>a&&(a-=180);break;case Tp:a=Kt.bp(y+90),90<a&&270>a&&(a-=180);break;case Op:a=Kt.bp(y-90),90<a&&270>a&&(a-=180);break;case o0:if(a=Kt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Kt.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}Ce=gi.prototype,Ce.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ur.prototype.oh.call(this)},Ce.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ce.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()}Ce.Vo=function(a){if(ur.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)}},Ce.Wo=function(a){if(ur.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)}},Ce.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))},gi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},gi.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?ur.prototype.move.call(this,a,!1):(a=Qe.allocAt(x.x+b,x.y+E),ur.prototype.move.call(this,a,!1),Qe.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)},gi.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},gi.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},gi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(On),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 Kt.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),Kt.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},gi.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),Kt.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)},Ce=gi.prototype,Ce.i=function(a){return this.Nb.s[a]},Ce.dd=function(a,y){this.Nb.cd(a,y)},Ce.L=function(a,y,x){this.Nb.cd(a,new Qe(y,x))},Ce.Kz=function(a,y){this.Nb.Gb(a,y)},Ce.m=function(a,y,x){this.Nb.Gb(a,new Qe(y,x))},Ce.ne=function(a){this.Nb.add(a)},Ce.yf=function(a,y){this.Nb.add(new Qe(a,y))},Ce.pv=function(a){this.Nb.mb(a)},Ce.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 kn,z=a.Nb.iterator;z.next();){var ee=z.value;E.add(new Qe(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&&xa(ee.animationManager,a,E),a.g("points",z,E)}}Ce.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ce.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&&xa(x.animationManager,this,y),_m(this),this.g("points",a,y)}},Ce.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))}Ce.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())}},Ce.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()}}},gi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(rg||(rg=new Di,rg.desiredSize=_r,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 Di,og.desiredSize=_r,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 Ee=z.x+re/3,Ae=z.y+oe/3,Te=Ee,ot=Ae;Kt.B(oe,0)?ot=0<re?ot-le:ot+le:(ue=-re/oe,fe=Math.sqrt(le*le/(ue*ue+1)),0>le&&(fe=-fe),Te=(0>oe?-1:1)*fe+Ee,ot=ue*(Te-Ee)+Ae),Ee=z.x+2*re/3,Ae=z.y+2*oe/3;var Ue=Ee,St=Ae;Kt.B(oe,0)?St=0<re?St-le:St+le:(Ue=(0>oe?-1:1)*fe+Ee,St=ue*(Ue-Ee)+Ae),this.Fj(),this.ne(z),this.yf(Te,ot),this.yf(Ue,St),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,Kt.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=Cn.alloc(),y.mi(re),oe=re.ca(E),xe.mi(re),le=re.ca(b),(oe||le)&&(ee=y.ga(qm(ee),new Qe),this.dd(0,this.getLinkPointFromPoint(a,y,ee,E,!0,ee)),x=xe.ga(qm(x),new Qe),this.dd(1,this.getLinkPointFromPoint(z,xe,x,b,!1,x))),Cn.free(re))}else{fe=this.isAvoiding,xe&&(ue&&fe||le)&&this.Fj();var Ct=le?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ue,b,E),Ee=Te=Ae=0,(ue||!re||le)&&(ot=this.computeEndSegmentLength(a,y,ee,!0),Ee=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)&&(Ee-=ue?90:30,0>Ct&&(Ee-=180)),0>Ee?Ee+=360:360<=Ee&&(Ee-=360),le&&(ot+=Math.abs(Ct)*(ue?1:2)),Ee===0?Ae=ot:Ee===90?Te=ot:Ee===180?Ae=-ot:Ee===270?Te=-ot:(Ae=ot*Math.cos(Ee*Math.PI/180),Te=ot*Math.sin(Ee*Math.PI/180)),ee.Mc()&&le&&(ot=y.ga(So,Qe.alloc()),Ue=Qe.allocAt(ot.x+1e3*Ae,ot.y+1e3*Te),this.getLinkPointFromPoint(a,y,ot,Ue,!0,fe),Qe.free(ot),Qe.free(Ue))),ot=this.getLinkPoint(b,E,x,!1,ue,a,y);var Ft=St=Ue=0;if(ue||!oe||le){var jt=this.computeEndSegmentLength(b,E,x,!1);Ft=this.getLinkDirection(b,E,ot,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>Ct&&(Ft+=180)),0>Ft?Ft+=360:360<=Ft&&(Ft-=360),le&&(jt+=Math.abs(Ct)*(ue?1:2)),Ft===0?Ue=jt:Ft===90?St=jt:Ft===180?Ue=-jt:Ft===270?St=-jt:(Ue=jt*Math.cos(Ft*Math.PI/180),St=jt*Math.sin(Ft*Math.PI/180)),x.Mc()&&le&&(x=E.ga(So,Qe.alloc()),ee=Qe.allocAt(x.x+1e3*Ue,x.y+1e3*St),this.getLinkPointFromPoint(b,E,x,ee,!1,ot),Qe.free(x),Qe.free(ee))}x=fe,(ue||!re||le)&&(x=new Qe(fe.x+Ae,fe.y+Te)),ee=ot,(ue||!oe||le)&&(ee=new Qe(ot.x+Ue,ot.y+St)),!xe&&!ue&&re&&3<z&&this.adjustPoints(0,fe,z-2,ee)?this.dd(z-1,ot):!xe&&!ue&&oe&&3<z&&this.adjustPoints(1,x,z-1,ot)?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,ot)):(this.Fj(),this.ne(fe),(ue||!re||le)&&this.ne(x),ue&&this.addOrthoPoints(x,Ee,ee,Ft,a,b),(ue||!oe||le)&&this.ne(ee),this.ne(ot))}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}gi.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Qe),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)}gi.prototype.getLinkPoint=function(a,y,x,b,E,z,ee,re){if(re===void 0&&(re=new Qe),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=Qe.alloc(),le=Qe.alloc();var ue=new Cn(y.ga(ga,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),Qe.free(oe),Qe.free(le)}}return re}}return x=y.ga(qm(x),Qe.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=Qe.alloc(),ee=ee.ga(qm(oe),z),E&&(ee=Qv(x,ee)),Qe.free(z)),this.getLinkPointFromPoint(a,y,x,ee,b,re),Qe.free(x),re},gi.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,Qe.alloc()),this.pointsCount>(z?6:2)?(re=E?this.i(1):this.i(this.pointsCount-2),re=z?Qv(oe,re.copy()):x):(x=Qe.alloc(),re=re.ga(So,x),Qe.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,Qe.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},gi.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)},gi.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===Xo?Da:y)):(a=y||this.toPort,a===null?a=So:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Xo?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}gi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==au&&4<this.pointsCount?this.computeMidPoint(new Qe):(a=y.Zn,a=a!==null?hS(a,this):null,a!==null?a.Zo:y.ga(So))},gi.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},gi.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=Rr.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return xv(this,y,x,E),z===void 0&&Rr.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=Rr.alloc(),fe.set(ee),ue instanceof si)re=ue.Cf(a,y,x,b,E,fe);else if(this.path===ue){if(ue instanceof ro)if(re=a,xe=b,ue.pickable===!1)re=!1;else if(fe.multiply(ue.transform),xe)e:{var Ee=re,Ae=fe;if(ue.fh(Ee,Ae))re=!0;else{if(Ae===void 0&&(Ae=ue.transform,Ee.Re(ue.actualBounds))){re=!0;break e}re=Ee.left,xe=Ee.right;var Te=Ee.top;Ee=Ee.bottom;var ot=Qe.alloc(),Ue=Qe.alloc(),St=Qe.alloc(),Ct=Rr.alloc();Ct.set(Ae),Ct.bv(ue.transform),Ct.Vj(),Ue.x=xe,Ue.y=Te,Ue.transform(Ct),ot.x=re,ot.y=Te,ot.transform(Ct),Ae=!1,kf(ue,ot,Ue,St)?Ae=!0:(ot.x=xe,ot.y=Ee,ot.transform(Ct),kf(ue,ot,Ue,St)?Ae=!0:(Ue.x=re,Ue.y=Ee,Ue.transform(Ct),kf(ue,ot,Ue,St)?Ae=!0:(ot.x=re,ot.y=Te,ot.transform(Ct),kf(ue,ot,Ue,St)&&(Ae=!0)))),Rr.free(Ct),Qe.free(ot),Qe.free(Ue),Qe.free(St),re=Ae}}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)),Rr.free(fe)}}}return z===void 0&&Rr.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&Rr.free(ee),!1},gi.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},gi.prototype.computeCorner=function(){if(this.curve===nc)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},gi.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},gi.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===Np||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},gi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===au&&x.bb()}},gi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sS;var y=this.Sf;if(y!==null){for(var x=ti(),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),xi(x)}}return a},gi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},gi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},gi.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===n0)return!1;E===i0&&(E=kp)}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(!Kt.$(le,0)){if(Kt.$(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),Kt.$(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),Kt.$(y,0)||(Kt.$(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 Ee=1;if(oe-re!==0){var Ae=(xe-ue)/(oe-re);Ee=Math.sqrt(1+1/(Ae*Ae))}else Ae=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Te=y.x,ot=y.y,Ue=.5;le!==0&&(Ue=((E-Te)*(E-ee)+(z-ot)*(z-fe))/le);var St=E+Ue*(ee-E),Ct=z+Ue*(fe-z);y=Math.sqrt((Te-St)*(Te-St)+(ot-Ct)*(ot-Ct)),ot<Ae*(Te-St)+Ct&&(y=-y),0<Ae&&(y=-y),Te=re+Ue*(oe-re),Ue=ue+Ue*(xe-ue),Ae!==0?(y=Te+y/Ee,this.L(a,y,Ue-(y-Te)/Ae)):this.L(a,Te,Ue+y)}this.dd(x,b)}return!0;case kp: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,Kt.B(E.y,z.y)?Kt.B(z.x,ee.x)?ue=y.y:Kt.B(z.y,ee.y)&&(re=y.x):Kt.B(E.x,z.x)&&(Kt.B(z.y,ee.y)?re=y.x:Kt.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,Kt.B(E.y,z.y)?Kt.B(z.x,ee.x)?ue=b.y:Kt.B(z.y,ee.y)&&(re=b.x):Kt.B(E.x,z.x)&&(Kt.B(z.y,ee.y)?re=b.x:Kt.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}},gi.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=Qe.alloc(),ue=Qe.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||!la(xe)||re.ca(fe)&&!z.Td(E)||oe.ca(a)&&!E.Td(z))y=!1;else{var Ee=rs(xe,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Ee.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))&&Ee.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))&&Ee.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 Ae=x=null;if(xe.isVirtualized){xe=Ee.bounds.copy(),xe.Bc(-Ee.Ho,-Ee.Go);var Te=Qe.alloc();Hg(Ee,a.x,a.y)||(Kt.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)):Kt.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)):Kt.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(Ee,fe.x,fe.y)||(Kt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,fe.x,fe.y,ue.x,ue.y,Te)?(Ae=fe=Te.copy(),b=ue.ab(Te)):Kt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,ue.x,ue.y,le.x,le.y,Te)?(Ae=fe=Te.copy(),b=le.ab(Te)):Kt.Ff(xe.x,xe.y,xe.x+xe.width,xe.y+xe.height,le.x,le.y,a.x,a.y,Te)&&(Ae=fe=Te.copy(),b=a.ab(Te))),Qe.free(Te)}re=re.copy().ed(oe),re.Bc(Ee.Ho*Ee.Os,Ee.Go*Ee.Os),cS(Ee,a,y,fe,b,re,!0),oe=Dd(Ee,fe.x,fe.y),!Ee.abort&&oe>=Wg&&(uS(Ee),re.Bc(Ee.Ho*Ee.Hx,Ee.Go*Ee.Ix),cS(Ee,a,y,fe,b,re,!1),oe=Dd(Ee,fe.x,fe.y)),!Ee.abort&&oe<Wg&&Dd(Ee,fe.x,fe.y)!==Ah?($v(this,Ee,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?Kt.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)):Kt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=Ee.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)&&(Kt.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)):Kt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=Ee.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)),Ae!==null&&(b===0||b===180?this.yf(z.x,Ae.y):this.yf(Ae.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ue.copy())),Qe.free(le),Qe.free(ue)}},gi.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||!la(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=rs(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)}gi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Oi(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=Oi(y,a,b.x,b.y,x.x,x.y);b=x,re<E&&(z=ee,E=re)}return z},gi.prototype.qc=function(){this.lk=!1,this.v()},gi.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 ro&&(E.ua=this.ua)}}},gi.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&&!Kt.$(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=di.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&&!Kt.$(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=Qe.allocAt(b,oe),x=Qe.alloc(),x.assign(this.i(1)),z=Qe.allocAt(b,oe),E=Qe.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,Ee=le,Ae=this.i(qv(this,le,fe,!1));if((!Kt.$(xe.x,Ee.x)||!Kt.$(Ee.x,Ae.x))&&(!Kt.$(xe.y,Ee.y)||!Kt.$(Ee.y,Ae.y))){var Te=ue;isNaN(Te)&&(Te=this.smoothness/3);var ot=xe.x;xe=xe.y;var Ue=Ee.x;Ee=Ee.y;var St=Ae.x;Ae=Ae.y;var Ct=Te*e0(ot,xe,Ue,Ee);Te*=e0(Ue,Ee,St,Ae),Kt.$(xe,Ee)&&Kt.$(Ue,St)&&(Ue>ot?Ae>Ee?(z.x=Ue-Ct,z.y=Ee-Ct,E.x=Ue+Te,E.y=Ee+Te):(z.x=Ue-Ct,z.y=Ee+Ct,E.x=Ue+Te,E.y=Ee-Te):Ae>Ee?(z.x=Ue+Ct,z.y=Ee-Ct,E.x=Ue-Te,E.y=Ee+Te):(z.x=Ue+Ct,z.y=Ee+Ct,E.x=Ue-Te,E.y=Ee-Te)),Kt.$(ot,Ue)&&Kt.$(Ee,Ae)&&(Ee>xe?(St>Ue?(z.x=Ue-Ct,z.y=Ee-Ct,E.x=Ue+Te):(z.x=Ue+Ct,z.y=Ee-Ct,E.x=Ue-Te),E.y=Ee+Te):(St>Ue?(z.x=Ue-Ct,z.y=Ee+Ct,E.x=Ue+Te):(z.x=Ue+Ct,z.y=Ee+Ct,E.x=Ue-Te),E.y=Ee-Te)),(Kt.$(ot,Ue)&&Kt.$(Ue,St)||Kt.$(xe,Ee)&&Kt.$(Ee,Ae))&&(ot=.5*(ot+St),xe=.5*(xe+Ae),z.x=ot,z.y=xe,E.x=ot,E.y=xe),(fe===1||fe===2&&Kt.$(ee.x,this.i(0).x)&&Kt.$(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,pt)),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),Qe.free(y),Qe.free(x),Qe.free(z),Qe.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,pt)),wh(re,z.x-b,z.y-oe,E.x-b,E.y-oe,ee.x-b,ee.y-oe);else{for(z=Qe.alloc(),z.assign(this.i(0)),E=Qe.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,pt)),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,ot=-oe,xe=ue,Ue=this.i(le),Te=x,Kt.B(z.y,xe.y)&&Kt.B(xe.x,Ue.x))if(Ae=Math.min(ee,Math.abs(xe.x-E.x)/2),Ae=Ct=Math.min(Ae,Math.abs(Ue.y-xe.y)/2),Kt.B(Ae,0))ig(this,re,fe,ot,z,xe,Te),z.assign(xe);else{var Ft=xe.x,jt=xe.y;Ee=Ft,St=jt,xe.x>z.x?Ft=xe.x-Ae:Ft=xe.x+Ae,Ue.y>xe.y?St=xe.y+Ct:St=xe.y-Ct,Ue=Qe.allocAt(Ft,jt),ig(this,re,fe,ot,z,Ue,Te),Qe.free(Ue),Vm(re,xe.x+fe,xe.y+ot,Ee+fe,St+ot),z.h(Ee,St)}else Kt.B(z.x,xe.x)&&Kt.B(xe.y,Ue.y)?(Ae=Math.min(ee,Math.abs(xe.y-E.y)/2),Ae=Ct=Math.min(Ae,Math.abs(Ue.x-xe.x)/2),Kt.B(Ct,0)?(ig(this,re,fe,ot,z,xe,Te),z.assign(xe)):(Ft=xe.x,jt=xe.y,Ee=Ft,St=jt,xe.y>z.y?jt=xe.y-Ae:jt=xe.y+Ae,Ue.x>xe.x?Ee=xe.x+Ct:Ee=xe.x-Ct,Ue=Qe.allocAt(Ft,jt),ig(this,re,fe,ot,z,Ue,Te),Qe.free(Ue),Vm(re,xe.x+fe,xe.y+ot,Ee+fe,St+ot),z.h(Ee,St))):(ig(this,re,fe,ot,z,xe,Te),z.assign(xe));E.assign(ue),fe=le}Qe.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=di.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),Kt.$(a,0)?y:Kt.$(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;Kt.$(y.x,z.x)&&Kt.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Kt.$(y.x,z.x)&&!Kt.$(y.y,z.y))return x-1;for(var ee=z;Kt.$(y.x,z.x)&&Kt.$(z.x,ee.x)&&(!b||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Kt.$(y.y,z.y)&&Kt.$(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}gi.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(Kt.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,Ee=Math.min(fe+ee,z.x);ue<le&&(fe=oe[ue],fe<Ee+ee);)ue++,Ee=Math.min(fe+re,z.x);fe=z.y-ee+b,Ee+=x;var Ae=z.y+b;a.curve===Eh?Ig(y,Ee,Ae,!1):wh(y,xe,fe,Ee,fe,Ee,Ae)}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,Ee=z.y+b,a.curve===Eh?Ig(y,fe,Ee,!1):wh(y,xe,ue,fe,ue,fe,Ee)}else if(Kt.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&&(Ee=oe[ue],Ee<fe+ee);)ue++,fe=Math.min(Ee+re,z.y);Ee=z.x-ee+x,Ae=z.x+x,fe+=b,a.curve===Eh?Ig(y,Ae,fe,!1):wh(y,Ee,xe,Ee,fe,Ae,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,Ee=z.x+x,ue+=b,a.curve===Eh?Ig(y,Ee,ue,!1):wh(y,fe,xe,fe,ue,Ee,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 gi){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=Kt.B(a.y,y.y),z=b.pointsCount,ee=b.i(0),re=Qe.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,Ee=y.y,Ae=ee.x;ee=ee.y;var Te=le.x,ot=le.y;if(Kt.B(ue,xe)){if(!Kt.B(fe,Ee)&&Kt.B(ee,ot)&&Math.min(fe,Ee)<ee&&Math.max(fe,Ee)>ee&&Math.min(Ae,Te)<ue&&Math.max(Ae,Te)>ue&&!Kt.B(Ae,Te)){re.x=ue,re.y=ee,ue=!0;break e}}else if(Kt.B(fe,Ee)&&Kt.B(Ae,Te)&&Math.min(ue,xe)<Ae&&Math.max(ue,xe)>Ae&&Math.min(ee,ot)<fe&&Math.max(ee,ot)>fe&&!Kt.B(ee,ot)){re.x=Ae,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}Qe.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()))}gi.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 gi&&(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 gi&&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())}}gi.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},gi.prototype.isVisible=function(){if(!ur.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},gi.prototype.Zb=function(a){if(ur.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)},gi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?kp: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&&(vi(y.links,a),y.Sl()))}gi.prototype.ph=function(){return!0},tt.Object.defineProperties(gi.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:Xo},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&&Qn(a,">= 0",gi,"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:Xo},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&&Qn(a,">= 0",gi,"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?Nr: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 ro?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),Kt.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);Kt.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 Qe)}},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);Kt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Kt.$(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 kn,b=0;b<a.length/2;b++)E=new Qe(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 kn,b=0;b<a.length;b++)E=a[b],x.add(new Qe(E.x,E.y).freeze())}}else if(a instanceof kn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Et("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&&xa(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)}}}),gi.prototype.invalidateOtherJumpOvers=gi.prototype.Xo,gi.prototype.findClosestSegment=gi.prototype.ez,gi.prototype.updateRoute=gi.prototype.vg,gi.prototype.invalidateRoute=gi.prototype.bb,gi.prototype.rollbackRoute=gi.prototype.rv,gi.prototype.commitRoute=gi.prototype.zf,gi.prototype.startRoute=gi.prototype.uh,gi.prototype.clearPoints=gi.prototype.Fj,gi.prototype.removePoint=gi.prototype.pv,gi.prototype.addPointAt=gi.prototype.yf,gi.prototype.addPoint=gi.prototype.ne,gi.prototype.insertPointAt=gi.prototype.m,gi.prototype.insertPoint=gi.prototype.Kz,gi.prototype.setPointAt=gi.prototype.L,gi.prototype.setPoint=gi.prototype.dd,gi.prototype.getPoint=gi.prototype.i,gi.prototype.getOtherPort=gi.prototype.Cz,gi.prototype.getOtherNode=gi.prototype.To;var rg=null,og=null,ey=new Xt(gi,"Normal",1),Ix=new Xt(gi,"Orthogonal",2),Rx=new Xt(gi,"AvoidsNodes",6),aS=new Xt(gi,"AvoidsNodesStraight",7),au=new Xt(gi,"None",0),nc=new Xt(gi,"Bezier",9),Eh=new Xt(gi,"JumpGap",10),jg=new Xt(gi,"JumpOver",11),kp=new Xt(gi,"End",17),n0=new Xt(gi,"Scale",18),i0=new Xt(gi,"Stretch",19),Np=new Xt(gi,"OrientAlong",21),Dp=new Xt(gi,"OrientPlus90",22),Bp=new Xt(gi,"OrientMinus90",23),ty=new Xt(gi,"OrientOpposite",24),r0=new Xt(gi,"OrientUpright",25),Tp=new Xt(gi,"OrientPlus90Upright",26),Op=new Xt(gi,"OrientMinus90Upright",27),o0=new Xt(gi,"OrientUpright45",28),sS=16,lS=14,Ip=8;gi.className="Link",gi.Normal=ey,gi.Orthogonal=Ix,gi.AvoidsNodes=Rx,gi.AvoidsNodesStraight=aS,gi.None=au,gi.Bezier=nc,gi.JumpGap=Eh,gi.JumpOver=jg,gi.End=kp,gi.Scale=n0,gi.Stretch=i0,gi.OrientAlong=Np,gi.OrientPlus90=Dp,gi.OrientMinus90=Bp,gi.OrientOpposite=ty,gi.OrientUpright=r0,gi.OrientPlus90Upright=Tp,gi.OrientMinus90Upright=Op,gi.OrientUpright45=o0,gi.EndSegmentStep=8,gi.CurvinessStart=sS,gi.SpacingMin=lS,gi.OrthoShortCut=Ip;function a0(a,y,x,b){pr(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){pr(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 Ee=x===0||x===90?1:-1;if(x=x===90||x===270,b[re][oe]===Ah?(s0(a,re,oe,Ee,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,Ee,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,Ee,x,le,ue,le,ue),x=ti(),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);xi(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++}}}tt.Object.defineProperties(Rp.prototype,{bounds:{get:function(){return new Cn(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(){pr(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 Xr?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(ga,Qe.alloc()),oe=a.port.ga(vl,Qe.alloc());for(E=Cn.allocAt(re.x,re.y,0,0),E.Ye(oe),Qe.free(re),Qe.free(oe),re=Qe.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 Ee=xe.findVisibleNode();Ee!==null&&Ee!==xe&&(xe=Ee,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)),Ee=a.pe[z],Ee===void 0?(Ee=new ry(le,xe,fe),a.pe[z]=Ee):(Ee.link=le,Ee.angle=xe,Ee.Nc=fe),Ee.hv.set(ue),z++}}}}for(Qe.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=Qe.alloc(),oe=Qe.alloc(),ee=Qe.alloc(),le=Qe.alloc(),fe.ga(ga,re),fe.ga(ml,oe),fe.ga(vl,ee),fe.ga(il,le),Ee=xe=ue=fe=0,b===Uv)for(var Ae=0;Ae<z.length;Ae++){var Te=z[Ae];if(Te!==null){var ot=Te.link.computeThickness();switch(Te.Nc){case 8:xe+=ot;break;case 2:Ee+=ot;break;case 1:fe+=ot;break;default:case 4:ue+=ot}}}var Ue=Ae=0,St=1,Ct=Te=0;for(ot=0;ot<z.length;ot++){var Ft=z[ot];if(Ft!==null){if(Ae!==Ft.Nc){switch(Ae=Ft.Nc,Ae){case 8:var jt=ee;Ue=le;break;case 2:jt=le,Ue=re;break;case 1:jt=re,Ue=oe;break;default:case 4:jt=oe,Ue=ee}switch(Te=Ue.x-jt.x,Ct=Ue.y-jt.y,Ae){case 8:xe>Math.abs(Te)?(St=Math.abs(Te)/xe,xe=Math.abs(Te)):St=1;break;case 2:Ee>Math.abs(Ct)?(St=Math.abs(Ct)/Ee,Ee=Math.abs(Ct)):St=1;break;case 1:fe>Math.abs(Te)?(St=Math.abs(Te)/fe,fe=Math.abs(Te)):St=1;break;default:case 4:ue>Math.abs(Ct)?(St=Math.abs(Ct)/ue,ue=Math.abs(Ct)):St=1}Ue=0}var yn=Ft.Zo;if(b===Uv){switch(Ft=Ft.link.computeThickness(),Ft*=St,yn.set(jt),Ae){case 8:yn.x=jt.x+Te/2+xe/2-Ue-Ft/2;break;case 2:yn.y=jt.y+Ct/2+Ee/2-Ue-Ft/2;break;case 1:yn.x=jt.x+Te/2-fe/2+Ue+Ft/2;break;default:case 4:yn.y=jt.y+Ct/2-ue/2+Ue+Ft/2}Ue+=Ft}else{var Fi=.5;b===Qm&&(Fi=(Ft.Uo+1)/(Ft.Gl+1)),yn.x=jt.x+Te*Fi,yn.y=jt.y+Ct*Fi}}}for(Qe.free(re),Qe.free(oe),Qe.free(ee),Qe.free(le),jt=a.pe,z=0;z<jt.length;z++)b=jt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Cn.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 Qe,this.Gl=this.Uo=0,this.Zo=new Qe,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){pr(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Qe(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=Ni(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 pn?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Xr?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 pn?(Jh(this,y,a.nodes,!0,this.rh,!0,!1,!0),Jh(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Xr?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 Xr&&(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 gi)&&(zp(re),this.rh(re))){var oe=re.measuredBounds,le=oe.width;oe=oe.height,re.moveTo(x,b),re instanceof Xr&&(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 Xr&&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 Di?oe.isLinkLabel||(oe instanceof Xr&&oe.layout===null?Jh(a,y,oe.memberParts,!1,E,z,ee,re):(zp(oe),y.add(oe))):ee&&oe instanceof gi?y.add(oe):!re||!oe.Zc()||oe instanceof Di||(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 Cn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Za.prototype.ex=function(a){var y=new Ln;return a instanceof pn?(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 Xr?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(ga),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},tt.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){pr(this),this.Sc=a,this.wf=new Ln,this.ye=new Ln,this.Es=new Ii,this.zs=new Ii}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 Ii,this.zs=new Ii},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 Di)return!ee.isLinkLabel;if(ee instanceof gi){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 Di&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Xr&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof gi&&(!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},Ce=Ea.prototype,Ce.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ce.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},Ce.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}Ce.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ce.ki=function(a){return a===null?null:this.Es.I(a)},Ce.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}}Ce.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},Ce.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))}Ce.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ce.Lo=function(a){return a===null?null:this.zs.I(a)},Ce.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},Ce.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))}},Ce.Ko=function(){for(var a=ti(),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]);xi(a)},Ea.prototype.deleteArtificialVertexes=function(){for(var a=ti(),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=ti(),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]);xi(a),xi(y)};function jx(a){for(var y=ti(),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]);xi(y)}Ea.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jx(this),this.Ko()),a=new kn;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},tt.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){pr(this),this.ob=a,this.j=new Cn(0,0,10,10).freeze(),this.o=new Qe(5,5).freeze(),this.Sh=this.ub=null,this.tg=new kn,this.mg=new kn}Xs.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new kn,this.mg=new kn},Xs.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+vr(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 Xr)){x=Cn.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)),Cn.free(x);return}Cn.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}tt.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=Cn.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),Cn.free(x),!(a instanceof Xr)&&(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 kn,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){pr(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#"+vr(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},tt.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)}bt(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:Et("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 Xr)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case 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=Cn.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 Ee=this.ni(E[xe],le);fe=Math.max(fe,Ee.height)}fe=Math.max(fe+oe,1),xe=this.arrangement;for(var Ae=Ee=this.arrangementOrigin.x,Te=this.arrangementOrigin.y,ot=0,Ue=0,St=0;St<E.length;St++){var Ct=E[St],Ft=this.ni(Ct,le),jt=Math.ceil((Ft.width+re)/ue)*ue,yn=Math.ceil((Ft.height+oe)/fe)*fe;switch(xe){case rd:var Fi=Math.abs(Ae-Ft.width);break;default:Fi=Ae+Ft.width}switch((0<z&&ot>z-1||0<ee&&0<ot&&Fi-Ee>ee)&&(b.push(new Cn(0,Te,ee+re,Ue)),ot=0,Ae=Ee,Te+=Ue,Ue=0),Ue=Math.max(Ue,yn),xe){case rd:Ft=-Ft.width;break;default:Ft=0}switch(Ct.moveTo(Ae+Ft,Te),xe){case rd:Ae-=jt;break;default:Ae+=jt}ot++}b.push(new Cn(0,Te,ee+re,Ue)),Cn.free(le);break;case jp:for(oe=ee,ue=z,fe=y,xe=x,ee=Cn.alloc(),Ee=Math.max(this.cellSize.width,1),z=Te=le=0,re=Qe.alloc(),Ae=0;Ae<E.length;Ae++)Ue=E[Ae],ot=this.ni(Ue,ee),Ue=Ph(Ue,Ue.locationObject,Ue.locationSpot,re),le=Math.max(le,Ue.x),Te=Math.max(Te,ot.width-Ue.x),z=Math.max(z,Ue.y);switch(Ae=this.arrangement,Ae){case rd:le+=fe;break;default:Te+=fe}Ee=isFinite(Ee)?Math.max(Ee+fe,1):Math.max(le+Te,1);var Xi=Ue=this.arrangementOrigin.x;for(St=this.arrangementOrigin.y,Te=0,oe>=le&&(oe-=le),le=Ct=0,jt=Math.max(this.cellSize.height,1),Ft=z=0,yn=!0,ot=Qe.alloc(),Fi=0;Fi<E.length;Fi++){var ji=E[Fi],fi=this.ni(ji,ee),_n=Ph(ji,ji.locationObject,ji.locationSpot,re);if(0<Te)switch(Ae){case rd:Xi=(Xi-Ue-(fi.width-_n.x))/Ee,Xi=Kt.$(Math.round(Xi),Xi)?Math.round(Xi):Math.floor(Xi),Xi=Xi*Ee+Ue;break;default:Xi=(Xi-Ue+_n.x)/Ee,Xi=Kt.$(Math.round(Xi),Xi)?Math.round(Xi):Math.ceil(Xi),Xi=Xi*Ee+Ue}else switch(Ae){case rd:Ct=Xi+_n.x+fi.width;break;default:Ct=Xi-_n.x}switch(Ae){case rd:var Ur=-(Xi+_n.x)+Ct;break;default:Ur=Xi+fi.width-_n.x-Ct}if(0<ue&&Te>ue-1||0<oe&&0<Te&&Ur>oe){for(b.push(new Cn(0,yn?St-z:St,oe+fe,Ft+z+xe)),Xi=0;Xi<Te&&Fi!==Te;Xi++){Ur=E[Fi-Te+Xi];var Ir=Ph(Ur,Ur.locationObject,Ur.locationSpot,ot);Ur.moveTo(Ur.position.x,Ur.position.y+z-Ir.y)}Ft+=xe,St=yn?St+Ft:St+(Ft+z),Te=Ft=z=0,Xi=Ue,yn=!1}switch(Xi===Ue&&(le=Ae===rd?Math.max(le,fi.width-_n.x):Math.min(le,-_n.x)),z=Math.max(z,_n.y),Ft=Math.max(Ft,fi.height-_n.y),isFinite(jt)&&(Ft=Math.max(Ft,Math.max(fi.height,jt)-_n.y)),yn?ji.moveTo(Xi-_n.x,St-_n.y):ji.moveTo(Xi-_n.x,St),Ae){case rd:Xi-=_n.x+fe;break;default:Xi+=fi.width-_n.x+fe}Te++}if(b.push(new Cn(0,St,oe+fe,(yn?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(Qe.free(re),Qe.free(ot),Ae===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);Cn.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 Qe(E+y/2-(z+E),ee-x/2)):this.commitLayers(b,new Qe(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}tt.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 Xt(Cl,"Position",0),jp=new Xt(Cl,"Location",1),c0=new Xt(Cl,"LeftToRight",2),rd=new Xt(Cl,"RightToLeft",3),uy=new Xt(Cl,"Forward",4),d0=new Xt(Cl,"Reverse",5),Hp=new Xt(Cl,"Ascending",6),h0=new Xt(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 ra(){this.On=new Ln,this.Dn=new Ln,this.Pa=new Ln,this.cf=new Ii,this.bf=new Ii,this.aj=new Ii,this.H=null,this.tp=!1}Ce=ra.prototype,Ce.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ce.Xe=function(a){this.H=a},Ce.oi=function(a){if(a instanceof Di){if(this.On.add(a),a instanceof Xr){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof gi?this.Dn.add(a):a instanceof Yo||this.Pa.add(a);y=a.data,y===null||a instanceof Yo||(a instanceof gi?this.bf.add(y,a):this.cf.add(y,a))},Ce.pc=function(a){if(a.Ej(),a instanceof Di){if(this.On.remove(a),a instanceof Xr){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof gi?this.Dn.remove(a):a instanceof Yo||this.Pa.remove(a);y=a.data,y===null||a instanceof Yo||(a instanceof gi?this.bf.remove(y):this.cf.remove(y))},Ce.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof Xr)&&Et('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Xr||Et('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 gi||Et('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=ti(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=ti(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=ti(),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]);xi(y),xi(x),xi(a)}},ra.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},ra.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&&(kc(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)}}ra.prototype.insertLink=function(){return null},ra.prototype.resolveReferencesForData=function(){},ra.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,Un('No Group template found for category "'+x+'"'),Un(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yS||(yS=!0,Un('No Node template found for category "'+x+'"'),Un(" Using default node template")),y=a.ny))),y}ra.prototype.getLinkCategoryForData=function(){return""},ra.prototype.setLinkCategoryForData=function(){},ra.prototype.setFromNodeForLink=function(){},ra.prototype.setToNodeForLink=function(){},ra.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,Un('No Link template found for category "'+a+'"'),Un(" Using default link template")),x=y.my)),x},ra.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},ra.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},ra.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Jd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},ra.prototype.unresolveReferencesForPart=function(){},ra.prototype.removeDataForLink=function(){},ra.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},ra.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Di?a:null)},ra.prototype.findLinkForKey=function(){return null},Ce=ra.prototype,Ce.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ce.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Di?a:null)},Ce.Kc=function(a){return a===null?null:this.bf.I(a)},Ce.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},Ce.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(Sn(z)){if(!Sn(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}ra.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===oi){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===ui){var ee=a.newValue;b==="nodeDataArray"&&zt(ee)&&pS(this,ee),y.isModified=!0}else if(x===Mi){var re=a.oldValue;b==="nodeDataArray"&&zt(re)&&this.ip(re),y.isModified=!0}else x===Zn&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===oi){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===ui||x===Mi){var ue=a.change===ui,fe=ue?a.newParam:a.oldParam,xe=ue?a.newValue:a.oldValue,Ee=this.aj.I(a.object);if(Array.isArray(Ee))for(a=0;a<Ee.length;a++){var Ae=Ee[a];if(ue)Nm(Ae,xe,fe,!0);else if(!(0>fe)){var Te=fe+wp(Ae);Ae.pc(Te,!0),bv(Ae,Te,fe)}}y.isModified=!0}}finally{y.aa=!0}}}}},ra.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)},ra.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()},ra.prototype.refreshDataBoundLinks=function(){},ra.prototype.updateRelationshipsFromData=function(){},ra.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=ti()),x.push(ee))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);xi(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function dy(a,y){var x=y.Hh;if(Sn(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(Sn(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}}}}ra.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Ii;if(Sn(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 Ii,ee=b.iterator;ee.next();){var re=ee.value;if(re instanceof gi)a||re.fromNode!==null&&re.toNode!==null||E.add(re);else if(re instanceof Di&&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 Ii;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 ur))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Di){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 Xr&&z instanceof Xr)for(y=y.memberParts;y.next();)ee=f0(a,y.value,x,b,E),ee instanceof gi||ee===null||(ee.containingGroup=z)}else if(y instanceof gi&&z instanceof gi)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 Di&&(ee.labeledLink=z);return z}ra.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof gi||(b=E.copyNodeData(b),zt(b)&&(E.xf(b),x=y.Lc(b)))}else kc(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 gi||(E=y.copyNodeData(b)),zt(E)&&(x.data=E)));return x},tt.Object.defineProperties(ra.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}}}),ra.prototype.updateAllRelationshipsFromData=ra.prototype.rp,ra.prototype.findLinksByExample=ra.prototype.ls,ra.prototype.findNodesByExample=ra.prototype.ms,ra.prototype.findLinkForData=ra.prototype.Kc,ra.prototype.findNodeForData=ra.prototype.ii,ra.prototype.findPartForData=ra.prototype.Lc,ra.prototype.findNodeForKey=ra.prototype.Vb,ra.prototype.removeModeledPart=ra.prototype.ip,ra.prototype.removeModeledParts=ra.prototype.Gs,ra.prototype.rebuildParts=ra.prototype.Wd;var yS=!1,SS=!1,xS=!1;ra.className="PartManager";function ul(a){ra.apply(this,arguments)}bt(ul,ra),ul.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),wS(this,a.linkDataArray)},ul.prototype.addModeledParts=function(a){for(ra.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){kc(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 Di&&(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 Di&&(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=ra.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(ra.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===oi){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 Ee=this.Lc(a.object);if(Ee!==null){var Ae=a.newValue;if(Ae!==void 0){var Te=this.Vb(Ae);Te instanceof Xr?Ee.containingGroup=Te:Ee.containingGroup=null}else Ee.containingGroup=null}}else if(E==="linkLabelKeys"){var ot=this.Kc(a.object);if(ot!==null){var Ue=a.oldValue,St=a.newValue;Array.isArray(Ue)&&Ue.forEach(function(_n){0<=St.indexOf(_n)||(_n=y.Vb(_n),_n!==null&&(_n.labeledLink=null))}),Array.isArray(St)&&St.forEach(function(_n){_n=y.Vb(_n),_n!==null&&(_n.labeledLink=ot)})}}else if(E==="linkCategory"){var Ct=this.Kc(a.object),Ft=a.newValue;Ct!==null&&typeof Ft=="string"&&(Ct.category=Ft)}else E==="linkDataArray"&&(CS(this,a.oldValue),wS(this,a.newValue));x.isModified=!0}else if(b===ui){var jt=a.newValue;if(E==="linkDataArray"&&typeof jt=="object"&&jt!==null)PS(this,jt);else if(E==="linkLabelKeys"&&_h(jt)){var yn=this.Kc(a.object),Fi=this.Vb(jt);yn!==null&&Fi!==null&&(Fi.labeledLink=yn)}x.isModified=!0}else if(b===Mi){var Xi=a.oldValue;if(E==="linkDataArray"&&typeof Xi=="object"&&Xi!==null)this.ip(Xi);else if(E==="linkLabelKeys"&&_h(Xi)){var ji=this.Vb(Xi);ji!==null&&(ji.labeledLink=null)}x.isModified=!0}}else if(b===oi){var fi=a.propertyName;a.object!==x.model||fi!=="linkFromKeyProperty"&&fi!=="linkToKeyProperty"&&fi!=="linkFromPortIdProperty"&&fi!=="linkToPortIdProperty"&&fi!=="linkLabelKeysProperty"&&fi!=="nodeIsGroupProperty"&&fi!=="nodeGroupKeyProperty"&&fi!=="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 gi){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 Yo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Xr)&&(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 Xr&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=E)):(z.link=this.Kc(ee),z.link!==null&&E instanceof Di&&(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 Xr&&(E.containingGroup=a))}},ul.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Di){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 Xr)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=ra.prototype.copyPartData.call(this,a,y);if(a instanceof gi)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 gi){if(kc(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 Di&&(kc(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 Di||(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(){ra.apply(this,arguments),this.Sg=null}bt(pc,ra);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&&(kc(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(ra.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===oi){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===oi){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 Di&&(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){ra.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 Di&&y.mh(z)===x&&g0(this,E,this.ii(z))}ad(y,x)}a=y.mh(a),a!==void 0&&E instanceof Di&&(a=this.Vb(a),g0(this,a,E))}},pc.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Di){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(Mi,"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 ir(a,y){this.kl=new Ln,this.il=new Ln,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,pr(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Ii,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 Ii,this.Lt=new kn,this.Wg=!1,this.o=null,this.undoManager=new Ei,a!==void 0&&(Sn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}ir.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},ir.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ir.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},ir.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)+":"+Zi(E)}}return y},ir.prototype.xA=function(a){a.change!==Zn&&Et("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof sr?(ES(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},ir.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===ui?E.add(fe.newValue):fe.change===Mi&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==oi||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 ir||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},ir.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=Ho++,b.set(fe,xe),E.set(fe,y))}if(!zt(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(b||(b=new Ii),re){var oe=b.get(y);if(oe)return oe}else for(E||(E=new Ii),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 Qe||y instanceof zn||y instanceof Cn||y instanceof Vi||y instanceof Yi)oe=y.copy(),ee(y,oe);else{if(y instanceof ia||y instanceof di||y instanceof Xt)return y;if(y instanceof kn)oe=new kn().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 Ii)oe=new Ii().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}Ce=ir.prototype,Ce.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ce.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},Ce.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)}Ce.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)},Ce.kv=function(a){bS(this,a),a=a.nodeDataArray,Sn(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 Ii,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===oi?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===ui||z===Mi)&&(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}Ce.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===ui?E.add(ue.newValue):ue.change===Mi&&ee.add(ue.oldValue):x.lb(ue.object)?z.add(ue.object):ue.change!==oi||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 ir||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},Ce.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)&&Et("applyIncrementalJson cannot change Model properties"),bS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Ii;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)},Ce.$x=function(a,y){a.change!==Zn&&Et("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof sr?(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 }'},Ce.yA=function(a,y){return this.$x(a,y)},Ce.np=function(a){return a===void 0&&(a=Zp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ce.toJSON=function(a){return this.np(a)},Ce.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ye.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Et("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Et("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ce.Ky=function(a){return this.Zw(a)},ir.constructGraphLinksModel=function(){return new ir},Ce=ir.prototype,Ce.dm=function(a){if(Sn(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:Et("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 kn,b=0;b<x.length/2;b++)E.add(new Qe(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Hx(a)}return a},Ce.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()):Sn(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 rr;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 Qe)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 Cn)y={class:"go.Rect",x:su(x.x),y:su(x.y),width:su(x.width),height:su(x.height)};else if(x instanceof Vi)y={class:"go.Margin",top:su(x.top),right:su(x.right),bottom:su(x.bottom),left:su(x.left)};else if(x instanceof Yi)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 ia){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 di?(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(ga)||(y.spot1=x.spot1),x.spot2.D(vl)||(y.spot2=x.spot2),x.type===di.o&&(y.path=di.ia(x))):x instanceof Xt&&(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 kn){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 Qe(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 Cn(lu(a.x),lu(a.y),lu(a.width),lu(a.height));else if(y==="Margin")x=new Vi(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 Yi(lu(a.x),lu(a.y),lu(a.offsetX),lu(a.offsetY));else if(y==="Brush"){if(x=new ia,x.type=Li(ia,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof Yi&&(x.start=a.start),a.end instanceof Yi&&(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=di.parse(a.path):x=new di,x.type=Li(di,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 Yi&&(x.spot1=a.spot1),a.spot2 instanceof Yi&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=py(b),typeof b=="function"&&(x=Li(b,a.name)));return x}Ce.Pe=function(a){return this.Lt.add(a),this},Ce.ik=function(a){this.Lt.remove(a)},Ce.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)},Ce.cb=function(a,y,x,b,E,z,ee){Zs(this,"",a,y,x,b,E,z,ee)},Ce.g=function(a,y,x,b,E){Zs(this,"",oi,a,this,y,x,b,E)},Ce.Fs=function(a,y,x,b,E,z){Zs(this,"",oi,y,a,x,b,E,z)};function Zs(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)}ir.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===oi){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===ui?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,zt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&vi(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&Si(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!Sn(b)&&a.propertyName&&(b=As(a.object,a.propertyName)),Sn(b)&&typeof x=="number"&&(a=a.newValue,y?vi(b,x):Si(b,x,a))):Et("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Mi?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,zt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&Si(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&vi(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!Sn(b)&&a.propertyName&&(b=As(a.object,a.propertyName)),Sn(b)&&typeof x=="number"&&(a=a.oldValue,y?Si(b,x,a):vi(b,x))):Et("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Zn&&Et("unknown ChangedEvent: "+a.toString())},ir.prototype.Ea=function(a){return this.undoManager.Ea(a)},ir.prototype.eb=function(a){return this.undoManager.eb(a)},ir.prototype.Kf=function(){return this.undoManager.Kf()},ir.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}},Ce=ir.prototype,Ce.La=function(a,y){y===void 0&&(y=""),Zs(this,"SourceChanged",Zn,y,a,null,null)},Ce.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;Et("Key value for node data "+a+" is not a number or a string: "+y)}}},Ce.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),Zs(this,"nodeKey",oi,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"}Ce.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ce.hc=function(a){return a===null&&Et("Model.findNodeDataForKey:key must not be null"),a!==void 0&&_h(a)?this.kb.I(a):null},Ce.$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)}}}}},Ce.xf=function(a){a!==null&&(Qr(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&&Et("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,Si(a.Tc,b,y)),Zs(a,"nodeDataArray",ui,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Ce.Fy=function(a){if(Sn(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)},Ce.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;vi(a.Tc,b)}Zs(a,"nodeDataArray",Mi,"nodeDataArray",a,y,null,b,null),a.qp(y)}Ce.nA=function(a){if(Sn(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)},Ce.$z=function(a){if(a!==this.nodeDataArray&&Sn(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()}},Ce.jp=function(a,y){y!==void 0&&(a=Wp(this,a),a instanceof Ln&&this.Vf.add(y,a))},Ce.Lv=function(){},Ce.fm=function(){},Ce.em=function(){},Ce.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)}Ce.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},ir.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)&&pr(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 pr(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 ir||z instanceof Ei||z instanceof sr||z instanceof In||(z=m0(a,z,!1)),ja(x,b,z)}return pr(x),x}return y instanceof Qe||y instanceof zn||y instanceof Cn||y instanceof Yi||y instanceof Vi?y.copy():y}ir.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!kS&&a instanceof Vt&&(kS=!0,Un('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),Un(" Is that really your intent?"));var b=As(a,y);b!==x&&(ja(a,y,x),this.Fs(a,y,b,x))},Ce=ir.prototype,Ce.set=function(a,y,x){this.setDataProperty(a,y,x)},Ce.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])}},Ce.Ay=function(a,y){this.ts(a,-1,y)},Ce.ts=function(a,y,x){0>y&&(y=a.length),Si(a,y,x),Zs(this,"",ui,"",a,null,x,null,y)},Ce.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Et("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];vi(a,y),Zs(this,"",Mi,"",a,x,null,y,null)},Ce.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;Et("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ce.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),Zs(this,"nodeCategory",oi,x,a,b,y))}else ja(a,x,y)}},Ce.lm=function(a,y){this.jm(y,this.Ro(a))},Ce.Tl=function(){return!1},Ce.Wj=function(){return!1},Ce.ri=function(){return!1},Ce.xs=function(){return!1},Ce.Xj=function(){return!1};function gy(){return new ir}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]:Ye.go!==void 0&&Ye.go[a]?Ye.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){}}tt.Object.defineProperties(ir.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===""&&Et("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Et("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)||Et("Model.nodeDataArray must only contain Objects, not: "+E),Qr(E)}for(this.Tc=a,b=new kn,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(Zs(this,"nodeDataArray",oi,"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"}}}),ir.prototype.setCategoryForNodeData=ir.prototype.jm,ir.prototype.getCategoryForNodeData=ir.prototype.Ro,ir.prototype.removeArrayItem=ir.prototype.ov,ir.prototype.insertArrayItem=ir.prototype.ts,ir.prototype.addArrayItem=ir.prototype.Ay,ir.prototype.assignAllDataProperties=ir.prototype.Do,ir.prototype.set=ir.prototype.set,ir.prototype.clearUnresolvedReferences=ir.prototype.Qy,ir.prototype.mergeNodeDataArray=ir.prototype.$z,ir.prototype.removeNodeDataCollection=ir.prototype.nA,ir.prototype.removeNodeData=ir.prototype.cm,ir.prototype.addNodeDataCollection=ir.prototype.Fy,ir.prototype.addNodeData=ir.prototype.xf,ir.prototype.makeNodeDataKeyUnique=ir.prototype.$u,ir.prototype.findNodeDataForKey=ir.prototype.hc,ir.prototype.containsNodeData=ir.prototype.lb,ir.prototype.setKeyForNodeData=ir.prototype.km,ir.prototype.getKeyForNodeData=ir.prototype.wa,ir.prototype.updateTargetBindings=ir.prototype.La,ir.prototype.commit=ir.prototype.commit,ir.prototype.rollbackTransaction=ir.prototype.Kf,ir.prototype.commitTransaction=ir.prototype.eb,ir.prototype.startTransaction=ir.prototype.Ea,ir.prototype.raiseDataChanged=ir.prototype.Fs,ir.prototype.raiseChanged=ir.prototype.g,ir.prototype.raiseChangedEvent=ir.prototype.cb,ir.prototype.removeChangedListener=ir.prototype.ik,ir.prototype.addChangedListener=ir.prototype.Pe,ir.prototype.writeJsonValue=ir.prototype.sm,ir.prototype.replaceJsonObjects=ir.prototype.dm,ir.prototype.applyIncrementalJSON=ir.prototype.Ky,ir.prototype.applyIncrementalJson=ir.prototype.Zw,ir.prototype.toJSON=ir.prototype.toJSON,ir.prototype.toJson=ir.prototype.np,ir.prototype.toIncrementalJSON=ir.prototype.yA,ir.prototype.toIncrementalJson=ir.prototype.$x,ir.prototype.toIncrementalData=ir.prototype.xA,ir.prototype.clear=ir.prototype.clear;var kS=!1,Vc={};ir.className="Model",ir.fromJSON=ir.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Ye.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Et("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=Ye[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof ir?y=a:Et("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=ir.constructGraphLinksModel()),y.gp(x),y.kv(x),y},ir.safePropertyValue=As,ir.safePropertySet=ja,Vc.Brush=ia,Vc.ChangedEvent=In,Vc.Geometry=di,Vc.Margin=Vi,Vc.Panel=si,Vc.Point=Qe,Vc.Rect=Cn,Vc.Size=zn,Vc.Spot=Yi,Vc.Transaction=sr,Vc.UndoManager=Ei;function Fs(a,y,x,b){pr(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},Ce=Fs.prototype,Ce.qb=function(a){a.classType===Fs&&(this.mode=a)},Ce.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.Kx=function(a){return a===void 0&&(a=null),this.mode=Kp,this.backConverter=a,this},Ce.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ce.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function NS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ce.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==="")Un("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){}}}},Ce.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 Ee=b.itemIndex,Ae=b.panel.itemArray;oe.ov(Ae,Ee),oe.ts(Ae,Ee,xe)}}}catch(Te){}}finally{this.st.remove(a)}}}},tt.Object.defineProperties(Fs.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&xn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&xn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&xn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&xn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&xn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&xn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&xn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&xn(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 Xt(Fs,"OneWay",1),Kp=new Xt(Fs,"TwoWay",2);Fs.className="Binding",Fs.parseEnum=function(a,y){return function(x){return x=Li(a,x),x===null?y:x}},Fs.toString=Zi,Fs.OneWay=DS,Fs.TwoWay=Kp;function Bo(a,y,x){ir.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Ln,this.wb=new Ii,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&&(Sn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}bt(Bo,ir),Bo.constructGraphLinksModel=ir.constructGraphLinksModel,Bo.prototype.cloneProtected=function(a){ir.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},Ce=Bo.prototype,Ce.clear=function(){ir.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ce.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)+":"+Zi(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},Ce.Qv=function(a,y){this.linkKeyProperty===""&&Et("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=ir.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===ui?E.add(ue.newValue):ue.change===Mi&&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 ir||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},Ce.rm=function(){var a=ir.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},Ce.gp=function(a){ir.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)},Ce.Rv=function(){var a=ir.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Qh(this,this.linkDataArray,!0);return a+y},Ce.kv=function(a){ir.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}Ce.Pv=function(a,y){this.linkKeyProperty===""&&Et("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=ir.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===ui?E.add(ue.newValue):ue.change===Mi&&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 ir||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},Ce.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)&&Et("applyIncrementalJson cannot change Model properties"),ir.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)},Bo.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===oi){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===ui){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===Mi){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}}ir.prototype.changeState.call(this,a,y)}},Ce=Bo.prototype,Ce.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}},Ce.yx=function(a){return ic(this,a,!0)},Ce.wv=function(a,y){Kg(this,a,y,!0)},Ce.Bx=function(a){return ic(this,a,!1)},Ce.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;Et((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),Zs(a,b?"linkFromKey":"linkToKey",oi,E,y,z,x),typeof E=="string"&&a.La(y,E))}else ja(y,E,x)}}Ce.zx=function(a){return v0(this,a,!0)},Ce.xv=function(a,y){Vg(this,a,y,!0)},Ce.Cx=function(a){return v0(this,a,!1)},Ce.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),Zs(a,b?"linkFromPortId":"linkToPortId",oi,E,y,z,x),typeof E=="string"&&a.La(y,E))}else ja(y,E,x)}}Ce.Ef=function(a){if(a===null)return y0;var y=this.je;return y===""?y0:(a=As(a,y),a===void 0?y0:a)},Ce.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)}Zs(this,"linkLabelKeys",oi,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else ja(a,x,y)}},Ce.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),Zs(this,"linkLabelKeys",ui,x,a,null,y,null,E)))}else Et(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ce.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),Zs(this,"linkLabelKeys",Mi,x,a,y,null,E,null)))}else b!==void 0&&Et(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ce.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;Et("Key value for link data "+a+" is not a number or a string: "+y)}}},Ce.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),Zs(this,"linkKey",oi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Ce.jh=function(a){return a===null&&Et("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&_h(a)?this.wb.I(a):null},Ce.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)}}}}},Ce.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ce.fi=function(a){a!==null&&(Qr(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&&Et("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)),Zs(a,"linkDataArray",ui,"linkDataArray",a,null,y,null,b),my(a,y)}Ce.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)},Ce.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(Zs(a,"linkDataArray",Mi,"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)}Ce.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)},Ce.Zz=function(a){if(this.linkKeyProperty===""&&Et("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Sn(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)}Ce.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)&&(pr(a),this.lf!==""&&ja(a,this.lf,void 0),this.mf!==""&&ja(a,this.mf,void 0),this.je!==""&&ja(a,this.je,[])),a},Ce.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!As(a,y)},Ce.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;Et("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ce.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),Zs(this,"nodeGroupKey",oi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Bo.prototype.copyNodeData=function(a){return a===null?null:(a=ir.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||As(a,this.Je)===void 0||ja(a,this.Je,void 0),a)},Bo.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))},Ce=Bo.prototype,Ce.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])}},Ce.jp=function(a,y){ir.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),Zs(this,"linkFromKey",oi,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)}if(ic(this,b,!1)===E&&(ee=this.mf,ja(b,ee,z),Zs(this,"linkToKey",oi,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,Zs(this,"linkLabelKeys",ui,oe,b,E,z,le,le))}},Ce.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;ja(a,b,x),Zs(this,"nodeGroupKey",oi,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ce.Lv=function(){ir.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)my(this,a[x])},Ce.fm=function(a){ir.prototype.fm.call(this,a),a=this.wa(a);var y=Wp(this,a);if(y!==null){var x=ti();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Zs(this,"nodeGroupKey",oi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(ic(this,b,!0)===a&&(E=this.lf,Zs(this,"linkFromKey",oi,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),ic(this,b,!1)===a&&(E=this.mf,Zs(this,"linkToKey",oi,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&&(Zs(this,"linkLabelKeys",ui,ee,b,a,a,re,re),x.push(b))}for(y=0;y<x.length;y++)ad(this,a,x[y]);xi(x)}},Ce.em=function(a){ir.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&od(this,y,a)},Ce.qp=function(a){ir.prototype.qp.call(this,a);var y=this.lh(a);ad(this,y,a)},Ce.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;Et("getCategoryForLinkData found a non-string category for "+a+": "+y)},Bo.prototype.getLinkCategoryForData=function(a){return this.ps(a)},Bo.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),Zs(this,"linkCategory",oi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Bo.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ce=Bo.prototype,Ce.lm=function(a,y){ir.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))}Ce.Wj=function(){return!0},Ce.ri=function(){return!0},Ce.xs=function(){return!0},Ce.Xj=function(){return!0},tt.Object.defineProperties(Bo.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)||Et("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Qr(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new kn,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,Zs(this,"linkDataArray",oi,"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"}}}),Bo.prototype.setCategoryForLinkData=Bo.prototype.lp,Bo.prototype.getCategoryForLinkData=Bo.prototype.ps,Bo.prototype.assignAllDataProperties=Bo.prototype.Do,Bo.prototype.setGroupKeyForNodeData=Bo.prototype.mp,Bo.prototype.getGroupKeyForNodeData=Bo.prototype.lh,Bo.prototype.isGroupForNodeData=Bo.prototype.Yu,Bo.prototype.copyLinkData=Bo.prototype.Jo,Bo.prototype.mergeLinkDataArray=Bo.prototype.Zz,Bo.prototype.removeLinkDataCollection=Bo.prototype.lA,Bo.prototype.removeLinkData=Bo.prototype.bm,Bo.prototype.addLinkDataCollection=Bo.prototype.Ey,Bo.prototype.addLinkData=Bo.prototype.fi,Bo.prototype.containsLinkData=Bo.prototype.Jc,Bo.prototype.makeLinkDataKeyUnique=Bo.prototype.Bs,Bo.prototype.findLinkDataForKey=Bo.prototype.jh,Bo.prototype.setKeyForLinkData=Bo.prototype.Ks,Bo.prototype.getKeyForLinkData=Bo.prototype.Ac,Bo.prototype.removeLabelKeyForLinkData=Bo.prototype.Qx,Bo.prototype.addLabelKeyForLinkData=Bo.prototype.Bu,Bo.prototype.setLabelKeysForLinkData=Bo.prototype.Ls,Bo.prototype.getLabelKeysForLinkData=Bo.prototype.Ef,Bo.prototype.setToPortIdForLinkData=Bo.prototype.Cv,Bo.prototype.getToPortIdForLinkData=Bo.prototype.Cx,Bo.prototype.setFromPortIdForLinkData=Bo.prototype.xv,Bo.prototype.getFromPortIdForLinkData=Bo.prototype.zx,Bo.prototype.setToKeyForLinkData=Bo.prototype.Bv,Bo.prototype.getToKeyForLinkData=Bo.prototype.Bx,Bo.prototype.setFromKeyForLinkData=Bo.prototype.wv,Bo.prototype.getFromKeyForLinkData=Bo.prototype.yx,Bo.prototype.clear=Bo.prototype.clear;var y0=Object.freeze([]);Bo.className="GraphLinksModel",Vc.GraphLinksModel=Bo,ir.constructGraphLinksModel=ir.constructGraphLinksModel=function(){return new Bo},ir.initDiagramModel=gy=function(){return new Bo};function uu(a,y){ir.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Sn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}bt(uu,ir),uu.constructGraphLinksModel=ir.constructGraphLinksModel,uu.prototype.cloneProtected=function(a){ir.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ce=uu.prototype,Ce.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)+":"+Zi(E)}}return y},Ce.rm=function(){var a=ir.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ce.gp=function(a){ir.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ce.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Et("applyIncrementalJson cannot change Model properties"),ir.prototype.fp.call(this,a)},Ce.Vl=function(a){return a},Ce.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=As(a,y),y!==void 0)){if(_h(y))return y;Et("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ce.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),Zs(this,"nodeParentKey",oi,x,a,b,y),typeof x=="string"&&this.La(a,x))}else ja(a,x,y)}},Ce.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=As(a,y),y===void 0)?"":typeof y=="string"?y:(Et("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),Zs(this,"parentLinkCategory",oi,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=ir.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))},Ce=uu.prototype,Ce.jp=function(a,y){ir.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ce.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;ja(a,b,x),Zs(this,"nodeParentKey",oi,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Ce.fm=function(a){ir.prototype.fm.call(this,a),a=this.wa(a);var y=Wp(this,a);if(y!==null){var x=ti();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Zs(this,"nodeParentKey",oi,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]);xi(x)}},Ce.em=function(a){ir.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&od(this,y,a)},Ce.qp=function(a){ir.prototype.qp.call(this,a);var y=this.mh(a);ad(this,y,a)},Ce.lm=function(a,y){ir.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ce.Tl=function(){return!0},Ce.xs=function(){return!0},tt.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 qa(a){Za.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Gc,this.Ti=0,this.Zv=new Qe,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)}bt(qa,Za),qa.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},qa.prototype.qb=function(a){a.classType===qa?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)},qa.prototype.createNetwork=function(){return new Ug(this)},qa.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 kn;y.addAll(a.iterator),a=new kn;var x=new kn,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 kn,b.addAll(a),b.addAll(x)):(this.arrangement===Yc&&x.reverse(),b=new kn,b.addAll(x),b.addAll(a))}oe=b.length;for(var Ee=z=E=0;Ee<b.length;Ee++){var Ae=fe+xe*z*(this.direction===cu?1:-1)/oe,Te=b.M(Ee).diameter;isNaN(Te)&&(Te=ef(b.M(Ee),Ae)),360>xe&&(Ee===0||Ee===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++)Ee=b.M(ee),E=b.M(ee===oe-1?0:ee+1),isNaN(Ee.diameter)&&ef(Ee,0),isNaN(E.diameter)&&ef(E,0),z=Math.max(z,(Ee.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,Ee=vy(this,le,z,fe*Math.PI/180,xe*Math.PI/180),isNaN(y))(re===Gc||re===Yc)&&(y=(Ee-E)/(360<=xe?oe:oe-1));else if(re===Gc||re===Yc)Ee=(Ee-E)/(360<=xe?oe:oe-1),Ee<y?(le=S0(this,E+y*(360<=xe?oe:oe-1),ue,fe*Math.PI/180,xe*Math.PI/180),z=le*ue):y=Ee;else{for(ee=-1/0,E=0;E<oe;E++)Ae=b.M(E),Te=b.M(E===oe-1?0:E+1),isNaN(Ae.diameter)&&ef(Ae,0),isNaN(Te.diameter)&&ef(Te,0),ee=Math.max(ee,(Ae.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=Ee/(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=Qe.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(Qe.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),Ee=Math.abs(le-fe)-((ue[0].height+ue[ue.length-1].height)/2+ee);ee=0,1>Math.abs(Ee)?Math.abs(oe-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ee=0):ee=0<Ee?Ee: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=Qe.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(Qe.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}qa.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},qa.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 Qe(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))},qa.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}}qa.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:Et("Invalid sorting type.")}return a};function Zx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new kn;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}qa.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 kn;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,Ee=[],Ae=0;Ae<x.length;Ae++)0>y[x[Ae]].indexOf(x[Ae===x.length-1?0:Ae+1])&&Ee.push(Ae===x.length-1?0:Ae+1);if(Ee.length===0)for(Ae=0;Ae<x.length;Ae++)Ee.push(Ae);for(Ae=0;Ae<Ee.length;Ae++){for(var Te=Ee[Ae],ot=y[le],Ue=0,St=0;St<ee.length;St++){var Ct=z[ee[St]],Ft=z[re[St]];if(Ct<Ft){var jt=Ct;Ct=Ft}else jt=Ft;if(jt<Te&&Te<=Ct)for(Ft=0;Ft<ot.length;Ft++){var yn=ot[Ft];0>x.indexOf(yn)||jt<z[yn]&&z[yn]<Ct||jt===z[yn]||Ct===z[yn]||Ue++}else for(Ft=0;Ft<ot.length;Ft++)yn=ot[Ft],0>x.indexOf(yn)||jt<z[yn]&&z[yn]<Ct&&jt!==z[yn]&&Ct!==z[yn]&&Ue++}for(ot=Ue,St=Ue=0;St<y[le].length;St++)jt=x.indexOf(y[le][St]),0<=jt&&(jt=Math.abs(Te-(jt>=Te?jt+1:jt)),Ue+=jt<x.length+1-jt?jt:x.length+1-jt);for(St=0;St<ee.length;St++)jt=z[ee[St]],Ct=z[re[St]],jt>=Te&&jt++,Ct>=Te&&Ct++,jt>Ct&&(Ft=Ct,Ct=jt,jt=Ft),Ct-jt<(x.length+2)/2==(jt<Te&&Te<=Ct)&&Ue++;(ot<ue||ot===ue&&Ue<fe)&&(ue=ot,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++)Ee=x.indexOf(y[le][xe]),0>Ee||Ee===ue||(Ae=Ee>ue?Ee-ue:ue-Ee,fe+=Ee<ue!=Ae>ee-Ae?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},tt.Object.defineProperties(qa.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 Xt(qa,"ConstantSpacing",0),$h=new Xt(qa,"ConstantDistance",1),Lh=new Xt(qa,"ConstantAngle",2),Yc=new Xt(qa,"Packed",3),cu=new Xt(qa,"Clockwise",4),qh=new Xt(qa,"Counterclockwise",5),Tf=new Xt(qa,"BidirectionalLeft",6),Gg=new Xt(qa,"BidirectionalRight",7),w0=new Xt(qa,"Forwards",8),P0=new Xt(qa,"Reverse",9),C0=new Xt(qa,"Ascending",10),b0=new Xt(qa,"Descending",11),Yg=new Xt(qa,"Optimized",12),E0=new Xt(qa,"Pythagorean",13),sg=new Xt(qa,"Circular",14);qa.className="CircularLayout",qa.ConstantSpacing=Gc,qa.ConstantDistance=$h,qa.ConstantAngle=Lh,qa.Packed=Yc,qa.Clockwise=cu,qa.Counterclockwise=qh,qa.BidirectionalLeft=Tf,qa.BidirectionalRight=Gg,qa.Forwards=w0,qa.Reverse=P0,qa.Ascending=C0,qa.Descending=b0,qa.Optimized=Yg,qa.Pythagorean=E0,qa.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)}bt(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}bt(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}tt.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)}bt(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)}bt(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=ti(),ue=0;ue<re+y.vertexes.count+2;ue++)le[ue]=null;re=0,ee.reset();for(var fe=Cn.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 Qe(fe.x+fe.width+b.width,fe.y),le[1]=new Qe(fe.x,fe.y+fe.height+b.height),re=2;else{var xe=KS(le,re,E,z,fe.width,fe.height,b),Ee=le[xe],Ae=new Qe(Ee.x+fe.width+b.width,Ee.y),Te=new Qe(Ee.x,Ee.y+fe.height+b.height);for(xe+1<re&&le.splice(xe+1,0,null),le[xe]=Ae,le[xe+1]=Te,re++,xe=Ee.x-fe.x,Ee=Ee.y-fe.y,ue=ue.vertexes.iterator;ue.next();)Ae=ue.value,Ae.centerX+=xe,Ae.centerY+=Ee}for(Cn.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 Qe(xe.x+xe.width+b.width,xe.y),le[1]=new Qe(xe.x,xe.y+xe.height+b.height),re=2):(oe=KS(le,re,E,z,xe.width,xe.height,b),fe=le[oe],Ee=new Qe(fe.x+xe.width+b.width,fe.y),xe=new Qe(fe.x,fe.y+xe.height+b.height),oe+1<re&&le.splice(oe+1,0,null),le[oe]=Ee,le[oe+1]=xe,re++,ee.centerX=fe.x+ee.width/2,ee.centerY=fe.y+ee.height/2);for(xi(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 kn),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 kn,E.Hj=re),re.add(ee),E.Vd--,E.sh+=ee.sh):ee.network===b&&(re=ee.Hj,re===null&&(re=new kn,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,Kt.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 Ee=z.value;if(Ee.Ax(fe)===E){xe=Ee;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,Ee=ue*fe,1>Ee&&(Ee=1),re=Kt.sqrt((re+Ee+le*le*4/(ee*ee))/Ee),ee=(re-1)*ue/2,re=(re-1)*fe/2,E.bounds=new Cn(z-xe.x-ee,oe-xe.y-re,ue+2*ee,fe+2*re),E.focus=new Qe(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 Cn(b.centerX-z,b.centerY-ee,E.Ss,E.Qs),b.focus=new Qe(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=Kt.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(Ee,Ae){return Ee===null||Ae===null||Ee===Ae?0:Ae.width*Ae.height-Ee.width*Ee.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=Kt.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,Kt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ee,a=a+x-y,Kt.sqrt(b*b+a*a)):ee-(b+E):b>ee+re?a>y+z?(x=b-ee-re,a=a-y-z,Kt.sqrt(x*x+a*a)):a+x<y?(b=b-ee-re,a=a+x-y,Kt.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,ot){return Te===null||ot===null||Te===ot?0:Te.centerX-ot.centerX}):y.sort(function(Te,ot){return Te===null||ot===null||Te===ot?0:Te.centerY-ot.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 Ee=b.y+re.y;if(oe-le>x||le-oe>x){if(E)break}else if(ue-Ee>x||Ee-ue>x){if(!E)break}else{var Ae=VS(ee,xe);1>Ae?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new L0),Ae=b.random(),re=b.random(),oe>le?(b=Math.abs(xe.bounds.right-ee.bounds.x),b=(1+b)*Ae):oe<le?(b=Math.abs(xe.bounds.x-ee.bounds.right),b=-(1+b)*Ae):(b=Math.max(xe.width,ee.width),b=(1+b)*Ae-b/2),ue>Ee?(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)/(Ae*Ae),b=(le-oe)/Ae*re,le=(Ee-ue)/Ae*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=Xo,y.toSpot=Xo)}},Bl.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Cn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Cn.free(x)}x=Cn.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()}Cn.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},tt.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"&&Et('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)}bt(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}bt(Jp,Xs),tt.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}bt(Qp,Gu),tt.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 oa(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 Qe,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}bt(oa,Za),oa.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},oa.prototype.qb=function(a){a.classType===oa?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:Et("Unknown enum value: "+a):Za.prototype.qb.call(this,a)},oa.prototype.createNetwork=function(){return new Jg(this)},oa.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 Ee=xe;fe=oe,xe=re,oe=le,re=Ee}var Ae=E.focus;le=z.focus;var Te=b.rev?z.bounds:E.bounds;Ee=Qe.alloc(),ue!==fe?Te.w()&&fe.isVisible()?fe.actualBounds.w()?(Ph(fe,xe,So,Ee),Ee.x+=fe.actualBounds.x-Te.x,Ee.y+=fe.actualBounds.y-Te.y):(Ph(fe,xe,So,Ee),Ee.w()||Ee.assign(Ae)):Ee.assign(Ae):Te.w()?(Ph(fe,xe,So,Ee),Ee.w()||Ee.assign(Ae)):Ee.assign(Ae),fe=b.rev?E.bounds:z.bounds,ue=Qe.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((Ee.x-Ae.x)/this.kc),oe=Ee.x,re=Math.round((ue.x-le.x)/this.kc),le=ue.x):(ee=Math.round((Ee.y-Ae.y)/this.kc),oe=Ee.y,re=Math.round((ue.y-le.y)/this.kc),le=ue.y),Qe.free(Ee),Qe.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(Ee=E.layer,ue=z.layer,fe=0,Te=b.link,Te!==null){var ot=Te.fromPort,Ue=Te.toPort;if(ot!==null&&Ue!==null){var St=Te.fromNode;if(xe=Te.toNode,St!==null&&xe!==null){var Ct=N0(this,!0),Ft=N0(this,!1),jt=this.setsPortSpots?Ct:Te.computeSpot(!0,ot);Ae=this.setsPortSpots?Ft:Te.computeSpot(!1,Ue);var yn=Te.isOrthogonal;jt.$c()&&jt.Hf(Ft)&&Ae.$c()&&Ae.Hf(Ct)?fe=0:(Ct=Te.getLinkPoint(St,ot,jt,!0,yn,xe,Ue,Qe.alloc()),Ft=Te.getLinkDirection(St,ot,Ct,jt,!0,yn,xe,Ue),Qe.free(Ct),jt.ys()||Ft!==tx(this,b,!0)?this.setsPortSpots&&St!==null&&St.ports.count===1&&b.rev&&(fe+=1):fe+=1,jt=Te.getLinkPoint(xe,Ue,Ae,!1,yn,St,ot,Qe.alloc()),Te=Te.getLinkDirection(xe,Ue,jt,Ae,!1,yn,St,ot),Qe.free(jt),Ae.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)&&(Ae=a.createVertex(),Ae.node=null,Ae.Dj=1,Ae.layer=Ee,Ae.near=E,a.dh(Ae),E=a.Zj(E,Ae,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ee,E.portToColOffset=0,E.portFromPos=oe,E.portToPos=0,E=Ae),Te=1,fe&&Te--,Ee-ue>Te&&0<Ee){for(b.valid=!1,Ae=a.createVertex(),Ae.node=null,Ae.Dj=2,Ae.layer=Ee-1,a.dh(Ae),E=a.Zj(E,Ae,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=Ae,Ee--;Ee-ue>Te&&0<Ee;)Ae=a.createVertex(),Ae.node=null,Ae.Dj=3,Ae.layer=Ee-1,a.dh(Ae),E=a.Zj(E,Ae,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Ae,Ee--;E=a.Zj(Ae,z,b.link),E.valid=!fe,fe&&(Ae.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},oa.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}oa.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},oa.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 Ee=oe[le];if(Ee.valid&&Ee.fromVertex.layer!==y)for(fe=Ee.fromVertex.index,ue=Ee.portToPos,Ee=Ee.portFromPos,xe=le+1;xe<oe.length;xe++){var Ae=oe[xe];if(Ae.valid&&Ae.fromVertex.layer!==y){var Te=Ae.fromVertex.index,ot=Ae.portToPos;Ae=Ae.portFromPos,ue<ot&&(fe>Te||fe===Te&&Ee>Ae)&&re++,ot<ue&&(Te>fe||Te===fe&&Ae>Ee)&&re++}}}if(0>=x){for(oe=b[ee].destinationEdgesArrayAccess,le=0;le<oe.length;le++)if(Ee=oe[le],Ee.valid&&Ee.toVertex.layer!==y)for(fe=Ee.toVertex.index,ue=Ee.portToPos,Ee=Ee.portFromPos,xe=le+1;xe<oe.length;xe++)Ae=oe[xe],Ae.valid&&Ae.toVertex.layer!==y&&(Te=Ae.toVertex.index,ot=Ae.portToPos,Ae=Ae.portFromPos,Ee<Ae&&(fe>Te||fe===Te&&ue>ot)&&re++,Ae<Ee&&(Te>fe||Te===fe&&ot>ue)&&re++)}for(z[ee*E+ee]=re,oe=ee+1;oe<E;oe++){var Ue=0,St=0;if(0<=x){re=b[ee].sourceEdgesArrayAccess;var Ct=b[oe].sourceEdgesArrayAccess;for(le=0;le<re.length;le++)if(Ee=re[le],Ee.valid&&Ee.fromVertex.layer!==y)for(fe=Ee.fromVertex.index,Ee=Ee.portFromPos,xe=0;xe<Ct.length;xe++)Ae=Ct[xe],Ae.valid&&Ae.fromVertex.layer!==y&&(Te=Ae.fromVertex.index,Ae=Ae.portFromPos,(fe<Te||fe===Te&&Ee<Ae)&&St++,(Te<fe||Te===fe&&Ae<Ee)&&Ue++)}if(0>=x){for(re=b[ee].destinationEdgesArrayAccess,Ct=b[oe].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(Ee=re[le],Ee.valid&&Ee.toVertex.layer!==y)for(fe=Ee.toVertex.index,ue=Ee.portToPos,xe=0;xe<Ct.length;xe++)Ae=Ct[xe],Ae.valid&&Ae.toVertex.layer!==y&&(Te=Ae.toVertex.index,ot=Ae.portToPos,(fe<Te||fe===Te&&ue<ot)&&St++,(Te<fe||Te===fe&&ot<ue)&&Ue++)}z[ee*E+oe]=Ue,z[oe*E+ee]=St}}return nf(a,y,b),z}oa.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,Ee=fe.toVertex.column+fe.portToColOffset;re+=(Math.abs(xe-Ee)+1)*yy(fe)}}}nf(b,E,z),y+=re}return y}oa.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 Ee=re.fromVertex;re.valid&&!re.rev&&Ee.layer!==y&&(ue+=Ee.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 Ee=re.fromVertex;re.valid&&!re.rev&&Ee.layer!==y&&(fe[ue]=Ee.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(Ae,Te){return Ae-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)}}oa.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++}oa.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 Ee=0;Ee<E;Ee++){var Ae=xe[Ee],Te=Ae.fromVertex;ue+=1,Te.component!==1&&(z+=1,Te=Te.layer-le.layer,Ae=a.linkMinLength(Ae),b=Math.min(b,Te-Ae))}for(xe=le.destinationEdgesArrayAccess,E=xe.length,Ee=0;Ee<E;Ee++)Ae=xe[Ee].toVertex,--ue,Ae.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,Ee=0;Ee<fe;Ee++)Ae=xe[Ee].fromVertex,le+=1,Ae.component!==1?b+=1:ue=!0;for(xe=ee.destinationEdgesArrayAccess,fe=xe.length,Ee=0;Ee<fe;Ee++)Ae=xe[Ee],Te=Ae.toVertex,--le,Te.component!==1&&(--b,Te=ee.layer-Te.layer,Ae=a.linkMinLength(Ae),E=Math.min(E,Te-Ae));(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}oa.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))}oa.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),Nc(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),Nc(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),Nc(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Eu(this)),b=this.Ia;0<=b;b--)F0(this,b,0),Nc(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=Nc(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=Nc(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=Nc(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=Nc(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=Nc(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=Nc(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=Nc(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=Nc(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=Nc(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=Nc(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=Nc(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=Nc(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 Nc(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,Ee=0,Ae=b[z].column,Te=b[z+1].column,ot=a.nodeMinColumnSpace(b[z],!0),Ue=a.nodeMinColumnSpace(b[z],!1),St=a.nodeMinColumnSpace(b[z+1],!0),Ct=a.nodeMinColumnSpace(b[z+1],!1);ot=Ae-ot+St,Ue=Te-Ue+Ct;var Ft=b[z].sourceEdges.iterator;for(Ft.reset();Ft.next();)if(St=Ft.value,Ct=St.fromVertex,St.valid&&Ct.layer===y){for(St=0;b[St]!==Ct;)St++;St<z&&(xe+=2*(z-St),Ee+=2*(z+1-St)),St===z+1&&(xe+=1),St>z+1&&(xe+=4*(St-z),Ee+=4*(St-(z+1)))}for(Ft=b[z].destinationEdges.iterator,Ft.reset();Ft.next();)if(St=Ft.value,Ct=St.toVertex,St.valid&&Ct.layer===y){for(St=0;b[St]!==Ct;)St++;St===z+1&&(Ee+=1)}for(Ft=b[z+1].sourceEdges.iterator,Ft.reset();Ft.next();)if(St=Ft.value,Ct=St.fromVertex,St.valid&&Ct.layer===y){for(St=0;b[St]!==Ct;)St++;St<z&&(xe+=2*(z+1-St),Ee+=2*(z-St)),St===z&&(Ee+=1),St>z+1&&(xe+=4*(St-(z+1)),Ee+=4*(St-z))}for(Ft=b[z+1].destinationEdges.iterator,Ft.reset();Ft.next();)if(St=Ft.value,Ct=St.toVertex,St.valid&&Ct.layer===y){for(St=0;b[St]!==Ct;)St++;St===z&&(xe+=1)}St=Ct=0,Ft=ee[b[z].index];var jt=re[b[z].index],yn=ee[b[z+1].index],Fi=re[b[z+1].index];Ft!==-1&&(Ct+=Math.abs(Ft-Ae),St+=Math.abs(Ft-Ue)),jt!==-1&&(Ct+=Math.abs(jt-Ae),St+=Math.abs(jt-Ue)),yn!==-1&&(Ct+=Math.abs(yn-Te),St+=Math.abs(yn-ot)),Fi!==-1&&(Ct+=Math.abs(Fi-Te),St+=Math.abs(Fi-ot)),(Ee<xe-.5||Ee===xe&&fe<ue-.5||Ee===xe&&fe===ue&&St<Ct-.5)&&(le=oe=!0,b[z].column=Ue,b[z+1].column=ot,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}oa.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),Ee=0;0>b-1||ue-E[b-1].column-1>fe+a.nodeMinColumnSpace(E[b-1],!1)?Ee=ue-1:Ee=ue,fe=b+1>=z||E[b+1].column-ue-1>xe+a.nodeMinColumnSpace(E[b+1],!0)?ue+1:ue;var Ae=xe=0,Te=0;if(0>=x)for(var ot=E[b].sourceEdges.iterator;ot.next();){var Ue=ot.value,St=Ue.fromVertex;if(Ue.valid&&St.layer!==y){var Ct=yy(Ue),Ft=Ue.portFromColOffset;Ue=Ue.portToColOffset,St=St.column,xe+=(Math.abs(ue+Ue-(St+Ft))+1)*Ct,Ae+=(Math.abs(Ee+Ue-(St+Ft))+1)*Ct,Te+=(Math.abs(fe+Ue-(St+Ft))+1)*Ct}}if(0<=x)for(ot=E[b].destinationEdges.iterator;ot.next();)Ue=ot.value,St=Ue.toVertex,Ue.valid&&St.layer!==y&&(Ct=yy(Ue),Ft=Ue.portFromColOffset,Ue=Ue.portToColOffset,St=St.column,xe+=(Math.abs(ue+Ft-(St+Ue))+1)*Ct,Ae+=(Math.abs(Ee+Ft-(St+Ue))+1)*Ct,Te+=(Math.abs(fe+Ft-(St+Ue))+1)*Ct);Ue=Ft=Ct=0,ot=ee[E[b].index],St=re[E[b].index],ot!==-1&&(Ct+=Math.abs(ot-ue),Ft+=Math.abs(ot-Ee),Ue+=Math.abs(ot-fe)),St!==-1&&(Ct+=Math.abs(St-ue),Ft+=Math.abs(St-Ee),Ue+=Math.abs(St-fe)),Ae<xe||Ae===xe&&Ft<Ct?(le=oe=!0,E[b].column=Ee):(Te<xe||Te===xe&&Ue<Ct)&&(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=ti(),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=k0(a,y,!0,!1)),y.reverse(),fe&&(a.verticalAlignment(y,x,!1),re=k0(a,y,!1,!1)),b=ki(y),E=b.next();!E.done;E=b.next())E.value.reverse();xe&&(a.verticalAlignment(y,x,!1),oe=k0(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ee=k0(a,y,!0,!0)),xi(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(Ee){var Ae=ti();le&&Ae.push(z.get(Ee)),ue&&Ae.push(ee.get(Ee)),fe&&Ae.push(re.get(Ee)),xe&&Ae.push(oe.get(Ee)),Ae.sort(function(ot,Ue){return ot-Ue});var Te=Ae.length;Te=(Ae[Math.floor((Te-1)/2)]+Ae[Math.ceil((Te-1)/2)])/2,xi(Ae),Ee.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=ky(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=ky(le)[0].index);z<=oe;){if(le=re[z],!le.bo){fe=[];for(var xe=ki(le.sourceEdgesArrayAccess),Ee=xe.next();!Ee.done;Ee=xe.next())Ee=Ee.value,Ee.valid&&fe.push(Ee);le.bo=fe}for(le=ki(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}}}oa.prototype.verticalAlignment=function(a,y,x){ew(a),a=ki(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=ki(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var ee=x?ky(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 k0(a,y,x,b){for(var E=a.K===90||a.K===270,z=ki(y),ee=z.next();!ee.done;ee=z.next()){var re=ki(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=ki(y),re=z.next();!re.done;re=z.next()){re=ki(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,Ee=ee?fe.width:fe.height;if(x){var Ae=I0(ue,fe),Te=Ae.portFromPos,ot=Ae.portToPos;Ae.link!==null&&(ue.node&&ue.node!==Ae.link.fromNode&&(Te=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Ae.link.toNode&&(ot=ee?fe.focusX:fe.focusY))}else Ae=I0(fe,ue),Te=Ae.portToPos,ot=Ae.portFromPos,Ae.link!==null&&(ue.node&&ue.node!==Ae.link.toNode&&(Te=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Ae.link.fromNode&&(ot=ee?fe.focusX:fe.focusY));xe=b?ue.qg+(xe-Te)-(Ee-ot):ue.qg+Te-ot,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=ki(y),ee=x.next();!ee.done;ee=x.next())for(z=ki(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 Ii,y=ki(y),ee=y.next();!ee.done;ee=y.next())for(x=ki(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&&Et("Could not determine previous vertex in layer"),y[x][a-1]}oa.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=ti(),E=ti(),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)));xi(b),xi(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}oa.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=N0(this,!0),y=N0(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 N0(a,y){return a.K===270?y?os:xs:a.K===90?y?xs:os:a.K===180?y?hs:Ls:y?Ls:hs}oa.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 Qe(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},oa.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 Cn(0,0,x,Math.abs(this.Ta[0]))):y.push(new Cn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Cn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Cn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Cn(0,0,Math.abs(this.Ta[0]),x)):y.push(new Cn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Cn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Cn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},oa.prototype.commitLayers=function(){},oa.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,Ee=!1,Ae=this.ie,Te=y.firstPickIndex+1;if(y.isOrthogonal){Ee=!0;var ot=y.pointsCount;4<ot&&y.points.removeRange(2,ot-3)}else if(y.curve===nc)xe=!0,ot=y.pointsCount,4<ot&&y.points.removeRange(2,ot-3),ot===4&&(Te=2);else{ot=y.pointsCount;var Ue=le===Da,St=oe===Da;2<ot&&Ue&&St?y.points.removeRange(1,ot-2):3<ot&&Ue&&!St?y.points.removeRange(1,ot-3):3<ot&&!Ue&&St?y.points.removeRange(2,ot-2):4<ot&&!Ue&&!St&&y.points.removeRange(2,ot-3)}if(x.rev){for(;fe!==null&&ue!==fe;){var Ct=ot=null;for(Ue=fe.sourceEdges.iterator;Ue.next()&&(St=Ue.value,St.link!==x.link||(ot=St.fromVertex,Ct=St.toVertex,ot.node!==null)););if(ot===null)break;if(ot!==ue){Ue=y.i(Te-1).x,St=y.i(Te-1).y;var Ft=ot.centerX,jt=ot.centerY;if(Ee)this.K===180||this.K===0?Te===y.firstPickIndex+1?(y.m(Te++,Ue,St),y.m(Te++,Ue,jt)):(Ct!==null?Ct.centerY:St)!==jt&&(Ct=this.Ta[ot.layer-1]+this.Rf.x,y.m(Te++,Ct,St),y.m(Te++,Ct,jt)):Te===y.firstPickIndex+1?(y.m(Te++,Ue,St),y.m(Te++,Ft,St)):(Ct!==null?Ct.centerX:Ue)!==Ft&&(Ct=this.Ta[ot.layer-1]+this.Rf.y,y.m(Te++,Ue,Ct),y.m(Te++,Ft,Ct));else if(Te===y.firstPickIndex+1){Ct=Math.max(10,this.he[fe.layer]);var yn=Math.max(10,this.Ld[fe.layer]);if(xe)this.K===180?Ft<=fe.bounds.x?(fe=fe.bounds.x,y.m(Te++,fe-Ct,jt),y.m(Te++,fe,jt),y.m(Te++,fe+yn,jt)):(y.m(Te++,Ft-Ct,jt),y.m(Te++,Ft,jt),y.m(Te++,Ft+yn,jt)):this.K===90?jt>=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(Te++,Ft,fe+yn),y.m(Te++,Ft,fe),y.m(Te++,Ft,fe-Ct)):(y.m(Te++,Ft,jt+yn),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt-Ct)):this.K===270?jt<=fe.bounds.y?(fe=fe.bounds.y,y.m(Te++,Ft,fe-Ct),y.m(Te++,Ft,fe),y.m(Te++,Ft,fe+yn)):(y.m(Te++,Ft,jt-Ct),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt+yn)):this.K===0&&(Ft>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(Te++,fe+yn,jt),y.m(Te++,fe,jt),y.m(Te++,fe-Ct,jt)):(y.m(Te++,Ft+yn,jt),y.m(Te++,Ft,jt),y.m(Te++,Ft-Ct,jt)));else{y.m(Te++,Ue,St);var Fi=0;this.K===180||this.K===0?((this.K===180?Ft>=fe.bounds.right:Ft<=fe.bounds.x)&&(Fi=(this.K===0?-Ct:yn)/2),y.m(Te++,Ue+Fi,jt)):((this.K===270?jt>=fe.bounds.bottom:jt<=fe.bounds.y)&&(Fi=(this.K===90?-Ct:yn)/2),y.m(Te++,Ft,St+Fi)),y.m(Te++,Ft,jt)}}else Ct=Math.max(10,this.he[ot.layer]),yn=Math.max(10,this.Ld[ot.layer]),xe?this.K===180?(y.m(Te++,Ft-Ct-Ae,jt),y.m(Te++,Math.min(Ft-Ct+Ae/2,Ft),jt),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt),y.m(Te++,Math.max(Ft+yn-Ae/2,Ft),jt),y.m(Te++,Ft+yn+Ae,jt)):this.K===90?(y.m(Te++,Ft,jt+yn+Ae),y.m(Te++,Ft,Math.max(jt+yn-Ae/2,jt)),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt),y.m(Te++,Ft,Math.min(jt-Ct+Ae/2,jt)),y.m(Te++,Ft,jt-Ct-Ae)):this.K===270?(y.m(Te++,Ft,jt-Ct-Ae),y.m(Te++,Ft,Math.min(jt-Ct+Ae/2,jt)),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt),y.m(Te++,Ft,Math.max(jt+yn-Ae/2,jt)),y.m(Te++,Ft,jt+yn+Ae)):(y.m(Te++,Ft+yn+Ae,jt),y.m(Te++,Math.max(Ft+yn-Ae/2,Ft),jt),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt),y.m(Te++,Math.min(Ft-Ct+Ae/2,Ft),jt),y.m(Te++,Ft-Ct-Ae,jt)):y.m(Te++,Ft,jt)}fe=ot}(re===null||le!==Da||Ee)&&(Ue=y.i(Te-1).x,St=y.i(Te-1).y,Ft=y.i(Te).x,jt=y.i(Te).y,Ee?(Ae=this.Ld[ue.layer],this.K===180||this.K===0?(Ee=St,Ee>=ue.bounds.y&&Ee<=ue.bounds.bottom&&(this.K===180?Ft>=ue.bounds.x:Ft<=ue.bounds.right)&&(fe=ue.centerX+(this.K===180?-Ae:Ae),Ee<ue.bounds.y+ue.bounds.height/2?Ee=ue.bounds.y-this.kc/2:Ee=ue.bounds.bottom+this.kc/2,y.m(Te++,fe,St),y.m(Te++,fe,Ee)),y.m(Te++,Ft,Ee)):(Ee=Ue,Ee>=ue.bounds.x&&Ee<=ue.bounds.right&&(this.K===270?jt>=ue.bounds.y:jt<=ue.bounds.bottom)&&(fe=ue.centerY+(this.K===270?-Ae:Ae),Ee<ue.bounds.x+ue.bounds.width/2?Ee=ue.bounds.x-this.kc/2:Ee=ue.bounds.right+this.kc/2,y.m(Te++,Ue,fe),y.m(Te++,Ee,fe)),y.m(Te++,Ee,jt)),y.m(Te++,Ft,jt)):xe?(Ct=Math.max(10,this.he[ue.layer]),yn=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,St),y.L(Te-1,fe+yn,St)):this.K===90&&jt<=ue.bounds.bottom?(fe=ue.bounds.y,y.L(Te-2,Ue,fe),y.L(Te-1,Ue,fe-Ct)):this.K===270&&jt>=ue.bounds.y?(fe=ue.bounds.y+ue.bounds.height,y.L(Te-2,Ue,fe),y.L(Te-1,Ue,fe+yn)):this.K===0&&Ft<=ue.bounds.right&&(fe=ue.bounds.x,y.L(Te-2,fe,St),y.L(Te-1,fe-Ct,St))):(Ct=Math.max(10,this.he[ue.layer]),yn=Math.max(10,this.Ld[ue.layer]),Ee=0,this.K===180||this.K===0?((this.K===180?Ft<=ue.bounds.x:Ft>=ue.bounds.right)&&(Ee=(this.K===0?yn:-Ct)/2),y.m(Te++,Ft+Ee,St)):((this.K===270?jt<=ue.bounds.y:jt>=ue.bounds.bottom)&&(Ee=(this.K===90?yn:-Ct)/2),y.m(Te++,Ue,jt+Ee)),y.m(Te++,Ft,jt)))}else{for(;ue!==null&&ue!==fe;){for(Ct=ot=null,ue=ue.destinationEdges.iterator;ue.next()&&(Ue=ue.value,Ue.link!==x.link||(ot=Ue.toVertex,Ct=Ue.fromVertex,Ct.node!==null&&(Ct=null),ot.node!==null)););if(ot===null)break;ot!==fe&&(Ue=y.i(Te-1).x,St=y.i(Te-1).y,Ft=ot.centerX,jt=ot.centerY,Ee?this.K===180||this.K===0?(Ct!==null?Ct.centerY:St)!==jt&&(Ct=this.Ta[ot.layer]+this.Rf.x,Te===y.firstPickIndex+1&&(Ct=this.K===0?Math.max(Ct,Ue):Math.min(Ct,Ue)),y.m(Te++,Ct,St),y.m(Te++,Ct,jt)):(Ct!==null?Ct.centerX:Ue)!==Ft&&(Ct=this.Ta[ot.layer]+this.Rf.y,Te===y.firstPickIndex+1&&(Ct=this.K===90?Math.max(Ct,St):Math.min(Ct,St)),y.m(Te++,Ue,Ct),y.m(Te++,Ft,Ct)):(Ct=Math.max(10,this.he[ot.layer]),yn=Math.max(10,this.Ld[ot.layer]),xe?this.K===180?(y.m(Te++,Ft+yn+Ae,jt),y.m(Te++,Math.max(Ft+yn-Ae/2,Ft),jt),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt),y.m(Te++,Math.min(Ft-Ct+Ae/2,Ft),jt),y.m(Te++,Ft-Ct-Ae,jt)):this.K===90?(y.m(Te++,Ft,jt-Ct-Ae),y.m(Te++,Ft,Math.min(jt-Ct+Ae/2,jt)),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt),y.m(Te++,Ft,Math.max(jt+yn-Ae/2,jt)),y.m(Te++,Ft,jt+yn+Ae)):this.K===270?(y.m(Te++,Ft,jt+yn+Ae),y.m(Te++,Ft,Math.max(jt+yn-Ae/2,jt)),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt),y.m(Te++,Ft,Math.min(jt-Ct+Ae/2,jt)),y.m(Te++,Ft,jt-Ct-Ae)):(y.m(Te++,Ft-Ct-Ae,jt),y.m(Te++,Math.min(Ft-Ct+Ae/2,Ft),jt),y.m(Te++,Ft,jt),y.m(Te++,Ft,jt),y.m(Te++,Math.max(Ft+yn-Ae/2,Ft),jt),y.m(Te++,Ft+yn+Ae,jt)):this.K===180?(y.m(Te++,Ft+yn,jt),y.m(Te++,Ft-Ct,jt)):this.K===90?(y.m(Te++,Ft,jt-Ct),y.m(Te++,Ft,jt+yn)):this.K===270?(y.m(Te++,Ft,jt+yn),y.m(Te++,Ft,jt-Ct)):(y.m(Te++,Ft-Ct,jt),y.m(Te++,Ft+yn,jt)))),ue=ot}Ee&&(Ue=y.i(Te-1).x,St=y.i(Te-1).y,Ft=y.i(Te).x,jt=y.i(Te).y,this.K===180||this.K===0?St!==jt&&(Ct=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++,Ct,St),y.m(Te++,Ct,jt)):Ue!==Ft&&(Ct=this.K===90?Math.min(Math.max((jt+St)/2,this.Ta[fe.layer]+this.Rf.y),jt):Math.max(Math.min((jt+St)/2,this.Ta[fe.layer]+this.Rf.y),jt),y.m(Te++,Ue,Ct),y.m(Te++,Ft,Ct)))}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()},oa.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new kn,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 Ee=xe.link;z=Ee.i(xe.index),ee=Ee.i(xe.index+1);var Ae=this.linkSpacing*(ue-(le-1)/2);y++,Ee.uh(),Ee.L(xe.index,z.x,z.y+Ae),Ee.L(xe.index+1,ee.x,ee.y+Ae),Ee.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),Ee=xe.link,z=Ee.i(xe.index),ee=Ee.i(xe.index+1),Ae=this.linkSpacing*(ue-(le-1)/2),y++,Ee.uh(),Ee.L(xe.index,z.x+Ae,z.y),Ee.L(xe.index+1,ee.x+Ae,ee.y),Ee.zf()}z=E}a=b}}}},Ce=oa.prototype,Ce.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},Ce.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},Ce.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},Ce.B=function(a,y){return a-=y,-1<a&&1>a},Ce.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Et("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}tt.Object.defineProperties(oa.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()):Et("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 Xt(oa,"CycleDepthFirst",0),Cy=new Xt(oa,"CycleGreedy",1),$p=new Xt(oa,"CycleFromLayers",2),B0=new Xt(oa,"LayerOptimalLinkLength",0),by=new Xt(oa,"LayerLongestPathSink",1),Ey=new Xt(oa,"LayerLongestPathSource",2),T0=new Xt(oa,"InitDepthFirstOut",0),Ay=new Xt(oa,"InitDepthFirstIn",1),Ly=new Xt(oa,"InitNaive",2),My=new Xt(oa,"AggressiveNone",0),O0=new Xt(oa,"AggressiveLess",1),Fy=new Xt(oa,"AggressiveMore",2),nw=8;oa.className="LayeredDigraphLayout",oa.CycleDepthFirst=D0,oa.CycleGreedy=Cy,oa.CycleFromLayers=$p,oa.LayerOptimalLinkLength=B0,oa.LayerLongestPathSink=by,oa.LayerLongestPathSource=Ey,oa.InitDepthFirstOut=T0,oa.InitDepthFirstIn=Ay,oa.InitNaive=Ly,oa.AggressiveNone=My,oa.AggressiveLess=O0,oa.AggressiveMore=Fy,oa.PackNone=0,oa.PackExpand=1,oa.PackStraighten=2,oa.PackMedian=4,oa.PackAll=15,oa.AlignNone=0,oa.AlignUpperLeft=1,oa.AlignUpperRight=2,oa.AlignLowerLeft=4,oa.AlignLowerRight=8,oa.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)}bt(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}bt(vc,Xs);function lx(a,y){return a.index-y.index}function I0(a,y){if(!a.$n){for(var x=[],b=ki(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=ki(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Et("Unable to find destination edge to given vertex")}function ky(a){if(!a.co){for(var y=[],x=ki(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=ki(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},tt.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}bt(qp,Gu),tt.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)}bt(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:Et("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 Di)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof gi){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 pn?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Xr?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},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 pn&&(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 Di?(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,Ny(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,Ny(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:Et("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:Et("Unhandled path value "+a.ud.toString())}}return b}function Ny(a,y){if(y!==null){switch(a.ud){case Td:if(0<y.destinationEdges.count){for(var x=new kn,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 kn,b=y.sourceVertexes;b.next();)E=b.value,cx(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Et("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++)Ny(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:Et("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=Cn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=E,Cn.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=Qe.alloc(),xe=0;xe<ue;xe++){var Ee=le[xe],Ae=Ee.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-Ae.width,a.bounds.y+oe),Ee.move(fe),Ee=Ee.Sd();Ee.next();){var Te=Ee.value;Te.fromSpot=hs,Te.toSpot=Ls}else for(fe.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),Ee.move(fe),Ee=Ee.Sd();Ee.next();)Te=Ee.value,Te.fromSpot=Ls,Te.toSpot=hs;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),Ee.move(fe),Ee=Ee.Sd();Ee.next();)Te=Ee.value,Te.fromSpot=Ls,Te.toSpot=hs;else for(fe.h(a.bounds.x+a.commentMargin-Ae.width,a.bounds.y+oe),Ee.move(fe),Ee=Ee.Sd();Ee.next();)Te=Ee.value,Te.fromSpot=hs,Te.toSpot=Ls;oe=0<=a.commentSpacing?oe+(Ae.height+a.commentSpacing):oe+(a.commentSpacing-Ae.height)}else{if(135<E&&!z||!x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Ae.height),Ee.move(fe),Ee=Ee.Sd();Ee.next();)Te=Ee.value,Te.fromSpot=os,Te.toSpot=xs;else for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),Ee.move(fe),Ee=Ee.Sd();Ee.next();)Te=Ee.value,Te.fromSpot=xs,Te.toSpot=os;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),Ee.move(fe),Ee=Ee.Sd();Ee.next();)Te=Ee.value,Te.fromSpot=xs,Te.toSpot=os;else for(fe.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Ae.height),Ee.move(fe),Ee=Ee.Sd();Ee.next();)Te=Ee.value,Te.fromSpot=os,Te.toSpot=xs;oe=0<=a.commentSpacing?oe+(Ae.width+a.commentSpacing):oe+(a.commentSpacing-Ae.width)}}if(Qe.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,Ee=this.computeNodeIndent(a),Ae=a.rowSpacing,Te=0;(b||le||a.hm||a.im&&a.maxGenerationCount===1)&&(Te=Math.max(0,a.rowIndent)),b=a.width;var ot=a.height,Ue=0,St=0,Ct=0,Ft=null,jt=null,yn=0,Fi=0,Xi=0,ji=0,fi=0,_n=0,Ur=0,Ir=0;if(ue&&!em(oe)&&135<E&&ee.reverse(),em(oe))if(1<re)for(var Jo=0;Jo<re;Jo++)Jo%2===0&&Jo!==re-1&&(Ir=Math.max(Ir,y?ee[Jo].Da.width:ee[Jo].Da.height));else re===1&&(Ir=y?ee[0].Da.width:ee[0].Da.height);if(ue){switch(oe){case Mh:St=135>E?px(this,a,ee,Ir,Ue,St):mx(this,a,ee,Ir,Ue,St),Ir=St.x,Ue=St.width,St=St.height;break;case Fh:for(Ft=0;Ft<re;Ft++)jt=ee[Ft],fe=jt.Da,Ct=_n===0?0:Ae,y?(jt.S.h(z-fe.width,ji+Ct),Ue=Math.max(Ue,fe.width),St=Math.max(St,ji+Ct+fe.height),ji+=Ct+fe.height):(jt.S.h(Xi+Ct,z-fe.height),Ue=Math.max(Ue,Xi+Ct+fe.width),St=Math.max(St,fe.height),Xi+=Ct+fe.width),_n++;break;case nh:for(Ft=0;Ft<re;Ft++)jt=ee[Ft],z=jt.Da,fe=_n===0?0:Ae,y?(jt.S.h(xe/2+a.focus.x,ji+fe),Ue=Math.max(Ue,z.width),St=Math.max(St,ji+fe+z.height),ji+=fe+z.height):(jt.S.h(Xi+fe,xe/2+a.focus.y),Ue=Math.max(Ue,Xi+fe+z.width),St=Math.max(St,z.height),Xi+=fe+z.width),_n++}Ft=Ou(this,2),jt=Ou(this,2),y?(Ft[0].h(0,0),Ft[1].h(0,St),jt[0].h(Ue,0)):(Ft[0].h(0,0),Ft[1].h(Ue,0),jt[0].h(0,St)),jt[1].h(Ue,St)}else for(Jo=0;Jo<re;Jo++){var wa=ee[Jo],qs=wa.Da;if(y){0<fe&&0<_n&&Xi+xe+qs.width>fe&&(Xi<z&&Of(a,oe,z-Xi,0,Ur,Jo-1),fi++,_n=0,Ur=Jo,Ct=St,Xi=0,ji=135<E?-St-Ae:St+Ae),z0(this,wa,0,ji);var cl=0;if(_n===0)Ft=wa.Yo,jt=wa.kp,yn=qs.width,Fi=qs.height,(Ft===null||jt===null||E!==Uc(wa))&&(Ft=Ou(this,2),jt=Ou(this,2),Ft[0].h(0,0),Ft[1].h(0,Fi),jt[0].h(yn,0),jt[1].h(yn,Fi));else{var Xl=ti();Fi=vx(this,a,wa,Ft,jt,yn,Fi,Xl),cl=Fi.x,Ft=Xl[0],jt=Xl[1],yn=Fi.width,Fi=Fi.height,xi(Xl),Xi<qs.width&&0>cl&&(ug(a,-cl,0,Ur,Jo-1),j0(Ft,-cl,0),j0(jt,-cl,0),cl=0)}wa.S.h(cl,ji),Ue=Math.max(Ue,yn),St=Math.max(St,Ct+(fi===0?0:Ae)+qs.height),Xi=yn}else 0<fe&&0<_n&&ji+xe+qs.height>fe&&(ji<z&&Of(a,oe,0,z-ji,Ur,Jo-1),fi++,_n=0,Ur=Jo,Ct=Ue,ji=0,Xi=135<E?-Ue-Ae:Ue+Ae),z0(this,wa,Xi,0),cl=0,_n===0?(Ft=wa.Yo,jt=wa.kp,yn=qs.width,Fi=qs.height,(Ft===null||jt===null||E!==Uc(wa))&&(Ft=Ou(this,2),jt=Ou(this,2),Ft[0].h(0,0),Ft[1].h(yn,0),jt[0].h(0,Fi),jt[1].h(yn,Fi))):(Xl=ti(),Fi=vx(this,a,wa,Ft,jt,yn,Fi,Xl),cl=Fi.x,Ft=Xl[0],jt=Xl[1],yn=Fi.width,Fi=Fi.height,xi(Xl),ji<qs.height&&0>cl&&(ug(a,0,-cl,Ur,Jo-1),j0(Ft,0,-cl),j0(jt,0,-cl),cl=0)),wa.S.h(Xi,cl),St=Math.max(St,Fi),Ue=Math.max(Ue,Ct+(fi===0?0:Ae)+qs.width),ji=Fi;_n++}switch(0<fi&&(y?(St+=Math.max(0,x),Xi<Ue&&Of(a,oe,Ue-Xi,0,Ur,re-1),0<Te&&(le||ug(a,Te,0,0,re-1),Ue+=Te)):(Ue+=Math.max(0,x),ji<St&&Of(a,oe,0,St-ji,Ur,re-1),0<Te&&(le||ug(a,0,Te,0,re-1),St+=Te))),Te=le=0,oe){case _g:y?le+=Ue/2-a.focus.x-Ee/2:Te+=St/2-a.focus.y-Ee/2;break;case dg:0<fi?y?le+=Ue/2-a.focus.x-Ee/2:Te+=St/2-a.focus.y-Ee/2:y?(Ir=ee[0].S.x+ee[0].la.x,le+=Ir+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-Ir)/2-a.focus.x-Ee/2):(Ir=ee[0].S.y+ee[0].la.y,Te+=Ir+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-Ir)/2-a.focus.y-Ee/2);break;case Od:y?(le-=Ee,Ue+=Ee):(Te-=Ee,St+=Ee);break;case Id:y?(le+=Ue-a.width+Ee,Ue+=Ee):(Te+=St-a.height+Ee,St+=Ee);break;case Mh:y?1<re?le+=Ir+xe/2-a.focus.x:le+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Te+=Ir+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+=St+xe/2-a.focus.y;break;case nh:break;default:St=this.customAlignment(a,le,Te,Ue,St),le=St[0],Te=St[1],Ue=St[2],St=St[3]}for(Ee=0;Ee<re;Ee++)Ir=ee[Ee],y?Ir.S.h(Ir.S.x+Ir.la.x-le,Ir.S.y+(135<E?(ue?-St:-Ir.Da.height)+Ir.la.y-x:ot+x+Ir.la.y)):Ir.S.h(Ir.S.x+(135<E?(ue?-Ue:-Ir.Da.width)+Ir.la.x-x:b+x+Ir.la.x),Ir.S.y+Ir.la.y-Te);if(re=ee=0,ue?y?(Ue=By(a,Ue,le),0>le&&(le=0),135<E&&(Te+=St+x),St+=ot+x,oe===nh&&(ee+=xe/2+a.focus.x),re+=ot+x):(135<E&&(le+=Ue+x),Ue+=b+x,St=Ty(a,St,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+=St+x),St=Math.max(Math.max(St,ot),St+ot+x),re+=ot+x):(135<E&&(le+=Ue+x),Ue=Math.max(Math.max(Ue,b),Ue+b+x),a.comments===null?ot>St&&(St=Oy(oe,0,ot-St),ee=St.x,re=St.y,St=ot,Te=0):St=Ty(a,St,Te),0>Te&&(re-=Te,Te=0),ee+=b+x),0<fi)E=Ou(this,4),fi=Ou(this,4),y?(E[2].h(0,ot+x),E[3].h(E[2].x,St),fi[2].h(Ue,E[2].y),fi[3].h(fi[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Ue,E[2].y),fi[2].h(E[2].x,St),fi[3].h(E[3].x,fi[2].y));else{for(E=Ou(this,Ft.length+2),fi=Ou(this,jt.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<jt.length;oe++)ue=jt[oe],fi[oe+2].h(ue.x+ee,ue.y+re)}y?(E[0].h(le,0),E[1].h(E[0].x,ot),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])),fi[0].h(le+b,0),fi[1].h(fi[0].x,ot),fi[2].y<fi[1].y&&(fi[2].x<fi[0].x?fi[2].assign(fi[1]):fi[1].assign(fi[2])),fi[3].y<fi[2].y&&(fi[3].x<fi[0].x?fi[3].assign(fi[2]):fi[2].assign(fi[3])),E[2].y-=x/2,fi[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])),fi[0].h(0,Te+ot),fi[1].h(b,fi[0].y),fi[2].x<fi[1].x&&(fi[2].y<fi[0].y?fi[2].assign(fi[1]):fi[1].assign(fi[2])),fi[3].x<fi[2].x&&(fi[3].y<fi[0].y?fi[3].assign(fi[2]):fi[2].assign(fi[3])),E[2].x-=x/2,fi[2].x-=x/2),sd(this,Ft),sd(this,jt),a.Yo=E,a.kp=fi,a.la.h(le,Te),a.Da.h(Ue,St)}break;default:Et("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 Ee=y.nodeSpacing,Ae=a.computeNodeIndent(y),Te=ue||fe?0:Ae/2,ot=y.rowSpacing,Ue=0;(ue||fe||y.hm||y.im&&y.maxGenerationCount===1)&&(Ue=Math.max(0,y.rowIndent)),ue=y.width;var St=y.height,Ct=0,Ft=0,jt=0,yn=0,Fi=0,Xi=0,ji=0,fi=0,_n=0,Ur=0;if(re&&!em(le)&&135<b&&E.reverse(),em(le))if(1<ee)for(var Ir=0;Ir<ee;Ir++){var Jo=E[Ir],wa=Jo.Da;Ir%2===0&&Ir!==ee-1?_n=Math.max(_n,(x?wa.width:wa.height)+a.computeBusNodeSpacing(Jo)-Ee):Ir%2!==0&&(Ur=Math.max(Ur,(x?wa.width:wa.height)+a.computeBusNodeSpacing(Jo)-Ee))}else ee===1&&(_n=x?E[0].Da.width:E[0].Da.height);if(re)switch(le){case Mh:case Rd:Ft=135>b?px(a,y,E,_n,Ct,Ft):mx(a,y,E,_n,Ct,Ft),_n=Ft.x,Ct=Ft.width,Ft=Ft.height;break;case Fh:for(xe=0;xe<ee;xe++)Te=E[xe],jt=Te.Da,Ur=ji===0?0:ot,x?(Te.S.h(z-jt.width,Fi+Ur),Ct=Math.max(Ct,jt.width),Ft=Math.max(Ft,Fi+Ur+jt.height),Fi+=Ur+jt.height):(Te.S.h(yn+Ur,z-jt.height),Ct=Math.max(Ct,yn+Ur+jt.width),Ft=Math.max(Ft,jt.height),yn+=Ur+jt.width),ji++;break;case nh:for(z=0;z<ee;z++)xe=E[z],Te=xe.Da,jt=ji===0?0:ot,x?(xe.S.h(Ee/2+y.focus.x,Fi+jt),Ct=Math.max(Ct,Te.width),Ft=Math.max(Ft,Fi+jt+Te.height),Fi+=jt+Te.height):(xe.S.h(yn+jt,Ee/2+y.focus.y),Ct=Math.max(Ct,yn+jt+Te.width),Ft=Math.max(Ft,Te.height),yn+=jt+Te.width),ji++}else for(Ur=0;Ur<ee;Ur++)Ir=E[Ur],Jo=Ir.Da,x?(0<xe&&0<ji&&yn+Ee+Jo.width>xe&&(yn<z&&Of(y,le,z-yn,0,fi,Ur-1),Xi++,ji=0,fi=Ur,jt=Ft,yn=0,Fi=135<b?-Ft-ot:Ft+ot),wa=ji===0?Te:Ee,z0(a,Ir,0,Fi),Ir.S.h(yn+wa,Fi),Ct=Math.max(Ct,yn+wa+Jo.width),Ft=Math.max(Ft,jt+(Xi===0?0:ot)+Jo.height),yn+=wa+Jo.width):(0<xe&&0<ji&&Fi+Ee+Jo.height>xe&&(Fi<z&&Of(y,le,0,z-Fi,fi,Ur-1),Xi++,ji=0,fi=Ur,jt=Ct,Fi=0,yn=135<b?-Ct-ot:Ct+ot),wa=ji===0?Te:Ee,z0(a,Ir,yn,0),Ir.S.h(yn,Fi+wa),Ft=Math.max(Ft,Fi+wa+Jo.height),Ct=Math.max(Ct,jt+(Xi===0?0:ot)+Jo.width),Fi+=wa+Jo.height),ji++;switch(0<Xi&&(x?(Ft+=Math.max(0,oe),yn<Ct&&Of(y,le,Ct-yn,0,fi,ee-1),0<Ue&&(fe||ug(y,Ue,0,0,ee-1),Ct+=Ue)):(Ct+=Math.max(0,oe),Fi<Ft&&Of(y,le,0,Ft-Fi,fi,ee-1),0<Ue&&(fe||ug(y,0,Ue,0,ee-1),Ft+=Ue))),Ue=fe=0,le){case _g:x?fe+=Ct/2-y.focus.x-Ae/2:Ue+=Ft/2-y.focus.y-Ae/2;break;case dg:0<Xi?x?fe+=Ct/2-y.focus.x-Ae/2:Ue+=Ft/2-y.focus.y-Ae/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-Ae/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-Ae/2);break;case Od:x?(fe-=Ae,Ct+=Ae):(Ue-=Ae,Ft+=Ae);break;case Id:x?(fe+=Ct-y.width+Ae,Ct+=Ae):(Ue+=Ft-y.height+Ae,Ft+=Ae);break;case Mh:case Rd:x?1<ee?fe+=_n+Ee/2-y.focus.x:fe+=E[0].focus.x-y.focus.x+E[0].la.x:1<ee?Ue+=_n+Ee/2-y.focus.y:Ue+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Fh:x?fe+=Ct+Ee/2-y.focus.x:Ue+=Ft+Ee/2-y.focus.y;break;case nh:break;default:a=a.customAlignment(y,fe,Ue,Ct,Ft),fe=a[0],Ue=a[1],Ct=a[2],Ft=a[3]}for(a=0;a<ee;a++)Ae=E[a],x?Ae.S.h(Ae.S.x+Ae.la.x-fe,Ae.S.y+(135<b?(re?-Ft:-Ae.Da.height)+Ae.la.y-oe:St+oe+Ae.la.y)):Ae.S.h(Ae.S.x+(135<b?(re?-Ct:-Ae.Da.width)+Ae.la.x-oe:ue+oe+Ae.la.x),Ae.S.y+Ae.la.y-Ue);x?(Ct=By(y,Ct,fe),0>fe&&(fe=0),135<b&&(Ue+=Ft+oe),Ft=Math.max(Math.max(Ft,St),Ft+St+oe)):(135<b&&(fe+=Ct+oe),Ct=Math.max(Math.max(Ct,ue),Ct+ue+oe),Ft=Ty(y,Ft,Ue),0>Ue&&(Ue=0)),y.la.h(fe,Ue),y.Da.h(Ct,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 Cn(b,0,E,z);if(ee===1)return y=x[0],E=y.Da.width,z=y.Da.height,new Cn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Uc(y)===90,ue=0,fe=0,xe=0,Ee=0;Ee<ee;Ee++)if(!(Ee%2!==0||1<ee&&Ee===ee-1)){var Ae=x[Ee],Te=Ae.Da,ot=ue===0?0:oe;if(le){var Ue=a.computeBusNodeSpacing(Ae)-re;Ae.S.h(b-(Te.width+Ue),xe+ot),E=Math.max(E,Te.width+Ue),z=Math.max(z,xe+ot+Te.height),xe+=ot+Te.height}else Ue=a.computeBusNodeSpacing(Ae)-re,Ae.S.h(fe+ot,b-(Te.height+Ue)),z=Math.max(z,Te.height+Ue),E=Math.max(E,fe+ot+Te.width),fe+=ot+Te.width;ue++}for(ue=0,Ae=fe,Ee=xe,le?(fe=b+re,xe=0):(fe=0,xe=b+re),Te=0;Te<ee;Te++)if(Te%2!==0){ot=x[Te],Ue=ot.Da;var St=ue===0?0:oe;if(le){var Ct=a.computeBusNodeSpacing(ot)-re;ot.S.h(fe+Ct,xe+St),E=Math.max(E,fe+Ue.width+Ct),z=Math.max(z,xe+St+Ue.height),xe+=St+Ue.height}else Ct=a.computeBusNodeSpacing(ot)-re,ot.S.h(fe+St,xe+Ct),E=Math.max(E,fe+St+Ue.width),z=Math.max(z,xe+Ue.height+Ct),fe+=St+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(Ee),Math.abs(xe)):Math.max(Math.abs(Ae),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(Ee,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(Ae,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 Cn(b,0,E,z)}function mx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new Cn(b,0,E,z);if(ee===1)return x=x[0],E=x.Da.width,z=x.Da.height,new Cn(b,0,E,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,le=Uc(y)===270,ue=0,fe=0,xe=0,Ee=0;Ee<ee;Ee++)if(!(Ee%2!==0||1<ee&&Ee===ee-1)){var Ae=x[Ee],Te=Ae.Da,ot=ue===0?0:oe;if(le){var Ue=a.computeBusNodeSpacing(Ae)-re;xe-=ot+Te.height,Ae.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(Ae)-re,fe-=ot+Te.width,Ae.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,Ae=fe,Ee=xe,le?(fe=b+re,xe=0):(fe=0,xe=b+re),Te=0;Te<ee;Te++)if(Te%2!==0){ot=x[Te],Ue=ot.Da;var St=ue===0?0:oe;if(le){var Ct=a.computeBusNodeSpacing(ot)-re;xe-=St+Ue.height,ot.S.h(fe+Ct,xe),E=Math.max(E,fe+Ue.width+Ct),z=Math.max(z,Math.abs(xe))}else Ct=a.computeBusNodeSpacing(ot)-re,fe-=St+Ue.width,ot.S.h(fe,xe+Ct),z=Math.max(z,xe+Ue.height+Ct),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(Ee),Math.abs(xe)):Math.max(Math.abs(Ae),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(Ee,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(Ae,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 Cn(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:Et("Unhandled alignment value "+a.toString())}return new Qe(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:Et("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,Ee=x.Yo,Ae=x.kp;ee=x.Da;var Te=le?Math.max(xe,ee.height):Math.max(b,ee.width);if((Ee===null||oe!==Uc(x))&&(Ee=Ou(a,2),Ae=Ou(a,2),le?(Ee[0].h(0,0),Ee[1].h(0,ee.height),Ae[0].h(ee.width,0),Ae[1].h(Ae[0].x,Ee[1].y)):(Ee[0].h(0,0),Ee[1].h(ee.width,0),Ae[0].h(0,ee.height),Ae[1].h(Ee[1].x,Ae[0].y))),le){if(xe=9999999,!(fe===null||2>fe.length||Ee===null||2>Ee.length))for(E=x=0;x<fe.length&&E<Ee.length;){z=fe[x];var ot=Ee[E];oe=ot.x,le=ot.y,oe+=b;var Ue=z;x+1<fe.length&&(Ue=fe[x+1]);var St=ot;ot=St.x,St=St.y,E+1<Ee.length&&(St=Ee[E+1],ot=St.x,St=St.y,ot+=b);var Ct=xe;z.y===le?Ct=oe-z.x:z.y>le&&z.y<St?Ct=oe+(z.y-le)/(St-le)*(ot-oe)-z.x:le>z.y&&le<Ue.y&&(Ct=oe-(z.x+(le-z.y)/(Ue.y-z.y)*(Ue.x-z.x))),Ct<xe&&(xe=Ct),Ue.y<=z.y?x++:St<=le?E++:(Ue.y<=St&&x++,St<=Ue.y&&E++)}if(xe=b-xe,xe+=ue,x=Ee,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=Ae,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,Ee),sd(a,fe),sd(a,Ae),re[0]=b,re[1]=E,new Cn(xe,0,z,ee)}if(b=9999999,!(fe===null||2>fe.length||Ee===null||2>Ee.length))for(E=x=0;x<fe.length&&E<Ee.length;)z=fe[x],ot=Ee[E],oe=ot.x,le=ot.y,le+=xe,Ue=z,x+1<fe.length&&(Ue=fe[x+1]),St=ot,ot=St.x,St=St.y,E+1<Ee.length&&(St=Ee[E+1],ot=St.x,St=St.y,St+=xe),Ct=b,z.x===oe?Ct=le-z.y:z.x>oe&&z.x<ot?Ct=le+(z.x-oe)/(ot-oe)*(St-le)-z.y:oe>z.x&&oe<Ue.x&&(Ct=le-(z.y+(oe-z.x)/(Ue.x-z.x)*(Ue.y-z.y))),Ct<b&&(b=Ct),Ue.x<=z.x?x++:ot<=oe?E++:(Ue.x<=ot&&x++,ot<=Ue.x&&E++);if(xe-=b,xe+=ue,x=Ee,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=Ae,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,Ee),sd(a,fe),sd(a,Ae),re[0]=b,re[1]=E,new Cn(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 Qe;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:Et("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:Et("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 Qe(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Qe(-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 Cn(0,z,x,re))):this.angle===90?(E.push(new Cn(0,z,x,re)),z+=re):this.angle===180?(z-=re,E.push(new Cn(z,0,re,x))):(E.push(new Cn(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=hs;break;default:E=os}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?hs:os;if(ee===1||y===ee-1&&ee%2===1)switch(b){case 0:oe=hs;break;case 90:oe=os;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?hs:os,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=hs;break;default:b.fromSpot=os}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=hs;break;case 90:b.toSpot=os;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=hs;break;default:b.toSpot=os}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=hs;break;case 90:b.fromSpot=os;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)},tt.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()):Et("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 Xt(Po,"PathDefault",-1),Td=new Xt(Po,"PathDestination",0),cg=new Xt(Po,"PathSource",1),Qg=new Xt(Po,"SortingForwards",10),tm=new Xt(Po,"SortingReverse",11),nm=new Xt(Po,"SortingAscending",12),im=new Xt(Po,"SortingDescending",13),_g=new Xt(Po,"AlignmentCenterSubtrees",20),dg=new Xt(Po,"AlignmentCenterChildren",21),Od=new Xt(Po,"AlignmentStart",22),Id=new Xt(Po,"AlignmentEnd",23),Mh=new Xt(Po,"AlignmentBus",24),Rd=new Xt(Po,"AlignmentBusBranching",25),Fh=new Xt(Po,"AlignmentTopLeftBus",26),nh=new Xt(Po,"AlignmentBottomRightBus",27),W0=new Xt(Po,"CompactionNone",30),rm=new Xt(Po,"CompactionBlock",31),Z0=new Xt(Po,"StyleLayered",40),Ry=new Xt(Po,"StyleLastParents",41),zy=new Xt(Po,"StyleAlternating",42),jy=new Xt(Po,"StyleRootOnly",43),K0=new Xt(Po,"ArrangementVertical",50),Hy=new Xt(Po,"ArrangementHorizontal",51),V0=new Xt(Po,"ArrangementFixedRoots",52),Wy=new Xt(Po,"LayerIndividual",60),Zy=new Xt(Po,"LayerSiblings",61),G0=new Xt(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)}bt(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 Qe(0,0),this.Da=new zn(0,0),this.la=new Qe(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=Xo,this.wr=!0,this.Dp=Xo}bt(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)},tt.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 Qe(0,0)}bt($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:Et("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 Ee=a.i(a.pointsCount-1);z===0?(x.alignment===Id?(z=b.bottom+E.y,E.y===0&&fe.y>Ee.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<Ee.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>Ee.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<Ee.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>Ee.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<Ee.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>Ee.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<Ee.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))):Et("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()))}}},tt.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",ni.prototype.initializeStandardTools=function(){this.gb("Action",new Or,this.mouseDownTools),this.gb("Relinking",new zi,this.mouseDownTools),this.gb("LinkReshaping",new Ki,this.mouseDownTools),this.gb("Rotating",new eo,this.mouseDownTools),this.gb("Resizing",new zr,this.mouseDownTools),this.gb("Linking",new ii,this.mouseMoveTools),this.gb("Dragging",new lr,this.mouseMoveTools),this.gb("DragSelecting",new jr,this.mouseMoveTools),this.gb("Panning",new gr,this.mouseMoveTools),this.gb("ContextMenu",new Mo,this.mouseUpTools),this.gb("TextEditing",new wo,this.mouseUpTools),this.gb("ClickCreating",new so,this.mouseUpTools),this.gb("ClickSelecting",new Ko,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=Ye.go,Ky={get licenseKey(){return pn.licenseKey},set licenseKey(a){pn.licenseKey=a},get version(){return pn.version},Group:Xr,EnumValue:Xt,List:kn,Set:Ln,Map:Ii,Point:Qe,Size:zn,Rect:Cn,Margin:Vi,Spot:Yi,Geometry:di,PathFigure:Os,PathSegment:Io,InputEvent:nn,DiagramEvent:hn,ChangedEvent:In,Model:ir,GraphLinksModel:Bo,TreeModel:uu,Binding:Fs,Transaction:sr,UndoManager:Ei,CommandHandler:rt,Tool:bi,DraggingTool:lr,DraggingInfo:Qd,DraggingOptions:ae,LinkingBaseTool:gn,LinkingTool:ii,RelinkingTool:zi,LinkReshapingTool:Ki,ResizingTool:zr,RotatingTool:eo,ClickSelectingTool:Ko,ActionTool:Or,ClickCreatingTool:so,HTMLInfo:Lr,ContextMenuTool:Mo,DragSelectingTool:jr,PanningTool:gr,TextEditingTool:wo,ToolManager:ni,Animation:$a,AnimationManager:ka,AnimationTrigger:yu,Layer:za,Diagram:pn,Palette:he,Overview:me,Brush:ia,GraphObject:Vt,Panel:si,RowColumnDefinition:Ws,Shape:ro,TextBlock:ba,Picture:Cu,Part:ur,Adornment:Yo,Node:Di,Link:gi,Placeholder:ou,Layout:Za,LayoutNetwork:Ea,LayoutVertex:Xs,LayoutEdge:Gu,GridLayout:Cl,PanelLayout:Us,CircularLayout:qa,CircularNetwork:Ug,CircularVertex:Xp,CircularEdge:A0,ForceDirectedLayout:Bl,ForceDirectedNetwork:lg,ForceDirectedVertex:Jp,ForceDirectedEdge:Qp,LayeredDigraphLayout:oa,LayeredDigraphNetwork:Jg,LayeredDigraphVertex:vc,LayeredDigraphEdge:qp,TreeLayout:Po,TreeNetwork:hg,TreeVertex:Dc,TreeEdge:$g};typeof Y0=="object"&&Y0.version&&Un("WARNING: a `go` object on the root object is already defined. "+("Debug"in Y0?"debug ":"")+"version: "+Y0.version+", replaced with version: "+Ky.version),pn.prototype.go=Ky,Ye.go=Ky,typeof Rn.exports=="object"&&(Rn.exports=typeof ye.g!="undefined"?ye.g.go:self.go)}();var Se=typeof ye.g!="undefined"?ye.g.go:self.go;const Oe=typeof ye.g!="undefined"?ye.g.go:self.go,He=Oe.Group,Rt=Oe.EnumValue,_e=Oe.List,vt=Oe.Set,ke=Oe.Map,Tt=Oe.Point,Lt=Oe.Size,et=Oe.Rect,gt=Oe.Margin,ct=Oe.Spot,wt=Oe.Geometry,Me=Oe.PathFigure,te=Oe.PathSegment,ne=Oe.InputEvent,ce=Oe.DiagramEvent,se=Oe.ChangedEvent,ge=Oe.Model,ve=Oe.GraphLinksModel,be=Oe.TreeModel,Fe=Oe.Binding,Pe=Oe.Transaction,Ie=Oe.UndoManager,We=Oe.CommandHandler,Ke=Oe.Tool,Xe=Oe.DraggingTool,ht=Oe.DraggingInfo,Ve=Oe.LinkingBaseTool,Nt=Oe.LinkingTool,qe=Oe.RelinkingTool,Ht=Oe.LinkReshapingTool,Zt=Oe.ResizingTool,Yt=Oe.RotatingTool,Ot=Oe.ClickSelectingTool,Qt=Oe.ActionTool,dt=Oe.ClickCreatingTool,Re=Oe.HTMLInfo,Mt=Oe.ContextMenuTool,Pn=Oe.DragSelectingTool,mn=Oe.PanningTool,kt=Oe.TextEditingTool,_t=Oe.ToolManager,ln=Oe.Animation,Bn=Oe.AnimationManager,wn=Oe.AnimationTrigger,Kn=Oe.Layer,yt=Oe.Diagram,Jn=Oe.Palette,bn=Oe.Overview,ci=Oe.Brush,Tn=Oe.GraphObject,tn=Oe.Panel,$t=Oe.RowColumnDefinition,ft=Oe.Shape,Je=Oe.TextBlock,Gt=Oe.TextBlockMetrics,At=Oe.Picture,lt=Oe.Part,Ge=Oe.Adornment,Be=Oe.Node,we=Oe.Link,pe=Oe.Placeholder,De=Oe.Layout,ze=Oe.LayoutNetwork,Le=Oe.LayoutVertex,nt=Oe.LayoutEdge,Ut=Oe.GridLayout,En=Oe.PanelLayout,rn=Oe.CircularLayout,vn=Oe.CircularNetwork,mi=Oe.CircularVertex,wi=Oe.CircularEdge,Ri=Oe.ForceDirectedLayout,Wi=Oe.ForceDirectedNetwork,Mn=Oe.ForceDirectedVertex,nr=Oe.ForceDirectedEdge,Wr=Oe.LayeredDigraphLayout,Hr=Oe.LayeredDigraphNetwork,Tr=Oe.LayeredDigraphVertex,Fr=Oe.LayeredDigraphEdge,Yr=Oe.TreeLayout,Kr=Oe.TreeNetwork,ar=Oe.TreeVertex,Co=Oe.TreeEdge,$n=Oe.version},24334:function(Rn,Fn,ye){var Se,Oe;(function(He,Rt){Rn.exports=Rt(He)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ye.g!="undefined"?ye.g:this,function(He){"use strict";He=He||{};var Rt=He.Base64,_e="2.6.4",vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ke=function(qe){for(var Ht={},Zt=0,Yt=qe.length;Zt<Yt;Zt++)Ht[qe.charAt(Zt)]=Zt;return Ht}(vt),Tt=String.fromCharCode,Lt=function(qe){if(qe.length<2){var Ht=qe.charCodeAt(0);return Ht<128?qe:Ht<2048?Tt(192|Ht>>>6)+Tt(128|Ht&63):Tt(224|Ht>>>12&15)+Tt(128|Ht>>>6&63)+Tt(128|Ht&63)}else{var Ht=65536+(qe.charCodeAt(0)-55296)*1024+(qe.charCodeAt(1)-56320);return Tt(240|Ht>>>18&7)+Tt(128|Ht>>>12&63)+Tt(128|Ht>>>6&63)+Tt(128|Ht&63)}},et=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,gt=function(qe){return qe.replace(et,Lt)},ct=function(qe){var Ht=[0,2,1][qe.length%3],Zt=qe.charCodeAt(0)<<16|(qe.length>1?qe.charCodeAt(1):0)<<8|(qe.length>2?qe.charCodeAt(2):0),Yt=[vt.charAt(Zt>>>18),vt.charAt(Zt>>>12&63),Ht>=2?"=":vt.charAt(Zt>>>6&63),Ht>=1?"=":vt.charAt(Zt&63)];return Yt.join("")},wt=He.btoa&&typeof He.btoa=="function"?function(qe){return He.btoa(qe)}:function(qe){if(qe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return qe.replace(/[\s\S]{1,3}/g,ct)},Me=function(qe){return wt(gt(String(qe)))},te=function(qe){return qe.replace(/[+\/]/g,function(Ht){return Ht=="+"?"-":"_"}).replace(/=/g,"")},ne=function(qe,Ht){return Ht?te(Me(qe)):Me(qe)},ce=function(qe){return ne(qe,!0)},se;He.Uint8Array&&(se=function(qe,Ht){for(var Zt="",Yt=0,Ot=qe.length;Yt<Ot;Yt+=3){var Qt=qe[Yt],dt=qe[Yt+1],Re=qe[Yt+2],Mt=Qt<<16|dt<<8|Re;Zt+=vt.charAt(Mt>>>18)+vt.charAt(Mt>>>12&63)+(typeof dt!="undefined"?vt.charAt(Mt>>>6&63):"=")+(typeof Re!="undefined"?vt.charAt(Mt&63):"=")}return Ht?te(Zt):Zt});var ge=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ve=function(qe){switch(qe.length){case 4:var Ht=(7&qe.charCodeAt(0))<<18|(63&qe.charCodeAt(1))<<12|(63&qe.charCodeAt(2))<<6|63&qe.charCodeAt(3),Zt=Ht-65536;return Tt((Zt>>>10)+55296)+Tt((Zt&1023)+56320);case 3:return Tt((15&qe.charCodeAt(0))<<12|(63&qe.charCodeAt(1))<<6|63&qe.charCodeAt(2));default:return Tt((31&qe.charCodeAt(0))<<6|63&qe.charCodeAt(1))}},be=function(qe){return qe.replace(ge,ve)},Fe=function(qe){var Ht=qe.length,Zt=Ht%4,Yt=(Ht>0?ke[qe.charAt(0)]<<18:0)|(Ht>1?ke[qe.charAt(1)]<<12:0)|(Ht>2?ke[qe.charAt(2)]<<6:0)|(Ht>3?ke[qe.charAt(3)]:0),Ot=[Tt(Yt>>>16),Tt(Yt>>>8&255),Tt(Yt&255)];return Ot.length-=[0,0,2,1][Zt],Ot.join("")},Pe=He.atob&&typeof He.atob=="function"?function(qe){return He.atob(qe)}:function(qe){return qe.replace(/\S{1,4}/g,Fe)},Ie=function(qe){return Pe(String(qe).replace(/[^A-Za-z0-9\+\/]/g,""))},We=function(qe){return be(Pe(qe))},Ke=function(qe){return String(qe).replace(/[-_]/g,function(Ht){return Ht=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Xe=function(qe){return We(Ke(qe))},ht;He.Uint8Array&&(ht=function(qe){return Uint8Array.from(Ie(Ke(qe)),function(Ht){return Ht.charCodeAt(0)})});var Ve=function(){var qe=He.Base64;return He.Base64=Rt,qe};if(He.Base64={VERSION:_e,atob:Ie,btoa:wt,fromBase64:Xe,toBase64:ne,utob:gt,encode:ne,encodeURI:ce,btou:be,decode:Xe,noConflict:Ve,fromUint8Array:se,toUint8Array:ht},typeof Object.defineProperty=="function"){var Nt=function(qe){return{value:qe,enumerable:!1,writable:!0,configurable:!0}};He.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Nt(function(){return Xe(this)})),Object.defineProperty(String.prototype,"toBase64",Nt(function(qe){return ne(this,qe)})),Object.defineProperty(String.prototype,"toBase64URI",Nt(function(){return ne(this,!0)}))}}return He.Meteor&&(Base64=He.Base64),Rn.exports?Rn.exports.Base64=He.Base64:(Se=[],Oe=function(){return He.Base64}.apply(Fn,Se),Oe!==void 0&&(Rn.exports=Oe)),{Base64:He.Base64}})},17115:function(Rn,Fn,ye){"use strict";ye.d(Fn,{ZP:function(){return ke}});var Se=ye(29043),Oe=ye(59301),He=ye(87746),Rt=0,_e=(0,He.Z)();function vt(){var Tt;return _e?(Tt=Rt,Rt+=1):Tt="TEST_OR_SSR",Tt}function ke(Tt){var Lt=Oe.useState(),et=(0,Se.Z)(Lt,2),gt=et[0],ct=et[1];return Oe.useEffect(function(){ct("rc_select_".concat(vt()))},[]),Tt||gt}},77861:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Ac:function(){return De},Xo:function(){return nr},Wx:function(){return Hr},ZP:function(){return dn},lk:function(){return be}});var Se=ye(5891),Oe=ye(26390),He=ye(80962),Rt=ye(57259),_e=ye(29043),vt=ye(19149),ke=ye(80665),Tt=ye(35788),Lt=ye(51395),et=ye(59301),gt=ye(92310),ct=ye.n(gt),wt=ye(28800),Me=ye(93144),te=ye(85108),ne=ye(20475),ce=function(Ye){var an=Ye.className,Bt=Ye.customizeIcon,jn=Ye.customizeIconProps,cn=Ye.onMouseDown,Et=Ye.onClick,xn=Ye.children,Qn;return typeof Bt=="function"?Qn=Bt(jn):Qn=Bt,et.createElement("span",{className:an,onMouseDown:function(zt){zt.preventDefault(),cn&&cn(zt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Et,"aria-hidden":!0},Qn!==void 0?Qn:et.createElement("span",{className:ct()(an.split(/\s+/).map(function(Un){return"".concat(Un,"-icon")}))},xn))},se=ce;function ge(xt,Ye,an,Bt,jn){var cn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Et=arguments.length>6?arguments[6]:void 0,xn=arguments.length>7?arguments[7]:void 0,Qn=et.useMemo(function(){if((0,ke.Z)(Bt)==="object")return Bt.clearIcon;if(jn)return jn},[Bt,jn]),Un=et.useMemo(function(){return!!(!cn&&Bt&&(an.length||Et)&&!(xn==="combobox"&&Et===""))},[Bt,cn,an.length,Et,xn]);return{allowClear:Un,clearIcon:et.createElement(se,{className:"".concat(xt,"-clear"),onMouseDown:Ye,customizeIcon:Qn},"\xD7")}}var ve=et.createContext(null);function be(){return et.useContext(ve)}function Fe(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ye=et.useState(!1),an=(0,_e.Z)(Ye,2),Bt=an[0],jn=an[1],cn=et.useRef(null),Et=function(){window.clearTimeout(cn.current)};et.useEffect(function(){return Et},[]);var xn=function(Un,zt){Et(),cn.current=window.setTimeout(function(){jn(Un),zt&&zt()},xt)};return[Bt,xn,Et]}function Pe(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ye=et.useRef(null),an=et.useRef(null);et.useEffect(function(){return function(){window.clearTimeout(an.current)}},[]);function Bt(jn){(jn||Ye.current===null)&&(Ye.current=jn),window.clearTimeout(an.current),an.current=window.setTimeout(function(){Ye.current=null},xt)}return[function(){return Ye.current},Bt]}function Ie(xt,Ye,an,Bt){var jn=et.useRef(null);jn.current={open:Ye,triggerOpen:an,customizedTrigger:Bt},et.useEffect(function(){function cn(Et){var xn;if(!((xn=jn.current)!==null&&xn!==void 0&&xn.customizedTrigger)){var Qn=Et.target;Qn.shadowRoot&&Et.composed&&(Qn=Et.composedPath()[0]||Qn),jn.current.open&&xt().filter(function(Un){return Un}).every(function(Un){return!Un.contains(Qn)&&Un!==Qn})&&jn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",cn),function(){return window.removeEventListener("mousedown",cn)}},[])}var We=ye(36994),Ke=ye(11780),Xe=function(Ye,an){var Bt,jn,cn=Ye.prefixCls,Et=Ye.id,xn=Ye.inputElement,Qn=Ye.disabled,Un=Ye.tabIndex,zt=Ye.autoFocus,Sn=Ye.autoComplete,Ci=Ye.editable,Si=Ye.activeDescendantId,vi=Ye.value,ti=Ye.maxLength,xi=Ye.onKeyDown,Ni=Ye.onMouseDown,Zi=Ye.onChange,cr=Ye.onPaste,Gn=Ye.onCompositionStart,Ai=Ye.onCompositionEnd,br=Ye.open,kr=Ye.attrs,Sr=xn||et.createElement("input",null),Xt=Sr,Li=Xt.ref,rr=Xt.props,Hi=rr.onKeyDown,Er=rr.onChange,dr=rr.onMouseDown,Nr=rr.onCompositionStart,Ti=rr.onCompositionEnd,Qi=rr.style;return(0,Lt.Kp)(!("maxLength"in Sr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Sr=et.cloneElement(Sr,(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({type:"search"},rr),{},{id:Et,ref:(0,ne.sQ)(an,Li),disabled:Qn,tabIndex:Un,autoComplete:Sn||"off",autoFocus:zt,className:ct()("".concat(cn,"-selection-search-input"),(Bt=Sr)===null||Bt===void 0||(jn=Bt.props)===null||jn===void 0?void 0:jn.className),role:"combobox","aria-label":"Search","aria-expanded":br||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Et,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Et,"_list"),"aria-activedescendant":br?Si:void 0},kr),{},{value:Ci?vi:"",maxLength:ti,readOnly:!Ci,unselectable:Ci?null:"on",style:(0,Rt.Z)((0,Rt.Z)({},Qi),{},{opacity:Ci?null:0}),onKeyDown:function(kn){xi(kn),Hi&&Hi(kn)},onMouseDown:function(kn){Ni(kn),dr&&dr(kn)},onChange:function(kn){Zi(kn),Er&&Er(kn)},onCompositionStart:function(kn){Gn(kn),Nr&&Nr(kn)},onCompositionEnd:function(kn){Ai(kn),Ti&&Ti(kn)},onPaste:cr})),Sr},ht=et.forwardRef(Xe);ht.displayName="Input";var Ve=ht;function Nt(xt){return Array.isArray(xt)?xt:xt!==void 0?[xt]:[]}var qe=typeof window!="undefined"&&window.document&&window.document.documentElement,Ht=qe;function Zt(xt){return xt!=null}function Yt(xt){return!xt&&xt!==0}function Ot(xt){return["string","number"].includes((0,ke.Z)(xt))}function Qt(xt){var Ye=void 0;return xt&&(Ot(xt.title)?Ye=xt.title.toString():Ot(xt.label)&&(Ye=xt.label.toString())),Ye}function dt(xt,Ye){Ht?et.useLayoutEffect(xt,Ye):et.useEffect(xt,Ye)}function Re(xt){var Ye;return(Ye=xt.key)!==null&&Ye!==void 0?Ye:xt.value}var Mt=function(Ye){Ye.preventDefault(),Ye.stopPropagation()},Pn=function(Ye){var an=Ye.id,Bt=Ye.prefixCls,jn=Ye.values,cn=Ye.open,Et=Ye.searchValue,xn=Ye.autoClearSearchValue,Qn=Ye.inputRef,Un=Ye.placeholder,zt=Ye.disabled,Sn=Ye.mode,Ci=Ye.showSearch,Si=Ye.autoFocus,vi=Ye.autoComplete,ti=Ye.activeDescendantId,xi=Ye.tabIndex,Ni=Ye.removeIcon,Zi=Ye.maxTagCount,cr=Ye.maxTagTextLength,Gn=Ye.maxTagPlaceholder,Ai=Gn===void 0?function(pt){return"+ ".concat(pt.length," ...")}:Gn,br=Ye.tagRender,kr=Ye.onToggleOpen,Sr=Ye.onRemove,Xt=Ye.onInputChange,Li=Ye.onInputPaste,rr=Ye.onInputKeyDown,Hi=Ye.onInputMouseDown,Er=Ye.onInputCompositionStart,dr=Ye.onInputCompositionEnd,Nr=et.useRef(null),Ti=(0,et.useState)(0),Qi=(0,_e.Z)(Ti,2),er=Qi[0],kn=Qi[1],Dr=(0,et.useState)(!1),Ln=(0,_e.Z)(Dr,2),pr=Ln[0],Qr=Ln[1],vr="".concat(Bt,"-selection"),Ho=cn||Sn==="multiple"&&xn===!1||Sn==="tags"?Et:"",co=Sn==="tags"||Sn==="multiple"&&xn===!1||Ci&&(cn||pr);dt(function(){kn(Nr.current.scrollWidth)},[Ho]);function mr(pt,It,sn,Hn,On){return et.createElement("span",{className:ct()("".concat(vr,"-item"),(0,He.Z)({},"".concat(vr,"-item-disabled"),sn)),title:Qt(pt)},et.createElement("span",{className:"".concat(vr,"-item-content")},It),Hn&&et.createElement(se,{className:"".concat(vr,"-item-remove"),onMouseDown:Mt,onClick:On,customizeIcon:Ni},"\xD7"))}function hr(pt,It,sn,Hn,On){var Wt=function(ai){Mt(ai),kr(!cn)};return et.createElement("span",{onMouseDown:Wt},br({label:It,value:pt,disabled:sn,closable:Hn,onClose:On}))}function fr(pt){var It=pt.disabled,sn=pt.label,Hn=pt.value,On=!zt&&!It,Wt=sn;if(typeof cr=="number"&&(typeof sn=="string"||typeof sn=="number")){var Nn=String(Wt);Nn.length>cr&&(Wt="".concat(Nn.slice(0,cr),"..."))}var ai=function(Oi){Oi&&Oi.stopPropagation(),Sr(pt)};return typeof br=="function"?hr(Hn,Wt,It,On,ai):mr(pt,Wt,It,On,ai)}function Vr(pt){var It=typeof Ai=="function"?Ai(pt):Ai;return mr({title:It},It,!1)}var Ii=et.createElement("div",{className:"".concat(vr,"-search"),style:{width:er},onFocus:function(){Qr(!0)},onBlur:function(){Qr(!1)}},et.createElement(Ve,{ref:Qn,open:cn,prefixCls:Bt,id:an,inputElement:null,disabled:zt,autoFocus:Si,autoComplete:vi,editable:co,activeDescendantId:ti,value:Ho,onKeyDown:rr,onMouseDown:Hi,onChange:Xt,onPaste:Li,onCompositionStart:Er,onCompositionEnd:dr,tabIndex:xi,attrs:(0,We.Z)(Ye,!0)}),et.createElement("span",{ref:Nr,className:"".concat(vr,"-search-mirror"),"aria-hidden":!0},Ho,"\xA0")),Qe=et.createElement(Ke.Z,{prefixCls:"".concat(vr,"-overflow"),data:jn,renderItem:fr,renderRest:Vr,suffix:Ii,itemKey:Re,maxCount:Zi});return et.createElement(et.Fragment,null,Qe,!jn.length&&!Ho&&et.createElement("span",{className:"".concat(vr,"-placeholder")},Un))},mn=Pn,kt=function(Ye){var an=Ye.inputElement,Bt=Ye.prefixCls,jn=Ye.id,cn=Ye.inputRef,Et=Ye.disabled,xn=Ye.autoFocus,Qn=Ye.autoComplete,Un=Ye.activeDescendantId,zt=Ye.mode,Sn=Ye.open,Ci=Ye.values,Si=Ye.placeholder,vi=Ye.tabIndex,ti=Ye.showSearch,xi=Ye.searchValue,Ni=Ye.activeValue,Zi=Ye.maxLength,cr=Ye.onInputKeyDown,Gn=Ye.onInputMouseDown,Ai=Ye.onInputChange,br=Ye.onInputPaste,kr=Ye.onInputCompositionStart,Sr=Ye.onInputCompositionEnd,Xt=Ye.title,Li=et.useState(!1),rr=(0,_e.Z)(Li,2),Hi=rr[0],Er=rr[1],dr=zt==="combobox",Nr=dr||ti,Ti=Ci[0],Qi=xi||"";dr&&Ni&&!Hi&&(Qi=Ni),et.useEffect(function(){dr&&Er(!1)},[dr,Ni]);var er=zt!=="combobox"&&!Sn&&!ti?!1:!!Qi,kn=Xt===void 0?Qt(Ti):Xt,Dr=function(){if(Ti)return null;var pr=er?{visibility:"hidden"}:void 0;return et.createElement("span",{className:"".concat(Bt,"-selection-placeholder"),style:pr},Si)};return et.createElement(et.Fragment,null,et.createElement("span",{className:"".concat(Bt,"-selection-search")},et.createElement(Ve,{ref:cn,prefixCls:Bt,id:jn,open:Sn,inputElement:an,disabled:Et,autoFocus:xn,autoComplete:Qn,editable:Nr,activeDescendantId:Un,value:Qi,onKeyDown:cr,onMouseDown:Gn,onChange:function(pr){Er(!0),Ai(pr)},onPaste:br,onCompositionStart:kr,onCompositionEnd:Sr,tabIndex:vi,attrs:(0,We.Z)(Ye,!0),maxLength:dr?Zi:void 0})),!dr&&Ti?et.createElement("span",{className:"".concat(Bt,"-selection-item"),title:kn,style:er?{visibility:"hidden"}:void 0},Ti.label):null,Dr())},_t=kt;function ln(xt){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(xt)}var Bn=function(Ye,an){var Bt=(0,et.useRef)(null),jn=(0,et.useRef)(!1),cn=Ye.prefixCls,Et=Ye.open,xn=Ye.mode,Qn=Ye.showSearch,Un=Ye.tokenWithEnter,zt=Ye.autoClearSearchValue,Sn=Ye.onSearch,Ci=Ye.onSearchSubmit,Si=Ye.onToggleOpen,vi=Ye.onInputKeyDown,ti=Ye.domRef;et.useImperativeHandle(an,function(){return{focus:function(){Bt.current.focus()},blur:function(){Bt.current.blur()}}});var xi=Pe(0),Ni=(0,_e.Z)(xi,2),Zi=Ni[0],cr=Ni[1],Gn=function(Qi){var er=Qi.which;(er===te.Z.UP||er===te.Z.DOWN)&&Qi.preventDefault(),vi&&vi(Qi),er===te.Z.ENTER&&xn==="tags"&&!jn.current&&!Et&&(Ci==null||Ci(Qi.target.value)),ln(er)&&Si(!0)},Ai=function(){cr(!0)},br=(0,et.useRef)(null),kr=function(Qi){Sn(Qi,!0,jn.current)!==!1&&Si(!0)},Sr=function(){jn.current=!0},Xt=function(Qi){jn.current=!1,xn!=="combobox"&&kr(Qi.target.value)},Li=function(Qi){var er=Qi.target.value;if(Un&&br.current&&/[\r\n]/.test(br.current)){var kn=br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");er=er.replace(kn,br.current)}br.current=null,kr(er)},rr=function(Qi){var er=Qi.clipboardData,kn=er.getData("text");br.current=kn},Hi=function(Qi){var er=Qi.target;if(er!==Bt.current){var kn=document.body.style.msTouchAction!==void 0;kn?setTimeout(function(){Bt.current.focus()}):Bt.current.focus()}},Er=function(Qi){var er=Zi();Qi.target!==Bt.current&&!er&&xn!=="combobox"&&Qi.preventDefault(),(xn!=="combobox"&&(!Qn||!er)||!Et)&&(Et&&zt!==!1&&Sn("",!0,!1),Si())},dr={inputRef:Bt,onInputKeyDown:Gn,onInputMouseDown:Ai,onInputChange:Li,onInputPaste:rr,onInputCompositionStart:Sr,onInputCompositionEnd:Xt},Nr=xn==="multiple"||xn==="tags"?et.createElement(mn,(0,Se.Z)({},Ye,dr)):et.createElement(_t,(0,Se.Z)({},Ye,dr));return et.createElement("div",{ref:ti,className:"".concat(cn,"-selector"),onClick:Hi,onMouseDown:Er},Nr)},wn=et.forwardRef(Bn);wn.displayName="Selector";var Kn=wn,yt=ye(35593),Jn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],bn=function(Ye){var an=Ye===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:an,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:an,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:an,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:an,adjustY:1},htmlRegion:"scroll"}}},ci=function(Ye,an){var Bt=Ye.prefixCls,jn=Ye.disabled,cn=Ye.visible,Et=Ye.children,xn=Ye.popupElement,Qn=Ye.animation,Un=Ye.transitionName,zt=Ye.dropdownStyle,Sn=Ye.dropdownClassName,Ci=Ye.direction,Si=Ci===void 0?"ltr":Ci,vi=Ye.placement,ti=Ye.builtinPlacements,xi=Ye.dropdownMatchSelectWidth,Ni=Ye.dropdownRender,Zi=Ye.dropdownAlign,cr=Ye.getPopupContainer,Gn=Ye.empty,Ai=Ye.getTriggerDOMNode,br=Ye.onPopupVisibleChange,kr=Ye.onPopupMouseEnter,Sr=(0,vt.Z)(Ye,Jn),Xt="".concat(Bt,"-dropdown"),Li=xn;Ni&&(Li=Ni(xn));var rr=et.useMemo(function(){return ti||bn(xi)},[ti,xi]),Hi=Qn?"".concat(Xt,"-").concat(Qn):Un,Er=typeof xi=="number",dr=et.useMemo(function(){return Er?null:xi===!1?"minWidth":"width"},[xi,Er]),Nr=zt;Er&&(Nr=(0,Rt.Z)((0,Rt.Z)({},Nr),{},{width:xi}));var Ti=et.useRef(null);return et.useImperativeHandle(an,function(){return{getPopupElement:function(){return Ti.current}}}),et.createElement(yt.Z,(0,Se.Z)({},Sr,{showAction:br?["click"]:[],hideAction:br?["click"]:[],popupPlacement:vi||(Si==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:rr,prefixCls:Xt,popupTransitionName:Hi,popup:et.createElement("div",{ref:Ti,onMouseEnter:kr},Li),stretch:dr,popupAlign:Zi,popupVisible:cn,getPopupContainer:cr,popupClassName:ct()(Sn,(0,He.Z)({},"".concat(Xt,"-empty"),Gn)),popupStyle:Nr,getTriggerDOMNode:Ai,onPopupVisibleChange:br}),Et)},Tn=et.forwardRef(ci);Tn.displayName="SelectTrigger";var tn=Tn,$t=ye(17953);function ft(xt,Ye){var an=xt.key,Bt;return"value"in xt&&(Bt=xt.value),an!=null?an:Bt!==void 0?Bt:"rc-index-key-".concat(Ye)}function Je(xt,Ye){var an=xt||{},Bt=an.label,jn=an.value,cn=an.options,Et=an.groupLabel,xn=Bt||(Ye?"children":"label");return{label:xn,value:jn||"value",options:cn||"options",groupLabel:Et||xn}}function Gt(xt){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},an=Ye.fieldNames,Bt=Ye.childrenAsData,jn=[],cn=Je(an,!1),Et=cn.label,xn=cn.value,Qn=cn.options,Un=cn.groupLabel;function zt(Sn,Ci){Sn.forEach(function(Si){if(Ci||!(Qn in Si)){var vi=Si[xn];jn.push({key:ft(Si,jn.length),groupOption:Ci,data:Si,label:Si[Et],value:vi})}else{var ti=Si[Un];ti===void 0&&Bt&&(ti=Si.label),jn.push({key:ft(Si,jn.length),group:!0,data:Si,label:ti}),zt(Si[Qn],!0)}})}return zt(xt,!1),jn}function At(xt){var Ye=(0,Rt.Z)({},xt);return"props"in Ye||Object.defineProperty(Ye,"props",{get:function(){return(0,Lt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ye}}),Ye}function lt(xt,Ye){if(!Ye||!Ye.length)return null;var an=!1;function Bt(cn,Et){var xn=(0,$t.Z)(Et),Qn=xn[0],Un=xn.slice(1);if(!Qn)return[cn];var zt=cn.split(Qn);return an=an||zt.length>1,zt.reduce(function(Sn,Ci){return[].concat((0,Oe.Z)(Sn),(0,Oe.Z)(Bt(Ci,Un)))},[]).filter(function(Sn){return Sn})}var jn=Bt(xt,Ye);return an?jn:null}var Ge=["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"],Be=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function we(xt){return xt==="tags"||xt==="multiple"}var pe=et.forwardRef(function(xt,Ye){var an,Bt,jn=xt.id,cn=xt.prefixCls,Et=xt.className,xn=xt.showSearch,Qn=xt.tagRender,Un=xt.direction,zt=xt.omitDomProps,Sn=xt.displayValues,Ci=xt.onDisplayValuesChange,Si=xt.emptyOptions,vi=xt.notFoundContent,ti=vi===void 0?"Not Found":vi,xi=xt.onClear,Ni=xt.mode,Zi=xt.disabled,cr=xt.loading,Gn=xt.getInputElement,Ai=xt.getRawInputElement,br=xt.open,kr=xt.defaultOpen,Sr=xt.onDropdownVisibleChange,Xt=xt.activeValue,Li=xt.onActiveValueChange,rr=xt.activeDescendantId,Hi=xt.searchValue,Er=xt.autoClearSearchValue,dr=xt.onSearch,Nr=xt.onSearchSplit,Ti=xt.tokenSeparators,Qi=xt.allowClear,er=xt.suffixIcon,kn=xt.clearIcon,Dr=xt.OptionList,Ln=xt.animation,pr=xt.transitionName,Qr=xt.dropdownStyle,vr=xt.dropdownClassName,Ho=xt.dropdownMatchSelectWidth,co=xt.dropdownRender,mr=xt.dropdownAlign,hr=xt.placement,fr=xt.builtinPlacements,Vr=xt.getPopupContainer,Ii=xt.showAction,Qe=Ii===void 0?[]:Ii,pt=xt.onFocus,It=xt.onBlur,sn=xt.onKeyUp,Hn=xt.onKeyDown,On=xt.onMouseDown,Wt=(0,vt.Z)(xt,Ge),Nn=we(Ni),ai=(xn!==void 0?xn:Nn)||Ni==="combobox",qn=(0,Rt.Z)({},Wt);Be.forEach(function(Xo){delete qn[Xo]}),zt==null||zt.forEach(function(Xo){delete qn[Xo]});var Oi=et.useState(!1),Bi=(0,_e.Z)(Oi,2),pi=Bi[0],Gi=Bi[1];et.useEffect(function(){Gi((0,Me.Z)())},[]);var zn=et.useRef(null),_r=et.useRef(null),Gr=et.useRef(null),Ao=et.useRef(null),qr=et.useRef(null),$r=Fe(),to=(0,_e.Z)($r,3),$o=to[0],Qo=to[1],pa=to[2];et.useImperativeHandle(Ye,function(){var Xo,va;return{focus:(Xo=Ao.current)===null||Xo===void 0?void 0:Xo.focus,blur:(va=Ao.current)===null||va===void 0?void 0:va.blur,scrollTo:function(Cs){var Ss;return(Ss=qr.current)===null||Ss===void 0?void 0:Ss.scrollTo(Cs)}}});var qo=et.useMemo(function(){var Xo;if(Ni!=="combobox")return Hi;var va=(Xo=Sn[0])===null||Xo===void 0?void 0:Xo.value;return typeof va=="string"||typeof va=="number"?String(va):""},[Hi,Ni,Sn]),Cn=Ni==="combobox"&&typeof Gn=="function"&&Gn()||null,ca=typeof Ai=="function"&&Ai(),es=(0,ne.x1)(_r,ca==null||(an=ca.props)===null||an===void 0?void 0:an.ref),ts=et.useState(!1),Ga=(0,_e.Z)(ts,2),Ds=Ga[0],pl=Ga[1];(0,wt.Z)(function(){pl(!0)},[]);var ma=(0,Tt.Z)(!1,{defaultValue:kr,value:br}),Fo=(0,_e.Z)(ma,2),Oo=Fo[0],Pa=Fo[1],no=Ds?Oo:!1,ko=!ti&&Si;(Zi||ko&&no&&Ni==="combobox")&&(no=!1);var oo=ko?!1:no,Vi=et.useCallback(function(Xo){var va=Xo!==void 0?Xo:!no;Zi||(Pa(va),no!==va&&(Sr==null||Sr(va)))},[Zi,no,Pa,Sr]),ha=et.useMemo(function(){return(Ti||[]).some(function(Xo){return[`
|
|
|
`,`\r
|
|
|
`].includes(Xo)})},[Ti]),Na=function(va,dl,Cs){var Ss=!0,os=va;Li==null||Li(null);var hs=Cs?null:lt(va,Ti);return Ni!=="combobox"&&hs&&(os="",Nr==null||Nr(hs),Vi(!1),Ss=!1),dr&&qo!==os&&dr(os,{source:dl?"typing":"effect"}),Ss},Bs=function(va){!va||!va.trim()||dr(va,{source:"submit"})};et.useEffect(function(){!no&&!Nn&&Ni!=="combobox"&&Na("",!1,!1)},[no]),et.useEffect(function(){Oo&&Zi&&Pa(!1),Zi&&Qo(!1)},[Zi]);var ys=Pe(),nl=(0,_e.Z)(ys,2),Yi=nl[0],Da=nl[1],ga=function(va){var dl=Yi(),Cs=va.which;if(Cs===te.Z.ENTER&&(Ni!=="combobox"&&va.preventDefault(),no||Vi(!0)),Da(!!qo),Cs===te.Z.BACKSPACE&&!dl&&Nn&&!qo&&Sn.length){for(var Ss=(0,Oe.Z)(Sn),os=null,hs=Ss.length-1;hs>=0;hs-=1){var Ls=Ss[hs];if(!Ls.disabled){Ss.splice(hs,1),os=Ls;break}}os&&Ci(Ss,{type:"remove",values:[os]})}for(var xs=arguments.length,Ks=new Array(xs>1?xs-1:0),Ts=1;Ts<xs;Ts++)Ks[Ts-1]=arguments[Ts];if(no&&qr.current){var Fa;(Fa=qr.current).onKeyDown.apply(Fa,[va].concat(Ks))}Hn==null||Hn.apply(void 0,[va].concat(Ks))},Is=function(va){for(var dl=arguments.length,Cs=new Array(dl>1?dl-1:0),Ss=1;Ss<dl;Ss++)Cs[Ss-1]=arguments[Ss];if(no&&qr.current){var os;(os=qr.current).onKeyUp.apply(os,[va].concat(Cs))}sn==null||sn.apply(void 0,[va].concat(Cs))},ml=function(va){var dl=Sn.filter(function(Cs){return Cs!==va});Ci(dl,{type:"remove",values:[va]})},Gl=et.useRef(!1),So=function(){Qo(!0),Zi||(pt&&!Gl.current&&pt.apply(void 0,arguments),Qe.includes("focus")&&Vi(!0)),Gl.current=!0},Au=function(){Qo(!1,function(){Gl.current=!1,Vi(!1)}),!Zi&&(qo&&(Ni==="tags"?dr(qo,{source:"submit"}):Ni==="multiple"&&dr("",{source:"blur"})),It&&It.apply(void 0,arguments))},il=[];et.useEffect(function(){return function(){il.forEach(function(Xo){return clearTimeout(Xo)}),il.splice(0,il.length)}},[]);var kl=function(va){var dl,Cs=va.target,Ss=(dl=Gr.current)===null||dl===void 0?void 0:dl.getPopupElement();if(Ss&&Ss.contains(Cs)){var os=setTimeout(function(){var Ks=il.indexOf(os);if(Ks!==-1&&il.splice(Ks,1),pa(),!pi&&!Ss.contains(document.activeElement)){var Ts;(Ts=Ao.current)===null||Ts===void 0||Ts.focus()}});il.push(os)}for(var hs=arguments.length,Ls=new Array(hs>1?hs-1:0),xs=1;xs<hs;xs++)Ls[xs-1]=arguments[xs];On==null||On.apply(void 0,[va].concat(Ls))},vl=et.useState({}),fu=(0,_e.Z)(vl,2),yl=fu[1];function rl(){yl({})}var Sl;ca&&(Sl=function(va){Vi(va)}),Ie(function(){var Xo;return[zn.current,(Xo=Gr.current)===null||Xo===void 0?void 0:Xo.getPopupElement()]},oo,Vi,!!ca);var oc=et.useMemo(function(){return(0,Rt.Z)((0,Rt.Z)({},xt),{},{notFoundContent:ti,open:no,triggerOpen:oo,id:jn,showSearch:ai,multiple:Nn,toggleOpen:Vi})},[xt,ti,oo,no,jn,ai,Nn,Vi]),Sc=!!er||cr,xc;Sc&&(xc=et.createElement(se,{className:ct()("".concat(cn,"-arrow"),(0,He.Z)({},"".concat(cn,"-arrow-loading"),cr)),customizeIcon:er,customizeIconProps:{loading:cr,searchValue:qo,open:no,focused:$o,showSearch:ai}}));var Qc=function(){var va;xi==null||xi(),(va=Ao.current)===null||va===void 0||va.focus(),Ci([],{type:"clear",values:Sn}),Na("",!1,!1)},gu=ge(cn,Qc,Sn,Qi,kn,Zi,qo,Ni),zl=gu.allowClear,xl=gu.clearIcon,Tl=et.createElement(Dr,{ref:qr}),pu=ct()(cn,Et,(Bt={},(0,He.Z)(Bt,"".concat(cn,"-focused"),$o),(0,He.Z)(Bt,"".concat(cn,"-multiple"),Nn),(0,He.Z)(Bt,"".concat(cn,"-single"),!Nn),(0,He.Z)(Bt,"".concat(cn,"-allow-clear"),Qi),(0,He.Z)(Bt,"".concat(cn,"-show-arrow"),Sc),(0,He.Z)(Bt,"".concat(cn,"-disabled"),Zi),(0,He.Z)(Bt,"".concat(cn,"-loading"),cr),(0,He.Z)(Bt,"".concat(cn,"-open"),no),(0,He.Z)(Bt,"".concat(cn,"-customize-input"),Cn),(0,He.Z)(Bt,"".concat(cn,"-show-search"),ai),Bt)),wc=et.createElement(tn,{ref:Gr,disabled:Zi,prefixCls:cn,visible:oo,popupElement:Tl,animation:Ln,transitionName:pr,dropdownStyle:Qr,dropdownClassName:vr,direction:Un,dropdownMatchSelectWidth:Ho,dropdownRender:co,dropdownAlign:mr,placement:hr,builtinPlacements:fr,getPopupContainer:Vr,empty:Si,getTriggerDOMNode:function(){return _r.current},onPopupVisibleChange:Sl,onPopupMouseEnter:rl},ca?et.cloneElement(ca,{ref:es}):et.createElement(Kn,(0,Se.Z)({},xt,{domRef:_r,prefixCls:cn,inputElement:Cn,ref:Ao,id:jn,showSearch:ai,autoClearSearchValue:Er,mode:Ni,activeDescendantId:rr,tagRender:Qn,values:Sn,open:no,onToggleOpen:Vi,activeValue:Xt,searchValue:qo,onSearch:Na,onSearchSubmit:Bs,onRemove:ml,tokenWithEnter:ha}))),mu;return ca?mu=wc:mu=et.createElement("div",(0,Se.Z)({className:pu},qn,{ref:zn,onMouseDown:kl,onKeyDown:ga,onKeyUp:Is,onFocus:So,onBlur:Au}),$o&&!no&&et.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Sn.map(function(Xo){var va=Xo.label,dl=Xo.value;return["number","string"].includes((0,ke.Z)(va))?va:dl}).join(", "))),wc,xc,zl&&xl),et.createElement(ve.Provider,{value:oc},mu)}),De=pe,ze=function(xt,Ye){var an=et.useRef({values:new Map,options:new Map}),Bt=et.useMemo(function(){var cn=an.current,Et=cn.values,xn=cn.options,Qn=xt.map(function(Sn){if(Sn.label===void 0){var Ci;return(0,Rt.Z)((0,Rt.Z)({},Sn),{},{label:(Ci=Et.get(Sn.value))===null||Ci===void 0?void 0:Ci.label})}return Sn}),Un=new Map,zt=new Map;return Qn.forEach(function(Sn){Un.set(Sn.value,Sn),zt.set(Sn.value,Ye.get(Sn.value)||xn.get(Sn.value))}),an.current.values=Un,an.current.options=zt,Qn},[xt,Ye]),jn=et.useCallback(function(cn){return Ye.get(cn)||an.current.options.get(cn)},[Ye]);return[Bt,jn]};function Le(xt,Ye){return Nt(xt).join("").toUpperCase().includes(Ye)}var nt=function(xt,Ye,an,Bt,jn){return et.useMemo(function(){if(!an||Bt===!1)return xt;var cn=Ye.options,Et=Ye.label,xn=Ye.value,Qn=[],Un=typeof Bt=="function",zt=an.toUpperCase(),Sn=Un?Bt:function(Si,vi){return jn?Le(vi[jn],zt):vi[cn]?Le(vi[Et!=="children"?Et:"label"],zt):Le(vi[xn],zt)},Ci=Un?function(Si){return At(Si)}:function(Si){return Si};return xt.forEach(function(Si){if(Si[cn]){var vi=Sn(an,Ci(Si));if(vi)Qn.push(Si);else{var ti=Si[cn].filter(function(xi){return Sn(an,Ci(xi))});ti.length&&Qn.push((0,Rt.Z)((0,Rt.Z)({},Si),{},(0,He.Z)({},cn,ti)))}return}Sn(an,Ci(Si))&&Qn.push(Si)}),Qn},[xt,Bt,jn,an,Ye])},Ut=ye(17115),En=ye(38298),rn=["children","value"],vn=["children"];function mi(xt){var Ye=xt,an=Ye.key,Bt=Ye.props,jn=Bt.children,cn=Bt.value,Et=(0,vt.Z)(Bt,rn);return(0,Rt.Z)({key:an,value:cn!==void 0?cn:an,children:jn},Et)}function wi(xt){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,En.Z)(xt).map(function(an,Bt){if(!et.isValidElement(an)||!an.type)return null;var jn=an,cn=jn.type.isSelectOptGroup,Et=jn.key,xn=jn.props,Qn=xn.children,Un=(0,vt.Z)(xn,vn);return Ye||!cn?mi(an):(0,Rt.Z)((0,Rt.Z)({key:"__RC_SELECT_GRP__".concat(Et===null?Bt:Et,"__"),label:Et},Un),{},{options:wi(Qn)})}).filter(function(an){return an})}function Ri(xt,Ye,an,Bt,jn){return et.useMemo(function(){var cn=xt,Et=!xt;Et&&(cn=wi(Ye));var xn=new Map,Qn=new Map,Un=function(Ci,Si,vi){vi&&typeof vi=="string"&&Ci.set(Si[vi],Si)};function zt(Sn){for(var Ci=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Si=0;Si<Sn.length;Si+=1){var vi=Sn[Si];!vi[an.options]||Ci?(xn.set(vi[an.value],vi),Un(Qn,vi,an.label),Un(Qn,vi,Bt),Un(Qn,vi,jn)):zt(vi[an.options],!0)}}return zt(cn),{options:cn,valueOptions:xn,labelOptions:Qn}},[xt,Ye,an,Bt,jn])}function Wi(xt){var Ye=et.useRef();Ye.current=xt;var an=et.useCallback(function(){return Ye.current.apply(Ye,arguments)},[]);return an}var Mn=function(){return null};Mn.isSelectOptGroup=!0;var nr=Mn,Wr=function(){return null};Wr.isSelectOption=!0;var Hr=Wr,Tr=ye(79722),Fr=ye(64002),Yr=ye(21881),Kr=et.createContext(null),ar=Kr;function Co(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var $n=["disabled","title","children","style","className"];function Ce(xt){return typeof xt=="string"||typeof xt=="number"}var hi=function(Ye,an){var Bt=be(),jn=Bt.prefixCls,cn=Bt.id,Et=Bt.open,xn=Bt.multiple,Qn=Bt.mode,Un=Bt.searchValue,zt=Bt.toggleOpen,Sn=Bt.notFoundContent,Ci=Bt.onPopupScroll,Si=et.useContext(ar),vi=Si.flattenOptions,ti=Si.onActiveValue,xi=Si.defaultActiveFirstOption,Ni=Si.onSelect,Zi=Si.menuItemSelectedIcon,cr=Si.rawValues,Gn=Si.fieldNames,Ai=Si.virtual,br=Si.direction,kr=Si.listHeight,Sr=Si.listItemHeight,Xt="".concat(jn,"-item"),Li=(0,Tr.Z)(function(){return vi},[Et,vi],function(mr,hr){return hr[0]&&mr[1]!==hr[1]}),rr=et.useRef(null),Hi=function(hr){hr.preventDefault()},Er=function(hr){rr.current&&rr.current.scrollTo(typeof hr=="number"?{index:hr}:hr)},dr=function(hr){for(var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Vr=Li.length,Ii=0;Ii<Vr;Ii+=1){var Qe=(hr+Ii*fr+Vr)%Vr,pt=Li[Qe],It=pt.group,sn=pt.data;if(!It&&!sn.disabled)return Qe}return-1},Nr=et.useState(function(){return dr(0)}),Ti=(0,_e.Z)(Nr,2),Qi=Ti[0],er=Ti[1],kn=function(hr){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;er(hr);var Vr={source:fr?"keyboard":"mouse"},Ii=Li[hr];if(!Ii){ti(null,-1,Vr);return}ti(Ii.value,hr,Vr)};(0,et.useEffect)(function(){kn(xi!==!1?dr(0):-1)},[Li.length,Un]);var Dr=et.useCallback(function(mr){return cr.has(mr)&&Qn!=="combobox"},[Qn,(0,Oe.Z)(cr).toString(),cr.size]);(0,et.useEffect)(function(){var mr=setTimeout(function(){if(!xn&&Et&&cr.size===1){var fr=Array.from(cr)[0],Vr=Li.findIndex(function(Ii){var Qe=Ii.data;return Qe.value===fr});Vr!==-1&&(kn(Vr),Er(Vr))}});if(Et){var hr;(hr=rr.current)===null||hr===void 0||hr.scrollTo(void 0)}return function(){return clearTimeout(mr)}},[Et,Un,vi.length]);var Ln=function(hr){hr!==void 0&&Ni(hr,{selected:!cr.has(hr)}),xn||zt(!1)};if(et.useImperativeHandle(an,function(){return{onKeyDown:function(hr){var fr=hr.which,Vr=hr.ctrlKey;switch(fr){case te.Z.N:case te.Z.P:case te.Z.UP:case te.Z.DOWN:{var Ii=0;if(fr===te.Z.UP?Ii=-1:fr===te.Z.DOWN?Ii=1:Co()&&Vr&&(fr===te.Z.N?Ii=1:fr===te.Z.P&&(Ii=-1)),Ii!==0){var Qe=dr(Qi+Ii,Ii);Er(Qe),kn(Qe,!0)}break}case te.Z.ENTER:{var pt=Li[Qi];pt&&!pt.data.disabled?Ln(pt.value):Ln(void 0),Et&&hr.preventDefault();break}case te.Z.ESC:zt(!1),Et&&hr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(hr){Er(hr)}}}),Li.length===0)return et.createElement("div",{role:"listbox",id:"".concat(cn,"_list"),className:"".concat(Xt,"-empty"),onMouseDown:Hi},Sn);var pr=Object.keys(Gn).map(function(mr){return Gn[mr]}),Qr=function(hr){return hr.label};function vr(mr,hr){var fr=mr.group;return{role:fr?"presentation":"option",id:"".concat(cn,"_list_").concat(hr)}}var Ho=function(hr){var fr=Li[hr];if(!fr)return null;var Vr=fr.data||{},Ii=Vr.value,Qe=fr.group,pt=(0,We.Z)(Vr,!0),It=Qr(fr);return fr?et.createElement("div",(0,Se.Z)({"aria-label":typeof It=="string"&&!Qe?It:null},pt,{key:hr},vr(fr,hr),{"aria-selected":Dr(Ii)}),Ii):null},co={role:"listbox",id:"".concat(cn,"_list")};return et.createElement(et.Fragment,null,Ai&&et.createElement("div",(0,Se.Z)({},co,{style:{height:0,width:0,overflow:"hidden"}}),Ho(Qi-1),Ho(Qi),Ho(Qi+1)),et.createElement(Yr.Z,{itemKey:"key",ref:rr,data:Li,height:kr,itemHeight:Sr,fullHeight:!1,onMouseDown:Hi,onScroll:Ci,virtual:Ai,direction:br,innerProps:Ai?null:co},function(mr,hr){var fr,Vr=mr.group,Ii=mr.groupOption,Qe=mr.data,pt=mr.label,It=mr.value,sn=Qe.key;if(Vr){var Hn,On=(Hn=Qe.title)!==null&&Hn!==void 0?Hn:Ce(pt)?pt.toString():void 0;return et.createElement("div",{className:ct()(Xt,"".concat(Xt,"-group")),title:On},pt!==void 0?pt:sn)}var Wt=Qe.disabled,Nn=Qe.title,ai=Qe.children,qn=Qe.style,Oi=Qe.className,Bi=(0,vt.Z)(Qe,$n),pi=(0,Fr.Z)(Bi,pr),Gi=Dr(It),zn="".concat(Xt,"-option"),_r=ct()(Xt,zn,Oi,(fr={},(0,He.Z)(fr,"".concat(zn,"-grouped"),Ii),(0,He.Z)(fr,"".concat(zn,"-active"),Qi===hr&&!Wt),(0,He.Z)(fr,"".concat(zn,"-disabled"),Wt),(0,He.Z)(fr,"".concat(zn,"-selected"),Gi),fr)),Gr=Qr(mr),Ao=!Zi||typeof Zi=="function"||Gi,qr=typeof Gr=="number"?Gr:Gr||It,$r=Ce(qr)?qr.toString():void 0;return Nn!==void 0&&($r=Nn),et.createElement("div",(0,Se.Z)({},(0,We.Z)(pi),Ai?{}:vr(mr,hr),{"aria-selected":Gi,className:_r,title:$r,onMouseMove:function(){Qi===hr||Wt||kn(hr)},onClick:function(){Wt||Ln(It)},style:qn}),et.createElement("div",{className:"".concat(zn,"-content")},qr),et.isValidElement(Zi)||Gi,Ao&&et.createElement(se,{className:"".concat(Xt,"-option-state"),customizeIcon:Zi,customizeIconProps:{isSelected:Gi}},Gi?"\u2713":null))}))},ki=et.forwardRef(hi);ki.displayName="OptionList";var un=ki;function Wn(xt){var Ye=xt.mode,an=xt.options,Bt=xt.children,jn=xt.backfill,cn=xt.allowClear,Et=xt.placeholder,xn=xt.getInputElement,Qn=xt.showSearch,Un=xt.onSearch,zt=xt.defaultOpen,Sn=xt.autoFocus,Ci=xt.labelInValue,Si=xt.value,vi=xt.inputValue,ti=xt.optionLabelProp,xi=isMultiple(Ye),Ni=Qn!==void 0?Qn:xi||Ye==="combobox",Zi=an||convertChildrenToData(Bt);if(warning(Ye!=="tags"||Zi.every(function(br){return!br.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ye==="tags"||Ye==="combobox"){var cr=Zi.some(function(br){return br.options?br.options.some(function(kr){return typeof("value"in kr?kr.value:kr.key)=="number"}):typeof("value"in br?br.value:br.key)=="number"});warning(!cr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ye!=="combobox"||!ti,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ye==="combobox"||!jn,"`backfill` only works with `combobox` mode."),warning(Ye==="combobox"||!xn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ye!=="combobox"||!xn||!cn||!Et,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Un&&!Ni&&Ye!=="combobox"&&Ye!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!zt||Sn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Si!=null){var Gn=toArray(Si);warning(!Ci||Gn.every(function(br){return _typeof(br)==="object"&&("key"in br||"value"in br)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!xi||Array.isArray(Si),"`value` should be array when `mode` is `multiple` or `tags`")}if(Bt){var Ai=null;toNodeArray(Bt).some(function(br){if(!React.isValidElement(br)||!br.type)return!1;var kr=br,Sr=kr.type;if(Sr.isSelectOption)return!1;if(Sr.isSelectOptGroup){var Xt=toNodeArray(br.props.children).every(function(Li){return!React.isValidElement(Li)||!br.type||Li.type.isSelectOption?!0:(Ai=Li.type,!1)});return!Xt}return Ai=Sr,!0}),Ai&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ai.displayName||Ai.name||Ai,"`.")),warning(vi===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function li(xt,Ye){if(xt){var an=function Bt(jn){for(var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=0;Et<jn.length;Et++){var xn=jn[Et];if(xn[Ye==null?void 0:Ye.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!cn&&Array.isArray(xn[Ye==null?void 0:Ye.options])&&Bt(xn[Ye==null?void 0:Ye.options],!0))break}};an(xt)}}var fn=null,on=["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"],mt=["inputValue"];function Pt(xt){return!xt||(0,ke.Z)(xt)!=="object"}var bt=et.forwardRef(function(xt,Ye){var an=xt.id,Bt=xt.mode,jn=xt.prefixCls,cn=jn===void 0?"rc-select":jn,Et=xt.backfill,xn=xt.fieldNames,Qn=xt.inputValue,Un=xt.searchValue,zt=xt.onSearch,Sn=xt.autoClearSearchValue,Ci=Sn===void 0?!0:Sn,Si=xt.onSelect,vi=xt.onDeselect,ti=xt.dropdownMatchSelectWidth,xi=ti===void 0?!0:ti,Ni=xt.filterOption,Zi=xt.filterSort,cr=xt.optionFilterProp,Gn=xt.optionLabelProp,Ai=xt.options,br=xt.children,kr=xt.defaultActiveFirstOption,Sr=xt.menuItemSelectedIcon,Xt=xt.virtual,Li=xt.direction,rr=xt.listHeight,Hi=rr===void 0?200:rr,Er=xt.listItemHeight,dr=Er===void 0?20:Er,Nr=xt.value,Ti=xt.defaultValue,Qi=xt.labelInValue,er=xt.onChange,kn=(0,vt.Z)(xt,on),Dr=(0,Ut.ZP)(an),Ln=we(Bt),pr=!!(!Ai&&br),Qr=et.useMemo(function(){return Ni===void 0&&Bt==="combobox"?!1:Ni},[Ni,Bt]),vr=et.useMemo(function(){return Je(xn,pr)},[JSON.stringify(xn),pr]),Ho=(0,Tt.Z)("",{value:Un!==void 0?Un:Qn,postState:function(ko){return ko||""}}),co=(0,_e.Z)(Ho,2),mr=co[0],hr=co[1],fr=Ri(Ai,br,vr,cr,Gn),Vr=fr.valueOptions,Ii=fr.labelOptions,Qe=fr.options,pt=et.useCallback(function(no){var ko=Nt(no);return ko.map(function(oo){var Vi,ha,Na,Bs,ys;if(Pt(oo))Vi=oo;else{var nl;Na=oo.key,ha=oo.label,Vi=(nl=oo.value)!==null&&nl!==void 0?nl:Na}var Yi=Vr.get(Vi);if(Yi){var Da;if(ha===void 0&&(ha=Yi==null?void 0:Yi[Gn||vr.label]),Na===void 0&&(Na=(Da=Yi==null?void 0:Yi.key)!==null&&Da!==void 0?Da:Vi),Bs=Yi==null?void 0:Yi.disabled,ys=Yi==null?void 0:Yi.title,0)var ga}return{label:ha,value:Vi,key:Na,disabled:Bs,title:ys}})},[vr,Gn,Vr]),It=(0,Tt.Z)(Ti,{value:Nr}),sn=(0,_e.Z)(It,2),Hn=sn[0],On=sn[1],Wt=et.useMemo(function(){var no,ko=pt(Hn);return Bt==="combobox"&&Yt((no=ko[0])===null||no===void 0?void 0:no.value)?[]:ko},[Hn,pt,Bt]),Nn=ze(Wt,Vr),ai=(0,_e.Z)(Nn,2),qn=ai[0],Oi=ai[1],Bi=et.useMemo(function(){if(!Bt&&qn.length===1){var no=qn[0];if(no.value===null&&(no.label===null||no.label===void 0))return[]}return qn.map(function(ko){var oo;return(0,Rt.Z)((0,Rt.Z)({},ko),{},{label:(oo=ko.label)!==null&&oo!==void 0?oo:ko.value})})},[Bt,qn]),pi=et.useMemo(function(){return new Set(qn.map(function(no){return no.value}))},[qn]);et.useEffect(function(){if(Bt==="combobox"){var no,ko=(no=qn[0])===null||no===void 0?void 0:no.value;hr(Zt(ko)?String(ko):"")}},[qn]);var Gi=Wi(function(no,ko){var oo,Vi=ko!=null?ko:no;return oo={},(0,He.Z)(oo,vr.value,no),(0,He.Z)(oo,vr.label,Vi),oo}),zn=et.useMemo(function(){if(Bt!=="tags")return Qe;var no=(0,Oe.Z)(Qe),ko=function(Vi){return Vr.has(Vi)};return(0,Oe.Z)(qn).sort(function(oo,Vi){return oo.value<Vi.value?-1:1}).forEach(function(oo){var Vi=oo.value;ko(Vi)||no.push(Gi(Vi,oo.label))}),no},[Gi,Qe,Vr,qn,Bt]),_r=nt(zn,vr,mr,Qr,cr),Gr=et.useMemo(function(){return Bt!=="tags"||!mr||_r.some(function(no){return no[cr||"value"]===mr})||_r.some(function(no){return no[vr.value]===mr})?_r:[Gi(mr)].concat((0,Oe.Z)(_r))},[Gi,cr,Bt,_r,mr,vr]),Ao=et.useMemo(function(){return Zi?(0,Oe.Z)(Gr).sort(function(no,ko){return Zi(no,ko)}):Gr},[Gr,Zi]),qr=et.useMemo(function(){return Gt(Ao,{fieldNames:vr,childrenAsData:pr})},[Ao,vr,pr]),$r=function(ko){var oo=pt(ko);if(On(oo),er&&(oo.length!==qn.length||oo.some(function(Na,Bs){var ys;return((ys=qn[Bs])===null||ys===void 0?void 0:ys.value)!==(Na==null?void 0:Na.value)}))){var Vi=Qi?oo:oo.map(function(Na){return Na.value}),ha=oo.map(function(Na){return At(Oi(Na.value))});er(Ln?Vi:Vi[0],Ln?ha:ha[0])}},to=et.useState(null),$o=(0,_e.Z)(to,2),Qo=$o[0],pa=$o[1],qo=et.useState(0),Cn=(0,_e.Z)(qo,2),ca=Cn[0],es=Cn[1],ts=kr!==void 0?kr:Bt!=="combobox",Ga=et.useCallback(function(no,ko){var oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Vi=oo.source,ha=Vi===void 0?"keyboard":Vi;es(ko),Et&&Bt==="combobox"&&no!==null&&ha==="keyboard"&&pa(String(no))},[Et,Bt]),Ds=function(ko,oo,Vi){var ha=function(){var Gl,So=Oi(ko);return[Qi?{label:So==null?void 0:So[vr.label],value:ko,key:(Gl=So==null?void 0:So.key)!==null&&Gl!==void 0?Gl:ko}:ko,At(So)]};if(oo&&Si){var Na=ha(),Bs=(0,_e.Z)(Na,2),ys=Bs[0],nl=Bs[1];Si(ys,nl)}else if(!oo&&vi&&Vi!=="clear"){var Yi=ha(),Da=(0,_e.Z)(Yi,2),ga=Da[0],Is=Da[1];vi(ga,Is)}},pl=Wi(function(no,ko){var oo,Vi=Ln?ko.selected:!0;Vi?oo=Ln?[].concat((0,Oe.Z)(qn),[no]):[no]:oo=qn.filter(function(ha){return ha.value!==no}),$r(oo),Ds(no,Vi),Bt==="combobox"?pa(""):(!we||Ci)&&(hr(""),pa(""))}),ma=function(ko,oo){$r(ko);var Vi=oo.type,ha=oo.values;(Vi==="remove"||Vi==="clear")&&ha.forEach(function(Na){Ds(Na.value,!1,Vi)})},Fo=function(ko,oo){if(hr(ko),pa(null),oo.source==="submit"){var Vi=(ko||"").trim();if(Vi){var ha=Array.from(new Set([].concat((0,Oe.Z)(pi),[Vi])));$r(ha),Ds(Vi,!0),hr("")}return}oo.source!=="blur"&&(Bt==="combobox"&&$r(ko),zt==null||zt(ko))},Oo=function(ko){var oo=ko;Bt!=="tags"&&(oo=ko.map(function(ha){var Na=Ii.get(ha);return Na==null?void 0:Na.value}).filter(function(ha){return ha!==void 0}));var Vi=Array.from(new Set([].concat((0,Oe.Z)(pi),(0,Oe.Z)(oo))));$r(Vi),Vi.forEach(function(ha){Ds(ha,!0)})},Pa=et.useMemo(function(){var no=Xt!==!1&&xi!==!1;return(0,Rt.Z)((0,Rt.Z)({},fr),{},{flattenOptions:qr,onActiveValue:Ga,defaultActiveFirstOption:ts,onSelect:pl,menuItemSelectedIcon:Sr,rawValues:pi,fieldNames:vr,virtual:no,direction:Li,listHeight:Hi,listItemHeight:dr,childrenAsData:pr})},[fr,qr,Ga,ts,pl,Sr,pi,vr,Xt,xi,Hi,dr,pr]);return et.createElement(ar.Provider,{value:Pa},et.createElement(De,(0,Se.Z)({},kn,{id:Dr,prefixCls:cn,ref:Ye,omitDomProps:mt,mode:Bt,displayValues:Bi,onDisplayValuesChange:ma,direction:Li,searchValue:mr,onSearch:Fo,autoClearSearchValue:Ci,onSearchSplit:Oo,dropdownMatchSelectWidth:xi,OptionList:un,emptyOptions:!qr.length,activeValue:Qo,activeDescendantId:"".concat(Dr,"_list_").concat(ca)})))}),tt=bt;tt.Option=Hr,tt.OptGroup=nr;var qt=tt,dn=qt},9296:function(Rn,Fn,ye){"use strict";ye.r(Fn),ye.d(Fn,{ResizableTextArea:function(){return ht},default:function(){return Yt}});var Se=ye(5891),Oe=ye(57259),He=ye(80962),Rt=ye(80665),_e=ye(29043),vt=ye(19149),ke=ye(26390),Tt=ye(92310),Lt=ye.n(Tt),et=ye(93681),gt=ye(5643),ct=ye(35788),wt=ye(59301),Me=ye(29301),te=ye(28800),ne=ye(23073),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={},ve;function be(Ot){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=Ot.getAttribute("id")||Ot.getAttribute("data-reactid")||Ot.getAttribute("name");if(Qt&&ge[dt])return ge[dt];var Re=window.getComputedStyle(Ot),Mt=Re.getPropertyValue("box-sizing")||Re.getPropertyValue("-moz-box-sizing")||Re.getPropertyValue("-webkit-box-sizing"),Pn=parseFloat(Re.getPropertyValue("padding-bottom"))+parseFloat(Re.getPropertyValue("padding-top")),mn=parseFloat(Re.getPropertyValue("border-bottom-width"))+parseFloat(Re.getPropertyValue("border-top-width")),kt=se.map(function(ln){return"".concat(ln,":").concat(Re.getPropertyValue(ln))}).join(";"),_t={sizingStyle:kt,paddingSize:Pn,borderSize:mn,boxSizing:Mt};return Qt&&dt&&(ge[dt]=_t),_t}function Fe(Ot){var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ve||(ve=document.createElement("textarea"),ve.setAttribute("tab-index","-1"),ve.setAttribute("aria-hidden","true"),document.body.appendChild(ve)),Ot.getAttribute("wrap")?ve.setAttribute("wrap",Ot.getAttribute("wrap")):ve.removeAttribute("wrap");var Mt=be(Ot,Qt),Pn=Mt.paddingSize,mn=Mt.borderSize,kt=Mt.boxSizing,_t=Mt.sizingStyle;ve.setAttribute("style","".concat(_t,";").concat(ce)),ve.value=Ot.value||Ot.placeholder||"";var ln=void 0,Bn=void 0,wn,Kn=ve.scrollHeight;if(kt==="border-box"?Kn+=mn:kt==="content-box"&&(Kn-=Pn),dt!==null||Re!==null){ve.value=" ";var yt=ve.scrollHeight-Pn;dt!==null&&(ln=yt*dt,kt==="border-box"&&(ln=ln+Pn+mn),Kn=Math.max(ln,Kn)),Re!==null&&(Bn=yt*Re,kt==="border-box"&&(Bn=Bn+Pn+mn),wn=Kn>Bn?"":"hidden",Kn=Math.min(Bn,Kn))}var Jn={height:Kn,overflowY:wn,resize:"none"};return ln&&(Jn.minHeight=ln),Bn&&(Jn.maxHeight=Bn),Jn}var Pe=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ie=0,We=1,Ke=2,Xe=wt.forwardRef(function(Ot,Qt){var dt=Ot,Re=dt.prefixCls,Mt=dt.onPressEnter,Pn=dt.defaultValue,mn=dt.value,kt=dt.autoSize,_t=dt.onResize,ln=dt.className,Bn=dt.style,wn=dt.disabled,Kn=dt.onChange,yt=dt.onInternalAutoSize,Jn=(0,vt.Z)(dt,Pe),bn=(0,ct.Z)(Pn,{value:mn,postState:function(nr){return nr!=null?nr:""}}),ci=(0,_e.Z)(bn,2),Tn=ci[0],tn=ci[1],$t=function(nr){tn(nr.target.value),Kn==null||Kn(nr)},ft=wt.useRef();wt.useImperativeHandle(Qt,function(){return{textArea:ft.current}});var Je=wt.useMemo(function(){return kt&&(0,Rt.Z)(kt)==="object"?[kt.minRows,kt.maxRows]:[]},[kt]),Gt=(0,_e.Z)(Je,2),At=Gt[0],lt=Gt[1],Ge=!!kt,Be=function(){try{if(document.activeElement===ft.current){var nr=ft.current,Wr=nr.selectionStart,Hr=nr.selectionEnd,Tr=nr.scrollTop;ft.current.setSelectionRange(Wr,Hr),ft.current.scrollTop=Tr}}catch(Fr){}},we=wt.useState(Ke),pe=(0,_e.Z)(we,2),De=pe[0],ze=pe[1],Le=wt.useState(),nt=(0,_e.Z)(Le,2),Ut=nt[0],En=nt[1],rn=function(){ze(Ie)};(0,te.Z)(function(){Ge&&rn()},[mn,At,lt,Ge]),(0,te.Z)(function(){if(De===Ie)ze(We);else if(De===We){var Mn=Fe(ft.current,!1,At,lt);ze(Ke),En(Mn)}else Be()},[De]);var vn=wt.useRef(),mi=function(){ne.Z.cancel(vn.current)},wi=function(nr){De===Ke&&(_t==null||_t(nr),kt&&(mi(),vn.current=(0,ne.Z)(function(){rn()})))};wt.useEffect(function(){return mi},[]);var Ri=Ge?Ut:null,Wi=(0,Oe.Z)((0,Oe.Z)({},Bn),Ri);return(De===Ie||De===We)&&(Wi.overflowY="hidden",Wi.overflowX="hidden"),wt.createElement(Me.Z,{onResize:wi,disabled:!(kt||_t)},wt.createElement("textarea",(0,Se.Z)({},Jn,{ref:ft,style:Wi,className:Lt()(Re,ln,(0,He.Z)({},"".concat(Re,"-disabled"),wn)),disabled:wn,value:Tn,onChange:$t})))}),ht=Xe,Ve=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Nt(Ot,Qt){return(0,ke.Z)(Ot||"").slice(0,Qt).join("")}function qe(Ot,Qt,dt,Re){var Mt=dt;return Ot?Mt=Nt(dt,Re):(0,ke.Z)(Qt||"").length<dt.length&&(0,ke.Z)(dt||"").length>Re&&(Mt=Qt),Mt}var Ht=wt.forwardRef(function(Ot,Qt){var dt,Re=Ot.defaultValue,Mt=Ot.value,Pn=Ot.onFocus,mn=Ot.onBlur,kt=Ot.onChange,_t=Ot.allowClear,ln=Ot.maxLength,Bn=Ot.onCompositionStart,wn=Ot.onCompositionEnd,Kn=Ot.suffix,yt=Ot.prefixCls,Jn=yt===void 0?"rc-textarea":yt,bn=Ot.classes,ci=Ot.showCount,Tn=Ot.className,tn=Ot.style,$t=Ot.disabled,ft=Ot.hidden,Je=Ot.classNames,Gt=Ot.styles,At=Ot.onResize,lt=(0,vt.Z)(Ot,Ve),Ge=(0,ct.Z)(Re,{value:Mt,defaultValue:Re}),Be=(0,_e.Z)(Ge,2),we=Be[0],pe=Be[1],De=(0,wt.useRef)(null),ze=wt.useState(!1),Le=(0,_e.Z)(ze,2),nt=Le[0],Ut=Le[1],En=wt.useState(!1),rn=(0,_e.Z)(En,2),vn=rn[0],mi=rn[1],wi=wt.useRef(),Ri=wt.useRef(0),Wi=wt.useState(null),Mn=(0,_e.Z)(Wi,2),nr=Mn[0],Wr=Mn[1],Hr=function(){var Pt;(Pt=De.current)===null||Pt===void 0||Pt.textArea.focus()};(0,wt.useImperativeHandle)(Qt,function(){return{resizableTextArea:De.current,focus:Hr,blur:function(){var Pt;(Pt=De.current)===null||Pt===void 0||Pt.textArea.blur()}}}),(0,wt.useEffect)(function(){Ut(function(mt){return!$t&&mt})},[$t]);var Tr=Number(ln)>0,Fr=function(Pt){mi(!0),wi.current=we,Ri.current=Pt.currentTarget.selectionStart,Bn==null||Bn(Pt)},Yr=function(Pt){mi(!1);var bt=Pt.currentTarget.value;if(Tr){var tt,qt=Ri.current>=ln+1||Ri.current===((tt=wi.current)===null||tt===void 0?void 0:tt.length);bt=qe(qt,wi.current,bt,ln)}bt!==we&&(pe(bt),(0,gt.rJ)(Pt.currentTarget,Pt,kt,bt)),wn==null||wn(Pt)},Kr=function(Pt){var bt=Pt.target.value;if(!vn&&Tr){var tt=Pt.target.selectionStart>=ln+1||Pt.target.selectionStart===bt.length||!Pt.target.selectionStart;bt=qe(tt,we,bt,ln)}pe(bt),(0,gt.rJ)(Pt.currentTarget,Pt,kt,bt)},ar=function(Pt){var bt=lt.onPressEnter,tt=lt.onKeyDown;Pt.key==="Enter"&&bt&&bt(Pt),tt==null||tt(Pt)},Co=function(Pt){Ut(!0),Pn==null||Pn(Pt)},$n=function(Pt){Ut(!1),mn==null||mn(Pt)},Ce=function(Pt){var bt;pe(""),Hr(),(0,gt.rJ)((bt=De.current)===null||bt===void 0?void 0:bt.textArea,Pt,kt)},hi=(0,gt.D7)(we);!vn&&Tr&&Mt==null&&(hi=Nt(hi,ln));var ki=Kn,un;if(ci){var Wn=(0,ke.Z)(hi).length;(0,Rt.Z)(ci)==="object"?un=ci.formatter({value:hi,count:Wn,maxLength:ln}):un="".concat(Wn).concat(Tr?" / ".concat(ln):""),ki=wt.createElement(wt.Fragment,null,ki,wt.createElement("span",{className:Lt()("".concat(Jn,"-data-count"),Je==null?void 0:Je.count),style:Gt==null?void 0:Gt.count},un))}var li=function(Pt){var bt;At==null||At(Pt),(bt=De.current)!==null&&bt!==void 0&&bt.textArea.style.height&&Wr(!0)},fn=!lt.autoSize&&!ci&&!_t,on=wt.createElement(et.BaseInput,{value:hi,allowClear:_t,handleReset:Ce,suffix:ki,prefixCls:Jn,classes:{affixWrapper:Lt()(bn==null?void 0:bn.affixWrapper,(dt={},(0,He.Z)(dt,"".concat(Jn,"-show-count"),ci),(0,He.Z)(dt,"".concat(Jn,"-textarea-allow-clear"),_t),dt))},disabled:$t,focused:nt,className:Tn,style:(0,Oe.Z)((0,Oe.Z)({},tn),nr&&!fn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof un=="string"?un:void 0}},hidden:ft,inputElement:wt.createElement(ht,(0,Se.Z)({},lt,{onKeyDown:ar,onChange:Kr,onFocus:Co,onBlur:$n,onCompositionStart:Fr,onCompositionEnd:Yr,className:Je==null?void 0:Je.textarea,style:(0,Oe.Z)((0,Oe.Z)({},Gt==null?void 0:Gt.textarea),{},{resize:tn==null?void 0:tn.resize}),disabled:$t,prefixCls:Jn,onResize:li,ref:De}))});return on}),Zt=Ht,Yt=Zt},39417:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return We}});var Se=ye(5891),Oe=ye(80962),He=ye(19149),Rt=ye(57259),_e=ye(79545),vt=ye(68550),ke=ye(21882),Tt=ye(17928),Lt=ye(7711),et=ye(92310),gt=ye.n(et),ct=ye(36994),wt=ye(59301),Me=ye(39378),te=function(Xe){for(var ht=Xe.prefixCls,Ve=Xe.level,Nt=Xe.isStart,qe=Xe.isEnd,Ht="".concat(ht,"-indent-unit"),Zt=[],Yt=0;Yt<Ve;Yt+=1){var Ot;Zt.push(wt.createElement("span",{key:Yt,className:gt()(Ht,(Ot={},(0,Oe.Z)(Ot,"".concat(Ht,"-start"),Nt[Yt]),(0,Oe.Z)(Ot,"".concat(Ht,"-end"),qe[Yt]),Ot))}))}return wt.createElement("span",{"aria-hidden":"true",className:"".concat(ht,"-indent")},Zt)},ne=wt.memo(te),ce=ye(67841),se=ye(71430),ge=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ve="open",be="close",Fe="---",Pe=function(Ke){(0,Tt.Z)(ht,Ke);var Xe=(0,Lt.Z)(ht);function ht(){var Ve;(0,_e.Z)(this,ht);for(var Nt=arguments.length,qe=new Array(Nt),Ht=0;Ht<Nt;Ht++)qe[Ht]=arguments[Ht];return Ve=Xe.call.apply(Xe,[this].concat(qe)),Ve.state={dragNodeHighlight:!1},Ve.selectHandle=void 0,Ve.cacheIndent=void 0,Ve.onSelectorClick=function(Zt){var Yt=Ve.props.context.onNodeClick;Yt(Zt,(0,se.F)(Ve.props)),Ve.isSelectable()?Ve.onSelect(Zt):Ve.onCheck(Zt)},Ve.onSelectorDoubleClick=function(Zt){var Yt=Ve.props.context.onNodeDoubleClick;Yt(Zt,(0,se.F)(Ve.props))},Ve.onSelect=function(Zt){if(!Ve.isDisabled()){var Yt=Ve.props.context.onNodeSelect;Yt(Zt,(0,se.F)(Ve.props))}},Ve.onCheck=function(Zt){if(!Ve.isDisabled()){var Yt=Ve.props,Ot=Yt.disableCheckbox,Qt=Yt.checked,dt=Ve.props.context.onNodeCheck;if(!(!Ve.isCheckable()||Ot)){var Re=!Qt;dt(Zt,(0,se.F)(Ve.props),Re)}}},Ve.onMouseEnter=function(Zt){var Yt=Ve.props.context.onNodeMouseEnter;Yt(Zt,(0,se.F)(Ve.props))},Ve.onMouseLeave=function(Zt){var Yt=Ve.props.context.onNodeMouseLeave;Yt(Zt,(0,se.F)(Ve.props))},Ve.onContextMenu=function(Zt){var Yt=Ve.props.context.onNodeContextMenu;Yt(Zt,(0,se.F)(Ve.props))},Ve.onDragStart=function(Zt){var Yt=Ve.props.context.onNodeDragStart;Zt.stopPropagation(),Ve.setState({dragNodeHighlight:!0}),Yt(Zt,(0,ke.Z)(Ve));try{Zt.dataTransfer.setData("text/plain","")}catch(Ot){}},Ve.onDragEnter=function(Zt){var Yt=Ve.props.context.onNodeDragEnter;Zt.preventDefault(),Zt.stopPropagation(),Yt(Zt,(0,ke.Z)(Ve))},Ve.onDragOver=function(Zt){var Yt=Ve.props.context.onNodeDragOver;Zt.preventDefault(),Zt.stopPropagation(),Yt(Zt,(0,ke.Z)(Ve))},Ve.onDragLeave=function(Zt){var Yt=Ve.props.context.onNodeDragLeave;Zt.stopPropagation(),Yt(Zt,(0,ke.Z)(Ve))},Ve.onDragEnd=function(Zt){var Yt=Ve.props.context.onNodeDragEnd;Zt.stopPropagation(),Ve.setState({dragNodeHighlight:!1}),Yt(Zt,(0,ke.Z)(Ve))},Ve.onDrop=function(Zt){var Yt=Ve.props.context.onNodeDrop;Zt.preventDefault(),Zt.stopPropagation(),Ve.setState({dragNodeHighlight:!1}),Yt(Zt,(0,ke.Z)(Ve))},Ve.onExpand=function(Zt){var Yt=Ve.props,Ot=Yt.loading,Qt=Yt.context.onNodeExpand;Ot||Qt(Zt,(0,se.F)(Ve.props))},Ve.setSelectHandle=function(Zt){Ve.selectHandle=Zt},Ve.getNodeState=function(){var Zt=Ve.props.expanded;return Ve.isLeaf()?null:Zt?ve:be},Ve.hasChildren=function(){var Zt=Ve.props.eventKey,Yt=Ve.props.context.keyEntities,Ot=(0,ce.Z)(Yt,Zt)||{},Qt=Ot.children;return!!(Qt||[]).length},Ve.isLeaf=function(){var Zt=Ve.props,Yt=Zt.isLeaf,Ot=Zt.loaded,Qt=Ve.props.context.loadData,dt=Ve.hasChildren();return Yt===!1?!1:Yt||!Qt&&!dt||Qt&&Ot&&!dt},Ve.isDisabled=function(){var Zt=Ve.props.disabled,Yt=Ve.props.context.disabled;return!!(Yt||Zt)},Ve.isCheckable=function(){var Zt=Ve.props.checkable,Yt=Ve.props.context.checkable;return!Yt||Zt===!1?!1:Yt},Ve.syncLoadData=function(Zt){var Yt=Zt.expanded,Ot=Zt.loading,Qt=Zt.loaded,dt=Ve.props.context,Re=dt.loadData,Mt=dt.onNodeLoad;Ot||Re&&Yt&&!Ve.isLeaf()&&!Ve.hasChildren()&&!Qt&&Mt((0,se.F)(Ve.props))},Ve.isDraggable=function(){var Zt=Ve.props,Yt=Zt.data,Ot=Zt.context.draggable;return!!(Ot&&(!Ot.nodeDraggable||Ot.nodeDraggable(Yt)))},Ve.renderDragHandler=function(){var Zt=Ve.props.context,Yt=Zt.draggable,Ot=Zt.prefixCls;return Yt!=null&&Yt.icon?wt.createElement("span",{className:"".concat(Ot,"-draggable-icon")},Yt.icon):null},Ve.renderSwitcherIconDom=function(Zt){var Yt=Ve.props.switcherIcon,Ot=Ve.props.context.switcherIcon,Qt=Yt||Ot;return typeof Qt=="function"?Qt((0,Rt.Z)((0,Rt.Z)({},Ve.props),{},{isLeaf:Zt})):Qt},Ve.renderSwitcher=function(){var Zt=Ve.props.expanded,Yt=Ve.props.context.prefixCls;if(Ve.isLeaf()){var Ot=Ve.renderSwitcherIconDom(!0);return Ot!==!1?wt.createElement("span",{className:gt()("".concat(Yt,"-switcher"),"".concat(Yt,"-switcher-noop"))},Ot):null}var Qt=gt()("".concat(Yt,"-switcher"),"".concat(Yt,"-switcher_").concat(Zt?ve:be)),dt=Ve.renderSwitcherIconDom(!1);return dt!==!1?wt.createElement("span",{onClick:Ve.onExpand,className:Qt},dt):null},Ve.renderCheckbox=function(){var Zt=Ve.props,Yt=Zt.checked,Ot=Zt.halfChecked,Qt=Zt.disableCheckbox,dt=Ve.props.context.prefixCls,Re=Ve.isDisabled(),Mt=Ve.isCheckable();if(!Mt)return null;var Pn=typeof Mt!="boolean"?Mt:null;return wt.createElement("span",{className:gt()("".concat(dt,"-checkbox"),Yt&&"".concat(dt,"-checkbox-checked"),!Yt&&Ot&&"".concat(dt,"-checkbox-indeterminate"),(Re||Qt)&&"".concat(dt,"-checkbox-disabled")),onClick:Ve.onCheck},Pn)},Ve.renderIcon=function(){var Zt=Ve.props.loading,Yt=Ve.props.context.prefixCls;return wt.createElement("span",{className:gt()("".concat(Yt,"-iconEle"),"".concat(Yt,"-icon__").concat(Ve.getNodeState()||"docu"),Zt&&"".concat(Yt,"-icon_loading"))})},Ve.renderSelector=function(){var Zt=Ve.state.dragNodeHighlight,Yt=Ve.props,Ot=Yt.title,Qt=Ot===void 0?Fe:Ot,dt=Yt.selected,Re=Yt.icon,Mt=Yt.loading,Pn=Yt.data,mn=Ve.props.context,kt=mn.prefixCls,_t=mn.showIcon,ln=mn.icon,Bn=mn.loadData,wn=mn.titleRender,Kn=Ve.isDisabled(),yt="".concat(kt,"-node-content-wrapper"),Jn;if(_t){var bn=Re||ln;Jn=bn?wt.createElement("span",{className:gt()("".concat(kt,"-iconEle"),"".concat(kt,"-icon__customize"))},typeof bn=="function"?bn(Ve.props):bn):Ve.renderIcon()}else Bn&&Mt&&(Jn=Ve.renderIcon());var ci;typeof Qt=="function"?ci=Qt(Pn):wn?ci=wn(Pn):ci=Qt;var Tn=wt.createElement("span",{className:"".concat(kt,"-title")},ci);return wt.createElement("span",{ref:Ve.setSelectHandle,title:typeof Qt=="string"?Qt:"",className:gt()("".concat(yt),"".concat(yt,"-").concat(Ve.getNodeState()||"normal"),!Kn&&(dt||Zt)&&"".concat(kt,"-node-selected")),onMouseEnter:Ve.onMouseEnter,onMouseLeave:Ve.onMouseLeave,onContextMenu:Ve.onContextMenu,onClick:Ve.onSelectorClick,onDoubleClick:Ve.onSelectorDoubleClick},Jn,Tn,Ve.renderDropIndicator())},Ve.renderDropIndicator=function(){var Zt=Ve.props,Yt=Zt.disabled,Ot=Zt.eventKey,Qt=Ve.props.context,dt=Qt.draggable,Re=Qt.dropLevelOffset,Mt=Qt.dropPosition,Pn=Qt.prefixCls,mn=Qt.indent,kt=Qt.dropIndicatorRender,_t=Qt.dragOverNodeKey,ln=Qt.direction,Bn=!!dt,wn=!Yt&&Bn&&_t===Ot,Kn=mn!=null?mn:Ve.cacheIndent;return Ve.cacheIndent=mn,wn?kt({dropPosition:Mt,dropLevelOffset:Re,indent:Kn,prefixCls:Pn,direction:ln}):null},Ve}return(0,vt.Z)(ht,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Nt=this.props.selectable,qe=this.props.context.selectable;return typeof Nt=="boolean"?Nt:qe}},{key:"render",value:function(){var Nt,qe=this.props,Ht=qe.eventKey,Zt=qe.className,Yt=qe.style,Ot=qe.dragOver,Qt=qe.dragOverGapTop,dt=qe.dragOverGapBottom,Re=qe.isLeaf,Mt=qe.isStart,Pn=qe.isEnd,mn=qe.expanded,kt=qe.selected,_t=qe.checked,ln=qe.halfChecked,Bn=qe.loading,wn=qe.domRef,Kn=qe.active,yt=qe.data,Jn=qe.onMouseMove,bn=qe.selectable,ci=(0,He.Z)(qe,ge),Tn=this.props.context,tn=Tn.prefixCls,$t=Tn.filterTreeNode,ft=Tn.keyEntities,Je=Tn.dropContainerKey,Gt=Tn.dropTargetKey,At=Tn.draggingNodeKey,lt=this.isDisabled(),Ge=(0,ct.Z)(ci,{aria:!0,data:!0}),Be=(0,ce.Z)(ft,Ht)||{},we=Be.level,pe=Pn[Pn.length-1],De=this.isDraggable(),ze=!lt&&De,Le=At===Ht,nt=bn!==void 0?{"aria-selected":!!bn}:void 0;return wt.createElement("div",(0,Se.Z)({ref:wn,className:gt()(Zt,"".concat(tn,"-treenode"),(Nt={},(0,Oe.Z)(Nt,"".concat(tn,"-treenode-disabled"),lt),(0,Oe.Z)(Nt,"".concat(tn,"-treenode-switcher-").concat(mn?"open":"close"),!Re),(0,Oe.Z)(Nt,"".concat(tn,"-treenode-checkbox-checked"),_t),(0,Oe.Z)(Nt,"".concat(tn,"-treenode-checkbox-indeterminate"),ln),(0,Oe.Z)(Nt,"".concat(tn,"-treenode-selected"),kt),(0,Oe.Z)(Nt,"".concat(tn,"-treenode-loading"),Bn),(0,Oe.Z)(Nt,"".concat(tn,"-treenode-active"),Kn),(0,Oe.Z)(Nt,"".concat(tn,"-treenode-leaf-last"),pe),(0,Oe.Z)(Nt,"".concat(tn,"-treenode-draggable"),De),(0,Oe.Z)(Nt,"dragging",Le),(0,Oe.Z)(Nt,"drop-target",Gt===Ht),(0,Oe.Z)(Nt,"drop-container",Je===Ht),(0,Oe.Z)(Nt,"drag-over",!lt&&Ot),(0,Oe.Z)(Nt,"drag-over-gap-top",!lt&&Qt),(0,Oe.Z)(Nt,"drag-over-gap-bottom",!lt&&dt),(0,Oe.Z)(Nt,"filter-node",$t&&$t((0,se.F)(this.props))),Nt)),style:Yt,draggable:ze,"aria-grabbed":Le,onDragStart:ze?this.onDragStart:void 0,onDragEnter:De?this.onDragEnter:void 0,onDragOver:De?this.onDragOver:void 0,onDragLeave:De?this.onDragLeave:void 0,onDrop:De?this.onDrop:void 0,onDragEnd:De?this.onDragEnd:void 0,onMouseMove:Jn},nt,Ge),wt.createElement(ne,{prefixCls:tn,level:we,isStart:Mt,isEnd:Pn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ht}(wt.Component),Ie=function(Xe){return wt.createElement(Me.k.Consumer,null,function(ht){return wt.createElement(Pe,(0,Se.Z)({},Xe,{context:ht}))})};Ie.displayName="TreeNode",Ie.isTreeNode=1;var We=Ie},39378:function(Rn,Fn,ye){"use strict";ye.d(Fn,{k:function(){return Oe}});var Se=ye(59301),Oe=Se.createContext(null)},99581:function(Rn,Fn,ye){"use strict";ye.d(Fn,{O:function(){return We.Z},Z:function(){return Tn}});var Se=ye(5891),Oe=ye(80962),He=ye(80665),Rt=ye(57259),_e=ye(26390),vt=ye(79545),ke=ye(68550),Tt=ye(21882),Lt=ye(17928),et=ye(7711),gt=ye(92310),ct=ye.n(gt),wt=ye(85108),Me=ye(36994),te=ye(51395),ne=ye(59301),ce=ye(39378);function se(tn){var $t=tn.dropPosition,ft=tn.dropLevelOffset,Je=tn.indent,Gt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch($t){case-1:Gt.top=0,Gt.left=-ft*Je;break;case 1:Gt.bottom=0,Gt.left=-ft*Je;break;case 0:Gt.bottom=0,Gt.left=Je;break}return ne.createElement("div",{style:Gt})}function ge(tn){if(tn==null)throw new TypeError("Cannot destructure "+tn)}var ve=ye(29043),be=ye(19149),Fe=ye(28800),Pe=ye(21881),Ie=ye(43469),We=ye(39417);function Ke(tn,$t){var ft=ne.useState(!1),Je=(0,ve.Z)(ft,2),Gt=Je[0],At=Je[1];ne.useLayoutEffect(function(){if(Gt)return tn(),function(){$t()}},[Gt]),ne.useLayoutEffect(function(){return At(!0),function(){At(!1)}},[])}var Xe=ye(71430),ht=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ve=function($t,ft){var Je=$t.className,Gt=$t.style,At=$t.motion,lt=$t.motionNodes,Ge=$t.motionType,Be=$t.onMotionStart,we=$t.onMotionEnd,pe=$t.active,De=$t.treeNodeRequiredProps,ze=(0,be.Z)($t,ht),Le=ne.useState(!0),nt=(0,ve.Z)(Le,2),Ut=nt[0],En=nt[1],rn=ne.useContext(ce.k),vn=rn.prefixCls,mi=lt&&Ge!=="hide";(0,Fe.Z)(function(){lt&&mi!==Ut&&En(mi)},[lt]);var wi=function(){lt&&Be()},Ri=ne.useRef(!1),Wi=function(){lt&&!Ri.current&&(Ri.current=!0,we())};Ke(wi,Wi);var Mn=function(Wr){mi===Wr&&Wi()};return lt?ne.createElement(Ie.default,(0,Se.Z)({ref:ft,visible:Ut},At,{motionAppear:Ge==="show",onVisibleChanged:Mn}),function(nr,Wr){var Hr=nr.className,Tr=nr.style;return ne.createElement("div",{ref:Wr,className:ct()("".concat(vn,"-treenode-motion"),Hr),style:Tr},lt.map(function(Fr){var Yr=(0,Se.Z)({},(ge(Fr.data),Fr.data)),Kr=Fr.title,ar=Fr.key,Co=Fr.isStart,$n=Fr.isEnd;delete Yr.children;var Ce=(0,Xe.H8)(ar,De);return ne.createElement(We.Z,(0,Se.Z)({},Yr,Ce,{title:Kr,active:pe,data:Fr.data,key:ar,isStart:Co,isEnd:$n}))}))}):ne.createElement(We.Z,(0,Se.Z)({domRef:ft,className:Je,style:Gt},ze,{active:pe}))};Ve.displayName="MotionTreeNode";var Nt=ne.forwardRef(Ve),qe=Nt;function Ht(){var tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ft=tn.length,Je=$t.length;if(Math.abs(ft-Je)!==1)return{add:!1,key:null};function Gt(At,lt){var Ge=new Map;At.forEach(function(we){Ge.set(we,!0)});var Be=lt.filter(function(we){return!Ge.has(we)});return Be.length===1?Be[0]:null}return ft<Je?{add:!0,key:Gt(tn,$t)}:{add:!1,key:Gt($t,tn)}}function Zt(tn,$t,ft){var Je=tn.findIndex(function(Ge){return Ge.key===ft}),Gt=tn[Je+1],At=$t.findIndex(function(Ge){return Ge.key===ft});if(Gt){var lt=$t.findIndex(function(Ge){return Ge.key===Gt.key});return $t.slice(At+1,lt)}return $t.slice(At+1)}var Yt=["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"],Ot={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Qt=function(){},dt="RC_TREE_MOTION_".concat(Math.random()),Re={key:dt},Mt={key:dt,level:0,index:0,pos:"0",node:Re,nodes:[Re]},Pn={parent:null,children:[],pos:Mt.pos,data:Re,title:null,key:dt,isStart:[],isEnd:[]};function mn(tn,$t,ft,Je){return $t===!1||!ft?tn:tn.slice(0,Math.ceil(ft/Je)+1)}function kt(tn){var $t=tn.key,ft=tn.pos;return(0,Xe.km)($t,ft)}function _t(tn){for(var $t=String(tn.data.key),ft=tn;ft.parent;)ft=ft.parent,$t="".concat(ft.data.key," > ").concat($t);return $t}var ln=ne.forwardRef(function(tn,$t){var ft=tn.prefixCls,Je=tn.data,Gt=tn.selectable,At=tn.checkable,lt=tn.expandedKeys,Ge=tn.selectedKeys,Be=tn.checkedKeys,we=tn.loadedKeys,pe=tn.loadingKeys,De=tn.halfCheckedKeys,ze=tn.keyEntities,Le=tn.disabled,nt=tn.dragging,Ut=tn.dragOverNodeKey,En=tn.dropPosition,rn=tn.motion,vn=tn.height,mi=tn.itemHeight,wi=tn.virtual,Ri=tn.focusable,Wi=tn.activeItem,Mn=tn.focused,nr=tn.tabIndex,Wr=tn.onKeyDown,Hr=tn.onFocus,Tr=tn.onBlur,Fr=tn.onActiveChange,Yr=tn.onListChangeStart,Kr=tn.onListChangeEnd,ar=(0,be.Z)(tn,Yt),Co=ne.useRef(null),$n=ne.useRef(null);ne.useImperativeHandle($t,function(){return{scrollTo:function(Sn){Co.current.scrollTo(Sn)},getIndentWidth:function(){return $n.current.offsetWidth}}});var Ce=ne.useState(lt),hi=(0,ve.Z)(Ce,2),ki=hi[0],un=hi[1],Wn=ne.useState(Je),li=(0,ve.Z)(Wn,2),fn=li[0],on=li[1],mt=ne.useState(Je),Pt=(0,ve.Z)(mt,2),bt=Pt[0],tt=Pt[1],qt=ne.useState([]),dn=(0,ve.Z)(qt,2),xt=dn[0],Ye=dn[1],an=ne.useState(null),Bt=(0,ve.Z)(an,2),jn=Bt[0],cn=Bt[1],Et=ne.useRef(Je);Et.current=Je;function xn(){var zt=Et.current;on(zt),tt(zt),Ye([]),cn(null),Kr()}(0,Fe.Z)(function(){un(lt);var zt=Ht(ki,lt);if(zt.key!==null)if(zt.add){var Sn=fn.findIndex(function(Ni){var Zi=Ni.key;return Zi===zt.key}),Ci=mn(Zt(fn,Je,zt.key),wi,vn,mi),Si=fn.slice();Si.splice(Sn+1,0,Pn),tt(Si),Ye(Ci),cn("show")}else{var vi=Je.findIndex(function(Ni){var Zi=Ni.key;return Zi===zt.key}),ti=mn(Zt(Je,fn,zt.key),wi,vn,mi),xi=Je.slice();xi.splice(vi+1,0,Pn),tt(xi),Ye(ti),cn("hide")}else fn!==Je&&(on(Je),tt(Je))},[lt,Je]),ne.useEffect(function(){nt||xn()},[nt]);var Qn=rn?bt:Je,Un={expandedKeys:lt,selectedKeys:Ge,loadedKeys:we,loadingKeys:pe,checkedKeys:Be,halfCheckedKeys:De,dragOverNodeKey:Ut,dropPosition:En,keyEntities:ze};return ne.createElement(ne.Fragment,null,Mn&&Wi&&ne.createElement("span",{style:Ot,"aria-live":"assertive"},_t(Wi)),ne.createElement("div",null,ne.createElement("input",{style:Ot,disabled:Ri===!1||Le,tabIndex:Ri!==!1?nr:null,onKeyDown:Wr,onFocus:Hr,onBlur:Tr,value:"",onChange:Qt,"aria-label":"for screen reader"})),ne.createElement("div",{className:"".concat(ft,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ne.createElement("div",{className:"".concat(ft,"-indent")},ne.createElement("div",{ref:$n,className:"".concat(ft,"-indent-unit")}))),ne.createElement(Pe.Z,(0,Se.Z)({},ar,{data:Qn,itemKey:kt,height:vn,fullHeight:!1,virtual:wi,itemHeight:mi,prefixCls:"".concat(ft,"-list"),ref:Co,onVisibleChange:function(Sn,Ci){var Si=new Set(Sn),vi=Ci.filter(function(ti){return!Si.has(ti)});vi.some(function(ti){return kt(ti)===dt})&&xn()}}),function(zt){var Sn=zt.pos,Ci=(0,Se.Z)({},(ge(zt.data),zt.data)),Si=zt.title,vi=zt.key,ti=zt.isStart,xi=zt.isEnd,Ni=(0,Xe.km)(vi,Sn);delete Ci.key,delete Ci.children;var Zi=(0,Xe.H8)(Ni,Un);return ne.createElement(qe,(0,Se.Z)({},Ci,Zi,{title:Si,active:!!Wi&&vi===Wi.key,pos:Sn,data:zt.data,isStart:ti,isEnd:xi,motion:rn,motionNodes:vi===dt?xt:null,motionType:jn,onMotionStart:Yr,onMotionEnd:xn,treeNodeRequiredProps:Un,onMouseMove:function(){Fr(null)}}))}))});ln.displayName="NodeList";var Bn=ln,wn=ye(35654),Kn=ye(90782),yt=ye(67841),Jn=10,bn=function(tn){(0,Lt.Z)(ft,tn);var $t=(0,et.Z)(ft);function ft(){var Je;(0,vt.Z)(this,ft);for(var Gt=arguments.length,At=new Array(Gt),lt=0;lt<Gt;lt++)At[lt]=arguments[lt];return Je=$t.call.apply($t,[this].concat(At)),Je.destroyed=!1,Je.delayedDragEnterLogic=void 0,Je.loadingRetryTimes={},Je.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,Xe.w$)()},Je.dragStartMousePosition=null,Je.dragNode=void 0,Je.currentMouseOverDroppableNodeKey=null,Je.listRef=ne.createRef(),Je.onNodeDragStart=function(Ge,Be){var we=Je.state,pe=we.expandedKeys,De=we.keyEntities,ze=Je.props.onDragStart,Le=Be.props.eventKey;Je.dragNode=Be,Je.dragStartMousePosition={x:Ge.clientX,y:Ge.clientY};var nt=(0,wn._5)(pe,Le);Je.setState({draggingNodeKey:Le,dragChildrenKeys:(0,wn.wA)(Le,De),indent:Je.listRef.current.getIndentWidth()}),Je.setExpandedKeys(nt),window.addEventListener("dragend",Je.onWindowDragEnd),ze==null||ze({event:Ge,node:(0,Xe.F)(Be.props)})},Je.onNodeDragEnter=function(Ge,Be){var we=Je.state,pe=we.expandedKeys,De=we.keyEntities,ze=we.dragChildrenKeys,Le=we.flattenNodes,nt=we.indent,Ut=Je.props,En=Ut.onDragEnter,rn=Ut.onExpand,vn=Ut.allowDrop,mi=Ut.direction,wi=Be.props,Ri=wi.pos,Wi=wi.eventKey,Mn=(0,Tt.Z)(Je),nr=Mn.dragNode;if(Je.currentMouseOverDroppableNodeKey!==Wi&&(Je.currentMouseOverDroppableNodeKey=Wi),!nr){Je.resetDragState();return}var Wr=(0,wn.OM)(Ge,nr,Be,nt,Je.dragStartMousePosition,vn,Le,De,pe,mi),Hr=Wr.dropPosition,Tr=Wr.dropLevelOffset,Fr=Wr.dropTargetKey,Yr=Wr.dropContainerKey,Kr=Wr.dropTargetPos,ar=Wr.dropAllowed,Co=Wr.dragOverNodeKey;if(ze.indexOf(Fr)!==-1||!ar){Je.resetDragState();return}if(Je.delayedDragEnterLogic||(Je.delayedDragEnterLogic={}),Object.keys(Je.delayedDragEnterLogic).forEach(function($n){clearTimeout(Je.delayedDragEnterLogic[$n])}),nr.props.eventKey!==Be.props.eventKey&&(Ge.persist(),Je.delayedDragEnterLogic[Ri]=window.setTimeout(function(){if(Je.state.draggingNodeKey!==null){var $n=(0,_e.Z)(pe),Ce=(0,yt.Z)(De,Be.props.eventKey);Ce&&(Ce.children||[]).length&&($n=(0,wn.L0)(pe,Be.props.eventKey)),"expandedKeys"in Je.props||Je.setExpandedKeys($n),rn==null||rn($n,{node:(0,Xe.F)(Be.props),expanded:!0,nativeEvent:Ge.nativeEvent})}},800)),nr.props.eventKey===Fr&&Tr===0){Je.resetDragState();return}Je.setState({dragOverNodeKey:Co,dropPosition:Hr,dropLevelOffset:Tr,dropTargetKey:Fr,dropContainerKey:Yr,dropTargetPos:Kr,dropAllowed:ar}),En==null||En({event:Ge,node:(0,Xe.F)(Be.props),expandedKeys:pe})},Je.onNodeDragOver=function(Ge,Be){var we=Je.state,pe=we.dragChildrenKeys,De=we.flattenNodes,ze=we.keyEntities,Le=we.expandedKeys,nt=we.indent,Ut=Je.props,En=Ut.onDragOver,rn=Ut.allowDrop,vn=Ut.direction,mi=(0,Tt.Z)(Je),wi=mi.dragNode;if(wi){var Ri=(0,wn.OM)(Ge,wi,Be,nt,Je.dragStartMousePosition,rn,De,ze,Le,vn),Wi=Ri.dropPosition,Mn=Ri.dropLevelOffset,nr=Ri.dropTargetKey,Wr=Ri.dropContainerKey,Hr=Ri.dropAllowed,Tr=Ri.dropTargetPos,Fr=Ri.dragOverNodeKey;pe.indexOf(nr)!==-1||!Hr||(wi.props.eventKey===nr&&Mn===0?Je.state.dropPosition===null&&Je.state.dropLevelOffset===null&&Je.state.dropTargetKey===null&&Je.state.dropContainerKey===null&&Je.state.dropTargetPos===null&&Je.state.dropAllowed===!1&&Je.state.dragOverNodeKey===null||Je.resetDragState():Wi===Je.state.dropPosition&&Mn===Je.state.dropLevelOffset&&nr===Je.state.dropTargetKey&&Wr===Je.state.dropContainerKey&&Tr===Je.state.dropTargetPos&&Hr===Je.state.dropAllowed&&Fr===Je.state.dragOverNodeKey||Je.setState({dropPosition:Wi,dropLevelOffset:Mn,dropTargetKey:nr,dropContainerKey:Wr,dropTargetPos:Tr,dropAllowed:Hr,dragOverNodeKey:Fr}),En==null||En({event:Ge,node:(0,Xe.F)(Be.props)}))}},Je.onNodeDragLeave=function(Ge,Be){Je.currentMouseOverDroppableNodeKey===Be.props.eventKey&&!Ge.currentTarget.contains(Ge.relatedTarget)&&(Je.resetDragState(),Je.currentMouseOverDroppableNodeKey=null);var we=Je.props.onDragLeave;we==null||we({event:Ge,node:(0,Xe.F)(Be.props)})},Je.onWindowDragEnd=function(Ge){Je.onNodeDragEnd(Ge,null,!0),window.removeEventListener("dragend",Je.onWindowDragEnd)},Je.onNodeDragEnd=function(Ge,Be){var we=Je.props.onDragEnd;Je.setState({dragOverNodeKey:null}),Je.cleanDragState(),we==null||we({event:Ge,node:(0,Xe.F)(Be.props)}),Je.dragNode=null,window.removeEventListener("dragend",Je.onWindowDragEnd)},Je.onNodeDrop=function(Ge,Be){var we,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,De=Je.state,ze=De.dragChildrenKeys,Le=De.dropPosition,nt=De.dropTargetKey,Ut=De.dropTargetPos,En=De.dropAllowed;if(En){var rn=Je.props.onDrop;if(Je.setState({dragOverNodeKey:null}),Je.cleanDragState(),nt!==null){var vn=(0,Rt.Z)((0,Rt.Z)({},(0,Xe.H8)(nt,Je.getTreeNodeRequiredProps())),{},{active:((we=Je.getActiveItem())===null||we===void 0?void 0:we.key)===nt,data:(0,yt.Z)(Je.state.keyEntities,nt).node}),mi=ze.indexOf(nt)!==-1;(0,te.ZP)(!mi,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var wi=(0,wn.yx)(Ut),Ri={event:Ge,node:(0,Xe.F)(vn),dragNode:Je.dragNode?(0,Xe.F)(Je.dragNode.props):null,dragNodesKeys:[Je.dragNode.props.eventKey].concat(ze),dropToGap:Le!==0,dropPosition:Le+Number(wi[wi.length-1])};pe||rn==null||rn(Ri),Je.dragNode=null}}},Je.cleanDragState=function(){var Ge=Je.state.draggingNodeKey;Ge!==null&&Je.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Je.dragStartMousePosition=null,Je.currentMouseOverDroppableNodeKey=null},Je.triggerExpandActionExpand=function(Ge,Be){var we=Je.state,pe=we.expandedKeys,De=we.flattenNodes,ze=Be.expanded,Le=Be.key,nt=Be.isLeaf;if(!(nt||Ge.shiftKey||Ge.metaKey||Ge.ctrlKey)){var Ut=De.filter(function(rn){return rn.key===Le})[0],En=(0,Xe.F)((0,Rt.Z)((0,Rt.Z)({},(0,Xe.H8)(Le,Je.getTreeNodeRequiredProps())),{},{data:Ut.data}));Je.setExpandedKeys(ze?(0,wn._5)(pe,Le):(0,wn.L0)(pe,Le)),Je.onNodeExpand(Ge,En)}},Je.onNodeClick=function(Ge,Be){var we=Je.props,pe=we.onClick,De=we.expandAction;De==="click"&&Je.triggerExpandActionExpand(Ge,Be),pe==null||pe(Ge,Be)},Je.onNodeDoubleClick=function(Ge,Be){var we=Je.props,pe=we.onDoubleClick,De=we.expandAction;De==="doubleClick"&&Je.triggerExpandActionExpand(Ge,Be),pe==null||pe(Ge,Be)},Je.onNodeSelect=function(Ge,Be){var we=Je.state.selectedKeys,pe=Je.state,De=pe.keyEntities,ze=pe.fieldNames,Le=Je.props,nt=Le.onSelect,Ut=Le.multiple,En=Be.selected,rn=Be[ze.key],vn=!En;vn?Ut?we=(0,wn.L0)(we,rn):we=[rn]:we=(0,wn._5)(we,rn);var mi=we.map(function(wi){var Ri=(0,yt.Z)(De,wi);return Ri?Ri.node:null}).filter(function(wi){return wi});Je.setUncontrolledState({selectedKeys:we}),nt==null||nt(we,{event:"select",selected:vn,node:Be,selectedNodes:mi,nativeEvent:Ge.nativeEvent})},Je.onNodeCheck=function(Ge,Be,we){var pe=Je.state,De=pe.keyEntities,ze=pe.checkedKeys,Le=pe.halfCheckedKeys,nt=Je.props,Ut=nt.checkStrictly,En=nt.onCheck,rn=Be.key,vn,mi={event:"check",node:Be,checked:we,nativeEvent:Ge.nativeEvent};if(Ut){var wi=we?(0,wn.L0)(ze,rn):(0,wn._5)(ze,rn),Ri=(0,wn._5)(Le,rn);vn={checked:wi,halfChecked:Ri},mi.checkedNodes=wi.map(function(Tr){return(0,yt.Z)(De,Tr)}).filter(function(Tr){return Tr}).map(function(Tr){return Tr.node}),Je.setUncontrolledState({checkedKeys:wi})}else{var Wi=(0,Kn.S)([].concat((0,_e.Z)(ze),[rn]),!0,De),Mn=Wi.checkedKeys,nr=Wi.halfCheckedKeys;if(!we){var Wr=new Set(Mn);Wr.delete(rn);var Hr=(0,Kn.S)(Array.from(Wr),{checked:!1,halfCheckedKeys:nr},De);Mn=Hr.checkedKeys,nr=Hr.halfCheckedKeys}vn=Mn,mi.checkedNodes=[],mi.checkedNodesPositions=[],mi.halfCheckedKeys=nr,Mn.forEach(function(Tr){var Fr=(0,yt.Z)(De,Tr);if(Fr){var Yr=Fr.node,Kr=Fr.pos;mi.checkedNodes.push(Yr),mi.checkedNodesPositions.push({node:Yr,pos:Kr})}}),Je.setUncontrolledState({checkedKeys:Mn},!1,{halfCheckedKeys:nr})}En==null||En(vn,mi)},Je.onNodeLoad=function(Ge){var Be=Ge.key,we=new Promise(function(pe,De){Je.setState(function(ze){var Le=ze.loadedKeys,nt=Le===void 0?[]:Le,Ut=ze.loadingKeys,En=Ut===void 0?[]:Ut,rn=Je.props,vn=rn.loadData,mi=rn.onLoad;if(!vn||nt.indexOf(Be)!==-1||En.indexOf(Be)!==-1)return null;var wi=vn(Ge);return wi.then(function(){var Ri=Je.state.loadedKeys,Wi=(0,wn.L0)(Ri,Be);mi==null||mi(Wi,{event:"load",node:Ge}),Je.setUncontrolledState({loadedKeys:Wi}),Je.setState(function(Mn){return{loadingKeys:(0,wn._5)(Mn.loadingKeys,Be)}}),pe()}).catch(function(Ri){if(Je.setState(function(Mn){return{loadingKeys:(0,wn._5)(Mn.loadingKeys,Be)}}),Je.loadingRetryTimes[Be]=(Je.loadingRetryTimes[Be]||0)+1,Je.loadingRetryTimes[Be]>=Jn){var Wi=Je.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Je.setUncontrolledState({loadedKeys:(0,wn.L0)(Wi,Be)}),pe()}De(Ri)}),{loadingKeys:(0,wn.L0)(En,Be)}})});return we.catch(function(){}),we},Je.onNodeMouseEnter=function(Ge,Be){var we=Je.props.onMouseEnter;we==null||we({event:Ge,node:Be})},Je.onNodeMouseLeave=function(Ge,Be){var we=Je.props.onMouseLeave;we==null||we({event:Ge,node:Be})},Je.onNodeContextMenu=function(Ge,Be){var we=Je.props.onRightClick;we&&(Ge.preventDefault(),we({event:Ge,node:Be}))},Je.onFocus=function(){var Ge=Je.props.onFocus;Je.setState({focused:!0});for(var Be=arguments.length,we=new Array(Be),pe=0;pe<Be;pe++)we[pe]=arguments[pe];Ge==null||Ge.apply(void 0,we)},Je.onBlur=function(){var Ge=Je.props.onBlur;Je.setState({focused:!1}),Je.onActiveChange(null);for(var Be=arguments.length,we=new Array(Be),pe=0;pe<Be;pe++)we[pe]=arguments[pe];Ge==null||Ge.apply(void 0,we)},Je.getTreeNodeRequiredProps=function(){var Ge=Je.state,Be=Ge.expandedKeys,we=Ge.selectedKeys,pe=Ge.loadedKeys,De=Ge.loadingKeys,ze=Ge.checkedKeys,Le=Ge.halfCheckedKeys,nt=Ge.dragOverNodeKey,Ut=Ge.dropPosition,En=Ge.keyEntities;return{expandedKeys:Be||[],selectedKeys:we||[],loadedKeys:pe||[],loadingKeys:De||[],checkedKeys:ze||[],halfCheckedKeys:Le||[],dragOverNodeKey:nt,dropPosition:Ut,keyEntities:En}},Je.setExpandedKeys=function(Ge){var Be=Je.state,we=Be.treeData,pe=Be.fieldNames,De=(0,Xe.oH)(we,Ge,pe);Je.setUncontrolledState({expandedKeys:Ge,flattenNodes:De},!0)},Je.onNodeExpand=function(Ge,Be){var we=Je.state.expandedKeys,pe=Je.state,De=pe.listChanging,ze=pe.fieldNames,Le=Je.props,nt=Le.onExpand,Ut=Le.loadData,En=Be.expanded,rn=Be[ze.key];if(!De){var vn=we.indexOf(rn),mi=!En;if((0,te.ZP)(En&&vn!==-1||!En&&vn===-1,"Expand state not sync with index check"),mi?we=(0,wn.L0)(we,rn):we=(0,wn._5)(we,rn),Je.setExpandedKeys(we),nt==null||nt(we,{node:Be,expanded:mi,nativeEvent:Ge.nativeEvent}),mi&&Ut){var wi=Je.onNodeLoad(Be);wi&&wi.then(function(){var Ri=(0,Xe.oH)(Je.state.treeData,we,ze);Je.setUncontrolledState({flattenNodes:Ri})}).catch(function(){var Ri=Je.state.expandedKeys,Wi=(0,wn._5)(Ri,rn);Je.setExpandedKeys(Wi)})}}},Je.onListChangeStart=function(){Je.setUncontrolledState({listChanging:!0})},Je.onListChangeEnd=function(){setTimeout(function(){Je.setUncontrolledState({listChanging:!1})})},Je.onActiveChange=function(Ge){var Be=Je.state.activeKey,we=Je.props.onActiveChange;Be!==Ge&&(Je.setState({activeKey:Ge}),Ge!==null&&Je.scrollTo({key:Ge}),we==null||we(Ge))},Je.getActiveItem=function(){var Ge=Je.state,Be=Ge.activeKey,we=Ge.flattenNodes;return Be===null?null:we.find(function(pe){var De=pe.key;return De===Be})||null},Je.offsetActiveKey=function(Ge){var Be=Je.state,we=Be.flattenNodes,pe=Be.activeKey,De=we.findIndex(function(nt){var Ut=nt.key;return Ut===pe});De===-1&&Ge<0&&(De=we.length),De=(De+Ge+we.length)%we.length;var ze=we[De];if(ze){var Le=ze.key;Je.onActiveChange(Le)}else Je.onActiveChange(null)},Je.onKeyDown=function(Ge){var Be=Je.state,we=Be.activeKey,pe=Be.expandedKeys,De=Be.checkedKeys,ze=Be.fieldNames,Le=Je.props,nt=Le.onKeyDown,Ut=Le.checkable,En=Le.selectable;switch(Ge.which){case wt.Z.UP:{Je.offsetActiveKey(-1),Ge.preventDefault();break}case wt.Z.DOWN:{Je.offsetActiveKey(1),Ge.preventDefault();break}}var rn=Je.getActiveItem();if(rn&&rn.data){var vn=Je.getTreeNodeRequiredProps(),mi=rn.data.isLeaf===!1||!!(rn.data[ze.children]||[]).length,wi=(0,Xe.F)((0,Rt.Z)((0,Rt.Z)({},(0,Xe.H8)(we,vn)),{},{data:rn.data,active:!0}));switch(Ge.which){case wt.Z.LEFT:{mi&&pe.includes(we)?Je.onNodeExpand({},wi):rn.parent&&Je.onActiveChange(rn.parent.key),Ge.preventDefault();break}case wt.Z.RIGHT:{mi&&!pe.includes(we)?Je.onNodeExpand({},wi):rn.children&&rn.children.length&&Je.onActiveChange(rn.children[0].key),Ge.preventDefault();break}case wt.Z.ENTER:case wt.Z.SPACE:{Ut&&!wi.disabled&&wi.checkable!==!1&&!wi.disableCheckbox?Je.onNodeCheck({},wi,!De.includes(we)):!Ut&&En&&!wi.disabled&&wi.selectable!==!1&&Je.onNodeSelect({},wi);break}}}nt==null||nt(Ge)},Je.setUncontrolledState=function(Ge){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Je.destroyed){var pe=!1,De=!0,ze={};Object.keys(Ge).forEach(function(Le){if(Le in Je.props){De=!1;return}pe=!0,ze[Le]=Ge[Le]}),pe&&(!Be||De)&&Je.setState((0,Rt.Z)((0,Rt.Z)({},ze),we))}},Je.scrollTo=function(Ge){Je.listRef.current.scrollTo(Ge)},Je}return(0,ke.Z)(ft,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Gt=this.props.activeKey;Gt!==void 0&&Gt!==this.state.activeKey&&(this.setState({activeKey:Gt}),Gt!==null&&this.scrollTo({key:Gt}))}},{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 Gt,At=this.state,lt=At.focused,Ge=At.flattenNodes,Be=At.keyEntities,we=At.draggingNodeKey,pe=At.activeKey,De=At.dropLevelOffset,ze=At.dropContainerKey,Le=At.dropTargetKey,nt=At.dropPosition,Ut=At.dragOverNodeKey,En=At.indent,rn=this.props,vn=rn.prefixCls,mi=rn.className,wi=rn.style,Ri=rn.showLine,Wi=rn.focusable,Mn=rn.tabIndex,nr=Mn===void 0?0:Mn,Wr=rn.selectable,Hr=rn.showIcon,Tr=rn.icon,Fr=rn.switcherIcon,Yr=rn.draggable,Kr=rn.checkable,ar=rn.checkStrictly,Co=rn.disabled,$n=rn.motion,Ce=rn.loadData,hi=rn.filterTreeNode,ki=rn.height,un=rn.itemHeight,Wn=rn.virtual,li=rn.titleRender,fn=rn.dropIndicatorRender,on=rn.onContextMenu,mt=rn.onScroll,Pt=rn.direction,bt=rn.rootClassName,tt=rn.rootStyle,qt=(0,Me.Z)(this.props,{aria:!0,data:!0}),dn;return Yr&&((0,He.Z)(Yr)==="object"?dn=Yr:typeof Yr=="function"?dn={nodeDraggable:Yr}:dn={}),ne.createElement(ce.k.Provider,{value:{prefixCls:vn,selectable:Wr,showIcon:Hr,icon:Tr,switcherIcon:Fr,draggable:dn,draggingNodeKey:we,checkable:Kr,checkStrictly:ar,disabled:Co,keyEntities:Be,dropLevelOffset:De,dropContainerKey:ze,dropTargetKey:Le,dropPosition:nt,dragOverNodeKey:Ut,indent:En,direction:Pt,dropIndicatorRender:fn,loadData:Ce,filterTreeNode:hi,titleRender:li,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:ct()(vn,mi,bt,(Gt={},(0,Oe.Z)(Gt,"".concat(vn,"-show-line"),Ri),(0,Oe.Z)(Gt,"".concat(vn,"-focused"),lt),(0,Oe.Z)(Gt,"".concat(vn,"-active-focused"),pe!==null),Gt)),style:tt},ne.createElement(Bn,(0,Se.Z)({ref:this.listRef,prefixCls:vn,style:wi,data:Ge,disabled:Co,selectable:Wr,checkable:!!Kr,motion:$n,dragging:we!==null,height:ki,itemHeight:un,virtual:Wn,focusable:Wi,focused:lt,tabIndex:nr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:on,onScroll:mt},this.getTreeNodeRequiredProps(),qt))))}}],[{key:"getDerivedStateFromProps",value:function(Gt,At){var lt=At.prevProps,Ge={prevProps:Gt};function Be(Wi){return!lt&&Wi in Gt||lt&<[Wi]!==Gt[Wi]}var we,pe=At.fieldNames;if(Be("fieldNames")&&(pe=(0,Xe.w$)(Gt.fieldNames),Ge.fieldNames=pe),Be("treeData")?we=Gt.treeData:Be("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,Xe.zn)(Gt.children)),we){Ge.treeData=we;var De=(0,Xe.I8)(we,{fieldNames:pe});Ge.keyEntities=(0,Rt.Z)((0,Oe.Z)({},dt,Mt),De.keyEntities)}var ze=Ge.keyEntities||At.keyEntities;if(Be("expandedKeys")||lt&&Be("autoExpandParent"))Ge.expandedKeys=Gt.autoExpandParent||!lt&&Gt.defaultExpandParent?(0,wn.r7)(Gt.expandedKeys,ze):Gt.expandedKeys;else if(!lt&&Gt.defaultExpandAll){var Le=(0,Rt.Z)({},ze);delete Le[dt],Ge.expandedKeys=Object.keys(Le).map(function(Wi){return Le[Wi].key})}else!lt&&Gt.defaultExpandedKeys&&(Ge.expandedKeys=Gt.autoExpandParent||Gt.defaultExpandParent?(0,wn.r7)(Gt.defaultExpandedKeys,ze):Gt.defaultExpandedKeys);if(Ge.expandedKeys||delete Ge.expandedKeys,we||Ge.expandedKeys){var nt=(0,Xe.oH)(we||At.treeData,Ge.expandedKeys||At.expandedKeys,pe);Ge.flattenNodes=nt}if(Gt.selectable&&(Be("selectedKeys")?Ge.selectedKeys=(0,wn.BT)(Gt.selectedKeys,Gt):!lt&&Gt.defaultSelectedKeys&&(Ge.selectedKeys=(0,wn.BT)(Gt.defaultSelectedKeys,Gt))),Gt.checkable){var Ut;if(Be("checkedKeys")?Ut=(0,wn.E6)(Gt.checkedKeys)||{}:!lt&&Gt.defaultCheckedKeys?Ut=(0,wn.E6)(Gt.defaultCheckedKeys)||{}:we&&(Ut=(0,wn.E6)(Gt.checkedKeys)||{checkedKeys:At.checkedKeys,halfCheckedKeys:At.halfCheckedKeys}),Ut){var En=Ut,rn=En.checkedKeys,vn=rn===void 0?[]:rn,mi=En.halfCheckedKeys,wi=mi===void 0?[]:mi;if(!Gt.checkStrictly){var Ri=(0,Kn.S)(vn,!0,ze);vn=Ri.checkedKeys,wi=Ri.halfCheckedKeys}Ge.checkedKeys=vn,Ge.halfCheckedKeys=wi}}return Be("loadedKeys")&&(Ge.loadedKeys=Gt.loadedKeys),Ge}}]),ft}(ne.Component);bn.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},bn.TreeNode=We.Z;var ci=bn,Tn=ci},35654:function(Rn,Fn,ye){"use strict";ye.d(Fn,{BT:function(){return ne},E6:function(){return ge},L0:function(){return et},OM:function(){return te},_5:function(){return Lt},r7:function(){return ve},wA:function(){return ct},yx:function(){return gt}});var Se=ye(26390),Oe=ye(80665),He=ye(51395),Rt=ye(59301),_e=ye(39417),vt=ye(67841),ke=ye(71430),Tt=null;function Lt(be,Fe){if(!be)return[];var Pe=be.slice(),Ie=Pe.indexOf(Fe);return Ie>=0&&Pe.splice(Ie,1),Pe}function et(be,Fe){var Pe=(be||[]).slice();return Pe.indexOf(Fe)===-1&&Pe.push(Fe),Pe}function gt(be){return be.split("-")}function ct(be,Fe){var Pe=[],Ie=(0,vt.Z)(Fe,be);function We(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ke.forEach(function(Xe){var ht=Xe.key,Ve=Xe.children;Pe.push(ht),We(Ve)})}return We(Ie.children),Pe}function wt(be){if(be.parent){var Fe=gt(be.pos);return Number(Fe[Fe.length-1])===be.parent.children.length-1}return!1}function Me(be){var Fe=gt(be.pos);return Number(Fe[Fe.length-1])===0}function te(be,Fe,Pe,Ie,We,Ke,Xe,ht,Ve,Nt){var qe,Ht=be.clientX,Zt=be.clientY,Yt=be.target.getBoundingClientRect(),Ot=Yt.top,Qt=Yt.height,dt=(Nt==="rtl"?-1:1)*(((We==null?void 0:We.x)||0)-Ht),Re=(dt-12)/Ie,Mt=(0,vt.Z)(ht,Pe.props.eventKey);if(Zt<Ot+Qt/2){var Pn=Xe.findIndex(function(Tn){return Tn.key===Mt.key}),mn=Pn<=0?0:Pn-1,kt=Xe[mn].key;Mt=(0,vt.Z)(ht,kt)}var _t=Mt.key,ln=Mt,Bn=Mt.key,wn=0,Kn=0;if(!Ve.includes(_t))for(var yt=0;yt<Re&&wt(Mt);yt+=1)Mt=Mt.parent,Kn+=1;var Jn=Fe.props.data,bn=Mt.node,ci=!0;return Me(Mt)&&Mt.level===0&&Zt<Ot+Qt/2&&Ke({dragNode:Jn,dropNode:bn,dropPosition:-1})&&Mt.key===Pe.props.eventKey?wn=-1:(ln.children||[]).length&&Ve.includes(Bn)?Ke({dragNode:Jn,dropNode:bn,dropPosition:0})?wn=0:ci=!1:Kn===0?Re>-1.5?Ke({dragNode:Jn,dropNode:bn,dropPosition:1})?wn=1:ci=!1:Ke({dragNode:Jn,dropNode:bn,dropPosition:0})?wn=0:Ke({dragNode:Jn,dropNode:bn,dropPosition:1})?wn=1:ci=!1:Ke({dragNode:Jn,dropNode:bn,dropPosition:1})?wn=1:ci=!1,{dropPosition:wn,dropLevelOffset:Kn,dropTargetKey:Mt.key,dropTargetPos:Mt.pos,dragOverNodeKey:Bn,dropContainerKey:wn===0?null:((qe=Mt.parent)===null||qe===void 0?void 0:qe.key)||null,dropAllowed:ci}}function ne(be,Fe){if(be){var Pe=Fe.multiple;return Pe?be.slice():be.length?[be[0]]:be}}var ce=function(Fe){return Fe};function se(be,Fe){if(!be)return[];var Pe=Fe||{},Ie=Pe.processProps,We=Ie===void 0?ce:Ie,Ke=Array.isArray(be)?be:[be];return Ke.map(function(Xe){var ht=Xe.children,Ve=_objectWithoutProperties(Xe,Tt),Nt=se(ht,Fe);return React.createElement(TreeNode,_extends({key:Ve.key},We(Ve)),Nt)})}function ge(be){if(!be)return null;var Fe;if(Array.isArray(be))Fe={checkedKeys:be,halfCheckedKeys:void 0};else if((0,Oe.Z)(be)==="object")Fe={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,He.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Fe}function ve(be,Fe){var Pe=new Set;function Ie(We){if(!Pe.has(We)){var Ke=(0,vt.Z)(Fe,We);if(Ke){Pe.add(We);var Xe=Ke.parent,ht=Ke.node;ht.disabled||Xe&&Ie(Xe.key)}}}return(be||[]).forEach(function(We){Ie(We)}),(0,Se.Z)(Pe)}},90782:function(Rn,Fn,ye){"use strict";ye.d(Fn,{S:function(){return ke}});var Se=ye(51395),Oe=ye(67841);function He(Tt,Lt){var et=new Set;return Tt.forEach(function(gt){Lt.has(gt)||et.add(gt)}),et}function Rt(Tt){var Lt=Tt||{},et=Lt.disabled,gt=Lt.disableCheckbox,ct=Lt.checkable;return!!(et||gt)||ct===!1}function _e(Tt,Lt,et,gt){for(var ct=new Set(Tt),wt=new Set,Me=0;Me<=et;Me+=1){var te=Lt.get(Me)||new Set;te.forEach(function(ge){var ve=ge.key,be=ge.node,Fe=ge.children,Pe=Fe===void 0?[]:Fe;ct.has(ve)&&!gt(be)&&Pe.filter(function(Ie){return!gt(Ie.node)}).forEach(function(Ie){ct.add(Ie.key)})})}for(var ne=new Set,ce=et;ce>=0;ce-=1){var se=Lt.get(ce)||new Set;se.forEach(function(ge){var ve=ge.parent,be=ge.node;if(!(gt(be)||!ge.parent||ne.has(ge.parent.key))){if(gt(ge.parent.node)){ne.add(ve.key);return}var Fe=!0,Pe=!1;(ve.children||[]).filter(function(Ie){return!gt(Ie.node)}).forEach(function(Ie){var We=Ie.key,Ke=ct.has(We);Fe&&!Ke&&(Fe=!1),!Pe&&(Ke||wt.has(We))&&(Pe=!0)}),Fe&&ct.add(ve.key),Pe&&wt.add(ve.key),ne.add(ve.key)}})}return{checkedKeys:Array.from(ct),halfCheckedKeys:Array.from(He(wt,ct))}}function vt(Tt,Lt,et,gt,ct){for(var wt=new Set(Tt),Me=new Set(Lt),te=0;te<=gt;te+=1){var ne=et.get(te)||new Set;ne.forEach(function(ve){var be=ve.key,Fe=ve.node,Pe=ve.children,Ie=Pe===void 0?[]:Pe;!wt.has(be)&&!Me.has(be)&&!ct(Fe)&&Ie.filter(function(We){return!ct(We.node)}).forEach(function(We){wt.delete(We.key)})})}Me=new Set;for(var ce=new Set,se=gt;se>=0;se-=1){var ge=et.get(se)||new Set;ge.forEach(function(ve){var be=ve.parent,Fe=ve.node;if(!(ct(Fe)||!ve.parent||ce.has(ve.parent.key))){if(ct(ve.parent.node)){ce.add(be.key);return}var Pe=!0,Ie=!1;(be.children||[]).filter(function(We){return!ct(We.node)}).forEach(function(We){var Ke=We.key,Xe=wt.has(Ke);Pe&&!Xe&&(Pe=!1),!Ie&&(Xe||Me.has(Ke))&&(Ie=!0)}),Pe||wt.delete(be.key),Ie&&Me.add(be.key),ce.add(be.key)}})}return{checkedKeys:Array.from(wt),halfCheckedKeys:Array.from(He(Me,wt))}}function ke(Tt,Lt,et,gt){var ct=[],wt;gt?wt=gt:wt=Rt;var Me=new Set(Tt.filter(function(se){var ge=!!(0,Oe.Z)(et,se);return ge||ct.push(se),ge})),te=new Map,ne=0;Object.keys(et).forEach(function(se){var ge=et[se],ve=ge.level,be=te.get(ve);be||(be=new Set,te.set(ve,be)),be.add(ge),ne=Math.max(ne,ve)}),(0,Se.ZP)(!ct.length,"Tree missing follow keys: ".concat(ct.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var ce;return Lt===!0?ce=_e(Me,te,ne,wt):ce=vt(Me,Lt.halfCheckedKeys,te,ne,wt),ce}},67841:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Se}});function Se(Oe,He){return Oe[He]}},71430:function(Rn,Fn,ye){"use strict";ye.d(Fn,{F:function(){return ve},H8:function(){return ge},I8:function(){return se},km:function(){return ct},oH:function(){return ne},w$:function(){return wt},zn:function(){return te}});var Se=ye(80665),Oe=ye(26390),He=ye(57259),Rt=ye(19149),_e=ye(38298),vt=ye(64002),ke=ye(51395),Tt=ye(67841),Lt=["children"];function et(be,Fe){return"".concat(be,"-").concat(Fe)}function gt(be){return be&&be.type&&be.type.isTreeNode}function ct(be,Fe){return be!=null?be:Fe}function wt(be){var Fe=be||{},Pe=Fe.title,Ie=Fe._title,We=Fe.key,Ke=Fe.children,Xe=Pe||"title";return{title:Xe,_title:Ie||[Xe],key:We||"key",children:Ke||"children"}}function Me(be,Fe){var Pe=new Map;function Ie(We){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(We||[]).forEach(function(Xe){var ht=Xe[Fe.key],Ve=Xe[Fe.children];warning(ht!=null,"Tree node must have a certain key: [".concat(Ke).concat(ht,"]"));var Nt=String(ht);warning(!Pe.has(Nt)||ht===null||ht===void 0,"Same 'key' exist in the Tree: ".concat(Nt)),Pe.set(Nt,!0),Ie(Ve,"".concat(Ke).concat(Nt," > "))})}Ie(be)}function te(be){function Fe(Pe){var Ie=(0,_e.Z)(Pe);return Ie.map(function(We){if(!gt(We))return(0,ke.ZP)(!We,"Tree/TreeNode can only accept TreeNode as children."),null;var Ke=We.key,Xe=We.props,ht=Xe.children,Ve=(0,Rt.Z)(Xe,Lt),Nt=(0,He.Z)({key:Ke},Ve),qe=Fe(ht);return qe.length&&(Nt.children=qe),Nt}).filter(function(We){return We})}return Fe(be)}function ne(be,Fe,Pe){var Ie=wt(Pe),We=Ie._title,Ke=Ie.key,Xe=Ie.children,ht=new Set(Fe===!0?[]:Fe),Ve=[];function Nt(qe){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return qe.map(function(Zt,Yt){for(var Ot=et(Ht?Ht.pos:"0",Yt),Qt=ct(Zt[Ke],Ot),dt,Re=0;Re<We.length;Re+=1){var Mt=We[Re];if(Zt[Mt]!==void 0){dt=Zt[Mt];break}}var Pn=(0,He.Z)((0,He.Z)({},(0,vt.Z)(Zt,[].concat((0,Oe.Z)(We),[Ke,Xe]))),{},{title:dt,key:Qt,parent:Ht,pos:Ot,children:null,data:Zt,isStart:[].concat((0,Oe.Z)(Ht?Ht.isStart:[]),[Yt===0]),isEnd:[].concat((0,Oe.Z)(Ht?Ht.isEnd:[]),[Yt===qe.length-1])});return Ve.push(Pn),Fe===!0||ht.has(Qt)?Pn.children=Nt(Zt[Xe]||[],Pn):Pn.children=[],Pn})}return Nt(be),Ve}function ce(be,Fe,Pe){var Ie={};(0,Se.Z)(Pe)==="object"?Ie=Pe:Ie={externalGetKey:Pe},Ie=Ie||{};var We=Ie,Ke=We.childrenPropName,Xe=We.externalGetKey,ht=We.fieldNames,Ve=wt(ht),Nt=Ve.key,qe=Ve.children,Ht=Ke||qe,Zt;Xe?typeof Xe=="string"?Zt=function(Qt){return Qt[Xe]}:typeof Xe=="function"&&(Zt=function(Qt){return Xe(Qt)}):Zt=function(Qt,dt){return ct(Qt[Nt],dt)};function Yt(Ot,Qt,dt,Re){var Mt=Ot?Ot[Ht]:be,Pn=Ot?et(dt.pos,Qt):"0",mn=Ot?[].concat((0,Oe.Z)(Re),[Ot]):[];if(Ot){var kt=Zt(Ot,Pn),_t={node:Ot,index:Qt,pos:Pn,key:kt,parentPos:dt.node?dt.pos:null,level:dt.level+1,nodes:mn};Fe(_t)}Mt&&Mt.forEach(function(ln,Bn){Yt(ln,Bn,{node:Ot,pos:Pn,level:dt?dt.level+1:-1},mn)})}Yt(null)}function se(be){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=Fe.initWrapper,Ie=Fe.processEntity,We=Fe.onProcessFinished,Ke=Fe.externalGetKey,Xe=Fe.childrenPropName,ht=Fe.fieldNames,Ve=arguments.length>2?arguments[2]:void 0,Nt=Ke||Ve,qe={},Ht={},Zt={posEntities:qe,keyEntities:Ht};return Pe&&(Zt=Pe(Zt)||Zt),ce(be,function(Yt){var Ot=Yt.node,Qt=Yt.index,dt=Yt.pos,Re=Yt.key,Mt=Yt.parentPos,Pn=Yt.level,mn=Yt.nodes,kt={node:Ot,nodes:mn,index:Qt,key:Re,pos:dt,level:Pn},_t=ct(Re,dt);qe[dt]=kt,Ht[_t]=kt,kt.parent=qe[Mt],kt.parent&&(kt.parent.children=kt.parent.children||[],kt.parent.children.push(kt)),Ie&&Ie(kt,Zt)},{externalGetKey:Nt,childrenPropName:Xe,fieldNames:ht}),We&&We(Zt),Zt}function ge(be,Fe){var Pe=Fe.expandedKeys,Ie=Fe.selectedKeys,We=Fe.loadedKeys,Ke=Fe.loadingKeys,Xe=Fe.checkedKeys,ht=Fe.halfCheckedKeys,Ve=Fe.dragOverNodeKey,Nt=Fe.dropPosition,qe=Fe.keyEntities,Ht=(0,Tt.Z)(qe,be),Zt={eventKey:be,expanded:Pe.indexOf(be)!==-1,selected:Ie.indexOf(be)!==-1,loaded:We.indexOf(be)!==-1,loading:Ke.indexOf(be)!==-1,checked:Xe.indexOf(be)!==-1,halfChecked:ht.indexOf(be)!==-1,pos:String(Ht?Ht.pos:""),dragOver:Ve===be&&Nt===0,dragOverGapTop:Ve===be&&Nt===-1,dragOverGapBottom:Ve===be&&Nt===1};return Zt}function ve(be){var Fe=be.data,Pe=be.expanded,Ie=be.selected,We=be.checked,Ke=be.loaded,Xe=be.loading,ht=be.halfChecked,Ve=be.dragOver,Nt=be.dragOverGapTop,qe=be.dragOverGapBottom,Ht=be.pos,Zt=be.active,Yt=be.eventKey,Ot=(0,He.Z)((0,He.Z)({},Fe),{},{expanded:Pe,selected:Ie,checked:We,loaded:Ke,loading:Xe,halfChecked:ht,dragOver:Ve,dragOverGapTop:Nt,dragOverGapBottom:qe,pos:Ht,active:Zt,key:Yt});return"props"in Ot||Object.defineProperty(Ot,"props",{get:function(){return(0,ke.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),Ot}},8178:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Oe}});var Se=ye(4676);function Oe(He,Rt,_e,vt){var ke=Se.unstable_batchedUpdates?function(Lt){Se.unstable_batchedUpdates(_e,Lt)}:_e;return He!=null&&He.addEventListener&&He.addEventListener(Rt,ke,vt),{remove:function(){He!=null&&He.removeEventListener&&He.removeEventListener(Rt,ke,vt)}}}},21783:function(Rn,Fn,ye){"use strict";ye.d(Fn,{g1:function(){return gt},os:function(){return wt}});var Se=/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]=Se.test(te)),Oe[te]?parseFloat(ne)||0:ne}function vt(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 ke(Me,te,ne){var ce=arguments.length;if(te=He[te]?"cssFloat"in Me.style?"cssFloat":"styleFloat":te,ce===3)return typeof ne=="number"&&Se.test(te)&&(ne="".concat(ne,"px")),Me.style[te]=ne,ne;for(var se in te)te.hasOwnProperty(se)&&ke(Me,se,te[se]);return Rt(Me)}function Tt(Me){return Me===document.body?document.documentElement.clientWidth:Me.offsetWidth}function Lt(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 gt(){var Me=document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight;return{width:Me,height:te}}function ct(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function wt(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)}}},24387:function(Rn,Fn,ye){"use strict";ye.d(Fn,{G:function(){return Rt}});var Se=ye(87746),Oe=function(vt){if((0,Se.Z)()&&window.document.documentElement){var ke=Array.isArray(vt)?vt:[vt],Tt=window.document.documentElement;return ke.some(function(Lt){return Lt in Tt.style})}return!1},He=function(vt,ke){if(!Oe(vt))return!1;var Tt=document.createElement("div"),Lt=Tt.style[vt];return Tt.style[vt]=ke,Tt.style[vt]!==Lt};function Rt(_e,vt){return!Array.isArray(_e)&&vt!==void 0?He(_e,vt):Oe(_e)}},21881:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return ci}});var Se=ye(5891),Oe=ye(80665),He=ye(57259),Rt=ye(80962),_e=ye(29043),vt=ye(19149),ke=ye(92310),Tt=ye.n(ke),Lt=ye(29301),et=ye(80764),gt=ye(28800),ct=ye(59301),wt=ye(4676),Me=ct.forwardRef(function(Tn,tn){var $t=Tn.height,ft=Tn.offsetY,Je=Tn.offsetX,Gt=Tn.children,At=Tn.prefixCls,lt=Tn.onInnerResize,Ge=Tn.innerProps,Be=Tn.rtl,we=Tn.extra,pe={},De={display:"flex",flexDirection:"column"};return ft!==void 0&&(pe={height:$t,position:"relative",overflow:"hidden"},De=(0,He.Z)((0,He.Z)({},De),{},(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({transform:"translateY(".concat(ft,"px)")},Be?"marginRight":"marginLeft",-Je),"position","absolute"),"left",0),"right",0),"top",0))),ct.createElement("div",{style:pe},ct.createElement(Lt.Z,{onResize:function(Le){var nt=Le.offsetHeight;nt&<&<()}},ct.createElement("div",(0,Se.Z)({style:De,className:Tt()((0,Rt.Z)({},"".concat(At,"-holder-inner"),At)),ref:tn},Ge),Gt,we)))});Me.displayName="Filler";var te=Me;function ne(Tn){var tn=Tn.children,$t=Tn.setRef,ft=ct.useCallback(function(Je){$t(Je)},[]);return ct.cloneElement(tn,{ref:ft})}function ce(Tn,tn,$t,ft,Je,Gt,At,lt){var Ge=lt.getKey;return Tn.slice(tn,$t+1).map(function(Be,we){var pe=tn+we,De=At(Be,pe,{style:{width:ft},offsetX:Je}),ze=Ge(Be);return ct.createElement(ne,{key:ze,setRef:function(nt){return Gt(Be,nt)}},De)})}function se(Tn,tn,$t,ft){var Je=$t-Tn,Gt=tn-$t,At=Math.min(Je,Gt)*2;if(ft<=At){var lt=Math.floor(ft/2);return ft%2?$t+lt+1:$t-lt}return Je>Gt?$t-(ft-Gt):$t+(ft-Je)}function ge(Tn,tn,$t){var ft=Tn.length,Je=tn.length,Gt,At;if(ft===0&&Je===0)return null;ft<Je?(Gt=Tn,At=tn):(Gt=tn,At=Tn);var lt={__EMPTY_ITEM__:!0};function Ge(Le){return Le!==void 0?$t(Le):lt}for(var Be=null,we=Math.abs(ft-Je)!==1,pe=0;pe<At.length;pe+=1){var De=Ge(Gt[pe]),ze=Ge(At[pe]);if(De!==ze){Be=pe,we=we||De!==Ge(At[pe+1]);break}}return Be===null?null:{index:Be,multiple:we}}function ve(Tn,tn,$t){var ft=ct.useState(Tn),Je=(0,_e.Z)(ft,2),Gt=Je[0],At=Je[1],lt=ct.useState(null),Ge=(0,_e.Z)(lt,2),Be=Ge[0],we=Ge[1];return ct.useEffect(function(){var pe=ge(Gt||[],Tn||[],tn);(pe==null?void 0:pe.index)!==void 0&&($t==null||$t(pe.index),we(Tn[pe.index])),At(Tn)},[Tn]),[Be]}var be=ye(23073),Fe=(typeof navigator=="undefined"?"undefined":(0,Oe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Pe=Fe,Ie=function(Tn,tn,$t,ft){var Je=(0,ct.useRef)(!1),Gt=(0,ct.useRef)(null);function At(){clearTimeout(Gt.current),Je.current=!0,Gt.current=setTimeout(function(){Je.current=!1},50)}var lt=(0,ct.useRef)({top:Tn,bottom:tn,left:$t,right:ft});return lt.current.top=Tn,lt.current.bottom=tn,lt.current.left=$t,lt.current.right=ft,function(Ge,Be){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,pe=Ge?Be<0&<.current.left||Be>0&<.current.right:Be<0&<.current.top||Be>0&<.current.bottom;return we&&pe?(clearTimeout(Gt.current),Je.current=!1):(!pe||Je.current)&&At(),!Je.current&&pe}};function We(Tn,tn,$t,ft,Je,Gt,At){var lt=(0,ct.useRef)(0),Ge=(0,ct.useRef)(null),Be=(0,ct.useRef)(null),we=(0,ct.useRef)(!1),pe=Ie(tn,$t,ft,Je);function De(rn,vn){if(be.Z.cancel(Ge.current),!pe(!1,vn)){var mi=rn;if(!mi._virtualHandled)mi._virtualHandled=!0;else return;lt.current+=vn,Be.current=vn,Pe||mi.preventDefault(),Ge.current=(0,be.Z)(function(){var wi=we.current?10:1;At(lt.current*wi,!1),lt.current=0})}}function ze(rn,vn){At(vn,!0),Pe||rn.preventDefault()}var Le=(0,ct.useRef)(null),nt=(0,ct.useRef)(null);function Ut(rn){if(Tn){be.Z.cancel(nt.current),nt.current=(0,be.Z)(function(){Le.current=null},2);var vn=rn.deltaX,mi=rn.deltaY,wi=rn.shiftKey,Ri=vn,Wi=mi;(Le.current==="sx"||!Le.current&&wi&&mi&&!vn)&&(Ri=mi,Wi=0,Le.current="sx");var Mn=Math.abs(Ri),nr=Math.abs(Wi);Le.current===null&&(Le.current=Gt&&Mn>nr?"x":"y"),Le.current==="y"?De(rn,Wi):ze(rn,Ri)}}function En(rn){Tn&&(we.current=rn.detail===Be.current)}return[Ut,En]}function Ke(Tn,tn,$t,ft){var Je=ct.useMemo(function(){return[new Map,[]]},[Tn,$t.id,ft]),Gt=(0,_e.Z)(Je,2),At=Gt[0],lt=Gt[1],Ge=function(we){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:we,De=At.get(we),ze=At.get(pe);if(De===void 0||ze===void 0)for(var Le=Tn.length,nt=lt.length;nt<Le;nt+=1){var Ut,En=Tn[nt],rn=tn(En);At.set(rn,nt);var vn=(Ut=$t.get(rn))!==null&&Ut!==void 0?Ut:ft;if(lt[nt]=(lt[nt-1]||0)+vn,rn===we&&(De=nt),rn===pe&&(ze=nt),De!==void 0&&ze!==void 0)break}return{top:lt[De-1]||0,bottom:lt[ze]}};return Ge}var Xe=ye(85899),ht=ye(79545),Ve=ye(68550),Nt=function(){function Tn(){(0,ht.Z)(this,Tn),(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,Ve.Z)(Tn,[{key:"set",value:function($t,ft){this.maps[$t]=ft,this.id+=1,this.diffKeys.add($t)}},{key:"get",value:function($t){return this.maps[$t]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Tn}(),qe=Nt;function Ht(Tn){var tn=parseFloat(Tn);return isNaN(tn)?0:tn}function Zt(Tn,tn,$t){var ft=ct.useState(0),Je=(0,_e.Z)(ft,2),Gt=Je[0],At=Je[1],lt=(0,ct.useRef)(new Map),Ge=(0,ct.useRef)(new qe),Be=(0,ct.useRef)(0);function we(){Be.current+=1}function pe(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;we();var Le=function(){var En=!1;lt.current.forEach(function(rn,vn){if(rn&&rn.offsetParent){var mi=(0,Xe.ZP)(rn),wi=mi.offsetHeight,Ri=getComputedStyle(mi),Wi=Ri.marginTop,Mn=Ri.marginBottom,nr=Ht(Wi),Wr=Ht(Mn),Hr=wi+nr+Wr;Ge.current.get(vn)!==Hr&&(Ge.current.set(vn,Hr),En=!0)}}),En&&At(function(rn){return rn+1})};if(ze)Le();else{Be.current+=1;var nt=Be.current;Promise.resolve().then(function(){nt===Be.current&&Le()})}}function De(ze,Le){var nt=Tn(ze),Ut=lt.current.get(nt);Le?(lt.current.set(nt,Le),pe()):lt.current.delete(nt),!Ut!=!Le&&(Le?tn==null||tn(ze):$t==null||$t(ze))}return(0,ct.useEffect)(function(){return we},[]),[De,pe,Ge.current,Gt]}var Yt=14/15;function Ot(Tn,tn,$t){var ft=(0,ct.useRef)(!1),Je=(0,ct.useRef)(0),Gt=(0,ct.useRef)(0),At=(0,ct.useRef)(null),lt=(0,ct.useRef)(null),Ge,Be=function(ze){if(ft.current){var Le=Math.ceil(ze.touches[0].pageX),nt=Math.ceil(ze.touches[0].pageY),Ut=Je.current-Le,En=Gt.current-nt,rn=Math.abs(Ut)>Math.abs(En);rn?Je.current=Le:Gt.current=nt;var vn=$t(rn,rn?Ut:En,!1,ze);vn&&ze.preventDefault(),clearInterval(lt.current),vn&&(lt.current=setInterval(function(){rn?Ut*=Yt:En*=Yt;var mi=Math.floor(rn?Ut:En);(!$t(rn,mi,!0)||Math.abs(mi)<=.1)&&clearInterval(lt.current)},16))}},we=function(){ft.current=!1,Ge()},pe=function(ze){Ge(),ze.touches.length===1&&!ft.current&&(ft.current=!0,Je.current=Math.ceil(ze.touches[0].pageX),Gt.current=Math.ceil(ze.touches[0].pageY),At.current=ze.target,At.current.addEventListener("touchmove",Be,{passive:!1}),At.current.addEventListener("touchend",we,{passive:!0}))};Ge=function(){At.current&&(At.current.removeEventListener("touchmove",Be),At.current.removeEventListener("touchend",we))},(0,gt.Z)(function(){return Tn&&tn.current.addEventListener("touchstart",pe,{passive:!0}),function(){var De;(De=tn.current)===null||De===void 0||De.removeEventListener("touchstart",pe),Ge(),clearInterval(lt.current)}},[Tn])}function Qt(Tn){return Math.floor(Math.pow(Tn,.5))}function dt(Tn,tn){var $t="touches"in Tn?Tn.touches[0]:Tn;return $t[tn?"pageX":"pageY"]-window[tn?"scrollX":"scrollY"]}function Re(Tn,tn,$t){ct.useEffect(function(){var ft=tn.current;if(Tn&&ft){var Je=!1,Gt,At,lt=function(){be.Z.cancel(Gt)},Ge=function De(){lt(),Gt=(0,be.Z)(function(){$t(At),De()})},Be=function(ze){var Le=ze;Le._virtualHandled||(Le._virtualHandled=!0,Je=!0)},we=function(){Je=!1,lt()},pe=function(ze){if(Je){var Le=dt(ze,!1),nt=ft.getBoundingClientRect(),Ut=nt.top,En=nt.bottom;if(Le<=Ut){var rn=Ut-Le;At=-Qt(rn),Ge()}else if(Le>=En){var vn=Le-En;At=Qt(vn),Ge()}else lt()}};return ft.addEventListener("mousedown",Be),ft.ownerDocument.addEventListener("mouseup",we),ft.ownerDocument.addEventListener("mousemove",pe),function(){ft.removeEventListener("mousedown",Be),ft.ownerDocument.removeEventListener("mouseup",we),ft.ownerDocument.removeEventListener("mousemove",pe),lt()}}},[Tn])}var Mt=10;function Pn(Tn,tn,$t,ft,Je,Gt,At,lt){var Ge=ct.useRef(),Be=ct.useState(null),we=(0,_e.Z)(Be,2),pe=we[0],De=we[1];return(0,gt.Z)(function(){if(pe&&pe.times<Mt){if(!Tn.current){De(function(Ce){return(0,He.Z)({},Ce)});return}Gt();var ze=pe.targetAlign,Le=pe.originAlign,nt=pe.index,Ut=pe.offset,En=Tn.current.clientHeight,rn=!1,vn=ze,mi=null;if(En){for(var wi=ze||Le,Ri=0,Wi=0,Mn=0,nr=Math.min(tn.length-1,nt),Wr=0;Wr<=nr;Wr+=1){var Hr=Je(tn[Wr]);Wi=Ri;var Tr=$t.get(Hr);Mn=Wi+(Tr===void 0?ft:Tr),Ri=Mn}for(var Fr=wi==="top"?Ut:En-Ut,Yr=nr;Yr>=0;Yr-=1){var Kr=Je(tn[Yr]),ar=$t.get(Kr);if(ar===void 0){rn=!0;break}if(Fr-=ar,Fr<=0)break}switch(wi){case"top":mi=Wi-Ut;break;case"bottom":mi=Mn-En+Ut;break;default:{var Co=Tn.current.scrollTop,$n=Co+En;Wi<Co?vn="top":Mn>$n&&(vn="bottom")}}mi!==null&&At(mi),mi!==pe.lastTop&&(rn=!0)}rn&&De((0,He.Z)((0,He.Z)({},pe),{},{times:pe.times+1,targetAlign:vn,lastTop:mi}))}},[pe,Tn.current]),function(ze){if(ze==null){lt();return}if(be.Z.cancel(Ge.current),typeof ze=="number")At(ze);else if(ze&&(0,Oe.Z)(ze)==="object"){var Le,nt=ze.align;"index"in ze?Le=ze.index:Le=tn.findIndex(function(rn){return Je(rn)===ze.key});var Ut=ze.offset,En=Ut===void 0?0:Ut;De({times:0,index:Le,offset:En,originAlign:nt})}}}var mn=ct.forwardRef(function(Tn,tn){var $t=Tn.prefixCls,ft=Tn.rtl,Je=Tn.scrollOffset,Gt=Tn.scrollRange,At=Tn.onStartMove,lt=Tn.onStopMove,Ge=Tn.onScroll,Be=Tn.horizontal,we=Tn.spinSize,pe=Tn.containerSize,De=Tn.style,ze=Tn.thumbStyle,Le=ct.useState(!1),nt=(0,_e.Z)(Le,2),Ut=nt[0],En=nt[1],rn=ct.useState(null),vn=(0,_e.Z)(rn,2),mi=vn[0],wi=vn[1],Ri=ct.useState(null),Wi=(0,_e.Z)(Ri,2),Mn=Wi[0],nr=Wi[1],Wr=!ft,Hr=ct.useRef(),Tr=ct.useRef(),Fr=ct.useState(!1),Yr=(0,_e.Z)(Fr,2),Kr=Yr[0],ar=Yr[1],Co=ct.useRef(),$n=function(){clearTimeout(Co.current),ar(!0),Co.current=setTimeout(function(){ar(!1)},3e3)},Ce=Gt-pe||0,hi=pe-we||0,ki=ct.useMemo(function(){if(Je===0||Ce===0)return 0;var tt=Je/Ce;return tt*hi},[Je,Ce,hi]),un=function(qt){qt.stopPropagation(),qt.preventDefault()},Wn=ct.useRef({top:ki,dragging:Ut,pageY:mi,startTop:Mn});Wn.current={top:ki,dragging:Ut,pageY:mi,startTop:Mn};var li=function(qt){En(!0),wi(dt(qt,Be)),nr(Wn.current.top),At(),qt.stopPropagation(),qt.preventDefault()};ct.useEffect(function(){var tt=function(Ye){Ye.preventDefault()},qt=Hr.current,dn=Tr.current;return qt.addEventListener("touchstart",tt,{passive:!1}),dn.addEventListener("touchstart",li,{passive:!1}),function(){qt.removeEventListener("touchstart",tt),dn.removeEventListener("touchstart",li)}},[]);var fn=ct.useRef();fn.current=Ce;var on=ct.useRef();on.current=hi,ct.useEffect(function(){if(Ut){var tt,qt=function(Ye){var an=Wn.current,Bt=an.dragging,jn=an.pageY,cn=an.startTop;be.Z.cancel(tt);var Et=Hr.current.getBoundingClientRect(),xn=pe/(Be?Et.width:Et.height);if(Bt){var Qn=(dt(Ye,Be)-jn)*xn,Un=cn;!Wr&&Be?Un-=Qn:Un+=Qn;var zt=fn.current,Sn=on.current,Ci=Sn?Un/Sn:0,Si=Math.ceil(Ci*zt);Si=Math.max(Si,0),Si=Math.min(Si,zt),tt=(0,be.Z)(function(){Ge(Si,Be)})}},dn=function(){En(!1),lt()};return window.addEventListener("mousemove",qt,{passive:!0}),window.addEventListener("touchmove",qt,{passive:!0}),window.addEventListener("mouseup",dn,{passive:!0}),window.addEventListener("touchend",dn,{passive:!0}),function(){window.removeEventListener("mousemove",qt),window.removeEventListener("touchmove",qt),window.removeEventListener("mouseup",dn),window.removeEventListener("touchend",dn),be.Z.cancel(tt)}}},[Ut]),ct.useEffect(function(){return $n(),function(){clearTimeout(Co.current)}},[Je]),ct.useImperativeHandle(tn,function(){return{delayHidden:$n}});var mt="".concat($t,"-scrollbar"),Pt={position:"absolute",visibility:Kr?null:"hidden"},bt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Be?(Pt.height=8,Pt.left=0,Pt.right=0,Pt.bottom=0,bt.height="100%",bt.width=we,Wr?bt.left=ki:bt.right=ki):(Pt.width=8,Pt.top=0,Pt.bottom=0,Wr?Pt.right=0:Pt.left=0,bt.width="100%",bt.height=we,bt.top=ki),ct.createElement("div",{ref:Hr,className:Tt()(mt,(0,Rt.Z)((0,Rt.Z)((0,Rt.Z)({},"".concat(mt,"-horizontal"),Be),"".concat(mt,"-vertical"),!Be),"".concat(mt,"-visible"),Kr)),style:(0,He.Z)((0,He.Z)({},Pt),De),onMouseDown:un,onMouseMove:$n},ct.createElement("div",{ref:Tr,className:Tt()("".concat(mt,"-thumb"),(0,Rt.Z)({},"".concat(mt,"-thumb-moving"),Ut)),style:(0,He.Z)((0,He.Z)({},bt),ze),onMouseDown:li}))}),kt=mn,_t=20;function ln(){var Tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$t=Tn/tn*Tn;return isNaN($t)&&($t=0),$t=Math.max($t,_t),Math.floor($t)}var Bn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],wn=[],Kn={overflowY:"auto",overflowAnchor:"none"};function yt(Tn,tn){var $t=Tn.prefixCls,ft=$t===void 0?"rc-virtual-list":$t,Je=Tn.className,Gt=Tn.height,At=Tn.itemHeight,lt=Tn.fullHeight,Ge=lt===void 0?!0:lt,Be=Tn.style,we=Tn.data,pe=Tn.children,De=Tn.itemKey,ze=Tn.virtual,Le=Tn.direction,nt=Tn.scrollWidth,Ut=Tn.component,En=Ut===void 0?"div":Ut,rn=Tn.onScroll,vn=Tn.onVirtualScroll,mi=Tn.onVisibleChange,wi=Tn.innerProps,Ri=Tn.extraRender,Wi=Tn.styles,Mn=(0,vt.Z)(Tn,Bn),nr=ct.useCallback(function(On){return typeof De=="function"?De(On):On==null?void 0:On[De]},[De]),Wr=Zt(nr,null,null),Hr=(0,_e.Z)(Wr,4),Tr=Hr[0],Fr=Hr[1],Yr=Hr[2],Kr=Hr[3],ar=!!(ze!==!1&&Gt&&At),Co=ct.useMemo(function(){return Object.values(Yr.maps).reduce(function(On,Wt){return On+Wt},0)},[Yr.id,Yr.maps]),$n=ar&&we&&(Math.max(At*we.length,Co)>Gt||!!nt),Ce=Le==="rtl",hi=Tt()(ft,(0,Rt.Z)({},"".concat(ft,"-rtl"),Ce),Je),ki=we||wn,un=(0,ct.useRef)(),Wn=(0,ct.useRef)(),li=(0,ct.useRef)(),fn=(0,ct.useState)(0),on=(0,_e.Z)(fn,2),mt=on[0],Pt=on[1],bt=(0,ct.useState)(0),tt=(0,_e.Z)(bt,2),qt=tt[0],dn=tt[1],xt=(0,ct.useState)(!1),Ye=(0,_e.Z)(xt,2),an=Ye[0],Bt=Ye[1],jn=function(){Bt(!0)},cn=function(){Bt(!1)},Et={getKey:nr};function xn(On){Pt(function(Wt){var Nn;typeof On=="function"?Nn=On(Wt):Nn=On;var ai=Er(Nn);return un.current.scrollTop=ai,ai})}var Qn=(0,ct.useRef)({start:0,end:ki.length}),Un=(0,ct.useRef)(),zt=ve(ki,nr),Sn=(0,_e.Z)(zt,1),Ci=Sn[0];Un.current=Ci;var Si=ct.useMemo(function(){if(!ar)return{scrollHeight:void 0,start:0,end:ki.length-1,offset:void 0};if(!$n){var On;return{scrollHeight:((On=Wn.current)===null||On===void 0?void 0:On.offsetHeight)||0,start:0,end:ki.length-1,offset:void 0}}for(var Wt=0,Nn,ai,qn,Oi=ki.length,Bi=0;Bi<Oi;Bi+=1){var pi=ki[Bi],Gi=nr(pi),zn=Yr.get(Gi),_r=Wt+(zn===void 0?At:zn);_r>=mt&&Nn===void 0&&(Nn=Bi,ai=Wt),_r>mt+Gt&&qn===void 0&&(qn=Bi),Wt=_r}return Nn===void 0&&(Nn=0,ai=0,qn=Math.ceil(Gt/At)),qn===void 0&&(qn=ki.length-1),qn=Math.min(qn+1,ki.length-1),{scrollHeight:Wt,start:Nn,end:qn,offset:ai}},[$n,ar,mt,ki,Kr,Gt]),vi=Si.scrollHeight,ti=Si.start,xi=Si.end,Ni=Si.offset;Qn.current.start=ti,Qn.current.end=xi,ct.useLayoutEffect(function(){var On=Yr.getRecord();if(On.size===1){var Wt=Array.from(On)[0],Nn=nr(ki[ti]);if(Nn===Wt){var ai=Yr.get(Wt),qn=ai-At;xn(function(Oi){return Oi+qn})}}Yr.resetRecord()},[vi]);var Zi=ct.useState({width:0,height:Gt}),cr=(0,_e.Z)(Zi,2),Gn=cr[0],Ai=cr[1],br=function(Wt){Ai({width:Wt.offsetWidth,height:Wt.offsetHeight})},kr=(0,ct.useRef)(),Sr=(0,ct.useRef)(),Xt=ct.useMemo(function(){return ln(Gn.width,nt)},[Gn.width,nt]),Li=ct.useMemo(function(){return ln(Gn.height,vi)},[Gn.height,vi]),rr=vi-Gt,Hi=(0,ct.useRef)(rr);Hi.current=rr;function Er(On){var Wt=On;return Number.isNaN(Hi.current)||(Wt=Math.min(Wt,Hi.current)),Wt=Math.max(Wt,0),Wt}var dr=mt<=0,Nr=mt>=rr,Ti=qt<=0,Qi=qt>=nt,er=Ie(dr,Nr,Ti,Qi),kn=function(){return{x:Ce?-qt:qt,y:mt}},Dr=(0,ct.useRef)(kn()),Ln=(0,et.useEvent)(function(On){if(vn){var Wt=(0,He.Z)((0,He.Z)({},kn()),On);(Dr.current.x!==Wt.x||Dr.current.y!==Wt.y)&&(vn(Wt),Dr.current=Wt)}});function pr(On,Wt){var Nn=On;Wt?((0,wt.flushSync)(function(){dn(Nn)}),Ln()):xn(Nn)}function Qr(On){var Wt=On.currentTarget.scrollTop;Wt!==mt&&xn(Wt),rn==null||rn(On),Ln()}var vr=function(Wt){var Nn=Wt,ai=nt?nt-Gn.width:0;return Nn=Math.max(Nn,0),Nn=Math.min(Nn,ai),Nn},Ho=(0,et.useEvent)(function(On,Wt){Wt?((0,wt.flushSync)(function(){dn(function(Nn){var ai=Nn+(Ce?-On:On);return vr(ai)})}),Ln()):xn(function(Nn){var ai=Nn+On;return ai})}),co=We(ar,dr,Nr,Ti,Qi,!!nt,Ho),mr=(0,_e.Z)(co,2),hr=mr[0],fr=mr[1];Ot(ar,un,function(On,Wt,Nn,ai){var qn=ai;return er(On,Wt,Nn)?!1:!qn||!qn._virtualHandled?(qn&&(qn._virtualHandled=!0),hr({preventDefault:function(){},deltaX:On?Wt:0,deltaY:On?0:Wt}),!0):!1}),Re($n,un,function(On){xn(function(Wt){return Wt+On})}),(0,gt.Z)(function(){function On(Nn){var ai=dr&&Nn.detail<0,qn=Nr&&Nn.detail>0;ar&&!ai&&!qn&&Nn.preventDefault()}var Wt=un.current;return Wt.addEventListener("wheel",hr,{passive:!1}),Wt.addEventListener("DOMMouseScroll",fr,{passive:!0}),Wt.addEventListener("MozMousePixelScroll",On,{passive:!1}),function(){Wt.removeEventListener("wheel",hr),Wt.removeEventListener("DOMMouseScroll",fr),Wt.removeEventListener("MozMousePixelScroll",On)}},[ar,dr,Nr]),(0,gt.Z)(function(){if(nt){var On=vr(qt);dn(On),Ln({x:On})}},[Gn.width,nt]);var Vr=function(){var Wt,Nn;(Wt=kr.current)===null||Wt===void 0||Wt.delayHidden(),(Nn=Sr.current)===null||Nn===void 0||Nn.delayHidden()},Ii=Pn(un,ki,Yr,At,nr,function(){return Fr(!0)},xn,Vr);ct.useImperativeHandle(tn,function(){return{nativeElement:li.current,getScrollInfo:kn,scrollTo:function(Wt){function Nn(ai){return ai&&(0,Oe.Z)(ai)==="object"&&("left"in ai||"top"in ai)}Nn(Wt)?(Wt.left!==void 0&&dn(vr(Wt.left)),Ii(Wt.top)):Ii(Wt)}}}),(0,gt.Z)(function(){if(mi){var On=ki.slice(ti,xi+1);mi(On,ki)}},[ti,xi,ki]);var Qe=Ke(ki,nr,Yr,At),pt=Ri==null?void 0:Ri({start:ti,end:xi,virtual:$n,offsetX:qt,offsetY:Ni,rtl:Ce,getSize:Qe}),It=ce(ki,ti,xi,nt,qt,Tr,pe,Et),sn=null;Gt&&(sn=(0,He.Z)((0,Rt.Z)({},Ge?"height":"maxHeight",Gt),Kn),ar&&(sn.overflowY="hidden",nt&&(sn.overflowX="hidden"),an&&(sn.pointerEvents="none")));var Hn={};return Ce&&(Hn.dir="rtl"),ct.createElement("div",(0,Se.Z)({ref:li,style:(0,He.Z)((0,He.Z)({},Be),{},{position:"relative"}),className:hi},Hn,Mn),ct.createElement(Lt.Z,{onResize:br},ct.createElement(En,{className:"".concat(ft,"-holder"),style:sn,ref:un,onScroll:Qr,onMouseEnter:Vr},ct.createElement(te,{prefixCls:ft,height:vi,offsetX:qt,offsetY:Ni,scrollWidth:nt,onInnerResize:Fr,ref:Wn,innerProps:wi,rtl:Ce,extra:pt},It))),$n&&vi>Gt&&ct.createElement(kt,{ref:kr,prefixCls:ft,scrollOffset:mt,scrollRange:vi,rtl:Ce,onScroll:pr,onStartMove:jn,onStopMove:cn,spinSize:Li,containerSize:Gn.height,style:Wi==null?void 0:Wi.verticalScrollBar,thumbStyle:Wi==null?void 0:Wi.verticalScrollBarThumb}),$n&&nt>Gn.width&&ct.createElement(kt,{ref:Sr,prefixCls:ft,scrollOffset:qt,scrollRange:nt,rtl:Ce,onScroll:pr,onStartMove:jn,onStopMove:cn,spinSize:Xt,containerSize:Gn.width,horizontal:!0,style:Wi==null?void 0:Wi.horizontalScrollBar,thumbStyle:Wi==null?void 0:Wi.horizontalScrollBarThumb}))}var Jn=ct.forwardRef(yt);Jn.displayName="List";var bn=Jn,ci=bn},25510:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXfQ8KBAWCAkGBoMAeoUAAlj3C6BhmUCAoEBQICgQFdjIFArDsZO5F34MCQYGgQFAgKLBHKBCAZY8wOoYZFAgKBAWCAkGBnUyBACw7mXvR96BAUCAoEBQICuwRCgRg2SOMjmEGBYICQYGgQFBgJ1MgAMtO5l70PSgQFAgKBAWCAnuEAgFY9gijY5hBgaBAUCAoEBTYyRQIwLKTuRd9DwoEBYICQYGgwB6hQACWPcLoGGZQICgQFAgKBAV2MgUCsOxk7kXfgwJBgaBAUCAosEcoEIBljzA6hhkUCAoEBYICQYGdTIEALDuZe9H3oEBQICgQFAgK7BEKBGDZI4yOYQYFggJBgaBAUGAnUyAAy07mXvQ9KBAUCAoEBYICe4QCAVj2CKNjmEGBoEBQICgQFNjJFAjAspO5F30PCgQFggJBgaDAHqFAAJY9wugYZlAgKBAUCAoEBXYyBQKw7GTuRd+DAkGBoEBQICiwRygQgGWPMDqGGRQICgQFggJBgZ1MgQAsO5l70fegQFAgKBAUCArsEQoEYNkjjI5hBgWCAkGBoEBQYCdTIADLTuZe9D0oE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wvCh/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+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9tunmW9gKKyxjp/7057bp299u80ZgPRltr816tS/ny2h2/mDkeD18wm6ZsG15bPg/773lllts///+b7vx8sttvfXXt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wcUX2+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/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf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jIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Rn,Fn,ye){"use strict";Rn.exports=ye.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OG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642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Rn,Fn,ye){"use strict";ye.d(Fn,{Z:function(){return Tt}});const Se=Lt=>typeof Lt=="object"&&Lt!=null&&Lt.nodeType===1,Oe=(Lt,et)=>(!et||Lt!=="hidden")&&Lt!=="visible"&&Lt!=="clip",He=(Lt,et)=>{if(Lt.clientHeight<Lt.scrollHeight||Lt.clientWidth<Lt.scrollWidth){const gt=getComputedStyle(Lt,null);return Oe(gt.overflowY,et)||Oe(gt.overflowX,et)||(ct=>{const wt=(Me=>{if(!Me.ownerDocument||!Me.ownerDocument.defaultView)return null;try{return Me.ownerDocument.defaultView.frameElement}catch(te){return null}})(ct);return!!wt&&(wt.clientHeight<ct.scrollHeight||wt.clientWidth<ct.scrollWidth)})(Lt)}return!1},Rt=(Lt,et,gt,ct,wt,Me,te,ne)=>Me<Lt&&te>et||Me>Lt&&te<et?0:Me<=Lt&&ne<=gt||te>=et&&ne>=gt?Me-Lt-ct:te>et&&ne<gt||Me<Lt&&ne>gt?te-et+wt:0,_e=Lt=>{const et=Lt.parentElement;return et==null?Lt.getRootNode().host||null:et},vt=(Lt,et)=>{var gt,ct,wt,Me;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:ce,boundary:se,skipOverflowHiddenElements:ge}=et,ve=typeof se=="function"?se:mn=>mn!==se;if(!Se(Lt))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Fe=[];let Pe=Lt;for(;Se(Pe)&&ve(Pe);){if(Pe=_e(Pe),Pe===be){Fe.push(Pe);break}Pe!=null&&Pe===document.body&&He(Pe)&&!He(document.documentElement)||Pe!=null&&He(Pe,ge)&&Fe.push(Pe)}const Ie=(ct=(gt=window.visualViewport)==null?void 0:gt.width)!=null?ct:innerWidth,We=(Me=(wt=window.visualViewport)==null?void 0:wt.height)!=null?Me:innerHeight,{scrollX:Ke,scrollY:Xe}=window,{height:ht,width:Ve,top:Nt,right:qe,bottom:Ht,left:Zt}=Lt.getBoundingClientRect(),{top:Yt,right:Ot,bottom:Qt,left:dt}=(mn=>{const kt=window.getComputedStyle(mn);return{top:parseFloat(kt.scrollMarginTop)||0,right:parseFloat(kt.scrollMarginRight)||0,bottom:parseFloat(kt.scrollMarginBottom)||0,left:parseFloat(kt.scrollMarginLeft)||0}})(Lt);let Re=ne==="start"||ne==="nearest"?Nt-Yt:ne==="end"?Ht+Qt:Nt+ht/2-Yt+Qt,Mt=ce==="center"?Zt+Ve/2-dt+Ot:ce==="end"?qe+Ot:Zt-dt;const Pn=[];for(let mn=0;mn<Fe.length;mn++){const kt=Fe[mn],{height:_t,width:ln,top:Bn,right:wn,bottom:Kn,left:yt}=kt.getBoundingClientRect();if(te==="if-needed"&&Nt>=0&&Zt>=0&&Ht<=We&&qe<=Ie&&(kt===be&&!He(kt)||Nt>=Bn&&Ht<=Kn&&Zt>=yt&&qe<=wn))return Pn;const Jn=getComputedStyle(kt),bn=parseInt(Jn.borderLeftWidth,10),ci=parseInt(Jn.borderTopWidth,10),Tn=parseInt(Jn.borderRightWidth,10),tn=parseInt(Jn.borderBottomWidth,10);let $t=0,ft=0;const Je="offsetWidth"in kt?kt.offsetWidth-kt.clientWidth-bn-Tn:0,Gt="offsetHeight"in kt?kt.offsetHeight-kt.clientHeight-ci-tn:0,At="offsetWidth"in kt?kt.offsetWidth===0?0:ln/kt.offsetWidth:0,lt="offsetHeight"in kt?kt.offsetHeight===0?0:_t/kt.offsetHeight:0;if(be===kt)$t=ne==="start"?Re:ne==="end"?Re-We:ne==="nearest"?Rt(Xe,Xe+We,We,ci,tn,Xe+Re,Xe+Re+ht,ht):Re-We/2,ft=ce==="start"?Mt:ce==="center"?Mt-Ie/2:ce==="end"?Mt-Ie:Rt(Ke,Ke+Ie,Ie,bn,Tn,Ke+Mt,Ke+Mt+Ve,Ve),$t=Math.max(0,$t+Xe),ft=Math.max(0,ft+Ke);else{$t=ne==="start"?Re-Bn-ci:ne==="end"?Re-Kn+tn+Gt:ne==="nearest"?Rt(Bn,Kn,_t,ci,tn+Gt,Re,Re+ht,ht):Re-(Bn+_t/2)+Gt/2,ft=ce==="start"?Mt-yt-bn:ce==="center"?Mt-(yt+ln/2)+Je/2:ce==="end"?Mt-wn+Tn+Je:Rt(yt,wn,ln,bn,Tn+Je,Mt,Mt+Ve,Ve);const{scrollLeft:Ge,scrollTop:Be}=kt;$t=lt===0?0:Math.max(0,Math.min(Be+$t/lt,kt.scrollHeight-_t/lt+Gt)),ft=At===0?0:Math.max(0,Math.min(Ge+ft/At,kt.scrollWidth-ln/At+Je)),Re+=Be-$t,Mt+=Ge-ft}Pn.push({el:kt,top:$t,left:ft})}return Pn},ke=Lt=>Lt===!1?{block:"end",inline:"nearest"}:(et=>et===Object(et)&&Object.keys(et).length!==0)(Lt)?Lt:{block:"start",inline:"nearest"};function Tt(Lt,et){if(!Lt.isConnected||!(wt=>{let Me=wt;for(;Me&&Me.parentNode;){if(Me.parentNode===document)return!0;Me=Me.parentNode instanceof ShadowRoot?Me.parentNode.host:Me.parentNode}return!1})(Lt))return;const gt=(wt=>{const Me=window.getComputedStyle(wt);return{top:parseFloat(Me.scrollMarginTop)||0,right:parseFloat(Me.scrollMarginRight)||0,bottom:parseFloat(Me.scrollMarginBottom)||0,left:parseFloat(Me.scrollMarginLeft)||0}})(Lt);if((wt=>typeof wt=="object"&&typeof wt.behavior=="function")(et))return et.behavior(vt(Lt,et));const ct=typeof et=="boolean"||et==null?void 0:et.behavior;for(const{el:wt,top:Me,left:te}of vt(Lt,ke(et))){const ne=Me-gt.top+gt.bottom,ce=te-gt.left+gt.right;wt.scroll({top:ne,left:ce,behavior:ct})}}}}]);
|
|
|
}()); |