|
|
(self.webpackChunk=self.webpackChunk||[]).push([[8982],{89489:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},59477:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},40001:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},26227:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},49198:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},41464:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},73331:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},15277:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},52671:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},8657:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},56082:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},61481:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},33853:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},15075:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},43531:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},61485:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},38819:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},47472:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ot,Rt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ot,{ref:Rt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(Kn,kn){"use strict";kn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function Kn(Ae,te,ne,he){ne===void 0&&(ne=0),he===void 0&&(he=1/0),this._name=Ae,this._defaultValue=te,this._minimum=ne,this._maximum=he}Object.defineProperty(Kn.prototype,"name",{get:function(){return this._name},set:function(Ae){if(typeof Ae!="string"||Ae==="")throw new Error("Shape name must be a valid string.");this._name=Ae}}),Object.defineProperty(Kn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ae){if(typeof Ae!="number"||isNaN(Ae))throw new Error("The default value must be a real number, not: "+Ae);this._defaultValue=Ae}}),Object.defineProperty(Kn.prototype,"minimum",{get:function(){return this._minimum},set:function(Ae){if(typeof Ae!="number"||isNaN(Ae))throw new Error("Minimum must be a real number, not: "+Ae);this._minimum=Ae}}),Object.defineProperty(Kn.prototype,"maximum",{get:function(){return this._maximum},set:function(Ae){if(typeof Ae!="number"||isNaN(Ae))throw new Error("Maximum must be a real number, not: "+Ae);this._maximum=Ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ae,te){var ne=go.Shape._FigureParameters[Ae];return ne?ne[te]:null},go.Shape.setFigureParameter=function(Ae,te,ne){if(!(ne instanceof Kn))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 he=go.Shape._FigureParameters[Ae];he||(he=[],go.Shape._FigureParameters[Ae]=he),he[te]=ne};var kn=[];function ye(Ae,te){var ne=kn.pop();return ne===void 0?new go.Point(Ae,te):(ne.x=Ae,ne.y=te,ne)}function Ce(){var Ae=kn.pop();return Ae===void 0?new go.Point:Ae}function Oe(Ae){kn.push(Ae)}function tt(Ae,te,ne,he,se,ge,me,we,Fe){Fe||(Fe=new go.Point);var Be=Ae-ne,Ie=se-me,We=NaN,nt=NaN;if(Be===0)if(Ie===0)Ae===ne&&(We=Ae,nt=te);else{var Xe=(ge-we)/Ie,dt=ge-Xe*se;We=Ae,nt=Xe*We+dt}else if(Ie===0){var Ze=(te-he)/Be,Zt=te-Ze*Ae;We=se,nt=Ze*We+Zt}else{var Ze=(te-he)/Be,Xe=(ge-we)/Ie,Zt=te-Ze*Ae,dt=ge-Xe*se;We=(dt-Zt)/(Ze-Xe),nt=Ze*We+Zt}return Fe.x=We,Fe.y=nt,Fe}function At(Ae,te,ne,he,se,ge,me,we,Fe,Be,Ie,We,nt,Xe){var dt=1-Fe,Ze=Fe,Zt=Ae*dt+ne*Ze,yt=te*dt+he*Ze,an=ne*dt+se*Ze,Gt=he*dt+ge*Ze,Vt=se*dt+me*Ze,hn=ge*dt+we*Ze,yn=Zt*dt+an*Ze,vt=yt*dt+Gt*Ze,je=an*dt+Vt*Ze,wt=Gt*dt+hn*Ze,tn=yn*dt+je*Ze,bn=vt*dt+wt*Ze;Be.x=Zt,Be.y=yt,Ie.x=yn,Ie.y=vt,We.x=tn,We.y=bn,nt.x=je,nt.y=wt,Xe.x=Vt,Xe.y=hn}var Ue=new go.Spot(.156,.156),Je=new go.Spot(.844,.844),ke=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Kn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=5),he=Math.min(he,te/3),he=Math.min(he,ne/3);var se=he*ke,ge=new go.Geometry().add(new go.PathFigure(he,0,!0).add(new go.PathSegment(go.PathSegment.Line,te-he,0)).add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)).add(new go.PathSegment(go.PathSegment.Line,te,ne-he)).add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,ne-se,te-se,ne)).add(new go.PathSegment(go.PathSegment.Line,he,ne)).add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,se,ne,0,ne-se)).add(new go.PathSegment(go.PathSegment.Line,0,he)).add(new go.PathSegment(go.PathSegment.Bezier,he,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(Ae,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(Ae,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(Ae,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(Ae,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(Ae,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(Ae,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=ne/2,he.endX=te,he.endY=ne/2,he}),go.Shape.defineFigureGenerator("LineV",function(Ae,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=te/2,he.startY=0,he.endX=te/2,he.endY=ne,he}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ae,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(Ae,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(Ae,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(Ae,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(Ae,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(Ae,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(Ae,te,ne){var he=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(he*te,(1-he)*ne,!1).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,he*ne)).add(new go.PathSegment(go.PathSegment.Move,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,(1-he)*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(Ae,te,ne){var he=te/2,se=new go.Geometry().add(new go.PathFigure(te,te/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,he,he,he,he).close()));return se.spot1=Ue,se.spot2=Je,se.defaultStretch=go.GraphObject.Uniform,se}),go.Shape.defineFigureGenerator("Line1",function(Ae,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=0,he.startY=0,he.endX=te,he.endY=ne,he}),go.Shape.defineFigureGenerator("Line2",function(Ae,te,ne){var he=new go.Geometry(go.Geometry.Line);return he.startX=te,he.startY=0,he.endX=0,he.endY=ne,he}),go.Shape.defineFigureGenerator("Curve1",function(Ae,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(Ae,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(Ae,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(Ae,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(Ae,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(Ae,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(Ae,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(Ae,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 Kn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)?he=.1:he<-1?he=-1:he>1&&(he=1);var se=Math.abs(he)*te;if(he===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 he>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 Kn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te:he>te&&(he=te);var se=Math.abs(he);if(he===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 he>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 Kn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)?he=.2:he<.5?he=-.5:he>.5&&(he=.5);var se=Math.abs(he)*te;if(he===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 he>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 Kn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)?he=20:he<-te?he=-te/2:he>te&&(he=te/2);var se=Math.abs(he);if(he===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 he>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 Kn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)?he=10:he<-te?he=-te/2:he>te&&(he=te/2);var se=Math.abs(he);if(he===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 he>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 Ot=[];function Lt(){var Ae=Ot.pop();return Ae===void 0?[]:Ae}function ot(Ae){Ae.length=0,Ot.push(Ae)}function Rt(Ae){for(var te=Lt(),ne=.5,he=.5,se=Math.PI*1.5,ge=0,me=0;me<Ae;me++)ge=2*Math.PI/Ae*me+se,te[me]=new go.Point(he+ne*Math.cos(ge),he+ne*Math.sin(ge));return te.push(te[0]),te}function xt(Ae){var te=zt(Ae),ne=Lt();ne[0]=te[0];for(var he=1,se=1;he<te.length;he+=2,se+=3)ne[se]=te[he],ne[se+1]=te[he],ne[se+2]=te[he+1];return ot(te),ne}function zt(Ae){for(var te=Rt(Ae),ne=Lt(),he=Math.floor(te.length/2),se=te.length-1,ge=Ae%2===0?2:1,me=0;me<se;me++){var we=te[me],Fe=te[me+1],Be=te[(he+me-1)%se],Ie=te[(he+me+ge)%se];ne[me*2]=we,ne[me*2+1]=tt(we.x,we.y,Be.x,Be.y,Fe.x,Fe.y,Ie.x,Ie.y,new go.Point)}return ne[ne.length]=ne[0],ot(te),ne}go.Shape.defineFigureGenerator("Pentagon",function(Ae,te,ne){var he=Rt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<5;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.2,.22),se.spot2=new go.Spot(.8,.9),se}),go.Shape.defineFigureGenerator("Hexagon",function(Ae,te,ne){var he=Rt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<6;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.07,.25),se.spot2=new go.Spot(.93,.75),se}),go.Shape.defineFigureGenerator("Heptagon",function(Ae,te,ne){var he=Rt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<7;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.2,.15),se.spot2=new go.Spot(.8,.85),se}),go.Shape.defineFigureGenerator("Octagon",function(Ae,te,ne){var he=Rt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<8;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.15,.15),se.spot2=new go.Spot(.85,.85),se}),go.Shape.defineFigureGenerator("Nonagon",function(Ae,te,ne){var he=Rt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<9;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.17,.13),se.spot2=new go.Spot(.82,.82),se}),go.Shape.defineFigureGenerator("Decagon",function(Ae,te,ne){var he=Rt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("Dodecagon",function(Ae,te,ne){var he=Rt(12),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.16,.16),se.spot2=new go.Spot(.84,.84),se}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ae,te,ne){var he=zt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.266,.333),se.spot2=new go.Spot(.733,.733),se}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ae,te,ne){var he=zt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.17,.25),se.spot2=new go.Spot(.83,.75),se}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ae,te,ne){var he=zt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<14;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ae,te,ne){var he=zt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<16;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.25,.25),se.spot2=new go.Spot(.75,.75),se}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ae,te,ne){var he=zt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<18;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.666),se}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ae,te,ne){var he=zt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<20;me++)ge.add(new go.PathSegment(go.PathSegment.Line,he[me].x*te,he[me].y*ne));return ge.add(new go.PathSegment(go.PathSegment.Line,he[0].x*te,he[0].y*ne).close()),ot(he),se.spot1=new go.Spot(.281,.261),se.spot2=new go.Spot(.723,.748),se}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ae,te,ne){var he=xt(5),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),ot(he),se.spot1=new go.Spot(.222,.277),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ae,te,ne){var he=xt(6),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),ot(he),se.spot1=new go.Spot(.17,.222),se.spot2=new go.Spot(.833,.777),se}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ae,te,ne){var he=xt(7),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),ot(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ae,te,ne){var he=xt(8),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),ot(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ae,te,ne){var he=xt(9),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),ot(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ae,te,ne){var he=xt(10),se=new go.Geometry,ge=new go.PathFigure(he[0].x*te,he[0].y*ne,!0);se.add(ge);for(var me=1;me<he.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,he[me+2].x*te,he[me+2].y*ne,he[me].x*te,he[me].y*ne,he[me+1].x*te,he[me+1].y*ne));return ge.segments.last().close(),ot(he),se.spot1=new go.Spot(.222,.222),se.spot2=new go.Spot(.777,.777),se}),go.Shape.setFigureParameter("FramedRectangle",0,new Kn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Kn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN,se=Ae?Ae.parameter2:NaN;isNaN(he)&&(he=8),isNaN(se)&&(se=8);var ge=new go.Geometry,me=new go.PathFigure(0,0,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he<te/2&&se<ne/2&&(me.add(new go.PathSegment(go.PathSegment.Move,he,se)),me.add(new go.PathSegment(go.PathSegment.Line,he,ne-se)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,ne-se)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,se).close())),ge.setSpots(0,0,1,1,he,se,-he,-se),ge}),go.Shape.setFigureParameter("Ring",0,new Kn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=8);var se=te/2,ge=new go.Geometry,me=new go.PathFigure(te,te/2,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,0,360,se,se,se,se).close());var we=Math.max(se-he,0);return we>0&&(me.add(new go.PathSegment(go.PathSegment.Move,te/2+we,te/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,se,se,we,we).close())),ge.spot1=Ue,ge.spot2=Je,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Ae,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(Ae,te,ne){var he=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(he*te,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,0)).add(new go.PathSegment(go.PathSegment.Line,te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*te,ne)).add(new go.PathSegment(go.PathSegment.Line,he*te,ne)).add(new go.PathSegment(go.PathSegment.Line,0,(1-he)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,he*ne).close())).setSpots(he/2,he/2,1-he/2,1-he/2)}),go.Shape.setFigureParameter("Pie",0,new Kn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Kn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN,se=Ae?Ae.parameter2:NaN;isNaN(he)&&(he=0),isNaN(se)&&(se=315);var ge=he%360;ge<0&&(ge+=360);var me=se%360,we=Math.min(te,ne)/2;return new go.Geometry().add(new go.PathFigure(we,we).add(new go.PathSegment(go.PathSegment.Arc,ge,me,we,we,we,we).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ae,te,ne){var he=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-he)*ne,(se+he)*te,(ge+he)*ne)).add(new go.PathSegment(go.PathSegment.Line,0,ne).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Kn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=30);var se=Math.min(he,te)/2,ge=te/2,me=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me-se).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Kn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=10);var se=Math.min(he,te)/2,ge=te/2,me=ne/2;return new go.Geometry().add(new go.PathFigure(ge-se,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+se,0)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me-se)).add(new go.PathSegment(go.PathSegment.Line,te,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,me+se)).add(new go.PathSegment(go.PathSegment.Line,ge+se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,ne)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me+se)).add(new go.PathSegment(go.PathSegment.Line,0,me-se)).add(new go.PathSegment(go.PathSegment.Line,ge-se,me-se).close()))}),go.Shape.setFigureParameter("ThickX",0,new Kn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;if((isNaN(he)||he<0)&&(he=30),te===0||ne===0){var se=new go.Geometry(go.Geometry.Rectangle);return se.startX=0,se.startY=0,se.endX=te,se.endY=ne,se}else{var ge=te/2,me=ne/2,we=Math.atan2(ne,te),Fe=he-Math.min(Math.cos(we)*he/2,ge),Be=he-Math.min(Math.sin(we)*he/2,me),se=new go.Geometry,Ie=new go.PathFigure(Fe,0,!0);return se.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,.2*ne)),Ie.add(new go.PathSegment(go.PathSegment.Line,te-Fe,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,te,Be)),Ie.add(new go.PathSegment(go.PathSegment.Line,.8*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,te,ne-Be)),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-Be)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Be).close()),se}}),go.Shape.setFigureParameter("ThinX",0,new Kn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=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 Kn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.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,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+he/2)*te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,(1-he)*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-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,(1-he)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-he/2)*te,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,he*ne).close()),se}),go.Shape.setFigureParameter("RoundedIBeam",0,new Kn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.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-he)*te,.25*ne,Math.abs(1-he)*te,.75*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,he*te,.75*ne,he*te,.25*ne).close()),se}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ae,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(Ae,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(Ae,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(Ae,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(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.4*te,.6*ne,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.15*te,ne,.5*te,.75*ne,.45*te,.95*ne)),se.add(new go.PathSegment(go.PathSegment.Line,.85*te,ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.6*te,.6*ne,.55*te,.95*ne,.5*te,.75*ne));var ge=.2,me=.3,we=0,Fe=ge*ke;return se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+ge+we)*ne,(.5-ge+me)*te,(.5+Fe+we)*ne,(.5-Fe+me)*te,(.5+ge+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*te,(.5+we)*ne,(.5+Fe+me)*te,(.5+ge+we)*ne,(.5+ge+me)*te,(.5+Fe+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-ge+we)*ne,(1-.5+ge+me)*te,(.5-Fe+we)*ne,(.5+Fe+me)*te,(.5-ge+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.65*te,.36771243*ne,(.5-Fe+me)*te,(.5-ge+we)*ne,(.5-ge+me+.05)*te,(.5-Fe+we-.02)*ne)),ge=.2,me=0,we=-.3,Fe=ge*ke,se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*te,(.5+we)*ne,(.5+Fe+me)*te,(.5+ge+we)*ne,(.5+ge+me)*te,(.5+Fe+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-ge+we)*ne,(1-.5+ge+me)*te,(.5-Fe+we)*ne,(.5+Fe+me)*te,(.5-ge+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*te,(.5+we)*ne,(.5-Fe+me)*te,(.5-ge+we)*ne,(.5-ge+me)*te,(.5-Fe+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Fe+me)*te,(.5+ge+we)*ne,(.5-ge+me)*te,(.5+Fe+we)*ne,(.5-Fe+me)*te,(.5+ge+we)*ne)),ge=.2,me=-.3,we=0,Fe=ge*ke,se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5-ge+we)*ne,(1-.5+ge+me-.05)*te,(.5-Fe+we-.02)*ne,(.5+Fe+me)*te,(.5-ge+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*te,(.5+we)*ne,(.5-Fe+me)*te,(.5-ge+we)*ne,(.5-ge+me)*te,(.5-Fe+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*te,(.5+ge+we)*ne,(.5-ge+me)*te,(.5+Fe+we)*ne,(.5-Fe+me)*te,(.5+ge+we)*ne)),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.6*ne,(.5+Fe+me)*te,(.5+ge+we)*ne,(.5+ge+me)*te,(.5+Fe+we)*ne).close()),he.setSpots(.06,.33,.93,.68),he}),go.Shape.defineFigureGenerator("YinYang",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.5,0,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,180,te*.5,te*.5,te*.5,te*.5)),se.add(new go.PathSegment(go.PathSegment.Arc,90,-180,te*.5,te*.75,te*.25,te*.25)),se.add(new go.PathSegment(go.PathSegment.Arc,90,180,te*.5,te*.25,te*.25,te*.25));var ge=.1,me=.5,we=.25;return se.add(new go.PathSegment(go.PathSegment.Move,(me+ge)*te,we*ne)),se.add(new go.PathSegment(go.PathSegment.Arc,0,-360,te*me,ne*we,ge*te,ge*te).close()),se=new go.PathFigure(te*.5,0,!1),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*.5,te*.5,te*.5,te*.5)),we=.75,se=new go.PathFigure((me+ge)*te,we*ne,!0),he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,0,360,te*me,ne*we,ge*te,ge*te).close()),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Peace",function(Ae,te,ne){var he=.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-he)*te,he*ne)).add(new go.PathSegment(go.PathSegment.Move,se,ge)).add(new go.PathSegment(go.PathSegment.Line,he*te,he*ne)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=.5,me=.5,we=.5,Fe=new go.PathFigure(me*te,(we-ge)*ne);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,we*ne,(me-se)*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+ge)*ne,(me-ge)*te,(we+se)*ne,(me-se)*te,(we+ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,we*ne,(me+se)*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-ge)*ne,(me+ge)*te,(we-se)*ne,(me+se)*te,(we-ge)*ne)),ge=.4,se=ke*.4;var Be=Ce(),Ie=Ce(),We=Ce(),nt=Ce();At(me,we-ge,me+se,we-ge,me+ge,we-se,me+ge,we,.42,Be,Ie,We,nt,nt);var Xe=Ce(),dt=Ce(),Ze=Ce();At(me,we-ge,me+se,we-ge,me+ge,we-se,me+ge,we,.58,nt,nt,Ze,Xe,dt);var Zt=Ce(),yt=Ce(),an=Ce();At(me,we+ge,me-se,we+ge,me-ge,we+se,me-ge,we,.42,Zt,yt,an,nt,nt);var Gt=Ce(),Vt=Ce(),hn=Ce();return At(me,we+ge,me-se,we+ge,me-ge,we+se,me-ge,we,.58,nt,nt,hn,Gt,Vt),Fe.add(new go.PathSegment(go.PathSegment.Move,hn.x*te,hn.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,we*ne,Gt.x*te,Gt.y*ne,Vt.x*te,Vt.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne,(me-se)*te,(we-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,We.x*te,We.y*ne,Be.x*te,Be.y*ne,Ie.x*te,Ie.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,hn.x*te,hn.y*ne).close()),Fe.add(new go.PathSegment(go.PathSegment.Move,an.x*te,an.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,Ze.x*te,Ze.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,we*ne,Xe.x*te,Xe.y*ne,dt.x*te,dt.y*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne,(me+se)*te,(we+ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,an.x*te,an.y*ne,Zt.x*te,Zt.y*ne,yt.x*te,yt.y*ne).close()),Oe(Be),Oe(Ie),Oe(We),Oe(nt),Oe(Xe),Oe(dt),Oe(Ze),Oe(Zt),Oe(yt),Oe(an),Oe(Gt),Oe(Vt),Oe(hn),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("Fragile",function(Ae,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 Kn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=30),he>te&&(he=te);var se=(te-he)/2,ge=se+he;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(Ae,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(Ae,te,ne){var he=new go.Geometry,se=ke*.4,ge=.4,me=.5,we=.5,Fe=Ce(),Be=Ce(),Ie=Ce(),We=Ce(),nt=new go.PathFigure((me-ge)*te,we*ne,!1);he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne,(me-se)*te,(we-ge)*ne)),At(me,we-ge,me+se,we-ge,me+ge,we-se,me+ge,we,.44,Ie,We,Be,Fe,Fe),nt.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ne,Ie.x*te,Ie.y*ne,We.x*te,We.y*ne));var Xe=ye(Be.x,Be.y);At(me,we-ge,me+se,we-ge,me+ge,we-se,me+ge,we,.56,Fe,Fe,Be,Ie,We);var dt=ye(Be.x,Be.y);nt.add(new go.PathSegment(go.PathSegment.Line,(Xe.x*.1+.95*.9)*te,Xe.y*.1*ne)),nt.add(new go.PathSegment(go.PathSegment.Line,.85*te,Xe.y*.1*ne)),nt.add(new go.PathSegment(go.PathSegment.Line,.85*te,0)),nt.add(new go.PathSegment(go.PathSegment.Line,te,0)),nt.add(new go.PathSegment(go.PathSegment.Line,te,.15*ne)),nt.add(new go.PathSegment(go.PathSegment.Line,(dt.x*.1+.9)*te,.15*ne)),nt.add(new go.PathSegment(go.PathSegment.Line,(dt.x*.1+.9)*te,(dt.y*.1+.05*.9)*ne)),nt.add(new go.PathSegment(go.PathSegment.Line,dt.x*te,dt.y*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,we*ne,Ie.x*te,Ie.y*ne,We.x*te,We.y*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne,(me+se)*te,(we+ge)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,we*ne,(me-se)*te,(we+ge)*ne,(me-ge)*te,(we+se)*ne)),ge=.35,se=ke*.35;var Ze=new go.PathFigure(me*te,(we-ge)*ne,!1);he.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,we*ne,(me-se)*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+ge)*ne,(me-ge)*te,(we+se)*ne,(me-se)*te,(we+ge)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,we*ne,(me+se)*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-ge)*ne,(me+ge)*te,(we-se)*ne,(me+se)*te,(we-ge)*ne));var Zt=new go.PathFigure((me-ge)*te,we*ne,!1);return he.add(Zt),Oe(Fe),Oe(Be),Oe(Ie),Oe(We),Oe(Xe),Oe(dt),he.spot1=new go.Spot(.202,.257),he.spot2=new go.Spot(.792,.739),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("GenderFemale",function(Ae,te,ne){var he=new go.Geometry,se=.375,ge=0,me=-.125,we=se*ke,Fe=new go.PathFigure((.525+ge)*te,(.5+se+me)*ne,!1);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+me)*ne,(.5+we+ge)*te,(.5+se+me)*ne,(.5+se+ge)*te,(.5+we+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+me)*ne,(1-.5+se+ge)*te,(.5-we+me)*ne,(.5+we+ge)*te,(.5-se+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+me)*ne,(.5-we+ge)*te,(.5-se+me)*ne,(.5-se+ge)*te,(.5-we+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*te,(.5+se+me)*ne,(.5-se+ge)*te,(.5+we+me)*ne,(.5-we+ge)*te,(.5+se+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.475*te,.85*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.425*te,.85*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.425*te,.9*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.475*te,.9*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.475*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.525*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.9*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.9*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.575*te,.85*ne)),Fe.add(new go.PathSegment(go.PathSegment.Line,.525*te,.85*ne).close()),se=.325,ge=0,me=-.125,we=se*ke;var Fe=new go.PathFigure((1-.5+se+ge)*te,(.5+me)*ne,!1);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5+se+me)*ne,(.5+se+ge)*te,(.5+we+me)*ne,(.5+we+ge)*te,(.5+se+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+me)*ne,(.5-we+ge)*te,(.5+se+me)*ne,(.5-se+ge)*te,(.5+we+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*te,(.5-se+me)*ne,(.5-se+ge)*te,(.5-we+me)*ne,(.5-we+ge)*te,(.5-se+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+se+ge)*te,(.5+me)*ne,(.5+we+ge)*te,(.5-se+me)*ne,(1-.5+se+ge)*te,(.5-we+me)*ne));var Fe=new go.PathFigure((.525+ge)*te,(.5+se+me)*ne,!1);return he.add(Fe),he.spot1=new go.Spot(.232,.136),he.spot2=new go.Spot(.682,.611),he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicImplies",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*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(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;return isNaN(he)&&(he=.2),new go.Geometry().add(new go.PathFigure((1-he)*te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,(1-he)*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,he*te,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)).add(new go.PathSegment(go.PathSegment.Line,he*te,ne))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ae,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(Ae,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(Ae,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(Ae,te,ne){var he=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 he.defaultStretch=go.GraphObject.Uniform,he}),go.Shape.defineFigureGenerator("LogicTruth",function(Ae,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(Ae,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(Ae,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(Ae,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(Ae,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(Ae,te,ne){var he=.5;return new go.Geometry().add(new go.PathFigure(0,ne,!1).add(new go.PathSegment(go.PathSegment.Line,0,he*ne)).add(new go.PathSegment(go.PathSegment.Arc,180,180,he*te,he*ne,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,te,ne))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ae,te,ne){var he=.5;return new go.Geometry().add(new go.PathFigure(te,0,!1).add(new go.PathSegment(go.PathSegment.Line,te,he*ne)).add(new go.PathSegment(go.PathSegment.Arc,0,180,he*te,he*ne,he*te,he*ne)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Kn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Kn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.3);var se=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=.3);var ge=(1-he)*te,me=(.5-se/2)*ne,we=(.5+se/2)*ne,Fe=new go.Geometry,Be=new go.PathFigure(0,me,!0);Fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,we)),Be.add(new go.PathSegment(go.PathSegment.Line,0,we).close()),Fe.spot1=new go.Spot(0,me/ne);var Ie=tt(0,we/ne,1,we/ne,ge/te,1,1,.5,Ce());return Fe.spot2=new go.Spot(Ie.x,Ie.y),Oe(Ie),Fe}),go.Shape.setFigureParameter("Arrow2",0,new Kn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Kn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=30),he>te&&(he=te);var se=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=30),se=Math.min(se,ne/2);var ge=te-he,me=(ne-se)/2,we=me+se,Fe=new go.Geometry,Be=new go.PathFigure(0,me,!0);Fe.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Be.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,ne)),Be.add(new go.PathSegment(go.PathSegment.Line,ge,we)),Be.add(new go.PathSegment(go.PathSegment.Line,0,we).close()),Fe.spot1=new go.Spot(0,me/ne);var Ie=tt(0,we/ne,1,we/ne,ge/te,1,1,.5,Ce());return Fe.spot2=new go.Spot(Ie.x,Ie.y),Oe(Ie),Fe}),go.Shape.defineFigureGenerator("Chevron",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.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()),he}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.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()),he}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Kn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,me=new go.Geometry,we=new go.PathFigure(te,.5*ne,!0);me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,ge)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,0)),we.add(new go.PathSegment(go.PathSegment.Line,.3*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close());var Fe=tt(0,.5,.3,0,0,se/ne,.1,se/ne,Ce());return me.spot1=new go.Spot(Fe.x,Fe.y),Fe=tt(.7,1,1,.5,0,ge/ne,1,ge/ne,Fe),me.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Kn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Kn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=40);var se=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,me=ge+he,we=(ne-se)/2,Fe=we+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,me=ge+he,we=0,Fe=ne):(ge=0,me=ne,we=0,Fe=ne));var Be=new go.Geometry,Ie=new go.PathFigure(te,.5*ne,!0);Be.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),Ie.add(new go.PathSegment(go.PathSegment.Line,.3*te,we)),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,we).close());var We=tt(0,.5,.3,we/ne,0,ge/ne,1,ge/ne,Ce());return Be.spot1=new go.Spot(We.x,We.y),We=tt(.7,Fe/ne,1,.5,0,me/ne,1,me/ne,We),Be.spot2=new go.Spot(We.x,We.y),Oe(We),Be}),go.Shape.setFigureParameter("IBeamArrow",0,new Kn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.3);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,me=new go.Geometry,we=new go.PathFigure(te,.5*ne,!0);me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,ge)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,0)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,0)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(0,se/ne);var Fe=tt(.7,1,1,.5,0,ge/ne,1,ge/ne,Ce());return me.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new Kn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Kn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=40);var se=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=100);var ge=(ne-he)/2,me=ge+he,we=(ne-se)/2,Fe=we+se;(he>ne||se>ne)&&(se>he?(he=he*ne/se,ge=(ne-he)/2,me=ge+he,we=0,Fe=ne):(ge=0,me=ne,we=0,Fe=ne));var Be=new go.Geometry,Ie=new go.PathFigure(te,.5*ne,!0);Be.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,.7*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Fe)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,we)),Ie.add(new go.PathSegment(go.PathSegment.Line,.2*te,we)),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,we).close()),Be.spot1=new go.Spot(0,ge/ne);var We=tt(.7,Fe/ne,1,.5,0,me/ne,1,me/ne,Ce());return Be.spot2=new go.Spot(We.x,We.y),Oe(We),Be}),go.Shape.setFigureParameter("Pointer",0,new Kn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.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,he*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),se.spot1=new go.Spot(he,.35);var me=tt(.2,.65,1,.65,0,1,1,.5,Ce());return se.spot2=new go.Spot(me.x,me.y),Oe(me),se}),go.Shape.setFigureParameter("RoundedPointer",0,new Kn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.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,he*te,.75*ne,he*te,.25*ne).close()),se.spot1=new go.Spot(he,.35);var me=tt(0,.65,1,.65,0,1,1,.5,Ce());return se.spot2=new go.Spot(me.x,me.y),Oe(me),se}),go.Shape.setFigureParameter("SplitEndArrow",0,new Kn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.4);var se=(.5-he/2)*ne,ge=(.5+he/2)*ne,me=new go.Geometry,we=new go.PathFigure(te,.5*ne,!0);me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),we.add(new go.PathSegment(go.PathSegment.Line,0,ge)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,.3);var Fe=tt(.7,1,1,.5,0,ge/ne,1,ge/ne,Ce());return me.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Kn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=50);var se=(ne-he)/2,ge=se+he;he>ne&&(se=0,ge=ne);var me=new go.Geometry,we=new go.PathFigure(te,.5*ne,!0);me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,ge)),we.add(new go.PathSegment(go.PathSegment.Line,0,ge)),we.add(new go.PathSegment(go.PathSegment.Line,.2*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,0,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,se)),we.add(new go.PathSegment(go.PathSegment.Line,.7*te,0).close()),me.spot1=new go.Spot(.2,se/ne);var Fe=tt(.7,1,1,.5,0,ge/ne,1,ge/ne,Ce());return me.spot2=new go.Spot(Fe.x,Fe.y),Oe(Fe),me}),go.Shape.setFigureParameter("SquareArrow",0,new Kn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.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,he*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,he*te,0).close()),se.spot1=go.Spot.TopLeft,se.spot2=new go.Spot(he,1),se}),go.Shape.defineFigureGenerator("Cone1",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=ke*.1,me=new go.PathFigure(0,.9*ne,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne).close()),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.97),he}),go.Shape.defineFigureGenerator("Cone2",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.9*ne,!0);he.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 he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.9*ne,(1-.85/.9)*te,.8*ne,.85/.9*te,.8*ne)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.82),he}),go.Shape.defineFigureGenerator("Cube1",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,ne,!0);he.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 he.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)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.5,.85),he}),go.Shape.defineFigureGenerator("Cube2",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.3*ne,!0);he.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 he.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)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(.7,1),he}),go.Shape.defineFigureGenerator("Cylinder1",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=ke*.5,me=new go.PathFigure(0,he,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,ke*he,(.5-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*te,he,(.5+ge)*te,0,1*te,ke*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,1*ne,1*te,ne-ke*he,(.5+ge)*te,1*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,(.5-ge)*te,1*ne,0,ne-ke*he)),me.add(new go.PathSegment(go.PathSegment.Line,0,he));var we=new go.PathFigure(te,he,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,2*he,1*te,2*he-ke*he,(.5+ge)*te,2*he)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,he,(.5-ge)*te,2*he,0,2*he-ke*he)),se.spot1=new go.Spot(0,0,0,2*he),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder2",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,ne/3);var se=new go.Geometry,ge=ke*.5,me=new go.PathFigure(0,ne-he,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,ke*he,(.5-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,he,(.5+ge)*te,0,te,ke*he)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-he)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,ne-ke*he,(.5+ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-he,(.5-ge)*te,ne,0,ne-ke*he));var we=new go.PathFigure(0,ne-he,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne-2*he,0,ne-he-ke*he,(.5-ge)*te,ne-2*he)),we.add(new go.PathSegment(go.PathSegment.Bezier,te,ne-he,(.5+ge)*te,ne-2*he,te,ne-he-ke*he)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,0,-2*he),se}),go.Shape.defineFigureGenerator("Cylinder3",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=ke*.5,me=new go.PathFigure(he,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-ke*he,0,te,(.5-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,(.5+ge)*ne,te-ke*he,ne)),me.add(new go.PathSegment(go.PathSegment.Line,he,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,ke*he,ne,0,(.5+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*ne,ke*he,0));var we=new go.PathFigure(he,0,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,2*he,.5*ne,he+ke*he,0,2*he,(.5-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,he,ne,2*he,(.5+ge)*ne,he+ke*he,ne)),se.spot1=new go.Spot(0,0,2*he,0),se.spot2=new go.Spot(1,1),se}),go.Shape.defineFigureGenerator("Cylinder4",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=5),he=Math.min(he,te/3);var se=new go.Geometry,ge=ke*.5,me=new go.PathFigure(te-he,0,!0);se.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,te-ke*he,0,te,(.5-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te,(.5+ge)*ne,te-ke*he,ne)),me.add(new go.PathSegment(go.PathSegment.Line,he,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ne,ke*he,ne,0,(.5+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,(.5-ge)*ne,ke*he,0)),me.add(new go.PathSegment(go.PathSegment.Line,te-he,0));var we=new go.PathFigure(te-he,0,!1);return se.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,te-2*he,.5*ne,te-he-ke*he,0,te-2*he,(.5-ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ne,te-2*he,(.5+ge)*ne,te-he-ke*he,ne)),se.spot1=new go.Spot(0,0),se.spot2=new go.Spot(1,1,-2*he,0),se}),go.Shape.defineFigureGenerator("Prism1",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,.25*ne,!0);he.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 he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.408,.172),he.spot2=new go.Spot(.833,.662),he}),go.Shape.defineFigureGenerator("Prism2",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.25*ne,!0);he.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 he.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)),he.spot1=new go.Spot(.25,.5),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("Pyramid1",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.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 he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Pyramid2",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.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 he.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)),he.spot1=new go.Spot(.25,.367),he.spot2=new go.Spot(.75,.875),he}),go.Shape.defineFigureGenerator("Actor",function(Ae,te,ne){var he=new go.Geometry,se=.2,ge=.1,me=ke*se,we=ke*ge,Fe=.5,Be=.1,Ie=new go.PathFigure(Fe*te,(Be+ge)*ne,!0);he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-se)*te,Be*ne,(Fe-me)*te,(Be+ge)*ne,(Fe-se)*te,(Be+we)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be-ge)*ne,(Fe-se)*te,(Be-we)*ne,(Fe-me)*te,(Be-ge)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+se)*te,Be*ne,(Fe+me)*te,(Be-ge)*ne,(Fe+se)*te,(Be-we)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be+ge)*ne,(Fe+se)*te,(Be+we)*ne,(Fe+me)*te,(Be+ge)*ne));var We=.05,nt=ke*We;Fe=.05,Be=.25;var Xe=new go.PathFigure(.5*te,.2*ne,!0);return he.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.95*te,.2*ne)),Fe=.95,Be=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+We)*te,Be*ne,(Fe+nt)*te,(Be-We)*ne,(Fe+We)*te,(Be-nt)*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,nt=ke*We,Fe=.825,Be=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be-We)*ne,(Fe+We)*te,(Be-nt)*ne,(Fe+nt)*te,(Be-We)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-We)*te,Be*ne,(Fe-nt)*te,(Be-We)*ne,(Fe-We)*te,(Be-nt)*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,nt=ke*We,Fe=.5,Be=.7,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be-We)*ne,(Fe+We)*te,(Be-nt)*ne,(Fe+nt)*te,(Be-We)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-We)*te,Be*ne,(Fe-nt)*te,(Be-We)*ne,(Fe-We)*te,(Be-nt)*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,nt=ke*We,Fe=.175,Be=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be-We)*ne,(Fe+We)*te,(Be-nt)*ne,(Fe+nt)*te,(Be-We)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-We)*te,Be*ne,(Fe-nt)*te,(Be-We)*ne,(Fe-We)*te,(Be-nt)*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,nt=ke*We,Fe=.05,Be=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be-We)*ne,(Fe-We)*te,(Be-nt)*ne,(Fe-nt)*te,(Be-We)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Line,.5*te,.2*ne)),he.spot1=new go.Spot(.2,.2),he.spot2=new go.Spot(.8,.65),he}),go.Shape.setFigureParameter("Card",0,new Kn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;isNaN(he)&&(he=.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,he*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,he*te,0).close()),se.spot1=new go.Spot(0,he),se.spot2=go.Spot.BottomRight,se}),go.Shape.defineFigureGenerator("Collate",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,.5*ne,!0);he.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 he.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)),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,.25),he}),go.Shape.defineFigureGenerator("CreateRequest",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,se*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),he}),go.Shape.defineFigureGenerator("Database",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=ke*.1,me=new go.PathFigure(te,.1*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var we=new go.PathFigure(te,.1*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Move,te,.3*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.4*ne,te,(.3+ge)*ne,(.5+se)*te,.4*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ne,(.5-se)*te,.4*ne,0,(.3+ge)*ne)),he.spot1=new go.Spot(0,.4),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("DataStorage",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.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()),he.spot1=new go.Spot(.226,0),he.spot2=new go.Spot(.81,1),he}),go.Shape.defineFigureGenerator("DiskStorage",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=ke*.1,me=new go.PathFigure(te,.1*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,ne,te,(.9+ge)*ne,(.5+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ne,(.5-se)*te,ne,0,(.9+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,0,0,(.1-ge)*ne,(.5-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.1*ne,(.5+se)*te,0,te,(.1-ge)*ne));var we=new go.PathFigure(te,.1*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,te,(.1+ge)*ne,(.5+se)*te,.2*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ne,(.5-se)*te,.2*ne,0,(.1+ge)*ne)),we.add(new go.PathSegment(go.PathSegment.Move,te,.2*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.3*ne,te,(.2+ge)*ne,(.5+se)*te,.3*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ne,(.5-se)*te,.3*ne,0,(.2+ge)*ne)),he.spot1=new go.Spot(0,.3),he.spot2=new go.Spot(1,.9),he}),go.Shape.defineFigureGenerator("Display",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.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()),he.spot1=new go.Spot(.25,0),he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("DividedEvent",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)?se=.2:se<.15&&(se=.15);var ge=ke*.2,me=new go.PathFigure(0,.2*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,0,(.2-ge)*ne,(.2-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.2*ne,(.8+ge)*te,0,te,(.2-ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,ne,te,(.8+ge)*ne,(.8+ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.2*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ne,(.2-ge)*te,ne,0,(.8+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne));var we=new go.PathFigure(0,se*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),he}),go.Shape.defineFigureGenerator("DividedProcess",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;(isNaN(se)||se<.1)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(0,se*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,se*ne)),he}),go.Shape.defineFigureGenerator("Document",function(Ae,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return he.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()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;(isNaN(se)||se<.2)&&(se=.2);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(se*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,se*ne)),me.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-se)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,(1-se)*ne)),he}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.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 he.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)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("File",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.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 he.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)),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Interrupt",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,.5*ne,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne));var me=new go.PathFigure(te,.5*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("InternalStorage",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN,ge=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.1);var me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var we=new go.PathFigure(se*te,0,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),we.add(new go.PathSegment(go.PathSegment.Move,0,ge*ne)),we.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne)),he}),go.Shape.defineFigureGenerator("Junction",function(Ae,te,ne){var he=new go.Geometry,se=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,me=ke*.5,we=.5,Fe=new go.PathFigure(te,we*ne,!0);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,we*te,ne,te,(we+me)*ne,(we+me)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,we*ne,(we-me)*te,ne,0,(we+me)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,we*te,0,0,(we-me)*ne,(we-me)*te,0)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te,we*ne,(we+me)*te,0,te,(we-me)*ne));var Be=new go.PathFigure((ge+se)*te,(ge+se)*ne,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,ge*te,ge*ne)),Be.add(new go.PathSegment(go.PathSegment.Move,ge*te,(ge+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,(ge+se)*te,ge*ne)),he}),go.Shape.defineFigureGenerator("LinedDocument",function(Ae,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);he.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 he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.75*ne)),he.spot1=new go.Spot(.1,0),he.spot2=new go.Spot(1,.6),he}),go.Shape.defineFigureGenerator("LoopLimit",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.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()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MagneticTape",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=.5,me=new go.PathFigure(.5*te,ne,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*te,.9*ne,te,(ge+se)*ne,(ge+se)*te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne)),he.spot1=new go.Spot(.15,.15),he.spot2=new go.Spot(.85,.8),he}),go.Shape.defineFigureGenerator("ManualInput",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.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()),he.spot1=new go.Spot(0,.25),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.7);var ge=new go.PathFigure(0,0,!0);return he.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()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(0,0,!0);return he.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()),he}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.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()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("MultiDocument",function(Ae,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(te,0,!0);he.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 he.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)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.8,.77),he}),go.Shape.defineFigureGenerator("MultiProcess",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,.1*ne,!0);he.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 he.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)),he.spot1=new go.Spot(0,.2),he.spot2=new go.Spot(.8,1),he}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var ge=1-se,me=new go.PathFigure(0,0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,ne).close());var we=new go.PathFigure(.5*se*te,se*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,(1-.5*se)*te,se*ne)),he}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.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()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.75,1),he}),go.Shape.defineFigureGenerator("Or",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=.5,me=new go.PathFigure(te,ge*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var we=new go.PathFigure(te,.5*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Move,.5*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),he}),go.Shape.defineFigureGenerator("PaperTape",function(Ae,te,ne){var he=new go.Geometry;ne=ne/.8;var se=new go.PathFigure(0,.7*ne,!0);return he.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()),he.spot1=new go.Spot(0,.49),he.spot2=new go.Spot(1,.75),he}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN,ge=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN,ge=Ae?Ae.parameter2:NaN;isNaN(se)&&(se=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he}),go.Shape.defineFigureGenerator("Procedure",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure((1-se)*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Move,se*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),he}),go.Shape.defineFigureGenerator("Process",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne).close());var me=new go.PathFigure(se*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),he.spot2=go.Spot.BottomRight,he}),go.Shape.defineFigureGenerator("Sort",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);he.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 he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),he.spot1=new go.Spot(.25,.25),he.spot2=new go.Spot(.75,.5),he}),go.Shape.defineFigureGenerator("Start",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.25);var ge=new go.PathFigure(se*te,0,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*te,.5*ne,.25*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*te,.5*ne,.25*te,.5*ne));var me=new go.PathFigure(se*te,0,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,se*te,ne)),me.add(new go.PathSegment(go.PathSegment.Move,(1-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-se)*te,ne)),he.spot1=new go.Spot(se,0),he.spot2=new go.Spot(1-se,1),he}),go.Shape.defineFigureGenerator("Terminator",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.25*te,0,!0);return he.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)),he.spot1=new go.Spot(.23,0),he.spot2=new go.Spot(.77,1),he}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ae,te,ne){var he=new go.Geometry,se=Ae?Ae.parameter1:NaN;isNaN(se)&&(se=.1);var ge=new go.PathFigure(0,0,!0);return he.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()),he.spot1=go.Spot.TopLeft,he}),go.Shape.defineFigureGenerator("AndGate",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=new go.PathFigure(0,0,!0);return he.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()),he.spot1=go.Spot.TopLeft,he.spot2=new go.Spot(.55,1),he}),go.Shape.defineFigureGenerator("Buffer",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.add(se),se.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),se.add(new go.PathSegment(go.PathSegment.Line,0,ne).close()),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Clock",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=.5,me=new go.PathFigure(te,ge*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,ne,te,(ge+se)*ne,(ge+se)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*ne,(ge-se)*te,ne,0,(ge+se)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*te,0,0,(ge-se)*ne,(ge-se)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,ge*ne,(ge+se)*te,0,te,(ge-se)*ne));var we=new go.PathFigure(te,ge*ne,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,ge*ne));var Fe=new go.PathFigure(.8*te,.75*ne,!1);return he.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)),he}),go.Shape.defineFigureGenerator("Ground",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.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)),he}),go.Shape.defineFigureGenerator("Inverter",function(Ae,te,ne){var he=new go.Geometry,se=ke*.1,ge=.1,me=.9,we=.5,Fe=new go.PathFigure(.8*te,.5*ne,!0);he.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 Be=new go.PathFigure((me+ge)*te,we*ne,!0);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne,(me+se)*te,(we+ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,we*ne,(me-se)*te,(we+ge)*ne,(me-ge)*te,(we+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne,(me-se)*te,(we-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,we*ne,(me+se)*te,(we-ge)*ne,(me+ge)*te,(we-se)*ne)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.4,.75),he}),go.Shape.defineFigureGenerator("NandGate",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=ke*.4,me=ke*.1,we=.1,Fe=.9,Be=.5,Ie=new go.PathFigure(.8*te,.5*ne,!0);he.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+we)*te,Be*ne,!0);return he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be+we)*ne,(Fe+we)*te,(Be+me)*ne,(Fe+me)*te,(Be+we)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-we)*te,Be*ne,(Fe-me)*te,(Be+we)*ne,(Fe-we)*te,(Be+me)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be-we)*ne,(Fe-we)*te,(Be-me)*ne,(Fe-me)*te,(Be-we)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+we)*te,Be*ne,(Fe+me)*te,(Be-we)*ne,(Fe+we)*te,(Be-me)*ne)),he.spot1=new go.Spot(0,.05),he.spot2=new go.Spot(.55,.95),he}),go.Shape.defineFigureGenerator("NorGate",function(Ae,te,ne){var he=new go.Geometry,se=.5,ge=ke*se,me=0,we=.5,Fe=new go.PathFigure(.8*te,.5*ne,!0);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.7*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(me+ge)*te,(we-se)*ne,.7*te,(we-ge)*ne)),se=.1,ge=ke*.1,me=.9,we=.5;var Be=new go.PathFigure((me-se)*te,we*ne,!0);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ne,(me-se)*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ne,(me+ge)*te,(we-se)*ne,(me+se)*te,(we-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ne,(me+se)*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ne,(me-ge)*te,(we+se)*ne,(me-se)*te,(we+ge)*ne)),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.6,.75),he}),go.Shape.defineFigureGenerator("OrGate",function(Ae,te,ne){var he=new go.Geometry,se=.5,ge=ke*se,me=0,we=.5,Fe=new go.PathFigure(0,0,!0);return he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(me+ge+ge)*te,(we-se)*ne,.8*te,(we-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,ne,.8*te,(we+ge)*ne,(me+ge+ge)*te,(we+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*te,.75*ne,.25*te,.25*ne).close()),he.spot1=new go.Spot(.2,.25),he.spot2=new go.Spot(.75,.75),he}),go.Shape.defineFigureGenerator("XnorGate",function(Ae,te,ne){var he=new go.Geometry,se=.5,ge=ke*se,me=.2,we=.5,Fe=new go.PathFigure(.1*te,0,!1);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Be=new go.PathFigure(.8*te,.5*ne,!0);he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.7*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.8*te,.5*ne,(me+ge)*te,(we-se)*ne,.7*te,(we-ge)*ne)),se=.1,ge=ke*.1,me=.9,we=.5;var Ie=new go.PathFigure((me-se)*te,we*ne,!0);return he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ne,(me-se)*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ne,(me+ge)*te,(we-se)*ne,(me+se)*te,(we-ge)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ne,(me+se)*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ne,(me-ge)*te,(we+se)*ne,(me-se)*te,(we+ge)*ne)),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.65,.75),he}),go.Shape.defineFigureGenerator("XorGate",function(Ae,te,ne){var he=new go.Geometry,se=.5,ge=ke*se,me=.2,we=.5,Fe=new go.PathFigure(.1*te,0,!1);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.1*te,ne,.35*te,.25*ne,.35*te,.75*ne));var Be=new go.PathFigure(.2*te,0,!0);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,(me+ge)*te,(we-se)*ne,.9*te,(we-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,ne,.9*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.2*te,0,.45*te,.75*ne,.45*te,.25*ne).close()),he.spot1=new go.Spot(.4,.25),he.spot2=new go.Spot(.8,.75),he}),go.Shape.defineFigureGenerator("Capacitor",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.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)),he}),go.Shape.defineFigureGenerator("Resistor",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!1);return he.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)),he}),go.Shape.defineFigureGenerator("Inductor",function(Ae,te,ne){var he=new go.Geometry,se=ke*.1,ge=.1,me=.1,we=.5,Fe=new go.PathFigure((me-se*.5)*te,ne,!1);return he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.3,Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ne,(me+ge)*te,0,(me+se)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.5,Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ne,(me+ge)*te,0,(me+se)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.7,Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,ne,(me+ge)*te,0,(me+se)*te,ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,0,(me-se)*te,ne,(me-ge)*te,0)),me=.9,Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se*.5)*te,ne,(me+ge)*te,0,(me+se)*te,ne)),he}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ae,te,ne){var he=new go.Geometry,se=ke*.5,ge=.5,me=.5,we=.5,Fe=new go.PathFigure((me-ge)*te,we*ne,!1);return he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne,(me-se)*te,(we-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,we*ne,(me+se)*te,(we-ge)*ne,(me+ge)*te,(we-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne,(me+se)*te,(we+ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,we*ne,(me-se)*te,(we+ge)*ne,(me-ge)*te,(we+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Move,(me-ge+.1)*te,we*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge-.1)*te,we*ne,me*te,(we-ge)*ne,me*te,(we+ge)*ne)),he}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return he.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)),he}),go.Shape.defineFigureGenerator("Diode",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!1);return he.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)),he.spot1=new go.Spot(0,.25),he.spot2=new go.Spot(.5,.75),he}),go.Shape.defineFigureGenerator("Wifi",function(Ae,te,ne){var he=new go.Geometry,se=te,ge=ne;te=te*.38,ne=ne*.6;var me=ke*.8,we=.8,Fe=0,Be=.5,Ie=(se-te)/2,We=(ge-ne)/2,nt=new go.PathFigure(Fe*te+Ie,(Be+we)*ne+We,!0);he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-we)*te+Ie,Be*ne+We,(Fe-me)*te+Ie,(Be+we)*ne+We,(Fe-we)*te+Ie,(Be+me)*ne+We)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be-we)*ne+We,(Fe-we)*te+Ie,(Be-me)*ne+We,(Fe-me)*te+Ie,(Be-we)*ne+We)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-we+me*.5)*te+Ie,Be*ne+We,Fe*te+Ie,(Be-we)*ne+We,(Fe-we+me*.5)*te+Ie,(Be-me)*ne+We)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be+we)*ne+We,(Fe-we+me*.5)*te+Ie,(Be+me)*ne+We,Fe*te+Ie,(Be+we)*ne+We).close()),me=ke*.4,we=.4,Fe=.2,Be=.5;var Xe=new go.PathFigure(Fe*te+Ie,(Be+we)*ne+We,!0);he.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-we)*te+Ie,Be*ne+We,(Fe-me)*te+Ie,(Be+we)*ne+We,(Fe-we)*te+Ie,(Be+me)*ne+We)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be-we)*ne+We,(Fe-we)*te+Ie,(Be-me)*ne+We,(Fe-me)*te+Ie,(Be-we)*ne+We)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-we+me*.5)*te+Ie,Be*ne+We,Fe*te+Ie,(Be-we)*ne+We,(Fe-we+me*.5)*te+Ie,(Be-me)*ne+We)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be+we)*ne+We,(Fe-we+me*.5)*te+Ie,(Be+me)*ne+We,Fe*te+Ie,(Be+we)*ne+We).close()),me=ke*.2,we=.2,Fe=.5,Be=.5;var dt=new go.PathFigure((Fe-we)*te+Ie,Be*ne+We,!0);he.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be-we)*ne+We,(Fe-we)*te+Ie,(Be-me)*ne+We,(Fe-me)*te+Ie,(Be-we)*ne+We)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+we)*te+Ie,Be*ne+We,(Fe+me)*te+Ie,(Be-we)*ne+We,(Fe+we)*te+Ie,(Be-me)*ne+We)),dt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be+we)*ne+We,(Fe+we)*te+Ie,(Be+me)*ne+We,(Fe+me)*te+Ie,(Be+we)*ne+We)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-we)*te+Ie,Be*ne+We,(Fe-me)*te+Ie,(Be+we)*ne+We,(Fe-we)*te+Ie,(Be+me)*ne+We)),me=ke*.4,we=.4,Fe=.8,Be=.5;var Ze=new go.PathFigure(Fe*te+Ie,(Be-we)*ne+We,!0);he.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+we)*te+Ie,Be*ne+We,(Fe+me)*te+Ie,(Be-we)*ne+We,(Fe+we)*te+Ie,(Be-me)*ne+We)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be+we)*ne+We,(Fe+we)*te+Ie,(Be+me)*ne+We,(Fe+me)*te+Ie,(Be+we)*ne+We)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+we-me*.5)*te+Ie,Be*ne+We,Fe*te+Ie,(Be+we)*ne+We,(Fe+we-me*.5)*te+Ie,(Be+me)*ne+We)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be-we)*ne+We,(Fe+we-me*.5)*te+Ie,(Be-me)*ne+We,Fe*te+Ie,(Be-we)*ne+We).close()),me=ke*.8,we=.8,Fe=1,Be=.5;var Zt=new go.PathFigure(Fe*te+Ie,(Be-we)*ne+We,!0);return he.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+we)*te+Ie,Be*ne+We,(Fe+me)*te+Ie,(Be-we)*ne+We,(Fe+we)*te+Ie,(Be-me)*ne+We)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be+we)*ne+We,(Fe+we)*te+Ie,(Be+me)*ne+We,(Fe+me)*te+Ie,(Be+we)*ne+We)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+we-me*.5)*te+Ie,Be*ne+We,Fe*te+Ie,(Be+we)*ne+We,(Fe+we-me*.5)*te+Ie,(Be+me)*ne+We)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te+Ie,(Be-we)*ne+We,(Fe+we-me*.5)*te+Ie,(Be-me)*ne+We,Fe*te+Ie,(Be-we)*ne+We).close()),he}),go.Shape.defineFigureGenerator("Email",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.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 he.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)),he}),go.Shape.defineFigureGenerator("Ethernet",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.35*te,0,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,.6*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*te,ne).close());var me=new go.PathFigure(.6*te,ne,!0,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.6*te,ne).close());var we=new go.PathFigure(0,.5*ne,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Move,.5*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.5*te,.4*ne)),we.add(new go.PathSegment(go.PathSegment.Move,.75*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.75*te,.6*ne)),we.add(new go.PathSegment(go.PathSegment.Move,.25*te,.5*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.25*te,.6*ne)),he}),go.Shape.defineFigureGenerator("Power",function(Ae,te,ne){var he=new go.Geometry,se=ke*.4,ge=.4,me=.5,we=.5,Fe=Ce(),Be=Ce(),Ie=Ce(),We=Ce();At(me,we-ge,me+se,we-ge,me+ge,we-se,me+ge,we,.5,Fe,Fe,Be,Ie,We);var nt=ye(Be.x,Be.y),Xe=new go.PathFigure(Be.x*te,Be.y*ne,!0);he.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,we*ne,Ie.x*te,Ie.y*ne,We.x*te,We.y*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne,(me+se)*te,(we+ge)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,we*ne,(me-se)*te,(we+ge)*ne,(me-ge)*te,(we+se)*ne)),At(me-ge,we,me-ge,we-se,me-se,we-ge,me,we-ge,.5,Ie,We,Be,Fe,Fe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.y*ne,Ie.x*te,Ie.y*ne,We.x*te,We.y*ne)),se=ke*.3,ge=.3,At(me-ge,we,me-ge,we-se,me-se,we-ge,me,we-ge,.5,Ie,We,Be,Fe,Fe),Xe.add(new go.PathSegment(go.PathSegment.Line,Be.x*te,Be.y*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*te,we*ne,We.x*te,We.y*ne,Ie.x*te,Ie.y*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+ge)*ne,(me-ge)*te,(we+se)*ne,(me-se)*te,(we+ge)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*te,we*ne,(me+se)*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),At(me,we-ge,me+se,we-ge,me+ge,we-se,me+ge,we,.5,Fe,Fe,Be,Ie,We),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Be.x*te,Be.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 he.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(Be),Oe(Ie),Oe(We),Oe(nt),he.spot1=new go.Spot(.25,.45),he.spot2=new go.Spot(.75,.8),he}),go.Shape.defineFigureGenerator("Fallout",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne/2,!0);he.add(se),se.add(new go.PathSegment(go.PathSegment.Arc,180,360,te/2,ne/2,te/2,ne/2));function ge(me,we,Fe){me.add(new go.PathSegment(go.PathSegment.Move,(.3+we)*te,(.8+Fe)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+we)*te,(.5+Fe)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+we)*te,(.5+Fe)*ne)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+we)*te,(.8+Fe)*ne).close())}return ge(se,0,0),ge(se,.4,0),ge(se,.2,-.3),he}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!0);return he.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()),he.spot1=new go.Spot(.3,.3),he.spot2=new go.Spot(.7,.7),he}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.37*te,0,!0);return he.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()),he}),go.Shape.defineFigureGenerator("FireHazard",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,ne,!0);return he.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()),he.spot1=new go.Spot(.07,.445),he.spot2=new go.Spot(.884,.958),he}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ae,te,ne){var he=new go.Geometry,se=.5,ge=0,me=0,we=se*ke,Fe=.4*Math.SQRT2/2+.5,Be=.5-.5*Math.SQRT2/2,Ie=1,We=.5,nt=.5,Xe=0,dt=new go.PathFigure(Fe*te,(1-Be)*ne,!1);return he.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,We*ne,Ie*te,.7*ne,Ie*te,We*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(nt+ge)*te,(Xe+ge)*ne,(.5+se+ge)*te,(.5-we+ge)*ne,(.5+we+ge)*te,(.5-se+ge)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ge)*te,(.5+me)*ne,(.5-we+ge)*te,(.5-se+me)*ne,(.5-se+ge)*te,(.5-we+me)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*te,.9*ne,(.5-se+ge)*te,(.5+we+me)*ne,(.5-we+ge)*te,.9*ne)),dt.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*te,.8*ne)),dt.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*te,.9*ne)),dt.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*te,.95*ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.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)),he}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.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)),he}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(te,ne,!1);he.add(ge);var me=new go.PathFigure(0,.5*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.5*ne,.2*te,.35*ne,.3*te,.35*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,.5*ne,.7*te,.65*ne,.8*te,.65*ne)),he}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return he.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()),he}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);he.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 he.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)),he}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.7*te,ne,!0);he.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 he.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)),he}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(.335*te,(1-.555)*ne,!0);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.405)*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*te,(1-.555)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te,.68*ne,(1-.12)*te,.46*ne,(1-.02)*te,.54*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*te,(1-.555)*ne,.02*te,.54*ne,.12*te,.46*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*te,(1-.595)*ne));var me=.5-.285,we=.5,Fe=me,Be=Math.PI/4,Ie=4*(1-Math.cos(Be))/(3*Math.sin(Be)),We=Ie*.5,nt=me,Xe=me,dt=Ie*nt,Ze=Ie*Xe;ge.add(new go.PathSegment(go.PathSegment.Bezier,(we-nt)*te,Fe*ne,(we-(dt+nt)/2)*te,(Fe+(Xe+Ze)/2)*ne,(we-nt)*te,(Fe+Ze)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,we*te,(Fe-Xe)*ne,(we-nt)*te,(Fe-Ze)*ne,(we-dt)*te,(Fe-Xe)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(we+nt)*te,Fe*ne,(we+dt)*te,(Fe-Xe)*ne,(we+nt)*te,(Fe-Ze)*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*te,(1-.595)*ne,(we+nt)*te,(Fe+Ze)*ne,(we+(dt+nt)/2)*te,(Fe+(Xe+Ze)/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 Zt=new go.PathFigure(.2*te,ne,!1);he.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Line,.2*te,.8*ne));var yt=new go.PathFigure(.8*te,ne,!1);return he.add(yt),yt.add(new go.PathSegment(go.PathSegment.Line,.8*te,.8*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,0,!0);he.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 he.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)),he}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.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()),he}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.add(se);var ge=new go.PathFigure(te,ne,!1);he.add(ge);var me=new go.PathFigure(.1*te,ne,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("Caution",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.05*te,ne,!0);he.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)),he}),go.Shape.defineFigureGenerator("Recycle",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.45*te,.95*ne,!1);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*te,.3*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*te,.175*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*te,.05*ne,.35*te,0,.375*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*te,.375*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*te,.475*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.315*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*te,.32*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*te,.05*ne)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*te,0,.65*te,.05*ne,.625*te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*te,.0105*ne));var me=new go.PathFigure(.675*te,.575*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*te,.525*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*te,.95*ne,te,.8*ne,te,.85*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.95*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.85*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.725*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.65*te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.7*te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Line,te,.775*ne)),me.add(new go.PathSegment(go.PathSegment.Move,.675*te,.575*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.775*te,.775*ne)),he}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ae,te,ne){var he=new go.Geometry,se=.5,ge=ke*.5,me=new go.PathFigure(te,se*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,se*te,ne,te,(se+ge)*ne,(se+ge)*te,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,se*ne,(se-ge)*te,ne,0,(se+ge)*ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,se*te,0,0,(se-ge)*ne,(se-ge)*te,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,te,se*ne,(se+ge)*te,0,te,(se-ge)*ne));var we=new go.PathFigure(se*te,0,!1);return he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,se*te,.15*ne)),we.add(new go.PathSegment(go.PathSegment.Move,se*te,ne)),we.add(new go.PathSegment(go.PathSegment.Line,se*te,.85*ne)),we.add(new go.PathSegment(go.PathSegment.Move,0,se*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.15*te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Move,te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.85*te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.58*te,.1*ne)),we.add(new go.PathSegment(go.PathSegment.Move,se*te,se*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.78*te,.54*ne)),he}),go.Shape.defineFigureGenerator("Package",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.15*ne,!0);he.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 he.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()),he.spot1=new go.Spot(0,.1),he.spot2=new go.Spot(1,1),he}),go.Shape.defineFigureGenerator("Class",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var me=new go.PathFigure(0,.5*ne,!1);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,.5*ne).close()),he}),go.Shape.defineFigureGenerator("Component",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,ne,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.2*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*ne).close());var me=new go.PathFigure(0,.6*ne,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.6*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.45*te,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*ne).close()),he}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.15*te,.6*ne,!0);he.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 he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*te,.6*ne)),he}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,ne,!0);return he.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()),he}),go.Shape.defineFigureGenerator("Workcell",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.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()),he}),go.Shape.defineFigureGenerator("Supermarket",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);return he.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)),he}),go.Shape.defineFigureGenerator("TruckShipment",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.8*ne).close());var me=.1,we=ke*.1,Fe=.2,Be=.9,Ie=new go.PathFigure((Fe-me)*te,Be*ne,!0);he.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be-me)*ne,(Fe-me)*te,(Be-we)*ne,(Fe-we)*te,(Be-me)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+me)*te,Be*ne,(Fe+we)*te,(Be-me)*ne,(Fe+me)*te,(Be-we)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be+me)*ne,(Fe+me)*te,(Be+we)*ne,(Fe+we)*te,(Be+me)*ne)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-me)*te,Be*ne,(Fe-we)*te,(Be+me)*ne,(Fe-me)*te,(Be+we)*ne).close()),me=.1,we=ke*.1,Fe=.8,Be=.9;var We=new go.PathFigure((Fe-me)*te,Be*ne,!0);return he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be-me)*ne,(Fe-me)*te,(Be-we)*ne,(Fe-we)*te,(Be-me)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+me)*te,Be*ne,(Fe+we)*te,(Be-me)*ne,(Fe+me)*te,(Be-we)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,Fe*te,(Be+me)*ne,(Fe+me)*te,(Be+we)*ne,(Fe+we)*te,(Be+me)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-me)*te,Be*ne,(Fe-we)*te,(Be+me)*ne,(Fe-me)*te,(Be+we)*ne).close()),he}),go.Shape.defineFigureGenerator("KanbanPost",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.2*te,0,!1);return he.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)),he}),go.Shape.defineFigureGenerator("Forklift",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*ne));var me=new go.PathFigure(.5*te,.8*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.1*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.8*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.5*te,.8*ne));var we=new go.PathFigure(.5*te,.7*ne,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te,.7*ne));var Fe=.1,Be=ke*.1,Ie=.1,We=.9,nt=new go.PathFigure((Ie-Fe)*te,We*ne,!0);he.add(nt),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(We-Fe)*ne,(Ie-Fe)*te,(We-Be)*ne,(Ie-Be)*te,(We-Fe)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Fe)*te,We*ne,(Ie+Be)*te,(We-Fe)*ne,(Ie+Fe)*te,(We-Be)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(We+Fe)*ne,(Ie+Fe)*te,(We+Be)*ne,(Ie+Be)*te,(We+Fe)*ne)),nt.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Fe)*te,We*ne,(Ie-Be)*te,(We+Fe)*ne,(Ie-Fe)*te,(We+Be)*ne)),Fe=.1,Be=ke*.1,Ie=.4,We=.9;var Xe=new go.PathFigure((Ie-Fe)*te,We*ne,!0);return he.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(We-Fe)*ne,(Ie-Fe)*te,(We-Be)*ne,(Ie-Be)*te,(We-Fe)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Fe)*te,We*ne,(Ie+Be)*te,(We-Fe)*ne,(Ie+Fe)*te,(We-Be)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ie*te,(We+Fe)*ne,(Ie+Fe)*te,(We+Be)*ne,(Ie+Be)*te,(We+Fe)*ne)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Fe)*te,We*ne,(Ie-Be)*te,(We+Fe)*ne,(Ie-Fe)*te,(We+Be)*ne)),he}),go.Shape.defineFigureGenerator("RailShipment",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.1*te,.4*ne,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*te,.7*ne));var me=new go.PathFigure(.55*te,.4*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.4*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.9*te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.9*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.55*te,.4*ne).close());var Ie=.05,We=ke*.05,nt=.175,Xe=.95,we=new go.PathFigure((nt-Ie)*te,Xe*ne,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,nt*te,(Xe-Ie)*ne,(nt-Ie)*te,(Xe-We)*ne,(nt-We)*te,(Xe-Ie)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(nt+Ie)*te,Xe*ne,(nt+We)*te,(Xe-Ie)*ne,(nt+Ie)*te,(Xe-We)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,nt*te,(Xe+Ie)*ne,(nt+Ie)*te,(Xe+We)*ne,(nt+We)*te,(Xe+Ie)*ne)),we.add(new go.PathSegment(go.PathSegment.Bezier,(nt-Ie)*te,Xe*ne,(nt-We)*te,(Xe+Ie)*ne,(nt-Ie)*te,(Xe+We)*ne));var Ie=.05,We=ke*.05,nt=.375,Xe=.95,Fe=new go.PathFigure((nt-Ie)*te,Xe*ne,!0);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,nt*te,(Xe-Ie)*ne,(nt-Ie)*te,(Xe-We)*ne,(nt-We)*te,(Xe-Ie)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(nt+Ie)*te,Xe*ne,(nt+We)*te,(Xe-Ie)*ne,(nt+Ie)*te,(Xe-We)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,nt*te,(Xe+Ie)*ne,(nt+Ie)*te,(Xe+We)*ne,(nt+We)*te,(Xe+Ie)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(nt-Ie)*te,Xe*ne,(nt-We)*te,(Xe+Ie)*ne,(nt-Ie)*te,(Xe+We)*ne));var Ie=.05,We=ke*.05,nt=.625,Xe=.95,Be=new go.PathFigure((nt-Ie)*te,Xe*ne,!0);he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,nt*te,(Xe-Ie)*ne,(nt-Ie)*te,(Xe-We)*ne,(nt-We)*te,(Xe-Ie)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(nt+Ie)*te,Xe*ne,(nt+We)*te,(Xe-Ie)*ne,(nt+Ie)*te,(Xe-We)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,nt*te,(Xe+Ie)*ne,(nt+Ie)*te,(Xe+We)*ne,(nt+We)*te,(Xe+Ie)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(nt-Ie)*te,Xe*ne,(nt-We)*te,(Xe+Ie)*ne,(nt-Ie)*te,(Xe+We)*ne));var Ie=.05,We=ke*.05,nt=.825,Xe=.95,dt=new go.PathFigure((nt-Ie)*te,Xe*ne,!0);he.add(dt),dt.add(new go.PathSegment(go.PathSegment.Bezier,nt*te,(Xe-Ie)*ne,(nt-Ie)*te,(Xe-We)*ne,(nt-We)*te,(Xe-Ie)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(nt+Ie)*te,Xe*ne,(nt+We)*te,(Xe-Ie)*ne,(nt+Ie)*te,(Xe-We)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,nt*te,(Xe+Ie)*ne,(nt+Ie)*te,(Xe+We)*ne,(nt+We)*te,(Xe+Ie)*ne)),dt.add(new go.PathSegment(go.PathSegment.Bezier,(nt-Ie)*te,Xe*ne,(nt-We)*te,(Xe+Ie)*ne,(nt-Ie)*te,(Xe+We)*ne).close());var Ze=new go.PathFigure(0,ne,!1);return he.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,te,ne).close()),he}),go.Shape.defineFigureGenerator("Warehouse",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te,.2*ne).close());var me=new go.PathFigure(.15*te,ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,.5*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.4*te,ne)),me.add(new go.PathSegment(go.PathSegment.Line,.15*te,ne).close());var we=.05,Fe=ke*.05,Be=.35,Ie=.775,We=new go.PathFigure((Be-we)*te,Ie*ne,!0);return he.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Ie-we)*ne,(Be-we)*te,(Ie-Fe)*ne,(Be-Fe)*te,(Ie-we)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Be+we)*te,Ie*ne,(Be+Fe)*te,(Ie-we)*ne,(Be+we)*te,(Ie-Fe)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,Be*te,(Ie+we)*ne,(Be+we)*te,(Ie+Fe)*ne,(Be+Fe)*te,(Ie+we)*ne)),We.add(new go.PathSegment(go.PathSegment.Bezier,(Be-we)*te,Ie*ne,(Be-Fe)*te,(Ie+we)*ne,(Be-we)*te,(Ie+Fe)*ne).close()),he}),go.Shape.defineFigureGenerator("ControlCenter",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);return he.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()),he}),go.Shape.defineFigureGenerator("Bluetooth",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.75*ne,!1);return he.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)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.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)),he}),go.Shape.defineFigureGenerator("Bookmark",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);return he.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)),he}),go.Shape.defineFigureGenerator("Globe",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!1);return he.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)),he}),go.Shape.defineFigureGenerator("Wave",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.25*ne,!1);return he.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)),he}),go.Shape.defineFigureGenerator("Operator",function(Ae,te,ne){var he=new go.Geometry,se=.3,ge=ke*.3,me=.5,we=.7,Fe=new go.PathFigure((me-se)*te,we*ne,!0);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ne,(me-se)*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ne,(me+ge)*te,(we-se)*ne,(me+se)*te,(we-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ne,(me+se)*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ne,(me-ge)*te,(we+se)*ne,(me-se)*te,(we+ge)*ne));var Be=new go.PathFigure(0,.7*ne,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te,.7*ne,0,0,te,0)),he}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.5*te,0,!0);return he.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)),he}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te,0,!0);return he.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)),he}),go.Shape.defineFigureGenerator("Battery",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);he.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 he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,te,.4*ne)),he}),go.Shape.defineFigureGenerator("Delete",function(Ae,te,ne){var he=new go.Geometry,se=.5,ge=ke*.5,me=.5,we=.5,Fe=new go.PathFigure((me-se)*te,we*ne,!0);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ne,(me-se)*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ne,(me+ge)*te,(we-se)*ne,(me+se)*te,(we-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ne,(me+se)*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ne,(me-ge)*te,(we+se)*ne,(me-se)*te,(we+ge)*ne));var Be=new go.PathFigure(.15*te,.5*ne,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,.85*te,.5*ne)),he}),go.Shape.defineFigureGenerator("Flag",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.1*ne,!0);return he.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()),he}),go.Shape.defineFigureGenerator("Help",function(Ae,te,ne){var he=new go.Geometry,se=.5,ge=ke*.5,me=.5,we=.5,Fe=new go.PathFigure((me-se)*te,we*ne,!1);he.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ne,(me-se)*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ne,(me+ge)*te,(we-se)*ne,(me+se)*te,(we-ge)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ne,(me+se)*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ne,(me-ge)*te,(we+se)*ne,(me-se)*te,(we+ge)*ne).close()),se=.05,ge=ke*.05,me=.5,we=.8;var Be=new go.PathFigure((me-se)*te,we*ne,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we-se)*ne,(me-se)*te,(we-ge)*ne,(me-ge)*te,(we-se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me+se)*te,we*ne,(me+ge)*te,(we-se)*ne,(me+se)*te,(we-ge)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,me*te,(we+se)*ne,(me+se)*te,(we+ge)*ne,(me+ge)*te,(we+se)*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(me-se)*te,we*ne,(me-ge)*te,(we+se)*ne,(me-se)*te,(we+ge)*ne).close()),Be.add(new go.PathSegment(go.PathSegment.Move,.5*te,.7*ne)),Be.add(new go.PathSegment(go.PathSegment.Line,.5*te,.5*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.5*te,.2*ne,.75*te,.475*ne,.75*te,.225*ne)),Be.add(new go.PathSegment(go.PathSegment.Bezier,.3*te,.35*ne,.4*te,.2*ne,.3*te,.25*ne)),he}),go.Shape.defineFigureGenerator("Location",function(Ae,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(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);he.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 he.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)),he}),go.Shape.defineFigureGenerator("Unlocked",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);he.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 he.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)),he}),go.Shape.defineFigureGenerator("Gear",function(Ae,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(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.5*ne,!0);return he.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()),he}),go.Shape.defineFigureGenerator("Map",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,.2*ne,!0);return he.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)),he}),go.Shape.defineFigureGenerator("Eject",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne,!0);he.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 he.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()),he}),go.Shape.defineFigureGenerator("Pencil",function(Ae,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(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*1,ne*1,!1);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.45*ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*te,.85*ne).close());var me=new go.PathFigure(.402*te,.85*ne,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*te,.45*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.45*ne)),me.add(new go.PathSegment(go.PathSegment.Line,.598*te,.85*ne).close());var we=new go.PathFigure(.678*te,.85*ne,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.678*te,.45*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.874*te,.45*ne)),we.add(new go.PathSegment(go.PathSegment.Line,.874*te,.85*ne).close());var Fe=new go.PathFigure(.5*te,.1*ne,!1);return he.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()),he}),go.Shape.defineFigureGenerator("Staircase",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);return he.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()),he}),go.Shape.defineFigureGenerator("5Bars",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,ne*1,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.204,ne*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,te*.388,ne*1).close());var me=new go.PathFigure(te*.408,ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.408,ne*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,te*.592,ne*1).close());var we=new go.PathFigure(te*.612,ne,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.612,ne*(1-.184*3))),we.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*(1-.184*4))),we.add(new go.PathSegment(go.PathSegment.Line,te*.796,ne*1).close());var Fe=new go.PathFigure(te*.816,ne,!0);return he.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()),he}),go.Shape.defineFigureGenerator("PC",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!0);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.1).close());var me=new go.PathFigure(te*.055,.13*ne,!0);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.13)),me.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.16)),me.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.16).close());var we=new go.PathFigure(te*.055,.18*ne,!0);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.18)),we.add(new go.PathSegment(go.PathSegment.Line,te*.245,ne*.21)),we.add(new go.PathSegment(go.PathSegment.Line,te*.055,ne*.21).close());var Fe=new go.PathFigure(te*1,0,!0);return he.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()),he}),go.Shape.defineFigureGenerator("Plane",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(.55*te,ne,!0);return he.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()),he}),go.Shape.defineFigureGenerator("Key",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*1,ne*.5,!0);return he.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()),he}),go.Shape.defineFigureGenerator("FilmTape",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(0,0,!1);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,te*1,te*.3,te*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1));var me=new go.PathFigure(te*.11,ne*.1,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.1)),me.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*1+.028*0),ne*.8)),me.add(new go.PathSegment(go.PathSegment.Line,te*.11,ne*.8).close());var we=new go.PathFigure(te*(.11+.24133333*1+.028*1),ne*.1,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.1)),we.add(new go.PathSegment(go.PathSegment.Line,te*(.11+.24133333*2+.028*1),ne*.8)),we.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 he.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()),he}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ae,te,ne){var he=new go.Geometry,se=8,ge=se*ke,me=new go.PathFigure(se,0,!1);he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.86,0)),me.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*.14)),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),me.add(new go.PathSegment(go.PathSegment.Line,se,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),me.add(new go.PathSegment(go.PathSegment.Line,0,se)),me.add(new go.PathSegment(go.PathSegment.Bezier,se,0,0,ge,ge,0).close());var we=new go.PathFigure(te*.83,0,!1);he.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te*.83,ne*.3)),we.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*.3)),we.add(new go.PathSegment(go.PathSegment.Line,te*.17,ne*0).close());var Fe=new go.PathFigure(te*.83,ne*1,!1);he.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 Be=new go.PathFigure(te*.78,ne*.05,!1);return he.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.05)),Be.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.25)),Be.add(new go.PathSegment(go.PathSegment.Line,te*.78,ne*.25).close()),he}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ae,te,ne){var he=Ae?Ae.parameter1:NaN;(isNaN(he)||he<0)&&(he=15),he=Math.min(he,te/3),he=Math.min(he,ne/3);var se=he*ke,ge=ne*.8,me=new go.Geometry,we=new go.PathFigure(he,0,!0);return me.add(we),we.add(new go.PathSegment(go.PathSegment.Line,te-he,0)),we.add(new go.PathSegment(go.PathSegment.Bezier,te,he,te-se,0,te,se)),we.add(new go.PathSegment(go.PathSegment.Line,te,ge-he)),we.add(new go.PathSegment(go.PathSegment.Bezier,te-he,ge,te,ge-se,te-se,ge)),we.add(new go.PathSegment(go.PathSegment.Line,te*.7,ge)),we.add(new go.PathSegment(go.PathSegment.Line,te*.7,ne)),we.add(new go.PathSegment(go.PathSegment.Line,te*.55,ge)),we.add(new go.PathSegment(go.PathSegment.Line,he,ge)),we.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-he,se,ge,0,ge-se)),we.add(new go.PathSegment(go.PathSegment.Line,0,he)),we.add(new go.PathSegment(go.PathSegment.Bezier,he,0,0,se,se,0).close()),se>1?(me.spot1=new go.Spot(0,0,se,se),me.spot2=new go.Spot(1,.8,-se,-se)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*.45,!0);he.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 he.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()),he}),go.Shape.defineFigureGenerator("Windows",function(Ae,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(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*.1,!1);he.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);he.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.22,ne*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.1,ne*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,te*.275,ne*.25).close());var me=new go.PathFigure(te*.28,ne*.37,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.37)),me.add(new go.PathSegment(go.PathSegment.Line,te*.45,ne*.41)),me.add(new go.PathSegment(go.PathSegment.Line,te*.28,ne*.41).close()),he}),go.Shape.defineFigureGenerator("Beaker",function(Ae,te,ne){var he=new go.Geometry,se=15,ge=se*ke,me=new go.PathFigure(te*.62,ne*.475,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te,ne-se)),me.add(new go.PathSegment(go.PathSegment.Bezier,te-se,ne,te,ne-ge,te-ge,ne)),me.add(new go.PathSegment(go.PathSegment.Line,se,ne)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ne-se,ge,ne,0,ne-ge)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.475)),me.add(new go.PathSegment(go.PathSegment.Line,te*.38,ne*.03)),me.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*0)),me.add(new go.PathSegment(go.PathSegment.Line,te*.62,ne*.03).close()),ge>1?(he.spot1=new go.Spot(0,0,ge,ge),he.spot2=new go.Spot(1,1,-ge,-ge)):(he.spot1=go.Spot.TopLeft,he.spot2=go.Spot.BottomRight),he}),go.Shape.defineFigureGenerator("Download",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var me=new go.PathFigure(te*.4,ne*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.66)),me.add(new go.PathSegment(go.PathSegment.Line,te*(1-.26),ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.44)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*0).close()),he}),go.Shape.defineFigureGenerator("Bin",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.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()),he}),go.Shape.defineFigureGenerator("Upload",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*0,ne*1,!0);he.add(se);var ge=.1/.3;se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*1)),se.add(new go.PathSegment(go.PathSegment.Line,te*1,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.8,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*.66,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.755,ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*.93,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.64,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.61,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.5,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.39,ne*.75)),se.add(new go.PathSegment(go.PathSegment.Line,te*.36,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*.07,ne*(1-ge))),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.755),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*.055)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.66),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*(1-.8),ne*0)),se.add(new go.PathSegment(go.PathSegment.Line,te*0,ne*(1-ge)).close());var me=new go.PathFigure(te*.5,ne*0,!0);return he.add(me),me.add(new go.PathSegment(go.PathSegment.Line,te*.26,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.4,ne*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.63)),me.add(new go.PathSegment(go.PathSegment.Line,te*.6,ne*.25)),me.add(new go.PathSegment(go.PathSegment.Line,te*.74,ne*.25).close()),he}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);return he.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()),he}),go.Shape.defineFigureGenerator("Drink",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.15,ne*0,!1);he.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 he.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()),he}),go.Shape.defineFigureGenerator("4Arrows",function(Ae,te,ne){var he=new go.Geometry,se=new go.PathFigure(te*.5,ne*0,!0);return he.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()),he}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Kn={},kn="5.0",ye={},Ce=null,Oe=!1,tt=!1,At=null,Ue=!1,Je=null,ke=null,Ot=0;Ot<arguments.length;Ot++){var Lt=arguments[Ot];if(Lt!==null)switch(typeof Lt){case"number":kn=Lt.toFixed(1);break;case"string":Lt.match(new RegExp("^[0-9]\\.[0-9]+$"))?kn=Lt:At=Lt;break;case"object":typeof Lt.is3D!="undefined"?Ce=Lt:ye=Lt;break;case"boolean":Oe=Lt,tt=!0;break}}Ce===null&&(Ce={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&&!tt&&(Oe=!0)),At!==null&&ye.id===void 0&&(ye.id=At);var ot="",Rt="",xt=!1,zt=null,Ae=null,te=null,ne=!1,he=null,se=null,ge=null,me=null,we=null;ye.height!==void 0&&(ye.height=Math.round(ye.height)),ye.width!==void 0&&(ye.width=Math.round(ye.width));var Fe=function(Ft){return parseFloat(Ft)>4?parseFloat(Ft):5};Kn.setHTML5Codebase=function(Ft,Xt){ke=Ft,wt(Ft,Xt)},Kn.setJavaCodebase=Kn.setJavaCodebaseVersion=Kn.isCompiledInstalled=Kn.setPreCompiledScriptPath=Kn.setPreCompiledResourcePath=function(){},Kn.setHTML5CodebaseVersion=function(Ft,Xt){var Cn=parseFloat(Ft);if(Cn!==NaN&&Cn<5){console.log("The GeoGebra HTML5 codebase version "+Cn+" is deprecated. Using version latest instead.");return}Je=Ft,je(Ft,Xt)},Kn.getHTML5CodebaseVersion=function(){return Ae},Kn.getParameters=function(){return ye},Kn.setFontsCSSURL=function(Ft){me=Ft},Kn.setGiacJSURL=function(Ft){},Kn.setJNLPFile=function(Ft){ot=Ft},Kn.setJNLPBaseDir=function(Ft){},Kn.inject=function(){function Ft(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xt="auto",Cn=ye.id,Qn,gn=!1,Gn=0;Gn<arguments.length;Gn++){var bt=arguments[Gn];typeof bt=="string"?(bt=bt.toLowerCase(),bt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xt=bt:Cn=arguments[Gn]):typeof bt=="boolean"?gn=bt:bt instanceof HTMLElement&&(Qn=bt)}zn();function zn(){if(!Ue){setTimeout(zn,200);return}Xt=yn(Xt);var ai=Qn||document.getElementById(Cn);if(!ai){console.log("possibly bug on ajax loading? ");return}if(Kn.removeExistingApplet(ai,!1),ye.width===void 0&&ai.clientWidth&&(ye.width=ai.clientWidth),ye.height===void 0&&ai.clientHeight&&(ye.height=ai.clientHeight),!(ye.width&&ye.height)&&Xt==="html5"&&(delete ye.width,delete ye.height),zt=Xt,Xt==="screenshot")yt(ai,ye);else{var He=!1;ye.hasOwnProperty("playButton")&&ye.playButton||ye.hasOwnProperty("clickToLoad")&&ye.clickToLoad?He=!0:ye.hasOwnProperty("playButtonAutoDecide")&&ye.playButtonAutoDecide&&(He=(!Be()||Ft())&&Ie()),He?(zt="screenshot",Gt(ai,ye,gn,Xt)):Zt(ai,ye,gn)}}};function Be(){try{return window.self!==window.top}catch(Ft){return!0}}function Ie(){return ye.hasOwnProperty("screenshotGenerator")&&ye.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Kn.getViews=function(){return Ce},Kn.isJavaInstalled=function(){return!1};var We=function(Ft){var Xt=function(Gn){var bt=JSON.parse(Gn),zn=function(Le){return Le.type=="G"||Le.type=="E"},ai=bt.elements?bt.elements.filter(zn)[0]:bt;if(!ai||!ai.url){Cn();return}ye.fileName=ai.url,nt(ai.settings||{}),Ce.is3D=!0;var He="https://www.geogebra.org/images/";Kn.setPreviewImage(he||ai.previewUrl,He+"GeoGebra_loading.png",He+"applet_play.png"),Ft()},Cn=function(){ye.onError&&ye.onError(),tn("Error: Fetching material (id "+ye.material_id+") failed.",ye)},Qn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",gn="/materials/"+ye.material_id+"?scope=basic";Xe("https://"+Qn+"/api/proxy.php?path="+encodeURIComponent(gn),Xt,Cn)};function nt(Ft){var Xt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Cn){Ft[Cn]=!!Ft[Cn]}),Xt.forEach(function(Cn){ye[Cn]===void 0&&Ft[Cn]!==void 0&&(ye[Cn]=Ft[Cn])}),ye.showToolBarHelp===void 0&&(ye.showToolBarHelp=ye.showToolBar)}function Xe(Ft,Xt,Cn){var Qn=new XMLHttpRequest;Qn.open("GET",Ft),Qn.onload=function(){Xt(Qn.responseText)},Qn.onerror=Cn,Qn.send()}Kn.isHTML5Installed=function(){return!0},Kn.getLoadedAppletType=function(){return zt},Kn.setPreviewImage=function(Ft,Xt,Cn){he=Ft,se=Xt,ge=Cn},Kn.removeExistingApplet=function(Ft,Xt){var Cn;typeof Ft=="string"&&(Ft=document.getElementById(Ft)),zt=null;var Qn=null;for(Cn=0;Cn<Ft.childNodes.length;Cn++){var gn=Ft.childNodes[Cn],Gn=gn.className;Gn==="applet_screenshot"?Xt?(gn.style.display="block",zt="screenshot"):gn.style.display="none":Gn!=="applet_scaler prerender"&&(Ft.removeChild(gn),Qn=Gn&&Gn.indexOf("appletParameters")!=-1?gn.id:null,Cn--)}var bt=ye.id!==void 0?ye.id:Qn,zn=window[bt];zn&&typeof zn.getBase64=="function"&&(zn.remove(),window[bt]=null)},Kn.refreshHitPoints=function(){if(Fe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ft=Kn.getAppletObject();return Ft&&typeof Ft.recalculateEnvironments=="function"?(Ft.recalculateEnvironments(),!0):!1},Kn.startAnimation=function(){var Ft=Kn.getAppletObject();return Ft&&typeof Ft.startAnimation=="function"?(Ft.startAnimation(),!0):!1},Kn.stopAnimation=function(){var Ft=Kn.getAppletObject();return Ft&&typeof Ft.stopAnimation=="function"?(Ft.stopAnimation(),!0):!1},Kn.getAppletObject=function(){var Ft=ye.id!==void 0?ye.id:"ggbApplet";return window[Ft]},Kn.resize=function(){};var dt=function(Ft,Xt,Cn){var Qn=document.createElement("param");Qn.setAttribute("name",Xt),Qn.setAttribute("value",Cn),Ft.appendChild(Qn)},Ze=function(Ft){return Ft&&Ft!=="false"},Zt=function(Ft,Xt,Cn){Fe(Ae)<=4.2&&(Cn=!0);var Qn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ae||ggbHTML5LoadedCodebaseIsWebSimple&&!ne)&&(Qn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var gn=document.createElement("div");gn.classList.add("appletParameters","notranslate");var Gn=Xt.width,bt=Xt.height;if(Xt.disableAutoScale=Xt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xt.disableAutoScale,Xt.width!==void 0)if(Fe(Ae)<=4.4)Ze(Xt.showToolBar)&&(Xt.height-=7),Ze(Xt.showAlgebraInput)&&(Xt.height-=37),Xt.width<605&&Ze(Xt.showToolBar)&&(Xt.width=605,Gn=605);else{var zn=100;(Ze(Xt.showToolBar)||Ze(Xt.showMenuBar))&&(Xt.hasOwnProperty("customToolBar")&&(Xt.customToolbar=Xt.customToolBar),zn=Ze(Xt.showMenuBar)?245:155),Gn<zn&&(Xt.width=zn,Gn=zn)}gn.style.border="none",gn.style.display="inline-block";for(var ai in Xt)Xt.hasOwnProperty(ai)&&ai!=="appletOnLoad"&&gn.setAttribute("data-param-"+ai,Xt[ai]);me&&gn.setAttribute("data-param-fontscssurl",me),Kn.resize=function(){GGBAppletUtils.responsiveResize(Ft,Xt)},window.addEventListener("resize",function(rt){Kn.resize()});var He=typeof Xt.appletOnLoad=="function"?Xt.appletOnLoad:function(){};if(!Cn&&Xt.width!==void 0){Xt.hasOwnProperty("showSplash")||gn.setAttribute("data-param-showSplash","false");var Le=Ft.querySelector(".applet_scaler.prerender"),xe=Le!==null;if(xe)var Ne=Le.querySelector(".ggb_preview");else{var Ne=hn(Gn,bt,Xt.borderColor,!1);Le=document.createElement("div"),Le.className="applet_scaler",Le.style.position="relative",Le.style.display="block",Le.style.width=Gn+"px",Le.style.height=bt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Le,"66%"),Fe(Ae)>=5?(Xt.appletOnLoad=function(rt){var Mt=Ft.querySelector(".ggb_preview");Mt&&Mt.parentNode.removeChild(Mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Le),window.GGBT_wsf_view&&$(window).trigger("resize"),He(rt)},xe||Le.appendChild(Ne)):gn.appendChild(Ne),Le.appendChild(gn),xe||Ft.appendChild(Le),setTimeout(function(){Kn.resize()},1)}else{var De=document.createElement("div");De.className="applet_scaler",De.style.position="relative",De.style.display="block",De.appendChild(gn),Ft.appendChild(De),Xt.appletOnLoad=function(rt){Kn.resize(),He(rt)}}function ve(rt,Mt){Mt&&typeof Mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(rt,Mt.appletOnLoad):renderGGBElement(rt),tn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Mt)}function $e(rt,Mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:rt,params:Mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(pn){ve(pn.article,pn.params)}),html5AppletsToProcess=null)},Fe(Ae)<5&&(rt.className+=" geogebraweb")):ve(rt,Mt)}if(Qn){scriptLoadStarted=!0;for(var mt=0;mt<gn.childNodes.length;mt++){var et=gn.childNodes[mt].tagName;et==="TABLE"&&(gn.removeChild(gn.childNodes[mt]),mt--)}if(ggbHTML5LoadedScript!==null){var Ve=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ve!=null&&Ve.parentNode.removeChild(Ve)}var gt=document.createElement("script"),ft=function(){$e(gn,Xt)};gt.src=Rt+te,ggbHTML5LoadedCodebaseIsWebSimple=ne,ggbHTML5LoadedCodebaseVersion=Ae,ggbHTML5LoadedScript=gt.src,tn("GeoGebra HTML5 codebase loaded: '"+Rt+"'.",Xt),!ke&&(!Je||Je=="5.0")?(ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ft()):Rt.requirejs?__webpack_require__.e(4184).then(function(){var rt=[__webpack_require__(74620)];ft.apply(null,rt)}.bind(this)).catch(__webpack_require__.oe):(gt.onload=ft,Ft.appendChild(gt))}else $e(gn,Xt);Xt.height=bt,Xt.width=Gn},yt=function(Ft,Xt,Cn){var Qn=hn(Xt.width,Xt.height,Xt.borderColor,Cn),gn=document.createElement("div");gn.style.position="relative",gn.style.display="block",gn.style.width=Xt.width+"px",gn.style.height=Xt.height+"px",gn.className="applet_screenshot applet_scaler"+(Cn?" applet_screenshot_play":""),gn.appendChild(Qn);var Gn=GGBAppletUtils.getScale(Xt,Ft,Cn);Cn?(Ft.appendChild(Vt()),window.GGBT_wsf_view||(Ft.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(gn,"66%"),Ft.appendChild(gn),Gn!==1&&!isNaN(Gn)&&(GGBAppletUtils.scaleElement(gn,Gn),gn.style.width=Xt.width+"px",gn.style.height=Xt.height+"px",gn.parentNode.style.width=Xt.width*Gn+"px",gn.parentNode.style.height=Xt.height*Gn+"px"),Kn.resize=function(){an(Ft,Qn,gn,Cn)},window.addEventListener("resize",function(bt){Kn.resize()}),Kn.resize()};function an(Ft,Xt,Cn,Qn){if(Ft.contains(Xt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ft.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ft)}var gn=GGBAppletUtils.getScale(ye,Ft,Qn);Cn.parentNode!==null&&(!isNaN(gn)&&gn!==1?(GGBAppletUtils.scaleElement(Cn,gn),Cn.parentNode.style.width=ye.width*gn+"px",Cn.parentNode.style.height=ye.height*gn+"px"):(GGBAppletUtils.scaleElement(Cn,1),Cn.parentNode.style.width=ye.width+"px",Cn.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ft),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Kn.onExitFullscreen=function(Ft,Xt){Xt.appendChild(Ft)};var Gt=function(Ft,Xt,Cn,Qn){yt(Ft,Xt,!0);for(var gn=function(){var zn=[];for(bt=0;bt<Ft.childNodes.length;bt++)zn.push(Ft.childNodes[bt]);if(window.GGBT_wsf_view){var ai=window.GGBT_wsf_view.renderFullScreen(Ft,Xt.id),He=document.getElementById("fullscreencontainer"),Le=jQuery(Ft).find(".fullscreencontent");Le.length>0?(ai.remove(),Le.attr("id","fullscreencontent").show(),jQuery(He).append(Le),window.dispatchEvent(new Event("resize"))):Zt(ai,Xt,!1),window.GGBT_wsf_view.launchFullScreen(He)}else zt=Qn,Zt(Ft,Xt,!1);if(!window.GGBT_wsf_view)for(bt=0;bt<zn.length;bt++)Ft.removeChild(zn[bt])},Gn=Ft.getElementsByClassName("ggb_preview_play"),bt=0;bt<Gn.length;bt++)Gn[bt].addEventListener("click",gn,!1),Gn[bt].addEventListener("ontouchstart",gn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ft),Ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Vt=function(){var Ft=document.createElement("div");if(Ft.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Xt='.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");}',Cn=document.createElement("style");Cn.styleSheet?Cn.styleSheet.cssText=Xt:Cn.appendChild(document.createTextNode(Xt)),document.getElementsByTagName("head")[0].appendChild(Cn)}return Ft},hn=function(Ft,Xt,Cn,Qn){var gn=document.createElement("div");gn.className="ggb_preview",gn.style.position="absolute",gn.style.zIndex="90",gn.style.width=Ft-2+"px",gn.style.height=Xt-2+"px",gn.style.top="0px",gn.style.left="0px",gn.style.overflow="hidden",gn.style.backgroundColor="white";var Gn="lightgrey";Cn!==void 0&&(Cn==="none"?Gn="transparent":Gn=Cn),gn.style.border="1px solid "+Gn;var bt=document.createElement("img");if(bt.style.position="relative",bt.style.zIndex="1000",bt.style.top="-1px",bt.style.left="-1px",he!==null&&bt.setAttribute("src",he),bt.style.opacity=.7,se!==null){var zn,ai,He;if(!Qn){zn=document.createElement("img"),zn.style.position="absolute",zn.style.zIndex="1001",zn.style.opacity=1,bt.style.opacity=.3,ai=360,ai>Ft/4*3&&(ai=Ft/4*3),He=ai/5.8,zn.setAttribute("src",se),zn.setAttribute("width",ai),zn.setAttribute("height",He);var Le=(Ft-ai)/2,xe=(Xt-He)/2;zn.style.left=Le+"px",zn.style.top=xe+"px",gn.appendChild(zn)}}return gn.appendChild(bt),gn},yn=function(Ft){return Ft=Ft.toLowerCase(),Ft==="html5"||Ft==="screenshot"?Ft:"html5"},vt=["web","webSimple","web3d","tablet","tablet3d","phone"],je=function(Ft,Xt){if(Ae=Ft,Xt){wt(Ae,!0);return}var Cn=!Oe;if(Cn){var Qn=Fe(Ae);!isNaN(Qn)&&Qn<4.4&&(Cn=!1)}var gn,Gn;window.location.protocol.substr(0,4)==="http"?gn=window.location.protocol:gn="http:";var bt=Ae.indexOf("//");bt>0?Gn=Ae:bt===0?Gn=gn+Ae:Gn="https://www.geogebra.org/apps/5.2.814.0/";for(var zn in vt)if(Ae.slice(vt[zn].length*-1)===vt[zn]||Ae.slice((vt[zn].length+1)*-1)===vt[zn]+"/"){wt(Gn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Cn&&!Ce.is3D&&!Ce.AV&&!Ce.SV&&!Ce.CV&&!Ce.EV2&&!Ce.CP&&!Ce.PC&&!Ce.DA&&!Ce.FI&&!Ce.PV&&!Ze(ye.showToolBar)&&!Ze(ye.showMenuBar)&&!Ze(ye.showAlgebraInput)&&!Ze(ye.enableRightClick)&&(!ye.appName||ye.appName=="classic")?Gn+="webSimple/":Gn+="web3d/",wt(Gn,!1)},wt=function(Ft,Xt){if(Ft.requirejs){Rt=Ft;return}Ft.slice(-1)!=="/"&&(Ft+="/"),Rt=Ft,Xt===null&&(Xt=Ft.indexOf("http")===-1),xt=Xt,te="web.nocache.js",ne=!1;var Cn=Rt.split("/");Cn.length>1&&(!Xt&&Cn[Cn.length-2]==="webSimple"?(te="webSimple.nocache.js",ne=!0):vt.indexOf(Cn[Cn.length-2])>=0&&(te=Cn[Cn.length-2]+".nocache.js")),Cn=Ft.split("/"),Ae=Cn[Cn.length-3],Ae.substr(0,4)==="test"?Ae=Ae.substr(4,1)+"."+Ae.substr(5,1):(Ae.substr(0,3)==="war"||Ae.substr(0,4)==="beta")&&(Ae="5.0");var Qn=parseFloat(Ae);Qn!==NaN&&Qn<5&&Ft.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Qn+" is deprecated. Using version latest instead."),je("5.0",Xt))},tn=function(Ft,Xt){window.console&&window.console.log&&(!Xt||typeof Xt.showLogging=="undefined"||Xt.showLogging&&Xt.showLogging!=="false")&&console.log(Ft)};ye.material_id!==void 0?We(bn):bn();function bn(){var Ft=kn;Je!==null?Ft=Je:parseFloat(Ft)<5&&(Ft="5.0"),je(Ft,!1),ke!==null&&wt(ke,xt),Ue=!0}return Kn},GGBAppletUtils=function(){"use strict";function Kn(){return window.GGBT_wsf_edit!==void 0}function kn(Ue,Je){Je!=1?(Ue.style.transformOrigin="0% 0% 0px",Ue.style.webkitTransformOrigin="0% 0% 0px",Ue.style.transform="scale("+Je+","+Je+")",Ue.style.webkitTransform="scale("+Je+","+Je+")",Ue.style.maxWidth="initial",Ue.querySelector(".ggb_preview")!==null&&(Ue.querySelector(".ggb_preview").style.maxWidth="initial"),Ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ue.style.transform="none",Ue.style.webkitTransform="none")}function ye(Ue,Je,ke,Ot,Lt,ot){var Rt=null;if(ot!=null&&ot!="")for(var xt=Ue.parentNode;xt!=null;)if((" "+xt.className+" ").indexOf(" "+ot+" ")>-1){Rt=xt;break}else xt=xt.parentNode;var zt=0,Ae=0,te=0,ne=0,he=0,se=0,ge=0;if(Rt)zt=Rt.offsetWidth,Ae=Math.max(Ot?Rt.offsetWidth:0,Rt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(zt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ae=Math.min(window.innerHeight,document.documentElement.clientHeight),te=zt):(zt=window.innerWidth,Ae=window.innerHeight,te=window.innerWidth),Ue){var me=Ue.getBoundingClientRect();me.left>0&&me.left<=zt&&(Lt===void 0||!Lt)&&(document.dir==="rtl"?(he=zt-me.width-me.left,se=te<=480?10:30):(se=me.left,he=te<=480?10:30),ne=se+he)}if(Ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var we=Ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ne=0,ge=40)}}return Ue&&((ke===void 0||!ke)&&Je>0&&Je+ne<zt?zt=Je:zt-=ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ke===void 0||!ke)&&(Ae-=ge)),{width:zt,height:Ae}}function Ce(Ue,Je,ke,Ot,Lt){if(Ue.isScreenshoGenerator)return 1;var ot=Ot!==void 0&&Ot,Rt=Ue.noScaleMargin!=null&&Ue.noScaleMargin,xt=function(we){return we&&we!=="false"},zt=xt(Ue.autoHeight),Ae=ye(Je,Ue.width,ke,zt,ot&&window.GGBT_wsf_view||Rt,Lt),te=parseInt(Ae.width),ne=Ue.width,he=Ue.height;if(ne===void 0){var se=Je.querySelector(".appletParameters");se&&(ne=se.offsetWidth,he=se.offsetHeight)}var ge=te/ne,me=ot?1:Ae.height/he;return ke!==void 0&&!ke&&(ge=Math.min(1,ge),me=Math.min(1,me)),Math.min(ge,me)}function Oe(Ue,Je,ke){var Ot=1,Lt,ot=!1;if(Ue.hasOwnProperty("allowUpscale")&&(ot=Ue.allowUpscale),Ue.hasOwnProperty("scale")&&(Ot=parseFloat(Ue.scale),(isNaN(Ot)||Ot===null||Ot===0)&&(Ot=1),Ot>1&&(ot=!0)),Je&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ot=!0),!(Ue.hasOwnProperty("disableAutoScale")&&Ue.disableAutoScale))Lt=Ce(Ue,Je,ot,ke,Ue.scaleContainerClass);else return Ot;return ot&&(!Ue.hasOwnProperty("scale")||Ot===1)?Lt:Math.min(Ot,Lt)}function tt(Ue){var Je=Math.min(window.innerWidth,document.documentElement.clientWidth),ke=Math.min(window.innerHeight,document.documentElement.clientHeight),Ot=Ue.getBoundingClientRect(),Lt=(Je-Ot.width)/2,ot=(ke-Ot.height)/2;ot<0&&(ot=0),Ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Lt<40?Ue.style.left="40px":Ue.style.left=Lt+"px",Ue.style.top=ot+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ot<40?Ue.style.top="40px":Ue.style.top=ot+"px",Ue.style.left=Lt+"px")}function At(Ue,Je){var ke=Ue.querySelector(".appletParameters");if(ke){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Je.id!==ke.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ue)}if(ke.parentElement&&/fullscreen/.test(ke.parentElement.className))return;var Ot=Oe(Je,Ue);Kn()&&ke.setAttribute("data-param-scale",Ot);for(var Lt=null,ot=0;ot<Ue.childNodes.length;ot++)if(Ue.childNodes[ot].className!==void 0&&Ue.childNodes[ot].className.match(/^applet_scaler/)){Lt=Ue.childNodes[ot];break}if(Lt!==null&&Lt.querySelector(".noscale")!==null)return;var Rt=Je.id!==void 0?Je.id:"ggbApplet",xt=window[Rt];(xt==null||!xt.recalculateEnvironments)&&Lt!==null&&!Lt.className.match(/fullscreen/)&&(Lt.parentNode.style.transform="",!isNaN(Ot)&&Ot!==1?(Lt.parentNode.style.width=Je.width*Ot+"px",Lt.parentNode.style.height=Je.height*Ot+"px",kn(Lt,Ot)):(kn(Lt,1),Lt.parentNode.style.width=Je.width+"px",Lt.parentNode.style.height=Je.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&tt(Ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ke).parents(".content-added-content"))}}return{responsiveResize:At,isFlexibleWorksheetEditor:Kn,positionCenter:tt,getScale:Oe,scaleElement:kn}}();__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 Kn=n.location.search;return Kn.indexOf(J)!=-1||Kn.indexOf(K)!=-1}function q(Kn,kn){}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(Kn){var kn=s[L].bindings;s[L].bindings=function(){for(var ye=kn?kn():{},Ce=Kn[webModule.__softPermutationId],Oe=O;Oe<Ce.length;Oe++){var tt=Ce[Oe];ye[tt[O]]=tt[P]}return ye}};var t;function u(){return v(),t}function v(){if(!t){var Kn=o.createElement(Q);if(Kn.id=L,Kn.style.cssText=R+S,Kn.tabIndex=-1,o.body.appendChild(Kn),t=Kn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var kn=document.compatMode==U?V:W;t.write(kn+X),t.close()}}}function w(Kn){function kn(Ce){function Oe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var tt=Oe();if(tt){Ce();return}function At(){if(!tt){if(!Oe())return;tt=!0,Ce(),o.removeEventListener&&o.removeEventListener(Z,At,!1),Ue&&clearInterval(Ue)}}o.addEventListener&&o.addEventListener(Z,At,!1);var Ue=setInterval(function(){At()},$)}function ye(Ce){var Oe=u(),tt=Oe.body,At=Oe.createElement(_);At.language=ab,At.crossOrigin=W,At.src=Ce,webModule.__errFn&&(At.onerror=function(){webModule.__errFn(L,new Error(bb+Ce))}),tt.appendChild(At)}kn(function(){ye(Kn)})}webModule.__startLoadingFragment=function(Kn){return C(Kn)},webModule.__installRunAsyncCode=function(Kn){var kn=u(),ye=kn.body,Ce=kn.createElement(_);Ce.language=ab,Ce.text=Kn,ye.appendChild(Ce),ye.removeChild(Ce)};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(Kn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Kn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Kn){var kn=c[Kn];return kn==null?null:kn},r=d,webModule.__errFn=e}function B(){function Kn(Ue){var Je=Ue.lastIndexOf(rb);Je==-1&&(Je=Ue.length);var ke=Ue.indexOf(sb);ke==-1&&(ke=Ue.length);var Ot=Ue.lastIndexOf(tb,Math.min(ke,Je));return Ot>=O?Ue.substring(O,Ot+P):W}function kn(Ue){if(!Ue.match(/^\w+:\/\//)){var Je=o.createElement(ub);Je.src=Ue+vb,Ue=Kn(Je.src)}return Ue}function ye(){var Ue=__gwt_getMetaProperty(wb);return Ue!=null?Ue:W}function Ce(){for(var Ue=o.getElementsByTagName(_),Je=O;Je<Ue.length;++Je)if(Ue[Je].src.indexOf(xb)!=-1)return Kn(Ue[Je].src);return W}function Oe(){var Ue=o.getElementsByTagName(yb);return Ue.length>O?Ue[Ue.length-P].href:W}function tt(){var Ue=o.location;return Ue.href==Ue.protocol+zb+Ue.host+Ue.pathname+Ue.search+Ue.hash}var At=ye();return At==W&&(At=Ce()),At==W&&(At=Oe()),At==W&&tt()&&(At=Kn(o.location.href)),At=kn(At),At}function C(Kn){return Kn.match(/^\//)||Kn.match(/^[a-zA-Z]+:\/\//)?Kn:webModule.__moduleBase+Kn}function D(){var Kn=[],kn=O,ye=[],Ce=[];function Oe(Ue){var Je=Ce[Ue](),ke=ye[Ue];if(Je in ke)return Je;var Ot=[];for(var Lt in ke)Ot[ke[Lt]]=Lt;throw r&&r(Ue,Ot,Je),null}if(__gwt_isKnownPropertyValue=function(Ue,Je){return Je in ye[Ue]},webModule.__getPropMap=function(){var Ue={};for(var Je in ye)ye.hasOwnProperty(Je)&&(Ue[Je]=Oe(Je));return Ue},webModule.__computePropValue=Oe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var tt;try{tt=Cb;var At=tt.indexOf(Db);At!=-1&&(kn=parseInt(tt.substring(At+P),$),tt=tt.substring(O,At))}catch(Ue){}return webModule.__softPermutationId=kn,C(tt+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(Kn,kn,ye){"use strict";ye.d(kn,{Ax:function(){return At},Ds:function(){return Ue},KI:function(){return ke},SI:function(){return tt},f1:function(){return Oe}});var Ce=ye(3294);function Oe(Ot){let Lt=!0;if(Ot.length>0){for(let ot=0;ot<Ot.length;ot++)if(Ot[ot].compile_success==0||!Ot[ot].compile_success){Lt=!1;break}}else Lt=!1;return Lt}function tt(Ot,Lt=""){let ot=[];for(let Rt=0;Rt<Ot.length;Rt++){let xt=Ot[Rt],zt=Lt?`${Lt}/${xt.name}`:`${xt.name}`;ot.push({title:xt.name,type:xt.type,isLeaf:xt.type!=="tree",key:zt})}return ot}function At(Ot,Lt,ot){for(let Rt=0;Rt<Ot.length;Rt++){let xt=Ot[Rt];if(xt.key===Lt){xt.children=ot;break}xt.children&&At(xt.children,Lt,ot)}return Ot}function Ue(Ot,Lt,ot){let Rt;return function(){let xt=this,zt=arguments,Ae=function(){Rt=null,ot||Ot.apply(xt,zt)},te=ot&&!Rt;clearTimeout(Rt),Rt=setTimeout(Ae,Lt),te&&Ot.apply(xt,zt)}}const Je=!0,ke=Ce.Z.API_SERVER},73524:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Rt}});var Ce=ye(59301),Oe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},tt=ye(92310),At=ye.n(tt),Ue=ye(71418),Je=ye(2859),ke=ye(99064),Ot=ye(955),Lt=(xt,zt,Ae)=>new Promise((te,ne)=>{var he=me=>{try{ge(Ae.next(me))}catch(we){ne(we)}},se=me=>{try{ge(Ae.throw(me))}catch(we){ne(we)}},ge=me=>me.done?te(me.value):Promise.resolve(me.value).then(he,se);ge((Ae=Ae.apply(xt,zt)).next())}),Rt=({data:xt,className:zt,fullWidth:Ae,style:te={},onClose:ne,onOk:he,showFullTools:se,noAssociationId:ge})=>{const me=(0,Ce.useRef)(null),we=(0,Ce.useRef)(null),Fe=(0,Ce.useRef)(null),Be=(0,Ce.useRef)(null),[Ie,We]=(0,Ce.useState)(!1),[nt,Xe]=(0,Ce.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ce.useEffect)(()=>(Fe.current||(Fe.current=document.createElement("style"),document.head.appendChild(Fe.current)),xt!=null&&xt.visible?(document.body.setAttribute("data-custom","y-hidden"),Fe.current.innerHTML=" html { overflow-y: hidden; }",xt!=null&&xt.src&&dt()):(document.body.removeAttribute("data-custom"),Fe.current&&(document.head.removeChild(Fe.current),Fe.current=null)),()=>{document.body.removeAttribute("data-custom"),Fe.current&&(document.head.removeChild(Fe.current),Fe.current=null)}),[xt==null?void 0:xt.visible]);const dt=()=>Lt(void 0,null,function*(){We(!0),Xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const an=yield(0,Ot.ZJ)(xt==null?void 0:xt.src);me.current.src="",me.current.src=an,me.current.onload=function(){yt()},We(!1),Xe("")}),Ze=an=>Lt(void 0,null,function*(){We(!0),Xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Gt=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:xt.title,file:an.dataUrl}});Gt!=null&&Gt.id&&!ge?(yield(0,ke.ZP)(`/api/attachments/${xt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Gt==null?void 0:Gt.id,settings:JSON.stringify(an.state)}})).status===0&&he():Gt!=null&&Gt.id&&he(Gt),We(!1),Xe("")}),Zt=()=>{const an=document.querySelector('a[href="https://markerjs.com/"]');an&&an.parentNode&&(an.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(Vt=>{const hn=document.querySelector(Vt.name);hn&&hn.setAttribute("title",Vt.title)})},yt=()=>{we.current=new Je.hP(me.current),we.current.targetRoot=Be.current,we.current.addEventListener("render",Ze),we.current.addEventListener("beforeclose",ne),se&&(we.current.availableMarkerTypes=we.current.ALL_MARKER_TYPES,we.current.uiStyleSettings.redoButtonVisible=!0,we.current.uiStyleSettings.notesButtonVisible=!0,we.current.uiStyleSettings.zoomButtonVisible=!0,we.current.uiStyleSettings.zoomOutButtonVisible=!0,we.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=we.current.uiStyleSettings,we.current.show(),xt!=null&&xt.snapshotData&&we.current.restoreState(xt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Zt()},300)};return Ce.createElement(Ce.Fragment,null,(xt==null?void 0:xt.visible)&&Ce.createElement(Ue.Z,{spinning:Ie,tip:nt,style:{position:"absolute",width:"100vw"}},Ce.createElement("div",{ref:Be,className:At()(Oe.imageDimensions,zt,Ae?Oe.fullWidth:""),style:te},Ce.createElement("img",{className:Oe.img,ref:me}))))}},41588:function(Kn,kn,ye){"use strict";var Ce=ye(59301),Oe=ye(95237),tt=ye(43604),At=ye(99313),Ue=ye(3113),Je=ye(85149),ke=ye(88010),Ot=ye(48136),Lt=ye(59301);const ot=(0,Ce.forwardRef)(({callback:Rt,showSaveButton:xt,value:zt=""},Ae)=>{const te=(0,Ce.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 "}]}]}],he=[{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=we=>{te.current.setValue(te.current.getValue()+" "+we.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Lt.createElement(Oe.Z,{className:ke.Z.lists,gutter:[10,10]},ne.map((we,Fe)=>Lt.createElement(tt.Z,{flex:"110px",className:ke.Z.item},Lt.createElement("div",null,Lt.createElement(Je.Z,{value:`$$${we.value}$$`}),we.name),Lt.createElement("div",{className:ke.Z.children},we.children.map((Be,Ie)=>Lt.createElement("div",{key:Ie},Lt.createElement("h1",null,Be.name),Lt.createElement(Oe.Z,{gutter:[10,10]},Be.data.map((We,nt)=>Lt.createElement(tt.Z,{key:nt,onClick:()=>se(We),className:ke.Z.diamond},Lt.createElement(Je.Z,{value:"`$$"+We.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Lt.createElement(Oe.Z,{className:ke.Z.lists,gutter:[10,10]},he.map((we,Fe)=>Lt.createElement(tt.Z,{flex:"110px",className:ke.Z.item},Lt.createElement("div",null,Lt.createElement(Je.Z,{value:"`$$"+we.value+"$$`"}),we.name),Lt.createElement("div",{className:ke.Z.children},we.children.map((Be,Ie)=>Lt.createElement("div",{key:Ie},Be.name&&Lt.createElement("h1",null,Be.name),Lt.createElement(Oe.Z,{gutter:[10,10]},Be.data.map((We,nt)=>Lt.createElement(tt.Z,{key:nt,onClick:()=>se(We),className:ke.Z.diamond},Lt.createElement(Je.Z,{value:"`$$"+We.value+"$$`"}))))))))))}],me=()=>{var we=document.createElement("div");we.innerHTML=te.current.getValue();var Fe=we.innerText;return Rt&&Rt(Fe),Fe};return(0,Ce.useImperativeHandle)(Ae,()=>({getData:me})),Lt.createElement("div",{className:ke.Z.mathWrap},Lt.createElement(At.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}},zt||""),xt&&Lt.createElement("div",{className:ke.Z.button},Lt.createElement(Ue.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});kn.Z=ot},57490:function(Kn,kn,ye){"use strict";ye.d(kn,{z:function(){return yn},Z:function(){return vt}});var Ce=ye(59301),Oe=ye(54580),tt=ye(8591),At=ye(43418),Ue=ye(3113),Je=ye(3294),ke=ye(23538),Ot=Object.defineProperty,Lt=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,xt=(je,wt,tn)=>wt in je?Ot(je,wt,{enumerable:!0,configurable:!0,writable:!0,value:tn}):je[wt]=tn,zt=(je,wt)=>{for(var tn in wt||(wt={}))ot.call(wt,tn)&&xt(je,tn,wt[tn]);if(Lt)for(var tn of Lt(wt))Rt.call(wt,tn)&&xt(je,tn,wt[tn]);return je},Ae=(je,wt,tn)=>new Promise((bn,Ft)=>{var Xt=gn=>{try{Qn(tn.next(gn))}catch(Gn){Ft(Gn)}},Cn=gn=>{try{Qn(tn.throw(gn))}catch(Gn){Ft(Gn)}},Qn=gn=>gn.done?bn(gn.value):Promise.resolve(gn.value).then(Xt,Cn);Qn((tn=tn.apply(je,wt)).next())});const te="\u3000\u3000";function ne(je){var wt=["Bytes","KB","MB","GB","TB"];if(je==0)return"0 Byte";var tn=parseInt(""+Math.floor(Math.log(je)/Math.log(1024)),10);return(je/Math.pow(1024,tn)).toFixed(1)+" "+wt[tn]}var he=({value:je=[],action:wt,onChange:tn,className:bn,maxSize:Ft=150,title:Xt="\u6587\u4EF6\u4E0A\u4F20",accept:Cn=null})=>{const Qn={multiple:!1,fileList:je,accept:Cn,withCredentials:!0,beforeUpload:Gn=>Gn.size/1024/1024<Ft?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ft}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(Gn){var bt,zn,ai,He;let Le=[...Gn.fileList];if(Le=Le.map(xe=>(xe.name.indexOf(te)===-1&&(xe.name=`${xe.name}${te}${ne(xe.size)}`),zt({},xe))),Gn.file.status==="done"&&((zn=(bt=Gn.file)==null?void 0:bt.response)==null?void 0:zn.status)===-1){message.error((He=(ai=Gn.file)==null?void 0:ai.response)==null?void 0:He.message),tn([]);return}tn(Le)},onRemove:Gn=>Ae(void 0,null,function*(){const bt=Gn.size/1024/1024;return Gn.status==="uploading"?!0:bt<Ft&&(Gn.response?Gn.response.id:Gn.uid)?yield removeAttachment(Gn.response?Gn.response.id:Gn.id):!0})};function gn(Gn){Gn.preventDefault(),Gn.stopPropagation()}return React.createElement("div",{className:`single-upload ${bn||""}`},React.createElement(Upload,zt({},Qn),React.createElement(Button,{type:"primary",title:je.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:je.length>0,ghost:!0},Xt),React.createElement("span",{onClick:gn,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Ft,"M)"," ")))},se=ye(61481),ge=ye(89392),me=Object.defineProperty,we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ie=(je,wt,tn)=>wt in je?me(je,wt,{enumerable:!0,configurable:!0,writable:!0,value:tn}):je[wt]=tn,We=(je,wt)=>{for(var tn in wt||(wt={}))Fe.call(wt,tn)&&Ie(je,tn,wt[tn]);if(we)for(var tn of we(wt))Be.call(wt,tn)&&Ie(je,tn,wt[tn]);return je};const nt=je=>React.createElement("svg",We({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},je),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var Xe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",dt=Object.defineProperty,Ze=Object.getOwnPropertySymbols,Zt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,an=(je,wt,tn)=>wt in je?dt(je,wt,{enumerable:!0,configurable:!0,writable:!0,value:tn}):je[wt]=tn,Gt=(je,wt)=>{for(var tn in wt||(wt={}))Zt.call(wt,tn)&&an(je,tn,wt[tn]);if(Ze)for(var tn of Ze(wt))yt.call(wt,tn)&&an(je,tn,wt[tn]);return je},Vt=(je,wt,tn)=>new Promise((bn,Ft)=>{var Xt=gn=>{try{Qn(tn.next(gn))}catch(Gn){Ft(Gn)}},Cn=gn=>{try{Qn(tn.throw(gn))}catch(Gn){Ft(Gn)}},Qn=gn=>gn.done?bn(gn.value):Promise.resolve(gn.value).then(Xt,Cn);Qn((tn=tn.apply(je,wt)).next())});const{Dragger:hn}=Oe.default;function yn(je){let wt=[];return je&&je.length>0&&(wt=je.map(tn=>({uid:tn.id,id:tn.id,name:tn.title+te+tn.filesize,url:tn.url,filesize:tn.filesize,status:"done",response:{id:tn.id}}))),wt}var vt=({value:je,onChange:wt,action:tn,data:bn,className:Ft,maxSize:Xt=150,title:Cn="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Qn=!1,accept:gn="",additionalText:Gn,isDragger:bt,number:zn=1e3,aloneClear:ai=!1,realTimeRemove:He=!0,uploadText:Le,setFileProgress:xe,showFileProgress:Ne})=>{const[De,ve]=(0,Ce.useState)(!1);let[$e,mt]=(0,Ce.useState)(je||[]),[et,Ve]=(0,Ce.useState)(1);(0,Ce.useEffect)(()=>{je&&(et===1&&mt([...je]),Ve(2),zn===(je==null?void 0:je.length)&&ve(!0))},[je]);const gt=()=>{setTimeout(()=>{$e.pop(),mt([...$e])},500)};Ne&&xe($e.some(Mt=>Mt.status==="uploading"));const ft={multiple:!0,disabled:De,accept:gn,withCredentials:!0,fileList:$e,beforeUpload:(Mt,pn)=>{const dn=Mt.size/1024/1024;return $e.concat(pn).length>zn?($e.pop(),mt([...$e]),tt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${zn}\u4E2A\u6587\u4EF6`),ai?Promise.reject():(gt(),!1)):dn<Xt?!0:(tt.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Xt}MB).`),ai?Promise.reject():(gt(),!1))},data:bn,action:tn||`${Je.Z.API_SERVER}/api/attachments.json`,onChange(Mt){var pn,dn,Jt,Rn;if(Mt.file.status==="removed"?$e=Mt.fileList:$e=(0,ge.uniqBy)([...Mt.fileList,...$e],"uid"),Mt.file.status==="done"&&((dn=(pn=Mt.file)==null?void 0:pn.response)==null?void 0:dn.status)===-1){tt.ZP.error((Rn=(Jt=Mt.file)==null?void 0:Jt.response)==null?void 0:Rn.message);return}$e.length>=zn?ve(!0):ve(!1),mt([...$e]),$e=$e.map(Tn=>{var Et,cn;return(Et=Tn==null?void 0:Tn.response)!=null&&Et.id&&(Tn.url=(cn=Tn==null?void 0:Tn.response)==null?void 0:cn.url),Tn.name.indexOf(te)===-1&&(Tn.name=`${Tn.name}${te}${ne(Tn.size)}`),Gt({},Tn)}),console.log("info:",Mt,$e),wt($e)},onRemove:Mt=>Vt(void 0,null,function*(){if(!He)return!0;const pn=()=>Vt(void 0,null,function*(){if(Mt.response?Mt.response.id:Mt.id){let Jt=yield(0,ke.JZ)(Mt.response?Mt.response.id:Mt.uid);return Promise.resolve(Jt)}else return!0});return Qn?new Promise((dn,Jt)=>{At.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ce.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Vt(void 0,null,function*(){const Rn=yield pn();tt.ZP.success("\u5220\u9664\u6210\u529F"),dn(!0)}),onCancel:()=>dn(!1)})}):yield pn()})};function rt(Mt){Mt.preventDefault(),Mt.stopPropagation()}return Ce.createElement("div",{className:`multi-upload ${Ft||""}`},bt&&Ce.createElement(hn,Gt({},ft),Ce.createElement("p",{className:"ant-upload-drag-icon"},Ce.createElement(se.Z,null)),Ce.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",Ce.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Xt,"MB)"," "),Gn),!bt&&Ce.createElement(Oe.default,Gt({},ft),Ce.createElement(Ue.ZP,{disabled:De,className:"upload_button"},Ce.createElement("img",{className:"aBtn_img",src:Xe}),Cn),Ce.createElement("span",{onClick:rt,className:"upload_text"},Le||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Xt}MB)`)))}},8797:function(Kn,kn,ye){"use strict";var Ce=ye(59301),Oe=ye(93314),tt=ye(3113),At=Object.defineProperty,Ue=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,ot=(Ae,te,ne)=>te in Ae?At(Ae,te,{enumerable:!0,configurable:!0,writable:!0,value:ne}):Ae[te]=ne,Rt=(Ae,te)=>{for(var ne in te||(te={}))Ot.call(te,ne)&&ot(Ae,ne,te[ne]);if(ke)for(var ne of ke(te))Lt.call(te,ne)&&ot(Ae,ne,te[ne]);return Ae},xt=(Ae,te)=>Ue(Ae,Je(te));const zt=({img:Ae,buttonProps:te={},styles:ne={},customText:he,ButtonText:se,ButtonClick:ge,Buttonclass:me,ButtonTwo:we,imgStyles:Fe,loading:Be=!1})=>Ce.createElement("section",{className:"tc animated fadeIn",style:Rt(Rt({},{color:"#999",margin:"100px auto",visibility:Be?"hidden":"visible"}),ne)},Ce.createElement("img",{src:Ae||Oe,style:xt(Rt({},Fe),{pointerEvents:"none",userSelect:"none"})}),Ce.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),se&&Ce.createElement(tt.ZP,Rt({className:me,onClick:ge},te),se),we&&we);kn.Z=zt},23210:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return me}});var Ce=ye(59301),Oe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},tt=ye(3113),At=ye(70557),Ue=ye(23954),Je=ye(6848),ke=ye(955),Ot=ye(94941),Lt=ye(8797),ot=ye(3294),Rt=ye(19381),xt=ye(59301),zt=Object.defineProperty,Ae=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,he=(we,Fe,Be)=>Fe in we?zt(we,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):we[Fe]=Be,se=(we,Fe)=>{for(var Be in Fe||(Fe={}))te.call(Fe,Be)&&he(we,Be,Fe[Be]);if(Ae)for(var Be of Ae(Fe))ne.call(Fe,Be)&&he(we,Be,Fe[Be]);return we},ge=(we,Fe,Be)=>new Promise((Ie,We)=>{var nt=Ze=>{try{dt(Be.next(Ze))}catch(Zt){We(Zt)}},Xe=Ze=>{try{dt(Be.throw(Ze))}catch(Zt){We(Zt)}},dt=Ze=>Ze.done?Ie(Ze.value):Promise.resolve(Ze.value).then(nt,Xe);dt((Be=Be.apply(we,Fe)).next())}),me=({editOffice:we="view",data:Fe,theme:Be,type:Ie,filename:We,monacoEditor:nt,className:Xe,style:dt,close:Ze,onClose:Zt,hasMask:yt,disabledDownload:an,onImgDimensions:Gt,showNodata:Vt,recordInfo:hn})=>{const[yn,vt]=(0,Ce.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[je,wt]=(0,Ce.useState)(""),[tn,bn]=(0,Ce.useState)(),Ft=window.ENV==="build"?"/react/build":"",Xt=location.host.startsWith("localhost")?ot.Z.PROXY_SERVER:ot.Z.API_SERVER,Qn=10*(1024*1024),gn=(0,Ce.useRef)();Fe!=null&&Fe.startsWith("/api")&&Ie!=="txt"&&(Fe=ot.Z.API_SERVER+Fe);const Gn=He=>He.substring(He.lastIndexOf("/")+1).split(".").pop();We&&nt&&(nt.filename=We),(0,Ce.useEffect)(()=>{var He,Le;const xe=(Le=(He=document.cookie)==null?void 0:He.replace(/\s/g,""))==null?void 0:Le.split(";");xe==null||xe.map(Ne=>{let De=Ne.split("=");De[0]==="_educoder_session"&&wt(De[1])})},[]),(0,Ce.useEffect)(()=>{Ie==="office"&&(Fe.indexOf("bigfilescdn.")>-1||Fe.indexOf("bigfiles1")>-1?bn({url:Fe,fileType:Gn(Fe),model:Fe.indexOf("model=edit")?"edit":"view"}):bt())},[Ie,Fe]);const bt=()=>ge(void 0,null,function*(){console.log("data:",Fe);let He=Fe;Fe.startsWith("http")||(He=location.origin+He);let Le=new URL(He).pathname.split("/").pop();const xe=yield(0,Ot.gJ)({attachment_id:Le});xe.url=Xt+xe.url,bn(xe)}),zn=()=>{if(Fe.startsWith("http")||Fe.startsWith("blob:")){ai();return}(0,ke.Sv)(We||"educoder",Fe,We)},ai=()=>{hn&&(0,Rt.fc)({id:hn==null?void 0:hn.id,watch_type:1,course_id:hn==null?void 0:hn.course_id}),(0,ke.Nd)(We||"educoder",decodeURIComponent(Fe))};return xt.createElement("div",{style:se({},dt||{}),className:`${yt&&Oe.bgBlack} ${Ie?Oe.wrp:"hide"}`},Ze&&xt.createElement("div",{className:Oe.close,ref:gn},!!Gt&&xt.createElement(Je.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>gn.current},xt.createElement("span",{onClick:()=>{Zt(),Gt()}},xt.createElement("i",{className:"icon-yulanpizhu"}))),!an&&xt.createElement(Je.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>gn.current},xt.createElement("span",{onClick:ai},xt.createElement("i",{className:"icon-quxiaozhiding"}))),xt.createElement(Je.Z,{title:"\u5173\u95ED",getPopupContainer:()=>gn.current},xt.createElement("span",{className:"",onClick:Zt},xt.createElement("i",{className:"icon-guanbi1"})))),xt.createElement("div",{className:`${Oe[Xe]} ${Xe} ${Oe.monaco} ${Ie==="txt"?"show":"hide"}`},Ie==="txt"&&xt.createElement(xt.Fragment,null,xt.createElement(Ue.ZP,se({},nt)))),Ie==="audio"&&xt.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"&&xt.createElement(xt.Fragment,null,(Fe==null?void 0:Fe.indexOf("http"))>-1?xt.createElement("video",{controls:!0,src:`${Fe}`,autoPlay:!0}):xt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Fe}`,autoPlay:!0})),Ie==="office"&&tn&&xt.createElement("iframe",{src:`${Ft}/office.html?key=${tn.key}&url=${btoa(tn.url)}&callbackUrl=${Xt+(tn.callbackUrl||"")}&fileType=${tn.fileType}&title=${tn.title||""}&model=${we}&officeServer=${ot.Z.ONLYOFFICE}&disabledDownload=${!!an}`}),Ie==="html"&&xt.createElement("iframe",{src:Fe+"&disposition=inline"}),Ie==="pdf"&&xt.createElement("iframe",{src:`${Ft}/js/pdfview/index.html?filename=${We||"educoder.pdf"}&url=${encodeURIComponent(Fe)}&disabledDownload=${!!an}`}),Ie==="image"&&xt.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")&&xt.createElement(xt.Fragment,null,Vt?xt.createElement(Lt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:xt.createElement(tt.ZP,{icon:xt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:zn,disabled:an},"\u4E0B\u8F7D")}):xt.createElement(tt.ZP,{type:"primary",size:"middle",onClick:zn,disabled:an},xt.createElement(At.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Kn,kn,ye){"use strict";ye.d(kn,{z:function(){return Ie},Z:function(){return We}});var Ce=ye(59301),Oe=ye(50304),tt=ye(24768),At=ye(64018),Ue=ye(40846),Je=ye(3294),ke=ye(955),Ot=ye(15342),Lt=ye(1012),ot=ye(23210),Rt=ye(59301),zt=({html:nt})=>{const Xe=(0,Ce.useRef)(null),dt=(0,Ce.useRef)(null),Ze=`.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,Ce.useEffect)(()=>{const Zt=Xe.current.attachShadow({mode:"open"});dt.current=document.createElement("div"),dt.current.className="markdown-body",dt.current.innerHTML=nt,Zt.appendChild(dt.current);const yt=document.createElement("style");return yt.textContent=Ze,Zt.appendChild(yt),()=>{Zt.innerHTML=""}},[]),(0,Ce.useEffect)(()=>{dt.current&&(dt.current.innerHTML=nt)},[nt]),Rt.createElement("div",{ref:Xe})},Ae=Object.defineProperty,te=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,se=(nt,Xe,dt)=>Xe in nt?Ae(nt,Xe,{enumerable:!0,configurable:!0,writable:!0,value:dt}):nt[Xe]=dt,ge=(nt,Xe)=>{for(var dt in Xe||(Xe={}))ne.call(Xe,dt)&&se(nt,dt,Xe[dt]);if(te)for(var dt of te(Xe))he.call(Xe,dt)&&se(nt,dt,Xe[dt]);return nt};const me="@\u2581\u2581@",we="@\u2581@",Fe=/<pre[^>]*>/g;function Be(nt){let Xe=document.createElement("div");return Xe.innerHTML=nt,Xe.childNodes.length===0?"":Xe.childNodes[0].nodeValue}const Ie=(nt,Xe)=>{nt=nt||"";const dt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Zt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,yt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Xe?nt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(dt,(an,Gt,Vt,hn,yn,vt,je)=>{const wt=Gt||hn||vt,tn=Vt||yn||je||"?";return Je.Z.API_SERVER+"/api/attachments/"+wt+tn+"&t="+(0,ke.Jn)(wt,Date.now())+(an.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(nt=nt.replace(yt,(an,Gt,Vt,hn,yn,vt,je)=>{const wt=Gt||hn||vt,tn=Vt||yn||je||"?";return Je.Z.API_SERVER+"/attachments/download/"+wt+tn+"&t="+(0,ke.Jn)(wt,Date.now())+(an.indexOf(")")>-1?")":"&")}).replace(dt,(an,Gt,Vt,hn,yn,vt,je)=>{const wt=Gt||hn||vt,tn=Vt||yn||je||"?";return Je.Z.API_SERVER+"/api/attachments/"+wt+tn+"&t="+(0,ke.Jn)(wt,Date.now())+(an.indexOf(")")>-1?")":"&")}).replace(Ze,(an,Gt,Vt,hn,yn)=>{const vt=Gt||hn,je=Vt||yn||"";return'"'+Je.Z.API_SERVER+"/api/attachments/"+vt+je+vt+je+"&t="+(0,ke.Jn)(vt,Date.now())}).replace(Zt,(an,Gt,Vt,hn,yn)=>{const vt=Gt||hn,je=Vt||yn||"";return"("+Je.Z.API_SERVER+"/files/uploads/"+vt+je+vt+je+"&t="+(0,ke.Jn)(vt,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,`
|
|
|
`),nt)};var We=({value:nt="",className:Xe,showTextOnly:dt,showLines:Ze,style:Zt={},stylesPrev:yt={},highlightKeywords:an,showProgramFill:Gt,isProgramFill:Vt,disabledFill:hn=!1,programFillValue:yn,onFillChange:vt=tn=>{},onFillBlur:je=()=>{},onFillFocus:wt=()=>{}})=>{let tn=String(nt);const[bn,Ft]=(0,Ce.useState)(""),[Xt,Cn]=(0,Ce.useState)("office"),[Qn,gn]=(0,Ce.useState)([]),Gn=(0,Ce.useRef)("a"+(0,Lt.Z)()),bt={},zn=(gt,ft,rt)=>{const Mt=document.createElement(gt===we?"input":"textarea");Mt.style.width="100%",Mt.style.height=gt===we?"40px":"151px",Mt.rows=5,Mt.spellcheck=!1,Mt.name="edu-program-fill",Mt.placeholder="\u8BF7\u8F93\u5165",Mt.dataset.id=ft;const pn=Object.keys(bt).length;return bt[pn]=Mt,`<span class="edu-program-fill-wrap ${gt===we?"":"show"}" style="width:${gt===we?"400px":"100%"}" title=${rt||""}><span>${Mt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ai(gt){return gt=gt.replace(/!\[.*?\]\(.*?\)/g,""),gt=gt.replace(/\[.*?\]\(.*?\)/g,""),gt=gt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),gt=gt.replace(/<embed.*?>/g,""),gt=gt.replace(/<img.*?>/g,""),gt=gt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),gt=gt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),gt=gt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),gt=gt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),gt}const He=gt=>gt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ft,rt){let Mt=rt.replace(/(\n|\r)/g,"").split("}"),pn=[];return Mt.map(dn=>{dn!=""&&pn.push(`.${Gn.current} ${dn}`)}),`<style>${pn.join("}")}</style>`}),Le=(0,Ce.useMemo)(()=>{try{const Mt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,pn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,dn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Jt=/\(\/attachments\/download\//g;tn=tn.replace(Jt,"("+Je.Z.API_SERVER+"/attachments/download/").replace(Mt,"("+Je.Z.API_SERVER+"/api/attachments/").replace(pn,'"'+Je.Z.API_SERVER+"/api/attachments/").replace(dn,'"'+Je.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(Mt){}if(Gt){let Mt=-1;return tn=tn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(pn,dn,Jt){var Rn;return++Mt,zn(pn,Mt,(Rn=yn==null?void 0:yn[Mt])==null?void 0:Rn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${He(tn||"")}</pre>`}let gt=He(tn);gt=(0,tt.ZP)(gt);const ft=(0,tt.ez)();tn.match(/\[TOC\]/)&&(gt=gt.replace("<p>[TOC]</p>",(0,tt.Qv)()),(0,tt.Iy)()),gt=gt.replace(/(__special_katext_id_\d+__)/g,(Mt,pn)=>{const{type:dn,expression:Jt}=ft[pn];return(0,Ot.renderToString)(Be(Jt)||"",{displayMode:dn==="block",throwOnError:!1,output:"html"})}),gt=gt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,tt.AL)();const rt=document.createElement("div");if(rt.innerHTML=gt,dt)return rt.innerText;if(an){const Mt=an.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ve(rt,Mt),rt.innerHTML}return setTimeout(()=>et(),500),rt.innerHTML},[tn,an]);(0,Ce.useEffect)(()=>{$e.current&&$e.current.querySelectorAll(["input","textarea"]).forEach(ft=>{ft.oninput=xe,ft.onblur=Ne,ft.onfocus=De})},[Qn]),(0,Ce.useEffect)(()=>{var gt,ft,rt,Mt,pn;if(yn!=null&&yn.length)try{const dn=$e.current.querySelectorAll(".edu-program-fill-score"),Jt=$e.current.querySelectorAll('[name="edu-program-fill"]');for(const[Rn,Tn]of Jt.entries())Tn.value=((gt=yn==null?void 0:yn[Rn])==null?void 0:gt.value)||"",((ft=yn==null?void 0:yn[Rn])==null?void 0:ft.type)==="warning"?Tn.className="program-fill-warning":((rt=yn==null?void 0:yn[Rn])==null?void 0:rt.type)==="success"?Tn.className="program-fill-success":Tn.className="";for(const[Rn,Tn]of dn.entries())Tn.innerHTML=(Mt=yn==null?void 0:yn[Rn])!=null&&Mt.score?`${(pn=yn==null?void 0:yn[Rn])==null?void 0:pn.score}\u5206`:"";gn(yn)}catch(dn){console.log(dn,"error")}},[yn]);const xe=gt=>{Qn[gt.target.dataset.id]=Qn[gt.target.dataset.id]||{},Qn[gt.target.dataset.id].value=gt.target.value,gn([...Qn]),vt(Qn,gt.target.dataset.id)},Ne=gt=>{Qn[gt.target.dataset.id]=Qn[gt.target.dataset.id]||{},Qn[gt.target.dataset.id].value=gt.target.value,gn([...Qn]),je(Qn,gt.target.dataset.id)},De=gt=>{Qn[gt.target.dataset.id]=Qn[gt.target.dataset.id]||{},Qn[gt.target.dataset.id].value=gt.target.value,gn([...Qn]),wt(Qn,gt.target.dataset.id)};function ve(gt,ft){return gt.childNodes.forEach(rt=>{var Mt;if(rt.childNodes.length>0)ve(rt,ft);else if(rt.nodeName!=="IMG")if(rt.innerHTML)rt.innerHTML=(Mt=rt.innerHTML)==null?void 0:Mt.replace(new RegExp(ft,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const pn=document.createElement("span");pn.innerHTML=rt.textContent.replace(new RegExp(ft,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),rt.replaceWith(pn)}})}const $e=(0,Ce.useRef)();tt.jb.WebkitLineClamp=Ze,Ze&&(Zt=ge(ge({},Zt),tt.jb));function mt(gt){let ft=gt.target;if(ft.tagName.toUpperCase()==="A"){let rt=ft.getAttribute("href");if(rt.indexOf("office")>-1)gt.preventDefault(),Ft(rt),Cn("office");else if(rt.indexOf("application/pdf")>-1)gt.preventDefault(),Ft(rt),Cn("pdf");else if(rt.indexOf("text/html")>-1)gt.preventDefault(),Ft(rt),Cn("html");else if(rt.startsWith("#")){gt.preventDefault();let Mt=document.getElementById(rt.replace("#",""));Mt&&Mt.scrollIntoView(!0)}}}const et=()=>{var gt;const ft=(gt=$e.current)==null?void 0:gt.querySelectorAll("video");ft==null||ft.forEach(rt=>{if(rt.oncontextmenu=()=>!1,rt.src.indexOf(".m3u8")>-1&&!rt.canPlayType("application/vnd.apple.mpegurl")){if(Ue.ZP.isSupported()){var Mt=new Ue.ZP;Mt.loadSource(rt.src),Mt.attachMedia(rt)}}})};(0,Ce.useEffect)(()=>{if($e.current&&Le&&Le.match(Fe)&&window.PR.prettyPrint(),$e.current)return $e.current.addEventListener("click",mt),()=>{var gt;(gt=$e.current)==null||gt.removeEventListener("click",mt),(0,tt.AL)(),(0,tt.Iy)()}},[Le,$e.current,mt]),(0,Ce.useEffect)(()=>{var gt;const ft=rt=>{rt.preventDefault(),rt.clipboardData.setData("text",window.getSelection().toString())};return(gt=$e.current)==null||gt.addEventListener("copy",ft),()=>{var rt;(rt=$e.current)==null||rt.removeEventListener("copy",ft)}},[$e.current]);const Ve=gt=>/<style[\s\S]*?>/i.test(gt||"");return Ce.createElement(Ce.Fragment,null,dt&&Ce.createElement("div",{ref:$e},Le),!dt&&!Ve(Le)&&Ce.createElement("div",{ref:$e,style:ge({},Zt),className:`${Xe||""} ${hn?"disabled-fill":""} markdown-body ${Gn.current}`,dangerouslySetInnerHTML:{__html:Le}}),!dt&&Ve(Le)&&Ce.createElement(zt,{html:Le}),Ce.createElement(ot.Z,{close:!0,data:bn,type:bn!=null&&bn.length?Xt:"",style:ge({},yt),onClose:()=>Ft("")}))}},97692:function(Kn,kn,ye){"use strict";ye.d(kn,{h:function(){return we}});var Ce=ye(59301),Oe=ye(57809),tt=ye(78241),At=ye(3113),Ue=ye(89780),Je=ye.n(Ue),ke=ye(37036),Ot=ye(95625),Lt=Object.defineProperty,ot=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,te=(Fe,Be,Ie)=>Be in Fe?Lt(Fe,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Fe[Be]=Ie,ne=(Fe,Be)=>{for(var Ie in Be||(Be={}))zt.call(Be,Ie)&&te(Fe,Ie,Be[Ie]);if(xt)for(var Ie of xt(Be))Ae.call(Be,Ie)&&te(Fe,Ie,Be[Ie]);return Fe},he=(Fe,Be)=>ot(Fe,Rt(Be));const se=Oe.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},me={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};kn.Z=({callback:Fe,onCancel:Be})=>{const[Ie,We]=(0,Ce.useState)("python");function nt(dt){We(me[dt][1])}function Xe(dt){Fe(dt)}return Ce.createElement(tt.default,he(ne({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),Ce.createElement(tt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ce.createElement(Oe.default,{getPopupContainer:dt=>dt.parentNode,onChange:nt},Object.keys(me).map(dt=>Ce.createElement(se,{key:dt,value:dt},me[dt][0])))),Ce.createElement(tt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ce.createElement(we,{mode:Ie})),Ce.createElement("div",{className:"flex-container flex-end"},Ce.createElement(At.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ce.createElement(At.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))};function we({value:Fe,onChange:Be,mode:Ie,options:We={}}){const nt=(0,Ce.useRef)(),[Xe,dt]=(0,Ce.useState)();return(0,Ce.useEffect)(()=>{if(Xe){let Ze=function(Zt){const yt=Zt.getValue();Be&&Be(yt)};return Xe.on("change",Ze),()=>{Xe.off("change",Ze)}}},[Xe,Be]),(0,Ce.useEffect)(()=>{Xe&&Xe.setOption("mode",Ie)},[Xe,Ie]),(0,Ce.useEffect)(()=>{Xe&&(Fe!==Xe.getValue()||Fe==="")&&setTimeout(()=>{Xe.setValue(Fe||"")},300)},[Xe,Fe]),(0,Ce.useEffect)(()=>{if(nt.current&&!Xe){const Ze=Je().fromTextArea(nt.current,ne({mode:Ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},We));dt(Ze)}},[nt.current,Xe]),Ce.createElement("div",{className:"my-codemirror-container"},Ce.createElement("textarea",{ref:nt}))}},12290:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Nn}});var Ce=ye(59301),Oe=ye(89780),tt=ye.n(Oe),At=ye(76374),Ue=ye(37036),Je=ye(6313),ke=ye(25717),Ot=ye(99498),Lt=ye(25419),ot=ye(67549),Rt=ye(85149),xt=({value:ct="",className:Pt,showTextOnly:Re,showLines:Tt,style:_t={}})=>{const ht=(0,Ce.useMemo)(()=>"",[ct]);return Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{dangerouslySetInnerHTML:{__html:ht}}))},zt=ye(59301),Ae=Object.defineProperty,te=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(ct,Pt,Re)=>Pt in ct?Ae(ct,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ct[Pt]=Re,we=(ct,Pt)=>{for(var Re in Pt||(Pt={}))se.call(Pt,Re)&&me(ct,Re,Pt[Re]);if(he)for(var Re of he(Pt))ge.call(Pt,Re)&&me(ct,Re,Pt[Re]);return ct},Fe=(ct,Pt)=>te(ct,ne(Pt));let Be=[{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:ct,title:Pt,icon:Re,actionName:Tt,className:_t="",children:ht}){function Ye(){ct(Tt)}return zt.createElement("a",{title:Pt,className:_t,onClick:Ye},zt.createElement("i",{className:`${Re}`}),ht)}var We=({watch:ct,showNullButton:Pt,showNullProgramButton:Re,onActionCallback:Tt,fullScreen:_t,insertTemp:ht,hidetoolBar:Ye,extraUse:Wt})=>{const Ut=[...Be,{title:`${ct?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ct?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return zt.createElement("ul",{className:"markdown-toolbar-container"},!Ye&&Ut.map((fn,Dn)=>zt.createElement("li",{key:Dn},fn.actionName?zt.createElement(Ie,Fe(we({},fn),{onActionCallback:Tt})):zt.createElement("span",{className:"v-line"}))),Pt?zt.createElement("li",null,zt.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tt},zt.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Re?zt.createElement(zt.Fragment,null,zt.createElement("li",null,zt.createElement(Ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Tt},zt.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),zt.createElement("li",null,zt.createElement(Ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Tt},zt.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ht&&zt.createElement("li",null,zt.createElement(Ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ht}`,onActionCallback:Tt},zt.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Wt&&zt.createElement("li",null,Wt),zt.createElement("li",{className:"btn-full-screen"},zt.createElement(Ie,{icon:`${_t?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:_t?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tt})))},nt=ye(79346),Xe=ye(78241),dt=ye(92832),Ze=ye(3113),Zt=Object.defineProperty,yt=Object.defineProperties,an=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,yn=(ct,Pt,Re)=>Pt in ct?Zt(ct,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ct[Pt]=Re,vt=(ct,Pt)=>{for(var Re in Pt||(Pt={}))Vt.call(Pt,Re)&&yn(ct,Re,Pt[Re]);if(Gt)for(var Re of Gt(Pt))hn.call(Pt,Re)&&yn(ct,Re,Pt[Re]);return ct},je=(ct,Pt)=>yt(ct,an(Pt));const wt={labelCol:{span:4},wrapperCol:{span:20}};var tn=({callback:ct,onCancel:Pt})=>{function Re(Tt){ct(Tt)}return Ce.createElement(Xe.default,je(vt({},wt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Re,style:{width:500}}),Ce.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ce.createElement(dt.default,null)),Ce.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ce.createElement(dt.default,null)),Ce.createElement("div",{className:"flex-container flex-end"},Ce.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ce.createElement(Ze.ZP,{type:"ghost",onClick:Pt},"\u53D6\u6D88")))},bn=ye(97692),Ft=ye(28451),Xt=ye(43418),Cn=ye(95237),Qn=ye(73524),gn=ye(59301),Gn=({callback:ct,onCancel:Pt})=>{const Re=document.createElement("canvas"),Tt=Re.getContext("2d");Re.width=1e3,Re.height=800,Tt.fillStyle="#ffffff",Tt.fillRect(0,0,Re.width,Re.height);const _t=Re.toDataURL("image/png");return gn.createElement(Xt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},gn.createElement(Cn.Z,{style:{height:"100vh"}},gn.createElement(Qn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:_t,visible:!0,title:String(Date.now())},onOk:ht=>{ct({src:ht.url})},onClose:Pt})))},bt=ye(12378);function zn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(zn,go.CommandHandler),zn.prototype.canAlignSelection=function(){var ct=this.diagram;return!(ct===null||ct.isReadOnly||ct.isModelReadOnly||ct.selection.count<2)},zn.prototype.alignLeft=function(){var ct=this.diagram;ct.startTransaction("aligning left");var Pt=1/0;ct.selection.each(function(Re){Re instanceof go.Link||(Pt=Math.min(Re.position.x,Pt))}),ct.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(Pt,Re.position.y))}),ct.commitTransaction("aligning left")},zn.prototype.alignRight=function(){var ct=this.diagram;ct.startTransaction("aligning right");var Pt=-1/0;ct.selection.each(function(Re){if(!(Re instanceof go.Link)){var Tt=Re.actualBounds.x+Re.actualBounds.width;Pt=Math.max(Tt,Pt)}}),ct.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(Pt-Re.actualBounds.width,Re.position.y))}),ct.commitTransaction("aligning right")},zn.prototype.alignTop=function(){var ct=this.diagram;ct.startTransaction("alignTop");var Pt=1/0;ct.selection.each(function(Re){Re instanceof go.Link||(Pt=Math.min(Re.position.y,Pt))}),ct.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(Re.position.x,Pt))}),ct.commitTransaction("alignTop")},zn.prototype.alignBottom=function(){var ct=this.diagram;ct.startTransaction("aligning bottom");var Pt=-1/0;ct.selection.each(function(Re){if(!(Re instanceof go.Link)){var Tt=Re.actualBounds.y+Re.actualBounds.height;Pt=Math.max(Tt,Pt)}}),ct.selection.each(function(Re){Re instanceof go.Link||Re.move(new go.Point(Re.actualBounds.x,Pt-Re.actualBounds.height))}),ct.commitTransaction("aligning bottom")},zn.prototype.alignCenterX=function(){var ct=this.diagram,Pt=ct.selection.first();if(Pt){ct.startTransaction("aligning Center X");var Re=Pt.actualBounds.x+Pt.actualBounds.width/2;ct.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Re-Tt.actualBounds.width/2,Tt.actualBounds.y))}),ct.commitTransaction("aligning Center X")}},zn.prototype.alignCenterY=function(){var ct=this.diagram,Pt=ct.selection.first();if(Pt){ct.startTransaction("aligning Center Y");var Re=Pt.actualBounds.y+Pt.actualBounds.height/2;ct.selection.each(function(Tt){Tt instanceof go.Link||Tt.move(new go.Point(Tt.actualBounds.x,Re-Tt.actualBounds.height/2))}),ct.commitTransaction("aligning Center Y")}},zn.prototype.alignColumn=function(ct){var Pt=this.diagram;Pt.startTransaction("align Column"),ct===void 0&&(ct=0),ct=parseFloat(ct);var Re=new Array;Pt.selection.each(function(Wt){Wt instanceof go.Link||Re.push(Wt)});for(var Tt=0;Tt<Re.length-1;Tt++){var _t=Re[Tt],ht=_t.actualBounds.y+_t.actualBounds.height+ct,Ye=Re[Tt+1];Ye.move(new go.Point(_t.actualBounds.x,ht))}Pt.commitTransaction("align Column")},zn.prototype.alignRow=function(ct){ct===void 0&&(ct=0),ct=parseFloat(ct);var Pt=this.diagram;Pt.startTransaction("align Row");var Re=new Array;Pt.selection.each(function(Wt){Wt instanceof go.Link||Re.push(Wt)});for(var Tt=0;Tt<Re.length-1;Tt++){var _t=Re[Tt],ht=_t.actualBounds.x+_t.actualBounds.width+ct,Ye=Re[Tt+1];Ye.move(new go.Point(ht,_t.actualBounds.y))}Pt.commitTransaction("align Row")},zn.prototype.canRotate=function(ct){var Pt=this.diagram;return!(Pt===null||Pt.isReadOnly||Pt.isModelReadOnly||Pt.selection.count<1)},zn.prototype.rotate=function(ct){ct===void 0&&(ct=90);var Pt=this.diagram;Pt.startTransaction("rotate "+ct.toString());var Pt=this.diagram;Pt.selection.each(function(Re){Re instanceof go.Link||Re instanceof go.Group||(Re.angle+=ct)}),Pt.commitTransaction("rotate "+ct.toString())},zn.prototype.pullToFront=function(){var ct=this.diagram;ct.startTransaction("pullToFront");var Pt=new go.Map;ct.selection.each(function(Re){Pt.set(Re.layer,0)}),Pt.iteratorKeys.each(function(Re){var Tt=0;Re.parts.each(function(_t){if(!_t.isSelected){var ht=_t.zOrder;isNaN(ht)?_t.zOrder=0:Tt=Math.max(Tt,ht)}}),Pt.set(Re,Tt)}),ct.selection.each(function(Re){zn._assignZOrder(Re,Pt.get(Re.layer)+1)}),ct.commitTransaction("pullToFront")},zn.prototype.pushToBack=function(){var ct=this.diagram;ct.startTransaction("pushToBack");var Pt=new go.Map;ct.selection.each(function(Re){Pt.set(Re.layer,0)}),Pt.iteratorKeys.each(function(Re){var Tt=0;Re.parts.each(function(_t){if(!_t.isSelected){var ht=_t.zOrder;isNaN(ht)?_t.zOrder=0:Tt=Math.min(Tt,ht)}}),Pt.set(Re,Tt)}),ct.selection.each(function(Re){zn._assignZOrder(Re,Pt.get(Re.layer)-1-zn._findGroupDepth(Re))}),ct.commitTransaction("pushToBack")},zn._assignZOrder=function(ct,Pt,Re){Re===void 0&&(Re=ct),ct.layer===Re.layer&&(ct.zOrder=Pt),ct instanceof go.Group&&ct.memberParts.each(function(Tt){zn._assignZOrder(Tt,Pt+1,Re)})},zn._findGroupDepth=function(ct){if(ct instanceof go.Group){var Pt=0;return ct.memberParts.each(function(Re){Pt=Math.max(Pt,zn._findGroupDepth(Re))}),Pt+1}else return 0},zn.prototype.doKeyDown=function(){var ct=this.diagram;if(ct!==null){var Pt=ct.lastInput;if(Pt.key==="Up"||Pt.key==="Down"||Pt.key==="Left"||Pt.key==="Right"){var Re=this.arrowKeyBehavior;if(Re==="none")return;if(Re==="select"){this._arrowKeySelect();return}else if(Re==="move"){this._arrowKeyMove();return}else if(Re==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},zn.prototype._getAllParts=function(){var ct=new Array;return this.diagram.nodes.each(function(Pt){ct.push(Pt)}),this.diagram.parts.each(function(Pt){ct.push(Pt)}),ct},zn.prototype._arrowKeyMove=function(){var ct=this.diagram,Pt=ct.lastInput,Re=0,Tt=0;if(Pt.control||Pt.meta)Re=1,Tt=1;else if(ct.grid!==null){var _t=ct.grid.gridCellSize;Tt=_t.width,Re=_t.height}ct.startTransaction("arrowKeyMove"),ct.selection.each(function(ht){Pt.key==="Up"?ht.move(new go.Point(ht.actualBounds.x,ht.actualBounds.y-Re)):Pt.key==="Down"?ht.move(new go.Point(ht.actualBounds.x,ht.actualBounds.y+Re)):Pt.key==="Left"?ht.move(new go.Point(ht.actualBounds.x-Tt,ht.actualBounds.y)):Pt.key==="Right"&&ht.move(new go.Point(ht.actualBounds.x+Tt,ht.actualBounds.y))}),ct.commitTransaction("arrowKeyMove")},zn.prototype._arrowKeySelect=function(){var ct=this.diagram,Pt=ct.lastInput,Re=null;Pt.key==="Up"?Re=this._findNearestPartTowards(270):Pt.key==="Down"?Re=this._findNearestPartTowards(90):Pt.key==="Left"?Re=this._findNearestPartTowards(180):Pt.key==="Right"&&(Re=this._findNearestPartTowards(0)),Re!==null&&(Pt.shift?Re.isSelected=!0:Pt.control||Pt.meta?Re.isSelected=!Re.isSelected:ct.select(Re))},zn.prototype._findNearestPartTowards=function(ct){var Pt=this.diagram.selection.first();if(Pt===null)return null;for(var Re=Pt.actualBounds.center,Tt=this._getAllParts(),_t=1/0,ht=Pt,Ye=0;Ye<Tt.length;Ye++){var Wt=Tt[Ye];if(Wt!==Pt&&Wt.canSelect()){var Ut=Wt.actualBounds.center,fn=Re.directionPoint(Ut),Dn=this._angleCloseness(fn,ct);if(Dn<=45){var at=Re.distanceSquaredPoint(Ut);at*=1+Math.sin(Dn*Math.PI/180),at<_t&&(_t=at,ht=Wt)}}}return ht},zn.prototype._angleCloseness=function(ct,Pt){return Math.min(Math.abs(Pt-ct),Math.min(Math.abs(Pt+360-ct),Math.abs(Pt-360-ct)))},zn.prototype._arrowKeyTree=function(){var ct=this.diagram,Pt=ct.selection.first();if(Pt instanceof go.Node){var Re=ct.lastInput;if(Re.key==="Right"){if(!Pt.isTreeLeaf)if(!Pt.isTreeExpanded)ct.commandHandler.canExpandTree(Pt)&&ct.commandHandler.expandTree(Pt);else{var Tt=this._sortTreeChildrenByY(Pt).first();Tt!==null&&ct.select(Tt)}}else if(Re.key==="Left")if(!Pt.isTreeLeaf&&Pt.isTreeExpanded)ct.commandHandler.canCollapseTree(Pt)&&ct.commandHandler.collapseTree(Pt);else{var _t=Pt.findTreeParentNode();_t!==null&&ct.select(_t)}else if(Re.key==="Up"){var _t=Pt.findTreeParentNode();if(_t!==null){var ht=this._sortTreeChildrenByY(_t),Ye=ht.indexOf(Pt);if(Ye>0){for(var Wt=ht.elt(Ye-1);Wt!==null&&Wt.isTreeExpanded&&!Wt.isTreeLeaf;){var Ut=this._sortTreeChildrenByY(Wt);Wt=Ut.last()}Wt!==null&&ct.select(Wt)}else ct.select(_t)}}else if(Re.key==="Down")if(Pt.isTreeExpanded&&!Pt.isTreeLeaf){var Tt=this._sortTreeChildrenByY(Pt).first();Tt!==null&&ct.select(Tt)}else for(;Pt!==null;){var _t=Pt.findTreeParentNode();if(_t===null)break;var ht=this._sortTreeChildrenByY(_t),Ye=ht.indexOf(Pt);if(Ye<ht.length-1){ct.select(ht.elt(Ye+1));break}else Pt=_t}var fn=ct.selection.first();fn!==null&&ct.scrollToRect(fn.actualBounds)}},zn.prototype._sortTreeChildrenByY=function(ct){var Pt=new go.List().addAll(ct.findTreeChildrenNodes());return Pt.sort(function(Re,Tt){var _t=Re.location,ht=Tt.location;return _t.y<ht.y?-1:_t.y>ht.y?1:_t.x<ht.x?-1:_t.x>ht.x?1:0}),Pt},zn.prototype.copyToClipboard=function(ct){go.CommandHandler.prototype.copyToClipboard.call(this,ct),this._lastPasteOffset.set(this.pasteOffset)},zn.prototype.pasteFromClipboard=function(){var ct=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ct,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ct},Object.defineProperty(zn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ct){if(ct!=="move"&&ct!=="select"&&ct!=="scroll"&&ct!=="tree"&&ct!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ct);this._arrowKeyBehavior=ct}}),Object.defineProperty(zn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ct){if(!(ct instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ct);this._pasteOffset.set(ct)}});var ai=zn,He=ye(74413),Le=ye(43604),xe=ye(99064),Ne={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},De=ye(24065),ve=ye(59301),$e=(ct,Pt,Re)=>new Promise((Tt,_t)=>{var ht=Ut=>{try{Wt(Re.next(Ut))}catch(fn){_t(fn)}},Ye=Ut=>{try{Wt(Re.throw(Ut))}catch(fn){_t(fn)}},Wt=Ut=>Ut.done?Tt(Ut.value):Promise.resolve(Ut.value).then(ht,Ye);Wt((Re=Re.apply(ct,Pt)).next())});function mt({onCancel:ct,callback:Pt}){let Re=(0,Ce.useRef)(),Tt=(0,Ce.useRef)(),_t=(0,Ce.useRef)(),ht=(0,Ce.useRef)(!1);const Ye=(0,Ce.useRef)(!1),[Wt,Ut]=(0,Ce.useState)(0);function fn(){const at=bt.bx.make,ln={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"};Re.current=new bt.S0(Tt.current,{padding:20,grid:at(bt.s_,"Grid",at(bt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(bt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Xn=>{var fi=Xn.diagram.commandHandler.addTopLevelParts(Xn.diagram.selection,!0);fi||Xn.diagram.currentTool.doCancel()},commandHandler:at(ai),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Xn=>{var fi=Xn.subject;fi.location=fi.location.copy().snapToGridPoint(Xn.diagram.grid.gridOrigin,Xn.diagram.grid.gridCellSize),setTimeout(()=>{Xn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Xn=>{var fi=Xn.subject;setTimeout(()=>{Xn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Xn=>{var fi=Xn.parameter.part;fi.invalidateConnectedLinks();var wi=Xn.subject;Xn.diagram.toolManager.linkingTool.isForwards?wi.toNode.invalidateConnectedLinks():wi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Re.current.nodeTemplate=at(bt.NB,"Auto",{locationSpot:bt.z6.Center,locationObjectName:"SHAPE",desiredSize:new bt.$u(120,60),minSize:new bt.$u(40,40),resizable:!0,resizeCellSize:new bt.$u(10,10),rotatable:!0},new bt.KX("location","loc",bt.E9.parse).makeTwoWay(bt.E9.stringify),new bt.KX("desiredSize","size",bt.$u.parse).makeTwoWay(bt.$u.stringify),at(bt.bn,{name:"SHAPE",fill:ln.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:bt.z6.AllSides,toSpot:bt.z6.AllSides},new bt.KX("figure"),new bt.KX("fill"),new bt.KX("stroke","borderColor"),new bt.KX("strokeWidth","thickness"),new bt.KX("strokeDashArray","dash")),at(bt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),at(bt.al,{margin:1,textAlign:"center",overflow:bt.al.OverflowEllipsis,editable:!0},new bt.KX("text").makeTwoWay(),new bt.KX("stroke","color"))),Re.current.nodeTemplate.toolTip=at("ToolTip",at(bt.s_,"Vertical",{maxSize:new bt.$u(200,NaN)},at(bt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new bt.KX("text")),at(bt.al,{font:"10pt sans-serif",textAlign:"center"},new bt.KX("text","details"))));function Hn(Xn,fi){var wi=(gi,Bi)=>{gi.handled=!0,gi.diagram.model.commit(Ki=>{var ji=Bi.part.adornedPart,Pi=new bt.E9().setRectSpot(ji.actualBounds,Xn);Pi.subtract(ji.location),Pi.scale(2,2),Pi.x+=Math.sign(Pi.x)*130,Pi.y+=Math.sign(Pi.y)*130,Pi.add(ji.location),Pi.snapToGridPoint(gi.diagram.grid.gridOrigin,gi.diagram.grid.gridCellSize);var Vi=Ki.copyNodeData(ji.data);Ki.setGroupKeyForNodeData(Vi,Ki.getGroupKeyForNodeData(ji.data)),Ki.addNodeData(Vi);var Ln={from:ji.key,to:Ki.getKeyForNodeData(Vi)};Ki.addLinkData(Ln);var So=gi.diagram.findNodeForData(Vi);So.location=Pi,gi.diagram.select(So),setTimeout(()=>{gi.diagram.commandHandler.editTextBlock()},20)})};return at(bt.bn,{figure:fi,alignment:Xn,alignmentFocus:Xn.opposite(),width:Xn.equals(bt.z6.Top)||Xn.equals(bt.z6.Bottom)?25:18,height:Xn.equals(bt.z6.Top)||Xn.equals(bt.z6.Bottom)?18:25,fill:"orange",stroke:ln.white,strokeWidth:4,mouseEnter:(gi,Bi)=>Bi.fill="dodgerblue",mouseLeave:(gi,Bi)=>Bi.fill="orange",isActionable:!0,click:wi,contextClick:wi})}function ii(Xn){return at(bt.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:(fi,wi)=>wi.fill="dodgerblue",mouseLeave:(fi,wi)=>wi.fill="orange",click:(fi,wi)=>{fi.diagram.commandHandler.showContextMenu(wi.part.adornedPart)}},Xn||{})}Re.current.nodeTemplate.selectionAdornmentTemplate=at(bt.uz,"Spot",at(bt.Vm,{padding:10}),Hn(bt.z6.Top,"TriangleUp"),Hn(bt.z6.Left,"TriangleLeft"),Hn(bt.z6.Right,"TriangleRight"),Hn(bt.z6.Bottom,"TriangleDown"),ii({alignment:new bt.z6(.75,0)}));function jt(Xn,fi){return(wi,gi)=>{wi.handled=!0,wi.diagram.model.commit(Bi=>{Bi.set(gi.part.adornedPart.data,Xn,fi)})}}function sn(Xn,fi){return fi||(fi="color"),at(bt.bn,{width:16,height:16,stroke:"lightgray",fill:Xn,margin:1,background:"transparent",mouseEnter:(wi,gi)=>gi.stroke="dodgerblue",mouseLeave:(wi,gi)=>gi.stroke="lightgray",click:jt(fi,Xn),contextClick:jt(fi,Xn)})}function It(){return[at("ContextMenuButton",at(bt.s_,"Horizontal",sn(ln.white,"fill"),sn(ln.beige,"fill"),sn(ln.extralightblue,"fill"),sn(ln.extralightred,"fill"))),at("ContextMenuButton",at(bt.s_,"Horizontal",sn(ln.lightgray,"fill"),sn(ln.lightgreen,"fill"),sn(ln.lightblue,"fill"),sn(ln.lightred,"fill")))]}function on(){return[at("ContextMenuButton",at(bt.s_,"Horizontal",sn(ln.black),sn(ln.green),sn(ln.blue),sn(ln.red))),at("ContextMenuButton",at(bt.s_,"Horizontal",sn(ln.white),sn(ln.magenta),sn(ln.purple),sn(ln.orange)))]}function qt(Xn,fi){return fi||(fi="thickness"),at(bt.bn,"LineH",{width:16,height:16,strokeWidth:Xn,margin:1,background:"transparent",mouseEnter:(wi,gi)=>gi.background="dodgerblue",mouseLeave:(wi,gi)=>gi.background="transparent",click:jt(fi,Xn),contextClick:jt(fi,Xn)})}function en(Xn,fi){return fi||(fi="dash"),at(bt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Xn,margin:1,background:"transparent",mouseEnter:(wi,gi)=>gi.background="dodgerblue",mouseLeave:(wi,gi)=>gi.background="transparent",click:jt(fi,Xn),contextClick:jt(fi,Xn)})}function xn(){return[at("ContextMenuButton",at(bt.s_,"Horizontal",qt(1),qt(2),qt(3),qt(4))),at("ContextMenuButton",at(bt.s_,"Horizontal",en(null),en([2,4]),en([4,4])))]}function Pn(Xn,fi){return fi||(fi="figure"),at(bt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Xn,margin:1,background:"transparent",mouseEnter:(wi,gi)=>gi.fill="dodgerblue",mouseLeave:(wi,gi)=>gi.fill="lightgray",click:jt(fi,Xn),contextClick:jt(fi,Xn)})}Re.current.nodeTemplate.contextMenu=at("ContextMenu",at("ContextMenuButton",at(bt.s_,"Horizontal",Pn("Rectangle"),Pn("RoundedRectangle"),Pn("Ellipse"),Pn("Diamond"))),at("ContextMenuButton",at(bt.s_,"Horizontal",Pn("Parallelogram2"),Pn("ManualOperation"),Pn("Procedure"),Pn("Cylinder1"))),at("ContextMenuButton",at(bt.s_,"Horizontal",Pn("Terminator"),Pn("CreateRequest"),Pn("Document"),Pn("TriangleDown"))),It(),on(),xn()),Re.current.groupTemplate=at(bt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:bt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Xn,fi)=>{var wi=fi.addMembers(fi.diagram.selection,!0);wi||fi.diagram.currentTool.doCancel()},avoidable:!1},new bt.KX("location","loc",bt.E9.parse).makeTwoWay(bt.E9.stringify),at(bt.s_,"Auto",{name:"BODY"},at(bt.bn,{parameter1:10,fill:ln.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:bt.z6.AllSides,toSpot:bt.z6.AllSides},new bt.KX("fill"),new bt.KX("stroke","color"),new bt.KX("strokeWidth","thickness"),new bt.KX("strokeDashArray","dash")),at(bt.Vm,{background:"transparent",margin:20})),at(bt.al,{alignment:bt.z6.Top,alignmentFocus:bt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new bt.KX("text"),new bt.KX("stroke","color"))),Re.current.groupTemplate.selectionAdornmentTemplate=at(bt.uz,"Spot",at(bt.s_,"Auto",at(bt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),at(bt.Vm,{margin:1.5})),ii({alignment:bt.z6.TopRight,alignmentFocus:bt.z6.BottomRight})),Re.current.groupTemplate.contextMenu=at("ContextMenu",It(),on(),xn()),Re.current.linkTemplate=at(bt.rU,{layerName:"Foreground",routing:bt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new bt.KX("fromSpot","fromSpot",bt.z6.parse),new bt.KX("toSpot","toSpot",bt.z6.parse),new bt.KX("fromShortLength","dir",Xn=>Xn>=1?10:0),new bt.KX("toShortLength","dir",Xn=>Xn>=1?10:0),new bt.KX("points").makeTwoWay(),at(bt.bn,{strokeWidth:2},new bt.KX("stroke","color"),new bt.KX("strokeWidth","thickness"),new bt.KX("strokeDashArray","dash")),at(bt.bn,{segmentIndex:0,segmentOffset:new bt.E9(15,0),segmentOrientation:bt.rU.OrientAlong,alignmentFocus:bt.z6.Right,figure:"circle",width:10,strokeWidth:0},new bt.KX("fill","color"),new bt.KX("visible","dir",Xn=>Xn===1)),at(bt.bn,{segmentIndex:-1,segmentOffset:new bt.E9(-10,6),segmentOrientation:bt.rU.OrientPlus90,alignmentFocus:bt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new bt.KX("fill","color"),new bt.KX("visible","dir",Xn=>Xn>=1),new bt.KX("width","thickness",Xn=>7+3*Xn),new bt.KX("height","thickness",Xn=>7+3*Xn),new bt.KX("segmentOffset","thickness",Xn=>new bt.E9(-15,4+1.5*Xn))),at(bt.bn,{segmentIndex:0,segmentOffset:new bt.E9(15,-6),segmentOrientation:bt.rU.OrientMinus90,alignmentFocus:bt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new bt.KX("fill","color"),new bt.KX("visible","dir",Xn=>Xn===2),new bt.KX("width","thickness",Xn=>7+3*Xn),new bt.KX("height","thickness",Xn=>7+3*Xn),new bt.KX("segmentOffset","thickness",Xn=>new bt.E9(-15,4+1.5*Xn))),at(bt.al,{alignmentFocus:new bt.z6(0,1,-4,0),editable:!0},new bt.KX("text").makeTwoWay(),new bt.KX("stroke","color"))),Re.current.linkTemplate.selectionAdornmentTemplate=at(bt.uz,at(bt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:An(2)},new bt.KX("pathPattern","thickness",An)),ii({alignmentFocus:new bt.z6(0,0,-6,-4)}));function An(Xn){return at(bt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Xn+4).toString()+" H3"})}function Wn(Xn){var fi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Xn===0?fi="M0 0 M16 16 M0 8 L16 8":Xn===2&&(fi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),at(bt.bn,{geometryString:fi,margin:2,background:"transparent",mouseEnter:(wi,gi)=>gi.background="dodgerblue",mouseLeave:(wi,gi)=>gi.background="transparent",click:jt("dir",Xn),contextClick:jt("dir",Xn)})}function pi(Xn){var fi=(wi,gi)=>{wi.handled=!0,wi.diagram.model.commit(Bi=>{var Ki=gi.part.adornedPart;Bi.set(Ki.data,Xn?"toSpot":"fromSpot",bt.z6.stringify(bt.z6.AllSides)),(Xn?Ki.toNode:Ki.fromNode).invalidateConnectedLinks()})};return at(bt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(wi,gi)=>gi.background="dodgerblue",mouseLeave:(wi,gi)=>gi.background="transparent",click:fi,contextClick:fi})}function Yt(Xn,fi){var wi=0,gi=bt.z6.RightSide;Xn.equals(bt.z6.Top)?(wi=270,gi=bt.z6.TopSide):Xn.equals(bt.z6.Left)?(wi=180,gi=bt.z6.LeftSide):Xn.equals(bt.z6.Bottom)&&(wi=90,gi=bt.z6.BottomSide),fi||(wi-=180);var Bi=(Ki,ji)=>{Ki.handled=!0,Ki.diagram.model.commit(Pi=>{var Vi=ji.part.adornedPart;Pi.set(Vi.data,fi?"toSpot":"fromSpot",bt.z6.stringify(gi)),(fi?Vi.toNode:Vi.fromNode).invalidateConnectedLinks()})};return at(bt.bn,{alignment:Xn,alignmentFocus:Xn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:wi,background:"transparent",mouseEnter:(Ki,ji)=>ji.background="dodgerblue",mouseLeave:(Ki,ji)=>ji.background="transparent",click:Bi,contextClick:Bi})}Re.current.linkTemplate.contextMenu=at("ContextMenu",on(),xn(),at("ContextMenuButton",at(bt.s_,"Horizontal",Wn(0),Wn(1),Wn(2))),at("ContextMenuButton",at(bt.s_,"Horizontal",at(bt.s_,"Spot",pi(!1),Yt(bt.z6.Top,!1),Yt(bt.z6.Left,!1),Yt(bt.z6.Right,!1),Yt(bt.z6.Bottom,!1)),at(bt.s_,"Spot",{margin:new bt.Zt(0,0,0,2)},pi(!0),Yt(bt.z6.Top,!0),Yt(bt.z6.Left,!0),Yt(bt.z6.Right,!0),Yt(bt.z6.Bottom,!0)))));const bi=`{ "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 Di=["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 ki(Xn){return console.log("shapeName:",Xn),Di.indexOf(Xn)>=0}var nn=new bt.YI(_t.current,{maxSelectionCount:1,linkTemplate:at(bt.rU,{locationSpot:bt.z6.Center,selectionAdornmentTemplate:at(bt.uz,"Link",{locationSpot:bt.z6.Center},at(bt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),at(bt.bn,{toArrow:"Standard",stroke:null}))},{routing:bt.rU.AvoidsNodes,curve:bt.rU.JumpOver,corner:5,toShortLength:4},new bt.KX("points"),at(bt.bn,{isPanelMain:!0,strokeWidth:2}),at(bt.bn,{toArrow:"Standard",stroke:null})),model:new bt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...bt.bn.getFigureGenerators().toArray().map(Xn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Xn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Re.current.addDiagramListener("TextEdited",function(Xn){var fi;const wi=Xn.subject.part;var gi=(fi=document.activeElement)==null?void 0:fi.value;typeof gi=="string"&&gi.trim()===""&&Re.current.model.commit(function(Bi){Bi.set(wi.data,"text","\u672A\u547D\u540D"),Re.current.commandHandler.stopCommand()},"increment")}),nn.nodeTemplate=at(bt.NB,"Auto",{locationSpot:bt.z6.Center},new bt.KX("location","location",bt.E9.parse).makeTwoWay(bt.E9.stringify),at(bt.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 bt.KX("stroke").makeTwoWay(),new bt.KX("fill").makeTwoWay(),new bt.KX("figure")),at(bt.al,{margin:new bt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new bt.$u(16,16),maxSize:new bt.$u(10,NaN),textAlign:"center",editable:!0},new bt.KX("key").makeTwoWay())),setTimeout(()=>{Re.current.grid=at(bt.s_,"Grid",at(bt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(bt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Re.current.grid.visible=!0,Re.current.grid.gridCellStroke="darkgray",Re.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Re.current,Re.current}const Dn=()=>$e(this,null,function*(){var at,ln=Re.current.makeImage();const Hn=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ln.src,file_data:JSON.stringify({login:(at=(0,De.eY)())==null?void 0:at.login,data:JSON.parse(Re.current.model.toJson())})}});Pt({src:Hn.url})});return(0,Ce.useEffect)(()=>(setTimeout(()=>{fn()},500),Ut(Wt+1),()=>{Re.current=null}),[]),ve.createElement("div",{ref:Ye,className:ht.current?`${Ne.maxH60} body-overflow-initial`:"body-overflow-initial"},ve.createElement(Xt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Wt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ve.createElement(Cn.Z,null,ve.createElement(Le.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ve.createElement(Le.Z,{onClick:()=>{var at,ln,Hn=Re.current.selection.first();if(ht.current=!ht.current,document.activeElement&&Hn){let ii=(ln=(at=document.activeElement)==null?void 0:at.value)==null?void 0:ln.trim();typeof ii=="string"&&Re.current.model.commit(function(jt){jt.set(Hn.data,"text",ii||"\u672A\u547D\u540D"),Re.current.commandHandler.stopCommand()},"increment")}Ut(Wt+1)}},ve.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ct},ve.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ne.flowChartWrp},ve.createElement("div",{style:{display:"flex",height:"100%"}},ve.createElement("div",{style:{width:"300px",height:"100%"}},ve.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ve.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ne.myPaletteDiv,ref:_t})),ve.createElement("div",{style:{flex:1,position:"relative"}},ve.createElement("div",{ref:Tt,style:{height:"80vh"}}))),ve.createElement("div",{className:"tr"},ve.createElement(Ze.ZP,{size:"large",onClick:Dn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var et=mt,Ve=ye(5112),gt=ye(5871);const ft=Ve.ZP.Group,rt={margin:"0 8px"};var Mt=({callback:ct,onCancel:Pt})=>{function Re(Tt){ct(Tt)}return Ce.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Re},Ce.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ce.createElement("span",{style:rt},"\u5355\u5143\u683C\u6570\uFF1A"),Ce.createElement("span",{style:rt},"\u884C\u6570"),Ce.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ce.createElement(gt.Z,null)),Ce.createElement("span",{style:rt},"\u5217\u6570"),Ce.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ce.createElement(gt.Z,null))),Ce.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ce.createElement("span",{style:rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ce.createElement(Xe.default.Item,{name:"align"},Ce.createElement(ft,null,Ce.createElement(Ve.ZP,{value:"default"},Ce.createElement("i",{className:"fa fa-align-justify"})),Ce.createElement(Ve.ZP,{value:"left"},Ce.createElement("i",{className:"fa fa-align-left"})),Ce.createElement(Ve.ZP,{value:"center"},Ce.createElement("i",{className:"fa fa-align-center"})),Ce.createElement(Ve.ZP,{value:"right"},Ce.createElement("i",{className:"fa fa-align-right"}))))),Ce.createElement("div",{className:"flex-container flex-end"},Ce.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ce.createElement(Ze.ZP,{type:"ghost",onClick:Pt},"\u53D6\u6D88")))},pn=ye(78673),dn=ye(80727),Jt=ye.n(dn),Tn=(0,Ce.forwardRef)(({use3d:ct,width:Pt,height:Re,callback:Tt,showSaveButton:_t},ht)=>{const Ye=(0,Ce.useRef)(),Wt=(0,Ce.useRef)(),[Ut,fn]=(0,Ce.useState)(!1),Dn=(0,Ce.useRef)({id:Ye,appName:"graphing",width:Pt||1e3,height:Re||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ce.useEffect)(()=>{Wt.current=new(Jt())(Dn.current,!0),window.onload=function(){Wt.current.inject("applet_container")}},[]);const at=()=>{var ln=window.ggbApplet.getPNGBase64(1,!0,72);return Tt&&Tt(ln),ln};return(0,Ce.useEffect)(()=>{Dn.current.appName=Ut?"3D":"graphing",Wt.current.inject("applet_container")},[Ut]),(0,Ce.useEffect)(()=>{fn(ct)},[ct]),(0,Ce.useImperativeHandle)(ht,()=>({getImgData:at})),Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ye}),Ce.createElement(Cn.Z,{align:"middle"},Ce.createElement(Le.Z,{flex:1},Ce.createElement(pn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ut,onChange:ln=>fn(ln)})),Ce.createElement(Le.Z,null,Ce.createElement(Ze.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Et=ye(41588),cn=ye(8591);const On="link",Ct="upload-image",_n="add-flowchart",ui="draw-image",Ci="add-flowchart",ci="code-block",Hi="add-table",qi="------------",Xi={default:qi,left:`:${qi}`,center:`:${qi}:`,right:`${qi}:`};var eo=ye(58856);function Oo(){}let vo=0;const Ri=1e4,Co="\u2581",Bn="@\u2581\u2581@",be="@\u2581@",Mi=`
|
|
|
**\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`,Ei=["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 Dt(ct){return/^\d+$/.test(ct)?`${ct}px`:ct}const Fn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Jn={[Fn+"-B"]:"bold",[Fn+"-I"]:"italic"},wn={[On]:"\u6DFB\u52A0\u94FE\u63A5",[ci]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ct]:"\u6DFB\u52A0\u56FE\u7247",[ui]:"\u6DFB\u52A0\u753B\u56FE",[_n]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Hi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Nn=({defaultValue:ct="",onChange:Pt,width:Re="100%",height:Tt=400,miniToolbar:_t=!1,isFocus:ht=!1,watch:Ye,insertTemp:Wt,mode:Ut="markdown",id:fn="markdown-editor-id",showResizeBar:Dn=!1,noStorage:at=!1,showNullButton:ln=!1,showNullProgramButton:Hn=!1,hidetoolBar:ii=!1,fullScreen:jt=!1,onBlur:sn,onCMBeforeChange:It,onFullScreen:on,className:qt="",disablePaste:en=!1,disabled:xn=!1,disabledFill:Pn=!1,placeholder:An="",values:Wn="",extraUse:pi})=>{const[Yt,bi]=(0,Ce.useState)(null),[Di,ki]=(0,Ce.useState)(ct),[nn,Xn]=(0,Ce.useState)(Ye),[fi,wi]=(0,Ce.useState)(jt),[gi,Bi]=(0,Ce.useState)(""),[Ki,ji]=(0,Ce.useState)(0),[Pi,Vi]=(0,Ce.useState)(Tt),[Ln,So]=(0,Ce.useState)(!1),[Mn,ro]=(0,Ce.useState)(0),[No,_i]=(0,Ce.useState)(0),Go=(0,Ce.useRef)(),ko=(0,Ce.useRef)(),Ii=(0,Ce.useRef)(),Ai=(0,Ce.useRef)();(0,Ce.useEffect)(()=>{const Yi=window.scrollY||window.pageYOffset;ki(Wn),Yt==null||Yt.setValue(Wn),window.scrollTo(0,Yi)},[Wn]),(0,Ce.useEffect)(()=>{on==null||on(fi)},[fi]),(0,Ce.useEffect)(()=>{if(Go.current){let Yi=function(ti,io){var ir;if(en){io.preventDefault();return}const Ir=io.clipboardData;if(Ir){const mr=Ir.types.toString(),er=Ir.items;if(mr==="Files"||Ir.types.indexOf("Files")>-1){if(io.preventDefault(),Ut=="stex")return;try{let Lr=er[1];((ir=er[0])==null?void 0:ir.kind)==="file"&&(Lr=er[0]);const Ar=Lr.getAsFile(),ra=Ar.name.split(".").pop();(0,Ft.I)(Ar,ua=>{var wa,vn,ia;ua.id?((wa=Ar==null?void 0:Ar.type)==null?void 0:wa.indexOf("image"))>-1?Qi.replaceSelection(`<img width="100%" src="/api/attachments/${ua.id}?type=${ua.content_type})" alt="" />`):((vn=Ar==null?void 0:Ar.type)==null?void 0:vn.indexOf("video"))>-1?Qi.replaceSelection(`<video width="100%" controls src="/api/attachments/${ua.id}"></video>`):((ia=Ar==null?void 0:Ar.type)==null?void 0:ia.indexOf("pdf"))>-1?Qi.replaceSelection(`<a href="/api/attachments/${ua.id}?type=${Ar.type}&disposition=inline" target="_blank">${Ar.name}</a>`):Ei.includes(ra)?Qi.replaceSelection(`<a href="/api/attachments/${ua.id}?type=office&disposition=inline" target="_blank">${Ar.name}</a>`):Qi.replaceSelection(`[${Ar.name}](/api/attachments/${ua.id}?type=${ua.content_type})`):(ua==null?void 0:ua.status)===401&&(document.location.href="/user/login")})}catch(Lr){cn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Qi=tt().fromTextArea(Go.current,{mode:Ut,lineNumbers:!_t,lineWrapping:!0,value:ct,autoCloseTags:!0,autoCloseBrackets:!0});return Qi.on("keyup",function(ti,io){io.keyCode===8&&(ti.getValue()==""?Qi.setOption("placeholder",An):Qi.setOption("placeholder",null))}),Qi.on("keydown",function(ti,io){if(io.keyCode===8){var ir=yo(ti);ir&&io.preventDefault()}}),ht&&Qi.focus(),Qi.on("paste",Yi),xn&&Qi.on("beforeChange",function(ti,io){(io.origin==="paste"||io.origin==="+input")&&io.cancel()}),bi(Qi),()=>{Qi.off("paste",Yi)}}},[]);const Zi=(0,Ce.useCallback)(()=>{if(ko.current)try{}catch(Yi){console.log(Yi,"---- to set md editor body height")}},[Pi,ko,fi]);(0,Ce.useEffect)(()=>{function Yi(){let Qi=new At.Z(ti=>{for(let io of ti)(io.target.offsetHeight>0||io.target.offsetWidth>0)&&(Zi(),Yt.setSize("100%","100%"),Yt.refresh())});return Qi.observe(Go.current.parentElement),Qi}if(Yt){const Qi=Yi();return()=>{var ti,io;(ti=Go.current)!=null&&ti.parentElement&&Qi.unobserve((io=Go.current)==null?void 0:io.parentElement)}}},[Yt,Zi]),(0,Ce.useEffect)(()=>{if(Yt){let Yi=[];for(const[Qi,ti]of Object.entries(Jn)){let io={[Qi]:()=>{di(ti)}};Yi.push(io),Yt.addKeyMap(io)}return()=>{for(let Qi of Yi)Yt.removeKeyMap(Qi)}}},[Yt]),(0,Ce.useEffect)(()=>{jt!==fi&&wi(jt)},[jt]),(0,eo.Z)(()=>{if(!at&&Ki>0){let Yi=new Date().getTime(),Qi=window.sessionStorage.getItem(fn);Yi>=Ki+Ri&&(!Qi||Qi!==Di)&&(window.sessionStorage.setItem(fn,Di),So(!0))}},Ri),(0,Ce.useEffect)(()=>{Xn(Ye)},[Yt,Ye]),(0,Ce.useEffect)(()=>{Yt&&ht&&Yt.focus()},[Yt,ht]),(0,Ce.useEffect)(()=>{if(nn&&Yt){let Yi=function(ti){let io=ti.target;if(Ai.current){let ir=io.scrollTop/io.scrollHeight;Ai.current.scrollTop=Ai.current.scrollHeight*ir}};const Qi=Yt.getScrollerElement();return Qi.addEventListener("scroll",Yi),()=>{Qi.removeEventListener("scroll",Yi)}}},[Yt,nn]),(0,Ce.useEffect)(()=>{if(Yt&&It){let Yi=function(Qi,ti){It(Qi,ti)};return Yt.on("beforeChange",Yi),()=>{Yt.off("beforeChange",Yi)}}},[Yt,It]),(0,Ce.useEffect)(()=>{if(Yt&&sn){let Yi=function(){sn(Yt.getValue())};return Yt.on("blur",Yi),()=>{Yt.off("blur",Yi)}}},[Yt,sn]);function yo(Yi,Qi){var ti=Yi.getDoc(),io=ti.getCursor(),ir=ti.getLine(io.line),Ir=ir.charAt(io.ch-1),mr=ir.lastIndexOf("@\u2581@",io.ch),er=ir.lastIndexOf("@\u2581\u2581@",io.ch),Lr=mr>er?mr:er,Ar=mr>er?3:4;if(Bn.indexOf(Ir)===-1)return null;if(console.log("change1:",Qi,Yi,ir,io,Lr,mr,er,Ir),Lr>=0&&io.ch-Lr<5){var ra=Lr+Ar;return ti.replaceRange("",{line:io.line,ch:Lr},{line:io.line,ch:ra}),{line:io.line,ch:ra}}return null}(0,Ce.useEffect)(()=>{if(Yt){let Yi=function(Qi,ti){const io=Qi.getValue();ki(io),ji(new Date().getTime()),Qi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pt&&(Hn?Pt(io,ao(io)):Pt(io))};return Yt.on("change",Yi),()=>{Yt.off("change",Yi)}}},[Yt,Pt]),(0,Ce.useEffect)(()=>{if(Yt)if(ct==null)Yt.setValue(""),ki("");else{const Yi=window.scrollY||window.pageYOffset;ct!==Yt.getValue()&&(Yt.setValue(ct),ki(ct),Yt.setCursor(xn?1:Yt.lineCount(),0),window.scrollTo(0,Yi))}},[Yt,ct]);const di=(0,Ce.useCallback)(Yi=>{const Qi=Yt.getCursor(),ti=Yt.getSelection();let io=ti.split(`
|
|
|
`);switch(Yi){case"bold":return Yt.replaceSelection("**"+ti+"**"),ti===""&&Yt.setCursor(Qi.line,Qi.ch+2),Yt.focus();case"italic":return Yt.replaceSelection("*"+ti+"*"),ti===""&&Yt.setCursor(Qi.line,Qi.ch+1),Yt.focus();case"code":return Yt.replaceSelection("`"+ti+"`"),ti===""&&Yt.setCursor(Qi.line,Qi.ch+1),Yt.focus();case"inline-latex":return Bi("inline-latex"),Yt.focus();case"latex":return Yt.replaceSelection("```latex\n"+ti+"\n```"),Yt.setCursor(Qi.line+1,ti.length+1),Yt.focus();case"line-break":return Yt.replaceSelection(`<br/>
|
|
|
`),Yt.focus();case"list-ul":return ti===""?Yt.replaceSelection("- "+ti):Yt.replaceSelection(io.map(ir=>ir===""?"":`- ${ir}`).join(`
|
|
|
`)),Yt.focus();case"list-ol":return ti===""?Yt.replaceSelection("1. "+ti):Yt.replaceSelection(io.map((ir,Ir)=>ir===""?"":`${Ir+1}. ${ir}`).join(`
|
|
|
`)),Yt.focus();case"add-null-ch":return ti===""&&Yt.setCursor(Qi.line,Qi.ch),Yt.replaceSelection(Co),Yt.focus();case"add-signal":return ti===""&&Yt.setCursor(Qi.line,Qi.ch),Yt.replaceSelection(be),Yt.focus();case"add-multiple":return ti===""&&Yt.setCursor(Qi.line,Qi.ch),Yt.replaceSelection(Bn),Yt.focus();case"inster-template-1":return ti===""&&Yt.setCursor(Qi.line,Qi.ch),Yt.replaceSelection(Mi),Yt.focus();case"eraser":return Yt.setValue(""),Yt.focus();case"trigger-watch":return Xn(!nn),Yt.focus();case"trigger-full-screen":return wi(!fi),Yt.focus();case On:Bi(On);return;case ci:Bi(ci);return;case Ct:Bi(Ct);return;case ui:Bi(ui);return;case"maths-latex":Bi("maths-latex");return;case _n:Bi(_n);return;case Hi:Bi(Hi);return;default:throw new Error}},[Yt,nn,fi]),Ke=(0,Ce.useCallback)((Yi,Qi)=>{var ti,io,ir,Ir,mr,er;switch(Bi(""),gi){case On:const{title:wa,link:vn}=Yi;return Yt.replaceSelection(`[${wa}](${vn})`),Yt.focus();case ci:const{language:ia,content:Us}=Yi;return Yt.replaceSelection(["```"+ia,Us,"```"].join(`
|
|
|
`)),Yt.focus();case"maths-latex":for(var Lr=atob(Yi),Ar=new Uint8Array(Lr.length),ra=0;ra<Lr.length;ra++)Ar[ra]=Lr.charCodeAt(ra);var ua=new Blob([Ar],{type:"image/png"});(0,Ft.I)(ua,no=>{no.id?Yt.replaceSelection(``):(no==null?void 0:no.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Yt.replaceSelection("`$$"+Yi+"$$`");break;case Ct:case ui:case Ci:const{src:us,alt:xr}=Yi,or=Qi,da=(ir=(io=(ti=or==null?void 0:or.name)==null?void 0:ti.split("."))==null?void 0:io.pop)==null?void 0:ir.call(io);return((Ir=or==null?void 0:or.type)==null?void 0:Ir.indexOf("image"))>-1||!(or!=null&&or.type)?or!=null&&or.align||or!=null&&or.width?Yt.replaceSelection(`<p style="text-align:${or.align||"initial"}"><img width="${or.width?or.width+"%":"initial"}" src="${us}" alt="${xr||""}" /></p>`):Yt.replaceSelection(`<img width="100%" src="${us}" alt="${xr||""}" />`):((mr=or==null?void 0:or.type)==null?void 0:mr.indexOf("video"))>-1?Yt.replaceSelection(`<video width="100%" controls src="${us}"></video>`):((er=or==null?void 0:or.type)==null?void 0:er.indexOf("pdf"))>-1?Yt.replaceSelection(`<a href="${us}?type=${or.type}&disposition=inline" target="_blank">${or.name}</a>`):Ei.includes(da)?Yt.replaceSelection(`<a href="${us}?type=office&disposition=inline" target="_blank">${or.name}</a>`):Yt.replaceSelection(`[${or.name}](${us})`),Yt.focus();case Hi:const{row:Ro,col:lo,align:Ko}=Yi;let Wr=`
|
|
|
`;for(let no=0;no<Ro;no++){let Io=[],Fo=[];for(let vi=0;vi<lo;vi++)no===1&&Fo.push(Xi[Ko]),Io.push(" ");no===1&&(Wr+=`| ${Fo.join(" | ")} |
|
|
|
`),Wr+=`| ${Io.join(lo===1?"":" | ")} |
|
|
|
`}return Yt.replaceSelection(Wr+`
|
|
|
`),Yt.focus();default:throw new Error}},[Yt,gi]),Do=(0,Ce.useMemo)(()=>{switch(gi){case On:return Ce.createElement(tn,{callback:Ke,onCancel:nr});case ci:return Ce.createElement(bn.Z,{callback:Ke,onCancel:nr});case Ct:return Ce.createElement(Ft.Z,{callback:Ke,onCancel:nr});case _n:return Ce.createElement(et,{callback:Ke,onCancel:nr});case Hi:return Ce.createElement(Mt,{callback:Ke,onCancel:nr});case"maths-latex":return Ce.createElement(Tn,{showSaveButton:!0,callback:Ke});case"inline-latex":return Ce.createElement(Et.Z,{showSaveButton:!0,callback:Ke});default:return null}},[gi]);function nr(){Bi("")}(0,Ce.useEffect)(()=>{if(Ii.current){let Yi=function(mr){ir=!0,Ir=mr.pageY},Qi=function(){ir=!1},ti=function(mr){if(ir){let er=mr.pageY-Ir;er<0&&(er=0),er>300&&(er=300);let Lr=Tt+er+"px";Vi(Lr)}},io=Ii.current,ir=!1,Ir=0;return io.addEventListener("mousedown",Yi),document.addEventListener("mousemove",ti),document.addEventListener("mouseup",Qi),()=>{io.removeEventListener("mousedown",Yi),document.removeEventListener("mousemove",ti),document.removeEventListener("mouseup",Qi)}}},[Yt,Ii]),(0,Ce.useEffect)(()=>{Vi(Tt)},[Tt]);const xo=Dt(Re),hr=Dt(Pi),Qo={width:xo,height:hr},$i=(0,Ce.useMemo)(()=>{if(Ki){let Yi=new Date(Ki),Qi=Yi.getHours(),ti=Yi.getMinutes(),io=Yi.getSeconds();return Qi=Qi<10?"0"+Qi:Qi,ti=ti<10?"0"+ti:ti,io=io<10?"0"+io:io,`${Qi}:${ti}:${io}`}return 0},[Ki]),ao=Yi=>{const Qi=[];if(Hn){let ti=-1;Yi=Yi.replace(/(@▁▁@|@▁@)/g,function(io,ir,Ir){Qi.push({multiLine:io!==be})})}return Qi};function jo(){window.sessionStorage.removeItem(fn),So(!1),ji(0)}function Lo(){So(!1),ji(0),Yt.setValue(window.sessionStorage.getItem(fn))}(0,Ce.useEffect)(()=>{wn[gi]&&gi!==ui&&gi!==_n&&setTimeout(()=>{const Yi=document.getElementsByClassName("markdown-popup-form")[0],Qi=window.innerWidth/2-Yi.offsetWidth/2,ti=window.innerHeight/2-Yi.offsetHeight/2;ro(Qi),_i(ti)},0)},[gi]);const dr=Yi=>{Yi.preventDefault();const Qi=Yi.clientX-Mn,ti=Yi.clientY-No;document.body.onmousemove=io=>{let ir=io.clientX-Qi,Ir=io.clientY-ti;const mr=document.getElementsByClassName("markdown-popup-form")[0],er=window.innerWidth-mr.offsetWidth,Lr=window.innerHeight-mr.offsetHeight;ir=Math.max(0,Math.min(ir,er)),Ir=Math.max(0,Math.min(Ir,Lr)),Pr(io.clientX,io.clientY,Qi,ti)&&(ro(ir),_i(Ir))},document.body.onmouseup=function(){document.body.onmousemove=null}},Pr=(Yi,Qi,ti,io)=>{const ir=document.body.clientHeight,Ir=document.body.clientWidth;return Yi<20&&ti>Yi||Yi>Ir-20&&ti<Yi||Qi<20&&io>Qi||Qi>ir-20&&io<Qi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{className:"markdown-editor-wrapper",ref:ko},Ce.createElement("div",{className:`markdown-editor-container ${qt} ${nn?"on-preview":""} ${_t?"mini":""} ${fi?"full-screen":""}`,style:Qo},Ce.createElement(We,{insertTemp:Wt,watch:nn,fullScreen:fi,showNullButton:ln,showNullProgramButton:Hn,onActionCallback:di,hidetoolBar:ii,extraUse:pi}),Ce.createElement("div",{className:"markdown-editor-body"},Ce.createElement("div",{className:"codemirror-container"},Ce.createElement("textarea",{ref:Go,placeholder:An})),nn?Ce.createElement("div",{ref:Ai,className:"preview-container"},Ut==="stex"&&Ce.createElement(xt,{value:Di}),Ut!=="stex"&&Ce.createElement(Rt.Z,{disabledFill:Pn,showProgramFill:Hn,value:Di})):null))),Dn?Ce.createElement("a",{ref:Ii,className:"editor-resize"}):null,gi===ui&&Ce.createElement(Gn,{callback:Ke,onCancel:nr}),gi===_n&&Ce.createElement(et,{callback:Ke,onCancel:nr}),Ce.createElement(nt.Z,null,wn[gi]&&gi!==ui&&gi!==_n?Ce.createElement(Xt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Mn,top:No},title:Ce.createElement("div",{style:{cursor:"move"},onMouseDown:dr},wn[gi]),open:!0,onCancel:nr,footer:null,destroyOnClose:!0,width:gi===_n?"1200px":null,height:gi===_n?"80vh":null,className:"markdown-popup-form"},Do):null))}},28451:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Be},I:function(){return We}});var Ce=ye(78241),Oe=ye(8591),tt=ye(92832),At=ye(81327),Ue=ye(5871),Je=ye(5112),ke=ye(3113),Ot=ye(77903),Lt=ye(59301),ot=ye(59301),Rt=Object.defineProperty,xt=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,he=(nt,Xe,dt)=>Xe in nt?Rt(nt,Xe,{enumerable:!0,configurable:!0,writable:!0,value:dt}):nt[Xe]=dt,se=(nt,Xe)=>{for(var dt in Xe||(Xe={}))te.call(Xe,dt)&&he(nt,dt,Xe[dt]);if(Ae)for(var dt of Ae(Xe))ne.call(Xe,dt)&&he(nt,dt,Xe[dt]);return nt},ge=(nt,Xe)=>xt(nt,zt(Xe));const{useForm:me}=Ce.default,we={width:280,marginRight:10},Fe={labelCol:{span:5},wrapperCol:{span:19}};var Be=({callback:nt,onCancel:Xe})=>{const[dt]=me();let Ze=(0,Lt.useRef)();function Zt(Gt){Ze.current.width=dt.getFieldValue("width"),Ze.current.align=dt.getFieldValue("align"),nt(Gt,Ze.current)}function yt(Gt,Vt){if(Gt.status===-1){Oe.ZP.error(Gt.message);return}dt.setFieldsValue({src:`/api/attachments/${Gt.id}`,type:Vt.type})}function an(Gt){let Vt=Gt.target.files[0];Ze.current=Vt,We(Vt,yt)}return ot.createElement(Ce.default,ge(se({form:dt},Fe),{className:"upload-image-panel",onFinish:Zt,style:{width:470,overflow:"hidden"}}),ot.createElement(Ce.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ot.createElement("div",{className:"flex-container"},ot.createElement(Ce.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ot.createElement(tt.default,{style:we})),ot.createElement(Ie,{onFileChange:an}))),ot.createElement(Ce.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ot.createElement(tt.default,{style:{width:264}})),ot.createElement(Ce.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ot.createElement(At.Z,null,ot.createElement(Ce.default.Item,{name:"width",style:{margin:0}},ot.createElement(Ue.Z,{style:{width:264}})),ot.createElement("span",{className:"ml8"},"%"))),ot.createElement(Ce.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ot.createElement(Je.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ot.createElement("aside",null,ot.createElement(Ce.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ot.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ot.createElement(ke.ZP,{type:"default",onClick:Xe},"\u53D6\u6D88"))))};function Ie({onFileChange:nt}){return ot.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ot.createElement("input",{type:"file",onChange:nt}))}function We(nt,Xe){if(!nt)throw new String("\u6CA1\u6709\u6587\u4EF6");let dt=new FormData;dt.append("editormd-image-file",nt),dt.append("file_param_name","editormd-image-file"),dt.append("byxhr","true");var Ze=new window.XMLHttpRequest;Ze.withCredentials=!0,Ze.addEventListener("load",function(Zt){Xe(JSON.parse(Zt.target.responseText),nt)},!1),Ze.addEventListener("error",function(Zt){console.error(Zt)},!1),Ze.open("POST",`${Ot.KI}/api/attachments.json`),Ze.send(dt)}},79346:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return tt}});var Ce=ye(59301),Oe=ye(4676);class tt extends Ce.Component{constructor(Ue){super(Ue);const Je=window.document;this.node=Je.createElement("div"),Je.body.appendChild(this.node)}render(){const{children:Ue}=this.props;return(0,Oe.createPortal)(Ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Kn,kn,ye){"use strict";ye.d(kn,{SV:function(){return $e},ZP:function(){return ve}});var Ce=ye(59301),Oe=ye(76374);const tt={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"]},At={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"]},Ue={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(`
|
|
|
`)}]},Je={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 Ot=ye(53184),Lt=ye.n(Ot),ot=Object.defineProperty,Rt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,zt=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(mt,et,Ve)=>et in mt?ot(mt,et,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):mt[et]=Ve,he=(mt,et)=>{for(var Ve in et||(et={}))Ae.call(et,Ve)&&ne(mt,Ve,et[Ve]);if(zt)for(var Ve of zt(et))te.call(et,Ve)&&ne(mt,Ve,et[Ve]);return mt},se=(mt,et)=>Rt(mt,xt(et)),ge=(mt,et,Ve)=>new Promise((gt,ft)=>{var rt=dn=>{try{pn(Ve.next(dn))}catch(Jt){ft(Jt)}},Mt=dn=>{try{pn(Ve.throw(dn))}catch(Jt){ft(Jt)}},pn=dn=>dn.done?gt(dn.value):Promise.resolve(dn.value).then(rt,Mt);pn((Ve=Ve.apply(mt,et)).next())});const me={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},we=(mt,et)=>et.map(Ve=>({label:Ve,kind:mt.languages.CompletionItemKind.Keyword,insertText:Ve})),Fe=mt=>Object.keys(me.tables).map(et=>({label:et,kind:mt.languages.CompletionItemKind.Variable,insertText:et})),Be=(mt,et)=>{const Ve=me.tables[mt];return Ve?Ve.map(gt=>({label:gt,kind:et.languages.CompletionItemKind.Field,insertText:gt})):[]};function Ie(mt,et,Ve,gt,ft){let rt=et.getWordUntilPosition(Ve),Mt={startLineNumber:Ve.lineNumber,endLineNumber:Ve.lineNumber,startColumn:rt.startColumn,endColumn:rt.endColumn},pn=gt.map(dn=>({label:dn,kind:mt.languages.CompletionItemKind.Keyword,insertText:dn,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Mt}));return ft.map(dn=>{pn.push(se(he({},dn),{range:Mt}))}),pn}var We=mt=>{me.languages.map(ft=>(mt.languages.registerDocumentFormattingEditProvider(ft,{provideDocumentFormattingEdits(rt,Mt,pn){return ge(this,null,function*(){const dn=Lt()(rt.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:rt.getFullModelRange(),text:dn}]})}}),ft));const et=Ue.quickKey.map(ft=>({label:ft.label,kind:mt.languages.CompletionItemKind.Method,insertText:ft.content,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ve=Je.quickKey.map(ft=>({label:ft.label,kind:mt.languages.CompletionItemKind.Method,insertText:ft.content,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),gt=At.quickKey.map(ft=>({label:ft.label,kind:mt.languages.CompletionItemKind.Method,insertText:ft.content,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));mt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ft,rt){var Mt=ft.getWordUntilPosition(rt),pn={startLineNumber:rt.lineNumber,endLineNumber:rt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},dn=ft.getLineContent(rt.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...Ue.keywords.map(Jt=>({label:Jt,kind:mt.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn})),...Ue.quickKey.map(Jt=>({label:Jt.label,kind:mt.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:dn.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}}),mt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ft,rt){var Mt=ft.getWordUntilPosition(rt),pn={startLineNumber:rt.lineNumber,endLineNumber:rt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn};return{suggestions:[...tt.keywords.map(dn=>({label:dn,kind:mt.languages.CompletionItemKind.Function,documentation:dn,insertText:dn,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}}),mt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ft,rt){var Mt=ft.getWordUntilPosition(rt),pn={startLineNumber:rt.lineNumber,endLineNumber:rt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},dn=ft.getLineContent(rt.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...At.keywords.map(Jt=>({label:Jt,kind:mt.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn})),...At.quickKey.map(Jt=>({label:Jt.label,kind:mt.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:dn.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}}),mt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ft,rt){var Mt=ft.getWordUntilPosition(rt),pn={startLineNumber:rt.lineNumber,endLineNumber:rt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},dn=ft.getLineContent(rt.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...ke.keywords.map(Jt=>({label:Jt,kind:mt.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn})),...ke.quickKey.map(Jt=>({label:Jt.label,kind:mt.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:dn.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}}),mt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ft,rt){var Mt=ft.getWordUntilPosition(rt),pn={startLineNumber:rt.lineNumber,endLineNumber:rt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},dn=ft.getLineContent(rt.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...Je.keywords.map(Jt=>({label:Jt,kind:mt.languages.CompletionItemKind.Function,documentation:Jt,insertText:Jt,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn})),...Je.quickKey.map(Jt=>({label:Jt.label,kind:mt.languages.CompletionItemKind.Function,documentation:Jt.content,insertText:dn.startsWith("#")?Jt.content.replace(/#/,""):Jt.content,insertTextRules:mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pn}))]}}})};const nt="\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,dt=(mt,et,Ve)=>et in mt?Xe(mt,et,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):mt[et]=Ve,Ze=(mt,et,Ve)=>dt(mt,typeof et!="symbol"?et+"":et,Ve);const Zt=class px{constructor(et,Ve,gt){this.placeholder=et,this.editor=Ve,this.monaco=gt,Ve.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return px.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)}};Ze(Zt,"ID","editor.widget.placeholderHint");var an=Zt,Gt=ye(96236),Vt=ye(8591),hn=ye(6848),yn=ye(89392),vt=ye(34604),je=ye(56102),wt=Object.defineProperty,tn=Object.defineProperties,bn=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,Qn=(mt,et,Ve)=>et in mt?wt(mt,et,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):mt[et]=Ve,gn=(mt,et)=>{for(var Ve in et||(et={}))Xt.call(et,Ve)&&Qn(mt,Ve,et[Ve]);if(Ft)for(var Ve of Ft(et))Cn.call(et,Ve)&&Qn(mt,Ve,et[Ve]);return mt},Gn=(mt,et)=>tn(mt,bn(et)),bt=(mt,et)=>{var Ve={};for(var gt in mt)Xt.call(mt,gt)&&et.indexOf(gt)<0&&(Ve[gt]=mt[gt]);if(mt!=null&&Ft)for(var gt of Ft(mt))et.indexOf(gt)<0&&Cn.call(mt,gt)&&(Ve[gt]=mt[gt]);return Ve},zn=(mt,et,Ve)=>new Promise((gt,ft)=>{var rt=dn=>{try{pn(Ve.next(dn))}catch(Jt){ft(Jt)}},Mt=dn=>{try{pn(Ve.throw(dn))}catch(Jt){ft(Jt)}},pn=dn=>dn.done?gt(dn.value):Promise.resolve(dn.value).then(rt,Mt);pn((Ve=Ve.apply(mt,et)).next())});function ai(mt){return/^\d+$/.test(mt)?`${mt}px`:mt}function He(){}let Le=!1;const xe={"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 Ne(mt=[]){let et=mt;if(Array.isArray(mt)){for(let Ve=0;Ve<mt.length;Ve++){let gt=xe[mt[Ve]];if(gt)return gt}return et[0]}return xe[et]||et}let De=null;var ve=mt=>{var et=mt,{width:Ve="100%",height:gt="100%",value:ft,language:rt="javascript",style:Mt={},options:pn={},overrideServices:dn={},theme:Jt="vs-dark",onEditBlur:Rn,isCopy:Tn=!1,onSave:Et,autoHeight:cn=!1,forbidCopy:On=!1,onChange:Ct=He,editorDidMount:_n=He,onFocus:ui=He,onBreakPoint:Ci=He,breakPointValue:ci=[],filename:Hi="educoder.txt",errorLine:qi,errorContent:Xi="",highlightLine:eo,openBreakPoint:Oo=!1,placeholder:vo=""}=et,Ri=bt(et,["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,Ce.useRef)(),Bn=(0,Ce.useRef)({}),be=(0,Ce.useRef)(),Mi=(0,Ce.useRef)(),Ei=(0,Ce.useRef)([]),Dt=(0,Ce.useRef)(!1),En=(0,Ce.useRef)(),Fn=(0,Ce.useRef)(),Jn=(0,Ce.useRef)(!1),[wn,Nn]=(0,Ce.useState)(!1);function ct(){let jt;return Co.current&&(jt=new Oe.Z(sn=>{for(let It of sn)(It.target.offsetHeight>0||It.target.offsetWidth>0)&&Bn.current.instance.layout()}),jt.observe(Co.current)),jt}function Pt(){Vt.ZP.warning({content:decodeURIComponent(nt),key:"monaco-editor-tip"})}const Re=()=>{let jt=Bn.current.instance;if(ft!=null&&jt&&wn){const sn=jt.getModel();sn&&ft!==sn.getValue()&&(Le=!0,sn.setValue(ft),jt.layout(),Le=!1)}};(0,Ce.useEffect)(()=>{const jt=vt.Z.subscribe("formatDocument",sn=>{var It;let on=Bn.current.instance;(It=on==null?void 0:on.getAction)==null||It.call(on,"editor.action.formatDocument").run()});return window.updateMonacoValue=sn=>{Ct(sn)},jt},[]),(0,Ce.useEffect)(()=>{var jt;let sn=Bn.current.instance;Mi.current&&clearTimeout(Mi.current),Mi.current=setTimeout(()=>{Re()},500),ft&&(ft!=null&&ft.length)&&((jt=sn==null?void 0:sn.updateOptions)==null||jt.call(sn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ft.split(/\r\n|\r|\n/g).length))+3,5)}))},[ft,wn,Bn.current]),(0,Ce.useEffect)(()=>{if(qi&&Bn.current&&Bn.current.instance){let sn=Bn.current.instance;sn.changeViewZones(function(It){var on=document.createElement("div");on.style.padding="10px 20px",on.style.width="calc(100% - 20px)",on.className="my-error-line-wrp",on.innerHTML=Xi,It.addZone({afterLineNumber:qi||11,heightInLines:3,domNode:on})});var jt={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(jt),sn.revealPositionInCenter({lineNumber:20,column:1})}},[qi,Bn.current,wn]);const Tt=(jt="",sn)=>{if(!jt||jt.trim()==="")return!0;const on=Bn.current.instance.getModel().getLineTokens(sn);let qt=!1;for(let en=0;en<2;en++)on.getStandardTokenType(en)===1&&(qt=!0);return qt};(0,Ce.useEffect)(()=>{var jt;const sn=(jt=Bn.current)==null?void 0:jt.instance;if(sn&&wn&&On){const It=sn.onDidBlurEditorWidget(()=>{Jn.current=!1}),on=sn.onDidFocusEditorText(()=>{Jn.current=!0});return()=>{It.dispose(),on.dispose()}}},[Bn.current,wn,On]),(0,Ce.useEffect)(()=>{var jt;if((jt=Bn.current)!=null&&jt.instance&&wn&&Oo){let sn=Bn.current.instance,It=sn.getModel();if(!It)return;(()=>{var ki;let nn=[],Xn=[];const fi=It.getAllDecorations();for(let gi of fi)gi.options.className==="highlighted-line"&&(nn.push((ki=gi==null?void 0:gi.range)==null?void 0:ki.startLineNumber),Xn.push(gi==null?void 0:gi.id));if(eo===nn[0])return;It.deltaDecorations(Xn,[]);const wi=It.getLineCount();eo&&eo<=wi&&(sn.deltaDecorations([],[{range:new De.Range(eo,1,eo,It.getLineMaxColumn(eo)),options:{isWholeLine:!0,className:"highlighted-line"}}]),sn.revealLineInCenter(eo))})();const qt=(ki=!1)=>{var nn;let Xn=[],fi=[];const wi=It.getAllDecorations();for(let gi of wi)gi.options.linesDecorationsClassName==="breakpoints-select"&&(Xn.push((nn=gi==null?void 0:gi.range)==null?void 0:nn.startLineNumber),fi.push(gi==null?void 0:gi.id));if(ki)return{lines:Xn,ids:fi};Ci(Xn)},en=ki=>zn(void 0,null,function*(){let nn={range:new De.Range(ki,1,ki,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield It.deltaDecorations([],[nn]),qt()}),xn=ki=>zn(void 0,null,function*(){let nn=[];const Xn=sn.getLineDecorations(ki);for(let fi of Xn)fi.options.linesDecorationsClassName==="breakpoints-select"&&nn.push(fi.id);yield It.deltaDecorations(nn,[]),qt()}),Pn=ki=>{let nn=sn.getLineDecorations(ki);for(let Xn of nn)if(Xn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,yn.isEqual)(ci,qt(!0).lines)){It.deltaDecorations(qt(!0).ids,[]);const ki=ci.map(nn=>({range:new De.Range(nn,1,nn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));It.deltaDecorations([],ki)}const An=sn.onDidChangeModelContent(ki=>{let nn=sn.getPosition();if(nn){let Xn=nn.lineNumber;clearTimeout(Fn.current),Fn.current=setTimeout(()=>{Tt(It.getLineContent(Xn),Xn)?xn(Xn):Pn(Xn)?(xn(Xn),en(Xn)):qt()},100)}}),Wn=sn.onMouseDown(ki=>{var nn,Xn,fi;if(ki.target.detail&&((fi=(Xn=(nn=ki.target)==null?void 0:nn.element)==null?void 0:Xn.className)!=null&&fi.includes("line-numbers"))){let wi=ki.target.position.lineNumber;if(Tt(It.getLineContent(wi),wi))return;Pn(wi)?xn(wi):en(wi)}}),pi=ki=>{let nn={range:new De.Range(ki,1,ki,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ei.current=sn.deltaDecorations(Ei.current,[nn])},Yt=()=>{Ei.current=sn.deltaDecorations(Ei.current,[])},bi=sn.onMouseMove(ki=>{var nn,Xn,fi;if(Yt(),ki.target.detail&&((fi=(Xn=(nn=ki.target)==null?void 0:nn.element)==null?void 0:Xn.className)!=null&&fi.includes("line-numbers"))){let wi=ki.target.position.lineNumber;if(Tt(It.getLineContent(wi),wi))return;pi(wi)}}),Di=sn.onMouseLeave(()=>{Yt()});return()=>{An.dispose(),Wn.dispose(),bi.dispose(),Di.dispose()}}},[Bn.current,wn,ci,eo,Oo,rt]),(0,Ce.useEffect)(()=>{var jt;(jt=Bn.current)!=null&&jt.instance&&Oo&&Bn.current.instance.setPosition({lineNumber:0,column:0})},[eo]);function _t(){let jt=Bn.current.instance;if(jt){const sn=jt.getSelection(),It=Bn.current.pastePos||{},on=new De.Range(It.startLineNumber||sn.endLineNumber,It.startColumn||sn.endColumn,It.endLineNumber||sn.endLineNumber,It.endColumn||sn.endColumn);setTimeout(()=>{jt.executeEdits("",[{range:on,text:""}])},300)}}function ht(jt){(window.navigator.platform.match("Mac")?jt.metaKey:jt.ctrlKey)&&jt.keyCode==83&&(jt.preventDefault(),Et())}const Ye=()=>{if(cn&&Bn.current.instance){const jt=Bn.current.instance.getContentHeight();Hn(jt<gt?gt:jt)}else Hn(gt)};function Wt(jt){var sn=document.createEvent("MouseEvents");sn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),jt.dispatchEvent(sn)}const Ut=jt=>{if(!Jn.current)return;const{keyCode:sn,ctrlKey:It,metaKey:on,target:qt,type:en}=jt;return(en==="paste"||(sn===67||sn===86)&&(on||It))&&qt.nodeName==="TEXTAREA"&&(Pt(),jt.preventDefault()),!1};function fn(jt,sn){var It=window.URL||window.webkitURL||window,on=new Blob([sn]),qt=document.createElementNS("http://www.w3.org/1999/xhtml","a");qt.href=It.createObjectURL(on),qt.download=jt,Wt(qt)}(0,Ce.useEffect)(()=>{Ye()},[Ye]),(0,Ce.useEffect)(()=>{Co.current&&!wn&&Promise.all([ye.e(8909),ye.e(3267)]).then(ye.bind(ye,71448)).then(jt=>{try{De=jt,Bn.current.instance=De.editor.create(Co.current,{value:ft,language:Ne(rt),theme:Jt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},dn);const sn=Bn.current.instance;let qt=[...Gt.BH._menuItems].find(An=>An[0]._debugName=="EditorContext")[1],en=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xn=(An,Wn)=>{var pi,Yt;let bi=An._first;do Wn.includes((Yt=(pi=bi.element)==null?void 0:pi.command)==null?void 0:Yt.id)&&An._remove(bi);while(bi=bi.next)};if(_n(sn,De),setTimeout(()=>{Ye(),Bn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{fn(Hi||"educoder.txt",sn.getValue())}})},500),Bn.current.subscription=sn.onDidChangeModelContent(An=>{Dt.current?clearTimeout(En.current):(Ye(),Ct(sn.getValue(),An)),En.current=setTimeout(()=>{Dt.current=!1},500)}),window.Monaco||We(De,Ne(rt)),On&&(xn(qt,en),Co.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ut),window.removeEventListener("paste",Ut),window.addEventListener("keydown",Ut),window.addEventListener("paste",Ut)),window.Monaco=De,Rn&&sn.onDidBlurEditorWidget(()=>{Rn(sn.getValue())}),ui&&sn.onDidFocusEditorText(()=>{ui(sn.getValue())}),On)try{sn.onDidPaste(An=>{const Wn=sn.getSelection(),pi=Bn.current.pastePos||{},Yt=new De.Range(pi.startLineNumber||Wn.endLineNumber,pi.startColumn||Wn.endColumn,pi.endLineNumber||Wn.endLineNumber,pi.endColumn||Wn.endColumn);sn.executeEdits("",[{range:An.range,text:""}])})}catch(An){}let Pn=ct();return vo&&typeof vo=="string"&&new an(vo,sn,De),Nn(!0),()=>{const An=Bn.current.instance;An.dispose();const Wn=An.getModel();Wn&&Wn.dispose(),Bn.current.subscription&&Bn.current.subscription.dispose(),Pn.unobserve(Co.current)}}catch(sn){}})},[]),(0,Ce.useEffect)(()=>{if(Bn.current.instance&&wn)return document.addEventListener("keydown",ht,!1),()=>{document.removeEventListener("keydown",ht)}},[Et,wn]),(0,Ce.useEffect)(()=>{let jt=Bn.current.instance;if(jt&&wn){let sn=Ne(rt);De.editor.setModelLanguage(jt.getModel(),sn)}},[rt,wn]),(0,Ce.useEffect)(()=>{Bn.current.instance&&wn&&De.editor.setTheme(Jt)},[Jt,wn]),(0,Ce.useEffect)(()=>{let jt=Bn.current.instance;be.current=pn,jt&&wn&&(jt.updateOptions(gn({},pn)),setTimeout(()=>{jt.getModel().updateOptions(gn({},pn))},200))},[JSON.stringify(pn),wn]),(0,Ce.useEffect)(()=>{let jt=Bn.current.instance;jt&&wn&&jt.layout()},[Ve,gt,wn]);const[Dn,at]=(0,Ce.useState)(ai(Ve)),[ln,Hn]=(0,Ce.useState)(ai(gt)),ii=Gn(gn({},Mt),{width:Dn,height:ln,position:"relative"});return Ce.createElement("div",{className:"my-monaco-editor",ref:Co,style:ii},Tn&&Ce.createElement(je.CopyToClipboard,{text:ft,onCopy:()=>Vt.ZP.success("\u590D\u5236\u6210\u529F")},Ce.createElement(hn.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ce.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ce.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function $e({width:mt="100%",height:et="100%",original:Ve,modified:gt,language:ft,options:rt={}}){const Mt=(0,Ce.useRef)(),[pn,dn]=(0,Ce.useState)(null);function Jt(cn){let On;return Mt.current&&(On=new Oe.Z(Ct=>{for(let _n of Ct)(_n.target.offsetHeight>0||_n.target.offsetWidth>0)&&cn.layout()}),On.observe(Mt.current)),On}(0,Ce.useEffect)(()=>(Mt.current&&Promise.all([ye.e(8909),ye.e(9404)]).then(ye.bind(ye,2550)).then(cn=>{De=cn;const On=De.editor.createDiffEditor(Mt.current,Gn(gn({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},rt),{wordWrap:!0}));dn(On);let Ct=Jt(On);return()=>{On.dispose();const _n=On.getModel();_n&&_n.dispose(),Ct.unobserve(Mt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ce.useEffect)(()=>{pn&&pn.setModel({original:De.editor.createModel(Ve,ft),modified:De.editor.createModel(gt,ft)})},[Ve,gt,ft,pn]);const Rn=ai(mt),Tn=ai(et),Et={width:Rn,height:Tn};return Ce.createElement("div",{className:"my-diff-editor",ref:Mt,style:Et})}},85057:function(Kn,kn,ye){"use strict";ye.d(kn,{jL:function(){return Ue},w9:function(){return Xt},QD:function(){return Ct},cQ:function(){return je},op:function(){return Jt},O5:function(){return Jn},_b:function(){return qi},t7:function(){return se},Gi:function(){return zn},YG:function(){return Gn},qp:function(){return Rt},vr:function(){return Ci},qE:function(){return Et},Je:function(){return we},wb:function(){return Gt},cq:function(){return De},tp:function(){return Ae}});var Ce=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"},tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ue=({dataSource:wn=[],img:Nn,imgWidth:ct=346,title:Pt,sunTitle:Re,bannerExtraContent:Tt})=>Ce.createElement("div",{className:Oe.banner},Ce.createElement("div",{className:Oe.content},Ce.createElement("aside",null,Ce.createElement("p",null,Ce.createElement("b",null,Pt),Ce.createElement("span",null,Re)),wn.length>0&&Ce.createElement("div",{className:Oe.btns},wn.map((_t,ht)=>Ce.createElement("div",{key:ht,onClick:_t.click},_t.name,_t.sign?Ce.createElement("img",{src:tt,width:39}):null))),Tt),Nn&&Ce.createElement("img",{style:{marginTop:33,marginRight:38},src:Nn,width:ct}))),Je={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),Ot=ye.n(ke),Lt=ye(89392),Rt=({dataSource:wn=[],value:Nn,onChange:ct,onTitleChange:Pt,className:Re,title:Tt,titleWidth:_t=41,style:ht={},fontColor:Ye="#6A7283",showCount:Wt})=>{const[Ut,fn]=(0,Ce.useState)(0),[Dn,at]=(0,Ce.useState)(!1),ln=(0,Ce.useRef)(null),Hn=(0,Ce.useRef)(null);return(0,Ce.useEffect)(()=>{var ii;wn.length!==0&&(((ii=ln==null?void 0:ln.current)==null?void 0:ii.clientHeight)>97?fn(1):fn(0)),wn.length===0&&fn(0),at(!1)},[wn]),Ce.createElement("div",{className:Ot()(Je.row,Re),style:ht},Ce.createElement("div",{onClick:(0,Lt.throttle)(()=>Pt==null?void 0:Pt(),2e3),style:{width:_t,marginTop:Dn?12:4},className:`${Je.title} ${Pt?"current":""}`},Tt),Ce.createElement("div",{className:Dn?`${Je.tagsWrap} ${Je.tagsBorderWrap}`:Je.tagsWrap},Ce.createElement("div",{className:Je.bar,ref:Hn,style:Ut>0?{height:Ut===1?97:"auto",overflow:Ut===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Ce.createElement("div",{className:Je.tag,ref:ln},wn==null?void 0:wn.map(ii=>Ce.createElement("span",{onClick:()=>ct(ii.id),key:ii.id,style:{color:Ye},className:Nn===ii.id?Je.active:""},Ce.createElement("span",{title:ii.name,className:Je.name},ii.name),!!Wt&&Ce.createElement("span",{className:Je.num},ii.count))))),!!Ut&&Ce.createElement(Ce.Fragment,null,Ut===1?Ce.createElement("div",{onClick:()=>{var ii;fn(2),((ii=ln==null?void 0:ln.current)==null?void 0:ii.clientHeight)>245?at(!0):at(!1)},className:Je.action},"\u5C55\u5F00",Ce.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Ce.createElement("div",{onClick:()=>{Hn.current.scrollTop=0,fn(1),at(!1)},className:Je.action},"\u6536\u8D77",Ce.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},xt={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"},Ae=({dataSource:wn=[],value:Nn,onChange:ct,className:Pt,style:Re={}})=>Ce.createElement("div",{style:Re,className:Ot()(xt.tabs,Pt)},wn.map(Tt=>Ce.createElement("span",{onClick:()=>ct(Tt.id),className:Nn===Tt.id?xt.active:"",key:Tt.id},Tt.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:wn=[],value:Nn="",onChange:ct,onInputChange:Pt=()=>{},className:Re,style:Tt={},placeholder:_t,allowClear:ht=!1})=>{var Ye;const[Wt,Ut]=(0,Ce.useState)(""),[fn,Dn]=(0,Ce.useState)("");(0,Ce.useEffect)(()=>{var Hn;let ii=Nn;(Hn=JSON.stringify(Nn))!=null&&Hn.includes("{")&&(Ut(Nn.id),ii=Nn.value||"");try{Dn(decodeURIComponent(ii||""))}catch(jt){Dn(decodeURIComponent(ii||""))}},[Nn]);const at=()=>{ct(encodeURIComponent(fn),Wt||null)},ln=Hn=>{Hn!==Wt&&(Ut(Hn),ct(encodeURIComponent(fn),Hn))};return Ce.createElement("div",{className:Ot()(te.input,Re),style:Tt},!!wn.length&&Ce.createElement("div",{className:te.dropdown},Ce.createElement("div",{className:te.text},(Ye=wn.find(Hn=>Hn.id===Wt))==null?void 0:Ye.name,Ce.createElement("i",{className:"iconfont icon-zhankai4"}),Ce.createElement("b",{className:te.b1}),Ce.createElement("b",{className:te.b2})),Ce.createElement("div",{className:te.menu},wn.map((Hn,ii)=>Ce.createElement("div",{key:ii,onClick:()=>ln(Hn.id)},Hn.name)))),Ce.createElement(ne.default,{onPressEnter:at,value:fn,onChange:Hn=>{Dn(Hn.target.value),Pt(encodeURIComponent(Hn.target.value),Wt||null)},bordered:!1,placeholder:_t}),Ce.createElement("i",{onClick:at,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"},we=({value:wn,onChange:Nn,className:ct,total:Pt,pageSize:Re,style:Tt={}})=>{const _t=wn<2,ht=wn>=Math.ceil(Pt/Re);return Pt<=Re?Ce.createElement(Ce.Fragment,null):Ce.createElement("div",{className:Ot()(ge.quickPager,ct),style:Tt},Ce.createElement("div",{onClick:()=>{_t||Nn(wn-1,"prev")},className:_t?ge.disabled:""},"\u4E0A\u4E00\u9875"),Ce.createElement("div",{onClick:()=>{ht||Nn(wn+1,"next")},className:ht?ge.disabled:""},"\u4E0B\u4E00\u9875"))},Fe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Be=ye(71418),Ie=ye(6848),We=ye(13570),nt=ye(3294),Xe=ye(955),dt=ye(96908),Ze=ye(57177),Zt=ye(81378),yt=ye(8797),Gt=({className:wn,dataSource:Nn=[],col:ct=4,right:Pt,bottom:Re=23,precision:Tt=0,wrapWidth:_t=1200,trackEventItems:ht,loading:Ye})=>{const Wt=Math.floor((_t-(ct-1)*Pt)/ct);return Ce.createElement(Be.Z,{spinning:Ye},Ce.createElement("div",{className:Ot()(Fe.list,wn)},!!Nn.length&&Nn.map((Ut,fn)=>{const{name:Dn,id:at,identifier:ln,power:Hn,cover_image_id:ii,pic:jt}=Ut;return Ce.createElement("div",{className:Fe.wrap,key:at,style:{width:Wt,marginRight:(1+fn)%ct===0?0:Pt+Tt,marginBottom:Re}},Ce.createElement("a",{target:"_blank",href:`/shixuns/${ln}/challenges`,className:Fe.li,onClick:sn=>{sn.preventDefault(),ht&&(0,Xe.L9)([ht]),Hn&&(0,Xe.xg)(`/shixuns/${ln}/challenges`)}},Ce.createElement("div",{className:Fe.img},Ce.createElement("img",{className:Fe.cover,src:`${jt}`}),Ut.is_jupyter&&Ce.createElement("img",{className:Fe.sign,src:dt}),Ut.is_jupyter_lab&&Ce.createElement("img",{className:Fe.sign,src:Ze}),Ut.is_unity_3d&&Ce.createElement("img",{className:Fe.sign,src:Zt})),Ce.createElement("div",{className:Fe.name},Ce.createElement(Ie.Z,{title:Dn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Ce.createElement("span",{className:Fe.e},Dn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Ce.createElement("div",{className:Fe.tags},Ce.createElement(Ie.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Ce.createElement("span",null,Ut.challenges_count))),!!Ut.myshixuns_count&&Ce.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Ce.createElement("span",null,Ut.myshixuns_count))),Ce.createElement(Ie.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Ce.createElement("span",null,Ce.createElement("span",null,Ut.level))),Ce.createElement("div",{className:Fe.rate},Ce.createElement(We.Z,{allowHalf:!0,disabled:!0,defaultValue:Ut.score_info}),Ce.createElement("span",null,"\xA0",Ut.score_info?`${Ut.score_info}\u5206`:"5\u5206")))),!Hn&&Ce.createElement("div",{className:Fe.lockWrap},Ce.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ce.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Nn.length&&Ce.createElement(yt.Z,null)))},Vt={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"},hn=ye(24065),yn=ye(59301),je=({className:wn,dataSource:Nn=[],col:ct=4,right:Pt,bottom:Re=23,precision:Tt=0,wrapWidth:_t=1200,trackEventItems:ht,loading:Ye,onRemove:Wt=()=>{},isCurrent:Ut=!0,showAlias:fn=!1})=>{const Dn=Math.floor((_t-(ct-1)*Pt)/ct),at=[{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 yn.createElement(Be.Z,{spinning:Ye},yn.createElement("div",{className:Ot()(Vt.list,wn)},!!(Nn!=null&&Nn.length)&&(Nn==null?void 0:Nn.map((ln,Hn)=>{var ii;const{name:jt,id:sn,identifier:It,featured:on,school_name:qt,image_url:en,excellent:xn,is_plan:Pn}=ln;return yn.createElement("div",{key:sn,className:Vt.wrap,style:{width:Dn,marginRight:(1+Hn)%ct===0?0:Pt+Tt,marginBottom:Re}},yn.createElement("a",{className:Vt.li,onClick:An=>{An.preventDefault(),An.stopPropagation(),ht&&(0,Xe.L9)([ht]),(0,Xe.xg)(`/paths/${It}`)}},yn.createElement("div",{className:Vt.img},yn.createElement("img",{className:Vt.cover,src:`${en}`}),Ut&&(0,hn.bg)()&&(ln==null?void 0:ln.studying)&&yn.createElement("div",{className:`${Vt.movebq} user-path-items`,onClick:An=>{An.stopPropagation(),Wt(ln)}},yn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),yn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ii=ln==null?void 0:ln.subject_tags)==null?void 0:ii.map((An,Wn)=>{var pi,Yt;if(Wn===0){const Di=(pi=at.find(ki=>ki.name==An))==null?void 0:pi.swimg;return yn.createElement("img",{className:Vt.sign,src:Di,style:{left:"-4px"}})}const bi=(Yt=at.find(Di=>Di.name==An))==null?void 0:Yt.ptimg;return yn.createElement("img",{className:Vt.sign,src:bi,style:{left:`${48+52*(Wn-1)+2*Wn}px`}})}),yn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(ln==null?void 0:ln.excellent)&&yn.createElement("div",{className:Vt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),yn.createElement("div",{className:Vt.name},yn.createElement(Ie.Z,{title:fn&&(ln!=null&&ln.excellent_alias_name)?yn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${jt}`,yn.createElement("br",null),yn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ln==null?void 0:ln.excellent_alias_name}`)):jt},yn.createElement("span",{className:Vt.e},fn&&(ln==null?void 0:ln.excellent_alias_name)||jt))),yn.createElement(Ie.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${qt}`},yn.createElement("div",{className:Vt.unit},yn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),qt)),yn.createElement("div",{className:Vt.tags},yn.createElement("div",null,yn.createElement(Ie.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},yn.createElement("span",null,yn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),yn.createElement("span",null,ln.stages_count))),yn.createElement(Ie.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},yn.createElement("span",null,yn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),yn.createElement("span",null,ln.members_count)))))))})),!Nn.length&&yn.createElement(yt.Z,null)))},wt={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"},tn="data:image/png;base64,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",bn=ye(59301),Xt=({className:wn,dataSource:Nn=[],col:ct=4,right:Pt,bottom:Re=23,precision:Tt=0,wrapWidth:_t=1200,trackEventItems:ht,loading:Ye,handleVery:Wt=()=>!0})=>{const Ut=Math.floor((_t-(ct-1)*Pt)/ct);return bn.createElement(Be.Z,{spinning:Ye},bn.createElement("div",{className:Ot()(wt.list,wn)},!!Nn.length&&Nn.map((fn,Dn)=>{const{subject_identifier:at,id:ln,identifier:Hn,power:ii}=fn,jt=fn.is_public!=0&&fn.is_public;return bn.createElement("div",{className:wt.wrap,key:ln,style:{width:Ut,marginRight:(1+Dn)%ct===0?0:Pt+Tt,marginBottom:Re}},bn.createElement("a",{className:wt.li,onClick:sn=>{sn.preventDefault(),Wt(fn==null?void 0:fn.first_category_url)&&(ht&&(0,Xe.L9)([ht]),(0,Xe.xg)(fn.first_category_url))}},bn.createElement("div",{className:wt.top},bn.createElement(Ie.Z,{title:fn.name},bn.createElement("div",{className:wt.name},fn.name)),bn.createElement("img",{className:wt.img,src:nt.Z.IMG_SERVER+"/images/"+fn.avatar_url}),bn.createElement("div",{className:wt.text,title:fn.creator},fn.creator),at&&bn.createElement("div",{className:wt.btns},bn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),bn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),jt&&bn.createElement("div",{className:wt.sign},"\u516C\u5F00")),bn.createElement("div",{className:wt.bottom},fn.visits>0&&bn.createElement(Ie.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},bn.createElement("span",null,bn.createElement("i",{className:"iconfont icon-liulanyan"}),bn.createElement("span",null,fn.visits))),fn.course_members_count>0&&bn.createElement(Ie.Z,{title:"\u6210\u5458",placement:"bottom"},bn.createElement("span",null,bn.createElement("i",{className:"iconfont icon-chengyuan"}),fn.course_members_count)),fn.tasks_count>0&&bn.createElement(Ie.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},bn.createElement("span",null,bn.createElement("i",{className:"iconfont icon-zuoye"}),fn.tasks_count)),fn.is_end?bn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):bn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!fn.is_accessible&&bn.createElement("div",{className:wt.lockWrap},bn.createElement("img",{src:`${nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),bn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Nn.length&&bn.createElement(yt.Z,null)))},Cn={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"},Qn=ye(89070),Gn=({dataSource:wn=[],value:Nn,onChange:ct,className:Pt,style:Re={},tabBarExtraContent:Tt})=>Ce.createElement("div",{className:Ot()(Cn.tabs,Pt),style:Re},Ce.createElement("div",{className:Cn.tabsWrap},wn.map((_t,ht)=>!(_t!=null&&_t.hide)&&Ce.createElement("aside",{className:Cn.tab,onClick:()=>{ct(_t.id),_t.link&&Qn.history.push(_t.link)},key:ht},Ce.createElement("div",{className:Nn===_t.id?Cn.active:""},_t.name),(_t==null?void 0:_t.resetCount)==null&&(_t==null?void 0:_t.total)!==void 0&&Ce.createElement("span",null,"\uFF08",_t==null?void 0:_t.total,"\uFF09"),(_t==null?void 0:_t.resetCount)!==void 0&&(_t==null?void 0:_t.total)!==void 0&&Ce.createElement(Ie.Z,{title:(_t==null?void 0:_t.tip)!=null?_t==null?void 0:_t.tip:""},Ce.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Ce.createElement("span",{style:{color:"#000"}},_t==null?void 0:_t.resetCount),"/",Ce.createElement("span",null,_t==null?void 0:_t.total),"\uFF09"))))),Ce.createElement("div",{className:Cn.tabBar},Tt)),zn=({className:wn,style:Nn={},children:ct})=>Ce.createElement("div",{className:Ot()(wn),style:Nn},ct),ai={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"},He=ye(38854),Le=ye(20834);const xe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var De=({sortValue:wn,dropValue:Nn,className:ct,onSort:Pt,onDrop:Re,dataSource:Tt=xe})=>{var _t;return Ce.createElement("div",{className:Ot()(ai.orderWrap,ct)},Ce.createElement(He.Z,{dropdownRender:()=>Ce.createElement(Le.default,null,Tt.map((ht,Ye)=>Ce.createElement(Le.default.Item,{key:Ye,onClick:()=>Re(ht.id)},ht.name)))},Ce.createElement("span",{className:ai.orderTextWrap},(_t=Tt.find(ht=>Nn===ht.id))==null?void 0:_t.name)),Ce.createElement("span",{className:ai.orderIconWrap},Ce.createElement("span",{className:ai.orderAsc},Ce.createElement("i",{className:wn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ai.cursorPointer} ${ai.active}`:`iconfont icon-sanjiaoxing-up font12 ${ai.cursorPointer}`,onClick:()=>Pt(wn==="asc"?"desc":"asc")})),Ce.createElement("span",{className:ai.orderDesc},Ce.createElement("i",{className:wn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ai.cursorPointer} ${ai.active}`:`iconfont icon-sanjiaoxing-down font12 ${ai.cursorPointer}`,onClick:()=>Pt(wn==="asc"?"desc":"asc")}))))},ve={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"},$e=ye(3113),mt=Object.defineProperty,et=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,ft=(wn,Nn,ct)=>Nn in wn?mt(wn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ct}):wn[Nn]=ct,rt=(wn,Nn)=>{for(var ct in Nn||(Nn={}))Ve.call(Nn,ct)&&ft(wn,ct,Nn[ct]);if(et)for(var ct of et(Nn))gt.call(Nn,ct)&&ft(wn,ct,Nn[ct]);return wn},Mt=(wn,Nn)=>{var ct={};for(var Pt in wn)Ve.call(wn,Pt)&&Nn.indexOf(Pt)<0&&(ct[Pt]=wn[Pt]);if(wn!=null&&et)for(var Pt of et(wn))Nn.indexOf(Pt)<0&>.call(wn,Pt)&&(ct[Pt]=wn[Pt]);return ct},pn=(wn,Nn,ct)=>new Promise((Pt,Re)=>{var Tt=Ye=>{try{ht(ct.next(Ye))}catch(Wt){Re(Wt)}},_t=Ye=>{try{ht(ct.throw(Ye))}catch(Wt){Re(Wt)}},ht=Ye=>Ye.done?Pt(Ye.value):Promise.resolve(Ye.value).then(Tt,_t);ht((ct=ct.apply(wn,Nn)).next())}),Jt=wn=>{var Nn=wn,{className:ct,style:Pt,children:Re,loading:Tt=!1,openLoading:_t,onClick:ht=()=>{},size:Ye="middle",shape:Wt="round"}=Nn,Ut=Mt(Nn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[fn,Dn]=(0,Ce.useState)(!1);return Ce.createElement($e.ZP,rt({onClick:(0,Lt.throttle)(at=>pn(void 0,null,function*(){_t&&Dn(!0);try{yield ht(at)}catch(ln){console.log("error",ln)}_t&&Dn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ot()(ve.btn,ve[`${Ye}-${Wt}`],ct),style:Pt,size:Ye,shape:Wt,loading:fn||Tt},Ut),Re)},Rn={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"},Et=({className:wn,style:Nn,children:ct=null,onClick:Pt,title:Re})=>Ce.createElement("div",{className:Ot()(Rn.head,wn),style:Nn},Ce.createElement("span",{className:"primary-hover",onClick:Pt},Ce.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Ce.createElement("b",{title:Re},Re),Ce.createElement("div",{className:Rn.node},ct)),cn={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"},Ct=({confirmShow:wn=!0,confirmTitle:Nn,confirmClick:ct,cancelShow:Pt=!0,cancelTitle:Re,cancelClick:Tt,className:_t,style:ht,confirmLoading:Ye=!1})=>Ce.createElement("div",{className:Ot()(cn.btns,_t),style:ht},wn&&Ce.createElement($e.ZP,{loading:Ye,onClick:ct,type:"primary",className:cn.confirm},Nn),Pt&&Ce.createElement($e.ZP,{onClick:Tt,className:cn.cancel},Re)),_n={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"},Ci=({className:wn,style:Nn={},LeftContent:ct,children:Pt,RightContent:Re})=>Ce.createElement("div",{className:Ot()(_n.fixedBottom,wn),style:Nn},Ce.createElement("div",{className:_n.wrap},Ce.createElement("div",{className:_n.left},ct),Ce.createElement("div",{className:_n.center},Pt),Ce.createElement("div",{className:_n.right},Re))),ci={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"},qi=({className:wn,style:Nn={},dataSource:ct=[]})=>Ce.createElement("div",{className:Ot()(ci.crumbs,wn),style:Nn},ct.map((Pt,Re)=>Re<ct.length-1?Ce.createElement(Ce.Fragment,{key:Re},Pt.path||Pt.onClick?Ce.createElement("span",{className:ci.hover,onClick:Pt!=null&&Pt.onClick?Pt.onClick:()=>Qn.history.push(Pt.path)},Pt.name):Ce.createElement("span",null,Pt.name),Ce.createElement("span",null,"\xA0",">","\xA0")):Ce.createElement("span",{key:Re,style:{color:"#5F6368"}},Pt.name))),Xi=ye(31797),eo=Object.defineProperty,Oo=Object.defineProperties,vo=Object.getOwnPropertyDescriptors,Ri=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,be=(wn,Nn,ct)=>Nn in wn?eo(wn,Nn,{enumerable:!0,configurable:!0,writable:!0,value:ct}):wn[Nn]=ct,Mi=(wn,Nn)=>{for(var ct in Nn||(Nn={}))Co.call(Nn,ct)&&be(wn,ct,Nn[ct]);if(Ri)for(var ct of Ri(Nn))Bn.call(Nn,ct)&&be(wn,ct,Nn[ct]);return wn},Ei=(wn,Nn)=>Oo(wn,vo(Nn)),Dt=(wn,Nn)=>{var ct={};for(var Pt in wn)Co.call(wn,Pt)&&Nn.indexOf(Pt)<0&&(ct[Pt]=wn[Pt]);if(wn!=null&&Ri)for(var Pt of Ri(wn))Nn.indexOf(Pt)<0&&Bn.call(wn,Pt)&&(ct[Pt]=wn[Pt]);return ct};const{Countdown:En}=Xi.default;var Jn=wn=>{var Nn=wn,{onChange:ct}=Nn,Pt=Dt(Nn,["onChange"]);const[Re,Tt]=(0,Ce.useState)(null);(0,Ce.useEffect)(()=>{typeof Re=="number"&&Re>=0&&ct(Re)},[Re]);const _t=ht=>{const Ye=Math.floor(ht/1e3);Tt(Ye)};return Ce.createElement(En,Ei(Mi({},Pt),{onChange:_t}))}},58856:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Oe}});var Ce=ye(59301);function Oe(tt,At){const Ue=(0,Ce.useRef)();(0,Ce.useEffect)(()=>{Ue.current=tt}),(0,Ce.useEffect)(()=>{function Je(){Ue.current()}if(At!==null){let ke=setInterval(Je,At);return()=>clearInterval(ke)}},[At])}},23538:function(Kn,kn,ye){"use strict";ye.d(kn,{$J:function(){return tt},JZ:function(){return Ue},bN:function(){return ke},jP:function(){return Je},rO:function(){return At}});var Ce=ye(99064),Oe=(Ot,Lt,ot)=>new Promise((Rt,xt)=>{var zt=ne=>{try{te(ot.next(ne))}catch(he){xt(he)}},Ae=ne=>{try{te(ot.throw(ne))}catch(he){xt(he)}},te=ne=>ne.done?Rt(ne.value):Promise.resolve(ne.value).then(zt,Ae);te((ot=ot.apply(Ot,Lt)).next())});function tt(Ot){return(0,Ce.U2)(`libraries/${Ot}.json`)}function At(){return(0,Ce.U2)("library_tags.json")}function Ue(Ot){return Oe(this,null,function*(){return(yield(0,Ce.IV)(`attachments/${Ot}.json`)).status===0})}function Je(Ot){return(0,Ce.v_)("libraries.json",Ot)}function ke(Ot,Lt){return(0,Ce.gz)(`libraries/${Ot}.json`,Lt)}},86918:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return ot}});var Ce=ye(43418),Oe={ul:"ul___TdfYY"},tt=ye(32637),At=ye(59301),Ue=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ot=(Rt,xt)=>{var zt={};for(var Ae in Rt)Je.call(Rt,Ae)&&xt.indexOf(Ae)<0&&(zt[Ae]=Rt[Ae]);if(Rt!=null&&Ue)for(var Ae of Ue(Rt))xt.indexOf(Ae)<0&&ke.call(Rt,Ae)&&(zt[Ae]=Rt[Ae]);return zt},ot=Rt=>{var xt=Rt,{open:zt,onCancel:Ae}=xt,te=Ot(xt,["open","onCancel"]);return At.createElement(Ce.default,{centered:!0,open:zt,title:At.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ae,footer:null},At.createElement("div",null,At.createElement("div",{className:"tc"},At.createElement("img",{className:"mt10",src:tt,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),At.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),At.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),At.createElement("div",{style:{color:"#333"},className:"pt30 font14"},At.createElement("ul",{className:Oe.ul},At.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),At.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),At.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},28054:function(Kn,kn,ye){"use strict";ye.r(kn),ye.d(kn,{default:function(){return Ei}});var Ce=ye(59301),Oe=ye(89070),tt=ye(92832),At=ye(98228),Ue=ye(57809),Je=ye(78241),ke=ye(8591),Ot=ye(43418),Lt=ye(88522),ot=ye(95237),Rt=ye(43604),xt=ye(78673),zt=ye(5112),Ae=ye(24905),te=ye(17574),ne=ye(54580),he=ye(3113),se=ye(71418),ge=ye(12290),me={bg:"bg____raBL",wrap:"wrap___HeK2P",crumbs:"crumbs___bamBY",titleWrap:"titleWrap___UpC0c",flexRow:"flexRow___WjoyK",flexJustifyCenter:"flexJustifyCenter___V6ndk",flexAlignEnd:"flexAlignEnd___So64w",flexAlignCenter:"flexAlignCenter___WWRXs",flexColumn:"flexColumn___b0Fz8",formWrap:"formWrap___Bmhgz",fieldWrap:"fieldWrap___pR4UB",mdWrap:"mdWrap___FPskk",tree:"tree___bVp9O",backgroundFa:"backgroundFa___ghlCO",aBtn:"aBtn___M7dWu",bBtn:"bBtn___XycZO",cascaderWrap:"cascaderWrap___CPNAV",listItem:"listItem____eV5T",right:"right___x8wr7",one:"one___wdYdi",schoolHintWrap:"schoolHintWrap___AWsQj",colorCDCDCD:"colorCDCDCD___xguLh",color0152d9:"color0152d9___MEYYd",spanText:"spanText___Srs_u",addTypeRadio:"addTypeRadio___JTRkP",add_ai:"add_ai___JGWFe",paths_content:"paths_content___Rzg9i",content_header:"content_header___LvvU1",header_box:"header_box___c05Gw",header_bj:"header_bj____CaVY",header_text:"header_text___jNO1N",lianjie:"lianjie___vtxBe",buzou_box:"buzou_box___qkXlL",no_start_style:"no_start_style___ONC9T",start_style:"start_style___vWVZl"},we=ye(955),Fe=ye(3294),Be=ye(99064),Ie=ye(64165),We={cascaderContainer:"cascaderContainer___uz26h",valueWrap:"valueWrap___zTHXb",valueItem:"valueItem___vBNoA",placeholder:"placeholder___bJTkn",modalWrap:"modalWrap___uhROO",left:"left___oZrbl",right:"right___y9QjL",disabled:"disabled___LVx0f",emptyWrap:"emptyWrap___KG5pK"},nt=ye(99267),Xe=ye(38819),dt=Object.defineProperty,Ze=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,yt=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,Vt=(Dt,En,Fn)=>En in Dt?dt(Dt,En,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):Dt[En]=Fn,hn=(Dt,En)=>{for(var Fn in En||(En={}))an.call(En,Fn)&&Vt(Dt,Fn,En[Fn]);if(yt)for(var Fn of yt(En))Gt.call(En,Fn)&&Vt(Dt,Fn,En[Fn]);return Dt},yn=(Dt,En)=>Ze(Dt,Zt(En)),vt=(Dt,En)=>{var Fn={};for(var Jn in Dt)an.call(Dt,Jn)&&En.indexOf(Jn)<0&&(Fn[Jn]=Dt[Jn]);if(Dt!=null&&yt)for(var Jn of yt(Dt))En.indexOf(Jn)<0&&Gt.call(Dt,Jn)&&(Fn[Jn]=Dt[Jn]);return Fn};const je=(0,Ce.createRef)();var tn=({dataSource:Dt,placeholder:En,defaultValue:Fn,onChange:Jn})=>{const[wn,Nn]=(0,Ce.useState)(!1),[ct,Pt]=(0,Ce.useState)({data:[],objData:{},ids:[]}),[Re,Tt]=(0,Ce.useState)({});(0,Ce.useEffect)(()=>{window.addEventListener("click",()=>{Nn(!1),Tt({})})},[]),(0,Ce.useEffect)(()=>{if(Fn){let Ut={},fn=[];Fn.forEach(Dn=>{const at=Dn,{sub_discipline:ln}=at,Hn=vt(at,["sub_discipline"]);ln&&(Ut[ln.id]=yn(hn({},Hn),{sub_disciplines:[ln]}),fn.push(ln.id))}),Pt({ids:fn,data:Object.values(Ut),objData:Ut}),Jn(fn)}},[Fn]);const _t=()=>Ce.createElement("div",{className:We.emptyWrap},Ce.createElement(Ie.Z,{image:Ie.Z.PRESENTED_IMAGE_SIMPLE})),ht=Ut=>{if(ct.ids.includes(Ut.id))return!1;const fn=Re,{sub_disciplines:Dn}=fn,at=vt(fn,["sub_disciplines"]),ln=yn(hn({},ct.objData),{[Ut.id]:yn(hn({},at),{sub_disciplines:[Ut]})});Pt({ids:[...ct.ids,Ut.id],data:Object.values(ln),objData:ln}),Jn([...ct.ids,Ut.id])},Ye=Ut=>{const fn=ct.objData;delete fn[Ut];const Dn=ct.ids.filter(at=>at!==Ut);Pt({data:Object.values(fn),objData:fn,ids:Dn}),Jn(Dn)};let Wt=45;return je&&je.current&&je.current.clientHeight>45&&(Wt=je.current.clientHeight+5),Ce.createElement("div",{className:We.cascaderContainer,onClick:Ut=>{Ut.stopPropagation()}},Ce.createElement("div",{ref:je,className:We.valueWrap,onClick:()=>Nn(!wn)},ct.data.length===0&&Ce.createElement("span",{className:We.placeholder},En||"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),ct.data.map(Ut=>Ce.createElement("div",{className:We.valueItem,key:Ut.id},Ce.createElement("span",null,Ut.name),Ce.createElement("span",null,"/"),Ce.createElement("span",null,Ut.sub_disciplines[0].name),Ce.createElement("span",{onClick:fn=>{fn.stopPropagation(),fn.preventDefault(),Ye(Ut.sub_disciplines[0].id)}},Ce.createElement(nt.Z,null))))),wn&&Ce.createElement("div",{className:We.modalWrap,style:{top:Wt}},Ce.createElement("div",{className:We.left},Dt.length===0&&_t(),Dt.length>0&&Dt.map(Ut=>Ce.createElement("div",{key:Ut.id,onClick:()=>{Tt(Ut)}},Ce.createElement("span",null,Ut.name),Ce.createElement("span",null,Ce.createElement(Xe.Z,null))))),Re.sub_disciplines&&Ce.createElement("div",{className:We.right},Re.sub_disciplines.length===0&&_t(),Re.sub_disciplines.length>0&&Re.sub_disciplines.map(Ut=>{const fn=ct.ids.includes(Ut.id);return Ce.createElement("div",{key:Ut.id,className:fn?We.disabled:"",onClick:()=>{ht(Ut),Nn(!1)}},Ut.name)}))))},bn=ye(1710),Ft=ye(19842),Xt=ye(61186),Cn=ye.n(Xt),Qn=ye(29679),gn=ye(19248),Gn=ye(16979),bt={flexRow:"flexRow___qY1Ro",flexColumn:"flexColumn___xTKsc",formWrap:"formWrap___OJ1NZ",example:"example___XZnZv",footerWrap:"footerWrap___DSZCv"},zn=ye(59301),ai=Object.defineProperty,He=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ne=(Dt,En,Fn)=>En in Dt?ai(Dt,En,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):Dt[En]=Fn,De=(Dt,En)=>{for(var Fn in En||(En={}))Le.call(En,Fn)&&Ne(Dt,Fn,En[Fn]);if(He)for(var Fn of He(En))xe.call(En,Fn)&&Ne(Dt,Fn,En[Fn]);return Dt},ve=(Dt,En)=>{var Fn={};for(var Jn in Dt)Le.call(Dt,Jn)&&En.indexOf(Jn)<0&&(Fn[Jn]=Dt[Jn]);if(Dt!=null&&He)for(var Jn of He(Dt))En.indexOf(Jn)<0&&xe.call(Dt,Jn)&&(Fn[Jn]=Dt[Jn]);return Fn},$e=(Dt,En,Fn)=>new Promise((Jn,wn)=>{var Nn=Re=>{try{Pt(Fn.next(Re))}catch(Tt){wn(Tt)}},ct=Re=>{try{Pt(Fn.throw(Re))}catch(Tt){wn(Tt)}},Pt=Re=>Re.done?Jn(Re.value):Promise.resolve(Re.value).then(Nn,ct);Pt((Fn=Fn.apply(Dt,En)).next())});const mt=(Dt,En)=>En.some(Fn=>Fn.label.toLowerCase().indexOf(Dt.toLowerCase())>-1),et=tt.default.TextArea,Ve=Dt=>{var En=Dt,{newCourse:Fn,globalSetting:Jn,loading:wn,dispatch:Nn,schoolName:ct,onSuccess:Pt=()=>{}}=En,Re=ve(En,["newCourse","globalSetting","loading","dispatch","schoolName","onSuccess"]);const[Tt]=Je.default.useForm();(0,Ce.useEffect)(()=>{Tt.setFieldsValue({name:ct})},[ct]);const _t=ht=>$e(void 0,null,function*(){const{name:Ye,city:Wt=[],address:Ut,remarks:fn}=ht||{},Dn=yield Nn({type:"newCourse/appplySchool",payload:{name:Ye,province:Wt[0],city:Wt[1],address:Ut,remarks:fn}});if((Dn==null?void 0:Dn.status)==2){const at=Ot.default.confirm({icon:null,width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:zn.createElement(zn.Fragment,null,zn.createElement("p",null,"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7533\u8BF7\u65B0\u589E\u7684\u5355\u4F4D\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4E3A\u8BE5\u5355\u4F4D\uFF1F"),zn.createElement(bn.default,{columns:[{title:"\u5B66\u6821/\u5355\u4F4D",dataIndex:"name"},{title:"\u7528\u6237\u6570",width:150,dataIndex:"users_count"}],dataSource:[De({},Dn)],pagination:!1})),onOk:()=>$e(void 0,null,function*(){yield Pt(Ye),at.destroy(),Nn({type:"newCourse/setActionTabs",payload:{}})}),onCancel:()=>{at.destroy()}});return}Nn({type:"newCourse/setActionTabs",payload:{}}),Dn.status==0&&(ke.ZP.success("\u65B0\u589E\u53D1\u5E03\u5355\u4F4D\u6210\u529F\uFF01"),Pt(Ye))});return zn.createElement(Ot.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Fn.actionTabs.key==="NewCourse-AppplySchool",title:"\u7533\u8BF7\u53D1\u5E03\u5355\u4F4D",width:"600px",footer:null},zn.createElement(Je.default,{className:bt.formWrap,form:Tt,labelCol:{span:4},wrapperCol:{span:20},onFinish:_t},zn.createElement(Je.default.Item,{label:"\u53D1\u5E03\u5355\u4F4D\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},zn.createElement(tt.default,{placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D"})),zn.createElement("div",{className:`${bt.flexRow} ${bt.example}`},zn.createElement("div",null,"\u793A\u4F8B\uFF1A"),zn.createElement("div",{className:bt.flexColumn},zn.createElement("div",null,zn.createElement(Qn.Z,{style:{color:"rgb(82, 196, 26)"}}),zn.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),zn.createElement("div",null,zn.createElement(gn.Z,{style:{color:"red"}}),zn.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784",Cn()().format("YYYY"),"\u6625")))),zn.createElement(Je.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},zn.createElement(Ft.Z,{allowClear:!0,size:"middle",options:Gn.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:mt}})),zn.createElement(Je.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},zn.createElement(tt.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),zn.createElement(Je.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},zn.createElement(et,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),zn.createElement("div",{className:bt.footerWrap},zn.createElement(Je.default.Item,null,zn.createElement(he.ZP,{className:"mr5",size:"middle",onClick:()=>{Nn({type:"newCourse/setActionTabs",payload:{}})}},"\u53D6\u6D88"),zn.createElement(he.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:wn["newCourse/appplySchool"]},"\u4FDD\u5B58")))))};var gt=(0,Oe.connect)(({newCourse:Dt,loading:En,globalSetting:Fn})=>({newCourse:Dt,globalSetting:Fn,loading:En.effects}))(Ve),ft=ye(86918),rt=ye(57490),Mt="data:image/png;base64,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",pn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYIAAAAoCAYAAADzCv21AAAAAXNSR0IArs4c6QAAApFJREFUeF7t3TFO42AQgFEiQSIKKrgEiJqb0HI4Wm5CjeASUFGgBArkSInixPY/rWfetqHIPI80+tjdZPHw9HH9e/6zOvOHAAECBFIJrL+Xn+8v95vWUIu7x7fl6mpz0/pBrxMgQIDAvAQu/i7Xr8+3X613veh+QBW0mLxOgACBeQpEqmB7CFTBPB+wd02AAIGWQKQKtodAFbQovU6AAIH5CrSqYH8IVMF8H7J3ToAAgSmBVhXsD4EqsEgECBDIKzBVBb1DoAryLoHJCBCoLTBVBb1DoApqL4rpCRDILTBWBSeHQBXkXgTTESBQV2CsCk4OgSqouyQmJ0Agv8BQFQweAlWQfxlMSIBATYGhKhg8BKqg5oKYmgCBGgLHVTB6CFRBjYUwJQEC9QSOq2D0EKiCesthYgIE6ggcVsHkIVAFdZbCpAQI1BI4rILJQ6AKai2GaQkQqCWwq4LmIVAFtRbDtAQI1BHYVUHzEKiCOkthUgIE6gl0VRA6BKqg3nKYmACBGgJdFTgENZ61KQkQIDAoED4EvsrSBhEgQCCnQOhXQ34tlPPhm4oAAQLhvyxWA5aFAAECOQVC/3xUDeR8+KYiQIBA+D+UqQHLQoAAgZwCoY+YUAM5H76pCBAgEP7QOTVgWQgQIJBTIPQx1Gog58M3FQECBMJfTKMGLAsBAgRyCoS+qlIN5Hz4piJAgED4y+vVgGUhQIBAToGhGugm7X3WkBrI+fBNRYAAgbEaODkEasCyECBAIKfAWA30DoEayPnwTUWAAIGpGugdAjVgWQgQIJBTYKoG9odADeR8+KYiQIBAqwb2h0ANWBYCBAjkFGjVwPYQqIGcD99UBAgQiNTA9hCoActCgACBnAKRGugm/wceYDXmz1T+uAAAAABJRU5ErkJggg==",dn="data:image/png;base64,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",Jt="data:image/png;base64,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",Rn=ye.p+"static/shiyong.3f0aff1d.png",Tn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABQVJREFUWEfNmXes32MUxj8PagS1QghJiU1pxExsFbUqitoSKzVilEjoHzVj/KEEDYnGbq3aexNiRRGjlMTee8+K432u87u+99ffvPdK7kl+f/3e8bznPec5z3m/oh8WEfMBGwPbAhsCawIrAIvncj8BnwFvAS8CjwMvSPq72+3UzYSIWBE4BjgQ+BZ4FHgOmAN8AhiYzUA9di1gM2A0sDQwHZgqyWM7so4ARsQywFnA3sDVwJWS3uhohxwUEesAhwIHAzcDkyV9026NtgAjYl/gwuKNGw1Skj3Xb4sIe3Jy8brXnSjpplaLNQUYEQsAlwDbeTFJL/cbVYOJEbFBHvox4FhJfzVavyHAiFgEmAk4qPeX9PNggqutFRGLAdcDTrrxkn6r32cegOm5O4DvgEOanWywAOd+VwFLAbvX79cI4GWZgXv83+AqnnQ43WYmkHRU9fB9AGZCnGFuq11rRPSMkRSD4bWIGAacU650tiQzQo/ldZszT60mTi/ApJLXgZ2rCRERnuSY3FHShwMBmQR/Q9LVLEkm+17LxLkPGFmjoCrAS4E/JJ1QN+kpYAvgI2B7SW/3F2Qh+mnA4YVevjc7NGKGiDClLSTp6J6bS/ea9V8pGbVGPc9FxPBy5XcDWwFfAGMkeWxXFhFTgBOBX3KNpxstkDxpJ4xyxakBPBcYVuLupCaTfMW3Ajvl6XeR9EynCCPCxHymbwjYTdJDreaWeDwfmCtpkjIuPshTNS1fGdwzzFfphXGSHm4HMiKOKxRyEWAi3keSs7WlZVl8EBhhgJsCl0sa1cHE+T02a6q9sV+Zd3uzeRHhuntF/n9YNWs72MthNMEATwGWk+T4aGtJO44nJ5O94o2vrZ8YEXtmKTPHHS/p4raL983oC4AvDfAWqwtJVhgdW0ScVgafnuXQAKbWJkfEGOBOZ2PympVQVxYRVk7jDfA14ABJr3a1wr/kOhHwSW2WT2dHxOaA42fRogunNEu8dntFxPrADAP8ysKyE23WaNGIsMZzXDo+XVPHAUuWcjlN0oR2QFrErzXoHAP8vXhhuKQ/B7DYXj5tKWEL5hrWeFZBXUv8Sph4rR8HC+DKhaaeBZavADxI0twBHLoX4ECv2KBcDlcrRP589iFLAPekxvMNdW2pDXqueCBJYvn+RKky6wGzUn2vXhqlB4Bl8z9Xjloz1THQTJLpBmjlPLMfNGM1/Ahgop9dWsuta4kWEWsDLmcrud1MJdRVL1Olma6I2i6IiIVLX3xveuzd0n5uWTL206p7IsJx6QOsCljG7SDJvXJHVkRKL1F3XOoSXE39js1e2ODea0JBbubtyZHAOynX3u8EYUT0ljo3LG3FQoLz2OtMIaWB/zqvtWV/nPLpfmCTogU/Tk++2QpkH7GQG7eUWxVucr9ypPkpBafVdlsrWtAvDXeVpNkGMGtYnb/UgqT/k1sJsKlgrYA7DzgZ+NW6UNKTbZFVBmTcOiF3LULjh/JmM1aS6amPNRSsCbKh5M//JmWj42pjHei+oWtLTXmNZVoedLQkv+30WkPJnyBc+xo1Te5H7K1aE9+V6mngIcexnXGEf5Jcx3ssmybH67rzNE05wO8l9W3niEwMF38nyKBYRKxSzf62bWflFEO3cU8vmueG7tNHghy6j0eVqx66z291aT80HzDrQA7dJ+A6oEPzEb0J2dY+Q2yUnyGsrKufIT7PzxAWsv3+DPEPkKKBQOOiq+AAAAAASUVORK5CYII=",Et=ye(58617),cn=ye(85057),On=ye(24065),Ct=ye(59301),_n=Object.defineProperty,ui=Object.defineProperties,Ci=Object.getOwnPropertyDescriptors,ci=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,Xi=(Dt,En,Fn)=>En in Dt?_n(Dt,En,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):Dt[En]=Fn,eo=(Dt,En)=>{for(var Fn in En||(En={}))Hi.call(En,Fn)&&Xi(Dt,Fn,En[Fn]);if(ci)for(var Fn of ci(En))qi.call(En,Fn)&&Xi(Dt,Fn,En[Fn]);return Dt},Oo=(Dt,En)=>ui(Dt,Ci(En)),vo=(Dt,En)=>{var Fn={};for(var Jn in Dt)Hi.call(Dt,Jn)&&En.indexOf(Jn)<0&&(Fn[Jn]=Dt[Jn]);if(Dt!=null&&ci)for(var Jn of ci(Dt))En.indexOf(Jn)<0&&qi.call(Dt,Jn)&&(Fn[Jn]=Dt[Jn]);return Fn},Ri=(Dt,En,Fn)=>new Promise((Jn,wn)=>{var Nn=Re=>{try{Pt(Fn.next(Re))}catch(Tt){wn(Tt)}},ct=Re=>{try{Pt(Fn.throw(Re))}catch(Tt){wn(Tt)}},Pt=Re=>Re.done?Jn(Re.value):Promise.resolve(Re.value).then(Nn,ct);Pt((Fn=Fn.apply(Dt,En)).next())});const{TextArea:Co}=tt.default,{TreeNode:Bn}=At.default,be=Ue.default.Option,Mi=Dt=>{var En=Dt,{user:Fn,newCourse:Jn,globalSetting:wn,loading:Nn,dispatch:ct}=En,Pt=vo(En,["user","newCourse","globalSetting","loading","dispatch"]),Re,Tt,_t,ht,Ye,Wt,Ut,fn,Dn,at,ln,Hn,ii,jt,sn,It,on,qt,en,xn,Pn,An,Wn,pi,Yt,bi,Di,ki,nn,Xn,fi,wi,gi,Bi,Ki,ji,Pi,Vi,Ln,So,Mn,ro,No,_i,Go,ko,Ii,Ai,Zi,yo,di,Ke,Do,nr,xo,hr,Qo,$i,ao,jo,Lo,dr,Pr,Yi,Qi,ti,io,ir,Ir,mr,er,Lr,Ar,ra,ua,wa,vn,ia,Us,us,xr,or,da,Ro,lo;const[Ko]=(0,Oe.useSearchParams)(),Wr=(0,Oe.useParams)(),[no]=Je.default.useForm(),[Io,Fo]=(0,Ce.useState)({}),[vi,Zr]=(0,Ce.useState)(),Yr=(0,Ce.useRef)(),[qa,bs]=(0,Ce.useState)(!0),[vs,xi]=(0,Ce.useState)(!1),[Jr,_r]=(0,Ce.useState)(),[es,Xs]=(0,Ce.useState)(),[gl,Uo]=(0,Ce.useState)(!0),[Ru,Rs]=(0,Ce.useState)(!1),[As,Ds]=(0,Ce.useState)(!1),[Zl,ou]=(0,Ce.useState)(-1),[js,Ys]=(0,Ce.useState)(!0),[Pu,Nh]=(0,Ce.useState)([]),[ph,kh]=(0,Ce.useState)([]),[_u,ju]=(0,Ce.useState)(!1),[ru,pl]=(0,Ce.useState)(!1),[Ah,qu]=(0,Ce.useState)(!1),[au]=Je.default.useForm(),sr=(0,Ce.useRef)(),[un,Es]=(0,Ce.useState)({}),[ts,Ta]=(0,Ce.useState)(!1),[La,Pa]=(0,Ce.useState)(!1),[Ga,Ka]=(0,Ce.useState)(!1);(0,Ce.useEffect)(()=>()=>{window.clearInterval(sr.current)},[]);const Vl=()=>Ri(void 0,null,function*(){var yi,cr;const Cr=yield(0,Be.ZP)("/api/subject_generations/get.json",{method:"get"});(Cr==null?void 0:Cr.status)==0&&(Es(Cr==null?void 0:Cr.data),(((yi=Cr==null?void 0:Cr.data)==null?void 0:yi.state)==1||((cr=Cr==null?void 0:Cr.data)==null?void 0:cr.state)==-1)&&window.clearInterval(sr.current))}),Cl=()=>Ri(void 0,null,function*(){const yi=yield(0,Be.ZP)("/api/subject_generations/get_file.json",{method:"get"});(yi==null?void 0:yi.status)==0&&au.setFieldValue("file_ids",(0,rt.z)(yi==null?void 0:yi.data))}),Oa=[{title:"\u5C55\u793A\u8BFE\u7A0B\u6982\u8981\uFF08\u9009\u4E2D\uFF0C\u5219\u9ED8\u8BA4\u5C55\u793A\u6240\u6709\u6982\u89C8\u6A21\u5757\uFF09",key:"all",children:[{title:"\u5C55\u793A\u8BFE\u7A0B\u7AE0\u8282",key:"chapter"},{title:"\u5C55\u793A\u6392\u884C\u699C",key:"charts"},{title:"\u5C55\u793A\u8BC1\u4E66\u7533\u8BF7",key:"cert_apply"},{title:"\u5C55\u793A\u77E5\u8BC6\u56FE\u8C31",key:"knowledge_graph"}]}],[ca,Dh]=(0,Ce.useState)([]),[bl,Mo]=(0,Ce.useState)(!1),Bh=ca.length>0&&ca.length<4,[Bt,ni]=(0,Ce.useState)(1),[wd,$d]=(0,Ce.useState)([]),[Cu,bu]=(0,Ce.useState)([]);(0,Ce.useEffect)(()=>{var yi;zu(),nd(),Yr.current=Wr.pathId,Zr(!!Yr.current),(0,we.Dk)((yi=wn==null?void 0:wn.setting)==null?void 0:yi.name),no.setFieldsValue({learning_notes_title:"\u8BFE\u7A0B\u987B\u77E5"}),Yr.current&&Za()},[]);const zu=()=>Ri(void 0,null,function*(){const yi=yield(0,Be.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});$d(yi.disciplines)}),nd=()=>Ri(void 0,null,function*(){Ys(!0);const yi=yield ct({type:"newCourse/getSchoolOption",payload:{display_aliases:!0}});Ys(!1),Nh(yi==null?void 0:yi.schools),kh(yi==null?void 0:yi.schools)}),mh=()=>{if(Ko.get("username")){Oe.history.push(`/users/${Ko.get("username")}/paths`);return}Oe.history.push(vi?`/paths/${Yr.current}`:"/paths")},Za=()=>Ri(void 0,null,function*(){var yi,cr,Cr,Br,Sa,hs,Eu,Gr,Bs,Kr,fa,Ca,ka,Vr,su,Wo,vh,Rr;const rr=yield ct({type:"newCourse/getEditCourseData",payload:{id:Yr.current}});if(rr){let id={name:rr.name,name_en:rr.name_en,intro:rr.description,content:(yi=rr==null?void 0:rr.toast)==null?void 0:yi.content,notice:rr.learning_notes,school_id:rr==null?void 0:rr.school,learning_notes_title:rr.learning_notes_title||"\u8BFE\u7A0B\u987B\u77E5"};rr.disciplines&&rr.disciplines.length>0&&bu(rr.disciplines),no.setFieldsValue(id),Ds((cr=rr==null?void 0:rr.toast)==null?void 0:cr.is_open),ou((Cr=rr==null?void 0:rr.toast)==null?void 0:Cr.open_num),bs(rr==null?void 0:rr.cust_seq),xi(rr==null?void 0:rr.show_spoc),Rs(rr==null?void 0:rr.show_history),pl(rr==null?void 0:rr.show_course_section),ju(rr==null?void 0:rr.allow_download),Uo(rr==null?void 0:rr.show_tag),Mo(rr==null?void 0:rr.allow_set_subject_summary),rr!=null&&rr.show_chapter&&ca.push("chapter"),rr!=null&&rr.show_charts&&ca.push("charts"),rr!=null&&rr.show_cert_apply&&ca.push("cert_apply"),rr!=null&&rr.show_knowledge_graph&&ca.push("knowledge_graph"),rr!=null&&rr.show_chapter&&(rr!=null&&rr.show_charts)&&(rr!=null&&rr.show_cert_apply)&&(rr!=null&&rr.show_knowledge_graph)&&ca.push("all"),Dh([...ca]),((Br=rr==null?void 0:rr.attachments)==null?void 0:Br.length)>0&&_r([{uid:(hs=(Sa=rr==null?void 0:rr.attachments)==null?void 0:Sa[0])==null?void 0:hs.id,name:(Gr=(Eu=rr==null?void 0:rr.attachments)==null?void 0:Eu[0])==null?void 0:Gr.title,response:{id:(Kr=(Bs=rr==null?void 0:rr.attachments)==null?void 0:Bs[0])==null?void 0:Kr.id}}]),((fa=rr==null?void 0:rr.attachments_b)==null?void 0:fa.length)>0&&Xs([{uid:(ka=(Ca=rr==null?void 0:rr.attachments_b)==null?void 0:Ca[0])==null?void 0:ka.id,name:(su=(Vr=rr==null?void 0:rr.attachments_b)==null?void 0:Vr[0])==null?void 0:su.title,response:{id:(vh=(Wo=rr==null?void 0:rr.attachments_b)==null?void 0:Wo[0])==null?void 0:vh.id}}]),Fo({name:rr.name,intro:rr.description,notice:rr.learning_notes,content:(Rr=rr==null?void 0:rr.toast)==null?void 0:Rr.content})}}),tr=yi=>Ri(void 0,null,function*(){var cr,Cr,Br,Sa;const{name:hs,intro:Eu,notice:Gr,name_en:Bs,learning_notes_title:Kr,sub_discipline_ids:fa,school_id:Ca}=yi||{},ka=vi?"newCourse/editCourse":"newCourse/submitCourse";let Vr=!1,su=null;if(Pu.map(Rr=>{Ca===Rr.name&&(Vr=!0,su=Rr.id)}),!Vr)return ke.ZP.error(`\u672A\u627E\u5230\u5305\u542B'${Ca}'\u7684\u53D1\u5E03\u5355\u4F4D`);let Wo={id:Yr.current,name:hs,name_en:Bs,description:Eu,learning_notes:Gr,cust_seq:qa,show_spoc:vs,school_id:su,show_tag:gl,show_history:Ru,show_course_section:ru,allow_download:_u,learning_notes_title:Kr,attachment_ids:[(Cr=(cr=Jr==null?void 0:Jr[0])==null?void 0:cr.response)==null?void 0:Cr.id],attachment_ids_b:[(Sa=(Br=es==null?void 0:es[0])==null?void 0:Br.response)==null?void 0:Sa.id],sub_discipline_ids:fa,subject_toast_attributes:{is_open:As,open_num:Zl,content:yi.content}};bl&&(Wo.show_chapter=ca==null?void 0:ca.includes("chapter"),Wo.show_charts=ca==null?void 0:ca.includes("charts"),Wo.show_cert_apply=ca==null?void 0:ca.includes("cert_apply"),Wo.show_knowledge_graph=ca==null?void 0:ca.includes("knowledge_graph"));const vh=yield ct({type:ka,payload:eo({},Wo)});vh!=null&&vh.subject_id&&Oe.history.push(`/paths/${vh.subject_id}`)}),tl=()=>{ct({type:"newCourse/setActionTabs",payload:{key:"NewCourse-AppplySchool"}})},zs=yi=>{nd(),Fo(Oo(eo({},no.getFieldsValue()),{school_id:yi}))},Fa=(yi,cr)=>{Dh(yi)};return Ct.createElement("div",{className:me.wrap},Ct.createElement("div",{className:me.bg},Ct.createElement("div",{className:me.crumbs},Ct.createElement("span",null,"\u5B9E\u8DF5\u8BFE\u7A0B"),Ct.createElement("i",{className:"iconfont icon-zhankai1"}),Ct.createElement("b",null,vi?"\u7F16\u8F91":"\u521B\u5EFA","\u5B9E\u8DF5\u8BFE\u7A0B")),Ct.createElement("div",{className:me.titleWrap},Ct.createElement("span",null,vi?"\u7F16\u8F91":"\u521B\u5EFA","\u5B9E\u8DF5\u8BFE\u7A0B"),Ct.createElement("b",{onClick:mh},"\u8FD4\u56DE")),!vi&&Ct.createElement(cn.tp,{style:{marginTop:"20px"},dataSource:[{name:"\u624B\u52A8\u521B\u5EFA",id:1},{name:"\u667A\u80FD\u521B\u5EFA",id:2}],value:Bt,onChange:yi=>Ri(void 0,null,function*(){var cr,Cr,Br;if(ni(yi),yi==1)window.clearInterval(sr.current),au.resetFields();else{Cl();const Sa=yield(0,Be.ZP)("/api/subject_generations/get.json",{method:"get"});(Sa==null?void 0:Sa.status)==0&&(Es(Sa==null?void 0:Sa.data),(((cr=Sa==null?void 0:Sa.data)==null?void 0:cr.state)==1||((Cr=Sa==null?void 0:Sa.data)==null?void 0:Cr.state)==-1)&&window.clearInterval(sr.current),((Br=Sa==null?void 0:Sa.data)==null?void 0:Br.state)==0&&(sr.current=setInterval(()=>{Vl()},1e3)))}})}),Bt==1&&Ct.createElement(Je.default,{form:no,className:me.formWrap,scrollToFirstError:!0,layout:"vertical",colon:!1,onValuesChange:()=>{const yi=no.getFieldsValue();"school_id"in yi&&kh(Pu.filter(cr=>{var Cr,Br,Sa;return((Sa=(Cr=cr==null?void 0:cr.name)==null?void 0:Cr.toUpperCase())==null?void 0:Sa.indexOf((Br=yi==null?void 0:yi.school_id)==null?void 0:Br.toUpperCase()))!==-1})),Fo(eo({},yi))},onFinish:tr},Ct.createElement("div",{className:me.fieldWrap},Ct.createElement(Je.default.Item,{extra:Ct.createElement("div",{className:"tr c-grey-333 font12 mt3"},`${((Re=Io.name)==null?void 0:Re.length)||0}/60`),name:"name",label:"\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0"}]},Ct.createElement(Co,{maxLength:60,placeholder:"\u4F8B\u5982\uFF1A\u5927\u5B66\u8BA1\u7B97\u673A\u57FA\u7840 \u2014\u2014 \u8BA1\u7B97\u601D\u7EF4"})),Ct.createElement(Je.default.Item,{style:{marginTop:"-24px"},name:"name_en",label:"\u82F1\u6587\u8BFE\u7A0B\u540D\u79F0",extra:Ct.createElement("div",{className:"tr c-grey-333 font12 mt3"},`${((Tt=Io.name_en)==null?void 0:Tt.length)||0}/200`),rules:[{message:"\u8BF7\u8F93\u5165\u82F1\u6587\u8BFE\u7A0B\u540D\u79F0"}]},Ct.createElement(Co,{maxLength:200,placeholder:"College Computer Fundamentals - Computational Thinking"})),Ct.createElement(Je.default.Item,{name:"sub_discipline_ids",label:Ct.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:1200}},Ct.createElement("div",null,"\u65B9\u5411&\u8BFE\u7A0B"),Ct.createElement("div",{style:{color:"#9096A3",position:"relative",left:12}},"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",Ct.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>qu(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),style:{marginTop:"-24px"}},Ct.createElement(tn,{defaultValue:Cu,dataSource:wd,onChange:yi=>no.setFieldsValue({sub_discipline_ids:yi})})),Ct.createElement(Je.default.Item,{label:"\u53D1\u5E03\u5355\u4F4D",name:"school_id",wrapperCol:{span:24},extra:!js&&Io.school_id&&!(Pu!=null&&Pu.find(yi=>yi.name===Io.school_id))&&Ct.createElement("div",{className:me.schoolHintWrap},Ct.createElement("span",{className:me.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",Io.school_id,"\u201D\u7684\u53D1\u5E03\u5355\u4F4D\uFF0C\u5982\u6709\u9700\u8981\uFF0C\u8BF7",Ct.createElement("span",{style:{color:"blue",cursor:"pointer"},onClick:()=>{var yi,cr;Ot.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",width:400,icon:null,centered:!0,content:Ct.createElement("div",{style:{textAlign:"center"}},Ct.createElement("div",{style:{textAlign:"left"}},"\u8BF7\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u5B98\u65B9\u4EA4\u6D41QQ\u7FA4\uFF1A",(yi=wn==null?void 0:wn.setting)==null?void 0:yi.homepage_tea_qq_number,"\uFF0C\u8054\u7CFB\u7FA4\u5185\u7684\u8FD0\u8425\u8FDB\u884C\u54A8\u8BE2\u548C\u7533\u8BF7\u65B0\u589E\u5B66\u6821\u540D\u79F0\u3002"),Ct.createElement("img",{src:`${Fe.Z.IMG_SERVER}/${(cr=wn==null?void 0:wn.setting)==null?void 0:cr.homepage_tea_qq_qrcode_url}`,style:{width:"170px",height:"170px",marginTop:"20px"}})),okText:"\u6211\u77E5\u9053\u4E86"})}},"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425"),"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D"}]},Ct.createElement(Lt.Z,{placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D",showSearch:!0,size:"large"},ph.map((yi,cr)=>Ct.createElement(be,{key:cr,value:yi.name},yi.name))))),Ct.createElement("div",{className:me.mdWrap},Ct.createElement(Je.default.Item,{name:"intro",label:"\u7B80\u4ECB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u7B80\u4ECB"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u7B80\u4ECB"},{max:65e3,message:"\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u7B80\u4ECB\u6700\u5927\u9650\u523665000\u4E2A\u5B57\u7B26"}]},Ct.createElement(ge.Z,{watch:!0,defaultValue:Io.intro}))),Ct.createElement("div",{className:me.mdWrap},Ct.createElement(ot.Z,{align:"top",className:"mb10 mt10"},Ct.createElement(Rt.Z,null,Ct.createElement("span",{className:"c-red mr10"},"*")),Ct.createElement(Rt.Z,{flex:"1"},Ct.createElement(Je.default.Item,{name:"learning_notes_title",label:"",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u8BFE\u7A0B\u987B\u77E5\u6807\u9898"},{max:15,message:"\u8BF7\u8F93\u8BFE\u7A0B\u987B\u77E5\u6807\u9898\u6700\u5927\u9650\u523615\u4E2A\u5B57\u7B26"}]},Ct.createElement(tt.default,{style:{height:38},placeholder:"\u8BF7\u8F93\u5165"})))),Ct.createElement(Je.default.Item,{name:"notice",label:"",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u987B\u77E5"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u987B\u77E5"},{max:65e3,message:"\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u987B\u77E5\u6700\u5927\u9650\u523665000\u4E2A\u5B57\u7B26"}]},Ct.createElement(ge.Z,{insertTemp:"1",watch:!0,defaultValue:Io.notice}))),Ct.createElement("div",{className:me.mdWrap},Ct.createElement("div",{style:{display:"flex",alignItems:"center"}},Ct.createElement(xt.Z,{checked:As,style:{marginRight:11,minWidth:32},onChange:yi=>{Ds(yi)}}),Ct.createElement("span",{className:me.spanText},"\u8BFE\u7A0B\u516C\u544A",Ct.createElement("span",null,"\uFF08\u652F\u6301\u8001\u5E08\u81EA\u5B9A\u4E49\u516C\u544A\u5185\u5BB9\uFF0C\u4EE5\u5F39\u6846\u5F62\u5F0F\u63D0\u9192\u8BFE\u7A0B\u7684\u5B66\u4E60\u7528\u6237\uFF09"))),As&&Ct.createElement(Je.default.Item,{style:{marginTop:10},name:"content",label:"",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u63D0\u793A"},{max:1e4,message:"\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u63D0\u793A\u6700\u5927\u9650\u523610000\u4E2A\u5B57\u7B26"}]},Ct.createElement(ge.Z,{insertTemp:"1",watch:!0,defaultValue:Io.content})),As&&Ct.createElement("div",{style:{marginTop:20,borderBottom:"1px solid #DBDCE0",paddingBottom:7}},Ct.createElement("label",{style:{color:"#000",marginRight:10}},"\u63D0\u793A\u6B21\u6570"),Ct.createElement(zt.ZP.Group,{value:Zl,onChange:yi=>{ou(yi.target.value)}},Ct.createElement(zt.ZP,{className:"c-black",value:-1},"\u6BCF\u6B21"),Ct.createElement(zt.ZP,{className:"ml20 c-black",value:1},"\u4E00\u6B21")))),Ct.createElement("div",{className:me.mdWrap,style:{marginTop:25}},Ct.createElement(Ae.default,{style:{marginLeft:bl?"28px":"0"},checked:qa,onChange:yi=>{bs(yi==null?void 0:yi.target.checked)}},Ct.createElement("span",{className:me.spanText},"\u5C55\u793A\u9ED8\u8BA4\u7AE0\u8282\u5E8F\u53F7",Ct.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u4E3A\u7AE0\u8282\u4E0B\u6240\u6709\u9879\u76EE\u6DFB\u52A0\u6392\u5E8F\u7F16\u53F7\uFF09"))),Ct.createElement("br",null),Ct.createElement(Ae.default,{style:{marginTop:"10px",marginLeft:bl?"28px":"0"},checked:vs,onChange:yi=>xi(yi==null?void 0:yi.target.checked)},Ct.createElement("span",{className:me.spanText},"\u81EA\u9009\u5E76\u5C55\u793ASPOC\u8BFE\u5802",Ct.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u6559\u5B66\u56E2\u961F\u4E0B\u65B9\u6DFB\u52A0SPOC\u8BFE\u5802\u6A21\u5757\uFF0C\u56E2\u961F\u6210\u5458\u53EF\u7BA1\u7406\u6A21\u5757\u4E2D\u8BFE\u5802\u7684\u5C55\u793A\uFF09"))),Ct.createElement("br",null),Ct.createElement(Ae.default,{style:{marginTop:"10px",marginLeft:bl?"28px":"0"},checked:gl,onChange:yi=>Uo(yi==null?void 0:yi.target.checked)},Ct.createElement("span",{className:me.spanText},"\u5C55\u793A\u6280\u672F\u6807\u7B7E\u6A21\u5757",Ct.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u6559\u5B66\u56E2\u961F\u4E0B\u65B9\u6DFB\u52A0\u6280\u672F\u6807\u7B7E\u6A21\u5757\uFF09"))),Ct.createElement("br",null),Ct.createElement(Ae.default,{style:{marginTop:"10px",marginLeft:bl?"28px":"0"},checked:Ru,onChange:yi=>Rs(yi==null?void 0:yi.target.checked)},Ct.createElement("span",{className:me.spanText},"\u5C55\u793A\u5386\u53F2\u8BFE\u5802\u6A21\u5757",Ct.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u6559\u5B66\u56E2\u961F\u4E0B\u65B9\u6DFB\u52A0\u5386\u53F2\u8BFE\u5802\u6A21\u5757\uFF0C\u56E2\u961F\u6210\u5458\u53EF\u7BA1\u7406\u6A21\u5757\u4E2D\u8BFE\u5802\u7684\u5C55\u793A\uFF09"))),Ct.createElement("br",null),Ct.createElement(Ae.default,{style:{marginTop:"10px",marginLeft:bl?"28px":"0"},checked:_u,onChange:yi=>ju(yi==null?void 0:yi.target.checked)},Ct.createElement("span",{className:me.spanText},"\u5141\u8BB8\u4E0B\u8F7D\u6559\u5B66\u8BFE\u4EF6",Ct.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u5B66\u4E60\u7528\u6237\u4E0B\u8F7D\u8BFE\u7A0B\u7AE0\u8282\u4E2D\u4E0A\u4F20\u7684\u6559\u5B66\u8BFE\u4EF6\uFF09"))),Ct.createElement("br",null),Ct.createElement(Ae.default,{style:{marginTop:"10px",marginLeft:bl?"28px":"0"},checked:ru,onChange:yi=>pl(yi==null?void 0:yi.target.checked)},Ct.createElement("span",{className:me.spanText},"\u9ED8\u8BA4\u5C55\u5F00\u8BFE\u7A0B\u5C0F\u8282\u5185\u5BB9",Ct.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u7528\u6237\u5728\u8FDB\u5165\u662F\u5C06\u8BFE\u7A0B\u8BE6\u60C5\u9875\u9762\u65F6\uFF0C\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u5C0F\u8282\u5185\u5BB9\uFF09"))),Ct.createElement("br",null),bl&&Ct.createElement(te.default,{style:{marginTop:"10px"},showIcon:!1,className:me.tree,defaultExpandAll:!0,treeData:Oa,onCheck:(yi,cr)=>{Fa(yi,cr)},titleRender:yi=>Ct.createElement(Ae.default,{checked:ca==null?void 0:ca.includes(yi.key),indeterminate:yi.key==="all"?Bh:!1,onChange:cr=>{const Cr=ca==null?void 0:ca.indexOf(yi.key);if(Cr>-1)if(yi.key==="all")ca.splice(0);else{ca.splice(Cr,1);const Br=ca==null?void 0:ca.indexOf("all");Br>-1&&ca.splice(Br,1)}else yi.key==="all"?ca.splice(0,ca.length,"all","chapter","charts","cert_apply","knowledge_graph"):(ca.push(yi.key),ca.length>=4&&!(ca!=null&&ca.includes("all"))&&ca.push("all"));console.log("checkedValueList--",ca),Dh([...ca])}},yi.title)}),Ct.createElement("div",{className:"mt10"},Ct.createElement("div",{className:"c-black mb10"},"\u81EA\u5B9A\u4E49\u9876\u90E8\u80CC\u666F\u56FE"),Ct.createElement(ne.default,{action:Fe.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:Jr,onChange:yi=>{var cr,Cr;const Br=(yi==null?void 0:yi.file.size)/1024/1024<2;if(!((cr=yi.fileList)!=null&&cr.length))return!1;_r(Br?(Cr=yi==null?void 0:yi.fileList)==null?void 0:Cr.slice(-1):[...Jr])},beforeUpload:yi=>{const cr=yi.type==="image/jpeg"||yi.type==="image/png";if(!cr)return ke.ZP.error("\u53EA\u80FD\u4E0A\u4F20jpg \u6216\u8005png\u56FE\u7247"),!1;const Cr=yi.size/1024/1024<2;return Cr?cr&&Cr:(ke.ZP.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u5927\u4E8E2m"),!1)},onRemove:yi=>{_r([])}},Ct.createElement("div",{className:me.aBtn},"\u4E0A\u4F20\u56FE\u7247"),Ct.createElement("span",{style:{color:"#5F6367",pointerEvents:"none"}},"\uFF08\u672C\u9879\u975E\u5FC5\u9700\u3002\u5982\u4E0D\u4E0A\u4F20\uFF0C\u5219\u4F7F\u7528\u7CFB\u7EDF\u9ED8\u8BA4\u56FE\u7247\uFF1B\u5982\u4E0A\u4F20\uFF0C\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC72M\uFF0C\u5EFA\u8BAE\u5C3A\u5BF81920*240\u50CF\u7D20\uFF09"))),Ct.createElement("div",{className:"mt10"},Ct.createElement("div",{className:"c-black mb10"},"\u81EA\u5B9A\u4E49\u9876\u90E8\u5185\u5BB9\u56FE"),Ct.createElement(ne.default,{action:Fe.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:es,onChange:yi=>{var cr,Cr;const Br=(yi==null?void 0:yi.file.size)/1024/1024<2;if(!((cr=yi.fileList)!=null&&cr.length))return!1;Xs(Br?(Cr=yi==null?void 0:yi.fileList)==null?void 0:Cr.slice(-1):[...es])},beforeUpload:yi=>{const cr=yi.type==="image/jpeg"||yi.type==="image/png";if(!cr)return ke.ZP.error("\u53EA\u80FD\u4E0A\u4F20jpg \u6216\u8005png\u56FE\u7247"),!1;const Cr=yi.size/1024/1024<2;return Cr?cr&&Cr:(ke.ZP.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u5927\u4E8E2m"),!1)},onRemove:yi=>{Xs([])}},Ct.createElement("div",{className:me.aBtn},"\u4E0A\u4F20\u56FE\u7247"),Ct.createElement("span",{style:{color:"#5F6367",pointerEvents:"none"}},"\uFF08\u672C\u9879\u975E\u5FC5\u9700\u3002\u5982\u4E0D\u4E0A\u4F20\uFF0C\u5219\u4F7F\u7528\u7CFB\u7EDF\u9ED8\u8BA4\u56FE\u7247\uFF1B\u5982\u4E0A\u4F20\uFF0C\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC72M\uFF0C\u5EFA\u8BAE\u5C3A\u5BF81200*240\u50CF\u7D20\uFF09")))),Ct.createElement("div",{className:me.backgroundFa},Ct.createElement("div",{className:me.bBtn,onClick:mh},"\u53D6\u6D88"),Ct.createElement(he.ZP,{className:me.cBtn,onClick:()=>no.submit(),loading:Nn["newCourse/editCourse"]||Nn["newCourse/submitCourse"]},"\u63D0\u4EA4 "))),Bt==2&&Ct.createElement("div",{className:me.add_ai},Ct.createElement("div",{style:{margin:"20px 0"}},"\u6839\u636E\u60A8\u4E0A\u4F20\u7684\u8D44\u6599\u81EA\u52A8\u751F\u6210\u8BFE\u7A0B\u7B80\u4ECB\u3001\u8BFE\u7A0B\u76EE\u6807\u3001\u8BFE\u7A0B\u5927\u7EB2\u3001\u7AE0\u8282\u63CF\u8FF0\u3001\u8BFE\u7A0B\u8D44\u6E90\u3001\u77E5\u8BC6\u70B9\u3001\u77E5\u8BC6\u56FE\u8C31\u7B49\u5185\u5BB9"),Ct.createElement(Je.default,{form:au,scrollToFirstError:!0,colon:!1},Ct.createElement(Je.default.Item,{name:"file_ids"},Ct.createElement(rt.Z,{accept:".pdf, .docx, .doc, .xlsx, .xls, .txt, .md",maxSize:150,number:99,uploadText:"\u5EFA\u8BAE\u4E0A\u4F20\u8BFE\u7A0B\u4E66\u7C4D\u3001\u8BFE\u7A0B\u6559\u5B66\u5927\u7EB2\u7B49\u7C7B\u4F3C\u6587\u4EF6",setFileProgress:Ka,showFileProgress:!0}))),((_t=[-1,0,1])==null?void 0:_t.includes(un==null?void 0:un.state))&&Ct.createElement("div",{className:me.paths_content},Ct.createElement("div",{className:me.content_header},Ct.createElement("i",{className:"iconfont icon-ziyuanshibie font22 mb10",style:{color:(ht=[1,2,3,4,5,6,7,8])!=null&&ht.includes(un==null?void 0:un.phase)?"#2a56ca":"#bdbdbd"}}),Ct.createElement("i",{className:"iconfont icon-kechengjibenxinxi font22 mb10",style:{color:(Ye=[2,3,4,5,6,7,8])!=null&&Ye.includes(un==null?void 0:un.phase)?"#2a56ca":"#bdbdbd"}}),Ct.createElement("i",{className:"iconfont icon-kechengneirongziyuan font22 mb10",style:{color:(Wt=[5,6,7,8])!=null&&Wt.includes(un==null?void 0:un.phase)?"#2a56ca":"#bdbdbd"}})),Ct.createElement("div",{style:{display:"flex",position:"relative"}},Ct.createElement("div",{className:me.header_box,style:{left:0}},Ct.createElement("img",{src:(Ut=[1,2,3,4,5,6,7,8])!=null&&Ut.includes(un==null?void 0:un.phase)?Mt:pn}),Ct.createElement("div",{className:me.header_text,style:{color:(fn=[1,2,3,4,5,6,7,8])!=null&&fn.includes(un==null?void 0:un.phase)?"#fff":"#9096A3"}},(Dn=[1,2,3,4,5,6,7,8])!=null&&Dn.includes(un==null?void 0:un.phase)?"\u8D44\u6E90\u8BC6\u522B \u5DF2\u5B8C\u6210":"\u8D44\u6E90\u8BC6\u522B"),Ct.createElement("div",{style:{textAlign:"center",width:"386px"}},Ct.createElement("img",{src:Jt,style:{width:"233px",height:"179px"}}))),Ct.createElement("div",{className:me.header_box,style:{left:"380px"}},Ct.createElement("img",{src:(at=[2,3,4,5,6,7,8])!=null&&at.includes(un==null?void 0:un.phase)?dn:pn}),Ct.createElement("div",{className:me.header_text,style:{color:(ln=[2,3,4,5,6,7,8])!=null&&ln.includes(un==null?void 0:un.phase)?"#fff":"#9096A3"}},(Hn=[2,3,4,5,6,7,8])!=null&&Hn.includes(un==null?void 0:un.phase)?`\u8BFE\u7A0B\u57FA\u672C\u4FE1\u606F\u751F\u6210 ${(ii=[2,3,4])!=null&&ii.includes(un==null?void 0:un.phase)?"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"}`:"\u8BFE\u7A0B\u57FA\u672C\u4FE1\u606F\u751F\u6210 \u7B49\u5F85\u4E2D"),Ct.createElement("div",{className:me.lianjie}),Ct.createElement("div",{style:{textAlign:"center"}},Ct.createElement("div",{className:me.buzou_box},Ct.createElement("div",{style:{display:"flex",alignItems:"center"}},((jt=[0,1])==null?void 0:jt.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((sn=[2])==null?void 0:sn.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)!=-1&&Ct.createElement(se.Z,{indicator:Ct.createElement(Et.Z,{spin:!0}),size:"small"},Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((It=[2])==null?void 0:It.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)==-1&&Ct.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((on=[3,4,5,6,7,8])==null?void 0:on.includes(un==null?void 0:un.phase))&&Ct.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ct.createElement("div",{style:{margin:"0 10px",color:(qt=[0,1])!=null&&qt.includes(un==null?void 0:un.phase)?"#9096A3":(en=[2])!=null&&en.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},"\u8BFE\u7A0B\u7B80\u4ECB\u751F\u6210"),Ct.createElement("div",{style:{color:(xn=[0,1])!=null&&xn.includes(un==null?void 0:un.phase)?"#9096A3":(Pn=[2])!=null&&Pn.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},(An=[0,1])!=null&&An.includes(un==null?void 0:un.phase)?"\u7B49\u5F85\u4E2D":(Wn=[2])!=null&&Wn.includes(un==null?void 0:un.phase)?(un==null?void 0:un.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210")),Ct.createElement("div",{style:{width:"2px",height:"30px",background:(pi=[0,1,2])!=null&&pi.includes(un==null?void 0:un.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),Ct.createElement("div",{style:{display:"flex",alignItems:"center"}},((Yt=[0,1,2])==null?void 0:Yt.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((bi=[3])==null?void 0:bi.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)!=-1&&Ct.createElement(se.Z,{indicator:Ct.createElement(Et.Z,{spin:!0}),size:"small"},Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((Di=[3])==null?void 0:Di.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)==-1&&Ct.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((ki=[4,5,6,7,8])==null?void 0:ki.includes(un==null?void 0:un.phase))&&Ct.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ct.createElement("div",{style:{margin:"0 10px",color:(nn=[0,1,2])!=null&&nn.includes(un==null?void 0:un.phase)?"#9096A3":(Xn=[3])!=null&&Xn.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},"\u8BFE\u7A0B\u76EE\u6807\u751F\u6210"),Ct.createElement("div",{style:{color:(fi=[0,1,2])!=null&&fi.includes(un==null?void 0:un.phase)?"#9096A3":(wi=[3])!=null&&wi.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},(gi=[0,1,2])!=null&&gi.includes(un==null?void 0:un.phase)?"\u7B49\u5F85\u4E2D":(Bi=[3])!=null&&Bi.includes(un==null?void 0:un.phase)?(un==null?void 0:un.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210")),Ct.createElement("div",{style:{width:"2px",height:"30px",background:(Ki=[0,1,2,3])!=null&&Ki.includes(un==null?void 0:un.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),Ct.createElement("div",{style:{display:"flex",alignItems:"center"}},((ji=[0,1,2,3])==null?void 0:ji.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((Pi=[4])==null?void 0:Pi.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)!=-1&&Ct.createElement(se.Z,{indicator:Ct.createElement(Et.Z,{spin:!0}),size:"small"},Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((Vi=[4])==null?void 0:Vi.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)==-1&&Ct.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((Ln=[5,6,7,8])==null?void 0:Ln.includes(un==null?void 0:un.phase))&&Ct.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ct.createElement("div",{style:{margin:"0 10px",color:(So=[0,1,2,3])!=null&&So.includes(un==null?void 0:un.phase)?"#9096A3":(Mn=[4])!=null&&Mn.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},"\u7AE0\u8282\u53CA\u63CF\u8FF0\u751F\u6210"),Ct.createElement("div",{style:{color:(ro=[0,1,2,3])!=null&&ro.includes(un==null?void 0:un.phase)?"#9096A3":(No=[4])!=null&&No.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},(_i=[0,1,2,3])!=null&&_i.includes(un==null?void 0:un.phase)?"\u7B49\u5F85\u4E2D":(Go=[4])!=null&&Go.includes(un==null?void 0:un.phase)?(un==null?void 0:un.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"),((ko=[5,6,7,8])==null?void 0:ko.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{marginLeft:"10px",color:"#232B40"}},"\u5171\u751F\u6210",Ct.createElement("span",{style:{color:"#3061D0"}},un==null?void 0:un.stage_size),"\u4E2A\u7AE0\u8282"))))),Ct.createElement("div",{className:me.header_box,style:{left:"760px"}},Ct.createElement("img",{src:(Ii=[5,6,7,8])!=null&&Ii.includes(un==null?void 0:un.phase)?dn:pn}),Ct.createElement("div",{className:me.header_text,style:{color:(Ai=[5,6,7,8])!=null&&Ai.includes(un==null?void 0:un.phase)?"#fff":"#9096A3"}},(Zi=[5,6,7,8])!=null&&Zi.includes(un==null?void 0:un.phase)?`\u8BFE\u7A0B\u5185\u5BB9\u8D44\u6E90\u751F\u6210 ${(yo=[5,6,7])!=null&&yo.includes(un==null?void 0:un.phase)?"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"}`:"\u8BFE\u7A0B\u5185\u5BB9\u8D44\u6E90\u751F\u6210 \u7B49\u5F85\u4E2D"),Ct.createElement("div",{className:me.lianjie}),Ct.createElement("div",{style:{textAlign:"center"}},Ct.createElement("div",{className:me.buzou_box},Ct.createElement("div",{style:{display:"flex",alignItems:"center"}},((di=[0,1,2,3,4])==null?void 0:di.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((Ke=[5])==null?void 0:Ke.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)!=-1&&Ct.createElement(se.Z,{indicator:Ct.createElement(Et.Z,{spin:!0}),size:"small"},Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((Do=[5])==null?void 0:Do.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)==-1&&Ct.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((nr=[6,7,8])==null?void 0:nr.includes(un==null?void 0:un.phase))&&Ct.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ct.createElement("div",{style:{margin:"0 10px",color:(xo=[0,1,2,3,4])!=null&&xo.includes(un==null?void 0:un.phase)?"#9096A3":(hr=[5])!=null&&hr.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},"\u77E5\u8BC6\u70B9\u751F\u6210"),Ct.createElement("div",{style:{color:(Qo=[0,1,2,3,4])!=null&&Qo.includes(un==null?void 0:un.phase)?"#9096A3":($i=[5])!=null&&$i.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},(ao=[0,1,2,3,4])!=null&&ao.includes(un==null?void 0:un.phase)?"\u7B49\u5F85\u4E2D":(jo=[5])!=null&&jo.includes(un==null?void 0:un.phase)?(un==null?void 0:un.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"),((Lo=[6,7,8])==null?void 0:Lo.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{marginLeft:"10px",color:"#232B40"}},"\u5171\u751F\u6210",Ct.createElement("span",{style:{color:"#3061D0"}},un==null?void 0:un.resource_size),"\u4E2A\u77E5\u8BC6\u70B9")),Ct.createElement("div",{style:{width:"2px",height:"30px",background:(dr=[0,1,2,3,4,5])!=null&&dr.includes(un==null?void 0:un.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),Ct.createElement("div",{style:{display:"flex",alignItems:"center"}},((Pr=[0,1,2,3,4,5])==null?void 0:Pr.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((Yi=[6])==null?void 0:Yi.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)!=-1&&Ct.createElement(se.Z,{indicator:Ct.createElement(Et.Z,{spin:!0}),size:"small"},Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((Qi=[6])==null?void 0:Qi.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)==-1&&Ct.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((ti=[7,8])==null?void 0:ti.includes(un==null?void 0:un.phase))&&Ct.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ct.createElement("div",{style:{margin:"0 10px",color:(io=[0,1,2,3,4,5])!=null&&io.includes(un==null?void 0:un.phase)?"#9096A3":(ir=[6])!=null&&ir.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},"\u77E5\u8BC6\u70B9\u8D44\u6E90\u751F\u6210"),Ct.createElement("div",{style:{color:(Ir=[0,1,2,3,4,5])!=null&&Ir.includes(un==null?void 0:un.phase)?"#9096A3":(mr=[6])!=null&&mr.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},(er=[0,1,2,3,4,5])!=null&&er.includes(un==null?void 0:un.phase)?"\u7B49\u5F85\u4E2D":(Lr=[6])!=null&&Lr.includes(un==null?void 0:un.phase)?(un==null?void 0:un.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"),((Ar=[7,8])==null?void 0:Ar.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{marginLeft:"10px",color:"#232B40"}},"\u5171\u751F\u6210",Ct.createElement("span",{style:{color:"#3061D0"}},un==null?void 0:un.resource_size),"\u4E2A\u8D44\u6E90")),Ct.createElement("div",{style:{width:"2px",height:"30px",background:(ra=[0,1,2,3,4,5,6])!=null&&ra.includes(un==null?void 0:un.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),Ct.createElement("div",{style:{display:"flex",alignItems:"center"}},((ua=[0,1,2,3,4,5,6])==null?void 0:ua.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((wa=[7])==null?void 0:wa.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)!=-1&&Ct.createElement(se.Z,{indicator:Ct.createElement(Et.Z,{spin:!0}),size:"small"},Ct.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((vn=[7])==null?void 0:vn.includes(un==null?void 0:un.phase))&&(un==null?void 0:un.state)==-1&&Ct.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((ia=[8])==null?void 0:ia.includes(un==null?void 0:un.phase))&&Ct.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ct.createElement("div",{style:{margin:"0 10px",color:(Us=[0,1,2,3,4,5,6])!=null&&Us.includes(un==null?void 0:un.phase)?"#9096A3":(us=[7])!=null&&us.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},"\u77E5\u8BC6\u56FE\u8C31\u751F\u6210"),Ct.createElement("div",{style:{color:(xr=[0,1,2,3,4,5,6])!=null&&xr.includes(un==null?void 0:un.phase)?"#9096A3":(or=[7])!=null&&or.includes(un==null?void 0:un.phase)&&(un==null?void 0:un.state)==-1?"red":"#83B6FF"}},(da=[0,1,2,3,4,5,6])!=null&&da.includes(un==null?void 0:un.phase)?"\u7B49\u5F85\u4E2D":(Ro=[7])!=null&&Ro.includes(un==null?void 0:un.phase)?(un==null?void 0:un.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"),((lo=[8])==null?void 0:lo.includes(un==null?void 0:un.phase))&&Ct.createElement("div",{style:{marginLeft:"10px",color:"#232B40"}},"\u5171\u751F\u6210",Ct.createElement("span",{style:{color:"#3061D0"}},un==null?void 0:un.knowledge_size),"\u4E2A\u77E5\u8BC6\u56FE\u8C31"))))))),Ct.createElement(se.Z,{spinning:La},Ct.createElement("div",{className:(un==null?void 0:un.state)==0||Ga?me.start_style:me.no_start_style,onClick:()=>Ri(void 0,null,function*(){var yi;if(Ga)return ke.ZP.error("\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u8BF7\u7B49\u6587\u4EF6\u4E0A\u4F20\u5B8C\u6210\u540E\u518D\u751F\u6210"),!1;if(!(0,On.$O)())return Ta(!0),!1;if((un==null?void 0:un.state)==-2||(un==null?void 0:un.state)==-1){Pa(!0);let cr=[];if((yi=au.getFieldValue("file_ids"))==null||yi.map(Cr=>{var Br,Sa;cr.push(((Br=Cr==null?void 0:Cr.response)==null?void 0:Br.container_id)||((Sa=Cr==null?void 0:Cr.response)==null?void 0:Sa.id))}),(cr==null?void 0:cr.length)>0){const Cr=yield(0,Be.ZP)("/api/subject_generations.json",{method:"post",body:{attachment_ids:cr}});(Cr==null?void 0:Cr.status)==0&&(ke.ZP.success("\u5F00\u59CB\u751F\u6210"),Vl(),sr.current=setInterval(()=>{Vl()},1e3))}else ke.ZP.error("\u8BF7\u4E0A\u4F20\u8BFE\u7A0B\u8D44\u6599\uFF0C\u5EFA\u8BAE\u4E0A\u4F20\u4E66\u7C4D\u3001\u8BFE\u7A0B\u6559\u5B66\u5927\u7EB2\u7B49");Pa(!1)}else if((un==null?void 0:un.state)==1){Pa(!0);const cr=yield(0,Be.ZP)("/api/subject_generations/finish.json",{method:"post",body:{id:un==null?void 0:un.id}});(cr==null?void 0:cr.status)==0&&Oe.history.push(`/paths/${un==null?void 0:un.subject_id}`),Pa(!1)}})},(un==null?void 0:un.state)==1?"\u5B8C\u6210\u8BFE\u7A0B\u521B\u5EFA":(un==null?void 0:un.state)==0?"\u8BFE\u7A0B\u751F\u6210\u4E2D\uFF0C\u8BF7\u7A0D\u540E...":(un==null?void 0:un.state)==-1?"\u91CD\u65B0\u751F\u6210\u8BFE\u7A0B":"\u5F00\u59CB\u751F\u6210\u8BFE\u7A0B"))),ts&&Ct.createElement("div",{style:{width:"100vw",height:"100vh",position:"fixed",top:0,left:0,background:"rgba(0,0,0,.5)",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"}},Ct.createElement("div",{style:{width:"500px",height:"515px",textAlign:"center"}},Ct.createElement("img",{src:Tn,style:{marginLeft:"auto",display:"block",cursor:"pointer",width:"30px",height:"30px"},onClick:()=>{Ta(!1)}}),Ct.createElement("img",{src:Rn,style:{display:"block",marginTop:"-20px",width:"460px",height:"500px"}}))),Ct.createElement(gt,{schoolName:Io.school_id,onSuccess:zs}),Ct.createElement(ft.Z,{open:Ah,onCancel:()=>{qu(!1)}})))};var Ei=(0,Oe.connect)(({user:Dt,newCourse:En,loading:Fn,globalSetting:Jn})=>({user:Dt,newCourse:En,globalSetting:Jn,loading:Fn.effects}))(Mi)},16979:function(Kn,kn,ye){"use strict";ye.d(kn,{P:function(){return Ce}});const Ce=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},24768:function(Kn,kn,ye){"use strict";ye.d(kn,{AL:function(){return we},Iy:function(){return Rt},Qv:function(){return Ae},ez:function(){return me},jb:function(){return xt}});var Ce=ye(32834),Oe=ye.n(Ce),tt=ye(11690),At=ye.n(tt);let Ue=1;function Je(nt,Xe){const dt=nt.match(/^(\s+)(?:```)/);if(dt===null)return Xe;const Ze=dt[1];return Xe.split(`
|
|
|
`).map(Zt=>{const yt=Zt.match(/^\s+/);if(yt===null)return Zt;const[an]=yt;return an.length>=Ze.length?Zt.slice(Ze.length):Zt}).join(`
|
|
|
`)}let ke=[],Ot=["<ul>"];const Lt=new(Oe()).Renderer,ot=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Rt(){ke.length=0,Ot=["<ul>"]}const xt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function zt(nt,Xe,dt,Ze){if(Xe>=nt.length||nt[Xe].level<=dt)return Xe;var Zt=nt[Xe];Ze.push("<li><a href='#"+Ue+Zt.anchor+"'>"+Zt.text+"</a>"),Xe++;var yt=[];return Xe=zt(nt,Xe,Zt.level,yt),yt.length>0&&(Ze.push("<ul>"),yt.forEach(function(an){Ze.push(an)}),Ze.push("</ul>")),Ze.push("</li>"),Xe=zt(nt,Xe,dt,Ze),Xe}function Ae(){return zt(ke,0,0,Ot),Ot.push("</ul>"),Ot.join("")}const te={heading(nt){const Xe=ot.exec(nt);if(Ue+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(nt){const Xe=this.rules.block.fences.exec(nt);if(Xe){const dt=Xe[0];let Ze=Je(dt,Xe[3]||"");const Zt=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(Zt)>=0){const yt=se(),an=Ze;Ze=yt,ge[yt]={type:"block",expression:an}}return{type:"code",raw:dt,lang:Zt,text:Ze}}}},ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const se=()=>`__special_katext_id_${he++}__`;let ge={};function me(){return ge}function we(){he=0,ge={}}function Fe(nt){return nt=nt.replace(ne,(Xe,dt)=>{const Ze=se();return ge[Ze]={type:"inline",expression:dt},Ze}),nt}const Be=Lt.listitem;Lt.listitem=function(nt){return Be(Fe(nt))};const Ie=Lt.paragraph;Lt.paragraph=function(nt){return Ie(Fe(nt))};const We=Lt.tablecell;Lt.tablecell=function(nt,Xe){return We(Fe(nt),Xe)},Lt.code=function(nt,Xe,dt){const Ze=(Xe||"").match(/\S*/)[0];return Ze?["latex","katex","math"].indexOf(Ze)>=0?`<p class='editormd-tex'>${nt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Xe}">${dt?nt:(0,tt.escape)(nt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(dt?nt:(0,tt.escape)(nt,!0))+"</code></pre>"},Lt.heading=function(nt,Xe,dt){let Ze=this.options.headerPrefix+dt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ke.push({anchor:Ze,level:Xe,text:nt}),"<h"+Xe+' id="'+Ue+Ze+'">'+nt+"</h"+Xe+">"},Oe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Oe().use({tokenizer:te,renderer:Lt}),kn.ZP=Oe()},50371:function(Kn,kn){"use strict";function ye(){const Ce=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Oe=1;Oe<arguments.length;Oe++){const tt=Oe<0||arguments.length<=Oe?void 0:arguments[Oe];tt&&Object.keys(tt).forEach(At=>{const Ue=tt[At];Ue!==void 0&&(Ce[At]=Ue)})}return Ce}kn.Z=ye},13845:function(Kn,kn,ye){"use strict";ye.d(kn,{F:function(){return Ce},Z:function(){return Oe}});function Ce(tt){return tt!=null&&tt===tt.window}function Oe(tt,At){var Ue,Je;if(typeof window=="undefined")return 0;const ke=At?"scrollTop":"scrollLeft";let Ot=0;return Ce(tt)?Ot=tt[At?"pageYOffset":"pageXOffset"]:tt instanceof Document?Ot=tt.documentElement[ke]:(tt instanceof HTMLElement||tt)&&(Ot=tt[ke]),tt&&!Ce(tt)&&typeof Ot!="number"&&(Ot=(Je=((Ue=tt.ownerDocument)!==null&&Ue!==void 0?Ue:tt).documentElement)===null||Je===void 0?void 0:Je[ke]),Ot}},56762:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Oe}});var Ce=ye(59301);function Oe(){const[,tt]=Ce.useReducer(At=>At+1,0);return tt}},68031:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return At}});var Ce=ye(16089);function Oe(Ue,Je,ke,Ot){const Lt=ke-Je;return Ue/=Ot/2,Ue<1?Lt/2*Ue*Ue*Ue+Je:Lt/2*((Ue-=2)*Ue*Ue+2)+Je}var tt=ye(13845);function At(Ue){let Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ke=()=>window,callback:Ot,duration:Lt=450}=Je,ot=ke(),Rt=(0,tt.Z)(ot,!0),xt=Date.now(),zt=()=>{const te=Date.now()-xt,ne=Oe(te>Lt?Lt:te,Rt,Ue,Lt);(0,tt.F)(ot)?ot.scrollTo(window.pageXOffset,ne):ot instanceof Document||ot.constructor.name==="HTMLDocument"?ot.documentElement.scrollTop=ne:ot.scrollTop=ne,te<Lt?(0,Ce.Z)(zt):typeof Ot=="function"&&Ot()};(0,Ce.Z)(zt)}},88522:function(Kn,kn,ye){"use strict";var Ce=ye(92310),Oe=ye.n(Ce),tt=ye(11592),At=ye(2738),Ue=ye(59301),Je=ye(53487),ke=ye(92343),Ot=ye(36355),Lt=ye(57809);const{Option:ot}=Lt.default;function Rt(te){return te&&te.type&&(te.type.isSelectOption||te.type.isSelectOptGroup)}const xt=(te,ne)=>{const{prefixCls:he,className:se,popupClassName:ge,dropdownClassName:me,children:we,dataSource:Fe}=te,Be=(0,tt.Z)(we);let Ie;Be.length===1&&(0,ke.l$)(Be[0])&&!Rt(Be[0])&&([Ie]=Be);const We=Ie?()=>Ie:void 0;let nt;Be.length&&Rt(Be[0])?nt=we:nt=Fe?Fe.map(Ze=>{if((0,ke.l$)(Ze))return Ze;switch(typeof Ze){case"string":return Ue.createElement(ot,{key:Ze,value:Ze},Ze);case"object":{const{value:Zt}=Ze;return Ue.createElement(ot,{key:Zt,value:Zt},Ze.text)}default:return}}):[];const{getPrefixCls:Xe}=Ue.useContext(Ot.E_),dt=Xe("select",he);return Ue.createElement(Lt.default,Object.assign({ref:ne,suffixIcon:null},(0,At.Z)(te,["dataSource","dropdownClassName"]),{prefixCls:dt,popupClassName:ge||me,className:Oe()(`${dt}-auto-complete`,se),mode:Lt.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:We}),nt)},zt=Ue.forwardRef(xt),Ae=(0,Je.Z)(zt);zt.Option=ot,zt._InternalPanelDoNotUseOrYouWillBeFired=Ae,kn.Z=zt},19842:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ei}});var Ce=ye(19127),Oe=ye(59301),tt=ye(33853),At=ye(58617),Ue=ye(38819),Je=ye(92310),ke=ye.n(Je),Ot=ye(96663),Lt=ye(72071),ot=ye(6620),Rt=ye(77861),xt=ye(17115),zt=ye(90782),Ae=ye(6089),te=ye(18929),ne=Oe.createContext(null),he=ne,se=ye(20135),ge=ye(90493),me=ye(44127),we="__rc_cascader_search_mark__",Fe=function(En,Fn,Jn){var wn=Jn.label;return Fn.some(function(Nn){return String(Nn[wn]).toLowerCase().includes(En.toLowerCase())})},Be=function(En,Fn,Jn,wn){return Fn.map(function(Nn){return Nn[wn.label]}).join(" / ")},Ie=function(Dt,En,Fn,Jn,wn,Nn){var ct=wn.filter,Pt=ct===void 0?Fe:ct,Re=wn.render,Tt=Re===void 0?Be:Re,_t=wn.limit,ht=_t===void 0?50:_t,Ye=wn.sort;return Oe.useMemo(function(){var Wt=[];if(!Dt)return[];function Ut(fn,Dn){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;fn.forEach(function(ln){if(!(!Ye&&ht!==!1&&ht>0&&Wt.length>=ht)){var Hn=[].concat((0,Ce.Z)(Dn),[ln]),ii=ln[Fn.children],jt=at||ln.disabled;if((!ii||ii.length===0||Nn)&&Pt(Dt,Hn,{label:Fn.label})){var sn;Wt.push((0,me.Z)((0,me.Z)({},ln),{},(sn={disabled:jt},(0,ge.Z)(sn,Fn.label,Tt(Dt,Hn,Jn,Fn)),(0,ge.Z)(sn,we,Hn),(0,ge.Z)(sn,Fn.children,void 0),sn)))}ii&&Ut(ln[Fn.children],Hn,jt)}})}return Ut(En,[]),Ye&&Wt.sort(function(fn,Dn){return Ye(fn[we],Dn[we],Dt,Fn)}),ht!==!1&&ht>0?Wt.slice(0,ht):Wt},[Dt,En,Fn,Jn,Tt,Nn,Pt,Ye,ht])},We="__RC_CASCADER_SPLIT__",nt="SHOW_PARENT",Xe="SHOW_CHILD";function dt(Dt){return Dt.join(We)}function Ze(Dt){return Dt.map(dt)}function Zt(Dt){return Dt.split(We)}function yt(Dt){var En=Dt||{},Fn=En.label,Jn=En.value,wn=En.children,Nn=Jn||"value";return{label:Fn||"label",value:Nn,key:Nn,children:wn||"children"}}function an(Dt,En){var Fn,Jn;return(Fn=Dt.isLeaf)!==null&&Fn!==void 0?Fn:!((Jn=Dt[En.children])!==null&&Jn!==void 0&&Jn.length)}function Gt(Dt){var En=Dt.parentElement;if(En){var Fn=Dt.offsetTop-En.offsetTop;Fn-En.scrollTop<0?En.scrollTo({top:Fn}):Fn+Dt.offsetHeight-En.scrollTop>En.offsetHeight&&En.scrollTo({top:Fn+Dt.offsetHeight-En.offsetHeight})}}function Vt(Dt,En){return Dt.map(function(Fn){var Jn;return(Jn=Fn[we])===null||Jn===void 0?void 0:Jn.map(function(wn){return wn[En.value]})})}function hn(Dt,En,Fn){var Jn=new Set(Dt),wn=En();return Dt.filter(function(Nn){var ct=wn[Nn],Pt=ct?ct.parent:null,Re=ct?ct.children:null;return ct&&ct.node.disabled?!0:Fn===Xe?!(Re&&Re.some(function(Tt){return Tt.key&&Jn.has(Tt.key)})):!(Pt&&!Pt.node.disabled&&Jn.has(Pt.key))})}function yn(Dt,En,Fn){for(var Jn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,wn=En,Nn=[],ct=function(){var Tt,_t,ht,Ye=Dt[Pt],Wt=(Tt=wn)===null||Tt===void 0?void 0:Tt.findIndex(function(fn){var Dn=fn[Fn.value];return Jn?String(Dn)===String(Ye):Dn===Ye}),Ut=Wt!==-1?(_t=wn)===null||_t===void 0?void 0:_t[Wt]:null;Nn.push({value:(ht=Ut==null?void 0:Ut[Fn.value])!==null&&ht!==void 0?ht:Ye,index:Wt,option:Ut}),wn=Ut==null?void 0:Ut[Fn.children]},Pt=0;Pt<Dt.length;Pt+=1)ct();return Nn}var vt=function(Dt,En,Fn,Jn,wn){return Oe.useMemo(function(){var Nn=wn||function(ct){var Pt=Jn?ct.slice(-1):ct,Re=" / ";return Pt.every(function(Tt){return["string","number"].includes((0,se.Z)(Tt))})?Pt.join(Re):Pt.reduce(function(Tt,_t,ht){var Ye=Oe.isValidElement(_t)?Oe.cloneElement(_t,{key:ht}):_t;return ht===0?[Ye]:[].concat((0,Ce.Z)(Tt),[Re,Ye])},[])};return Dt.map(function(ct){var Pt,Re,Tt=yn(ct,En,Fn),_t=Nn(Tt.map(function(Ye){var Wt,Ut=Ye.option,fn=Ye.value;return(Wt=Ut==null?void 0:Ut[Fn.label])!==null&&Wt!==void 0?Wt:fn}),Tt.map(function(Ye){var Wt=Ye.option;return Wt})),ht=dt(ct);return{label:_t,value:ht,key:ht,valueCells:ct,disabled:(Pt=Tt[Tt.length-1])===null||Pt===void 0||(Re=Pt.option)===null||Re===void 0?void 0:Re.disabled}})},[Dt,En,Fn,wn,Jn])},je=ye(71430),wt=function(Dt,En){var Fn=Oe.useRef({options:null,info:null}),Jn=Oe.useCallback(function(){return Fn.current.options!==Dt&&(Fn.current.options=Dt,Fn.current.info=(0,je.I8)(Dt,{fieldNames:En,initWrapper:function(Nn){return(0,me.Z)((0,me.Z)({},Nn),{},{pathKeyEntities:{}})},processEntity:function(Nn,ct){var Pt=Nn.nodes.map(function(Re){return Re[En.value]}).join(We);ct.pathKeyEntities[Pt]=Nn,Nn.key=Pt}})),Fn.current.info.pathKeyEntities},[En,Dt]);return Jn},tn=function(Dt,En){return Oe.useCallback(function(Fn){var Jn=[],wn=[];return Fn.forEach(function(Nn){var ct=yn(Nn,Dt,En);ct.every(function(Pt){return Pt.option})?wn.push(Nn):Jn.push(Nn)}),[wn,Jn]},[Dt,En])},bn=ye(48736);function Ft(Dt){return Oe.useMemo(function(){if(!Dt)return[!1,{}];var En={matchInputWidth:!0,limit:50};return Dt&&(0,se.Z)(Dt)==="object"&&(En=(0,me.Z)((0,me.Z)({},En),Dt)),En.limit<=0&&delete En.limit,[!0,En]},[Dt])}var Xt=Oe.memo(function(Dt){var En=Dt.children;return En},function(Dt,En){return!En.open}),Cn=Xt;function Qn(Dt){var En,Fn=Dt.prefixCls,Jn=Dt.checked,wn=Dt.halfChecked,Nn=Dt.disabled,ct=Dt.onClick,Pt=Dt.disableCheckbox,Re=Oe.useContext(he),Tt=Re.checkable,_t=typeof Tt!="boolean"?Tt:null;return Oe.createElement("span",{className:ke()("".concat(Fn),(En={},(0,ge.Z)(En,"".concat(Fn,"-checked"),Jn),(0,ge.Z)(En,"".concat(Fn,"-indeterminate"),!Jn&&wn),(0,ge.Z)(En,"".concat(Fn,"-disabled"),Nn||Pt),En)),onClick:ct},_t)}var gn="__cascader_fix_label__";function Gn(Dt){var En=Dt.prefixCls,Fn=Dt.multiple,Jn=Dt.options,wn=Dt.activeValue,Nn=Dt.prevValuePath,ct=Dt.onToggleOpen,Pt=Dt.onSelect,Re=Dt.onActive,Tt=Dt.checkedSet,_t=Dt.halfCheckedSet,ht=Dt.loadingKeys,Ye=Dt.isSelectable,Wt=Dt.searchValue,Ut="".concat(En,"-menu"),fn="".concat(En,"-menu-item"),Dn=Oe.useContext(he),at=Dn.fieldNames,ln=Dn.changeOnSelect,Hn=Dn.expandTrigger,ii=Dn.expandIcon,jt=Dn.loadingIcon,sn=Dn.dropdownMenuColumnStyle,It=Hn==="hover",on=Oe.useMemo(function(){return Jn.map(function(qt){var en,xn=qt.disabled,Pn=qt.disableCheckbox,An=qt[we],Wn=(en=qt[gn])!==null&&en!==void 0?en:qt[at.label],pi=qt[at.value],Yt=an(qt,at),bi=An?An.map(function(fi){return fi[at.value]}):[].concat((0,Ce.Z)(Nn),[pi]),Di=dt(bi),ki=ht.includes(Di),nn=Tt.has(Di),Xn=_t.has(Di);return{disabled:xn,label:Wn,value:pi,isLeaf:Yt,isLoading:ki,checked:nn,halfChecked:Xn,option:qt,disableCheckbox:Pn,fullPath:bi,fullPathKey:Di}})},[Jn,Tt,at,_t,ht,Nn]);return Oe.createElement("ul",{className:Ut,role:"menu"},on.map(function(qt){var en,xn=qt.disabled,Pn=qt.label,An=qt.value,Wn=qt.isLeaf,pi=qt.isLoading,Yt=qt.checked,bi=qt.halfChecked,Di=qt.option,ki=qt.fullPath,nn=qt.fullPathKey,Xn=qt.disableCheckbox,fi=function(){if(!(xn||Wt)){var Ki=(0,Ce.Z)(ki);It&&Wn&&Ki.pop(),Re(Ki)}},wi=function(){Ye(Di)&&Pt(ki,Wn)},gi;return typeof Di.title=="string"?gi=Di.title:typeof Pn=="string"&&(gi=Pn),Oe.createElement("li",{key:nn,className:ke()(fn,(en={},(0,ge.Z)(en,"".concat(fn,"-expand"),!Wn),(0,ge.Z)(en,"".concat(fn,"-active"),wn===An||wn===nn),(0,ge.Z)(en,"".concat(fn,"-disabled"),xn),(0,ge.Z)(en,"".concat(fn,"-loading"),pi),en)),style:sn,role:"menuitemcheckbox",title:gi,"aria-checked":Yt,"data-path-key":nn,onClick:function(){fi(),!Xn&&(!Fn||Wn)&&wi()},onDoubleClick:function(){ln&&ct(!1)},onMouseEnter:function(){It&&fi()},onMouseDown:function(Ki){Ki.preventDefault()}},Fn&&Oe.createElement(Qn,{prefixCls:"".concat(En,"-checkbox"),checked:Yt,halfChecked:bi,disabled:xn||Xn,disableCheckbox:Xn,onClick:function(Ki){Xn||(Ki.stopPropagation(),wi())}}),Oe.createElement("div",{className:"".concat(fn,"-content")},Pn),!pi&&ii&&!Wn&&Oe.createElement("div",{className:"".concat(fn,"-expand-icon")},ii),pi&&jt&&Oe.createElement("div",{className:"".concat(fn,"-loading-icon")},jt))}))}var bt=function(){var Dt=(0,Rt.lk)(),En=Dt.multiple,Fn=Dt.open,Jn=Oe.useContext(he),wn=Jn.values,Nn=Oe.useState([]),ct=(0,Lt.Z)(Nn,2),Pt=ct[0],Re=ct[1];return Oe.useEffect(function(){if(Fn&&!En){var Tt=wn[0];Re(Tt||[])}},[Fn]),[Pt,Re]},zn=ye(10228),ai=function(Dt,En,Fn,Jn,wn,Nn){var ct=(0,Rt.lk)(),Pt=ct.direction,Re=ct.searchValue,Tt=ct.toggleOpen,_t=ct.open,ht=Pt==="rtl",Ye=Oe.useMemo(function(){for(var sn=-1,It=En,on=[],qt=[],en=Jn.length,xn=Vt(En,Fn),Pn=function(Di){var ki=It.findIndex(function(nn,Xn){return(xn[Xn]?dt(xn[Xn]):nn[Fn.value])===Jn[Di]});if(ki===-1)return"break";sn=ki,on.push(sn),qt.push(Jn[Di]),It=It[sn][Fn.children]},An=0;An<en&&It;An+=1){var Wn=Pn(An);if(Wn==="break")break}for(var pi=En,Yt=0;Yt<on.length-1;Yt+=1)pi=pi[on[Yt]][Fn.children];return[qt,sn,pi,xn]},[Jn,Fn,En]),Wt=(0,Lt.Z)(Ye,4),Ut=Wt[0],fn=Wt[1],Dn=Wt[2],at=Wt[3],ln=function(It){wn(It)},Hn=function(It){var on=Dn.length,qt=fn;qt===-1&&It<0&&(qt=on);for(var en=0;en<on;en+=1){qt=(qt+It+on)%on;var xn=Dn[qt];if(xn&&!xn.disabled){var Pn=Ut.slice(0,-1).concat(at[qt]?dt(at[qt]):xn[Fn.value]);ln(Pn);return}}},ii=function(){if(Ut.length>1){var It=Ut.slice(0,-1);ln(It)}else Tt(!1)},jt=function(){var It,on=((It=Dn[fn])===null||It===void 0?void 0:It[Fn.children])||[],qt=on.find(function(xn){return!xn.disabled});if(qt){var en=[].concat((0,Ce.Z)(Ut),[qt[Fn.value]]);ln(en)}};Oe.useImperativeHandle(Dt,function(){return{onKeyDown:function(It){var on=It.which;switch(on){case zn.Z.UP:case zn.Z.DOWN:{var qt=0;on===zn.Z.UP?qt=-1:on===zn.Z.DOWN&&(qt=1),qt!==0&&Hn(qt);break}case zn.Z.LEFT:{if(Re)break;ht?jt():ii();break}case zn.Z.RIGHT:{if(Re)break;ht?ii():jt();break}case zn.Z.BACKSPACE:{Re||ii();break}case zn.Z.ENTER:{if(Ut.length){var en=Dn[fn],xn=(en==null?void 0:en[we])||[];xn.length?Nn(xn.map(function(Pn){return Pn[Fn.value]}),xn[xn.length-1]):Nn(Ut,Dn[fn])}break}case zn.Z.ESC:Tt(!1),_t&&It.stopPropagation()}},onKeyUp:function(){}}})},He=Oe.forwardRef(function(Dt,En){var Fn,Jn,wn,Nn,ct=(0,Rt.lk)(),Pt=ct.prefixCls,Re=ct.multiple,Tt=ct.searchValue,_t=ct.toggleOpen,ht=ct.notFoundContent,Ye=ct.direction,Wt=ct.open,Ut=Oe.useRef(),fn=Ye==="rtl",Dn=Oe.useContext(he),at=Dn.options,ln=Dn.values,Hn=Dn.halfValues,ii=Dn.fieldNames,jt=Dn.changeOnSelect,sn=Dn.onSelect,It=Dn.searchOptions,on=Dn.dropdownPrefixCls,qt=Dn.loadData,en=Dn.expandTrigger,xn=on||Pt,Pn=Oe.useState([]),An=(0,Lt.Z)(Pn,2),Wn=An[0],pi=An[1],Yt=function(_i){if(!(!qt||Tt)){var Go=yn(_i,at,ii),ko=Go.map(function(Zi){var yo=Zi.option;return yo}),Ii=ko[ko.length-1];if(Ii&&!an(Ii,ii)){var Ai=dt(_i);pi(function(Zi){return[].concat((0,Ce.Z)(Zi),[Ai])}),qt(ko)}}};Oe.useEffect(function(){Wn.length&&Wn.forEach(function(No){var _i=Zt(No),Go=yn(_i,at,ii,!0).map(function(Ii){var Ai=Ii.option;return Ai}),ko=Go[Go.length-1];(!ko||ko[ii.children]||an(ko,ii))&&pi(function(Ii){return Ii.filter(function(Ai){return Ai!==No})})})},[at,Wn,ii]);var bi=Oe.useMemo(function(){return new Set(Ze(ln))},[ln]),Di=Oe.useMemo(function(){return new Set(Ze(Hn))},[Hn]),ki=bt(),nn=(0,Lt.Z)(ki,2),Xn=nn[0],fi=nn[1],wi=function(_i){fi(_i),Yt(_i)},gi=function(_i){var Go=_i.disabled,ko=an(_i,ii);return!Go&&(ko||jt||Re)},Bi=function(_i,Go){var ko=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;sn(_i),!Re&&(Go||jt&&(en==="hover"||ko))&&_t(!1)},Ki=Oe.useMemo(function(){return Tt?It:at},[Tt,It,at]),ji=Oe.useMemo(function(){for(var No=[{options:Ki}],_i=Ki,Go=Vt(_i,ii),ko=function(){var yo=Xn[Ii],di=_i.find(function(Do,nr){return(Go[nr]?dt(Go[nr]):Do[ii.value])===yo}),Ke=di==null?void 0:di[ii.children];if(!(Ke!=null&&Ke.length))return"break";_i=Ke,No.push({options:Ke})},Ii=0;Ii<Xn.length;Ii+=1){var Ai=ko();if(Ai==="break")break}return No},[Ki,Xn,ii]),Pi=function(_i,Go){gi(Go)&&Bi(_i,an(Go,ii),!0)};ai(En,Ki,ii,Xn,wi,Pi),Oe.useEffect(function(){for(var No=0;No<Xn.length;No+=1){var _i,Go=Xn.slice(0,No+1),ko=dt(Go),Ii=(_i=Ut.current)===null||_i===void 0?void 0:_i.querySelector('li[data-path-key="'.concat(ko.replace(/\\{0,2}"/g,'\\"'),'"]'));Ii&&Gt(Ii)}},[Xn]);var Vi=!((Fn=ji[0])!==null&&Fn!==void 0&&(Jn=Fn.options)!==null&&Jn!==void 0&&Jn.length),Ln=[(wn={},(0,ge.Z)(wn,ii.value,"__EMPTY__"),(0,ge.Z)(wn,gn,ht),(0,ge.Z)(wn,"disabled",!0),wn)],So=(0,me.Z)((0,me.Z)({},Dt),{},{multiple:!Vi&&Re,onSelect:Bi,onActive:wi,onToggleOpen:_t,checkedSet:bi,halfCheckedSet:Di,loadingKeys:Wn,isSelectable:gi}),Mn=Vi?[{options:Ln}]:ji,ro=Mn.map(function(No,_i){var Go=Xn.slice(0,_i),ko=Xn[_i];return Oe.createElement(Gn,(0,Ot.Z)({key:_i},So,{searchValue:Tt,prefixCls:xn,options:No.options,prevValuePath:Go,activeValue:ko}))});return Oe.createElement(Cn,{open:Wt},Oe.createElement("div",{className:ke()("".concat(xn,"-menus"),(Nn={},(0,ge.Z)(Nn,"".concat(xn,"-menu-empty"),Vi),(0,ge.Z)(Nn,"".concat(xn,"-rtl"),fn),Nn)),ref:Ut},ro))}),Le=He;function xe(Dt){var En=Dt.onPopupVisibleChange,Fn=Dt.popupVisible,Jn=Dt.popupClassName,wn=Dt.popupPlacement;warning(!En,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Fn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Jn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(wn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ne(Dt,En){if(Dt){var Fn=function Jn(wn){for(var Nn=0;Nn<wn.length;Nn++){var ct=wn[Nn];if(ct[En==null?void 0:En.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(ct[En==null?void 0:En.children])&&Jn(ct[En==null?void 0:En.children]))return!0}};Fn(Dt)}}var De=null,ve=["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 $e(Dt){return Array.isArray(Dt)&&Array.isArray(Dt[0])}function mt(Dt){return Dt?$e(Dt)?Dt:(Dt.length===0?[]:[Dt]).map(function(En){return Array.isArray(En)?En:[En]}):[]}var et=Oe.forwardRef(function(Dt,En){var Fn=Dt.id,Jn=Dt.prefixCls,wn=Jn===void 0?"rc-cascader":Jn,Nn=Dt.fieldNames,ct=Dt.defaultValue,Pt=Dt.value,Re=Dt.changeOnSelect,Tt=Dt.onChange,_t=Dt.displayRender,ht=Dt.checkable,Ye=Dt.autoClearSearchValue,Wt=Ye===void 0?!0:Ye,Ut=Dt.searchValue,fn=Dt.onSearch,Dn=Dt.showSearch,at=Dt.expandTrigger,ln=Dt.options,Hn=Dt.dropdownPrefixCls,ii=Dt.loadData,jt=Dt.popupVisible,sn=Dt.open,It=Dt.popupClassName,on=Dt.dropdownClassName,qt=Dt.dropdownMenuColumnStyle,en=Dt.popupPlacement,xn=Dt.placement,Pn=Dt.onDropdownVisibleChange,An=Dt.onPopupVisibleChange,Wn=Dt.expandIcon,pi=Wn===void 0?">":Wn,Yt=Dt.loadingIcon,bi=Dt.children,Di=Dt.dropdownMatchSelectWidth,ki=Di===void 0?!1:Di,nn=Dt.showCheckedStrategy,Xn=nn===void 0?nt:nn,fi=(0,ot.Z)(Dt,ve),wi=(0,xt.ZP)(Fn),gi=!!ht,Bi=(0,te.Z)(ct,{value:Pt,postState:mt}),Ki=(0,Lt.Z)(Bi,2),ji=Ki[0],Pi=Ki[1],Vi=Oe.useMemo(function(){return yt(Nn)},[JSON.stringify(Nn)]),Ln=Oe.useMemo(function(){return ln||[]},[ln]),So=wt(Ln,Vi),Mn=Oe.useCallback(function(mr){var er=So();return mr.map(function(Lr){var Ar=er[Lr].nodes;return Ar.map(function(ra){return ra[Vi.value]})})},[So,Vi]),ro=(0,te.Z)("",{value:Ut,postState:function(er){return er||""}}),No=(0,Lt.Z)(ro,2),_i=No[0],Go=No[1],ko=function(er,Lr){Go(er),Lr.source!=="blur"&&fn&&fn(er)},Ii=Ft(Dn),Ai=(0,Lt.Z)(Ii,2),Zi=Ai[0],yo=Ai[1],di=Ie(_i,Ln,Vi,Hn||wn,yo,Re),Ke=tn(Ln,Vi),Do=Oe.useMemo(function(){var mr=Ke(ji),er=(0,Lt.Z)(mr,2),Lr=er[0],Ar=er[1];if(!gi||!ji.length)return[Lr,[],Ar];var ra=Ze(Lr),ua=So(),wa=(0,zt.S)(ra,!0,ua),vn=wa.checkedKeys,ia=wa.halfCheckedKeys;return[Mn(vn),Mn(ia),Ar]},[gi,ji,So,Mn,Ke]),nr=(0,Lt.Z)(Do,3),xo=nr[0],hr=nr[1],Qo=nr[2],$i=Oe.useMemo(function(){var mr=Ze(xo),er=hn(mr,So,Xn);return[].concat((0,Ce.Z)(Qo),(0,Ce.Z)(Mn(er)))},[xo,So,Mn,Qo,Xn]),ao=vt($i,Ln,Vi,gi,_t),jo=(0,Ae.Z)(function(mr){if(Pi(mr),Tt){var er=mt(mr),Lr=er.map(function(ua){return yn(ua,Ln,Vi).map(function(wa){return wa.option})}),Ar=gi?er:er[0],ra=gi?Lr:Lr[0];Tt(Ar,ra)}}),Lo=(0,Ae.Z)(function(mr){if((!gi||Wt)&&Go(""),!gi)jo(mr);else{var er=dt(mr),Lr=Ze(xo),Ar=Ze(hr),ra=Lr.includes(er),ua=Qo.some(function(Ro){return dt(Ro)===er}),wa=xo,vn=Qo;if(ua&&!ra)vn=Qo.filter(function(Ro){return dt(Ro)!==er});else{var ia=ra?Lr.filter(function(Ro){return Ro!==er}):[].concat((0,Ce.Z)(Lr),[er]),Us=So(),us;if(ra){var xr=(0,zt.S)(ia,{checked:!1,halfCheckedKeys:Ar},Us);us=xr.checkedKeys}else{var or=(0,zt.S)(ia,!0,Us);us=or.checkedKeys}var da=hn(us,So,Xn);wa=Mn(da)}jo([].concat((0,Ce.Z)(vn),(0,Ce.Z)(wa)))}}),dr=function(er,Lr){if(Lr.type==="clear"){jo([]);return}var Ar=Lr.values[0],ra=Ar.valueCells;Lo(ra)},Pr=sn!==void 0?sn:jt,Yi=on||It,Qi=xn||en,ti=function(er){Pn==null||Pn(er),An==null||An(er)},io=Oe.useMemo(function(){return{options:Ln,fieldNames:Vi,values:xo,halfValues:hr,changeOnSelect:Re,onSelect:Lo,checkable:ht,searchOptions:di,dropdownPrefixCls:Hn,loadData:ii,expandTrigger:at,expandIcon:pi,loadingIcon:Yt,dropdownMenuColumnStyle:qt}},[Ln,Vi,xo,hr,Re,Lo,ht,di,Hn,ii,at,pi,Yt,qt]),ir=!(_i?di:Ln).length,Ir=_i&&yo.matchInputWidth||ir?{}:{minWidth:"auto"};return Oe.createElement(he.Provider,{value:io},Oe.createElement(Rt.Ac,(0,Ot.Z)({},fi,{ref:En,id:wi,prefixCls:wn,autoClearSearchValue:Wt,dropdownMatchSelectWidth:ki,dropdownStyle:Ir,displayValues:ao,onDisplayValuesChange:dr,mode:gi?"multiple":void 0,searchValue:_i,onSearch:ko,showSearch:Zi,OptionList:Le,emptyOptions:ir,open:Pr,dropdownClassName:Yi,placement:Qi,onDropdownVisibleChange:ti,getRawInputElement:function(){return bi}})))});et.SHOW_PARENT=nt,et.SHOW_CHILD=Xe;var Ve=et,gt=Ve,ft=ye(2738),rt=ye(62892),Mt=ye(53487),pn=ye(19080),dn=ye(36355),Jt=ye(93891),Rn=ye(1684),Tn=ye(19716),Et=ye(32441),cn=ye(14154),On=ye(58582),Ct=ye(84443),_n=ye(66339),ui=ye(33234),Ci=ye(98447),ci=ye(17313),Hi=ye(74207),qi=ye(83116);const Xi=Dt=>{const{prefixCls:En,componentCls:Fn,antCls:Jn}=Dt,wn=`${Fn}-menu-item`,Nn=`
|
|
|
&${wn}-expand ${wn}-expand-icon,
|
|
|
${wn}-loading-icon
|
|
|
`;return[{[Fn]:{width:Dt.controlWidth}},{[`${Fn}-dropdown`]:[(0,Ci.C2)(`${En}-checkbox`,Dt),{[`&${Jn}-select-dropdown`]:{padding:0}},{[Fn]:{"&-checkbox":{top:0,marginInlineEnd:Dt.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Fn}-menu-empty`]:{[`${Fn}-menu`]:{width:"100%",height:"auto",[wn]:{color:Dt.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Dt.controlItemWidth,height:Dt.dropdownHeight,margin:0,padding:Dt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Dt.lineWidth}px ${Dt.lineType} ${Dt.colorSplit}`},"&-item":Object.assign(Object.assign({},ci.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Dt.optionPadding,lineHeight:Dt.lineHeight,cursor:"pointer",transition:`all ${Dt.motionDurationMid}`,borderRadius:Dt.borderRadiusSM,"&:hover":{background:Dt.controlItemBgHover},"&-disabled":{color:Dt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Nn]:{color:Dt.colorTextDisabled}},[`&-active:not(${wn}-disabled)`]:{"&, &:hover":{fontWeight:Dt.optionSelectedFontWeight,backgroundColor:Dt.optionSelectedBg}},"&-content":{flex:"auto"},[Nn]:{marginInlineStart:Dt.paddingXXS,color:Dt.colorTextDescription,fontSize:Dt.fontSizeIcon},"&-keyword":{color:Dt.colorHighlight}})}}}]},{[`${Fn}-dropdown-rtl`]:{direction:"rtl"}},(0,Hi.c)(Dt)]};var eo=(0,qi.Z)("Cascader",Dt=>[Xi(Dt)],Dt=>{const En=Math.round((Dt.controlHeight-Dt.fontSize*Dt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Dt.controlItemBgActive,optionSelectedFontWeight:Dt.fontWeightStrong,optionPadding:`${En}px ${Dt.paddingSM}px`,menuPadding:Dt.paddingXXS}}),Oo=function(Dt,En){var Fn={};for(var Jn in Dt)Object.prototype.hasOwnProperty.call(Dt,Jn)&&En.indexOf(Jn)<0&&(Fn[Jn]=Dt[Jn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wn=0,Jn=Object.getOwnPropertySymbols(Dt);wn<Jn.length;wn++)En.indexOf(Jn[wn])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Jn[wn])&&(Fn[Jn[wn]]=Dt[Jn[wn]]);return Fn};const{SHOW_CHILD:vo,SHOW_PARENT:Ri}=gt;function Co(Dt,En,Fn){const Jn=Dt.toLowerCase().split(En).reduce((ct,Pt,Re)=>Re===0?[Pt]:[].concat((0,Ce.Z)(ct),[En,Pt]),[]),wn=[];let Nn=0;return Jn.forEach((ct,Pt)=>{const Re=Nn+ct.length;let Tt=Dt.slice(Nn,Re);Nn=Re,Pt%2===1&&(Tt=Oe.createElement("span",{className:`${Fn}-menu-item-keyword`,key:`separator-${Pt}`},Tt)),wn.push(Tt)}),wn}const Bn=(Dt,En,Fn,Jn)=>{const wn=[],Nn=Dt.toLowerCase();return En.forEach((ct,Pt)=>{Pt!==0&&wn.push(" / ");let Re=ct[Jn.label];const Tt=typeof Re;(Tt==="string"||Tt==="number")&&(Re=Co(String(Re),Nn,Fn)),wn.push(Re)}),wn},be=Oe.forwardRef((Dt,En)=>{const{prefixCls:Fn,size:Jn,disabled:wn,className:Nn,rootClassName:ct,multiple:Pt,bordered:Re=!0,transitionName:Tt,choiceTransitionName:_t="",popupClassName:ht,dropdownClassName:Ye,expandIcon:Wt,placement:Ut,showSearch:fn,allowClear:Dn=!0,notFoundContent:at,direction:ln,getPopupContainer:Hn,status:ii,showArrow:jt,builtinPlacements:sn,style:It}=Dt,on=Oo(Dt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),qt=(0,ft.Z)(on,["suffixIcon"]),{getPopupContainer:en,getPrefixCls:xn,renderEmpty:Pn,direction:An,popupOverflow:Wn,cascader:pi}=Oe.useContext(dn.E_),Yt=ln||An,bi=Yt==="rtl",{status:Di,hasFeedback:ki,isFormItemInput:nn,feedbackIcon:Xn}=Oe.useContext(Et.aM),fi=(0,pn.F)(Di,ii),wi=at||(Pn==null?void 0:Pn("Cascader"))||Oe.createElement(Jt.Z,{componentName:"Cascader"}),gi=xn(),Bi=xn("select",Fn),Ki=xn("cascader",Fn),[ji,Pi]=(0,cn.Z)(Bi),[Vi]=eo(Ki),{compactSize:Ln,compactItemClassnames:So}=(0,ui.ri)(Bi,ln),Mn=ke()(ht||Ye,`${Ki}-dropdown`,{[`${Ki}-dropdown-rtl`]:Yt==="rtl"},ct,Pi),ro=Oe.useMemo(()=>{if(!fn)return fn;let Qo={render:Bn};return typeof fn=="object"&&(Qo=Object.assign(Object.assign({},Qo),fn)),Qo},[fn]),No=(0,Tn.Z)(Qo=>{var $i;return($i=Jn!=null?Jn:Ln)!==null&&$i!==void 0?$i:Qo}),_i=Oe.useContext(Rn.Z),Go=wn!=null?wn:_i;let ko=Wt;Wt||(ko=bi?Oe.createElement(tt.Z,null):Oe.createElement(Ue.Z,null));const Ii=Oe.createElement("span",{className:`${Bi}-menu-item-loading-icon`},Oe.createElement(At.Z,{spin:!0})),Ai=Oe.useMemo(()=>Pt?Oe.createElement("span",{className:`${Ki}-checkbox-inner`}):!1,[Pt]),Zi=(0,Ct.Z)(Dt.suffixIcon,jt),{suffixIcon:yo,removeIcon:di,clearIcon:Ke}=(0,_n.Z)(Object.assign(Object.assign({},Dt),{hasFeedback:ki,feedbackIcon:Xn,showSuffixIcon:Zi,multiple:Pt,prefixCls:Bi,componentName:"Cascader"})),Do=Oe.useMemo(()=>Ut!==void 0?Ut:bi?"bottomRight":"bottomLeft",[Ut,bi]),nr=(0,On.Z)(sn,Wn),xo=Dn===!0?{clearIcon:Ke}:Dn,hr=Oe.createElement(gt,Object.assign({prefixCls:Bi,className:ke()(!Fn&&Ki,{[`${Bi}-lg`]:No==="large",[`${Bi}-sm`]:No==="small",[`${Bi}-rtl`]:bi,[`${Bi}-borderless`]:!Re,[`${Bi}-in-form-item`]:nn},(0,pn.Z)(Bi,fi,ki),So,pi==null?void 0:pi.className,Nn,ct,Pi),disabled:Go,style:Object.assign(Object.assign({},pi==null?void 0:pi.style),It)},qt,{builtinPlacements:nr,direction:Yt,placement:Do,notFoundContent:wi,allowClear:xo,showSearch:ro,expandIcon:ko,suffixIcon:yo,removeIcon:di,loadingIcon:Ii,checkable:Ai,dropdownClassName:Mn,dropdownPrefixCls:Fn||Ki,choiceTransitionName:(0,rt.m)(gi,"",_t),transitionName:(0,rt.m)(gi,"slide-up",Tt),getPopupContainer:Hn||en,ref:En}));return Vi(ji(hr))}),Mi=(0,Mt.Z)(be);be.SHOW_PARENT=Ri,be.SHOW_CHILD=vo,be._InternalPanelDoNotUseOrYouWillBeFired=Mi;var Ei=be},24905:function(Kn,kn,ye){"use strict";ye.d(kn,{default:function(){return Ie}});var Ce=ye(92310),Oe=ye.n(Ce),tt=ye(5630),At=ye(59301),Ue=ye(36355),Je=ye(1684),ke=ye(32441),Lt=At.createContext(null),ot=ye(98447),Rt=ye(14088),xt=ye(4572),zt=function(We,nt){var Xe={};for(var dt in We)Object.prototype.hasOwnProperty.call(We,dt)&&nt.indexOf(dt)<0&&(Xe[dt]=We[dt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,dt=Object.getOwnPropertySymbols(We);Ze<dt.length;Ze++)nt.indexOf(dt[Ze])<0&&Object.prototype.propertyIsEnumerable.call(We,dt[Ze])&&(Xe[dt[Ze]]=We[dt[Ze]]);return Xe};const Ae=(We,nt)=>{var Xe;const{prefixCls:dt,className:Ze,rootClassName:Zt,children:yt,indeterminate:an=!1,style:Gt,onMouseEnter:Vt,onMouseLeave:hn,skipGroup:yn=!1,disabled:vt}=We,je=zt(We,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:wt,direction:tn,checkbox:bn}=At.useContext(Ue.E_),Ft=At.useContext(Lt),{isFormItemInput:Xt}=At.useContext(ke.aM),Cn=At.useContext(Je.Z),Qn=(Xe=(Ft==null?void 0:Ft.disabled)||vt)!==null&&Xe!==void 0?Xe:Cn,gn=At.useRef(je.value);At.useEffect(()=>{Ft==null||Ft.registerValue(je.value)},[]),At.useEffect(()=>{if(!yn)return je.value!==gn.current&&(Ft==null||Ft.cancelValue(gn.current),Ft==null||Ft.registerValue(je.value),gn.current=je.value),()=>Ft==null?void 0:Ft.cancelValue(je.value)},[je.value]);const Gn=wt("checkbox",dt),[bt,zn]=(0,ot.ZP)(Gn),ai=Object.assign({},je);Ft&&!yn&&(ai.onChange=function(){je.onChange&&je.onChange.apply(je,arguments),Ft.toggleOption&&Ft.toggleOption({label:yt,value:je.value})},ai.name=Ft.name,ai.checked=Ft.value.includes(je.value));const He=Oe()(`${Gn}-wrapper`,{[`${Gn}-rtl`]:tn==="rtl",[`${Gn}-wrapper-checked`]:ai.checked,[`${Gn}-wrapper-disabled`]:Qn,[`${Gn}-wrapper-in-form-item`]:Xt},bn==null?void 0:bn.className,Ze,Zt,zn),Le=Oe()({[`${Gn}-indeterminate`]:an},xt.A,zn),xe=an?"mixed":void 0;return bt(At.createElement(Rt.Z,{component:"Checkbox",disabled:Qn},At.createElement("label",{className:He,style:Object.assign(Object.assign({},bn==null?void 0:bn.style),Gt),onMouseEnter:Vt,onMouseLeave:hn},At.createElement(tt.Z,Object.assign({"aria-checked":xe},ai,{prefixCls:Gn,className:Le,disabled:Qn,ref:nt})),yt!==void 0&&At.createElement("span",null,yt))))};var ne=At.forwardRef(Ae),he=ye(19127),se=ye(2738),ge=function(We,nt){var Xe={};for(var dt in We)Object.prototype.hasOwnProperty.call(We,dt)&&nt.indexOf(dt)<0&&(Xe[dt]=We[dt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,dt=Object.getOwnPropertySymbols(We);Ze<dt.length;Ze++)nt.indexOf(dt[Ze])<0&&Object.prototype.propertyIsEnumerable.call(We,dt[Ze])&&(Xe[dt[Ze]]=We[dt[Ze]]);return Xe};const me=(We,nt)=>{const{defaultValue:Xe,children:dt,options:Ze=[],prefixCls:Zt,className:yt,rootClassName:an,style:Gt,onChange:Vt}=We,hn=ge(We,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:yn,direction:vt}=At.useContext(Ue.E_),[je,wt]=At.useState(hn.value||Xe||[]),[tn,bn]=At.useState([]);At.useEffect(()=>{"value"in hn&&wt(hn.value||[])},[hn.value]);const Ft=At.useMemo(()=>Ze.map(Ne=>typeof Ne=="string"||typeof Ne=="number"?{label:Ne,value:Ne}:Ne),[Ze]),Xt=Ne=>{bn(De=>De.filter(ve=>ve!==Ne))},Cn=Ne=>{bn(De=>[].concat((0,he.Z)(De),[Ne]))},Qn=Ne=>{const De=je.indexOf(Ne.value),ve=(0,he.Z)(je);De===-1?ve.push(Ne.value):ve.splice(De,1),"value"in hn||wt(ve),Vt==null||Vt(ve.filter($e=>tn.includes($e)).sort(($e,mt)=>{const et=Ft.findIndex(gt=>gt.value===$e),Ve=Ft.findIndex(gt=>gt.value===mt);return et-Ve}))},gn=yn("checkbox",Zt),Gn=`${gn}-group`,[bt,zn]=(0,ot.ZP)(gn),ai=(0,se.Z)(hn,["value","disabled"]),He=Ze.length?Ft.map(Ne=>At.createElement(ne,{prefixCls:gn,key:Ne.value.toString(),disabled:"disabled"in Ne?Ne.disabled:hn.disabled,value:Ne.value,checked:je.includes(Ne.value),onChange:Ne.onChange,className:`${Gn}-item`,style:Ne.style,title:Ne.title},Ne.label)):dt,Le={toggleOption:Qn,value:je,disabled:hn.disabled,name:hn.name,registerValue:Cn,cancelValue:Xt},xe=Oe()(Gn,{[`${Gn}-rtl`]:vt==="rtl"},yt,an,zn);return bt(At.createElement("div",Object.assign({className:xe,style:Gt},ai,{ref:nt}),At.createElement(Lt.Provider,{value:Le},He)))},we=At.forwardRef(me);var Fe=At.memo(we);const Be=ne;Be.Group=Fe,Be.__ANT_CHECKBOX=!0;var Ie=Be},98447:function(Kn,kn,ye){"use strict";ye.d(kn,{C2:function(){return Ue}});var Ce=ye(17313),Oe=ye(37613),tt=ye(83116);const At=Je=>{const{checkboxCls:ke}=Je,Ot=`${ke}-wrapper`;return[{[`${ke}-group`]:Object.assign(Object.assign({},(0,Ce.Wf)(Je)),{display:"inline-flex",flexWrap:"wrap",columnGap:Je.marginXS,[`> ${Je.antCls}-row`]:{flex:1}}),[Ot]:Object.assign(Object.assign({},(0,Ce.Wf)(Je)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ot}`]:{marginInlineStart:0},[`&${Ot}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ke]:Object.assign(Object.assign({},(0,Ce.Wf)(Je)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Je.borderRadiusSM,alignSelf:"center",[`${ke}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ke}-inner`]:Object.assign({},(0,Ce.oN)(Je))},[`${ke}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Je.checkboxSize,height:Je.checkboxSize,direction:"ltr",backgroundColor:Je.colorBgContainer,border:`${Je.lineWidth}px ${Je.lineType} ${Je.colorBorder}`,borderRadius:Je.borderRadiusSM,borderCollapse:"separate",transition:`all ${Je.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Je.checkboxSize/14*5,height:Je.checkboxSize/14*8,border:`${Je.lineWidthBold}px solid ${Je.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Je.motionDurationFast} ${Je.motionEaseInBack}, opacity ${Je.motionDurationFast}`}},"& + span":{paddingInlineStart:Je.paddingXS,paddingInlineEnd:Je.paddingXS}})},{[`
|
|
|
${Ot}:not(${Ot}-disabled),
|
|
|
${ke}:not(${ke}-disabled)
|
|
|
`]:{[`&:hover ${ke}-inner`]:{borderColor:Je.colorPrimary}},[`${Ot}:not(${Ot}-disabled)`]:{[`&:hover ${ke}-checked:not(${ke}-disabled) ${ke}-inner`]:{backgroundColor:Je.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ke}-checked:not(${ke}-disabled):after`]:{borderColor:Je.colorPrimaryHover}}},{[`${ke}-checked`]:{[`${ke}-inner`]:{backgroundColor:Je.colorPrimary,borderColor:Je.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Je.motionDurationMid} ${Je.motionEaseOutBack} ${Je.motionDurationFast}`}}},[`
|
|
|
${Ot}-checked:not(${Ot}-disabled),
|
|
|
${ke}-checked:not(${ke}-disabled)
|
|
|
`]:{[`&:hover ${ke}-inner`]:{backgroundColor:Je.colorPrimaryHover,borderColor:"transparent"}}},{[ke]:{"&-indeterminate":{[`${ke}-inner`]:{backgroundColor:Je.colorBgContainer,borderColor:Je.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Je.fontSizeLG/2,height:Je.fontSizeLG/2,backgroundColor:Je.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ot}-disabled`]:{cursor:"not-allowed"},[`${ke}-disabled`]:{[`&, ${ke}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ke}-inner`]:{background:Je.colorBgContainerDisabled,borderColor:Je.colorBorder,"&:after":{borderColor:Je.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Je.colorTextDisabled},[`&${ke}-indeterminate ${ke}-inner::after`]:{background:Je.colorTextDisabled}}}]};function Ue(Je,ke){const Ot=(0,Oe.TS)(ke,{checkboxCls:`.${Je}`,checkboxSize:ke.controlInteractiveSize});return[At(Ot)]}kn.ZP=(0,tt.Z)("Checkbox",(Je,ke)=>{let{prefixCls:Ot}=ke;return[Ue(Ot,Je)]})},93891:function(Kn,kn,ye){"use strict";var Ce=ye(59301),Oe=ye(36355),tt=ye(64165);const At=Ue=>{const{componentName:Je}=Ue,{getPrefixCls:ke}=(0,Ce.useContext)(Oe.E_),Ot=ke("empty");switch(Je){case"Table":case"List":return Ce.createElement(tt.Z,{image:tt.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ce.createElement(tt.Z,{image:tt.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ot}-small`});default:return Ce.createElement(tt.Z,null)}};kn.Z=At},91857:function(Kn,kn,ye){"use strict";var Ce=ye(59301),Oe=ye(38819),tt=ye(92310),At=ye.n(tt),Ue=ye(31561),Je=ye(70425),ke=ye(18929),Ot=ye(2738),Lt=ye(79676),ot=ye(53487),Rt=ye(92343),xt=ye(36355),zt=ye(20834),Ae=ye(40875),te=ye(88088),ne=ye(47211);const he=null,se=Fe=>{const{menu:Be,arrow:Ie,prefixCls:We,children:nt,trigger:Xe,disabled:dt,dropdownRender:Ze,getPopupContainer:Zt,overlayClassName:yt,rootClassName:an,open:Gt,onOpenChange:Vt,visible:hn,onVisibleChange:yn,mouseEnterDelay:vt=.15,mouseLeaveDelay:je=.1,autoAdjustOverflow:wt=!0,placement:tn="",overlay:bn,transitionName:Ft}=Fe,{getPopupContainer:Xt,getPrefixCls:Cn,direction:Qn}=Ce.useContext(xt.E_),gn=Ce.useMemo(()=>{const rt=Cn();return Ft!==void 0?Ft:tn.includes("top")?`${rt}-slide-down`:`${rt}-slide-up`},[Cn,tn,Ft]),Gn=Ce.useMemo(()=>tn?tn.includes("Center")?tn.slice(0,tn.indexOf("Center")):tn:Qn==="rtl"?"bottomRight":"bottomLeft",[tn,Qn]),bt=Cn("dropdown",We),[zn,ai]=(0,ne.Z)(bt),[,He]=(0,te.Z)(),Le=Ce.Children.only(nt),xe=(0,Rt.Tm)(Le,{className:At()(`${bt}-trigger`,{[`${bt}-rtl`]:Qn==="rtl"},Le.props.className),disabled:dt}),Ne=dt?[]:Xe;let De;Ne&&Ne.includes("contextMenu")&&(De=!0);const[ve,$e]=(0,ke.Z)(!1,{value:Gt!=null?Gt:hn}),mt=(0,Je.useEvent)(rt=>{Vt==null||Vt(rt),yn==null||yn(rt),$e(rt)}),et=At()(yt,an,ai,{[`${bt}-rtl`]:Qn==="rtl"}),Ve=(0,Lt.Z)({arrowPointAtCenter:typeof Ie=="object"&&Ie.pointAtCenter,autoAdjustOverflow:wt,offset:He.marginXXS,arrowWidth:Ie?He.sizePopupArrow:0,borderRadius:He.borderRadius}),gt=Ce.useCallback(()=>{$e(!1)},[]),ft=()=>{let rt;return Be!=null&&Be.items?rt=Ce.createElement(zt.default,Object.assign({},Be)):typeof bn=="function"?rt=bn():rt=bn,Ze&&(rt=Ze(rt)),rt=Ce.Children.only(typeof rt=="string"?Ce.createElement("span",null,rt):rt),Ce.createElement(Ae.J,{prefixCls:`${bt}-menu`,expandIcon:Ce.createElement("span",{className:`${bt}-menu-submenu-arrow`},Ce.createElement(Oe.Z,{className:`${bt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:gt,validator:Mt=>{let{mode:pn}=Mt}},rt)};return zn(Ce.createElement(Ue.Z,Object.assign({alignPoint:De},(0,Ot.Z)(Fe,["rootClassName"]),{mouseEnterDelay:vt,mouseLeaveDelay:je,visible:ve,builtinPlacements:Ve,arrow:!!Ie,overlayClassName:et,prefixCls:bt,getPopupContainer:Zt||Xt,transitionName:gn,trigger:Ne,overlay:ft,placement:Gn,onVisibleChange:mt}),xe))};function ge(Fe){return Object.assign(Object.assign({},Fe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const me=(0,ot.Z)(se,"dropdown",Fe=>Fe,ge),we=Fe=>Ce.createElement(me,Object.assign({},Fe),Ce.createElement("span",null));se._InternalPanelDoNotUseOrYouWillBeFired=we,kn.Z=se},38854:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return te}});var Ce=ye(91857),Oe=ye(92310),tt=ye.n(Oe),At=ye(59301),Ue=ye(18785),Je=ye(3113),ke=ye(36355),Ot=ye(81327),Lt=ye(33234),ot=ye(47211),Rt=function(ne,he){var se={};for(var ge in ne)Object.prototype.hasOwnProperty.call(ne,ge)&&he.indexOf(ge)<0&&(se[ge]=ne[ge]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(ne);me<ge.length;me++)he.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(ne,ge[me])&&(se[ge[me]]=ne[ge[me]]);return se};const xt=ne=>{const{getPopupContainer:he,getPrefixCls:se,direction:ge}=At.useContext(ke.E_),{prefixCls:me,type:we="default",danger:Fe,disabled:Be,loading:Ie,onClick:We,htmlType:nt,children:Xe,className:dt,menu:Ze,arrow:Zt,autoFocus:yt,overlay:an,trigger:Gt,align:Vt,open:hn,onOpenChange:yn,placement:vt,getPopupContainer:je,href:wt,icon:tn=At.createElement(Ue.Z,null),title:bn,buttonsRender:Ft=ft=>ft,mouseEnterDelay:Xt,mouseLeaveDelay:Cn,overlayClassName:Qn,overlayStyle:gn,destroyPopupOnHide:Gn,dropdownRender:bt}=ne,zn=Rt(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"]),ai=se("dropdown",me),He=`${ai}-button`,[Le,xe]=(0,ot.Z)(ai),Ne={menu:Ze,arrow:Zt,autoFocus:yt,align:Vt,disabled:Be,trigger:Be?[]:Gt,onOpenChange:yn,getPopupContainer:je||he,mouseEnterDelay:Xt,mouseLeaveDelay:Cn,overlayClassName:Qn,overlayStyle:gn,destroyPopupOnHide:Gn,dropdownRender:bt},{compactSize:De,compactItemClassnames:ve}=(0,Lt.ri)(ai,ge),$e=tt()(He,ve,dt,xe);"overlay"in ne&&(Ne.overlay=an),"open"in ne&&(Ne.open=hn),"placement"in ne?Ne.placement=vt:Ne.placement=ge==="rtl"?"bottomLeft":"bottomRight";const mt=At.createElement(Je.ZP,{type:we,danger:Fe,disabled:Be,loading:Ie,onClick:We,htmlType:nt,href:wt,title:bn},Xe),et=At.createElement(Je.ZP,{type:we,danger:Fe,icon:tn}),[Ve,gt]=Ft([mt,et]);return Le(At.createElement(Ot.Z.Compact,Object.assign({className:$e,size:De,block:!0},zn),Ve,At.createElement(Ce.Z,Object.assign({},Ne),gt)))};xt.__ANT_BUTTON=!0;var zt=xt;const Ae=Ce.Z;Ae.Button=zt;var te=Ae},47211:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Rt}});var Ce=ye(17313),Oe=ye(13826),tt=ye(92899),At=ye(29878),Ue=ye(19447),Je=ye(83116),ke=ye(37613),Lt=xt=>{const{componentCls:zt,menuCls:Ae,colorError:te,colorTextLightSolid:ne}=xt,he=`${Ae}-item`;return{[`${zt}, ${zt}-menu-submenu`]:{[`${Ae} ${he}`]:{[`&${he}-danger:not(${he}-disabled)`]:{color:te,"&:hover":{color:ne,backgroundColor:te}}}}}};const ot=xt=>{const{componentCls:zt,menuCls:Ae,zIndexPopup:te,dropdownArrowDistance:ne,sizePopupArrow:he,antCls:se,iconCls:ge,motionDurationMid:me,dropdownPaddingVertical:we,fontSize:Fe,dropdownEdgeChildPadding:Be,colorTextDisabled:Ie,fontSizeIcon:We,controlPaddingHorizontal:nt,colorBgElevated:Xe}=xt;return[{[zt]:Object.assign(Object.assign({},(0,Ce.Wf)(xt)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:te,display:"block","&::before":{position:"absolute",insetBlock:-ne+he/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${se}-btn`]:{[`& > ${ge}-down, & > ${se}-btn-icon > ${ge}-down`]:{fontSize:We}},[`${zt}-wrap`]:{position:"relative",[`${se}-btn > ${ge}-down`]:{fontSize:We},[`${ge}-down::before`]:{transition:`transform ${me}`}},[`${zt}-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${zt}-placement-bottomLeft,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${zt}-placement-bottomLeft,
|
|
|
&${se}-slide-down-enter${se}-slide-down-enter-active${zt}-placement-bottom,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${zt}-placement-bottom,
|
|
|
&${se}-slide-down-enter${se}-slide-down-enter-active${zt}-placement-bottomRight,
|
|
|
&${se}-slide-down-appear${se}-slide-down-appear-active${zt}-placement-bottomRight`]:{animationName:Oe.fJ},[`&${se}-slide-up-enter${se}-slide-up-enter-active${zt}-placement-topLeft,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${zt}-placement-topLeft,
|
|
|
&${se}-slide-up-enter${se}-slide-up-enter-active${zt}-placement-top,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${zt}-placement-top,
|
|
|
&${se}-slide-up-enter${se}-slide-up-enter-active${zt}-placement-topRight,
|
|
|
&${se}-slide-up-appear${se}-slide-up-appear-active${zt}-placement-topRight`]:{animationName:Oe.Qt},[`&${se}-slide-down-leave${se}-slide-down-leave-active${zt}-placement-bottomLeft,
|
|
|
&${se}-slide-down-leave${se}-slide-down-leave-active${zt}-placement-bottom,
|
|
|
&${se}-slide-down-leave${se}-slide-down-leave-active${zt}-placement-bottomRight`]:{animationName:Oe.Uw},[`&${se}-slide-up-leave${se}-slide-up-leave-active${zt}-placement-topLeft,
|
|
|
&${se}-slide-up-leave${se}-slide-up-leave-active${zt}-placement-top,
|
|
|
&${se}-slide-up-leave${se}-slide-up-leave-active${zt}-placement-topRight`]:{animationName:Oe.ly}})},(0,Ue.ZP)(xt,{colorBg:Xe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${zt} ${Ae}`]:{position:"relative",margin:0},[`${Ae}-submenu-popup`]:{position:"absolute",zIndex:te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${zt}, ${zt}-menu-submenu`]:{[Ae]:Object.assign(Object.assign({padding:Be,listStyleType:"none",backgroundColor:Xe,backgroundClip:"padding-box",borderRadius:xt.borderRadiusLG,outline:"none",boxShadow:xt.boxShadowSecondary},(0,Ce.Qy)(xt)),{[`${Ae}-item-group-title`]:{padding:`${we}px ${nt}px`,color:xt.colorTextDescription,transition:`all ${me}`},[`${Ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ae}-item-icon`]:{minWidth:Fe,marginInlineEnd:xt.marginXS,fontSize:xt.fontSizeSM},[`${Ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${me}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ae}-item, ${Ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${we}px ${nt}px`,color:xt.colorText,fontWeight:"normal",fontSize:Fe,lineHeight:xt.lineHeight,cursor:"pointer",transition:`all ${me}`,borderRadius:xt.borderRadiusSM,"&:hover, &-active":{backgroundColor:xt.controlItemBgHover}},(0,Ce.Qy)(xt)),{"&-selected":{color:xt.colorPrimary,backgroundColor:xt.controlItemBgActive,"&:hover, &-active":{backgroundColor:xt.controlItemBgActiveHover}},"&-disabled":{color:Ie,cursor:"not-allowed","&:hover":{color:Ie,backgroundColor:Xe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${xt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:xt.colorSplit},[`${zt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:xt.paddingXS,[`${zt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:xt.colorTextDescription,fontSize:We,fontStyle:"normal"}}}),[`${Ae}-item-group-list`]:{margin:`0 ${xt.marginXS}px`,padding:0,listStyle:"none"},[`${Ae}-submenu-title`]:{paddingInlineEnd:nt+xt.fontSizeSM},[`${Ae}-submenu-vertical`]:{position:"relative"},[`${Ae}-submenu${Ae}-submenu-disabled ${zt}-menu-submenu-title`]:{[`&, ${zt}-menu-submenu-arrow-icon`]:{color:Ie,backgroundColor:Xe,cursor:"not-allowed"}},[`${Ae}-submenu-selected ${zt}-menu-submenu-title`]:{color:xt.colorPrimary}})}},[(0,Oe.oN)(xt,"slide-up"),(0,Oe.oN)(xt,"slide-down"),(0,tt.Fm)(xt,"move-up"),(0,tt.Fm)(xt,"move-down"),(0,At._y)(xt,"zoom-big")]]};var Rt=(0,Je.Z)("Dropdown",(xt,zt)=>{let{rootPrefixCls:Ae}=zt;const{marginXXS:te,sizePopupArrow:ne,controlHeight:he,fontSize:se,lineHeight:ge,paddingXXS:me,componentCls:we,borderRadiusLG:Fe}=xt,Be=(he-se*ge)/2,{dropdownArrowOffset:Ie}=(0,Ue.fS)({contentRadius:Fe}),We=(0,ke.TS)(xt,{menuCls:`${we}-menu`,rootPrefixCls:Ae,dropdownArrowDistance:ne/2+te,dropdownArrowOffset:Ie,dropdownPaddingVertical:Be,dropdownEdgeChildPadding:me});return[ot(We),Lt(We)]},xt=>({zIndexPopup:xt.zIndexPopupBase+50}))},64165:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return me}});var Ce=ye(92310),Oe=ye.n(Ce),tt=ye(59301),At=ye(36355),Ue=ye(9763),Je=ye(64993),ke=ye(88088),Lt=()=>{const[,we]=(0,ke.Z)(),Be=new Je.C(we.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return tt.createElement("svg",{style:Be,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("g",{fill:"none",fillRule:"evenodd"},tt.createElement("g",{transform:"translate(24 31.67)"},tt.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),tt.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"}),tt.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)"}),tt.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"}),tt.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"})),tt.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"}),tt.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},tt.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),tt.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Rt=()=>{const[,we]=(0,ke.Z)(),{colorFill:Fe,colorFillTertiary:Be,colorFillQuaternary:Ie,colorBgContainer:We}=we,{borderColor:nt,shadowColor:Xe,contentColor:dt}=(0,tt.useMemo)(()=>({borderColor:new Je.C(Fe).onBackground(We).toHexShortString(),shadowColor:new Je.C(Be).onBackground(We).toHexShortString(),contentColor:new Je.C(Ie).onBackground(We).toHexShortString()}),[Fe,Be,Ie,We]);return tt.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},tt.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},tt.createElement("ellipse",{fill:Xe,cx:"32",cy:"33",rx:"32",ry:"7"}),tt.createElement("g",{fillRule:"nonzero",stroke:nt},tt.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"}),tt.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:dt}))))},xt=ye(83116),zt=ye(37613);const Ae=we=>{const{componentCls:Fe,margin:Be,marginXS:Ie,marginXL:We,fontSize:nt,lineHeight:Xe}=we;return{[Fe]:{marginInline:Ie,fontSize:nt,lineHeight:Xe,textAlign:"center",[`${Fe}-image`]:{height:we.emptyImgHeight,marginBottom:Ie,opacity:we.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Fe}-description`]:{color:we.colorText},[`${Fe}-footer`]:{marginTop:Be},"&-normal":{marginBlock:We,color:we.colorTextDisabled,[`${Fe}-description`]:{color:we.colorTextDisabled},[`${Fe}-image`]:{height:we.emptyImgHeightMD}},"&-small":{marginBlock:Ie,color:we.colorTextDisabled,[`${Fe}-image`]:{height:we.emptyImgHeightSM}}}}};var te=(0,xt.Z)("Empty",we=>{const{componentCls:Fe,controlHeightLG:Be}=we,Ie=(0,zt.TS)(we,{emptyImgCls:`${Fe}-img`,emptyImgHeight:Be*2.5,emptyImgHeightMD:Be,emptyImgHeightSM:Be*.875});return[Ae(Ie)]}),ne=function(we,Fe){var Be={};for(var Ie in we)Object.prototype.hasOwnProperty.call(we,Ie)&&Fe.indexOf(Ie)<0&&(Be[Ie]=we[Ie]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ie=Object.getOwnPropertySymbols(we);We<Ie.length;We++)Fe.indexOf(Ie[We])<0&&Object.prototype.propertyIsEnumerable.call(we,Ie[We])&&(Be[Ie[We]]=we[Ie[We]]);return Be};const he=tt.createElement(Lt,null),se=tt.createElement(Rt,null),ge=we=>{var{className:Fe,rootClassName:Be,prefixCls:Ie,image:We=he,description:nt,children:Xe,imageStyle:dt,style:Ze}=we,Zt=ne(we,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:yt,direction:an,empty:Gt}=tt.useContext(At.E_),Vt=yt("empty",Ie),[hn,yn]=te(Vt),[vt]=(0,Ue.Z)("Empty"),je=typeof nt!="undefined"?nt:vt==null?void 0:vt.description,wt=typeof je=="string"?je:"empty";let tn=null;return typeof We=="string"?tn=tt.createElement("img",{alt:wt,src:We}):tn=We,hn(tt.createElement("div",Object.assign({className:Oe()(yn,Vt,Gt==null?void 0:Gt.className,{[`${Vt}-normal`]:We===se,[`${Vt}-rtl`]:an==="rtl"},Fe,Be),style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),Ze)},Zt),tt.createElement("div",{className:`${Vt}-image`,style:dt},tn),je&&tt.createElement("div",{className:`${Vt}-description`},je),Xe&&tt.createElement("div",{className:`${Vt}-footer`},Xe)))};ge.PRESENTED_IMAGE_DEFAULT=he,ge.PRESENTED_IMAGE_SIMPLE=se;var me=ge},78241:function(Kn,kn,ye){"use strict";ye.d(kn,{default:function(){return Pt}});var Ce=ye(19127),Oe=ye(92310),tt=ye.n(Oe),At=ye(77900),Ue=ye(59301),Je=ye(62892),ke=ye(32441);function Ot(Re){const[Tt,_t]=Ue.useState(Re);return Ue.useEffect(()=>{const ht=setTimeout(()=>{_t(Re)},Re.length?0:10);return()=>{clearTimeout(ht)}},[Re]),Tt}var Lt=ye(17313),ot=ye(29878),Rt=ye(8378),xt=ye(37613),zt=ye(83116),te=Re=>{const{componentCls:Tt}=Re,_t=`${Tt}-show-help`,ht=`${Tt}-show-help-item`;return{[_t]:{transition:`opacity ${Re.motionDurationSlow} ${Re.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[ht]:{overflow:"hidden",transition:`height ${Re.motionDurationSlow} ${Re.motionEaseInOut},
|
|
|
opacity ${Re.motionDurationSlow} ${Re.motionEaseInOut},
|
|
|
transform ${Re.motionDurationSlow} ${Re.motionEaseInOut} !important`,[`&${ht}-appear, &${ht}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${ht}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ne=Re=>({legend:{display:"block",width:"100%",marginBottom:Re.marginLG,padding:0,color:Re.colorTextDescription,fontSize:Re.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Re.lineWidth}px ${Re.lineType} ${Re.colorBorder}`},label:{fontSize:Re.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 ${Re.controlOutlineWidth}px ${Re.controlOutline}`},output:{display:"block",paddingTop:15,color:Re.colorText,fontSize:Re.fontSize,lineHeight:Re.lineHeight}}),he=(Re,Tt)=>{const{formItemCls:_t}=Re;return{[_t]:{[`${_t}-label > label`]:{height:Tt},[`${_t}-control-input`]:{minHeight:Tt}}}},se=Re=>{const{componentCls:Tt}=Re;return{[Re.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(Re)),ne(Re)),{[`${Tt}-text`]:{display:"inline-block",paddingInlineEnd:Re.paddingSM},"&-small":Object.assign({},he(Re,Re.controlHeightSM)),"&-large":Object.assign({},he(Re,Re.controlHeightLG))})}},ge=Re=>{const{formItemCls:Tt,iconCls:_t,componentCls:ht,rootPrefixCls:Ye,labelRequiredMarkColor:Wt,labelColor:Ut,labelFontSize:fn,labelHeight:Dn,labelColonMarginInlineStart:at,labelColonMarginInlineEnd:ln,itemMarginBottom:Hn}=Re;return{[Tt]:Object.assign(Object.assign({},(0,Lt.Wf)(Re)),{marginBottom:Hn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ye}-row`]:{display:"none"},"&-has-warning":{[`${Tt}-split`]:{color:Re.colorError}},"&-has-error":{[`${Tt}-split`]:{color:Re.colorWarning}},[`${Tt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Re.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Dn,color:Ut,fontSize:fn,[`> ${_t}`]:{fontSize:Re.fontSize,verticalAlign:"top"},[`&${Tt}-required:not(${Tt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Re.marginXXS,color:Wt,fontSize:Re.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${ht}-hide-required-mark &`]:{display:"none"}},[`${Tt}-optional`]:{display:"inline-block",marginInlineStart:Re.marginXXS,color:Re.colorTextDescription,[`${ht}-hide-required-mark &`]:{display:"none"}},[`${Tt}-tooltip`]:{color:Re.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Re.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:at,marginInlineEnd:ln},[`&${Tt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Tt}-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:Re.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Tt]:{"&-explain, &-extra":{clear:"both",color:Re.colorTextDescription,fontSize:Re.fontSize,lineHeight:Re.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Re.controlHeightSM,transition:`color ${Re.motionDurationMid} ${Re.motionEaseOut}`},"&-explain":{"&-error":{color:Re.colorError},"&-warning":{color:Re.colorWarning}}},[`&-with-help ${Tt}-explain`]:{height:"auto",opacity:1},[`${Tt}-feedback-icon`]:{fontSize:Re.fontSize,textAlign:"center",visibility:"visible",animationName:ot.kr,animationDuration:Re.motionDurationMid,animationTimingFunction:Re.motionEaseOutBack,pointerEvents:"none","&-success":{color:Re.colorSuccess},"&-error":{color:Re.colorError},"&-warning":{color:Re.colorWarning},"&-validating":{color:Re.colorPrimary}}})}},me=Re=>{const{componentCls:Tt,formItemCls:_t}=Re;return{[`${Tt}-horizontal`]:{[`${_t}-label`]:{flexGrow:0},[`${_t}-control`]:{flex:"1 1 0",minWidth:0},[`${_t}-label[class$='-24'], ${_t}-label[class*='-24 ']`]:{[`& + ${_t}-control`]:{minWidth:"unset"}}}}},we=Re=>{const{componentCls:Tt,formItemCls:_t}=Re;return{[`${Tt}-inline`]:{display:"flex",flexWrap:"wrap",[_t]:{flex:"none",marginInlineEnd:Re.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${_t}-label,
|
|
|
> ${_t}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${_t}-label`]:{flex:"none"},[`${Tt}-text`]:{display:"inline-block"},[`${_t}-has-feedback`]:{display:"inline-block"}}}}},Fe=Re=>({padding:Re.verticalLabelPadding,margin:Re.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Be=Re=>{const{componentCls:Tt,formItemCls:_t,rootPrefixCls:ht}=Re;return{[`${_t} ${_t}-label`]:Fe(Re),[Tt]:{[_t]:{flexWrap:"wrap",[`${_t}-label, ${_t}-control`]:{[`&:not([class*=" ${ht}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ie=Re=>{const{componentCls:Tt,formItemCls:_t,rootPrefixCls:ht}=Re;return{[`${Tt}-vertical`]:{[_t]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Tt}-item-control`]:{width:"100%"}}},[`${Tt}-vertical ${_t}-label,
|
|
|
.${ht}-col-24${_t}-label,
|
|
|
.${ht}-col-xl-24${_t}-label`]:Fe(Re),[`@media (max-width: ${Re.screenXSMax}px)`]:[Be(Re),{[Tt]:{[`.${ht}-col-xs-24${_t}-label`]:Fe(Re)}}],[`@media (max-width: ${Re.screenSMMax}px)`]:{[Tt]:{[`.${ht}-col-sm-24${_t}-label`]:Fe(Re)}},[`@media (max-width: ${Re.screenMDMax}px)`]:{[Tt]:{[`.${ht}-col-md-24${_t}-label`]:Fe(Re)}},[`@media (max-width: ${Re.screenLGMax}px)`]:{[Tt]:{[`.${ht}-col-lg-24${_t}-label`]:Fe(Re)}}}},We=(Re,Tt)=>(0,xt.TS)(Re,{formItemCls:`${Re.componentCls}-item`,rootPrefixCls:Tt});var nt=(0,zt.Z)("Form",(Re,Tt)=>{let{rootPrefixCls:_t}=Tt;const ht=We(Re,_t);return[se(ht),ge(ht),te(ht),me(ht),we(ht),Ie(ht),(0,Rt.Z)(ht),ot.kr]},Re=>({labelRequiredMarkColor:Re.colorError,labelColor:Re.colorTextHeading,labelFontSize:Re.fontSize,labelHeight:Re.controlHeight,labelColonMarginInlineStart:Re.marginXXS/2,labelColonMarginInlineEnd:Re.marginXS,itemMarginBottom:Re.marginLG,verticalLabelPadding:`0 0 ${Re.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Xe=[];function dt(Re,Tt,_t){let ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Re=="string"?Re:`${Tt}-${ht}`,error:Re,errorStatus:_t}}var Zt=Re=>{let{help:Tt,helpStatus:_t,errors:ht=Xe,warnings:Ye=Xe,className:Wt,fieldId:Ut,onVisibleChanged:fn}=Re;const{prefixCls:Dn}=Ue.useContext(ke.Rk),at=`${Dn}-item-explain`,[,ln]=nt(Dn),Hn=(0,Ue.useMemo)(()=>(0,Je.Z)(Dn),[Dn]),ii=Ot(ht),jt=Ot(Ye),sn=Ue.useMemo(()=>Tt!=null?[dt(Tt,"help",_t)]:[].concat((0,Ce.Z)(ii.map((on,qt)=>dt(on,"error","error",qt))),(0,Ce.Z)(jt.map((on,qt)=>dt(on,"warning","warning",qt)))),[Tt,_t,ii,jt]),It={};return Ut&&(It.id=`${Ut}_help`),Ue.createElement(At.default,{motionDeadline:Hn.motionDeadline,motionName:`${Dn}-show-help`,visible:!!sn.length,onVisibleChanged:fn},on=>{const{className:qt,style:en}=on;return Ue.createElement("div",Object.assign({},It,{className:tt()(at,qt,Wt,ln),style:en,role:"alert"}),Ue.createElement(At.CSSMotionList,Object.assign({keys:sn},(0,Je.Z)(Dn),{motionName:`${Dn}-show-help-item`,component:!1}),xn=>{const{key:Pn,error:An,errorStatus:Wn,className:pi,style:Yt}=xn;return Ue.createElement("div",{key:Pn,className:tt()(pi,{[`${at}-${Wn}`]:Wn}),style:Yt},An)}))})},yt=ye(95013),an=ye(36355),Gt=ye(1684),Vt=ye(52946),hn=ye(19716),yn=ye(16722);const vt=["parentNode"],je="form_item";function wt(Re){return Re===void 0||Re===!1?[]:Array.isArray(Re)?Re:[Re]}function tn(Re,Tt){if(!Re.length)return;const _t=Re.join("_");return Tt?`${Tt}_${_t}`:vt.includes(_t)?`${je}_${_t}`:_t}function bn(Re,Tt,_t,ht,Ye,Wt){let Ut=ht;return Wt!==void 0?Ut=Wt:_t.validating?Ut="validating":Re.length?Ut="error":Tt.length?Ut="warning":(_t.touched||Ye&&_t.validated)&&(Ut="success"),Ut}function Ft(Re){return wt(Re).join("_")}function Xt(Re){const[Tt]=(0,yt.useForm)(),_t=Ue.useRef({}),ht=Ue.useMemo(()=>Re!=null?Re:Object.assign(Object.assign({},Tt),{__INTERNAL__:{itemRef:Ye=>Wt=>{const Ut=Ft(Ye);Wt?_t.current[Ut]=Wt:delete _t.current[Ut]}},scrollToField:function(Ye){let Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Ut=wt(Ye),fn=tn(Ut,ht.__INTERNAL__.name),Dn=fn?document.getElementById(fn):null;Dn&&(0,yn.Z)(Dn,Object.assign({scrollMode:"if-needed",block:"nearest"},Wt))},getFieldInstance:Ye=>{const Wt=Ft(Ye);return _t.current[Wt]}}),[Re,Tt]);return[ht]}var Cn=ye(28726),Qn=function(Re,Tt){var _t={};for(var ht in Re)Object.prototype.hasOwnProperty.call(Re,ht)&&Tt.indexOf(ht)<0&&(_t[ht]=Re[ht]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,ht=Object.getOwnPropertySymbols(Re);Ye<ht.length;Ye++)Tt.indexOf(ht[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Re,ht[Ye])&&(_t[ht[Ye]]=Re[ht[Ye]]);return _t};const gn=(Re,Tt)=>{const _t=Ue.useContext(Gt.Z),{getPrefixCls:ht,direction:Ye,form:Wt}=Ue.useContext(an.E_),{prefixCls:Ut,className:fn,rootClassName:Dn,size:at,disabled:ln=_t,form:Hn,colon:ii,labelAlign:jt,labelWrap:sn,labelCol:It,wrapperCol:on,hideRequiredMark:qt,layout:en="horizontal",scrollToFirstError:xn,requiredMark:Pn,onFinishFailed:An,name:Wn,style:pi,feedbackIcons:Yt}=Re,bi=Qn(Re,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Di=(0,hn.Z)(at),ki=Ue.useContext(Cn.Z),nn=(0,Ue.useMemo)(()=>Pn!==void 0?Pn:Wt&&Wt.requiredMark!==void 0?Wt.requiredMark:!qt,[qt,Pn,Wt]),Xn=ii!=null?ii:Wt==null?void 0:Wt.colon,fi=ht("form",Ut),[wi,gi]=nt(fi),Bi=tt()(fi,`${fi}-${en}`,{[`${fi}-hide-required-mark`]:nn===!1,[`${fi}-rtl`]:Ye==="rtl",[`${fi}-${Di}`]:Di},gi,Wt==null?void 0:Wt.className,fn,Dn),[Ki]=Xt(Hn),{__INTERNAL__:ji}=Ki;ji.name=Wn;const Pi=(0,Ue.useMemo)(()=>({name:Wn,labelAlign:jt,labelCol:It,labelWrap:sn,wrapperCol:on,vertical:en==="vertical",colon:Xn,requiredMark:nn,itemRef:ji.itemRef,form:Ki,feedbackIcons:Yt}),[Wn,jt,It,on,en,Xn,nn,Ki,Yt]);Ue.useImperativeHandle(Tt,()=>Ki);const Vi=(So,Mn)=>{if(So){let ro={block:"nearest"};typeof So=="object"&&(ro=So),Ki.scrollToField(Mn,ro)}},Ln=So=>{if(An==null||An(So),So.errorFields.length){const Mn=So.errorFields[0].name;if(xn!==void 0){Vi(xn,Mn);return}Wt&&Wt.scrollToFirstError!==void 0&&Vi(Wt.scrollToFirstError,Mn)}};return wi(Ue.createElement(Gt.n,{disabled:ln},Ue.createElement(Vt.q,{size:Di},Ue.createElement(ke.RV,Object.assign({},{validateMessages:ki}),Ue.createElement(ke.q3.Provider,{value:Pi},Ue.createElement(yt.default,Object.assign({id:Wn},bi,{name:Wn,onFinishFailed:Ln,form:Ki,style:Object.assign(Object.assign({},Wt==null?void 0:Wt.style),pi),className:Bi})))))))};var bt=Ue.forwardRef(gn),zn=ye(41799),ai=ye(8654),He=ye(92343),Le=ye(11592);function xe(Re){if(typeof Re=="function")return Re;const Tt=(0,Le.Z)(Re);return Tt.length<=1?Tt[0]:Tt}const Ne=()=>{const{status:Re,errors:Tt=[],warnings:_t=[]}=(0,Ue.useContext)(ke.aM);return{status:Re,errors:Tt,warnings:_t}};Ne.Context=ke.aM;var De=Ne,ve=ye(16089);function $e(Re){const[Tt,_t]=Ue.useState(Re),ht=(0,Ue.useRef)(null),Ye=(0,Ue.useRef)([]),Wt=(0,Ue.useRef)(!1);Ue.useEffect(()=>(Wt.current=!1,()=>{Wt.current=!0,ve.Z.cancel(ht.current),ht.current=null}),[]);function Ut(fn){Wt.current||(ht.current===null&&(Ye.current=[],ht.current=(0,ve.Z)(()=>{ht.current=null,_t(Dn=>{let at=Dn;return Ye.current.forEach(ln=>{at=ln(at)}),at})})),Ye.current.push(fn))}return[Tt,Ut]}function mt(){const{itemRef:Re}=Ue.useContext(ke.q3),Tt=Ue.useRef({});function _t(ht,Ye){const Wt=Ye&&typeof Ye=="object"&&Ye.ref,Ut=ht.join("_");return(Tt.current.name!==Ut||Tt.current.originRef!==Wt)&&(Tt.current.name=Ut,Tt.current.originRef=Wt,Tt.current.ref=(0,ai.sQ)(Re(ht),Wt)),Tt.current.ref}return _t}var et=ye(29194),Ve=ye(34280),gt=ye(2738),ft=ye(27382),rt=ye(37028);const Mt=Re=>{const{formItemCls:Tt}=Re;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Tt}-control`]:{display:"flex"}}}};var pn=(0,zt.b)(["Form","item-item"],(Re,Tt)=>{let{rootPrefixCls:_t}=Tt;const ht=We(Re,_t);return[Mt(ht)]}),Jt=Re=>{const{prefixCls:Tt,status:_t,wrapperCol:ht,children:Ye,errors:Wt,warnings:Ut,_internalItemRender:fn,extra:Dn,help:at,fieldId:ln,marginBottom:Hn,onErrorVisibleChanged:ii}=Re,jt=`${Tt}-item`,sn=Ue.useContext(ke.q3),It=ht||sn.wrapperCol||{},on=tt()(`${jt}-control`,It.className),qt=Ue.useMemo(()=>Object.assign({},sn),[sn]);delete qt.labelCol,delete qt.wrapperCol;const en=Ue.createElement("div",{className:`${jt}-control-input`},Ue.createElement("div",{className:`${jt}-control-input-content`},Ye)),xn=Ue.useMemo(()=>({prefixCls:Tt,status:_t}),[Tt,_t]),Pn=Hn!==null||Wt.length||Ut.length?Ue.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Ue.createElement(ke.Rk.Provider,{value:xn},Ue.createElement(Zt,{fieldId:ln,errors:Wt,warnings:Ut,help:at,helpStatus:_t,className:`${jt}-explain-connected`,onVisibleChanged:ii})),!!Hn&&Ue.createElement("div",{style:{width:0,height:Hn}})):null,An={};ln&&(An.id=`${ln}_extra`);const Wn=Dn?Ue.createElement("div",Object.assign({},An,{className:`${jt}-extra`}),Dn):null,pi=fn&&fn.mark==="pro_table_render"&&fn.render?fn.render(Re,{input:en,errorList:Pn,extra:Wn}):Ue.createElement(Ue.Fragment,null,en,Pn,Wn);return Ue.createElement(ke.q3.Provider,{value:qt},Ue.createElement(rt.Z,Object.assign({},It,{className:on}),pi),Ue.createElement(pn,{prefixCls:Tt}))},Rn=ye(61485),Tn=ye(31724),Et=ye(9763),cn=ye(6848),On=function(Re,Tt){var _t={};for(var ht in Re)Object.prototype.hasOwnProperty.call(Re,ht)&&Tt.indexOf(ht)<0&&(_t[ht]=Re[ht]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,ht=Object.getOwnPropertySymbols(Re);Ye<ht.length;Ye++)Tt.indexOf(ht[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Re,ht[Ye])&&(_t[ht[Ye]]=Re[ht[Ye]]);return _t};function Ct(Re){return Re?typeof Re=="object"&&!Ue.isValidElement(Re)?Re:{title:Re}:null}var ui=Re=>{let{prefixCls:Tt,label:_t,htmlFor:ht,labelCol:Ye,labelAlign:Wt,colon:Ut,required:fn,requiredMark:Dn,tooltip:at}=Re;var ln;const[Hn]=(0,Et.Z)("Form"),{vertical:ii,labelAlign:jt,labelCol:sn,labelWrap:It,colon:on}=Ue.useContext(ke.q3);if(!_t)return null;const qt=Ye||sn||{},en=Wt||jt,xn=`${Tt}-item-label`,Pn=tt()(xn,en==="left"&&`${xn}-left`,qt.className,{[`${xn}-wrap`]:!!It});let An=_t;const Wn=Ut===!0||on!==!1&&Ut!==!1;Wn&&!ii&&typeof _t=="string"&&_t.trim()!==""&&(An=_t.replace(/[:|:]\s*$/,""));const Yt=Ct(at);if(Yt){const{icon:nn=Ue.createElement(Rn.Z,null)}=Yt,Xn=On(Yt,["icon"]),fi=Ue.createElement(cn.Z,Object.assign({},Xn),Ue.cloneElement(nn,{className:`${Tt}-item-tooltip`,title:""}));An=Ue.createElement(Ue.Fragment,null,An,fi)}const bi=Dn==="optional",Di=typeof Dn=="function";Di?An=Dn(An,{required:!!fn}):bi&&!fn&&(An=Ue.createElement(Ue.Fragment,null,An,Ue.createElement("span",{className:`${Tt}-item-optional`,title:""},(Hn==null?void 0:Hn.optional)||((ln=Tn.Z.Form)===null||ln===void 0?void 0:ln.optional))));const ki=tt()({[`${Tt}-item-required`]:fn,[`${Tt}-item-required-mark-optional`]:bi||Di,[`${Tt}-item-no-colon`]:!Wn});return Ue.createElement(rt.Z,Object.assign({},qt,{className:Pn}),Ue.createElement("label",{htmlFor:ht,className:ki,title:typeof _t=="string"?_t:""},An))},Ci=ye(29679),ci=ye(19248),Hi=ye(96512),qi=ye(58617);const Xi={success:Ci.Z,warning:Hi.Z,error:ci.Z,validating:qi.Z};function eo(Re){let{children:Tt,errors:_t,warnings:ht,hasFeedback:Ye,validateStatus:Wt,prefixCls:Ut,meta:fn,noStyle:Dn}=Re;const at=`${Ut}-item`,{feedbackIcons:ln}=Ue.useContext(ke.q3),Hn=bn(_t,ht,fn,null,!!Ye,Wt),{isFormItemInput:ii,status:jt}=Ue.useContext(ke.aM),sn=Ue.useMemo(()=>{var It;let on;if(Ye){const xn=Ye!==!0&&Ye.icons||ln,Pn=Hn&&((It=xn==null?void 0:xn({status:Hn,errors:_t,warnings:ht}))===null||It===void 0?void 0:It[Hn]),An=Hn&&Xi[Hn];on=Pn!==!1&&An?Ue.createElement("span",{className:tt()(`${at}-feedback-icon`,`${at}-feedback-icon-${Hn}`)},Pn||Ue.createElement(An,null)):null}let qt=!0,en=Hn||"";return Dn&&(qt=ii,en=(Hn!=null?Hn:jt)||""),{status:en,errors:_t,warnings:ht,hasFeedback:!!Ye,feedbackIcon:on,isFormItemInput:qt}},[Hn,Ye,Dn,ii,jt]);return Ue.createElement(ke.aM.Provider,{value:sn},Tt)}var Oo=function(Re,Tt){var _t={};for(var ht in Re)Object.prototype.hasOwnProperty.call(Re,ht)&&Tt.indexOf(ht)<0&&(_t[ht]=Re[ht]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,ht=Object.getOwnPropertySymbols(Re);Ye<ht.length;Ye++)Tt.indexOf(ht[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Re,ht[Ye])&&(_t[ht[Ye]]=Re[ht[Ye]]);return _t};function vo(Re){const{prefixCls:Tt,className:_t,rootClassName:ht,style:Ye,help:Wt,errors:Ut,warnings:fn,validateStatus:Dn,meta:at,hasFeedback:ln,hidden:Hn,children:ii,fieldId:jt,required:sn,isRequired:It,onSubItemMetaChange:on}=Re,qt=Oo(Re,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),en=`${Tt}-item`,{requiredMark:xn}=Ue.useContext(ke.q3),Pn=Ue.useRef(null),An=Ot(Ut),Wn=Ot(fn),pi=Wt!=null,Yt=!!(pi||Ut.length||fn.length),bi=!!Pn.current&&(0,et.Z)(Pn.current),[Di,ki]=Ue.useState(null);(0,Ve.Z)(()=>{if(Yt&&Pn.current){const gi=getComputedStyle(Pn.current);ki(parseInt(gi.marginBottom,10))}},[Yt,bi]);const nn=gi=>{gi||ki(null)},fi=function(){let gi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Bi=gi?An:at.errors,Ki=gi?Wn:at.warnings;return bn(Bi,Ki,at,"",!!ln,Dn)}(),wi=tt()(en,_t,ht,{[`${en}-with-help`]:pi||An.length||Wn.length,[`${en}-has-feedback`]:fi&&ln,[`${en}-has-success`]:fi==="success",[`${en}-has-warning`]:fi==="warning",[`${en}-has-error`]:fi==="error",[`${en}-is-validating`]:fi==="validating",[`${en}-hidden`]:Hn});return Ue.createElement("div",{className:wi,style:Ye,ref:Pn},Ue.createElement(ft.Z,Object.assign({className:`${en}-row`},(0,gt.Z)(qt,["_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"])),Ue.createElement(ui,Object.assign({htmlFor:jt},Re,{requiredMark:xn,required:sn!=null?sn:It,prefixCls:Tt})),Ue.createElement(Jt,Object.assign({},Re,at,{errors:An,warnings:Wn,prefixCls:Tt,status:fi,help:Wt,marginBottom:Di,onErrorVisibleChanged:nn}),Ue.createElement(ke.qI.Provider,{value:on},Ue.createElement(eo,{prefixCls:Tt,meta:at,errors:at.errors,warnings:at.warnings,hasFeedback:ln,validateStatus:fi},ii)))),!!Di&&Ue.createElement("div",{className:`${en}-margin-offset`,style:{marginBottom:-Di}}))}const Ri="__SPLIT__",Co=null,Bn=Ue.memo(Re=>{let{children:Tt}=Re;return Tt},(Re,Tt)=>Re.value===Tt.value&&Re.update===Tt.update&&Re.childProps.length===Tt.childProps.length&&Re.childProps.every((_t,ht)=>_t===Tt.childProps[ht]));function be(Re){return Re!=null}function Mi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ei(Re){const{name:Tt,noStyle:_t,className:ht,dependencies:Ye,prefixCls:Wt,shouldUpdate:Ut,rules:fn,children:Dn,required:at,label:ln,messageVariables:Hn,trigger:ii="onChange",validateTrigger:jt,hidden:sn,help:It}=Re,{getPrefixCls:on}=Ue.useContext(an.E_),{name:qt}=Ue.useContext(ke.q3),en=xe(Dn),xn=typeof en=="function",Pn=Ue.useContext(ke.qI),{validateTrigger:An}=Ue.useContext(yt.FieldContext),Wn=jt!==void 0?jt:An,pi=be(Tt),Yt=on("form",Wt),[bi,Di]=nt(Yt),ki=Ue.useContext(yt.ListContext),nn=Ue.useRef(),[Xn,fi]=$e({}),[wi,gi]=(0,zn.Z)(()=>Mi()),Bi=Mn=>{const ro=ki==null?void 0:ki.getKey(Mn.name);if(gi(Mn.destroy?Mi():Mn,!0),_t&&It!==!1&&Pn){let No=Mn.name;if(Mn.destroy)No=nn.current||No;else if(ro!==void 0){const[_i,Go]=ro;No=[_i].concat((0,Ce.Z)(Go)),nn.current=No}Pn(Mn,No)}},Ki=(Mn,ro)=>{fi(No=>{const _i=Object.assign({},No),ko=[].concat((0,Ce.Z)(Mn.name.slice(0,-1)),(0,Ce.Z)(ro)).join(Ri);return Mn.destroy?delete _i[ko]:_i[ko]=Mn,_i})},[ji,Pi]=Ue.useMemo(()=>{const Mn=(0,Ce.Z)(wi.errors),ro=(0,Ce.Z)(wi.warnings);return Object.values(Xn).forEach(No=>{Mn.push.apply(Mn,(0,Ce.Z)(No.errors||[])),ro.push.apply(ro,(0,Ce.Z)(No.warnings||[]))}),[Mn,ro]},[Xn,wi.errors,wi.warnings]),Vi=mt();function Ln(Mn,ro,No){return _t&&!sn?Ue.createElement(eo,{prefixCls:Yt,hasFeedback:Re.hasFeedback,validateStatus:Re.validateStatus,meta:wi,errors:ji,warnings:Pi,noStyle:!0},Mn):Ue.createElement(vo,Object.assign({key:"row"},Re,{className:tt()(ht,Di),prefixCls:Yt,fieldId:ro,isRequired:No,errors:ji,warnings:Pi,meta:wi,onSubItemMetaChange:Ki}),Mn)}if(!pi&&!xn&&!Ye)return bi(Ln(en));let So={};return typeof ln=="string"?So.label=ln:Tt&&(So.label=String(Tt)),Hn&&(So=Object.assign(Object.assign({},So),Hn)),bi(Ue.createElement(yt.Field,Object.assign({},Re,{messageVariables:So,trigger:ii,validateTrigger:Wn,onMetaChange:Bi}),(Mn,ro,No)=>{const _i=wt(Tt).length&&ro?ro.name:[],Go=tn(_i,qt),ko=at!==void 0?at:!!(fn&&fn.some(Zi=>{if(Zi&&typeof Zi=="object"&&Zi.required&&!Zi.warningOnly)return!0;if(typeof Zi=="function"){const yo=Zi(No);return yo&&yo.required&&!yo.warningOnly}return!1})),Ii=Object.assign({},Mn);let Ai=null;if(Array.isArray(en)&&pi)Ai=en;else if(!(xn&&(!(Ut||Ye)||pi))){if(!(Ye&&!xn&&!pi))if((0,He.l$)(en)){const Zi=Object.assign(Object.assign({},en.props),Ii);if(Zi.id||(Zi.id=Go),It||ji.length>0||Pi.length>0||Re.extra){const Ke=[];(It||ji.length>0)&&Ke.push(`${Go}_help`),Re.extra&&Ke.push(`${Go}_extra`),Zi["aria-describedby"]=Ke.join(" ")}ji.length>0&&(Zi["aria-invalid"]="true"),ko&&(Zi["aria-required"]="true"),(0,ai.Yr)(en)&&(Zi.ref=Vi(_i,en)),new Set([].concat((0,Ce.Z)(wt(ii)),(0,Ce.Z)(wt(Wn)))).forEach(Ke=>{Zi[Ke]=function(){for(var Do,nr,xo,hr,Qo,$i=arguments.length,ao=new Array($i),jo=0;jo<$i;jo++)ao[jo]=arguments[jo];(xo=Ii[Ke])===null||xo===void 0||(Do=xo).call.apply(Do,[Ii].concat(ao)),(Qo=(hr=en.props)[Ke])===null||Qo===void 0||(nr=Qo).call.apply(nr,[hr].concat(ao))}});const di=[Zi["aria-required"],Zi["aria-invalid"],Zi["aria-describedby"]];Ai=Ue.createElement(Bn,{value:Ii[Re.valuePropName||"value"],update:en,childProps:di},(0,He.Tm)(en,Zi))}else xn&&(Ut||Ye)&&!pi?Ai=en(No):Ai=en}return Ln(Ai,Go,ko)}))}const Dt=Ei;Dt.useStatus=De;var En=Dt,Fn=function(Re,Tt){var _t={};for(var ht in Re)Object.prototype.hasOwnProperty.call(Re,ht)&&Tt.indexOf(ht)<0&&(_t[ht]=Re[ht]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,ht=Object.getOwnPropertySymbols(Re);Ye<ht.length;Ye++)Tt.indexOf(ht[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Re,ht[Ye])&&(_t[ht[Ye]]=Re[ht[Ye]]);return _t},wn=Re=>{var{prefixCls:Tt,children:_t}=Re,ht=Fn(Re,["prefixCls","children"]);const{getPrefixCls:Ye}=Ue.useContext(an.E_),Wt=Ye("form",Tt),Ut=Ue.useMemo(()=>({prefixCls:Wt,status:"error"}),[Wt]);return Ue.createElement(yt.List,Object.assign({},ht),(fn,Dn,at)=>Ue.createElement(ke.Rk.Provider,{value:Ut},_t(fn.map(ln=>Object.assign(Object.assign({},ln),{fieldKey:ln.key})),Dn,{errors:at.errors,warnings:at.warnings})))};function Nn(){const{form:Re}=(0,Ue.useContext)(ke.q3);return Re}const ct=bt;ct.Item=En,ct.List=wn,ct.ErrorList=Zt,ct.useForm=Xt,ct.useFormInstance=Nn,ct.useWatch=yt.useWatch,ct.Provider=ke.RV,ct.create=()=>{};var Pt=ct},8628:function(Kn,kn,ye){"use strict";var Ce=ye(59301),Oe=ye(34280),tt=ye(56762),At=ye(69507);function Ue(){let Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ke=(0,Ce.useRef)({}),Ot=(0,tt.Z)(),Lt=(0,At.ZP)();return(0,Oe.Z)(()=>{const ot=Lt.subscribe(Rt=>{ke.current=Rt,Je&&Ot()});return()=>Lt.unsubscribe(ot)},[]),ke.current}kn.Z=Ue},9432:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return ge},n:function(){return he}});var Ce=ye(19248),Oe=ye(92310),tt=ye.n(Oe),At=ye(93681),Ue=ye(8654),Je=ye(59301),ke=ye(19080),Ot=ye(36355),Lt=ye(1684),ot=ye(19716),Rt=ye(32441),xt=ye(33234),zt=ye(59412),Ae=ye(9937);function te(me){return!!(me.prefix||me.suffix||me.allowClear)}var ne=function(me,we){var Fe={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&we.indexOf(Be)<0&&(Fe[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Be=Object.getOwnPropertySymbols(me);Ie<Be.length;Ie++)we.indexOf(Be[Ie])<0&&Object.prototype.propertyIsEnumerable.call(me,Be[Ie])&&(Fe[Be[Ie]]=me[Be[Ie]]);return Fe};function he(me,we){if(!me)return;me.focus(we);const{cursor:Fe}=we||{};if(Fe){const Be=me.value.length;switch(Fe){case"start":me.setSelectionRange(0,0);break;case"end":me.setSelectionRange(Be,Be);break;default:me.setSelectionRange(0,Be);break}}}var ge=(0,Je.forwardRef)((me,we)=>{var Fe;const{prefixCls:Be,bordered:Ie=!0,status:We,size:nt,disabled:Xe,onBlur:dt,onFocus:Ze,suffix:Zt,allowClear:yt,addonAfter:an,addonBefore:Gt,className:Vt,style:hn,styles:yn,rootClassName:vt,onChange:je,classNames:wt}=me,tn=ne(me,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:bn,direction:Ft,input:Xt}=Je.useContext(Ot.E_),Cn=bn("input",Be),Qn=(0,Je.useRef)(null),[gn,Gn]=(0,Ae.ZP)(Cn),{compactSize:bt,compactItemClassnames:zn}=(0,xt.ri)(Cn,Ft),ai=(0,ot.Z)(pn=>{var dn;return(dn=nt!=null?nt:bt)!==null&&dn!==void 0?dn:pn}),He=Je.useContext(Lt.Z),Le=Xe!=null?Xe:He,{status:xe,hasFeedback:Ne,feedbackIcon:De}=(0,Je.useContext)(Rt.aM),ve=(0,ke.F)(xe,We),$e=te(me)||!!Ne,mt=(0,Je.useRef)($e);(0,Je.useEffect)(()=>{var pn;$e&&mt.current,mt.current=$e},[$e]);const et=(0,zt.Z)(Qn,!0),Ve=pn=>{et(),dt==null||dt(pn)},gt=pn=>{et(),Ze==null||Ze(pn)},ft=pn=>{et(),je==null||je(pn)},rt=(Ne||Zt)&&Je.createElement(Je.Fragment,null,Zt,Ne&&De);let Mt;return typeof yt=="object"&&(yt!=null&&yt.clearIcon)?Mt=yt:yt&&(Mt={clearIcon:Je.createElement(Ce.Z,null)}),gn(Je.createElement(At.default,Object.assign({ref:(0,Ue.sQ)(we,Qn),prefixCls:Cn,autoComplete:Xt==null?void 0:Xt.autoComplete},tn,{disabled:Le,onBlur:Ve,onFocus:gt,style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),hn),styles:Object.assign(Object.assign({},Xt==null?void 0:Xt.styles),yn),suffix:rt,allowClear:Mt,className:tt()(Vt,vt,zn,Xt==null?void 0:Xt.className),onChange:ft,addonAfter:an&&Je.createElement(xt.BR,null,Je.createElement(Rt.Ux,{override:!0,status:!0},an)),addonBefore:Gt&&Je.createElement(xt.BR,null,Je.createElement(Rt.Ux,{override:!0,status:!0},Gt)),classNames:Object.assign(Object.assign(Object.assign({},wt),Xt==null?void 0:Xt.classNames),{input:tt()({[`${Cn}-sm`]:ai==="small",[`${Cn}-lg`]:ai==="large",[`${Cn}-rtl`]:Ft==="rtl",[`${Cn}-borderless`]:!Ie},!$e&&(0,ke.Z)(Cn,ve),wt==null?void 0:wt.input,(Fe=Xt==null?void 0:Xt.classNames)===null||Fe===void 0?void 0:Fe.input,Gn)}),classes:{affixWrapper:tt()({[`${Cn}-affix-wrapper-sm`]:ai==="small",[`${Cn}-affix-wrapper-lg`]:ai==="large",[`${Cn}-affix-wrapper-rtl`]:Ft==="rtl",[`${Cn}-affix-wrapper-borderless`]:!Ie},(0,ke.Z)(`${Cn}-affix-wrapper`,ve,Ne),Gn),wrapper:tt()({[`${Cn}-group-rtl`]:Ft==="rtl"},Gn),group:tt()({[`${Cn}-group-wrapper-sm`]:ai==="small",[`${Cn}-group-wrapper-lg`]:ai==="large",[`${Cn}-group-wrapper-rtl`]:Ft==="rtl",[`${Cn}-group-wrapper-disabled`]:Le},(0,ke.Z)(`${Cn}-group-wrapper`,ve,Ne),Gn)}})))})},1643:function(Kn,kn,ye){"use strict";var Ce=ye(19248),Oe=ye(92310),tt=ye.n(Oe),At=ye(9296),Ue=ye(59301),Je=ye(19080),ke=ye(36355),Ot=ye(1684),Lt=ye(19716),ot=ye(32441),Rt=ye(9432),xt=ye(9937),zt=function(te,ne){var he={};for(var se in te)Object.prototype.hasOwnProperty.call(te,se)&&ne.indexOf(se)<0&&(he[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])&&(he[se[ge]]=te[se[ge]]);return he};const Ae=(0,Ue.forwardRef)((te,ne)=>{const{prefixCls:he,bordered:se=!0,size:ge,disabled:me,status:we,allowClear:Fe,showCount:Be,classNames:Ie,rootClassName:We,className:nt}=te,Xe=zt(te,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:dt,direction:Ze}=Ue.useContext(ke.E_),Zt=(0,Lt.Z)(ge),yt=Ue.useContext(Ot.Z),an=me!=null?me:yt,{status:Gt,hasFeedback:Vt,feedbackIcon:hn}=Ue.useContext(ot.aM),yn=(0,Je.F)(Gt,we),vt=Ue.useRef(null);Ue.useImperativeHandle(ne,()=>{var Ft;return{resizableTextArea:(Ft=vt.current)===null||Ft===void 0?void 0:Ft.resizableTextArea,focus:Xt=>{var Cn,Qn;(0,Rt.n)((Qn=(Cn=vt.current)===null||Cn===void 0?void 0:Cn.resizableTextArea)===null||Qn===void 0?void 0:Qn.textArea,Xt)},blur:()=>{var Xt;return(Xt=vt.current)===null||Xt===void 0?void 0:Xt.blur()}}});const je=dt("input",he);let wt;typeof Fe=="object"&&(Fe!=null&&Fe.clearIcon)?wt=Fe:Fe&&(wt={clearIcon:Ue.createElement(Ce.Z,null)});const[tn,bn]=(0,xt.ZP)(je);return tn(Ue.createElement(At.default,Object.assign({},Xe,{disabled:an,allowClear:wt,className:tt()(nt,We),classes:{affixWrapper:tt()(`${je}-textarea-affix-wrapper`,{[`${je}-affix-wrapper-rtl`]:Ze==="rtl",[`${je}-affix-wrapper-borderless`]:!se,[`${je}-affix-wrapper-sm`]:Zt==="small",[`${je}-affix-wrapper-lg`]:Zt==="large",[`${je}-textarea-show-count`]:Be},(0,Je.Z)(`${je}-affix-wrapper`,yn),bn)},classNames:Object.assign(Object.assign({},Ie),{textarea:tt()({[`${je}-borderless`]:!se,[`${je}-sm`]:Zt==="small",[`${je}-lg`]:Zt==="large"},(0,Je.Z)(je,yn),bn,Ie==null?void 0:Ie.textarea)}),prefixCls:je,suffix:Vt&&Ue.createElement("span",{className:`${je}-textarea-suffix`},hn),showCount:Be,ref:vt})))});kn.Z=Ae},59412:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Oe}});var Ce=ye(59301);function Oe(tt,At){const Ue=(0,Ce.useRef)([]),Je=()=>{Ue.current.push(setTimeout(()=>{var ke,Ot,Lt,ot;!((ke=tt.current)===null||ke===void 0)&&ke.input&&((Ot=tt.current)===null||Ot===void 0?void 0:Ot.input.getAttribute("type"))==="password"&&(!((Lt=tt.current)===null||Lt===void 0)&&Lt.input.hasAttribute("value"))&&((ot=tt.current)===null||ot===void 0||ot.input.removeAttribute("value"))}))};return(0,Ce.useEffect)(()=>(At&&Je(),()=>Ue.current.forEach(ke=>{ke&&clearTimeout(ke)})),[]),Je}},92832:function(Kn,kn,ye){"use strict";ye.d(kn,{default:function(){return Zt}});var Ce=ye(92310),Oe=ye.n(Ce),tt=ye(59301),At=ye(36355),Ue=ye(32441),Je=ye(9937),Ot=yt=>{const{getPrefixCls:an,direction:Gt}=(0,tt.useContext)(At.E_),{prefixCls:Vt,className:hn}=yt,yn=an("input-group",Vt),vt=an("input"),[je,wt]=(0,Je.ZP)(vt),tn=Oe()(yn,{[`${yn}-lg`]:yt.size==="large",[`${yn}-sm`]:yt.size==="small",[`${yn}-compact`]:yt.compact,[`${yn}-rtl`]:Gt==="rtl"},wt,hn),bn=(0,tt.useContext)(Ue.aM),Ft=(0,tt.useMemo)(()=>Object.assign(Object.assign({},bn),{isFormItemInput:!1}),[bn]);return je(tt.createElement("span",{className:tn,style:yt.style,onMouseEnter:yt.onMouseEnter,onMouseLeave:yt.onMouseLeave,onFocus:yt.onFocus,onBlur:yt.onBlur},tt.createElement(Ue.aM.Provider,{value:Ft},yt.children)))},Lt=ye(9432),ot=ye(73331),Rt=ye(15277),xt=ye(2738),zt=ye(8654),Ae=ye(59412),te=function(yt,an){var Gt={};for(var Vt in yt)Object.prototype.hasOwnProperty.call(yt,Vt)&&an.indexOf(Vt)<0&&(Gt[Vt]=yt[Vt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Vt=Object.getOwnPropertySymbols(yt);hn<Vt.length;hn++)an.indexOf(Vt[hn])<0&&Object.prototype.propertyIsEnumerable.call(yt,Vt[hn])&&(Gt[Vt[hn]]=yt[Vt[hn]]);return Gt};const ne=yt=>yt?tt.createElement(Rt.Z,null):tt.createElement(ot.Z,null),he={click:"onClick",hover:"onMouseOver"};var ge=tt.forwardRef((yt,an)=>{const{visibilityToggle:Gt=!0}=yt,Vt=typeof Gt=="object"&&Gt.visible!==void 0,[hn,yn]=(0,tt.useState)(()=>Vt?Gt.visible:!1),vt=(0,tt.useRef)(null);tt.useEffect(()=>{Vt&&yn(Gt.visible)},[Vt,Gt]);const je=(0,Ae.Z)(vt),wt=()=>{const{disabled:Le}=yt;Le||(hn&&je(),yn(xe=>{var Ne;const De=!xe;return typeof Gt=="object"&&((Ne=Gt.onVisibleChange)===null||Ne===void 0||Ne.call(Gt,De)),De}))},tn=Le=>{const{action:xe="click",iconRender:Ne=ne}=yt,De=he[xe]||"",ve=Ne(hn),$e={[De]:wt,className:`${Le}-icon`,key:"passwordIcon",onMouseDown:mt=>{mt.preventDefault()},onMouseUp:mt=>{mt.preventDefault()}};return tt.cloneElement(tt.isValidElement(ve)?ve:tt.createElement("span",null,ve),$e)},{className:bn,prefixCls:Ft,inputPrefixCls:Xt,size:Cn}=yt,Qn=te(yt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:gn}=tt.useContext(At.E_),Gn=gn("input",Xt),bt=gn("input-password",Ft),zn=Gt&&tn(bt),ai=Oe()(bt,bn,{[`${bt}-${Cn}`]:!!Cn}),He=Object.assign(Object.assign({},(0,xt.Z)(Qn,["suffix","iconRender","visibilityToggle"])),{type:hn?"text":"password",className:ai,prefixCls:Gn,suffix:zn});return Cn&&(He.size=Cn),tt.createElement(Lt.Z,Object.assign({ref:(0,zt.sQ)(an,vt)},He))}),me=ye(47472),we=ye(92343),Fe=ye(3113),Be=ye(19716),Ie=ye(33234),We=function(yt,an){var Gt={};for(var Vt in yt)Object.prototype.hasOwnProperty.call(yt,Vt)&&an.indexOf(Vt)<0&&(Gt[Vt]=yt[Vt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Vt=Object.getOwnPropertySymbols(yt);hn<Vt.length;hn++)an.indexOf(Vt[hn])<0&&Object.prototype.propertyIsEnumerable.call(yt,Vt[hn])&&(Gt[Vt[hn]]=yt[Vt[hn]]);return Gt},Xe=tt.forwardRef((yt,an)=>{const{prefixCls:Gt,inputPrefixCls:Vt,className:hn,size:yn,suffix:vt,enterButton:je=!1,addonAfter:wt,loading:tn,disabled:bn,onSearch:Ft,onChange:Xt,onCompositionStart:Cn,onCompositionEnd:Qn}=yt,gn=We(yt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Gn,direction:bt}=tt.useContext(At.E_),zn=tt.useRef(!1),ai=Gn("input-search",Gt),He=Gn("input",Vt),{compactSize:Le}=(0,Ie.ri)(ai,bt),xe=(0,Be.Z)(Jt=>{var Rn;return(Rn=yn!=null?yn:Le)!==null&&Rn!==void 0?Rn:Jt}),Ne=tt.useRef(null),De=Jt=>{Jt&&Jt.target&&Jt.type==="click"&&Ft&&Ft(Jt.target.value,Jt,{source:"clear"}),Xt&&Xt(Jt)},ve=Jt=>{var Rn;document.activeElement===((Rn=Ne.current)===null||Rn===void 0?void 0:Rn.input)&&Jt.preventDefault()},$e=Jt=>{var Rn,Tn;Ft&&Ft((Tn=(Rn=Ne.current)===null||Rn===void 0?void 0:Rn.input)===null||Tn===void 0?void 0:Tn.value,Jt,{source:"input"})},mt=Jt=>{zn.current||tn||$e(Jt)},et=typeof je=="boolean"?tt.createElement(me.Z,null):null,Ve=`${ai}-button`;let gt;const ft=je||{},rt=ft.type&&ft.type.__ANT_BUTTON===!0;rt||ft.type==="button"?gt=(0,we.Tm)(ft,Object.assign({onMouseDown:ve,onClick:Jt=>{var Rn,Tn;(Tn=(Rn=ft==null?void 0:ft.props)===null||Rn===void 0?void 0:Rn.onClick)===null||Tn===void 0||Tn.call(Rn,Jt),$e(Jt)},key:"enterButton"},rt?{className:Ve,size:xe}:{})):gt=tt.createElement(Fe.ZP,{className:Ve,type:je?"primary":void 0,size:xe,disabled:bn,key:"enterButton",onMouseDown:ve,onClick:$e,loading:tn,icon:et},je),wt&&(gt=[gt,(0,we.Tm)(wt,{key:"addonAfter"})]);const Mt=Oe()(ai,{[`${ai}-rtl`]:bt==="rtl",[`${ai}-${xe}`]:!!xe,[`${ai}-with-button`]:!!je},hn),pn=Jt=>{zn.current=!0,Cn==null||Cn(Jt)},dn=Jt=>{zn.current=!1,Qn==null||Qn(Jt)};return tt.createElement(Lt.Z,Object.assign({ref:(0,zt.sQ)(Ne,an),onPressEnter:mt},gn,{size:xe,onCompositionStart:pn,onCompositionEnd:dn,prefixCls:He,addonAfter:gt,suffix:vt,onChange:De,className:Mt,disabled:bn}))}),dt=ye(1643);const Ze=Lt.Z;Ze.Group=Ot,Ze.Search=Xe,Ze.TextArea=dt.Z,Ze.Password=ge;var Zt=Ze},45818:function(Kn,kn,ye){"use strict";ye.d(kn,{D:function(){return me},Z:function(){return Be}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(We,nt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},We,{ref:nt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke,Lt=ye(33853),ot=ye(38819),Rt=ye(92310),xt=ye.n(Rt),zt=ye(2738),te=Ie=>!isNaN(parseFloat(Ie))&&isFinite(Ie),ne=ye(36355),he=ye(84966),se=function(Ie,We){var nt={};for(var Xe in Ie)Object.prototype.hasOwnProperty.call(Ie,Xe)&&We.indexOf(Xe)<0&&(nt[Xe]=Ie[Xe]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Xe=Object.getOwnPropertySymbols(Ie);dt<Xe.length;dt++)We.indexOf(Xe[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Xe[dt])&&(nt[Xe[dt]]=Ie[Xe[dt]]);return nt};const ge={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},me=Oe.createContext({}),we=(()=>{let Ie=0;return function(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ie+=1,`${We}${Ie}`}})();var Be=Oe.forwardRef((Ie,We)=>{const{prefixCls:nt,className:Xe,trigger:dt,children:Ze,defaultCollapsed:Zt=!1,theme:yt="dark",style:an={},collapsible:Gt=!1,reverseArrow:Vt=!1,width:hn=200,collapsedWidth:yn=80,zeroWidthTriggerStyle:vt,breakpoint:je,onCollapse:wt,onBreakpoint:tn}=Ie,bn=se(Ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ft}=(0,Oe.useContext)(he.Gs),[Xt,Cn]=(0,Oe.useState)("collapsed"in Ie?Ie.collapsed:Zt),[Qn,gn]=(0,Oe.useState)(!1);(0,Oe.useEffect)(()=>{"collapsed"in Ie&&Cn(Ie.collapsed)},[Ie.collapsed]);const Gn=(xe,Ne)=>{"collapsed"in Ie||Cn(xe),wt==null||wt(xe,Ne)},bt=(0,Oe.useRef)();bt.current=xe=>{gn(xe.matches),tn==null||tn(xe.matches),Xt!==xe.matches&&Gn(xe.matches,"responsive")},(0,Oe.useEffect)(()=>{function xe(De){return bt.current(De)}let Ne;if(typeof window!="undefined"){const{matchMedia:De}=window;if(De&&je&&je in ge){Ne=De(`(max-width: ${ge[je]})`);try{Ne.addEventListener("change",xe)}catch(ve){Ne.addListener(xe)}xe(Ne)}}return()=>{try{Ne==null||Ne.removeEventListener("change",xe)}catch(De){Ne==null||Ne.removeListener(xe)}}},[je]),(0,Oe.useEffect)(()=>{const xe=we("ant-sider-");return Ft.addSider(xe),()=>Ft.removeSider(xe)},[]);const zn=()=>{Gn(!Xt,"clickTrigger")},{getPrefixCls:ai}=(0,Oe.useContext)(ne.E_),He=()=>{const xe=ai("layout-sider",nt),Ne=(0,zt.Z)(bn,["collapsed"]),De=Xt?yn:hn,ve=te(De)?`${De}px`:String(De),$e=parseFloat(String(yn||0))===0?Oe.createElement("span",{onClick:zn,className:xt()(`${xe}-zero-width-trigger`,`${xe}-zero-width-trigger-${Vt?"right":"left"}`),style:vt},dt||Oe.createElement(Ot,null)):null,Ve={expanded:Vt?Oe.createElement(ot.Z,null):Oe.createElement(Lt.Z,null),collapsed:Vt?Oe.createElement(Lt.Z,null):Oe.createElement(ot.Z,null)}[Xt?"collapsed":"expanded"],gt=dt!==null?$e||Oe.createElement("div",{className:`${xe}-trigger`,onClick:zn,style:{width:ve}},dt||Ve):null,ft=Object.assign(Object.assign({},an),{flex:`0 0 ${ve}`,maxWidth:ve,minWidth:ve,width:ve}),rt=xt()(xe,`${xe}-${yt}`,{[`${xe}-collapsed`]:!!Xt,[`${xe}-has-trigger`]:Gt&&dt!==null&&!$e,[`${xe}-below`]:!!Qn,[`${xe}-zero-width`]:parseFloat(ve)===0},Xe);return Oe.createElement("aside",Object.assign({className:rt},Ne,{style:ft,ref:We}),Oe.createElement("div",{className:`${xe}-children`},Ze),Gt||Qn&&$e?gt:null)},Le=Oe.useMemo(()=>({siderCollapsed:Xt}),[Xt]);return Oe.createElement(me.Provider,{value:Le},He())})},84966:function(Kn,kn,ye){"use strict";ye.d(kn,{VY:function(){return me},$_:function(){return ge},h4:function(){return se},Gs:function(){return zt},ZP:function(){return we}});var Ce=ye(19127),Oe=ye(92310),tt=ye.n(Oe),At=ye(2738),Ue=ye(59301),Je=ye(36355),ke=ye(83116),Lt=Fe=>{const{componentCls:Be,bodyBg:Ie,lightSiderBg:We,lightTriggerBg:nt,lightTriggerColor:Xe}=Fe;return{[`${Be}-sider-light`]:{background:We,[`${Be}-sider-trigger`]:{color:Xe,background:nt},[`${Be}-sider-zero-width-trigger`]:{color:Xe,background:nt,border:`1px solid ${Ie}`,borderInlineStart:0}}}};const ot=Fe=>{const{antCls:Be,componentCls:Ie,colorText:We,triggerColor:nt,footerBg:Xe,triggerBg:dt,headerHeight:Ze,headerPadding:Zt,headerColor:yt,footerPadding:an,triggerHeight:Gt,zeroTriggerHeight:Vt,zeroTriggerWidth:hn,motionDurationMid:yn,motionDurationSlow:vt,fontSize:je,borderRadius:wt,bodyBg:tn,headerBg:bn,siderBg:Ft}=Fe;return{[Ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:tn,"&, *":{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:Ft,transition:`all ${yn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Be}-menu${Be}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Gt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Gt,color:nt,lineHeight:`${Gt}px`,textAlign:"center",background:dt,cursor:"pointer",transition:`all ${yn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ze,insetInlineEnd:-hn,zIndex:1,width:hn,height:Vt,color:nt,fontSize:Fe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ft,borderStartStartRadius:0,borderStartEndRadius:wt,borderEndEndRadius:wt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${vt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${vt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-hn,borderStartStartRadius:wt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:wt}}}}},Lt(Fe)),{"&-rtl":{direction:"rtl"}}),[`${Ie}-header`]:{height:Ze,padding:Zt,color:yt,lineHeight:`${Ze}px`,background:bn,[`${Be}-menu`]:{lineHeight:"inherit"}},[`${Ie}-footer`]:{padding:an,color:We,fontSize:je,background:Xe},[`${Ie}-content`]:{flex:"auto",minHeight:0}}};var Rt=(0,ke.Z)("Layout",Fe=>[ot(Fe)],Fe=>{const{colorBgLayout:Be,controlHeight:Ie,controlHeightLG:We,colorText:nt,controlHeightSM:Xe,marginXXS:dt,colorTextLightSolid:Ze,colorBgContainer:Zt}=Fe,yt=We*1.25;return{colorBgHeader:"#001529",colorBgBody:Be,colorBgTrigger:"#002140",bodyBg:Be,headerBg:"#001529",headerHeight:Ie*2,headerPadding:`0 ${yt}px`,headerColor:nt,footerPadding:`${Xe}px ${yt}px`,footerBg:Be,siderBg:"#001529",triggerHeight:We+dt*2,triggerBg:"#002140",triggerColor:Ze,zeroTriggerWidth:We,zeroTriggerHeight:We,lightSiderBg:Zt,lightTriggerBg:Zt,lightTriggerColor:nt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),xt=function(Fe,Be){var Ie={};for(var We in Fe)Object.prototype.hasOwnProperty.call(Fe,We)&&Be.indexOf(We)<0&&(Ie[We]=Fe[We]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,We=Object.getOwnPropertySymbols(Fe);nt<We.length;nt++)Be.indexOf(We[nt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,We[nt])&&(Ie[We[nt]]=Fe[We[nt]]);return Ie};const zt=Ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ae(Fe){let{suffixCls:Be,tagName:Ie,displayName:We}=Fe;return nt=>Ue.forwardRef((dt,Ze)=>Ue.createElement(nt,Object.assign({ref:Ze,suffixCls:Be,tagName:Ie},dt)))}const te=Ue.forwardRef((Fe,Be)=>{const{prefixCls:Ie,suffixCls:We,className:nt,tagName:Xe}=Fe,dt=xt(Fe,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ze}=Ue.useContext(Je.E_),Zt=Ze("layout",Ie),[yt,an]=Rt(Zt),Gt=We?`${Zt}-${We}`:Zt;return yt(Ue.createElement(Xe,Object.assign({className:tt()(Ie||Gt,nt,an),ref:Be},dt)))}),ne=Ue.forwardRef((Fe,Be)=>{const{direction:Ie}=Ue.useContext(Je.E_),[We,nt]=Ue.useState([]),{prefixCls:Xe,className:dt,rootClassName:Ze,children:Zt,hasSider:yt,tagName:an,style:Gt}=Fe,Vt=xt(Fe,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),hn=(0,At.Z)(Vt,["suffixCls"]),{getPrefixCls:yn,layout:vt}=Ue.useContext(Je.E_),je=yn("layout",Xe),[wt,tn]=Rt(je),bn=tt()(je,{[`${je}-has-sider`]:typeof yt=="boolean"?yt:We.length>0,[`${je}-rtl`]:Ie==="rtl"},vt==null?void 0:vt.className,dt,Ze,tn),Ft=Ue.useMemo(()=>({siderHook:{addSider:Xt=>{nt(Cn=>[].concat((0,Ce.Z)(Cn),[Xt]))},removeSider:Xt=>{nt(Cn=>Cn.filter(Qn=>Qn!==Xt))}}}),[]);return wt(Ue.createElement(zt.Provider,{value:Ft},Ue.createElement(an,Object.assign({ref:Be,className:bn,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Gt)},hn),Zt)))}),he=Ae({tagName:"div",displayName:"Layout"})(ne),se=Ae({suffixCls:"header",tagName:"header",displayName:"Header"})(te),ge=Ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(te),me=Ae({suffixCls:"content",tagName:"main",displayName:"Content"})(te);var we=he},40875:function(Kn,kn,ye){"use strict";ye.d(kn,{J:function(){return Je}});var Ce=ye(59301),Oe=ye(33234),tt=ye(70425),At=function(ke,Ot){var Lt={};for(var ot in ke)Object.prototype.hasOwnProperty.call(ke,ot)&&Ot.indexOf(ot)<0&&(Lt[ot]=ke[ot]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,ot=Object.getOwnPropertySymbols(ke);Rt<ot.length;Rt++)Ot.indexOf(ot[Rt])<0&&Object.prototype.propertyIsEnumerable.call(ke,ot[Rt])&&(Lt[ot[Rt]]=ke[ot[Rt]]);return Lt};const Ue=Ce.createContext(null),Je=Ce.forwardRef((ke,Ot)=>{const{children:Lt}=ke,ot=At(ke,["children"]),Rt=Ce.useContext(Ue),xt=Ce.useMemo(()=>Object.assign(Object.assign({},Rt),ot),[Rt,ot.prefixCls,ot.mode,ot.selectable]);return Ce.createElement(Ue.Provider,{value:xt},Ce.createElement(Oe.BR,null,(0,tt.supportNodeRef)(Lt)?Ce.cloneElement(Lt,{ref:Ot}):Lt))});kn.Z=Ue},20834:function(Kn,kn,ye){"use strict";ye.d(kn,{default:function(){return Le}});var Ce=ye(15285),Oe=ye(59301),tt=ye(45818),At=ye(92310),Ue=ye.n(At),Je=ye(36355),ke=function(xe,Ne){var De={};for(var ve in xe)Object.prototype.hasOwnProperty.call(xe,ve)&&Ne.indexOf(ve)<0&&(De[ve]=xe[ve]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,ve=Object.getOwnPropertySymbols(xe);$e<ve.length;$e++)Ne.indexOf(ve[$e])<0&&Object.prototype.propertyIsEnumerable.call(xe,ve[$e])&&(De[ve[$e]]=xe[ve[$e]]);return De},Lt=xe=>{const{prefixCls:Ne,className:De,dashed:ve}=xe,$e=ke(xe,["prefixCls","className","dashed"]),{getPrefixCls:mt}=Oe.useContext(Je.E_),et=mt("menu",Ne),Ve=Ue()({[`${et}-item-divider-dashed`]:!!ve},De);return Oe.createElement(Ce.iz,Object.assign({className:Ve},$e))},ot=ye(11592),Rt=ye(2738),xt=ye(6848),zt=ye(92343),te=(0,Oe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),he=xe=>{var Ne;const{className:De,children:ve,icon:$e,title:mt,danger:et}=xe,{prefixCls:Ve,firstLevel:gt,direction:ft,disableMenuItemTitleTooltip:rt,inlineCollapsed:Mt}=Oe.useContext(te),pn=cn=>{const On=Oe.createElement("span",{className:`${Ve}-title-content`},ve);return(!$e||(0,zt.l$)(ve)&&ve.type==="span")&&ve&&cn&>&&typeof ve=="string"?Oe.createElement("div",{className:`${Ve}-inline-collapsed-noicon`},ve.charAt(0)):On},{siderCollapsed:dn}=Oe.useContext(tt.D);let Jt=mt;typeof mt=="undefined"?Jt=gt?ve:"":mt===!1&&(Jt="");const Rn={title:Jt};!dn&&!Mt&&(Rn.title=null,Rn.open=!1);const Tn=(0,ot.Z)(ve).length;let Et=Oe.createElement(Ce.ck,Object.assign({},(0,Rt.Z)(xe,["title","icon","danger"]),{className:Ue()({[`${Ve}-item-danger`]:et,[`${Ve}-item-only-child`]:($e?Tn+1:Tn)===1},De),title:typeof mt=="string"?mt:void 0}),(0,zt.Tm)($e,{className:Ue()((0,zt.l$)($e)?(Ne=$e.props)===null||Ne===void 0?void 0:Ne.className:"",`${Ve}-item-icon`)}),pn(Mt));return rt||(Et=Oe.createElement(xt.Z,Object.assign({},Rn,{placement:ft==="rtl"?"left":"right",overlayClassName:`${Ve}-inline-collapsed-tooltip`}),Et)),Et},ge=xe=>{var Ne;const{popupClassName:De,icon:ve,title:$e,theme:mt}=xe,et=Oe.useContext(te),{prefixCls:Ve,inlineCollapsed:gt,theme:ft}=et,rt=(0,Ce.Xl)();let Mt;if(!ve)Mt=gt&&!rt.length&&$e&&typeof $e=="string"?Oe.createElement("div",{className:`${Ve}-inline-collapsed-noicon`},$e.charAt(0)):Oe.createElement("span",{className:`${Ve}-title-content`},$e);else{const dn=(0,zt.l$)($e)&&$e.type==="span";Mt=Oe.createElement(Oe.Fragment,null,(0,zt.Tm)(ve,{className:Ue()((0,zt.l$)(ve)?(Ne=ve.props)===null||Ne===void 0?void 0:Ne.className:"",`${Ve}-item-icon`)}),dn?$e:Oe.createElement("span",{className:`${Ve}-title-content`},$e))}const pn=Oe.useMemo(()=>Object.assign(Object.assign({},et),{firstLevel:!1}),[et]);return Oe.createElement(te.Provider,{value:pn},Oe.createElement(Ce.Wd,Object.assign({},(0,Rt.Z)(xe,["icon"]),{title:Mt,popupClassName:Ue()(Ve,De,`${Ve}-${mt||ft}`)})))},me=ye(18785),we=ye(70425),Fe=ye(62892),Be=ye(40875),Ie=function(xe,Ne){var De={};for(var ve in xe)Object.prototype.hasOwnProperty.call(xe,ve)&&Ne.indexOf(ve)<0&&(De[ve]=xe[ve]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,ve=Object.getOwnPropertySymbols(xe);$e<ve.length;$e++)Ne.indexOf(ve[$e])<0&&Object.prototype.propertyIsEnumerable.call(xe,ve[$e])&&(De[ve[$e]]=xe[ve[$e]]);return De};function We(xe){return(xe||[]).map((Ne,De)=>{if(Ne&&typeof Ne=="object"){const ve=Ne,{label:$e,children:mt,key:et,type:Ve}=ve,gt=Ie(ve,["label","children","key","type"]),ft=et!=null?et:`tmp-${De}`;return mt||Ve==="group"?Ve==="group"?Oe.createElement(Ce.BW,Object.assign({key:ft},gt,{title:$e}),We(mt)):Oe.createElement(ge,Object.assign({key:ft},gt,{title:$e}),We(mt)):Ve==="divider"?Oe.createElement(Lt,Object.assign({key:ft},gt)):Oe.createElement(he,Object.assign({key:ft},gt),$e)}return null}).filter(Ne=>Ne)}function nt(xe){return Oe.useMemo(()=>xe&&We(xe),[xe])}var Xe=ye(64993),dt=ye(17313),Ze=ye(8378),Zt=ye(13826),yt=ye(29878),an=ye(83116),Gt=ye(37613),hn=xe=>{const{componentCls:Ne,motionDurationSlow:De,horizontalLineHeight:ve,colorSplit:$e,lineWidth:mt,lineType:et,itemPaddingInline:Ve}=xe;return{[`${Ne}-horizontal`]:{lineHeight:ve,border:0,borderBottom:`${mt}px ${et} ${$e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ne}-item, ${Ne}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ve},[`> ${Ne}-item:hover,
|
|
|
> ${Ne}-item-active,
|
|
|
> ${Ne}-submenu ${Ne}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ne}-item, ${Ne}-submenu-title`]:{transition:[`border-color ${De}`,`background ${De}`].join(",")},[`${Ne}-submenu-arrow`]:{display:"none"}}}},vt=xe=>{let{componentCls:Ne,menuArrowOffset:De}=xe;return{[`${Ne}-rtl`]:{direction:"rtl"},[`${Ne}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ne}-rtl${Ne}-vertical,
|
|
|
${Ne}-submenu-rtl ${Ne}-vertical`]:{[`${Ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${De})`},"&::after":{transform:`rotate(45deg) translateY(${De})`}}}}};const je=xe=>Object.assign({},(0,dt.oN)(xe));var tn=(xe,Ne)=>{const{componentCls:De,itemColor:ve,itemSelectedColor:$e,groupTitleColor:mt,itemBg:et,subMenuItemBg:Ve,itemSelectedBg:gt,activeBarHeight:ft,activeBarWidth:rt,activeBarBorderWidth:Mt,motionDurationSlow:pn,motionEaseInOut:dn,motionEaseOut:Jt,itemPaddingInline:Rn,motionDurationMid:Tn,itemHoverColor:Et,lineType:cn,colorSplit:On,itemDisabledColor:Ct,dangerItemColor:_n,dangerItemHoverColor:ui,dangerItemSelectedColor:Ci,dangerItemActiveBg:ci,dangerItemSelectedBg:Hi,itemHoverBg:qi,itemActiveBg:Xi,menuSubMenuBg:eo,horizontalItemSelectedColor:Oo,horizontalItemSelectedBg:vo,horizontalItemBorderRadius:Ri,horizontalItemHoverBg:Co,popupBg:Bn}=xe;return{[`${De}-${Ne}, ${De}-${Ne} > ${De}`]:{color:ve,background:et,[`&${De}-root:focus-visible`]:Object.assign({},je(xe)),[`${De}-item-group-title`]:{color:mt},[`${De}-submenu-selected`]:{[`> ${De}-submenu-title`]:{color:$e}},[`${De}-item-disabled, ${De}-submenu-disabled`]:{color:`${Ct} !important`},[`${De}-item:not(${De}-item-selected):not(${De}-submenu-selected)`]:{[`&:hover, > ${De}-submenu-title:hover`]:{color:Et}},[`&:not(${De}-horizontal)`]:{[`${De}-item:not(${De}-item-selected)`]:{"&:hover":{backgroundColor:qi},"&:active":{backgroundColor:Xi}},[`${De}-submenu-title`]:{"&:hover":{backgroundColor:qi},"&:active":{backgroundColor:Xi}}},[`${De}-item-danger`]:{color:_n,[`&${De}-item:hover`]:{[`&:not(${De}-item-selected):not(${De}-submenu-selected)`]:{color:ui}},[`&${De}-item:active`]:{background:ci}},[`${De}-item a`]:{"&, &:hover":{color:"inherit"}},[`${De}-item-selected`]:{color:$e,[`&${De}-item-danger`]:{color:Ci},"a, a:hover":{color:"inherit"}},[`& ${De}-item-selected`]:{backgroundColor:gt,[`&${De}-item-danger`]:{backgroundColor:Hi}},[`${De}-item, ${De}-submenu-title`]:{[`&:not(${De}-item-disabled):focus-visible`]:Object.assign({},je(xe))},[`&${De}-submenu > ${De}`]:{backgroundColor:eo},[`&${De}-popup > ${De}`]:{backgroundColor:Bn},[`&${De}-horizontal`]:Object.assign(Object.assign({},Ne==="dark"?{borderBottom:0}:{}),{[`> ${De}-item, > ${De}-submenu`]:{top:Mt,marginTop:-Mt,marginBottom:0,borderRadius:Ri,"&::after":{position:"absolute",insetInline:Rn,bottom:0,borderBottom:`${ft}px solid transparent`,transition:`border-color ${pn} ${dn}`,content:'""'},"&:hover, &-active, &-open":{background:Co,"&::after":{borderBottomWidth:ft,borderBottomColor:Oo}},"&-selected":{color:Oo,backgroundColor:vo,"&:hover":{backgroundColor:vo},"&::after":{borderBottomWidth:ft,borderBottomColor:Oo}}}}),[`&${De}-root`]:{[`&${De}-inline, &${De}-vertical`]:{borderInlineEnd:`${Mt}px ${cn} ${On}`}},[`&${De}-inline`]:{[`${De}-sub${De}-inline`]:{background:Ve},[`${De}-item, ${De}-submenu-title`]:Mt&&rt?{width:`calc(100% + ${Mt}px)`}:{},[`${De}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${rt}px solid ${$e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Tn} ${Jt}`,`opacity ${Tn} ${Jt}`].join(","),content:'""'},[`&${De}-item-danger`]:{"&::after":{borderInlineEndColor:Ci}}},[`${De}-selected, ${De}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Tn} ${dn}`,`opacity ${Tn} ${dn}`].join(",")}}}}}};const bn=xe=>{const{componentCls:Ne,itemHeight:De,itemMarginInline:ve,padding:$e,menuArrowSize:mt,marginXS:et,itemMarginBlock:Ve}=xe,gt=$e+mt+et;return{[`${Ne}-item`]:{position:"relative",overflow:"hidden"},[`${Ne}-item, ${Ne}-submenu-title`]:{height:De,lineHeight:`${De}px`,paddingInline:$e,overflow:"hidden",textOverflow:"ellipsis",marginInline:ve,marginBlock:Ve,width:`calc(100% - ${ve*2}px)`},[`> ${Ne}-item,
|
|
|
> ${Ne}-submenu > ${Ne}-submenu-title`]:{height:De,lineHeight:`${De}px`},[`${Ne}-item-group-list ${Ne}-submenu-title,
|
|
|
${Ne}-submenu-title`]:{paddingInlineEnd:gt}}};var Xt=xe=>{const{componentCls:Ne,iconCls:De,itemHeight:ve,colorTextLightSolid:$e,dropdownWidth:mt,controlHeightLG:et,motionDurationMid:Ve,motionEaseOut:gt,paddingXL:ft,itemMarginInline:rt,fontSizeLG:Mt,motionDurationSlow:pn,paddingXS:dn,boxShadowSecondary:Jt,collapsedWidth:Rn,collapsedIconSize:Tn}=xe,Et={height:ve,lineHeight:`${ve}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ne]:{"&-inline, &-vertical":Object.assign({[`&${Ne}-root`]:{boxShadow:"none"}},bn(xe))},[`${Ne}-submenu-popup`]:{[`${Ne}-vertical`]:Object.assign(Object.assign({},bn(xe)),{boxShadow:Jt})}},{[`${Ne}-submenu-popup ${Ne}-vertical${Ne}-sub`]:{minWidth:mt,maxHeight:`calc(100vh - ${et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ne}-inline`]:{width:"100%",[`&${Ne}-root`]:{[`${Ne}-item, ${Ne}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${pn}`,`background ${pn}`,`padding ${Ve} ${gt}`].join(","),[`> ${Ne}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ne}-sub${Ne}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ne}-submenu > ${Ne}-submenu-title`]:Et,[`& ${Ne}-item-group-title`]:{paddingInlineStart:ft}},[`${Ne}-item`]:Et}},{[`${Ne}-inline-collapsed`]:{width:Rn,[`&${Ne}-root`]:{[`${Ne}-item, ${Ne}-submenu ${Ne}-submenu-title`]:{[`> ${Ne}-inline-collapsed-noicon`]:{fontSize:Mt,textAlign:"center"}}},[`> ${Ne}-item,
|
|
|
> ${Ne}-item-group > ${Ne}-item-group-list > ${Ne}-item,
|
|
|
> ${Ne}-item-group > ${Ne}-item-group-list > ${Ne}-submenu > ${Ne}-submenu-title,
|
|
|
> ${Ne}-submenu > ${Ne}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Mt/2}px - ${rt}px)`,textOverflow:"clip",[`
|
|
|
${Ne}-submenu-arrow,
|
|
|
${Ne}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Ne}-item-icon, ${De}`]:{margin:0,fontSize:Tn,lineHeight:`${ve}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ne}-item-icon, ${De}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ne}-item-icon, ${De}`]:{display:"none"},"a, a:hover":{color:$e}},[`${Ne}-item-group-title`]:Object.assign(Object.assign({},dt.vS),{paddingInline:dn})}}]};const Cn=xe=>{const{componentCls:Ne,motionDurationSlow:De,motionDurationMid:ve,motionEaseInOut:$e,motionEaseOut:mt,iconCls:et,iconSize:Ve,iconMarginInlineEnd:gt}=xe;return{[`${Ne}-item, ${Ne}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${De}`,`background ${De}`,`padding ${De} ${$e}`].join(","),[`${Ne}-item-icon, ${et}`]:{minWidth:Ve,fontSize:Ve,transition:[`font-size ${ve} ${mt}`,`margin ${De} ${$e}`,`color ${De}`].join(","),"+ span":{marginInlineStart:gt,opacity:1,transition:[`opacity ${De} ${$e}`,`margin ${De}`,`color ${De}`].join(",")}},[`${Ne}-item-icon`]:Object.assign({},(0,dt.Ro)()),[`&${Ne}-item-only-child`]:{[`> ${et}, > ${Ne}-item-icon`]:{marginInlineEnd:0}}},[`${Ne}-item-disabled, ${Ne}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ne}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Qn=xe=>{const{componentCls:Ne,motionDurationSlow:De,motionEaseInOut:ve,borderRadius:$e,menuArrowSize:mt,menuArrowOffset:et}=xe;return{[`${Ne}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:xe.margin,width:mt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${De} ${ve}, opacity ${De}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:mt*.6,height:mt*.15,backgroundColor:"currentcolor",borderRadius:$e,transition:[`background ${De} ${ve}`,`transform ${De} ${ve}`,`top ${De} ${ve}`,`color ${De} ${ve}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${et})`},"&::after":{transform:`rotate(-45deg) translateY(${et})`}}}}},gn=xe=>{const{antCls:Ne,componentCls:De,fontSize:ve,motionDurationSlow:$e,motionDurationMid:mt,motionEaseInOut:et,paddingXS:Ve,padding:gt,colorSplit:ft,lineWidth:rt,zIndexPopup:Mt,borderRadiusLG:pn,subMenuItemBorderRadius:dn,menuArrowSize:Jt,menuArrowOffset:Rn,lineType:Tn,menuPanelMaskInset:Et,groupTitleLineHeight:cn,groupTitleFontSize:On}=xe;return[{"":{[`${De}`]:Object.assign(Object.assign({},(0,dt.dF)()),{"&-hidden":{display:"none"}})},[`${De}-submenu-hidden`]:{display:"none"}},{[De]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,dt.Wf)(xe)),(0,dt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ve,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${$e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${De}-item`]:{flex:"none"}},[`${De}-item, ${De}-submenu, ${De}-submenu-title`]:{borderRadius:xe.itemBorderRadius},[`${De}-item-group-title`]:{padding:`${Ve}px ${gt}px`,fontSize:On,lineHeight:cn,transition:`all ${$e}`},[`&-horizontal ${De}-submenu`]:{transition:[`border-color ${$e} ${et}`,`background ${$e} ${et}`].join(",")},[`${De}-submenu, ${De}-submenu-inline`]:{transition:[`border-color ${$e} ${et}`,`background ${$e} ${et}`,`padding ${mt} ${et}`].join(",")},[`${De}-submenu ${De}-sub`]:{cursor:"initial",transition:[`background ${$e} ${et}`,`padding ${$e} ${et}`].join(",")},[`${De}-title-content`]:{transition:`color ${$e}`},[`${De}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${De}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ft,borderStyle:Tn,borderWidth:0,borderTopWidth:rt,marginBlock:rt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Cn(xe)),{[`${De}-item-group`]:{[`${De}-item-group-list`]:{margin:0,padding:0,[`${De}-item, ${De}-submenu-title`]:{paddingInline:`${ve*2}px ${gt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Mt,borderRadius:pn,boxShadow:"none",transformOrigin:"0 0",[`&${De}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Et}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Et},"\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:xe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:xe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:xe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:xe.paddingXS},[`> ${De}`]:Object.assign(Object.assign(Object.assign({borderRadius:pn},Cn(xe)),Qn(xe)),{[`${De}-item, ${De}-submenu > ${De}-submenu-title`]:{borderRadius:dn},[`${De}-submenu-title::after`]:{transition:`transform ${$e} ${et}`}})}}),Qn(xe)),{[`&-inline-collapsed ${De}-submenu-arrow,
|
|
|
&-inline ${De}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Rn})`},"&::after":{transform:`rotate(45deg) translateX(-${Rn})`}},[`${De}-submenu-open${De}-submenu-inline > ${De}-submenu-title > ${De}-submenu-arrow`]:{transform:`translateY(-${Jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Rn})`},"&::before":{transform:`rotate(45deg) translateX(${Rn})`}}})},{[`${Ne}-layout-header`]:{[De]:{lineHeight:"inherit"}}}]};var Gn=(xe,Ne)=>(0,an.Z)("Menu",ve=>{if(Ne===!1)return[];const{colorBgElevated:$e,colorPrimary:mt,colorTextLightSolid:et,controlHeightLG:Ve,fontSize:gt,darkItemColor:ft,darkDangerItemColor:rt,darkItemBg:Mt,darkSubMenuItemBg:pn,darkItemSelectedColor:dn,darkItemSelectedBg:Jt,darkDangerItemSelectedBg:Rn,darkItemHoverBg:Tn,darkGroupTitleColor:Et,darkItemHoverColor:cn,darkItemDisabledColor:On,darkDangerItemHoverColor:Ct,darkDangerItemSelectedColor:_n,darkDangerItemActiveBg:ui}=ve,Ci=gt/7*5,ci=(0,Gt.TS)(ve,{menuArrowSize:Ci,menuHorizontalHeight:Ve*1.15,menuArrowOffset:`${Ci*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:$e}),Hi=(0,Gt.TS)(ci,{itemColor:ft,itemHoverColor:cn,groupTitleColor:Et,itemSelectedColor:dn,itemBg:Mt,popupBg:Mt,subMenuItemBg:pn,itemActiveBg:"transparent",itemSelectedBg:Jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Tn,itemDisabledColor:On,dangerItemColor:rt,dangerItemHoverColor:Ct,dangerItemSelectedColor:_n,dangerItemActiveBg:ui,dangerItemSelectedBg:Rn,menuSubMenuBg:pn,horizontalItemSelectedColor:et,horizontalItemSelectedBg:mt});return[gn(ci),hn(ci),Xt(ci),tn(ci,"light"),tn(Hi,"dark"),vt(ci),(0,Ze.Z)(ci),(0,Zt.oN)(ci,"slide-up"),(0,Zt.oN)(ci,"slide-down"),(0,yt._y)(ci,"zoom-big")]},ve=>{const{colorPrimary:$e,colorError:mt,colorTextDisabled:et,colorErrorBg:Ve,colorText:gt,colorTextDescription:ft,colorBgContainer:rt,colorFillAlter:Mt,colorFillContent:pn,lineWidth:dn,lineWidthBold:Jt,controlItemBgActive:Rn,colorBgTextHover:Tn,controlHeightLG:Et,lineHeight:cn,colorBgElevated:On,marginXXS:Ct,padding:_n,fontSize:ui,controlHeightSM:Ci,fontSizeLG:ci,colorTextLightSolid:Hi,colorErrorHover:qi}=ve,Xi=new Xe.C(Hi).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ve.zIndexPopupBase+50,radiusItem:ve.borderRadiusLG,itemBorderRadius:ve.borderRadiusLG,radiusSubMenuItem:ve.borderRadiusSM,subMenuItemBorderRadius:ve.borderRadiusSM,colorItemText:gt,itemColor:gt,colorItemTextHover:gt,itemHoverColor:gt,colorItemTextHoverHorizontal:$e,horizontalItemHoverColor:$e,colorGroupTitle:ft,groupTitleColor:ft,colorItemTextSelected:$e,itemSelectedColor:$e,colorItemTextSelectedHorizontal:$e,horizontalItemSelectedColor:$e,colorItemBg:rt,itemBg:rt,colorItemBgHover:Tn,itemHoverBg:Tn,colorItemBgActive:pn,itemActiveBg:Rn,colorSubItemBg:Mt,subMenuItemBg:Mt,colorItemBgSelected:Rn,itemSelectedBg:Rn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Jt,activeBarHeight:Jt,colorActiveBarBorderSize:dn,activeBarBorderWidth:dn,colorItemTextDisabled:et,itemDisabledColor:et,colorDangerItemText:mt,dangerItemColor:mt,colorDangerItemTextHover:mt,dangerItemHoverColor:mt,colorDangerItemTextSelected:mt,dangerItemSelectedColor:mt,colorDangerItemBgActive:Ve,dangerItemActiveBg:Ve,colorDangerItemBgSelected:Ve,dangerItemSelectedBg:Ve,itemMarginInline:ve.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Et,groupTitleLineHeight:cn,collapsedWidth:Et*2,popupBg:On,itemMarginBlock:Ct,itemPaddingInline:_n,horizontalLineHeight:`${Et*1.15}px`,iconSize:ui,iconMarginInlineEnd:Ci-ui,collapsedIconSize:ci,groupTitleFontSize:ui,darkItemDisabledColor:new Xe.C(Hi).setAlpha(.25).toRgbString(),darkItemColor:Xi,darkDangerItemColor:mt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Hi,darkItemSelectedBg:$e,darkDangerItemSelectedBg:mt,darkItemHoverBg:"transparent",darkGroupTitleColor:Xi,darkItemHoverColor:Hi,darkDangerItemHoverColor:qi,darkDangerItemSelectedColor:Hi,darkDangerItemActiveBg:mt}},{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"]]})(xe),bt=function(xe,Ne){var De={};for(var ve in xe)Object.prototype.hasOwnProperty.call(xe,ve)&&Ne.indexOf(ve)<0&&(De[ve]=xe[ve]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,ve=Object.getOwnPropertySymbols(xe);$e<ve.length;$e++)Ne.indexOf(ve[$e])<0&&Object.prototype.propertyIsEnumerable.call(xe,ve[$e])&&(De[ve[$e]]=xe[ve[$e]]);return De},ai=(0,Oe.forwardRef)((xe,Ne)=>{var De,ve;const $e=Oe.useContext(Be.Z),mt=$e||{},{getPrefixCls:et,getPopupContainer:Ve,direction:gt,menu:ft}=Oe.useContext(Je.E_),rt=et(),{prefixCls:Mt,className:pn,style:dn,theme:Jt="light",expandIcon:Rn,_internalDisableMenuItemTitleTooltip:Tn,inlineCollapsed:Et,siderCollapsed:cn,items:On,children:Ct,rootClassName:_n,mode:ui,selectable:Ci,onClick:ci,overflowedIndicatorPopupClassName:Hi}=xe,qi=bt(xe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Xi=(0,Rt.Z)(qi,["collapsedWidth"]),eo=nt(On)||Ct;(De=mt.validator)===null||De===void 0||De.call(mt,{mode:ui});const Oo=(0,we.useEvent)(function(){var Jn;ci==null||ci.apply(void 0,arguments),(Jn=mt.onClick)===null||Jn===void 0||Jn.call(mt)}),vo=mt.mode||ui,Ri=Ci!=null?Ci:mt.selectable,Co=Oe.useMemo(()=>cn!==void 0?cn:Et,[Et,cn]),Bn={horizontal:{motionName:`${rt}-slide-up`},inline:(0,Fe.Z)(rt),other:{motionName:`${rt}-zoom-big`}},be=et("menu",Mt||mt.prefixCls),[Mi,Ei]=Gn(be,!$e),Dt=Ue()(`${be}-${Jt}`,ft==null?void 0:ft.className,pn);let En;if(typeof Rn=="function")En=Rn;else if(Rn===null||Rn===!1)En=null;else if(mt.expandIcon===null||mt.expandIcon===!1)En=null;else{const Jn=Rn!=null?Rn:mt.expandIcon;En=(0,zt.Tm)(Jn,{className:Ue()(`${be}-submenu-expand-icon`,(0,zt.l$)(Jn)?(ve=Jn.props)===null||ve===void 0?void 0:ve.className:"")})}const Fn=Oe.useMemo(()=>({prefixCls:be,inlineCollapsed:Co||!1,direction:gt,firstLevel:!0,theme:Jt,mode:vo,disableMenuItemTitleTooltip:Tn}),[be,Co,gt,Tn,Jt]);return Mi(Oe.createElement(Be.Z.Provider,{value:null},Oe.createElement(te.Provider,{value:Fn},Oe.createElement(Ce.ZP,Object.assign({getPopupContainer:Ve,overflowedIndicator:Oe.createElement(me.Z,null),overflowedIndicatorPopupClassName:Ue()(be,`${be}-${Jt}`,Hi),mode:vo,selectable:Ri,onClick:Oo},Xi,{inlineCollapsed:Co,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),dn),className:Dt,prefixCls:be,direction:gt,defaultMotions:Bn,expandIcon:En,ref:Ne,rootClassName:Ue()(_n,Ei)}),eo))))});const He=(0,Oe.forwardRef)((xe,Ne)=>{const De=(0,Oe.useRef)(null),ve=Oe.useContext(tt.D);return(0,Oe.useImperativeHandle)(Ne,()=>({menu:De.current,focus:$e=>{var mt;(mt=De.current)===null||mt===void 0||mt.focus($e)}})),Oe.createElement(ai,Object.assign({ref:De},xe,ve))});He.Item=he,He.SubMenu=ge,He.Divider=Lt,He.ItemGroup=Ce.BW;var Le=He},58421:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return mt}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(Ve,gt){return Oe.createElement(Ue.Z,(0,Ce.Z)({},Ve,{ref:gt,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke,Lt=ye(49198),ot=ye(33853),Rt=ye(38819),xt=ye(92310),zt=ye.n(xt),Ae=ye(90493),te=ye(44127),ne=ye(52884),he=ye(95727),se=ye(65711),ge=ye(85745),me=ye(26112),we={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Fe=we,Be=ye(91735),Ie=function(et){(0,se.Z)(gt,et);var Ve=(0,ge.Z)(gt);function gt(){var ft;(0,ne.Z)(this,gt);for(var rt=arguments.length,Mt=new Array(rt),pn=0;pn<rt;pn++)Mt[pn]=arguments[pn];return ft=Ve.call.apply(Ve,[this].concat(Mt)),ft.state={goInputText:""},ft.getValidValue=function(){var dn=ft.state.goInputText;return!dn||Number.isNaN(dn)?void 0:Number(dn)},ft.buildOptionText=function(dn){return"".concat(dn," ").concat(ft.props.locale.items_per_page)},ft.changeSize=function(dn){ft.props.changeSize(Number(dn))},ft.handleChange=function(dn){ft.setState({goInputText:dn.target.value})},ft.handleBlur=function(dn){var Jt=ft.props,Rn=Jt.goButton,Tn=Jt.quickGo,Et=Jt.rootPrefixCls,cn=ft.state.goInputText;Rn||cn===""||(ft.setState({goInputText:""}),!(dn.relatedTarget&&(dn.relatedTarget.className.indexOf("".concat(Et,"-item-link"))>=0||dn.relatedTarget.className.indexOf("".concat(Et,"-item"))>=0))&&Tn(ft.getValidValue()))},ft.go=function(dn){var Jt=ft.state.goInputText;Jt!==""&&(dn.keyCode===Fe.ENTER||dn.type==="click")&&(ft.setState({goInputText:""}),ft.props.quickGo(ft.getValidValue()))},ft}return(0,he.Z)(gt,[{key:"getPageSizeOptions",value:function(){var rt=this.props,Mt=rt.pageSize,pn=rt.pageSizeOptions;return pn.some(function(dn){return dn.toString()===Mt.toString()})?pn:pn.concat([Mt.toString()]).sort(function(dn,Jt){var Rn=Number.isNaN(Number(dn))?0:Number(dn),Tn=Number.isNaN(Number(Jt))?0:Number(Jt);return Rn-Tn})}},{key:"render",value:function(){var rt=this,Mt=this.props,pn=Mt.pageSize,dn=Mt.locale,Jt=Mt.rootPrefixCls,Rn=Mt.changeSize,Tn=Mt.quickGo,Et=Mt.goButton,cn=Mt.selectComponentClass,On=Mt.buildOptionText,Ct=Mt.selectPrefixCls,_n=Mt.disabled,ui=this.state.goInputText,Ci="".concat(Jt,"-options"),ci=cn,Hi=null,qi=null,Xi=null;if(!Rn&&!Tn)return null;var eo=this.getPageSizeOptions();if(Rn&&ci){var Oo=eo.map(function(vo,Ri){return Oe.createElement(ci.Option,{key:Ri,value:vo.toString()},(On||rt.buildOptionText)(vo))});Hi=Oe.createElement(ci,{disabled:_n,prefixCls:Ct,showSearch:!1,className:"".concat(Ci,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(pn||eo[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ri){return Ri.parentNode},"aria-label":dn.page_size,defaultOpen:!1},Oo)}return Tn&&(Et&&(Xi=typeof Et=="boolean"?Oe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:_n,className:"".concat(Ci,"-quick-jumper-button")},dn.jump_to_confirm):Oe.createElement("span",{onClick:this.go,onKeyUp:this.go},Et)),qi=Oe.createElement("div",{className:"".concat(Ci,"-quick-jumper")},dn.jump_to,Oe.createElement("input",{disabled:_n,type:"text",value:ui,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":dn.page}),dn.page,Xi)),Oe.createElement("li",{className:"".concat(Ci)},Hi,qi)}}]),gt}(Oe.Component);Ie.defaultProps={pageSizeOptions:["10","20","50","100"]};var We=Ie,nt=function(Ve){var gt,ft=Ve.rootPrefixCls,rt=Ve.page,Mt=Ve.active,pn=Ve.className,dn=Ve.showTitle,Jt=Ve.onClick,Rn=Ve.onKeyPress,Tn=Ve.itemRender,Et="".concat(ft,"-item"),cn=zt()(Et,"".concat(Et,"-").concat(rt),(gt={},(0,Ae.Z)(gt,"".concat(Et,"-active"),Mt),(0,Ae.Z)(gt,"".concat(Et,"-disabled"),!rt),(0,Ae.Z)(gt,Ve.className,pn),gt)),On=function(){Jt(rt)},Ct=function(Ci){Rn(Ci,Jt,rt)},_n=Tn(rt,"page",Oe.createElement("a",{rel:"nofollow"},rt));return _n?Oe.createElement("li",{title:dn?rt.toString():null,className:cn,onClick:On,onKeyPress:Ct,tabIndex:0},_n):null},Xe=nt;function dt(){}function Ze(et){var Ve=Number(et);return typeof Ve=="number"&&!Number.isNaN(Ve)&&isFinite(Ve)&&Math.floor(Ve)===Ve}var Zt=function(Ve,gt,ft){return ft};function yt(et,Ve,gt){var ft=typeof et=="undefined"?Ve.pageSize:et;return Math.floor((gt.total-1)/ft)+1}var an=function(et){(0,se.Z)(gt,et);var Ve=(0,ge.Z)(gt);function gt(ft){var rt;(0,ne.Z)(this,gt),rt=Ve.call(this,ft),rt.paginationNode=Oe.createRef(),rt.getJumpPrevPage=function(){return Math.max(1,rt.state.current-(rt.props.showLessItems?3:5))},rt.getJumpNextPage=function(){return Math.min(yt(void 0,rt.state,rt.props),rt.state.current+(rt.props.showLessItems?3:5))},rt.getItemIcon=function(Rn,Tn){var Et=rt.props.prefixCls,cn=Rn||Oe.createElement("button",{type:"button","aria-label":Tn,className:"".concat(Et,"-item-link")});return typeof Rn=="function"&&(cn=Oe.createElement(Rn,(0,te.Z)({},rt.props))),cn},rt.isValid=function(Rn){var Tn=rt.props.total;return Ze(Rn)&&Rn!==rt.state.current&&Ze(Tn)&&Tn>0},rt.shouldDisplayQuickJumper=function(){var Rn=rt.props,Tn=Rn.showQuickJumper,Et=Rn.total,cn=rt.state.pageSize;return Et<=cn?!1:Tn},rt.handleKeyDown=function(Rn){(Rn.keyCode===Fe.ARROW_UP||Rn.keyCode===Fe.ARROW_DOWN)&&Rn.preventDefault()},rt.handleKeyUp=function(Rn){var Tn=rt.getValidValue(Rn),Et=rt.state.currentInputValue;Tn!==Et&&rt.setState({currentInputValue:Tn}),Rn.keyCode===Fe.ENTER?rt.handleChange(Tn):Rn.keyCode===Fe.ARROW_UP?rt.handleChange(Tn-1):Rn.keyCode===Fe.ARROW_DOWN&&rt.handleChange(Tn+1)},rt.handleBlur=function(Rn){var Tn=rt.getValidValue(Rn);rt.handleChange(Tn)},rt.changePageSize=function(Rn){var Tn=rt.state.current,Et=yt(Rn,rt.state,rt.props);Tn=Tn>Et?Et:Tn,Et===0&&(Tn=rt.state.current),typeof Rn=="number"&&("pageSize"in rt.props||rt.setState({pageSize:Rn}),"current"in rt.props||rt.setState({current:Tn,currentInputValue:Tn})),rt.props.onShowSizeChange(Tn,Rn),"onChange"in rt.props&&rt.props.onChange&&rt.props.onChange(Tn,Rn)},rt.handleChange=function(Rn){var Tn=rt.props,Et=Tn.disabled,cn=Tn.onChange,On=rt.state,Ct=On.pageSize,_n=On.current,ui=On.currentInputValue;if(rt.isValid(Rn)&&!Et){var Ci=yt(void 0,rt.state,rt.props),ci=Rn;return Rn>Ci?ci=Ci:Rn<1&&(ci=1),"current"in rt.props||rt.setState({current:ci}),ci!==ui&&rt.setState({currentInputValue:ci}),cn(ci,Ct),ci}return _n},rt.prev=function(){rt.hasPrev()&&rt.handleChange(rt.state.current-1)},rt.next=function(){rt.hasNext()&&rt.handleChange(rt.state.current+1)},rt.jumpPrev=function(){rt.handleChange(rt.getJumpPrevPage())},rt.jumpNext=function(){rt.handleChange(rt.getJumpNextPage())},rt.hasPrev=function(){return rt.state.current>1},rt.hasNext=function(){return rt.state.current<yt(void 0,rt.state,rt.props)},rt.runIfEnter=function(Rn,Tn){if(Rn.key==="Enter"||Rn.charCode===13){for(var Et=arguments.length,cn=new Array(Et>2?Et-2:0),On=2;On<Et;On++)cn[On-2]=arguments[On];Tn.apply(void 0,cn)}},rt.runIfEnterPrev=function(Rn){rt.runIfEnter(Rn,rt.prev)},rt.runIfEnterNext=function(Rn){rt.runIfEnter(Rn,rt.next)},rt.runIfEnterJumpPrev=function(Rn){rt.runIfEnter(Rn,rt.jumpPrev)},rt.runIfEnterJumpNext=function(Rn){rt.runIfEnter(Rn,rt.jumpNext)},rt.handleGoTO=function(Rn){(Rn.keyCode===Fe.ENTER||Rn.type==="click")&&rt.handleChange(rt.state.currentInputValue)},rt.renderPrev=function(Rn){var Tn=rt.props,Et=Tn.prevIcon,cn=Tn.itemRender,On=cn(Rn,"prev",rt.getItemIcon(Et,"prev page")),Ct=!rt.hasPrev();return(0,Oe.isValidElement)(On)?(0,Oe.cloneElement)(On,{disabled:Ct}):On},rt.renderNext=function(Rn){var Tn=rt.props,Et=Tn.nextIcon,cn=Tn.itemRender,On=cn(Rn,"next",rt.getItemIcon(Et,"next page")),Ct=!rt.hasNext();return(0,Oe.isValidElement)(On)?(0,Oe.cloneElement)(On,{disabled:Ct}):On};var Mt=ft.onChange!==dt,pn="current"in ft;pn&&!Mt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var dn=ft.defaultCurrent;"current"in ft&&(dn=ft.current);var Jt=ft.defaultPageSize;return"pageSize"in ft&&(Jt=ft.pageSize),dn=Math.min(dn,yt(Jt,void 0,ft)),rt.state={current:dn,currentInputValue:dn,pageSize:Jt},rt}return(0,he.Z)(gt,[{key:"componentDidUpdate",value:function(rt,Mt){var pn=this.props.prefixCls;if(Mt.current!==this.state.current&&this.paginationNode.current){var dn=this.paginationNode.current.querySelector(".".concat(pn,"-item-").concat(Mt.current));if(dn&&document.activeElement===dn){var Jt;dn==null||(Jt=dn.blur)===null||Jt===void 0||Jt.call(dn)}}}},{key:"getValidValue",value:function(rt){var Mt=rt.target.value,pn=yt(void 0,this.state,this.props),dn=this.state.currentInputValue,Jt;return Mt===""?Jt=Mt:Number.isNaN(Number(Mt))?Jt=dn:Mt>=pn?Jt=pn:Jt=Number(Mt),Jt}},{key:"getShowSizeChanger",value:function(){var rt=this.props,Mt=rt.showSizeChanger,pn=rt.total,dn=rt.totalBoundaryShowSizeChanger;return typeof Mt!="undefined"?Mt:pn>dn}},{key:"render",value:function(){var rt=this.props,Mt=rt.prefixCls,pn=rt.className,dn=rt.style,Jt=rt.disabled,Rn=rt.hideOnSinglePage,Tn=rt.total,Et=rt.locale,cn=rt.showQuickJumper,On=rt.showLessItems,Ct=rt.showTitle,_n=rt.showTotal,ui=rt.simple,Ci=rt.itemRender,ci=rt.showPrevNextJumpers,Hi=rt.jumpPrevIcon,qi=rt.jumpNextIcon,Xi=rt.selectComponentClass,eo=rt.selectPrefixCls,Oo=rt.pageSizeOptions,vo=this.state,Ri=vo.current,Co=vo.pageSize,Bn=vo.currentInputValue;if(Rn===!0&&Tn<=Co)return null;var be=yt(void 0,this.state,this.props),Mi=[],Ei=null,Dt=null,En=null,Fn=null,Jn=null,wn=cn&&cn.goButton,Nn=On?1:2,ct=Ri-1>0?Ri-1:0,Pt=Ri+1<be?Ri+1:be,Re=(0,me.Z)(this.props,{aria:!0,data:!0}),Tt=_n&&Oe.createElement("li",{className:"".concat(Mt,"-total-text")},_n(Tn,[Tn===0?0:(Ri-1)*Co+1,Ri*Co>Tn?Tn:Ri*Co]));if(ui){wn&&(typeof wn=="boolean"?Jn=Oe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Et.jump_to_confirm):Jn=Oe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},wn),Jn=Oe.createElement("li",{title:Ct?"".concat(Et.jump_to).concat(Ri,"/").concat(be):null,className:"".concat(Mt,"-simple-pager")},Jn));var _t=this.renderPrev(ct);return Oe.createElement("ul",(0,Ce.Z)({className:zt()(Mt,"".concat(Mt,"-simple"),(0,Ae.Z)({},"".concat(Mt,"-disabled"),Jt),pn),style:dn,ref:this.paginationNode},Re),Tt,_t?Oe.createElement("li",{title:Ct?Et.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:zt()("".concat(Mt,"-prev"),(0,Ae.Z)({},"".concat(Mt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},_t):null,Oe.createElement("li",{title:Ct?"".concat(Ri,"/").concat(be):null,className:"".concat(Mt,"-simple-pager")},Oe.createElement("input",{type:"text",value:Bn,disabled:Jt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Oe.createElement("span",{className:"".concat(Mt,"-slash")},"/"),be),Oe.createElement("li",{title:Ct?Et.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:zt()("".concat(Mt,"-next"),(0,Ae.Z)({},"".concat(Mt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Pt)),Jn)}if(be<=3+Nn*2){var ht={locale:Et,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ct,itemRender:Ci};be||Mi.push(Oe.createElement(Xe,(0,Ce.Z)({},ht,{key:"noPager",page:1,className:"".concat(Mt,"-item-disabled")})));for(var Ye=1;Ye<=be;Ye+=1){var Wt=Ri===Ye;Mi.push(Oe.createElement(Xe,(0,Ce.Z)({},ht,{key:Ye,page:Ye,active:Wt})))}}else{var Ut=On?Et.prev_3:Et.prev_5,fn=On?Et.next_3:Et.next_5,Dn=Ci(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Hi,"prev page")),at=Ci(this.getJumpNextPage(),"jump-next",this.getItemIcon(qi,"next page"));ci&&(Ei=Dn?Oe.createElement("li",{title:Ct?Ut:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:zt()("".concat(Mt,"-jump-prev"),(0,Ae.Z)({},"".concat(Mt,"-jump-prev-custom-icon"),!!Hi))},Dn):null,Dt=at?Oe.createElement("li",{title:Ct?fn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:zt()("".concat(Mt,"-jump-next"),(0,Ae.Z)({},"".concat(Mt,"-jump-next-custom-icon"),!!qi))},at):null),Fn=Oe.createElement(Xe,{locale:Et,last:!0,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:be,page:be,active:!1,showTitle:Ct,itemRender:Ci}),En=Oe.createElement(Xe,{locale:Et,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ct,itemRender:Ci});var ln=Math.max(1,Ri-Nn),Hn=Math.min(Ri+Nn,be);Ri-1<=Nn&&(Hn=1+Nn*2),be-Ri<=Nn&&(ln=be-Nn*2);for(var ii=ln;ii<=Hn;ii+=1){var jt=Ri===ii;Mi.push(Oe.createElement(Xe,{locale:Et,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ii,page:ii,active:jt,showTitle:Ct,itemRender:Ci}))}Ri-1>=Nn*2&&Ri!==3&&(Mi[0]=(0,Oe.cloneElement)(Mi[0],{className:"".concat(Mt,"-item-after-jump-prev")}),Mi.unshift(Ei)),be-Ri>=Nn*2&&Ri!==be-2&&(Mi[Mi.length-1]=(0,Oe.cloneElement)(Mi[Mi.length-1],{className:"".concat(Mt,"-item-before-jump-next")}),Mi.push(Dt)),ln!==1&&Mi.unshift(En),Hn!==be&&Mi.push(Fn)}var sn=!this.hasPrev()||!be,It=!this.hasNext()||!be,on=this.renderPrev(ct),qt=this.renderNext(Pt);return Oe.createElement("ul",(0,Ce.Z)({className:zt()(Mt,pn,(0,Ae.Z)({},"".concat(Mt,"-disabled"),Jt)),style:dn,ref:this.paginationNode},Re),Tt,on?Oe.createElement("li",{title:Ct?Et.prev_page:null,onClick:this.prev,tabIndex:sn?null:0,onKeyPress:this.runIfEnterPrev,className:zt()("".concat(Mt,"-prev"),(0,Ae.Z)({},"".concat(Mt,"-disabled"),sn)),"aria-disabled":sn},on):null,Mi,qt?Oe.createElement("li",{title:Ct?Et.next_page:null,onClick:this.next,tabIndex:It?null:0,onKeyPress:this.runIfEnterNext,className:zt()("".concat(Mt,"-next"),(0,Ae.Z)({},"".concat(Mt,"-disabled"),It)),"aria-disabled":It},qt):null,Oe.createElement(We,{disabled:Jt,locale:Et,rootPrefixCls:Mt,selectComponentClass:Xi,selectPrefixCls:eo,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ri,pageSize:Co,pageSizeOptions:Oo,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:wn}))}}],[{key:"getDerivedStateFromProps",value:function(rt,Mt){var pn={};if("current"in rt&&(pn.current=rt.current,rt.current!==Mt.current&&(pn.currentInputValue=pn.current)),"pageSize"in rt&&rt.pageSize!==Mt.pageSize){var dn=Mt.current,Jt=yt(rt.pageSize,Mt,rt);dn=dn>Jt?Jt:dn,"current"in rt||(pn.current=dn,pn.currentInputValue=dn),pn.pageSize=rt.pageSize}return pn}}]),gt}(Oe.Component);an.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:dt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:dt,locale:Be.Z,style:{},itemRender:Zt,totalBoundaryShowSizeChanger:50};var Gt=an,Vt=ye(22075),hn=ye(36355),yn=ye(19716),vt=ye(8628),je=ye(9763),wt=ye(57809);const tn=et=>Oe.createElement(wt.default,Object.assign({},et,{showSearch:!0,size:"small"})),bn=et=>Oe.createElement(wt.default,Object.assign({},et,{showSearch:!0,size:"middle"}));tn.Option=wt.default.Option,bn.Option=wt.default.Option;var Ft=ye(9937),Xt=ye(17313),Cn=ye(83116),Qn=ye(37613);const gn=et=>{const{componentCls:Ve}=et;return{[`${Ve}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ve}-item-link`]:{color:et.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ve}-item-link`]:{color:et.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ve}-disabled`]:{cursor:"not-allowed",[`${Ve}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:et.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:et.colorBorder,backgroundColor:et.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:et.itemActiveBgDisabled},a:{color:et.itemActiveColorDisabled}}},[`${Ve}-item-link`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ve}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ve}-simple-pager`]:{color:et.colorTextDisabled},[`${Ve}-jump-prev, ${Ve}-jump-next`]:{[`${Ve}-item-link-icon`]:{opacity:0},[`${Ve}-item-ellipsis`]:{opacity:1}}},[`&${Ve}-simple`]:{[`${Ve}-prev, ${Ve}-next`]:{[`&${Ve}-disabled ${Ve}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Gn=et=>{const{componentCls:Ve}=et;return{[`&${Ve}-mini ${Ve}-total-text, &${Ve}-mini ${Ve}-simple-pager`]:{height:et.itemSizeSM,lineHeight:`${et.itemSizeSM}px`},[`&${Ve}-mini ${Ve}-item`]:{minWidth:et.itemSizeSM,height:et.itemSizeSM,margin:0,lineHeight:`${et.itemSizeSM-2}px`},[`&${Ve}-mini:not(${Ve}-disabled) ${Ve}-item:not(${Ve}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:et.colorBgTextHover},"&:active":{backgroundColor:et.colorBgTextActive}},[`&${Ve}-mini ${Ve}-prev, &${Ve}-mini ${Ve}-next`]:{minWidth:et.itemSizeSM,height:et.itemSizeSM,margin:0,lineHeight:`${et.itemSizeSM}px`},[`&${Ve}-mini:not(${Ve}-disabled)`]:{[`${Ve}-prev, ${Ve}-next`]:{[`&:hover ${Ve}-item-link`]:{backgroundColor:et.colorBgTextHover},[`&:active ${Ve}-item-link`]:{backgroundColor:et.colorBgTextActive},[`&${Ve}-disabled:hover ${Ve}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Ve}-mini ${Ve}-prev ${Ve}-item-link,
|
|
|
&${Ve}-mini ${Ve}-next ${Ve}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:et.itemSizeSM,lineHeight:`${et.itemSizeSM}px`}},[`&${Ve}-mini ${Ve}-jump-prev, &${Ve}-mini ${Ve}-jump-next`]:{height:et.itemSizeSM,marginInlineEnd:0,lineHeight:`${et.itemSizeSM}px`},[`&${Ve}-mini ${Ve}-options`]:{marginInlineStart:et.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:et.miniOptionsSizeChangerTop},"&-quick-jumper":{height:et.itemSizeSM,lineHeight:`${et.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ft.x0)(et)),{width:et.paginationMiniQuickJumperInputWidth,height:et.controlHeightSM})}}}},bt=et=>{const{componentCls:Ve}=et;return{[`
|
|
|
&${Ve}-simple ${Ve}-prev,
|
|
|
&${Ve}-simple ${Ve}-next
|
|
|
`]:{height:et.itemSizeSM,lineHeight:`${et.itemSizeSM}px`,verticalAlign:"top",[`${Ve}-item-link`]:{height:et.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:et.colorBgTextHover},"&:active":{backgroundColor:et.colorBgTextActive},"&::after":{height:et.itemSizeSM,lineHeight:`${et.itemSizeSM}px`}}},[`&${Ve}-simple ${Ve}-simple-pager`]:{display:"inline-block",height:et.itemSizeSM,marginInlineEnd:et.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:et.marginXS,padding:`0 ${et.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:et.itemInputBg,border:`${et.lineWidth}px ${et.lineType} ${et.colorBorder}`,borderRadius:et.borderRadius,outline:"none",transition:`border-color ${et.motionDurationMid}`,color:"inherit","&:hover":{borderColor:et.colorPrimary},"&:focus":{borderColor:et.colorPrimaryHover,boxShadow:`${et.inputOutlineOffset}px 0 ${et.controlOutlineWidth}px ${et.controlOutline}`},"&[disabled]":{color:et.colorTextDisabled,backgroundColor:et.colorBgContainerDisabled,borderColor:et.colorBorder,cursor:"not-allowed"}}}}},zn=et=>{const{componentCls:Ve}=et;return{[`${Ve}-jump-prev, ${Ve}-jump-next`]:{outline:0,[`${Ve}-item-container`]:{position:"relative",[`${Ve}-item-link-icon`]:{color:et.colorPrimary,fontSize:et.fontSizeSM,opacity:0,transition:`all ${et.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ve}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:et.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:et.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:et.paginationEllipsisTextIndent,opacity:1,transition:`all ${et.motionDurationMid}`}},"&:hover":{[`${Ve}-item-link-icon`]:{opacity:1},[`${Ve}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Ve}-prev,
|
|
|
${Ve}-jump-prev,
|
|
|
${Ve}-jump-next
|
|
|
`]:{marginInlineEnd:et.marginXS},[`
|
|
|
${Ve}-prev,
|
|
|
${Ve}-next,
|
|
|
${Ve}-jump-prev,
|
|
|
${Ve}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:et.itemSize,height:et.itemSize,color:et.colorText,fontFamily:et.fontFamily,lineHeight:`${et.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}`},[`${Ve}-prev, ${Ve}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:et.colorText,cursor:"pointer",userSelect:"none"},[`${Ve}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:et.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${et.lineWidth}px ${et.lineType} transparent`,borderRadius:et.borderRadius,outline:"none",transition:`all ${et.motionDurationMid}`},[`&:hover ${Ve}-item-link`]:{backgroundColor:et.colorBgTextHover},[`&:active ${Ve}-item-link`]:{backgroundColor:et.colorBgTextActive},[`&${Ve}-disabled:hover`]:{[`${Ve}-item-link`]:{backgroundColor:"transparent"}}},[`${Ve}-slash`]:{marginInlineEnd:et.paginationSlashMarginInlineEnd,marginInlineStart:et.paginationSlashMarginInlineStart},[`${Ve}-options`]:{display:"inline-block",marginInlineStart:et.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:et.controlHeight,marginInlineStart:et.marginXS,lineHeight:`${et.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ft.ik)(et)),{width:et.controlHeightLG*1.25,height:et.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:et.marginXS,marginInlineEnd:et.marginXS})}}}},ai=et=>{const{componentCls:Ve}=et;return{[`${Ve}-item`]:{display:"inline-block",minWidth:et.itemSize,height:et.itemSize,marginInlineEnd:et.marginXS,fontFamily:et.fontFamily,lineHeight:`${et.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${et.lineWidth}px ${et.lineType} transparent`,borderRadius:et.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${et.paginationItemPaddingInline}px`,color:et.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ve}-item-active)`]:{"&:hover":{transition:`all ${et.motionDurationMid}`,backgroundColor:et.colorBgTextHover},"&:active":{backgroundColor:et.colorBgTextActive}},"&-active":{fontWeight:et.fontWeightStrong,backgroundColor:et.itemActiveBg,borderColor:et.colorPrimary,a:{color:et.colorPrimary},"&:hover":{borderColor:et.colorPrimaryHover},"&:hover a":{color:et.colorPrimaryHover}}}}},He=et=>{const{componentCls:Ve}=et;return{[Ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(et)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ve}-total-text`]:{display:"inline-block",height:et.itemSize,marginInlineEnd:et.marginXS,lineHeight:`${et.itemSize-2}px`,verticalAlign:"middle"}}),ai(et)),zn(et)),bt(et)),Gn(et)),gn(et)),{[`@media only screen and (max-width: ${et.screenLG}px)`]:{[`${Ve}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${et.screenSM}px)`]:{[`${Ve}-options`]:{display:"none"}}}),[`&${et.componentCls}-rtl`]:{direction:"rtl"}}},Le=et=>{const{componentCls:Ve}=et;return{[`${Ve}${Ve}-disabled:not(${Ve}-mini)`]:{"&, &:hover":{[`${Ve}-item-link`]:{borderColor:et.colorBorder}},"&:focus-visible":{[`${Ve}-item-link`]:{borderColor:et.colorBorder}},[`${Ve}-item, ${Ve}-item-link`]:{backgroundColor:et.colorBgContainerDisabled,borderColor:et.colorBorder,[`&:hover:not(${Ve}-item-active)`]:{backgroundColor:et.colorBgContainerDisabled,borderColor:et.colorBorder,a:{color:et.colorTextDisabled}},[`&${Ve}-item-active`]:{backgroundColor:et.itemActiveBgDisabled}},[`${Ve}-prev, ${Ve}-next`]:{"&:hover button":{backgroundColor:et.colorBgContainerDisabled,borderColor:et.colorBorder,color:et.colorTextDisabled},[`${Ve}-item-link`]:{backgroundColor:et.colorBgContainerDisabled,borderColor:et.colorBorder}}},[`${Ve}:not(${Ve}-mini)`]:{[`${Ve}-prev, ${Ve}-next`]:{"&:hover button":{borderColor:et.colorPrimaryHover,backgroundColor:et.itemBg},[`${Ve}-item-link`]:{backgroundColor:et.itemLinkBg,borderColor:et.colorBorder},[`&:hover ${Ve}-item-link`]:{borderColor:et.colorPrimary,backgroundColor:et.itemBg,color:et.colorPrimary},[`&${Ve}-disabled`]:{[`${Ve}-item-link`]:{borderColor:et.colorBorder,color:et.colorTextDisabled}}},[`${Ve}-item`]:{backgroundColor:et.itemBg,border:`${et.lineWidth}px ${et.lineType} ${et.colorBorder}`,[`&:hover:not(${Ve}-item-active)`]:{borderColor:et.colorPrimary,backgroundColor:et.itemBg,a:{color:et.colorPrimary}},"&-active":{borderColor:et.colorPrimary}}}}},xe=et=>{const{componentCls:Ve}=et;return{[`${Ve}:not(${Ve}-disabled)`]:{[`${Ve}-item`]:Object.assign({},(0,Xt.Qy)(et)),[`${Ve}-jump-prev, ${Ve}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ve}-item-link-icon`]:{opacity:1},[`${Ve}-item-ellipsis`]:{opacity:0}},(0,Xt.oN)(et))},[`${Ve}-prev, ${Ve}-next`]:{[`&:focus-visible ${Ve}-item-link`]:Object.assign({},(0,Xt.oN)(et))}}}};var Ne=(0,Cn.Z)("Pagination",et=>{const Ve=(0,Qn.TS)(et,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:et.marginXXS/2,paginationMiniQuickJumperInputWidth:et.controlHeightLG*1.1,paginationItemPaddingInline:et.marginXXS*1.5,paginationEllipsisLetterSpacing:et.marginXXS/2,paginationSlashMarginInlineStart:et.marginXXS,paginationSlashMarginInlineEnd:et.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ft.e5)(et),(0,Ft.TM)(et));return[He(Ve),xe(Ve),et.wireframe&&Le(Ve)]},et=>({itemBg:et.colorBgContainer,itemSize:et.controlHeight,itemSizeSM:et.controlHeightSM,itemActiveBg:et.colorBgContainer,itemLinkBg:et.colorBgContainer,itemActiveColorDisabled:et.colorTextDisabled,itemActiveBgDisabled:et.controlItemBgActiveDisabled,itemInputBg:et.colorBgContainer,miniOptionsSizeChangerTop:0})),De=function(et,Ve){var gt={};for(var ft in et)Object.prototype.hasOwnProperty.call(et,ft)&&Ve.indexOf(ft)<0&&(gt[ft]=et[ft]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ft=Object.getOwnPropertySymbols(et);rt<ft.length;rt++)Ve.indexOf(ft[rt])<0&&Object.prototype.propertyIsEnumerable.call(et,ft[rt])&&(gt[ft[rt]]=et[ft[rt]]);return gt},$e=et=>{const{prefixCls:Ve,selectPrefixCls:gt,className:ft,rootClassName:rt,style:Mt,size:pn,locale:dn,selectComponentClass:Jt,responsive:Rn,showSizeChanger:Tn}=et,Et=De(et,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:cn}=(0,vt.Z)(Rn),{getPrefixCls:On,direction:Ct,pagination:_n={}}=Oe.useContext(hn.E_),ui=On("pagination",Ve),[Ci,ci]=Ne(ui),Hi=Tn!=null?Tn:_n.showSizeChanger,qi=Oe.useMemo(()=>{const be=Oe.createElement("span",{className:`${ui}-item-ellipsis`},"\u2022\u2022\u2022"),Mi=Oe.createElement("button",{className:`${ui}-item-link`,type:"button",tabIndex:-1},Ct==="rtl"?Oe.createElement(Rt.Z,null):Oe.createElement(ot.Z,null)),Ei=Oe.createElement("button",{className:`${ui}-item-link`,type:"button",tabIndex:-1},Ct==="rtl"?Oe.createElement(ot.Z,null):Oe.createElement(Rt.Z,null)),Dt=Oe.createElement("a",{className:`${ui}-item-link`},Oe.createElement("div",{className:`${ui}-item-container`},Ct==="rtl"?Oe.createElement(Lt.Z,{className:`${ui}-item-link-icon`}):Oe.createElement(Ot,{className:`${ui}-item-link-icon`}),be)),En=Oe.createElement("a",{className:`${ui}-item-link`},Oe.createElement("div",{className:`${ui}-item-container`},Ct==="rtl"?Oe.createElement(Ot,{className:`${ui}-item-link-icon`}):Oe.createElement(Lt.Z,{className:`${ui}-item-link-icon`}),be));return{prevIcon:Mi,nextIcon:Ei,jumpPrevIcon:Dt,jumpNextIcon:En}},[Ct,ui]),[Xi]=(0,je.Z)("Pagination",Vt.Z),eo=Object.assign(Object.assign({},Xi),dn),Oo=(0,yn.Z)(pn),vo=Oo==="small"||!!(cn&&!Oo&&Rn),Ri=On("select",gt),Co=zt()({[`${ui}-mini`]:vo,[`${ui}-rtl`]:Ct==="rtl"},_n==null?void 0:_n.className,ft,rt,ci),Bn=Object.assign(Object.assign({},_n==null?void 0:_n.style),Mt);return Ci(Oe.createElement(Gt,Object.assign({},qi,Et,{style:Bn,prefixCls:ui,selectPrefixCls:Ri,className:Co,selectComponentClass:Jt||(vo?tn:bn),locale:eo,showSizeChanger:Hi})))},mt=$e},93948:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Tn}});var Ce=ye(59301),Oe=ye(29679),tt=ye(40001),At=ye(19248),Ue=ye(99267),Je=ye(92310),ke=ye.n(Je),Ot=ye(2738),Lt=ye(36355),ot=ye(96663),Rt=ye(44127),xt=ye(6620),zt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ae=function(){var cn=(0,Ce.useRef)([]),On=(0,Ce.useRef)(null);return(0,Ce.useEffect)(function(){var Ct=Date.now(),_n=!1;cn.current.forEach(function(ui){if(ui){_n=!0;var Ci=ui.style;Ci.transitionDuration=".3s, .3s, .3s, .06s",On.current&&Ct-On.current<100&&(Ci.transitionDuration="0s, 0s")}}),_n&&(On.current=Date.now())}),cn.current},te=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ne=function(cn){var On=(0,Rt.Z)((0,Rt.Z)({},zt),cn),Ct=On.className,_n=On.percent,ui=On.prefixCls,Ci=On.strokeColor,ci=On.strokeLinecap,Hi=On.strokeWidth,qi=On.style,Xi=On.trailColor,eo=On.trailWidth,Oo=On.transition,vo=(0,xt.Z)(On,te);delete vo.gapPosition;var Ri=Array.isArray(_n)?_n:[_n],Co=Array.isArray(Ci)?Ci:[Ci],Bn=Ae(),be=Hi/2,Mi=100-Hi/2,Ei="M ".concat(ci==="round"?be:0,",").concat(be,`
|
|
|
L `).concat(ci==="round"?Mi:100,",").concat(be),Dt="0 0 100 ".concat(Hi),En=0;return Ce.createElement("svg",(0,ot.Z)({className:ke()("".concat(ui,"-line"),Ct),viewBox:Dt,preserveAspectRatio:"none",style:qi},vo),Ce.createElement("path",{className:"".concat(ui,"-line-trail"),d:Ei,strokeLinecap:ci,stroke:Xi,strokeWidth:eo||Hi,fillOpacity:"0"}),Ri.map(function(Fn,Jn){var wn=1;switch(ci){case"round":wn=1-Hi/100;break;case"square":wn=1-Hi/2/100;break;default:wn=1;break}var Nn={strokeDasharray:"".concat(Fn*wn,"px, 100px"),strokeDashoffset:"-".concat(En,"px"),transition:Oo||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ct=Co[Jn]||Co[Co.length-1];return En+=Fn,Ce.createElement("path",{key:Jn,className:"".concat(ui,"-line-path"),d:Ei,strokeLinecap:ci,stroke:ct,strokeWidth:Hi,fillOpacity:"0",ref:function(Re){Bn[Jn]=Re},style:Nn})}))},he=ne,se=ye(20135),ge=ye(72071),me=ye(47273),we=0,Fe=(0,me.Z)();function Be(){var Et;return Fe?(Et=we,we+=1):Et="TEST_OR_SSR",Et}var Ie=function(Et){var cn=Ce.useState(),On=(0,ge.Z)(cn,2),Ct=On[0],_n=On[1];return Ce.useEffect(function(){_n("rc_progress_".concat(Be()))},[]),Et||Ct},We=function(cn){var On=cn.bg,Ct=cn.children;return Ce.createElement("div",{style:{width:"100%",height:"100%",background:On}},Ct)};function nt(Et,cn){return Object.keys(Et).map(function(On){var Ct=parseFloat(On),_n="".concat(Math.floor(Ct*cn),"%");return"".concat(Et[On]," ").concat(_n)})}var Xe=Ce.forwardRef(function(Et,cn){var On=Et.prefixCls,Ct=Et.color,_n=Et.gradientId,ui=Et.radius,Ci=Et.style,ci=Et.ptg,Hi=Et.strokeLinecap,qi=Et.strokeWidth,Xi=Et.size,eo=Et.gapDegree,Oo=Ct&&(0,se.Z)(Ct)==="object",vo=Oo?"#FFF":void 0,Ri=Xi/2,Co=Ce.createElement("circle",{className:"".concat(On,"-circle-path"),r:ui,cx:Ri,cy:Ri,stroke:vo,strokeLinecap:Hi,strokeWidth:qi,opacity:ci===0?0:1,style:Ci,ref:cn});if(!Oo)return Co;var Bn="".concat(_n,"-conic"),be=eo?"".concat(180+eo/2,"deg"):"0deg",Mi=nt(Ct,(360-eo)/360),Ei=nt(Ct,1),Dt="conic-gradient(from ".concat(be,", ").concat(Mi.join(", "),")"),En="linear-gradient(to ".concat(eo?"bottom":"top",", ").concat(Ei.join(", "),")");return Ce.createElement(Ce.Fragment,null,Ce.createElement("mask",{id:Bn},Co),Ce.createElement("foreignObject",{x:0,y:0,width:Xi,height:Xi,mask:"url(#".concat(Bn,")")},Ce.createElement(We,{bg:En},Ce.createElement(We,{bg:Dt}))))}),dt=Xe,Ze=100,Zt=function(cn,On,Ct,_n,ui,Ci,ci,Hi,qi,Xi){var eo=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Oo=Ct/100*360*((360-Ci)/360),vo=Ci===0?0:{bottom:0,top:180,left:90,right:-90}[ci],Ri=(100-_n)/100*On;qi==="round"&&_n!==100&&(Ri+=Xi/2,Ri>=On&&(Ri=On-.01));var Co=Ze/2;return{stroke:typeof Hi=="string"?Hi:void 0,strokeDasharray:"".concat(On,"px ").concat(cn),strokeDashoffset:Ri+eo,transform:"rotate(".concat(ui+Oo+vo,"deg)"),transformOrigin:"".concat(Co,"px ").concat(Co,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},yt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function an(Et){var cn=Et!=null?Et:[];return Array.isArray(cn)?cn:[cn]}var Gt=function(cn){var On=(0,Rt.Z)((0,Rt.Z)({},zt),cn),Ct=On.id,_n=On.prefixCls,ui=On.steps,Ci=On.strokeWidth,ci=On.trailWidth,Hi=On.gapDegree,qi=Hi===void 0?0:Hi,Xi=On.gapPosition,eo=On.trailColor,Oo=On.strokeLinecap,vo=On.style,Ri=On.className,Co=On.strokeColor,Bn=On.percent,be=(0,xt.Z)(On,yt),Mi=Ze/2,Ei=Ie(Ct),Dt="".concat(Ei,"-gradient"),En=Mi-Ci/2,Fn=Math.PI*2*En,Jn=qi>0?90+qi/2:-90,wn=Fn*((360-qi)/360),Nn=(0,se.Z)(ui)==="object"?ui:{count:ui,space:2},ct=Nn.count,Pt=Nn.space,Re=an(Bn),Tt=an(Co),_t=Tt.find(function(at){return at&&(0,se.Z)(at)==="object"}),ht=_t&&(0,se.Z)(_t)==="object",Ye=ht?"butt":Oo,Wt=Zt(Fn,wn,0,100,Jn,qi,Xi,eo,Ye,Ci),Ut=Ae(),fn=function(){var ln=0;return Re.map(function(Hn,ii){var jt=Tt[ii]||Tt[Tt.length-1],sn=Zt(Fn,wn,ln,Hn,Jn,qi,Xi,jt,Ye,Ci);return ln+=Hn,Ce.createElement(dt,{key:ii,color:jt,ptg:Hn,radius:En,prefixCls:_n,gradientId:Dt,style:sn,strokeLinecap:Ye,strokeWidth:Ci,gapDegree:qi,ref:function(on){Ut[ii]=on},size:Ze})}).reverse()},Dn=function(){var ln=Math.round(ct*(Re[0]/100)),Hn=100/ct,ii=0;return new Array(ct).fill(null).map(function(jt,sn){var It=sn<=ln-1?Tt[0]:eo,on=It&&(0,se.Z)(It)==="object"?"url(#".concat(Dt,")"):void 0,qt=Zt(Fn,wn,ii,Hn,Jn,qi,Xi,It,"butt",Ci,Pt);return ii+=(wn-qt.strokeDashoffset+Pt)*100/wn,Ce.createElement("circle",{key:sn,className:"".concat(_n,"-circle-path"),r:En,cx:Mi,cy:Mi,stroke:on,strokeWidth:Ci,opacity:1,style:qt,ref:function(xn){Ut[sn]=xn}})})};return Ce.createElement("svg",(0,ot.Z)({className:ke()("".concat(_n,"-circle"),Ri),viewBox:"0 0 ".concat(Ze," ").concat(Ze),style:vo,id:Ct,role:"presentation"},be),!ct&&Ce.createElement("circle",{className:"".concat(_n,"-circle-trail"),r:En,cx:Mi,cy:Mi,stroke:eo,strokeLinecap:Ye,strokeWidth:ci||Ci,style:Wt}),ct?Dn():fn())},Vt=Gt,hn={Line:he,Circle:Vt},yn=ye(6848),vt=ye(93398);function je(Et){return!Et||Et<0?0:Et>100?100:Et}function wt(Et){let{success:cn,successPercent:On}=Et,Ct=On;return cn&&"progress"in cn&&(Ct=cn.progress),cn&&"percent"in cn&&(Ct=cn.percent),Ct}const tn=Et=>{let{percent:cn,success:On,successPercent:Ct}=Et;const _n=je(wt({success:On,successPercent:Ct}));return[_n,je(je(cn)-_n)]},bn=Et=>{let{success:cn={},strokeColor:On}=Et;const{strokeColor:Ct}=cn;return[Ct||vt.presetPrimaryColors.green,On||null]},Ft=(Et,cn,On)=>{var Ct,_n,ui,Ci;let ci=-1,Hi=-1;if(cn==="step"){const qi=On.steps,Xi=On.strokeWidth;typeof Et=="string"||typeof Et=="undefined"?(ci=Et==="small"?2:14,Hi=Xi!=null?Xi:8):typeof Et=="number"?[ci,Hi]=[Et,Et]:[ci=14,Hi=8]=Et,ci*=qi}else if(cn==="line"){const qi=On==null?void 0:On.strokeWidth;typeof Et=="string"||typeof Et=="undefined"?Hi=qi||(Et==="small"?6:8):typeof Et=="number"?[ci,Hi]=[Et,Et]:[ci=-1,Hi=8]=Et}else(cn==="circle"||cn==="dashboard")&&(typeof Et=="string"||typeof Et=="undefined"?[ci,Hi]=Et==="small"?[60,60]:[120,120]:typeof Et=="number"?[ci,Hi]=[Et,Et]:(ci=(_n=(Ct=Et[0])!==null&&Ct!==void 0?Ct:Et[1])!==null&&_n!==void 0?_n:120,Hi=(Ci=(ui=Et[0])!==null&&ui!==void 0?ui:Et[1])!==null&&Ci!==void 0?Ci:120));return[ci,Hi]},Xt=3,Cn=Et=>Xt/Et*100;var gn=Et=>{const{prefixCls:cn,trailColor:On=null,strokeLinecap:Ct="round",gapPosition:_n,gapDegree:ui,width:Ci=120,type:ci,children:Hi,success:qi,size:Xi=Ci}=Et,[eo,Oo]=Ft(Xi,"circle");let{strokeWidth:vo}=Et;vo===void 0&&(vo=Math.max(Cn(eo),6));const Ri={width:eo,height:Oo,fontSize:eo*.15+6},Co=Ce.useMemo(()=>{if(ui||ui===0)return ui;if(ci==="dashboard")return 75},[ui,ci]),Bn=_n||ci==="dashboard"&&"bottom"||void 0,be=Object.prototype.toString.call(Et.strokeColor)==="[object Object]",Mi=bn({success:qi,strokeColor:Et.strokeColor}),Ei=ke()(`${cn}-inner`,{[`${cn}-circle-gradient`]:be}),Dt=Ce.createElement(Vt,{percent:tn(Et),strokeWidth:vo,trailWidth:vo,strokeColor:Mi,strokeLinecap:Ct,trailColor:On,prefixCls:cn,gapDegree:Co,gapPosition:Bn});return Ce.createElement("div",{className:Ei,style:Ri},eo<=20?Ce.createElement(yn.Z,{title:Hi},Ce.createElement("span",null,Dt)):Ce.createElement(Ce.Fragment,null,Dt,Hi))},Gn=function(Et,cn){var On={};for(var Ct in Et)Object.prototype.hasOwnProperty.call(Et,Ct)&&cn.indexOf(Ct)<0&&(On[Ct]=Et[Ct]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Ct=Object.getOwnPropertySymbols(Et);_n<Ct.length;_n++)cn.indexOf(Ct[_n])<0&&Object.prototype.propertyIsEnumerable.call(Et,Ct[_n])&&(On[Ct[_n]]=Et[Ct[_n]]);return On};const bt=Et=>{let cn=[];return Object.keys(Et).forEach(On=>{const Ct=parseFloat(On.replace(/%/g,""));isNaN(Ct)||cn.push({key:Ct,value:Et[On]})}),cn=cn.sort((On,Ct)=>On.key-Ct.key),cn.map(On=>{let{key:Ct,value:_n}=On;return`${_n} ${Ct}%`}).join(", ")},zn=(Et,cn)=>{const{from:On=vt.presetPrimaryColors.blue,to:Ct=vt.presetPrimaryColors.blue,direction:_n=cn==="rtl"?"to left":"to right"}=Et,ui=Gn(Et,["from","to","direction"]);if(Object.keys(ui).length!==0){const Ci=bt(ui);return{backgroundImage:`linear-gradient(${_n}, ${Ci})`}}return{backgroundImage:`linear-gradient(${_n}, ${On}, ${Ct})`}};var He=Et=>{const{prefixCls:cn,direction:On,percent:Ct,size:_n,strokeWidth:ui,strokeColor:Ci,strokeLinecap:ci="round",children:Hi,trailColor:qi=null,success:Xi}=Et,eo=Ci&&typeof Ci!="string"?zn(Ci,On):{backgroundColor:Ci},Oo=ci==="square"||ci==="butt"?0:void 0,vo={backgroundColor:qi||void 0,borderRadius:Oo},Ri=_n!=null?_n:[-1,ui||(_n==="small"?6:8)],[Co,Bn]=Ft(Ri,"line",{strokeWidth:ui}),be=Object.assign({width:`${je(Ct)}%`,height:Bn,borderRadius:Oo},eo),Mi=wt(Et),Ei={width:`${je(Mi)}%`,height:Bn,borderRadius:Oo,backgroundColor:Xi==null?void 0:Xi.strokeColor},Dt={width:Co<0?"100%":Co,height:Bn};return Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{className:`${cn}-outer`,style:Dt},Ce.createElement("div",{className:`${cn}-inner`,style:vo},Ce.createElement("div",{className:`${cn}-bg`,style:be}),Mi!==void 0?Ce.createElement("div",{className:`${cn}-success-bg`,style:Ei}):null)),Hi)},xe=Et=>{const{size:cn,steps:On,percent:Ct=0,strokeWidth:_n=8,strokeColor:ui,trailColor:Ci=null,prefixCls:ci,children:Hi}=Et,qi=Math.round(On*(Ct/100)),Xi=cn==="small"?2:14,eo=cn!=null?cn:[Xi,_n],[Oo,vo]=Ft(eo,"step",{steps:On,strokeWidth:_n}),Ri=Oo/On,Co=new Array(On);for(let Bn=0;Bn<On;Bn++){const be=Array.isArray(ui)?ui[Bn]:ui;Co[Bn]=Ce.createElement("div",{key:Bn,className:ke()(`${ci}-steps-item`,{[`${ci}-steps-item-active`]:Bn<=qi-1}),style:{backgroundColor:Bn<=qi-1?be:Ci,width:Ri,height:vo}})}return Ce.createElement("div",{className:`${ci}-steps-outer`},Co,Hi)},Ne=ye(93083),De=ye(17313),ve=ye(83116),$e=ye(37613);const mt=Et=>{const cn=Et?"100%":"-100%";return new Ne.Keyframes(`antProgress${Et?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${cn}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${cn}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},et=Et=>{const{componentCls:cn,iconCls:On}=Et;return{[cn]:Object.assign(Object.assign({},(0,De.Wf)(Et)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Et.fontSize,marginInlineEnd:Et.marginXS,marginBottom:Et.marginXS},[`${cn}-outer`]:{display:"inline-block",width:"100%"},[`&${cn}-show-info`]:{[`${cn}-outer`]:{marginInlineEnd:`calc(-2em - ${Et.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Et.paddingXS}px)`}},[`${cn}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Et.remainingColor,borderRadius:Et.lineBorderRadius},[`${cn}-inner:not(${cn}-circle-gradient)`]:{[`${cn}-circle-path`]:{stroke:Et.defaultColor}},[`${cn}-success-bg, ${cn}-bg`]:{position:"relative",backgroundColor:Et.defaultColor,borderRadius:Et.lineBorderRadius,transition:`all ${Et.motionDurationSlow} ${Et.motionEaseInOutCirc}`},[`${cn}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Et.colorSuccess},[`${cn}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Et.marginXS,color:Et.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[On]:{fontSize:Et.fontSize}},[`&${cn}-status-active`]:{[`${cn}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Et.colorBgContainer,borderRadius:Et.lineBorderRadius,opacity:0,animationName:mt(),animationDuration:Et.progressActiveMotionDuration,animationTimingFunction:Et.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${cn}-rtl${cn}-status-active`]:{[`${cn}-bg::before`]:{animationName:mt(!0)}},[`&${cn}-status-exception`]:{[`${cn}-bg`]:{backgroundColor:Et.colorError},[`${cn}-text`]:{color:Et.colorError}},[`&${cn}-status-exception ${cn}-inner:not(${cn}-circle-gradient)`]:{[`${cn}-circle-path`]:{stroke:Et.colorError}},[`&${cn}-status-success`]:{[`${cn}-bg`]:{backgroundColor:Et.colorSuccess},[`${cn}-text`]:{color:Et.colorSuccess}},[`&${cn}-status-success ${cn}-inner:not(${cn}-circle-gradient)`]:{[`${cn}-circle-path`]:{stroke:Et.colorSuccess}}})}},Ve=Et=>{const{componentCls:cn,iconCls:On}=Et;return{[cn]:{[`${cn}-circle-trail`]:{stroke:Et.remainingColor},[`&${cn}-circle ${cn}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${cn}-circle ${cn}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Et.circleTextColor,fontSize:Et.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[On]:{fontSize:`${Et.fontSize/Et.fontSizeSM}em`}},[`${cn}-circle&-status-exception`]:{[`${cn}-text`]:{color:Et.colorError}},[`${cn}-circle&-status-success`]:{[`${cn}-text`]:{color:Et.colorSuccess}}},[`${cn}-inline-circle`]:{lineHeight:1,[`${cn}-inner`]:{verticalAlign:"bottom"}}}},gt=Et=>{const{componentCls:cn}=Et;return{[cn]:{[`${cn}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Et.progressStepMinWidth,marginInlineEnd:Et.progressStepMarginInlineEnd,backgroundColor:Et.remainingColor,transition:`all ${Et.motionDurationSlow}`,"&-active":{backgroundColor:Et.defaultColor}}}}}},ft=Et=>{const{componentCls:cn,iconCls:On}=Et;return{[cn]:{[`${cn}-small&-line, ${cn}-small&-line ${cn}-text ${On}`]:{fontSize:Et.fontSizeSM}}}};var rt=(0,ve.Z)("Progress",Et=>{const cn=Et.marginXXS/2,On=(0,$e.TS)(Et,{progressStepMarginInlineEnd:cn,progressStepMinWidth:cn,progressActiveMotionDuration:"2.4s"});return[et(On),Ve(On),gt(On),ft(On)]},Et=>({circleTextColor:Et.colorText,defaultColor:Et.colorInfo,remainingColor:Et.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Mt=function(Et,cn){var On={};for(var Ct in Et)Object.prototype.hasOwnProperty.call(Et,Ct)&&cn.indexOf(Ct)<0&&(On[Ct]=Et[Ct]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _n=0,Ct=Object.getOwnPropertySymbols(Et);_n<Ct.length;_n++)cn.indexOf(Ct[_n])<0&&Object.prototype.propertyIsEnumerable.call(Et,Ct[_n])&&(On[Ct[_n]]=Et[Ct[_n]]);return On};const pn=null,dn=["normal","exception","active","success"];var Rn=Ce.forwardRef((Et,cn)=>{const{prefixCls:On,className:Ct,rootClassName:_n,steps:ui,strokeColor:Ci,percent:ci=0,size:Hi="default",showInfo:qi=!0,type:Xi="line",status:eo,format:Oo,style:vo}=Et,Ri=Mt(Et,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Co=Ce.useMemo(()=>{var Re,Tt;const _t=wt(Et);return parseInt(_t!==void 0?(Re=_t!=null?_t:0)===null||Re===void 0?void 0:Re.toString():(Tt=ci!=null?ci:0)===null||Tt===void 0?void 0:Tt.toString(),10)},[ci,Et.success,Et.successPercent]),Bn=Ce.useMemo(()=>!dn.includes(eo)&&Co>=100?"success":eo||"normal",[eo,Co]),{getPrefixCls:be,direction:Mi,progress:Ei}=Ce.useContext(Lt.E_),Dt=be("progress",On),[En,Fn]=rt(Dt),Jn=Ce.useMemo(()=>{if(!qi)return null;const Re=wt(Et);let Tt;const _t=Oo||(Ye=>`${Ye}%`),ht=Xi==="line";return Oo||Bn!=="exception"&&Bn!=="success"?Tt=_t(je(ci),je(Re)):Bn==="exception"?Tt=ht?Ce.createElement(At.Z,null):Ce.createElement(Ue.Z,null):Bn==="success"&&(Tt=ht?Ce.createElement(Oe.Z,null):Ce.createElement(tt.Z,null)),Ce.createElement("span",{className:`${Dt}-text`,title:typeof Tt=="string"?Tt:void 0},Tt)},[qi,ci,Co,Bn,Xi,Dt,Oo]),wn=Array.isArray(Ci)?Ci[0]:Ci,Nn=typeof Ci=="string"||Array.isArray(Ci)?Ci:void 0;let ct;Xi==="line"?ct=ui?Ce.createElement(xe,Object.assign({},Et,{strokeColor:Nn,prefixCls:Dt,steps:ui}),Jn):Ce.createElement(He,Object.assign({},Et,{strokeColor:wn,prefixCls:Dt,direction:Mi}),Jn):(Xi==="circle"||Xi==="dashboard")&&(ct=Ce.createElement(gn,Object.assign({},Et,{strokeColor:wn,prefixCls:Dt,progressStatus:Bn}),Jn));const Pt=ke()(Dt,`${Dt}-status-${Bn}`,`${Dt}-${Xi==="dashboard"&&"circle"||ui&&"steps"||Xi}`,{[`${Dt}-inline-circle`]:Xi==="circle"&&Ft(Hi,"circle")[0]<=20,[`${Dt}-show-info`]:qi,[`${Dt}-${Hi}`]:typeof Hi=="string",[`${Dt}-rtl`]:Mi==="rtl"},Ei==null?void 0:Ei.className,Ct,_n,Fn);return En(Ce.createElement("div",Object.assign({ref:cn,style:Object.assign(Object.assign({},Ei==null?void 0:Ei.style),vo),className:Pt,role:"progressbar","aria-valuenow":Co},(0,Ot.Z)(Ri,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ct))}),Tn=Rn},13570:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return je}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(tn,bn){return Oe.createElement(Ue.Z,(0,Ce.Z)({},tn,{ref:bn,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke,Lt=ye(92310),ot=ye.n(Lt),Rt=ye(90493),xt=ye(72071),zt=ye(6620),Ae=ye(18929),te=ye(10228),ne=ye(26112);function he(wt,tn){var bn=wt.disabled,Ft=wt.prefixCls,Xt=wt.character,Cn=wt.characterRender,Qn=wt.index,gn=wt.count,Gn=wt.value,bt=wt.allowHalf,zn=wt.focused,ai=wt.onHover,He=wt.onClick,Le=function(Ve){ai(Ve,Qn)},xe=function(Ve){He(Ve,Qn)},Ne=function(Ve){Ve.keyCode===te.Z.ENTER&&He(Ve,Qn)},De=Qn+1,ve=new Set([Ft]);Gn===0&&Qn===0&&zn?ve.add("".concat(Ft,"-focused")):bt&&Gn+.5>=De&&Gn<De?(ve.add("".concat(Ft,"-half")),ve.add("".concat(Ft,"-active")),zn&&ve.add("".concat(Ft,"-focused"))):(De<=Gn?ve.add("".concat(Ft,"-full")):ve.add("".concat(Ft,"-zero")),De===Gn&&zn&&ve.add("".concat(Ft,"-focused")));var $e=typeof Xt=="function"?Xt(wt):Xt,mt=Oe.createElement("li",{className:ot()(Array.from(ve)),ref:tn},Oe.createElement("div",{onClick:bn?null:xe,onKeyDown:bn?null:Ne,onMouseMove:bn?null:Le,role:"radio","aria-checked":Gn>Qn?"true":"false","aria-posinset":Qn+1,"aria-setsize":gn,tabIndex:bn?-1:0},Oe.createElement("div",{className:"".concat(Ft,"-first")},$e),Oe.createElement("div",{className:"".concat(Ft,"-second")},$e)));return Cn&&(mt=Cn(mt,wt)),mt}var se=Oe.forwardRef(he);function ge(){var wt=Oe.useRef({});function tn(Ft){return wt.current[Ft]}function bn(Ft){return function(Xt){wt.current[Ft]=Xt}}return[tn,bn]}function me(wt){var tn=wt.pageXOffset,bn="scrollLeft";if(typeof tn!="number"){var Ft=wt.document;tn=Ft.documentElement[bn],typeof tn!="number"&&(tn=Ft.body[bn])}return tn}function we(wt){var tn,bn,Ft=wt.ownerDocument,Xt=Ft.body,Cn=Ft&&Ft.documentElement,Qn=wt.getBoundingClientRect();return tn=Qn.left,bn=Qn.top,tn-=Cn.clientLeft||Xt.clientLeft||0,bn-=Cn.clientTop||Xt.clientTop||0,{left:tn,top:bn}}function Fe(wt){var tn=we(wt),bn=wt.ownerDocument,Ft=bn.defaultView||bn.parentWindow;return tn.left+=me(Ft),tn.left}var Be=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ie(wt,tn){var bn,Ft=wt.prefixCls,Xt=Ft===void 0?"rc-rate":Ft,Cn=wt.className,Qn=wt.defaultValue,gn=wt.value,Gn=wt.count,bt=Gn===void 0?5:Gn,zn=wt.allowHalf,ai=zn===void 0?!1:zn,He=wt.allowClear,Le=He===void 0?!0:He,xe=wt.character,Ne=xe===void 0?"\u2605":xe,De=wt.characterRender,ve=wt.disabled,$e=wt.direction,mt=$e===void 0?"ltr":$e,et=wt.tabIndex,Ve=et===void 0?0:et,gt=wt.autoFocus,ft=wt.onHoverChange,rt=wt.onChange,Mt=wt.onFocus,pn=wt.onBlur,dn=wt.onKeyDown,Jt=wt.onMouseLeave,Rn=(0,zt.Z)(wt,Be),Tn=ge(),Et=(0,xt.Z)(Tn,2),cn=Et[0],On=Et[1],Ct=Oe.useRef(null),_n=function(){if(!ve){var Ye;(Ye=Ct.current)===null||Ye===void 0||Ye.focus()}};Oe.useImperativeHandle(tn,function(){return{focus:_n,blur:function(){if(!ve){var Ye;(Ye=Ct.current)===null||Ye===void 0||Ye.blur()}}}});var ui=(0,Ae.Z)(Qn||0,{value:gn}),Ci=(0,xt.Z)(ui,2),ci=Ci[0],Hi=Ci[1],qi=(0,Ae.Z)(null),Xi=(0,xt.Z)(qi,2),eo=Xi[0],Oo=Xi[1],vo=function(Ye,Wt){var Ut=mt==="rtl",fn=Ye+1;if(ai){var Dn=cn(Ye),at=Fe(Dn),ln=Dn.clientWidth;(Ut&&Wt-at>ln/2||!Ut&&Wt-at<ln/2)&&(fn-=.5)}return fn},Ri=function(Ye){Hi(Ye),rt==null||rt(Ye)},Co=Oe.useState(!1),Bn=(0,xt.Z)(Co,2),be=Bn[0],Mi=Bn[1],Ei=function(){Mi(!0),Mt==null||Mt()},Dt=function(){Mi(!1),pn==null||pn()},En=Oe.useState(null),Fn=(0,xt.Z)(En,2),Jn=Fn[0],wn=Fn[1],Nn=function(Ye,Wt){var Ut=vo(Wt,Ye.pageX);Ut!==eo&&(wn(Ut),Oo(null)),ft==null||ft(Ut)},ct=function(Ye){ve||(wn(null),Oo(null),ft==null||ft(void 0)),Ye&&(Jt==null||Jt(Ye))},Pt=function(Ye,Wt){var Ut=vo(Wt,Ye.pageX),fn=!1;Le&&(fn=Ut===ci),ct(),Ri(fn?0:Ut),Oo(fn?Ut:null)},Re=function(Ye){var Wt=Ye.keyCode,Ut=mt==="rtl",fn=ci;Wt===te.Z.RIGHT&&fn<bt&&!Ut?(ai?fn+=.5:fn+=1,Ri(fn),Ye.preventDefault()):Wt===te.Z.LEFT&&fn>0&&!Ut||Wt===te.Z.RIGHT&&fn>0&&Ut?(ai?fn-=.5:fn-=1,Ri(fn),Ye.preventDefault()):Wt===te.Z.LEFT&&fn<bt&&Ut&&(ai?fn+=.5:fn+=1,Ri(fn),Ye.preventDefault()),dn==null||dn(Ye)};Oe.useEffect(function(){gt&&!ve&&_n()},[]);var Tt=new Array(bt).fill(0).map(function(ht,Ye){return Oe.createElement(se,{ref:On(Ye),index:Ye,count:bt,disabled:ve,prefixCls:"".concat(Xt,"-star"),allowHalf:ai,value:Jn===null?ci:Jn,onClick:Pt,onHover:Nn,key:ht||Ye,character:Ne,characterRender:De,focused:be})}),_t=ot()(Xt,Cn,(bn={},(0,Rt.Z)(bn,"".concat(Xt,"-disabled"),ve),(0,Rt.Z)(bn,"".concat(Xt,"-rtl"),mt==="rtl"),bn));return Oe.createElement("ul",(0,Ce.Z)({className:_t,onMouseLeave:ct,tabIndex:ve?-1:Ve,onFocus:ve?null:Ei,onBlur:ve?null:Dt,onKeyDown:ve?null:Re,ref:Ct,role:"radiogroup"},(0,ne.Z)(Rn,{aria:!0,data:!0,attr:!0})),Tt)}var We=Oe.forwardRef(Ie),nt=We,Xe=ye(36355),dt=ye(6848),Ze=ye(17313),Zt=ye(83116),yt=ye(37613);const an=wt=>{const{componentCls:tn}=wt;return{[`${tn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:wt.marginXS},"> div":{transition:`all ${wt.motionDurationMid}, outline 0s`,"&:hover":{transform:wt.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${wt.lineWidth}px dashed ${wt.starColor}`,transform:wt.starHoverScale}},"&-first, &-second":{color:wt.starBg,transition:`all ${wt.motionDurationMid}`,userSelect:"none",[wt.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${tn}-star-first, &-half ${tn}-star-second`]:{opacity:1},[`&-half ${tn}-star-first, &-full ${tn}-star-second`]:{color:"inherit"}}}},Gt=wt=>({[`&-rtl${wt.componentCls}`]:{direction:"rtl"}}),Vt=wt=>{const{componentCls:tn}=wt;return{[tn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ze.Wf)(wt)),{display:"inline-block",margin:0,padding:0,color:wt.starColor,fontSize:wt.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${tn} ${tn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),an(wt)),{[`+ ${tn}-text`]:{display:"inline-block",marginInlineStart:wt.marginXS,fontSize:wt.fontSize}}),Gt(wt))}};var hn=(0,Zt.Z)("Rate",wt=>{const tn=(0,yt.TS)(wt,{});return[Vt(tn)]},wt=>({starColor:wt.yellow6,starSize:wt.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:wt.colorFillContent})),yn=function(wt,tn){var bn={};for(var Ft in wt)Object.prototype.hasOwnProperty.call(wt,Ft)&&tn.indexOf(Ft)<0&&(bn[Ft]=wt[Ft]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,Ft=Object.getOwnPropertySymbols(wt);Xt<Ft.length;Xt++)tn.indexOf(Ft[Xt])<0&&Object.prototype.propertyIsEnumerable.call(wt,Ft[Xt])&&(bn[Ft[Xt]]=wt[Ft[Xt]]);return bn},je=Oe.forwardRef((wt,tn)=>{const{prefixCls:bn,className:Ft,rootClassName:Xt,style:Cn,tooltips:Qn,character:gn=Oe.createElement(Ot,null)}=wt,Gn=yn(wt,["prefixCls","className","rootClassName","style","tooltips","character"]),bt=(ve,$e)=>{let{index:mt}=$e;return Qn?Oe.createElement(dt.Z,{title:Qn[mt]},ve):ve},{getPrefixCls:zn,direction:ai,rate:He}=Oe.useContext(Xe.E_),Le=zn("rate",bn),[xe,Ne]=hn(Le),De=Object.assign(Object.assign({},He==null?void 0:He.style),Cn);return xe(Oe.createElement(nt,Object.assign({ref:tn,character:gn,characterRender:bt},Gn,{className:ot()(Ft,Xt,Ne,He==null?void 0:He.className),style:De,prefixCls:Le,direction:ai})))})},57809:function(Kn,kn,ye){"use strict";var Ce=ye(92310),Oe=ye.n(Ce),tt=ye(77861),At=ye(2738),Ue=ye(59301),Je=ye(53487),ke=ye(62892),Ot=ye(19080),Lt=ye(36355),ot=ye(1684),Rt=ye(93891),xt=ye(19716),zt=ye(32441),Ae=ye(33234),te=ye(14154),ne=ye(58582),he=ye(84443),se=ye(66339),ge=function(Ie,We){var nt={};for(var Xe in Ie)Object.prototype.hasOwnProperty.call(Ie,Xe)&&We.indexOf(Xe)<0&&(nt[Xe]=Ie[Xe]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Xe=Object.getOwnPropertySymbols(Ie);dt<Xe.length;dt++)We.indexOf(Xe[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Xe[dt])&&(nt[Xe[dt]]=Ie[Xe[dt]]);return nt};const me="SECRET_COMBOBOX_MODE_DO_NOT_USE",we=(Ie,We)=>{var nt,{prefixCls:Xe,bordered:dt=!0,className:Ze,rootClassName:Zt,getPopupContainer:yt,popupClassName:an,dropdownClassName:Gt,listHeight:Vt=256,placement:hn,listItemHeight:yn=24,size:vt,disabled:je,notFoundContent:wt,status:tn,builtinPlacements:bn,dropdownMatchSelectWidth:Ft,popupMatchSelectWidth:Xt,direction:Cn,style:Qn,allowClear:gn}=Ie,Gn=ge(Ie,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:bt,getPrefixCls:zn,renderEmpty:ai,direction:He,virtual:Le,popupMatchSelectWidth:xe,popupOverflow:Ne,select:De}=Ue.useContext(Lt.E_),ve=zn("select",Xe),$e=zn(),mt=Cn!=null?Cn:He,{compactSize:et,compactItemClassnames:Ve}=(0,Ae.ri)(ve,mt),[gt,ft]=(0,te.Z)(ve),rt=Ue.useMemo(()=>{const{mode:Bn}=Gn;if(Bn!=="combobox")return Bn===me?"combobox":Bn},[Gn.mode]),Mt=rt==="multiple"||rt==="tags",pn=(0,he.Z)(Gn.suffixIcon,Gn.showArrow),dn=(nt=Xt!=null?Xt:Ft)!==null&&nt!==void 0?nt:xe,{status:Jt,hasFeedback:Rn,isFormItemInput:Tn,feedbackIcon:Et}=Ue.useContext(zt.aM),cn=(0,Ot.F)(Jt,tn);let On;wt!==void 0?On=wt:rt==="combobox"?On=null:On=(ai==null?void 0:ai("Select"))||Ue.createElement(Rt.Z,{componentName:"Select"});const{suffixIcon:Ct,itemIcon:_n,removeIcon:ui,clearIcon:Ci}=(0,se.Z)(Object.assign(Object.assign({},Gn),{multiple:Mt,hasFeedback:Rn,feedbackIcon:Et,showSuffixIcon:pn,prefixCls:ve,showArrow:Gn.showArrow,componentName:"Select"})),ci=gn===!0?{clearIcon:Ci}:gn,Hi=(0,At.Z)(Gn,["suffixIcon","itemIcon"]),qi=Oe()(an||Gt,{[`${ve}-dropdown-${mt}`]:mt==="rtl"},Zt,ft),Xi=(0,xt.Z)(Bn=>{var be;return(be=vt!=null?vt:et)!==null&&be!==void 0?be:Bn}),eo=Ue.useContext(ot.Z),Oo=je!=null?je:eo,vo=Oe()({[`${ve}-lg`]:Xi==="large",[`${ve}-sm`]:Xi==="small",[`${ve}-rtl`]:mt==="rtl",[`${ve}-borderless`]:!dt,[`${ve}-in-form-item`]:Tn},(0,Ot.Z)(ve,cn,Rn),Ve,De==null?void 0:De.className,Ze,Zt,ft),Ri=Ue.useMemo(()=>hn!==void 0?hn:mt==="rtl"?"bottomRight":"bottomLeft",[hn,mt]),Co=(0,ne.Z)(bn,Ne);return gt(Ue.createElement(tt.ZP,Object.assign({ref:We,virtual:Le,showSearch:De==null?void 0:De.showSearch},Hi,{style:Object.assign(Object.assign({},De==null?void 0:De.style),Qn),dropdownMatchSelectWidth:dn,builtinPlacements:Co,transitionName:(0,ke.m)($e,"slide-up",Gn.transitionName),listHeight:Vt,listItemHeight:yn,mode:rt,prefixCls:ve,placement:Ri,direction:mt,suffixIcon:Ct,menuItemSelectedIcon:_n,removeIcon:ui,allowClear:ci,notFoundContent:On,className:vo,getPopupContainer:yt||bt,dropdownClassName:qi,disabled:Oo})))},Fe=Ue.forwardRef(we),Be=(0,Je.Z)(Fe);Fe.SECRET_COMBOBOX_MODE_DO_NOT_USE=me,Fe.Option=tt.Wx,Fe.OptGroup=tt.Xo,Fe._InternalPanelDoNotUseOrYouWillBeFired=Be,kn.default=Fe},14154:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Fe}});var Ce=ye(17313),Oe=ye(74207),tt=ye(37613),At=ye(83116),Ue=ye(13826),Je=ye(92899);const ke=Be=>{const{optionHeight:Ie,optionFontSize:We,optionLineHeight:nt,optionPadding:Xe}=Be;return{position:"relative",display:"block",minHeight:Ie,padding:Xe,color:Be.colorText,fontWeight:"normal",fontSize:We,lineHeight:nt,boxSizing:"border-box"}};var Lt=Be=>{const{antCls:Ie,componentCls:We}=Be,nt=`${We}-item`,Xe=`&${Ie}-slide-up-enter${Ie}-slide-up-enter-active`,dt=`&${Ie}-slide-up-appear${Ie}-slide-up-appear-active`,Ze=`&${Ie}-slide-up-leave${Ie}-slide-up-leave-active`,Zt=`${We}-dropdown-placement-`;return[{[`${We}-dropdown`]:Object.assign(Object.assign({},(0,Ce.Wf)(Be)),{position:"absolute",top:-9999,zIndex:Be.zIndexPopup,boxSizing:"border-box",padding:Be.paddingXXS,overflow:"hidden",fontSize:Be.fontSize,fontVariant:"initial",backgroundColor:Be.colorBgElevated,borderRadius:Be.borderRadiusLG,outline:"none",boxShadow:Be.boxShadowSecondary,[`
|
|
|
${Xe}${Zt}bottomLeft,
|
|
|
${dt}${Zt}bottomLeft
|
|
|
`]:{animationName:Ue.fJ},[`
|
|
|
${Xe}${Zt}topLeft,
|
|
|
${dt}${Zt}topLeft,
|
|
|
${Xe}${Zt}topRight,
|
|
|
${dt}${Zt}topRight
|
|
|
`]:{animationName:Ue.Qt},[`${Ze}${Zt}bottomLeft`]:{animationName:Ue.Uw},[`
|
|
|
${Ze}${Zt}topLeft,
|
|
|
${Ze}${Zt}topRight
|
|
|
`]:{animationName:Ue.ly},"&-hidden":{display:"none"},[`${nt}`]:Object.assign(Object.assign({},ke(Be)),{cursor:"pointer",transition:`background ${Be.motionDurationSlow} ease`,borderRadius:Be.borderRadiusSM,"&-group":{color:Be.colorTextDescription,fontSize:Be.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ce.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${nt}-option-disabled)`]:{backgroundColor:Be.optionActiveBg},[`&-selected:not(${nt}-option-disabled)`]:{color:Be.optionSelectedColor,fontWeight:Be.optionSelectedFontWeight,backgroundColor:Be.optionSelectedBg,[`${nt}-option-state`]:{color:Be.colorPrimary}},"&-disabled":{[`&${nt}-option-selected`]:{backgroundColor:Be.colorBgContainerDisabled},color:Be.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Be.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Ue.oN)(Be,"slide-up"),(0,Ue.oN)(Be,"slide-down"),(0,Je.Fm)(Be,"move-up"),(0,Je.Fm)(Be,"move-down")]};const ot=2,Rt=Be=>{let{controlHeightSM:Ie,controlHeight:We,lineWidth:nt}=Be;const Xe=(We-Ie)/2-nt,dt=Math.ceil(Xe/2);return[Xe,dt]};function xt(Be,Ie){const{componentCls:We,iconCls:nt}=Be,Xe=`${We}-selection-overflow`,dt=Be.multipleSelectItemHeight,[Ze]=Rt(Be),Zt=Ie?`${We}-${Ie}`:"";return{[`${We}-multiple${Zt}`]:{fontSize:Be.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:`${Ze-ot}px ${ot*2}px`,borderRadius:Be.borderRadius,[`${We}-show-search&`]:{cursor:"text"},[`${We}-disabled&`]:{background:Be.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ot}px 0`,lineHeight:`${dt}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${We}-show-arrow ${We}-selector,
|
|
|
&${We}-allow-clear ${We}-selector
|
|
|
`]:{paddingInlineEnd:Be.fontSizeIcon+Be.controlPaddingHorizontal},[`${We}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:dt,marginTop:ot,marginBottom:ot,lineHeight:`${dt-Be.lineWidth*2}px`,background:Be.multipleItemBg,border:`${Be.lineWidth}px ${Be.lineType} ${Be.multipleItemBorderColor}`,borderRadius:Be.borderRadiusSM,cursor:"default",transition:`font-size ${Be.motionDurationSlow}, line-height ${Be.motionDurationSlow}, height ${Be.motionDurationSlow}`,userSelect:"none",marginInlineEnd:ot*2,paddingInlineStart:Be.paddingXS,paddingInlineEnd:Be.paddingXS/2,[`${We}-disabled&`]:{color:Be.multipleItemColorDisabled,borderColor:Be.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Be.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ce.Ro)()),{display:"inline-flex",alignItems:"center",color:Be.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${nt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Be.colorIconHover}})},[`${Xe}-item + ${Xe}-item`]:{[`${We}-selection-search`]:{marginInlineStart:0}},[`${We}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Be.inputPaddingHorizontalBase-Ze,"\n &-input,\n &-mirror\n ":{height:dt,fontFamily:Be.fontFamily,lineHeight:`${dt}px`,transition:`all ${Be.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:Be.inputPaddingHorizontalBase,insetInlineEnd:Be.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Be.motionDurationSlow}`}}}}var Ae=Be=>{const{componentCls:Ie}=Be,We=(0,tt.TS)(Be,{controlHeight:Be.controlHeightSM,multipleSelectItemHeight:Be.controlHeightXS,borderRadius:Be.borderRadiusSM,borderRadiusSM:Be.borderRadiusXS}),nt=(0,tt.TS)(Be,{fontSize:Be.fontSizeLG,controlHeight:Be.controlHeightLG,multipleSelectItemHeight:Be.multipleItemHeightLG,borderRadius:Be.borderRadiusLG,borderRadiusSM:Be.borderRadius}),[,Xe]=Rt(Be);return[xt(Be),xt(We,"sm"),{[`${Ie}-multiple${Ie}-sm`]:{[`${Ie}-selection-placeholder`]:{insetInline:Be.controlPaddingHorizontalSM-Be.lineWidth},[`${Ie}-selection-search`]:{marginInlineStart:Xe}}},xt(nt,"lg")]};function te(Be,Ie){const{componentCls:We,inputPaddingHorizontalBase:nt,borderRadius:Xe}=Be,dt=Be.controlHeight-Be.lineWidth*2,Ze=Math.ceil(Be.fontSize*1.25),Zt=Ie?`${We}-${Ie}`:"";return{[`${We}-single${Zt}`]:{fontSize:Be.fontSize,[`${We}-selector`]:Object.assign(Object.assign({},(0,Ce.Wf)(Be)),{display:"flex",borderRadius:Xe,[`${We}-selection-search`]:{position:"absolute",top:0,insetInlineStart:nt,insetInlineEnd:nt,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${We}-selection-item,
|
|
|
${We}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${dt}px`,transition:`all ${Be.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${dt}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:Ze},[`&${We}-open ${We}-selection-item`]:{color:Be.colorTextPlaceholder},[`&:not(${We}-customize-input)`]:{[`${We}-selector`]:{width:"100%",height:Be.controlHeight,padding:`0 ${nt}px`,[`${We}-selection-search-input`]:{height:dt},"&:after":{lineHeight:`${dt}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 ${nt}px`,"&:after":{display:"none"}}}}}}}function ne(Be){const{componentCls:Ie}=Be,We=Be.controlPaddingHorizontalSM-Be.lineWidth;return[te(Be),te((0,tt.TS)(Be,{controlHeight:Be.controlHeightSM,borderRadius:Be.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+Be.fontSize*1.5},[`
|
|
|
&${Ie}-show-arrow ${Ie}-selection-item,
|
|
|
&${Ie}-show-arrow ${Ie}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Be.fontSize*1.5}}}},te((0,tt.TS)(Be,{controlHeight:Be.singleItemHeightLG,fontSize:Be.fontSizeLG,borderRadius:Be.borderRadiusLG}),"lg")]}const he=Be=>{const{componentCls:Ie,selectorBg:We}=Be;return{position:"relative",backgroundColor:We,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,transition:`all ${Be.motionDurationMid} ${Be.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ie}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ie}-disabled&`]:{color:Be.colorTextDisabled,background:Be.colorBgContainerDisabled,cursor:"not-allowed",[`${Ie}-multiple&`]:{background:Be.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},se=function(Be,Ie){let We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:nt,borderHoverColor:Xe,outlineColor:dt,antCls:Ze}=Ie,Zt=We?{[`${nt}-selector`]:{borderColor:Xe}}:{};return{[Be]:{[`&:not(${nt}-disabled):not(${nt}-customize-input):not(${Ze}-pagination-size-changer)`]:Object.assign(Object.assign({},Zt),{[`${nt}-focused& ${nt}-selector`]:{borderColor:Xe,boxShadow:`0 0 0 ${Ie.controlOutlineWidth}px ${dt}`,outline:0},[`&:hover ${nt}-selector`]:{borderColor:Xe}})}}},ge=Be=>{const{componentCls:Ie}=Be;return{[`${Ie}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},me=Be=>{const{componentCls:Ie,inputPaddingHorizontalBase:We,iconCls:nt}=Be;return{[Ie]:Object.assign(Object.assign({},(0,Ce.Wf)(Be)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ie}-customize-input) ${Ie}-selector`]:Object.assign(Object.assign({},he(Be)),ge(Be)),[`${Ie}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Ce.vS),[`${Ie}-selection-placeholder`]:Object.assign(Object.assign({},Ce.vS),{flex:1,color:Be.colorTextPlaceholder,pointerEvents:"none"}),[`${Ie}-arrow`]:Object.assign(Object.assign({},(0,Ce.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:We,height:Be.fontSizeIcon,marginTop:-Be.fontSizeIcon/2,color:Be.colorTextQuaternary,fontSize:Be.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[nt]:{verticalAlign:"top",transition:`transform ${Be.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:Be.fontSizeIcon,height:Be.fontSizeIcon,marginTop:-Be.fontSizeIcon/2,color:Be.colorTextQuaternary,fontSize:Be.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Be.clearBg,cursor:"pointer",opacity:0,transition:`color ${Be.motionDurationMid} ease, opacity ${Be.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Be.colorTextTertiary}},"&:hover":{[`${Ie}-clear`]:{opacity:1}}}),[`${Ie}-has-feedback`]:{[`${Ie}-clear`]:{insetInlineEnd:We+Be.fontSize+Be.paddingXS}}}},we=Be=>{const{componentCls:Ie}=Be;return[{[Ie]:{[`&-borderless ${Ie}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ie}-in-form-item`]:{width:"100%"}}},me(Be),ne(Be),Ae(Be),Lt(Be),{[`${Ie}-rtl`]:{direction:"rtl"}},se(Ie,(0,tt.TS)(Be,{borderHoverColor:Be.colorPrimaryHover,outlineColor:Be.controlOutline})),se(`${Ie}-status-error`,(0,tt.TS)(Be,{borderHoverColor:Be.colorErrorHover,outlineColor:Be.colorErrorOutline}),!0),se(`${Ie}-status-warning`,(0,tt.TS)(Be,{borderHoverColor:Be.colorWarningHover,outlineColor:Be.colorWarningOutline}),!0),(0,Oe.c)(Be,{borderElCls:`${Ie}-selector`,focusElCls:`${Ie}-focused`})]};var Fe=(0,At.Z)("Select",(Be,Ie)=>{let{rootPrefixCls:We}=Ie;const nt=(0,tt.TS)(Be,{rootPrefixCls:We,inputPaddingHorizontalBase:Be.paddingSM-1,multipleSelectItemHeight:Be.multipleItemHeight});return[we(nt)]},Be=>{const{fontSize:Ie,lineHeight:We,controlHeight:nt,controlPaddingHorizontal:Xe,zIndexPopupBase:dt,colorText:Ze,fontWeightStrong:Zt,controlItemBgActive:yt,controlItemBgHover:an,colorBgContainer:Gt,colorFillSecondary:Vt,controlHeightLG:hn,controlHeightSM:yn,colorBgContainerDisabled:vt,colorTextDisabled:je}=Be;return{zIndexPopup:dt+50,optionSelectedColor:Ze,optionSelectedFontWeight:Zt,optionSelectedBg:yt,optionActiveBg:an,optionPadding:`${(nt-Ie*We)/2}px ${Xe}px`,optionFontSize:Ie,optionLineHeight:We,optionHeight:nt,selectorBg:Gt,clearBg:Gt,singleItemHeightLG:hn,multipleItemBg:Vt,multipleItemBorderColor:"transparent",multipleItemHeight:yn,multipleItemHeightLG:nt,multipleSelectorBgDisabled:vt,multipleItemColorDisabled:je,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Oe}});const Ce=tt=>{const Ue={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:tt==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Ue),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ue),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ue),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ue),{points:["br","tr"],offset:[0,-4]})}};function Oe(tt,At){return tt||Ce(At)}},84443:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ce}});function Ce(Oe,tt){return tt!==void 0?tt:Oe!==null}},66339:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});var Ce=ye(40001),Oe=ye(19248),tt=ye(99267),At=ye(84105),Ue=ye(58617),Je=ye(47472),ke=ye(59301);function Ot(Lt){let{suffixIcon:ot,clearIcon:Rt,menuItemSelectedIcon:xt,removeIcon:zt,loading:Ae,multiple:te,hasFeedback:ne,prefixCls:he,showSuffixIcon:se,feedbackIcon:ge,showArrow:me,componentName:we}=Lt;const Fe=Rt!=null?Rt:ke.createElement(Oe.Z,null),Be=Xe=>ot===null&&!ne&&!me?null:ke.createElement(ke.Fragment,null,se!==!1&&Xe,ne&&ge);let Ie=null;if(ot!==void 0)Ie=Be(ot);else if(Ae)Ie=Be(ke.createElement(Ue.Z,{spin:!0}));else{const Xe=`${he}-suffix`;Ie=dt=>{let{open:Ze,showSearch:Zt}=dt;return Be(Ze&&Zt?ke.createElement(Je.Z,{className:Xe}):ke.createElement(At.Z,{className:Xe}))}}let We=null;xt!==void 0?We=xt:te?We=ke.createElement(Ce.Z,null):We=null;let nt=null;return zt!==void 0?nt=zt:nt=ke.createElement(tt.Z,null),{clearIcon:Fe,suffixIcon:Ie,itemIcon:We,removeIcon:nt}}},61621:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ne}});var Ce=ye(92310),Oe=ye.n(Ce),tt=ye(59301),At=ye(36355),Ue=ye(2738),ke=De=>{const{prefixCls:ve,className:$e,style:mt,size:et,shape:Ve}=De,gt=Oe()({[`${ve}-lg`]:et==="large",[`${ve}-sm`]:et==="small"}),ft=Oe()({[`${ve}-circle`]:Ve==="circle",[`${ve}-square`]:Ve==="square",[`${ve}-round`]:Ve==="round"}),rt=tt.useMemo(()=>typeof et=="number"?{width:et,height:et,lineHeight:`${et}px`}:{},[et]);return tt.createElement("span",{className:Oe()(ve,gt,ft,$e),style:Object.assign(Object.assign({},rt),mt)})},Ot=ye(93083),Lt=ye(83116),ot=ye(37613);const Rt=new Ot.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),xt=De=>({height:De,lineHeight:`${De}px`}),zt=De=>Object.assign({width:De},xt(De)),Ae=De=>({background:De.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Rt,animationDuration:De.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),te=De=>Object.assign({width:De*5,minWidth:De*5},xt(De)),ne=De=>{const{skeletonAvatarCls:ve,gradientFromColor:$e,controlHeight:mt,controlHeightLG:et,controlHeightSM:Ve}=De;return{[`${ve}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$e},zt(mt)),[`${ve}${ve}-circle`]:{borderRadius:"50%"},[`${ve}${ve}-lg`]:Object.assign({},zt(et)),[`${ve}${ve}-sm`]:Object.assign({},zt(Ve))}},he=De=>{const{controlHeight:ve,borderRadiusSM:$e,skeletonInputCls:mt,controlHeightLG:et,controlHeightSM:Ve,gradientFromColor:gt}=De;return{[`${mt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:gt,borderRadius:$e},te(ve)),[`${mt}-lg`]:Object.assign({},te(et)),[`${mt}-sm`]:Object.assign({},te(Ve))}},se=De=>Object.assign({width:De},xt(De)),ge=De=>{const{skeletonImageCls:ve,imageSizeBase:$e,gradientFromColor:mt,borderRadiusSM:et}=De;return{[`${ve}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:mt,borderRadius:et},se($e*2)),{[`${ve}-path`]:{fill:"#bfbfbf"},[`${ve}-svg`]:Object.assign(Object.assign({},se($e)),{maxWidth:$e*4,maxHeight:$e*4}),[`${ve}-svg${ve}-svg-circle`]:{borderRadius:"50%"}}),[`${ve}${ve}-circle`]:{borderRadius:"50%"}}},me=(De,ve,$e)=>{const{skeletonButtonCls:mt}=De;return{[`${$e}${mt}-circle`]:{width:ve,minWidth:ve,borderRadius:"50%"},[`${$e}${mt}-round`]:{borderRadius:ve}}},we=De=>Object.assign({width:De*2,minWidth:De*2},xt(De)),Fe=De=>{const{borderRadiusSM:ve,skeletonButtonCls:$e,controlHeight:mt,controlHeightLG:et,controlHeightSM:Ve,gradientFromColor:gt}=De;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${$e}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:gt,borderRadius:ve,width:mt*2,minWidth:mt*2},we(mt))},me(De,mt,$e)),{[`${$e}-lg`]:Object.assign({},we(et))}),me(De,et,`${$e}-lg`)),{[`${$e}-sm`]:Object.assign({},we(Ve))}),me(De,Ve,`${$e}-sm`))},Be=De=>{const{componentCls:ve,skeletonAvatarCls:$e,skeletonTitleCls:mt,skeletonParagraphCls:et,skeletonButtonCls:Ve,skeletonInputCls:gt,skeletonImageCls:ft,controlHeight:rt,controlHeightLG:Mt,controlHeightSM:pn,gradientFromColor:dn,padding:Jt,marginSM:Rn,borderRadius:Tn,titleHeight:Et,blockRadius:cn,paragraphLiHeight:On,controlHeightXS:Ct,paragraphMarginTop:_n}=De;return{[`${ve}`]:{display:"table",width:"100%",[`${ve}-header`]:{display:"table-cell",paddingInlineEnd:Jt,verticalAlign:"top",[`${$e}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:dn},zt(rt)),[`${$e}-circle`]:{borderRadius:"50%"},[`${$e}-lg`]:Object.assign({},zt(Mt)),[`${$e}-sm`]:Object.assign({},zt(pn))},[`${ve}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${mt}`]:{width:"100%",height:Et,background:dn,borderRadius:cn,[`+ ${et}`]:{marginBlockStart:pn}},[`${et}`]:{padding:0,"> li":{width:"100%",height:On,listStyle:"none",background:dn,borderRadius:cn,"+ li":{marginBlockStart:Ct}}},[`${et}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ve}-content`]:{[`${mt}, ${et} > li`]:{borderRadius:Tn}}},[`${ve}-with-avatar ${ve}-content`]:{[`${mt}`]:{marginBlockStart:Rn,[`+ ${et}`]:{marginBlockStart:_n}}},[`${ve}${ve}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Fe(De)),ne(De)),he(De)),ge(De)),[`${ve}${ve}-block`]:{width:"100%",[`${Ve}`]:{width:"100%"},[`${gt}`]:{width:"100%"}},[`${ve}${ve}-active`]:{[`
|
|
|
${mt},
|
|
|
${et} > li,
|
|
|
${$e},
|
|
|
${Ve},
|
|
|
${gt},
|
|
|
${ft}
|
|
|
`]:Object.assign({},Ae(De))}}};var Ie=(0,Lt.Z)("Skeleton",De=>{const{componentCls:ve}=De,$e=(0,ot.TS)(De,{skeletonAvatarCls:`${ve}-avatar`,skeletonTitleCls:`${ve}-title`,skeletonParagraphCls:`${ve}-paragraph`,skeletonButtonCls:`${ve}-button`,skeletonInputCls:`${ve}-input`,skeletonImageCls:`${ve}-image`,imageSizeBase:De.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${De.gradientFromColor} 25%, ${De.gradientToColor} 37%, ${De.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Be($e)]},De=>{const{colorFillContent:ve,colorFill:$e}=De,mt=ve,et=$e;return{color:mt,colorGradientEnd:et,gradientFromColor:mt,gradientToColor:et,titleHeight:De.controlHeight/2,blockRadius:De.borderRadiusSM,paragraphMarginTop:De.marginLG+De.marginXXS,paragraphLiHeight:De.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),nt=De=>{const{prefixCls:ve,className:$e,rootClassName:mt,active:et,shape:Ve="circle",size:gt="default"}=De,{getPrefixCls:ft}=tt.useContext(At.E_),rt=ft("skeleton",ve),[Mt,pn]=Ie(rt),dn=(0,Ue.Z)(De,["prefixCls","className"]),Jt=Oe()(rt,`${rt}-element`,{[`${rt}-active`]:et},$e,mt,pn);return Mt(tt.createElement("div",{className:Jt},tt.createElement(ke,Object.assign({prefixCls:`${rt}-avatar`,shape:Ve,size:gt},dn))))},dt=De=>{const{prefixCls:ve,className:$e,rootClassName:mt,active:et,block:Ve=!1,size:gt="default"}=De,{getPrefixCls:ft}=tt.useContext(At.E_),rt=ft("skeleton",ve),[Mt,pn]=Ie(rt),dn=(0,Ue.Z)(De,["prefixCls"]),Jt=Oe()(rt,`${rt}-element`,{[`${rt}-active`]:et,[`${rt}-block`]:Ve},$e,mt,pn);return Mt(tt.createElement("div",{className:Jt},tt.createElement(ke,Object.assign({prefixCls:`${rt}-button`,size:gt},dn))))};const Ze="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 yt=De=>{const{prefixCls:ve,className:$e,rootClassName:mt,style:et,active:Ve}=De,{getPrefixCls:gt}=tt.useContext(At.E_),ft=gt("skeleton",ve),[rt,Mt]=Ie(ft),pn=Oe()(ft,`${ft}-element`,{[`${ft}-active`]:Ve},$e,mt,Mt);return rt(tt.createElement("div",{className:pn},tt.createElement("div",{className:Oe()(`${ft}-image`,$e),style:et},tt.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ft}-image-svg`},tt.createElement("path",{d:Ze,className:`${ft}-image-path`})))))},Gt=De=>{const{prefixCls:ve,className:$e,rootClassName:mt,active:et,block:Ve,size:gt="default"}=De,{getPrefixCls:ft}=tt.useContext(At.E_),rt=ft("skeleton",ve),[Mt,pn]=Ie(rt),dn=(0,Ue.Z)(De,["prefixCls"]),Jt=Oe()(rt,`${rt}-element`,{[`${rt}-active`]:et,[`${rt}-block`]:Ve},$e,mt,pn);return Mt(tt.createElement("div",{className:Jt},tt.createElement(ke,Object.assign({prefixCls:`${rt}-input`,size:gt},dn))))},Vt=ye(96663),hn={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"},yn=hn,vt=ye(7657),je=function(ve,$e){return tt.createElement(vt.Z,(0,Vt.Z)({},ve,{ref:$e,icon:yn}))},wt=tt.forwardRef(je),tn=wt,Ft=De=>{const{prefixCls:ve,className:$e,rootClassName:mt,style:et,active:Ve,children:gt}=De,{getPrefixCls:ft}=tt.useContext(At.E_),rt=ft("skeleton",ve),[Mt,pn]=Ie(rt),dn=Oe()(rt,`${rt}-element`,{[`${rt}-active`]:Ve},pn,$e,mt),Jt=gt!=null?gt:tt.createElement(tn,null);return Mt(tt.createElement("div",{className:dn},tt.createElement("div",{className:Oe()(`${rt}-image`,$e),style:et},Jt)))},Xt=ye(19127),Qn=De=>{const ve=ft=>{const{width:rt,rows:Mt=2}=De;if(Array.isArray(rt))return rt[ft];if(Mt-1===ft)return rt},{prefixCls:$e,className:mt,style:et,rows:Ve}=De,gt=(0,Xt.Z)(Array(Ve)).map((ft,rt)=>tt.createElement("li",{key:rt,style:{width:ve(rt)}}));return tt.createElement("ul",{className:Oe()($e,mt),style:et},gt)},Gn=De=>{let{prefixCls:ve,className:$e,width:mt,style:et}=De;return tt.createElement("h3",{className:Oe()(ve,$e),style:Object.assign({width:mt},et)})};function bt(De){return De&&typeof De=="object"?De:{}}function zn(De,ve){return De&&!ve?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ai(De,ve){return!De&&ve?{width:"38%"}:De&&ve?{width:"50%"}:{}}function He(De,ve){const $e={};return(!De||!ve)&&($e.width="61%"),!De&&ve?$e.rows=3:$e.rows=2,$e}const Le=De=>{const{prefixCls:ve,loading:$e,className:mt,rootClassName:et,style:Ve,children:gt,avatar:ft=!1,title:rt=!0,paragraph:Mt=!0,active:pn,round:dn}=De,{getPrefixCls:Jt,direction:Rn,skeleton:Tn}=tt.useContext(At.E_),Et=Jt("skeleton",ve),[cn,On]=Ie(Et);if($e||!("loading"in De)){const Ct=!!ft,_n=!!rt,ui=!!Mt;let Ci;if(Ct){const qi=Object.assign(Object.assign({prefixCls:`${Et}-avatar`},zn(_n,ui)),bt(ft));Ci=tt.createElement("div",{className:`${Et}-header`},tt.createElement(ke,Object.assign({},qi)))}let ci;if(_n||ui){let qi;if(_n){const eo=Object.assign(Object.assign({prefixCls:`${Et}-title`},ai(Ct,ui)),bt(rt));qi=tt.createElement(Gn,Object.assign({},eo))}let Xi;if(ui){const eo=Object.assign(Object.assign({prefixCls:`${Et}-paragraph`},He(Ct,_n)),bt(Mt));Xi=tt.createElement(Qn,Object.assign({},eo))}ci=tt.createElement("div",{className:`${Et}-content`},qi,Xi)}const Hi=Oe()(Et,{[`${Et}-with-avatar`]:Ct,[`${Et}-active`]:pn,[`${Et}-rtl`]:Rn==="rtl",[`${Et}-round`]:dn},Tn==null?void 0:Tn.className,mt,et,On);return cn(tt.createElement("div",{className:Hi,style:Object.assign(Object.assign({},Tn==null?void 0:Tn.style),Ve)},Ci,ci))}return typeof gt!="undefined"?gt:null};Le.Button=dt,Le.Avatar=nt,Le.Input=Gt,Le.Image=yt,Le.Node=Ft;var xe=Le,Ne=xe},81327:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return he}});var Ce=ye(59301),Oe=ye(92310),tt=ye.n(Oe),At=ye(11592),Ue=ye(36355),Je=ye(33234);const ke=Ce.createContext({latestIndex:0}),Ot=ke.Provider;var ot=se=>{let{className:ge,index:me,children:we,split:Fe,style:Be}=se;const{latestIndex:Ie}=Ce.useContext(ke);return we==null?null:Ce.createElement(Ce.Fragment,null,Ce.createElement("div",{className:ge,style:Be},we),me<Ie&&Fe&&Ce.createElement("span",{className:`${ge}-split`},Fe))},Rt=ye(2856);function xt(se){return["small","middle","large"].includes(se)}function zt(se){return se?typeof se=="number"&&!Number.isNaN(se):!1}var Ae=function(se,ge){var me={};for(var we in se)Object.prototype.hasOwnProperty.call(se,we)&&ge.indexOf(we)<0&&(me[we]=se[we]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,we=Object.getOwnPropertySymbols(se);Fe<we.length;Fe++)ge.indexOf(we[Fe])<0&&Object.prototype.propertyIsEnumerable.call(se,we[Fe])&&(me[we[Fe]]=se[we[Fe]]);return me};const ne=Ce.forwardRef((se,ge)=>{var me,we;const{getPrefixCls:Fe,space:Be,direction:Ie}=Ce.useContext(Ue.E_),{size:We=(Be==null?void 0:Be.size)||"small",align:nt,className:Xe,rootClassName:dt,children:Ze,direction:Zt="horizontal",prefixCls:yt,split:an,style:Gt,wrap:Vt=!1,classNames:hn,styles:yn}=se,vt=Ae(se,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[je,wt]=Array.isArray(We)?We:[We,We],tn=xt(wt),bn=xt(je),Ft=zt(wt),Xt=zt(je),Cn=(0,At.Z)(Ze,{keepEmpty:!0}),Qn=nt===void 0&&Zt==="horizontal"?"center":nt,gn=Fe("space",yt),[Gn,bt]=(0,Rt.Z)(gn),zn=tt()(gn,Be==null?void 0:Be.className,bt,`${gn}-${Zt}`,{[`${gn}-rtl`]:Ie==="rtl",[`${gn}-align-${Qn}`]:Qn,[`${gn}-gap-row-${wt}`]:tn,[`${gn}-gap-col-${je}`]:bn},Xe,dt),ai=tt()(`${gn}-item`,(me=hn==null?void 0:hn.item)!==null&&me!==void 0?me:(we=Be==null?void 0:Be.classNames)===null||we===void 0?void 0:we.item);let He=0;const Le=Cn.map((De,ve)=>{var $e,mt;De!=null&&(He=ve);const et=De&&De.key||`${ai}-${ve}`;return Ce.createElement(ot,{className:ai,key:et,index:ve,split:an,style:($e=yn==null?void 0:yn.item)!==null&&$e!==void 0?$e:(mt=Be==null?void 0:Be.styles)===null||mt===void 0?void 0:mt.item},De)}),xe=Ce.useMemo(()=>({latestIndex:He}),[He]);if(Cn.length===0)return null;const Ne={};return Vt&&(Ne.flexWrap="wrap"),!bn&&Xt&&(Ne.columnGap=je),!tn&&Ft&&(Ne.rowGap=wt),Gn(Ce.createElement("div",Object.assign({ref:ge,className:zn,style:Object.assign(Object.assign(Object.assign({},Ne),Be==null?void 0:Be.style),Gt)},vt),Ce.createElement(Ot,{value:xe},Le)))});ne.Compact=Je.ZP;var he=ne},31797:function(Kn,kn,ye){"use strict";ye.d(kn,{default:function(){return Ie}});var Ce=ye(59301),Oe=ye(56762),tt=ye(92343),At=ye(92310),Ue=ye.n(At),Je=ye(36355),ke=ye(61621),Lt=We=>{const{value:nt,formatter:Xe,precision:dt,decimalSeparator:Ze,groupSeparator:Zt="",prefixCls:yt}=We;let an;if(typeof Xe=="function")an=Xe(nt);else{const Gt=String(nt),Vt=Gt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Vt||Gt==="-")an=Gt;else{const hn=Vt[1];let yn=Vt[2]||"0",vt=Vt[4]||"";yn=yn.replace(/\B(?=(\d{3})+(?!\d))/g,Zt),typeof dt=="number"&&(vt=vt.padEnd(dt,"0").slice(0,dt>0?dt:0)),vt&&(vt=`${Ze}${vt}`),an=[Ce.createElement("span",{key:"int",className:`${yt}-content-value-int`},hn,yn),vt&&Ce.createElement("span",{key:"decimal",className:`${yt}-content-value-decimal`},vt)]}}return Ce.createElement("span",{className:`${yt}-content-value`},an)},ot=ye(17313),Rt=ye(83116),xt=ye(37613);const zt=We=>{const{componentCls:nt,marginXXS:Xe,padding:dt,colorTextDescription:Ze,titleFontSize:Zt,colorTextHeading:yt,contentFontSize:an,fontFamily:Gt}=We;return{[`${nt}`]:Object.assign(Object.assign({},(0,ot.Wf)(We)),{[`${nt}-title`]:{marginBottom:Xe,color:Ze,fontSize:Zt},[`${nt}-skeleton`]:{paddingTop:dt},[`${nt}-content`]:{color:yt,fontSize:an,fontFamily:Gt,[`${nt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${nt}-content-prefix, ${nt}-content-suffix`]:{display:"inline-block"},[`${nt}-content-prefix`]:{marginInlineEnd:Xe},[`${nt}-content-suffix`]:{marginInlineStart:Xe}}})}};var Ae=(0,Rt.Z)("Statistic",We=>{const nt=(0,xt.TS)(We,{});return[zt(nt)]},We=>{const{fontSizeHeading3:nt,fontSize:Xe}=We;return{titleFontSize:Xe,contentFontSize:nt}}),ne=We=>{const{prefixCls:nt,className:Xe,rootClassName:dt,style:Ze,valueStyle:Zt,value:yt=0,title:an,valueRender:Gt,prefix:Vt,suffix:hn,loading:yn=!1,onMouseEnter:vt,onMouseLeave:je,decimalSeparator:wt=".",groupSeparator:tn=","}=We,{getPrefixCls:bn,direction:Ft,statistic:Xt}=Ce.useContext(Je.E_),Cn=bn("statistic",nt),[Qn,gn]=Ae(Cn),Gn=Ce.createElement(Lt,Object.assign({decimalSeparator:wt,groupSeparator:tn,prefixCls:Cn},We,{value:yt})),bt=Ue()(Cn,{[`${Cn}-rtl`]:Ft==="rtl"},Xt==null?void 0:Xt.className,Xe,dt,gn);return Qn(Ce.createElement("div",{className:bt,style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),Ze),onMouseEnter:vt,onMouseLeave:je},an&&Ce.createElement("div",{className:`${Cn}-title`},an),Ce.createElement(ke.Z,{paragraph:!1,loading:yn,className:`${Cn}-skeleton`},Ce.createElement("div",{style:Zt,className:`${Cn}-content`},Vt&&Ce.createElement("span",{className:`${Cn}-content-prefix`},Vt),Gt?Gt(Gn):Gn,hn&&Ce.createElement("span",{className:`${Cn}-content-suffix`},hn)))))};const he=[["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,nt){let Xe=We;const dt=/\[[^\]]*]/g,Ze=(nt.match(dt)||[]).map(Gt=>Gt.slice(1,-1)),Zt=nt.replace(dt,"[]"),yt=he.reduce((Gt,Vt)=>{let[hn,yn]=Vt;if(Gt.includes(hn)){const vt=Math.floor(Xe/yn);return Xe-=vt*yn,Gt.replace(new RegExp(`${hn}+`,"g"),je=>{const wt=je.length;return vt.toString().padStart(wt,"0")})}return Gt},Zt);let an=0;return yt.replace(dt,()=>{const Gt=Ze[an];return an+=1,Gt})}function ge(We,nt){const{format:Xe=""}=nt,dt=new Date(We).getTime(),Ze=Date.now(),Zt=Math.max(dt-Ze,0);return se(Zt,Xe)}const me=1e3/30;function we(We){return new Date(We).getTime()}const Fe=We=>{const{value:nt,format:Xe="HH:mm:ss",onChange:dt,onFinish:Ze}=We,Zt=(0,Oe.Z)(),yt=Ce.useRef(null),an=()=>{Ze==null||Ze(),yt.current&&(clearInterval(yt.current),yt.current=null)},Gt=()=>{const yn=we(nt);yn>=Date.now()&&(yt.current=setInterval(()=>{Zt(),dt==null||dt(yn-Date.now()),yn<Date.now()&&an()},me))};Ce.useEffect(()=>(Gt(),()=>{yt.current&&(clearInterval(yt.current),yt.current=null)}),[nt]);const Vt=(yn,vt)=>ge(yn,Object.assign(Object.assign({},vt),{format:Xe})),hn=yn=>(0,tt.Tm)(yn,{title:void 0});return Ce.createElement(ne,Object.assign({},We,{valueRender:hn,formatter:Vt}))};var Be=Ce.memo(Fe);ne.Countdown=Be;var Ie=ne},15969:function(Kn,kn,ye){"use strict";ye.d(kn,{N:function(){return Ce}});const Ce=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(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Zt}});var Ce=ye(58617),Oe=ye(92310),tt=ye.n(Oe),At=ye(96663),Ue=ye(90493),Je=ye(72071),ke=ye(6620),Ot=ye(59301),Lt=ye(18929),ot=ye(10228),Rt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xt=Ot.forwardRef(function(yt,an){var Gt,Vt=yt.prefixCls,hn=Vt===void 0?"rc-switch":Vt,yn=yt.className,vt=yt.checked,je=yt.defaultChecked,wt=yt.disabled,tn=yt.loadingIcon,bn=yt.checkedChildren,Ft=yt.unCheckedChildren,Xt=yt.onClick,Cn=yt.onChange,Qn=yt.onKeyDown,gn=(0,ke.Z)(yt,Rt),Gn=(0,Lt.Z)(!1,{value:vt,defaultValue:je}),bt=(0,Je.Z)(Gn,2),zn=bt[0],ai=bt[1];function He(De,ve){var $e=zn;return wt||($e=De,ai($e),Cn==null||Cn($e,ve)),$e}function Le(De){De.which===ot.Z.LEFT?He(!1,De):De.which===ot.Z.RIGHT&&He(!0,De),Qn==null||Qn(De)}function xe(De){var ve=He(!zn,De);Xt==null||Xt(ve,De)}var Ne=tt()(hn,yn,(Gt={},(0,Ue.Z)(Gt,"".concat(hn,"-checked"),zn),(0,Ue.Z)(Gt,"".concat(hn,"-disabled"),wt),Gt));return Ot.createElement("button",(0,At.Z)({},gn,{type:"button",role:"switch","aria-checked":zn,disabled:wt,className:Ne,ref:an,onKeyDown:Le,onClick:xe}),tn,Ot.createElement("span",{className:"".concat(hn,"-inner")},Ot.createElement("span",{className:"".concat(hn,"-inner-checked")},bn),Ot.createElement("span",{className:"".concat(hn,"-inner-unchecked")},Ft)))});xt.displayName="Switch";var zt=xt,Ae=ye(14088),te=ye(36355),ne=ye(1684),he=ye(19716),se=ye(64993),ge=ye(17313),me=ye(83116),we=ye(37613);const Fe=yt=>{const{componentCls:an,trackHeightSM:Gt,trackPadding:Vt,trackMinWidthSM:hn,innerMinMarginSM:yn,innerMaxMarginSM:vt,handleSizeSM:je}=yt,wt=`${an}-inner`;return{[an]:{[`&${an}-small`]:{minWidth:hn,height:Gt,lineHeight:`${Gt}px`,[`${an}-inner`]:{paddingInlineStart:vt,paddingInlineEnd:yn,[`${wt}-checked`]:{marginInlineStart:`calc(-100% + ${je+Vt*2}px - ${vt*2}px)`,marginInlineEnd:`calc(100% - ${je+Vt*2}px + ${vt*2}px)`},[`${wt}-unchecked`]:{marginTop:-Gt,marginInlineStart:0,marginInlineEnd:0}},[`${an}-handle`]:{width:je,height:je},[`${an}-loading-icon`]:{top:(je-yt.switchLoadingIconSize)/2,fontSize:yt.switchLoadingIconSize},[`&${an}-checked`]:{[`${an}-inner`]:{paddingInlineStart:yn,paddingInlineEnd:vt,[`${wt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${wt}-unchecked`]:{marginInlineStart:`calc(100% - ${je+Vt*2}px + ${vt*2}px)`,marginInlineEnd:`calc(-100% + ${je+Vt*2}px - ${vt*2}px)`}},[`${an}-handle`]:{insetInlineStart:`calc(100% - ${je+Vt}px)`}},[`&:not(${an}-disabled):active`]:{[`&:not(${an}-checked) ${wt}`]:{[`${wt}-unchecked`]:{marginInlineStart:yt.marginXXS/2,marginInlineEnd:-yt.marginXXS/2}},[`&${an}-checked ${wt}`]:{[`${wt}-checked`]:{marginInlineStart:-yt.marginXXS/2,marginInlineEnd:yt.marginXXS/2}}}}}}},Be=yt=>{const{componentCls:an,handleSize:Gt}=yt;return{[an]:{[`${an}-loading-icon${yt.iconCls}`]:{position:"relative",top:(Gt-yt.fontSize)/2,color:yt.switchLoadingIconColor,verticalAlign:"top"},[`&${an}-checked ${an}-loading-icon`]:{color:yt.switchColor}}}},Ie=yt=>{const{componentCls:an,motion:Gt,trackPadding:Vt,handleBg:hn,handleShadow:yn,handleSize:vt}=yt,je=`${an}-handle`;return{[an]:{[je]:{position:"absolute",top:Vt,insetInlineStart:Vt,width:vt,height:vt,transition:`all ${yt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:hn,borderRadius:vt/2,boxShadow:yn,transition:`all ${yt.switchDuration} ease-in-out`,content:'""'}},[`&${an}-checked ${je}`]:{insetInlineStart:`calc(100% - ${vt+Vt}px)`},[`&:not(${an}-disabled):active`]:Gt?{[`${je}::before`]:{insetInlineEnd:yt.switchHandleActiveInset,insetInlineStart:0},[`&${an}-checked ${je}::before`]:{insetInlineEnd:0,insetInlineStart:yt.switchHandleActiveInset}}:{}}}},We=yt=>{const{componentCls:an,trackHeight:Gt,trackPadding:Vt,innerMinMargin:hn,innerMaxMargin:yn,handleSize:vt}=yt,je=`${an}-inner`;return{[an]:{[je]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:yn,paddingInlineEnd:hn,transition:`padding-inline-start ${yt.switchDuration} ease-in-out, padding-inline-end ${yt.switchDuration} ease-in-out`,[`${je}-checked, ${je}-unchecked`]:{display:"block",color:yt.colorTextLightSolid,fontSize:yt.fontSizeSM,transition:`margin-inline-start ${yt.switchDuration} ease-in-out, margin-inline-end ${yt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${je}-checked`]:{marginInlineStart:`calc(-100% + ${vt+Vt*2}px - ${yn*2}px)`,marginInlineEnd:`calc(100% - ${vt+Vt*2}px + ${yn*2}px)`},[`${je}-unchecked`]:{marginTop:-Gt,marginInlineStart:0,marginInlineEnd:0}},[`&${an}-checked ${je}`]:{paddingInlineStart:hn,paddingInlineEnd:yn,[`${je}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${je}-unchecked`]:{marginInlineStart:`calc(100% - ${vt+Vt*2}px + ${yn*2}px)`,marginInlineEnd:`calc(-100% + ${vt+Vt*2}px - ${yn*2}px)`}},[`&:not(${an}-disabled):active`]:{[`&:not(${an}-checked) ${je}`]:{[`${je}-unchecked`]:{marginInlineStart:Vt*2,marginInlineEnd:-Vt*2}},[`&${an}-checked ${je}`]:{[`${je}-checked`]:{marginInlineStart:-Vt*2,marginInlineEnd:Vt*2}}}}}},nt=yt=>{const{componentCls:an,trackHeight:Gt,trackMinWidth:Vt}=yt;return{[an]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(yt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Vt,height:Gt,lineHeight:`${Gt}px`,verticalAlign:"middle",background:yt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${yt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${an}-disabled)`]:{background:yt.colorTextTertiary}}),(0,ge.Qy)(yt)),{[`&${an}-checked`]:{background:yt.switchColor,[`&:hover:not(${an}-disabled)`]:{background:yt.colorPrimaryHover}},[`&${an}-loading, &${an}-disabled`]:{cursor:"not-allowed",opacity:yt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${an}-rtl`]:{direction:"rtl"}})}};var Xe=(0,me.Z)("Switch",yt=>{const an=(0,we.TS)(yt,{switchDuration:yt.motionDurationMid,switchColor:yt.colorPrimary,switchDisabledOpacity:yt.opacityLoading,switchLoadingIconSize:yt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${yt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[nt(an),We(an),Ie(an),Be(an),Fe(an)]},yt=>{const{fontSize:an,lineHeight:Gt,controlHeight:Vt,colorWhite:hn}=yt,yn=an*Gt,vt=Vt/2,je=2,wt=yn-je*2,tn=vt-je*2;return{trackHeight:yn,trackHeightSM:vt,trackMinWidth:wt*2+je*4,trackMinWidthSM:tn*2+je*2,trackPadding:je,handleBg:hn,handleSize:wt,handleSizeSM:tn,handleShadow:`0 2px 4px 0 ${new se.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:wt/2,innerMaxMargin:wt+je+je*2,innerMinMarginSM:tn/2,innerMaxMarginSM:tn+je+je*2}}),dt=function(yt,an){var Gt={};for(var Vt in yt)Object.prototype.hasOwnProperty.call(yt,Vt)&&an.indexOf(Vt)<0&&(Gt[Vt]=yt[Vt]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var hn=0,Vt=Object.getOwnPropertySymbols(yt);hn<Vt.length;hn++)an.indexOf(Vt[hn])<0&&Object.prototype.propertyIsEnumerable.call(yt,Vt[hn])&&(Gt[Vt[hn]]=yt[Vt[hn]]);return Gt};const Ze=Ot.forwardRef((yt,an)=>{const{prefixCls:Gt,size:Vt,disabled:hn,loading:yn,className:vt,rootClassName:je,style:wt}=yt,tn=dt(yt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:bn,direction:Ft,switch:Xt}=Ot.useContext(te.E_),Cn=Ot.useContext(ne.Z),Qn=(hn!=null?hn:Cn)||yn,gn=bn("switch",Gt),Gn=Ot.createElement("div",{className:`${gn}-handle`},yn&&Ot.createElement(Ce.Z,{className:`${gn}-loading-icon`})),[bt,zn]=Xe(gn),ai=(0,he.Z)(Vt),He=tt()(Xt==null?void 0:Xt.className,{[`${gn}-small`]:ai==="small",[`${gn}-loading`]:yn,[`${gn}-rtl`]:Ft==="rtl"},vt,je,zn),Le=Object.assign(Object.assign({},Xt==null?void 0:Xt.style),wt);return bt(Ot.createElement(Ae.Z,{component:"Switch"},Ot.createElement(zt,Object.assign({},tn,{prefixCls:gn,className:He,style:Le,disabled:Qn,ref:an,loadingIcon:Gn}))))});Ze.__ANT_SWITCH=!0;var Zt=Ze},1710:function(Kn,kn,ye){"use strict";ye.d(kn,{default:function(){return Zg}});var Ce={},Oe="rc-table-internal-hook",tt=ye(72071),At=ye(6089),Ue=ye(34280),Je=ye(13697),ke=ye(59301),Ot=ye(4676);function Lt(it){var lt=ke.createContext(void 0),Ht=function(Sn){var rn=Sn.value,Vn=Sn.children,Un=ke.useRef(rn);Un.current=rn;var jn=ke.useState(function(){return{getValue:function(){return Un.current},listeners:new Set}}),oi=(0,tt.Z)(jn,1),hi=oi[0];return(0,Ue.Z)(function(){(0,Ot.unstable_batchedUpdates)(function(){hi.listeners.forEach(function(si){si(rn)})})},[rn]),ke.createElement(lt.Provider,{value:hi},Vn)};return{Context:lt,Provider:Ht,defaultValue:it}}function ot(it,lt){var Ht=(0,At.Z)(typeof lt=="function"?lt:function(si){if(lt===void 0)return si;if(!Array.isArray(lt))return si[lt];var Gi={};return lt.forEach(function(zi){Gi[zi]=si[zi]}),Gi}),Kt=ke.useContext(it==null?void 0:it.Context),Sn=Kt||{},rn=Sn.listeners,Vn=Sn.getValue,Un=ke.useRef();Un.current=Ht(Kt?Vn():it==null?void 0:it.defaultValue);var jn=ke.useState({}),oi=(0,tt.Z)(jn,2),hi=oi[1];return(0,Ue.Z)(function(){if(!Kt)return;function si(Gi){var zi=Ht(Gi);(0,Je.Z)(Un.current,zi,!0)||hi({})}return rn.add(si),function(){rn.delete(si)}},[Kt]),Un.current}var Rt=ye(96663),xt=ye(8654);function zt(){var it=ke.createContext(null);function lt(){return ke.useContext(it)}function Ht(Sn,rn){var Vn=(0,xt.Yr)(Sn),Un=function(oi,hi){var si=Vn?{ref:hi}:{},Gi=ke.useRef(0),zi=ke.useRef(oi),Fi=lt();return Fi!==null?ke.createElement(Sn,(0,Rt.Z)({},oi,si)):((!rn||rn(zi.current,oi))&&(Gi.current+=1),zi.current=oi,ke.createElement(it.Provider,{value:Gi.current},ke.createElement(Sn,(0,Rt.Z)({},oi,si))))};return Vn?ke.forwardRef(Un):Un}function Kt(Sn,rn){var Vn=(0,xt.Yr)(Sn),Un=function(oi,hi){var si=Vn?{ref:hi}:{};return lt(),ke.createElement(Sn,(0,Rt.Z)({},oi,si))};return Vn?ke.memo(ke.forwardRef(Un),rn):ke.memo(Un,rn)}return{makeImmutable:Ht,responseImmutable:Kt,useImmutableMark:lt}}var Ae=zt(),te=Ae.makeImmutable,ne=Ae.responseImmutable,he=Ae.useImmutableMark,se=zt(),ge=se.makeImmutable,me=se.responseImmutable,we=se.useImmutableMark,Fe=Lt(),Be=Fe;function Ie(it,lt){var Ht=ke.useRef(0);Ht.current+=1;var Kt=ke.useRef(it),Sn=[];Object.keys(it||{}).map(function(Vn){var Un;(it==null?void 0:it[Vn])!==((Un=Kt.current)===null||Un===void 0?void 0:Un[Vn])&&Sn.push(Vn)}),Kt.current=it;var rn=ke.useRef([]);return Sn.length&&(rn.current=Sn),ke.useDebugValue(Ht.current),ke.useDebugValue(rn.current.join(", ")),lt&&console.log("".concat(lt,":"),Ht.current,rn.current),Ht.current}var We=null,nt=ke.memo(function(){var it=Ie();return ke.createElement("h1",null,"Render Times: ",it)});nt.displayName="RenderBlock";var Xe=ye(20135),dt=ye(44127),Ze=ye(90493),Zt=ye(92310),yt=ye.n(Zt),an=ye(80547),Gt=ye(97938),Vt=ye(48736),hn=ke.createContext({renderWithProps:!1}),yn=hn,vt="RC_TABLE_KEY";function je(it){return it==null?[]:Array.isArray(it)?it:[it]}function wt(it){var lt=[],Ht={};return it.forEach(function(Kt){for(var Sn=Kt||{},rn=Sn.key,Vn=Sn.dataIndex,Un=rn||je(Vn).join("-")||vt;Ht[Un];)Un="".concat(Un,"_next");Ht[Un]=!0,lt.push(Un)}),lt}function tn(it){return it!=null}function bn(it){return it&&(0,Xe.Z)(it)==="object"&&!Array.isArray(it)&&!ke.isValidElement(it)}function Ft(it,lt,Ht,Kt,Sn,rn){var Vn=ke.useContext(yn),Un=we(),jn=(0,an.Z)(function(){if(tn(Kt))return[Kt];var oi=lt==null||lt===""?[]:Array.isArray(lt)?lt:[lt],hi=(0,Gt.Z)(it,oi),si=hi,Gi=void 0;if(Sn){var zi=Sn(hi,it,Ht);bn(zi)?(si=zi.children,Gi=zi.props,Vn.renderWithProps=!0):si=zi}return[si,Gi]},[Un,it,Kt,lt,Sn,Ht],function(oi,hi){if(rn){var si=(0,tt.Z)(oi,2),Gi=si[1],zi=(0,tt.Z)(hi,2),Fi=zi[1];return rn(Fi,Gi)}return Vn.renderWithProps?!0:!(0,Je.Z)(oi,hi,!0)});return jn}function Xt(it,lt,Ht,Kt){var Sn=it+lt-1;return it<=Kt&&Sn>=Ht}function Cn(it,lt){return ot(Be,function(Ht){var Kt=Xt(it,lt||1,Ht.hoverStartRow,Ht.hoverEndRow);return[Kt,Ht.onHover]})}var Qn=function(lt){var Ht=lt.ellipsis,Kt=lt.rowType,Sn=lt.children,rn,Vn=Ht===!0?{showTitle:!0}:Ht;return Vn&&(Vn.showTitle||Kt==="header")&&(typeof Sn=="string"||typeof Sn=="number"?rn=Sn.toString():ke.isValidElement(Sn)&&typeof Sn.props.children=="string"&&(rn=Sn.props.children)),rn};function gn(it){var lt,Ht,Kt,Sn,rn,Vn,Un,jn,oi=it.component,hi=it.children,si=it.ellipsis,Gi=it.scope,zi=it.prefixCls,Fi=it.className,ho=it.align,Ti=it.record,so=it.render,oo=it.dataIndex,bo=it.renderIndex,Xo=it.shouldCellUpdate,lr=it.index,fo=it.rowType,Vo=it.colSpan,Mr=it.rowSpan,Po=it.fixLeft,zo=it.fixRight,wo=it.firstFixLeft,Ji=it.lastFixLeft,Bo=it.firstFixRight,_o=it.lastFixRight,pr=it.appendNode,vr=it.additionalProps,po=vr===void 0?{}:vr,Nr=it.isSticky,Tr="".concat(zi,"-cell"),ga=ot(Be,["supportSticky","allColumnsFixedLeft"]),$r=ga.supportSticky,Xa=ga.allColumnsFixedLeft,Va=Ft(Ti,oo,bo,hi,so,Xo),Dr=(0,tt.Z)(Va,2),ar=Dr[0],oa=Dr[1],Ya={},Ia=typeof Po=="number"&&$r,gs=typeof zo=="number"&&$r;Ia&&(Ya.position="sticky",Ya.left=Po),gs&&(Ya.position="sticky",Ya.right=zo);var yr=(lt=(Ht=(Kt=oa==null?void 0:oa.colSpan)!==null&&Kt!==void 0?Kt:po.colSpan)!==null&&Ht!==void 0?Ht:Vo)!==null&<!==void 0?lt:1,fr=(Sn=(rn=(Vn=oa==null?void 0:oa.rowSpan)!==null&&Vn!==void 0?Vn:po.rowSpan)!==null&&rn!==void 0?rn:Mr)!==null&&Sn!==void 0?Sn:1,Sr=Cn(lr,fr),Yo=(0,tt.Z)(Sr,2),sa=Yo[0],Jo=Yo[1],Fr=function(ds){var Ls;Ti&&Jo(lr,lr+fr-1),po==null||(Ls=po.onMouseEnter)===null||Ls===void 0||Ls.call(po,ds)},qr=function(ds){var Ls;Ti&&Jo(-1,-1),po==null||(Ls=po.onMouseLeave)===null||Ls===void 0||Ls.call(po,ds)};if(yr===0||fr===0)return null;var ea=(Un=po.title)!==null&&Un!==void 0?Un:Qn({rowType:fo,ellipsis:si,children:ar}),Os=yt()(Tr,Fi,(jn={},(0,Ze.Z)(jn,"".concat(Tr,"-fix-left"),Ia&&$r),(0,Ze.Z)(jn,"".concat(Tr,"-fix-left-first"),wo&&$r),(0,Ze.Z)(jn,"".concat(Tr,"-fix-left-last"),Ji&&$r),(0,Ze.Z)(jn,"".concat(Tr,"-fix-left-all"),Ji&&Xa&&$r),(0,Ze.Z)(jn,"".concat(Tr,"-fix-right"),gs&&$r),(0,Ze.Z)(jn,"".concat(Tr,"-fix-right-first"),Bo&&$r),(0,Ze.Z)(jn,"".concat(Tr,"-fix-right-last"),_o&&$r),(0,Ze.Z)(jn,"".concat(Tr,"-ellipsis"),si),(0,Ze.Z)(jn,"".concat(Tr,"-with-append"),pr),(0,Ze.Z)(jn,"".concat(Tr,"-fix-sticky"),(Ia||gs)&&Nr&&$r),(0,Ze.Z)(jn,"".concat(Tr,"-row-hover"),!oa&&sa),jn),po.className,oa==null?void 0:oa.className),ys={};ho&&(ys.textAlign=ho);var nl=(0,dt.Z)((0,dt.Z)((0,dt.Z)((0,dt.Z)({},Ya),po.style),ys),oa==null?void 0:oa.style),pa=ar;return(0,Xe.Z)(pa)==="object"&&!Array.isArray(pa)&&!ke.isValidElement(pa)&&(pa=null),si&&(Ji||Bo)&&(pa=ke.createElement("span",{className:"".concat(Tr,"-content")},pa)),ke.createElement(oi,(0,Rt.Z)({},oa,po,{className:Os,style:nl,title:ea,scope:Gi,onMouseEnter:Fr,onMouseLeave:qr,colSpan:yr!==1?yr:null,rowSpan:fr!==1?fr:null}),pr,pa)}var Gn=ke.memo(gn);function bt(it,lt,Ht,Kt,Sn,rn){var Vn=Ht[it]||{},Un=Ht[lt]||{},jn,oi;Vn.fixed==="left"?jn=Kt.left[Sn==="rtl"?lt:it]:Un.fixed==="right"&&(oi=Kt.right[Sn==="rtl"?it:lt]);var hi=!1,si=!1,Gi=!1,zi=!1,Fi=Ht[lt+1],ho=Ht[it-1],Ti=!(rn!=null&&rn.children);if(Sn==="rtl"){if(jn!==void 0){var so=ho&&ho.fixed==="left";zi=!so&&Ti}else if(oi!==void 0){var oo=Fi&&Fi.fixed==="right";Gi=!oo&&Ti}}else if(jn!==void 0){var bo=Fi&&Fi.fixed==="left";hi=!bo&&Ti}else if(oi!==void 0){var Xo=ho&&ho.fixed==="right";si=!Xo&&Ti}return{fixLeft:jn,fixRight:oi,lastFixLeft:hi,firstFixRight:si,lastFixRight:Gi,firstFixLeft:zi,isSticky:Kt.isSticky}}var zn=ke.createContext({}),ai=zn;function He(it){var lt=it.className,Ht=it.index,Kt=it.children,Sn=it.colSpan,rn=Sn===void 0?1:Sn,Vn=it.rowSpan,Un=it.align,jn=ot(Be,["prefixCls","direction"]),oi=jn.prefixCls,hi=jn.direction,si=ke.useContext(ai),Gi=si.scrollColumnIndex,zi=si.stickyOffsets,Fi=si.flattenColumns,ho=si.columns,Ti=Ht+rn-1,so=Ti+1===Gi?rn+1:rn,oo=bt(Ht,Ht+so-1,Fi,zi,hi,ho==null?void 0:ho[Ht]);return ke.createElement(Gn,(0,Rt.Z)({className:lt,index:Ht,component:"td",prefixCls:oi,record:null,dataIndex:null,align:Un,colSpan:so,rowSpan:Vn,render:function(){return Kt}},oo))}var Le=ye(6620),xe=["children"];function Ne(it){var lt=it.children,Ht=(0,Le.Z)(it,xe);return ke.createElement("tr",Ht,lt)}function De(it){var lt=it.children;return lt}De.Row=Ne,De.Cell=He;var ve=De;function $e(it){var lt=it.children,Ht=it.stickyOffsets,Kt=it.flattenColumns,Sn=it.columns,rn=ot(Be,"prefixCls"),Vn=Kt.length-1,Un=Kt[Vn],jn=ke.useMemo(function(){return{stickyOffsets:Ht,flattenColumns:Kt,scrollColumnIndex:Un!=null&&Un.scrollbar?Vn:null,columns:Sn}},[Un,Kt,Vn,Ht,Sn]);return ke.createElement(ai.Provider,{value:jn},ke.createElement("tfoot",{className:"".concat(rn,"-summary")},lt))}var mt=me($e),et=ve,Ve=ye(70425),gt=ye(29301),ft=ye(29194),rt=ye(24514),Mt=ye(75152),pn=ye(26112);function dn(it,lt,Ht,Kt,Sn,rn,Vn){it.push({record:lt,indent:Ht,index:Vn});var Un=rn(lt),jn=Sn==null?void 0:Sn.has(Un);if(lt&&Array.isArray(lt[Kt])&&jn)for(var oi=0;oi<lt[Kt].length;oi+=1)dn(it,lt[Kt][oi],Ht+1,Kt,Sn,rn,oi)}function Jt(it,lt,Ht,Kt){var Sn=ke.useMemo(function(){if(Ht!=null&&Ht.size){for(var rn=[],Vn=0;Vn<(it==null?void 0:it.length);Vn+=1){var Un=it[Vn];dn(rn,Un,0,lt,Ht,Kt,Vn)}return rn}return it==null?void 0:it.map(function(jn,oi){return{record:jn,indent:0,index:oi}})},[it,lt,Ht,Kt]);return Sn}function Rn(it){var lt=it.prefixCls,Ht=it.children,Kt=it.component,Sn=it.cellComponent,rn=it.className,Vn=it.expanded,Un=it.colSpan,jn=it.isEmpty,oi=ot(Be,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),hi=oi.scrollbarSize,si=oi.fixHeader,Gi=oi.fixColumn,zi=oi.componentWidth,Fi=oi.horizonScroll,ho=Ht;return(jn?Fi&&zi:Gi)&&(ho=ke.createElement("div",{style:{width:zi-(si?hi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(lt,"-expanded-row-fixed")},ho)),ke.createElement(Kt,{className:rn,style:{display:Vn?null:"none"}},ke.createElement(Gn,{component:Sn,prefixCls:lt,colSpan:Un},ho))}var Tn=Rn;function Et(it,lt,Ht,Kt){var Sn=ot(Be,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),rn=Sn.flattenColumns,Vn=Sn.expandableType,Un=Sn.expandedKeys,jn=Sn.childrenColumnName,oi=Sn.onTriggerExpand,hi=Sn.rowExpandable,si=Sn.onRow,Gi=Sn.expandRowByClick,zi=Sn.rowClassName,Fi=Vn==="nest",ho=Vn==="row"&&(!hi||hi(it)),Ti=ho||Fi,so=Un&&Un.has(lt),oo=jn&&it&&it[jn],bo=(0,Ve.useEvent)(oi),Xo=si==null?void 0:si(it,Ht),lr=Xo==null?void 0:Xo.onClick,fo=function(zo){Gi&&Ti&&oi(it,zo);for(var wo=arguments.length,Ji=new Array(wo>1?wo-1:0),Bo=1;Bo<wo;Bo++)Ji[Bo-1]=arguments[Bo];lr==null||lr.apply(void 0,[zo].concat(Ji))},Vo;typeof zi=="string"?Vo=zi:typeof zi=="function"&&(Vo=zi(it,Ht,Kt));var Mr=wt(rn);return(0,dt.Z)((0,dt.Z)({},Sn),{},{columnsKey:Mr,nestExpandable:Fi,expanded:so,hasNestChildren:oo,record:it,onTriggerExpand:bo,rowSupportExpand:ho,expandable:Ti,rowProps:(0,dt.Z)((0,dt.Z)({},Xo),{},{className:yt()(Vo,Xo==null?void 0:Xo.className),onClick:fo})})}function cn(it,lt,Ht,Kt,Sn){var rn=it.record,Vn=it.prefixCls,Un=it.columnsKey,jn=it.fixedInfoList,oi=it.expandIconColumnIndex,hi=it.nestExpandable,si=it.indentSize,Gi=it.expandIcon,zi=it.expanded,Fi=it.hasNestChildren,ho=it.onTriggerExpand,Ti=Un[Ht],so=jn[Ht],oo;Ht===(oi||0)&&hi&&(oo=ke.createElement(ke.Fragment,null,ke.createElement("span",{style:{paddingLeft:"".concat(si*Kt,"px")},className:"".concat(Vn,"-row-indent indent-level-").concat(Kt)}),Gi({prefixCls:Vn,expanded:zi,expandable:Fi,record:rn,onExpand:ho})));var bo;return lt.onCell&&(bo=lt.onCell(rn,Sn)),{key:Ti,fixedInfo:so,appendCellNode:oo,additionalCellProps:bo||{}}}function On(it){var lt=it.className,Ht=it.style,Kt=it.record,Sn=it.index,rn=it.renderIndex,Vn=it.rowKey,Un=it.indent,jn=Un===void 0?0:Un,oi=it.rowComponent,hi=it.cellComponent,si=it.scopeCellComponent,Gi=Et(Kt,Vn,Sn,jn),zi=Gi.prefixCls,Fi=Gi.flattenColumns,ho=Gi.expandedRowClassName,Ti=Gi.expandedRowRender,so=Gi.rowProps,oo=Gi.expanded,bo=Gi.rowSupportExpand,Xo=ke.useState(!1),lr=(0,tt.Z)(Xo,2),fo=lr[0],Vo=lr[1];ke.useEffect(function(){oo&&Vo(!0)},[oo]);var Mr=ke.createElement(oi,(0,Rt.Z)({},so,{"data-row-key":Vn,className:yt()(lt,"".concat(zi,"-row"),"".concat(zi,"-row-level-").concat(jn),so==null?void 0:so.className),style:(0,dt.Z)((0,dt.Z)({},Ht),so==null?void 0:so.style)}),Fi.map(function(Ji,Bo){var _o=Ji.render,pr=Ji.dataIndex,vr=Ji.className,po=cn(Gi,Ji,Bo,jn,Sn),Nr=po.key,Tr=po.fixedInfo,ga=po.appendCellNode,$r=po.additionalCellProps;return ke.createElement(Gn,(0,Rt.Z)({className:vr,ellipsis:Ji.ellipsis,align:Ji.align,scope:Ji.rowScope,component:Ji.rowScope?si:hi,prefixCls:zi,key:Nr,record:Kt,index:Sn,renderIndex:rn,dataIndex:pr,render:_o,shouldCellUpdate:Ji.shouldCellUpdate},Tr,{appendNode:ga,additionalProps:$r}))})),Po;if(bo&&(fo||oo)){var zo=Ti(Kt,Sn,jn+1,oo),wo=ho&&ho(Kt,Sn,jn);Po=ke.createElement(Tn,{expanded:oo,className:yt()("".concat(zi,"-expanded-row"),"".concat(zi,"-expanded-row-level-").concat(jn+1),wo),prefixCls:zi,component:oi,cellComponent:hi,colSpan:Fi.length,isEmpty:!1},zo)}return ke.createElement(ke.Fragment,null,Mr,Po)}On.displayName="BodyRow";var Ct=me(On);function _n(it){var lt=it.columnKey,Ht=it.onColumnResize,Kt=ke.useRef();return ke.useEffect(function(){Kt.current&&Ht(lt,Kt.current.offsetWidth)},[]),ke.createElement(gt.Z,{data:lt},ke.createElement("td",{ref:Kt,style:{padding:0,border:0,height:0}},ke.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function ui(it){var lt=it.prefixCls,Ht=it.columnsKey,Kt=it.onColumnResize;return ke.createElement("tr",{"aria-hidden":"true",className:"".concat(lt,"-measure-row"),style:{height:0,fontSize:0}},ke.createElement(gt.Z.Collection,{onBatchResize:function(rn){rn.forEach(function(Vn){var Un=Vn.data,jn=Vn.size;Kt(Un,jn.offsetWidth)})}},Ht.map(function(Sn){return ke.createElement(_n,{key:Sn,columnKey:Sn,onColumnResize:Kt})})))}function Ci(it){var lt=it.data,Ht=it.measureColumnWidth,Kt=ot(Be,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Sn=Kt.prefixCls,rn=Kt.getComponent,Vn=Kt.onColumnResize,Un=Kt.flattenColumns,jn=Kt.getRowKey,oi=Kt.expandedKeys,hi=Kt.childrenColumnName,si=Kt.emptyNode,Gi=Jt(lt,hi,oi,jn),zi=ke.useRef({renderWithProps:!1}),Fi=rn(["body","wrapper"],"tbody"),ho=rn(["body","row"],"tr"),Ti=rn(["body","cell"],"td"),so=rn(["body","cell"],"th"),oo;lt.length?oo=Gi.map(function(Xo,lr){var fo=Xo.record,Vo=Xo.indent,Mr=Xo.index,Po=jn(fo,lr);return ke.createElement(Ct,{key:Po,rowKey:Po,record:fo,index:lr,renderIndex:Mr,rowComponent:ho,cellComponent:Ti,scopeCellComponent:so,getRowKey:jn,indent:Vo})}):oo=ke.createElement(Tn,{expanded:!0,className:"".concat(Sn,"-placeholder"),prefixCls:Sn,component:ho,cellComponent:Ti,colSpan:Un.length,isEmpty:!0},si);var bo=wt(Un);return ke.createElement(yn.Provider,{value:zi.current},ke.createElement(Fi,{className:"".concat(Sn,"-tbody")},Ht&&ke.createElement(ui,{prefixCls:Sn,columnsKey:bo,onColumnResize:Vn}),oo))}Ci.displayName="Body";var ci=me(Ci),Hi=["expandable"],qi="RC_TABLE_INTERNAL_COL_DEFINE";function Xi(it){var lt=it.expandable,Ht=(0,Le.Z)(it,Hi),Kt;return"expandable"in it?Kt=(0,dt.Z)((0,dt.Z)({},Ht),lt):Kt=Ht,Kt.showExpandColumn===!1&&(Kt.expandIconColumnIndex=-1),Kt}var eo=["columnType"];function Oo(it){for(var lt=it.colWidths,Ht=it.columns,Kt=it.columCount,Sn=[],rn=Kt||Ht.length,Vn=!1,Un=rn-1;Un>=0;Un-=1){var jn=lt[Un],oi=Ht&&Ht[Un],hi=oi&&oi[qi];if(jn||hi||Vn){var si=hi||{},Gi=si.columnType,zi=(0,Le.Z)(si,eo);Sn.unshift(ke.createElement("col",(0,Rt.Z)({key:Un,style:{width:jn}},zi))),Vn=!0}}return ke.createElement("colgroup",null,Sn)}var vo=Oo,Ri=ye(19127),Co=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Bn(it,lt){return(0,ke.useMemo)(function(){for(var Ht=[],Kt=0;Kt<lt;Kt+=1){var Sn=it[Kt];if(Sn!==void 0)Ht[Kt]=Sn;else return null}return Ht},[it.join("_"),lt])}var be=ke.forwardRef(function(it,lt){var Ht=it.className,Kt=it.noData,Sn=it.columns,rn=it.flattenColumns,Vn=it.colWidths,Un=it.columCount,jn=it.stickyOffsets,oi=it.direction,hi=it.fixHeader,si=it.stickyTopOffset,Gi=it.stickyBottomOffset,zi=it.stickyClassName,Fi=it.onScroll,ho=it.maxContentScroll,Ti=it.children,so=(0,Le.Z)(it,Co),oo=ot(Be,["prefixCls","scrollbarSize","isSticky"]),bo=oo.prefixCls,Xo=oo.scrollbarSize,lr=oo.isSticky,fo=lr&&!hi?0:Xo,Vo=ke.useRef(null),Mr=ke.useCallback(function(vr){(0,xt.mH)(lt,vr),(0,xt.mH)(Vo,vr)},[]);ke.useEffect(function(){var vr;function po(Nr){var Tr=Nr,ga=Tr.currentTarget,$r=Tr.deltaX;$r&&(Fi({currentTarget:ga,scrollLeft:ga.scrollLeft+$r}),Nr.preventDefault())}return(vr=Vo.current)===null||vr===void 0||vr.addEventListener("wheel",po),function(){var Nr;(Nr=Vo.current)===null||Nr===void 0||Nr.removeEventListener("wheel",po)}},[]);var Po=ke.useMemo(function(){return rn.every(function(vr){return vr.width})},[rn]),zo=rn[rn.length-1],wo={fixed:zo?zo.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(bo,"-cell-scrollbar")}}},Ji=(0,ke.useMemo)(function(){return fo?[].concat((0,Ri.Z)(Sn),[wo]):Sn},[fo,Sn]),Bo=(0,ke.useMemo)(function(){return fo?[].concat((0,Ri.Z)(rn),[wo]):rn},[fo,rn]),_o=(0,ke.useMemo)(function(){var vr=jn.right,po=jn.left;return(0,dt.Z)((0,dt.Z)({},jn),{},{left:oi==="rtl"?[].concat((0,Ri.Z)(po.map(function(Nr){return Nr+fo})),[0]):po,right:oi==="rtl"?vr:[].concat((0,Ri.Z)(vr.map(function(Nr){return Nr+fo})),[0]),isSticky:lr})},[fo,jn,lr]),pr=Bn(Vn,Un);return ke.createElement("div",{style:(0,dt.Z)({overflow:"hidden"},lr?{top:si,bottom:Gi}:{}),ref:Mr,className:yt()(Ht,(0,Ze.Z)({},zi,!!zi))},ke.createElement("table",{style:{tableLayout:"fixed",visibility:Kt||pr?null:"hidden"}},(!Kt||!ho||Po)&&ke.createElement(vo,{colWidths:pr?[].concat((0,Ri.Z)(pr),[fo]):[],columCount:Un+1,columns:Bo}),Ti((0,dt.Z)((0,dt.Z)({},so),{},{stickyOffsets:_o,columns:Ji,flattenColumns:Bo}))))});be.displayName="FixedHolder";var Mi=ke.memo(be);function Ei(it){var lt=it.cells,Ht=it.stickyOffsets,Kt=it.flattenColumns,Sn=it.rowComponent,rn=it.cellComponent,Vn=it.tdCellComponent,Un=it.onHeaderRow,jn=it.index,oi=ot(Be,["prefixCls","direction"]),hi=oi.prefixCls,si=oi.direction,Gi;Un&&(Gi=Un(lt.map(function(Fi){return Fi.column}),jn));var zi=wt(lt.map(function(Fi){return Fi.column}));return ke.createElement(Sn,Gi,lt.map(function(Fi,ho){var Ti=Fi.column,so=bt(Fi.colStart,Fi.colEnd,Kt,Ht,si,Ti),oo;return Ti&&Ti.onHeaderCell&&(oo=Fi.column.onHeaderCell(Ti)),ke.createElement(Gn,(0,Rt.Z)({},Fi,{scope:Ti.title?Fi.colSpan>1?"colgroup":"col":null,ellipsis:Ti.ellipsis,align:Ti.align,component:Ti.title?rn:Vn,prefixCls:hi,key:zi[ho]},so,{additionalProps:oo,rowType:"header"}))}))}Ei.displayName="HeaderRow";var Dt=Ei;function En(it){var lt=[];function Ht(Vn,Un){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;lt[jn]=lt[jn]||[];var oi=Un,hi=Vn.filter(Boolean).map(function(si){var Gi={key:si.key,className:si.className||"",children:si.title,column:si,colStart:oi},zi=1,Fi=si.children;return Fi&&Fi.length>0&&(zi=Ht(Fi,oi,jn+1).reduce(function(ho,Ti){return ho+Ti},0),Gi.hasSubColumns=!0),"colSpan"in si&&(zi=si.colSpan),"rowSpan"in si&&(Gi.rowSpan=si.rowSpan),Gi.colSpan=zi,Gi.colEnd=Gi.colStart+zi-1,lt[jn].push(Gi),oi+=zi,zi});return hi}Ht(it,0);for(var Kt=lt.length,Sn=function(Un){lt[Un].forEach(function(jn){!("rowSpan"in jn)&&!jn.hasSubColumns&&(jn.rowSpan=Kt-Un)})},rn=0;rn<Kt;rn+=1)Sn(rn);return lt}function Fn(it){var lt=it.stickyOffsets,Ht=it.columns,Kt=it.flattenColumns,Sn=it.onHeaderRow,rn=ot(Be,["prefixCls","getComponent"]),Vn=rn.prefixCls,Un=rn.getComponent,jn=ke.useMemo(function(){return En(Ht)},[Ht]),oi=Un(["header","wrapper"],"thead"),hi=Un(["header","row"],"tr"),si=Un(["header","cell"],"th"),Gi=Un(["header","cell"],"td");return ke.createElement(oi,{className:"".concat(Vn,"-thead")},jn.map(function(zi,Fi){var ho=ke.createElement(Dt,{key:Fi,flattenColumns:Kt,cells:zi,stickyOffsets:lt,rowComponent:hi,cellComponent:si,tdCellComponent:Gi,onHeaderRow:Sn,index:Fi});return ho}))}var Jn=me(Fn),wn=ye(11592);function Nn(it){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof lt=="number"?lt:lt.endsWith("%")?it*parseFloat(lt)/100:null}function ct(it,lt){return ke.useMemo(function(){if(lt&<>0){var Ht=0,Kt=0;it.forEach(function(oi){var hi=Nn(lt,oi.width);hi?Ht+=hi:Kt+=1});var Sn=lt-Ht,rn=Kt,Vn=Sn/Kt,Un=0,jn=it.map(function(oi){var hi=(0,dt.Z)({},oi),si=Nn(lt,hi.width);if(si)hi.width=si;else{var Gi=Math.floor(Vn);hi.width=rn===1?Sn:Gi,Sn-=Gi,rn-=1}return Un+=hi.width,hi});return[jn,Un]}return[it,lt]},[it,lt])}var Pt=["children"],Re=["fixed"];function Tt(it){return(0,wn.Z)(it).filter(function(lt){return ke.isValidElement(lt)}).map(function(lt){var Ht=lt.key,Kt=lt.props,Sn=Kt.children,rn=(0,Le.Z)(Kt,Pt),Vn=(0,dt.Z)({key:Ht},rn);return Sn&&(Vn.children=Tt(Sn)),Vn})}function _t(it){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return it.filter(function(Ht){return Ht&&(0,Xe.Z)(Ht)==="object"}).reduce(function(Ht,Kt,Sn){var rn=Kt.fixed,Vn=rn===!0?"left":rn,Un="".concat(lt,"-").concat(Sn),jn=Kt.children;return jn&&jn.length>0?[].concat((0,Ri.Z)(Ht),(0,Ri.Z)(_t(jn,Un).map(function(oi){return(0,dt.Z)({fixed:Vn},oi)}))):[].concat((0,Ri.Z)(Ht),[(0,dt.Z)((0,dt.Z)({key:Un},Kt),{},{fixed:Vn})])},[])}function ht(it){for(var lt=!0,Ht=0;Ht<it.length;Ht+=1){var Kt=it[Ht];if(lt&&Kt.fixed!=="left")lt=!1;else if(!lt&&Kt.fixed==="left"){warning(!1,"Index ".concat(Ht-1," of `columns` missing `fixed='left'` prop."));break}}for(var Sn=!0,rn=it.length-1;rn>=0;rn-=1){var Vn=it[rn];if(Sn&&Vn.fixed!=="right")Sn=!1;else if(!Sn&&Vn.fixed==="right"){warning(!1,"Index ".concat(rn+1," of `columns` missing `fixed='right'` prop."));break}}}function Ye(it){return it.map(function(lt){var Ht=lt.fixed,Kt=(0,Le.Z)(lt,Re),Sn=Ht;return Ht==="left"?Sn="right":Ht==="right"&&(Sn="left"),(0,dt.Z)({fixed:Sn},Kt)})}function Wt(it,lt){var Ht=it.prefixCls,Kt=it.columns,Sn=it.children,rn=it.expandable,Vn=it.expandedKeys,Un=it.columnTitle,jn=it.getRowKey,oi=it.onTriggerExpand,hi=it.expandIcon,si=it.rowExpandable,Gi=it.expandIconColumnIndex,zi=it.direction,Fi=it.expandRowByClick,ho=it.columnWidth,Ti=it.fixed,so=it.scrollWidth,oo=ke.useMemo(function(){return Kt||Tt(Sn)},[Kt,Sn]),bo=ke.useMemo(function(){if(rn){var zo,wo=oo.slice();if(!wo.includes(Ce)){var Ji=Gi||0;Ji>=0&&wo.splice(Ji,0,Ce)}var Bo=wo.indexOf(Ce);wo=wo.filter(function(po,Nr){return po!==Ce||Nr===Bo});var _o=oo[Bo],pr;(Ti==="left"||Ti)&&!Gi?pr="left":(Ti==="right"||Ti)&&Gi===oo.length?pr="right":pr=_o?_o.fixed:null;var vr=(zo={},(0,Ze.Z)(zo,qi,{className:"".concat(Ht,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ze.Z)(zo,"title",Un),(0,Ze.Z)(zo,"fixed",pr),(0,Ze.Z)(zo,"className","".concat(Ht,"-row-expand-icon-cell")),(0,Ze.Z)(zo,"width",ho),(0,Ze.Z)(zo,"render",function(Nr,Tr,ga){var $r=jn(Tr,ga),Xa=Vn.has($r),Va=si?si(Tr):!0,Dr=hi({prefixCls:Ht,expanded:Xa,expandable:Va,record:Tr,onExpand:oi});return Fi?ke.createElement("span",{onClick:function(oa){return oa.stopPropagation()}},Dr):Dr}),zo);return wo.map(function(po){return po===Ce?vr:po})}return oo.filter(function(po){return po!==Ce})},[rn,oo,jn,Vn,hi,zi]),Xo=ke.useMemo(function(){var zo=bo;return lt&&(zo=lt(zo)),zo.length||(zo=[{render:function(){return null}}]),zo},[lt,bo,zi]),lr=ke.useMemo(function(){return zi==="rtl"?Ye(_t(Xo)):_t(Xo)},[Xo,zi,so]),fo=ct(lr,so),Vo=(0,tt.Z)(fo,2),Mr=Vo[0],Po=Vo[1];return[Xo,Mr,Po]}var Ut=Wt;function fn(it){var lt,Ht=it.prefixCls,Kt=it.record,Sn=it.onExpand,rn=it.expanded,Vn=it.expandable,Un="".concat(Ht,"-row-expand-icon");if(!Vn)return ke.createElement("span",{className:yt()(Un,"".concat(Ht,"-row-spaced"))});var jn=function(hi){Sn(Kt,hi),hi.stopPropagation()};return ke.createElement("span",{className:yt()(Un,(lt={},(0,Ze.Z)(lt,"".concat(Ht,"-row-expanded"),rn),(0,Ze.Z)(lt,"".concat(Ht,"-row-collapsed"),!rn),lt)),onClick:jn})}function Dn(it,lt,Ht){var Kt=[];function Sn(rn){(rn||[]).forEach(function(Vn,Un){Kt.push(lt(Vn,Un)),Sn(Vn[Ht])})}return Sn(it),Kt}function at(it,lt,Ht){var Kt=Xi(it),Sn=Kt.expandIcon,rn=Kt.expandedRowKeys,Vn=Kt.defaultExpandedRowKeys,Un=Kt.defaultExpandAllRows,jn=Kt.expandedRowRender,oi=Kt.onExpand,hi=Kt.onExpandedRowsChange,si=Kt.childrenColumnName,Gi=Sn||fn,zi=si||"children",Fi=ke.useMemo(function(){return jn?"row":it.expandable&&it.internalHooks===Oe&&it.expandable.__PARENT_RENDER_ICON__||lt.some(function(lr){return lr&&(0,Xe.Z)(lr)==="object"&&lr[zi]})?"nest":!1},[!!jn,lt]),ho=ke.useState(function(){return Vn||(Un?Dn(lt,Ht,zi):[])}),Ti=(0,tt.Z)(ho,2),so=Ti[0],oo=Ti[1],bo=ke.useMemo(function(){return new Set(rn||so||[])},[rn,so]),Xo=ke.useCallback(function(lr){var fo=Ht(lr,lt.indexOf(lr)),Vo,Mr=bo.has(fo);Mr?(bo.delete(fo),Vo=(0,Ri.Z)(bo)):Vo=[].concat((0,Ri.Z)(bo),[fo]),oo(Vo),oi&&oi(!Mr,lr),hi&&hi(Vo)},[Ht,bo,lt,oi,hi]);return[Kt,Fi,bo,Gi,zi,Xo]}function ln(it,lt,Ht,Kt){var Sn=it.map(function(rn,Vn){return bt(Vn,Vn,it,lt,Ht,Kt==null?void 0:Kt[Vn])});return(0,an.Z)(function(){return Sn},[Sn],function(rn,Vn){return!(0,Je.Z)(rn,Vn)})}function Hn(it){var lt=(0,ke.useRef)(it),Ht=(0,ke.useState)({}),Kt=(0,tt.Z)(Ht,2),Sn=Kt[1],rn=(0,ke.useRef)(null),Vn=(0,ke.useRef)([]);function Un(jn){Vn.current.push(jn);var oi=Promise.resolve();rn.current=oi,oi.then(function(){if(rn.current===oi){var hi=Vn.current,si=lt.current;Vn.current=[],hi.forEach(function(Gi){lt.current=Gi(lt.current)}),rn.current=null,si!==lt.current&&Sn({})}})}return(0,ke.useEffect)(function(){return function(){rn.current=null}},[]),[lt.current,Un]}function ii(it){var lt=(0,ke.useRef)(it||null),Ht=(0,ke.useRef)();function Kt(){window.clearTimeout(Ht.current)}function Sn(Vn){lt.current=Vn,Kt(),Ht.current=window.setTimeout(function(){lt.current=null,Ht.current=void 0},100)}function rn(){return lt.current}return(0,ke.useEffect)(function(){return Kt},[]),[Sn,rn]}function jt(){var it=ke.useState(-1),lt=(0,tt.Z)(it,2),Ht=lt[0],Kt=lt[1],Sn=ke.useState(-1),rn=(0,tt.Z)(Sn,2),Vn=rn[0],Un=rn[1],jn=ke.useCallback(function(oi,hi){Kt(oi),Un(hi)},[]);return[Ht,Vn,jn]}var sn=ye(47273),It=(0,sn.Z)()?window:null;function on(it,lt){var Ht=(0,Xe.Z)(it)==="object"?it:{},Kt=Ht.offsetHeader,Sn=Kt===void 0?0:Kt,rn=Ht.offsetSummary,Vn=rn===void 0?0:rn,Un=Ht.offsetScroll,jn=Un===void 0?0:Un,oi=Ht.getContainer,hi=oi===void 0?function(){return It}:oi,si=hi()||It;return ke.useMemo(function(){var Gi=!!it;return{isSticky:Gi,stickyClassName:Gi?"".concat(lt,"-sticky-holder"):"",offsetHeader:Sn,offsetSummary:Vn,offsetScroll:jn,container:si}},[jn,Sn,Vn,lt,si])}function qt(it,lt,Ht){var Kt=(0,ke.useMemo)(function(){for(var Sn=[],rn=[],Vn=0,Un=0,jn=0;jn<lt;jn+=1)if(Ht==="rtl"){rn[jn]=Un,Un+=it[jn]||0;var oi=lt-jn-1;Sn[oi]=Vn,Vn+=it[oi]||0}else{Sn[jn]=Vn,Vn+=it[jn]||0;var hi=lt-jn-1;rn[hi]=Un,Un+=it[hi]||0}return{left:Sn,right:rn}},[it,lt,Ht]);return Kt}var en=qt;function xn(it){var lt=it.className,Ht=it.children;return ke.createElement("div",{className:lt},Ht)}var Pn=xn,An=ye(8224),Wn=ye(55468),pi=function(lt,Ht){var Kt,Sn,rn=lt.scrollBodyRef,Vn=lt.onScroll,Un=lt.offsetScroll,jn=lt.container,oi=ot(Be,"prefixCls"),hi=((Kt=rn.current)===null||Kt===void 0?void 0:Kt.scrollWidth)||0,si=((Sn=rn.current)===null||Sn===void 0?void 0:Sn.clientWidth)||0,Gi=hi&&si*(si/hi),zi=ke.useRef(),Fi=Hn({scrollLeft:0,isHiddenScrollBar:!1}),ho=(0,tt.Z)(Fi,2),Ti=ho[0],so=ho[1],oo=ke.useRef({delta:0,x:0}),bo=ke.useState(!1),Xo=(0,tt.Z)(bo,2),lr=Xo[0],fo=Xo[1],Vo=function(){fo(!1)},Mr=function(Bo){Bo.persist(),oo.current.delta=Bo.pageX-Ti.scrollLeft,oo.current.x=0,fo(!0),Bo.preventDefault()},Po=function(Bo){var _o,pr=Bo||((_o=window)===null||_o===void 0?void 0:_o.event),vr=pr.buttons;if(!lr||vr===0){lr&&fo(!1);return}var po=oo.current.x+Bo.pageX-oo.current.x-oo.current.delta;po<=0&&(po=0),po+Gi>=si&&(po=si-Gi),Vn({scrollLeft:po/si*(hi+2)}),oo.current.x=Bo.pageX},zo=function(){if(rn.current){var Bo=(0,Wn.os)(rn.current).top,_o=Bo+rn.current.offsetHeight,pr=jn===window?document.documentElement.scrollTop+window.innerHeight:(0,Wn.os)(jn).top+jn.clientHeight;_o-(0,Mt.Z)()<=pr||Bo>=pr-Un?so(function(vr){return(0,dt.Z)((0,dt.Z)({},vr),{},{isHiddenScrollBar:!0})}):so(function(vr){return(0,dt.Z)((0,dt.Z)({},vr),{},{isHiddenScrollBar:!1})})}},wo=function(Bo){so(function(_o){return(0,dt.Z)((0,dt.Z)({},_o),{},{scrollLeft:Bo/hi*si||0})})};return ke.useImperativeHandle(Ht,function(){return{setScrollLeft:wo}}),ke.useEffect(function(){var Ji=(0,An.Z)(document.body,"mouseup",Vo,!1),Bo=(0,An.Z)(document.body,"mousemove",Po,!1);return zo(),function(){Ji.remove(),Bo.remove()}},[Gi,lr]),ke.useEffect(function(){var Ji=(0,An.Z)(jn,"scroll",zo,!1),Bo=(0,An.Z)(window,"resize",zo,!1);return function(){Ji.remove(),Bo.remove()}},[jn]),ke.useEffect(function(){Ti.isHiddenScrollBar||so(function(Ji){var Bo=rn.current;return Bo?(0,dt.Z)((0,dt.Z)({},Ji),{},{scrollLeft:Bo.scrollLeft/Bo.scrollWidth*Bo.clientWidth}):Ji})},[Ti.isHiddenScrollBar]),hi<=si||!Gi||Ti.isHiddenScrollBar?null:ke.createElement("div",{style:{height:(0,Mt.Z)(),width:si,bottom:Un},className:"".concat(oi,"-sticky-scroll")},ke.createElement("div",{onMouseDown:Mr,ref:zi,className:yt()("".concat(oi,"-sticky-scroll-bar"),(0,Ze.Z)({},"".concat(oi,"-sticky-scroll-bar-active"),lr)),style:{width:"".concat(Gi,"px"),transform:"translate3d(".concat(Ti.scrollLeft,"px, 0, 0)")}}))},Yt=ke.forwardRef(pi);function bi(it){return null}var Di=bi;function ki(it){return null}var nn=ki,Xn="rc-table",fi=[],wi={};function gi(){return"No Data"}function Bi(it){var lt,Ht=(0,dt.Z)({rowKey:"key",prefixCls:Xn,emptyText:gi},it),Kt=Ht.prefixCls,Sn=Ht.className,rn=Ht.rowClassName,Vn=Ht.style,Un=Ht.data,jn=Ht.rowKey,oi=Ht.scroll,hi=Ht.tableLayout,si=Ht.direction,Gi=Ht.title,zi=Ht.footer,Fi=Ht.summary,ho=Ht.caption,Ti=Ht.id,so=Ht.showHeader,oo=Ht.components,bo=Ht.emptyText,Xo=Ht.onRow,lr=Ht.onHeaderRow,fo=Ht.internalHooks,Vo=Ht.transformColumns,Mr=Ht.internalRefs,Po=Ht.tailor,zo=Ht.sticky,wo=Un||fi,Ji=!!wo.length,Bo=fo===Oe,_o=ke.useCallback(function(va,Ua){return(0,Gt.Z)(oo,va)||Ua},[oo]),pr=ke.useMemo(function(){return typeof jn=="function"?jn:function(va){var Ua=va&&va[jn];return Ua}},[jn]),vr=_o(["body"]),po=jt(),Nr=(0,tt.Z)(po,3),Tr=Nr[0],ga=Nr[1],$r=Nr[2],Xa=at(Ht,wo,pr),Va=(0,tt.Z)(Xa,6),Dr=Va[0],ar=Va[1],oa=Va[2],Ya=Va[3],Ia=Va[4],gs=Va[5],yr=oi==null?void 0:oi.x,fr=ke.useState(0),Sr=(0,tt.Z)(fr,2),Yo=Sr[0],sa=Sr[1],Jo=Ut((0,dt.Z)((0,dt.Z)((0,dt.Z)({},Ht),Dr),{},{expandable:!!Dr.expandedRowRender,columnTitle:Dr.columnTitle,expandedKeys:oa,getRowKey:pr,onTriggerExpand:gs,expandIcon:Ya,expandIconColumnIndex:Dr.expandIconColumnIndex,direction:si,scrollWidth:Bo&&Po&&typeof yr=="number"?yr:null}),Bo?Vo:null),Fr=(0,tt.Z)(Jo,3),qr=Fr[0],ea=Fr[1],Os=Fr[2],ys=Os!=null?Os:yr,nl=ke.useMemo(function(){return{columns:qr,flattenColumns:ea}},[qr,ea]),pa=ke.useRef(),Is=ke.useRef(),ds=ke.useRef(),Ls=ke.useRef(),nh=ke.useRef(),ma=ke.useState(!1),ba=(0,tt.Z)(ma,2),Na=ba[0],rs=ba[1],Ms=ke.useState(!1),Ur=(0,tt.Z)(Ms,2),Aa=Ur[0],Fs=Ur[1],Ll=Hn(new Map),Ul=(0,tt.Z)(Ll,2),Ol=Ul[0],lu=Ul[1],uu=wt(ea),Xl=uu.map(function(va){return Ol.get(va)}),ya=ke.useMemo(function(){return Xl},[Xl.join("_")]),Hs=en(ya,ea.length,si),ns=oi&&tn(oi.y),Da=oi&&tn(ys)||!!Dr.fixed,Yl=Da&&ea.some(function(va){var Ua=va.fixed;return Ua}),yh=ke.useRef(),hu=on(zo,Kt),Wu=hu.isSticky,ih=hu.offsetHeader,Il=hu.offsetSummary,la=hu.offsetScroll,Ra=hu.stickyClassName,Ss=hu.container,ja=ke.useMemo(function(){return Fi==null?void 0:Fi(wo)},[Fi,wo]),na=(ns||Wu)&&ke.isValidElement(ja)&&ja.type===ve&&ja.props.fixed,Ns,Ml,Mu;ns&&(Ml={overflowY:"scroll",maxHeight:oi.y}),Da&&(Ns={overflowX:"auto"},ns||(Ml={overflowY:"hidden"}),Mu={width:ys===!0?"auto":ys,minWidth:"100%"});var df=ke.useCallback(function(va,Ua){(0,ft.Z)(pa.current)&&lu(function(Js){if(Js.get(va)!==Ua){var du=new Map(Js);return du.set(va,Ua),du}return Js})},[]),$t=ii(null),jh=(0,tt.Z)($t,2),oh=jh[0],cf=jh[1];function Pd(va,Ua){Ua&&(typeof Ua=="function"?Ua(va):Ua.scrollLeft!==va&&(Ua.scrollLeft=va,Ua.scrollLeft!==va&&setTimeout(function(){Ua.scrollLeft=va},0)))}var ad=(0,At.Z)(function(va){var Ua=va.currentTarget,Js=va.scrollLeft,du=si==="rtl",cu=typeof Js=="number"?Js:Ua.scrollLeft,Rc=Ua||wi;if(!cf()||cf()===Rc){var Wh;oh(Rc),Pd(cu,Is.current),Pd(cu,ds.current),Pd(cu,nh.current),Pd(cu,(Wh=yh.current)===null||Wh===void 0?void 0:Wh.setScrollLeft)}var ec=Ua||Is.current;if(ec){var Fu=ec.scrollWidth,Sh=ec.clientWidth;if(Fu===Sh){rs(!1),Fs(!1);return}du?(rs(-cu<Fu-Sh),Fs(-cu>0)):(rs(cu>0),Fs(cu<Fu-Sh))}}),Nc=function(){Da&&ds.current?ad({currentTarget:ds.current}):(rs(!1),Fs(!1))},Vg=function(Ua){var Js=Ua.width;Js!==Yo&&(Nc(),sa(pa.current?pa.current.offsetWidth:Js))},Ws=ke.useRef(!1);ke.useEffect(function(){Ws.current&&Nc()},[Da,Un,qr.length]),ke.useEffect(function(){Ws.current=!0},[]);var _d=ke.useState(0),kc=(0,tt.Z)(_d,2),qd=kc[0],ff=kc[1],Xf=ke.useState(!0),gf=(0,tt.Z)(Xf,2),Ac=gf[0],Jl=gf[1];ke.useEffect(function(){(!Po||!Bo)&&(ds.current instanceof Element?ff((0,Mt.o)(ds.current).width):ff((0,Mt.o)(Ls.current).width)),Jl((0,rt.G)("position","sticky"))},[]),ke.useEffect(function(){Bo&&Mr&&(Mr.body.current=ds.current)});var Cd=ke.useCallback(function(va){return ke.createElement(ke.Fragment,null,ke.createElement(Jn,va),na==="top"&&ke.createElement(mt,va,ja))},[na,ja]),pf=ke.useCallback(function(va){return ke.createElement(mt,va,ja)},[ja]),Gu=_o(["table"],"table"),zh=ke.useMemo(function(){return hi||(Yl?ys==="max-content"?"auto":"fixed":ns||Wu||ea.some(function(va){var Ua=va.ellipsis;return Ua})?"fixed":"auto")},[ns,Yl,ea,hi,Wu]),bd,sd={colWidths:ya,columCount:ea.length,stickyOffsets:Hs,onHeaderRow:lr,fixHeader:ns,scroll:oi},Fl=ke.useMemo(function(){return Ji?null:typeof bo=="function"?bo():bo},[Ji,bo]),Dc=ke.createElement(ci,{data:wo,measureColumnWidth:ns||Da||Wu}),Bc=ke.createElement(vo,{colWidths:ea.map(function(va){var Ua=va.width;return Ua}),columns:ea}),$l=ho!=null?ke.createElement("caption",{className:"".concat(Kt,"-caption")},ho):void 0,Ed=(0,pn.Z)(Ht,{data:!0}),Tc=(0,pn.Z)(Ht,{aria:!0});if(ns||Wu){var Oc;typeof vr=="function"?(Oc=vr(wo,{scrollbarSize:qd,ref:ds,onScroll:ad}),sd.colWidths=ea.map(function(va,Ua){var Js=va.width,du=Ua===ea.length-1?Js-qd:Js;return typeof du=="number"&&!Number.isNaN(du)?du:0})):Oc=ke.createElement("div",{style:(0,dt.Z)((0,dt.Z)({},Ns),Ml),onScroll:ad,ref:ds,className:yt()("".concat(Kt,"-body"))},ke.createElement(Gu,(0,Rt.Z)({style:(0,dt.Z)((0,dt.Z)({},Mu),{},{tableLayout:zh})},Tc),$l,Bc,Dc,!na&&ja&&ke.createElement(mt,{stickyOffsets:Hs,flattenColumns:ea,columns:qr},ja)));var Hh=(0,dt.Z)((0,dt.Z)((0,dt.Z)({noData:!wo.length,maxContentScroll:Da&&ys==="max-content"},sd),nl),{},{direction:si,stickyClassName:Ra,onScroll:ad});bd=ke.createElement(ke.Fragment,null,so!==!1&&ke.createElement(Mi,(0,Rt.Z)({},Hh,{stickyTopOffset:ih,className:"".concat(Kt,"-header"),ref:Is}),Cd),Oc,na&&na!=="top"&&ke.createElement(Mi,(0,Rt.Z)({},Hh,{stickyBottomOffset:Il,className:"".concat(Kt,"-summary"),ref:nh}),pf),Wu&&ke.createElement(Yt,{ref:yh,offsetScroll:la,scrollBodyRef:ds,onScroll:ad,container:Ss}))}else bd=ke.createElement("div",{style:(0,dt.Z)((0,dt.Z)({},Ns),Ml),className:yt()("".concat(Kt,"-content")),onScroll:ad,ref:ds},ke.createElement(Gu,(0,Rt.Z)({style:(0,dt.Z)((0,dt.Z)({},Mu),{},{tableLayout:zh})},Tc),$l,Bc,so!==!1&&ke.createElement(Jn,(0,Rt.Z)({},sd,nl)),Dc,ja&&ke.createElement(mt,{stickyOffsets:Hs,flattenColumns:ea,columns:qr},ja)));var ml=ke.createElement("div",(0,Rt.Z)({className:yt()(Kt,Sn,(lt={},(0,Ze.Z)(lt,"".concat(Kt,"-rtl"),si==="rtl"),(0,Ze.Z)(lt,"".concat(Kt,"-ping-left"),Na),(0,Ze.Z)(lt,"".concat(Kt,"-ping-right"),Aa),(0,Ze.Z)(lt,"".concat(Kt,"-layout-fixed"),hi==="fixed"),(0,Ze.Z)(lt,"".concat(Kt,"-fixed-header"),ns),(0,Ze.Z)(lt,"".concat(Kt,"-fixed-column"),Yl),(0,Ze.Z)(lt,"".concat(Kt,"-scroll-horizontal"),Da),(0,Ze.Z)(lt,"".concat(Kt,"-has-fix-left"),ea[0]&&ea[0].fixed),(0,Ze.Z)(lt,"".concat(Kt,"-has-fix-right"),ea[ea.length-1]&&ea[ea.length-1].fixed==="right"),lt)),style:Vn,id:Ti,ref:pa},Ed),Gi&&ke.createElement(Pn,{className:"".concat(Kt,"-title")},Gi(wo)),ke.createElement("div",{ref:Ls,className:"".concat(Kt,"-container")},bd),zi&&ke.createElement(Pn,{className:"".concat(Kt,"-footer")},zi(wo)));Da&&(ml=ke.createElement(gt.Z,{onResize:Vg},ml));var Ic=ln(ea,Hs,si,qr),xs=ke.useMemo(function(){return{scrollX:ys,prefixCls:Kt,getComponent:_o,scrollbarSize:qd,direction:si,fixedInfoList:Ic,isSticky:Wu,supportSticky:Ac,componentWidth:Yo,fixHeader:ns,fixColumn:Yl,horizonScroll:Da,tableLayout:zh,rowClassName:rn,expandedRowClassName:Dr.expandedRowClassName,expandIcon:Ya,expandableType:ar,expandRowByClick:Dr.expandRowByClick,expandedRowRender:Dr.expandedRowRender,onTriggerExpand:gs,expandIconColumnIndex:Dr.expandIconColumnIndex,indentSize:Dr.indentSize,allColumnsFixedLeft:ea.every(function(va){return va.fixed==="left"}),emptyNode:Fl,columns:qr,flattenColumns:ea,onColumnResize:df,hoverStartRow:Tr,hoverEndRow:ga,onHover:$r,rowExpandable:Dr.rowExpandable,onRow:Xo,getRowKey:pr,expandedKeys:oa,childrenColumnName:Ia}},[ys,Kt,_o,qd,si,Ic,Wu,Ac,Yo,ns,Yl,Da,zh,rn,Dr.expandedRowClassName,Ya,ar,Dr.expandRowByClick,Dr.expandedRowRender,gs,Dr.expandIconColumnIndex,Dr.indentSize,Fl,qr,ea,df,Tr,ga,$r,Dr.rowExpandable,Xo,pr,oa,Ia]);return ke.createElement(Be.Provider,{value:xs},ml)}function Ki(it){return ge(Bi,it)}var ji=Ki();ji.EXPAND_COLUMN=Ce,ji.INTERNAL_HOOKS=Oe,ji.Column=Di,ji.ColumnGroup=nn,ji.Summary=et;var Pi=ji,Vi=ye(24916),Ln=Lt(null),So=Lt(null);function Mn(it,lt,Ht){var Kt=lt||1;return Ht[it+Kt]-(Ht[it]||0)}function ro(it){var lt=it.rowInfo,Ht=it.column,Kt=it.colIndex,Sn=it.indent,rn=it.index,Vn=it.renderIndex,Un=it.record,jn=it.style,oi=it.className,hi=it.inverse,si=it.getHeight,Gi=Ht.render,zi=Ht.dataIndex,Fi=Ht.className,ho=Ht.width,Ti=ot(So,["columnsOffset"]),so=Ti.columnsOffset,oo=cn(lt,Ht,Kt,Sn,rn),bo=oo.key,Xo=oo.fixedInfo,lr=oo.appendCellNode,fo=oo.additionalCellProps,Vo=fo.style,Mr=fo.colSpan,Po=Mr===void 0?1:Mr,zo=fo.rowSpan,wo=zo===void 0?1:zo,Ji=Kt-1,Bo=Mn(Ji,Po,so),_o=Po>1?ho-Bo:0,pr=(0,dt.Z)((0,dt.Z)((0,dt.Z)({},Vo),jn),{},{flex:"0 0 ".concat(Bo,"px"),width:"".concat(Bo,"px"),marginRight:_o,pointerEvents:"auto"}),vr=ke.useMemo(function(){return hi?wo<=1:Po===0||wo===0||wo>1},[wo,Po,hi]);vr?pr.visibility="hidden":hi&&(pr.height=si==null?void 0:si(wo));var po=vr?function(){return null}:Gi,Nr={};return(wo===0||Po===0)&&(Nr.rowSpan=1,Nr.colSpan=1),ke.createElement(Gn,(0,Rt.Z)({className:yt()(Fi,oi),ellipsis:Ht.ellipsis,align:Ht.align,scope:Ht.rowScope,component:"div",prefixCls:lt.prefixCls,key:bo,record:Un,index:rn,renderIndex:Vn,dataIndex:zi,render:po,shouldCellUpdate:Ht.shouldCellUpdate},Xo,{appendNode:lr,additionalProps:(0,dt.Z)((0,dt.Z)({},fo),{},{style:pr},Nr)}))}var No=ro,_i=["data","index","className","rowKey","style","extra","getHeight"],Go=ke.forwardRef(function(it,lt){var Ht=it.data,Kt=it.index,Sn=it.className,rn=it.rowKey,Vn=it.style,Un=it.extra,jn=it.getHeight,oi=(0,Le.Z)(it,_i),hi=Ht.record,si=Ht.indent,Gi=Ht.index,zi=ot(Be,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Fi=zi.scrollX,ho=zi.flattenColumns,Ti=zi.prefixCls,so=zi.fixColumn,oo=zi.componentWidth,bo=Et(hi,rn,Kt,si),Xo=bo.rowSupportExpand,lr=bo.expanded,fo=bo.rowProps,Vo=bo.expandedRowRender,Mr=bo.expandedRowClassName,Po;if(Xo&&lr){var zo=Vo(hi,Kt,si+1,lr),wo=Mr==null?void 0:Mr(hi,Kt,si),Ji={};so&&(Ji={style:(0,Ze.Z)({},"--virtual-width","".concat(oo,"px"))});var Bo="".concat(Ti,"-expanded-row-cell");Po=ke.createElement("div",{className:yt()("".concat(Ti,"-expanded-row"),"".concat(Ti,"-expanded-row-level-").concat(si+1),wo)},ke.createElement(Gn,{component:"div",prefixCls:Ti,className:yt()(Bo,(0,Ze.Z)({},"".concat(Bo,"-fixed"),so)),additionalProps:Ji},zo))}var _o=(0,dt.Z)((0,dt.Z)({},Vn),{},{width:Fi});Un&&(_o.position="absolute",_o.pointerEvents="none");var pr=ke.createElement("div",(0,Rt.Z)({},fo,oi,{ref:Xo?null:lt,className:yt()(Sn,"".concat(Ti,"-row"),fo==null?void 0:fo.className,(0,Ze.Z)({},"".concat(Ti,"-row-extra"),Un)),style:(0,dt.Z)((0,dt.Z)({},_o),fo==null?void 0:fo.style)}),ho.map(function(vr,po){return ke.createElement(No,{key:po,rowInfo:bo,column:vr,colIndex:po,indent:si,index:Kt,renderIndex:Gi,record:hi,inverse:Un,getHeight:jn})}));return Xo?ke.createElement("div",{ref:lt},pr,Po):pr}),ko=me(Go),Ii=ko,Ai=ke.forwardRef(function(it,lt){var Ht=it.data,Kt=it.onScroll,Sn=ot(Be,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),rn=Sn.flattenColumns,Vn=Sn.onColumnResize,Un=Sn.getRowKey,jn=Sn.expandedKeys,oi=Sn.prefixCls,hi=Sn.childrenColumnName,si=Sn.emptyNode,Gi=Sn.scrollX,zi=ot(Ln),Fi=zi.scrollY,ho=zi.listItemHeight,Ti=ke.useRef(),so=Jt(Ht,hi,jn,Un),oo=ke.useMemo(function(){var Po=0;return rn.map(function(zo){var wo=zo.width,Ji=zo.key;return Po+=wo,[Ji,wo,Po]})},[rn]),bo=ke.useMemo(function(){return oo.map(function(Po){return Po[2]})},[oo]);ke.useEffect(function(){oo.forEach(function(Po){var zo=(0,tt.Z)(Po,2),wo=zo[0],Ji=zo[1];Vn(wo,Ji)})},[oo]),ke.useImperativeHandle(lt,function(){var Po={};return Object.defineProperty(Po,"scrollLeft",{get:function(){var wo;return((wo=Ti.current)===null||wo===void 0?void 0:wo.getScrollInfo().x)||0},set:function(wo){var Ji;(Ji=Ti.current)===null||Ji===void 0||Ji.scrollTo({left:wo})}}),Po});var Xo=function(zo,wo){var Ji,Bo=(Ji=so[wo])===null||Ji===void 0?void 0:Ji.record,_o=zo.onCell;if(_o){var pr,vr=_o(Bo,wo);return(pr=vr==null?void 0:vr.rowSpan)!==null&&pr!==void 0?pr:1}return 1},lr=function(zo){var wo=zo.start,Ji=zo.end,Bo=zo.getSize,_o=zo.offsetY;if(Ji<0)return null;for(var pr=rn.filter(function(yr){return Xo(yr,wo)===0}),vr=wo,po=function(fr){if(pr=pr.filter(function(Sr){return Xo(Sr,fr)===0}),!pr.length)return vr=fr,"break"},Nr=wo;Nr>=0;Nr-=1){var Tr=po(Nr);if(Tr==="break")break}for(var ga=rn.filter(function(yr){return Xo(yr,Ji)!==1}),$r=Ji,Xa=function(fr){if(ga=ga.filter(function(Sr){return Xo(Sr,fr)!==1}),!ga.length)return $r=Math.max(fr-1,Ji),"break"},Va=Ji;Va<so.length;Va+=1){var Dr=Xa(Va);if(Dr==="break")break}for(var ar=[],oa=function(fr){var Sr=so[fr];if(!Sr)return"continue";rn.some(function(Yo){return Xo(Yo,fr)>1})&&ar.push(fr)},Ya=vr;Ya<=$r;Ya+=1)var Ia=oa(Ya);var gs=ar.map(function(yr){var fr=so[yr],Sr=Un(fr.record,yr),Yo=function(Fr){var qr=yr+Fr-1,ea=Un(so[qr].record,qr),Os=Bo(Sr,ea);return Os.bottom-Os.top},sa=Bo(Sr);return ke.createElement(Ii,{key:yr,data:fr,rowKey:Sr,index:yr,style:{top:-_o+sa.top},extra:!0,getHeight:Yo})});return gs},fo=ke.useMemo(function(){return{columnsOffset:bo}},[bo]),Vo="".concat(oi,"-tbody"),Mr;return so.length?Mr=ke.createElement(Vi.Z,{fullHeight:!1,ref:Ti,className:yt()(Vo,"".concat(Vo,"-virtual")),height:Fi,itemHeight:ho||24,data:so,itemKey:function(zo){return Un(zo.record)},scrollWidth:Gi,onVirtualScroll:function(zo){var wo=zo.x;Kt({scrollLeft:wo})},extraRender:lr},function(Po,zo,wo){var Ji=Un(Po.record,zo);return ke.createElement(Ii,(0,Rt.Z)({data:Po,rowKey:Ji,index:zo},wo))}):Mr=ke.createElement("div",{className:yt()("".concat(oi,"-placeholder"))},ke.createElement(Gn,{component:"div",prefixCls:oi},si)),ke.createElement(So.Provider,{value:fo},Mr)}),Zi=me(Ai),yo=Zi,di=function(lt,Ht){var Kt=Ht.ref,Sn=Ht.onScroll;return ke.createElement(yo,{ref:Kt,data:lt,onScroll:Sn})},Ke=100;function Do(it){var lt=it.columns,Ht=it.scroll,Kt=it.prefixCls,Sn=Kt===void 0?Xn:Kt,rn=it.className,Vn=it.listItemHeight,Un=Ht||{},jn=Un.x,oi=Un.y;typeof jn!="number"&&(jn=((lt||[]).length+1)*Ke),typeof oi!="number"&&(oi=500);var hi=ke.useMemo(function(){return{scrollY:oi,listItemHeight:Vn}},[oi,Vn]);return ke.createElement(Ln.Provider,{value:hi},ke.createElement(Pi,(0,Rt.Z)({},it,{className:yt()(rn,"".concat(Sn,"-virtual")),scroll:(0,dt.Z)((0,dt.Z)({},Ht),{},{x:jn}),components:{body:di},columns:lt,internalHooks:Oe,tailor:!0})))}function nr(it){return ge(Do,it)}var xo=nr(),hr=null;function Qo(it){return null}var $i=Qo;function ao(it){return null}var jo=ao,Lo=ye(2738),dr=ye(68031),Pr=ye(36355),Yi=ye(93891),Qi=ye(19716),ti=ye(8628),io=ye(31724),ir=ye(58421),Ir=ye(71418),mr=ye(88088);function er(it){return function(Ht){let{prefixCls:Kt,onExpand:Sn,record:rn,expanded:Vn,expandable:Un}=Ht;const jn=`${Kt}-row-expand-icon`;return ke.createElement("button",{type:"button",onClick:oi=>{Sn(rn,oi),oi.stopPropagation()},className:yt()(jn,{[`${jn}-spaced`]:!Un,[`${jn}-expanded`]:Un&&Vn,[`${jn}-collapsed`]:Un&&!Vn}),"aria-label":Vn?it.collapse:it.expand,"aria-expanded":Vn})}}var Lr=er;function Ar(it,lt){return"key"in it&&it.key!==void 0&&it.key!==null?it.key:it.dataIndex?Array.isArray(it.dataIndex)?it.dataIndex.join("."):it.dataIndex:lt}function ra(it,lt){return lt?`${lt}-${it}`:`${it}`}function ua(it,lt){return typeof it=="function"?it(lt):it}function wa(it,lt){const Ht=ua(it,lt);return Object.prototype.toString.call(Ht)==="[object Object]"?"":Ht}var vn={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"},ia=vn,Us=ye(7657),us=function(lt,Ht){return ke.createElement(Us.Z,(0,Rt.Z)({},lt,{ref:Ht,icon:ia}))},xr=ke.forwardRef(us),or=xr,da=ye(56762);function Ro(it){const lt=ke.useRef(it),Ht=(0,da.Z)();return[()=>lt.current,Kt=>{lt.current=Kt,Ht()}]}var lo=ye(3113),Ko=ye(24905),Wr=ye(38854),no=ye(64165),Io=ye(20834),Fo=ye(40875),vi=ye(5112),Zr=ye(17574),Yr=ye(47472),qa=ye(92832);function bs(it){let{value:lt,onChange:Ht,filterSearch:Kt,tablePrefixCls:Sn,locale:rn}=it;return Kt?ke.createElement("div",{className:`${Sn}-filter-dropdown-search`},ke.createElement(qa.default,{prefix:ke.createElement(Yr.Z,null),placeholder:rn.filterSearchPlaceholder,onChange:Ht,value:lt,htmlSize:1,className:`${Sn}-filter-dropdown-search-input`})):null}var vs=bs,xi=ye(10228);const Jr=it=>{const{keyCode:lt}=it;lt===xi.Z.ENTER&&it.stopPropagation()};var es=ke.forwardRef((it,lt)=>ke.createElement("div",{className:it.className,onClick:Ht=>Ht.stopPropagation(),onKeyDown:Jr,ref:lt},it.children));function Xs(it){let lt=[];return(it||[]).forEach(Ht=>{let{value:Kt,children:Sn}=Ht;lt.push(Kt),Sn&&(lt=[].concat((0,Ri.Z)(lt),(0,Ri.Z)(Xs(Sn))))}),lt}function gl(it){return it.some(lt=>{let{children:Ht}=lt;return Ht})}function Uo(it,lt){return typeof lt=="string"||typeof lt=="number"?lt==null?void 0:lt.toString().toLowerCase().includes(it.trim().toLowerCase()):!1}function Ru(it){let{filters:lt,prefixCls:Ht,filteredKeys:Kt,filterMultiple:Sn,searchValue:rn,filterSearch:Vn}=it;return lt.map((Un,jn)=>{const oi=String(Un.value);if(Un.children)return{key:oi||jn,label:Un.text,popupClassName:`${Ht}-dropdown-submenu`,children:Ru({filters:Un.children,prefixCls:Ht,filteredKeys:Kt,filterMultiple:Sn,searchValue:rn,filterSearch:Vn})};const hi=Sn?Ko.default:vi.ZP,si={key:Un.value!==void 0?oi:jn,label:ke.createElement(ke.Fragment,null,ke.createElement(hi,{checked:Kt.includes(oi)}),ke.createElement("span",null,Un.text))};return rn.trim()?typeof Vn=="function"?Vn(rn,Un)?si:null:Uo(rn,Un.text)?si:null:si})}function Rs(it){var lt,Ht;const{tablePrefixCls:Kt,prefixCls:Sn,column:rn,dropdownPrefixCls:Vn,columnKey:Un,filterMultiple:jn,filterMode:oi="menu",filterSearch:hi=!1,filterState:si,triggerFilter:Gi,locale:zi,children:Fi,getPopupContainer:ho}=it,{filterDropdownOpen:Ti,onFilterDropdownOpenChange:so,filterResetToDefaultFilteredValue:oo,defaultFilteredValue:bo,filterDropdownVisible:Xo,onFilterDropdownVisibleChange:lr}=rn,[fo,Vo]=ke.useState(!1),Mr=!!(si&&(!((lt=si.filteredKeys)===null||lt===void 0)&<.length||si.forceFiltered)),Po=Jo=>{Vo(Jo),so==null||so(Jo),lr==null||lr(Jo)},zo=(Ht=Ti!=null?Ti:Xo)!==null&&Ht!==void 0?Ht:fo,wo=si==null?void 0:si.filteredKeys,[Ji,Bo]=Ro(wo||[]),_o=Jo=>{let{selectedKeys:Fr}=Jo;Bo(Fr)},pr=(Jo,Fr)=>{let{node:qr,checked:ea}=Fr;_o(jn?{selectedKeys:Jo}:{selectedKeys:ea&&qr.key?[qr.key]:[]})};ke.useEffect(()=>{fo&&_o({selectedKeys:wo||[]})},[wo]);const[vr,po]=ke.useState([]),Nr=Jo=>{po(Jo)},[Tr,ga]=ke.useState(""),$r=Jo=>{const{value:Fr}=Jo.target;ga(Fr)};ke.useEffect(()=>{fo||ga("")},[fo]);const Xa=Jo=>{const Fr=Jo&&Jo.length?Jo:null;if(Fr===null&&(!si||!si.filteredKeys)||(0,Je.Z)(Fr,si==null?void 0:si.filteredKeys,!0))return null;Gi({column:rn,key:Un,filteredKeys:Fr})},Va=()=>{Po(!1),Xa(Ji())},Dr=function(){let{confirm:Jo,closeDropdown:Fr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Jo&&Xa([]),Fr&&Po(!1),ga(""),Bo(oo?(bo||[]).map(qr=>String(qr)):[])},ar=function(){let{closeDropdown:Jo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Jo&&Po(!1),Xa(Ji())},oa=Jo=>{Jo&&wo!==void 0&&Bo(wo||[]),Po(Jo),!Jo&&!rn.filterDropdown&&Va()},Ya=yt()({[`${Vn}-menu-without-submenu`]:!gl(rn.filters||[])}),Ia=Jo=>{if(Jo.target.checked){const Fr=Xs(rn==null?void 0:rn.filters).map(qr=>String(qr));Bo(Fr)}else Bo([])},gs=Jo=>{let{filters:Fr}=Jo;return(Fr||[]).map((qr,ea)=>{const Os=String(qr.value),ys={title:qr.text,key:qr.value!==void 0?Os:ea};return qr.children&&(ys.children=gs({filters:qr.children})),ys})},yr=Jo=>{var Fr;return Object.assign(Object.assign({},Jo),{text:Jo.title,value:Jo.key,children:((Fr=Jo.children)===null||Fr===void 0?void 0:Fr.map(qr=>yr(qr)))||[]})};let fr;if(typeof rn.filterDropdown=="function")fr=rn.filterDropdown({prefixCls:`${Vn}-custom`,setSelectedKeys:Jo=>_o({selectedKeys:Jo}),selectedKeys:Ji(),confirm:ar,clearFilters:Dr,filters:rn.filters,visible:zo,close:()=>{Po(!1)}});else if(rn.filterDropdown)fr=rn.filterDropdown;else{const Jo=Ji()||[],Fr=()=>(rn.filters||[]).length===0?ke.createElement(no.Z,{image:no.Z.PRESENTED_IMAGE_SIMPLE,description:zi.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):oi==="tree"?ke.createElement(ke.Fragment,null,ke.createElement(vs,{filterSearch:hi,value:Tr,onChange:$r,tablePrefixCls:Kt,locale:zi}),ke.createElement("div",{className:`${Kt}-filter-dropdown-tree`},jn?ke.createElement(Ko.default,{checked:Jo.length===Xs(rn.filters).length,indeterminate:Jo.length>0&&Jo.length<Xs(rn.filters).length,className:`${Kt}-filter-dropdown-checkall`,onChange:Ia},zi.filterCheckall):null,ke.createElement(Zr.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:jn,checkStrictly:!jn,className:`${Vn}-menu`,onCheck:pr,checkedKeys:Jo,selectedKeys:Jo,showIcon:!1,treeData:gs({filters:rn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Tr.trim()?ea=>typeof hi=="function"?hi(Tr,yr(ea)):Uo(Tr,ea.title):void 0}))):ke.createElement(ke.Fragment,null,ke.createElement(vs,{filterSearch:hi,value:Tr,onChange:$r,tablePrefixCls:Kt,locale:zi}),ke.createElement(Io.default,{selectable:!0,multiple:jn,prefixCls:`${Vn}-menu`,className:Ya,onSelect:_o,onDeselect:_o,selectedKeys:Jo,getPopupContainer:ho,openKeys:vr,onOpenChange:Nr,items:Ru({filters:rn.filters||[],filterSearch:hi,prefixCls:Sn,filteredKeys:Ji(),filterMultiple:jn,searchValue:Tr})})),qr=()=>oo?(0,Je.Z)((bo||[]).map(ea=>String(ea)),Jo,!0):Jo.length===0;fr=ke.createElement(ke.Fragment,null,Fr(),ke.createElement("div",{className:`${Sn}-dropdown-btns`},ke.createElement(lo.ZP,{type:"link",size:"small",disabled:qr(),onClick:()=>Dr()},zi.filterReset),ke.createElement(lo.ZP,{type:"primary",size:"small",onClick:Va},zi.filterConfirm)))}rn.filterDropdown&&(fr=ke.createElement(Fo.J,{selectable:void 0},fr));const Sr=()=>ke.createElement(es,{className:`${Sn}-dropdown`},fr);let Yo;typeof rn.filterIcon=="function"?Yo=rn.filterIcon(Mr):rn.filterIcon?Yo=rn.filterIcon:Yo=ke.createElement(or,null);const{direction:sa}=ke.useContext(Pr.E_);return ke.createElement("div",{className:`${Sn}-column`},ke.createElement("span",{className:`${Kt}-column-title`},Fi),ke.createElement(Wr.Z,{dropdownRender:Sr,trigger:["click"],open:zo,onOpenChange:oa,getPopupContainer:ho,placement:sa==="rtl"?"bottomLeft":"bottomRight"},ke.createElement("span",{role:"button",tabIndex:-1,className:yt()(`${Sn}-trigger`,{active:Mr}),onClick:Jo=>{Jo.stopPropagation()}},Yo)))}var As=Rs;function Ds(it,lt,Ht){let Kt=[];return(it||[]).forEach((Sn,rn)=>{var Vn;const Un=ra(rn,Ht);if(Sn.filters||"filterDropdown"in Sn||"onFilter"in Sn)if("filteredValue"in Sn){let jn=Sn.filteredValue;"filterDropdown"in Sn||(jn=(Vn=jn==null?void 0:jn.map(String))!==null&&Vn!==void 0?Vn:jn),Kt.push({column:Sn,key:Ar(Sn,Un),filteredKeys:jn,forceFiltered:Sn.filtered})}else Kt.push({column:Sn,key:Ar(Sn,Un),filteredKeys:lt&&Sn.defaultFilteredValue?Sn.defaultFilteredValue:void 0,forceFiltered:Sn.filtered});"children"in Sn&&(Kt=[].concat((0,Ri.Z)(Kt),(0,Ri.Z)(Ds(Sn.children,lt,Un))))}),Kt}function Zl(it,lt,Ht,Kt,Sn,rn,Vn,Un){return Ht.map((jn,oi)=>{const hi=ra(oi,Un),{filterMultiple:si=!0,filterMode:Gi,filterSearch:zi}=jn;let Fi=jn;if(Fi.filters||Fi.filterDropdown){const ho=Ar(Fi,hi),Ti=Kt.find(so=>{let{key:oo}=so;return ho===oo});Fi=Object.assign(Object.assign({},Fi),{title:so=>ke.createElement(As,{tablePrefixCls:it,prefixCls:`${it}-filter`,dropdownPrefixCls:lt,column:Fi,columnKey:ho,filterState:Ti,filterMultiple:si,filterMode:Gi,filterSearch:zi,triggerFilter:rn,locale:Sn,getPopupContainer:Vn},ua(jn.title,so))})}return"children"in Fi&&(Fi=Object.assign(Object.assign({},Fi),{children:Zl(it,lt,Fi.children,Kt,Sn,rn,Vn,hi)})),Fi})}function ou(it){const lt={};return it.forEach(Ht=>{let{key:Kt,filteredKeys:Sn,column:rn}=Ht;const{filters:Vn,filterDropdown:Un}=rn;if(Un)lt[Kt]=Sn||null;else if(Array.isArray(Sn)){const jn=Xs(Vn);lt[Kt]=jn.filter(oi=>Sn.includes(String(oi)))}else lt[Kt]=null}),lt}function js(it,lt){return lt.reduce((Ht,Kt)=>{const{column:{onFilter:Sn,filters:rn},filteredKeys:Vn}=Kt;return Sn&&Vn&&Vn.length?Ht.filter(Un=>Vn.some(jn=>{const oi=Xs(rn),hi=oi.findIndex(Gi=>String(Gi)===String(jn)),si=hi!==-1?oi[hi]:jn;return Sn(si,Un)})):Ht},it)}const Ys=it=>it.flatMap(lt=>"children"in lt?[lt].concat((0,Ri.Z)(Ys(lt.children||[]))):[lt]);function Pu(it){let{prefixCls:lt,dropdownPrefixCls:Ht,mergedColumns:Kt,onFilterChange:Sn,getPopupContainer:rn,locale:Vn}=it;const Un=ke.useMemo(()=>Ys(Kt||[]),[Kt]),[jn,oi]=ke.useState(()=>Ds(Un,!0)),hi=ke.useMemo(()=>{const Fi=Ds(Un,!1);if(Fi.length===0)return Fi;let ho=!0,Ti=!0;if(Fi.forEach(so=>{let{filteredKeys:oo}=so;oo!==void 0?ho=!1:Ti=!1}),ho){const so=(Un||[]).map((oo,bo)=>Ar(oo,ra(bo)));return jn.filter(oo=>{let{key:bo}=oo;return so.includes(bo)}).map(oo=>{const bo=Un[so.findIndex(Xo=>Xo===oo.key)];return Object.assign(Object.assign({},oo),{column:Object.assign(Object.assign({},oo.column),bo),forceFiltered:bo.filtered})})}return Fi},[Un,jn]),si=ke.useMemo(()=>ou(hi),[hi]),Gi=Fi=>{const ho=hi.filter(Ti=>{let{key:so}=Ti;return so!==Fi.key});ho.push(Fi),oi(ho),Sn(ou(ho),ho)};return[Fi=>Zl(lt,Ht,Fi,hi,Vn,Gi,rn),hi,si]}var Nh=Pu;function ph(it,lt,Ht){const Kt=ke.useRef({});function Sn(rn){if(!Kt.current||Kt.current.data!==it||Kt.current.childrenColumnName!==lt||Kt.current.getRowKey!==Ht){let Un=function(jn){jn.forEach((oi,hi)=>{const si=Ht(oi,hi);Vn.set(si,oi),oi&&typeof oi=="object"&< in oi&&Un(oi[lt]||[])})};const Vn=new Map;Un(it),Kt.current={data:it,childrenColumnName:lt,kvMap:Vn,getRowKey:Ht}}return Kt.current.kvMap.get(rn)}return[Sn]}var kh=ye(50371),_u=function(it,lt){var Ht={};for(var Kt in it)Object.prototype.hasOwnProperty.call(it,Kt)&<.indexOf(Kt)<0&&(Ht[Kt]=it[Kt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,Kt=Object.getOwnPropertySymbols(it);Sn<Kt.length;Sn++)lt.indexOf(Kt[Sn])<0&&Object.prototype.propertyIsEnumerable.call(it,Kt[Sn])&&(Ht[Kt[Sn]]=it[Kt[Sn]]);return Ht};const ju=10;function ru(it,lt){const Ht={current:it.current,pageSize:it.pageSize};return Object.keys(lt&&typeof lt=="object"?lt:{}).forEach(Sn=>{const rn=it[Sn];typeof rn!="function"&&(Ht[Sn]=rn)}),Ht}function pl(it,lt,Ht){const Kt=Ht&&typeof Ht=="object"?Ht:{},{total:Sn=0}=Kt,rn=_u(Kt,["total"]),[Vn,Un]=(0,ke.useState)(()=>({current:"defaultCurrent"in rn?rn.defaultCurrent:1,pageSize:"defaultPageSize"in rn?rn.defaultPageSize:ju})),jn=(0,kh.Z)(Vn,rn,{total:Sn>0?Sn:it}),oi=Math.ceil((Sn||it)/jn.pageSize);jn.current>oi&&(jn.current=oi||1);const hi=(Gi,zi)=>{Un({current:Gi!=null?Gi:1,pageSize:zi||jn.pageSize})},si=(Gi,zi)=>{var Fi;Ht&&((Fi=Ht.onChange)===null||Fi===void 0||Fi.call(Ht,Gi,zi)),hi(Gi,zi),lt(Gi,zi||(jn==null?void 0:jn.pageSize))};return Ht===!1?[{},()=>{}]:[Object.assign(Object.assign({},jn),{onChange:si}),hi]}var Ah=pl,qu=ye(84105),au=ye(35654),sr=ye(90782),un=ye(71430),Es=ye(18929);const ts={},Ta="SELECT_ALL",La="SELECT_INVERT",Pa="SELECT_NONE",Ga=[],Ka=(it,lt)=>{let Ht=[];return(lt||[]).forEach(Kt=>{Ht.push(Kt),Kt&&typeof Kt=="object"&&it in Kt&&(Ht=[].concat((0,Ri.Z)(Ht),(0,Ri.Z)(Ka(it,Kt[it]))))}),Ht};var Cl=(it,lt)=>{const{preserveSelectedRowKeys:Ht,selectedRowKeys:Kt,defaultSelectedRowKeys:Sn,getCheckboxProps:rn,onChange:Vn,onSelect:Un,onSelectAll:jn,onSelectInvert:oi,onSelectNone:hi,onSelectMultiple:si,columnWidth:Gi,type:zi,selections:Fi,fixed:ho,renderCell:Ti,hideSelectAll:so,checkStrictly:oo=!0}=lt||{},{prefixCls:bo,data:Xo,pageData:lr,getRecordByKey:fo,getRowKey:Vo,expandType:Mr,childrenColumnName:Po,locale:zo,getPopupContainer:wo}=it,[Ji,Bo]=(0,Es.Z)(Kt||Sn||Ga,{value:Kt}),_o=ke.useRef(new Map),pr=(0,ke.useCallback)(yr=>{if(Ht){const fr=new Map;yr.forEach(Sr=>{let Yo=fo(Sr);!Yo&&_o.current.has(Sr)&&(Yo=_o.current.get(Sr)),fr.set(Sr,Yo)}),_o.current=fr}},[fo,Ht]);ke.useEffect(()=>{pr(Ji)},[Ji]);const{keyEntities:vr}=(0,ke.useMemo)(()=>{if(oo)return{keyEntities:null};let yr=Xo;if(Ht){const fr=new Set(Xo.map((Yo,sa)=>Vo(Yo,sa))),Sr=Array.from(_o.current).reduce((Yo,sa)=>{let[Jo,Fr]=sa;return fr.has(Jo)?Yo:Yo.concat(Fr)},[]);yr=[].concat((0,Ri.Z)(yr),(0,Ri.Z)(Sr))}return(0,un.I8)(yr,{externalGetKey:Vo,childrenPropName:Po})},[Xo,Vo,oo,Po,Ht]),po=(0,ke.useMemo)(()=>Ka(Po,lr),[Po,lr]),Nr=(0,ke.useMemo)(()=>{const yr=new Map;return po.forEach((fr,Sr)=>{const Yo=Vo(fr,Sr),sa=(rn?rn(fr):null)||{};yr.set(Yo,sa)}),yr},[po,Vo,rn]),Tr=(0,ke.useCallback)(yr=>{var fr;return!!(!((fr=Nr.get(Vo(yr)))===null||fr===void 0)&&fr.disabled)},[Nr,Vo]),[ga,$r]=(0,ke.useMemo)(()=>{if(oo)return[Ji||[],[]];const{checkedKeys:yr,halfCheckedKeys:fr}=(0,sr.S)(Ji,!0,vr,Tr);return[yr||[],fr]},[Ji,oo,vr,Tr]),Xa=(0,ke.useMemo)(()=>{const yr=zi==="radio"?ga.slice(0,1):ga;return new Set(yr)},[ga,zi]),Va=(0,ke.useMemo)(()=>zi==="radio"?new Set:new Set($r),[$r,zi]),[Dr,ar]=(0,ke.useState)(null);ke.useEffect(()=>{lt||Bo(Ga)},[!!lt]);const oa=(0,ke.useCallback)((yr,fr)=>{let Sr,Yo;pr(yr),Ht?(Sr=yr,Yo=yr.map(sa=>_o.current.get(sa))):(Sr=[],Yo=[],yr.forEach(sa=>{const Jo=fo(sa);Jo!==void 0&&(Sr.push(sa),Yo.push(Jo))})),Bo(Sr),Vn==null||Vn(Sr,Yo,{type:fr})},[Bo,fo,Vn,Ht]),Ya=(0,ke.useCallback)((yr,fr,Sr,Yo)=>{if(Un){const sa=Sr.map(Jo=>fo(Jo));Un(fo(yr),fr,sa,Yo)}oa(Sr,"single")},[Un,fo,oa]),Ia=(0,ke.useMemo)(()=>!Fi||so?null:(Fi===!0?[Ta,La,Pa]:Fi).map(fr=>fr===Ta?{key:"all",text:zo.selectionAll,onSelect(){oa(Xo.map((Sr,Yo)=>Vo(Sr,Yo)).filter(Sr=>{const Yo=Nr.get(Sr);return!(Yo!=null&&Yo.disabled)||Xa.has(Sr)}),"all")}}:fr===La?{key:"invert",text:zo.selectInvert,onSelect(){const Sr=new Set(Xa);lr.forEach((sa,Jo)=>{const Fr=Vo(sa,Jo),qr=Nr.get(Fr);qr!=null&&qr.disabled||(Sr.has(Fr)?Sr.delete(Fr):Sr.add(Fr))});const Yo=Array.from(Sr);oi&&oi(Yo),oa(Yo,"invert")}}:fr===Pa?{key:"none",text:zo.selectNone,onSelect(){hi==null||hi(),oa(Array.from(Xa).filter(Sr=>{const Yo=Nr.get(Sr);return Yo==null?void 0:Yo.disabled}),"none")}}:fr).map(fr=>Object.assign(Object.assign({},fr),{onSelect:function(){for(var Sr,Yo,sa=arguments.length,Jo=new Array(sa),Fr=0;Fr<sa;Fr++)Jo[Fr]=arguments[Fr];(Yo=fr.onSelect)===null||Yo===void 0||(Sr=Yo).call.apply(Sr,[fr].concat(Jo)),ar(null)}})),[Fi,Xa,lr,Vo,oi,oa]);return[(0,ke.useCallback)(yr=>{var fr;if(!lt)return yr.filter(ma=>ma!==ts);let Sr=(0,Ri.Z)(yr);const Yo=new Set(Xa),sa=po.map(Vo).filter(ma=>!Nr.get(ma).disabled),Jo=sa.every(ma=>Yo.has(ma)),Fr=sa.some(ma=>Yo.has(ma)),qr=()=>{const ma=[];Jo?sa.forEach(Na=>{Yo.delete(Na),ma.push(Na)}):sa.forEach(Na=>{Yo.has(Na)||(Yo.add(Na),ma.push(Na))});const ba=Array.from(Yo);jn==null||jn(!Jo,ba.map(Na=>fo(Na)),ma.map(Na=>fo(Na))),oa(ba,"all"),ar(null)};let ea;if(zi!=="radio"){let ma;if(Ia){const Ur={getPopupContainer:wo,items:Ia.map((Aa,Fs)=>{const{key:Ll,text:Ul,onSelect:Ol}=Aa;return{key:Ll!=null?Ll:Fs,onClick:()=>{Ol==null||Ol(sa)},label:Ul}})};ma=ke.createElement("div",{className:`${bo}-selection-extra`},ke.createElement(Wr.Z,{menu:Ur,getPopupContainer:wo},ke.createElement("span",null,ke.createElement(qu.Z,null))))}const ba=po.map((Ur,Aa)=>{const Fs=Vo(Ur,Aa),Ll=Nr.get(Fs)||{};return Object.assign({checked:Yo.has(Fs)},Ll)}).filter(Ur=>{let{disabled:Aa}=Ur;return Aa}),Na=!!ba.length&&ba.length===po.length,rs=Na&&ba.every(Ur=>{let{checked:Aa}=Ur;return Aa}),Ms=Na&&ba.some(Ur=>{let{checked:Aa}=Ur;return Aa});ea=!so&&ke.createElement("div",{className:`${bo}-selection`},ke.createElement(Ko.default,{checked:Na?rs:!!po.length&&Jo,indeterminate:Na?!rs&&Ms:!Jo&&Fr,onChange:qr,disabled:po.length===0||Na,"aria-label":ma?"Custom selection":"Select all",skipGroup:!0}),ma)}let Os;zi==="radio"?Os=(ma,ba,Na)=>{const rs=Vo(ba,Na),Ms=Yo.has(rs);return{node:ke.createElement(vi.ZP,Object.assign({},Nr.get(rs),{checked:Ms,onClick:Ur=>Ur.stopPropagation(),onChange:Ur=>{Yo.has(rs)||Ya(rs,!0,[rs],Ur.nativeEvent)}})),checked:Ms}}:Os=(ma,ba,Na)=>{var rs;const Ms=Vo(ba,Na),Ur=Yo.has(Ms),Aa=Va.has(Ms),Fs=Nr.get(Ms);let Ll;return Mr==="nest"?Ll=Aa:Ll=(rs=Fs==null?void 0:Fs.indeterminate)!==null&&rs!==void 0?rs:Aa,{node:ke.createElement(Ko.default,Object.assign({},Fs,{indeterminate:Ll,checked:Ur,skipGroup:!0,onClick:Ul=>Ul.stopPropagation(),onChange:Ul=>{let{nativeEvent:Ol}=Ul;const{shiftKey:lu}=Ol;let uu=-1,Xl=-1;if(lu&&oo){const ya=new Set([Dr,Ms]);sa.some((Hs,ns)=>{if(ya.has(Hs))if(uu===-1)uu=ns;else return Xl=ns,!0;return!1})}if(Xl!==-1&&uu!==Xl&&oo){const ya=sa.slice(uu,Xl+1),Hs=[];Ur?ya.forEach(Da=>{Yo.has(Da)&&(Hs.push(Da),Yo.delete(Da))}):ya.forEach(Da=>{Yo.has(Da)||(Hs.push(Da),Yo.add(Da))});const ns=Array.from(Yo);si==null||si(!Ur,ns.map(Da=>fo(Da)),Hs.map(Da=>fo(Da))),oa(ns,"multiple")}else{const ya=ga;if(oo){const Hs=Ur?(0,au._5)(ya,Ms):(0,au.L0)(ya,Ms);Ya(Ms,!Ur,Hs,Ol)}else{const Hs=(0,sr.S)([].concat((0,Ri.Z)(ya),[Ms]),!0,vr,Tr),{checkedKeys:ns,halfCheckedKeys:Da}=Hs;let Yl=ns;if(Ur){const yh=new Set(ns);yh.delete(Ms),Yl=(0,sr.S)(Array.from(yh),{checked:!1,halfCheckedKeys:Da},vr,Tr).checkedKeys}Ya(Ms,!Ur,Yl,Ol)}}ar(Ur?null:Ms)}})),checked:Ur}};const ys=(ma,ba,Na)=>{const{node:rs,checked:Ms}=Os(ma,ba,Na);return Ti?Ti(Ms,ba,Na,rs):rs};if(!Sr.includes(ts))if(Sr.findIndex(ma=>{var ba;return((ba=ma[qi])===null||ba===void 0?void 0:ba.columnType)==="EXPAND_COLUMN"})===0){const[ma,...ba]=Sr;Sr=[ma,ts].concat((0,Ri.Z)(ba))}else Sr=[ts].concat((0,Ri.Z)(Sr));const nl=Sr.indexOf(ts);Sr=Sr.filter((ma,ba)=>ma!==ts||ba===nl);const pa=Sr[nl-1],Is=Sr[nl+1];let ds=ho;ds===void 0&&((Is==null?void 0:Is.fixed)!==void 0?ds=Is.fixed:(pa==null?void 0:pa.fixed)!==void 0&&(ds=pa.fixed)),ds&&pa&&((fr=pa[qi])===null||fr===void 0?void 0:fr.columnType)==="EXPAND_COLUMN"&&pa.fixed===void 0&&(pa.fixed=ds);const Ls=yt()(`${bo}-selection-col`,{[`${bo}-selection-col-with-dropdown`]:Fi&&zi==="checkbox"}),nh={fixed:ds,width:Gi,className:`${bo}-selection-column`,title:lt.columnTitle||ea,render:ys,onCell:lt.onCell,[qi]:{className:Ls}};return Sr.map(ma=>ma===ts?nh:ma)},[Vo,po,lt,ga,Xa,Va,Gi,Ia,Mr,Dr,Nr,si,Ya,Tr]),Xa]},Oa=ye(89489),ca=ye(59477),Dh=ye(6848);const bl="ascend",Mo="descend";function Bh(it){return typeof it.sorter=="object"&&typeof it.sorter.multiple=="number"?it.sorter.multiple:!1}function Bt(it){return typeof it=="function"?it:it&&typeof it=="object"&&it.compare?it.compare:!1}function ni(it,lt){return lt?it[it.indexOf(lt)+1]:it[0]}function wd(it,lt,Ht){let Kt=[];function Sn(rn,Vn){Kt.push({column:rn,key:Ar(rn,Vn),multiplePriority:Bh(rn),sortOrder:rn.sortOrder})}return(it||[]).forEach((rn,Vn)=>{const Un=ra(Vn,Ht);rn.children?("sortOrder"in rn&&Sn(rn,Un),Kt=[].concat((0,Ri.Z)(Kt),(0,Ri.Z)(wd(rn.children,lt,Un)))):rn.sorter&&("sortOrder"in rn?Sn(rn,Un):lt&&rn.defaultSortOrder&&Kt.push({column:rn,key:Ar(rn,Un),multiplePriority:Bh(rn),sortOrder:rn.defaultSortOrder}))}),Kt}function $d(it,lt,Ht,Kt,Sn,rn,Vn,Un){return(lt||[]).map((jn,oi)=>{const hi=ra(oi,Un);let si=jn;if(si.sorter){const Gi=si.sortDirections||Sn,zi=si.showSorterTooltip===void 0?Vn:si.showSorterTooltip,Fi=Ar(si,hi),ho=Ht.find(Mr=>{let{key:Po}=Mr;return Po===Fi}),Ti=ho?ho.sortOrder:null,so=ni(Gi,Ti);let oo;if(jn.sortIcon)oo=jn.sortIcon({sortOrder:Ti});else{const Mr=Gi.includes(bl)&&ke.createElement(ca.Z,{className:yt()(`${it}-column-sorter-up`,{active:Ti===bl})}),Po=Gi.includes(Mo)&&ke.createElement(Oa.Z,{className:yt()(`${it}-column-sorter-down`,{active:Ti===Mo})});oo=ke.createElement("span",{className:yt()(`${it}-column-sorter`,{[`${it}-column-sorter-full`]:!!(Mr&&Po)})},ke.createElement("span",{className:`${it}-column-sorter-inner`,"aria-hidden":"true"},Mr,Po))}const{cancelSort:bo,triggerAsc:Xo,triggerDesc:lr}=rn||{};let fo=bo;so===Mo?fo=lr:so===bl&&(fo=Xo);const Vo=typeof zi=="object"?zi:{title:fo};si=Object.assign(Object.assign({},si),{className:yt()(si.className,{[`${it}-column-sort`]:Ti}),title:Mr=>{const Po=ke.createElement("div",{className:`${it}-column-sorters`},ke.createElement("span",{className:`${it}-column-title`},ua(jn.title,Mr)),oo);return zi?ke.createElement(Dh.Z,Object.assign({},Vo),Po):Po},onHeaderCell:Mr=>{const Po=jn.onHeaderCell&&jn.onHeaderCell(Mr)||{},zo=Po.onClick,wo=Po.onKeyDown;Po.onClick=_o=>{Kt({column:jn,key:Fi,sortOrder:so,multiplePriority:Bh(jn)}),zo==null||zo(_o)},Po.onKeyDown=_o=>{_o.keyCode===xi.Z.ENTER&&(Kt({column:jn,key:Fi,sortOrder:so,multiplePriority:Bh(jn)}),wo==null||wo(_o))};const Ji=wa(jn.title,{}),Bo=Ji==null?void 0:Ji.toString();return Ti?Po["aria-sort"]=Ti==="ascend"?"ascending":"descending":Po["aria-label"]=Bo||"",Po.className=yt()(Po.className,`${it}-column-has-sorters`),Po.tabIndex=0,jn.ellipsis&&(Po.title=(Ji!=null?Ji:"").toString()),Po}})}return"children"in si&&(si=Object.assign(Object.assign({},si),{children:$d(it,si.children,Ht,Kt,Sn,rn,Vn,hi)})),si})}function Cu(it){const{column:lt,sortOrder:Ht}=it;return{column:lt,order:Ht,field:lt.dataIndex,columnKey:lt.key}}function bu(it){const lt=it.filter(Ht=>{let{sortOrder:Kt}=Ht;return Kt}).map(Cu);return lt.length===0&&it.length?Object.assign(Object.assign({},Cu(it[it.length-1])),{column:void 0}):lt.length<=1?lt[0]||{}:lt}function zu(it,lt,Ht){const Kt=lt.slice().sort((Vn,Un)=>Un.multiplePriority-Vn.multiplePriority),Sn=it.slice(),rn=Kt.filter(Vn=>{let{column:{sorter:Un},sortOrder:jn}=Vn;return Bt(Un)&&jn});return rn.length?Sn.sort((Vn,Un)=>{for(let jn=0;jn<rn.length;jn+=1){const oi=rn[jn],{column:{sorter:hi},sortOrder:si}=oi,Gi=Bt(hi);if(Gi&&si){const zi=Gi(Vn,Un,si);if(zi!==0)return si===bl?zi:-zi}}return 0}).map(Vn=>{const Un=Vn[Ht];return Un?Object.assign(Object.assign({},Vn),{[Ht]:zu(Un,lt,Ht)}):Vn}):Sn}function nd(it){let{prefixCls:lt,mergedColumns:Ht,onSorterChange:Kt,sortDirections:Sn,tableLocale:rn,showSorterTooltip:Vn}=it;const[Un,jn]=ke.useState(wd(Ht,!0)),oi=ke.useMemo(()=>{let Fi=!0;const ho=wd(Ht,!1);if(!ho.length)return Un;const Ti=[];function so(bo){Fi?Ti.push(bo):Ti.push(Object.assign(Object.assign({},bo),{sortOrder:null}))}let oo=null;return ho.forEach(bo=>{oo===null?(so(bo),bo.sortOrder&&(bo.multiplePriority===!1?Fi=!1:oo=!0)):(oo&&bo.multiplePriority!==!1||(Fi=!1),so(bo))}),Ti},[Ht,Un]),hi=ke.useMemo(()=>{const Fi=oi.map(ho=>{let{column:Ti,sortOrder:so}=ho;return{column:Ti,order:so}});return{sortColumns:Fi,sortColumn:Fi[0]&&Fi[0].column,sortOrder:Fi[0]&&Fi[0].order}},[oi]);function si(Fi){let ho;Fi.multiplePriority===!1||!oi.length||oi[0].multiplePriority===!1?ho=[Fi]:ho=[].concat((0,Ri.Z)(oi.filter(Ti=>{let{key:so}=Ti;return so!==Fi.key})),[Fi]),jn(ho),Kt(bu(ho),ho)}return[Fi=>$d(lt,Fi,oi,si,Sn,rn,Vn),oi,hi,()=>bu(oi)]}function mh(it,lt){return it.map(Ht=>{const Kt=Object.assign({},Ht);return Kt.title=ua(Ht.title,lt),"children"in Kt&&(Kt.children=mh(Kt.children,lt)),Kt})}function Za(it){return[ke.useCallback(Ht=>mh(Ht,it),[it])]}var tr=Ki((it,lt)=>{const{_renderTimes:Ht}=it,{_renderTimes:Kt}=lt;return Ht!==Kt}),tl=nr((it,lt)=>{const{_renderTimes:Ht}=it,{_renderTimes:Kt}=lt;return Ht!==Kt}),zs=ye(64993),Fa=ye(17313),yi=ye(83116),cr=ye(37613),Br=it=>{const{componentCls:lt}=it,Ht=`${it.lineWidth}px ${it.lineType} ${it.tableBorderColor}`,Kt=(Sn,rn,Vn)=>({[`&${lt}-${Sn}`]:{[`> ${lt}-container`]:{[`> ${lt}-content, > ${lt}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${lt}-expanded-row-fixed`]:{margin:`-${rn}px -${Vn+it.lineWidth}px`}}}}}});return{[`${lt}-wrapper`]:{[`${lt}${lt}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${lt}-title`]:{border:Ht,borderBottom:0},[`> ${lt}-container`]:{borderInlineStart:Ht,borderTop:Ht,[`
|
|
|
> ${lt}-content,
|
|
|
> ${lt}-header,
|
|
|
> ${lt}-body,
|
|
|
> ${lt}-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:Ht},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ht},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${lt}-cell-fix-right-first::after`]:{borderInlineEnd:Ht}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${lt}-expanded-row-fixed`]:{margin:`-${it.tablePaddingVertical}px -${it.tablePaddingHorizontal+it.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:it.lineWidth,bottom:0,borderInlineEnd:Ht,content:'""'}}}}}},[`&${lt}-scroll-horizontal`]:{[`> ${lt}-container > ${lt}-body`]:{"> table > tbody":{[`
|
|
|
> tr${lt}-expanded-row,
|
|
|
> tr${lt}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Kt("middle",it.tablePaddingVerticalMiddle,it.tablePaddingHorizontalMiddle)),Kt("small",it.tablePaddingVerticalSmall,it.tablePaddingHorizontalSmall)),{[`> ${lt}-footer`]:{border:Ht,borderTop:0}}),[`${lt}-cell`]:{[`${lt}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${it.lineWidth}px 0 ${it.lineWidth}px ${it.tableHeaderBg}`}},[`${lt}-bordered ${lt}-cell-scrollbar`]:{borderInlineEnd:Ht}}}},hs=it=>{const{componentCls:lt}=it;return{[`${lt}-wrapper`]:{[`${lt}-cell-ellipsis`]:Object.assign(Object.assign({},Fa.vS),{wordBreak:"keep-all",[`
|
|
|
&${lt}-cell-fix-left-last,
|
|
|
&${lt}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${lt}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${lt}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Gr=it=>{const{componentCls:lt}=it;return{[`${lt}-wrapper`]:{[`${lt}-tbody > tr${lt}-placeholder`]:{textAlign:"center",color:it.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:it.colorBgContainer}}}}},Bs=ye(15969),fa=it=>{const{componentCls:lt,antCls:Ht,controlInteractiveSize:Kt,motionDurationSlow:Sn,lineWidth:rn,paddingXS:Vn,lineType:Un,tableBorderColor:jn,tableExpandIconBg:oi,tableExpandColumnWidth:hi,borderRadius:si,fontSize:Gi,fontSizeSM:zi,lineHeight:Fi,tablePaddingVertical:ho,tablePaddingHorizontal:Ti,tableExpandedRowBg:so,paddingXXS:oo}=it,bo=Kt/2-rn,Xo=bo*2+rn*3,lr=`${rn}px ${Un} ${jn}`,fo=oo-rn;return{[`${lt}-wrapper`]:{[`${lt}-expand-icon-col`]:{width:hi},[`${lt}-row-expand-icon-cell`]:{textAlign:"center",[`${lt}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${lt}-row-indent`]:{height:1,float:"left"},[`${lt}-row-expand-icon`]:Object.assign(Object.assign({},(0,Bs.N)(it)),{position:"relative",float:"left",boxSizing:"border-box",width:Xo,height:Xo,padding:0,color:"inherit",lineHeight:`${Xo}px`,background:oi,border:lr,borderRadius:si,transform:`scale(${Kt/Xo})`,transition:`all ${Sn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Sn} ease-out`,content:'""'},"&::before":{top:bo,insetInlineEnd:fo,insetInlineStart:fo,height:rn},"&::after":{top:fo,bottom:fo,insetInlineStart:bo,width:rn,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"}}),[`${lt}-row-indent + ${lt}-row-expand-icon`]:{marginTop:(Gi*Fi-rn*3)/2-Math.ceil((zi*1.4-rn*3)/2),marginInlineEnd:Vn},[`tr${lt}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:so}},[`${Ht}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${lt}-expanded-row-fixed`]:{position:"relative",margin:`-${ho}px -${Ti}px`,padding:`${ho}px ${Ti}px`}}}},ka=it=>{const{componentCls:lt,antCls:Ht,iconCls:Kt,tableFilterDropdownWidth:Sn,tableFilterDropdownSearchWidth:rn,paddingXXS:Vn,paddingXS:Un,colorText:jn,lineWidth:oi,lineType:hi,tableBorderColor:si,tableHeaderIconColor:Gi,fontSizeSM:zi,tablePaddingHorizontal:Fi,borderRadius:ho,motionDurationSlow:Ti,colorTextDescription:so,colorPrimary:oo,tableHeaderFilterActiveBg:bo,colorTextDisabled:Xo,tableFilterDropdownBg:lr,tableFilterDropdownHeight:fo,controlItemBgHover:Vo,controlItemBgActive:Mr,boxShadowSecondary:Po,filterDropdownMenuBg:zo}=it,wo=`${Ht}-dropdown`,Ji=`${lt}-filter-dropdown`,Bo=`${Ht}-tree`,_o=`${oi}px ${hi} ${si}`;return[{[`${lt}-wrapper`]:{[`${lt}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${lt}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Vn,marginInline:`${Vn}px ${-Fi/2}px`,padding:`0 ${Vn}px`,color:Gi,fontSize:zi,borderRadius:ho,cursor:"pointer",transition:`all ${Ti}`,"&:hover":{color:so,background:bo},"&.active":{color:oo}}}},{[`${Ht}-dropdown`]:{[Ji]:Object.assign(Object.assign({},(0,Fa.Wf)(it)),{minWidth:Sn,backgroundColor:lr,borderRadius:ho,boxShadow:Po,overflow:"hidden",[`${wo}-menu`]:{maxHeight:fo,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:zo,"&:empty::after":{display:"block",padding:`${Un}px 0`,color:Xo,fontSize:zi,textAlign:"center",content:'"Not Found"'}},[`${Ji}-tree`]:{paddingBlock:`${Un}px 0`,paddingInline:Un,[Bo]:{padding:0},[`${Bo}-treenode ${Bo}-node-content-wrapper:hover`]:{backgroundColor:Vo},[`${Bo}-treenode-checkbox-checked ${Bo}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Mr}}},[`${Ji}-search`]:{padding:Un,borderBottom:_o,"&-input":{input:{minWidth:rn},[Kt]:{color:Xo}}},[`${Ji}-checkall`]:{width:"100%",marginBottom:Vn,marginInlineStart:Vn},[`${Ji}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Un-oi}px ${Un}px`,overflow:"hidden",borderTop:_o}})}},{[`${Ht}-dropdown ${Ji}, ${Ji}-submenu`]:{[`${Ht}-checkbox-wrapper + span`]:{paddingInlineStart:Un,color:jn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},su=it=>{const{componentCls:lt,lineWidth:Ht,colorSplit:Kt,motionDurationSlow:Sn,zIndexTableFixed:rn,tableBg:Vn,zIndexTableSticky:Un}=it,jn=Kt;return{[`${lt}-wrapper`]:{[`
|
|
|
${lt}-cell-fix-left,
|
|
|
${lt}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:rn,background:Vn},[`
|
|
|
${lt}-cell-fix-left-first::after,
|
|
|
${lt}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ht,width:30,transform:"translateX(100%)",transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},[`${lt}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${lt}-cell-fix-right-first::after,
|
|
|
${lt}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Ht,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},[`${lt}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Un+1,width:30,transition:`box-shadow ${Sn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${lt}-ping-left`]:{[`&:not(${lt}-has-fix-left) ${lt}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${jn}`}},[`
|
|
|
${lt}-cell-fix-left-first::after,
|
|
|
${lt}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${jn}`},[`${lt}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${lt}-ping-right`]:{[`&:not(${lt}-has-fix-right) ${lt}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${jn}`}},[`
|
|
|
${lt}-cell-fix-right-first::after,
|
|
|
${lt}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${jn}`}}}}},vh=it=>{const{componentCls:lt,antCls:Ht}=it;return{[`${lt}-wrapper`]:{[`${lt}-pagination${Ht}-pagination`]:{margin:`${it.margin}px 0`},[`${lt}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:it.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},rr=it=>{const{componentCls:lt,tableRadius:Ht}=it;return{[`${lt}-wrapper`]:{[lt]:{[`${lt}-title, ${lt}-header`]:{borderRadius:`${Ht}px ${Ht}px 0 0`},[`${lt}-title + ${lt}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${lt}-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:Ht,borderStartEndRadius:Ht,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ht},"> *:last-child":{borderStartEndRadius:Ht}}},"&-footer":{borderRadius:`0 0 ${Ht}px ${Ht}px`}}}}},Qd=it=>{const{componentCls:lt}=it;return{[`${lt}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${lt}-pagination-left`]:{justifyContent:"flex-end"},[`${lt}-pagination-right`]:{justifyContent:"flex-start"},[`${lt}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${lt}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${lt}-row-indent`]:{float:"right"}}}}},Mc=it=>{const{componentCls:lt,antCls:Ht,iconCls:Kt,fontSizeIcon:Sn,padding:rn,paddingXS:Vn,tableHeaderIconColor:Un,tableHeaderIconColorHover:jn,tableSelectionColumnWidth:oi}=it;return{[`${lt}-wrapper`]:{[`${lt}-selection-col`]:{width:oi,[`&${lt}-selection-col-with-dropdown`]:{width:oi+Sn+rn/4}},[`${lt}-bordered ${lt}-selection-col`]:{width:oi+Vn*2,[`&${lt}-selection-col-with-dropdown`]:{width:oi+Sn+rn/4+Vn*2}},[`
|
|
|
table tr th${lt}-selection-column,
|
|
|
table tr td${lt}-selection-column
|
|
|
`]:{paddingInlineEnd:it.paddingXS,paddingInlineStart:it.paddingXS,textAlign:"center",[`${Ht}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${lt}-selection-column${lt}-cell-fix-left`]:{zIndex:it.zIndexTableFixed+1},[`table tr th${lt}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${lt}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${lt}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${it.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${it.tablePaddingHorizontal/4}px`,[Kt]:{color:Un,fontSize:Sn,verticalAlign:"baseline","&:hover":{color:jn}}}}}},od=it=>{const{componentCls:lt}=it,Ht=(Kt,Sn,rn,Vn)=>({[`${lt}${lt}-${Kt}`]:{fontSize:Vn,[`
|
|
|
${lt}-title,
|
|
|
${lt}-footer,
|
|
|
${lt}-cell,
|
|
|
${lt}-thead > tr > th,
|
|
|
${lt}-tbody > tr > th,
|
|
|
${lt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Sn}px ${rn}px`},[`${lt}-filter-trigger`]:{marginInlineEnd:`-${rn/2}px`},[`${lt}-expanded-row-fixed`]:{margin:`-${Sn}px -${rn}px`},[`${lt}-tbody`]:{[`${lt}-wrapper:only-child ${lt}`]:{marginBlock:`-${Sn}px`,marginInline:`${it.tableExpandColumnWidth-rn}px -${rn}px`}},[`${lt}-selection-column`]:{paddingInlineStart:`${rn/4}px`}}});return{[`${lt}-wrapper`]:Object.assign(Object.assign({},Ht("middle",it.tablePaddingVerticalMiddle,it.tablePaddingHorizontalMiddle,it.tableFontSizeMiddle)),Ht("small",it.tablePaddingVerticalSmall,it.tablePaddingHorizontalSmall,it.tableFontSizeSmall))}},eh=it=>{const{componentCls:lt,marginXXS:Ht,fontSizeIcon:Kt,tableHeaderIconColor:Sn,tableHeaderIconColorHover:rn}=it;return{[`${lt}-wrapper`]:{[`${lt}-thead th${lt}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${it.motionDurationSlow}`,"&:hover":{background:it.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:it.colorPrimary},[`
|
|
|
&${lt}-cell-fix-left:hover,
|
|
|
&${lt}-cell-fix-right:hover
|
|
|
`]:{background:it.tableFixedHeaderSortActiveBg}},[`${lt}-thead th${lt}-column-sort`]:{background:it.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${lt}-column-sort`]:{background:it.tableBodySortBg},[`${lt}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${lt}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${lt}-column-sorter`]:{marginInlineStart:Ht,color:Sn,fontSize:0,transition:`color ${it.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Kt,"&.active":{color:it.colorPrimary}},[`${lt}-column-sorter-up + ${lt}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${lt}-column-sorters:hover ${lt}-column-sorter`]:{color:rn}}}},rd=it=>{const{componentCls:lt,opacityLoading:Ht,tableScrollThumbBg:Kt,tableScrollThumbBgHover:Sn,tableScrollThumbSize:rn,tableScrollBg:Vn,zIndexTableSticky:Un,stickyScrollBarBorderRadius:jn}=it,oi=`${it.lineWidth}px ${it.lineType} ${it.tableBorderColor}`;return{[`${lt}-wrapper`]:{[`${lt}-sticky`]:{"&-holder":{position:"sticky",zIndex:Un,background:it.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${rn}px !important`,zIndex:Un,display:"flex",alignItems:"center",background:Vn,borderTop:oi,opacity:Ht,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:rn,backgroundColor:Kt,borderRadius:jn,transition:`all ${it.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Sn}}}}}}},th=it=>{const{componentCls:lt,lineWidth:Ht,tableBorderColor:Kt}=it,Sn=`${Ht}px ${it.lineType} ${Kt}`;return{[`${lt}-wrapper`]:{[`${lt}-summary`]:{position:"relative",zIndex:it.zIndexTableFixed,background:it.tableBg,"> tr":{"> th, > td":{borderBottom:Sn}}},[`div${lt}-summary`]:{boxShadow:`0 -${Ht}px 0 ${Kt}`}}}},Oh=it=>{const{componentCls:lt}=it,Ht=`${it.lineWidth}px ${it.lineType} ${it.tableBorderColor}`,Kt=`${lt}-expanded-row-cell`;return{[`${lt}-wrapper`]:{[`${lt}-tbody-virtual`]:{[`${lt}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${lt}-cell`]:{borderBottom:Ht},[`${lt}-expanded-row`]:{[`${Kt}${Kt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${it.lineWidth}px)`,borderInlineEnd:"none"}}},[`${lt}-bordered`]:{[`${lt}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ht,position:"absolute"},[`${lt}-cell`]:{borderInlineEnd:Ht,[`&${lt}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-it.lineWidth,borderInlineStart:Ht}}}}}}};const Hu=it=>{const{componentCls:lt,fontWeightStrong:Ht,tablePaddingVertical:Kt,tablePaddingHorizontal:Sn,lineWidth:rn,lineType:Vn,tableBorderColor:Un,tableFontSize:jn,tableBg:oi,tableRadius:hi,tableHeaderTextColor:si,motionDurationMid:Gi,tableHeaderBg:zi,tableHeaderCellSplitColor:Fi,tableRowHoverBg:ho,tableSelectedRowBg:Ti,tableSelectedRowHoverBg:so,tableFooterTextColor:oo,tableFooterBg:bo,paddingContentVerticalLG:Xo}=it,lr=`${rn}px ${Vn} ${Un}`;return{[`${lt}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Fa.dF)()),{[lt]:Object.assign(Object.assign({},(0,Fa.Wf)(it)),{fontSize:jn,background:oi,borderRadius:`${hi}px ${hi}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${hi}px ${hi}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${lt}-cell,
|
|
|
${lt}-thead > tr > th,
|
|
|
${lt}-tbody > tr > th,
|
|
|
${lt}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Xo}px ${Sn}px`,overflowWrap:"break-word"},[`${lt}-title`]:{padding:`${Kt}px ${Sn}px`},[`${lt}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:si,fontWeight:Ht,textAlign:"start",background:zi,borderBottom:lr,transition:`background ${Gi} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${lt}-selection-column):not(${lt}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Fi,transform:"translateY(-50%)",transition:`background-color ${Gi}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${lt}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Gi}, border-color ${Gi}`,borderBottom:lr,[`
|
|
|
> ${lt}-wrapper:only-child,
|
|
|
> ${lt}-expanded-row-fixed > ${lt}-wrapper:only-child
|
|
|
`]:{[lt]:{marginBlock:`-${Kt}px`,marginInline:`${it.tableExpandColumnWidth-Sn}px -${Sn}px`,[`${lt}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:si,fontWeight:Ht,textAlign:"start",background:zi,borderBottom:lr,transition:`background ${Gi} ease`},[`
|
|
|
&${lt}-row:hover > th,
|
|
|
&${lt}-row:hover > td,
|
|
|
> th${lt}-cell-row-hover,
|
|
|
> td${lt}-cell-row-hover
|
|
|
`]:{background:ho},[`&${lt}-row-selected`]:{"> th, > td":{background:Ti},"&:hover > th, &:hover > td":{background:so}}}},[`${lt}-footer`]:{padding:`${Kt}px ${Sn}px`,color:oo,background:bo}})}};var Ih=(0,yi.Z)("Table",it=>{const{colorTextHeading:lt,colorSplit:Ht,colorIcon:Kt,colorIconHover:Sn,opacityLoading:rn,colorBgContainer:Vn,controlInteractiveSize:Un,headerBg:jn,headerColor:oi,headerSortActiveBg:hi,headerSortHoverBg:si,bodySortBg:Gi,rowHoverBg:zi,rowSelectedBg:Fi,rowSelectedHoverBg:ho,rowExpandedBg:Ti,cellPaddingBlock:so,cellPaddingInline:oo,cellPaddingBlockMD:bo,cellPaddingInlineMD:Xo,cellPaddingBlockSM:lr,cellPaddingInlineSM:fo,borderColor:Vo,footerBg:Mr,footerColor:Po,headerBorderRadius:zo,cellFontSize:wo,cellFontSizeMD:Ji,cellFontSizeSM:Bo,headerSplitColor:_o,fixedHeaderSortActiveBg:pr,headerFilterHoverBg:vr,filterDropdownBg:po,expandIconBg:Nr,selectionColumnWidth:Tr,stickyScrollBarBg:ga}=it,$r=new zs.C(Kt),Xa=new zs.C(Sn),Va=2,Dr=(0,cr.TS)(it,{tableFontSize:wo,tableBg:Vn,tableRadius:zo,tablePaddingVertical:so,tablePaddingHorizontal:oo,tablePaddingVerticalMiddle:bo,tablePaddingHorizontalMiddle:Xo,tablePaddingVerticalSmall:lr,tablePaddingHorizontalSmall:fo,tableBorderColor:Vo,tableHeaderTextColor:oi,tableHeaderBg:jn,tableFooterTextColor:Po,tableFooterBg:Mr,tableHeaderCellSplitColor:_o,tableHeaderSortBg:hi,tableHeaderSortHoverBg:si,tableHeaderIconColor:$r.clone().setAlpha($r.getAlpha()*rn).toRgbString(),tableHeaderIconColorHover:Xa.clone().setAlpha(Xa.getAlpha()*rn).toRgbString(),tableBodySortBg:Gi,tableFixedHeaderSortActiveBg:pr,tableHeaderFilterActiveBg:vr,tableFilterDropdownBg:po,tableRowHoverBg:zi,tableSelectedRowBg:Fi,tableSelectedRowHoverBg:ho,zIndexTableFixed:Va,zIndexTableSticky:Va+1,tableFontSizeMiddle:Ji,tableFontSizeSmall:Bo,tableSelectionColumnWidth:Tr,tableExpandIconBg:Nr,tableExpandColumnWidth:Un+2*it.padding,tableExpandedRowBg:Ti,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ga,tableScrollThumbBgHover:lt,tableScrollBg:Ht});return[Hu(Dr),vh(Dr),th(Dr),eh(Dr),ka(Dr),Br(Dr),rr(Dr),fa(Dr),th(Dr),Gr(Dr),Mc(Dr),su(Dr),rd(Dr),hs(Dr),od(Dr),Qd(Dr),Oh(Dr)]},it=>{const{colorFillAlter:lt,colorBgContainer:Ht,colorTextHeading:Kt,colorFillSecondary:Sn,colorFillContent:rn,controlItemBgActive:Vn,controlItemBgActiveHover:Un,padding:jn,paddingSM:oi,paddingXS:hi,colorBorderSecondary:si,borderRadiusLG:Gi,fontSize:zi,controlHeight:Fi,colorTextPlaceholder:ho}=it,Ti=new zs.C(Sn).onBackground(Ht).toHexShortString(),so=new zs.C(rn).onBackground(Ht).toHexShortString(),oo=new zs.C(lt).onBackground(Ht).toHexShortString();return{headerBg:oo,headerColor:Kt,headerSortActiveBg:Ti,headerSortHoverBg:so,bodySortBg:oo,rowHoverBg:oo,rowSelectedBg:Vn,rowSelectedHoverBg:Un,rowExpandedBg:lt,cellPaddingBlock:jn,cellPaddingInline:jn,cellPaddingBlockMD:oi,cellPaddingInlineMD:hi,cellPaddingBlockSM:hi,cellPaddingInlineSM:hi,borderColor:si,headerBorderRadius:Gi,footerBg:oo,footerColor:Kt,cellFontSize:zi,cellFontSizeMD:zi,cellFontSizeSM:zi,headerSplitColor:si,fixedHeaderSortActiveBg:Ti,headerFilterHoverBg:rn,filterDropdownMenuBg:Ht,filterDropdownBg:Ht,expandIconBg:Ht,selectionColumnWidth:Fi,stickyScrollBarBg:ho,stickyScrollBarBorderRadius:100}});const Fc=[],uf=(it,lt)=>{const{prefixCls:Ht,className:Kt,rootClassName:Sn,style:rn,size:Vn,bordered:Un,dropdownPrefixCls:jn,dataSource:oi,pagination:hi,rowSelection:si,rowKey:Gi="key",rowClassName:zi,columns:Fi,children:ho,childrenColumnName:Ti,onChange:so,getPopupContainer:oo,loading:bo,expandIcon:Xo,expandable:lr,expandedRowRender:fo,expandIconColumnIndex:Vo,indentSize:Mr,scroll:Po,sortDirections:zo,locale:wo,showSorterTooltip:Ji=!0,virtual:Bo}=it,_o=ke.useMemo(()=>Fi||Tt(ho),[Fi,ho]),pr=ke.useMemo(()=>_o.some(la=>la.responsive),[_o]),vr=(0,ti.Z)(pr),po=ke.useMemo(()=>{const la=new Set(Object.keys(vr).filter(Ra=>vr[Ra]));return _o.filter(Ra=>!Ra.responsive||Ra.responsive.some(Ss=>la.has(Ss)))},[_o,vr]),Nr=(0,Lo.Z)(it,["className","style","columns"]),{locale:Tr=io.Z,direction:ga,table:$r,renderEmpty:Xa,getPrefixCls:Va,getPopupContainer:Dr}=ke.useContext(Pr.E_),ar=(0,Qi.Z)(Vn),oa=Object.assign(Object.assign({},Tr.Table),wo),Ya=oi||Fc,Ia=Va("table",Ht),gs=Va("dropdown",jn),yr=Object.assign({childrenColumnName:Ti,expandIconColumnIndex:Vo},lr),{childrenColumnName:fr="children"}=yr,Sr=ke.useMemo(()=>Ya.some(la=>la==null?void 0:la[fr])?"nest":fo||lr&&lr.expandedRowRender?"row":null,[Ya]),Yo={body:ke.useRef()},sa=ke.useMemo(()=>typeof Gi=="function"?Gi:la=>la==null?void 0:la[Gi],[Gi]),[Jo]=ph(Ya,fr,sa),Fr={},qr=function(la,Ra){let Ss=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ja,na,Ns;const Ml=Object.assign(Object.assign({},Fr),la);Ss&&((ja=Fr.resetPagination)===null||ja===void 0||ja.call(Fr),!((na=Ml.pagination)===null||na===void 0)&&na.current&&(Ml.pagination.current=1),hi&&hi.onChange&&hi.onChange(1,(Ns=Ml.pagination)===null||Ns===void 0?void 0:Ns.pageSize)),Po&&Po.scrollToFirstRowOnChange!==!1&&Yo.body.current&&(0,dr.Z)(0,{getContainer:()=>Yo.body.current}),so==null||so(Ml.pagination,Ml.filters,Ml.sorter,{currentDataSource:js(zu(Ya,Ml.sorterStates,fr),Ml.filterStates),action:Ra})},ea=(la,Ra)=>{qr({sorter:la,sorterStates:Ra},"sort",!1)},[Os,ys,nl,pa]=nd({prefixCls:Ia,mergedColumns:po,onSorterChange:ea,sortDirections:zo||["ascend","descend"],tableLocale:oa,showSorterTooltip:Ji}),Is=ke.useMemo(()=>zu(Ya,ys,fr),[Ya,ys]);Fr.sorter=pa(),Fr.sorterStates=ys;const ds=(la,Ra)=>{qr({filters:la,filterStates:Ra},"filter",!0)},[Ls,nh,ma]=Nh({prefixCls:Ia,locale:oa,dropdownPrefixCls:gs,mergedColumns:po,onFilterChange:ds,getPopupContainer:oo||Dr}),ba=js(Is,nh);Fr.filters=ma,Fr.filterStates=nh;const Na=ke.useMemo(()=>{const la={};return Object.keys(ma).forEach(Ra=>{ma[Ra]!==null&&(la[Ra]=ma[Ra])}),Object.assign(Object.assign({},nl),{filters:la})},[nl,ma]),[rs]=Za(Na),Ms=(la,Ra)=>{qr({pagination:Object.assign(Object.assign({},Fr.pagination),{current:la,pageSize:Ra})},"paginate")},[Ur,Aa]=Ah(ba.length,Ms,hi);Fr.pagination=hi===!1?{}:ru(Ur,hi),Fr.resetPagination=Aa;const Fs=ke.useMemo(()=>{if(hi===!1||!Ur.pageSize)return ba;const{current:la=1,total:Ra,pageSize:Ss=ju}=Ur;return ba.length<Ra?ba.length>Ss?ba.slice((la-1)*Ss,la*Ss):ba:ba.slice((la-1)*Ss,la*Ss)},[!!hi,ba,Ur&&Ur.current,Ur&&Ur.pageSize,Ur&&Ur.total]),[Ll,Ul]=Cl({prefixCls:Ia,data:ba,pageData:Fs,getRowKey:sa,getRecordByKey:Jo,expandType:Sr,childrenColumnName:fr,locale:oa,getPopupContainer:oo||Dr},si),Ol=(la,Ra,Ss)=>{let ja;return typeof zi=="function"?ja=yt()(zi(la,Ra,Ss)):ja=yt()(zi),yt()({[`${Ia}-row-selected`]:Ul.has(sa(la,Ra))},ja)};yr.__PARENT_RENDER_ICON__=yr.expandIcon,yr.expandIcon=yr.expandIcon||Xo||Lr(oa),Sr==="nest"&&yr.expandIconColumnIndex===void 0?yr.expandIconColumnIndex=si?1:0:yr.expandIconColumnIndex>0&&si&&(yr.expandIconColumnIndex-=1),typeof yr.indentSize!="number"&&(yr.indentSize=typeof Mr=="number"?Mr:15);const lu=ke.useCallback(la=>rs(Ll(Ls(Os(la)))),[Os,Ls,Ll]);let uu,Xl;if(hi!==!1&&(Ur!=null&&Ur.total)){let la;Ur.size?la=Ur.size:la=ar==="small"||ar==="middle"?"small":void 0;const Ra=na=>ke.createElement(ir.Z,Object.assign({},Ur,{className:yt()(`${Ia}-pagination ${Ia}-pagination-${na}`,Ur.className),size:la})),Ss=ga==="rtl"?"left":"right",{position:ja}=Ur;if(ja!==null&&Array.isArray(ja)){const na=ja.find(Mu=>Mu.includes("top")),Ns=ja.find(Mu=>Mu.includes("bottom")),Ml=ja.every(Mu=>`${Mu}`=="none");!na&&!Ns&&!Ml&&(Xl=Ra(Ss)),na&&(uu=Ra(na.toLowerCase().replace("top",""))),Ns&&(Xl=Ra(Ns.toLowerCase().replace("bottom","")))}else Xl=Ra(Ss)}let ya;typeof bo=="boolean"?ya={spinning:bo}:typeof bo=="object"&&(ya=Object.assign({spinning:!0},bo));const[Hs,ns]=Ih(Ia),[,Da]=(0,mr.Z)(),Yl=yt()(`${Ia}-wrapper`,$r==null?void 0:$r.className,{[`${Ia}-wrapper-rtl`]:ga==="rtl"},Kt,Sn,ns),yh=Object.assign(Object.assign({},$r==null?void 0:$r.style),rn),hu=wo&&wo.emptyText||(Xa==null?void 0:Xa("Table"))||ke.createElement(Yi.Z,{componentName:"Table"}),Wu=Bo?tl:tr,ih={},Il=ke.useMemo(()=>{const{fontSize:la,lineHeight:Ra,padding:Ss,paddingXS:ja,paddingSM:na}=Da,Ns=Math.floor(la*Ra);switch(ar){case"large":return Ss*2+Ns;case"small":return ja*2+Ns;default:return na*2+Ns}},[Da,ar]);return Bo&&(ih.listItemHeight=Il),Hs(ke.createElement("div",{ref:lt,className:Yl,style:yh},ke.createElement(Ir.Z,Object.assign({spinning:!1},ya),uu,ke.createElement(Wu,Object.assign({},ih,Nr,{columns:po,direction:ga,expandable:yr,prefixCls:Ia,className:yt()({[`${Ia}-middle`]:ar==="middle",[`${Ia}-small`]:ar==="small",[`${Ia}-bordered`]:Un,[`${Ia}-empty`]:Ya.length===0}),data:Fs,rowKey:sa,rowClassName:Ol,emptyText:hu,internalHooks:Oe,internalRefs:Yo,transformColumns:lu})),Xl)))};var hf=ke.forwardRef(uf);const Uf=(it,lt)=>{const Ht=ke.useRef(0);return Ht.current+=1,ke.createElement(hf,Object.assign({},it,{ref:lt,_renderTimes:Ht.current}))},El=ke.forwardRef(Uf);El.SELECTION_COLUMN=ts,El.EXPAND_COLUMN=Ce,El.SELECTION_ALL=Ta,El.SELECTION_INVERT=La,El.SELECTION_NONE=Pa,El.Column=$i,El.ColumnGroup=jo,El.Summary=et;var Rh=El,Zg=Rh},98228:function(Kn,kn,ye){"use strict";ye.d(kn,{default:function(){return Co}});var Ce=ye(92310),Oe=ye.n(Ce),tt=ye(96663),At=ye(19127),Ue=ye(44127),Je=ye(72071),ke=ye(6620),Ot=ye(20135),Lt=ye(77861),ot=ye(17115),Rt=ye(90782),xt=ye(18929),zt=ye(48736),Ae=ye(59301),te=function(Bn){var be=Ae.useRef({valueLabels:new Map});return Ae.useMemo(function(){var Mi=be.current.valueLabels,Ei=new Map,Dt=Bn.map(function(En){var Fn,Jn=En.value,wn=(Fn=En.label)!==null&&Fn!==void 0?Fn:Mi.get(Jn);return Ei.set(Jn,wn),(0,Ue.Z)((0,Ue.Z)({},En),{},{label:wn})});return be.current.valueLabels=Ei,[Dt]},[Bn])},ne=function(Bn,be,Mi,Ei){return Ae.useMemo(function(){var Dt=Bn.map(function(wn){var Nn=wn.value;return Nn}),En=be.map(function(wn){var Nn=wn.value;return Nn}),Fn=Dt.filter(function(wn){return!Ei[wn]});if(Mi){var Jn=(0,Rt.S)(Dt,!0,Ei);Dt=Jn.checkedKeys,En=Jn.halfCheckedKeys}return[Array.from(new Set([].concat((0,At.Z)(Fn),(0,At.Z)(Dt)))),En]},[Bn,be,Mi,Ei])},he=ye(71430),se=function(Bn,be){return Ae.useMemo(function(){var Mi=(0,he.I8)(Bn,{fieldNames:be,initWrapper:function(Dt){return(0,Ue.Z)((0,Ue.Z)({},Dt),{},{valueEntities:new Map})},processEntity:function(Dt,En){var Fn=Dt.node[be.value];if(0)var Jn;En.valueEntities.set(Fn,Dt)}});return Mi},[Bn,be])},ge=ye(90493),me=ye(11592),we=function(){return null},Fe=we,Be=["children","value"];function Ie(Bn){return(0,me.Z)(Bn).map(function(be){if(!Ae.isValidElement(be)||!be.type)return null;var Mi=be,Ei=Mi.key,Dt=Mi.props,En=Dt.children,Fn=Dt.value,Jn=(0,ke.Z)(Dt,Be),wn=(0,Ue.Z)({key:Ei,value:Fn},Jn),Nn=Ie(En);return Nn.length&&(wn.children=Nn),wn}).filter(function(be){return be})}function We(Bn){if(!Bn)return Bn;var be=(0,Ue.Z)({},Bn);return"props"in be||Object.defineProperty(be,"props",{get:function(){return(0,zt.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),be}}),be}function nt(Bn,be,Mi,Ei,Dt,En){var Fn=null,Jn=null;function wn(){function Nn(ct){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return ct.map(function(Tt,_t){var ht="".concat(Pt,"-").concat(_t),Ye=Tt[En.value],Wt=Mi.includes(Ye),Ut=Nn(Tt[En.children]||[],ht,Wt),fn=Ae.createElement(Fe,Tt,Ut.map(function(at){return at.node}));if(be===Ye&&(Fn=fn),Wt){var Dn={pos:ht,node:fn,children:Ut};return Re||Jn.push(Dn),Dn}return null}).filter(function(Tt){return Tt})}Jn||(Jn=[],Nn(Ei),Jn.sort(function(ct,Pt){var Re=ct.node.props.value,Tt=Pt.node.props.value,_t=Mi.indexOf(Re),ht=Mi.indexOf(Tt);return _t-ht}))}Object.defineProperty(Bn,"triggerNode",{get:function(){return(0,zt.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),wn(),Fn}}),Object.defineProperty(Bn,"allCheckedNodes",{get:function(){return(0,zt.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),wn(),Dt?Jn:Jn.map(function(ct){var Pt=ct.node;return Pt})}})}var Xe=function(Bn,be,Mi){var Ei=Mi.treeNodeFilterProp,Dt=Mi.filterTreeNode,En=Mi.fieldNames,Fn=En.children;return Ae.useMemo(function(){if(!be||Dt===!1)return Bn;var Jn;if(typeof Dt=="function")Jn=Dt;else{var wn=be.toUpperCase();Jn=function(Pt,Re){var Tt=Re[Ei];return String(Tt).toUpperCase().includes(wn)}}function Nn(ct){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ct.reduce(function(Re,Tt){var _t=Tt[Fn],ht=Pt||Jn(be,We(Tt)),Ye=Nn(_t||[],ht);return(ht||Ye.length)&&Re.push((0,Ue.Z)((0,Ue.Z)({},Tt),{},(0,ge.Z)({isLeaf:void 0},Fn,Ye))),Re},[])}return Nn(Bn)},[Bn,be,Fn,Ei,Dt])};function dt(Bn){var be=Ae.useRef();be.current=Bn;var Mi=Ae.useCallback(function(){return be.current.apply(be,arguments)},[]);return Mi}function Ze(Bn,be){var Mi=be.id,Ei=be.pId,Dt=be.rootPId,En={},Fn=[],Jn=Bn.map(function(wn){var Nn=(0,Ue.Z)({},wn),ct=Nn[Mi];return En[ct]=Nn,Nn.key=Nn.key||ct,Nn});return Jn.forEach(function(wn){var Nn=wn[Ei],ct=En[Nn];ct&&(ct.children=ct.children||[],ct.children.push(wn)),(Nn===Dt||!ct&&Dt===null)&&Fn.push(wn)}),Fn}function Zt(Bn,be,Mi){return Ae.useMemo(function(){return Bn?Mi?Ze(Bn,(0,Ue.Z)({id:"id",pId:"pId",rootPId:null},Mi!==!0?Mi:{})):Bn:Ie(be)},[be,Mi,Bn])}var yt=Ae.createContext(null),an=yt,Gt=ye(10228),Vt=ye(80547),hn=ye(43858),yn=Ae.createContext(null),vt=yn;function je(Bn){return Array.isArray(Bn)?Bn:Bn!==void 0?[Bn]:[]}function wt(Bn){var be=Bn||{},Mi=be.label,Ei=be.value,Dt=be.children,En=Ei||"value";return{_title:Mi?[Mi]:["title","label"],value:En,key:En,children:Dt||"children"}}function tn(Bn){return!Bn||Bn.disabled||Bn.disableCheckbox||Bn.checkable===!1}function bn(Bn,be){var Mi=[];function Ei(Dt){Dt.forEach(function(En){var Fn=En[be.children];Fn&&(Mi.push(En[be.value]),Ei(Fn))})}return Ei(Bn),Mi}function Ft(Bn){return Bn==null}var Xt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Cn=function(be,Mi){var Ei=(0,Lt.lk)(),Dt=Ei.prefixCls,En=Ei.multiple,Fn=Ei.searchValue,Jn=Ei.toggleOpen,wn=Ei.open,Nn=Ei.notFoundContent,ct=Ae.useContext(vt),Pt=ct.virtual,Re=ct.listHeight,Tt=ct.listItemHeight,_t=ct.treeData,ht=ct.fieldNames,Ye=ct.onSelect,Wt=ct.dropdownMatchSelectWidth,Ut=ct.treeExpandAction,fn=Ae.useContext(an),Dn=fn.checkable,at=fn.checkedKeys,ln=fn.halfCheckedKeys,Hn=fn.treeExpandedKeys,ii=fn.treeDefaultExpandAll,jt=fn.treeDefaultExpandedKeys,sn=fn.onTreeExpand,It=fn.treeIcon,on=fn.showTreeIcon,qt=fn.switcherIcon,en=fn.treeLine,xn=fn.treeNodeFilterProp,Pn=fn.loadData,An=fn.treeLoadedKeys,Wn=fn.treeMotion,pi=fn.onTreeLoad,Yt=fn.keyEntities,bi=Ae.useRef(),Di=(0,Vt.Z)(function(){return _t},[wn,_t],function(Zi,yo){return yo[0]&&Zi[1]!==yo[1]}),ki=Ae.useState(null),nn=(0,Je.Z)(ki,2),Xn=nn[0],fi=nn[1],wi=Yt[Xn],gi=Ae.useMemo(function(){return Dn?{checked:at,halfChecked:ln}:null},[Dn,at,ln]);Ae.useEffect(function(){if(wn&&!En&&at.length){var Zi;(Zi=bi.current)===null||Zi===void 0||Zi.scrollTo({key:at[0]}),fi(at[0])}},[wn]);var Bi=String(Fn).toLowerCase(),Ki=function(yo){return Bi?String(yo[xn]).toLowerCase().includes(Bi):!1},ji=Ae.useState(jt),Pi=(0,Je.Z)(ji,2),Vi=Pi[0],Ln=Pi[1],So=Ae.useState(null),Mn=(0,Je.Z)(So,2),ro=Mn[0],No=Mn[1],_i=Ae.useMemo(function(){return Hn?(0,At.Z)(Hn):Fn?ro:Vi},[Vi,ro,Hn,Fn]);Ae.useEffect(function(){Fn&&No(bn(_t,ht))},[Fn]);var Go=function(yo){Ln(yo),No(yo),sn&&sn(yo)},ko=function(yo){yo.preventDefault()},Ii=function(yo,di){var Ke=di.node;Dn&&tn(Ke)||(Ye(Ke.key,{selected:!at.includes(Ke.key)}),En||Jn(!1))};if(Ae.useImperativeHandle(Mi,function(){var Zi;return{scrollTo:(Zi=bi.current)===null||Zi===void 0?void 0:Zi.scrollTo,onKeyDown:function(di){var Ke,Do=di.which;switch(Do){case Gt.Z.UP:case Gt.Z.DOWN:case Gt.Z.LEFT:case Gt.Z.RIGHT:(Ke=bi.current)===null||Ke===void 0||Ke.onKeyDown(di);break;case Gt.Z.ENTER:{if(wi){var nr=(wi==null?void 0:wi.node)||{},xo=nr.selectable,hr=nr.value;xo!==!1&&Ii(null,{node:{key:Xn},selected:!at.includes(hr)})}break}case Gt.Z.ESC:Jn(!1)}},onKeyUp:function(){}}}),Di.length===0)return Ae.createElement("div",{role:"listbox",className:"".concat(Dt,"-empty"),onMouseDown:ko},Nn);var Ai={fieldNames:ht};return An&&(Ai.loadedKeys=An),_i&&(Ai.expandedKeys=_i),Ae.createElement("div",{onMouseDown:ko},wi&&wn&&Ae.createElement("span",{style:Xt,"aria-live":"assertive"},wi.node.value),Ae.createElement(hn.Z,(0,tt.Z)({ref:bi,focusable:!1,prefixCls:"".concat(Dt,"-tree"),treeData:Di,height:Re,itemHeight:Tt,virtual:Pt!==!1&&Wt!==!1,multiple:En,icon:It,showIcon:on,switcherIcon:qt,showLine:en,loadData:Fn?null:Pn,motion:Wn,activeKey:Xn,checkable:Dn,checkStrictly:!0,checkedKeys:gi,selectedKeys:Dn?[]:at,defaultExpandAll:ii},Ai,{onActiveChange:fi,onSelect:Ii,onCheck:Ii,onExpand:Go,onLoad:pi,filterTreeNode:Ki,expandAction:Ut})))},Qn=Ae.forwardRef(Cn);Qn.displayName="OptionList";var gn=Qn,Gn="SHOW_ALL",bt="SHOW_PARENT",zn="SHOW_CHILD";function ai(Bn,be,Mi,Ei){var Dt=new Set(Bn);return be===zn?Bn.filter(function(En){var Fn=Mi[En];return!(Fn&&Fn.children&&Fn.children.some(function(Jn){var wn=Jn.node;return Dt.has(wn[Ei.value])})&&Fn.children.every(function(Jn){var wn=Jn.node;return tn(wn)||Dt.has(wn[Ei.value])}))}):be===bt?Bn.filter(function(En){var Fn=Mi[En],Jn=Fn?Fn.parent:null;return!(Jn&&!tn(Jn.node)&&Dt.has(Jn.key))}):Bn}function He(Bn){var be=Bn.searchPlaceholder,Mi=Bn.treeCheckStrictly,Ei=Bn.treeCheckable,Dt=Bn.labelInValue,En=Bn.value,Fn=Bn.multiple;warning(!be,"`searchPlaceholder` has been removed."),Mi&&Dt===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Dt||Mi)&&warning(toArray(En).every(function(Jn){return Jn&&_typeof(Jn)==="object"&&"value"in Jn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Mi||Fn||Ei?warning(!En||Array.isArray(En),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(En),"`value` should not be array when `TreeSelect` is single mode.")}var Le=null,xe=["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 Ne(Bn){return!Bn||(0,Ot.Z)(Bn)!=="object"}var De=Ae.forwardRef(function(Bn,be){var Mi=Bn.id,Ei=Bn.prefixCls,Dt=Ei===void 0?"rc-tree-select":Ei,En=Bn.value,Fn=Bn.defaultValue,Jn=Bn.onChange,wn=Bn.onSelect,Nn=Bn.onDeselect,ct=Bn.searchValue,Pt=Bn.inputValue,Re=Bn.onSearch,Tt=Bn.autoClearSearchValue,_t=Tt===void 0?!0:Tt,ht=Bn.filterTreeNode,Ye=Bn.treeNodeFilterProp,Wt=Ye===void 0?"value":Ye,Ut=Bn.showCheckedStrategy,fn=Bn.treeNodeLabelProp,Dn=Bn.multiple,at=Bn.treeCheckable,ln=Bn.treeCheckStrictly,Hn=Bn.labelInValue,ii=Bn.fieldNames,jt=Bn.treeDataSimpleMode,sn=Bn.treeData,It=Bn.children,on=Bn.loadData,qt=Bn.treeLoadedKeys,en=Bn.onTreeLoad,xn=Bn.treeDefaultExpandAll,Pn=Bn.treeExpandedKeys,An=Bn.treeDefaultExpandedKeys,Wn=Bn.onTreeExpand,pi=Bn.treeExpandAction,Yt=Bn.virtual,bi=Bn.listHeight,Di=bi===void 0?200:bi,ki=Bn.listItemHeight,nn=ki===void 0?20:ki,Xn=Bn.onDropdownVisibleChange,fi=Bn.dropdownMatchSelectWidth,wi=fi===void 0?!0:fi,gi=Bn.treeLine,Bi=Bn.treeIcon,Ki=Bn.showTreeIcon,ji=Bn.switcherIcon,Pi=Bn.treeMotion,Vi=(0,ke.Z)(Bn,xe),Ln=(0,ot.ZP)(Mi),So=at&&!ln,Mn=at||ln,ro=ln||Hn,No=Mn||Dn,_i=(0,xt.Z)(Fn,{value:En}),Go=(0,Je.Z)(_i,2),ko=Go[0],Ii=Go[1],Ai=Ae.useMemo(function(){return at?Ut||zn:Gn},[Ut,at]),Zi=Ae.useMemo(function(){return wt(ii)},[JSON.stringify(ii)]),yo=(0,xt.Z)("",{value:ct!==void 0?ct:Pt,postState:function(lo){return lo||""}}),di=(0,Je.Z)(yo,2),Ke=di[0],Do=di[1],nr=function(lo){Do(lo),Re==null||Re(lo)},xo=Zt(sn,It,jt),hr=se(xo,Zi),Qo=hr.keyEntities,$i=hr.valueEntities,ao=Ae.useCallback(function(Ro){var lo=[],Ko=[];return Ro.forEach(function(Wr){$i.has(Wr)?Ko.push(Wr):lo.push(Wr)}),{missingRawValues:lo,existRawValues:Ko}},[$i]),jo=Xe(xo,Ke,{fieldNames:Zi,treeNodeFilterProp:Wt,filterTreeNode:ht}),Lo=Ae.useCallback(function(Ro){if(Ro){if(fn)return Ro[fn];for(var lo=Zi._title,Ko=0;Ko<lo.length;Ko+=1){var Wr=Ro[lo[Ko]];if(Wr!==void 0)return Wr}}},[Zi,fn]),dr=Ae.useCallback(function(Ro){var lo=je(Ro);return lo.map(function(Ko){return Ne(Ko)?{value:Ko}:Ko})},[]),Pr=Ae.useCallback(function(Ro){var lo=dr(Ro);return lo.map(function(Ko){var Wr=Ko.label,no=Ko.value,Io=Ko.halfChecked,Fo,vi=$i.get(no);if(vi){var Zr;Wr=(Zr=Wr)!==null&&Zr!==void 0?Zr:Lo(vi.node),Fo=vi.node.disabled}else if(Wr===void 0){var Yr=dr(ko).find(function(qa){return qa.value===no});Wr=Yr.label}return{label:Wr,value:no,halfChecked:Io,disabled:Fo}})},[$i,Lo,dr,ko]),Yi=Ae.useMemo(function(){return dr(ko)},[dr,ko]),Qi=Ae.useMemo(function(){var Ro=[],lo=[];return Yi.forEach(function(Ko){Ko.halfChecked?lo.push(Ko):Ro.push(Ko)}),[Ro,lo]},[Yi]),ti=(0,Je.Z)(Qi,2),io=ti[0],ir=ti[1],Ir=Ae.useMemo(function(){return io.map(function(Ro){return Ro.value})},[io]),mr=ne(io,ir,So,Qo),er=(0,Je.Z)(mr,2),Lr=er[0],Ar=er[1],ra=Ae.useMemo(function(){var Ro=ai(Lr,Ai,Qo,Zi),lo=Ro.map(function(Io){var Fo,vi,Zr;return(Fo=(vi=Qo[Io])===null||vi===void 0||(Zr=vi.node)===null||Zr===void 0?void 0:Zr[Zi.value])!==null&&Fo!==void 0?Fo:Io}),Ko=lo.map(function(Io){var Fo=io.find(function(vi){return vi.value===Io});return{value:Io,label:Fo==null?void 0:Fo.label}}),Wr=Pr(Ko),no=Wr[0];return!No&&no&&Ft(no.value)&&Ft(no.label)?[]:Wr.map(function(Io){var Fo;return(0,Ue.Z)((0,Ue.Z)({},Io),{},{label:(Fo=Io.label)!==null&&Fo!==void 0?Fo:Io.value})})},[Zi,No,Lr,io,Pr,Ai,Qo]),ua=te(ra),wa=(0,Je.Z)(ua,1),vn=wa[0],ia=dt(function(Ro,lo,Ko){var Wr=Pr(Ro);if(Ii(Wr),_t&&Do(""),Jn){var no=Ro;if(So){var Io=ai(Ro,Ai,Qo,Zi);no=Io.map(function(_r){var es=$i.get(_r);return es?es.node[Zi.value]:_r})}var Fo=lo||{triggerValue:void 0,selected:void 0},vi=Fo.triggerValue,Zr=Fo.selected,Yr=no;if(ln){var qa=ir.filter(function(_r){return!no.includes(_r.value)});Yr=[].concat((0,At.Z)(Yr),(0,At.Z)(qa))}var bs=Pr(Yr),vs={preValue:io,triggerValue:vi},xi=!0;(ln||Ko==="selection"&&!Zr)&&(xi=!1),nt(vs,vi,Ro,xo,xi,Zi),Mn?vs.checked=Zr:vs.selected=Zr;var Jr=ro?bs:bs.map(function(_r){return _r.value});Jn(No?Jr:Jr[0],ro?null:bs.map(function(_r){return _r.label}),vs)}}),Us=Ae.useCallback(function(Ro,lo){var Ko,Wr=lo.selected,no=lo.source,Io=Qo[Ro],Fo=Io==null?void 0:Io.node,vi=(Ko=Fo==null?void 0:Fo[Zi.value])!==null&&Ko!==void 0?Ko:Ro;if(!No)ia([vi],{selected:!0,triggerValue:vi},"option");else{var Zr=Wr?[].concat((0,At.Z)(Ir),[vi]):Lr.filter(function(es){return es!==vi});if(So){var Yr=ao(Zr),qa=Yr.missingRawValues,bs=Yr.existRawValues,vs=bs.map(function(es){return $i.get(es).key}),xi;if(Wr){var Jr=(0,Rt.S)(vs,!0,Qo);xi=Jr.checkedKeys}else{var _r=(0,Rt.S)(vs,{checked:!1,halfCheckedKeys:Ar},Qo);xi=_r.checkedKeys}Zr=[].concat((0,At.Z)(qa),(0,At.Z)(xi.map(function(es){return Qo[es].node[Zi.value]})))}ia(Zr,{selected:Wr,triggerValue:vi},no||"option")}Wr||!No?wn==null||wn(vi,We(Fo)):Nn==null||Nn(vi,We(Fo))},[ao,$i,Qo,Zi,No,Ir,ia,So,wn,Nn,Lr,Ar]),us=Ae.useCallback(function(Ro){if(Xn){var lo={};Object.defineProperty(lo,"documentClickClose",{get:function(){return(0,zt.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Xn(Ro,lo)}},[Xn]),xr=dt(function(Ro,lo){var Ko=Ro.map(function(Wr){return Wr.value});if(lo.type==="clear"){ia(Ko,{},"selection");return}lo.values.length&&Us(lo.values[0].value,{selected:!1,source:"selection"})}),or=Ae.useMemo(function(){return{virtual:Yt,dropdownMatchSelectWidth:wi,listHeight:Di,listItemHeight:nn,treeData:jo,fieldNames:Zi,onSelect:Us,treeExpandAction:pi}},[Yt,wi,Di,nn,jo,Zi,Us,pi]),da=Ae.useMemo(function(){return{checkable:Mn,loadData:on,treeLoadedKeys:qt,onTreeLoad:en,checkedKeys:Lr,halfCheckedKeys:Ar,treeDefaultExpandAll:xn,treeExpandedKeys:Pn,treeDefaultExpandedKeys:An,onTreeExpand:Wn,treeIcon:Bi,treeMotion:Pi,showTreeIcon:Ki,switcherIcon:ji,treeLine:gi,treeNodeFilterProp:Wt,keyEntities:Qo}},[Mn,on,qt,en,Lr,Ar,xn,Pn,An,Wn,Bi,Pi,Ki,ji,gi,Wt,Qo]);return Ae.createElement(vt.Provider,{value:or},Ae.createElement(an.Provider,{value:da},Ae.createElement(Lt.Ac,(0,tt.Z)({ref:be},Vi,{id:Ln,prefixCls:Dt,mode:No?"multiple":void 0,displayValues:vn,onDisplayValuesChange:xr,searchValue:Ke,onSearch:nr,OptionList:gn,emptyOptions:!xo.length,onDropdownVisibleChange:us,dropdownMatchSelectWidth:wi}))))}),ve=De;ve.TreeNode=Fe,ve.SHOW_ALL=Gn,ve.SHOW_PARENT=bt,ve.SHOW_CHILD=zn;var $e=ve,mt=$e,et=ye(2738),Ve=ye(53487),gt=ye(62892),ft=ye(19080),rt=ye(36355),Mt=ye(1684),pn=ye(93891),dn=ye(19716),Jt=ye(32441),Rn=ye(14154),Tn=ye(58582),Et=ye(84443),cn=ye(66339),On=ye(33234),Ct=ye(71997),_n=ye(98447),ui=ye(37613),Ci=ye(83116),ci=ye(20648);const Hi=Bn=>{const{componentCls:be,treePrefixCls:Mi,colorBgElevated:Ei}=Bn,Dt=`.${Mi}`;return[{[`${be}-dropdown`]:[{padding:`${Bn.paddingXS}px ${Bn.paddingXS/2}px`},(0,ci.Yk)(Mi,(0,ui.TS)(Bn,{colorBgContainer:Ei})),{[Dt]:{borderRadius:0,[`${Dt}-list-holder-inner`]:{alignItems:"stretch",[`${Dt}-treenode`]:{[`${Dt}-node-content-wrapper`]:{flex:"auto"}}}}},(0,_n.C2)(`${Mi}-checkbox`,Bn),{"&-rtl":{direction:"rtl",[`${Dt}-switcher${Dt}-switcher_close`]:{[`${Dt}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function qi(Bn,be){return(0,Ci.Z)("TreeSelect",Mi=>{const Ei=(0,ui.TS)(Mi,{treePrefixCls:be});return[Hi(Ei)]},ci.TM)(Bn)}var Xi=function(Bn,be){var Mi={};for(var Ei in Bn)Object.prototype.hasOwnProperty.call(Bn,Ei)&&be.indexOf(Ei)<0&&(Mi[Ei]=Bn[Ei]);if(Bn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Ei=Object.getOwnPropertySymbols(Bn);Dt<Ei.length;Dt++)be.indexOf(Ei[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Bn,Ei[Dt])&&(Mi[Ei[Dt]]=Bn[Ei[Dt]]);return Mi};const eo=(Bn,be)=>{var Mi,{prefixCls:Ei,size:Dt,disabled:En,bordered:Fn=!0,className:Jn,rootClassName:wn,treeCheckable:Nn,multiple:ct,listHeight:Pt=256,listItemHeight:Re=26,placement:Tt,notFoundContent:_t,switcherIcon:ht,treeLine:Ye,getPopupContainer:Wt,popupClassName:Ut,dropdownClassName:fn,treeIcon:Dn=!1,transitionName:at,choiceTransitionName:ln="",status:Hn,treeExpandAction:ii,builtinPlacements:jt,dropdownMatchSelectWidth:sn,popupMatchSelectWidth:It,allowClear:on}=Bn,qt=Xi(Bn,["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:en,getPrefixCls:xn,renderEmpty:Pn,direction:An,virtual:Wn,popupMatchSelectWidth:pi,popupOverflow:Yt}=Ae.useContext(rt.E_),bi=xn(),Di=xn("select",Ei),ki=xn("select-tree",Ei),nn=xn("tree-select",Ei),{compactSize:Xn,compactItemClassnames:fi}=(0,On.ri)(Di,An),[wi,gi]=(0,Rn.Z)(Di),[Bi]=qi(nn,ki),Ki=Oe()(Ut||fn,`${nn}-dropdown`,{[`${nn}-dropdown-rtl`]:An==="rtl"},wn,gi),ji=!!(Nn||ct),Pi=(0,Et.Z)(qt.suffixIcon,qt.showArrow),Vi=(Mi=It!=null?It:sn)!==null&&Mi!==void 0?Mi:pi,{status:Ln,hasFeedback:So,isFormItemInput:Mn,feedbackIcon:ro}=Ae.useContext(Jt.aM),No=(0,ft.F)(Ln,Hn),{suffixIcon:_i,removeIcon:Go,clearIcon:ko}=(0,cn.Z)(Object.assign(Object.assign({},qt),{multiple:ji,showSuffixIcon:Pi,hasFeedback:So,feedbackIcon:ro,prefixCls:Di,componentName:"TreeSelect"})),Ii=on===!0?{clearIcon:ko}:on;let Ai;_t!==void 0?Ai=_t:Ai=(Pn==null?void 0:Pn("Select"))||Ae.createElement(pn.Z,{componentName:"Select"});const Zi=(0,et.Z)(qt,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),yo=Ae.useMemo(()=>Tt!==void 0?Tt:An==="rtl"?"bottomRight":"bottomLeft",[Tt,An]),di=(0,Tn.Z)(jt,Yt),Ke=(0,dn.Z)($i=>{var ao;return(ao=Dt!=null?Dt:Xn)!==null&&ao!==void 0?ao:$i}),Do=Ae.useContext(Mt.Z),nr=En!=null?En:Do,xo=Oe()(!Ei&&nn,{[`${Di}-lg`]:Ke==="large",[`${Di}-sm`]:Ke==="small",[`${Di}-rtl`]:An==="rtl",[`${Di}-borderless`]:!Fn,[`${Di}-in-form-item`]:Mn},(0,ft.Z)(Di,No,So),fi,Jn,wn,gi),hr=$i=>Ae.createElement(Ct.Z,{prefixCls:ki,switcherIcon:ht,treeNodeProps:$i,showLine:Ye}),Qo=Ae.createElement(mt,Object.assign({virtual:Wn,disabled:nr},Zi,{dropdownMatchSelectWidth:Vi,builtinPlacements:di,ref:be,prefixCls:Di,className:xo,listHeight:Pt,listItemHeight:Re,treeCheckable:Nn&&Ae.createElement("span",{className:`${Di}-tree-checkbox-inner`}),treeLine:!!Ye,suffixIcon:_i,multiple:ji,placement:yo,removeIcon:Go,allowClear:Ii,switcherIcon:hr,showTreeIcon:Dn,notFoundContent:Ai,getPopupContainer:Wt||en,treeMotion:null,dropdownClassName:Ki,choiceTransitionName:(0,gt.m)(bi,"",ln),transitionName:(0,gt.m)(bi,"slide-up",at),treeExpandAction:ii}));return wi(Bi(Qo))},vo=Ae.forwardRef(eo),Ri=(0,Ve.Z)(vo);vo.TreeNode=Fe,vo.SHOW_ALL=Gn,vo.SHOW_PARENT=bt,vo.SHOW_CHILD=zn,vo._InternalPanelDoNotUseOrYouWillBeFired=Ri;var Co=vo},17574:function(Kn,kn,ye){"use strict";ye.d(kn,{default:function(){return vt}});var Ce=ye(43858),Oe=ye(19127),tt=ye(52671),At=ye(8657),Ue=ye(96663),Je=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"},Ot=ke,Lt=ye(7657),ot=function(wt,tn){return Je.createElement(Lt.Z,(0,Ue.Z)({},wt,{ref:tn,icon:Ot}))},Rt=Je.forwardRef(ot),xt=Rt,zt=ye(92310),Ae=ye.n(zt),te=ye(35654),ne=ye(71430),he=ye(36355),se=ye(56082),ge=ye(62892),me=ye(20648);const we=4;function Fe(je){const{dropPosition:wt,dropLevelOffset:tn,prefixCls:bn,indent:Ft,direction:Xt="ltr"}=je,Cn=Xt==="ltr"?"left":"right",Qn=Xt==="ltr"?"right":"left",gn={[Cn]:-tn*Ft+we,[Qn]:0};switch(wt){case-1:gn.top=-3;break;case 1:gn.bottom=-3;break;default:gn.bottom=-3,gn[Cn]=Ft+we;break}return Je.createElement("div",{style:gn,className:`${bn}-drop-indicator`})}var Be=ye(71997),We=Je.forwardRef((je,wt)=>{const{getPrefixCls:tn,direction:bn,virtual:Ft,tree:Xt}=Je.useContext(he.E_),{prefixCls:Cn,className:Qn,showIcon:gn=!1,showLine:Gn,switcherIcon:bt,blockNode:zn=!1,children:ai,checkable:He=!1,selectable:Le=!0,draggable:xe,motion:Ne,style:De}=je,ve=tn("tree",Cn),$e=tn(),mt=Ne!=null?Ne:Object.assign(Object.assign({},(0,ge.Z)($e)),{motionAppear:!1}),et=Object.assign(Object.assign({},je),{checkable:He,selectable:Le,showIcon:gn,motion:mt,blockNode:zn,showLine:!!Gn,dropIndicatorRender:Fe}),[Ve,gt]=(0,me.ZP)(ve),ft=Je.useMemo(()=>{if(!xe)return!1;let Mt={};switch(typeof xe){case"function":Mt.nodeDraggable=xe;break;case"object":Mt=Object.assign({},xe);break;default:break}return Mt.icon!==!1&&(Mt.icon=Mt.icon||Je.createElement(se.Z,null)),Mt},[xe]),rt=Mt=>Je.createElement(Be.Z,{prefixCls:ve,switcherIcon:bt,treeNodeProps:Mt,showLine:Gn});return Ve(Je.createElement(Ce.Z,Object.assign({itemHeight:20,ref:wt,virtual:Ft},et,{style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),De),prefixCls:ve,className:Ae()({[`${ve}-icon-hide`]:!gn,[`${ve}-block-node`]:zn,[`${ve}-unselectable`]:!Le,[`${ve}-rtl`]:bn==="rtl"},Xt==null?void 0:Xt.className,Qn,gt),direction:bn,checkable:He&&Je.createElement("span",{className:`${ve}-checkbox-inner`}),selectable:Le,switcherIcon:rt,draggable:ft}),ai))}),nt;(function(je){je[je.None=0]="None",je[je.Start=1]="Start",je[je.End=2]="End"})(nt||(nt={}));function Xe(je,wt){function tn(bn){const{key:Ft,children:Xt}=bn;wt(Ft,bn)!==!1&&Xe(Xt||[],wt)}je.forEach(tn)}function dt(je){let{treeData:wt,expandedKeys:tn,startKey:bn,endKey:Ft}=je;const Xt=[];let Cn=nt.None;if(bn&&bn===Ft)return[bn];if(!bn||!Ft)return[];function Qn(gn){return gn===bn||gn===Ft}return Xe(wt,gn=>{if(Cn===nt.End)return!1;if(Qn(gn)){if(Xt.push(gn),Cn===nt.None)Cn=nt.Start;else if(Cn===nt.Start)return Cn=nt.End,!1}else Cn===nt.Start&&Xt.push(gn);return tn.includes(gn)}),Xt}function Ze(je,wt){const tn=(0,Oe.Z)(wt),bn=[];return Xe(je,(Ft,Xt)=>{const Cn=tn.indexOf(Ft);return Cn!==-1&&(bn.push(Xt),tn.splice(Cn,1)),!!tn.length}),bn}var Zt=function(je,wt){var tn={};for(var bn in je)Object.prototype.hasOwnProperty.call(je,bn)&&wt.indexOf(bn)<0&&(tn[bn]=je[bn]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,bn=Object.getOwnPropertySymbols(je);Ft<bn.length;Ft++)wt.indexOf(bn[Ft])<0&&Object.prototype.propertyIsEnumerable.call(je,bn[Ft])&&(tn[bn[Ft]]=je[bn[Ft]]);return tn};function yt(je){const{isLeaf:wt,expanded:tn}=je;return wt?Je.createElement(tt.Z,null):tn?Je.createElement(At.Z,null):Je.createElement(xt,null)}function an(je){let{treeData:wt,children:tn}=je;return wt||(0,ne.zn)(tn)}const Gt=(je,wt)=>{var{defaultExpandAll:tn,defaultExpandParent:bn,defaultExpandedKeys:Ft}=je,Xt=Zt(je,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Cn=Je.useRef(),Qn=Je.useRef(),gn=()=>{const{keyEntities:ft}=(0,ne.I8)(an(Xt));let rt;return tn?rt=Object.keys(ft):bn?rt=(0,te.r7)(Xt.expandedKeys||Ft||[],ft):rt=Xt.expandedKeys||Ft,rt},[Gn,bt]=Je.useState(Xt.selectedKeys||Xt.defaultSelectedKeys||[]),[zn,ai]=Je.useState(()=>gn());Je.useEffect(()=>{"selectedKeys"in Xt&&bt(Xt.selectedKeys)},[Xt.selectedKeys]),Je.useEffect(()=>{"expandedKeys"in Xt&&ai(Xt.expandedKeys)},[Xt.expandedKeys]);const He=(ft,rt)=>{var Mt;return"expandedKeys"in Xt||ai(ft),(Mt=Xt.onExpand)===null||Mt===void 0?void 0:Mt.call(Xt,ft,rt)},Le=(ft,rt)=>{var Mt;const{multiple:pn}=Xt,{node:dn,nativeEvent:Jt}=rt,{key:Rn=""}=dn,Tn=an(Xt),Et=Object.assign(Object.assign({},rt),{selected:!0}),cn=(Jt==null?void 0:Jt.ctrlKey)||(Jt==null?void 0:Jt.metaKey),On=Jt==null?void 0:Jt.shiftKey;let Ct;pn&&cn?(Ct=ft,Cn.current=Rn,Qn.current=Ct,Et.selectedNodes=Ze(Tn,Ct)):pn&&On?(Ct=Array.from(new Set([].concat((0,Oe.Z)(Qn.current||[]),(0,Oe.Z)(dt({treeData:Tn,expandedKeys:zn,startKey:Rn,endKey:Cn.current}))))),Et.selectedNodes=Ze(Tn,Ct)):(Ct=[Rn],Cn.current=Rn,Qn.current=Ct,Et.selectedNodes=Ze(Tn,Ct)),(Mt=Xt.onSelect)===null||Mt===void 0||Mt.call(Xt,Ct,Et),"selectedKeys"in Xt||bt(Ct)},{getPrefixCls:xe,direction:Ne}=Je.useContext(he.E_),{prefixCls:De,className:ve,showIcon:$e=!0,expandAction:mt="click"}=Xt,et=Zt(Xt,["prefixCls","className","showIcon","expandAction"]),Ve=xe("tree",De),gt=Ae()(`${Ve}-directory`,{[`${Ve}-directory-rtl`]:Ne==="rtl"},ve);return Je.createElement(We,Object.assign({icon:yt,ref:wt,blockNode:!0},et,{showIcon:$e,expandAction:mt,prefixCls:Ve,className:gt,expandedKeys:zn,selectedKeys:Gn,onSelect:Le,onExpand:He}))};var hn=Je.forwardRef(Gt);const yn=We;yn.DirectoryTree=hn,yn.TreeNode=Ce.O;var vt=yn},20648:function(Kn,kn,ye){"use strict";ye.d(kn,{TM:function(){return zt},Yk:function(){return xt}});var Ce=ye(93083),Oe=ye(98447),tt=ye(17313),At=ye(8378),Ue=ye(37613),Je=ye(83116);const ke=new Ce.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ot=(Ae,te)=>({[`.${Ae}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${te.motionDurationSlow}`}}}),Lt=(Ae,te)=>({[`.${Ae}-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:'""'}}}),ot=(Ae,te)=>{const{treeCls:ne,treeNodeCls:he,treeNodePadding:se,titleHeight:ge,nodeSelectedBg:me,nodeHoverBg:we}=te,Fe=te.paddingXS;return{[ne]:Object.assign(Object.assign({},(0,tt.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,tt.oN)(te)),[`${ne}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ne}-block-node`]:{[`${ne}-list-holder-inner`]:{alignItems:"stretch",[`${ne}-node-content-wrapper`]:{flex:"auto"},[`${he}.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"}}}},[`${he}`]:{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,tt.oN)(te)),[`&:not(${he}-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}`,[`${he}:hover &`]:{opacity:.45}},[`&${he}-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({},Ot(Ae,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:we},[`&${ne}-node-selected`]:{backgroundColor:me},[`${ne}-iconEle`]:{display:"inline-block",width:ge,height:ge,lineHeight:`${ge}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ne}-unselectable ${ne}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ne}-node-content-wrapper`]:Object.assign({lineHeight:`${ge}px`,userSelect:"none"},Lt(Ae,te)),[`${he}.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"}}},[`${he}-leaf-last`]:{[`${ne}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ge/2}px !important`}}}}})}},Rt=Ae=>{const{treeCls:te,treeNodeCls:ne,treeNodePadding:he,directoryNodeSelectedBg:se,directoryNodeSelectedColor:ge}=Ae;return{[`${te}${te}-directory`]:{[ne]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:he,insetInlineStart:0,transition:`background-color ${Ae.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ae.controlItemBgHover}},"> *":{zIndex:1},[`${te}-switcher`]:{transition:`color ${Ae.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"}}}}}},xt=(Ae,te)=>{const ne=`.${Ae}`,he=`${ne}-treenode`,se=te.paddingXS/2,ge=(0,Ue.TS)(te,{treeCls:ne,treeNodeCls:he,treeNodePadding:se});return[ot(Ae,ge),Rt(ge)]},zt=Ae=>{const{controlHeightSM:te}=Ae;return{titleHeight:te,nodeHoverBg:Ae.controlItemBgHover,nodeSelectedBg:Ae.controlItemBgActive}};kn.ZP=(0,Je.Z)("Tree",(Ae,te)=>{let{prefixCls:ne}=te;return[{[Ae.componentCls]:(0,Oe.C2)(`${ne}-checkbox`,Ae)},xt(ne,Ae),(0,At.Z)(Ae)]},Ae=>{const{colorTextLightSolid:te,colorPrimary:ne}=Ae;return Object.assign(Object.assign({},zt(Ae)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:ne})})},71997:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return he}});var Ce=ye(96663),Oe=ye(59301),tt={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"},At=tt,Ue=ye(7657),Je=function(ge,me){return Oe.createElement(Ue.Z,(0,Ce.Z)({},ge,{ref:me,icon:At}))},ke=Oe.forwardRef(Je),Ot=ke,Lt=ye(52671),ot=ye(58617),Rt=ye(15075),xt=ye(43531),zt=ye(92310),Ae=ye.n(zt),te=ye(92343),he=se=>{const{prefixCls:ge,switcherIcon:me,treeNodeProps:we,showLine:Fe}=se,{isLeaf:Be,expanded:Ie,loading:We}=we;if(We)return Oe.createElement(ot.Z,{className:`${ge}-switcher-loading-icon`});let nt;if(Fe&&typeof Fe=="object"&&(nt=Fe.showLeafIcon),Be){if(!Fe)return null;if(typeof nt!="boolean"&&nt){const Ze=typeof nt=="function"?nt(we):nt,Zt=`${ge}-switcher-line-custom-icon`;return(0,te.l$)(Ze)?(0,te.Tm)(Ze,{className:Ae()(Ze.props.className||"",Zt)}):Ze}return nt?Oe.createElement(Lt.Z,{className:`${ge}-switcher-line-icon`}):Oe.createElement("span",{className:`${ge}-switcher-leaf-line`})}const Xe=`${ge}-switcher-icon`,dt=typeof me=="function"?me(we):me;return(0,te.l$)(dt)?(0,te.Tm)(dt,{className:Ae()(dt.props.className||"",Xe)}):dt!==void 0?dt:Fe?Ie?Oe.createElement(Rt.Z,{className:`${ge}-switcher-line-icon`}):Oe.createElement(xt.Z,{className:`${ge}-switcher-line-icon`}):Oe.createElement(Ot,{className:Xe})}},54580:function(Kn,kn,ye){"use strict";ye.d(kn,{default:function(){return sn}});var Ce=ye(59301),Oe=ye(19127),tt=ye(92310),At=ye.n(tt),Ue=ye(96663),Je=ye(52884),ke=ye(95727),Ot=ye(65711),Lt=ye(85745),ot=ye(90493),Rt=ye(6620),xt=ye(49581),zt=ye(20135),Ae=ye(73324),te=ye(26112);function ne(It,on){var qt="cannot ".concat(It.method," ").concat(It.action," ").concat(on.status,"'"),en=new Error(qt);return en.status=on.status,en.method=It.method,en.url=It.action,en}function he(It){var on=It.responseText||It.response;if(!on)return on;try{return JSON.parse(on)}catch(qt){return on}}function se(It){var on=new XMLHttpRequest;It.onProgress&&on.upload&&(on.upload.onprogress=function(Pn){Pn.total>0&&(Pn.percent=Pn.loaded/Pn.total*100),It.onProgress(Pn)});var qt=new FormData;It.data&&Object.keys(It.data).forEach(function(xn){var Pn=It.data[xn];if(Array.isArray(Pn)){Pn.forEach(function(An){qt.append("".concat(xn,"[]"),An)});return}qt.append(xn,Pn)}),It.file instanceof Blob?qt.append(It.filename,It.file,It.file.name):qt.append(It.filename,It.file),on.onerror=function(Pn){It.onError(Pn)},on.onload=function(){return on.status<200||on.status>=300?It.onError(ne(It,on),he(on)):It.onSuccess(he(on),on)},on.open(It.method,It.action,!0),It.withCredentials&&"withCredentials"in on&&(on.withCredentials=!0);var en=It.headers||{};return en["X-Requested-With"]!==null&&on.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(en).forEach(function(xn){en[xn]!==null&&on.setRequestHeader(xn,en[xn])}),on.send(qt),{abort:function(){on.abort()}}}var ge=+new Date,me=0;function we(){return"rc-upload-".concat(ge,"-").concat(++me)}var Fe=ye(48736),Be=function(It,on){if(It&&on){var qt=Array.isArray(on)?on:on.split(","),en=It.name||"",xn=It.type||"",Pn=xn.replace(/\/.*$/,"");return qt.some(function(An){var Wn=An.trim();if(/^\*(\/\*)?$/.test(An))return!0;if(Wn.charAt(0)==="."){var pi=en.toLowerCase(),Yt=Wn.toLowerCase(),bi=[Yt];return(Yt===".jpg"||Yt===".jpeg")&&(bi=[".jpg",".jpeg"]),bi.some(function(Di){return pi.endsWith(Di)})}return/\/\*$/.test(Wn)?Pn===Wn.replace(/\/.*$/,""):xn===Wn?!0:/^\w+$/.test(Wn)?((0,Fe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Wn,"'.Skip for check.")),!0):!1})}return!0};function Ie(It,on){var qt=It.createReader(),en=[];function xn(){qt.readEntries(function(Pn){var An=Array.prototype.slice.apply(Pn);en=en.concat(An);var Wn=!An.length;Wn?on(en):xn()})}xn()}var We=function(on,qt,en){var xn=function Pn(An,Wn){An&&(An.path=Wn||"",An.isFile?An.file(function(pi){en(pi)&&(An.fullPath&&!pi.webkitRelativePath&&(Object.defineProperties(pi,{webkitRelativePath:{writable:!0}}),pi.webkitRelativePath=An.fullPath.replace(/^\//,""),Object.defineProperties(pi,{webkitRelativePath:{writable:!1}})),qt([pi]))}):An.isDirectory&&Ie(An,function(pi){pi.forEach(function(Yt){Pn(Yt,"".concat(Wn).concat(An.name,"/"))})}))};on.forEach(function(Pn){xn(Pn.webkitGetAsEntry())})},nt=We,Xe=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],dt=function(It){(0,Ot.Z)(qt,It);var on=(0,Lt.Z)(qt);function qt(){var en;(0,Je.Z)(this,qt);for(var xn=arguments.length,Pn=new Array(xn),An=0;An<xn;An++)Pn[An]=arguments[An];return en=on.call.apply(on,[this].concat(Pn)),en.state={uid:we()},en.reqs={},en.fileInput=void 0,en._isMounted=void 0,en.onChange=function(Wn){var pi=en.props,Yt=pi.accept,bi=pi.directory,Di=Wn.target.files,ki=(0,Oe.Z)(Di).filter(function(nn){return!bi||Be(nn,Yt)});en.uploadFiles(ki),en.reset()},en.onClick=function(Wn){var pi=en.fileInput;if(pi){var Yt=Wn.target,bi=en.props.onClick;if(Yt&&Yt.tagName==="BUTTON"){var Di=pi.parentNode;Di.focus(),Yt.blur()}pi.click(),bi&&bi(Wn)}},en.onKeyDown=function(Wn){Wn.key==="Enter"&&en.onClick(Wn)},en.onFileDrop=function(Wn){var pi=en.props.multiple;if(Wn.preventDefault(),Wn.type!=="dragover")if(en.props.directory)nt(Array.prototype.slice.call(Wn.dataTransfer.items),en.uploadFiles,function(bi){return Be(bi,en.props.accept)});else{var Yt=(0,Oe.Z)(Wn.dataTransfer.files).filter(function(bi){return Be(bi,en.props.accept)});pi===!1&&(Yt=Yt.slice(0,1)),en.uploadFiles(Yt)}},en.uploadFiles=function(Wn){var pi=(0,Oe.Z)(Wn),Yt=pi.map(function(bi){return bi.uid=we(),en.processFile(bi,pi)});Promise.all(Yt).then(function(bi){var Di=en.props.onBatchStart;Di==null||Di(bi.map(function(ki){var nn=ki.origin,Xn=ki.parsedFile;return{file:nn,parsedFile:Xn}})),bi.filter(function(ki){return ki.parsedFile!==null}).forEach(function(ki){en.post(ki)})})},en.processFile=function(){var Wn=(0,Ae.Z)((0,xt.Z)().mark(function pi(Yt,bi){var Di,ki,nn,Xn,fi,wi,gi,Bi,Ki;return(0,xt.Z)().wrap(function(Pi){for(;;)switch(Pi.prev=Pi.next){case 0:if(Di=en.props.beforeUpload,ki=Yt,!Di){Pi.next=14;break}return Pi.prev=3,Pi.next=6,Di(Yt,bi);case 6:ki=Pi.sent,Pi.next=12;break;case 9:Pi.prev=9,Pi.t0=Pi.catch(3),ki=!1;case 12:if(ki!==!1){Pi.next=14;break}return Pi.abrupt("return",{origin:Yt,parsedFile:null,action:null,data:null});case 14:if(nn=en.props.action,typeof nn!="function"){Pi.next=21;break}return Pi.next=18,nn(Yt);case 18:Xn=Pi.sent,Pi.next=22;break;case 21:Xn=nn;case 22:if(fi=en.props.data,typeof fi!="function"){Pi.next=29;break}return Pi.next=26,fi(Yt);case 26:wi=Pi.sent,Pi.next=30;break;case 29:wi=fi;case 30:return gi=((0,zt.Z)(ki)==="object"||typeof ki=="string")&&ki?ki:Yt,gi instanceof File?Bi=gi:Bi=new File([gi],Yt.name,{type:Yt.type}),Ki=Bi,Ki.uid=Yt.uid,Pi.abrupt("return",{origin:Yt,data:wi,parsedFile:Ki,action:Xn});case 35:case"end":return Pi.stop()}},pi,null,[[3,9]])}));return function(pi,Yt){return Wn.apply(this,arguments)}}(),en.saveFileInput=function(Wn){en.fileInput=Wn},en}return(0,ke.Z)(qt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(xn){var Pn=this,An=xn.data,Wn=xn.origin,pi=xn.action,Yt=xn.parsedFile;if(this._isMounted){var bi=this.props,Di=bi.onStart,ki=bi.customRequest,nn=bi.name,Xn=bi.headers,fi=bi.withCredentials,wi=bi.method,gi=Wn.uid,Bi=ki||se,Ki={action:pi,filename:nn,data:An,file:Yt,headers:Xn,withCredentials:fi,method:wi||"post",onProgress:function(Pi){var Vi=Pn.props.onProgress;Vi==null||Vi(Pi,Yt)},onSuccess:function(Pi,Vi){var Ln=Pn.props.onSuccess;Ln==null||Ln(Pi,Yt,Vi),delete Pn.reqs[gi]},onError:function(Pi,Vi){var Ln=Pn.props.onError;Ln==null||Ln(Pi,Vi,Yt),delete Pn.reqs[gi]}};Di(Wn),this.reqs[gi]=Bi(Ki)}}},{key:"reset",value:function(){this.setState({uid:we()})}},{key:"abort",value:function(xn){var Pn=this.reqs;if(xn){var An=xn.uid?xn.uid:xn;Pn[An]&&Pn[An].abort&&Pn[An].abort(),delete Pn[An]}else Object.keys(Pn).forEach(function(Wn){Pn[Wn]&&Pn[Wn].abort&&Pn[Wn].abort(),delete Pn[Wn]})}},{key:"render",value:function(){var xn=this.props,Pn=xn.component,An=xn.prefixCls,Wn=xn.className,pi=xn.disabled,Yt=xn.id,bi=xn.style,Di=xn.multiple,ki=xn.accept,nn=xn.capture,Xn=xn.children,fi=xn.directory,wi=xn.openFileDialogOnClick,gi=xn.onMouseEnter,Bi=xn.onMouseLeave,Ki=(0,Rt.Z)(xn,Xe),ji=At()((0,ot.Z)((0,ot.Z)((0,ot.Z)({},An,!0),"".concat(An,"-disabled"),pi),Wn,Wn)),Pi=fi?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Vi=pi?{}:{onClick:wi?this.onClick:function(){},onKeyDown:wi?this.onKeyDown:function(){},onMouseEnter:gi,onMouseLeave:Bi,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Ce.createElement(Pn,(0,Ue.Z)({},Vi,{className:ji,role:"button",style:bi}),Ce.createElement("input",(0,Ue.Z)({},(0,te.Z)(Ki,{aria:!0,data:!0}),{id:Yt,disabled:pi,type:"file",ref:this.saveFileInput,onClick:function(So){return So.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ki},Pi,{multiple:Di,onChange:this.onChange},nn!=null?{capture:nn}:{})),Xn)}}]),qt}(Ce.Component),Ze=dt;function Zt(){}var yt=function(It){(0,Ot.Z)(qt,It);var on=(0,Lt.Z)(qt);function qt(){var en;(0,Je.Z)(this,qt);for(var xn=arguments.length,Pn=new Array(xn),An=0;An<xn;An++)Pn[An]=arguments[An];return en=on.call.apply(on,[this].concat(Pn)),en.uploader=void 0,en.saveUploader=function(Wn){en.uploader=Wn},en}return(0,ke.Z)(qt,[{key:"abort",value:function(xn){this.uploader.abort(xn)}},{key:"render",value:function(){return Ce.createElement(Ze,(0,Ue.Z)({},this.props,{ref:this.saveUploader}))}}]),qt}(Ce.Component);yt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Zt,onError:Zt,onSuccess:Zt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var an=yt,Gt=an,Vt=ye(18929),hn=ye(4676),yn=ye(36355),vt=ye(1684),je=ye(9763),wt=ye(31724),tn={icon:function(on,qt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:qt}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:on}}]}},name:"file",theme:"twotone"},bn=tn,Ft=ye(7657),Xt=function(on,qt){return Ce.createElement(Ft.Z,(0,Ue.Z)({},on,{ref:qt,icon:bn}))},Cn=Ce.forwardRef(Xt),Qn=Cn,gn=ye(58617),Gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},bt=Gn,zn=function(on,qt){return Ce.createElement(Ft.Z,(0,Ue.Z)({},on,{ref:qt,icon:bt}))},ai=Ce.forwardRef(zn),He=ai,Le={icon:function(on,qt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:on}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:qt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:qt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:qt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:on}}]}},name:"picture",theme:"twotone"},xe=Le,Ne=function(on,qt){return Ce.createElement(Ft.Z,(0,Ue.Z)({},on,{ref:qt,icon:xe}))},De=Ce.forwardRef(Ne),ve=De,$e=ye(77900),mt=ye(56762),et=ye(62892),Ve=ye(92343),gt=ye(3113);function ft(It){return Object.assign(Object.assign({},It),{lastModified:It.lastModified,lastModifiedDate:It.lastModifiedDate,name:It.name,size:It.size,type:It.type,uid:It.uid,percent:0,originFileObj:It})}function rt(It,on){const qt=(0,Oe.Z)(on),en=qt.findIndex(xn=>{let{uid:Pn}=xn;return Pn===It.uid});return en===-1?qt.push(It):qt[en]=It,qt}function Mt(It,on){const qt=It.uid!==void 0?"uid":"name";return on.filter(en=>en[qt]===It[qt])[0]}function pn(It,on){const qt=It.uid!==void 0?"uid":"name",en=on.filter(xn=>xn[qt]!==It[qt]);return en.length===on.length?null:en}const dn=function(){const on=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),en=on[on.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(en)||[""])[0]},Jt=It=>It.indexOf("image/")===0,Rn=It=>{if(It.type&&!It.thumbUrl)return Jt(It.type);const on=It.thumbUrl||It.url||"",qt=dn(on);return/^data:image\//.test(on)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(qt)?!0:!(/^data:/.test(on)||qt)},Tn=200;function Et(It){return new Promise(on=>{if(!It.type||!Jt(It.type)){on("");return}const qt=document.createElement("canvas");qt.width=Tn,qt.height=Tn,qt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Tn}px; height: ${Tn}px; z-index: 9999; display: none;`,document.body.appendChild(qt);const en=qt.getContext("2d"),xn=new Image;if(xn.onload=()=>{const{width:Pn,height:An}=xn;let Wn=Tn,pi=Tn,Yt=0,bi=0;Pn>An?(pi=An*(Tn/Pn),bi=-(pi-Wn)/2):(Wn=Pn*(Tn/An),Yt=-(Wn-pi)/2),en.drawImage(xn,Yt,bi,Wn,pi);const Di=qt.toDataURL();document.body.removeChild(qt),window.URL.revokeObjectURL(xn.src),on(Di)},xn.crossOrigin="anonymous",It.type.startsWith("image/svg+xml")){const Pn=new FileReader;Pn.onload=()=>{Pn.result&&(xn.src=Pn.result)},Pn.readAsDataURL(It)}else if(It.type.startsWith("image/gif")){const Pn=new FileReader;Pn.onload=()=>{Pn.result&&on(Pn.result)},Pn.readAsDataURL(It)}else xn.src=window.URL.createObjectURL(It)})}var cn=ye(26227),On=ye(41464),Ct=ye(15277),_n=ye(93948),ui=ye(6848),ci=Ce.forwardRef((It,on)=>{let{prefixCls:qt,className:en,style:xn,locale:Pn,listType:An,file:Wn,items:pi,progress:Yt,iconRender:bi,actionIconRender:Di,itemRender:ki,isImgUrl:nn,showPreviewIcon:Xn,showRemoveIcon:fi,showDownloadIcon:wi,previewIcon:gi,removeIcon:Bi,downloadIcon:Ki,onPreview:ji,onDownload:Pi,onClose:Vi}=It;var Ln,So;const{status:Mn}=Wn,[ro,No]=Ce.useState(Mn);Ce.useEffect(()=>{Mn!=="removed"&&No(Mn)},[Mn]);const[_i,Go]=Ce.useState(!1);Ce.useEffect(()=>{const Pr=setTimeout(()=>{Go(!0)},300);return()=>{clearTimeout(Pr)}},[]);const ko=bi(Wn);let Ii=Ce.createElement("div",{className:`${qt}-icon`},ko);if(An==="picture"||An==="picture-card"||An==="picture-circle")if(ro==="uploading"||!Wn.thumbUrl&&!Wn.url){const Pr=At()(`${qt}-list-item-thumbnail`,{[`${qt}-list-item-file`]:ro!=="uploading"});Ii=Ce.createElement("div",{className:Pr},ko)}else{const Pr=nn!=null&&nn(Wn)?Ce.createElement("img",{src:Wn.thumbUrl||Wn.url,alt:Wn.name,className:`${qt}-list-item-image`,crossOrigin:Wn.crossOrigin}):ko,Yi=At()(`${qt}-list-item-thumbnail`,{[`${qt}-list-item-file`]:nn&&!nn(Wn)});Ii=Ce.createElement("a",{className:Yi,onClick:Qi=>ji(Wn,Qi),href:Wn.url||Wn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Pr)}const Ai=At()(`${qt}-list-item`,`${qt}-list-item-${ro}`),Zi=typeof Wn.linkProps=="string"?JSON.parse(Wn.linkProps):Wn.linkProps,yo=fi?Di((typeof Bi=="function"?Bi(Wn):Bi)||Ce.createElement(cn.Z,null),()=>Vi(Wn),qt,Pn.removeFile):null,di=wi&&ro==="done"?Di((typeof Ki=="function"?Ki(Wn):Ki)||Ce.createElement(On.Z,null),()=>Pi(Wn),qt,Pn.downloadFile):null,Ke=An!=="picture-card"&&An!=="picture-circle"&&Ce.createElement("span",{key:"download-delete",className:At()(`${qt}-list-item-actions`,{picture:An==="picture"})},di,yo),Do=At()(`${qt}-list-item-name`),nr=Wn.url?[Ce.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Do,title:Wn.name},Zi,{href:Wn.url,onClick:Pr=>ji(Wn,Pr)}),Wn.name),Ke]:[Ce.createElement("span",{key:"view",className:Do,onClick:Pr=>ji(Wn,Pr),title:Wn.name},Wn.name),Ke],xo={pointerEvents:"none",opacity:.5},hr=Xn?Ce.createElement("a",{href:Wn.url||Wn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Wn.url||Wn.thumbUrl?void 0:xo,onClick:Pr=>ji(Wn,Pr),title:Pn.previewFile},typeof gi=="function"?gi(Wn):gi||Ce.createElement(Ct.Z,null)):null,Qo=(An==="picture-card"||An==="picture-circle")&&ro!=="uploading"&&Ce.createElement("span",{className:`${qt}-list-item-actions`},hr,ro==="done"&&di,yo),{getPrefixCls:$i}=Ce.useContext(yn.E_),ao=$i(),jo=Ce.createElement("div",{className:Ai},Ii,nr,Qo,_i&&Ce.createElement($e.default,{motionName:`${ao}-fade`,visible:ro==="uploading",motionDeadline:2e3},Pr=>{let{className:Yi}=Pr;const Qi="percent"in Wn?Ce.createElement(_n.Z,Object.assign({},Yt,{type:"line",percent:Wn.percent,"aria-label":Wn["aria-label"],"aria-labelledby":Wn["aria-labelledby"]})):null;return Ce.createElement("div",{className:At()(`${qt}-list-item-progress`,Yi)},Qi)})),Lo=Wn.response&&typeof Wn.response=="string"?Wn.response:((Ln=Wn.error)===null||Ln===void 0?void 0:Ln.statusText)||((So=Wn.error)===null||So===void 0?void 0:So.message)||Pn.uploadError,dr=ro==="error"?Ce.createElement(ui.Z,{title:Lo,getPopupContainer:Pr=>Pr.parentNode},jo):jo;return Ce.createElement("div",{className:At()(`${qt}-list-item-container`,en),style:xn,ref:on},ki?ki(dr,Wn,pi,{download:Pi.bind(null,Wn),preview:ji.bind(null,Wn),remove:Vi.bind(null,Wn)}):dr)});const Hi=(It,on)=>{const{listType:qt="text",previewFile:en=Et,onPreview:xn,onDownload:Pn,onRemove:An,locale:Wn,iconRender:pi,isImageUrl:Yt=Rn,prefixCls:bi,items:Di=[],showPreviewIcon:ki=!0,showRemoveIcon:nn=!0,showDownloadIcon:Xn=!1,removeIcon:fi,previewIcon:wi,downloadIcon:gi,progress:Bi={size:[-1,2],showInfo:!1},appendAction:Ki,appendActionVisible:ji=!0,itemRender:Pi,disabled:Vi}=It,Ln=(0,mt.Z)(),[So,Mn]=Ce.useState(!1);Ce.useEffect(()=>{qt!=="picture"&&qt!=="picture-card"&&qt!=="picture-circle"||(Di||[]).forEach(xo=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(xo.originFileObj instanceof File||xo.originFileObj instanceof Blob)||xo.thumbUrl!==void 0||(xo.thumbUrl="",en&&en(xo.originFileObj).then(hr=>{xo.thumbUrl=hr||"",Ln()}))})},[qt,Di,en]),Ce.useEffect(()=>{Mn(!0)},[]);const ro=(xo,hr)=>{if(xn)return hr==null||hr.preventDefault(),xn(xo)},No=xo=>{typeof Pn=="function"?Pn(xo):xo.url&&window.open(xo.url)},_i=xo=>{An==null||An(xo)},Go=xo=>{if(pi)return pi(xo,qt);const hr=xo.status==="uploading",Qo=Yt&&Yt(xo)?Ce.createElement(ve,null):Ce.createElement(Qn,null);let $i=hr?Ce.createElement(gn.Z,null):Ce.createElement(He,null);return qt==="picture"?$i=hr?Ce.createElement(gn.Z,null):Qo:(qt==="picture-card"||qt==="picture-circle")&&($i=hr?Wn.uploading:Qo),$i},ko=(xo,hr,Qo,$i)=>{const ao={type:"text",size:"small",title:$i,onClick:jo=>{hr(),(0,Ve.l$)(xo)&&xo.props.onClick&&xo.props.onClick(jo)},className:`${Qo}-list-item-action`,disabled:Vi};if((0,Ve.l$)(xo)){const jo=(0,Ve.Tm)(xo,Object.assign(Object.assign({},xo.props),{onClick:()=>{}}));return Ce.createElement(gt.ZP,Object.assign({},ao,{icon:jo}))}return Ce.createElement(gt.ZP,Object.assign({},ao),Ce.createElement("span",null,xo))};Ce.useImperativeHandle(on,()=>({handlePreview:ro,handleDownload:No}));const{getPrefixCls:Ii}=Ce.useContext(yn.E_),Ai=Ii("upload",bi),Zi=Ii(),yo=At()(`${Ai}-list`,`${Ai}-list-${qt}`),di=(0,Oe.Z)(Di.map(xo=>({key:xo.uid,file:xo})));let Do={motionDeadline:2e3,motionName:`${Ai}-${qt==="picture-card"||qt==="picture-circle"?"animate-inline":"animate"}`,keys:di,motionAppear:So};const nr=Ce.useMemo(()=>{const xo=Object.assign({},(0,et.Z)(Zi));return delete xo.onAppearEnd,delete xo.onEnterEnd,delete xo.onLeaveEnd,xo},[Zi]);return qt!=="picture-card"&&qt!=="picture-circle"&&(Do=Object.assign(Object.assign({},nr),Do)),Ce.createElement("div",{className:yo},Ce.createElement($e.CSSMotionList,Object.assign({},Do,{component:!1}),xo=>{let{key:hr,file:Qo,className:$i,style:ao}=xo;return Ce.createElement(ci,{key:hr,locale:Wn,prefixCls:Ai,className:$i,style:ao,file:Qo,items:Di,progress:Bi,listType:qt,isImgUrl:Yt,showPreviewIcon:ki,showRemoveIcon:nn,showDownloadIcon:Xn,removeIcon:fi,previewIcon:wi,downloadIcon:gi,iconRender:Go,actionIconRender:ko,itemRender:Pi,onPreview:ro,onDownload:No,onClose:_i})}),Ki&&Ce.createElement($e.default,Object.assign({},Do,{visible:ji,forceRender:!0}),xo=>{let{className:hr,style:Qo}=xo;return(0,Ve.Tm)(Ki,$i=>({className:At()($i.className,hr),style:Object.assign(Object.assign(Object.assign({},Qo),{pointerEvents:hr?"none":void 0}),$i.style)}))}))};var Xi=Ce.forwardRef(Hi),eo=ye(17313),Oo=ye(8378),vo=ye(83116),Ri=ye(37613),Bn=It=>{const{componentCls:on,iconCls:qt}=It;return{[`${on}-wrapper`]:{[`${on}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:It.colorFillAlter,border:`${It.lineWidth}px dashed ${It.colorBorder}`,borderRadius:It.borderRadiusLG,cursor:"pointer",transition:`border-color ${It.motionDurationSlow}`,[on]:{padding:`${It.padding}px 0`},[`${on}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${on}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${on}-disabled):hover`]:{borderColor:It.colorPrimaryHover},[`p${on}-drag-icon`]:{marginBottom:It.margin,[qt]:{color:It.colorPrimary,fontSize:It.uploadThumbnailSize}},[`p${on}-text`]:{margin:`0 0 ${It.marginXXS}px`,color:It.colorTextHeading,fontSize:It.fontSizeLG},[`p${on}-hint`]:{color:It.colorTextDescription,fontSize:It.fontSize},[`&${on}-disabled`]:{cursor:"not-allowed",[`p${on}-drag-icon ${qt},
|
|
|
p${on}-text,
|
|
|
p${on}-hint
|
|
|
`]:{color:It.colorTextDisabled}}}}}},Mi=It=>{const{componentCls:on,antCls:qt,iconCls:en,fontSize:xn,lineHeight:Pn}=It,An=`${on}-list-item`,Wn=`${An}-actions`,pi=`${An}-action`,Yt=Math.round(xn*Pn);return{[`${on}-wrapper`]:{[`${on}-list`]:Object.assign(Object.assign({},(0,eo.dF)()),{lineHeight:It.lineHeight,[An]:{position:"relative",height:It.lineHeight*xn,marginTop:It.marginXS,fontSize:xn,display:"flex",alignItems:"center",transition:`background-color ${It.motionDurationSlow}`,"&:hover":{backgroundColor:It.controlItemBgHover},[`${An}-name`]:Object.assign(Object.assign({},eo.vS),{padding:`0 ${It.paddingXS}px`,lineHeight:Pn,flex:"auto",transition:`all ${It.motionDurationSlow}`}),[Wn]:{[pi]:{opacity:0},[`${pi}${qt}-btn-sm`]:{height:Yt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${pi}:focus-visible,
|
|
|
&.picture ${pi}
|
|
|
`]:{opacity:1},[en]:{color:It.actionsColor,transition:`all ${It.motionDurationSlow}`},[`&:hover ${en}`]:{color:It.colorText}},[`${on}-icon ${en}`]:{color:It.colorTextDescription,fontSize:xn},[`${An}-progress`]:{position:"absolute",bottom:-It.uploadProgressOffset,width:"100%",paddingInlineStart:xn+It.paddingXS,fontSize:xn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${An}:hover ${pi}`]:{opacity:1,color:It.colorText},[`${An}-error`]:{color:It.colorError,[`${An}-name, ${on}-icon ${en}`]:{color:It.colorError},[Wn]:{[`${en}, ${en}:hover`]:{color:It.colorError},[pi]:{opacity:1}}},[`${on}-list-item-container`]:{transition:`opacity ${It.motionDurationSlow}, height ${It.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ei=ye(93083),Dt=ye(1950);const En=new Ei.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Fn=new Ei.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var wn=It=>{const{componentCls:on}=It,qt=`${on}-animate-inline`;return[{[`${on}-wrapper`]:{[`${qt}-appear, ${qt}-enter, ${qt}-leave`]:{animationDuration:It.motionDurationSlow,animationTimingFunction:It.motionEaseInOutCirc,animationFillMode:"forwards"},[`${qt}-appear, ${qt}-enter`]:{animationName:En},[`${qt}-leave`]:{animationName:Fn}}},{[`${on}-wrapper`]:(0,Dt.J$)(It)},En,Fn]},Nn=ye(93398),ct=ye(64993);const Pt=It=>{const{componentCls:on,iconCls:qt,uploadThumbnailSize:en,uploadProgressOffset:xn}=It,Pn=`${on}-list`,An=`${Pn}-item`;return{[`${on}-wrapper`]:{[`
|
|
|
${Pn}${Pn}-picture,
|
|
|
${Pn}${Pn}-picture-card,
|
|
|
${Pn}${Pn}-picture-circle
|
|
|
`]:{[An]:{position:"relative",height:en+It.lineWidth*2+It.paddingXS*2,padding:It.paddingXS,border:`${It.lineWidth}px ${It.lineType} ${It.colorBorder}`,borderRadius:It.borderRadiusLG,"&:hover":{background:"transparent"},[`${An}-thumbnail`]:Object.assign(Object.assign({},eo.vS),{width:en,height:en,lineHeight:`${en+It.paddingSM}px`,textAlign:"center",flex:"none",[qt]:{fontSize:It.fontSizeHeading2,color:It.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${An}-progress`]:{bottom:xn,width:`calc(100% - ${It.paddingSM*2}px)`,marginTop:0,paddingInlineStart:en+It.paddingXS}},[`${An}-error`]:{borderColor:It.colorError,[`${An}-thumbnail ${qt}`]:{[`svg path[fill='${Nn.blue[0]}']`]:{fill:It.colorErrorBg},[`svg path[fill='${Nn.blue.primary}']`]:{fill:It.colorError}}},[`${An}-uploading`]:{borderStyle:"dashed",[`${An}-name`]:{marginBottom:xn}}},[`${Pn}${Pn}-picture-circle ${An}`]:{[`&, &::before, ${An}-thumbnail`]:{borderRadius:"50%"}}}}},Re=It=>{const{componentCls:on,iconCls:qt,fontSizeLG:en,colorTextLightSolid:xn}=It,Pn=`${on}-list`,An=`${Pn}-item`,Wn=It.uploadPicCardSize;return{[`
|
|
|
${on}-wrapper${on}-picture-card-wrapper,
|
|
|
${on}-wrapper${on}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,eo.dF)()),{display:"inline-block",width:"100%",[`${on}${on}-select`]:{width:Wn,height:Wn,marginInlineEnd:It.marginXS,marginBottom:It.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:It.colorFillAlter,border:`${It.lineWidth}px dashed ${It.colorBorder}`,borderRadius:It.borderRadiusLG,cursor:"pointer",transition:`border-color ${It.motionDurationSlow}`,[`> ${on}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${on}-disabled):hover`]:{borderColor:It.colorPrimary}},[`${Pn}${Pn}-picture-card, ${Pn}${Pn}-picture-circle`]:{[`${Pn}-item-container`]:{display:"inline-block",width:Wn,height:Wn,marginBlock:`0 ${It.marginXS}px`,marginInline:`0 ${It.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[An]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${It.paddingXS*2}px)`,height:`calc(100% - ${It.paddingXS*2}px)`,backgroundColor:It.colorBgMask,opacity:0,transition:`all ${It.motionDurationSlow}`,content:'" "'}},[`${An}:hover`]:{[`&::before, ${An}-actions`]:{opacity:1}},[`${An}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${It.motionDurationSlow}`,[`${qt}-eye, ${qt}-download, ${qt}-delete`]:{zIndex:10,width:en,margin:`0 ${It.marginXXS}px`,fontSize:en,cursor:"pointer",transition:`all ${It.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${An}-actions, ${An}-actions:hover`]:{[`${qt}-eye, ${qt}-download, ${qt}-delete`]:{color:new ct.C(xn).setAlpha(.65).toRgbString(),"&:hover":{color:xn}}},[`${An}-thumbnail, ${An}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${An}-name`]:{display:"none",textAlign:"center"},[`${An}-file + ${An}-name`]:{position:"absolute",bottom:It.margin,display:"block",width:`calc(100% - ${It.paddingXS*2}px)`},[`${An}-uploading`]:{[`&${An}`]:{backgroundColor:It.colorFillAlter},[`&::before, ${qt}-eye, ${qt}-download, ${qt}-delete`]:{display:"none"}},[`${An}-progress`]:{bottom:It.marginXL,width:`calc(100% - ${It.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${on}-wrapper${on}-picture-circle-wrapper`]:{[`${on}${on}-select`]:{borderRadius:"50%"}}}};var _t=It=>{const{componentCls:on}=It;return{[`${on}-rtl`]:{direction:"rtl"}}};const ht=It=>{const{componentCls:on,colorTextDisabled:qt}=It;return{[`${on}-wrapper`]:Object.assign(Object.assign({},(0,eo.Wf)(It)),{[on]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${on}-select`]:{display:"inline-block"},[`${on}-disabled`]:{color:qt,cursor:"not-allowed"}})}};var Ye=(0,vo.Z)("Upload",It=>{const{fontSizeHeading3:on,fontSize:qt,lineHeight:en,lineWidth:xn,controlHeightLG:Pn}=It,An=Math.round(qt*en),Wn=(0,Ri.TS)(It,{uploadThumbnailSize:on*2,uploadProgressOffset:An/2+xn,uploadPicCardSize:Pn*2.55});return[ht(Wn),Bn(Wn),Pt(Wn),Re(Wn),Mi(Wn),wn(Wn),_t(Wn),(0,Oo.Z)(Wn)]},It=>({actionsColor:It.colorTextDescription})),Wt=function(It,on,qt,en){function xn(Pn){return Pn instanceof qt?Pn:new qt(function(An){An(Pn)})}return new(qt||(qt=Promise))(function(Pn,An){function Wn(bi){try{Yt(en.next(bi))}catch(Di){An(Di)}}function pi(bi){try{Yt(en.throw(bi))}catch(Di){An(Di)}}function Yt(bi){bi.done?Pn(bi.value):xn(bi.value).then(Wn,pi)}Yt((en=en.apply(It,on||[])).next())})};const Ut=`__LIST_IGNORE_${Date.now()}__`,fn=(It,on)=>{const{fileList:qt,defaultFileList:en,onRemove:xn,showUploadList:Pn=!0,listType:An="text",onPreview:Wn,onDownload:pi,onChange:Yt,onDrop:bi,previewFile:Di,disabled:ki,locale:nn,iconRender:Xn,isImageUrl:fi,progress:wi,prefixCls:gi,className:Bi,type:Ki="select",children:ji,style:Pi,itemRender:Vi,maxCount:Ln,data:So={},multiple:Mn=!1,action:ro="",accept:No="",supportServerRender:_i=!0,rootClassName:Go}=It,ko=Ce.useContext(vt.Z),Ii=ki!=null?ki:ko,[Ai,Zi]=(0,Vt.Z)(en||[],{value:qt,postState:xr=>xr!=null?xr:[]}),[yo,di]=Ce.useState("drop"),Ke=Ce.useRef(null);Ce.useMemo(()=>{const xr=Date.now();(qt||[]).forEach((or,da)=>{!or.uid&&!Object.isFrozen(or)&&(or.uid=`__AUTO__${xr}_${da}__`)})},[qt]);const Do=(xr,or,da)=>{let Ro=(0,Oe.Z)(or),lo=!1;Ln===1?Ro=Ro.slice(-1):Ln&&(lo=Ro.length>Ln,Ro=Ro.slice(0,Ln)),(0,hn.flushSync)(()=>{Zi(Ro)});const Ko={file:xr,fileList:Ro};da&&(Ko.event=da),(!lo||Ro.some(Wr=>Wr.uid===xr.uid))&&(0,hn.flushSync)(()=>{Yt==null||Yt(Ko)})},nr=(xr,or)=>Wt(void 0,void 0,void 0,function*(){const{beforeUpload:da,transformFile:Ro}=It;let lo=xr;if(da){const Ko=yield da(xr,or);if(Ko===!1)return!1;if(delete xr[Ut],Ko===Ut)return Object.defineProperty(xr,Ut,{value:!0,configurable:!0}),!1;typeof Ko=="object"&&Ko&&(lo=Ko)}return Ro&&(lo=yield Ro(lo)),lo}),xo=xr=>{const or=xr.filter(lo=>!lo.file[Ut]);if(!or.length)return;const da=or.map(lo=>ft(lo.file));let Ro=(0,Oe.Z)(Ai);da.forEach(lo=>{Ro=rt(lo,Ro)}),da.forEach((lo,Ko)=>{let Wr=lo;if(or[Ko].parsedFile)lo.status="uploading";else{const{originFileObj:no}=lo;let Io;try{Io=new File([no],no.name,{type:no.type})}catch(Fo){Io=new Blob([no],{type:no.type}),Io.name=no.name,Io.lastModifiedDate=new Date,Io.lastModified=new Date().getTime()}Io.uid=lo.uid,Wr=Io}Do(Wr,Ro)})},hr=(xr,or,da)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(Ko){}if(!Mt(or,Ai))return;const Ro=ft(or);Ro.status="done",Ro.percent=100,Ro.response=xr,Ro.xhr=da;const lo=rt(Ro,Ai);Do(Ro,lo)},Qo=(xr,or)=>{if(!Mt(or,Ai))return;const da=ft(or);da.status="uploading",da.percent=xr.percent;const Ro=rt(da,Ai);Do(da,Ro,xr)},$i=(xr,or,da)=>{if(!Mt(da,Ai))return;const Ro=ft(da);Ro.error=xr,Ro.response=or,Ro.status="error";const lo=rt(Ro,Ai);Do(Ro,lo)},ao=xr=>{let or;Promise.resolve(typeof xn=="function"?xn(xr):xn).then(da=>{var Ro;if(da===!1)return;const lo=pn(xr,Ai);lo&&(or=Object.assign(Object.assign({},xr),{status:"removed"}),Ai==null||Ai.forEach(Ko=>{const Wr=or.uid!==void 0?"uid":"name";Ko[Wr]===or[Wr]&&!Object.isFrozen(Ko)&&(Ko.status="removed")}),(Ro=Ke.current)===null||Ro===void 0||Ro.abort(or),Do(or,lo))})},jo=xr=>{di(xr.type),xr.type==="drop"&&(bi==null||bi(xr))};Ce.useImperativeHandle(on,()=>({onBatchStart:xo,onSuccess:hr,onProgress:Qo,onError:$i,fileList:Ai,upload:Ke.current}));const{getPrefixCls:Lo,direction:dr,upload:Pr}=Ce.useContext(yn.E_),Yi=Lo("upload",gi),Qi=Object.assign(Object.assign({onBatchStart:xo,onError:$i,onProgress:Qo,onSuccess:hr},It),{data:So,multiple:Mn,action:ro,accept:No,supportServerRender:_i,prefixCls:Yi,disabled:Ii,beforeUpload:nr,onChange:void 0});delete Qi.className,delete Qi.style,(!ji||Ii)&&delete Qi.id;const[ti,io]=Ye(Yi),[ir]=(0,je.Z)("Upload",wt.Z.Upload),{showRemoveIcon:Ir,showPreviewIcon:mr,showDownloadIcon:er,removeIcon:Lr,previewIcon:Ar,downloadIcon:ra}=typeof Pn=="boolean"?{}:Pn,ua=(xr,or)=>Pn?Ce.createElement(Xi,{prefixCls:Yi,listType:An,items:Ai,previewFile:Di,onPreview:Wn,onDownload:pi,onRemove:ao,showRemoveIcon:!Ii&&Ir,showPreviewIcon:mr,showDownloadIcon:er,removeIcon:Lr,previewIcon:Ar,downloadIcon:ra,iconRender:Xn,locale:Object.assign(Object.assign({},ir),nn),isImageUrl:fi,progress:wi,appendAction:xr,appendActionVisible:or,itemRender:Vi,disabled:Ii}):xr,wa=At()(`${Yi}-wrapper`,Bi,Go,io,Pr==null?void 0:Pr.className,{[`${Yi}-rtl`]:dr==="rtl",[`${Yi}-picture-card-wrapper`]:An==="picture-card",[`${Yi}-picture-circle-wrapper`]:An==="picture-circle"}),vn=Object.assign(Object.assign({},Pr==null?void 0:Pr.style),Pi);if(Ki==="drag"){const xr=At()(io,Yi,`${Yi}-drag`,{[`${Yi}-drag-uploading`]:Ai.some(or=>or.status==="uploading"),[`${Yi}-drag-hover`]:yo==="dragover",[`${Yi}-disabled`]:Ii,[`${Yi}-rtl`]:dr==="rtl"});return ti(Ce.createElement("span",{className:wa},Ce.createElement("div",{className:xr,style:vn,onDrop:jo,onDragOver:jo,onDragLeave:jo},Ce.createElement(Gt,Object.assign({},Qi,{ref:Ke,className:`${Yi}-btn`}),Ce.createElement("div",{className:`${Yi}-drag-container`},ji))),ua()))}const ia=At()(Yi,`${Yi}-select`,{[`${Yi}-disabled`]:Ii}),us=(xr=>Ce.createElement("div",{className:ia,style:xr},Ce.createElement(Gt,Object.assign({},Qi,{ref:Ke}))))(ji?void 0:{display:"none"});return ti(An==="picture-card"||An==="picture-circle"?Ce.createElement("span",{className:wa},ua(us,!!ji)):Ce.createElement("span",{className:wa},us,ua()))};var at=Ce.forwardRef(fn),ln=function(It,on){var qt={};for(var en in It)Object.prototype.hasOwnProperty.call(It,en)&&on.indexOf(en)<0&&(qt[en]=It[en]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,en=Object.getOwnPropertySymbols(It);xn<en.length;xn++)on.indexOf(en[xn])<0&&Object.prototype.propertyIsEnumerable.call(It,en[xn])&&(qt[en[xn]]=It[en[xn]]);return qt},ii=Ce.forwardRef((It,on)=>{var{style:qt,height:en}=It,xn=ln(It,["style","height"]);return Ce.createElement(at,Object.assign({ref:on},xn,{type:"drag",style:Object.assign(Object.assign({},qt),{height:en})}))});const jt=at;jt.Dragger=ii,jt.LIST_IGNORE=Ut;var sn=jt},99498:function(Kn,kn,ye){(function(Ce){Ce(ye(89780))})(function(Ce){Ce.defineOption("placeholder","",function(Ot,Lt,ot){var Rt=ot&&ot!=Ce.Init;if(Lt&&!Rt)Ot.on("blur",Ue),Ot.on("change",Je),Ot.on("swapDoc",Je),Ce.on(Ot.getInputField(),"compositionupdate",Ot.state.placeholderCompose=function(){At(Ot)}),Je(Ot);else if(!Lt&&Rt){Ot.off("blur",Ue),Ot.off("change",Je),Ot.off("swapDoc",Je),Ce.off(Ot.getInputField(),"compositionupdate",Ot.state.placeholderCompose),Oe(Ot);var xt=Ot.getWrapperElement();xt.className=xt.className.replace(" CodeMirror-empty","")}Lt&&!Ot.hasFocus()&&Ue(Ot)});function Oe(Ot){Ot.state.placeholder&&(Ot.state.placeholder.parentNode.removeChild(Ot.state.placeholder),Ot.state.placeholder=null)}function tt(Ot){Oe(Ot);var Lt=Ot.state.placeholder=document.createElement("pre");Lt.style.cssText="height: 0; overflow: visible",Lt.style.direction=Ot.getOption("direction"),Lt.className="CodeMirror-placeholder CodeMirror-line-like";var ot=Ot.getOption("placeholder");typeof ot=="string"&&(ot=document.createTextNode(ot)),Lt.appendChild(ot),Ot.display.lineSpace.insertBefore(Lt,Ot.display.lineSpace.firstChild)}function At(Ot){setTimeout(function(){var Lt=!1,ot=Ot.getInputField();ot.nodeName=="TEXTAREA"?Lt=!ot.value:Ot.lineCount()==1&&(Lt=!/[^\u200b]/.test(ot.querySelector(".CodeMirror-line").textContent)),Lt?tt(Ot):Oe(Ot)},20)}function Ue(Ot){ke(Ot)&&tt(Ot)}function Je(Ot){var Lt=Ot.getWrapperElement(),ot=ke(Ot);Lt.className=Lt.className.replace(" CodeMirror-empty","")+(ot?" CodeMirror-empty":""),ot?tt(Ot):Oe(Ot)}function ke(Ot){return Ot.lineCount()===1&&Ot.getLine(0)===""}})},25717:function(Kn,kn,ye){(function(Ce){Ce(ye(89780))})(function(Ce){var Oe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},tt=Ce.Pos;Ce.defineOption("autoCloseBrackets",!1,function(te,ne,he){he&&he!=Ce.Init&&(te.removeKeyMap(Ue),te.state.closeBrackets=null),ne&&(Je(At(ne,"pairs")),te.state.closeBrackets=ne,te.addKeyMap(Ue))});function At(te,ne){return ne=="pairs"&&typeof te=="string"?te:typeof te=="object"&&te[ne]!=null?te[ne]:Oe[ne]}var Ue={Backspace:Lt,Enter:ot};function Je(te){for(var ne=0;ne<te.length;ne++){var he=te.charAt(ne),se="'"+he+"'";Ue[se]||(Ue[se]=ke(he))}}Je(Oe.pairs+"`");function ke(te){return function(ne){return xt(ne,te)}}function Ot(te){var ne=te.state.closeBrackets;if(!ne||ne.override)return ne;var he=te.getModeAt(te.getCursor());return he.closeBrackets||ne}function Lt(te){var ne=Ot(te);if(!ne||te.getOption("disableInput"))return Ce.Pass;for(var he=At(ne,"pairs"),se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return Ce.Pass;var me=zt(te,se[ge].head);if(!me||he.indexOf(me)%2!=0)return Ce.Pass}for(var ge=se.length-1;ge>=0;ge--){var we=se[ge].head;te.replaceRange("",tt(we.line,we.ch-1),tt(we.line,we.ch+1),"+delete")}}function ot(te){var ne=Ot(te),he=ne&&At(ne,"explode");if(!he||te.getOption("disableInput"))return Ce.Pass;for(var se=te.listSelections(),ge=0;ge<se.length;ge++){if(!se[ge].empty())return Ce.Pass;var me=zt(te,se[ge].head);if(!me||he.indexOf(me)%2!=0)return Ce.Pass}te.operation(function(){var we=te.lineSeparator()||`
|
|
|
`;te.replaceSelection(we+we,null),te.execCommand("goCharLeft"),se=te.listSelections();for(var Fe=0;Fe<se.length;Fe++){var Be=se[Fe].head.line;te.indentLine(Be,null,!0),te.indentLine(Be+1,null,!0)}})}function Rt(te){var ne=Ce.cmpPos(te.anchor,te.head)>0;return{anchor:new tt(te.anchor.line,te.anchor.ch+(ne?-1:1)),head:new tt(te.head.line,te.head.ch+(ne?1:-1))}}function xt(te,ne){var he=Ot(te);if(!he||te.getOption("disableInput"))return Ce.Pass;var se=At(he,"pairs"),ge=se.indexOf(ne);if(ge==-1)return Ce.Pass;for(var me=At(he,"closeBefore"),we=At(he,"triples"),Fe=se.charAt(ge+1)==ne,Be=te.listSelections(),Ie=ge%2==0,We,nt=0;nt<Be.length;nt++){var Xe=Be[nt],dt=Xe.head,Ze,Zt=te.getRange(dt,tt(dt.line,dt.ch+1));if(Ie&&!Xe.empty())Ze="surround";else if((Fe||!Ie)&&Zt==ne)Fe&&Ae(te,dt)?Ze="both":we.indexOf(ne)>=0&&te.getRange(dt,tt(dt.line,dt.ch+3))==ne+ne+ne?Ze="skipThree":Ze="skip";else if(Fe&&dt.ch>1&&we.indexOf(ne)>=0&&te.getRange(tt(dt.line,dt.ch-2),dt)==ne+ne){if(dt.ch>2&&/\bstring/.test(te.getTokenTypeAt(tt(dt.line,dt.ch-2))))return Ce.Pass;Ze="addFour"}else if(Fe){var yt=dt.ch==0?" ":te.getRange(tt(dt.line,dt.ch-1),dt);if(!Ce.isWordChar(Zt)&&yt!=ne&&!Ce.isWordChar(yt))Ze="both";else return Ce.Pass}else if(Ie&&(Zt.length===0||/\s/.test(Zt)||me.indexOf(Zt)>-1))Ze="both";else return Ce.Pass;if(!We)We=Ze;else if(We!=Ze)return Ce.Pass}var an=ge%2?se.charAt(ge-1):ne,Gt=ge%2?ne:se.charAt(ge+1);te.operation(function(){if(We=="skip")te.execCommand("goCharRight");else if(We=="skipThree")for(var Vt=0;Vt<3;Vt++)te.execCommand("goCharRight");else if(We=="surround"){for(var hn=te.getSelections(),Vt=0;Vt<hn.length;Vt++)hn[Vt]=an+hn[Vt]+Gt;te.replaceSelections(hn,"around"),hn=te.listSelections().slice();for(var Vt=0;Vt<hn.length;Vt++)hn[Vt]=Rt(hn[Vt]);te.setSelections(hn)}else We=="both"?(te.replaceSelection(an+Gt,null),te.triggerElectric(an+Gt),te.execCommand("goCharLeft")):We=="addFour"&&(te.replaceSelection(an+an+an+an,"before"),te.execCommand("goCharRight"))})}function zt(te,ne){var he=te.getRange(tt(ne.line,ne.ch-1),tt(ne.line,ne.ch+1));return he.length==2?he:null}function Ae(te,ne){var he=te.getTokenAt(tt(ne.line,ne.ch+1));return/\bstring/.test(he.type)&&he.start==ne.ch&&(ne.ch==0||!/\bstring/.test(te.getTokenTypeAt(ne)))}})},6313:function(Kn,kn,ye){(function(Ce){Ce(ye(89780),ye(32855))})(function(Ce){Ce.defineOption("autoCloseTags",!1,function(Lt,ot,Rt){if(Rt!=Ce.Init&&Rt&&Lt.removeKeyMap("autoCloseTags"),!!ot){var xt={name:"autoCloseTags"};(typeof ot!="object"||ot.whenClosing!==!1)&&(xt["'/'"]=function(zt){return Je(zt)}),(typeof ot!="object"||ot.whenOpening!==!1)&&(xt["'>'"]=function(zt){return At(zt)}),Lt.addKeyMap(xt)}});var Oe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],tt=["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 At(Lt){if(Lt.getOption("disableInput"))return Ce.Pass;for(var ot=Lt.listSelections(),Rt=[],xt=Lt.getOption("autoCloseTags"),zt=0;zt<ot.length;zt++){if(!ot[zt].empty())return Ce.Pass;var Ae=ot[zt].head,te=Lt.getTokenAt(Ae),ne=Ce.innerMode(Lt.getMode(),te.state),he=ne.state,se=ne.mode.xmlCurrentTag&&ne.mode.xmlCurrentTag(he),ge=se&&se.name;if(!ge)return Ce.Pass;var me=ne.mode.configuration=="html",we=typeof xt=="object"&&xt.dontCloseTags||me&&Oe,Fe=typeof xt=="object"&&xt.indentTags||me&&tt;te.end>Ae.ch&&(ge=ge.slice(0,ge.length-te.end+Ae.ch));var Be=ge.toLowerCase();if(!ge||te.type=="string"&&(te.end!=Ae.ch||!/[\"\']/.test(te.string.charAt(te.string.length-1))||te.string.length==1)||te.type=="tag"&&se.close||te.string.indexOf("/")==Ae.ch-te.start-1||we&&ke(we,Be)>-1||Ot(Lt,ne.mode.xmlCurrentContext&&ne.mode.xmlCurrentContext(he)||[],ge,Ae,!0))return Ce.Pass;var Ie=typeof xt=="object"&&xt.emptyTags;if(Ie&&ke(Ie,ge)>-1){Rt[zt]={text:"/>",newPos:Ce.Pos(Ae.line,Ae.ch+2)};continue}var We=Fe&&ke(Fe,Be)>-1;Rt[zt]={indent:We,text:">"+(We?`
|
|
|
|
|
|
`:"")+"</"+ge+">",newPos:We?Ce.Pos(Ae.line+1,0):Ce.Pos(Ae.line,Ae.ch+1)}}for(var nt=typeof xt=="object"&&xt.dontIndentOnAutoClose,zt=ot.length-1;zt>=0;zt--){var Xe=Rt[zt];Lt.replaceRange(Xe.text,ot[zt].head,ot[zt].anchor,"+insert");var dt=Lt.listSelections().slice(0);dt[zt]={head:Xe.newPos,anchor:Xe.newPos},Lt.setSelections(dt),!nt&&Xe.indent&&(Lt.indentLine(Xe.newPos.line,null,!0),Lt.indentLine(Xe.newPos.line+1,null,!0))}}function Ue(Lt,ot){for(var Rt=Lt.listSelections(),xt=[],zt=ot?"/":"</",Ae=Lt.getOption("autoCloseTags"),te=typeof Ae=="object"&&Ae.dontIndentOnSlash,ne=0;ne<Rt.length;ne++){if(!Rt[ne].empty())return Ce.Pass;var he=Rt[ne].head,se=Lt.getTokenAt(he),ge=Ce.innerMode(Lt.getMode(),se.state),me=ge.state;if(ot&&(se.type=="string"||se.string.charAt(0)!="<"||se.start!=he.ch-1))return Ce.Pass;var we,Fe=ge.mode.name!="xml"&&Lt.getMode().name=="htmlmixed";if(Fe&&ge.mode.name=="javascript")we=zt+"script";else if(Fe&&ge.mode.name=="css")we=zt+"style";else{var Be=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(me);if(!Be||Be.length&&Ot(Lt,Be,Be[Be.length-1],he))return Ce.Pass;we=zt+Be[Be.length-1]}Lt.getLine(he.line).charAt(se.end)!=">"&&(we+=">"),xt[ne]=we}if(Lt.replaceSelections(xt),Rt=Lt.listSelections(),!te)for(var ne=0;ne<Rt.length;ne++)(ne==Rt.length-1||Rt[ne].head.line<Rt[ne+1].head.line)&&Lt.indentLine(Rt[ne].head.line)}function Je(Lt){return Lt.getOption("disableInput")?Ce.Pass:Ue(Lt,!0)}Ce.commands.closeTag=function(Lt){return Ue(Lt)};function ke(Lt,ot){if(Lt.indexOf)return Lt.indexOf(ot);for(var Rt=0,xt=Lt.length;Rt<xt;++Rt)if(Lt[Rt]==ot)return Rt;return-1}function Ot(Lt,ot,Rt,xt,zt){if(!Ce.scanForClosingTag)return!1;var Ae=Math.min(Lt.lastLine()+1,xt.line+500),te=Ce.scanForClosingTag(Lt,xt,null,Ae);if(!te||te.tag!=Rt)return!1;for(var ne=zt?1:0,he=ot.length-1;he>=0&&ot[he]==Rt;he--)++ne;xt=te.to;for(var he=1;he<ne;he++){var se=Ce.scanForClosingTag(Lt,xt,null,Ae);if(!se||se.tag!=Rt)return!1;xt=se.to}return!0}})},32855:function(Kn,kn,ye){(function(Ce){Ce(ye(89780))})(function(Ce){"use strict";var Oe=Ce.Pos;function tt(he,se){return he.line-se.line||he.ch-se.ch}var At="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",Ue=At+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Je=new RegExp("<(/?)(["+At+"]["+Ue+"]*)","g");function ke(he,se,ge,me){this.line=se,this.ch=ge,this.cm=he,this.text=he.getLine(se),this.min=me?Math.max(me.from,he.firstLine()):he.firstLine(),this.max=me?Math.min(me.to-1,he.lastLine()):he.lastLine()}function Ot(he,se){var ge=he.cm.getTokenTypeAt(Oe(he.line,se));return ge&&/\btag\b/.test(ge)}function Lt(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function ot(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function Rt(he){for(;;){var se=he.text.indexOf(">",he.ch);if(se==-1){if(Lt(he))continue;return}if(!Ot(he,se+1)){he.ch=se+1;continue}var ge=he.text.lastIndexOf("/",se),me=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,me?"selfClose":"regular"}}function xt(he){for(;;){var se=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(se==-1){if(ot(he))continue;return}if(!Ot(he,se+1)){he.ch=se;continue}Je.lastIndex=se,he.ch=se;var ge=Je.exec(he.text);if(ge&&ge.index==se)return ge}}function zt(he){for(;;){Je.lastIndex=he.ch;var se=Je.exec(he.text);if(!se){if(Lt(he))continue;return}if(!Ot(he,se.index+1)){he.ch=se.index+1;continue}return he.ch=se.index+se[0].length,se}}function Ae(he){for(;;){var se=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(se==-1){if(ot(he))continue;return}if(!Ot(he,se+1)){he.ch=se;continue}var ge=he.text.lastIndexOf("/",se),me=ge>-1&&!/\S/.test(he.text.slice(ge+1,se));return he.ch=se+1,me?"selfClose":"regular"}}function te(he,se){for(var ge=[];;){var me=zt(he),we,Fe=he.line,Be=he.ch-(me?me[0].length:0);if(!me||!(we=Rt(he)))return;if(we!="selfClose")if(me[1]){for(var Ie=ge.length-1;Ie>=0;--Ie)if(ge[Ie]==me[2]){ge.length=Ie;break}if(Ie<0&&(!se||se==me[2]))return{tag:me[2],from:Oe(Fe,Be),to:Oe(he.line,he.ch)}}else ge.push(me[2])}}function ne(he,se){for(var ge=[];;){var me=Ae(he);if(!me)return;if(me=="selfClose"){xt(he);continue}var we=he.line,Fe=he.ch,Be=xt(he);if(!Be)return;if(Be[1])ge.push(Be[2]);else{for(var Ie=ge.length-1;Ie>=0;--Ie)if(ge[Ie]==Be[2]){ge.length=Ie;break}if(Ie<0&&(!se||se==Be[2]))return{tag:Be[2],from:Oe(he.line,he.ch),to:Oe(we,Fe)}}}}Ce.registerHelper("fold","xml",function(he,se){for(var ge=new ke(he,se.line,0);;){var me=zt(ge);if(!me||ge.line!=se.line)return;var we=Rt(ge);if(!we)return;if(!me[1]&&we!="selfClose"){var Fe=Oe(ge.line,ge.ch),Be=te(ge,me[2]);return Be&&tt(Be.from,Fe)>0?{from:Fe,to:Be.from}:null}}}),Ce.findMatchingTag=function(he,se,ge){var me=new ke(he,se.line,se.ch,ge);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var we=Rt(me),Fe=we&&Oe(me.line,me.ch),Be=we&&xt(me);if(!(!we||!Be||tt(me,se)>0)){var Ie={from:Oe(me.line,me.ch),to:Fe,tag:Be[2]};return we=="selfClose"?{open:Ie,close:null,at:"open"}:Be[1]?{open:ne(me,Be[2]),close:Ie,at:"close"}:(me=new ke(he,Fe.line,Fe.ch,ge),{open:Ie,close:te(me,Be[2]),at:"open"})}}},Ce.findEnclosingTag=function(he,se,ge,me){for(var we=new ke(he,se.line,se.ch,ge);;){var Fe=ne(we,me);if(!Fe)break;var Be=new ke(he,se.line,se.ch,ge),Ie=te(Be,Fe.tag);if(Ie)return{open:Fe,close:Ie}}},Ce.scanForClosingTag=function(he,se,ge,me){var we=new ke(he,se.line,se.ch,me?{from:0,to:me}:null);return te(we,ge)}})},89780:function(Kn){(function(kn,ye){Kn.exports=ye()})(this,function(){"use strict";var kn=navigator.userAgent,ye=navigator.platform,Ce=/gecko\/\d/i.test(kn),Oe=/MSIE \d/.test(kn),tt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(kn),At=/Edge\/(\d+)/.exec(kn),Ue=Oe||tt||At,Je=Ue&&(Oe?document.documentMode||6:+(At||tt)[1]),ke=!At&&/WebKit\//.test(kn),Ot=ke&&/Qt\/\d+\.\d+/.test(kn),Lt=!At&&/Chrome\//.test(kn),ot=/Opera\//.test(kn),Rt=/Apple Computer/.test(navigator.vendor),xt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(kn),zt=/PhantomJS/.test(kn),Ae=!At&&/AppleWebKit/.test(kn)&&/Mobile\/\w+/.test(kn),te=/Android/.test(kn),ne=Ae||te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(kn),he=Ae||/Mac/.test(ye),se=/\bCrOS\b/.test(kn),ge=/win/i.test(ye),me=ot&&kn.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(ot=!1,ke=!0);var we=he&&(Ot||ot&&(me==null||me<12.11)),Fe=Ce||Ue&&Je>=9;function Be(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ie=function(ie,ae){var ce=ie.className,de=Be(ae).exec(ce);if(de){var pe=ce.slice(de.index+de[0].length);ie.className=ce.slice(0,de.index)+(pe?de[1]+pe:"")}};function We(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function nt(ie,ae){return We(ie).appendChild(ae)}function Xe(ie,ae,ce,de){var pe=document.createElement(ie);if(ce&&(pe.className=ce),de&&(pe.style.cssText=de),typeof ae=="string")pe.appendChild(document.createTextNode(ae));else if(ae)for(var Me=0;Me<ae.length;++Me)pe.appendChild(ae[Me]);return pe}function dt(ie,ae,ce,de){var pe=Xe(ie,ae,ce,de);return pe.setAttribute("role","presentation"),pe}var Ze;document.createRange?Ze=function(ie,ae,ce,de){var pe=document.createRange();return pe.setEnd(de||ie,ce),pe.setStart(ie,ae),pe}:Ze=function(ie,ae,ce){var de=document.body.createTextRange();try{de.moveToElementText(ie.parentNode)}catch(pe){return de}return de.collapse(!0),de.moveEnd("character",ce),de.moveStart("character",ae),de};function Zt(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 yt(){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 an(ie,ae){var ce=ie.className;Be(ae).test(ce)||(ie.className+=(ce?" ":"")+ae)}function Gt(ie,ae){for(var ce=ie.split(" "),de=0;de<ce.length;de++)ce[de]&&!Be(ce[de]).test(ae)&&(ae+=" "+ce[de]);return ae}var Vt=function(ie){ie.select()};Ae?Vt=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Ue&&(Vt=function(ie){try{ie.select()}catch(ae){}});function hn(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function yn(ie,ae,ce){ae||(ae={});for(var de in ie)ie.hasOwnProperty(de)&&(ce!==!1||!ae.hasOwnProperty(de))&&(ae[de]=ie[de]);return ae}function vt(ie,ae,ce,de,pe){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Me=de||0,ze=pe||0;;){var qe=ie.indexOf(" ",Me);if(qe<0||qe>=ae)return ze+(ae-Me);ze+=qe-Me,ze+=ce-ze%ce,Me=qe+1}}var je=function(){this.id=null,this.f=null,this.time=0,this.handler=hn(this.onTimeout,this)};je.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},je.prototype.set=function(ie,ae){this.f=ae;var ce=+new Date+ie;(!this.id||ce<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ce)};function wt(ie,ae){for(var ce=0;ce<ie.length;++ce)if(ie[ce]==ae)return ce;return-1}var tn=50,bn={toString:function(){return"CodeMirror.Pass"}},Ft={scroll:!1},Xt={origin:"*mouse"},Cn={origin:"+move"};function Qn(ie,ae,ce){for(var de=0,pe=0;;){var Me=ie.indexOf(" ",de);Me==-1&&(Me=ie.length);var ze=Me-de;if(Me==ie.length||pe+ze>=ae)return de+Math.min(ze,ae-pe);if(pe+=Me-de,pe+=ce-pe%ce,de=Me+1,pe>=ae)return de}}var gn=[""];function Gn(ie){for(;gn.length<=ie;)gn.push(bt(gn)+" ");return gn[ie]}function bt(ie){return ie[ie.length-1]}function zn(ie,ae){for(var ce=[],de=0;de<ie.length;de++)ce[de]=ae(ie[de],de);return ce}function ai(ie,ae,ce){for(var de=0,pe=ce(ae);de<ie.length&&ce(ie[de])<=pe;)de++;ie.splice(de,0,ae)}function He(){}function Le(ie,ae){var ce;return Object.create?ce=Object.create(ie):(He.prototype=ie,ce=new He),ae&&yn(ae,ce),ce}var xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ne(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||xe.test(ie))}function De(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Ne(ie)?!0:ae.test(ie):Ne(ie)}function ve(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var $e=/[\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 mt(ie){return ie.charCodeAt(0)>=768&&$e.test(ie)}function et(ie,ae,ce){for(;(ce<0?ae>0:ae<ie.length)&&mt(ie.charAt(ae));)ae+=ce;return ae}function Ve(ie,ae,ce){for(var de=ae>ce?-1:1;;){if(ae==ce)return ae;var pe=(ae+ce)/2,Me=de<0?Math.ceil(pe):Math.floor(pe);if(Me==ae)return ie(Me)?ae:ce;ie(Me)?ce=Me:ae=Me+de}}function gt(ie,ae,ce,de){if(!ie)return de(ae,ce,"ltr",0);for(var pe=!1,Me=0;Me<ie.length;++Me){var ze=ie[Me];(ze.from<ce&&ze.to>ae||ae==ce&&ze.to==ae)&&(de(Math.max(ze.from,ae),Math.min(ze.to,ce),ze.level==1?"rtl":"ltr",Me),pe=!0)}pe||de(ae,ce,"ltr")}var ft=null;function rt(ie,ae,ce){var de;ft=null;for(var pe=0;pe<ie.length;++pe){var Me=ie[pe];if(Me.from<ae&&Me.to>ae)return pe;Me.to==ae&&(Me.from!=Me.to&&ce=="before"?de=pe:ft=pe),Me.from==ae&&(Me.from!=Me.to&&ce!="before"?de=pe:ft=pe)}return de!=null?de:ft}var Mt=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ce(St){return St<=247?ie.charAt(St):1424<=St&&St<=1524?"R":1536<=St&&St<=1785?ae.charAt(St-1536):1774<=St&&St<=2220?"r":8192<=St&&St<=8203?"w":St==8204?"b":"L"}var de=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Me=/[LRr]/,ze=/[Lb1n]/,qe=/[1n]/;function Qe(St,mn,kt){this.level=St,this.from=mn,this.to=kt}return function(St,mn){var kt=mn=="ltr"?"L":"R";if(St.length==0||mn=="ltr"&&!de.test(St))return!1;for(var Yn=St.length,Zn=[],Li=0;Li<Yn;++Li)Zn.push(ce(St.charCodeAt(Li)));for(var Oi=0,Ui=kt;Oi<Yn;++Oi){var mo=Zn[Oi];mo=="m"?Zn[Oi]=Ui:Ui=mo}for(var Zo=0,To=kt;Zo<Yn;++Zo){var qo=Zn[Zo];qo=="1"&&To=="r"?Zn[Zo]="n":Me.test(qo)&&(To=qo,qo=="r"&&(Zn[Zo]="R"))}for(var kr=1,Ao=Zn[0];kr<Yn-1;++kr){var Xr=Zn[kr];Xr=="+"&&Ao=="1"&&Zn[kr+1]=="1"?Zn[kr]="1":Xr==","&&Ao==Zn[kr+1]&&(Ao=="1"||Ao=="n")&&(Zn[kr]=Ao),Ao=Xr}for(var as=0;as<Yn;++as){var Qs=Zn[as];if(Qs==",")Zn[as]="N";else if(Qs=="%"){var ps=void 0;for(ps=as+1;ps<Yn&&Zn[ps]=="%";++ps);for(var _l=as&&Zn[as-1]=="!"||ps<Yn&&Zn[ps]=="1"?"1":"N",Nl=as;Nl<ps;++Nl)Zn[Nl]=_l;as=ps-1}}for(var Ks=0,fu=kt;Ks<Yn;++Ks){var vl=Zn[Ks];fu=="L"&&vl=="1"?Zn[Ks]="L":Me.test(vl)&&(fu=vl)}for(var Zs=0;Zs<Yn;++Zs)if(pe.test(Zn[Zs])){var Ea=void 0;for(Ea=Zs+1;Ea<Yn&&pe.test(Zn[Ea]);++Ea);for(var ws=(Zs?Zn[Zs-1]:kt)=="L",il=(Ea<Yn?Zn[Ea]:kt)=="L",yl=ws==il?ws?"L":"R":kt,rh=Zs;rh<Ea;++rh)Zn[rh]=yl;Zs=Ea-1}for(var ms=[],Ku,ks=0;ks<Yn;)if(ze.test(Zn[ks])){var wf=ks;for(++ks;ks<Yn&&ze.test(Zn[ks]);++ks);ms.push(new Qe(0,wf,ks))}else{var Nu=ks,gu=ms.length,ql=mn=="rtl"?1:0;for(++ks;ks<Yn&&Zn[ks]!="L";++ks);for(var $a=Nu;$a<ks;)if(qe.test(Zn[$a])){Nu<$a&&(ms.splice(gu,0,new Qe(1,Nu,$a)),gu+=ql);var ol=$a;for(++$a;$a<ks&&qe.test(Zn[$a]);++$a);ms.splice(gu,0,new Qe(2,ol,$a)),gu+=ql,Nu=$a}else++$a;Nu<ks&&ms.splice(gu,0,new Qe(1,Nu,ks))}return mn=="ltr"&&(ms[0].level==1&&(Ku=St.match(/^\s+/))&&(ms[0].from=Ku[0].length,ms.unshift(new Qe(0,0,Ku[0].length))),bt(ms).level==1&&(Ku=St.match(/\s+$/))&&(bt(ms).to-=Ku[0].length,ms.push(new Qe(0,Yn-Ku[0].length,Yn)))),mn=="rtl"?ms.reverse():ms}}();function pn(ie,ae){var ce=ie.order;return ce==null&&(ce=ie.order=Mt(ie.text,ae)),ce}var dn=[],Jt=function(ie,ae,ce){if(ie.addEventListener)ie.addEventListener(ae,ce,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,ce);else{var de=ie._handlers||(ie._handlers={});de[ae]=(de[ae]||dn).concat(ce)}};function Rn(ie,ae){return ie._handlers&&ie._handlers[ae]||dn}function Tn(ie,ae,ce){if(ie.removeEventListener)ie.removeEventListener(ae,ce,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,ce);else{var de=ie._handlers,pe=de&&de[ae];if(pe){var Me=wt(pe,ce);Me>-1&&(de[ae]=pe.slice(0,Me).concat(pe.slice(Me+1)))}}}function Et(ie,ae){var ce=Rn(ie,ae);if(ce.length)for(var de=Array.prototype.slice.call(arguments,2),pe=0;pe<ce.length;++pe)ce[pe].apply(null,de)}function cn(ie,ae,ce){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),Et(ie,ce||ae.type,ie,ae),ci(ae)||ae.codemirrorIgnore}function On(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var ce=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),de=0;de<ae.length;++de)wt(ce,ae[de])==-1&&ce.push(ae[de])}function Ct(ie,ae){return Rn(ie,ae).length>0}function _n(ie){ie.prototype.on=function(ae,ce){Jt(this,ae,ce)},ie.prototype.off=function(ae,ce){Tn(this,ae,ce)}}function ui(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function Ci(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function ci(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Hi(ie){ui(ie),Ci(ie)}function qi(ie){return ie.target||ie.srcElement}function Xi(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),he&&ie.ctrlKey&&ae==1&&(ae=3),ae}var eo=function(){if(Ue&&Je<9)return!1;var ie=Xe("div");return"draggable"in ie||"dragDrop"in ie}(),Oo;function vo(ie){if(Oo==null){var ae=Xe("span","\u200B");nt(ie,Xe("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(Oo=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Ue&&Je<8))}var ce=Oo?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ce.setAttribute("cm-text",""),ce}var Ri;function Co(ie){if(Ri!=null)return Ri;var ae=nt(ie,document.createTextNode("A\u062EA")),ce=Ze(ae,0,1).getBoundingClientRect(),de=Ze(ae,1,2).getBoundingClientRect();return We(ie),!ce||ce.left==ce.right?!1:Ri=de.right-ce.right<3}var Bn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,ce=[],de=ie.length;ae<=de;){var pe=ie.indexOf(`
|
|
|
`,ae);pe==-1&&(pe=ie.length);var Me=ie.slice(ae,ie.charAt(pe-1)=="\r"?pe-1:pe),ze=Me.indexOf("\r");ze!=-1?(ce.push(Me.slice(0,ze)),ae+=ze+1):(ce.push(Me),ae=pe+1)}return ce}:function(ie){return ie.split(/\r\n?|\n/)},be=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(ce){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},Mi=function(){var ie=Xe("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Ei=null;function Dt(ie){if(Ei!=null)return Ei;var ae=nt(ie,Xe("span","x")),ce=ae.getBoundingClientRect(),de=Ze(ae,0,1).getBoundingClientRect();return Ei=Math.abs(ce.left-de.left)>1}var En={},Fn={};function Jn(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),En[ie]=ae}function wn(ie,ae){Fn[ie]=ae}function Nn(ie){if(typeof ie=="string"&&Fn.hasOwnProperty(ie))ie=Fn[ie];else if(ie&&typeof ie.name=="string"&&Fn.hasOwnProperty(ie.name)){var ae=Fn[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Le(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Nn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Nn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function ct(ie,ae){ae=Nn(ae);var ce=En[ae.name];if(!ce)return ct(ie,"text/plain");var de=ce(ie,ae);if(Pt.hasOwnProperty(ae.name)){var pe=Pt[ae.name];for(var Me in pe)pe.hasOwnProperty(Me)&&(de.hasOwnProperty(Me)&&(de["_"+Me]=de[Me]),de[Me]=pe[Me])}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 Pt={};function Re(ie,ae){var ce=Pt.hasOwnProperty(ie)?Pt[ie]:Pt[ie]={};yn(ae,ce)}function Tt(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ce={};for(var de in ae){var pe=ae[de];pe instanceof Array&&(pe=pe.concat([])),ce[de]=pe}return ce}function _t(ie,ae){for(var ce;ie.innerMode&&(ce=ie.innerMode(ae),!(!ce||ce.mode==ie));)ae=ce.state,ie=ce.mode;return ce||{mode:ie,state:ae}}function ht(ie,ae,ce){return ie.startState?ie.startState(ae,ce):!0}var Ye=function(ie,ae,ce){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ce};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),ce;if(typeof ie=="string"?ce=ae==ie:ce=ae&&(ie.test?ie.test(ae):ie(ae)),ce)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=vt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?vt(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return vt(this.string,null,this.tabSize)-(this.lineStart?vt(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.match=function(ie,ae,ce){if(typeof ie=="string"){var de=function(ze){return ce?ze.toLowerCase():ze},pe=this.string.substr(this.pos,ie.length);if(de(pe)==de(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Me=this.string.slice(this.pos).match(ie);return Me&&Me.index>0?null:(Me&&ae!==!1&&(this.pos+=Me[0].length),Me)}},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 Wt(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 ce=ie;!ce.lines;)for(var de=0;;++de){var pe=ce.children[de],Me=pe.chunkSize();if(ae<Me){ce=pe;break}ae-=Me}return ce.lines[ae]}function Ut(ie,ae,ce){var de=[],pe=ae.line;return ie.iter(ae.line,ce.line+1,function(Me){var ze=Me.text;pe==ce.line&&(ze=ze.slice(0,ce.ch)),pe==ae.line&&(ze=ze.slice(ae.ch)),de.push(ze),++pe}),de}function fn(ie,ae,ce){var de=[];return ie.iter(ae,ce,function(pe){de.push(pe.text)}),de}function Dn(ie,ae){var ce=ae-ie.height;if(ce)for(var de=ie;de;de=de.parent)de.height+=ce}function at(ie){if(ie.parent==null)return null;for(var ae=ie.parent,ce=wt(ae.lines,ie),de=ae.parent;de;ae=de,de=de.parent)for(var pe=0;de.children[pe]!=ae;++pe)ce+=de.children[pe].chunkSize();return ce+ae.first}function ln(ie,ae){var ce=ie.first;e:do{for(var de=0;de<ie.children.length;++de){var pe=ie.children[de],Me=pe.height;if(ae<Me){ie=pe;continue e}ae-=Me,ce+=pe.chunkSize()}return ce}while(!ie.lines);for(var ze=0;ze<ie.lines.length;++ze){var qe=ie.lines[ze],Qe=qe.height;if(ae<Qe)break;ae-=Qe}return ce+ze}function Hn(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function ii(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function jt(ie,ae,ce){if(ce===void 0&&(ce=null),!(this instanceof jt))return new jt(ie,ae,ce);this.line=ie,this.ch=ae,this.sticky=ce}function sn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function It(ie,ae){return ie.sticky==ae.sticky&&sn(ie,ae)==0}function on(ie){return jt(ie.line,ie.ch)}function qt(ie,ae){return sn(ie,ae)<0?ae:ie}function en(ie,ae){return sn(ie,ae)<0?ie:ae}function xn(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function Pn(ie,ae){if(ae.line<ie.first)return jt(ie.first,0);var ce=ie.first+ie.size-1;return ae.line>ce?jt(ce,Wt(ie,ce).text.length):An(ae,Wt(ie,ae.line).text.length)}function An(ie,ae){var ce=ie.ch;return ce==null||ce>ae?jt(ie.line,ae):ce<0?jt(ie.line,0):ie}function Wn(ie,ae){for(var ce=[],de=0;de<ae.length;de++)ce[de]=Pn(ie,ae[de]);return ce}var pi=function(ie,ae){this.state=ie,this.lookAhead=ae},Yt=function(ie,ae,ce,de){this.state=ae,this.doc=ie,this.line=ce,this.maxLookAhead=de||0,this.baseTokens=null,this.baseTokenPos=1};Yt.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},Yt.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}},Yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yt.fromSaved=function(ie,ae,ce){return ae instanceof pi?new Yt(ie,Tt(ie.mode,ae.state),ce,ae.lookAhead):new Yt(ie,Tt(ie.mode,ae),ce)},Yt.prototype.save=function(ie){var ae=ie!==!1?Tt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pi(ae,this.maxLookAhead):ae};function bi(ie,ae,ce,de){var pe=[ie.state.modeGen],Me={};Ki(ie,ae.text,ie.doc.mode,ce,function(St,mn){return pe.push(St,mn)},Me,de);for(var ze=ce.state,qe=function(St){ce.baseTokens=pe;var mn=ie.state.overlays[St],kt=1,Yn=0;ce.state=!0,Ki(ie,ae.text,mn.mode,ce,function(Zn,Li){for(var Oi=kt;Yn<Zn;){var Ui=pe[kt];Ui>Zn&&pe.splice(kt,1,Zn,pe[kt+1],Ui),kt+=2,Yn=Math.min(Zn,Ui)}if(Li)if(mn.opaque)pe.splice(Oi,kt-Oi,Zn,"overlay "+Li),kt=Oi+2;else for(;Oi<kt;Oi+=2){var mo=pe[Oi+1];pe[Oi+1]=(mo?mo+" ":"")+"overlay "+Li}},Me),ce.state=ze,ce.baseTokens=null,ce.baseTokenPos=1},Qe=0;Qe<ie.state.overlays.length;++Qe)qe(Qe);return{styles:pe,classes:Me.bgClass||Me.textClass?Me:null}}function Di(ie,ae,ce){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var de=ki(ie,at(ae)),pe=ae.text.length>ie.options.maxHighlightLength&&Tt(ie.doc.mode,de.state),Me=bi(ie,ae,de);pe&&(de.state=pe),ae.stateAfter=de.save(!pe),ae.styles=Me.styles,Me.classes?ae.styleClasses=Me.classes:ae.styleClasses&&(ae.styleClasses=null),ce===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function ki(ie,ae,ce){var de=ie.doc,pe=ie.display;if(!de.mode.startState)return new Yt(de,!0,ae);var Me=ji(ie,ae,ce),ze=Me>de.first&&Wt(de,Me-1).stateAfter,qe=ze?Yt.fromSaved(de,ze,Me):new Yt(de,ht(de.mode),Me);return de.iter(Me,ae,function(Qe){nn(ie,Qe.text,qe);var St=qe.line;Qe.stateAfter=St==ae-1||St%5==0||St>=pe.viewFrom&&St<pe.viewTo?qe.save():null,qe.nextLine()}),ce&&(de.modeFrontier=qe.line),qe}function nn(ie,ae,ce,de){var pe=ie.doc.mode,Me=new Ye(ae,ie.options.tabSize,ce);for(Me.start=Me.pos=de||0,ae==""&&Xn(pe,ce.state);!Me.eol();)fi(pe,Me,ce.state),Me.start=Me.pos}function Xn(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var ce=_t(ie,ae);if(ce.mode.blankLine)return ce.mode.blankLine(ce.state)}}function fi(ie,ae,ce,de){for(var pe=0;pe<10;pe++){de&&(de[0]=_t(ie,ce).mode);var Me=ie.token(ae,ce);if(ae.pos>ae.start)return Me}throw new Error("Mode "+ie.name+" failed to advance stream.")}var wi=function(ie,ae,ce){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ce};function gi(ie,ae,ce,de){var pe=ie.doc,Me=pe.mode,ze;ae=Pn(pe,ae);var qe=Wt(pe,ae.line),Qe=ki(ie,ae.line,ce),St=new Ye(qe.text,ie.options.tabSize,Qe),mn;for(de&&(mn=[]);(de||St.pos<ae.ch)&&!St.eol();)St.start=St.pos,ze=fi(Me,St,Qe.state),de&&mn.push(new wi(St,ze,Tt(pe.mode,Qe.state)));return de?mn:new wi(St,ze,Qe.state)}function Bi(ie,ae){if(ie)for(;;){var ce=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ce)break;ie=ie.slice(0,ce.index)+ie.slice(ce.index+ce[0].length);var de=ce[1]?"bgClass":"textClass";ae[de]==null?ae[de]=ce[2]:new RegExp("(?:^|\\s)"+ce[2]+"(?:$|\\s)").test(ae[de])||(ae[de]+=" "+ce[2])}return ie}function Ki(ie,ae,ce,de,pe,Me,ze){var qe=ce.flattenSpans;qe==null&&(qe=ie.options.flattenSpans);var Qe=0,St=null,mn=new Ye(ae,ie.options.tabSize,de),kt,Yn=ie.options.addModeClass&&[null];for(ae==""&&Bi(Xn(ce,de.state),Me);!mn.eol();){if(mn.pos>ie.options.maxHighlightLength?(qe=!1,ze&&nn(ie,ae,de,mn.pos),mn.pos=ae.length,kt=null):kt=Bi(fi(ce,mn,de.state,Yn),Me),Yn){var Zn=Yn[0].name;Zn&&(kt="m-"+(kt?Zn+" "+kt:Zn))}if(!qe||St!=kt){for(;Qe<mn.start;)Qe=Math.min(mn.start,Qe+5e3),pe(Qe,St);St=kt}mn.start=mn.pos}for(;Qe<mn.pos;){var Li=Math.min(mn.pos,Qe+5e3);pe(Li,St),Qe=Li}}function ji(ie,ae,ce){for(var de,pe,Me=ie.doc,ze=ce?-1:ae-(ie.doc.mode.innerMode?1e3:100),qe=ae;qe>ze;--qe){if(qe<=Me.first)return Me.first;var Qe=Wt(Me,qe-1),St=Qe.stateAfter;if(St&&(!ce||qe+(St instanceof pi?St.lookAhead:0)<=Me.modeFrontier))return qe;var mn=vt(Qe.text,null,ie.options.tabSize);(pe==null||de>mn)&&(pe=qe-1,de=mn)}return pe}function Pi(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var ce=ie.first,de=ae-1;de>ce;de--){var pe=Wt(ie,de).stateAfter;if(pe&&(!(pe instanceof pi)||de+pe.lookAhead<ae)){ce=de+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ce)}}var Vi=!1,Ln=!1;function So(){Vi=!0}function Mn(){Ln=!0}function ro(ie,ae,ce){this.marker=ie,this.from=ae,this.to=ce}function No(ie,ae){if(ie)for(var ce=0;ce<ie.length;++ce){var de=ie[ce];if(de.marker==ae)return de}}function _i(ie,ae){for(var ce,de=0;de<ie.length;++de)ie[de]!=ae&&(ce||(ce=[])).push(ie[de]);return ce}function Go(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function ko(ie,ae,ce){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Me=ie[pe],ze=Me.marker,qe=Me.from==null||(ze.inclusiveLeft?Me.from<=ae:Me.from<ae);if(qe||Me.from==ae&&ze.type=="bookmark"&&(!ce||!Me.marker.insertLeft)){var Qe=Me.to==null||(ze.inclusiveRight?Me.to>=ae:Me.to>ae);(de||(de=[])).push(new ro(ze,Me.from,Qe?null:Me.to))}}return de}function Ii(ie,ae,ce){var de;if(ie)for(var pe=0;pe<ie.length;++pe){var Me=ie[pe],ze=Me.marker,qe=Me.to==null||(ze.inclusiveRight?Me.to>=ae:Me.to>ae);if(qe||Me.from==ae&&ze.type=="bookmark"&&(!ce||Me.marker.insertLeft)){var Qe=Me.from==null||(ze.inclusiveLeft?Me.from<=ae:Me.from<ae);(de||(de=[])).push(new ro(ze,Qe?null:Me.from-ae,Me.to==null?null:Me.to-ae))}}return de}function Ai(ie,ae){if(ae.full)return null;var ce=Hn(ie,ae.from.line)&&Wt(ie,ae.from.line).markedSpans,de=Hn(ie,ae.to.line)&&Wt(ie,ae.to.line).markedSpans;if(!ce&&!de)return null;var pe=ae.from.ch,Me=ae.to.ch,ze=sn(ae.from,ae.to)==0,qe=ko(ce,pe,ze),Qe=Ii(de,Me,ze),St=ae.text.length==1,mn=bt(ae.text).length+(St?pe:0);if(qe)for(var kt=0;kt<qe.length;++kt){var Yn=qe[kt];if(Yn.to==null){var Zn=No(Qe,Yn.marker);Zn?St&&(Yn.to=Zn.to==null?null:Zn.to+mn):Yn.to=pe}}if(Qe)for(var Li=0;Li<Qe.length;++Li){var Oi=Qe[Li];if(Oi.to!=null&&(Oi.to+=mn),Oi.from==null){var Ui=No(qe,Oi.marker);Ui||(Oi.from=mn,St&&(qe||(qe=[])).push(Oi))}else Oi.from+=mn,St&&(qe||(qe=[])).push(Oi)}qe&&(qe=Zi(qe)),Qe&&Qe!=qe&&(Qe=Zi(Qe));var mo=[qe];if(!St){var Zo=ae.text.length-2,To;if(Zo>0&&qe)for(var qo=0;qo<qe.length;++qo)qe[qo].to==null&&(To||(To=[])).push(new ro(qe[qo].marker,null,null));for(var kr=0;kr<Zo;++kr)mo.push(To);mo.push(Qe)}return mo}function Zi(ie){for(var ae=0;ae<ie.length;++ae){var ce=ie[ae];ce.from!=null&&ce.from==ce.to&&ce.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function yo(ie,ae,ce){var de=null;if(ie.iter(ae.line,ce.line+1,function(Zn){if(Zn.markedSpans)for(var Li=0;Li<Zn.markedSpans.length;++Li){var Oi=Zn.markedSpans[Li].marker;Oi.readOnly&&(!de||wt(de,Oi)==-1)&&(de||(de=[])).push(Oi)}}),!de)return null;for(var pe=[{from:ae,to:ce}],Me=0;Me<de.length;++Me)for(var ze=de[Me],qe=ze.find(0),Qe=0;Qe<pe.length;++Qe){var St=pe[Qe];if(!(sn(St.to,qe.from)<0||sn(St.from,qe.to)>0)){var mn=[Qe,1],kt=sn(St.from,qe.from),Yn=sn(St.to,qe.to);(kt<0||!ze.inclusiveLeft&&!kt)&&mn.push({from:St.from,to:qe.from}),(Yn>0||!ze.inclusiveRight&&!Yn)&&mn.push({from:qe.to,to:St.to}),pe.splice.apply(pe,mn),Qe+=mn.length-3}}return pe}function di(ie){var ae=ie.markedSpans;if(ae){for(var ce=0;ce<ae.length;++ce)ae[ce].marker.detachLine(ie);ie.markedSpans=null}}function Ke(ie,ae){if(ae){for(var ce=0;ce<ae.length;++ce)ae[ce].marker.attachLine(ie);ie.markedSpans=ae}}function Do(ie){return ie.inclusiveLeft?-1:0}function nr(ie){return ie.inclusiveRight?1:0}function xo(ie,ae){var ce=ie.lines.length-ae.lines.length;if(ce!=0)return ce;var de=ie.find(),pe=ae.find(),Me=sn(de.from,pe.from)||Do(ie)-Do(ae);if(Me)return-Me;var ze=sn(de.to,pe.to)||nr(ie)-nr(ae);return ze||ae.id-ie.id}function hr(ie,ae){var ce=Ln&&ie.markedSpans,de;if(ce)for(var pe=void 0,Me=0;Me<ce.length;++Me)pe=ce[Me],pe.marker.collapsed&&(ae?pe.from:pe.to)==null&&(!de||xo(de,pe.marker)<0)&&(de=pe.marker);return de}function Qo(ie){return hr(ie,!0)}function $i(ie){return hr(ie,!1)}function ao(ie,ae){var ce=Ln&&ie.markedSpans,de;if(ce)for(var pe=0;pe<ce.length;++pe){var Me=ce[pe];Me.marker.collapsed&&(Me.from==null||Me.from<ae)&&(Me.to==null||Me.to>ae)&&(!de||xo(de,Me.marker)<0)&&(de=Me.marker)}return de}function jo(ie,ae,ce,de,pe){var Me=Wt(ie,ae),ze=Ln&&Me.markedSpans;if(ze)for(var qe=0;qe<ze.length;++qe){var Qe=ze[qe];if(Qe.marker.collapsed){var St=Qe.marker.find(0),mn=sn(St.from,ce)||Do(Qe.marker)-Do(pe),kt=sn(St.to,de)||nr(Qe.marker)-nr(pe);if(!(mn>=0&&kt<=0||mn<=0&&kt>=0)&&(mn<=0&&(Qe.marker.inclusiveRight&&pe.inclusiveLeft?sn(St.to,ce)>=0:sn(St.to,ce)>0)||mn>=0&&(Qe.marker.inclusiveRight&&pe.inclusiveLeft?sn(St.from,de)<=0:sn(St.from,de)<0)))return!0}}}function Lo(ie){for(var ae;ae=Qo(ie);)ie=ae.find(-1,!0).line;return ie}function dr(ie){for(var ae;ae=$i(ie);)ie=ae.find(1,!0).line;return ie}function Pr(ie){for(var ae,ce;ae=$i(ie);)ie=ae.find(1,!0).line,(ce||(ce=[])).push(ie);return ce}function Yi(ie,ae){var ce=Wt(ie,ae),de=Lo(ce);return ce==de?ae:at(de)}function Qi(ie,ae){if(ae>ie.lastLine())return ae;var ce=Wt(ie,ae),de;if(!ti(ie,ce))return ae;for(;de=$i(ce);)ce=de.find(1,!0).line;return at(ce)+1}function ti(ie,ae){var ce=Ln&&ae.markedSpans;if(ce){for(var de=void 0,pe=0;pe<ce.length;++pe)if(de=ce[pe],!!de.marker.collapsed){if(de.from==null)return!0;if(!de.marker.widgetNode&&de.from==0&&de.marker.inclusiveLeft&&io(ie,ae,de))return!0}}}function io(ie,ae,ce){if(ce.to==null){var de=ce.marker.find(1,!0);return io(ie,de.line,No(de.line.markedSpans,ce.marker))}if(ce.marker.inclusiveRight&&ce.to==ae.text.length)return!0;for(var pe=void 0,Me=0;Me<ae.markedSpans.length;++Me)if(pe=ae.markedSpans[Me],pe.marker.collapsed&&!pe.marker.widgetNode&&pe.from==ce.to&&(pe.to==null||pe.to!=ce.from)&&(pe.marker.inclusiveLeft||ce.marker.inclusiveRight)&&io(ie,ae,pe))return!0}function ir(ie){ie=Lo(ie);for(var ae=0,ce=ie.parent,de=0;de<ce.lines.length;++de){var pe=ce.lines[de];if(pe==ie)break;ae+=pe.height}for(var Me=ce.parent;Me;ce=Me,Me=ce.parent)for(var ze=0;ze<Me.children.length;++ze){var qe=Me.children[ze];if(qe==ce)break;ae+=qe.height}return ae}function Ir(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,ce,de=ie;ce=Qo(de);){var pe=ce.find(0,!0);de=pe.from.line,ae+=pe.from.ch-pe.to.ch}for(de=ie;ce=$i(de);){var Me=ce.find(0,!0);ae-=de.text.length-Me.from.ch,de=Me.to.line,ae+=de.text.length-Me.to.ch}return ae}function mr(ie){var ae=ie.display,ce=ie.doc;ae.maxLine=Wt(ce,ce.first),ae.maxLineLength=Ir(ae.maxLine),ae.maxLineChanged=!0,ce.iter(function(de){var pe=Ir(de);pe>ae.maxLineLength&&(ae.maxLineLength=pe,ae.maxLine=de)})}var er=function(ie,ae,ce){this.text=ie,Ke(this,ae),this.height=ce?ce(this):1};er.prototype.lineNo=function(){return at(this)},_n(er);function Lr(ie,ae,ce,de){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),di(ie),Ke(ie,ce);var pe=de?de(ie):1;pe!=ie.height&&Dn(ie,pe)}function Ar(ie){ie.parent=null,di(ie)}var ra={},ua={};function wa(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ce=ae.addModeClass?ua:ra;return ce[ie]||(ce[ie]=ie.replace(/\S+/g,"cm-$&"))}function vn(ie,ae){var ce=dt("span",null,null,ke?"padding-right: .1px":null),de={pre:dt("pre",[ce],"CodeMirror-line"),content:ce,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var pe=0;pe<=(ae.rest?ae.rest.length:0);pe++){var Me=pe?ae.rest[pe-1]:ae.line,ze=void 0;de.pos=0,de.addToken=Us,Co(ie.display.measure)&&(ze=pn(Me,ie.doc.direction))&&(de.addToken=xr(de.addToken,ze)),de.map=[];var qe=ae!=ie.display.externalMeasured&&at(Me);da(Me,de,Di(ie,Me,qe)),Me.styleClasses&&(Me.styleClasses.bgClass&&(de.bgClass=Gt(Me.styleClasses.bgClass,de.bgClass||"")),Me.styleClasses.textClass&&(de.textClass=Gt(Me.styleClasses.textClass,de.textClass||""))),de.map.length==0&&de.map.push(0,0,de.content.appendChild(vo(ie.display.measure))),pe==0?(ae.measure.map=de.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(de.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(ke){var Qe=de.content.lastChild;(/\bcm-tab\b/.test(Qe.className)||Qe.querySelector&&Qe.querySelector(".cm-tab"))&&(de.content.className="cm-tab-wrap-hack")}return Et(ie,"renderLine",ie,ae.line,de.pre),de.pre.className&&(de.textClass=Gt(de.pre.className,de.textClass||"")),de}function ia(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 Us(ie,ae,ce,de,pe,Me,ze){if(ae){var qe=ie.splitSpaces?us(ae,ie.trailingSpace):ae,Qe=ie.cm.state.specialChars,St=!1,mn;if(!Qe.test(ae))ie.col+=ae.length,mn=document.createTextNode(qe),ie.map.push(ie.pos,ie.pos+ae.length,mn),Ue&&Je<9&&(St=!0),ie.pos+=ae.length;else{mn=document.createDocumentFragment();for(var kt=0;;){Qe.lastIndex=kt;var Yn=Qe.exec(ae),Zn=Yn?Yn.index-kt:ae.length-kt;if(Zn){var Li=document.createTextNode(qe.slice(kt,kt+Zn));Ue&&Je<9?mn.appendChild(Xe("span",[Li])):mn.appendChild(Li),ie.map.push(ie.pos,ie.pos+Zn,Li),ie.col+=Zn,ie.pos+=Zn}if(!Yn)break;kt+=Zn+1;var Oi=void 0;if(Yn[0]==" "){var Ui=ie.cm.options.tabSize,mo=Ui-ie.col%Ui;Oi=mn.appendChild(Xe("span",Gn(mo),"cm-tab")),Oi.setAttribute("role","presentation"),Oi.setAttribute("cm-text"," "),ie.col+=mo}else Yn[0]=="\r"||Yn[0]==`
|
|
|
`?(Oi=mn.appendChild(Xe("span",Yn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Oi.setAttribute("cm-text",Yn[0]),ie.col+=1):(Oi=ie.cm.options.specialCharPlaceholder(Yn[0]),Oi.setAttribute("cm-text",Yn[0]),Ue&&Je<9?mn.appendChild(Xe("span",[Oi])):mn.appendChild(Oi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,Oi),ie.pos++}}if(ie.trailingSpace=qe.charCodeAt(ae.length-1)==32,ce||de||pe||St||Me||ze){var Zo=ce||"";de&&(Zo+=de),pe&&(Zo+=pe);var To=Xe("span",[mn],Zo,Me);if(ze)for(var qo in ze)ze.hasOwnProperty(qo)&&qo!="style"&&qo!="class"&&To.setAttribute(qo,ze[qo]);return ie.content.appendChild(To)}ie.content.appendChild(mn)}}function us(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ce=ae,de="",pe=0;pe<ie.length;pe++){var Me=ie.charAt(pe);Me==" "&&ce&&(pe==ie.length-1||ie.charCodeAt(pe+1)==32)&&(Me="\xA0"),de+=Me,ce=Me==" "}return de}function xr(ie,ae){return function(ce,de,pe,Me,ze,qe,Qe){pe=pe?pe+" cm-force-border":"cm-force-border";for(var St=ce.pos,mn=St+de.length;;){for(var kt=void 0,Yn=0;Yn<ae.length&&(kt=ae[Yn],!(kt.to>St&&kt.from<=St));Yn++);if(kt.to>=mn)return ie(ce,de,pe,Me,ze,qe,Qe);ie(ce,de.slice(0,kt.to-St),pe,Me,null,qe,Qe),Me=null,de=de.slice(kt.to-St),St=kt.to}}}function or(ie,ae,ce,de){var pe=!de&&ce.widgetNode;pe&&ie.map.push(ie.pos,ie.pos+ae,pe),!de&&ie.cm.display.input.needsContentAttribute&&(pe||(pe=ie.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",ce.id)),pe&&(ie.cm.display.input.setUneditable(pe),ie.content.appendChild(pe)),ie.pos+=ae,ie.trailingSpace=!1}function da(ie,ae,ce){var de=ie.markedSpans,pe=ie.text,Me=0;if(!de){for(var ze=1;ze<ce.length;ze+=2)ae.addToken(ae,pe.slice(Me,Me=ce[ze]),wa(ce[ze+1],ae.cm.options));return}for(var qe=pe.length,Qe=0,St=1,mn="",kt,Yn,Zn=0,Li,Oi,Ui,mo,Zo;;){if(Zn==Qe){Li=Oi=Ui=Yn="",Zo=null,mo=null,Zn=1/0;for(var To=[],qo=void 0,kr=0;kr<de.length;++kr){var Ao=de[kr],Xr=Ao.marker;if(Xr.type=="bookmark"&&Ao.from==Qe&&Xr.widgetNode)To.push(Xr);else if(Ao.from<=Qe&&(Ao.to==null||Ao.to>Qe||Xr.collapsed&&Ao.to==Qe&&Ao.from==Qe)){if(Ao.to!=null&&Ao.to!=Qe&&Zn>Ao.to&&(Zn=Ao.to,Oi=""),Xr.className&&(Li+=" "+Xr.className),Xr.css&&(Yn=(Yn?Yn+";":"")+Xr.css),Xr.startStyle&&Ao.from==Qe&&(Ui+=" "+Xr.startStyle),Xr.endStyle&&Ao.to==Zn&&(qo||(qo=[])).push(Xr.endStyle,Ao.to),Xr.title&&((Zo||(Zo={})).title=Xr.title),Xr.attributes)for(var as in Xr.attributes)(Zo||(Zo={}))[as]=Xr.attributes[as];Xr.collapsed&&(!mo||xo(mo.marker,Xr)<0)&&(mo=Ao)}else Ao.from>Qe&&Zn>Ao.from&&(Zn=Ao.from)}if(qo)for(var Qs=0;Qs<qo.length;Qs+=2)qo[Qs+1]==Zn&&(Oi+=" "+qo[Qs]);if(!mo||mo.from==Qe)for(var ps=0;ps<To.length;++ps)or(ae,0,To[ps]);if(mo&&(mo.from||0)==Qe){if(or(ae,(mo.to==null?qe+1:mo.to)-Qe,mo.marker,mo.from==null),mo.to==null)return;mo.to==Qe&&(mo=!1)}}if(Qe>=qe)break;for(var _l=Math.min(qe,Zn);;){if(mn){var Nl=Qe+mn.length;if(!mo){var Ks=Nl>_l?mn.slice(0,_l-Qe):mn;ae.addToken(ae,Ks,kt?kt+Li:Li,Ui,Qe+Ks.length==Zn?Oi:"",Yn,Zo)}if(Nl>=_l){mn=mn.slice(_l-Qe),Qe=_l;break}Qe=Nl,Ui=""}mn=pe.slice(Me,Me=ce[St++]),kt=wa(ce[St++],ae.cm.options)}}}function Ro(ie,ae,ce){this.line=ae,this.rest=Pr(ae),this.size=this.rest?at(bt(this.rest))-ce+1:1,this.node=this.text=null,this.hidden=ti(ie,ae)}function lo(ie,ae,ce){for(var de=[],pe,Me=ae;Me<ce;Me=pe){var ze=new Ro(ie.doc,Wt(ie.doc,Me),Me);pe=Me+ze.size,de.push(ze)}return de}var Ko=null;function Wr(ie){Ko?Ko.ops.push(ie):ie.ownsGroup=Ko={ops:[ie],delayedCallbacks:[]}}function no(ie){var ae=ie.delayedCallbacks,ce=0;do{for(;ce<ae.length;ce++)ae[ce].call(null);for(var de=0;de<ie.ops.length;de++){var pe=ie.ops[de];if(pe.cursorActivityHandlers)for(;pe.cursorActivityCalled<pe.cursorActivityHandlers.length;)pe.cursorActivityHandlers[pe.cursorActivityCalled++].call(null,pe.cm)}}while(ce<ae.length)}function Io(ie,ae){var ce=ie.ownsGroup;if(ce)try{no(ce)}finally{Ko=null,ae(ce)}}var Fo=null;function vi(ie,ae){var ce=Rn(ie,ae);if(ce.length){var de=Array.prototype.slice.call(arguments,2),pe;Ko?pe=Ko.delayedCallbacks:Fo?pe=Fo:(pe=Fo=[],setTimeout(Zr,0));for(var Me=function(qe){pe.push(function(){return ce[qe].apply(null,de)})},ze=0;ze<ce.length;++ze)Me(ze)}}function Zr(){var ie=Fo;Fo=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function Yr(ie,ae,ce,de){for(var pe=0;pe<ae.changes.length;pe++){var Me=ae.changes[pe];Me=="text"?xi(ie,ae):Me=="gutter"?_r(ie,ae,ce,de):Me=="class"?Jr(ie,ae):Me=="widget"&&es(ie,ae,de)}ae.changes=null}function qa(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),Ue&&Je<8&&(ie.node.style.zIndex=2)),ie.node}function bs(ie,ae){var ce=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(ce&&(ce+=" CodeMirror-linebackground"),ae.background)ce?ae.background.className=ce:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(ce){var de=qa(ae);ae.background=de.insertBefore(Xe("div",null,ce),de.firstChild),ie.display.input.setUneditable(ae.background)}}function vs(ie,ae){var ce=ie.display.externalMeasured;return ce&&ce.line==ae.line?(ie.display.externalMeasured=null,ae.measure=ce.measure,ce.built):vn(ie,ae)}function xi(ie,ae){var ce=ae.text.className,de=vs(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,Jr(ie,ae)):ce&&(ae.text.className=ce)}function Jr(ie,ae){bs(ie,ae),ae.line.wrapClass?qa(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var ce=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=ce||""}function _r(ie,ae,ce,de){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var pe=qa(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),pe.insertBefore(ae.gutterBackground,ae.text)}var Me=ae.line.gutterMarkers;if(ie.options.lineNumbers||Me){var ze=qa(ae),qe=ae.gutter=Xe("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?de.fixedPos:-de.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(qe),ze.insertBefore(qe,ae.text),ae.line.gutterClass&&(qe.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Me||!Me["CodeMirror-linenumbers"])&&(ae.lineNumber=qe.appendChild(Xe("div",ii(ie.options,ce),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+de.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Me)for(var Qe=0;Qe<ie.display.gutterSpecs.length;++Qe){var St=ie.display.gutterSpecs[Qe].className,mn=Me.hasOwnProperty(St)&&Me[St];mn&&qe.appendChild(Xe("div",[mn],"CodeMirror-gutter-elt","left: "+de.gutterLeft[St]+"px; width: "+de.gutterWidth[St]+"px"))}}}function es(ie,ae,ce){ae.alignable&&(ae.alignable=null);for(var de=Be("CodeMirror-linewidget"),pe=ae.node.firstChild,Me=void 0;pe;pe=Me)Me=pe.nextSibling,de.test(pe.className)&&ae.node.removeChild(pe);gl(ie,ae,ce)}function Xs(ie,ae,ce,de){var pe=vs(ie,ae);return ae.text=ae.node=pe.pre,pe.bgClass&&(ae.bgClass=pe.bgClass),pe.textClass&&(ae.textClass=pe.textClass),Jr(ie,ae),_r(ie,ae,ce,de),gl(ie,ae,de),ae.node}function gl(ie,ae,ce){if(Uo(ie,ae.line,ae,ce,!0),ae.rest)for(var de=0;de<ae.rest.length;de++)Uo(ie,ae.rest[de],ae,ce,!1)}function Uo(ie,ae,ce,de,pe){if(ae.widgets)for(var Me=qa(ce),ze=0,qe=ae.widgets;ze<qe.length;++ze){var Qe=qe[ze],St=Xe("div",[Qe.node],"CodeMirror-linewidget"+(Qe.className?" "+Qe.className:""));Qe.handleMouseEvents||St.setAttribute("cm-ignore-events","true"),Ru(Qe,St,ce,de),ie.display.input.setUneditable(St),pe&&Qe.above?Me.insertBefore(St,ce.gutter||ce.text):Me.appendChild(St),vi(Qe,"redraw")}}function Ru(ie,ae,ce,de){if(ie.noHScroll){(ce.alignable||(ce.alignable=[])).push(ae);var pe=de.wrapperWidth;ae.style.left=de.fixedPos+"px",ie.coverGutter||(pe-=de.gutterTotalWidth,ae.style.paddingLeft=de.gutterTotalWidth+"px"),ae.style.width=pe+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-de.gutterTotalWidth+"px"))}function Rs(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!Zt(document.body,ie.node)){var ce="position: relative;";ie.coverGutter&&(ce+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ce+="width: "+ae.display.wrapper.clientWidth+"px;"),nt(ae.display.measure,Xe("div",[ie.node],null,ce))}return ie.height=ie.node.parentNode.offsetHeight}function As(ie,ae){for(var ce=qi(ae);ce!=ie.wrapper;ce=ce.parentNode)if(!ce||ce.nodeType==1&&ce.getAttribute("cm-ignore-events")=="true"||ce.parentNode==ie.sizer&&ce!=ie.mover)return!0}function Ds(ie){return ie.lineSpace.offsetTop}function Zl(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function ou(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=nt(ie.measure,Xe("pre","x","CodeMirror-line-like")),ce=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,de={left:parseInt(ce.paddingLeft),right:parseInt(ce.paddingRight)};return!isNaN(de.left)&&!isNaN(de.right)&&(ie.cachedPaddingH=de),de}function js(ie){return tn-ie.display.nativeBarWidth}function Ys(ie){return ie.display.scroller.clientWidth-js(ie)-ie.display.barWidth}function Pu(ie){return ie.display.scroller.clientHeight-js(ie)-ie.display.barHeight}function Nh(ie,ae,ce){var de=ie.options.lineWrapping,pe=de&&Ys(ie);if(!ae.measure.heights||de&&ae.measure.width!=pe){var Me=ae.measure.heights=[];if(de){ae.measure.width=pe;for(var ze=ae.text.firstChild.getClientRects(),qe=0;qe<ze.length-1;qe++){var Qe=ze[qe],St=ze[qe+1];Math.abs(Qe.bottom-St.bottom)>2&&Me.push((Qe.bottom+St.top)/2-ce.top)}}Me.push(ce.bottom-ce.top)}}function ph(ie,ae,ce){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var de=0;de<ie.rest.length;de++)if(ie.rest[de]==ae)return{map:ie.measure.maps[de],cache:ie.measure.caches[de]};for(var pe=0;pe<ie.rest.length;pe++)if(at(ie.rest[pe])>ce)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe],before:!0}}function kh(ie,ae){ae=Lo(ae);var ce=at(ae),de=ie.display.externalMeasured=new Ro(ie.doc,ae,ce);de.lineN=ce;var pe=de.built=vn(ie,de);return de.text=pe.pre,nt(ie.display.lineMeasure,pe.pre),de}function _u(ie,ae,ce,de){return pl(ie,ru(ie,ae),ce,de)}function ju(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[zs(ie,ae)];var ce=ie.display.externalMeasured;if(ce&&ae>=ce.lineN&&ae<ce.lineN+ce.size)return ce}function ru(ie,ae){var ce=at(ae),de=ju(ie,ce);de&&!de.text?de=null:de&&de.changes&&(Yr(ie,de,ce,nd(ie)),ie.curOp.forceUpdate=!0),de||(de=kh(ie,ae));var pe=ph(de,ae,ce);return{line:ae,view:de,rect:null,map:pe.map,cache:pe.cache,before:pe.before,hasHeights:!1}}function pl(ie,ae,ce,de,pe){ae.before&&(ce=-1);var Me=ce+(de||""),ze;return ae.cache.hasOwnProperty(Me)?ze=ae.cache[Me]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(Nh(ie,ae.view,ae.rect),ae.hasHeights=!0),ze=sr(ie,ae,ce,de),ze.bogus||(ae.cache[Me]=ze)),{left:ze.left,right:ze.right,top:pe?ze.rtop:ze.top,bottom:pe?ze.rbottom:ze.bottom}}var Ah={left:0,right:0,top:0,bottom:0};function qu(ie,ae,ce){for(var de,pe,Me,ze,qe,Qe,St=0;St<ie.length;St+=3)if(qe=ie[St],Qe=ie[St+1],ae<qe?(pe=0,Me=1,ze="left"):ae<Qe?(pe=ae-qe,Me=pe+1):(St==ie.length-3||ae==Qe&&ie[St+3]>ae)&&(Me=Qe-qe,pe=Me-1,ae>=Qe&&(ze="right")),pe!=null){if(de=ie[St+2],qe==Qe&&ce==(de.insertLeft?"left":"right")&&(ze=ce),ce=="left"&&pe==0)for(;St&&ie[St-2]==ie[St-3]&&ie[St-1].insertLeft;)de=ie[(St-=3)+2],ze="left";if(ce=="right"&&pe==Qe-qe)for(;St<ie.length-3&&ie[St+3]==ie[St+4]&&!ie[St+5].insertLeft;)de=ie[(St+=3)+2],ze="right";break}return{node:de,start:pe,end:Me,collapse:ze,coverStart:qe,coverEnd:Qe}}function au(ie,ae){var ce=Ah;if(ae=="left")for(var de=0;de<ie.length&&(ce=ie[de]).left==ce.right;de++);else for(var pe=ie.length-1;pe>=0&&(ce=ie[pe]).left==ce.right;pe--);return ce}function sr(ie,ae,ce,de){var pe=qu(ae.map,ce,de),Me=pe.node,ze=pe.start,qe=pe.end,Qe=pe.collapse,St;if(Me.nodeType==3){for(var mn=0;mn<4;mn++){for(;ze&&mt(ae.line.text.charAt(pe.coverStart+ze));)--ze;for(;pe.coverStart+qe<pe.coverEnd&&mt(ae.line.text.charAt(pe.coverStart+qe));)++qe;if(Ue&&Je<9&&ze==0&&qe==pe.coverEnd-pe.coverStart?St=Me.parentNode.getBoundingClientRect():St=au(Ze(Me,ze,qe).getClientRects(),de),St.left||St.right||ze==0)break;qe=ze,ze=ze-1,Qe="right"}Ue&&Je<11&&(St=un(ie.display.measure,St))}else{ze>0&&(Qe=de="right");var kt;ie.options.lineWrapping&&(kt=Me.getClientRects()).length>1?St=kt[de=="right"?kt.length-1:0]:St=Me.getBoundingClientRect()}if(Ue&&Je<9&&!ze&&(!St||!St.left&&!St.right)){var Yn=Me.parentNode.getClientRects()[0];Yn?St={left:Yn.left,right:Yn.left+zu(ie.display),top:Yn.top,bottom:Yn.bottom}:St=Ah}for(var Zn=St.top-ae.rect.top,Li=St.bottom-ae.rect.top,Oi=(Zn+Li)/2,Ui=ae.view.measure.heights,mo=0;mo<Ui.length-1&&!(Oi<Ui[mo]);mo++);var Zo=mo?Ui[mo-1]:0,To=Ui[mo],qo={left:(Qe=="right"?St.right:St.left)-ae.rect.left,right:(Qe=="left"?St.left:St.right)-ae.rect.left,top:Zo,bottom:To};return!St.left&&!St.right&&(qo.bogus=!0),ie.options.singleCursorHeightPerLine||(qo.rtop=Zn,qo.rbottom=Li),qo}function un(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Dt(ie))return ae;var ce=screen.logicalXDPI/screen.deviceXDPI,de=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*ce,right:ae.right*ce,top:ae.top*de,bottom:ae.bottom*de}}function Es(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 ts(ie){ie.display.externalMeasure=null,We(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)Es(ie.display.view[ae])}function Ta(ie){ts(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function La(){return Lt&&te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Pa(){return Lt&&te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ga(ie){var ae=0;if(ie.widgets)for(var ce=0;ce<ie.widgets.length;++ce)ie.widgets[ce].above&&(ae+=Rs(ie.widgets[ce]));return ae}function Ka(ie,ae,ce,de,pe){if(!pe){var Me=Ga(ae);ce.top+=Me,ce.bottom+=Me}if(de=="line")return ce;de||(de="local");var ze=ir(ae);if(de=="local"?ze+=Ds(ie.display):ze-=ie.display.viewOffset,de=="page"||de=="window"){var qe=ie.display.lineSpace.getBoundingClientRect();ze+=qe.top+(de=="window"?0:Pa());var Qe=qe.left+(de=="window"?0:La());ce.left+=Qe,ce.right+=Qe}return ce.top+=ze,ce.bottom+=ze,ce}function Vl(ie,ae,ce){if(ce=="div")return ae;var de=ae.left,pe=ae.top;if(ce=="page")de-=La(),pe-=Pa();else if(ce=="local"||!ce){var Me=ie.display.sizer.getBoundingClientRect();de+=Me.left,pe+=Me.top}var ze=ie.display.lineSpace.getBoundingClientRect();return{left:de-ze.left,top:pe-ze.top}}function Cl(ie,ae,ce,de,pe){return de||(de=Wt(ie.doc,ae.line)),Ka(ie,de,_u(ie,de,ae.ch,pe),ce)}function Oa(ie,ae,ce,de,pe,Me){de=de||Wt(ie.doc,ae.line),pe||(pe=ru(ie,de));function ze(Li,Oi){var Ui=pl(ie,pe,Li,Oi?"right":"left",Me);return Oi?Ui.left=Ui.right:Ui.right=Ui.left,Ka(ie,de,Ui,ce)}var qe=pn(de,ie.doc.direction),Qe=ae.ch,St=ae.sticky;if(Qe>=de.text.length?(Qe=de.text.length,St="before"):Qe<=0&&(Qe=0,St="after"),!qe)return ze(St=="before"?Qe-1:Qe,St=="before");function mn(Li,Oi,Ui){var mo=qe[Oi],Zo=mo.level==1;return ze(Ui?Li-1:Li,Zo!=Ui)}var kt=rt(qe,Qe,St),Yn=ft,Zn=mn(Qe,kt,St=="before");return Yn!=null&&(Zn.other=mn(Qe,Yn,St!="before")),Zn}function ca(ie,ae){var ce=0;ae=Pn(ie.doc,ae),ie.options.lineWrapping||(ce=zu(ie.display)*ae.ch);var de=Wt(ie.doc,ae.line),pe=ir(de)+Ds(ie.display);return{left:ce,right:ce,top:pe,bottom:pe+de.height}}function Dh(ie,ae,ce,de,pe){var Me=jt(ie,ae,ce);return Me.xRel=pe,de&&(Me.outside=de),Me}function bl(ie,ae,ce){var de=ie.doc;if(ce+=ie.display.viewOffset,ce<0)return Dh(de.first,0,null,-1,-1);var pe=ln(de,ce),Me=de.first+de.size-1;if(pe>Me)return Dh(de.first+de.size-1,Wt(de,Me).text.length,null,1,1);ae<0&&(ae=0);for(var ze=Wt(de,pe);;){var qe=ni(ie,ze,pe,ae,ce),Qe=ao(ze,qe.ch+(qe.xRel>0||qe.outside>0?1:0));if(!Qe)return qe;var St=Qe.find(1);if(St.line==pe)return St;ze=Wt(de,pe=St.line)}}function Mo(ie,ae,ce,de){de-=Ga(ae);var pe=ae.text.length,Me=Ve(function(ze){return pl(ie,ce,ze-1).bottom<=de},pe,0);return pe=Ve(function(ze){return pl(ie,ce,ze).top>de},Me,pe),{begin:Me,end:pe}}function Bh(ie,ae,ce,de){ce||(ce=ru(ie,ae));var pe=Ka(ie,ae,pl(ie,ce,de),"line").top;return Mo(ie,ae,ce,pe)}function Bt(ie,ae,ce,de){return ie.bottom<=ce?!1:ie.top>ce?!0:(de?ie.left:ie.right)>ae}function ni(ie,ae,ce,de,pe){pe-=ir(ae);var Me=ru(ie,ae),ze=Ga(ae),qe=0,Qe=ae.text.length,St=!0,mn=pn(ae,ie.doc.direction);if(mn){var kt=(ie.options.lineWrapping?$d:wd)(ie,ae,ce,Me,mn,de,pe);St=kt.level!=1,qe=St?kt.from:kt.to-1,Qe=St?kt.to:kt.from-1}var Yn=null,Zn=null,Li=Ve(function(kr){var Ao=pl(ie,Me,kr);return Ao.top+=ze,Ao.bottom+=ze,Bt(Ao,de,pe,!1)?(Ao.top<=pe&&Ao.left<=de&&(Yn=kr,Zn=Ao),!0):!1},qe,Qe),Oi,Ui,mo=!1;if(Zn){var Zo=de-Zn.left<Zn.right-de,To=Zo==St;Li=Yn+(To?0:1),Ui=To?"after":"before",Oi=Zo?Zn.left:Zn.right}else{!St&&(Li==Qe||Li==qe)&&Li++,Ui=Li==0?"after":Li==ae.text.length?"before":pl(ie,Me,Li-(St?1:0)).bottom+ze<=pe==St?"after":"before";var qo=Oa(ie,jt(ce,Li,Ui),"line",ae,Me);Oi=qo.left,mo=pe<qo.top?-1:pe>=qo.bottom?1:0}return Li=et(ae.text,Li,1),Dh(ce,Li,Ui,mo,de-Oi)}function wd(ie,ae,ce,de,pe,Me,ze){var qe=Ve(function(kt){var Yn=pe[kt],Zn=Yn.level!=1;return Bt(Oa(ie,jt(ce,Zn?Yn.to:Yn.from,Zn?"before":"after"),"line",ae,de),Me,ze,!0)},0,pe.length-1),Qe=pe[qe];if(qe>0){var St=Qe.level!=1,mn=Oa(ie,jt(ce,St?Qe.from:Qe.to,St?"after":"before"),"line",ae,de);Bt(mn,Me,ze,!0)&&mn.top>ze&&(Qe=pe[qe-1])}return Qe}function $d(ie,ae,ce,de,pe,Me,ze){var qe=Mo(ie,ae,de,ze),Qe=qe.begin,St=qe.end;/\s/.test(ae.text.charAt(St-1))&&St--;for(var mn=null,kt=null,Yn=0;Yn<pe.length;Yn++){var Zn=pe[Yn];if(!(Zn.from>=St||Zn.to<=Qe)){var Li=Zn.level!=1,Oi=pl(ie,de,Li?Math.min(St,Zn.to)-1:Math.max(Qe,Zn.from)).right,Ui=Oi<Me?Me-Oi+1e9:Oi-Me;(!mn||kt>Ui)&&(mn=Zn,kt=Ui)}}return mn||(mn=pe[pe.length-1]),mn.from<Qe&&(mn={from:Qe,to:mn.to,level:mn.level}),mn.to>St&&(mn={from:mn.from,to:St,level:mn.level}),mn}var Cu;function bu(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(Cu==null){Cu=Xe("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)Cu.appendChild(document.createTextNode("x")),Cu.appendChild(Xe("br"));Cu.appendChild(document.createTextNode("x"))}nt(ie.measure,Cu);var ce=Cu.offsetHeight/50;return ce>3&&(ie.cachedTextHeight=ce),We(ie.measure),ce||1}function zu(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Xe("span","xxxxxxxxxx"),ce=Xe("pre",[ae],"CodeMirror-line-like");nt(ie.measure,ce);var de=ae.getBoundingClientRect(),pe=(de.right-de.left)/10;return pe>2&&(ie.cachedCharWidth=pe),pe||10}function nd(ie){for(var ae=ie.display,ce={},de={},pe=ae.gutters.clientLeft,Me=ae.gutters.firstChild,ze=0;Me;Me=Me.nextSibling,++ze){var qe=ie.display.gutterSpecs[ze].className;ce[qe]=Me.offsetLeft+Me.clientLeft+pe,de[qe]=Me.clientWidth}return{fixedPos:mh(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ce,gutterWidth:de,wrapperWidth:ae.wrapper.clientWidth}}function mh(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function Za(ie){var ae=bu(ie.display),ce=ie.options.lineWrapping,de=ce&&Math.max(5,ie.display.scroller.clientWidth/zu(ie.display)-3);return function(pe){if(ti(ie.doc,pe))return 0;var Me=0;if(pe.widgets)for(var ze=0;ze<pe.widgets.length;ze++)pe.widgets[ze].height&&(Me+=pe.widgets[ze].height);return ce?Me+(Math.ceil(pe.text.length/de)||1)*ae:Me+ae}}function tr(ie){var ae=ie.doc,ce=Za(ie);ae.iter(function(de){var pe=ce(de);pe!=de.height&&Dn(de,pe)})}function tl(ie,ae,ce,de){var pe=ie.display;if(!ce&&qi(ae).getAttribute("cm-not-content")=="true")return null;var Me,ze,qe=pe.lineSpace.getBoundingClientRect();try{Me=ae.clientX-qe.left,ze=ae.clientY-qe.top}catch(kt){return null}var Qe=bl(ie,Me,ze),St;if(de&&Qe.xRel>0&&(St=Wt(ie.doc,Qe.line).text).length==Qe.ch){var mn=vt(St,St.length,ie.options.tabSize)-St.length;Qe=jt(Qe.line,Math.max(0,Math.round((Me-ou(ie.display).left)/zu(ie.display))-mn))}return Qe}function zs(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ce=ie.display.view,de=0;de<ce.length;de++)if(ae-=ce[de].size,ae<0)return de}function Fa(ie,ae,ce,de){ae==null&&(ae=ie.doc.first),ce==null&&(ce=ie.doc.first+ie.doc.size),de||(de=0);var pe=ie.display;if(de&&ce<pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>ae)&&(pe.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=pe.viewTo)Ln&&Yi(ie.doc,ae)<pe.viewTo&&cr(ie);else if(ce<=pe.viewFrom)Ln&&Qi(ie.doc,ce+de)>pe.viewFrom?cr(ie):(pe.viewFrom+=de,pe.viewTo+=de);else if(ae<=pe.viewFrom&&ce>=pe.viewTo)cr(ie);else if(ae<=pe.viewFrom){var Me=Cr(ie,ce,ce+de,1);Me?(pe.view=pe.view.slice(Me.index),pe.viewFrom=Me.lineN,pe.viewTo+=de):cr(ie)}else if(ce>=pe.viewTo){var ze=Cr(ie,ae,ae,-1);ze?(pe.view=pe.view.slice(0,ze.index),pe.viewTo=ze.lineN):cr(ie)}else{var qe=Cr(ie,ae,ae,-1),Qe=Cr(ie,ce,ce+de,1);qe&&Qe?(pe.view=pe.view.slice(0,qe.index).concat(lo(ie,qe.lineN,Qe.lineN)).concat(pe.view.slice(Qe.index)),pe.viewTo+=de):cr(ie)}var St=pe.externalMeasured;St&&(ce<St.lineN?St.lineN+=de:ae<St.lineN+St.size&&(pe.externalMeasured=null))}function yi(ie,ae,ce){ie.curOp.viewChanged=!0;var de=ie.display,pe=ie.display.externalMeasured;if(pe&&ae>=pe.lineN&&ae<pe.lineN+pe.size&&(de.externalMeasured=null),!(ae<de.viewFrom||ae>=de.viewTo)){var Me=de.view[zs(ie,ae)];if(Me.node!=null){var ze=Me.changes||(Me.changes=[]);wt(ze,ce)==-1&&ze.push(ce)}}}function cr(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function Cr(ie,ae,ce,de){var pe=zs(ie,ae),Me,ze=ie.display.view;if(!Ln||ce==ie.doc.first+ie.doc.size)return{index:pe,lineN:ce};for(var qe=ie.display.viewFrom,Qe=0;Qe<pe;Qe++)qe+=ze[Qe].size;if(qe!=ae){if(de>0){if(pe==ze.length-1)return null;Me=qe+ze[pe].size-ae,pe++}else Me=qe-ae;ae+=Me,ce+=Me}for(;Yi(ie.doc,ce)!=ce;){if(pe==(de<0?0:ze.length-1))return null;ce+=de*ze[pe-(de<0?1:0)].size,pe+=de}return{index:pe,lineN:ce}}function Br(ie,ae,ce){var de=ie.display,pe=de.view;pe.length==0||ae>=de.viewTo||ce<=de.viewFrom?(de.view=lo(ie,ae,ce),de.viewFrom=ae):(de.viewFrom>ae?de.view=lo(ie,ae,de.viewFrom).concat(de.view):de.viewFrom<ae&&(de.view=de.view.slice(zs(ie,ae))),de.viewFrom=ae,de.viewTo<ce?de.view=de.view.concat(lo(ie,de.viewTo,ce)):de.viewTo>ce&&(de.view=de.view.slice(0,zs(ie,ce)))),de.viewTo=ce}function Sa(ie){for(var ae=ie.display.view,ce=0,de=0;de<ae.length;de++){var pe=ae[de];!pe.hidden&&(!pe.node||pe.changes)&&++ce}return ce}function hs(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Eu(ie,ae){ae===void 0&&(ae=!0);for(var ce=ie.doc,de={},pe=de.cursors=document.createDocumentFragment(),Me=de.selection=document.createDocumentFragment(),ze=0;ze<ce.sel.ranges.length;ze++)if(!(!ae&&ze==ce.sel.primIndex)){var qe=ce.sel.ranges[ze];if(!(qe.from().line>=ie.display.viewTo||qe.to().line<ie.display.viewFrom)){var Qe=qe.empty();(Qe||ie.options.showCursorWhenSelecting)&&Gr(ie,qe.head,pe),Qe||Kr(ie,qe,Me)}}return de}function Gr(ie,ae,ce){var de=Oa(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),pe=ce.appendChild(Xe("div","\xA0","CodeMirror-cursor"));if(pe.style.left=de.left+"px",pe.style.top=de.top+"px",pe.style.height=Math.max(0,de.bottom-de.top)*ie.options.cursorHeight+"px",de.other){var Me=ce.appendChild(Xe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Me.style.display="",Me.style.left=de.other.left+"px",Me.style.top=de.other.top+"px",Me.style.height=(de.other.bottom-de.other.top)*.85+"px"}}function Bs(ie,ae){return ie.top-ae.top||ie.left-ae.left}function Kr(ie,ae,ce){var de=ie.display,pe=ie.doc,Me=document.createDocumentFragment(),ze=ou(ie.display),qe=ze.left,Qe=Math.max(de.sizerWidth,Ys(ie)-de.sizer.offsetLeft)-ze.right,St=pe.direction=="ltr";function mn(To,qo,kr,Ao){qo<0&&(qo=0),qo=Math.round(qo),Ao=Math.round(Ao),Me.appendChild(Xe("div",null,"CodeMirror-selected","position: absolute; left: "+To+`px;
|
|
|
top: `+qo+"px; width: "+(kr==null?Qe-To:kr)+`px;
|
|
|
height: `+(Ao-qo)+"px"))}function kt(To,qo,kr){var Ao=Wt(pe,To),Xr=Ao.text.length,as,Qs;function ps(Ks,fu){return Cl(ie,jt(To,Ks),"div",Ao,fu)}function _l(Ks,fu,vl){var Zs=Bh(ie,Ao,null,Ks),Ea=fu=="ltr"==(vl=="after")?"left":"right",ws=vl=="after"?Zs.begin:Zs.end-(/\s/.test(Ao.text.charAt(Zs.end-1))?2:1);return ps(ws,Ea)[Ea]}var Nl=pn(Ao,pe.direction);return gt(Nl,qo||0,kr==null?Xr:kr,function(Ks,fu,vl,Zs){var Ea=vl=="ltr",ws=ps(Ks,Ea?"left":"right"),il=ps(fu-1,Ea?"right":"left"),yl=qo==null&&Ks==0,rh=kr==null&&fu==Xr,ms=Zs==0,Ku=!Nl||Zs==Nl.length-1;if(il.top-ws.top<=3){var ks=(St?yl:rh)&&ms,wf=(St?rh:yl)&&Ku,Nu=ks?qe:(Ea?ws:il).left,gu=wf?Qe:(Ea?il:ws).right;mn(Nu,ws.top,gu-Nu,ws.bottom)}else{var ql,$a,ol,Gh;Ea?(ql=St&&yl&&ms?qe:ws.left,$a=St?Qe:_l(Ks,vl,"before"),ol=St?qe:_l(fu,vl,"after"),Gh=St&&rh&&Ku?Qe:il.right):(ql=St?_l(Ks,vl,"before"):qe,$a=!St&&yl&&ms?Qe:ws.right,ol=!St&&rh&&Ku?qe:il.left,Gh=St?_l(fu,vl,"after"):Qe),mn(ql,ws.top,$a-ql,ws.bottom),ws.bottom<il.top&&mn(qe,ws.bottom,null,il.top),mn(ol,il.top,Gh-ol,il.bottom)}(!as||Bs(ws,as)<0)&&(as=ws),Bs(il,as)<0&&(as=il),(!Qs||Bs(ws,Qs)<0)&&(Qs=ws),Bs(il,Qs)<0&&(Qs=il)}),{start:as,end:Qs}}var Yn=ae.from(),Zn=ae.to();if(Yn.line==Zn.line)kt(Yn.line,Yn.ch,Zn.ch);else{var Li=Wt(pe,Yn.line),Oi=Wt(pe,Zn.line),Ui=Lo(Li)==Lo(Oi),mo=kt(Yn.line,Yn.ch,Ui?Li.text.length+1:null).end,Zo=kt(Zn.line,Ui?0:null,Zn.ch).start;Ui&&(mo.top<Zo.top-2?(mn(mo.right,mo.top,null,mo.bottom),mn(qe,Zo.top,Zo.left,Zo.bottom)):mn(mo.right,mo.top,Zo.left-mo.right,mo.bottom)),mo.bottom<Zo.top&&mn(qe,mo.bottom,null,Zo.top)}ce.appendChild(Me)}function fa(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var ce=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||su(ie),ae.cursorDiv.style.visibility=(ce=!ce)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function Ca(ie){ie.state.focused||(ie.display.input.focus(),Vr(ie))}function ka(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,su(ie))},100)}function Vr(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Et(ie,"focus",ie,ae),ie.state.focused=!0,an(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()),fa(ie))}function su(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(Et(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 Wo(ie){for(var ae=ie.display,ce=ae.lineDiv.offsetTop,de=0;de<ae.view.length;de++){var pe=ae.view[de],Me=ie.options.lineWrapping,ze=void 0,qe=0;if(!pe.hidden){if(Ue&&Je<8){var Qe=pe.node.offsetTop+pe.node.offsetHeight;ze=Qe-ce,ce=Qe}else{var St=pe.node.getBoundingClientRect();ze=St.bottom-St.top,!Me&&pe.text.firstChild&&(qe=pe.text.firstChild.getBoundingClientRect().right-St.left-1)}var mn=pe.line.height-ze;if((mn>.005||mn<-.005)&&(Dn(pe.line,ze),vh(pe.line),pe.rest))for(var kt=0;kt<pe.rest.length;kt++)vh(pe.rest[kt]);if(qe>ie.display.sizerWidth){var Yn=Math.ceil(qe/zu(ie.display));Yn>ie.display.maxLineLength&&(ie.display.maxLineLength=Yn,ie.display.maxLine=pe.line,ie.display.maxLineChanged=!0)}}}}function vh(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var ce=ie.widgets[ae],de=ce.node.parentNode;de&&(ce.height=de.offsetHeight)}}function Rr(ie,ae,ce){var de=ce&&ce.top!=null?Math.max(0,ce.top):ie.scroller.scrollTop;de=Math.floor(de-Ds(ie));var pe=ce&&ce.bottom!=null?ce.bottom:de+ie.wrapper.clientHeight,Me=ln(ae,de),ze=ln(ae,pe);if(ce&&ce.ensure){var qe=ce.ensure.from.line,Qe=ce.ensure.to.line;qe<Me?(Me=qe,ze=ln(ae,ir(Wt(ae,qe))+ie.wrapper.clientHeight)):Math.min(Qe,ae.lastLine())>=ze&&(Me=ln(ae,ir(Wt(ae,Qe))-ie.wrapper.clientHeight),ze=Qe)}return{from:Me,to:Math.max(ze,Me+1)}}function rr(ie,ae){if(!cn(ie,"scrollCursorIntoView")){var ce=ie.display,de=ce.sizer.getBoundingClientRect(),pe=null;if(ae.top+de.top<0?pe=!0:ae.bottom+de.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!zt){var Me=Xe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(ae.top-ce.viewOffset-Ds(ie.display))+`px;
|
|
|
height: `+(ae.bottom-ae.top+js(ie)+ce.barHeight)+`px;
|
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Me),Me.scrollIntoView(pe),ie.display.lineSpace.removeChild(Me)}}}function id(ie,ae,ce,de){de==null&&(de=0);var pe;!ie.options.lineWrapping&&ae==ce&&(ae=ae.ch?jt(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ce=ae.sticky=="before"?jt(ae.line,ae.ch+1,"before"):ae);for(var Me=0;Me<5;Me++){var ze=!1,qe=Oa(ie,ae),Qe=!ce||ce==ae?qe:Oa(ie,ce);pe={left:Math.min(qe.left,Qe.left),top:Math.min(qe.top,Qe.top)-de,right:Math.max(qe.left,Qe.left),bottom:Math.max(qe.bottom,Qe.bottom)+de};var St=Zf(ie,pe),mn=ie.doc.scrollTop,kt=ie.doc.scrollLeft;if(St.scrollTop!=null&&(rd(ie,St.scrollTop),Math.abs(ie.doc.scrollTop-mn)>1&&(ze=!0)),St.scrollLeft!=null&&(th(ie,St.scrollLeft),Math.abs(ie.doc.scrollLeft-kt)>1&&(ze=!0)),!ze)break}return pe}function Qd(ie,ae){var ce=Zf(ie,ae);ce.scrollTop!=null&&rd(ie,ce.scrollTop),ce.scrollLeft!=null&&th(ie,ce.scrollLeft)}function Zf(ie,ae){var ce=ie.display,de=bu(ie.display);ae.top<0&&(ae.top=0);var pe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ce.scroller.scrollTop,Me=Pu(ie),ze={};ae.bottom-ae.top>Me&&(ae.bottom=ae.top+Me);var qe=ie.doc.height+Zl(ce),Qe=ae.top<de,St=ae.bottom>qe-de;if(ae.top<pe)ze.scrollTop=Qe?0:ae.top;else if(ae.bottom>pe+Me){var mn=Math.min(ae.top,(St?qe:ae.bottom)-Me);mn!=pe&&(ze.scrollTop=mn)}var kt=ie.options.fixedGutter?0:ce.gutters.offsetWidth,Yn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ce.scroller.scrollLeft-kt,Zn=Ys(ie)-ce.gutters.offsetWidth,Li=ae.right-ae.left>Zn;return Li&&(ae.right=ae.left+Zn),ae.left<10?ze.scrollLeft=0:ae.left<Yn?ze.scrollLeft=Math.max(0,ae.left+kt-(Li?0:10)):ae.right>Zn+Yn-3&&(ze.scrollLeft=ae.right+(Li?0:10)-Zn),ze}function Mc(ie,ae){ae!=null&&(eh(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Th(ie){eh(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function od(ie,ae,ce){(ae!=null||ce!=null)&&eh(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ce!=null&&(ie.curOp.scrollTop=ce)}function aa(ie,ae){eh(ie),ie.curOp.scrollToPos=ae}function eh(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ce=ca(ie,ae.from),de=ca(ie,ae.to);lf(ie,ce,de,ae.margin)}}function lf(ie,ae,ce,de){var pe=Zf(ie,{left:Math.min(ae.left,ce.left),top:Math.min(ae.top,ce.top)-de,right:Math.max(ae.right,ce.right),bottom:Math.max(ae.bottom,ce.bottom)+de});od(ie,pe.scrollLeft,pe.scrollTop)}function rd(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(Ce||so(ie,{top:ae}),Vf(ie,ae,!0),Ce&&so(ie),oi(ie,100))}function Vf(ie,ae,ce){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ce)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function th(ie,ae,ce,de){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ce?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!de)&&(ie.doc.scrollLeft=ae,lr(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function Lu(ie){var ae=ie.display,ce=ae.gutters.offsetWidth,de=Math.round(ie.doc.height+Zl(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?ce:0,docHeight:de,scrollHeight:de+js(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ce}}var Oh=function(ie,ae,ce){this.cm=ce;var de=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");de.tabIndex=pe.tabIndex=-1,ie(de),ie(pe),Jt(de,"scroll",function(){de.clientHeight&&ae(de.scrollTop,"vertical")}),Jt(pe,"scroll",function(){pe.clientWidth&&ae(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ue&&Je<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Oh.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ce=ie.scrollHeight>ie.clientHeight+1,de=ie.nativeBarWidth;if(ce){this.vert.style.display="block",this.vert.style.bottom=ae?de+"px":"0";var pe=ie.viewHeight-(ae?de:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ce?de+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Me=ie.viewWidth-ie.barLeft-(ce?de:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Me)+"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:ce?de:0,bottom:ae?de:0}},Oh.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Oh.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Oh.prototype.zeroWidthHack=function(){var ie=he&&!xt?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new je,this.disableVert=new je},Oh.prototype.enableZeroWidthBar=function(ie,ae,ce){ie.style.pointerEvents="auto";function de(){var pe=ie.getBoundingClientRect(),Me=ce=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Me!=ie?ie.style.pointerEvents="none":ae.set(1e3,de)}ae.set(1e3,de)},Oh.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var Hu=function(){};Hu.prototype.update=function(){return{bottom:0,right:0}},Hu.prototype.setScrollLeft=function(){},Hu.prototype.setScrollTop=function(){},Hu.prototype.clear=function(){};function Ih(ie,ae){ae||(ae=Lu(ie));var ce=ie.display.barWidth,de=ie.display.barHeight;Fc(ie,ae);for(var pe=0;pe<4&&ce!=ie.display.barWidth||de!=ie.display.barHeight;pe++)ce!=ie.display.barWidth&&ie.options.lineWrapping&&Wo(ie),Fc(ie,Lu(ie)),ce=ie.display.barWidth,de=ie.display.barHeight}function Fc(ie,ae){var ce=ie.display,de=ce.scrollbars.update(ae);ce.sizer.style.paddingRight=(ce.barWidth=de.right)+"px",ce.sizer.style.paddingBottom=(ce.barHeight=de.bottom)+"px",ce.heightForcer.style.borderBottom=de.bottom+"px solid transparent",de.right&&de.bottom?(ce.scrollbarFiller.style.display="block",ce.scrollbarFiller.style.height=de.bottom+"px",ce.scrollbarFiller.style.width=de.right+"px"):ce.scrollbarFiller.style.display="",de.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ce.gutterFiller.style.display="block",ce.gutterFiller.style.height=de.bottom+"px",ce.gutterFiller.style.width=ae.gutterWidth+"px"):ce.gutterFiller.style.display=""}var uf={native:Oh,null:Hu};function hf(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ie(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new uf[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),Jt(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ce){ce=="horizontal"?th(ie,ae):rd(ie,ae)},ie),ie.display.scrollbars.addClass&&an(ie.display.wrapper,ie.display.scrollbars.addClass)}var Uf=0;function El(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:++Uf},Wr(ie.curOp)}function Rh(ie){var ae=ie.curOp;ae&&Io(ae,function(ce){for(var de=0;de<ce.ops.length;de++)ce.ops[de].cm.curOp=null;Zg(ce)})}function Zg(ie){for(var ae=ie.ops,ce=0;ce<ae.length;ce++)it(ae[ce]);for(var de=0;de<ae.length;de++)lt(ae[de]);for(var pe=0;pe<ae.length;pe++)Ht(ae[pe]);for(var Me=0;Me<ae.length;Me++)Kt(ae[Me]);for(var ze=0;ze<ae.length;ze++)Sn(ae[ze])}function it(ie){var ae=ie.cm,ce=ae.display;Gi(ae),ie.updateMaxLine&&mr(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ce.viewFrom||ie.scrollToPos.to.line>=ce.viewTo)||ce.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new si(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function lt(ie){ie.updatedDisplay=ie.mustUpdate&&ho(ie.cm,ie.update)}function Ht(ie){var ae=ie.cm,ce=ae.display;ie.updatedDisplay&&Wo(ae),ie.barMeasure=Lu(ae),ce.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=_u(ae,ce.maxLine,ce.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ce.scroller.clientWidth,ce.sizer.offsetLeft+ie.adjustWidthTo+js(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ce.sizer.offsetLeft+ie.adjustWidthTo-Ys(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ce.input.prepareSelection())}function Kt(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&th(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var ce=ie.focus&&ie.focus==yt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,ce),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&Ih(ae,ie.barMeasure),ie.updatedDisplay&&Xo(ae,ie.barMeasure),ie.selectionChanged&&fa(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),ce&&Ca(ie.cm)}function Sn(ie){var ae=ie.cm,ce=ae.display,de=ae.doc;if(ie.updatedDisplay&&Ti(ae,ie.update),ce.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ce.wheelStartX=ce.wheelStartY=null),ie.scrollTop!=null&&Vf(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&th(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var pe=id(ae,Pn(de,ie.scrollToPos.from),Pn(de,ie.scrollToPos.to),ie.scrollToPos.margin);rr(ae,pe)}var Me=ie.maybeHiddenMarkers,ze=ie.maybeUnhiddenMarkers;if(Me)for(var qe=0;qe<Me.length;++qe)Me[qe].lines.length||Et(Me[qe],"hide");if(ze)for(var Qe=0;Qe<ze.length;++Qe)ze[Qe].lines.length&&Et(ze[Qe],"unhide");ce.wrapper.offsetHeight&&(de.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&Et(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function rn(ie,ae){if(ie.curOp)return ae();El(ie);try{return ae()}finally{Rh(ie)}}function Vn(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);El(ie);try{return ae.apply(ie,arguments)}finally{Rh(ie)}}}function Un(ie){return function(){if(this.curOp)return ie.apply(this,arguments);El(this);try{return ie.apply(this,arguments)}finally{Rh(this)}}}function jn(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);El(ae);try{return ie.apply(this,arguments)}finally{Rh(ae)}}}function oi(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,hn(hi,ie))}function hi(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var ce=+new Date+ie.options.workTime,de=ki(ie,ae.highlightFrontier),pe=[];ae.iter(de.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Me){if(de.line>=ie.display.viewFrom){var ze=Me.styles,qe=Me.text.length>ie.options.maxHighlightLength?Tt(ae.mode,de.state):null,Qe=bi(ie,Me,de,!0);qe&&(de.state=qe),Me.styles=Qe.styles;var St=Me.styleClasses,mn=Qe.classes;mn?Me.styleClasses=mn:St&&(Me.styleClasses=null);for(var kt=!ze||ze.length!=Me.styles.length||St!=mn&&(!St||!mn||St.bgClass!=mn.bgClass||St.textClass!=mn.textClass),Yn=0;!kt&&Yn<ze.length;++Yn)kt=ze[Yn]!=Me.styles[Yn];kt&&pe.push(de.line),Me.stateAfter=de.save(),de.nextLine()}else Me.text.length<=ie.options.maxHighlightLength&&nn(ie,Me.text,de),Me.stateAfter=de.line%5==0?de.save():null,de.nextLine();if(+new Date>ce)return oi(ie,ie.options.workDelay),!0}),ae.highlightFrontier=de.line,ae.modeFrontier=Math.max(ae.modeFrontier,de.line),pe.length&&rn(ie,function(){for(var Me=0;Me<pe.length;Me++)yi(ie,pe[Me],"text")})}}var si=function(ie,ae,ce){var de=ie.display;this.viewport=ae,this.visible=Rr(de,ie.doc,ae),this.editorIsHidden=!de.wrapper.offsetWidth,this.wrapperHeight=de.wrapper.clientHeight,this.wrapperWidth=de.wrapper.clientWidth,this.oldDisplayWidth=Ys(ie),this.force=ce,this.dims=nd(ie),this.events=[]};si.prototype.signal=function(ie,ae){Ct(ie,ae)&&this.events.push(arguments)},si.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Et.apply(null,this.events[ie])};function Gi(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=js(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=js(ie)+"px",ae.scrollbarsClipped=!0)}function zi(ie){if(ie.hasFocus())return null;var ae=yt();if(!ae||!Zt(ie.display.lineDiv,ae))return null;var ce={activeElt:ae};if(window.getSelection){var de=window.getSelection();de.anchorNode&&de.extend&&Zt(ie.display.lineDiv,de.anchorNode)&&(ce.anchorNode=de.anchorNode,ce.anchorOffset=de.anchorOffset,ce.focusNode=de.focusNode,ce.focusOffset=de.focusOffset)}return ce}function Fi(ie){if(!(!ie||!ie.activeElt||ie.activeElt==yt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Zt(document.body,ie.anchorNode)&&Zt(document.body,ie.focusNode))){var ae=window.getSelection(),ce=document.createRange();ce.setEnd(ie.anchorNode,ie.anchorOffset),ce.collapse(!1),ae.removeAllRanges(),ae.addRange(ce),ae.extend(ie.focusNode,ie.focusOffset)}}function ho(ie,ae){var ce=ie.display,de=ie.doc;if(ae.editorIsHidden)return cr(ie),!1;if(!ae.force&&ae.visible.from>=ce.viewFrom&&ae.visible.to<=ce.viewTo&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo)&&ce.renderedView==ce.view&&Sa(ie)==0)return!1;fo(ie)&&(cr(ie),ae.dims=nd(ie));var pe=de.first+de.size,Me=Math.max(ae.visible.from-ie.options.viewportMargin,de.first),ze=Math.min(pe,ae.visible.to+ie.options.viewportMargin);ce.viewFrom<Me&&Me-ce.viewFrom<20&&(Me=Math.max(de.first,ce.viewFrom)),ce.viewTo>ze&&ce.viewTo-ze<20&&(ze=Math.min(pe,ce.viewTo)),Ln&&(Me=Yi(ie.doc,Me),ze=Qi(ie.doc,ze));var qe=Me!=ce.viewFrom||ze!=ce.viewTo||ce.lastWrapHeight!=ae.wrapperHeight||ce.lastWrapWidth!=ae.wrapperWidth;Br(ie,Me,ze),ce.viewOffset=ir(Wt(ie.doc,ce.viewFrom)),ie.display.mover.style.top=ce.viewOffset+"px";var Qe=Sa(ie);if(!qe&&Qe==0&&!ae.force&&ce.renderedView==ce.view&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo))return!1;var St=zi(ie);return Qe>4&&(ce.lineDiv.style.display="none"),oo(ie,ce.updateLineNumbers,ae.dims),Qe>4&&(ce.lineDiv.style.display=""),ce.renderedView=ce.view,Fi(St),We(ce.cursorDiv),We(ce.selectionDiv),ce.gutters.style.height=ce.sizer.style.minHeight=0,qe&&(ce.lastWrapHeight=ae.wrapperHeight,ce.lastWrapWidth=ae.wrapperWidth,oi(ie,400)),ce.updateLineNumbers=null,!0}function Ti(ie,ae){for(var ce=ae.viewport,de=!0;;de=!1){if(!de||!ie.options.lineWrapping||ae.oldDisplayWidth==Ys(ie)){if(ce&&ce.top!=null&&(ce={top:Math.min(ie.doc.height+Zl(ie.display)-Pu(ie),ce.top)}),ae.visible=Rr(ie.display,ie.doc,ce),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else de&&(ae.visible=Rr(ie.display,ie.doc,ce));if(!ho(ie,ae))break;Wo(ie);var pe=Lu(ie);hs(ie),Ih(ie,pe),Xo(ie,pe),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function so(ie,ae){var ce=new si(ie,ae);if(ho(ie,ce)){Wo(ie),Ti(ie,ce);var de=Lu(ie);hs(ie),Ih(ie,de),Xo(ie,de),ce.finish()}}function oo(ie,ae,ce){var de=ie.display,pe=ie.options.lineNumbers,Me=de.lineDiv,ze=Me.firstChild;function qe(Li){var Oi=Li.nextSibling;return ke&&he&&ie.display.currentWheelTarget==Li?Li.style.display="none":Li.parentNode.removeChild(Li),Oi}for(var Qe=de.view,St=de.viewFrom,mn=0;mn<Qe.length;mn++){var kt=Qe[mn];if(!kt.hidden)if(!kt.node||kt.node.parentNode!=Me){var Yn=Xs(ie,kt,St,ce);Me.insertBefore(Yn,ze)}else{for(;ze!=kt.node;)ze=qe(ze);var Zn=pe&&ae!=null&&ae<=St&&kt.lineNumber;kt.changes&&(wt(kt.changes,"gutter")>-1&&(Zn=!1),Yr(ie,kt,St,ce)),Zn&&(We(kt.lineNumber),kt.lineNumber.appendChild(document.createTextNode(ii(ie.options,St)))),ze=kt.node.nextSibling}St+=kt.size}for(;ze;)ze=qe(ze)}function bo(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function Xo(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+js(ie)+"px"}function lr(ie){var ae=ie.display,ce=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var de=mh(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,pe=ae.gutters.offsetWidth,Me=de+"px",ze=0;ze<ce.length;ze++)if(!ce[ze].hidden){ie.options.fixedGutter&&(ce[ze].gutter&&(ce[ze].gutter.style.left=Me),ce[ze].gutterBackground&&(ce[ze].gutterBackground.style.left=Me));var qe=ce[ze].alignable;if(qe)for(var Qe=0;Qe<qe.length;Qe++)qe[Qe].style.left=Me}ie.options.fixedGutter&&(ae.gutters.style.left=de+pe+"px")}}function fo(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,ce=ii(ie.options,ae.first+ae.size-1),de=ie.display;if(ce.length!=de.lineNumChars){var pe=de.measure.appendChild(Xe("div",[Xe("div",ce)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Me=pe.firstChild.offsetWidth,ze=pe.offsetWidth-Me;return de.lineGutter.style.width="",de.lineNumInnerWidth=Math.max(Me,de.lineGutter.offsetWidth-ze)+1,de.lineNumWidth=de.lineNumInnerWidth+ze,de.lineNumChars=de.lineNumInnerWidth?ce.length:-1,de.lineGutter.style.width=de.lineNumWidth+"px",bo(ie.display),!0}return!1}function Vo(ie,ae){for(var ce=[],de=!1,pe=0;pe<ie.length;pe++){var Me=ie[pe],ze=null;if(typeof Me!="string"&&(ze=Me.style,Me=Me.className),Me=="CodeMirror-linenumbers")if(ae)de=!0;else continue;ce.push({className:Me,style:ze})}return ae&&!de&&ce.push({className:"CodeMirror-linenumbers",style:null}),ce}function Mr(ie){var ae=ie.gutters,ce=ie.gutterSpecs;We(ae),ie.lineGutter=null;for(var de=0;de<ce.length;++de){var pe=ce[de],Me=pe.className,ze=pe.style,qe=ae.appendChild(Xe("div",null,"CodeMirror-gutter "+Me));ze&&(qe.style.cssText=ze),Me=="CodeMirror-linenumbers"&&(ie.lineGutter=qe,qe.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=ce.length?"":"none",bo(ie)}function Po(ie){Mr(ie.display),Fa(ie),lr(ie)}function zo(ie,ae,ce,de){var pe=this;this.input=ce,pe.scrollbarFiller=Xe("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=Xe("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=dt("div",null,"CodeMirror-code"),pe.selectionDiv=Xe("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=Xe("div",null,"CodeMirror-cursors"),pe.measure=Xe("div",null,"CodeMirror-measure"),pe.lineMeasure=Xe("div",null,"CodeMirror-measure"),pe.lineSpace=dt("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Me=dt("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=Xe("div",[Me],null,"position: relative"),pe.sizer=Xe("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=Xe("div",null,null,"position: absolute; height: "+tn+"px; width: 1px;"),pe.gutters=Xe("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=Xe("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=Xe("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),Ue&&Je<8&&(pe.gutters.style.zIndex=-1,pe.scroller.style.paddingRight=0),!ke&&!(Ce&&ne)&&(pe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(pe.wrapper):ie(pe.wrapper)),pe.viewFrom=pe.viewTo=ae.first,pe.reportedViewFrom=pe.reportedViewTo=ae.first,pe.view=[],pe.renderedView=null,pe.externalMeasured=null,pe.viewOffset=0,pe.lastWrapHeight=pe.lastWrapWidth=0,pe.updateLineNumbers=null,pe.nativeBarWidth=pe.barHeight=pe.barWidth=0,pe.scrollbarsClipped=!1,pe.lineNumWidth=pe.lineNumInnerWidth=pe.lineNumChars=null,pe.alignWidgets=!1,pe.cachedCharWidth=pe.cachedTextHeight=pe.cachedPaddingH=null,pe.maxLine=null,pe.maxLineLength=0,pe.maxLineChanged=!1,pe.wheelDX=pe.wheelDY=pe.wheelStartX=pe.wheelStartY=null,pe.shift=!1,pe.selForContextMenu=null,pe.activeTouch=null,pe.gutterSpecs=Vo(de.gutters,de.lineNumbers),Mr(pe),ce.init(pe)}var wo=0,Ji=null;Ue?Ji=-.53:Ce?Ji=15:Lt?Ji=-.7:Rt&&(Ji=-1/3);function Bo(ie){var ae=ie.wheelDeltaX,ce=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),ce==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ce=ie.detail:ce==null&&(ce=ie.wheelDelta),{x:ae,y:ce}}function _o(ie){var ae=Bo(ie);return ae.x*=Ji,ae.y*=Ji,ae}function pr(ie,ae){var ce=Bo(ae),de=ce.x,pe=ce.y,Me=ie.display,ze=Me.scroller,qe=ze.scrollWidth>ze.clientWidth,Qe=ze.scrollHeight>ze.clientHeight;if(de&&qe||pe&&Qe){if(pe&&he&&ke){e:for(var St=ae.target,mn=Me.view;St!=ze;St=St.parentNode)for(var kt=0;kt<mn.length;kt++)if(mn[kt].node==St){ie.display.currentWheelTarget=St;break e}}if(de&&!Ce&&!ot&&Ji!=null){pe&&Qe&&rd(ie,Math.max(0,ze.scrollTop+pe*Ji)),th(ie,Math.max(0,ze.scrollLeft+de*Ji)),(!pe||pe&&Qe)&&ui(ae),Me.wheelStartX=null;return}if(pe&&Ji!=null){var Yn=pe*Ji,Zn=ie.doc.scrollTop,Li=Zn+Me.wrapper.clientHeight;Yn<0?Zn=Math.max(0,Zn+Yn-50):Li=Math.min(ie.doc.height,Li+Yn+50),so(ie,{top:Zn,bottom:Li})}wo<20&&(Me.wheelStartX==null?(Me.wheelStartX=ze.scrollLeft,Me.wheelStartY=ze.scrollTop,Me.wheelDX=de,Me.wheelDY=pe,setTimeout(function(){if(Me.wheelStartX!=null){var Oi=ze.scrollLeft-Me.wheelStartX,Ui=ze.scrollTop-Me.wheelStartY,mo=Ui&&Me.wheelDY&&Ui/Me.wheelDY||Oi&&Me.wheelDX&&Oi/Me.wheelDX;Me.wheelStartX=Me.wheelStartY=null,mo&&(Ji=(Ji*wo+mo)/(wo+1),++wo)}},200)):(Me.wheelDX+=de,Me.wheelDY+=pe))}}var vr=function(ie,ae){this.ranges=ie,this.primIndex=ae};vr.prototype.primary=function(){return this.ranges[this.primIndex]},vr.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 ce=this.ranges[ae],de=ie.ranges[ae];if(!It(ce.anchor,de.anchor)||!It(ce.head,de.head))return!1}return!0},vr.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new po(on(this.ranges[ae].anchor),on(this.ranges[ae].head));return new vr(ie,this.primIndex)},vr.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},vr.prototype.contains=function(ie,ae){ae||(ae=ie);for(var ce=0;ce<this.ranges.length;ce++){var de=this.ranges[ce];if(sn(ae,de.from())>=0&&sn(ie,de.to())<=0)return ce}return-1};var po=function(ie,ae){this.anchor=ie,this.head=ae};po.prototype.from=function(){return en(this.anchor,this.head)},po.prototype.to=function(){return qt(this.anchor,this.head)},po.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Nr(ie,ae,ce){var de=ie&&ie.options.selectionsMayTouch,pe=ae[ce];ae.sort(function(Yn,Zn){return sn(Yn.from(),Zn.from())}),ce=wt(ae,pe);for(var Me=1;Me<ae.length;Me++){var ze=ae[Me],qe=ae[Me-1],Qe=sn(qe.to(),ze.from());if(de&&!ze.empty()?Qe>0:Qe>=0){var St=en(qe.from(),ze.from()),mn=qt(qe.to(),ze.to()),kt=qe.empty()?ze.from()==ze.head:qe.from()==qe.head;Me<=ce&&--ce,ae.splice(--Me,2,new po(kt?mn:St,kt?St:mn))}}return new vr(ae,ce)}function Tr(ie,ae){return new vr([new po(ie,ae||ie)],0)}function ga(ie){return ie.text?jt(ie.from.line+ie.text.length-1,bt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function $r(ie,ae){if(sn(ie,ae.from)<0)return ie;if(sn(ie,ae.to)<=0)return ga(ae);var ce=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,de=ie.ch;return ie.line==ae.to.line&&(de+=ga(ae).ch-ae.to.ch),jt(ce,de)}function Xa(ie,ae){for(var ce=[],de=0;de<ie.sel.ranges.length;de++){var pe=ie.sel.ranges[de];ce.push(new po($r(pe.anchor,ae),$r(pe.head,ae)))}return Nr(ie.cm,ce,ie.sel.primIndex)}function Va(ie,ae,ce){return ie.line==ae.line?jt(ce.line,ie.ch-ae.ch+ce.ch):jt(ce.line+(ie.line-ae.line),ie.ch)}function Dr(ie,ae,ce){for(var de=[],pe=jt(ie.first,0),Me=pe,ze=0;ze<ae.length;ze++){var qe=ae[ze],Qe=Va(qe.from,pe,Me),St=Va(ga(qe),pe,Me);if(pe=qe.to,Me=St,ce=="around"){var mn=ie.sel.ranges[ze],kt=sn(mn.head,mn.anchor)<0;de[ze]=new po(kt?St:Qe,kt?Qe:St)}else de[ze]=new po(Qe,Qe)}return new vr(de,ie.sel.primIndex)}function ar(ie){ie.doc.mode=ct(ie.options,ie.doc.modeOption),oa(ie)}function oa(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,oi(ie,100),ie.state.modeGen++,ie.curOp&&Fa(ie)}function Ya(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&bt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function Ia(ie,ae,ce,de){function pe(Zo){return ce?ce[Zo]:null}function Me(Zo,To,qo){Lr(Zo,To,qo,de),vi(Zo,"change",Zo,ae)}function ze(Zo,To){for(var qo=[],kr=Zo;kr<To;++kr)qo.push(new er(St[kr],pe(kr),de));return qo}var qe=ae.from,Qe=ae.to,St=ae.text,mn=Wt(ie,qe.line),kt=Wt(ie,Qe.line),Yn=bt(St),Zn=pe(St.length-1),Li=Qe.line-qe.line;if(ae.full)ie.insert(0,ze(0,St.length)),ie.remove(St.length,ie.size-St.length);else if(Ya(ie,ae)){var Oi=ze(0,St.length-1);Me(kt,kt.text,Zn),Li&&ie.remove(qe.line,Li),Oi.length&&ie.insert(qe.line,Oi)}else if(mn==kt)if(St.length==1)Me(mn,mn.text.slice(0,qe.ch)+Yn+mn.text.slice(Qe.ch),Zn);else{var Ui=ze(1,St.length-1);Ui.push(new er(Yn+mn.text.slice(Qe.ch),Zn,de)),Me(mn,mn.text.slice(0,qe.ch)+St[0],pe(0)),ie.insert(qe.line+1,Ui)}else if(St.length==1)Me(mn,mn.text.slice(0,qe.ch)+St[0]+kt.text.slice(Qe.ch),pe(0)),ie.remove(qe.line+1,Li);else{Me(mn,mn.text.slice(0,qe.ch)+St[0],pe(0)),Me(kt,Yn+kt.text.slice(Qe.ch),Zn);var mo=ze(1,St.length-1);Li>1&&ie.remove(qe.line+1,Li-1),ie.insert(qe.line+1,mo)}vi(ie,"change",ie,ae)}function gs(ie,ae,ce){function de(pe,Me,ze){if(pe.linked)for(var qe=0;qe<pe.linked.length;++qe){var Qe=pe.linked[qe];if(Qe.doc!=Me){var St=ze&&Qe.sharedHist;ce&&!St||(ae(Qe.doc,St),de(Qe.doc,pe,St))}}}de(ie,null,!0)}function yr(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,tr(ie),ar(ie),fr(ie),ie.options.lineWrapping||mr(ie),ie.options.mode=ae.modeOption,Fa(ie)}function fr(ie){(ie.doc.direction=="rtl"?an:Ie)(ie.display.lineDiv,"CodeMirror-rtl")}function Sr(ie){rn(ie,function(){fr(ie),Fa(ie)})}function Yo(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 sa(ie,ae){var ce={from:on(ae.from),to:ga(ae),text:Ut(ie,ae.from,ae.to)};return nl(ie,ce,ae.from.line,ae.to.line+1),gs(ie,function(de){return nl(de,ce,ae.from.line,ae.to.line+1)},!0),ce}function Jo(ie){for(;ie.length;){var ae=bt(ie);if(ae.ranges)ie.pop();else break}}function Fr(ie,ae){if(ae)return Jo(ie.done),bt(ie.done);if(ie.done.length&&!bt(ie.done).ranges)return bt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),bt(ie.done)}function qr(ie,ae,ce,de){var pe=ie.history;pe.undone.length=0;var Me=+new Date,ze,qe;if((pe.lastOp==de||pe.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&pe.lastModTime>Me-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(ze=Fr(pe,pe.lastOp==de)))qe=bt(ze.changes),sn(ae.from,ae.to)==0&&sn(ae.from,qe.to)==0?qe.to=ga(ae):ze.changes.push(sa(ie,ae));else{var Qe=bt(pe.done);for((!Qe||!Qe.ranges)&&ys(ie.sel,pe.done),ze={changes:[sa(ie,ae)],generation:pe.generation},pe.done.push(ze);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(ce),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Me,pe.lastOp=pe.lastSelOp=de,pe.lastOrigin=pe.lastSelOrigin=ae.origin,qe||Et(ie,"historyAdded")}function ea(ie,ae,ce,de){var pe=ae.charAt(0);return pe=="*"||pe=="+"&&ce.ranges.length==de.ranges.length&&ce.somethingSelected()==de.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function Os(ie,ae,ce,de){var pe=ie.history,Me=de&&de.origin;ce==pe.lastSelOp||Me&&pe.lastSelOrigin==Me&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Me||ea(ie,Me,bt(pe.done),ae))?pe.done[pe.done.length-1]=ae:ys(ae,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Me,pe.lastSelOp=ce,de&&de.clearRedo!==!1&&Jo(pe.undone)}function ys(ie,ae){var ce=bt(ae);ce&&ce.ranges&&ce.equals(ie)||ae.push(ie)}function nl(ie,ae,ce,de){var pe=ae["spans_"+ie.id],Me=0;ie.iter(Math.max(ie.first,ce),Math.min(ie.first+ie.size,de),function(ze){ze.markedSpans&&((pe||(pe=ae["spans_"+ie.id]={}))[Me]=ze.markedSpans),++Me})}function pa(ie){if(!ie)return null;for(var ae,ce=0;ce<ie.length;++ce)ie[ce].marker.explicitlyCleared?ae||(ae=ie.slice(0,ce)):ae&&ae.push(ie[ce]);return ae?ae.length?ae:null:ie}function Is(ie,ae){var ce=ae["spans_"+ie.id];if(!ce)return null;for(var de=[],pe=0;pe<ae.text.length;++pe)de.push(pa(ce[pe]));return de}function ds(ie,ae){var ce=Is(ie,ae),de=Ai(ie,ae);if(!ce)return de;if(!de)return ce;for(var pe=0;pe<ce.length;++pe){var Me=ce[pe],ze=de[pe];if(Me&&ze)e:for(var qe=0;qe<ze.length;++qe){for(var Qe=ze[qe],St=0;St<Me.length;++St)if(Me[St].marker==Qe.marker)continue e;Me.push(Qe)}else ze&&(ce[pe]=ze)}return ce}function Ls(ie,ae,ce){for(var de=[],pe=0;pe<ie.length;++pe){var Me=ie[pe];if(Me.ranges){de.push(ce?vr.prototype.deepCopy.call(Me):Me);continue}var ze=Me.changes,qe=[];de.push({changes:qe});for(var Qe=0;Qe<ze.length;++Qe){var St=ze[Qe],mn=void 0;if(qe.push({from:St.from,to:St.to,text:St.text}),ae)for(var kt in St)(mn=kt.match(/^spans_(\d+)$/))&&wt(ae,Number(mn[1]))>-1&&(bt(qe)[kt]=St[kt],delete St[kt])}}return de}function nh(ie,ae,ce,de){if(de){var pe=ie.anchor;if(ce){var Me=sn(ae,pe)<0;Me!=sn(ce,pe)<0?(pe=ae,ae=ce):Me!=sn(ae,ce)<0&&(ae=ce)}return new po(pe,ae)}else return new po(ce||ae,ae)}function ma(ie,ae,ce,de,pe){pe==null&&(pe=ie.cm&&(ie.cm.display.shift||ie.extend)),Aa(ie,new vr([nh(ie.sel.primary(),ae,ce,pe)],0),de)}function ba(ie,ae,ce){for(var de=[],pe=ie.cm&&(ie.cm.display.shift||ie.extend),Me=0;Me<ie.sel.ranges.length;Me++)de[Me]=nh(ie.sel.ranges[Me],ae[Me],null,pe);var ze=Nr(ie.cm,de,ie.sel.primIndex);Aa(ie,ze,ce)}function Na(ie,ae,ce,de){var pe=ie.sel.ranges.slice(0);pe[ae]=ce,Aa(ie,Nr(ie.cm,pe,ie.sel.primIndex),de)}function rs(ie,ae,ce,de){Aa(ie,Tr(ae,ce),de)}function Ms(ie,ae,ce){var de={ranges:ae.ranges,update:function(pe){this.ranges=[];for(var Me=0;Me<pe.length;Me++)this.ranges[Me]=new po(Pn(ie,pe[Me].anchor),Pn(ie,pe[Me].head))},origin:ce&&ce.origin};return Et(ie,"beforeSelectionChange",ie,de),ie.cm&&Et(ie.cm,"beforeSelectionChange",ie.cm,de),de.ranges!=ae.ranges?Nr(ie.cm,de.ranges,de.ranges.length-1):ae}function Ur(ie,ae,ce){var de=ie.history.done,pe=bt(de);pe&&pe.ranges?(de[de.length-1]=ae,Fs(ie,ae,ce)):Aa(ie,ae,ce)}function Aa(ie,ae,ce){Fs(ie,ae,ce),Os(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ce)}function Fs(ie,ae,ce){(Ct(ie,"beforeSelectionChange")||ie.cm&&Ct(ie.cm,"beforeSelectionChange"))&&(ae=Ms(ie,ae,ce));var de=ce&&ce.bias||(sn(ae.primary().head,ie.sel.primary().head)<0?-1:1);Ll(ie,Ol(ie,ae,de,!0)),!(ce&&ce.scroll===!1)&&ie.cm&&Th(ie.cm)}function Ll(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,On(ie.cm)),vi(ie,"cursorActivity",ie))}function Ul(ie){Ll(ie,Ol(ie,ie.sel,null,!1))}function Ol(ie,ae,ce,de){for(var pe,Me=0;Me<ae.ranges.length;Me++){var ze=ae.ranges[Me],qe=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Me],Qe=uu(ie,ze.anchor,qe&&qe.anchor,ce,de),St=uu(ie,ze.head,qe&&qe.head,ce,de);(pe||Qe!=ze.anchor||St!=ze.head)&&(pe||(pe=ae.ranges.slice(0,Me)),pe[Me]=new po(Qe,St))}return pe?Nr(ie.cm,pe,ae.primIndex):ae}function lu(ie,ae,ce,de,pe){var Me=Wt(ie,ae.line);if(Me.markedSpans)for(var ze=0;ze<Me.markedSpans.length;++ze){var qe=Me.markedSpans[ze],Qe=qe.marker,St="selectLeft"in Qe?!Qe.selectLeft:Qe.inclusiveLeft,mn="selectRight"in Qe?!Qe.selectRight:Qe.inclusiveRight;if((qe.from==null||(St?qe.from<=ae.ch:qe.from<ae.ch))&&(qe.to==null||(mn?qe.to>=ae.ch:qe.to>ae.ch))){if(pe&&(Et(Qe,"beforeCursorEnter"),Qe.explicitlyCleared))if(Me.markedSpans){--ze;continue}else break;if(!Qe.atomic)continue;if(ce){var kt=Qe.find(de<0?1:-1),Yn=void 0;if((de<0?mn:St)&&(kt=Xl(ie,kt,-de,kt&&kt.line==ae.line?Me:null)),kt&&kt.line==ae.line&&(Yn=sn(kt,ce))&&(de<0?Yn<0:Yn>0))return lu(ie,kt,ae,de,pe)}var Zn=Qe.find(de<0?-1:1);return(de<0?St:mn)&&(Zn=Xl(ie,Zn,de,Zn.line==ae.line?Me:null)),Zn?lu(ie,Zn,ae,de,pe):null}}return ae}function uu(ie,ae,ce,de,pe){var Me=de||1,ze=lu(ie,ae,ce,Me,pe)||!pe&&lu(ie,ae,ce,Me,!0)||lu(ie,ae,ce,-Me,pe)||!pe&&lu(ie,ae,ce,-Me,!0);return ze||(ie.cantEdit=!0,jt(ie.first,0))}function Xl(ie,ae,ce,de){return ce<0&&ae.ch==0?ae.line>ie.first?Pn(ie,jt(ae.line-1)):null:ce>0&&ae.ch==(de||Wt(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?jt(ae.line+1,0):null:new jt(ae.line,ae.ch+ce)}function ya(ie){ie.setSelection(jt(ie.firstLine(),0),jt(ie.lastLine()),Ft)}function Hs(ie,ae,ce){var de={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return de.canceled=!0}};return ce&&(de.update=function(pe,Me,ze,qe){pe&&(de.from=Pn(ie,pe)),Me&&(de.to=Pn(ie,Me)),ze&&(de.text=ze),qe!==void 0&&(de.origin=qe)}),Et(ie,"beforeChange",ie,de),ie.cm&&Et(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 ns(ie,ae,ce){if(ie.cm){if(!ie.cm.curOp)return Vn(ie.cm,ns)(ie,ae,ce);if(ie.cm.state.suppressEdits)return}if(!((Ct(ie,"beforeChange")||ie.cm&&Ct(ie.cm,"beforeChange"))&&(ae=Hs(ie,ae,!0),!ae))){var de=Vi&&!ce&&yo(ie,ae.from,ae.to);if(de)for(var pe=de.length-1;pe>=0;--pe)Da(ie,{from:de[pe].from,to:de[pe].to,text:pe?[""]:ae.text,origin:ae.origin});else Da(ie,ae)}}function Da(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&sn(ae.from,ae.to)==0)){var ce=Xa(ie,ae);qr(ie,ae,ce,ie.cm?ie.cm.curOp.id:NaN),hu(ie,ae,ce,Ai(ie,ae));var de=[];gs(ie,function(pe,Me){!Me&&wt(de,pe.history)==-1&&(Ra(pe.history,ae),de.push(pe.history)),hu(pe,ae,null,Ai(pe,ae))})}}function Yl(ie,ae,ce){var de=ie.cm&&ie.cm.state.suppressEdits;if(!(de&&!ce)){for(var pe=ie.history,Me,ze=ie.sel,qe=ae=="undo"?pe.done:pe.undone,Qe=ae=="undo"?pe.undone:pe.done,St=0;St<qe.length&&(Me=qe[St],!(ce?Me.ranges&&!Me.equals(ie.sel):!Me.ranges));St++);if(St!=qe.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Me=qe.pop(),Me.ranges){if(ys(Me,Qe),ce&&!Me.equals(ie.sel)){Aa(ie,Me,{clearRedo:!1});return}ze=Me}else if(de){qe.push(Me);return}else break;var mn=[];ys(ze,Qe),Qe.push({changes:mn,generation:pe.generation}),pe.generation=Me.generation||++pe.maxGeneration;for(var kt=Ct(ie,"beforeChange")||ie.cm&&Ct(ie.cm,"beforeChange"),Yn=function(Oi){var Ui=Me.changes[Oi];if(Ui.origin=ae,kt&&!Hs(ie,Ui,!1))return qe.length=0,{};mn.push(sa(ie,Ui));var mo=Oi?Xa(ie,Ui):bt(qe);hu(ie,Ui,mo,ds(ie,Ui)),!Oi&&ie.cm&&ie.cm.scrollIntoView({from:Ui.from,to:ga(Ui)});var Zo=[];gs(ie,function(To,qo){!qo&&wt(Zo,To.history)==-1&&(Ra(To.history,Ui),Zo.push(To.history)),hu(To,Ui,null,ds(To,Ui))})},Zn=Me.changes.length-1;Zn>=0;--Zn){var Li=Yn(Zn);if(Li)return Li.v}}}}function yh(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new vr(zn(ie.sel.ranges,function(pe){return new po(jt(pe.anchor.line+ae,pe.anchor.ch),jt(pe.head.line+ae,pe.head.ch))}),ie.sel.primIndex),ie.cm)){Fa(ie.cm,ie.first,ie.first-ae,ae);for(var ce=ie.cm.display,de=ce.viewFrom;de<ce.viewTo;de++)yi(ie.cm,de,"gutter")}}function hu(ie,ae,ce,de){if(ie.cm&&!ie.cm.curOp)return Vn(ie.cm,hu)(ie,ae,ce,de);if(ae.to.line<ie.first){yh(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var pe=ae.text.length-1-(ie.first-ae.from.line);yh(ie,pe),ae={from:jt(ie.first,0),to:jt(ae.to.line+pe,ae.to.ch),text:[bt(ae.text)],origin:ae.origin}}var Me=ie.lastLine();ae.to.line>Me&&(ae={from:ae.from,to:jt(Me,Wt(ie,Me).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=Ut(ie,ae.from,ae.to),ce||(ce=Xa(ie,ae)),ie.cm?Wu(ie.cm,ae,de):Ia(ie,ae,de),Fs(ie,ce,Ft),ie.cantEdit&&uu(ie,jt(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Wu(ie,ae,ce){var de=ie.doc,pe=ie.display,Me=ae.from,ze=ae.to,qe=!1,Qe=Me.line;ie.options.lineWrapping||(Qe=at(Lo(Wt(de,Me.line))),de.iter(Qe,ze.line+1,function(Zn){if(Zn==pe.maxLine)return qe=!0,!0})),de.sel.contains(ae.from,ae.to)>-1&&On(ie),Ia(de,ae,ce,Za(ie)),ie.options.lineWrapping||(de.iter(Qe,Me.line+ae.text.length,function(Zn){var Li=Ir(Zn);Li>pe.maxLineLength&&(pe.maxLine=Zn,pe.maxLineLength=Li,pe.maxLineChanged=!0,qe=!1)}),qe&&(ie.curOp.updateMaxLine=!0)),Pi(de,Me.line),oi(ie,400);var St=ae.text.length-(ze.line-Me.line)-1;ae.full?Fa(ie):Me.line==ze.line&&ae.text.length==1&&!Ya(ie.doc,ae)?yi(ie,Me.line,"text"):Fa(ie,Me.line,ze.line+1,St);var mn=Ct(ie,"changes"),kt=Ct(ie,"change");if(kt||mn){var Yn={from:Me,to:ze,text:ae.text,removed:ae.removed,origin:ae.origin};kt&&vi(ie,"change",ie,Yn),mn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(Yn)}ie.display.selForContextMenu=null}function ih(ie,ae,ce,de,pe){var Me;de||(de=ce),sn(de,ce)<0&&(Me=[de,ce],ce=Me[0],de=Me[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),ns(ie,{from:ce,to:de,text:ae,origin:pe})}function Il(ie,ae,ce,de){ce<ie.line?ie.line+=de:ae<ie.line&&(ie.line=ae,ie.ch=0)}function la(ie,ae,ce,de){for(var pe=0;pe<ie.length;++pe){var Me=ie[pe],ze=!0;if(Me.ranges){Me.copied||(Me=ie[pe]=Me.deepCopy(),Me.copied=!0);for(var qe=0;qe<Me.ranges.length;qe++)Il(Me.ranges[qe].anchor,ae,ce,de),Il(Me.ranges[qe].head,ae,ce,de);continue}for(var Qe=0;Qe<Me.changes.length;++Qe){var St=Me.changes[Qe];if(ce<St.from.line)St.from=jt(St.from.line+de,St.from.ch),St.to=jt(St.to.line+de,St.to.ch);else if(ae<=St.to.line){ze=!1;break}}ze||(ie.splice(0,pe+1),pe=0)}}function Ra(ie,ae){var ce=ae.from.line,de=ae.to.line,pe=ae.text.length-(de-ce)-1;la(ie.done,ce,de,pe),la(ie.undone,ce,de,pe)}function Ss(ie,ae,ce,de){var pe=ae,Me=ae;return typeof ae=="number"?Me=Wt(ie,xn(ie,ae)):pe=at(ae),pe==null?null:(de(Me,pe)&&ie.cm&&yi(ie.cm,pe,ce),Me)}function ja(ie){this.lines=ie,this.parent=null;for(var ae=0,ce=0;ce<ie.length;++ce)ie[ce].parent=this,ae+=ie[ce].height;this.height=ae}ja.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var ce=ie,de=ie+ae;ce<de;++ce){var pe=this.lines[ce];this.height-=pe.height,Ar(pe),vi(pe,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,ce){this.height+=ce,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,ce){for(var de=ie+ae;ie<de;++ie)if(ce(this.lines[ie]))return!0}};function na(ie){this.children=ie;for(var ae=0,ce=0,de=0;de<ie.length;++de){var pe=ie[de];ae+=pe.chunkSize(),ce+=pe.height,pe.parent=this}this.size=ae,this.height=ce,this.parent=null}na.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var ce=0;ce<this.children.length;++ce){var de=this.children[ce],pe=de.chunkSize();if(ie<pe){var Me=Math.min(ae,pe-ie),ze=de.height;if(de.removeInner(ie,Me),this.height-=ze-de.height,pe==Me&&(this.children.splice(ce--,1),de.parent=null),(ae-=Me)==0)break;ie=0}else ie-=pe}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof ja))){var qe=[];this.collapse(qe),this.children=[new ja(qe)],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,ce){this.size+=ae.length,this.height+=ce;for(var de=0;de<this.children.length;++de){var pe=this.children[de],Me=pe.chunkSize();if(ie<=Me){if(pe.insertInner(ie,ae,ce),pe.lines&&pe.lines.length>50){for(var ze=pe.lines.length%25+25,qe=ze;qe<pe.lines.length;){var Qe=new ja(pe.lines.slice(qe,qe+=25));pe.height-=Qe.height,this.children.splice(++de,0,Qe),Qe.parent=this}pe.lines=pe.lines.slice(0,ze),this.maybeSpill()}break}ie-=Me}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),ce=new na(ae);if(ie.parent){ie.size-=ce.size,ie.height-=ce.height;var pe=wt(ie.parent.children,ie);ie.parent.children.splice(pe+1,0,ce)}else{var de=new na(ie.children);de.parent=ie,ie.children=[de,ce],ie=de}ce.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ce){for(var de=0;de<this.children.length;++de){var pe=this.children[de],Me=pe.chunkSize();if(ie<Me){var ze=Math.min(ae,Me-ie);if(pe.iterN(ie,ze,ce))return!0;if((ae-=ze)==0)break;ie=0}else ie-=Me}}};var Ns=function(ie,ae,ce){if(ce)for(var de in ce)ce.hasOwnProperty(de)&&(this[de]=ce[de]);this.doc=ie,this.node=ae};Ns.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,ce=this.line,de=at(ce);if(!(de==null||!ae)){for(var pe=0;pe<ae.length;++pe)ae[pe]==this&&ae.splice(pe--,1);ae.length||(ce.widgets=null);var Me=Rs(this);Dn(ce,Math.max(0,ce.height-Me)),ie&&(rn(ie,function(){Ml(ie,ce,-Me),yi(ie,de,"widget")}),vi(ie,"lineWidgetCleared",ie,this,de))}},Ns.prototype.changed=function(){var ie=this,ae=this.height,ce=this.doc.cm,de=this.line;this.height=null;var pe=Rs(this)-ae;pe&&(ti(this.doc,de)||Dn(de,de.height+pe),ce&&rn(ce,function(){ce.curOp.forceUpdate=!0,Ml(ce,de,pe),vi(ce,"lineWidgetChanged",ce,ie,at(de))}))},_n(Ns);function Ml(ie,ae,ce){ir(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Mc(ie,ce)}function Mu(ie,ae,ce,de){var pe=new Ns(ie,ce,de),Me=ie.cm;return Me&&pe.noHScroll&&(Me.display.alignWidgets=!0),Ss(ie,ae,"widget",function(ze){var qe=ze.widgets||(ze.widgets=[]);if(pe.insertAt==null?qe.push(pe):qe.splice(Math.min(qe.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=ze,Me&&!ti(ie,ze)){var Qe=ir(ze)<ie.scrollTop;Dn(ze,ze.height+Rs(pe)),Qe&&Mc(Me,pe.height),Me.curOp.forceUpdate=!0}return!0}),Me&&vi(Me,"lineWidgetAdded",Me,pe,typeof ae=="number"?ae:at(ae)),pe}var df=0,$t=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++df};$t.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&El(ie),Ct(this,"clear")){var ce=this.find();ce&&vi(this,"clear",ce.from,ce.to)}for(var de=null,pe=null,Me=0;Me<this.lines.length;++Me){var ze=this.lines[Me],qe=No(ze.markedSpans,this);ie&&!this.collapsed?yi(ie,at(ze),"text"):ie&&(qe.to!=null&&(pe=at(ze)),qe.from!=null&&(de=at(ze))),ze.markedSpans=_i(ze.markedSpans,qe),qe.from==null&&this.collapsed&&!ti(this.doc,ze)&&ie&&Dn(ze,bu(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var Qe=0;Qe<this.lines.length;++Qe){var St=Lo(this.lines[Qe]),mn=Ir(St);mn>ie.display.maxLineLength&&(ie.display.maxLine=St,ie.display.maxLineLength=mn,ie.display.maxLineChanged=!0)}de!=null&&ie&&this.collapsed&&Fa(ie,de,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Ul(ie.doc)),ie&&vi(ie,"markerCleared",ie,this,de,pe),ae&&Rh(ie),this.parent&&this.parent.clear()}},$t.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ce,de,pe=0;pe<this.lines.length;++pe){var Me=this.lines[pe],ze=No(Me.markedSpans,this);if(ze.from!=null&&(ce=jt(ae?Me:at(Me),ze.from),ie==-1))return ce;if(ze.to!=null&&(de=jt(ae?Me:at(Me),ze.to),ie==1))return de}return ce&&{from:ce,to:de}},$t.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),ce=this,de=this.doc.cm;!ae||!de||rn(de,function(){var pe=ae.line,Me=at(ae.line),ze=ju(de,Me);if(ze&&(Es(ze),de.curOp.selectionChanged=de.curOp.forceUpdate=!0),de.curOp.updateMaxLine=!0,!ti(ce.doc,pe)&&ce.height!=null){var qe=ce.height;ce.height=null;var Qe=Rs(ce)-qe;Qe&&Dn(pe,pe.height+Qe)}vi(de,"markerChanged",de,ie)})},$t.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||wt(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},$t.prototype.detachLine=function(ie){if(this.lines.splice(wt(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},_n($t);function jh(ie,ae,ce,de,pe){if(de&&de.shared)return cf(ie,ae,ce,de,pe);if(ie.cm&&!ie.cm.curOp)return Vn(ie.cm,jh)(ie,ae,ce,de,pe);var Me=new $t(ie,pe),ze=sn(ae,ce);if(de&&yn(de,Me,!1),ze>0||ze==0&&Me.clearWhenEmpty!==!1)return Me;if(Me.replacedWith&&(Me.collapsed=!0,Me.widgetNode=dt("span",[Me.replacedWith],"CodeMirror-widget"),de.handleMouseEvents||Me.widgetNode.setAttribute("cm-ignore-events","true"),de.insertLeft&&(Me.widgetNode.insertLeft=!0)),Me.collapsed){if(jo(ie,ae.line,ae,ce,Me)||ae.line!=ce.line&&jo(ie,ce.line,ae,ce,Me))throw new Error("Inserting collapsed marker partially overlapping an existing one");Mn()}Me.addToHistory&&qr(ie,{from:ae,to:ce,origin:"markText"},ie.sel,NaN);var qe=ae.line,Qe=ie.cm,St;if(ie.iter(qe,ce.line+1,function(kt){Qe&&Me.collapsed&&!Qe.options.lineWrapping&&Lo(kt)==Qe.display.maxLine&&(St=!0),Me.collapsed&&qe!=ae.line&&Dn(kt,0),Go(kt,new ro(Me,qe==ae.line?ae.ch:null,qe==ce.line?ce.ch:null)),++qe}),Me.collapsed&&ie.iter(ae.line,ce.line+1,function(kt){ti(ie,kt)&&Dn(kt,0)}),Me.clearOnEnter&&Jt(Me,"beforeCursorEnter",function(){return Me.clear()}),Me.readOnly&&(So(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Me.collapsed&&(Me.id=++df,Me.atomic=!0),Qe){if(St&&(Qe.curOp.updateMaxLine=!0),Me.collapsed)Fa(Qe,ae.line,ce.line+1);else if(Me.className||Me.startStyle||Me.endStyle||Me.css||Me.attributes||Me.title)for(var mn=ae.line;mn<=ce.line;mn++)yi(Qe,mn,"text");Me.atomic&&Ul(Qe.doc),vi(Qe,"markerAdded",Qe,Me)}return Me}var oh=function(ie,ae){this.markers=ie,this.primary=ae;for(var ce=0;ce<ie.length;++ce)ie[ce].parent=this};oh.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")}},oh.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},_n(oh);function cf(ie,ae,ce,de,pe){de=yn(de),de.shared=!1;var Me=[jh(ie,ae,ce,de,pe)],ze=Me[0],qe=de.widgetNode;return gs(ie,function(Qe){qe&&(de.widgetNode=qe.cloneNode(!0)),Me.push(jh(Qe,Pn(Qe,ae),Pn(Qe,ce),de,pe));for(var St=0;St<Qe.linked.length;++St)if(Qe.linked[St].isParent)return;ze=bt(Me)}),new oh(Me,ze)}function Pd(ie){return ie.findMarks(jt(ie.first,0),ie.clipPos(jt(ie.lastLine())),function(ae){return ae.parent})}function ad(ie,ae){for(var ce=0;ce<ae.length;ce++){var de=ae[ce],pe=de.find(),Me=ie.clipPos(pe.from),ze=ie.clipPos(pe.to);if(sn(Me,ze)){var qe=jh(ie,Me,ze,de.primary,de.primary.type);de.markers.push(qe),qe.parent=de}}}function Nc(ie){for(var ae=function(de){var pe=ie[de],Me=[pe.primary.doc];gs(pe.primary.doc,function(Qe){return Me.push(Qe)});for(var ze=0;ze<pe.markers.length;ze++){var qe=pe.markers[ze];wt(Me,qe.doc)==-1&&(qe.parent=null,pe.markers.splice(ze--,1))}},ce=0;ce<ie.length;ce++)ae(ce)}var Vg=0,Ws=function(ie,ae,ce,de,pe){if(!(this instanceof Ws))return new Ws(ie,ae,ce,de,pe);ce==null&&(ce=0),na.call(this,[new ja([new er("",null)])]),this.first=ce,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ce;var Me=jt(ce,0);this.sel=Tr(Me),this.history=new Yo(null),this.id=++Vg,this.modeOption=ae,this.lineSep=de,this.direction=pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),Ia(this,{from:Me,to:Me,text:ie}),Aa(this,Tr(Me),Ft)};Ws.prototype=Le(na.prototype,{constructor:Ws,iter:function(ie,ae,ce){ce?this.iterN(ie-this.first,ae-ie,ce):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var ce=0,de=0;de<ae.length;++de)ce+=ae[de].height;this.insertInner(ie-this.first,ae,ce)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=fn(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:jn(function(ie){var ae=jt(this.first,0),ce=this.first+this.size-1;ns(this,{from:ae,to:jt(ce,Wt(this,ce).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&od(this.cm,0,0),Aa(this,Tr(ae),Ft)}),replaceRange:function(ie,ae,ce,de){ae=Pn(this,ae),ce=ce?Pn(this,ce):ae,ih(this,ie,ae,ce,de)},getRange:function(ie,ae,ce){var de=Ut(this,Pn(this,ie),Pn(this,ae));return ce===!1?de:de.join(ce||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(Hn(this,ie))return Wt(this,ie)},getLineNumber:function(ie){return at(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=Wt(this,ie)),Lo(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return Pn(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),ce;return ie==null||ie=="head"?ce=ae.head:ie=="anchor"?ce=ae.anchor:ie=="end"||ie=="to"||ie===!1?ce=ae.to():ce=ae.from(),ce},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:jn(function(ie,ae,ce){rs(this,Pn(this,typeof ie=="number"?jt(ie,ae||0):ie),null,ce)}),setSelection:jn(function(ie,ae,ce){rs(this,Pn(this,ie),Pn(this,ae||ie),ce)}),extendSelection:jn(function(ie,ae,ce){ma(this,Pn(this,ie),ae&&Pn(this,ae),ce)}),extendSelections:jn(function(ie,ae){ba(this,Wn(this,ie),ae)}),extendSelectionsBy:jn(function(ie,ae){var ce=zn(this.sel.ranges,ie);ba(this,Wn(this,ce),ae)}),setSelections:jn(function(ie,ae,ce){if(ie.length){for(var de=[],pe=0;pe<ie.length;pe++)de[pe]=new po(Pn(this,ie[pe].anchor),Pn(this,ie[pe].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),Aa(this,Nr(this.cm,de,ae),ce)}}),addSelection:jn(function(ie,ae,ce){var de=this.sel.ranges.slice(0);de.push(new po(Pn(this,ie),Pn(this,ae||ie))),Aa(this,Nr(this.cm,de,de.length-1),ce)}),getSelection:function(ie){for(var ae=this.sel.ranges,ce,de=0;de<ae.length;de++){var pe=Ut(this,ae[de].from(),ae[de].to());ce=ce?ce.concat(pe):pe}return ie===!1?ce:ce.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],ce=this.sel.ranges,de=0;de<ce.length;de++){var pe=Ut(this,ce[de].from(),ce[de].to());ie!==!1&&(pe=pe.join(ie||this.lineSeparator())),ae[de]=pe}return ae},replaceSelection:function(ie,ae,ce){for(var de=[],pe=0;pe<this.sel.ranges.length;pe++)de[pe]=ie;this.replaceSelections(de,ae,ce||"+input")},replaceSelections:jn(function(ie,ae,ce){for(var de=[],pe=this.sel,Me=0;Me<pe.ranges.length;Me++){var ze=pe.ranges[Me];de[Me]={from:ze.from(),to:ze.to(),text:this.splitLines(ie[Me]),origin:ce}}for(var qe=ae&&ae!="end"&&Dr(this,de,ae),Qe=de.length-1;Qe>=0;Qe--)ns(this,de[Qe]);qe?Ur(this,qe):this.cm&&Th(this.cm)}),undo:jn(function(){Yl(this,"undo")}),redo:jn(function(){Yl(this,"redo")}),undoSelection:jn(function(){Yl(this,"undo",!0)}),redoSelection:jn(function(){Yl(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ce=0,de=0;de<ie.done.length;de++)ie.done[de].ranges||++ae;for(var pe=0;pe<ie.undone.length;pe++)ie.undone[pe].ranges||++ce;return{undo:ae,redo:ce}},clearHistory:function(){var ie=this;this.history=new Yo(this.history.maxGeneration),gs(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:Ls(this.history.done),undone:Ls(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Yo(this.history.maxGeneration);ae.done=Ls(ie.done.slice(0),null,!0),ae.undone=Ls(ie.undone.slice(0),null,!0)},setGutterMarker:jn(function(ie,ae,ce){return Ss(this,ie,"gutter",function(de){var pe=de.gutterMarkers||(de.gutterMarkers={});return pe[ae]=ce,!ce&&ve(pe)&&(de.gutterMarkers=null),!0})}),clearGutter:jn(function(ie){var ae=this;this.iter(function(ce){ce.gutterMarkers&&ce.gutterMarkers[ie]&&Ss(ae,ce,"gutter",function(){return ce.gutterMarkers[ie]=null,ve(ce.gutterMarkers)&&(ce.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!Hn(this,ie)||(ae=ie,ie=Wt(this,ie),!ie))return null}else if(ae=at(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:jn(function(ie,ae,ce){return Ss(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!de[pe])de[pe]=ce;else{if(Be(ce).test(de[pe]))return!1;de[pe]+=" "+ce}return!0})}),removeLineClass:jn(function(ie,ae,ce){return Ss(this,ie,ae=="gutter"?"gutter":"class",function(de){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Me=de[pe];if(Me)if(ce==null)de[pe]=null;else{var ze=Me.match(Be(ce));if(!ze)return!1;var qe=ze.index+ze[0].length;de[pe]=Me.slice(0,ze.index)+(!ze.index||qe==Me.length?"":" ")+Me.slice(qe)||null}else return!1;return!0})}),addLineWidget:jn(function(ie,ae,ce){return Mu(this,ie,ae,ce)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,ce){return jh(this,Pn(this,ie),Pn(this,ae),ce,ce&&ce.type||"range")},setBookmark:function(ie,ae){var ce={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=Pn(this,ie),jh(this,ie,ie,ce,"bookmark")},findMarksAt:function(ie){ie=Pn(this,ie);var ae=[],ce=Wt(this,ie.line).markedSpans;if(ce)for(var de=0;de<ce.length;++de){var pe=ce[de];(pe.from==null||pe.from<=ie.ch)&&(pe.to==null||pe.to>=ie.ch)&&ae.push(pe.marker.parent||pe.marker)}return ae},findMarks:function(ie,ae,ce){ie=Pn(this,ie),ae=Pn(this,ae);var de=[],pe=ie.line;return this.iter(ie.line,ae.line+1,function(Me){var ze=Me.markedSpans;if(ze)for(var qe=0;qe<ze.length;qe++){var Qe=ze[qe];!(Qe.to!=null&&pe==ie.line&&ie.ch>=Qe.to||Qe.from==null&&pe!=ie.line||Qe.from!=null&&pe==ae.line&&Qe.from>=ae.ch)&&(!ce||ce(Qe.marker))&&de.push(Qe.marker.parent||Qe.marker)}++pe}),de},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ce=ae.markedSpans;if(ce)for(var de=0;de<ce.length;++de)ce[de].from!=null&&ie.push(ce[de].marker)}),ie},posFromIndex:function(ie){var ae,ce=this.first,de=this.lineSeparator().length;return this.iter(function(pe){var Me=pe.text.length+de;if(Me>ie)return ae=ie,!0;ie-=Me,++ce}),Pn(this,jt(ce,ae))},indexFromPos:function(ie){ie=Pn(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ce=this.lineSeparator().length;return this.iter(this.first,ie.line,function(de){ae+=de.text.length+ce}),ae},copy:function(ie){var ae=new Ws(fn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,ce=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<ce&&(ce=ie.to);var de=new Ws(fn(this,ae,ce),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}],ad(de,Pd(this)),de},unlinkDoc:function(ie){if(ie instanceof xa&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var ce=this.linked[ae];if(ce.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),Nc(Pd(this));break}}if(ie.history==this.history){var de=[ie.id];gs(ie,function(pe){return de.push(pe.id)},!0),ie.history=new Yo(null),ie.history.done=Ls(this.history.done,de),ie.history.undone=Ls(this.history.undone,de)}},iterLinkedDocs:function(ie){gs(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):Bn(ie)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:jn(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&Sr(this.cm))})}),Ws.prototype.eachLine=Ws.prototype.iter;var _d=0;function kc(ie){var ae=this;if(Xf(ae),!(cn(ae,ie)||As(ae.display,ie))){ui(ie),Ue&&(_d=+new Date);var ce=tl(ae,ie,!0),de=ie.dataTransfer.files;if(!(!ce||ae.isReadOnly()))if(de&&de.length&&window.FileReader&&window.File)for(var pe=de.length,Me=Array(pe),ze=0,qe=function(){++ze==pe&&Vn(ae,function(){ce=Pn(ae.doc,ce);var Zn={from:ce,to:ce,text:ae.doc.splitLines(Me.filter(function(Li){return Li!=null}).join(ae.doc.lineSeparator())),origin:"paste"};ns(ae.doc,Zn),Ur(ae.doc,Tr(Pn(ae.doc,ce),Pn(ae.doc,ga(Zn))))})()},Qe=function(Zn,Li){if(ae.options.allowDropFileTypes&&wt(ae.options.allowDropFileTypes,Zn.type)==-1){qe();return}var Oi=new FileReader;Oi.onerror=function(){return qe()},Oi.onload=function(){var Ui=Oi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ui)){qe();return}Me[Li]=Ui,qe()},Oi.readAsText(Zn)},St=0;St<de.length;St++)Qe(de[St],St);else{if(ae.state.draggingText&&ae.doc.sel.contains(ce)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var mn=ie.dataTransfer.getData("Text");if(mn){var kt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(kt=ae.listSelections()),Fs(ae.doc,Tr(ce,ce)),kt)for(var Yn=0;Yn<kt.length;++Yn)ih(ae.doc,"",kt[Yn].anchor,kt[Yn].head,"drag");ae.replaceSelection(mn,"around","paste"),ae.display.input.focus()}}catch(Zn){}}}}function qd(ie,ae){if(Ue&&(!ie.state.draggingText||+new Date-_d<100)){Hi(ae);return}if(!(cn(ie,ae)||As(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!Rt)){var ce=Xe("img",null,null,"position: fixed; left: 0; top: 0;");ce.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ot&&(ce.width=ce.height=1,ie.display.wrapper.appendChild(ce),ce._top=ce.offsetTop),ae.dataTransfer.setDragImage(ce,0,0),ot&&ce.parentNode.removeChild(ce)}}function ff(ie,ae){var ce=tl(ie,ae);if(ce){var de=document.createDocumentFragment();Gr(ie,ce,de),ie.display.dragCursor||(ie.display.dragCursor=Xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),nt(ie.display.dragCursor,de)}}function Xf(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function gf(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),ce=[],de=0;de<ae.length;de++){var pe=ae[de].CodeMirror;pe&&ce.push(pe)}ce.length&&ce[0].operation(function(){for(var Me=0;Me<ce.length;Me++)ie(ce[Me])})}}var Ac=!1;function Jl(){Ac||(Cd(),Ac=!0)}function Cd(){var ie;Jt(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,gf(pf)},100))}),Jt(window,"blur",function(){return gf(su)})}function pf(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Gu={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"},zh=0;zh<10;zh++)Gu[zh+48]=Gu[zh+96]=String(zh);for(var bd=65;bd<=90;bd++)Gu[bd]=String.fromCharCode(bd);for(var sd=1;sd<=12;sd++)Gu[sd+111]=Gu[sd+63235]="F"+sd;var Fl={};Fl.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"},Fl.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"},Fl.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"},Fl.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"]},Fl.default=he?Fl.macDefault:Fl.pcDefault;function Dc(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var ce,de,pe,Me,ze=0;ze<ae.length-1;ze++){var qe=ae[ze];if(/^(cmd|meta|m)$/i.test(qe))Me=!0;else if(/^a(lt)?$/i.test(qe))ce=!0;else if(/^(c|ctrl|control)$/i.test(qe))de=!0;else if(/^s(hift)?$/i.test(qe))pe=!0;else throw new Error("Unrecognized modifier name: "+qe)}return ce&&(ie="Alt-"+ie),de&&(ie="Ctrl-"+ie),Me&&(ie="Cmd-"+ie),pe&&(ie="Shift-"+ie),ie}function Bc(ie){var ae={};for(var ce in ie)if(ie.hasOwnProperty(ce)){var de=ie[ce];if(/^(name|fallthrough|(de|at)tach)$/.test(ce))continue;if(de=="..."){delete ie[ce];continue}for(var pe=zn(ce.split(" "),Dc),Me=0;Me<pe.length;Me++){var ze=void 0,qe=void 0;Me==pe.length-1?(qe=pe.join(" "),ze=de):(qe=pe.slice(0,Me+1).join(" "),ze="...");var Qe=ae[qe];if(!Qe)ae[qe]=ze;else if(Qe!=ze)throw new Error("Inconsistent bindings for "+qe)}delete ie[ce]}for(var St in ae)ie[St]=ae[St];return ie}function $l(ie,ae,ce,de){ae=Hh(ae);var pe=ae.call?ae.call(ie,de):ae[ie];if(pe===!1)return"nothing";if(pe==="...")return"multi";if(pe!=null&&ce(pe))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return $l(ie,ae.fallthrough,ce,de);for(var Me=0;Me<ae.fallthrough.length;Me++){var ze=$l(ie,ae.fallthrough[Me],ce,de);if(ze)return ze}}}function Ed(ie){var ae=typeof ie=="string"?ie:Gu[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function Tc(ie,ae,ce){var de=ie;return ae.altKey&&de!="Alt"&&(ie="Alt-"+ie),(we?ae.metaKey:ae.ctrlKey)&&de!="Ctrl"&&(ie="Ctrl-"+ie),(we?ae.ctrlKey:ae.metaKey)&&de!="Mod"&&(ie="Cmd-"+ie),!ce&&ae.shiftKey&&de!="Shift"&&(ie="Shift-"+ie),ie}function Oc(ie,ae){if(ot&&ie.keyCode==34&&ie.char)return!1;var ce=Gu[ie.keyCode];return ce==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ce=ie.code),Tc(ce,ie,ae))}function Hh(ie){return typeof ie=="string"?Fl[ie]:ie}function ml(ie,ae){for(var ce=ie.doc.sel.ranges,de=[],pe=0;pe<ce.length;pe++){for(var Me=ae(ce[pe]);de.length&&sn(Me.from,bt(de).to)<=0;){var ze=de.pop();if(sn(ze.from,Me.from)<0){Me.from=ze.from;break}}de.push(Me)}rn(ie,function(){for(var qe=de.length-1;qe>=0;qe--)ih(ie.doc,"",de[qe].from,de[qe].to,"+delete");Th(ie)})}function Ic(ie,ae,ce){var de=et(ie.text,ae+ce,ce);return de<0||de>ie.text.length?null:de}function xs(ie,ae,ce){var de=Ic(ie,ae.ch,ce);return de==null?null:new jt(ae.line,de,ce<0?"after":"before")}function va(ie,ae,ce,de,pe){if(ie){ae.doc.direction=="rtl"&&(pe=-pe);var Me=pn(ce,ae.doc.direction);if(Me){var ze=pe<0?bt(Me):Me[0],qe=pe<0==(ze.level==1),Qe=qe?"after":"before",St;if(ze.level>0||ae.doc.direction=="rtl"){var mn=ru(ae,ce);St=pe<0?ce.text.length-1:0;var kt=pl(ae,mn,St).top;St=Ve(function(Yn){return pl(ae,mn,Yn).top==kt},pe<0==(ze.level==1)?ze.from:ze.to-1,St),Qe=="before"&&(St=Ic(ce,St,1))}else St=pe<0?ze.to:ze.from;return new jt(de,St,Qe)}}return new jt(de,pe<0?ce.text.length:0,pe<0?"before":"after")}function Ua(ie,ae,ce,de){var pe=pn(ae,ie.doc.direction);if(!pe)return xs(ae,ce,de);ce.ch>=ae.text.length?(ce.ch=ae.text.length,ce.sticky="before"):ce.ch<=0&&(ce.ch=0,ce.sticky="after");var Me=rt(pe,ce.ch,ce.sticky),ze=pe[Me];if(ie.doc.direction=="ltr"&&ze.level%2==0&&(de>0?ze.to>ce.ch:ze.from<ce.ch))return xs(ae,ce,de);var qe=function(mo,Zo){return Ic(ae,mo instanceof jt?mo.ch:mo,Zo)},Qe,St=function(mo){return ie.options.lineWrapping?(Qe=Qe||ru(ie,ae),Bh(ie,ae,Qe,mo)):{begin:0,end:ae.text.length}},mn=St(ce.sticky=="before"?qe(ce,-1):ce.ch);if(ie.doc.direction=="rtl"||ze.level==1){var kt=ze.level==1==de<0,Yn=qe(ce,kt?1:-1);if(Yn!=null&&(kt?Yn<=ze.to&&Yn<=mn.end:Yn>=ze.from&&Yn>=mn.begin)){var Zn=kt?"before":"after";return new jt(ce.line,Yn,Zn)}}var Li=function(mo,Zo,To){for(var qo=function(as,Qs){return Qs?new jt(ce.line,qe(as,1),"before"):new jt(ce.line,as,"after")};mo>=0&&mo<pe.length;mo+=Zo){var kr=pe[mo],Ao=Zo>0==(kr.level!=1),Xr=Ao?To.begin:qe(To.end,-1);if(kr.from<=Xr&&Xr<kr.to||(Xr=Ao?kr.from:qe(kr.to,-1),To.begin<=Xr&&Xr<To.end))return qo(Xr,Ao)}},Oi=Li(Me+de,de,mn);if(Oi)return Oi;var Ui=de>0?mn.end:qe(mn.begin,-1);return Ui!=null&&!(de>0&&Ui==ae.text.length)&&(Oi=Li(de>0?0:pe.length-1,de,St(Ui)),Oi)?Oi:null}var Js={selectAll:ya,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),Ft)},killLine:function(ie){return ml(ie,function(ae){if(ae.empty()){var ce=Wt(ie.doc,ae.head.line).text.length;return ae.head.ch==ce&&ae.head.line<ie.lastLine()?{from:ae.head,to:jt(ae.head.line+1,0)}:{from:ae.head,to:jt(ae.head.line,ce)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return ml(ie,function(ae){return{from:jt(ae.from().line,0),to:Pn(ie.doc,jt(ae.to().line+1,0))}})},delLineLeft:function(ie){return ml(ie,function(ae){return{from:jt(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return ml(ie,function(ae){var ce=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:ce},"div");return{from:de,to:ae.from()}})},delWrappedLineRight:function(ie){return ml(ie,function(ae){var ce=ie.charCoords(ae.head,"div").top+5,de=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ce},"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(jt(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(jt(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 Rc(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return cu(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ce},"div")},Cn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:ce},"div")},Cn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5,de=ie.coordsChar({left:0,top:ce},"div");return de.ch<ie.getLine(de.line).search(/\S/)?Rc(ie,ae.head):de},Cn)},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=[],ce=ie.listSelections(),de=ie.options.tabSize,pe=0;pe<ce.length;pe++){var Me=ce[pe].from(),ze=vt(ie.getLine(Me.line),Me.ch,de);ae.push(Gn(de-ze%de))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return rn(ie,function(){for(var ae=ie.listSelections(),ce=[],de=0;de<ae.length;de++)if(ae[de].empty()){var pe=ae[de].head,Me=Wt(ie.doc,pe.line).text;if(Me){if(pe.ch==Me.length&&(pe=new jt(pe.line,pe.ch-1)),pe.ch>0)pe=new jt(pe.line,pe.ch+1),ie.replaceRange(Me.charAt(pe.ch-1)+Me.charAt(pe.ch-2),jt(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>ie.doc.first){var ze=Wt(ie.doc,pe.line-1).text;ze&&(pe=new jt(pe.line,1),ie.replaceRange(Me.charAt(0)+ie.doc.lineSeparator()+ze.charAt(ze.length-1),jt(pe.line-1,ze.length-1),pe,"+transpose"))}}ce.push(new po(pe,pe))}ie.setSelections(ce)})},newlineAndIndent:function(ie){return rn(ie,function(){for(var ae=ie.listSelections(),ce=ae.length-1;ce>=0;ce--)ie.replaceRange(ie.doc.lineSeparator(),ae[ce].anchor,ae[ce].head,"+input");ae=ie.listSelections();for(var de=0;de<ae.length;de++)ie.indentLine(ae[de].from().line,null,!0);Th(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function du(ie,ae){var ce=Wt(ie.doc,ae),de=Lo(ce);return de!=ce&&(ae=at(de)),va(!0,ie,de,ae,1)}function cu(ie,ae){var ce=Wt(ie.doc,ae),de=dr(ce);return de!=ce&&(ae=at(de)),va(!0,ie,ce,ae,-1)}function Rc(ie,ae){var ce=du(ie,ae.line),de=Wt(ie.doc,ce.line),pe=pn(de,ie.doc.direction);if(!pe||pe[0].level==0){var Me=Math.max(ce.ch,de.text.search(/\S/)),ze=ae.line==ce.line&&ae.ch<=Me&&ae.ch;return jt(ce.line,ze?0:Me,ce.sticky)}return ce}function Wh(ie,ae,ce){if(typeof ae=="string"&&(ae=Js[ae],!ae))return!1;ie.display.input.ensurePolled();var de=ie.display.shift,pe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ce&&(ie.display.shift=!1),pe=ae(ie)!=bn}finally{ie.display.shift=de,ie.state.suppressEdits=!1}return pe}function ec(ie,ae,ce){for(var de=0;de<ie.state.keyMaps.length;de++){var pe=$l(ae,ie.state.keyMaps[de],ce,ie);if(pe)return pe}return ie.options.extraKeys&&$l(ae,ie.options.extraKeys,ce,ie)||$l(ae,ie.options.keyMap,ce,ie)}var Fu=new je;function Sh(ie,ae,ce,de){var pe=ie.state.keySeq;if(pe){if(Ed(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Fu.set(50,function(){ie.state.keySeq==pe&&(ie.state.keySeq=null,ie.display.input.reset())}),Yf(ie,pe+" "+ae,ce,de))return!0}return Yf(ie,ae,ce,de)}function Yf(ie,ae,ce,de){var pe=ec(ie,ae,de);return pe=="multi"&&(ie.state.keySeq=ae),pe=="handled"&&vi(ie,"keyHandled",ie,ae,ce),(pe=="handled"||pe=="multi")&&(ui(ce),fa(ie)),!!pe}function Jf(ie,ae){var ce=Oc(ae,!0);return ce?ae.shiftKey&&!ie.state.keySeq?Sh(ie,"Shift-"+ce,ae,function(de){return Wh(ie,de,!0)})||Sh(ie,ce,ae,function(de){if(typeof de=="string"?/^go[A-Z]/.test(de):de.motion)return Wh(ie,de)}):Sh(ie,ce,ae,function(de){return Wh(ie,de)}):!1}function $f(ie,ae,ce){return Sh(ie,"'"+ce+"'",ae,function(de){return Wh(ie,de,!0)})}var tc=null;function Ug(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=yt(),!cn(ae,ie))){Ue&&Je<11&&ie.keyCode==27&&(ie.returnValue=!1);var ce=ie.keyCode;ae.display.shift=ce==16||ie.shiftKey;var de=Jf(ae,ie);ot&&(tc=de?ce:null,!de&&ce==88&&!Mi&&(he?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),Ce&&!he&&!de&&ce==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ce==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&Xg(ae)}}function Xg(ie){var ae=ie.display.lineDiv;an(ae,"CodeMirror-crosshair");function ce(de){(de.keyCode==18||!de.altKey)&&(Ie(ae,"CodeMirror-crosshair"),Tn(document,"keyup",ce),Tn(document,"mouseover",ce))}Jt(document,"keyup",ce),Jt(document,"mouseover",ce)}function Yg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),cn(this,ie)}function xh(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(As(ae.display,ie)||cn(ae,ie)||ie.ctrlKey&&!ie.altKey||he&&ie.metaKey)){var ce=ie.keyCode,de=ie.charCode;if(ot&&ce==tc){tc=null,ui(ie);return}if(!(ot&&(!ie.which||ie.which<10)&&Jf(ae,ie))){var pe=String.fromCharCode(de==null?ce:de);pe!="\b"&&($f(ae,ie,pe)||ae.display.input.onKeyPress(ie))}}}var om=400,Jg=function(ie,ae,ce){this.time=ie,this.pos=ae,this.button=ce};Jg.prototype.compare=function(ie,ae,ce){return this.time+om>ie&&sn(ae,this.pos)==0&&ce==this.button};var jc,nc;function $g(ie,ae){var ce=+new Date;return nc&&nc.compare(ce,ie,ae)?(jc=nc=null,"triple"):jc&&jc.compare(ce,ie,ae)?(nc=new Jg(ce,ie,ae),jc=null,"double"):(jc=new Jg(ce,ie,ae),nc=null,"single")}function wh(ie){var ae=this,ce=ae.display;if(!(cn(ae,ie)||ce.activeTouch&&ce.input.supportsTouch())){if(ce.input.ensurePolled(),ce.shift=ie.shiftKey,As(ce,ie)){ke||(ce.scroller.draggable=!1,setTimeout(function(){return ce.scroller.draggable=!0},100));return}if(!qf(ae,ie)){var de=tl(ae,ie),pe=Xi(ie),Me=de?$g(de,pe):"single";window.focus(),pe==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(de&&Qg(ae,pe,de,Me,ie))&&(pe==1?de?rm(ae,de,Me,ie):qi(ie)==ce.scroller&&ui(ie):pe==2?(de&&ma(ae.doc,de),setTimeout(function(){return ce.input.focus()},20)):pe==3&&(Fe?ae.display.input.onContextMenu(ie):ka(ae)))}}}function Qg(ie,ae,ce,de,pe){var Me="Click";return de=="double"?Me="Double"+Me:de=="triple"&&(Me="Triple"+Me),Me=(ae==1?"Left":ae==2?"Middle":"Right")+Me,Sh(ie,Tc(Me,pe),pe,function(ze){if(typeof ze=="string"&&(ze=Js[ze]),!ze)return!1;var qe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),qe=ze(ie,ce)!=bn}finally{ie.state.suppressEdits=!1}return qe})}function Qf(ie,ae,ce){var de=ie.getOption("configureMouse"),pe=de?de(ie,ae,ce):{};if(pe.unit==null){var Me=se?ce.shiftKey&&ce.metaKey:ce.altKey;pe.unit=Me?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(pe.extend==null||ie.doc.extend)&&(pe.extend=ie.doc.extend||ce.shiftKey),pe.addNew==null&&(pe.addNew=he?ce.metaKey:ce.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(he?ce.altKey:ce.ctrlKey)),pe}function rm(ie,ae,ce,de){Ue?setTimeout(hn(Ca,ie),0):ie.curOp.focus=yt();var pe=Qf(ie,ce,de),Me=ie.doc.sel,ze;ie.options.dragDrop&&eo&&!ie.isReadOnly()&&ce=="single"&&(ze=Me.contains(ae))>-1&&(sn((ze=Me.ranges[ze]).from(),ae)<0||ae.xRel>0)&&(sn(ze.to(),ae)>0||ae.xRel<0)?_g(ie,de,ae,pe):tv(ie,de,ae,pe)}function _g(ie,ae,ce,de){var pe=ie.display,Me=!1,ze=Vn(ie,function(St){ke&&(pe.scroller.draggable=!1),ie.state.draggingText=!1,Tn(pe.wrapper.ownerDocument,"mouseup",ze),Tn(pe.wrapper.ownerDocument,"mousemove",qe),Tn(pe.scroller,"dragstart",Qe),Tn(pe.scroller,"drop",ze),Me||(ui(St),de.addNew||ma(ie.doc,ce,null,null,de.extend),ke&&!Rt||Ue&&Je==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),qe=function(St){Me=Me||Math.abs(ae.clientX-St.clientX)+Math.abs(ae.clientY-St.clientY)>=10},Qe=function(){return Me=!0};ke&&(pe.scroller.draggable=!0),ie.state.draggingText=ze,ze.copy=!de.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),Jt(pe.wrapper.ownerDocument,"mouseup",ze),Jt(pe.wrapper.ownerDocument,"mousemove",qe),Jt(pe.scroller,"dragstart",Qe),Jt(pe.scroller,"drop",ze),ka(ie),setTimeout(function(){return pe.input.focus()},20)}function qg(ie,ae,ce){if(ce=="char")return new po(ae,ae);if(ce=="word")return ie.findWordAt(ae);if(ce=="line")return new po(jt(ae.line,0),Pn(ie.doc,jt(ae.line+1,0)));var de=ce(ie,ae);return new po(de.from,de.to)}function tv(ie,ae,ce,de){var pe=ie.display,Me=ie.doc;ui(ae);var ze,qe,Qe=Me.sel,St=Qe.ranges;if(de.addNew&&!de.extend?(qe=Me.sel.contains(ce),qe>-1?ze=St[qe]:ze=new po(ce,ce)):(ze=Me.sel.primary(),qe=Me.sel.primIndex),de.unit=="rectangle")de.addNew||(ze=new po(ce,ce)),ce=tl(ie,ae,!0,!0),qe=-1;else{var mn=qg(ie,ce,de.unit);de.extend?ze=nh(ze,mn.anchor,mn.head,de.extend):ze=mn}de.addNew?qe==-1?(qe=St.length,Aa(Me,Nr(ie,St.concat([ze]),qe),{scroll:!1,origin:"*mouse"})):St.length>1&&St[qe].empty()&&de.unit=="char"&&!de.extend?(Aa(Me,Nr(ie,St.slice(0,qe).concat(St.slice(qe+1)),0),{scroll:!1,origin:"*mouse"}),Qe=Me.sel):Na(Me,qe,ze,Xt):(qe=0,Aa(Me,new vr([ze],0),Xt),Qe=Me.sel);var kt=ce;function Yn(To){if(sn(kt,To)!=0)if(kt=To,de.unit=="rectangle"){for(var qo=[],kr=ie.options.tabSize,Ao=vt(Wt(Me,ce.line).text,ce.ch,kr),Xr=vt(Wt(Me,To.line).text,To.ch,kr),as=Math.min(Ao,Xr),Qs=Math.max(Ao,Xr),ps=Math.min(ce.line,To.line),_l=Math.min(ie.lastLine(),Math.max(ce.line,To.line));ps<=_l;ps++){var Nl=Wt(Me,ps).text,Ks=Qn(Nl,as,kr);as==Qs?qo.push(new po(jt(ps,Ks),jt(ps,Ks))):Nl.length>Ks&&qo.push(new po(jt(ps,Ks),jt(ps,Qn(Nl,Qs,kr))))}qo.length||qo.push(new po(ce,ce)),Aa(Me,Nr(ie,Qe.ranges.slice(0,qe).concat(qo),qe),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(To)}else{var fu=ze,vl=qg(ie,To,de.unit),Zs=fu.anchor,Ea;sn(vl.anchor,Zs)>0?(Ea=vl.head,Zs=en(fu.from(),vl.anchor)):(Ea=vl.anchor,Zs=qt(fu.to(),vl.head));var ws=Qe.ranges.slice(0);ws[qe]=am(ie,new po(Pn(Me,Zs),Ea)),Aa(Me,Nr(ie,ws,qe),Xt)}}var Zn=pe.wrapper.getBoundingClientRect(),Li=0;function Oi(To){var qo=++Li,kr=tl(ie,To,!0,de.unit=="rectangle");if(kr)if(sn(kr,kt)!=0){ie.curOp.focus=yt(),Yn(kr);var Ao=Rr(pe,Me);(kr.line>=Ao.to||kr.line<Ao.from)&&setTimeout(Vn(ie,function(){Li==qo&&Oi(To)}),150)}else{var Xr=To.clientY<Zn.top?-20:To.clientY>Zn.bottom?20:0;Xr&&setTimeout(Vn(ie,function(){Li==qo&&(pe.scroller.scrollTop+=Xr,Oi(To))}),50)}}function Ui(To){ie.state.selectingText=!1,Li=1/0,To&&(ui(To),pe.input.focus()),Tn(pe.wrapper.ownerDocument,"mousemove",mo),Tn(pe.wrapper.ownerDocument,"mouseup",Zo),Me.history.lastSelOrigin=null}var mo=Vn(ie,function(To){To.buttons===0||!Xi(To)?Ui(To):Oi(To)}),Zo=Vn(ie,Ui);ie.state.selectingText=Zo,Jt(pe.wrapper.ownerDocument,"mousemove",mo),Jt(pe.wrapper.ownerDocument,"mouseup",Zo)}function am(ie,ae){var ce=ae.anchor,de=ae.head,pe=Wt(ie.doc,ce.line);if(sn(ce,de)==0&&ce.sticky==de.sticky)return ae;var Me=pn(pe);if(!Me)return ae;var ze=rt(Me,ce.ch,ce.sticky),qe=Me[ze];if(qe.from!=ce.ch&&qe.to!=ce.ch)return ae;var Qe=ze+(qe.from==ce.ch==(qe.level!=1)?0:1);if(Qe==0||Qe==Me.length)return ae;var St;if(de.line!=ce.line)St=(de.line-ce.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var mn=rt(Me,de.ch,de.sticky),kt=mn-ze||(de.ch-ce.ch)*(qe.level==1?-1:1);mn==Qe-1||mn==Qe?St=kt<0:St=kt>0}var Yn=Me[Qe+(St?-1:0)],Zn=St==(Yn.level==1),Li=Zn?Yn.from:Yn.to,Oi=Zn?"after":"before";return ce.ch==Li&&ce.sticky==Oi?ae:new po(new jt(ce.line,Li,Oi),de)}function _f(ie,ae,ce,de){var pe,Me;if(ae.touches)pe=ae.touches[0].clientX,Me=ae.touches[0].clientY;else try{pe=ae.clientX,Me=ae.clientY}catch(Yn){return!1}if(pe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;de&&ui(ae);var ze=ie.display,qe=ze.lineDiv.getBoundingClientRect();if(Me>qe.bottom||!Ct(ie,ce))return ci(ae);Me-=qe.top-ze.viewOffset;for(var Qe=0;Qe<ie.display.gutterSpecs.length;++Qe){var St=ze.gutters.childNodes[Qe];if(St&&St.getBoundingClientRect().right>=pe){var mn=ln(ie.doc,Me),kt=ie.display.gutterSpecs[Qe];return Et(ie,ce,ie,mn,kt.className,ae),ci(ae)}}}function qf(ie,ae){return _f(ie,ae,"gutterClick",!0)}function eg(ie,ae){As(ie.display,ae)||sm(ie,ae)||cn(ie,ae,"contextmenu")||Fe||ie.display.input.onContextMenu(ae)}function sm(ie,ae){return Ct(ie,"gutterContextMenu")?_f(ie,ae,"gutterContextMenu",!1):!1}function tg(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ta(ie)}var Ld={toString:function(){return"CodeMirror.Init"}},ep={},mf={};function lm(ie){var ae=ie.optionHandlers;function ce(de,pe,Me,ze){ie.defaults[de]=pe,Me&&(ae[de]=ze?function(qe,Qe,St){St!=Ld&&Me(qe,Qe,St)}:Me)}ie.defineOption=ce,ie.Init=Ld,ce("value","",function(de,pe){return de.setValue(pe)},!0),ce("mode",null,function(de,pe){de.doc.modeOption=pe,ar(de)},!0),ce("indentUnit",2,ar,!0),ce("indentWithTabs",!1),ce("smartIndent",!0),ce("tabSize",4,function(de){oa(de),Ta(de),Fa(de)},!0),ce("lineSeparator",null,function(de,pe){if(de.doc.lineSep=pe,!!pe){var Me=[],ze=de.doc.first;de.doc.iter(function(Qe){for(var St=0;;){var mn=Qe.text.indexOf(pe,St);if(mn==-1)break;St=mn+pe.length,Me.push(jt(ze,mn))}ze++});for(var qe=Me.length-1;qe>=0;qe--)ih(de.doc,pe,Me[qe],jt(Me[qe].line,Me[qe].ch+pe.length))}}),ce("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(de,pe,Me){de.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Me!=Ld&&de.refresh()}),ce("specialCharPlaceholder",ia,function(de){return de.refresh()},!0),ce("electricChars",!0),ce("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ce("spellcheck",!1,function(de,pe){return de.getInputField().spellcheck=pe},!0),ce("autocorrect",!1,function(de,pe){return de.getInputField().autocorrect=pe},!0),ce("autocapitalize",!1,function(de,pe){return de.getInputField().autocapitalize=pe},!0),ce("rtlMoveVisually",!ge),ce("wholeLineUpdateBefore",!0),ce("theme","default",function(de){tg(de),Po(de)},!0),ce("keyMap","default",function(de,pe,Me){var ze=Hh(pe),qe=Me!=Ld&&Hh(Me);qe&&qe.detach&&qe.detach(de,ze),ze.attach&&ze.attach(de,qe||null)}),ce("extraKeys",null),ce("configureMouse",null),ce("lineWrapping",!1,um,!0),ce("gutters",[],function(de,pe){de.display.gutterSpecs=Vo(pe,de.options.lineNumbers),Po(de)},!0),ce("fixedGutter",!0,function(de,pe){de.display.gutters.style.left=pe?mh(de.display)+"px":"0",de.refresh()},!0),ce("coverGutterNextToScrollbar",!1,function(de){return Ih(de)},!0),ce("scrollbarStyle","native",function(de){hf(de),Ih(de),de.display.scrollbars.setScrollTop(de.doc.scrollTop),de.display.scrollbars.setScrollLeft(de.doc.scrollLeft)},!0),ce("lineNumbers",!1,function(de,pe){de.display.gutterSpecs=Vo(de.options.gutters,pe),Po(de)},!0),ce("firstLineNumber",1,Po,!0),ce("lineNumberFormatter",function(de){return de},Po,!0),ce("showCursorWhenSelecting",!1,hs,!0),ce("resetSelectionOnContextMenu",!0),ce("lineWiseCopyCut",!0),ce("pasteLinesPerSelection",!0),ce("selectionsMayTouch",!1),ce("readOnly",!1,function(de,pe){pe=="nocursor"&&(su(de),de.display.input.blur()),de.display.input.readOnlyChanged(pe)}),ce("screenReaderLabel",null,function(de,pe){pe=pe===""?null:pe,de.display.input.screenReaderLabelChanged(pe)}),ce("disableInput",!1,function(de,pe){pe||de.display.input.reset()},!0),ce("dragDrop",!0,ng),ce("allowDropFileTypes",null),ce("cursorBlinkRate",530),ce("cursorScrollMargin",0),ce("cursorHeight",1,hs,!0),ce("singleCursorHeightPerLine",!0,hs,!0),ce("workTime",100),ce("workDelay",100),ce("flattenSpans",!0,oa,!0),ce("addModeClass",!1,oa,!0),ce("pollInterval",100),ce("undoDepth",200,function(de,pe){return de.doc.history.undoDepth=pe}),ce("historyEventDelay",1250),ce("viewportMargin",10,function(de){return de.refresh()},!0),ce("maxHighlightLength",1e4,oa,!0),ce("moveInputWithCursor",!0,function(de,pe){pe||de.display.input.resetPosition()}),ce("tabindex",null,function(de,pe){return de.display.input.getField().tabIndex=pe||""}),ce("autofocus",null),ce("direction","ltr",function(de,pe){return de.doc.setDirection(pe)},!0),ce("phrases",null)}function ng(ie,ae,ce){var de=ce&&ce!=Ld;if(!ae!=!de){var pe=ie.display.dragFunctions,Me=ae?Jt:Tn;Me(ie.display.scroller,"dragstart",pe.start),Me(ie.display.scroller,"dragenter",pe.enter),Me(ie.display.scroller,"dragover",pe.over),Me(ie.display.scroller,"dragleave",pe.leave),Me(ie.display.scroller,"drop",pe.drop)}}function um(ie){ie.options.lineWrapping?(an(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ie(ie.display.wrapper,"CodeMirror-wrap"),mr(ie)),tr(ie),Fa(ie),Ta(ie),setTimeout(function(){return Ih(ie)},100)}function xa(ie,ae){var ce=this;if(!(this instanceof xa))return new xa(ie,ae);this.options=ae=ae?yn(ae):{},yn(ep,ae,!1);var de=ae.value;typeof de=="string"?de=new Ws(de,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(de.modeOption=ae.mode),this.doc=de;var pe=new xa.inputStyles[ae.inputStyle](this),Me=this.display=new zo(ie,de,pe,ae);Me.wrapper.CodeMirror=this,tg(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),hf(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 je,keySeq:null,specialChars:null},ae.autofocus&&!ne&&Me.input.focus(),Ue&&Je<11&&setTimeout(function(){return ce.display.input.reset(!0)},20),zc(this),Jl(),El(this),this.curOp.forceUpdate=!0,yr(this,de),ae.autofocus&&!ne||this.hasFocus()?setTimeout(function(){ce.hasFocus()&&!ce.state.focused&&Vr(ce)},20):su(this);for(var ze in mf)mf.hasOwnProperty(ze)&&mf[ze](this,ae[ze],Ld);fo(this),ae.finishInit&&ae.finishInit(this);for(var qe=0;qe<ic.length;++qe)ic[qe](this);Rh(this),ke&&ae.lineWrapping&&getComputedStyle(Me.lineDiv).textRendering=="optimizelegibility"&&(Me.lineDiv.style.textRendering="auto")}xa.defaults=ep,xa.optionHandlers=mf;function zc(ie){var ae=ie.display;Jt(ae.scroller,"mousedown",Vn(ie,wh)),Ue&&Je<11?Jt(ae.scroller,"dblclick",Vn(ie,function(Qe){if(!cn(ie,Qe)){var St=tl(ie,Qe);if(!(!St||qf(ie,Qe)||As(ie.display,Qe))){ui(Qe);var mn=ie.findWordAt(St);ma(ie.doc,mn.anchor,mn.head)}}})):Jt(ae.scroller,"dblclick",function(Qe){return cn(ie,Qe)||ui(Qe)}),Jt(ae.scroller,"contextmenu",function(Qe){return eg(ie,Qe)}),Jt(ae.input.getField(),"contextmenu",function(Qe){ae.scroller.contains(Qe.target)||eg(ie,Qe)});var ce,de={end:0};function pe(){ae.activeTouch&&(ce=setTimeout(function(){return ae.activeTouch=null},1e3),de=ae.activeTouch,de.end=+new Date)}function Me(Qe){if(Qe.touches.length!=1)return!1;var St=Qe.touches[0];return St.radiusX<=1&&St.radiusY<=1}function ze(Qe,St){if(St.left==null)return!0;var mn=St.left-Qe.left,kt=St.top-Qe.top;return mn*mn+kt*kt>20*20}Jt(ae.scroller,"touchstart",function(Qe){if(!cn(ie,Qe)&&!Me(Qe)&&!qf(ie,Qe)){ae.input.ensurePolled(),clearTimeout(ce);var St=+new Date;ae.activeTouch={start:St,moved:!1,prev:St-de.end<=300?de:null},Qe.touches.length==1&&(ae.activeTouch.left=Qe.touches[0].pageX,ae.activeTouch.top=Qe.touches[0].pageY)}}),Jt(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),Jt(ae.scroller,"touchend",function(Qe){var St=ae.activeTouch;if(St&&!As(ae,Qe)&&St.left!=null&&!St.moved&&new Date-St.start<300){var mn=ie.coordsChar(ae.activeTouch,"page"),kt;!St.prev||ze(St,St.prev)?kt=new po(mn,mn):!St.prev.prev||ze(St,St.prev.prev)?kt=ie.findWordAt(mn):kt=new po(jt(mn.line,0),Pn(ie.doc,jt(mn.line+1,0))),ie.setSelection(kt.anchor,kt.head),ie.focus(),ui(Qe)}pe()}),Jt(ae.scroller,"touchcancel",pe),Jt(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(rd(ie,ae.scroller.scrollTop),th(ie,ae.scroller.scrollLeft,!0),Et(ie,"scroll",ie))}),Jt(ae.scroller,"mousewheel",function(Qe){return pr(ie,Qe)}),Jt(ae.scroller,"DOMMouseScroll",function(Qe){return pr(ie,Qe)}),Jt(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(Qe){cn(ie,Qe)||Hi(Qe)},over:function(Qe){cn(ie,Qe)||(ff(ie,Qe),Hi(Qe))},start:function(Qe){return qd(ie,Qe)},drop:Vn(ie,kc),leave:function(Qe){cn(ie,Qe)||Xf(ie)}};var qe=ae.input.getField();Jt(qe,"keyup",function(Qe){return Yg.call(ie,Qe)}),Jt(qe,"keydown",Vn(ie,Ug)),Jt(qe,"keypress",Vn(ie,xh)),Jt(qe,"focus",function(Qe){return Vr(ie,Qe)}),Jt(qe,"blur",function(Qe){return su(ie,Qe)})}var ic=[];xa.defineInitHook=function(ie){return ic.push(ie)};function $s(ie,ae,ce,de){var pe=ie.doc,Me;ce==null&&(ce="add"),ce=="smart"&&(pe.mode.indent?Me=ki(ie,ae).state:ce="prev");var ze=ie.options.tabSize,qe=Wt(pe,ae),Qe=vt(qe.text,null,ze);qe.stateAfter&&(qe.stateAfter=null);var St=qe.text.match(/^\s*/)[0],mn;if(!de&&!/\S/.test(qe.text))mn=0,ce="not";else if(ce=="smart"&&(mn=pe.mode.indent(Me,qe.text.slice(St.length),qe.text),mn==bn||mn>150)){if(!de)return;ce="prev"}ce=="prev"?ae>pe.first?mn=vt(Wt(pe,ae-1).text,null,ze):mn=0:ce=="add"?mn=Qe+ie.options.indentUnit:ce=="subtract"?mn=Qe-ie.options.indentUnit:typeof ce=="number"&&(mn=Qe+ce),mn=Math.max(0,mn);var kt="",Yn=0;if(ie.options.indentWithTabs)for(var Zn=Math.floor(mn/ze);Zn;--Zn)Yn+=ze,kt+=" ";if(Yn<mn&&(kt+=Gn(mn-Yn)),kt!=St)return ih(pe,kt,jt(ae,0),jt(ae,St.length),"+input"),qe.stateAfter=null,!0;for(var Li=0;Li<pe.sel.ranges.length;Li++){var Oi=pe.sel.ranges[Li];if(Oi.head.line==ae&&Oi.head.ch<St.length){var Ui=jt(ae,St.length);Na(pe,Li,new po(Ui,Ui));break}}}var Ql=null;function oc(ie){Ql=ie}function vf(ie,ae,ce,de,pe){var Me=ie.doc;ie.display.shift=!1,de||(de=Me.sel);var ze=+new Date-200,qe=pe=="paste"||ie.state.pasteIncoming>ze,Qe=Bn(ae),St=null;if(qe&&de.ranges.length>1)if(Ql&&Ql.text.join(`
|
|
|
`)==ae){if(de.ranges.length%Ql.text.length==0){St=[];for(var mn=0;mn<Ql.text.length;mn++)St.push(Me.splitLines(Ql.text[mn]))}}else Qe.length==de.ranges.length&&ie.options.pasteLinesPerSelection&&(St=zn(Qe,function(mo){return[mo]}));for(var kt=ie.curOp.updateInput,Yn=de.ranges.length-1;Yn>=0;Yn--){var Zn=de.ranges[Yn],Li=Zn.from(),Oi=Zn.to();Zn.empty()&&(ce&&ce>0?Li=jt(Li.line,Li.ch-ce):ie.state.overwrite&&!qe?Oi=jt(Oi.line,Math.min(Wt(Me,Oi.line).text.length,Oi.ch+bt(Qe).length)):qe&&Ql&&Ql.lineWise&&Ql.text.join(`
|
|
|
`)==Qe.join(`
|
|
|
`)&&(Li=Oi=jt(Li.line,0)));var Ui={from:Li,to:Oi,text:St?St[Yn%St.length]:Qe,origin:pe||(qe?"paste":ie.state.cutIncoming>ze?"cut":"+input")};ns(ie.doc,Ui),vi(ie,"inputRead",ie,Ui)}ae&&!qe&&np(ie,ae),Th(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=kt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function tp(ie,ae){var ce=ie.clipboardData&&ie.clipboardData.getData("Text");if(ce)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&rn(ae,function(){return vf(ae,ce,0,null,"paste")}),!0}function np(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ce=ie.doc.sel,de=ce.ranges.length-1;de>=0;de--){var pe=ce.ranges[de];if(!(pe.head.ch>100||de&&ce.ranges[de-1].head.line==pe.head.line)){var Me=ie.getModeAt(pe.head),ze=!1;if(Me.electricChars){for(var qe=0;qe<Me.electricChars.length;qe++)if(ae.indexOf(Me.electricChars.charAt(qe))>-1){ze=$s(ie,pe.head.line,"smart");break}}else Me.electricInput&&Me.electricInput.test(Wt(ie.doc,pe.head.line).text.slice(0,pe.head.ch))&&(ze=$s(ie,pe.head.line,"smart"));ze&&vi(ie,"electricInput",ie,pe.head.line)}}}function ip(ie){for(var ae=[],ce=[],de=0;de<ie.doc.sel.ranges.length;de++){var pe=ie.doc.sel.ranges[de].head.line,Me={anchor:jt(pe,0),head:jt(pe+1,0)};ce.push(Me),ae.push(ie.getRange(Me.anchor,Me.head))}return{text:ae,ranges:ce}}function op(ie,ae,ce,de){ie.setAttribute("autocorrect",ce?"":"off"),ie.setAttribute("autocapitalize",de?"":"off"),ie.setAttribute("spellcheck",!!ae)}function rp(){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"),Ae&&(ie.style.border="1px solid black"),op(ie),ae}function Md(ie){var ae=ie.optionHandlers,ce=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(de,pe){var Me=this.options,ze=Me[de];Me[de]==pe&&de!="mode"||(Me[de]=pe,ae.hasOwnProperty(de)&&Vn(this,ae[de])(this,pe,ze),Et(this,"optionChange",this,de))},getOption:function(de){return this.options[de]},getDoc:function(){return this.doc},addKeyMap:function(de,pe){this.state.keyMaps[pe?"push":"unshift"](Hh(de))},removeKeyMap:function(de){for(var pe=this.state.keyMaps,Me=0;Me<pe.length;++Me)if(pe[Me]==de||pe[Me].name==de)return pe.splice(Me,1),!0},addOverlay:Un(function(de,pe){var Me=de.token?de:ie.getMode(this.options,de);if(Me.startState)throw new Error("Overlays may not be stateful.");ai(this.state.overlays,{mode:Me,modeSpec:de,opaque:pe&&pe.opaque,priority:pe&&pe.priority||0},function(ze){return ze.priority}),this.state.modeGen++,Fa(this)}),removeOverlay:Un(function(de){for(var pe=this.state.overlays,Me=0;Me<pe.length;++Me){var ze=pe[Me].modeSpec;if(ze==de||typeof de=="string"&&ze.name==de){pe.splice(Me,1),this.state.modeGen++,Fa(this);return}}}),indentLine:Un(function(de,pe,Me){typeof pe!="string"&&typeof pe!="number"&&(pe==null?pe=this.options.smartIndent?"smart":"prev":pe=pe?"add":"subtract"),Hn(this.doc,de)&&$s(this,de,pe,Me)}),indentSelection:Un(function(de){for(var pe=this.doc.sel.ranges,Me=-1,ze=0;ze<pe.length;ze++){var qe=pe[ze];if(qe.empty())qe.head.line>Me&&($s(this,qe.head.line,de,!0),Me=qe.head.line,ze==this.doc.sel.primIndex&&Th(this));else{var Qe=qe.from(),St=qe.to(),mn=Math.max(Me,Qe.line);Me=Math.min(this.lastLine(),St.line-(St.ch?0:1))+1;for(var kt=mn;kt<Me;++kt)$s(this,kt,de);var Yn=this.doc.sel.ranges;Qe.ch==0&&pe.length==Yn.length&&Yn[ze].from().ch>0&&Na(this.doc,ze,new po(Qe,Yn[ze].to()),Ft)}}}),getTokenAt:function(de,pe){return gi(this,de,pe)},getLineTokens:function(de,pe){return gi(this,jt(de),pe,!0)},getTokenTypeAt:function(de){de=Pn(this.doc,de);var pe=Di(this,Wt(this.doc,de.line)),Me=0,ze=(pe.length-1)/2,qe=de.ch,Qe;if(qe==0)Qe=pe[2];else for(;;){var St=Me+ze>>1;if((St?pe[St*2-1]:0)>=qe)ze=St;else if(pe[St*2+1]<qe)Me=St+1;else{Qe=pe[St*2+2];break}}var mn=Qe?Qe.indexOf("overlay "):-1;return mn<0?Qe:mn==0?null:Qe.slice(0,mn-1)},getModeAt:function(de){var pe=this.doc.mode;return pe.innerMode?ie.innerMode(pe,this.getTokenAt(de).state).mode:pe},getHelper:function(de,pe){return this.getHelpers(de,pe)[0]},getHelpers:function(de,pe){var Me=[];if(!ce.hasOwnProperty(pe))return Me;var ze=ce[pe],qe=this.getModeAt(de);if(typeof qe[pe]=="string")ze[qe[pe]]&&Me.push(ze[qe[pe]]);else if(qe[pe])for(var Qe=0;Qe<qe[pe].length;Qe++){var St=ze[qe[pe][Qe]];St&&Me.push(St)}else qe.helperType&&ze[qe.helperType]?Me.push(ze[qe.helperType]):ze[qe.name]&&Me.push(ze[qe.name]);for(var mn=0;mn<ze._global.length;mn++){var kt=ze._global[mn];kt.pred(qe,this)&&wt(Me,kt.val)==-1&&Me.push(kt.val)}return Me},getStateAfter:function(de,pe){var Me=this.doc;return de=xn(Me,de==null?Me.first+Me.size-1:de),ki(this,de+1,pe).state},cursorCoords:function(de,pe){var Me,ze=this.doc.sel.primary();return de==null?Me=ze.head:typeof de=="object"?Me=Pn(this.doc,de):Me=de?ze.from():ze.to(),Oa(this,Me,pe||"page")},charCoords:function(de,pe){return Cl(this,Pn(this.doc,de),pe||"page")},coordsChar:function(de,pe){return de=Vl(this,de,pe||"page"),bl(this,de.left,de.top)},lineAtHeight:function(de,pe){return de=Vl(this,{top:de,left:0},pe||"page").top,ln(this.doc,de+this.display.viewOffset)},heightAtLine:function(de,pe,Me){var ze=!1,qe;if(typeof de=="number"){var Qe=this.doc.first+this.doc.size-1;de<this.doc.first?de=this.doc.first:de>Qe&&(de=Qe,ze=!0),qe=Wt(this.doc,de)}else qe=de;return Ka(this,qe,{top:0,left:0},pe||"page",Me||ze).top+(ze?this.doc.height-ir(qe):0)},defaultTextHeight:function(){return bu(this.display)},defaultCharWidth:function(){return zu(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(de,pe,Me,ze,qe){var Qe=this.display;de=Oa(this,Pn(this.doc,de));var St=de.bottom,mn=de.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),Qe.sizer.appendChild(pe),ze=="over")St=de.top;else if(ze=="above"||ze=="near"){var kt=Math.max(Qe.wrapper.clientHeight,this.doc.height),Yn=Math.max(Qe.sizer.clientWidth,Qe.lineSpace.clientWidth);(ze=="above"||de.bottom+pe.offsetHeight>kt)&&de.top>pe.offsetHeight?St=de.top-pe.offsetHeight:de.bottom+pe.offsetHeight<=kt&&(St=de.bottom),mn+pe.offsetWidth>Yn&&(mn=Yn-pe.offsetWidth)}pe.style.top=St+"px",pe.style.left=pe.style.right="",qe=="right"?(mn=Qe.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(qe=="left"?mn=0:qe=="middle"&&(mn=(Qe.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=mn+"px"),Me&&Qd(this,{left:mn,top:St,right:mn+pe.offsetWidth,bottom:St+pe.offsetHeight})},triggerOnKeyDown:Un(Ug),triggerOnKeyPress:Un(xh),triggerOnKeyUp:Yg,triggerOnMouseDown:Un(wh),execCommand:function(de){if(Js.hasOwnProperty(de))return Js[de].call(null,this)},triggerElectric:Un(function(de){np(this,de)}),findPosH:function(de,pe,Me,ze){var qe=1;pe<0&&(qe=-1,pe=-pe);for(var Qe=Pn(this.doc,de),St=0;St<pe&&(Qe=yf(this.doc,Qe,qe,Me,ze),!Qe.hitSide);++St);return Qe},moveH:Un(function(de,pe){var Me=this;this.extendSelectionsBy(function(ze){return Me.display.shift||Me.doc.extend||ze.empty()?yf(Me.doc,ze.head,de,pe,Me.options.rtlMoveVisually):de<0?ze.from():ze.to()},Cn)}),deleteH:Un(function(de,pe){var Me=this.doc.sel,ze=this.doc;Me.somethingSelected()?ze.replaceSelection("",null,"+delete"):ml(this,function(qe){var Qe=yf(ze,qe.head,de,pe,!1);return de<0?{from:Qe,to:qe.head}:{from:qe.head,to:Qe}})}),findPosV:function(de,pe,Me,ze){var qe=1,Qe=ze;pe<0&&(qe=-1,pe=-pe);for(var St=Pn(this.doc,de),mn=0;mn<pe;++mn){var kt=Oa(this,St,"div");if(Qe==null?Qe=kt.left:kt.left=Qe,St=Fd(this,kt,qe,Me),St.hitSide)break}return St},moveV:Un(function(de,pe){var Me=this,ze=this.doc,qe=[],Qe=!this.display.shift&&!ze.extend&&ze.sel.somethingSelected();if(ze.extendSelectionsBy(function(mn){if(Qe)return de<0?mn.from():mn.to();var kt=Oa(Me,mn.head,"div");mn.goalColumn!=null&&(kt.left=mn.goalColumn),qe.push(kt.left);var Yn=Fd(Me,kt,de,pe);return pe=="page"&&mn==ze.sel.primary()&&Mc(Me,Cl(Me,Yn,"div").top-kt.top),Yn},Cn),qe.length)for(var St=0;St<ze.sel.ranges.length;St++)ze.sel.ranges[St].goalColumn=qe[St]}),findWordAt:function(de){var pe=this.doc,Me=Wt(pe,de.line).text,ze=de.ch,qe=de.ch;if(Me){var Qe=this.getHelper(de,"wordChars");(de.sticky=="before"||qe==Me.length)&&ze?--ze:++qe;for(var St=Me.charAt(ze),mn=De(St,Qe)?function(kt){return De(kt,Qe)}:/\s/.test(St)?function(kt){return/\s/.test(kt)}:function(kt){return!/\s/.test(kt)&&!De(kt)};ze>0&&mn(Me.charAt(ze-1));)--ze;for(;qe<Me.length&&mn(Me.charAt(qe));)++qe}return new po(jt(de.line,ze),jt(de.line,qe))},toggleOverwrite:function(de){de!=null&&de==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?an(this.display.cursorDiv,"CodeMirror-overwrite"):Ie(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==yt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Un(function(de,pe){od(this,de,pe)}),getScrollInfo:function(){var de=this.display.scroller;return{left:de.scrollLeft,top:de.scrollTop,height:de.scrollHeight-js(this)-this.display.barHeight,width:de.scrollWidth-js(this)-this.display.barWidth,clientHeight:Pu(this),clientWidth:Ys(this)}},scrollIntoView:Un(function(de,pe){de==null?(de={from:this.doc.sel.primary().head,to:null},pe==null&&(pe=this.options.cursorScrollMargin)):typeof de=="number"?de={from:jt(de,0),to:null}:de.from==null&&(de={from:de,to:null}),de.to||(de.to=de.from),de.margin=pe||0,de.from.line!=null?aa(this,de):lf(this,de.from,de.to,de.margin)}),setSize:Un(function(de,pe){var Me=this,ze=function(Qe){return typeof Qe=="number"||/^\d+$/.test(String(Qe))?Qe+"px":Qe};de!=null&&(this.display.wrapper.style.width=ze(de)),pe!=null&&(this.display.wrapper.style.height=ze(pe)),this.options.lineWrapping&&ts(this);var qe=this.display.viewFrom;this.doc.iter(qe,this.display.viewTo,function(Qe){if(Qe.widgets){for(var St=0;St<Qe.widgets.length;St++)if(Qe.widgets[St].noHScroll){yi(Me,qe,"widget");break}}++qe}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(de){return rn(this,de)},startOperation:function(){return El(this)},endOperation:function(){return Rh(this)},refresh:Un(function(){var de=this.display.cachedTextHeight;Fa(this),this.curOp.forceUpdate=!0,Ta(this),od(this,this.doc.scrollLeft,this.doc.scrollTop),bo(this.display),(de==null||Math.abs(de-bu(this.display))>.5||this.options.lineWrapping)&&tr(this),Et(this,"refresh",this)}),swapDoc:Un(function(de){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),yr(this,de),Ta(this),this.display.input.reset(),od(this,de.scrollLeft,de.scrollTop),this.curOp.forceScroll=!0,vi(this,"swapDoc",this,pe),pe}),phrase:function(de){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,de)?pe[de]:de},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},_n(ie),ie.registerHelper=function(de,pe,Me){ce.hasOwnProperty(de)||(ce[de]=ie[de]={_global:[]}),ce[de][pe]=Me},ie.registerGlobalHelper=function(de,pe,Me,ze){ie.registerHelper(de,pe,ze),ce[de]._global.push({pred:Me,val:ze})}}function yf(ie,ae,ce,de,pe){var Me=ae,ze=ce,qe=Wt(ie,ae.line),Qe=pe&&ie.direction=="rtl"?-ce:ce;function St(){var Zo=ae.line+Qe;return Zo<ie.first||Zo>=ie.first+ie.size?!1:(ae=new jt(Zo,ae.ch,ae.sticky),qe=Wt(ie,Zo))}function mn(Zo){var To;if(de=="codepoint"){var qo=qe.text.charCodeAt(ae.ch+(de>0?0:-1));isNaN(qo)?To=null:To=new jt(ae.line,Math.max(0,Math.min(qe.text.length,ae.ch+ce*(qo>=55296&&qo<56320?2:1))),-ce)}else pe?To=Ua(ie.cm,qe,ae,ce):To=xs(qe,ae,ce);if(To==null)if(!Zo&&St())ae=va(pe,ie.cm,qe,ae.line,Qe);else return!1;else ae=To;return!0}if(de=="char"||de=="codepoint")mn();else if(de=="column")mn(!0);else if(de=="word"||de=="group")for(var kt=null,Yn=de=="group",Zn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Li=!0;!(ce<0&&!mn(!Li));Li=!1){var Oi=qe.text.charAt(ae.ch)||`
|
|
|
`,Ui=De(Oi,Zn)?"w":Yn&&Oi==`
|
|
|
`?"n":!Yn||/\s/.test(Oi)?null:"p";if(Yn&&!Li&&!Ui&&(Ui="s"),kt&&kt!=Ui){ce<0&&(ce=1,mn(),ae.sticky="after");break}if(Ui&&(kt=Ui),ce>0&&!mn(!Li))break}var mo=uu(ie,ae,Me,ze,!0);return It(Me,mo)&&(mo.hitSide=!0),mo}function Fd(ie,ae,ce,de){var pe=ie.doc,Me=ae.left,ze;if(de=="page"){var qe=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Qe=Math.max(qe-.5*bu(ie.display),3);ze=(ce>0?ae.bottom:ae.top)+ce*Qe}else de=="line"&&(ze=ce>0?ae.bottom+3:ae.top-3);for(var St;St=bl(ie,Me,ze),!!St.outside;){if(ce<0?ze<=0:ze>=pe.height){St.hitSide=!0;break}ze+=ce*5}return St}var Ja=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new je,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ja.prototype.init=function(ie){var ae=this,ce=this,de=ce.cm,pe=ce.div=ie.lineDiv;op(pe,de.options.spellcheck,de.options.autocorrect,de.options.autocapitalize);function Me(qe){for(var Qe=qe.target;Qe;Qe=Qe.parentNode){if(Qe==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Qe.className))break}return!1}Jt(pe,"paste",function(qe){!Me(qe)||cn(de,qe)||tp(qe,de)||Je<=11&&setTimeout(Vn(de,function(){return ae.updateFromDOM()}),20)}),Jt(pe,"compositionstart",function(qe){ae.composing={data:qe.data,done:!1}}),Jt(pe,"compositionupdate",function(qe){ae.composing||(ae.composing={data:qe.data,done:!1})}),Jt(pe,"compositionend",function(qe){ae.composing&&(qe.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),Jt(pe,"touchstart",function(){return ce.forceCompositionEnd()}),Jt(pe,"input",function(){ae.composing||ae.readFromDOMSoon()});function ze(qe){if(!(!Me(qe)||cn(de,qe))){if(de.somethingSelected())oc({lineWise:!1,text:de.getSelections()}),qe.type=="cut"&&de.replaceSelection("",null,"cut");else if(de.options.lineWiseCopyCut){var Qe=ip(de);oc({lineWise:!0,text:Qe.text}),qe.type=="cut"&&de.operation(function(){de.setSelections(Qe.ranges,0,Ft),de.replaceSelection("",null,"cut")})}else return;if(qe.clipboardData){qe.clipboardData.clearData();var St=Ql.text.join(`
|
|
|
`);if(qe.clipboardData.setData("Text",St),qe.clipboardData.getData("Text")==St){qe.preventDefault();return}}var mn=rp(),kt=mn.firstChild;de.display.lineSpace.insertBefore(mn,de.display.lineSpace.firstChild),kt.value=Ql.text.join(`
|
|
|
`);var Yn=document.activeElement;Vt(kt),setTimeout(function(){de.display.lineSpace.removeChild(mn),Yn.focus(),Yn==pe&&ce.showPrimarySelection()},50)}}Jt(pe,"copy",ze),Jt(pe,"cut",ze)},Ja.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Ja.prototype.prepareSelection=function(){var ie=Eu(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Ja.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Ja.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ja.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ce=ae.doc.sel.primary(),de=ce.from(),pe=ce.to();if(ae.display.viewTo==ae.display.viewFrom||de.line>=ae.display.viewTo||pe.line<ae.display.viewFrom){ie.removeAllRanges();return}var Me=Sf(ae,ie.anchorNode,ie.anchorOffset),ze=Sf(ae,ie.focusNode,ie.focusOffset);if(!(Me&&!Me.bad&&ze&&!ze.bad&&sn(en(Me,ze),de)==0&&sn(qt(Me,ze),pe)==0)){var qe=ae.display.view,Qe=de.line>=ae.display.viewFrom&&ig(ae,de)||{node:qe[0].measure.map[2],offset:0},St=pe.line<ae.display.viewTo&&ig(ae,pe);if(!St){var mn=qe[qe.length-1].measure,kt=mn.maps?mn.maps[mn.maps.length-1]:mn.map;St={node:kt[kt.length-1],offset:kt[kt.length-2]-kt[kt.length-3]}}if(!Qe||!St){ie.removeAllRanges();return}var Yn=ie.rangeCount&&ie.getRangeAt(0),Zn;try{Zn=Ze(Qe.node,Qe.offset,St.offset,St.node)}catch(Li){}Zn&&(!Ce&&ae.state.focused?(ie.collapse(Qe.node,Qe.offset),Zn.collapsed||(ie.removeAllRanges(),ie.addRange(Zn))):(ie.removeAllRanges(),ie.addRange(Zn)),Yn&&ie.anchorNode==null?ie.addRange(Yn):Ce&&this.startGracePeriod()),this.rememberSelection()}},Ja.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)},Ja.prototype.showMultipleSelections=function(ie){nt(this.cm.display.cursorDiv,ie.cursors),nt(this.cm.display.selectionDiv,ie.selection)},Ja.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Ja.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return Zt(this.div,ae)},Ja.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ja.prototype.blur=function(){this.div.blur()},Ja.prototype.getField=function(){return this.div},Ja.prototype.supportsTouch=function(){return!0},Ja.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():rn(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)},Ja.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Ja.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&&ap(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ce=Sf(ae,ie.anchorNode,ie.anchorOffset),de=Sf(ae,ie.focusNode,ie.focusOffset);ce&&de&&rn(ae,function(){Aa(ae.doc,Tr(ce,de),Ft),(ce.bad||de.bad)&&(ae.curOp.selectionChanged=!0)})}}},Ja.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,ce=ie.doc.sel.primary(),de=ce.from(),pe=ce.to();if(de.ch==0&&de.line>ie.firstLine()&&(de=jt(de.line-1,Wt(ie.doc,de.line-1).length)),pe.ch==Wt(ie.doc,pe.line).text.length&&pe.line<ie.lastLine()&&(pe=jt(pe.line+1,0)),de.line<ae.viewFrom||pe.line>ae.viewTo-1)return!1;var Me,ze,qe;de.line==ae.viewFrom||(Me=zs(ie,de.line))==0?(ze=at(ae.view[0].line),qe=ae.view[0].node):(ze=at(ae.view[Me].line),qe=ae.view[Me-1].node.nextSibling);var Qe=zs(ie,pe.line),St,mn;if(Qe==ae.view.length-1?(St=ae.viewTo-1,mn=ae.lineDiv.lastChild):(St=at(ae.view[Qe+1].line)-1,mn=ae.view[Qe+1].node.previousSibling),!qe)return!1;for(var kt=ie.doc.splitLines(Wc(ie,qe,mn,ze,St)),Yn=Ut(ie.doc,jt(ze,0),jt(St,Wt(ie.doc,St).text.length));kt.length>1&&Yn.length>1;)if(bt(kt)==bt(Yn))kt.pop(),Yn.pop(),St--;else if(kt[0]==Yn[0])kt.shift(),Yn.shift(),ze++;else break;for(var Zn=0,Li=0,Oi=kt[0],Ui=Yn[0],mo=Math.min(Oi.length,Ui.length);Zn<mo&&Oi.charCodeAt(Zn)==Ui.charCodeAt(Zn);)++Zn;for(var Zo=bt(kt),To=bt(Yn),qo=Math.min(Zo.length-(kt.length==1?Zn:0),To.length-(Yn.length==1?Zn:0));Li<qo&&Zo.charCodeAt(Zo.length-Li-1)==To.charCodeAt(To.length-Li-1);)++Li;if(kt.length==1&&Yn.length==1&&ze==de.line)for(;Zn&&Zn>de.ch&&Zo.charCodeAt(Zo.length-Li-1)==To.charCodeAt(To.length-Li-1);)Zn--,Li++;kt[kt.length-1]=Zo.slice(0,Zo.length-Li).replace(/^\u200b+/,""),kt[0]=kt[0].slice(Zn).replace(/\u200b+$/,"");var kr=jt(ze,Zn),Ao=jt(St,Yn.length?bt(Yn).length-Li:0);if(kt.length>1||kt[0]||sn(kr,Ao))return ih(ie.doc,kt,kr,Ao,"+input"),!0},Ja.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ja.prototype.reset=function(){this.forceCompositionEnd()},Ja.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ja.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))},Ja.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&rn(this.cm,function(){return Fa(ie.cm)})},Ja.prototype.setUneditable=function(ie){ie.contentEditable="false"},Ja.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||Vn(this.cm,vf)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Ja.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Ja.prototype.onContextMenu=function(){},Ja.prototype.resetPosition=function(){},Ja.prototype.needsContentAttribute=!0;function ig(ie,ae){var ce=ju(ie,ae.line);if(!ce||ce.hidden)return null;var de=Wt(ie.doc,ae.line),pe=ph(ce,de,ae.line),Me=pn(de,ie.doc.direction),ze="left";if(Me){var qe=rt(Me,ae.ch);ze=qe%2?"right":"left"}var Qe=qu(pe.map,ae.ch,ze);return Qe.offset=Qe.collapse=="right"?Qe.end:Qe.start,Qe}function ap(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Hc(ie,ae){return ae&&(ie.bad=!0),ie}function Wc(ie,ae,ce,de,pe){var Me="",ze=!1,qe=ie.doc.lineSeparator(),Qe=!1;function St(Zn){return function(Li){return Li.id==Zn}}function mn(){ze&&(Me+=qe,Qe&&(Me+=qe),ze=Qe=!1)}function kt(Zn){Zn&&(mn(),Me+=Zn)}function Yn(Zn){if(Zn.nodeType==1){var Li=Zn.getAttribute("cm-text");if(Li){kt(Li);return}var Oi=Zn.getAttribute("cm-marker"),Ui;if(Oi){var mo=ie.findMarks(jt(de,0),jt(pe+1,0),St(+Oi));mo.length&&(Ui=mo[0].find(0))&&kt(Ut(ie.doc,Ui.from,Ui.to).join(qe));return}if(Zn.getAttribute("contenteditable")=="false")return;var Zo=/^(pre|div|p|li|table|br)$/i.test(Zn.nodeName);if(!/^br$/i.test(Zn.nodeName)&&Zn.textContent.length==0)return;Zo&&mn();for(var To=0;To<Zn.childNodes.length;To++)Yn(Zn.childNodes[To]);/^(pre|p)$/i.test(Zn.nodeName)&&(Qe=!0),Zo&&(ze=!0)}else Zn.nodeType==3&&kt(Zn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Yn(ae),ae!=ce;)ae=ae.nextSibling,Qe=!1;return Me}function Sf(ie,ae,ce){var de;if(ae==ie.display.lineDiv){if(de=ie.display.lineDiv.childNodes[ce],!de)return Hc(ie.clipPos(jt(ie.display.viewTo-1)),!0);ae=null,ce=0}else for(de=ae;;de=de.parentNode){if(!de||de==ie.display.lineDiv)return null;if(de.parentNode&&de.parentNode==ie.display.lineDiv)break}for(var pe=0;pe<ie.display.view.length;pe++){var Me=ie.display.view[pe];if(Me.node==de)return hm(Me,ae,ce)}}function hm(ie,ae,ce){var de=ie.text.firstChild,pe=!1;if(!ae||!Zt(de,ae))return Hc(jt(at(ie.line),0),!0);if(ae==de&&(pe=!0,ae=de.childNodes[ce],ce=0,!ae)){var Me=ie.rest?bt(ie.rest):ie.line;return Hc(jt(at(Me),Me.text.length),pe)}var ze=ae.nodeType==3?ae:null,qe=ae;for(!ze&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(ze=ae.firstChild,ce&&(ce=ze.nodeValue.length));qe.parentNode!=de;)qe=qe.parentNode;var Qe=ie.measure,St=Qe.maps;function mn(Ui,mo,Zo){for(var To=-1;To<(St?St.length:0);To++)for(var qo=To<0?Qe.map:St[To],kr=0;kr<qo.length;kr+=3){var Ao=qo[kr+2];if(Ao==Ui||Ao==mo){var Xr=at(To<0?ie.line:ie.rest[To]),as=qo[kr]+Zo;return(Zo<0||Ao!=Ui)&&(as=qo[kr+(Zo?1:0)]),jt(Xr,as)}}}var kt=mn(ze,qe,ce);if(kt)return Hc(kt,pe);for(var Yn=qe.nextSibling,Zn=ze?ze.nodeValue.length-ce:0;Yn;Yn=Yn.nextSibling){if(kt=mn(Yn,Yn.firstChild,0),kt)return Hc(jt(kt.line,kt.ch-Zn),pe);Zn+=Yn.textContent.length}for(var Li=qe.previousSibling,Oi=ce;Li;Li=Li.previousSibling){if(kt=mn(Li,Li.firstChild,-1),kt)return Hc(jt(kt.line,kt.ch+Oi),pe);Oi+=Li.textContent.length}}var Gs=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new je,this.hasSelection=!1,this.composing=null};Gs.prototype.init=function(ie){var ae=this,ce=this,de=this.cm;this.createField(ie);var pe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Ae&&(pe.style.width="0px"),Jt(pe,"input",function(){Ue&&Je>=9&&ae.hasSelection&&(ae.hasSelection=null),ce.poll()}),Jt(pe,"paste",function(ze){cn(de,ze)||tp(ze,de)||(de.state.pasteIncoming=+new Date,ce.fastPoll())});function Me(ze){if(!cn(de,ze)){if(de.somethingSelected())oc({lineWise:!1,text:de.getSelections()});else if(de.options.lineWiseCopyCut){var qe=ip(de);oc({lineWise:!0,text:qe.text}),ze.type=="cut"?de.setSelections(qe.ranges,null,Ft):(ce.prevInput="",pe.value=qe.text.join(`
|
|
|
`),Vt(pe))}else return;ze.type=="cut"&&(de.state.cutIncoming=+new Date)}}Jt(pe,"cut",Me),Jt(pe,"copy",Me),Jt(ie.scroller,"paste",function(ze){if(!(As(ie,ze)||cn(de,ze))){if(!pe.dispatchEvent){de.state.pasteIncoming=+new Date,ce.focus();return}var qe=new Event("paste");qe.clipboardData=ze.clipboardData,pe.dispatchEvent(qe)}}),Jt(ie.lineSpace,"selectstart",function(ze){As(ie,ze)||ui(ze)}),Jt(pe,"compositionstart",function(){var ze=de.getCursor("from");ce.composing&&ce.composing.range.clear(),ce.composing={start:ze,range:de.markText(ze,de.getCursor("to"),{className:"CodeMirror-composing"})}}),Jt(pe,"compositionend",function(){ce.composing&&(ce.poll(),ce.composing.range.clear(),ce.composing=null)})},Gs.prototype.createField=function(ie){this.wrapper=rp(),this.textarea=this.wrapper.firstChild},Gs.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},Gs.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ce=ie.doc,de=Eu(ie);if(ie.options.moveInputWithCursor){var pe=Oa(ie,ce.sel.primary().head,"div"),Me=ae.wrapper.getBoundingClientRect(),ze=ae.lineDiv.getBoundingClientRect();de.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,pe.top+ze.top-Me.top)),de.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,pe.left+ze.left-Me.left))}return de},Gs.prototype.showSelection=function(ie){var ae=this.cm,ce=ae.display;nt(ce.cursorDiv,ie.cursors),nt(ce.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},Gs.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ce=ae.getSelection();this.textarea.value=ce,ae.state.focused&&Vt(this.textarea),Ue&&Je>=9&&(this.hasSelection=ce)}else ie||(this.prevInput=this.textarea.value="",Ue&&Je>=9&&(this.hasSelection=null))}},Gs.prototype.getField=function(){return this.textarea},Gs.prototype.supportsTouch=function(){return!1},Gs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||yt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},Gs.prototype.blur=function(){this.textarea.blur()},Gs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Gs.prototype.receivedFocus=function(){this.slowPoll()},Gs.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},Gs.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ce(){var de=ae.poll();!de&&!ie?(ie=!0,ae.polling.set(60,ce)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ce)},Gs.prototype.poll=function(){var ie=this,ae=this.cm,ce=this.textarea,de=this.prevInput;if(this.contextMenuPending||!ae.state.focused||be(ce)&&!de&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var pe=ce.value;if(pe==de&&!ae.somethingSelected())return!1;if(Ue&&Je>=9&&this.hasSelection===pe||he&&/[\uf700-\uf7ff]/.test(pe))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Me=pe.charCodeAt(0);if(Me==8203&&!de&&(de="\u200B"),Me==8666)return this.reset(),this.cm.execCommand("undo")}for(var ze=0,qe=Math.min(de.length,pe.length);ze<qe&&de.charCodeAt(ze)==pe.charCodeAt(ze);)++ze;return rn(ae,function(){vf(ae,pe.slice(ze),de.length-ze,null,ie.composing?"*compose":null),pe.length>1e3||pe.indexOf(`
|
|
|
`)>-1?ce.value=ie.prevInput="":ie.prevInput=pe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Gs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Gs.prototype.onKeyPress=function(){Ue&&Je>=9&&(this.hasSelection=null),this.fastPoll()},Gs.prototype.onContextMenu=function(ie){var ae=this,ce=ae.cm,de=ce.display,pe=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Me=tl(ce,ie),ze=de.scroller.scrollTop;if(!Me||ot)return;var qe=ce.options.resetSelectionOnContextMenu;qe&&ce.doc.sel.contains(Me)==-1&&Vn(ce,Aa)(ce.doc,Tr(Me),Ft);var Qe=pe.style.cssText,St=ae.wrapper.style.cssText,mn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(ie.clientY-mn.top-5)+"px; left: "+(ie.clientX-mn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ue?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var kt;ke&&(kt=window.scrollY),de.input.focus(),ke&&window.scrollTo(null,kt),de.input.reset(),ce.somethingSelected()||(pe.value=ae.prevInput=" "),ae.contextMenuPending=Zn,de.selForContextMenu=ce.doc.sel,clearTimeout(de.detectingSelectAll);function Yn(){if(pe.selectionStart!=null){var Oi=ce.somethingSelected(),Ui="\u200B"+(Oi?pe.value:"");pe.value="\u21DA",pe.value=Ui,ae.prevInput=Oi?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=Ui.length,de.selForContextMenu=ce.doc.sel}}function Zn(){if(ae.contextMenuPending==Zn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=St,pe.style.cssText=Qe,Ue&&Je<9&&de.scrollbars.setScrollTop(de.scroller.scrollTop=ze),pe.selectionStart!=null)){(!Ue||Ue&&Je<9)&&Yn();var Oi=0,Ui=function(){de.selForContextMenu==ce.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&ae.prevInput=="\u200B"?Vn(ce,ya)(ce):Oi++<10?de.detectingSelectAll=setTimeout(Ui,500):(de.selForContextMenu=null,de.input.reset())};de.detectingSelectAll=setTimeout(Ui,200)}}if(Ue&&Je>=9&&Yn(),Fe){Hi(ie);var Li=function(){Tn(window,"mouseup",Li),setTimeout(Zn,20)};Jt(window,"mouseup",Li)}else setTimeout(Zn,50)},Gs.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},Gs.prototype.setUneditable=function(){},Gs.prototype.needsContentAttribute=!1;function dm(ie,ae){if(ae=ae?yn(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 ce=yt();ae.autofocus=ce==ie||ie.getAttribute("autofocus")!=null&&ce==document.body}function de(){ie.value=qe.getValue()}var pe;if(ie.form&&(Jt(ie.form,"submit",de),!ae.leaveSubmitMethodAlone)){var Me=ie.form;pe=Me.submit;try{var ze=Me.submit=function(){de(),Me.submit=pe,Me.submit(),Me.submit=ze}}catch(Qe){}}ae.finishInit=function(Qe){Qe.save=de,Qe.getTextArea=function(){return ie},Qe.toTextArea=function(){Qe.toTextArea=isNaN,de(),ie.parentNode.removeChild(Qe.getWrapperElement()),ie.style.display="",ie.form&&(Tn(ie.form,"submit",de),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=pe))}},ie.style.display="none";var qe=xa(function(Qe){return ie.parentNode.insertBefore(Qe,ie.nextSibling)},ae);return qe}function Gc(ie){ie.off=Tn,ie.on=Jt,ie.wheelEventPixels=_o,ie.Doc=Ws,ie.splitLines=Bn,ie.countColumn=vt,ie.findColumn=Qn,ie.isWordChar=Ne,ie.Pass=bn,ie.signal=Et,ie.Line=er,ie.changeEnd=ga,ie.scrollbarModel=uf,ie.Pos=jt,ie.cmpPos=sn,ie.modes=En,ie.mimeModes=Fn,ie.resolveMode=Nn,ie.getMode=ct,ie.modeExtensions=Pt,ie.extendMode=Re,ie.copyState=Tt,ie.startState=ht,ie.innerMode=_t,ie.commands=Js,ie.keyMap=Fl,ie.keyName=Oc,ie.isModifierKey=Ed,ie.lookupKey=$l,ie.normalizeKeyMap=Bc,ie.StringStream=Ye,ie.SharedTextMarker=oh,ie.TextMarker=$t,ie.LineWidget=Ns,ie.e_preventDefault=ui,ie.e_stopPropagation=Ci,ie.e_stop=Hi,ie.addClass=an,ie.contains=Zt,ie.rmClass=Ie,ie.keyNames=Gu}lm(xa),Md(xa);var ld="iter insert remove copy getEditor constructor".split(" ");for(var xf in Ws.prototype)Ws.prototype.hasOwnProperty(xf)&&wt(ld,xf)<0&&(xa.prototype[xf]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Ws.prototype[xf]));return _n(Ws),xa.inputStyles={textarea:Gs,contenteditable:Ja},xa.defineMode=function(ie){!xa.defaults.mode&&ie!="null"&&(xa.defaults.mode=ie),Jn.apply(this,arguments)},xa.defineMIME=wn,xa.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),xa.defineMIME("text/plain","null"),xa.defineExtension=function(ie,ae){xa.prototype[ie]=ae},xa.defineDocExtension=function(ie,ae){Ws.prototype[ie]=ae},xa.fromTextArea=dm,Gc(xa),xa.version="5.58.2",xa})},25419:function(Kn,kn,ye){(function(Ce){Ce(ye(89780),ye(15525),ye(98101))})(function(Ce){"use strict";Ce.defineMode("markdown",function(Oe,tt){var At=Ce.getMode(Oe,"text/html"),Ue=At.name=="null";function Je(vt){if(Ce.findModeByName){var je=Ce.findModeByName(vt);je&&(vt=je.mime||je.mimes[0])}var wt=Ce.getMode(Oe,vt);return wt.name=="null"?null:wt}tt.highlightFormatting===void 0&&(tt.highlightFormatting=!1),tt.maxBlockquoteDepth===void 0&&(tt.maxBlockquoteDepth=0),tt.taskLists===void 0&&(tt.taskLists=!1),tt.strikethrough===void 0&&(tt.strikethrough=!1),tt.emoji===void 0&&(tt.emoji=!1),tt.fencedCodeBlockHighlighting===void 0&&(tt.fencedCodeBlockHighlighting=!0),tt.fencedCodeBlockDefaultMode===void 0&&(tt.fencedCodeBlockDefaultMode="text/plain"),tt.xml===void 0&&(tt.xml=!0),tt.tokenTypeOverrides===void 0&&(tt.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 Ot in ke)ke.hasOwnProperty(Ot)&&tt.tokenTypeOverrides[Ot]&&(ke[Ot]=tt.tokenTypeOverrides[Ot]);var Lt=/^([*\-_])(?:\s*\1){2,}\s*$/,ot=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Rt=/^\[(x| )\](?=\s)/i,xt=tt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,zt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ae=/^[^#!\[\]*_\\<>` "'(~:]+/,te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ne=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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(vt,je,wt){return je.f=je.inline=wt,wt(vt,je)}function me(vt,je,wt){return je.f=je.block=wt,wt(vt,je)}function we(vt){return!vt||!/\S/.test(vt.string)}function Fe(vt){if(vt.linkTitle=!1,vt.linkHref=!1,vt.linkText=!1,vt.em=!1,vt.strong=!1,vt.strikethrough=!1,vt.quote=0,vt.indentedCode=!1,vt.f==Ie){var je=Ue;if(!je){var wt=Ce.innerMode(At,vt.htmlState);je=wt.mode.name=="xml"&&wt.state.tagStart===null&&!wt.state.context&&wt.state.tokenize.isInText}je&&(vt.f=dt,vt.block=Be,vt.htmlState=null)}return vt.trailingSpace=0,vt.trailingSpaceNewLine=!1,vt.prevLine=vt.thisLine,vt.thisLine={stream:null},null}function Be(vt,je){var wt=vt.column()===je.indentation,tn=we(je.prevLine.stream),bn=je.indentedCode,Ft=je.prevLine.hr,Xt=je.list!==!1,Cn=(je.listStack[je.listStack.length-1]||0)+3;je.indentedCode=!1;var Qn=je.indentation;if(je.indentationDiff===null&&(je.indentationDiff=je.indentation,Xt)){for(je.list=null;Qn<je.listStack[je.listStack.length-1];)je.listStack.pop(),je.listStack.length?je.indentation=je.listStack[je.listStack.length-1]:je.list=!1;je.list!==!1&&(je.indentationDiff=Qn-je.listStack[je.listStack.length-1])}var gn=!tn&&!Ft&&!je.prevLine.header&&(!Xt||!bn)&&!je.prevLine.fencedCodeEnd,Gn=(je.list===!1||Ft||tn)&&je.indentation<=Cn&&vt.match(Lt),bt=null;if(je.indentationDiff>=4&&(bn||je.prevLine.fencedCodeEnd||je.prevLine.header||tn))return vt.skipToEnd(),je.indentedCode=!0,ke.code;if(vt.eatSpace())return null;if(wt&&je.indentation<=Cn&&(bt=vt.match(xt))&&bt[1].length<=6)return je.quote=0,je.header=bt[1].length,je.thisLine.header=!0,tt.highlightFormatting&&(je.formatting="header"),je.f=je.inline,nt(je);if(je.indentation<=Cn&&vt.eat(">"))return je.quote=wt?1:je.quote+1,tt.highlightFormatting&&(je.formatting="quote"),vt.eatSpace(),nt(je);if(!Gn&&!je.setext&&wt&&je.indentation<=Cn&&(bt=vt.match(ot))){var zn=bt[1]?"ol":"ul";return je.indentation=Qn+vt.current().length,je.list=!0,je.quote=0,je.listStack.push(je.indentation),je.em=!1,je.strong=!1,je.code=!1,je.strikethrough=!1,tt.taskLists&&vt.match(Rt,!1)&&(je.taskList=!0),je.f=je.inline,tt.highlightFormatting&&(je.formatting=["list","list-"+zn]),nt(je)}else{if(wt&&je.indentation<=Cn&&(bt=vt.match(te,!0)))return je.quote=0,je.fencedEndRE=new RegExp(bt[1]+"+ *$"),je.localMode=tt.fencedCodeBlockHighlighting&&Je(bt[2]||tt.fencedCodeBlockDefaultMode),je.localMode&&(je.localState=Ce.startState(je.localMode)),je.f=je.block=We,tt.highlightFormatting&&(je.formatting="code-block"),je.code=-1,nt(je);if(je.setext||(!gn||!Xt)&&!je.quote&&je.list===!1&&!je.code&&!Gn&&!ne.test(vt.string)&&(bt=vt.lookAhead(1))&&(bt=bt.match(zt)))return je.setext?(je.header=je.setext,je.setext=0,vt.skipToEnd(),tt.highlightFormatting&&(je.formatting="header")):(je.header=bt[0].charAt(0)=="="?1:2,je.setext=je.header),je.thisLine.header=!0,je.f=je.inline,nt(je);if(Gn)return vt.skipToEnd(),je.hr=!0,je.thisLine.hr=!0,ke.hr;if(vt.peek()==="[")return ge(vt,je,Gt)}return ge(vt,je,je.inline)}function Ie(vt,je){var wt=At.token(vt,je.htmlState);if(!Ue){var tn=Ce.innerMode(At,je.htmlState);(tn.mode.name=="xml"&&tn.state.tagStart===null&&!tn.state.context&&tn.state.tokenize.isInText||je.md_inside&&vt.current().indexOf(">")>-1)&&(je.f=dt,je.block=Be,je.htmlState=null)}return wt}function We(vt,je){var wt=je.listStack[je.listStack.length-1]||0,tn=je.indentation<wt,bn=wt+3;if(je.fencedEndRE&&je.indentation<=bn&&(tn||vt.match(je.fencedEndRE))){tt.highlightFormatting&&(je.formatting="code-block");var Ft;return tn||(Ft=nt(je)),je.localMode=je.localState=null,je.block=Be,je.f=dt,je.fencedEndRE=null,je.code=0,je.thisLine.fencedCodeEnd=!0,tn?me(vt,je,je.block):Ft}else return je.localMode?je.localMode.token(vt,je.localState):(vt.skipToEnd(),ke.code)}function nt(vt){var je=[];if(vt.formatting){je.push(ke.formatting),typeof vt.formatting=="string"&&(vt.formatting=[vt.formatting]);for(var wt=0;wt<vt.formatting.length;wt++)je.push(ke.formatting+"-"+vt.formatting[wt]),vt.formatting[wt]==="header"&&je.push(ke.formatting+"-"+vt.formatting[wt]+"-"+vt.header),vt.formatting[wt]==="quote"&&(!tt.maxBlockquoteDepth||tt.maxBlockquoteDepth>=vt.quote?je.push(ke.formatting+"-"+vt.formatting[wt]+"-"+vt.quote):je.push("error"))}if(vt.taskOpen)return je.push("meta"),je.length?je.join(" "):null;if(vt.taskClosed)return je.push("property"),je.length?je.join(" "):null;if(vt.linkHref?je.push(ke.linkHref,"url"):(vt.strong&&je.push(ke.strong),vt.em&&je.push(ke.em),vt.strikethrough&&je.push(ke.strikethrough),vt.emoji&&je.push(ke.emoji),vt.linkText&&je.push(ke.linkText),vt.code&&je.push(ke.code),vt.image&&je.push(ke.image),vt.imageAltText&&je.push(ke.imageAltText,"link"),vt.imageMarker&&je.push(ke.imageMarker)),vt.header&&je.push(ke.header,ke.header+"-"+vt.header),vt.quote&&(je.push(ke.quote),!tt.maxBlockquoteDepth||tt.maxBlockquoteDepth>=vt.quote?je.push(ke.quote+"-"+vt.quote):je.push(ke.quote+"-"+tt.maxBlockquoteDepth)),vt.list!==!1){var tn=(vt.listStack.length-1)%3;tn?tn===1?je.push(ke.list2):je.push(ke.list3):je.push(ke.list1)}return vt.trailingSpaceNewLine?je.push("trailing-space-new-line"):vt.trailingSpace&&je.push("trailing-space-"+(vt.trailingSpace%2?"a":"b")),je.length?je.join(" "):null}function Xe(vt,je){if(vt.match(Ae,!0))return nt(je)}function dt(vt,je){var wt=je.text(vt,je);if(typeof wt!="undefined")return wt;if(je.list)return je.list=null,nt(je);if(je.taskList){var tn=vt.match(Rt,!0)[1]===" ";return tn?je.taskOpen=!0:je.taskClosed=!0,tt.highlightFormatting&&(je.formatting="task"),je.taskList=!1,nt(je)}if(je.taskOpen=!1,je.taskClosed=!1,je.header&&vt.match(/^#+$/,!0))return tt.highlightFormatting&&(je.formatting="header"),nt(je);var bn=vt.next();if(je.linkTitle){je.linkTitle=!1;var Ft=bn;bn==="("&&(Ft=")"),Ft=(Ft+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Xt="^\\s*(?:[^"+Ft+"\\\\]+|\\\\\\\\|\\\\.)"+Ft;if(vt.match(new RegExp(Xt),!0))return ke.linkHref}if(bn==="`"){var Cn=je.formatting;tt.highlightFormatting&&(je.formatting="code"),vt.eatWhile("`");var Qn=vt.current().length;if(je.code==0&&(!je.quote||Qn==1))return je.code=Qn,nt(je);if(Qn==je.code){var gn=nt(je);return je.code=0,gn}else return je.formatting=Cn,nt(je)}else if(je.code)return nt(je);if(bn==="\\"&&(vt.next(),tt.highlightFormatting)){var Gn=nt(je),bt=ke.formatting+"-escape";return Gn?Gn+" "+bt:bt}if(bn==="!"&&vt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return je.imageMarker=!0,je.image=!0,tt.highlightFormatting&&(je.formatting="image"),nt(je);if(bn==="["&&je.imageMarker&&vt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return je.imageMarker=!1,je.imageAltText=!0,tt.highlightFormatting&&(je.formatting="image"),nt(je);if(bn==="]"&&je.imageAltText){tt.highlightFormatting&&(je.formatting="image");var Gn=nt(je);return je.imageAltText=!1,je.image=!1,je.inline=je.f=Zt,Gn}if(bn==="["&&!je.image)return je.linkText&&vt.match(/^.*?\]/)||(je.linkText=!0,tt.highlightFormatting&&(je.formatting="link")),nt(je);if(bn==="]"&&je.linkText){tt.highlightFormatting&&(je.formatting="link");var Gn=nt(je);return je.linkText=!1,je.inline=je.f=vt.match(/\(.*?\)| ?\[.*?\]/,!1)?Zt:dt,Gn}if(bn==="<"&&vt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){je.f=je.inline=Ze,tt.highlightFormatting&&(je.formatting="link");var Gn=nt(je);return Gn?Gn+=" ":Gn="",Gn+ke.linkInline}if(bn==="<"&&vt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){je.f=je.inline=Ze,tt.highlightFormatting&&(je.formatting="link");var Gn=nt(je);return Gn?Gn+=" ":Gn="",Gn+ke.linkEmail}if(tt.xml&&bn==="<"&&vt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var zn=vt.string.indexOf(">",vt.pos);if(zn!=-1){var ai=vt.string.substring(vt.start,zn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ai)&&(je.md_inside=!0)}return vt.backUp(1),je.htmlState=Ce.startState(At),me(vt,je,Ie)}if(tt.xml&&bn==="<"&&vt.match(/^\/\w*?>/))return je.md_inside=!1,"tag";if(bn==="*"||bn==="_"){for(var He=1,Le=vt.pos==1?" ":vt.string.charAt(vt.pos-2);He<3&&vt.eat(bn);)He++;var xe=vt.peek()||" ",Ne=!/\s/.test(xe)&&(!he.test(xe)||/\s/.test(Le)||he.test(Le)),De=!/\s/.test(Le)&&(!he.test(Le)||/\s/.test(xe)||he.test(xe)),ve=null,$e=null;if(He%2&&(!je.em&&Ne&&(bn==="*"||!De||he.test(Le))?ve=!0:je.em==bn&&De&&(bn==="*"||!Ne||he.test(xe))&&(ve=!1)),He>1&&(!je.strong&&Ne&&(bn==="*"||!De||he.test(Le))?$e=!0:je.strong==bn&&De&&(bn==="*"||!Ne||he.test(xe))&&($e=!1)),$e!=null||ve!=null){tt.highlightFormatting&&(je.formatting=ve==null?"strong":$e==null?"em":"strong em"),ve===!0&&(je.em=bn),$e===!0&&(je.strong=bn);var gn=nt(je);return ve===!1&&(je.em=!1),$e===!1&&(je.strong=!1),gn}}else if(bn===" "&&(vt.eat("*")||vt.eat("_"))){if(vt.peek()===" ")return nt(je);vt.backUp(1)}if(tt.strikethrough){if(bn==="~"&&vt.eatWhile(bn)){if(je.strikethrough){tt.highlightFormatting&&(je.formatting="strikethrough");var gn=nt(je);return je.strikethrough=!1,gn}else if(vt.match(/^[^\s]/,!1))return je.strikethrough=!0,tt.highlightFormatting&&(je.formatting="strikethrough"),nt(je)}else if(bn===" "&&vt.match(/^~~/,!0)){if(vt.peek()===" ")return nt(je);vt.backUp(2)}}if(tt.emoji&&bn===":"&&vt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){je.emoji=!0,tt.highlightFormatting&&(je.formatting="emoji");var mt=nt(je);return je.emoji=!1,mt}return bn===" "&&(vt.match(/^ +$/,!1)?je.trailingSpace++:je.trailingSpace&&(je.trailingSpaceNewLine=!0)),nt(je)}function Ze(vt,je){var wt=vt.next();if(wt===">"){je.f=je.inline=dt,tt.highlightFormatting&&(je.formatting="link");var tn=nt(je);return tn?tn+=" ":tn="",tn+ke.linkInline}return vt.match(/^[^>]+/,!0),ke.linkInline}function Zt(vt,je){if(vt.eatSpace())return null;var wt=vt.next();return wt==="("||wt==="["?(je.f=je.inline=an(wt==="("?")":"]"),tt.highlightFormatting&&(je.formatting="link-string"),je.linkHref=!0,nt(je)):"error"}var yt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function an(vt){return function(je,wt){var tn=je.next();if(tn===vt){wt.f=wt.inline=dt,tt.highlightFormatting&&(wt.formatting="link-string");var bn=nt(wt);return wt.linkHref=!1,bn}return je.match(yt[vt]),wt.linkHref=!0,nt(wt)}}function Gt(vt,je){return vt.match(/^([^\]\\]|\\.)*\]:/,!1)?(je.f=Vt,vt.next(),tt.highlightFormatting&&(je.formatting="link"),je.linkText=!0,nt(je)):ge(vt,je,dt)}function Vt(vt,je){if(vt.match(/^\]:/,!0)){je.f=je.inline=hn,tt.highlightFormatting&&(je.formatting="link");var wt=nt(je);return je.linkText=!1,wt}return vt.match(/^([^\]\\]|\\.)+/,!0),ke.linkText}function hn(vt,je){return vt.eatSpace()?null:(vt.match(/^[^\s]+/,!0),vt.peek()===void 0?je.linkTitle=!0:vt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),je.f=je.inline=dt,ke.linkHref+" url")}var yn={startState:function(){return{f:Be,prevLine:{stream:null},thisLine:{stream:null},block:Be,htmlState:null,indentation:0,inline:dt,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(vt){return{f:vt.f,prevLine:vt.prevLine,thisLine:vt.thisLine,block:vt.block,htmlState:vt.htmlState&&Ce.copyState(At,vt.htmlState),indentation:vt.indentation,localMode:vt.localMode,localState:vt.localMode?Ce.copyState(vt.localMode,vt.localState):null,inline:vt.inline,text:vt.text,formatting:!1,linkText:vt.linkText,linkTitle:vt.linkTitle,linkHref:vt.linkHref,code:vt.code,em:vt.em,strong:vt.strong,strikethrough:vt.strikethrough,emoji:vt.emoji,header:vt.header,setext:vt.setext,hr:vt.hr,taskList:vt.taskList,list:vt.list,listStack:vt.listStack.slice(0),quote:vt.quote,indentedCode:vt.indentedCode,trailingSpace:vt.trailingSpace,trailingSpaceNewLine:vt.trailingSpaceNewLine,md_inside:vt.md_inside,fencedEndRE:vt.fencedEndRE}},token:function(vt,je){if(je.formatting=!1,vt!=je.thisLine.stream){if(je.header=0,je.hr=!1,vt.match(/^\s*$/,!0))return Fe(je),null;if(je.prevLine=je.thisLine,je.thisLine={stream:vt},je.taskList=!1,je.trailingSpace=0,je.trailingSpaceNewLine=!1,!je.localState&&(je.f=je.block,je.f!=Ie)){var wt=vt.match(/^\s*/,!0)[0].replace(/\t/g,se).length;if(je.indentation=wt,je.indentationDiff=null,wt>0)return null}}return je.f(vt,je)},innerMode:function(vt){return vt.block==Ie?{state:vt.htmlState,mode:At}:vt.localState?{state:vt.localState,mode:vt.localMode}:{state:vt,mode:yn}},indent:function(vt,je,wt){return vt.block==Ie&&At.indent?At.indent(vt.htmlState,je,wt):vt.localState&&vt.localMode.indent?vt.localMode.indent(vt.localState,je,wt):Ce.Pass},blankLine:Fe,getType:nt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return yn},"xml"),Ce.defineMIME("text/markdown","markdown"),Ce.defineMIME("text/x-markdown","markdown")})},98101:function(Kn,kn,ye){(function(Ce){Ce(ye(89780))})(function(Ce){"use strict";Ce.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<Ce.modeInfo.length;Oe++){var tt=Ce.modeInfo[Oe];tt.mimes&&(tt.mime=tt.mimes[0])}Ce.findModeByMIME=function(At){At=At.toLowerCase();for(var Ue=0;Ue<Ce.modeInfo.length;Ue++){var Je=Ce.modeInfo[Ue];if(Je.mime==At)return Je;if(Je.mimes){for(var ke=0;ke<Je.mimes.length;ke++)if(Je.mimes[ke]==At)return Je}}if(/\+xml$/.test(At))return Ce.findModeByMIME("application/xml");if(/\+json$/.test(At))return Ce.findModeByMIME("application/json")},Ce.findModeByExtension=function(At){At=At.toLowerCase();for(var Ue=0;Ue<Ce.modeInfo.length;Ue++){var Je=Ce.modeInfo[Ue];if(Je.ext){for(var ke=0;ke<Je.ext.length;ke++)if(Je.ext[ke]==At)return Je}}},Ce.findModeByFileName=function(At){for(var Ue=0;Ue<Ce.modeInfo.length;Ue++){var Je=Ce.modeInfo[Ue];if(Je.file&&Je.file.test(At))return Je}var ke=At.lastIndexOf("."),Ot=ke>-1&&At.substring(ke+1,At.length);if(Ot)return Ce.findModeByExtension(Ot)},Ce.findModeByName=function(At){At=At.toLowerCase();for(var Ue=0;Ue<Ce.modeInfo.length;Ue++){var Je=Ce.modeInfo[Ue];if(Je.name.toLowerCase()==At)return Je;if(Je.alias){for(var ke=0;ke<Je.alias.length;ke++)if(Je.alias[ke].toLowerCase()==At)return Je}}}})},67549:function(Kn,kn,ye){(function(Ce){Ce(ye(89780))})(function(Ce){"use strict";Ce.defineMode("stex",function(Oe,tt){"use strict";function At(Ae,te){Ae.cmdState.push(te)}function Ue(Ae){return Ae.cmdState.length>0?Ae.cmdState[Ae.cmdState.length-1]:null}function Je(Ae){var te=Ae.cmdState.pop();te&&te.closeBracket()}function ke(Ae){for(var te=Ae.cmdState,ne=te.length-1;ne>=0;ne--){var he=te[ne];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function Ot(Ae,te,ne){return function(){this.name=Ae,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=Ot("importmodule","tag",["string","builtin"]),Lt.documentclass=Ot("documentclass","tag",["","atom"]),Lt.usepackage=Ot("usepackage","tag",["atom"]),Lt.begin=Ot("begin","tag",["atom"]),Lt.end=Ot("end","tag",["atom"]),Lt.label=Ot("label","tag",["atom"]),Lt.ref=Ot("ref","tag",["atom"]),Lt.eqref=Ot("eqref","tag",["atom"]),Lt.cite=Ot("cite","tag",["atom"]),Lt.bibitem=Ot("bibitem","tag",["atom"]),Lt.Bibitem=Ot("Bibitem","tag",["atom"]),Lt.RBibitem=Ot("RBibitem","tag",["atom"]),Lt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ot(Ae,te){Ae.f=te}function Rt(Ae,te){var ne;if(Ae.match(/^\\[a-zA-Z@]+/)){var he=Ae.current().slice(1);return ne=Lt.hasOwnProperty(he)?Lt[he]:Lt.DEFAULT,ne=new ne,At(te,ne),ot(te,zt),ne.style}if(Ae.match(/^\\[$&%#{}_]/)||Ae.match(/^\\[,;!\/\\]/))return"tag";if(Ae.match("\\["))return ot(te,function(ge,me){return xt(ge,me,"\\]")}),"keyword";if(Ae.match("\\("))return ot(te,function(ge,me){return xt(ge,me,"\\)")}),"keyword";if(Ae.match("$$"))return ot(te,function(ge,me){return xt(ge,me,"$$")}),"keyword";if(Ae.match("$"))return ot(te,function(ge,me){return xt(ge,me,"$")}),"keyword";var se=Ae.next();if(se=="%")return Ae.skipToEnd(),"comment";if(se=="}"||se=="]"){if(ne=Ue(te),ne)ne.closeBracket(se),ot(te,zt);else return"error";return"bracket"}else return se=="{"||se=="["?(ne=Lt.DEFAULT,ne=new ne,At(te,ne),"bracket"):/\d/.test(se)?(Ae.eatWhile(/[\w.%]/),"atom"):(Ae.eatWhile(/[\w\-_]/),ne=ke(te),ne.name=="begin"&&(ne.argument=Ae.current()),ne.styleIdentifier())}function xt(Ae,te,ne){if(Ae.eatSpace())return null;if(ne&&Ae.match(ne))return ot(te,Rt),"keyword";if(Ae.match(/^\\[a-zA-Z@]+/))return"tag";if(Ae.match(/^[a-zA-Z]+/))return"variable-2";if(Ae.match(/^\\[$&%#{}_]/)||Ae.match(/^\\[,;!\/]/)||Ae.match(/^[\^_&]/))return"tag";if(Ae.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ae.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=Ae.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(Ae.skipToEnd(),"comment"):"error"}function zt(Ae,te){var ne=Ae.peek(),he;return ne=="{"||ne=="["?(he=Ue(te),he.openBracket(ne),Ae.eat(ne),ot(te,Rt),"bracket"):/[ \t\r]/.test(ne)?(Ae.eat(ne),null):(ot(te,Rt),Je(te),Rt(Ae,te))}return{startState:function(){var Ae=tt.inMathMode?function(te,ne){return xt(te,ne)}:Rt;return{cmdState:[],f:Ae}},copyState:function(Ae){return{cmdState:Ae.cmdState.slice(),f:Ae.f}},token:function(Ae,te){return te.f(Ae,te)},blankLine:function(Ae){Ae.f=Rt,Ae.cmdState.length=0},lineComment:"%"}}),Ce.defineMIME("text/x-stex","stex"),Ce.defineMIME("text/x-latex","stex")})},15525:function(Kn,kn,ye){(function(Ce){Ce(ye(89780))})(function(Ce){"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},tt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ce.defineMode("xml",function(At,Ue){var Je=At.indentUnit,ke={},Ot=Ue.htmlMode?Oe:tt;for(var Lt in Ot)ke[Lt]=Ot[Lt];for(var Lt in Ue)ke[Lt]=Ue[Lt];var ot,Rt;function xt(Ze,Zt){function yt(Vt){return Zt.tokenize=Vt,Vt(Ze,Zt)}var an=Ze.next();if(an=="<")return Ze.eat("!")?Ze.eat("[")?Ze.match("CDATA[")?yt(te("atom","]]>")):null:Ze.match("--")?yt(te("comment","-->")):Ze.match("DOCTYPE",!0,!0)?(Ze.eatWhile(/[\w\._\-]/),yt(ne(1))):null:Ze.eat("?")?(Ze.eatWhile(/[\w\._\-]/),Zt.tokenize=te("meta","?>"),"meta"):(ot=Ze.eat("/")?"closeTag":"openTag",Zt.tokenize=zt,"tag bracket");if(an=="&"){var Gt;return Ze.eat("#")?Ze.eat("x")?Gt=Ze.eatWhile(/[a-fA-F\d]/)&&Ze.eat(";"):Gt=Ze.eatWhile(/[\d]/)&&Ze.eat(";"):Gt=Ze.eatWhile(/[\w\.\-:]/)&&Ze.eat(";"),Gt?"atom":"error"}else return Ze.eatWhile(/[^&<]/),null}xt.isInText=!0;function zt(Ze,Zt){var yt=Ze.next();if(yt==">"||yt=="/"&&Ze.eat(">"))return Zt.tokenize=xt,ot=yt==">"?"endTag":"selfcloseTag","tag bracket";if(yt=="=")return ot="equals",null;if(yt=="<"){Zt.tokenize=xt,Zt.state=me,Zt.tagName=Zt.tagStart=null;var an=Zt.tokenize(Ze,Zt);return an?an+" tag error":"tag error"}else return/[\'\"]/.test(yt)?(Zt.tokenize=Ae(yt),Zt.stringStartCol=Ze.column(),Zt.tokenize(Ze,Zt)):(Ze.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ae(Ze){var Zt=function(yt,an){for(;!yt.eol();)if(yt.next()==Ze){an.tokenize=zt;break}return"string"};return Zt.isInAttribute=!0,Zt}function te(Ze,Zt){return function(yt,an){for(;!yt.eol();){if(yt.match(Zt)){an.tokenize=xt;break}yt.next()}return Ze}}function ne(Ze){return function(Zt,yt){for(var an;(an=Zt.next())!=null;){if(an=="<")return yt.tokenize=ne(Ze+1),yt.tokenize(Zt,yt);if(an==">")if(Ze==1){yt.tokenize=xt;break}else return yt.tokenize=ne(Ze-1),yt.tokenize(Zt,yt)}return"meta"}}function he(Ze,Zt,yt){this.prev=Ze.context,this.tagName=Zt,this.indent=Ze.indented,this.startOfLine=yt,(ke.doNotIndent.hasOwnProperty(Zt)||Ze.context&&Ze.context.noIndent)&&(this.noIndent=!0)}function se(Ze){Ze.context&&(Ze.context=Ze.context.prev)}function ge(Ze,Zt){for(var yt;;){if(!Ze.context||(yt=Ze.context.tagName,!ke.contextGrabbers.hasOwnProperty(yt)||!ke.contextGrabbers[yt].hasOwnProperty(Zt)))return;se(Ze)}}function me(Ze,Zt,yt){return Ze=="openTag"?(yt.tagStart=Zt.column(),we):Ze=="closeTag"?Fe:me}function we(Ze,Zt,yt){return Ze=="word"?(yt.tagName=Zt.current(),Rt="tag",We):ke.allowMissingTagName&&Ze=="endTag"?(Rt="tag bracket",We(Ze,Zt,yt)):(Rt="error",we)}function Fe(Ze,Zt,yt){if(Ze=="word"){var an=Zt.current();return yt.context&&yt.context.tagName!=an&&ke.implicitlyClosed.hasOwnProperty(yt.context.tagName)&&se(yt),yt.context&&yt.context.tagName==an||ke.matchClosing===!1?(Rt="tag",Be):(Rt="tag error",Ie)}else return ke.allowMissingTagName&&Ze=="endTag"?(Rt="tag bracket",Be(Ze,Zt,yt)):(Rt="error",Ie)}function Be(Ze,Zt,yt){return Ze!="endTag"?(Rt="error",Be):(se(yt),me)}function Ie(Ze,Zt,yt){return Rt="error",Be(Ze,Zt,yt)}function We(Ze,Zt,yt){if(Ze=="word")return Rt="attribute",nt;if(Ze=="endTag"||Ze=="selfcloseTag"){var an=yt.tagName,Gt=yt.tagStart;return yt.tagName=yt.tagStart=null,Ze=="selfcloseTag"||ke.autoSelfClosers.hasOwnProperty(an)?ge(yt,an):(ge(yt,an),yt.context=new he(yt,an,Gt==yt.indented)),me}return Rt="error",We}function nt(Ze,Zt,yt){return Ze=="equals"?Xe:(ke.allowMissing||(Rt="error"),We(Ze,Zt,yt))}function Xe(Ze,Zt,yt){return Ze=="string"?dt:Ze=="word"&&ke.allowUnquoted?(Rt="string",We):(Rt="error",We(Ze,Zt,yt))}function dt(Ze,Zt,yt){return Ze=="string"?dt:We(Ze,Zt,yt)}return{startState:function(Ze){var Zt={tokenize:xt,state:me,indented:Ze||0,tagName:null,tagStart:null,context:null};return Ze!=null&&(Zt.baseIndent=Ze),Zt},token:function(Ze,Zt){if(!Zt.tagName&&Ze.sol()&&(Zt.indented=Ze.indentation()),Ze.eatSpace())return null;ot=null;var yt=Zt.tokenize(Ze,Zt);return(yt||ot)&&yt!="comment"&&(Rt=null,Zt.state=Zt.state(ot||yt,Ze,Zt),Rt&&(yt=Rt=="error"?yt+" error":Rt)),yt},indent:function(Ze,Zt,yt){var an=Ze.context;if(Ze.tokenize.isInAttribute)return Ze.tagStart==Ze.indented?Ze.stringStartCol+1:Ze.indented+Je;if(an&&an.noIndent)return Ce.Pass;if(Ze.tokenize!=zt&&Ze.tokenize!=xt)return yt?yt.match(/^(\s*)/)[0].length:0;if(Ze.tagName)return ke.multilineTagIndentPastTag!==!1?Ze.tagStart+Ze.tagName.length+2:Ze.tagStart+Je*(ke.multilineTagIndentFactor||1);if(ke.alignCDATA&&/<!\[CDATA\[/.test(Zt))return 0;var Gt=Zt&&/^<(\/)?([\w_:\.-]*)/.exec(Zt);if(Gt&&Gt[1])for(;an;)if(an.tagName==Gt[2]){an=an.prev;break}else if(ke.implicitlyClosed.hasOwnProperty(an.tagName))an=an.prev;else break;else if(Gt)for(;an;){var Vt=ke.contextGrabbers[an.tagName];if(Vt&&Vt.hasOwnProperty(Gt[2]))an=an.prev;else break}for(;an&&an.prev&&!an.startOfLine;)an=an.prev;return an?an.indent+Je:Ze.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ke.htmlMode?"html":"xml",helperType:ke.htmlMode?"html":"xml",skipAttribute:function(Ze){Ze.state==Xe&&(Ze.state=We)},xmlCurrentTag:function(Ze){return Ze.tagName?{name:Ze.tagName,close:Ze.type=="closeTag"}:null},xmlCurrentContext:function(Ze){for(var Zt=[],yt=Ze.context;yt;yt=yt.prev)yt.tagName&&Zt.push(yt.tagName);return Zt.reverse()}}}),Ce.defineMIME("text/xml","xml"),Ce.defineMIME("application/xml","xml"),Ce.mimeModes.hasOwnProperty("text/html")||Ce.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Kn,kn,ye){"use strict";ye.d(kn,{$u:function(){return Lt},BD:function(){return He},E9:function(){return Ot},FF:function(){return Oo},FJ:function(){return me},Hn:function(){return ge},KX:function(){return Fe},NB:function(){return gt},S0:function(){return bt},UL:function(){return ot},Vk:function(){return se},Vm:function(){return rt},YI:function(){return zn},ZA:function(){return tt},Zt:function(){return Rt},al:function(){return ve},bn:function(){return De},bx:function(){return Le},g2:function(){return ai},h1:function(){return Xe},hD:function(){return _n},l4:function(){return Je},rU:function(){return ft},s_:function(){return xe},uz:function(){return Ve},z6:function(){return xt}}),Kn=ye.hmd(Kn),function(){var be;function Mi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Ei(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Mi(a)}}function Dt(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var En=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Fn;if(typeof Object.setPrototypeOf=="function")Fn=Object.setPrototypeOf;else{var Jn;e:{var wn={a:!0},Nn={};try{Nn.__proto__=wn,Jn=Nn.a;break e}catch(a){}Jn=!1}Fn=Jn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var ct=Fn;function Pt(a,y){if(a.prototype=En(y.prototype),a.prototype.constructor=a,ct)ct(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 Re=typeof ye.g!="undefined"&&ye.g!=null?ye.g:self,Tt=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},_t=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function ht(a,y){if(y){var x=Re;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&&_t(x,a,{writable:!0,value:y})}}ht("Object.assign",function(a){return a||Tt}),ht("Array.prototype.fill",function(a){return a||function(y,x,b){var E=this.length||0;for(0>x&&(x=Math.max(0,E+x)),(b==null||b>E)&&(b=E),b=Number(b),0>b&&(b=Math.max(0,E+b)),x=Number(x||0);x<b;x++)this[x]=y;return this}});var 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 Wt(){}function Ut(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ye.clearTimeout(x),x=fn(function(){x=-1,a.apply(b,E)},y)}}function fn(a,y){return Ye.setTimeout(a,y)}function Dn(a){return Ye.document.createElement(a)}function at(a){throw Error(a)}function ln(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),at(a)}function Hn(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),at(x+" is not in the range "+y+": "+a)}function ii(a){Ye.console&&Ye.console.log(a)}function jt(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 It(a){return Array.prototype.slice.call(a)}function on(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):at("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function qt(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):at("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function en(){var a=ki.pop();return a===void 0?[]:a}function xn(a){a.length=0,ki.push(a)}function Pn(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(jt(a)&&a.constructor)return Pn(a.constructor);return typeof a}function An(a){var y=a;return jt(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 Wn(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 pi(a,y,x){Object.defineProperty(Rr.prototype,a,{get:y,set:x})}function Yt(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 bi=Ye.navigator!==void 0&&0<Ye.navigator.userAgent.indexOf("Trident/7"),Di=Ye.navigator!==void 0&&Ye.navigator.platform!==void 0&&Ye.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,ki=[];Object.freeze([]),Wt.className="Util",Wt.Dx="32ab5ff3b26f42dc0ed90f21472913b5",Wt.adym="gojs.net",Wt.vfo="28e645fdb266",Wt.className="Util";function nn(a,y,x){ro(this),this.j=a,this.xa=y,this.o=x}nn.prototype.toString=function(){return"EnumValue."+this.xa};function Xn(a,y){return y==null||y===""?null:a[y]}Re.Object.defineProperties(nn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),nn.className="EnumValue";function fi(){this.ew=[]}fi.prototype.toString=function(){return this.ew.join("")},fi.prototype.add=function(a){a!==""&&this.ew.push(a)},fi.className="StringBuilder";function wi(){}wi.className="PropertyCollection";var gi={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,oe){return function(){throw Error("Property "+ee.Zl[oe.Tj]+" of "+ee.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function Bi(){}Bi.prototype.reset=function(){},Bi.prototype.next=function(){return!1},Bi.prototype.Ad=function(){return!1},Bi.prototype.first=function(){return null},Bi.prototype.any=function(){return!1},Bi.prototype.all=function(){return!0},Bi.prototype.each=function(){return this},Bi.prototype.map=function(){return this},Bi.prototype.filter=function(){return this},Bi.prototype.de=function(){},Bi.prototype.toString=function(){return"EmptyIterator"},Re.Object.defineProperties(Bi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Bi.prototype.first=Bi.prototype.first,Bi.prototype.hasNext=Bi.prototype.Ad,Bi.prototype.next=Bi.prototype.next,Bi.prototype.reset=Bi.prototype.reset;var Ki=null;Bi.className="EmptyIterator",Ki=new Bi;function ji(a){this.key=-1,this.value=a}ji.prototype.reset=function(){this.key=-1},ji.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},ji.prototype.Ad=function(){return this.next()},ji.prototype.first=function(){return this.key=0,this.value},ji.prototype.any=function(a){return this.key=-1,a(this.value)},ji.prototype.all=function(a){return this.key=-1,a(this.value)},ji.prototype.each=function(a){return this.key=-1,a(this.value),this},ji.prototype.map=function(a){return new ji(a(this.value))},ji.prototype.filter=function(a){return a(this.value)?new ji(this.value):Ki},ji.prototype.de=function(){this.value=null},ji.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Re.Object.defineProperties(ji.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),ji.prototype.first=ji.prototype.first,ji.prototype.hasNext=ji.prototype.Ad,ji.prototype.next=ji.prototype.next,ji.prototype.reset=ji.prototype.reset,ji.className="SingletonIterator";function Pi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}Pi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},Pi.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},Pi.prototype.Ad=function(){return this.next()},Pi.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},Pi.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},Pi.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},Pi.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},Pi.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 Ln,a.s=x,a.xb(),a.iterator},Pi.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 Ln,a.s=x,a.xb(),a.iterator},Pi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Pi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Re.Object.defineProperties(Pi.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}}}),Pi.prototype.first=Pi.prototype.first,Pi.prototype.hasNext=Pi.prototype.Ad,Pi.prototype.next=Pi.prototype.next,Pi.prototype.reset=Pi.prototype.reset,Pi.className="ListIterator";function Vi(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Vi.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Vi.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)},Vi.prototype.Ad=function(){return this.next()},Vi.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},Vi.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},Vi.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},Vi.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},Vi.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 Ln,a.s=x,a.xb(),a.iterator},Vi.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 Ln,a.s=x,a.xb(),a.iterator},Vi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Vi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Re.Object.defineProperties(Vi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Vi.prototype.first=Vi.prototype.first,Vi.prototype.hasNext=Vi.prototype.Ad,Vi.prototype.next=Vi.prototype.next,Vi.prototype.reset=Vi.prototype.reset,Vi.className="ListIteratorBackwards";function Ln(a){ro(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&at("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}be=Ln.prototype,be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.toString=function(){return"List()#"+_i(this)},be.add=function(a){return a===null?this:(this._isFrozen&&ln(this,a),this.s.push(a),this.xb(),this)},be.push=function(a){this.add(a)},be.addAll=function(a){if(a===null)return this;this._isFrozen&&ln(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},be.clear=function(){this._isFrozen&&ln(this),this.s.length=0,this.xb()},be.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},be.has=function(a){return this.contains(a)},be.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},be.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Hn(a,"0 <= i < length",Ln,"elt:i"),y[a]},be.get=function(a){return this.M(a)},be.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Hn(a,"0 <= i < length",Ln,"setElt:i"),this._isFrozen&&ln(this,a),x[a]=y},be.set=function(a,y){this.cd(a,y)},be.first=function(){var a=this.s;return a.length===0?null:a[0]},be.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},be.pop=function(){this._isFrozen&&ln(this);var a=this.s;return 0<a.length?a.pop():null},Ln.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},Ln.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},Ln.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Ln.prototype.map=function(a){for(var y=new Ln,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Ln.prototype.filter=function(a){for(var y=new Ln,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},be=Ln.prototype,be.Gb=function(a,y){0>a&&Hn(a,">= 0",Ln,"insertAt:i"),this._isFrozen&&ln(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},be.remove=function(a){if(a===null)return!1;this._isFrozen&&ln(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)},be.delete=function(a){return this.remove(a)},be.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Hn(a,"0 <= i < length",Ln,"removeAt:i"),this._isFrozen&&ln(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},be.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&&ln(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Ln.prototype.copy=function(){var a=new Ln,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},be=Ln.prototype,be.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},be.Iv=function(){for(var a=new Mn,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},be.sort=function(a){return this._isFrozen&&ln(this),this.s.sort(a),this.xb(),this},be.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&ln(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Hn(y,"0 <= from < length",Ln,"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},be.reverse=function(){return this._isFrozen&&ln(this),this.s.reverse(),this.xb(),this},Re.Object.defineProperties(Ln.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 Ki;var a=this.Sa;return a!==null?(a.reset(),a):new Pi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Ki;var a=this.Hg;return a!==null?(a.reset(),a):new Vi(this)}}}),Ln.prototype.reverse=Ln.prototype.reverse,Ln.prototype.sortRange=Ln.prototype.zi,Ln.prototype.sort=Ln.prototype.sort,Ln.prototype.toSet=Ln.prototype.Iv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.removeRange=Ln.prototype.removeRange,Ln.prototype.removeAt=Ln.prototype.mb,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.insertAt=Ln.prototype.Gb,Ln.prototype.pop=Ln.prototype.pop,Ln.prototype.last=Ln.prototype.jc,Ln.prototype.first=Ln.prototype.first,Ln.prototype.set=Ln.prototype.set,Ln.prototype.setElt=Ln.prototype.cd,Ln.prototype.get=Ln.prototype.get,Ln.prototype.elt=Ln.prototype.M,Ln.prototype.indexOf=Ln.prototype.indexOf,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.push=Ln.prototype.push,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze,Ln.className="List";function So(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}So.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},So.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},So.prototype.Ad=function(){return this.next()},So.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},So.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},So.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},So.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},So.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},So.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},So.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},So.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Re.Object.defineProperties(So.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),So.prototype.first=So.prototype.first,So.prototype.hasNext=So.prototype.Ad,So.prototype.next=So.prototype.next,So.prototype.reset=So.prototype.reset,So.className="SetIterator";function Mn(a){ro(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&at("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}be=Mn.prototype,be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.toString=function(){return"Set()#"+_i(this)},be.add=function(a){if(a===null)return this;this._isFrozen&&ln(this,a);var y=a;return jt(a)&&(y=No(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Zi(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},be.addAll=function(a){if(a===null)return this;if(this._isFrozen&&ln(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},be.contains=function(a){if(a===null)return!1;var y=a;return jt(a)&&(y=_i(a),y===void 0)?!1:this.Tb[y]!==void 0},be.has=function(a){return this.contains(a)},be.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},be.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},be.first=function(){var a=this.ea;return a===null?null:a.value},Mn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Mn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Mn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Mn.prototype.map=function(a){for(var y=new Mn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Mn.prototype.filter=function(a){for(var y=new Mn,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},be=Mn.prototype,be.remove=function(a){if(a===null)return!1;this._isFrozen&&ln(this,a);var y=a;if(jt(a)&&(y=_i(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},be.delete=function(a){return this.remove(a)},be.hp=function(a){if(a===null)return this;if(this._isFrozen&&ln(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},be.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&ln(this);var y=new Mn;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},be.clear=function(){this._isFrozen&&ln(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Mn.prototype.copy=function(){var a=new Mn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Mn.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},Mn.prototype.Hv=function(){var a=new Ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function ro(a){a.__gohashid=Go++}function No(a){var y=a.__gohashid;return y===void 0&&(y=Go++,a.__gohashid=y),y}function _i(a){return a.__gohashid}Re.Object.defineProperties(Mn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Ki;var a=this.Sa;return a!==null?(a.reset(),a):new So(this)}}}),Mn.prototype.toList=Mn.prototype.Hv,Mn.prototype.toArray=Mn.prototype.Fa,Mn.prototype.clear=Mn.prototype.clear,Mn.prototype.retainAll=Mn.prototype.pA,Mn.prototype.removeAll=Mn.prototype.hp,Mn.prototype.delete=Mn.prototype.delete,Mn.prototype.remove=Mn.prototype.remove,Mn.prototype.first=Mn.prototype.first,Mn.prototype.containsAny=Mn.prototype.Ty,Mn.prototype.containsAll=Mn.prototype.Sy,Mn.prototype.has=Mn.prototype.has,Mn.prototype.contains=Mn.prototype.contains,Mn.prototype.addAll=Mn.prototype.addAll,Mn.prototype.add=Mn.prototype.add,Mn.prototype.thaw=Mn.prototype.ka,Mn.prototype.freeze=Mn.prototype.freeze;var Go=1;Mn.className="Set",Mn.uniqueHash=ro,Mn.hashIdUnique=No,Mn.hashId=_i;function ko(a){this.ma=a,this.qa=a.Ja,this.sa=null}ko.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},ko.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)},ko.prototype.Ad=function(){return this.next()},ko.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},ko.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},ko.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},ko.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},ko.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},ko.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Ln;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},ko.prototype.de=function(){this.value=this.key=null,this.qa=-1},ko.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Re.Object.defineProperties(ko.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ko.prototype.first=ko.prototype.first,ko.prototype.hasNext=ko.prototype.Ad,ko.prototype.next=ko.prototype.next,ko.prototype.reset=ko.prototype.reset,ko.className="MapKeySetIterator";function Ii(a){Mn.call(this),ro(this),this._isFrozen=!0,this.ma=a}Pt(Ii,Mn),be=Ii.prototype,be.freeze=function(){return this},be.ka=function(){return this},be.toString=function(){return"MapKeySet("+this.ma.toString()+")"},be.add=function(){at("This Set is read-only: "+this.toString())},be.contains=function(a){return this.ma.contains(a)},be.has=function(a){return this.contains(a)},be.remove=function(){at("This Set is read-only: "+this.toString())},be.delete=function(a){return this.remove(a)},be.clear=function(){at("This Set is read-only: "+this.toString())},be.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ii.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ii.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ii.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ii.prototype.map=function(a){for(var y=new Mn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ii.prototype.filter=function(a){for(var y=new Mn,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Ii.prototype.copy=function(){return new Ii(this.ma)},Ii.prototype.Iv=function(){var a=new Mn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ii.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},Ii.prototype.Hv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Re.Object.defineProperties(Ii.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Ki:new ko(this.ma)}}}),Ii.prototype.toList=Ii.prototype.Hv,Ii.prototype.toArray=Ii.prototype.Fa,Ii.prototype.toSet=Ii.prototype.Iv,Ii.prototype.first=Ii.prototype.first,Ii.prototype.clear=Ii.prototype.clear,Ii.prototype.delete=Ii.prototype.delete,Ii.prototype.remove=Ii.prototype.remove,Ii.prototype.has=Ii.prototype.has,Ii.prototype.contains=Ii.prototype.contains,Ii.prototype.add=Ii.prototype.add,Ii.prototype.thaw=Ii.prototype.ka,Ii.prototype.freeze=Ii.prototype.freeze,Ii.className="MapKeySet";function Ai(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Ai.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Ai.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)},Ai.prototype.Ad=function(){return this.next()},Ai.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},Ai.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},Ai.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},Ai.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},Ai.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Ai.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Ln;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Ai.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Ai.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Re.Object.defineProperties(Ai.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ai.prototype.first=Ai.prototype.first,Ai.prototype.hasNext=Ai.prototype.Ad,Ai.prototype.next=Ai.prototype.next,Ai.prototype.reset=Ai.prototype.reset,Ai.className="MapValueSetIterator";function Zi(a,y){this.key=a,this.value=y,this.ll=this.va=null}Zi.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Zi.className="KeyValuePair";function yo(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}yo.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},yo.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)},yo.prototype.Ad=function(){return this.next()},yo.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},yo.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},yo.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},yo.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},yo.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},yo.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Ln;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},yo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},yo.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Re.Object.defineProperties(yo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),yo.prototype.first=yo.prototype.first,yo.prototype.hasNext=yo.prototype.Ad,yo.prototype.next=yo.prototype.next,yo.prototype.reset=yo.prototype.reset,yo.className="MapIterator";function di(a){ro(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"&&at("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}be=di.prototype,be.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.toString=function(){return"Map()#"+_i(this)},be.add=function(a,y){this._isFrozen&&ln(this,a);var x=a;jt(a)&&(x=No(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Zi(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},be.set=function(a,y){return this.add(a,y)},be.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 di)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},be.first=function(){return this.ea},di.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},di.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},di.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},di.prototype.map=function(a){for(var y=new di,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},di.prototype.filter=function(a){for(var y=new di,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},be=di.prototype,be.contains=function(a){var y=a;return jt(a)&&(y=_i(a),y===void 0)?!1:this.Tb[y]!==void 0},be.has=function(a){return this.contains(a)},be.I=function(a){var y=a;return jt(a)&&(y=_i(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},be.get=function(a){return this.I(a)},be.remove=function(a){if(a===null)return!1;this._isFrozen&&ln(this,a);var y=a;if(jt(a)&&(y=_i(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},be.delete=function(a){return this.remove(a)},be.clear=function(){this._isFrozen&&ln(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()},di.prototype.copy=function(){var a=new di,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},di.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 Zi(E.key,E.value),x++}return y},di.prototype.Lf=function(){return new Ii(this)},Re.Object.defineProperties(di.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Ki;var a=this.Sa;return a!==null?(a.reset(),a):new yo(this)}},iteratorKeys:{get:function(){return 0>=this.count?Ki:new ko(this)}},iteratorValues:{get:function(){if(0>=this.count)return Ki;var a=this.jf;return a!==null?(a.reset(),a):new Ai(this)}}}),di.prototype.toKeySet=di.prototype.Lf,di.prototype.toArray=di.prototype.Fa,di.prototype.clear=di.prototype.clear,di.prototype.delete=di.prototype.delete,di.prototype.remove=di.prototype.remove,di.prototype.get=di.prototype.get,di.prototype.getValue=di.prototype.I,di.prototype.has=di.prototype.has,di.prototype.contains=di.prototype.contains,di.prototype.first=di.prototype.first,di.prototype.addAll=di.prototype.addAll,di.prototype.set=di.prototype.set,di.prototype.add=di.prototype.add,di.prototype.thaw=di.prototype.ka,di.prototype.freeze=di.prototype.freeze,di.className="Map";function Ke(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):at("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Do,nr,xo,hr,Qo;Ke.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Ke.prototype.h=function(a,y){return this.x=a,this.y=y,this},Ke.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Ke.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Ke.prototype.copy=function(){var a=new Ke;return a.x=this.x,a.y=this.y,a},be=Ke.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function $i(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 Ke(x,E)}return new Ke}function ao(a){return a.x.toString()+" "+a.y.toString()}be.toString=function(){return"Point("+this.x+","+this.y+")"},be.D=function(a){return a instanceof Ke?this.x===a.x&&this.y===a.y:!1},be.hi=function(a,y){return this.x===a&&this.y===y},be.Xa=function(a){return Bt.B(this.x,a.x)&&Bt.B(this.y,a.y)},be.add=function(a){return this.x+=a.x,this.y+=a.y,this},be.re=function(a){return this.x-=a.x,this.y-=a.y,this},be.offset=function(a,y){return this.x+=a,this.y+=y,this},Ke.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},be=Ke.prototype,be.scale=function(a,y){return this.x*=a,this.y*=y,this},be.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},be.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},be.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},be.ab=function(a){return jo(a.x-this.x,a.y-this.y)},be.direction=function(a,y){return jo(a-this.x,y-this.y)};function jo(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}be.Ry=function(a,y){return Bt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},be.fA=function(a,y,x,b){return Bt.qh(a,y,x,b,this.x,this.y,this),this},be.gA=function(a,y){return Bt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},be.uA=function(a,y,x,b){return Bt.No(this.x,this.y,a,y,x,b,this),this},be.vA=function(a,y){return Bt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},be.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},be.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},be.transform=function(a){return a.Ga(this),this};function Lo(a,y){return y.Cd(a),a}function dr(a,y,x,b,E,z){var ee=E-x,oe=z-b,re=ee*ee+oe*oe;x-=a,b-=y;var le=-x*ee-b*oe;return 0>=le||le>=re?(ee=E-a,oe=z-y,Math.min(x*x+b*b,ee*ee+oe*oe)):(a=ee*b-oe*x,a*a/re)}function Pr(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Yi(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)}be.w=function(){return isFinite(this.x)&&isFinite(this.y)},Ke.alloc=function(){var a=Qi.pop();return a===void 0?new Ke:a},Ke.allocAt=function(a,y){var x=Qi.pop();return x===void 0?new Ke(a,y):(x.x=a,x.y=y,x)},Ke.free=function(a){Qi.push(a)},Ke.prototype.isReal=Ke.prototype.w,Ke.prototype.setSpot=Ke.prototype.yi,Ke.prototype.setRectSpot=Ke.prototype.xi,Ke.prototype.snapToGridPoint=Ke.prototype.vA,Ke.prototype.snapToGrid=Ke.prototype.uA,Ke.prototype.projectOntoLineSegmentPoint=Ke.prototype.gA,Ke.prototype.projectOntoLineSegment=Ke.prototype.fA,Ke.intersectingLineSegments=function(a,y,x,b,E,z,ee,oe){return Bt.Rl(a,y,x,b,E,z,ee,oe)},Ke.prototype.compareWithLineSegmentPoint=Ke.prototype.Ry,Ke.compareWithLineSegment=function(a,y,x,b,E,z){return Bt.Fl(a,y,x,b,E,z)},Ke.prototype.direction=Ke.prototype.direction,Ke.prototype.directionPoint=Ke.prototype.ab,Ke.prototype.normalize=Ke.prototype.normalize,Ke.prototype.distanceSquared=Ke.prototype.zd,Ke.prototype.distanceSquaredPoint=Ke.prototype.Bf,Ke.prototype.scale=Ke.prototype.scale,Ke.prototype.rotate=Ke.prototype.rotate,Ke.prototype.offset=Ke.prototype.offset,Ke.prototype.subtract=Ke.prototype.re,Ke.prototype.add=Ke.prototype.add,Ke.prototype.equalsApprox=Ke.prototype.Xa,Ke.prototype.equalTo=Ke.prototype.hi,Ke.prototype.equals=Ke.prototype.D,Ke.prototype.set=Ke.prototype.set,Ke.prototype.setTo=Ke.prototype.sg;var Qi=[];Ke.className="Point",Ke.parse=$i,Ke.stringify=ao,Ke.distanceLineSegmentSquared=dr,Ke.distanceSquared=Pr,Ke.direction=Yi,Ke.Origin=Do=new Ke(0,0).ja(),Ke.InfiniteTopLeft=nr=new Ke(-1/0,-1/0).ja(),Ke.InfiniteBottomRight=xo=new Ke(1/0,1/0).ja(),Ke.SixPoint=hr=new Ke(6,6).ja(),Ke.NoPoint=Qo=new Ke(NaN,NaN).ja(),Ke.parse=$i,Ke.stringify=ao,Ke.distanceLineSegmentSquared=dr,Ke.distanceSquared=Pr,Ke.direction=Yi;function ti(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):at("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var io,ir,Ir,mr,er,Lr,Ar;ti.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},ti.prototype.h=function(a,y){return this.width=a,this.height=y,this},ti.prototype.sg=function(a,y){return this.width=a,this.height=y,this},ti.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},ti.prototype.copy=function(){var a=new ti;return a.width=this.width,a.height=this.height,a},be=ti.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function ra(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 ti(x,E)}return new ti}function ua(a){return a.width.toString()+" "+a.height.toString()}be.toString=function(){return"Size("+this.width+","+this.height+")"},be.D=function(a){return a instanceof ti?this.width===a.width&&this.height===a.height:!1},be.hi=function(a,y){return this.width===a&&this.height===y},be.Xa=function(a){return Bt.B(this.width,a.width)&&Bt.B(this.height,a.height)},be.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},be.w=function(){return isFinite(this.width)&&isFinite(this.height)},ti.alloc=function(){var a=wa.pop();return a===void 0?new ti:a},ti.free=function(a){wa.push(a)},ti.prototype.isReal=ti.prototype.w,ti.prototype.inflate=ti.prototype.Bc,ti.prototype.equalsApprox=ti.prototype.Xa,ti.prototype.equalTo=ti.prototype.hi,ti.prototype.equals=ti.prototype.D,ti.prototype.set=ti.prototype.set,ti.prototype.setTo=ti.prototype.sg;var wa=[];ti.className="Size",ti.parse=ra,ti.stringify=ua,ti.ZeroSize=io=new ti(0,0).ja(),ti.OneSize=ir=new ti(1,1).ja(),ti.SixSize=Ir=new ti(6,6).ja(),ti.EightSize=mr=new ti(8,8).ja(),ti.TenSize=er=new ti(10,10).ja(),ti.InfiniteSize=Lr=new ti(1/0,1/0).ja(),ti.NoSize=Ar=new ti(NaN,NaN).ja(),ti.parse=ra,ti.stringify=ua;function vn(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 Ke?(x=a.x,a=a.y,y instanceof Ke?(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 ti?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):at("Incorrect second argument supplied to Rect constructor "+y)):at("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}be=vn.prototype,be.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},be.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function ia(a,y,x){a.width=y,a.height=x}be.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},be.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},be.dd=function(a){return this.x=a.x,this.y=a.y,this},be.tA=function(a){return this.width=a.width,this.height=a.height,this},vn.prototype.copy=function(){var a=new vn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},be=vn.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function Us(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 vn(x,E,z,ee)}return new vn}function us(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}be.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},be.D=function(a){return a instanceof vn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},be.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},be.Xa=function(a){return Bt.B(this.x,a.x)&&Bt.B(this.y,a.y)&&Bt.B(this.width,a.width)&&Bt.B(this.height,a.height)};function xr(a,y){return Bt.$(a.x,y.x)&&Bt.$(a.y,y.y)&&Bt.$(a.width,y.width)&&Bt.$(a.height,y.height)}be.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},be.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},be.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},be.offset=function(a,y){return this.x+=a,this.y+=y,this},be.Bc=function(a,y){return or(this,y,a,y,a)},be.Co=function(a){return or(this,a.top,a.right,a.bottom,a.left)},be.Fv=function(a){return or(this,-a.top,-a.right,-a.bottom,-a.left)},be.Hz=function(a,y,x,b){return or(this,a,y,x,b)};function or(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}be.Ex=function(a){return da(this,a.x,a.y,a.width,a.height)},be.Uu=function(a,y,x,b){return da(this,a,y,x,b)};function da(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}be.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},be.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 Ro(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))}be.Ye=function(a){return lo(this,a.x,a.y,0,0)},be.ed=function(a){return lo(this,a.x,a.y,a.width,a.height)},be.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),lo(this,a,y,x,b)};function lo(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}be.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Ko(a,y,x,b,E,z,ee,oe){return ee===void 0&&(ee=0),oe===void 0&&(oe=0),a<=E&&E+ee<=a+x&&y<=z&&z+oe<=y+b}function Wr(a,y,x,b,E,z,ee,oe){return a>ee+E||E>x+a?!1:!(y>oe+z||z>b+y)}be.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},be.Mz=function(){return this.width===0&&this.height===0},vn.alloc=function(){var a=Fo.pop();return a===void 0?new vn:a},vn.allocAt=function(a,y,x,b){var E=Fo.pop();return E===void 0?new vn(a,y,x,b):E.h(a,y,x,b)},vn.free=function(a){Fo.push(a)},Re.Object.defineProperties(vn.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 Ke(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new ti(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Ke(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}}}),vn.prototype.isEmpty=vn.prototype.Mz,vn.prototype.isReal=vn.prototype.w,vn.intersectsLineSegment=function(a,y,x,b,E,z,ee,oe){return Bt.Fx(a,y,x,b,E,z,ee,oe)},vn.prototype.setSpot=vn.prototype.yi,vn.prototype.union=vn.prototype.Kv,vn.prototype.unionRect=vn.prototype.ed,vn.prototype.unionPoint=vn.prototype.Ye,vn.prototype.intersects=vn.prototype.Vu,vn.prototype.intersectsRect=vn.prototype.Yc,vn.prototype.intersect=vn.prototype.Uu,vn.prototype.intersectRect=vn.prototype.Ex,vn.prototype.grow=vn.prototype.Hz,vn.prototype.subtractMargin=vn.prototype.Fv,vn.prototype.addMargin=vn.prototype.Co,vn.prototype.inflate=vn.prototype.Bc,vn.prototype.offset=vn.prototype.offset,vn.prototype.contains=vn.prototype.contains,vn.prototype.containsRect=vn.prototype.Re,vn.prototype.containsPoint=vn.prototype.ca,vn.prototype.equalsApprox=vn.prototype.Xa,vn.prototype.equalTo=vn.prototype.hi,vn.prototype.equals=vn.prototype.D,vn.prototype.setSize=vn.prototype.tA,vn.prototype.setPoint=vn.prototype.dd,vn.prototype.set=vn.prototype.set,vn.prototype.setTo=vn.prototype.sg;var no=null,Io=null,Fo=[];vn.className="Rect",vn.parse=Us,vn.stringify=us,vn.contains=Ko,vn.intersects=Wr,vn.ZeroRect=no=new vn(0,0,0,0).ja(),vn.NoRect=Io=new vn(NaN,NaN,NaN,NaN).ja(),vn.parse=Us,vn.stringify=us,vn.contains=Ko,vn.intersects=Wr;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):at("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},be=vi.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function Zr(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 Yr(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}be.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},be.D=function(a){return a instanceof vi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},be.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},be.Xa=function(a){return Bt.B(this.top,a.top)&&Bt.B(this.right,a.right)&&Bt.B(this.bottom,a.bottom)&&Bt.B(this.left,a.left)},be.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},vi.alloc=function(){var a=vs.pop();return a===void 0?new vi:a},vi.free=function(a){vs.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 qa=null,bs=null,vs=[];vi.className="Margin",vi.parse=Zr,vi.stringify=Yr,vi.ZeroMargin=qa=new vi(0,0,0,0).ja(),vi.TwoMargin=bs=new vi(2,2,2,2).ja(),vi.parse=Zr,vi.stringify=Yr;function xi(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 Jr,_r,es,Xs,gl,Uo,Ru,Rs,As,Ds,Zl,ou,js,Ys,Pu,Nh,ph,kh,_u,ju,ru,pl,Ah,qu,au,sr,un,Es,ts,Ta,La,Pa,Ga,Ka,Vl,Cl;xi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},xi.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},xi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},xi.prototype.copy=function(){var a=new xi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},be=xi.prototype,be.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},be.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this};function Oa(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ca(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Jr;if(a==="TopLeft")return _r;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return es;if(a==="TopRight")return Xs;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return gl;if(a==="Center")return Uo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return Ru;if(a==="BottomLeft")return Rs;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return As;if(a==="BottomRight")return Ds;if(a==="TopSide")return Zl;if(a==="LeftSide")return ou;if(a==="RightSide")return js;if(a==="BottomSide")return Ys;if(a==="TopBottomSides")return Pu;if(a==="LeftRightSides")return Nh;if(a==="TopLeftSides")return ph;if(a==="TopRightSides")return kh;if(a==="BottomLeftSides")return _u;if(a==="BottomRightSides")return ju;if(a==="NotTopSide")return ru;if(a==="NotLeftSide")return pl;if(a==="NotRightSide")return Ah;if(a==="NotBottomSide")return qu;if(a==="AllSides")return au;if(a==="Default")return sr;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 xi(x,E,z,ee)}return new xi}function Dh(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}be.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(Jr)?"None":this.D(_r)?"TopLeft":this.D(es)?"Top":this.D(Xs)?"TopRight":this.D(gl)?"Left":this.D(Uo)?"Center":this.D(Ru)?"Right":this.D(Rs)?"BottomLeft":this.D(As)?"Bottom":this.D(Ds)?"BottomRight":this.D(Zl)?"TopSide":this.D(ou)?"LeftSide":this.D(js)?"RightSide":this.D(Ys)?"BottomSide":this.D(Pu)?"TopBottomSides":this.D(Nh)?"LeftRightSides":this.D(ph)?"TopLeftSides":this.D(kh)?"TopRightSides":this.D(_u)?"BottomLeftSides":this.D(ju)?"BottomRightSides":this.D(ru)?"NotTopSide":this.D(pl)?"NotLeftSide":this.D(Ah)?"NotRightSide":this.D(qu)?"NotBottomSide":this.D(au)?"AllSides":this.D(sr)?"Default":"None"},be.D=function(a){return a instanceof xi?(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},be.gv=function(){return new xi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},be.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(un))a=ou;else if(a.D(Es))a=js;else if(a.D(ts))a=Zl;else if(a.D(Ta))a=Ys;else return!1;return a=a.offsetY,(this.offsetY&a)===a},be.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},be.Mc=function(){return isNaN(this.x)||isNaN(this.y)},be.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},be.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},be.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},xi.alloc=function(){var a=bl.pop();return a===void 0?new xi:a},xi.free=function(a){bl.push(a)},xi.prototype.isDefault=xi.prototype.Xb,xi.prototype.isNone=xi.prototype.ys,xi.prototype.isSide=xi.prototype.$c,xi.prototype.isNoSpot=xi.prototype.Mc,xi.prototype.isSpot=xi.prototype.sb,xi.prototype.includesSide=xi.prototype.Hf,xi.prototype.opposite=xi.prototype.gv,xi.prototype.equals=xi.prototype.D,xi.prototype.set=xi.prototype.set,xi.prototype.setTo=xi.prototype.sg;var bl=[];xi.className="Spot",xi.parse=ca,xi.stringify=Dh,xi.None=Jr=Oa(new xi(0,0,0,0),0).ja(),xi.Default=sr=Oa(new xi(0,0,-1,0),-1).ja(),xi.TopLeft=_r=new xi(0,0,0,0).ja(),xi.TopCenter=es=new xi(.5,0,0,0).ja(),xi.TopRight=Xs=new xi(1,0,0,0).ja(),xi.LeftCenter=gl=new xi(0,.5,0,0).ja(),xi.Center=Uo=new xi(.5,.5,0,0).ja(),xi.RightCenter=Ru=new xi(1,.5,0,0).ja(),xi.BottomLeft=Rs=new xi(0,1,0,0).ja(),xi.BottomCenter=As=new xi(.5,1,0,0).ja(),xi.BottomRight=Ds=new xi(1,1,0,0).ja(),xi.MiddleTop=La=es,xi.MiddleLeft=Pa=gl,xi.MiddleRight=Ga=Ru,xi.MiddleBottom=Ka=As,xi.Top=ts=es,xi.Left=un=gl,xi.Right=Es=Ru,xi.Bottom=Ta=As,xi.TopSide=Zl=Oa(new xi(0,0,1,1),1).ja(),xi.LeftSide=ou=Oa(new xi(0,0,1,2),1).ja(),xi.RightSide=js=Oa(new xi(0,0,1,4),1).ja(),xi.BottomSide=Ys=Oa(new xi(0,0,1,8),1).ja(),xi.TopBottomSides=Pu=Oa(new xi(0,0,1,9),1).ja(),xi.LeftRightSides=Nh=Oa(new xi(0,0,1,6),1).ja(),xi.TopLeftSides=ph=Oa(new xi(0,0,1,3),1).ja(),xi.TopRightSides=kh=Oa(new xi(0,0,1,5),1).ja(),xi.BottomLeftSides=_u=Oa(new xi(0,0,1,10),1).ja(),xi.BottomRightSides=ju=Oa(new xi(0,0,1,12),1).ja(),xi.NotTopSide=ru=Oa(new xi(0,0,1,14),1).ja(),xi.NotLeftSide=pl=Oa(new xi(0,0,1,13),1).ja(),xi.NotRightSide=Ah=Oa(new xi(0,0,1,11),1).ja(),xi.NotBottomSide=qu=Oa(new xi(0,0,1,7),1).ja(),xi.AllSides=au=Oa(new xi(0,0,1,15),1).ja(),Vl=new xi(.156,.156).ja(),Cl=new xi(.844,.844).ja(),xi.parse=ca,xi.stringify=Dh;function Mo(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Mo.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},Mo.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},Mo.prototype.copy=function(){var a=new Mo;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},Mo.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Mo.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},Mo.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Mo.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Mo.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Mo.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,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},Mo.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},Mo.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,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},be=Mo.prototype,be.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},be.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},be.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)},be.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))},be.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))},be.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,ee=this.m12,oe=this.m21,re=this.m22,le=this.dx,ue=this.dy,fe=y*z+x*oe+le,Se=y*ee+x*re+ue,Pe=b*z+x*oe+le,Ee=b*ee+x*re+ue;return x=y*z+E*oe+le,y=y*ee+E*re+ue,z=b*z+E*oe+le,b=b*ee+E*re+ue,E=Math.min(fe,Pe),fe=Math.max(fe,Pe),Pe=Math.min(Se,Ee),Se=Math.max(Se,Ee),E=Math.min(E,x),fe=Math.max(fe,x),Pe=Math.min(Pe,y),Se=Math.max(Se,y),E=Math.min(E,z),fe=Math.max(fe,z),Pe=Math.min(Pe,b),Se=Math.max(Se,b),a.h(E,Pe,fe-E,Se-Pe),a},Mo.alloc=function(){var a=Bh.pop();return a===void 0?new Mo:a},Mo.free=function(a){Bh.push(a)},Mo.prototype.transformRect=Mo.prototype.pp,Mo.prototype.transformPoint=Mo.prototype.Ga,Mo.prototype.scale=Mo.prototype.scale,Mo.prototype.translate=Mo.prototype.translate,Mo.prototype.rotate=Mo.prototype.rotate,Mo.prototype.invert=Mo.prototype.Vj,Mo.prototype.multiplyInverted=Mo.prototype.bv,Mo.prototype.multiply=Mo.prototype.multiply,Mo.prototype.reset=Mo.prototype.reset,Mo.prototype.isIdentity=Mo.prototype.ws,Mo.prototype.equals=Mo.prototype.D,Mo.prototype.setTransform=Mo.prototype.setTransform,Mo.prototype.set=Mo.prototype.set;var Bh=[];Mo.className="Transform",Mo.xF="54a702f3e53909c447824c6706603faf4c";var Bt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Bt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Bt.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 oe=a,re=x;else oe=x,re=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 oe<=z&&z<=re&&y-E<=ee&&ee<=y+E;if(re+=E,oe-=E,oe<=z&&z<=re&&(ue+=E,le-=E,le<=ee&&ee<=ue))if(re-oe>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,oe,re,le,ue,fe){if(Bt.Yb(a,y,ee,oe,fe,x,b)&&Bt.Yb(a,y,ee,oe,fe,E,z))return Bt.Yb(a,y,ee,oe,fe,le,ue);var Se=(a+x)/2,Pe=(y+b)/2,Ee=(x+E)/2,Te=(b+z)/2;E=(E+ee)/2,z=(z+oe)/2,b=(Se+Ee)/2,x=(Pe+Te)/2,Ee=(Ee+E)/2,Te=(Te+z)/2;var _e=(b+Ee)/2,Ge=(x+Te)/2;return Bt.cs(a,y,Se,Pe,b,x,_e,Ge,re,le,ue,fe)||Bt.cs(_e,Ge,Ee,Te,E,z,ee,oe,re,le,ue,fe)},ax:function(a,y,x,b,E,z,ee,oe,re){var le=(x+E)/2,ue=(b+z)/2;return re.h((((a+x)/2+le)/2+(le+(E+ee)/2)/2)/2,(((y+b)/2+ue)/2+(ue+(z+oe)/2)/2)/2),re},My:function(a,y,x,b,E,z,ee,oe){var re=(x+E)/2,le=(b+z)/2;return Yi(((a+x)/2+re)/2,((y+b)/2+le)/2,(re+(E+ee)/2)/2,(le+(z+oe)/2)/2)},Dl:function(a,y,x,b,E,z,ee,oe,re,le){if(Bt.Yb(a,y,ee,oe,re,x,b)&&Bt.Yb(a,y,ee,oe,re,E,z))lo(le,a,y,0,0),lo(le,ee,oe,0,0);else{var ue=(a+x)/2,fe=(y+b)/2,Se=(x+E)/2,Pe=(b+z)/2;E=(E+ee)/2,z=(z+oe)/2,b=(ue+Se)/2,x=(fe+Pe)/2,Se=(Se+E)/2,Pe=(Pe+z)/2;var Ee=(b+Se)/2,Te=(x+Pe)/2;Bt.Dl(a,y,ue,fe,b,x,Ee,Te,re,le),Bt.Dl(Ee,Te,Se,Pe,E,z,ee,oe,re,le)}return le},Qe:function(a,y,x,b,E,z,ee,oe,re,le){if(Bt.Yb(a,y,ee,oe,re,x,b)&&Bt.Yb(a,y,ee,oe,re,E,z))le.length===0&&(le.push(a),le.push(y)),le.push(ee),le.push(oe);else{var ue=(a+x)/2,fe=(y+b)/2,Se=(x+E)/2,Pe=(b+z)/2;E=(E+ee)/2,z=(z+oe)/2,b=(ue+Se)/2,x=(fe+Pe)/2,Se=(Se+E)/2,Pe=(Pe+z)/2;var Ee=(b+Se)/2,Te=(x+Pe)/2;Bt.Qe(a,y,ue,fe,b,x,Ee,Te,re,le),Bt.Qe(Ee,Te,Se,Pe,E,z,ee,oe,re,le)}return le},jv:function(a,y,x,b,E,z,ee,oe,re,le){if(Bt.Yb(a,y,E,z,le,x,b))return Bt.Yb(a,y,E,z,le,oe,re);var ue=(a+x)/2,fe=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Se=(ue+x)/2,Pe=(fe+b)/2;return Bt.jv(a,y,ue,fe,Se,Pe,ee,oe,re,le)||Bt.jv(Se,Pe,x,b,E,z,ee,oe,re,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,oe){if(Bt.Yb(a,y,E,z,ee,x,b))lo(oe,a,y,0,0),lo(oe,E,z,0,0);else{var re=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(re+x)/2,fe=(le+b)/2;Bt.iv(a,y,re,le,ue,fe,ee,oe),Bt.iv(ue,fe,x,b,E,z,ee,oe)}return oe},ep:function(a,y,x,b,E,z,ee,oe){if(Bt.Yb(a,y,E,z,ee,x,b))oe.length===0&&(oe.push(a),oe.push(y)),oe.push(E),oe.push(z);else{var re=(a+x)/2,le=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ue=(re+x)/2,fe=(le+b)/2;Bt.ep(a,y,re,le,ue,fe,ee,oe),Bt.ep(ue,fe,x,b,E,z,ee,oe)}return oe},Eo:function(a,y,x,b,E,z,ee,oe,re,le,ue,fe,Se,Pe){if(Bt.Yb(a,y,ee,oe,Se,x,b)&&Bt.Yb(a,y,ee,oe,Se,E,z))return!Bt.Rl(a,y,ee,oe,re,le,ue,fe)||(Se=(a-ee)*(le-fe)-(y-oe)*(re-ue),Se===0)?!1:(Pe.h(((a*oe-y*ee)*(re-ue)-(a-ee)*(re*fe-le*ue))/Se,((a*oe-y*ee)*(le-fe)-(y-oe)*(re*fe-le*ue))/Se),!0);var Ee=(a+x)/2,Te=(y+b)/2,_e=(x+E)/2,Ge=(b+z)/2;E=(E+ee)/2,z=(z+oe)/2,b=(Ee+_e)/2,x=(Te+Ge)/2,_e=(_e+E)/2,Ge=(Ge+z)/2;var st=(b+_e)/2,ut=(x+Ge)/2,pt=1/0,Nt=!1,Qt=0,ri=0;return Bt.Eo(a,y,Ee,Te,b,x,st,ut,re,le,ue,fe,Se,Pe)&&(a=(Pe.x-re)*(Pe.x-re)+(Pe.y-le)*(Pe.y-le),a<pt&&(pt=a,Nt=!0,Qt=Pe.x,ri=Pe.y)),Bt.Eo(st,ut,_e,Ge,E,z,ee,oe,re,le,ue,fe,Se,Pe)&&(Pe.x-re)*(Pe.x-re)+(Pe.y-le)*(Pe.y-le)<pt&&(Nt=!0,Qt=Pe.x,ri=Pe.y),Nt&&(Pe.x=Qt,Pe.y=ri),Nt},Fo:function(a,y,x,b,E,z,ee,oe,re,le,ue,fe,Se){var Pe=0;if(Bt.Yb(a,y,ee,oe,Se,x,b)&&Bt.Yb(a,y,ee,oe,Se,E,z)){if(Se=(a-ee)*(le-fe)-(y-oe)*(re-ue),Se===0)return Pe;var Ee=((a*oe-y*ee)*(re-ue)-(a-ee)*(re*fe-le*ue))/Se,Te=((a*oe-y*ee)*(le-fe)-(y-oe)*(re*fe-le*ue))/Se;if(Ee>=ue)return Pe;if((re>ue?re-ue:ue-re)<(le>fe?le-fe:fe-le)){if(y<oe?(re=y,a=oe):(re=oe,a=y),Te<re||Te>a)return Pe}else if(a<ee?(re=a,a=ee):re=ee,Ee<re||Ee>a)return Pe;0<Se?Pe++:0>Se&&Pe--}else{Ee=(a+x)/2,Te=(y+b)/2;var _e=(x+E)/2,Ge=(b+z)/2;E=(E+ee)/2,z=(z+oe)/2,b=(Ee+_e)/2,x=(Te+Ge)/2,_e=(_e+E)/2,Ge=(Ge+z)/2;var st=(b+_e)/2,ut=(x+Ge)/2;Pe+=Bt.Fo(a,y,Ee,Te,b,x,st,ut,re,le,ue,fe,Se),Pe+=Bt.Fo(st,ut,_e,Ge,E,z,ee,oe,re,le,ue,fe,Se)}return Pe},qh:function(a,y,x,b,E,z,ee){return Bt.$(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)):Bt.$(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,oe,re){return Bt.B(a,x)&&Bt.B(y,b)?(re.h(a,y),!1):Bt.$(E,ee)?Bt.$(a,x)?(Bt.qh(a,y,x,b,E,z,re),!1):Bt.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,re):(oe=(oe-z)/(ee-E),Bt.$(a,x)?(x=oe*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(re.h(a,E),!1):x>y?(re.h(a,y),!1):(re.h(a,x),!0)):(ee=(b-y)/(x-a),Bt.$(oe,ee)?(Bt.qh(a,y,x,b,E,z,re),!1):(E=(ee*a-oe*E+z-y)/(ee-oe),Bt.$(ee,0)?(a<x?(b=a,a=x):b=x,E<b?(re.h(b,y),!1):E>a?(re.h(a,y),!1):(re.h(E,y),!0)):Bt.qh(a,y,x,b,E,ee*(E-a)+y,re))))},MA:function(a,y,x,b,E){return Bt.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,oe,re,le){function ue(_e,Ge){var st=(_e-a)*(_e-a)+(Ge-y)*(Ge-y);st<fe&&(fe=st,re.h(_e,Ge))}var fe=1/0;ue(re.x,re.y);var Se=0,Pe=0,Ee=0,Te=0;if(E<ee?(Se=E,Pe=ee):(Se=ee,Pe=E),z<oe?(Ee=E,Te=ee):(Ee=ee,Te=E),Se=(Pe-Se)/2+le,le=(Te-Ee)/2+le,E=(E+ee)/2,z=(z+oe)/2,Se===0||le===0)return re;if(.5>(x>a?x-a:a-x)){if(Se=1-(x-E)*(x-E)/(Se*Se),0>Se)return re;Se=Math.sqrt(Se),b=-le*Se+z,ue(x,le*Se+z),ue(x,b)}else{if(x=(b-y)/(x-a),b=1/(Se*Se)+x*x/(le*le),oe=2*x*(y-x*a)/(le*le)-2*x*z/(le*le)-2*E/(Se*Se),Se=oe*oe-4*b*(2*x*a*z/(le*le)-2*y*z/(le*le)+z*z/(le*le)+E*E/(Se*Se)-1+(y-x*a)*(y-x*a)/(le*le)),0>Se)return re;Se=Math.sqrt(Se),le=(-oe+Se)/(2*b),ue(le,x*le-x*a+y),Se=(-oe-Se)/(2*b),ue(Se,x*Se-x*a+y)}return re},Ff:function(a,y,x,b,E,z,ee,oe,re){var le=1e21,ue=a,fe=y;if(Bt.Ve(a,y,a,b,E,z,ee,oe,re)){var Se=(re.x-E)*(re.x-E)+(re.y-z)*(re.y-z);Se<le&&(le=Se,ue=re.x,fe=re.y)}return Bt.Ve(x,y,x,b,E,z,ee,oe,re)&&(Se=(re.x-E)*(re.x-E)+(re.y-z)*(re.y-z),Se<le&&(le=Se,ue=re.x,fe=re.y)),Bt.Ve(a,y,x,y,E,z,ee,oe,re)&&(y=(re.x-E)*(re.x-E)+(re.y-z)*(re.y-z),y<le&&(le=y,ue=re.x,fe=re.y)),Bt.Ve(a,b,x,b,E,z,ee,oe,re)&&(a=(re.x-E)*(re.x-E)+(re.y-z)*(re.y-z),a<le&&(le=a,ue=re.x,fe=re.y)),re.h(ue,fe),1e21>le},us:function(a,y,x){return Bt.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,oe){var re=a+x,le=y+b;return E===ee?(z<oe?(ee=z,z=oe):ee=oe,a<=E&&E<=re&&ee<=le&&z>=y):z===oe?(E<ee?(oe=E,E=ee):oe=ee,y<=z&&z<=le&&oe<=re&&E>=a):!!(Ko(a,y,x,b,E,z)||Ko(a,y,x,b,ee,oe)||Bt.Rl(a,y,re,y,E,z,ee,oe)||Bt.Rl(re,y,re,le,E,z,ee,oe)||Bt.Rl(re,le,a,le,E,z,ee,oe)||Bt.Rl(a,le,a,y,E,z,ee,oe))},Rl:function(a,y,x,b,E,z,ee,oe){return a===x&&y===b&&E===ee&&z===oe?a===E&&y===z:0>=Bt.Fl(a,y,x,b,E,z)*Bt.Fl(a,y,x,b,ee,oe)&&0>=Bt.Fl(E,z,ee,oe,a,y)*Bt.Fl(E,z,ee,oe,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 oe=b>E?-1:1;z=[];var re=ee/2,le=b;if(b=Math.min(2*ee,Math.abs(E-b)),1e-5>b)return re=le+oe*Math.min(b,re),oe=a+x*Math.cos(le),le=y+x*Math.sin(le),a+=x*Math.cos(re),y+=x*Math.sin(re),x=(oe+a)/2,re=(le+y)/2,z.push([oe,le,x,re,x,re,a,y]),z;for(;1e-5<b;)E=le+oe*Math.min(b,re),z.push(Bt.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),oe=a*Math.sin(z),re=-oe,le=ee*ee+re*re,ue=le+ee*ee+re*oe;return le=4/3*(Math.sqrt(2*le*ue)-ue)/(ee*oe-re*ee),oe=ee-le*re,ee=re+le*ee,re=-ee,le=z+y,z=Math.cos(le),le=Math.sin(le),[b+a*Math.cos(y),E+a*Math.sin(y),b+oe*z-ee*le,E+oe*le+ee*z,b+oe*z-re*le,E+oe*le+re*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 oe=x;return x+E-a<E/2&&(oe=x+E),a=b,b+z-y<z/2&&(a=b+z),ee.h(oe,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,oe=0;else ee=0,oe=1;var re=ee===0?a:y,le=ee===0?x:b;return(ee===0?E:z)&&(le=-le),ee=oe,x=ee===0?x:b,(ee===0?E:z)&&(x=-x),Bt.az(re,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,oe=-z+ee,re=-z+Math.sqrt(a*a+ee*ee);y=oe;for(var le=0;9999999999>le&&(y=.5*(oe+re),!(y===oe||y===re));++le){var ue=a/(y+E),fe=ee/(y+z);if(ue=ue*ue+fe*fe-1,0<ue)oe=y;else if(0>ue)re=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 wi,um:new wi,Mf:new wi,Nf:0,vm:100};Bt.za=Bt.AA;function ni(a){ro(this),this.l=2,a===void 0&&(a=ni.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===ni.o?this.ee=new Ln:(ni.V===null&&(ni.V=new Ln().freeze()),this.ee=ni.V),this.aq=this.ee.Ja,this.Ip=new vn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=_r,this.gg=Ds,this.Rk=this.Sk=NaN,this.Uf=Yn}ni.prototype.copy=function(){var a=new ni;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===ni.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},ni.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},ni.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==ni.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},ni.prototype.ka=function(){if(Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==ni.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},ni.prototype.Xa=function(a){if(!(a instanceof ni))return!1;if(this.type!==a.type)return this.type===ni.j&&a.type===ni.o?wd(this,a):a.type===ni.j&&this.type===ni.o?wd(a,this):!1;if(this.type===ni.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 Bt.B(this.startX,a.startX)&&Bt.B(this.startY,a.startY)&&Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)};function wd(a,y){return a.type!==ni.j||y.type!==ni.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Bt.B(a.startX,y.startX)&&Bt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===yi&&Bt.B(a.endX,y.endX)&&Bt.B(a.endY,y.endY))))}ni.ia=function(a){return a.toString()},ni.prototype.qb=function(a){a.classType===ni&&(this.type=a)},ni.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ni.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 ni.u:var y=new vn(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 ni.F:if(y=new vn(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 ni.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()}},ni.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},ni.parse=function(a,y){function x(){return Te>=pt-1?!0:le[Te+1].match(Nt)!==null}function b(){return Te++,le[Te]}function E(uo){var to=parseFloat(b()),gr=parseFloat(b());_e===_e.toLowerCase()&&(to=ut.x+to,gr=ut.y+gr),uo.h(to,gr)}function z(){return E(ut),ut}function ee(){return E(st),st}function oe(){var uo=Ge.toLowerCase();return uo!=="c"&&uo!=="s"&&uo!=="q"&&uo!=="t"?ut:new Ke(2*ut.x-st.x,2*ut.y-st.y)}y===void 0&&(y=!1);var re=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(re,"$1 $2"),a=a.replace(re,"$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){re=en();for(var fe="",Se=!1,Pe=0;Pe<ue.length;Pe++){var Ee=ue[Pe];Ee!=="."||Se?Ee==="."?(re.push(fe),fe="."):fe+=Ee:(Se=!0,fe+=Ee)}for(re.push(fe),le.splice(a,1),ue=0;ue<re.length;ue++)le.splice(a+ue,0,re[ue]);a+=re.length-1,xn(re)}}var Te=-1,_e="",Ge="";re=new Ke(0,0);var st=new Ke(0,0),ut=new Ke(0,0),pt=le.length;a=k1(null),Se=fe=ue=!1,Pe=!0,Ee=null;for(var Nt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Te>=pt-1);)if(Ge=_e,_e=b(),_e!=="")switch(_e.toUpperCase()){case"X":Pe=!0,fe=ue=!1;break;case"M":for(Ee=z(),a.mc===null||Pe===!0?(vg(a,Ee.x,Ee.y,ue,!fe,Se),Pe=!1):a.moveTo(Ee.x,Ee.y),re.assign(ut);!x();)Ee=z(),a.lineTo(Ee.x,Ee.y);break;case"L":for(;!x();)Ee=z(),a.lineTo(Ee.x,Ee.y);break;case"H":for(;!x();)ut=new Ke((_e===_e.toLowerCase()?ut.x:0)+parseFloat(b()),ut.y),a.lineTo(ut.x,ut.y);break;case"V":for(;!x();)ut=new Ke(ut.x,(_e===_e.toLowerCase()?ut.y:0)+parseFloat(b())),a.lineTo(ut.x,ut.y);break;case"C":for(;!x();){Ee=new Ke,E(Ee);var Qt=ee(),ri=z();Dd(a,Ee.x,Ee.y,Qt.x,Qt.y,ri.x,ri.y)}break;case"S":for(;!x();)Ee=oe(),Qt=ee(),ri=z(),Dd(a,Ee.x,Ee.y,Qt.x,Qt.y,ri.x,ri.y);break;case"Q":for(;!x();)Ee=ee(),Qt=z(),Wm(a,Ee.x,Ee.y,Qt.x,Qt.y);break;case"T":for(;!x();)st=Ee=oe(),Qt=z(),Wm(a,Ee.x,Ee.y,Qt.x,Qt.y);break;case"B":for(;!x();){Ee=parseFloat(b()),Qt=parseFloat(b()),ri=parseFloat(b());var Si=parseFloat(b()),mi=parseFloat(b()),qn=mi,In=!1;x()||(qn=parseFloat(b()),x()||(In=parseFloat(b())!==0)),_e===_e.toLowerCase()&&(ri+=ut.x,Si+=ut.y),a.arcTo(Ee,Qt,ri,Si,mi,qn,In)}break;case"A":for(;!x();)Ee=Math.abs(parseFloat(b())),Qt=Math.abs(parseFloat(b())),ri=parseFloat(b()),mi=Si=!1,In=qn=0,qn=b(),qn.length===1?(Si=!!parseFloat(qn),mi=!!parseFloat(b()),qn=parseFloat(b())):qn.length===2?(Si=!!parseFloat(qn[0]),mi=!!parseFloat(qn[1]),qn=parseFloat(b())):(Si=!!parseFloat(qn[0]),mi=!!parseFloat(qn[1]),qn=parseFloat(qn.slice(2))),In=parseFloat(b()),_e===_e.toLowerCase()&&(qn=ut.x+qn,In=ut.y+In),ut.h(qn,In),Px(a,Ee,Qt,ri,Si,mi,qn,In);break;case"Z":wx(a),ut.assign(re);break;case"F":for(Ee="",Qt=1;le[Te+Qt];)if(le[Te+Qt]==="0")Se=!0,Qt++;else if(le[Te+Qt].match(/[Uu]/)!==null)Qt++;else if(le[Te+Qt].match(Nt)===null)Qt++;else{Ee=le[Te+Qt];break}Ee.match(/[Mm]/)?ue=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Ee="",Qt=1;le[Te+Qt];)if(le[Te+Qt].match(/[Ff]/)!==null)Qt++;else if(le[Te+Qt].match(Nt)===null)Qt++;else{Ee=le[Te+Qt];break}Ee.match(/[Mm]/)?fe=!0:a.mc.isShadowed=!1}if(re=a.os,Gm=a,y)for(y=re.figures.iterator;y.next();)y.value.isFilled=!0;return re},ni.Ha=function(a,y){for(var x=a.length,b=Ke.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}Ke.free(b)},ni.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===ni.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},ni.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===ni.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),$d(this,a,!1),lo(a,0,0,0,0),a.freeze()},ni.prototype.ix=function(){var a=new vn;return $d(this,a,!0),a};function $d(a,y,x){switch(a.type){case ni.j:case ni.u:case ni.F:x?y.h(a.od,a.pd,0,0):lo(y,a.od,a.pd,0,0),lo(y,a.Dc,a.Ec,0,0);break;case ni.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):lo(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,oe=ee.length,re=z.startX,le=z.startY,ue=0;ue<oe;ue++){var fe=ee[ue];switch(fe.type){case yi:case Fa:re=fe.endX,le=fe.endY,lo(y,re,le,0,0);break;case cr:Bt.Dl(re,le,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,y),re=fe.endX,le=fe.endY;break;case Cr:Bt.iv(re,le,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,y),re=fe.endX,le=fe.endY;break;case Br:case Sa:var Se=fe.type===Br?tl(fe,z):zs(fe,z,re,le),Pe=Se.length;if(Pe===0){re=fe.type===Br?fe.centerX:fe.endX,le=fe.type===Br?fe.centerY:fe.endY,lo(y,re,le,0,0);break}fe=null;for(var Ee=0;Ee<Pe;Ee++)fe=Se[Ee],Bt.Dl(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.5,y);fe!==null&&(re=fe[6],le=fe[7]);break;default:at("Unknown Segment type: "+fe.type)}}}break;default:at("Unknown Geometry type: "+a.type)}}ni.prototype.normalize=function(){this._isFrozen&&ln(this);var a=this.ix();return this.offset(-a.x,-a.y),new Ke(-a.x,-a.y)},ni.prototype.offset=function(a,y){return this._isFrozen&&ln(this),this.transform(1,0,0,1,a,y),this},ni.prototype.scale=function(a,y){return this._isFrozen&&ln(this),this.transform(a,0,0,y,0,0),this},ni.prototype.rotate=function(a,y,x){this._isFrozen&&ln(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Mo.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Mo.free(b),this},be=ni.prototype,be.transform=function(a,y,x,b,E,z){switch(this.type){case ni.j:case ni.u:case ni.F:var ee=this.od,oe=this.pd;this.od=ee*a+oe*x+E,this.pd=ee*y+oe*b+z,ee=this.Dc,oe=this.Ec,this.Dc=ee*a+oe*x+E,this.Ec=ee*y+oe*b+z;break;case ni.o:for(var re=this.figures.s,le=re.length,ue=0;ue<le;ue++){var fe=re[ue];ee=fe.startX,oe=fe.startY,fe.startX=ee*a+oe*x+E,fe.startY=ee*y+oe*b+z,fe=fe.segments.s;for(var Se=fe.length,Pe=0;Pe<Se;Pe++){var Ee=fe[Pe];switch(Ee.type){case yi:case Fa:ee=Ee.endX,oe=Ee.endY,Ee.endX=ee*a+oe*x+E,Ee.endY=ee*y+oe*b+z;break;case cr:ee=Ee.point1X,oe=Ee.point1Y,Ee.point1X=ee*a+oe*x+E,Ee.point1Y=ee*y+oe*b+z,ee=Ee.point2X,oe=Ee.point2Y,Ee.point2X=ee*a+oe*x+E,Ee.point2Y=ee*y+oe*b+z,ee=Ee.endX,oe=Ee.endY,Ee.endX=ee*a+oe*x+E,Ee.endY=ee*y+oe*b+z;break;case Cr:ee=Ee.point1X,oe=Ee.point1Y,Ee.point1X=ee*a+oe*x+E,Ee.point1Y=ee*y+oe*b+z,ee=Ee.endX,oe=Ee.endY,Ee.endX=ee*a+oe*x+E,Ee.endY=ee*y+oe*b+z;break;case Br:ee=Ee.centerX,oe=Ee.centerY,Ee.centerX=ee*a+oe*x+E,Ee.centerY=ee*y+oe*b+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ee.startAngle+=ee),0>a&&(Ee.startAngle=180-Ee.startAngle,Ee.sweepAngle=-Ee.sweepAngle),0>b&&(Ee.startAngle=-Ee.startAngle,Ee.sweepAngle=-Ee.sweepAngle),Ee.radiusX*=Math.sqrt(a*a+x*x),Ee.radiusY!==void 0&&(Ee.radiusY*=Math.sqrt(y*y+b*b));break;case Sa:if(ee=Ee.endX,oe=Ee.endY,Ee.endX=ee*a+oe*x+E,Ee.endY=ee*y+oe*b+z,Ee.radiusX===0||Ee.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Ee.xAxisRotation+=ee),0>a&&(Ee.xAxisRotation=180-Ee.xAxisRotation,Ee.isClockwiseArc=!Ee.isClockwiseArc),0>b&&(Ee.xAxisRotation=-Ee.xAxisRotation,Ee.isClockwiseArc=!Ee.isClockwiseArc),Ee.radiusX*=Math.sqrt(a*a+x*x),Ee.radiusY*=Math.sqrt(y*y+b*b);break;default:at("Unknown Segment type: "+Ee.type)}}}}return this._isInvalidBounds=!0,this},be.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 ni.j:return Bt.Yb(x,b,E,z,y,a.x,a.y);case ni.u:var ee=vn.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),vn.free(ee),a;case ni.F:ee=Math.min(x,E)-y;var oe=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),oe=a.y-(oe+y),1>=ee*ee/(x*x)+oe*oe/(y*y));case ni.o:return Cu(this,a,y,!0,!1);default:return!1}};function Cu(a,y,x,b,E){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,oe=0,re,le,ue,fe,Se=a.figures.s,Pe=Se.length,Ee=0;Ee<Pe;Ee++){var Te=Se[Ee],_e=!Te.isEvenOdd;if(Te.isFilled){if(b&&Te.ca(z,y,x))return!0;var Ge=Te.segments;re=Te.startX,le=Te.startY;for(var st=re,ut=le,pt=Ge.s,Nt=0;Nt<=Ge.length;Nt++){var Qt=void 0;if(Nt!==Ge.length){Qt=pt[Nt];var ri=Qt.type;a=Qt.endX,fe=Qt.endY}else ri=yi,a=st,fe=ut;switch(ri){case Fa:if(st=bu(z,y,ee,y,re,le,st,ut),isNaN(st))return!0;oe+=st,st=a,ut=fe;break;case yi:if(re=bu(z,y,ee,y,re,le,a,fe),isNaN(re))return!0;oe+=re;break;case cr:ue=Bt.Fo(re,le,Qt.point1X,Qt.point1Y,Qt.point2X,Qt.point2Y,a,fe,ee,y,z,y,.5),oe+=ue;break;case Cr:ue=Bt.Fo(re,le,(re+2*Qt.point1X)/3,(le+2*Qt.point1Y)/3,(2*Qt.point1X+a)/3,(2*Qt.point1Y+fe)/3,a,fe,ee,y,z,y,.5),oe+=ue;break;case Br:case Sa:ri=Qt.type===Br?tl(Qt,Te):zs(Qt,Te,re,le);var Si=ri.length;if(Si===0){if(re=bu(z,y,ee,y,re,le,Qt.type===Br?Qt.centerX:Qt.endX,Qt.type===Br?Qt.centerY:Qt.endY),isNaN(re))return!0;oe+=re;break}Qt=null;for(var mi=0;mi<Si;mi++){if(Qt=ri[mi],mi===0){if(ue=bu(z,y,ee,y,re,le,Qt[0],Qt[1]),isNaN(ue))return!0;oe+=ue}ue=Bt.Fo(Qt[0],Qt[1],Qt[2],Qt[3],Qt[4],Qt[5],Qt[6],Qt[7],ee,y,z,y,.5),oe+=ue}Qt!==null&&(a=Qt[6],fe=Qt[7]);break;default:at("Unknown Segment type: "+Qt.type)}re=a,le=fe}if(_e){if(oe!==0)return!0}else if(oe%2!==0)return!0;oe=0}else if(Te.ca(z,y,E?x:x+2))return!0}return!1}function bu(a,y,x,b,E,z,ee,oe){if(Bt.Yb(E,z,ee,oe,.05,a,y))return NaN;var re=(a-x)*(z-oe);if(re===0)return 0;var le=((a*b-y*x)*(E-ee)-(a-x)*(E*oe-z*ee))/re;if(y=(a*b-y*x)*(z-oe)/re,le>=a)return 0;if((E>ee?E-ee:ee-E)<(z>oe?z-oe:oe-z)){if(z<oe){if(y<z||y>oe)return 0}else if(y<oe||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<re?1:-1}function zu(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}be.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Ke),this.type===ni.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,oe=0;oe<E;oe++){var re=b[oe],le=re.length;for(a=0;a<le;a++){var ue=re[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,x=x[oe],oe=x[2*a],E=x[2*a+1],y.h(oe+(x[2*a+2]-oe)*b,E+(x[2*a+3]-E)*b),y;ee+=ue}}return y},be.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===ni.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 oe=x[ee],re=oe.length;for(a=0;a<re;a++){var le=oe[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},be.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===ni.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,oe=0;oe<E;oe++){var re=b[oe],le=re.length;for(a=0;a<le;a++){var ue=re[a];if(ee+ue>=z)return b=z-ee,b=ue===0?0:b/ue,ue=x[oe],x=ue[2*a],oe=ue[2*a+1],E=ue[2*a+2],a=ue[2*a+3],y[0]=x+(E-x)*b,y[1]=oe+(a-oe)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-oe)?0:1>Math.abs(E-x)?0<=a-oe?90:270:1>Math.abs(a-oe)?0<=E-x?0:180:180*Math.atan2(a-oe,E-x)/Math.PI,y;ee+=ue}}return y},be.xx=function(a){if(this.type===ni.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 oe=Ke.alloc();return Bt.qh(y,x,b,E,z,a,oe),a=oe.x,z=oe.y,Ke.free(oe),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===ni.u){ee=this.startX,oe=this.startY;var re=this.endX;if(E=this.endY,ee!==re||oe!==E){y=re-ee,x=E-oe,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,ee),re),a=Math.min(Math.max(a,oe),E),ee=Math.abs(b-ee),re=Math.abs(b-re),oe=Math.abs(a-oe),E=Math.abs(a-E);var le=Math.min(ee,re,oe,E);if(le===oe)return b/z;if(le===re)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=Ke.alloc(),E=1/0,oe=ee=0,re=y.length;for(var ue=le=0,fe=0;fe<re;fe++)for(var Se=y[fe],Pe=x[fe],Ee=Se.length,Te=0;Te<Ee;Te+=2){var _e=Se[Te],Ge=Se[Te+1];if(Te!==0){Bt.qh(le,ue,_e,Ge,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=oe,ee+=Math.sqrt((b.x-le)*(b.x-le)+(b.y-ue)*(b.y-ue))),oe+=Pe[(Te-2)/2]}le=_e,ue=Ge}return Ke.free(b),a=ee/z,0>a?0:1<a?1:a}return 0};function nd(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===ni.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===ni.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===ni.F){var z=new Za;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new tr(Br);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=tl(ee,z),E=a.length,E===0)b.push(ee.centerX),b.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var oe=0;oe<E;oe++){var re=a[oe];Bt.Qe(ee,z,re[2],re[3],re[4],re[5],re[6],re[7],.5,b),ee=re[6],z=re[7]}}y.push(b),x.push(mh(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,oe=ee,re=z;for(var le=E.segments.s,ue=le.length,fe=0;fe<ue;fe++){var Se=le[fe];switch(Se.type){case Fa:4<=b.length&&(y.push(b),x.push(mh(b))),b=[],b.push(Se.endX),b.push(Se.endY),ee=Se.endX,z=Se.endY,oe=ee,re=z;break;case yi:b.push(Se.endX),b.push(Se.endY),ee=Se.endX,z=Se.endY;break;case cr:Bt.Qe(ee,z,Se.point1X,Se.point1Y,Se.point2X,Se.point2Y,Se.endX,Se.endY,.5,b),ee=Se.endX,z=Se.endY;break;case Cr:Bt.ep(ee,z,Se.point1X,Se.point1Y,Se.endX,Se.endY,.5,b),ee=Se.endX,z=Se.endY;break;case Br:var Pe=tl(Se,E),Ee=Pe.length;if(Ee===0){b.push(Se.centerX),b.push(Se.centerY),ee=Se.centerX,z=Se.centerY;break}for(var Te=0;Te<Ee;Te++){var _e=Pe[Te];Bt.Qe(ee,z,_e[2],_e[3],_e[4],_e[5],_e[6],_e[7],.5,b),ee=_e[6],z=_e[7]}break;case Sa:if(Pe=zs(Se,E,ee,z),Ee=Pe.length,Te=Se.endX,_e=Se.endY,Ee===0){b.push(Te),b.push(_e),ee=Te,z=_e;break}for(Te=0;Te<Ee;Te++)_e=Pe[Te],Bt.Qe(ee,z,_e[2],_e[3],_e[4],_e[5],_e[6],_e[7],.5,b),ee=_e[6],z=_e[7];break;default:at("Segment not of valid type: "+Se.type)}Se.isClosed&&(b.push(oe),b.push(re))}4<=b.length&&(y.push(b),x.push(mh(b)))}}}function mh(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var ee=a[z],oe=a[z+1];z!==0&&y.push(Math.sqrt(Pr(x,b,ee,oe))),x=ee,b=oe}return y}be.add=function(a){return this.ee.add(a),this},be.pm=function(a,y,x,b,E,z,ee,oe){return this._isFrozen&&ln(this),this.fg=new xi(a,y,E,z).freeze(),this.gg=new xi(x,b,ee,oe).freeze(),this},Re.Object.defineProperties(ni.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 nd(this),this.tk}},flattenedLengths:{get:function(){return nd(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===ni.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===ni.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&&ln(this,a),this.na=a,a===ni.o?this.ee=new Ln:(ni.V===null&&(ni.V=new Ln().freeze()),this.ee=ni.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&ln(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&ln(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&ln(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&ln(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&ln(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&ln(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&ln(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&ln(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),ni.prototype.setSpots=ni.prototype.pm,ni.prototype.add=ni.prototype.add,ni.prototype.getFractionForPoint=ni.prototype.xx,ni.prototype.getPointAndAngleAlongPath=ni.prototype.Qu,ni.prototype.getAngleAlongPath=ni.prototype.wx,ni.prototype.getPointAlongPath=ni.prototype.Pu,ni.prototype.containsPoint=ni.prototype.ca,ni.prototype.transform=ni.prototype.transform,ni.prototype.rotate=ni.prototype.rotate,ni.prototype.scale=ni.prototype.scale,ni.prototype.offset=ni.prototype.offset,ni.prototype.normalize=ni.prototype.normalize,ni.prototype.computeBoundsWithoutOrigin=ni.prototype.ix,ni.prototype.equalsApprox=ni.prototype.Xa,ni.className="Geometry",ni.j=new nn(ni,"Line",0),ni.u=new nn(ni,"Rectangle",1),ni.F=new nn(ni,"Ellipse",2),ni.o=new nn(ni,"Path",3),ni.V=null,ni.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",ni.className="Geometry",ni.stringify=ni.ia,ni.fillPath=ni.nb,ni.parse=ni.parse,ni.Line=ni.j,ni.Rectangle=ni.u,ni.Ellipse=ni.F,ni.Path=ni.o;function Za(a,y,x,b,E){ro(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 Ln,this.sr=this.pl.Ja,this.fw=null}Za.prototype.copy=function(){var a=new Za;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},be=Za.prototype,be.Xa=function(a){if(!(a instanceof Za&&Bt.B(this.startX,a.startX)&&Bt.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},be.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},be.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},be.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},be.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},be.add=function(a){return this.pl.add(a),this},be.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,ee=E,oe=this.segments.s,re=oe.length,le=0;le<re;le++){var ue=oe[le];switch(ue.type){case Fa:z=ue.endX,ee=ue.endY,b=ue.endX,E=ue.endY;break;case yi:if(Bt.Yb(b,E,ue.endX,ue.endY,x,a,y))return!0;b=ue.endX,E=ue.endY;break;case cr:if(Bt.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 Cr:if(Bt.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 Br:case Sa:var fe=ue.type===Br?tl(ue,this):zs(ue,this,b,E),Se=fe.length,Pe=ue.type===Br?ue.centerX:ue.endX,Ee=ue.type===Br?ue.centerY:ue.endY;if(Se===0){if(Bt.Yb(b,E,Pe,Ee,x,a,y))return!0;b=Pe,E=Ee;break}for(Pe=null,Ee=0;Ee<Se;Ee++)if(Pe=fe[Ee],Ee===0&&Bt.Yb(b,E,Pe[0],Pe[1],x,a,y)||Bt.cs(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4],Pe[5],Pe[6],Pe[7],.5,a,y,x))return!0;Pe!==null&&(b=Pe[6],E=Pe[7]);break;default:at("Unknown Segment type: "+ue.type)}if(ue.isClosed&&(b!==z||E!==ee)&&Bt.Yb(b,E,z,ee,x,a,y))return!0}return!1},Re.Object.defineProperties(Za.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&&ln(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&ln(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&ln(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&ln(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&ln(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&ln(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Za.prototype.add=Za.prototype.add,Za.prototype.equalsApprox=Za.prototype.Xa,Za.className="PathFigure";function tr(a,y,x,b,E,z,ee,oe){ro(this),a===void 0&&(a=yi),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===Sa?(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),oe&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===Br&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===Br&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}tr.prototype.copy=function(){var a=new tr;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},be=tr.prototype,be.Xa=function(a){if(!(a instanceof tr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Fa:case yi:return Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY);case cr:return Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)&&Bt.B(this.point1X,a.point1X)&&Bt.B(this.point1Y,a.point1Y)&&Bt.B(this.point2X,a.point2X)&&Bt.B(this.point2Y,a.point2Y);case Cr:return Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)&&Bt.B(this.point1X,a.point1X)&&Bt.B(this.point1Y,a.point1Y);case Br:return Bt.B(this.startAngle,a.startAngle)&&Bt.B(this.sweepAngle,a.sweepAngle)&&Bt.B(this.centerX,a.centerX)&&Bt.B(this.centerY,a.centerY)&&Bt.B(this.radiusX,a.radiusX)&&Bt.B(this.radiusY,a.radiusY);case Sa:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Bt.B(this.xAxisRotation,a.xAxisRotation)&&Bt.B(this.endX,a.endX)&&Bt.B(this.endY,a.endY)&&Bt.B(this.radiusX,a.radiusX)&&Bt.B(this.radiusY,a.radiusY);default:return!1}},be.qb=function(a){a.classType===tr&&(this.type=a)},be.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Fa:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case yi:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case cr: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 Cr: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 Br: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 Sa: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":"")},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.close=function(){return this.isClosed=!0,this};function tl(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=Bt.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var ee=Mo.alloc();ee.reset(),x<b?ee.scale(1,b/x):ee.scale(x/b,1),ni.Ha(z,ee),Mo.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 zs(a,y,x,b){function E(Te,_e,Ge,st){return(Te*st<_e*Ge?-1:1)*Math.acos((Te*Ge+_e*st)/(Math.sqrt(Te*Te+_e*_e)*Math.sqrt(Ge*Ge+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,oe=a.isLargeArc,re=a.isClockwiseArc,le=a.Dc,ue=a.Ec,fe=Math.cos(ee),Se=Math.sin(ee),Pe=fe*(x-le)/2+Se*(b-ue)/2;ee=-Se*(x-le)/2+fe*(b-ue)/2;var Ee=Pe*Pe/(y*y)+ee*ee/(z*z);return 1<Ee&&(y*=Math.sqrt(Ee),z*=Math.sqrt(Ee)),Ee=(oe===re?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*Pe*Pe)/(y*y*ee*ee+z*z*Pe*Pe)),isNaN(Ee)&&(Ee=0),oe=Ee*y*ee/z,Ee=Ee*-z*Pe/y,isNaN(oe)&&(oe=0),isNaN(Ee)&&(Ee=0),x=(x+le)/2+fe*oe-Se*Ee,b=(b+ue)/2+Se*oe+fe*Ee,ue=E(1,0,(Pe-oe)/y,(ee-Ee)/z),fe=(Pe-oe)/y,le=(ee-Ee)/z,Pe=(-Pe-oe)/y,oe=(-ee-Ee)/z,ee=E(fe,le,Pe,oe),Pe=(fe*Pe+le*oe)/(Math.sqrt(fe*fe+le*le)*Math.sqrt(Pe*Pe+oe*oe)),-1>=Pe?ee=Math.PI:1<=Pe&&(ee=0),!re&&0<ee&&(ee-=2*Math.PI),re&&0>ee&&(ee+=2*Math.PI),re=y>z?1:y/z,Pe=y>z?z/y:1,y=Bt.jx(0,0,y>z?y:z,ue,ue+ee,!0),z=Mo.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(re,Pe),ni.Ha(y,z),Mo.free(z),a.ae=y,a.ae}Re.Object.defineProperties(tr.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&&ln(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ln(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&ln(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ln(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ln(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&ln(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&ln(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&ln(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&ln(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Hn(a,">= zero",tr,"radiusX"),this._isFrozen&&ln(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Hn(a,">= zero",tr,"radiusY"),this._isFrozen&&ln(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&ln(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&&ln(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&&ln(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&&ln(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&&ln(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),tr.prototype.equalsApprox=tr.prototype.Xa;var Fa=new nn(tr,"Move",0),yi=new nn(tr,"Line",1),cr=new nn(tr,"Bezier",2),Cr=new nn(tr,"QuadraticBezier",3),Br=new nn(tr,"Arc",4),Sa=new nn(tr,"SvgArc",4);tr.className="PathSegment",tr.Move=Fa,tr.Line=yi,tr.Bezier=cr,tr.QuadraticBezier=Cr,tr.Arc=Br,tr.SvgArc=Sa;function hs(){this.H=null,this.xu=new Ke(0,0).freeze(),this.mt=new Ke(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}hs.prototype.copy=function(){var a=new hs;return this.clone(a)},hs.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},hs.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},hs.prototype.So=function(a,y){var x=this.diagram;return x===null||Tc(x,a,y),y},hs.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Tc(x,a,y),y.assign(x.Ps(y))),y},Re.Object.defineProperties(hs.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}}}),hs.prototype.getMultiTouchDocumentPoint=hs.prototype.Bz,hs.prototype.getMultiTouchViewPoint=hs.prototype.So,hs.className="InputEvent";function Eu(){this.H=null,this.xa="",this.ar=this.Lr=null}Eu.prototype.copy=function(){var a=new Eu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Eu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Re.Object.defineProperties(Eu.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}}}),Eu.className="DiagramEvent";function Gr(){this.Fm=Kr,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Gr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Gr.prototype.copy=function(){var a=new Gr;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=jt(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=jt(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=jt(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=jt(y)&&typeof y.J=="function"?y.J():y,a},Gr.prototype.qb=function(a){a.classType===Gr&&(this.change=a)},Gr.prototype.toString=function(){var a="";return a=this.change===Bs?a+"* ":this.change===Kr?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===Bs?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=An(this.object)),this.oldValue!==null&&(a+=" old: "+An(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+An(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Gr.prototype.I=function(a){return a?this.oldValue:this.newValue},Gr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Gr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Gr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Gr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Gr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Re.Object.defineProperties(Gr.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===Bs&&(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}}}),Gr.prototype.redo=Gr.prototype.redo,Gr.prototype.canRedo=Gr.prototype.canRedo,Gr.prototype.undo=Gr.prototype.undo,Gr.prototype.canUndo=Gr.prototype.canUndo,Gr.prototype.getParam=Gr.prototype.Dz,Gr.prototype.getValue=Gr.prototype.I,Gr.prototype.clear=Gr.prototype.clear;var Bs=new nn(Gr,"Transaction",-1),Kr=new nn(Gr,"Property",0),fa=new nn(Gr,"Insert",1),Ca=new nn(Gr,"Remove",2);Gr.className="ChangedEvent",Gr.Transaction=Bs,Gr.Property=Kr,Gr.Insert=fa,Gr.Remove=Ca;function ka(){this.o=new Ln().freeze(),this.xa="",this.j=!1}ka.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},ka.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()},ka.prototype.canUndo=function(){return this.isComplete},ka.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()}},ka.prototype.canRedo=function(){return this.isComplete},ka.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()}},ka.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new di,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Kr&&b.object){var E=y.get(b.object);E||(E=new di,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()}},Re.Object.defineProperties(ka.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}}}),ka.prototype.optimize=ka.prototype.ak,ka.prototype.redo=ka.prototype.redo,ka.prototype.canRedo=ka.prototype.canRedo,ka.prototype.undo=ka.prototype.undo,ka.prototype.canUndo=ka.prototype.canUndo,ka.prototype.clear=ka.prototype.clear,ka.className="Transaction";function Vr(){this.Pt=new Mn,this.Jd=!1,this.u=new Ln().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Ln().freeze(),this.hl=new Ln,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Vr.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},Vr.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},Vr.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},be=Vr.prototype,be.Xw=function(a){this.Pt.add(a)},be.Rx=function(a){this.Pt.remove(a)},be.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},be.eb=function(a){return a===void 0&&(a=""),su(this,!0,a)},be.Kf=function(){return su(this,!1,"")};function su(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&ii("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}be.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()}},Vr.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Vr.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){ii("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Vr.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Vr.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){ii("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Vr.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Gr;for(b.change=Bs,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Vr.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new ka);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||ii("Change not within a transaction: "+x.toString()))}},Vr.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},Re.Object.defineProperties(Vr.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}}}),Vr.prototype.handleChanged=Vr.prototype.Tu,Vr.prototype.redo=Vr.prototype.redo,Vr.prototype.undo=Vr.prototype.undo,Vr.prototype.canUndo=Vr.prototype.canUndo,Vr.prototype.discardHistoryAfterIndex=Vr.prototype.lx,Vr.prototype.rollbackTransaction=Vr.prototype.Kf,Vr.prototype.commitTransaction=Vr.prototype.eb,Vr.prototype.startTransaction=Vr.prototype.Ea,Vr.prototype.removeModel=Vr.prototype.Rx,Vr.prototype.addModel=Vr.prototype.Xw,Vr.prototype.clear=Vr.prototype.clear,Vr.className="UndoManager";function Wo(){ro(this),this.H=oh,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new hs,this.Zr=-1}Wo.prototype.toString=function(){return this.name!==""?this.name+" Tool":Pn(this.constructor)},Wo.prototype.updateAdornments=function(){},Wo.prototype.canStart=function(){return this.isEnabled},Wo.prototype.doStart=function(){},Wo.prototype.doActivate=function(){this.isActive=!0},Wo.prototype.doDeactivate=function(){this.isActive=!1},Wo.prototype.doStop=function(){},Wo.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Wo.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Wo.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Wo.prototype.doMouseMove=function(){},Wo.prototype.doMouseUp=function(){this.stopTool()},Wo.prototype.doMouseWheel=function(){},Wo.prototype.canStartMultiTouch=function(){return!0},Wo.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ke.allocAt(NaN,NaN)),b=y.So(1,Ke.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}Ke.free(x),Ke.free(b)},Wo.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Ke.allocAt(NaN,NaN)),b=y.So(1,Ke.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 Ke((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 oe=a.zoomPoint;a.zoomPoint=E,ee.resetZoom(z),a.zoomPoint=oe}y.bubbles=!1}Ke.free(x),Ke.free(b)},Wo.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Wo.prototype.doKeyUp=function(){},Wo.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Wo.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Wo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Di?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||(Di?y.meta:y.control)||y.shift||a.clearSelection()}},Wo.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,vh(a,b,x),b.handled};function vh(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)}}}Wo.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 oe=z.mouseLeave;if(oe!==null&&(b===z||b!==null&&b.rg(z)||(oe(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}},Wo.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Wo.prototype.doCurrentObjectChanged=function(){},Wo.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===Qd&&!y.shift||E===id&&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===Qd&&y.shift||E===id&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var oe="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(oe,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(oe,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:oe="pixel";break;case 1:oe="line";break;case 2:oe="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(oe,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(oe,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},Wo.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Wo.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=fn(function(){x.doWaitAfter(b)},a)},Wo.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ye.clearTimeout(this.Zr),this.Zr=-1},Wo.prototype.doWaitAfter=function(){},Wo.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof ur);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Wo.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},Re.Object.defineProperties(Wo.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof $t&&(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}}}),Wo.prototype.startTransaction=Wo.prototype.Ea,Wo.className="Tool";function Rr(){Wo.call(this),this.name="ToolManager",this.hb=new Ln,this.ob=new Ln,this.Hb=new Ln,this.F=this.V=850,this.o=new ti(2,2).ja(),this.Ha=5e3,this.ia=id,this.u=Mc,this.Mp=this.j=null,this.zj=-1}Pt(Rr,Wo),Rr.prototype.initializeStandardTools=function(){},Rr.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof ur&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Rr.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Th&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===od){y.bubbles=!0;return}if(this.gestureBehavior===Th)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===id?this.mouseWheelBehavior=Qd:this.mouseWheelBehavior===Qd&&(this.mouseWheelBehavior=id)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Rr.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===od){y.bubbles=!0;return}if(this.gestureBehavior===Th)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}}rr(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function rr(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Rr.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof ur&&(y===a||y.rg(a))||this.hideToolTip()},Rr.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()))},Rr.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)},Rr.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 ur)||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()},Rr.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof ur){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 Bo&&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=fn(function(){E.hideToolTip()},a)}},Rr.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}},Rr.prototype.hideToolTip=function(){this.zj!==-1&&(Ye.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof ur?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Bo&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Rr.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()},Rr.prototype.doMouseWheel=function(){this.standardMouseWheel()},Rr.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Rr.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Rr.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},Rr.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},Rr.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)},Re.Object.defineProperties(Rr.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 ur?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}}}),Rr.prototype.replaceStandardTool=Rr.prototype.gb;var id=new nn(Rr,"WheelScroll",0),Qd=new nn(Rr,"WheelZoom",1),Zf=new nn(Rr,"WheelNone",2),Mc=new nn(Rr,"GestureZoom",3),Th=new nn(Rr,"GestureCancel",4),od=new nn(Rr,"GestureNone",5);Rr.className="ToolManager",Rr.WheelScroll=id,Rr.WheelZoom=Qd,Rr.WheelNone=Zf,Rr.GestureZoom=Mc,Rr.GestureCancel=Th,Rr.GestureNone=od;function aa(){Wo.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 Ke(NaN,NaN),this.Fr=new Ke,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Mn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var eh;Pt(aa,Wo),aa.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},aa.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},aa.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,(Di?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},aa.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),Kt=null,this.isActive=!0,this.tl.set(a.position),lf(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&&Ws(a),$f(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Kt=this,Sn=this.diagram,this.doSimulatedDragOut()))};function lf(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof ei?(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 Fi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}aa.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},aa.prototype.Pd=function(a){return a===void 0?new ld(Do):this.isGridSnapEnabled?new ld(new Ke(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new ld(a.copy())},aa.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),rd(this),tc(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<eh.count){for(var y=eh,x=y.length,b=0;b<x;b++){var E=y.M(b);Oh(E),Lu(E),rd(E),E.diagram.ug()}y.clear()}Oh(this),this.tl.h(NaN,NaN),Sn!==null&&(Sn.currentCursor=""),Kt=Sn=null,Lu(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),_d(a,!0)},aa.prototype.stopTransaction=function(){var a=this.diagram,y=Wo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function rd(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,uf(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Vf(){var a=Kt;Lu(a),Ih(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}aa.prototype.doCancel=function(){Lu(this),Ih(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},aa.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},aa.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function th(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")):Ih(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 di,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 ei&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,lf(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Od(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function Lu(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 ei&&(x.value.point=new Ke(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Oh(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 Hu(a,y,x){var b=a.diagram,E=a.startPoint,z=Ke.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Ke.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Ws(b),b.hk())}aa.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Sh(b,a,y,this.dragOptions,x)};function Ih(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 ei&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Od(b,-E.x,-E.y)}y.bd()}}function Fc(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),El(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=uf(a,E,b),!a.isActive&&Kt===null)return;var oe=b!==null?b.part:null;if(oe===null||x.handlesDragDropForTopLevelParts&&oe.isTopLevel&&!(oe instanceof co)){var re=x.mouseDragOver;re!==null&&(re(E),ee=!0)}if(!a.isActive&&Kt===null||(a.doDragOver(y,b),!a.isActive&&Kt===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)}aa.prototype.findDragOverObject=function(a){var y=this;return Gu(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof ur||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},aa.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 uf(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 oe=a.Cg[ee],re=oe.mouseDragLeave;if(re!==null&&(re(y,oe,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Kt===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=hf(E);for(E=a.Cg.length,x=0;x<E&&(ee=a.Cg[x],oe=ee.mouseDragEnter,oe===null||(oe(y,ee,z),b=!0,!y.handled));x++);return b}function hf(a){var y=a.panel;return y!==null?y:a instanceof Wi&&!(a instanceof co)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Uf(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=Ke.alloc();var z=1/0,ee=null;for(E=E.iterator;E.next();){var oe=E.value;if(oe.part!==null){var re=oe.ga(Uo,a);re=y.Bf(re),re<z&&(ee=oe,z=re)}}return Ke.free(a),ee}function El(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=Uf(a,x.i(0),!1),z!==null&&(ee=z.part));var oe=null,re=null;x.toNode===null&&(oe=Uf(a,x.i(x.pointsCount-1),!0),oe!==null&&(re=oe.part)),E.isValidLink(ee,z,re,oe)?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=re,oe!==null&&(x.toPortId=oe.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):ho(E,ee,z,re,oe):ho(E,null,null,null,null)}}}}aa.prototype.doDragOver=function(){};function Rh(a,y){var x=a.diagram;a.dragsLink&&El(a,!0),rd(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;Zg(a,E,z),z=hf(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Kt!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof li&&z.linksConnected.each(function(oe){oe.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Kt!==null){for(a=vn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof li&&it(x,b,a);vn.free(a)}}}function Zg(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof co||(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 ei},!0,function(E){return E instanceof ei},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}aa.prototype.doDropOnto=function(){},aa.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()?(th(this,!1),$f(a,this.copiedParts),Hu(this,this.copiedParts,!1),tc(a,this.copiedParts)):this.mayMove()?(Lu(this),Hu(this,this.draggedParts,!0)):this.mayDragOut()?(th(this,!1),Hu(this,this.copiedParts,!1)):Lu(this),Fc(this,a.lastInput.documentPoint))}},aa.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?(Lu(this),th(this,!0),$f(a,this.copiedParts),Hu(this,this.copiedParts,!1),tc(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,Lu(this),this.mayMove()&&(Hu(this,this.draggedParts,!0),Fc(this,a.lastInput.documentPoint))),this.Ym=!0,Rh(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&<(this),a.Ya(),tc(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},aa.prototype.simulatedMouseMove=function(a,y,x){if(Kt===null)return!1;var b=Kt.diagram;x instanceof $t||(x=null);var E=Sn;return x!==E&&(E!==null&&E!==b&&(E.ug(),Kt.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Sn=x,x!==null&&x!==b&&(Vf(),E=x.toolManager.findTool("Dragging"),E!==null&&(eh.contains(E)||eh.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)},aa.prototype.simulatedMouseUp=function(a,y,x){if(Kt===null)return!1;var b=Sn,E=Kt.diagram;if(x===null)return Kt.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Kt.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Sn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Vf(),eh.contains(b)||eh.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 Ke),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=Kt,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function lt(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof li&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}aa.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Di?!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())},aa.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())},aa.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())},aa.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},aa.prototype.Az=function(){return Kt},aa.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Kt;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},aa.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),ml(a),a.animationManager.Cc(),a=Kt,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},aa.prototype.doSimulatedDragLeave=function(){var a=Kt;a!==null&&a.doSimulatedDragOut(),this.doCancel()},aa.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Kt;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;Ht(this,y.draggedParts.Lf(),!1,a.firstInput),Hu(this,this.copiedParts,!1),Fc(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},aa.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Kt;if(y!==null){var x=y.diagram;if(y.Ym=!0,Lu(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),Ht(this,y.draggedParts.Lf(),!0,a.lastInput),Hu(this,this.copiedParts,!1);var b=new Mn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),Rh(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 Ht(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=vn.alloc();E=b=1/0;for(var ee=-1/0,oe=-1/0,re=y.iterator;re.next();){var le=re.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>oe&&(oe=ue))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,ee-b,oe-E),b=z.x+z.width/2,E=z.y+z.height/2,vn.free(z),z=a.Fr,ee=new di,oe=Ke.alloc(),re=y.iterator;re.next();)le=re.value,le instanceof ei&&le.canCopy()&&(ue=x.I(le),ue!==null&&(ue.points=le.points,Od(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()&&(re=x.I(le),re!==null&&(le=le.location,oe.h(z.x-(b-le.x),z.y-(E-le.y)),re.location=oe,re.Va(),ee.add(re,a.Pd(oe))));Ke.free(oe),a.copiedParts=ee,lf(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Od(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}aa.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},aa.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Ke},Re.Object.defineProperties(aa.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}}}),aa.prototype.getDraggingSource=aa.prototype.Az;var Kt=null,Sn=null;aa.className="DraggingTool",eh=new Ln,pi("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Rr.prototype.doCancel=function(){Kt!==null&&Kt.doCancel(),Wo.prototype.doCancel.call(this)};function rn(){Wo.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new ei,y=new Eo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Eo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new li,y=new Eo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ir,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new li,y=new Eo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=ir,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 di,this.Of=this.gj=this.Pf=null}Pt(rn,Wo),rn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},rn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),ee=ti.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,b.desiredSize=ee,ti.free(ee),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Uo,z=Ke.alloc(),x.location=y.ga(Uo,z),Ke.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},rn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=ir,y.fromSpot=Jr,y.toSpot=Jr),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},rn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},rn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof li){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)}},rn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof li))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof li)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},rn.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,oe=ee.part;if(oe instanceof li){var re=ee.ga(Uo,Ke.alloc()),le=x.x-re.x,ue=x.y-re.y;Ke.free(re),re=le*le+ue*ue,re<b&&(le=this.validPortsCache.I(ee),le!==null?le&&(y=ee,b=re):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,oe,ee)||!a&&this.isValidLink(oe,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,b=re):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof li&&(x.layer===null||x.layer.allowLink))?y:null},rn.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},rn.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},rn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},rn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof li))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof li))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},rn.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)},rn.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 Mn;return b.add(a),Vn(this,x,y,b)};function Vn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Vn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Vn(a,y.labeledLink,x,b))))}rn.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!==vf){if(b===op){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!Un(this,a,y,x,!0)}if(b===rp){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!Un(this,a,y,x,!0)}if(b===tp)return a===y?a=!0:(b=new Mn,b.add(y),a=jn(this,b,a,y,x)),!a;if(b===np)return!Un(this,a,y,x,!1);if(b===ip)return a===y?a=!0:(b=new Mn,b.add(y),a=oi(this,b,a,y,x)),!a}return!0};function Un(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&&Un(a,ee,x,b,E)))return!0}return!1}function jn(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&&jn(a,y,ee,b,E)))return!0}return!1}function oi(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 oe=ee.fromNode;if(ee=ee.toNode,oe=oe===x?ee:oe,oe!==x&&oi(a,y,oe,b,E))return!0}}return!1}Re.Object.defineProperties(rn.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}}}),rn.className="LinkingBaseTool";function hi(){rn.call(this),this.name="Linking",this.V={},this.F=null,this.K=si,this.Xd=null}Pt(hi,rn),hi.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},hi.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 li)))return null;var x=this.direction;if(x===si||x===Gi){var b=this.findValidLinkablePort(y,!1);if(b!==null||this.startObject===a&&(b=a.port,this.findValidLinkablePort(b,!1)))return this.isForwards=!0,b}return(x===si||x===zi)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},hi.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 li&&(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 li&&(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)},hi.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()},hi.prototype.doStop=function(){rn.prototype.doStop.call(this),this.startObject=null},hi.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 oe=ee.part;oe instanceof li&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=oe,E=ee):(y=oe,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)}}},hi.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof ei)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)},hi.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},hi.prototype.doNoLink=function(){},Re.Object.defineProperties(hi.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var si=new nn(hi,"Either",0),Gi=new nn(hi,"ForwardsOnly",0),zi=new nn(hi,"BackwardsOnly",0);hi.className="LinkingTool",hi.Either=si,hi.ForwardsOnly=Gi,hi.BackwardsOnly=zi;function Fi(){rn.call(this),this.name="Relinking";var a=new Eo;a.figure="Diamond",a.desiredSize=mr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Eo,a.figure="Diamond",a.desiredSize=mr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new vn}Pt(Fi,rn),Fi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ei){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)}},Fi.prototype.makeAdornment=function(a,y){var x=new ur;return x.type=$n.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},Fi.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},Fi.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 ur&&x.adornedPart instanceof ei))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=io),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=io),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},Fi.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===xg||x===Id)&&(x=sl),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}},Fi.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()},Fi.prototype.doStop=function(){rn.prototype.doStop.call(this),this.handle=null},Fi.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 li&&(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()}}},Fi.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},Fi.prototype.doNoRelink=function(){};function ho(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)}Re.Object.defineProperties(Fi.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 ur))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),Fi.className="RelinkingTool",pi("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),pi("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ti(){Wo.call(this),this.name="LinkReshaping";var a=new Eo;a.figure="Rectangle",a.desiredSize=Ir,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Eo,a.figure="Diamond",a.desiredSize=mr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Ke,this.Yq=new Ln}Pt(Ti,Wo),Ti.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:oo},Ti.prototype.om=function(a,y){a.reshapingBehavior=y},Ti.prototype.updateAdornments=function(a){if(a!==null&&a instanceof ei){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)}},Ti.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new ur,E.type=$n.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=b?1:0;if(y.resegmentable&&y.computeCurve()!==tu)for(var oe=x+ee;oe<z-ee;oe++){var re=this.makeResegmentHandle(a,oe);re!==null&&(re.segmentIndex=oe,re.segmentFraction=.5,re.fromMaxLinks=999,E.add(re))}for(ee=x+1;ee<z;ee++)if(oe=this.makeHandle(a,ee),oe!==null){if(oe.segmentIndex=ee,ee!==x)if(ee===x+1&&b){re=y.i(x);var le=y.i(x+1);Bt.B(re.x,le.x)&&Bt.B(re.y,le.y)&&(le=y.i(x-1)),Bt.B(re.x,le.x)?(this.om(oe,Xo),oe.cursor="n-resize"):Bt.B(re.y,le.y)&&(this.om(oe,bo),oe.cursor="w-resize")}else ee===z-1&&b?(re=y.i(z-1),le=y.i(z),Bt.B(re.x,le.x)&&Bt.B(re.y,le.y)&&(re=y.i(z+1)),Bt.B(re.x,le.x)?(this.om(oe,Xo),oe.cursor="n-resize"):Bt.B(re.y,le.y)&&(this.om(oe,bo),oe.cursor="w-resize")):ee!==z&&(this.om(oe,lr),oe.cursor="move");E.add(oe)}E.adornedObject=a}return E},Ti.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ti.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ti.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},Ti.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 ei){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}}},Ti.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ti.prototype.stopTransaction=function(){var a=this.diagram,y=Wo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ti.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ti.prototype.getResegmentingPoint=function(){return this.handle.ga(Uo)},Ti.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ti.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&&(so(this,ee,b,E,z,!0)||so(this,ee,b,E,z,!1))){var oe=y.points.copy();so(this,ee,b,E,z,!0)?(oe.cd(x-2,new Ke(ee.x,(z.y+ee.y)/2)),oe.cd(x+1,new Ke(z.x,(z.y+ee.y)/2))):(oe.cd(x-2,new Ke((z.x+ee.x)/2,ee.y)),oe.cd(x+1,new Ke((z.x+ee.x)/2,z.y))),oe.mb(x),oe.mb(x-1),y.points=oe,y.Wb()}else ee=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(so(this,b,E,z,ee,!0)||so(this,b,E,z,ee,!1))&&(oe=y.points.copy(),so(this,b,E,z,ee,!0)?(oe.cd(x-1,new Ke(b.x,(b.y+ee.y)/2)),oe.cd(x+2,new Ke(ee.x,(b.y+ee.y)/2))):(oe.cd(x-1,new Ke((b.x+ee.x)/2,b.y)),oe.cd(x+2,new Ke((b.x+ee.x)/2,ee.y))),oe.mb(x+1),oe.mb(x),y.points=oe,y.Wb())}}else ee=Ke.alloc(),Bt.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()),Ke.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function so(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}Ti.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===Xo?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===bo&&(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===Xo?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===bo&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),ee=y.i(b+1);Bt.B(z.x,E.x)&&Bt.B(E.y,ee.y)?(Bt.B(z.x,y.i(b-2).x)&&!Bt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Bt.B(ee.y,y.i(b+2).y)&&!Bt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.x,a.y)):Bt.B(z.y,E.y)&&Bt.B(E.x,ee.x)?(Bt.B(z.y,y.i(b-2).y)&&!Bt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Bt.B(ee.x,y.i(b+2).x)&&!Bt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Bt.B(z.x,E.x)&&Bt.B(E.x,ee.x)?(Bt.B(z.x,y.i(b-2).x)&&!Bt.B(z.y,y.i(b-2).y)?(y.m(b,a.x,z.y),x++,b++):y.L(b-1,a.x,z.y),Bt.B(ee.x,y.i(b+2).x)&&!Bt.B(ee.y,y.i(b+2).y)?y.m(b+1,a.x,ee.y):y.L(b+1,a.x,ee.y)):Bt.B(z.y,E.y)&&Bt.B(E.y,ee.y)&&(Bt.B(z.y,y.i(b-2).y)&&!Bt.B(z.x,y.i(b-2).x)?(y.m(b,z.x,a.y),x++,b++):y.L(b-1,z.x,a.y),Bt.B(ee.y,y.i(b+2).y)&&!Bt.B(ee.x,y.i(b+2).x)?y.m(b+1,ee.x,a.y):y.L(b+1,ee.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(Uo,Ke.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Ke.alloc()),y.L(0,b.x,b.y),Ke.free(z),Ke.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(Uo,Ke.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Ke.alloc()),y.L(y.pointsCount-1,a.x,a.y),Ke.free(x),Ke.free(a));y.zf()},Ti.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case lr:return a;case Xo:return new Ke(y.i(x).x,a.y);case bo:return new Ke(a.x,y.i(x).y);default:case oo:return y.i(x)}},Re.Object.defineProperties(Ti.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 ur))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}}}),Ti.prototype.setReshapingBehavior=Ti.prototype.om,Ti.prototype.getReshapingBehavior=Ti.prototype.Ru;var oo=new nn(Ti,"None",0),bo=new nn(Ti,"Horizontal",1),Xo=new nn(Ti,"Vertical",2),lr=new nn(Ti,"All",3);Ti.className="LinkReshapingTool",Ti.None=oo,Ti.Horizontal=bo,Ti.Vertical=Xo,Ti.All=lr,pi("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function fo(){Wo.call(this),this.name="Resizing",this.o=new ti(1,1).freeze(),this.j=new ti(9999,9999).freeze(),this.yg=new ti(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Eo;a.alignmentFocus=Uo,a.figure="Rectangle",a.desiredSize=Ir,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Ke,this.Dw=new ti,this.Tn=new Ke,this.rt=new ti(0,0),this.qt=new ti(1/0,1/0),this.pt=new ti(1,1)}Pt(fo,Wo),fo.prototype.updateAdornments=function(a){if(!(a===null||a instanceof ei)){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(),sc(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},fo.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new ur,y.type=$n.Spot,y.locationSpot=Uo;var x=new al;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,_r)),y.add(this.makeHandle(a,Xs)),y.add(this.makeHandle(a,Ds)),y.add(this.makeHandle(a,Rs)),y.add(this.makeHandle(a,La)),y.add(this.makeHandle(a,Ga)),y.add(this.makeHandle(a,Ka)),y.add(this.makeHandle(a,Pa))}else if(Au(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},fo.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},fo.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=Uo),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 $n)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},fo.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},fo.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))},fo.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},fo.prototype.stopTransaction=function(){var a=this.diagram,y=Wo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},fo.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},fo.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,Ke.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Ke.free(E)}},fo.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,Ke.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Ke.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},fo.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 co){var b=new Ln;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()}},fo.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=Uo);var ee=this.adornedObject.naturalBounds,oe=ee.x,re=ee.y,le=ee.x+ee.width,ue=ee.y+ee.height,fe=1;if(!z){fe=ee.width;var Se=ee.height;0>=fe&&(fe=1),0>=Se&&(Se=1),fe=Se/fe}return Se=Ke.alloc(),Bt.No(a.x,a.y,oe,re,E.width,E.height,Se),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Se.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(Se.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(Se.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(Se.y-re,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(Se.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=re+.5*(ue-re-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Se.x-oe,b.width),x.width),a.y=Math.max(Se.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(Se.x-oe,b.width),x.width),a.height=Math.max(Math.min(Se.y-re,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(Se.x-oe,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=re+.5*(ue-re-a.height))):0>=y.y?(a.y=Math.max(Se.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=oe+.5*(le-oe-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Se.y-re,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=oe+.5*(le-oe-a.width))),Ke.free(Se),a},fo.prototype.computeReshape=function(){var a=Zn;return this.adornedObject instanceof Eo&&(a=bv(this.adornedObject)),!(a===Li||this.diagram.lastInput.shift)},fo.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},fo.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},fo.prototype.computeCellSize=function(){var a=new ti(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},Re.Object.defineProperties(fo.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 ur))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 ur)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}}}),fo.className="ResizingTool",pi("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Vo(){Wo.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Ke,this.ue=null;var a=new Eo;a.figure="Ellipse",a.desiredSize=mr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Ke(NaN,NaN),this.u=0,this.F=50}Pt(Vo,Wo),Vo.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)}},Vo.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new ur,y.type=$n.Position,y.locationSpot=Uo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Au(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Vo.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},Vo.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)},Vo.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(Uo)},Vo.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)},Vo.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Ke(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Vo.prototype.stopTransaction=function(){var a=this.diagram,y=Wo.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Vo.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Vo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Vo.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()},Vo.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()}},Vo.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},Re.Object.defineProperties(Vo.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 ur))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 ur)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}}}),Vo.className="RotatingTool",pi("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function Mr(){Wo.call(this),this.name="ClickSelecting"}Pt(Mr,Wo),Mr.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},Mr.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},Mr.className="ClickSelectingTool";function Po(){Wo.call(this),this.name="Action",this.pk=null}Pt(Po,Wo),Po.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},Po.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()},Po.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))}},Po.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()},Po.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())},Po.prototype.doStop=function(){this.pk=null},Po.className="ActionTool";function zo(){Wo.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Ke(0,0)}Pt(zo,Wo),zo.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)},zo.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},zo.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 Wi)x.Zc()&&(Au(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);jt(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Ke.allocAt(a.x,a.y);this.isGridSnapEnabled&&Jf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Ke.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Re.Object.defineProperties(zo.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}}}),zo.className="ClickCreatingTool";function wo(){Wo.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Wi;a.layerName="Tool",a.selectable=!1;var y=new Eo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Pt(wo,Wo),wo.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))},wo.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},wo.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},wo.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=ti.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),ti.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},wo.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()},wo.prototype.computeBoxBounds=function(){var a=this.diagram;return new vn(a.firstInput.documentPoint,a.lastInput.documentPoint)},wo.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Di?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 Ln,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)}},Re.Object.defineProperties(wo.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}}}),wo.className="DragSelectingTool";function Ji(){Wo.call(this),this.name="Panning",this.Xt=new Ke,this.xy=new Ke,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()}}Pt(Ji,Wo),Ji.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())},Ji.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},Ji.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Ji.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Ji.prototype.doMouseMove=function(){this.move()},Ji.prototype.doMouseUp=function(){this.move(),this.stopTool()},Ji.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)}},Re.Object.defineProperties(Ji.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Ji.className="PanningTool",pi("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),pi("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),pi("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),pi("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),pi("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function Bo(){this.F=this.u=this.j=this.o=null}Re.Object.defineProperties(Bo.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}}}),Bo.className="HTMLInfo";function _o(a,y,x){this.text=a,this.hx=y,this.visible=x}_o.className="ContextMenuButtonInfo";function pr(){Wo.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Ke,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Pt(pr,Wo);function vr(a){var y=new Bo;y.show=function(E,z,ee){ee.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},$r=y,a.tu=function(){a.stopTool()},y=Dn("div");var x=Dn("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=Dn("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",po,!1),b.addEventListener(y,"selectstart",po,!1),b.addEventListener(x,"contextmenu",po,!1)),y.className="goCXforeground",x.className="goCXbackground",Ye.document.body&&(Ye.document.body.appendChild(y),Ye.document.body.appendChild(x)),Dr=y,Va=x,Xa=!0}function po(a){return a.preventDefault(),!1}pr.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)},pr.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},pr.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},pr.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof $t||(a instanceof kt?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},pr.prototype.doActivate=function(){},pr.prototype.doMouseDown=function(){if(Wo.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof ur){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&Nr(this)},pr.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof ur){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}Nr(this)};function Nr(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof Bo||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Tr(a,!0),a.isActive||a.stopTool())}pr.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Tr(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=$r,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof kt?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof ur&&!a.currentContextMenu.visible&&a.stopTool()}}pr.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},pr.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof ur){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 Bo&&a.show(y,x,this);this.currentContextMenu=a},pr.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}},pr.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof ur?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof Bo&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function ga(a){var y=new Ln;return y.add(new _o("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new _o("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new _o("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new _o("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new _o("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new _o("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new _o("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new _o("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new _o("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new _o("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new _o("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new _o("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new _o("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}pr.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=ga(this)),Dr.innerHTML="",Va.addEventListener("pointerdown",this.tu,!1);var y=this,x=Dn("ul");x.className="goCXul",Dr.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=Dn("li"),z.className="goCXli";var ee=Dn("a");ee.className="goCXa",ee.href="#",ee.ky=E.hx,ee.addEventListener("pointerdown",function(oe){return this.ky(a),y.stopTool(),oe.preventDefault(),!1},!1),ee.textContent=E.text,z.appendChild(ee),x.appendChild(z)}}Dr.style.display="block",Va.style.display="block"},pr.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===$r){Dr.style.display="none",Va.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Va,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Re.Object.defineProperties(pr.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof ur?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Xa===!1&&$r===null&&xa&&vr(this),$r},set:function(a){a===null&&(Xa=!0),$r=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var $r=null,Xa=!1,Va=null,Dr=null;pr.className="ContextMenuTool",pi("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function ar(){Wo.call(this),this.name="TextEditing",this.Zh=new jr,this.ia=null,this.V=Yo,this.vj=null,this.qa=Jo,this.u=1,this.F=!0,this.o=null,this.j=new Bo,this.kt=null,oa(this,this.j)}Pt(ar,Wo);function oa(a,y){if(xa){var x=Dn("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(fr)):E==="Tab"?(a.acceptText(yr),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Jo){var b=a.kt;a.qa===Fr&&(a.qa=qr),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Jo){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 jr&&z instanceof ar)if(z.state===Os)x.style.border="3px solid red",x.focus();else{var ee=b.ga(Uo),oe=E.position,re=E.scale,le=b.Df()*re;le<z.minimumEditorScale&&(le=z.minimumEditorScale);var ue=b.naturalBounds.width*le+6,fe=b.naturalBounds.height*le+2,Se=(ee.x-oe.x)*re;ee=(ee.y-oe.y)*re,oe=b.verticalAlignment,re=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*le,fe=oe.y*fe-oe.y*re+oe.offsetY-(.5*fe-.5*re)-re/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=(Se-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)}}}ar.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||nl&&nl!==this&&(nl.acceptText(gs),nl&&nl!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof jr&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Yo&&!y.isSelected||this.starting===sa&&2>a.lastInput.clickCount)):!1},ar.prototype.doStart=function(){nl=this,this.textBlock!==null&&this.doActivate()},ar.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 jr&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Fr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new vn(this.textBlock.ga(_r),this.textBlock.ga(Ds));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},ar.prototype.doCancel=function(){this.stopTool()},ar.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},ar.prototype.doMouseDown=function(){this.isActive&&this.acceptText(gs)},ar.prototype.acceptText=function(a){switch(a){case gs:this.qa===ys?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Fr||this.qa===Os||this.qa===qr)&&(this.qa=ea,Ya(this));break;case Ia:case fr:case yr:(fr!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Fr||this.qa===Os||this.qa===qr)&&(this.qa=ea,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=ys,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=Os,a.doError(E,z))}}ar.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)},ar.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},ar.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Jo,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},ar.prototype.doStop=function(){nl=null},ar.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)))},ar.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Re.Object.defineProperties(ar.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)}}}),ar.prototype.measureTemporaryTextBlock=ar.prototype.Lx;var Ia=new nn(ar,"LostFocus",0),gs=new nn(ar,"MouseDown",1),yr=new nn(ar,"Tab",2),fr=new nn(ar,"Enter",3),Sr=new nn(ar,"SingleClick",0),Yo=new nn(ar,"SingleClickSelected",1),sa=new nn(ar,"DoubleClick",2),Jo=new nn(ar,"StateNone",0),Fr=new nn(ar,"StateActive",1),qr=new nn(ar,"StateEditing",2),ea=new nn(ar,"StateValidating",3),Os=new nn(ar,"StateInvalid",4),ys=new nn(ar,"StateValidated",5),nl=null;ar.className="TextEditingTool",ar.LostFocus=Ia,ar.MouseDown=gs,ar.Tab=yr,ar.Enter=fr,ar.SingleClick=Sr,ar.SingleClickSelected=Yo,ar.DoubleClick=sa,ar.StateNone=Jo,ar.StateActive=Fr,ar.StateEditing=qr,ar.StateValidating=ea,ar.StateInvalid=Os,ar.StateValidated=ys,pi("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function pa(a){Ol||(Ll(),Ol=!0),this.H=oh,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=lu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Mn,this.ce=new ya,this.ce.Yd=this,this.Ei=new Mn,this.pu=new Mn,this.Sr=new Mn,this.pr=new Mn,a&&Object.assign(this,a)}pa.prototype.Xe=function(a){this.H=a},pa.prototype.canStart=function(){return!0};function Is(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),xs(a.H),a.zb=!0)}function ds(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===lu?(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===Xl&&y.vc.clear(),a.Qw=!!(a.Pk===uu&&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(),Hs(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==$s&&b!==null&&(delete b.start.scale,delete b.end.scale),Ye.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Ws(x),kc(x),a.zb=!1,y.start(),y.bc&&(Na(a),x.Ya(),yh(y,0),ml(x,!0),rs(a),x.R("AnimationStarting",a)))}))}}function Ls(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function nh(a,y,x,b){a.isTicking||Ls(a)||y instanceof ei&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}be=pa.prototype,be.fv=function(a){return this.ce.fv(a)},be.Xu=function(a){return this.ce.Xu(a)};function ma(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 oe=!0;else{for(oe=ee.vc.iterator;oe.next();){var re=oe.key;if(re instanceof kt&&re.diagram!==null||re instanceof $t){oe=!0;break e}}oe=!1}oe?Yl(ee,!1):ee.Xk=!0}}E.pu.clear(),E.bc!==!1&&(Na(E),ml(E.H),rs(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 ba(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function Na(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 rs(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}be.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(),Hs(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Hs(y,this.H)},be.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))},be.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Aa(this,a))},be.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),ns(this.ce,y,"position",y.position,y.position),Aa(this,a))};function Ms(a,y,x){!a.zb||y.D(x)||Ls(a)||(a.H.pi||(y=x.copy()),ns(a.ce,a.H,"position",y,x))}function Ur(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Aa(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Fs(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],oe=a[2];a=a[3];var re=y[0],le=y[1],ue=y[2];return y=y[3],oe===0||oe===100?(z=re,ee=le):(ue===0||ue===100)&&(re=z,le=ee),180<Math.abs(re-z)&&(re>z?z+=360:re+=360),z=E(x,z,re-z,b)%360,ee=E(x,ee,le-ee,b),oe=E(x,oe,ue-oe,b),x=E(x,a,y-a,b),"hsla("+z+", "+ee+"%, "+oe+"%, "+x+")"}function Ll(){function a(x,b,E,z,ee,oe){x.position=new Ke(z(ee,b.x,E.x-b.x,oe),z(ee,b.y,E.y-b.y,oe))}var y=new di;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,ee,oe){ee<oe?x.mm(z(ee,b.x,E.x-b.x,oe),z(ee,b.y,E.y-b.y,oe),!1):x.position=new Ke(z(ee,b.x,E.x-b.x,oe),z(ee,b.y,E.y-b.y,oe))}),y.add("location",function(x,b,E,z,ee,oe){ee<oe?x.mm(z(ee,b.x,E.x-b.x,oe),z(ee,b.y,E.y-b.y,oe),!0):x.location=new Ke(z(ee,b.x,E.x-b.x,oe),z(ee,b.y,E.y-b.y,oe))}),y.add("position:placeholder",function(x,b,E,z,ee,oe){ee<oe?x.mm(z(ee,b.x,E.x-b.x,oe),z(ee,b.y,E.y-b.y,oe),!1):x.position=new Ke(z(ee,b.x,E.x-b.x,oe),z(ee,b.y,E.y-b.y,oe))}),y.add("position:nodeCollapse",function(x,b,E,z,ee,oe){var re=x.actualBounds,le=E.actualBounds;E=le.x+le.width/2-re.width/2,re=le.y+le.height/2-re.height/2,ee<oe?x.mm(z(ee,b.x,E-b.x,oe),z(ee,b.y,re-b.y,oe),!1):x.position=new Ke(z(ee,b.x,E-b.x,oe),z(ee,b.y,re-b.y,oe))}),y.add("desiredSize",function(x,b,E,z,ee,oe){x.desiredSize=new vn(z(ee,b.width,E.width-b.width,oe),z(ee,b.height,E.height-b.height,oe))}),y.add("width",function(x,b,E,z,ee,oe){x.width=z(ee,b,E-b,oe)}),y.add("height",function(x,b,E,z,ee,oe){x.height=z(ee,b,E-b,oe)}),y.add("fill",function(x,b,E,z,ee,oe){x.fill=Fs(b,E,ee,oe,z)}),y.add("stroke",function(x,b,E,z,ee,oe){x.stroke=Fs(b,E,ee,oe,z)}),y.add("strokeWidth",function(x,b,E,z,ee,oe){x.strokeWidth=z(ee,b,E-b,oe)}),y.add("strokeDashOffset",function(x,b,E,z,ee,oe){x.strokeDashOffset=z(ee,b,E-b,oe)}),y.add("background",function(x,b,E,z,ee,oe){x.background=Fs(b,E,ee,oe,z)}),y.add("areaBackground",function(x,b,E,z,ee,oe){x.areaBackground=Fs(b,E,ee,oe,z)}),y.add("opacity",function(x,b,E,z,ee,oe){x.opacity=z(ee,b,E-b,oe)}),y.add("scale",function(x,b,E,z,ee,oe){x.scale=z(ee,b,E-b,oe)}),y.add("angle",function(x,b,E,z,ee,oe){x.angle=z(ee,b,E-b,oe)}),Ul=y}Re.Object.defineProperties(pa.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&&Hn(a,">= 1",pa,"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}}}),pa.prototype.stopAnimation=pa.prototype.Cc;var Ul=null,Ol=!1,lu=new nn(pa,"Default",1),uu=new nn(pa,"AnimateLocations",2),Xl=new nn(pa,"None",3);pa.className="AnimationManager",pa.defineAnimationEffect=function(a,y){Ol||(Ll(),Ol=!0),Ul.add(a,y)},pa.Default=lu,pa.AnimateLocations=uu,pa.None=Xl;function ya(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=hu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Do,this.vc=new di,this.Tt=new di,this.yl=new Mn,this.Ut=new Mn,this.dw=Md,a&&Object.assign(this,a)}ya.prototype.suspend=function(){this.Xk=!0},ya.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Yl(this,!0),Na(this.Yd),ml(this.H),rs(this.Yd),this.H.redraw()};function Hs(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}be=ya.prototype,be.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 $t?a=x:x instanceof kt&&(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===lu&&this===y.defaultAnimation&&(this.Lp=Wu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=yf),Na(y),this.yl.each(function(b){b.data=null,a.add(b)}),rs(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ma(y,this),this)},be.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},be.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof $t?this.H=a:a instanceof kt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Wi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return ns(this,a,y,x,b,E),this};function ns(a,y,x,b,E,z){var ee=a.vc;if(y instanceof $t&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(hd(b),av(),b=[eu.j,eu.u,eu.o,eu.F],hd(E),av(),E=[eu.j,eu.u,eu.o,eu.F]),ee.contains(y)){var oe=ee.I(y),re=oe.start,le=oe.end;re[x]===void 0&&(re[x]=Da(b)),le[x]=Da(E)}else re={},le={},re[x]=Da(b),le[x]=Da(E),oe=re.position,y instanceof kt&&oe instanceof Ke&&!oe.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&oe.assign(le.position),oe=new ih(re,le,z),ee.add(y,oe);ee=re[x],ee instanceof Ke&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Wi?oe.Ku.location=Da(y.location):z&&(oe.Ku[x]=Da(b))}function Da(a){return a instanceof Ke||a instanceof ti?a.copy():a}be.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},be.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Yl(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),Na(x),yh(a,E),ml(a.H,!0),rs(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 yh(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof kt&&z.diagram===null)){var ee=b.value,oe=E?ee.end:ee.start;ee=E?ee.start:ee.end;var re=Ul,le;for(le in ee)le==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||re.get(le)===null||re.get(le)(z,oe[le],ee[le],a.Lp,y,x,a)}}}be.stop=function(){return this.bc?(this.Ml(!0),this):this},be.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,Na(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=Ul;b.next();){var ee=b.key,oe=b.value,re=E?oe.end:oe.start,le=E?oe.start:oe.end,ue=oe.Ku,fe;for(fe in le)if(z.get(fe)!==null){var Se=fe;!oe.Hu||Se!=="position:nodeCollapse"&&Se!=="position:placeholder"||(Se="position"),z.get(Se)(ee,re[fe],ue[fe]!==void 0?ue[fe]:oe.Hu?re[fe]:le[fe],this.Lp,this.Gd,this.Gd,this)}oe.Hu&&ue.location!==void 0&&ee instanceof Wi&&(ee.location=ue.location),oe.nv&&ee instanceof Wi&&ee.Zb(!1)}if(y.As.clear(),_d(y,!1),y.Ya(),y.N(),ml(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()}ml(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),rs(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Hs(this,null),x.Ml(this),y.$b())}},be.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof co&&(b=y.placeholder),b!==null?(x=b.ga(_r),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Ke(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof co)for(a=a.memberParts;a.next();)b=a.value,b instanceof li&&this.Cj(b,y)},be.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof co&&(x=y.placeholder),x!==null){var b=x.ga(_r);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 co)for(a=a.memberParts;a.next();)b=a.value,b instanceof li&&this.Aj(b,y)}},be.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Re.Object.defineProperties(ya.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Hn(a,">= 1",ya,"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:at("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}}}),ya.prototype.getTemporaryState=ya.prototype.Ez,ya.prototype.stop=ya.prototype.stop,ya.prototype.add=ya.prototype.add,ya.prototype.addTemporaryPart=ya.prototype.Iy;function hu(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Wu(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}ya.className="Animation",ya.EaseLinear=function(a,y,x,b){return x*a/b+y},ya.EaseInOutQuad=hu,ya.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},ya.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},ya.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},ya.EaseOutExpo=Wu;function ih(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}ih.className="AnimationState";function Il(a,y,x){this.xd=null,this.rf=a,this.so=x||Ra,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Ss))}Il.prototype.copy=function(){var a=new Il(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 la(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))}Re.Object.defineProperties(Il.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 Ra=new nn(Il,"Default",1),Ss=new nn(Il,"Immediate",2),ja=new nn(Il,"Bundled",3);Il.className="AnimationTrigger",Il.Default=Ra,Il.Immediate=Ss,Il.Bundled=ja;function na(a){ro(this),this.H=null,this.Pa=new Ln,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)}be=na.prototype,be.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,Zs(x)}a.clear(),this.Zq.length=0},be.Xe=function(a){this.H=a},be.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,oe=this.Pa.iterator;oe.next();){var re=oe.value;re instanceof co?E++:re instanceof li?b++:re instanceof ei?z++:re instanceof ur?ee++:x++}if(oe="",0<x&&(oe+=x+" Parts "),0<b&&(oe+=b+" Nodes "),0<E&&(oe+=E+" Groups "),0<z&&(oe+=z+" Links "),0<ee&&(oe+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,oe+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&_i(b)&&(oe+=" #"+_i(b)),x instanceof li?oe+=" "+An(b):x instanceof ei&&(oe+=" "+An(x.fromNode)+" "+An(x.toNode));return y+" "+this.Pa.count+": "+oe},be.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=Ke.alloc(),z=this.Pa.s,ee=z.length;ee--;){var oe=z[ee];if((b!==!0||sc(oe)!==!1)&&oe.isVisible()&&(E.assign(a),Lo(E,oe.oe),oe=oe.ic(E,y,x),oe!==null&&(y!==null&&(oe=y(oe)),oe!==null&&(x===null||x(oe)))))return Ke.free(E),oe}return Ke.free(E),null},be.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ln||b instanceof Mn||(b=new Mn),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Ke.alloc(),ee=this.Pa.s,oe=ee.length;oe--;){var re=ee[oe];if((E!==!0||sc(re)!==!1)&&re.isVisible()){z.assign(a),Lo(z,re.oe);var le=re;re.ji(z,y,x,b)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||b.add(le))}}return Ke.free(z),b},be.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 Ln||E instanceof Mn||(E=new Mn),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,oe=ee.length;oe--;){var re=ee[oe];if((z!==!0||sc(re)!==!1)&&re.isVisible()){var le=re;re.Cf(a,y,x,b,E)&&(y!==null&&(le=y(le)),le===null||x!==null&&!x(le)||E.add(le))}}return E},be.Nu=function(a,y,x,b,E,z,ee){if(this.Uh===!1)return E;for(var oe=this.Pa.s,re=oe.length;re--;){var le=oe[re];if((ee!==!0||sc(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},be.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 Ln||E instanceof Mn)&&(z=E),E=!0),z instanceof Ln||z instanceof Mn||(z=new Mn),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var oe=Ke.alloc(),re=Ke.alloc(),le=this.Pa.s,ue=le.length;ue--;){var fe=le[ue];if((ee!==!0||sc(fe)!==!1)&&fe.isVisible()){oe.assign(a),Lo(oe,fe.oe),re.h(a.x+y,a.y),Lo(re,fe.oe);var Se=fe;fe.og(oe,re,x,b,E,z)&&(x!==null&&(Se=x(Se)),Se===null||b!==null&&!b(Se)||z.add(Se))}}return Ke.free(oe),Ke.free(re),z},be.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=en();for(var E=en(),z=0;z<b;z++){var ee=x[z];if(ee.vw=z,ee instanceof ei){if(ee.fd===!1)continue}else if(ee instanceof ur&&ee.adornedPart!==null)continue;var oe=ee.actualBounds;ee.isVisible()&&Ro(oe,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],Ov(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++)Ov(E[y]);xn(a),xn(E)}}};function Ns(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}be.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=Ns(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,oe=vn.alloc(),re=0;re<b;re++)this.Oj(a,x[re],y,z,ee,oe,!0);if(vn.free(oe),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Ml(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=Ns(a,y),oe=a.Zq;oe.length=0;for(var re=x.scale,le=vn.alloc(),ue=0;ue<z;ue++){var fe=E[ue];b.contains(fe)&&a.Oj(y,fe,x,oe,re,le,!1)}vn.free(le),y.globalAlpha=ee}}}be.Oj=function(a,y,x,b,E,z,ee){if(ee&&!sc(y))a.Hs(y);else{if(b!==null&&y instanceof ei&&(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 oe=y.actualBounds;if(b=!1,ee&&y.isVisible()){if(!z.Yc(oe)){a.Hs(y);return}b=!z.Re(oe)}b&&(a.save(),a instanceof Rl?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),oe.width*E>x.Oq||oe.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&&(Ea(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(Ea(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),Ea(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))}},be.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Kr,a,this,y,x,b,E)},be.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&Zs(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)),Mu(this,a,y),a},be.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,Zs(y),a};function Mu(a,y,x){if(y=df(a,y,x),x instanceof co&&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 oe=E[ee];if(oe===x&&(y=ee,0<=b)||0>b&&oe.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&&Mu(a,-1,y)}x.svg!==null&&x.svg.remove()}function df(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 oe=y+1,re=NaN;oe<E&&(re=a.M(oe).zOrder,!!isNaN(re));)oe++;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(re)&&re<b)for(;;){if(oe===E||re>=b){if(oe--,oe===y)break;return a.mb(y),a.Gb(oe,x),oe}for(re=NaN;++oe<E&&(re=a.M(oe).zOrder,isNaN(re)););}return y}Re.Object.defineProperties(na.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===""&&at("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&at("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)&&Hn(a,"0 <= value <= 1",na,"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))}}}),na.prototype.findObjectsNear=na.prototype.og,na.prototype.findObjectsIn=na.prototype.Cf,na.prototype.findObjectsAt=na.prototype.ji,na.prototype.findObjectAt=na.prototype.ic,na.className="Layer";function $t(a,y){if(hm||(Gs(),hm=!0),ro(this),oh=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,xa){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,ng.add("Model",br);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 oe=z.change;z.modelChange===""&&oe===Kr&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,cf(this),this.model=hy(),this.Wg=!0,qd(this),this.layout=new ta,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 dm,a!==void 0&&(typeof a=="string"||Ye.Element&&a instanceof Element?Nc(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var jh,oh;function cf(a){a.Yd=new pa,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new Ln,a.pj=new di,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Ke(NaN,NaN).freeze(),a.du=new Ke(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Ke(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Mo,a.zu=new Ke(NaN,NaN).freeze(),a.ut=new vn(NaN,NaN,NaN,NaN).freeze(),a.rj=new vi(0,0,0,0).freeze(),a.sj=Md,a.nu=!1,a.Zt=null,a.fu=null,a.yh=$s,a.zk=sr,a.Fg=$s,a.pq=sr,a.yt=_r,a.Bt=_r,a.Fc=!0,a.pn=!1,a.De=new Mn,a.Eh=new di,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 hs,a.bq.diagram=a,a.Qg=new hs,a.Qg.diagram=a,a.cj=new hs,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,tv(a),a.ai=new Mn,a.Ht=!0,a.uu=Fd,a.pw=!1,a.wu=vf,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 di,a.Xn=new Ln,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 Mn().freeze(),a.Nt=999999999,a.nw=new Mn().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 Mn,a.ow=new Mn,a.Xh=null,a.aw=new ti(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Ke,bounds:new vn,Py:new ti,bA:new ti,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new vn(NaN,NaN,NaN,NaN).freeze(),a.wo=new ti(NaN,NaN).freeze(),a.Sp=new vn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new di;var y=new li,x=new jr;x.bind(new za("text","",An)),y.add(x),a.ny=y,a.Lg.add("",y),y=new li,x=new jr,x.stroke="brown",x.bind(new za("text","",An)),y.add(x),a.Lg.add("Comment",y),y=new li,y.selectable=!1,y.avoidable=!1,x=new Eo,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new ti(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new di,y=new co,y.selectionObjectName="GROUPPANEL",y.type=$n.Vertical,x=new jr,x.font="bold 12pt sans-serif",x.bind(new za("text","",An)),y.add(x),x=new $n($n.Auto),x.name="GROUPPANEL";var b=new Eo;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new al,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 di,y=new ei,x=new Eo,x.isPanelMain=!0,y.add(x),x=new Eo,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new ei,x=new Eo,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new ur,y.type=$n.Auto,x=new Eo,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new al,x.margin=new vi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new ur,y.type=$n.Link,x=new Eo,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 br,a.toolManager=new Rr,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=ad(),a.eq=null,a.fq=Qo,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 Ke,a.zy=500,a.wp=new Ke,a.wq=!1}$t.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),zc=null,ic="",Pd(this,!1),this.Xn.clear(),pg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function Pd(a,y){a.animationManager.Cc(!0),a.Hw=new Mn().freeze(),a.nw=new Mn().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 oe=a.Wa.s[y].parts;oe.next();){var re=oe.value;re!==E&&re.data===null&&z.push(re)}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(),pg(),a.Og.clear(),ki=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function ad(){return null}$t.prototype.reset=function(){this.clear(),this.vb=!0,cf(this),wh(this),this.Wg=!0,qd(this),this.layout=new ta,this.Wg=!1,this.model=hy(),this.model.undoManager=new Vr,this.vb=this.rn=!1,this.N()},$t.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ye.document.body);var y=Dn("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},$t.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ye.document.body);var y=0;if(xa){var x=um;y=jh,x===null&&(x=um=Dn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=jh=Dn("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||Di||(y=11)}this.Db=y,this.Gw=!0},$t.prototype.qb=function(a){a.classType===$t&&(this.autoScale=a)},$t.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 Nc(a,y){if(xa){if(y!=null||at("Diagram setup requires an argument DIV."),a.Ka!==null&&at("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ye.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:at("No DIV or DIV id supplied: "+y),a.Ka===null&&at("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&at("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ye.ResizeObserver){var x=Ut(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 ku(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),Rc(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new ku(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,xa){E=Dn("div");var z=Dn("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=Xf,E.addEventListener("pointerdown",gf),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=Ut(function(){a.Yh=null,a.N()},300),a.Ov=Ut(function(){kc(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var oe=Fl(a,ee,!0);oe.bubbles=!0;var re=0,le=0;oe.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(re=0<ee.deltaX?1:-1),ee.deltaY!==0&&(le=0<ee.deltaY?1:-1),oe.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-re:-le):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(re=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(le=0<ee.wheelDeltaY?-1:1),oe.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-re:-le):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(oe.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),$l(oe,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,Fl(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var oe=a.Yt;oe[ee.pointerId]===void 0&&(oe[ee.pointerId]=ee),oe=a.oj;var re=!1;if(oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)if(oe[1]!==null&&oe[1].pointerId===ee.pointerId)oe[1]=ee,re=!0;else if(oe[0]===null)oe[0]=ee;else if(oe[1]===null)oe[1]=ee,re=!0;else{ee.preventDefault();return}else oe[0]=ee;(oe=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var le=re;re=Bc(a,ee,!0,!1,!0,le),Ed(a,ee,re),re.targetDiagram=Dc(ee,ee.target),re.targetObject=null,le||re.clone(a.bq),le=a.uw,oe=oe?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(le.x-ee.screenX)>oe||Math.abs(le.y-ee.screenY)>oe)?a.yq++:a.yq=1,re.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():$l(re,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var oe=a.oj;if(oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType){if(oe[1]!==null&&oe[1].pointerId===ee.pointerId){oe[1]=ee;return}if(oe[0]===null)oe[0]=ee;else return}else oe[0]=ee;if(oe[0].pointerId===ee.pointerId){oe=Bc(a,ee,!1,!1,!1,oe[1]!==null);var re=Ye.document.elementFromPoint(ee.clientX,ee.clientY)||null;re!==null&&re.shadowRoot!==void 0&&re.shadowRoot!==null&&(re=re.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var le=a,ue=ee;re&&re.H&&(ue=ee,le=re.H),oe.targetDiagram=le,Ed(a,ue,oe),oe.targetObject=null,a.doMouseMove(),$l(oe,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var oe=ee.pointerType==="touch"||ee.pointerType==="pen",re=a.Yt;if(oe&&a.qu)delete re[ee.pointerId],ee.preventDefault();else if(re=a.oj,re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null);else{re[0]=null,re=Bc(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 $t&&le.H!==a&&Ed(le.H,ee,re),le===null&&(le=ee.target),Ed(a,ee,re),re.clickCount=a.yq,re.targetDiagram=Dc(ee,le),re.targetObject=null,a.doMouseUp(),$l(re,ee),oe&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var oe=a.Yt;oe[ee.pointerId]&&delete oe[ee.pointerId],oe=a.oj,oe[0]!==null&&oe[0].pointerId===ee.pointerId&&(oe[0]=null),oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var oe=a.oj;oe[0]!==null&&oe[0].pointerId===ee.pointerId?(oe[0]=null,a.wq=!1):oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null)},a.Vp=b.Z["d"+xf[1]+xf[2]+"wI"+Wc.slice(1,5)]["b"+Dx.slice(1,y)](b.Z,Sf,y,y),b.Vc(!0),Vg(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}$t.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},$t.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function Vg(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 Ws(a){30<a.Sq&&(a.Yh=1)}function _d(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),gi&&gi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}$t.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ye.devicePixelRatio||1},$t.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},$t.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},$t.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},$t.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},$t.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},$t.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},$t.prototype.doFocus=function(){this.focus()},$t.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)}},$t.prototype.Oy=function(){this.H.R("GainedFocus")},$t.prototype.Ny=function(){this.H.R("LostFocus")};function kc(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===$s&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function qd(a){var y=new na;y.name="Background",a.Al(y),y=new na,y.name="",a.Al(y),y=new na,y.name="Foreground",a.Al(y),y=new na,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new na,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new na,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function ff(a){var y=new $n($n.Grid);y.name="GRID";var x=new Eo;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Eo,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Eo,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Eo,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Eo,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Eo,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Wi,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 Xf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Wh(this.H)}function gf(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Wh(this.H)}$t.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,oe=b.y-z.top,re=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 Se=E.width,Pe=E.height,Ee=E.right,Te=E.bottom;E=this.scale;var _e=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":_e=_e+a.scrollWidth-a.clientWidth;break;case"reverse":_e=a.scrollWidth-_e-a.clientWidth}var Ge=_e;Se<re||Pe<le?(_e=Ke.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Ge&&(_e.x=Ge/E+ee,this.ju=Ge),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(_e.y=a.scrollTop/E+oe,this.lu=a.scrollTop),this.position=_e,Ke.free(_e),this.Ee=this.qr=!1):(_e=Ke.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<fe&&(this.position=_e.h(Ge+ee,this.position.y)),ue>Ee&&(this.position=_e.h(-(y.scrollWidth-this.Aa)+Ge-this.Aa/E+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(oe<b&&(this.position=_e.h(this.position.x,a.scrollTop+oe)),z>Te&&(this.position=_e.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Ke.free(_e),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ue=b.right,Ee=E.right,z=b.bottom,Te=E.bottom,ee=b.x,fe=E.x,oe=b.y,b=E.y,Se>=re&&ee>=fe&&ue<=Ee&&(x.style.width="1px"),Pe>=le&&oe>=b&&z<=Te&&(x.style.height="1px"))}},$t.prototype.computeBounds=function(a){return a===void 0&&(a=new vn),xs(this),Ac(this,a)};function Ac(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 oe=ee.length,re=0;re<oe;re++){var le=ee[re];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}$t.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 ei||(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 ei||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new vn(NaN,NaN,0,0):x};function Jl(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=Ke.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=vn.allocAt(0,0,b.width,b.height);var E=Ke.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,vn.free(b),Ke.free(E),Ke.free(x)}x=a.yh,y&&a.Fg!==$s&&(x=a.Fg);var z=x!==$s?Cd(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var ee=a.ya/z,oe=a.zk,re=a.pq;y&&!oe.sb()&&(re.sb()||re.Xb())&&(oe=re.Xb()?Uo:re),pf(a,a.documentBounds,E,ee,oe,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Bt.B(z.x,x)&&Bt.B(z.y,b)&&Bt.B(z.width,E)&&Bt.B(z.height,ee)||a.onViewportBoundsChanged(new vn(x,b,E,ee),z,y,!1)}}function Cd(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),oe=z/E,re=ee/b;return y===Ql?(y=Math.min(re,oe),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===oc?(y=re>oe?(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}$t.prototype.zoomToFit=function(){var a=this.sj;this.sj=Md,this.scale=Cd(this,Ql),a!==Md&&(Jl(this,!1),pf(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},be=$t.prototype,be.BA=function(a,y){y===void 0&&(y=Ql);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Ql||y===oc)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===oc?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 Ke(a.x,a.y)}},be.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Ke(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))},be.zz=function(a){if(a instanceof kt){this.eq=a;var y=Ke.alloc();this.fq=this.op(a.ga(_r,y)),Ke.free(y)}else this.eq=null,this.fq=Qo};function pf(a,y,x,b,E,z){var ee=Ke.allocAt(a.pa.x,a.pa.y),oe=ee.x,re=ee.y;if(a.eq!==null){var le=Ke.alloc();le=a.eq.ga(_r,le),oe=le.x-a.fq.x/a.scale,re=le.y-a.fq.y/a.scale,E=Jr,Ke.free(le)}(z||a.scrollMode===Md)&&(E.sb()&&(x>y.width&&(oe=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(re=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?(oe=Math.min(oe+x/2,y.right+Math.max(z,E.right)-x/2),oe=Math.max(oe,y.left-Math.max(z,E.left)+x/2),oe-=x/2):oe>y.left?oe=y.left:oe<y.right-x&&(oe=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(re=Math.min(re+b/2,y.bottom+Math.max(x,E.bottom)-b/2),re=Math.max(re,y.top-Math.max(x,E.top)+b/2),re-=b/2):re>y.top?re=y.top:re<y.bottom-b&&(re=y.bottom-b)),ee.x=isFinite(oe)?oe:-a.yb.left,ee.y=isFinite(re)?re:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),Ms(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),wh(a),Ke.free(ee)}be.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Gu(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Wi)return a}else if(a=Gu(this,a,function(x){return x.part}),a instanceof Wi)return a;return null},be.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),xs(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 Gu(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),xs(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}be.lz=function(a,y,x){return y===void 0&&(y=!0),zh(this,a,function(b){return b.part},y?function(b){return b instanceof Wi&&b.canSelect()}:null,x)};function zh(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Ln||E instanceof Mn||(E=new Mn),xs(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}be.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Ln||b instanceof Mn||(b=new Mn),xs(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},be.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),bd(this,a,function(E){return E instanceof Wi&&(!x||E.canSelect())},y,b)},be.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Ln||E instanceof Mn||(E=new Mn),xs(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,b,E)}return E},be.Nu=function(a,y,x,b,E,z){var ee=new Mn;xs(this);for(var oe=this.Wa.iteratorBackwards;oe.next();){var re=oe.value;re.visible&&re.Nu(a,y,x,b,ee,E,z)}return ee};function bd(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 Ln||E instanceof Mn||(E=new Mn),xs(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,b,E)}return E}be.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),sd(this,a,y,function(z){return z instanceof Wi&&(!b||z.canSelect())},x,E)},be.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 Ln||E instanceof Mn)&&(z=E),E=!0),z instanceof Ln||z instanceof Mn||(z=new Mn),xs(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var oe=ee.value;oe.visible&&oe.og(a,y,x,b,E,z)}return z};function sd(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 Ln||E instanceof Mn)&&(z=E),E=!0),z instanceof Ln||z instanceof Mn||(z=new Mn),xs(a),a=a.Wa.iteratorBackwards;a.next();){var oe=a.value;oe.visible&&!oe.isTemporary&&oe.og(y,x,ee,b,E,z)}return z}$t.prototype.acceptEvent=function(a){return Fl(this,a,a instanceof MouseEvent)};function Fl(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),Di&&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=Dc(y,y.target),b.targetObject=null,b}function Dc(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 Bc(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,Di&&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 $l(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}$t.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Fl(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(),$l(x,a)},$t.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Fl(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(),$l(x,a)},$t.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Fl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),$l(x,a)},$t.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Fl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),$l(x,a)},$t.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Ke(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?Lo(new Ke(y,a),this.Ab):new Ke(y,a)};function Ed(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,ee=0,oe=0;b!==null&&(b=b.getBoundingClientRect(),ee=y.clientX-E/b.width*b.left,oe=y.clientY-z/b.height*b.top),x.viewPoint.h(ee,oe),a.Ab!==null?(y=Ke.allocAt(ee,oe),a.Ab.Cd(y),x.documentPoint.assign(y),Ke.free(y)):x.documentPoint.h(ee,oe)}function Tc(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))}}$t.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Oc(a){a.ld||xs(a),a.Va()}$t.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},be=$t.prototype,be.Pz=function(){return this.kg},be.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,ml(this),this.hf=!1,this.du=new Ke(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&fn(function(){b.ld=!1,Is(y,"Model"),a(b)},1)},be.$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()})}},be.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ml(this))};function Hh(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Wh(a)||(y&&xs(a),x&&Jl(a,!1))}function ml(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 oe=E[ee];$a(oe,!1),oe.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(re){re.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||kc(a),Hh(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(xh(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),xs(a),z=!1,(!a.hf||a.xh)&&(a.hf?_g(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),_g(a,!1)),z=!0),a.Jk=!1,xs(a),a.ou||Oc(a),Hh(a,!0,!1),ee=!1,z?(x=vn.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Ic(a)),a.R("LayoutCompleted"),Hh(a,!0,!1),vn.free(x)):x.Ok&&x.Qw&&(a.Fg!==$s?a.scale=Cd(a,a.Fg):a.yh!==$s?a.scale=Cd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Jl(a,!0)),z&&ee&&a.eb("Initial Layout"),xs(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Ic(a){if(a.Fg!==$s)a.scale=Cd(a,a.Fg);else if(a.yh!==$s)a.scale=Cd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Jl(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),xh(a)}function xs(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 Mn,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof co&&b.U&65536&&(b.U=b.U^65536)})}}be.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof co||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof co&&x.isVisible()&&va(this,x);for(a.reset();a.next();)x=a.value,x instanceof ei&&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 ur&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function va(a,y){for(var x=en(),b=en(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof co?(ql(z)||ol(z)||ac(z))&&va(a,z):z instanceof ei?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(xn(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();xn(b)}be.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},be.gc=function(a){if(this.Ka!==null){if(this.ta===null&&at("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){cu(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,oe=this.Ab;for(oe.reset(),E!==1&&oe.scale(E),y.x===0&&y.y===0||oe.translate(-z,-ee),a.ti=null,Yy(a,oe.m11,oe.m12,oe.m21,oe.m22,oe.dx,oe.dy),this.pb!==1&&(a.globalAlpha=this.pb),Js(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?Gc(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Mo.prototype.Cd=Mo.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,cu(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,oe=this.pa;var re=this.Ca,le=Math.round(oe.x*re)/re,ue=Math.round(oe.y*re)/re;for(re!==1&&z.scale(re),oe.x===0&&oe.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),Js(this,a),oe=0;oe<E;oe++)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[oe].gc(a,this);if(y=!1,this.Yf?Gc(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Mo.prototype.Cd=Mo.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=gi&&gi.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 Ua(a,y,x,b,E,z,ee,oe,re,le){if(a.Ka!==null){a.ta===null&&at("No canvas specified"),ee===void 0&&(ee=null),oe===void 0&&(oe=null),re===void 0&&(re=!1),le===void 0&&(le=!1),cu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ue=a.Ca;a.Ca=E;var fe=a.Wa.s,Se=fe.length;try{var Pe=new vn(z.x,z.y,b.width/E,b.height/E),Ee=Pe.copy();Ee.Co(x),xh(a,Ee),xs(a),a.Fd(fe,Se,a,Pe),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),oe!==null&&oe!==""&&(y.fillStyle=oe,y.ox(0,0,b.width,b.height));var Te=a.Mb;y.scale(Te,Te);var _e=Mo.alloc();_e.reset(),_e.translate(x.left,x.top),_e.scale(E),z.x===0&&z.y===0||_e.translate(-z.x,-z.y),y.setTransform(_e.m11,_e.m12,_e.m21,_e.m22,_e.dx,_e.dy),y.yc(),y instanceof Rl&&Yy(y,_e.m11,_e.m12,_e.m21,_e.m22,_e.dx,_e.dy),Mo.free(_e),Js(a,y),y.globalAlpha=a.pb;var Ge=a.Qj("Grid");if(ee){var st=new Mn,ut=ee.iterator;for(ut.reset();ut.next();){var pt=ut.value;pt instanceof Wi&&(le||pt.layer!==Ge)&&(pt.Gj(),st.add(pt))}for(le=0;le<Se;le++)Ml(fe[le],y,a,st,re);st.each(function(Qt){return Qt.Gj()})}else for(st=0;st<Se;st++){var Nt=fe[st];Nt===Ge?le&&Nt.gc(y,a,!0):Nt.gc(y,a,re)}a.$i=!1,a.Yf&&Gc(a.Yf,a)&&a.Vp()}finally{a.Ca=ue,a.ib.Vc(!0),a.vd=!0,a.Fd(fe,Se,a,a.viewportBounds),xh(a),a.ib instanceof Rl&&(a.ib.Nj.PA(),a.redraw())}}}be.Gf=function(a){return this.Rg[a]},be.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},be.Tx=function(){this.Rg=new wi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Di||bi),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Js(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}be.Ql=function(a){return this.on[a]},be.sA=function(a,y){this.on[a]=y},be.Sx=function(){this.on=new wi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},be.set=function(a){return Object.assign(this,a),this},be.Du=function(a){return this.nm(a)},be.nm=function(a){return du(this,a),this};function du(a,y){var x=a instanceof $n,b=a instanceof $t,E;for(E in y){E===""&&at("Setting properties requires non-empty property names");var z=a,ee=E;if(x||b){var oe=E.indexOf(".");if(0<oe){var re=E.substring(0,oe);x?z=a.fb(re):(z=a[re],z==null&&(z=a.toolManager[re])),jt(z)?ee=E.substr(oe+1):at("Unable to find object named: "+re+" in "+a.toString()+" when trying to set property: "+E)}}if(ee[0]!=="_"&&!Wn(z,ee))if(b&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(b&&ee==="Changed"){a.Pe(y[ee]);continue}else if(b&&Wn(a.toolManager,ee))z=a.toolManager;else if(b&&am(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Ni&&ee==="Changed"){a.Pe(y[ee]);continue}else at('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[E],ee[0]==="_"&&z instanceof kt&&z.Vw(ee)}}be.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new di,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},be.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")},$t.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!==yf&&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=vn.alloc(),Qg(this,this.computeBounds(b)),vn.free(b)),b=this.ta,b===null||b instanceof Ph)))){var ee=this.Mb;E=this.Aa*ee;var oe=this.ya*ee,re=this.scale*ee;z=Math.round(Math.round(y.x*re)-Math.round(a.x*re)),y=Math.round(Math.round(y.y*re)-Math.round(a.y*re)),re=this.jw,a=this.oy,re.width!==E&&(re.width=E),re.height!==oe&&(re.height=oe),a.clearRect(0,0,E,oe),re=190*ee;var le=70*ee,ue=Math.max(z,0),fe=Math.max(y,0),Se=Math.floor(E-ue),Pe=Math.floor(oe-fe);a.drawImage(b.Oa,ue,fe,Se,Pe,0,0,Se,Pe),Gc(this.Yf,this)&&a.clearRect(0,0,re,le),b=en(),a=en(),Pe=Math.abs(z),Se=Math.abs(y);var Ee=ue===0?0:E-Pe;ue=Ke.allocAt(Ee,0),Pe=Ke.allocAt(Pe+Ee,oe),a.push(new vn(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.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),Lo(ue,Te),Lo(Pe,Te),b.push(new vn(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y))),Ee=fe===0?0:oe-Se,ue.h(0,Ee),Pe.h(E,Se+Ee),a.push(new vn(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y))),Lo(ue,Te),Lo(Pe,Te),b.push(new vn(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y))),Gc(this.Yf,this)&&(E=0<z?0:-z,oe=0<y?0:-y,ue.h(E,oe),Pe.h(re+E,le+oe),a.push(new vn(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y))),Lo(ue,Te),Lo(Pe,Te),b.push(new vn(Math.min(ue.x,Pe.x),Math.min(ue.y,Pe.y),Math.abs(ue.x-Pe.x),Math.abs(ue.y-Pe.y)))),Ke.free(ue),Ke.free(Pe),Hh(this,!1,!0),this.Ka===null&&at("No div specified"),this.ta===null&&at("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(cu(this),oe=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*oe,this.ya*oe),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,re=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(-re,-le),E.save(),E.beginPath(),z=a.length,ee=0;ee<z;ee++)re=a[ee],re.width!==0&&re.height!==0&&E.rect(Math.floor(re.x),Math.floor(re.y),Math.ceil(re.width),Math.ceil(re.height));for(E.clip(),E.setTransform(oe,0,0,oe,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),Js(this,E),E.globalAlpha=this.pb,oe=0;oe<z;oe++)if(ee=y[oe],re=b,ee.visible&&ee.pb!==0){le=Ns(ee,E),fe=ee.Zq,fe.length=0,ue=this.scale,Se=vn.alloc(),Pe=ee.Pa.s,Te=Pe.length,Ee=re.length;for(var _e=0;_e<Te;_e++){var Ge=Pe[_e],st=Jc(Ge,Ge.actualBounds);e:{for(var ut=2/ue,pt=4/ue,Nt=0;Nt<Ee;Nt++){var Qt=re[Nt];if(Qt.width!==0&&Qt.height!==0&&st.Vu(Qt.x-ut,Qt.y-ut,Qt.width+pt,Qt.height+pt)){st=!0;break e}}st=!1}st&&ee.Oj(E,Ge,this,fe,ue,Se,!0)}vn.free(Se),E.globalAlpha=le}E.restore(),E.Vc(!0),this.Yf&&Gc(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}xn(b),xn(a),this.ld=!1}}else this.bd();x&&(Ws(this),this.bd(),_d(this,!0))}else x?(Ws(this),this.bd(),_d(this,!0)):this.bd()}};function cu(a){a.pn!==!1&&(a.pn=!1,Rc(a,a.Aa,a.ya))}function Rc(a,y,x){wh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Wh(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,oe=a.Be?a.Db:0,re=E.clientWidth||x+ee,le=E.clientHeight||b+oe,ue=a.viewportBounds;E=ue.x;var fe=ue.y,Se=ue.width,Pe=ue.height;if((re!==x+ee||le!==b+oe)&&(a.gf=!1,a.Be=!1,oe=ee=0,a.Aa=re,a.ya=le,z=a.pn=!0,wh(a)),!a.hf||!a.viewportBounds.w())return!0;var Ee=a.ku,Te=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var _e=a.documentBounds,Ge=0,st=0,ut=0,pt=0,Nt=ue.width,Qt=ue.height,ri=a.rj;a.contentAlignment.sb()?(_e.width>Nt&&(Ge=ri.left,st=ri.right),_e.height>Qt&&(ut=ri.top,pt=ri.bottom)):(Ge=ri.left,st=ri.right,ut=ri.top,pt=ri.bottom);var Si=_e.width+Ge+st,mi=_e.height+ut+pt;ri=a.scale;var qn=Si>re/ri,In=mi>le/ri;if(!(z||a.gf||a.Be||qn||In))return!0;Ge=_e.x-Ge,re=ue.x,st=_e.right+st,le=ue.right+ee,ut=_e.y-ut;var uo=ue.y;_e=_e.bottom+pt,ue=ue.bottom+oe;var to="1px";if(pt="1px",a.scrollMode===Md&&(qn||In)&&(qn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(qn=1,Ge+1<re&&(qn=Math.max((re-Ge)*ri+a.Aa,qn)),st>le+1&&(qn=Math.max((st-le)*ri+a.Aa,qn)),Nt+ee+1<Si&&(qn=Math.max((Si-Nt)*ri+a.Aa,qn)),to=qn.toString()+"px"),In&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(qn=1,ut+1<uo&&(qn=Math.max((uo-ut)*ri+a.ya,qn)),_e>ue+1&&(qn=Math.max((_e-ue)*ri+a.ya,qn)),Qt+oe+1<mi&&(qn=Math.max((mi-Qt)*ri+a.ya,qn)),pt=qn.toString()+"px")),qn=to!=="1px",In=pt!=="1px",qn&&In||!qn&&!In||(In&&(le-=a.Db),qn&&(ue-=a.Db),Si<Nt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,Ge+1<re&&(ee=Math.max((re-Ge)*ri+a.Aa,ee)),st>le+1&&(ee=Math.max((st-le)*ri+a.Aa,ee)),Nt+1<Si&&(ee=Math.max((Si-Nt)*ri+a.Aa,ee)),to=ee.toString()+"px"),qn=to!=="1px",ee=a.ya,qn!==a.Be&&(ee=qn?a.ya-a.Db:a.ya+a.Db),mi<Qt+oe||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(oe=1,ut+1<uo&&(oe=Math.max((uo-ut)*ri+ee,oe)),_e>ue+1&&(oe=Math.max((_e-ue)*ri+ee,oe)),Qt+1<mi&&(oe=Math.max((mi-Qt)*ri+ee,oe)),pt=oe.toString()+"px"),In=pt!=="1px"),a.qr&&qn===a.Be&&In===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(qn!==a.Be&&(to==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=qn,Te.style.width=to,In!==a.gf&&(pt==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(oe=Ke.alloc(),In?(y.style.left=a.Db+"px",a.position=oe.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=oe.h(a.pa.x-a.Db/a.scale,a.pa.y)),Ke.free(oe))),z&&wh(a),a.gf=In,Te.style.height=pt,a.gu=!0,z&&(a.pn=!0),y=Ee.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Nt+1<Si?y=(a.position.x-Ge)*ri:Ge+1<re?y=Ee.scrollWidth-Ee.clientWidth:st>le+1&&(y=a.position.x*ri)),a.tn)switch(a.bu){case"negative":y=-(Ee.scrollWidth-y-Ee.clientWidth);break;case"reverse":y=Ee.scrollWidth-y-Ee.clientWidth}return Ee.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Qt+1<mi?Ee.scrollTop=(a.position.y-ut)*ri:ut+1<uo?Ee.scrollTop=Ee.scrollHeight-Ee.clientHeight:_e>ue+1&&(Ee.scrollTop=a.position.y*ri)),re=a.Aa,le=a.ya,Ee.style.width=re+(a.gf?a.Db:0)+"px",Ee.style.height=le+(a.Be?a.Db:0)+"px",x!==re||b!==le||a.animationManager.zb?(x=vn.allocAt(E,fe,Se,Pe),a.onViewportBoundsChanged(x,a.viewportBounds,ri,z),vn.free(x),!1):!0}be=$t.prototype,be.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&at("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&&at('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(fa,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},be.oi=function(a){this.partManager.oi(a);var y=this;Uc(a,function(x){jc(y,x)}),(a instanceof ur||a instanceof co&&a.placeholder!==null)&&a.v(),a.data!==null&&Uc(a,function(x){sy(y.partManager,x)}),ol(a)!==!0&&ac(a)!==!0||this.De.add(a),R1(a,!0,this),z1(a)?(a.actualBounds.w()&&this.N(Jc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Jc(a,a.actualBounds)),this.$b()},be.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Uc(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),z1(a)?(a.actualBounds.w()&&this.N(Jc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Jc(a,a.actualBounds)),this.$b()},be.remove=function(a){ec(this,a,!0)};function ec(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(Ca,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}be.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 Mn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},be.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},$t.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Yf(this)),this.toolManager!==null){var E=new di;if(a!==null)if(sn(a))for(var z=0;z<a.length;z++)Fu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Fu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Fu(this,E,a.value,x,b);for(a=this.nodes;a.next();)Fu(this,E,a.value,x,b);for(a=this.links;a.next();)Fu(this,E,a.value,x,b)}Sh(this,E,y,b,x)}};function Fu(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=Yf(a)),x instanceof li){if(y.add(x,a.Pd(E,x,x.location)),x instanceof co&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Fu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var oe=ee.fromNode,re=ee.toNode;oe!==null&&y.contains(oe)&&re!==null&&y.contains(re)&&Fu(a,y,ee,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Fu(a,y,x.value,b,E)}else if(x instanceof ei)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Fu(a,y,x.value,b,E);else x instanceof ur||y.add(x,a.Pd(E,x,x.location))}function Sh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Ke.alloc(),ee=Ke.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||$f(a,y);for(var oe=en(),re=en(),le=y.iterator,ue=Ke.alloc();le.next();){var fe=le.key,Se=le.value;if(fe.Zc()){var Pe=Ug(a,fe,y);Pe!==null?oe.push(new ie(fe,Se,Pe)):(!E||fe.canMove())&&(Pe=Se.point,z.assign(Pe),a.computeMove(fe,z.add(ee),b,ue),fe.location=ue,Se.shifted===void 0&&(Se.shifted=new Ke),Se.shifted.assign(ue.re(Pe)))}else le.key instanceof ei&&re.push(le.sa)}for(Ke.free(ue),E=oe.length,le=0;le<E;le++)fe=oe[le],z.assign(fe.info.point),fe.Su.shifted===void 0&&(fe.Su.shifted=new Ke),fe.node.location=z.add(fe.Su.shifted);for(E=Ke.alloc(),le=Ke.alloc(),fe=re.length,Se=0;Se<fe;Se++){var Ee=re[Se];if(Pe=Ee.key,Pe instanceof ei)if(Pe.suspendsRouting){Pe.Tg=null,ue=Pe.fromNode;var Te=Pe.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Te=Ee.value.point,Pe.dragComputation===null)y.add(Pe,a.Pd(b,Pe,ee)),Od(Pe,ee.x-Te.x,ee.y-Te.y);else{Ee=Ke.allocAt(0,0),(ue=Pe.i(0))&&ue.w()&&Ee.assign(ue);var _e=ue=Ke.alloc().assign(Ee).add(ee);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(_e=Ke.alloc(),Jf(a,Pe,ue,_e,b)),ue.assign(Pe.dragComputation(Pe,ue,_e)).re(Ee),y.add(Pe,a.Pd(b,Pe,ue)),Od(Pe,ue.x-Te.x,ue.y-Te.y),Ke.free(Ee),Ke.free(ue),_e!==ue&&Ke.free(_e)}else ue!==null&&(E.assign(ue.location),_e=y.I(ue),_e!==null&&E.re(_e.point)),Te!==null&&(le.assign(Te.location),_e=y.I(Te),_e!==null&&le.re(_e.point)),ue!==null&&Te!==null?E.Xa(le)?(ue=Ee.value.point,Te=z,Te.assign(E),Te.re(ue),y.add(Pe,a.Pd(b,Pe,E)),Od(Pe,Te.x,Te.y)):(Pe.suspendsRouting=!1,Pe.bb()):(Ee=Ee.value.point,ue=ue!==null?E:Te!==null?le:ee,y.add(Pe,a.Pd(b,Pe,ue)),Od(Pe,ue.x-Ee.x,ue.y-Ee.y))}else(Pe.fromNode===null||Pe.toNode===null)&&(ue=Ee.value.point,y.add(Pe,a.Pd(b,Pe,ee)),Od(Pe,ee.x-ue.x,ee.y-ue.y))}Ke.free(z),Ke.free(ee),Ke.free(E),Ke.free(le),xn(oe),xn(re),x||(xs(a),tc(a,y))}}$t.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Ke),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Ke.alloc(),Jf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var ee=a.minLocation,oe=ee.x;isNaN(oe)&&(oe=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 re=a.maxLocation,le=re.x;return isNaN(le)&&(le=z?Math.round(1e3*a.location.x)/1e3:a.location.x),re=re.y,isNaN(re)&&(re=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(oe,Math.min(x.x,le)),Math.max(ee,Math.min(x.y,re))),E!==y&&Ke.free(E),b};function Yf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function Jf(a,y,x,b,E){if(E===void 0&&(E=Yf(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var ee=E.gridSnapOrigin,oe=ee.x;if(ee=ee.y,E=E.gridSnapCellSpot,z!==null){var re=z.gridCellSize;isNaN(a)&&(a=re.width),isNaN(y)&&(y=re.height),z=z.gridOrigin,isNaN(oe)&&(oe=z.x),isNaN(ee)&&(ee=z.y)}z=Ke.allocAt(0,0),z.yi(0,0,a,y,E),Bt.No(x.x,x.y,oe+z.x,ee+z.y,a,y,b),Ke.free(z)}}function $f(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof ei&&(y.suspendsRouting=!0)}function tc(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof ei&&(x.suspendsRouting=!1,Xv(x)&&x.bb())}a.Mr=!1}}function Ug(a,y,x){return y=y.containingGroup,y!==null&&(a=Ug(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}be=$t.prototype,be.Pd=function(a,y,x){if(x===void 0)return new ld(Do);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new ld(new Ke(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new ld(x.copy())};function Xg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&at("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&at("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&at("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&at("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&&at("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}be.Al=function(a){Xg(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(fa,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},be.Ww=function(a,y){Xg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ca,"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(fa,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},be.Cy=function(a,y){Xg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ca,"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(fa,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},be.kA=function(a){if(a.diagram!==this&&at("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(Ca,"layers",this,a,null,x,null),this.N(),this.Ya()}}},be.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},be.Yw=function(a){return this.pf===null&&(this.pf=new Ln),this.pf.add(a),this.model.Pe(a),this},be.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},be.Pe=function(a){return this.zg===null&&(this.zg=new Ln),this.zg.add(a),this},be.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},be.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Bs&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},be.cb=function(a,y,x,b,E,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var oe=new Gr;oe.diagram=this,oe.change=a,oe.propertyName=y,oe.object=x,oe.oldValue=b,oe.oldParam=z,oe.newValue=E,oe.newParam=ee,this.ds(oe)},be.g=function(a,y,x,b,E){this.cb(Kr,a,this,y,x,b,E)},$t.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===Kr){var E=a.object;if(Qr(E,a.propertyName,a.I(y)),E instanceof kt){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===fa){var ee=a.object,oe=a.newParam,re=a.newValue;if(ee instanceof $n)if(typeof oe=="number"&&re instanceof kt){y?ee.pc(oe):ee.Gb(oe,re);var le=ee.part;le!==null&&le.Wb()}else typeof oe=="number"&&re instanceof Qa&&(re.isRow?h1(ee,oe,y?void 0:re):d1(ee,oe,y?void 0:re));else if(ee instanceof na){var ue=a.oldParam===!0;typeof oe=="number"&&re instanceof Wi&&(y?(re.isSelected=!1,re.isHighlighted=!1,re.Wb(),ee.pc(ue?oe:-1,re,ue)):ee.oi(oe,re,ue))}else ee instanceof $t?typeof oe=="number"&&re instanceof na&&(y?this.Wa.mb(oe):(re.Xe(this),this.Wa.Gb(oe,re))):at("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Ca){var fe=a.object,Se=a.oldParam,Pe=a.oldValue;if(fe instanceof $n)typeof Se=="number"&&Pe instanceof kt?y?fe.Gb(Se,Pe):fe.pc(Se):typeof Se=="number"&&Pe instanceof Qa&&(Pe.isRow?h1(fe,Se,y?Pe:void 0):d1(fe,Se,y?Pe:void 0));else if(fe instanceof na){var Ee=a.newParam===!0;typeof Se=="number"&&Pe instanceof Wi&&(y?0>fe.Pa.indexOf(Pe)&&fe.oi(Se,Pe,Ee):(Pe.isSelected=!1,Pe.isHighlighted=!1,Pe.Wb(),fe.pc(Ee?Se:-1,Pe,Ee)))}else fe instanceof $t?typeof Se=="number"&&Pe instanceof na&&(y?(Pe.Xe(this),this.Wa.Gb(Se,Pe)):this.Wa.mb(Se)):at("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==Bs&&at("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},$t.prototype.Ea=function(a){return this.undoManager.Ea(a)},$t.prototype.eb=function(a){return this.undoManager.eb(a)},$t.prototype.Kf=function(){return this.undoManager.Kf()},$t.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}},$t.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},$t.prototype.rp=function(){this.partManager.rp()};function Yg(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,wh(a),a.N(),a.Ee=!0,b.zb&&(Ls(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,wh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,oe=a.zoomPoint.x,re=a.zoomPoint.y,le=a.contentAlignment;isNaN(oe)&&(le.$c()?le.Hf(ou)?oe=0:le.Hf(js)&&(oe=z-1):oe=le.sb()?le.x*(z-1):z/2),isNaN(re)&&(le.$c()?le.Hf(Zl)?re=0:le.Hf(Ys)&&(re=ee-1):re=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=Ke.allocAt(a.pa.x+oe/y-oe/x,a.pa.y+re/y-re/x),a.position=z,Ke.free(z),a.Ca=x,wh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Jl(a,!1),b.zb&&(Ls(b)||b.ce.add(b.H,"scale",y,a.Ca))}}$t.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!==$s||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Rr&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),rr(E,this)),this.vb||this.invalidateViewport(a,y),xh(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 xh(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=ti.alloc(),E=1,z=1,ee=x.O.s,oe=ee.length,re=0;re<oe;re++){var le=ee[re],ue=Math.abs(le.interval);2>ue||(pv(le.figure)?z=z*ue/Bt.vx(z,ue):E=E*ue/Bt.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=vn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){vn.free(y);return}E=y.width,z=y.height,a=y.x,ee=y.y,vn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Ke.alloc(),Bt.No(a,ee,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),ti.free(b),x.part.location=y,Ke.free(y)}}$t.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)}},$t.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))},$t.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 Wi||at("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 Wi||at("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},$t.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()}},be=$t.prototype,be.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},be.Jz=function(a){a=new Mn().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 Wi||at("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},be.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Ke.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)),Ke.free(z);return}at("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):at("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Ke.free(z)},be.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)},be.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},be.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)},be.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,ee=y.m11,oe=y.m12,re=y.m21,le=y.m22,ue=y.dx,fe=y.dy,Se=x*ee+b*re+ue;y=x*oe+b*le+fe;var Pe=E*ee+b*re+ue;return a=E*oe+b*le+fe,b=x*ee+z*re+ue,x=x*oe+z*le+fe,ee=E*ee+z*re+ue,E=E*oe+z*le+fe,z=Math.min(Se,Pe),Se=Math.max(Se,Pe),Pe=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Se=Math.max(Se,b),Pe=Math.min(Pe,x),y=Math.max(y,x),z=Math.min(z,ee),Se=Math.max(Se,ee),Pe=Math.min(Pe,E),y=Math.max(y,E),new vn(z,Pe,Se-z,y-Pe)},be.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),Lo(a.copy(),this.Ab)};function om(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Jg(a){return a=ng.get(a),a!==null?new a:new br}$t.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===Bs&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(re){return re.diagram=E}),a.mouseMoveTools.each(function(re){return re.diagram=E}),a.mouseUpTools.each(function(re){return re.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===Bs){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),xs(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ds(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&&(om(this),this.As.clear(),ba(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var oe=this;fn(function(){oe.currentTool.standardMouseOver(),oe.Rt=!1},10)}}}finally{this.aa=!0}}}};function jc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)nc(a,y[b])}function nc(a,y){if(y instanceof xl){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Mn&&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 $g(a,y){if(y instanceof xl){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 Mn&&x.Bg.remove(a),pg(b));break}}}}}$t.prototype.Wd=function(){this.partManager.Wd()},$t.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},$t.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},$t.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},$t.prototype.Vb=function(a){return this.partManager.Vb(a)},$t.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},be=$t.prototype,be.Lc=function(a){return this.partManager.Lc(a)},be.ii=function(a){return this.partManager.ii(a)},be.Kc=function(a){return this.partManager.Kc(a)},be.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:Dt(Ei(y)))},be.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:Dt(Ei(y)))};function wh(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 Qg(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Jl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}be.Va=function(){if(this.Zi){var a=vn.alloc();Qg(this,this.computeBounds(a)),vn.free(a)}},be.rz=function(){for(var a=new Mn,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},be.qz=function(){return this.ai.iterator},be.Uz=function(a){xs(this),a&&Qf(this,!0),this.ld?_g(this,!1):(this.Jk=!0,ml(this))};function Qf(a,y){for(var x=a.ai.iterator;x.next();)rm(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function rm(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)rm(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function _g(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||Is(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)qg(a,ee.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),xs(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||ds(z),a.aa=x}}}function qg(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)qg(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)}}be.yz=function(){for(var a=new Ln,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function tv(a){function y(E){var z=E.toLowerCase(),ee=new Ln;x.add(E,ee),x.add(z,ee),b.add(E,E),b.add(z,E)}var x=new di,b=new di;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 am(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function _f(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;at("Unknown DiagramEvent name: "+y)}be.Bj=function(a,y){return a=_f(this,a),a!==null&&a.add(y),this},be.am=function(a,y){a=_f(this,a),a!==null&&a.remove(y)},be.R=function(a,y,x){var b=_f(this,a),E=new Eu;if(E.diagram=this,a=am(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 qf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}be.Yj=function(a,y){return eg(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},$t.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Ac(this,a):a.assign(this.documentBounds)};function eg(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Fp(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=sm(a,x)),x===null){y=vn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,oe=ee.layer;oe!==null&&oe.visible&&!oe.isTemporary&&tg(a,ee,b,y)}vn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=vn.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof li&&tg(a,ee,b,y);vn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&oS(E);return E}function sm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?sm(a,y.containingGroup):null}function tg(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(wg(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(Rd,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Rd}else if(y instanceof co)for(y=y.memberParts;y.next();)E=y.value,E instanceof li&&tg(a,E,x,b)}}function Ld(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}$t.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():ep(this)};function ep(a){a.vk===-1&&(a.vk=fn(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=vn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Qg(a,y),vn.free(y),a.Fc=!0,a.bd(),ep(a))}},a.vp))}$t.prototype.ug=function(){this.vk!==-1&&(Ye.clearTimeout(this.vk),this.vk=-1)},$t.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=vn.allocAt(0,0,b.width*E,b.height*E);var z=Ke.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(Do)||(y=new Ke(y.x+z.x/E,y.y+z.y/E)),vn.free(b),Ke.free(z),y},be=$t.prototype,be.Cs=function(){return null},be.av=function(){return null},be.bs=function(a,y){this.pj.add(a,y)},be.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof co&&(y.$p=null)})};function mf(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>re?y(x,E,oe):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 oe=a,re=x.callbackTimeout||300,le=+new Date;return Ye.requestAnimationFrame(function(){b()}),null}be.Wz=function(a){return xa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},be.Jx=function(a){return a===void 0&&(a={}),mf(this,this.Xz,a)},be.Xz=function(a,y,x){var b=lm(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 Wc+"data":E=b.getImageData(0,0,x.width,x.height);break;case Wc:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&at('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 lm(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&at("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 ti(1/0,1/0):new ti(2e3,2e3));var oe=y.position||null,re=y.parts||null,le=y.padding===void 0?1:y.padding,ue=y.background||null,fe=y.omitTemporary;fe===void 0&&(fe=!0);var Se=y.document||document,Pe=y.elementFinished||null,Ee=y.showTemporary;Ee===void 0&&(Ee=!fe),y=y.showGrid,y===void 0&&(y=Ee),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof le=="number"?le=new vi(le):le instanceof vi||at("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 ku(null,Se,void 0,!0);var Te=fe.context;if(!(E||z||re||oe))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=Se,b.hs=Pe,Ua(a,b.context,le,new ti(fe.width,fe.height),a.Ca,a.pa,re,ue,Ee,y),b.context):(a.Xm=!1,Ua(a,Te,le,new ti(fe.width,fe.height),a.Ca,a.pa,re,ue,Ee,y),a.Xm=!0,fe.context);var _e=a.Pp,Ge=a.documentBounds.copy();if(Ge.Fv(a.yb),Ee)for(var st=a.Wa.s,ut=st.length,pt=0;pt<ut;pt++){var Nt=st[pt];if(Nt.visible&&Nt.isTemporary){Nt=Nt.Pa.s;for(var Qt=Nt.length,ri=0;ri<Qt;ri++){var Si=Nt[ri];Si.isInDocumentBounds&&Si.isVisible()&&(Si=Si.actualBounds,Si.w()&&Ge.ed(Si))}}}if(st=new Ke(Ge.x,Ge.y),re!==null){for(ut=new vn(0,0,0,0),pt=!0,Nt=re.iterator,Nt.reset();Nt.next();)Qt=Nt.value,Qt instanceof Wi&&(ri=Qt.layer,ri!==null&&!ri.visible||ri!==null&&!Ee&&ri.isTemporary||!Qt.isVisible()||(Qt=Qt.actualBounds,Qt.w()&&(pt?(pt=!1,ut.assign(Qt)):ut.ed(Qt))));Ge.width=ut.width,Ge.height=ut.height,st.x=ut.x,st.y=ut.y}return oe!==null&&oe.w()&&(st=oe,z||(z=_e)),ut=oe=0,le!==null&&(oe=le.left+le.right,ut=le.top+le.bottom),pt=Nt=0,E!==null&&(Nt=E.width,pt=E.height,isFinite(Nt)&&(Nt=Math.max(0,Nt-oe)),isFinite(pt)&&(pt=Math.max(0,pt-ut))),E!==null&&z!==null?(z==="NaN"&&(z=_e),E.w()?(E=Nt,Ge=pt):isNaN(pt)?(E=Nt,Ge=Ge.height*z):(E=Ge.width*z,Ge=pt)):E!==null?E.w()?(z=Math.min(Nt/Ge.width,pt/Ge.height),E=Nt,Ge=pt):isNaN(pt)?(z=Nt/Ge.width,E=Nt,Ge=Ge.height*z):(z=pt/Ge.height,E=Ge.width*z,Ge=pt):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-oe)/Ge.width,(ee.height-ut)/Ge.height),z>_e?(z=_e,E=Ge.width,Ge=Ge.height):(E=ee.width,Ge=ee.height)):(E=Ge.width*z,Ge=Ge.height*z):(z=_e,E=Ge.width,Ge=Ge.height),le!==null?(E+=oe,Ge+=ut):le=new vi(0),ee!==null&&(_e=ee.width,ee=ee.height,isNaN(_e)&&(_e=2e3),isNaN(ee)&&(ee=2e3),isFinite(_e)&&(E=Math.min(E,_e)),isFinite(ee)&&(Ge=Math.min(Ge,ee))),fe.width=Math.ceil(E),fe.height=Math.ceil(Ge),x==="SVG"?b===null?null:(b.resize(fe.width,fe.height,fe.width,fe.height),b.ownerDocument=Se,b.hs=Pe,Ua(a,b.context,le,new ti(Math.ceil(E),Math.ceil(Ge)),z,st,re,ue,Ee,y),b.context):(a.Xm=!1,Ua(a,Te,le,new ti(Math.ceil(E),Math.ceil(Ge)),z,st,re,ue,Ee,y),a.Xm=!0,fe.context)}Re.Object.defineProperties($t.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pe||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Ph(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 Ph(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),oh===this&&(oh=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Nc(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)&&Hn(a,"0 <= value <= 1",$t,"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),Jl(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),Jl(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),Jl(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),Jl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Hn(a,">= 0",$t,"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&&Hn(a,">= 0",$t,"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 Hn(a,">= 0",$t,"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||om(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&&at("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=Pd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Is(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=Jg(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=Ke.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Ms(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?wh(this):(this.vb=!0,a=this.scale,pf(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)}Ke.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=ff(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=ff(this)),a.type!==$n.Grid&&at("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),xh(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),wh(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||at("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===Md&&Jl(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,Jl(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,Yg(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&&Yg(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!==$s&&Jl(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()||at("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()||at("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)):Hn(a,"> 0",$t,"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)):Hn(a,"> 0",$t,"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),Jl(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&&at("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();)yp(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Fd&&a!==Ja&&a!==ig&&at("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 ti(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))}}}),Re.Object.defineProperties($t,{licenseKey:{get:function(){return ap.jc()},set:function(a){ap.add(a.replace(/\s/g,""))}},version:{get:function(){return Hc}}}),$t.prototype.makeImageData=$t.prototype.Jx,$t.prototype.makeImage=$t.prototype.Wz,$t.prototype.cacheGroupExternalLinks=$t.prototype.Fu,$t.prototype.addRenderer=$t.prototype.bs,$t.prototype.makeSVG=$t.prototype.av,$t.prototype.makeSvg=$t.prototype.Cs,$t.prototype.stopAutoScroll=$t.prototype.ug,$t.prototype.doAutoScroll=$t.prototype.gs,$t.prototype.isUnoccupied=$t.prototype.Yj,$t.prototype.raiseDiagramEvent=$t.prototype.R,$t.prototype.removeDiagramListener=$t.prototype.am,$t.prototype.addDiagramListener=$t.prototype.Bj,$t.prototype.findTreeRoots=$t.prototype.yz,$t.prototype.layoutDiagram=$t.prototype.Uz,$t.prototype.findTopLevelGroups=$t.prototype.qz,$t.prototype.findTopLevelNodesAndLinks=$t.prototype.rz,$t.prototype.ensureBounds=$t.prototype.Va,$t.prototype.findLinksByExample=$t.prototype.ls,$t.prototype.findNodesByExample=$t.prototype.ms,$t.prototype.findLinkForData=$t.prototype.Kc,$t.prototype.findNodeForData=$t.prototype.ii,$t.prototype.findPartForData=$t.prototype.Lc,$t.prototype.findLinkForKey=$t.prototype.findLinkForKey,$t.prototype.findNodeForKey=$t.prototype.Vb,$t.prototype.findPartForKey=$t.prototype.findPartForKey,$t.prototype.rebuildParts=$t.prototype.Wd,$t.prototype.transformViewToDoc=$t.prototype.Ps,$t.prototype.transformRectDocToView=$t.prototype.zA,$t.prototype.transformDocToView=$t.prototype.op,$t.prototype.centerRect=$t.prototype.es,$t.prototype.scrollToRect=$t.prototype.tv,$t.prototype.scroll=$t.prototype.scroll,$t.prototype.highlightCollection=$t.prototype.Jz,$t.prototype.highlight=$t.prototype.Iz,$t.prototype.selectCollection=$t.prototype.rA,$t.prototype.select=$t.prototype.select,$t.prototype.updateAllRelationshipsFromData=$t.prototype.rp,$t.prototype.updateAllTargetBindings=$t.prototype.updateAllTargetBindings,$t.prototype.commit=$t.prototype.commit,$t.prototype.rollbackTransaction=$t.prototype.Kf,$t.prototype.commitTransaction=$t.prototype.eb,$t.prototype.startTransaction=$t.prototype.Ea,$t.prototype.raiseChanged=$t.prototype.g,$t.prototype.raiseChangedEvent=$t.prototype.cb,$t.prototype.removeChangedListener=$t.prototype.ik,$t.prototype.addChangedListener=$t.prototype.Pe,$t.prototype.removeModelChangedListener=$t.prototype.mA,$t.prototype.addModelChangedListener=$t.prototype.Yw,$t.prototype.findLayer=$t.prototype.Qj,$t.prototype.removeLayer=$t.prototype.kA,$t.prototype.addLayerAfter=$t.prototype.Cy,$t.prototype.addLayerBefore=$t.prototype.Ww,$t.prototype.addLayer=$t.prototype.Al,$t.prototype.moveParts=$t.prototype.moveParts,$t.prototype.copyParts=$t.prototype.Kj,$t.prototype.removeParts=$t.prototype.Is,$t.prototype.remove=$t.prototype.remove,$t.prototype.add=$t.prototype.add,$t.prototype.clearDelayedGeometries=$t.prototype.bx,$t.prototype.setProperties=$t.prototype.nm,$t.prototype.attach=$t.prototype.Du,$t.prototype.set=$t.prototype.set,$t.prototype.resetInputOptions=$t.prototype.Sx,$t.prototype.setInputOption=$t.prototype.sA,$t.prototype.getInputOption=$t.prototype.Ql,$t.prototype.resetRenderingHints=$t.prototype.Tx,$t.prototype.setRenderingHint=$t.prototype.Xx,$t.prototype.getRenderingHint=$t.prototype.Gf,$t.prototype.maybeUpdate=$t.prototype.bd,$t.prototype.requestUpdate=$t.prototype.$b,$t.prototype.delayInitialization=$t.prototype.Xy,$t.prototype.isUpdateRequested=$t.prototype.Pz,$t.prototype.invalidateDocumentBounds=$t.prototype.Ya,$t.prototype.findObjectsNear=$t.prototype.og,$t.prototype.findPartsNear=$t.prototype.mz,$t.prototype.findObjectsIn=$t.prototype.Cf,$t.prototype.findPartsIn=$t.prototype.ux,$t.prototype.findObjectsAt=$t.prototype.ji,$t.prototype.findPartsAt=$t.prototype.lz,$t.prototype.findObjectAt=$t.prototype.ic,$t.prototype.findPartAt=$t.prototype.Ol,$t.prototype.focusObject=$t.prototype.zz,$t.prototype.alignDocument=$t.prototype.Jy,$t.prototype.zoomToRect=$t.prototype.BA,$t.prototype.zoomToFit=$t.prototype.zoomToFit,$t.prototype.diagramScroll=$t.prototype.kx,$t.prototype.focus=$t.prototype.focus;var ng=new di,um=null,xa=Ye.document!==void 0,zc=null,ic="",$s=new nn($t,"None",0),Ql=new nn($t,"Uniform",1),oc=new nn($t,"UniformToFill",2),vf=new nn($t,"CycleAll",10),tp=new nn($t,"CycleNotDirected",11),np=new nn($t,"CycleNotDirectedFast",12),ip=new nn($t,"CycleNotUndirected",13),op=new nn($t,"CycleDestinationTree",14),rp=new nn($t,"CycleSourceTree",15),Md=new nn($t,"DocumentScroll",1),yf=new nn($t,"InfiniteScroll",2),Fd=new nn($t,"TreeParentCollapsed",21),Ja=new nn($t,"AllParentsCollapsed",22),ig=new nn($t,"AnyParentsCollapsed",23),ap=new Ln,Hc="2.3.10",Wc="image",Sf=null,hm=!1;function Gs(){if(xa){var a=Ye.document.createElement("canvas"),y=a.getContext("2d"),x=Yt("7ca11abfd022028846");y[x]=Yt("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",Wt.Dx+"4ae6247590da4bb21c324ba3a84e385776",Mo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Bt.za],E=1;5>E;E++)y[Yt("7ca11abfd7330390")](Yt(b[E-1]),10,15*E);for(y[x]=Yt("39f046ebb36e4b"),x=1;5>x;x++)y[Yt("7ca11abfd7330390")](Yt(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Mo.prototype.Cd=Mo.prototype.Eu),Sf=a}}$t.className="Diagram",$t.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ye.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof $t?y.H:null},$t.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},$t.useDOM=function(a){xa=a?Ye.document!==void 0:!1},$t.isUsingDOM=function(){return xa},$t.None=$s,$t.Uniform=Ql,$t.UniformToFill=oc,$t.CycleAll=vf,$t.CycleNotDirected=tp,$t.CycleNotDirectedFast=np,$t.CycleNotUndirected=ip,$t.CycleDestinationTree=op,$t.CycleSourceTree=rp,$t.DocumentScroll=Md,$t.InfiniteScroll=yf,$t.TreeParentCollapsed=Fd,$t.AllParentsCollapsed=Ja,$t.AnyParentsCollapsed=ig;function dm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Gc(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[Yt("76a715b2f73f148a")][Yt("72ba13b5")]||"";if(a.Rc=!0,xa){var b=$t[Yt("76a115b6ed251eaf4692")];if(b)for(var E=ap.iterator;E.next()&&(b=E.value,b=Yt(b).split(Yt("39e9")),!(6>b.length));){var z=Yt(b[1]).split(".");if(b[4]!=="7da71ca0")break;var ee=Yt(Wt[Yt("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var oe=Ye[Yt("74a900bae4370f8b51")][Yt("6fbb13a1c2311e8a57")].toLowerCase();if(ee=oe[Yt("73a612b6fb191d")](Yt("3aad1ab6e022098b4dc4")),z=Yt(b[2]),-1<ee&&(oe=oe[Yt("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<oe&&oe<ee),!a.Rc))break;for(ee=x[Yt("76ad18b4f73e")],oe=x[Yt("73a612b6fb191d")](Yt("35e7"))+2;oe<ee;oe++)y+=x[oe];if(ee=y[Yt("73a612b6fb191d")](z),0>ee&&z!==Yt("7da71ca0ad381e90")&&(ee=y[Yt("73a612b6fb191d")](Yt("76a715b2ef3e149757"))),0>ee&&(ee=y[Yt("73a612b6fb191d")](Yt("76a715b2ef3e149757"))),0>ee&&(ee=y[Yt("73a612b6fb191d")](Yt("2bfa41fdb3784bca12"))),0>ee&&(ee=x[Yt("73a612b6fb191d")](Yt("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[Yt("73a612b6fb191d")](Yt("35"))||y[Yt("73a612b6fb191d")](Yt("35"))===-1),!a.Rc||x[Yt("73a612b6fb191d")](Yt("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Yt("73a612b6fb191d")](z)),!a.Rc)||(ee=Ye[Yt("76a715b2f73f148a")][Yt("69ad17a1e03e")],oe=ee[Yt("73a612b6fb191d")](Yt("7fb002b6ed25128b4da25b2e")),-1<oe&&(a.Rc=!(ee[Yt("73a612b6fb191d")](z)>oe),!a.Rc)))break;if(z[0]==="#"){ee=Ye.document.createElement("div");for(var re=b[0].replace(/[A-Za-z]/g,"");4>re.length;)re+="9";if(oe=re,re=re.substr(re.length-4),b="",b+=["gsh","gsf"][parseInt(re.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(re.substr(0,1),10)%4],ee[Yt("79a417a0f0181a8946")]=b,Ye.document[Yt("78a712aa")]){Ye.document[Yt("78a712aa")][Yt("7bb806b6ed32388c4a875b")](ee),re=Ye.getComputedStyle(ee).getPropertyValue(Yt("78a704b7e62456904c9b12701b6532a8"));var le=Ye.getComputedStyle(ee).getPropertyValue(Yt("75b817b0ea2202"));if(Ye.document[Yt("78a712aa")][Yt("68ad1bbcf533388c4a875b")](ee),re){if(ee=Ye[Yt("77a902b0eb1b1e804a8a")],le==="0."+parseInt(oe,10)%100||re.indexOf(parseInt(z[1]+z[2],16))!==-1&&re.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(Yt("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[Yt("76ad18b4f73e")],E=x[Yt("73a612b6fb191d")](Yt("35e7"))+2;E<ue;E++)y+=x[E];x=y[Yt("73a612b6fb191d")](Yt("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Yt("73a612b6fb191d")](Yt("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function ld(a){this.j=a===void 0?new Ke:a,this.o=new Ke}Re.Object.defineProperties(ld.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 xf="DraggingInfo";ld.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 ti(NaN,NaN).freeze(),this.gridSnapCellSpot=_r,this.gridSnapOrigin=new Ke(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function ce(a,y){if(typeof a=="string"||Ye.Element&&a instanceof Element)var x=$t.call(this,a)||this;else x=$t.call(this)||this,y=a;return de(x),y&&x.nm(y),x}Pt(ce,$t);function de(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=es,a.layout=new Ps}ce.prototype.reset=function(){$t.prototype.reset.call(this),de(this)},ce.className="Palette";function pe(a,y){if(typeof a=="string"||Ye.Element&&a instanceof Element)var x=$t.call(this,a)||this;else x=$t.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 Wi;var E=new Eo;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 qe,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var ee=z.viewportBounds,oe=b.lastInput.documentPoint;z.position=new Ke(oe.x-ee.width/2,oe.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=Ql,x.vb=!1,y&&Object.assign(x,y),x}Pt(pe,$t),pe.prototype.computePixelRatio=function(){return 1},pe.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(cu(this),this.ql===null){var x=new ku(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),Me(this)}finally{this.ta=a,this.ib=y}}}$t.prototype.redraw.call(this)},pe.prototype.gc=function(){if(this.Ka===null&&at("No div specified"),this.ta===null&&at("No canvas specified"),!(this.ta instanceof Ph)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){cu(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?Me(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 Me(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=vn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),xh(y,E),vn.free(E),xs(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 oe=y[ee],re=a;if(oe.visible&&oe.opacity!==0){var le=oe.diagram.grid.part;if(!x&&oe.isTemporary)b&&le.layer===oe&&(oe=Ns(oe,E),le.gc(E,re),E.globalAlpha=oe);else{for(var ue=Ns(oe,E),fe=re.scale,Se=vn.alloc(),Pe=oe.Pa.s,Ee=Pe.length,Te=0;Te<Ee;Te++){var _e=Pe[Te];(b||_e!==le)&&oe.Oj(E,_e,re,null,fe,Se,!1)}vn.free(Se),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=ti.alloc();E.h(x.width,x.height),b.desiredSize=E,ti.free(E),a=2/a.scale,b instanceof Eo&&(b.strokeWidth=a),y.location=new Ke(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return no;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pe.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),ze(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=b,this.R("ViewportBoundsChanged",this.fc,a))},Re.Object.defineProperties(pe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pe&&at("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,b=this.ib;x&&b&&(b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,x.width,x.height))}else this.Ha(null),ze(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),ze(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),pe.className="Overview";function qe(){aa.call(this),this.j=null}Pt(qe,aa),qe.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 Ke(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Ke(a.x-this.j.x,a.y-this.j.y)),!0)},qe.prototype.doActivate=function(){this.j=null,aa.prototype.doActivate.call(this)},qe.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},qe.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 Ke(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Ke(a.x-this.j.x,a.y-this.j.y)}}},qe.className="OverviewDraggingTool";function Qe(){ro(this),this.H=oh,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}Qe.prototype.toString=function(){return"CommandHandler"},Qe.prototype.Xe=function(a){this.H=a},Qe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Di?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()},Qe.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Qe.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Rr&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Qe.prototype.canStopCommand=function(){return!0},Qe.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=""}},Qe.prototype.canSelectAll=function(){return this.diagram.allowSelect},Qe.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 Mn,x=a.selection.iterator;x.next();)lc(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=""}},Qe.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Qe.prototype.copySelection=function(){var a=this.diagram,y=new Mn;for(a=a.selection.iterator;a.next();)lc(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Qe.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Qe.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Qe.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Qe.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)zc=null,ic="";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 Ln,x.addAll(z),zc=x,ic=y.model.dataFormat}}y.R("ClipboardChanged",x)},Qe.prototype.pasteFromClipboard=function(){var a=new Mn,y=zc;if(y===null)return a;var x=this.diagram;if(ic!==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},Qe.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var b=x.iterator;b.next();)b.value.isSelected=!0;if(a!==null){var E=y.computePartsBounds(y.selection);if(E.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);Sh(y,z,new Ke(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=""}},Qe.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||zc===null||zc.count===0||ic!==a.model.dataFormat)},Qe.prototype.undo=function(){this.diagram.undoManager.undo()},Qe.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Qe.prototype.redo=function(){this.diagram.undoManager.redo()},Qe.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Qe.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===$s&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Qe.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==$s?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Qe.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===$s&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Qe.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==$s?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Qe.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Qe.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Qe.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Is(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()),ds(y)},Qe.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Qe.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(re){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;Is(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=St(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 re=E.pop();0<E.length&&re instanceof li&&re.isTreeExpanded&&(!(re instanceof co)||re.isSubGraphExpanded);)re=E.pop();0<E.length?(re instanceof Wi&&y.tv(re.actualBounds),re instanceof li&&!re.isTreeExpanded&&(re.isTreeExpanded=!0),re instanceof co&&!re.isSubGraphExpanded&&(re.isSubGraphExpanded=!0)):(re instanceof Wi&&y.es(re.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){fn(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",ee),z()}}else{var oe=y.position.copy();y.es(a.actualBounds),oe.Xa(y.position)&&x.Cc()}}};function St(a,y,x){if(y.isVisible())return x;if(y instanceof ur)St(a,y.adornedPart,x);else if(y instanceof ei){var b=y.fromNode;b!==null&&St(a,b,x),y=y.toNode,y!==null&&St(a,y,x)}else y instanceof li&&(b=y.labeledLink,b!==null&&St(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),St(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),St(a,y,x));return x}Qe.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Wi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Qe.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Is(y.animationManager,"Collapse Tree");var x=new Ln;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 li&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Qe.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof li&&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 li&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Qe.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Is(y.animationManager,"Expand Tree");var x=new Ln;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 li&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Qe.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof li)||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 li&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Qe.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 Ln,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&E.add(ee)}for(var oe=new Ln,re=E.iterator;re.next();){var le=re.value;z=!1;for(var ue=E.iterator;ue.next();)if(le.Td(ue.value)){z=!0;break}z||oe.add(le)}if(0<oe.count){var fe=oe.first().containingGroup;if(fe!==null)for(;fe!==null;){E=!1;for(var Se=oe.iterator;Se.next();)if(!Se.value.Td(fe)){E=!0;break}if(E)fe=fe.containingGroup;else break}if(x instanceof co)Au(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Pe=y.copyNodeData(x);jt(Pe)&&(y.xf(Pe),b=a.ii(Pe))}if(b!==null){fe!==null&&this.isValidMember(fe,b)&&(b.containingGroup=fe);for(var Ee=oe.iterator;Ee.next();){var Te=Ee.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=""}}}},Qe.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 mn(a){var y=en();for(a=a.iterator;a.next();){var x=a.value;x instanceof ei||y.push(x)}a=new Mn,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 xn(y),a}Qe.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof ei)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},Qe.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 Ln;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof co&&z.canUngroup()&&b.add(z)}var ee=new Ln;if(0<b.count){y.clearSelection(!0);for(var oe=b.iterator;oe.next();){var re=oe.value;re.expandSubGraph();var le=re.containingGroup,ue=le!==null&&le.data!==null?x.wa(le.data):void 0;ee.addAll(re.memberParts);for(var fe=ee.iterator;fe.next();){var Se=fe.value;if(Se.isSelected=!0,!(Se instanceof ei)){var Pe=Se.data;Pe!==null?x.mp(Pe,ue):Se.containingGroup=le}}y.remove(re)}}y.R("SelectionUngrouped",b,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Qe.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 co))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof co&&y.canUngroup())return!0;return!1},Qe.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=mn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Qe.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Is(y.animationManager,"Collapse SubGraph");var x=new Ln;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 co&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Qe.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof co&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof co&&y.isSubGraphExpanded)return!0;return!1},Qe.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Is(y.animationManager,"Expand SubGraph");var x=new Ln;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 co&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Qe.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof co&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof co&&!y.isSubGraphExpanded)return!0;return!1},Qe.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 jr&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Qe.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 jr))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 jr&&x.editable}),a!==null))return!0;return!1},Qe.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 kt?E=a.ga(Uo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Ke(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,Tr(x,!1,a)}},Qe.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)},Qe.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 di,a===null)return b;for(var z=a.iterator;z.next();)Fu(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 ei&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Re.Object.defineProperties(Qe.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||at("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}}}),Qe.className="CommandHandler",ad=function(){return new Qe};function kt(){ro(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Ke(NaN,NaN).freeze(),this.jd=Ar,this.Ab=new Mo,this.wh=new Mo,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=qa,this.uc=new vn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new vn(NaN,NaN,NaN,NaN).freeze(),this.dc=new vn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=sr,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 Yn,Zn,Li,Oi,Ui,mo,Zo,To,qo,kr;kt.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=It(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},kt.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)},kt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},kt.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},kt.prototype.copy=function(){return this.clone()},be=kt.prototype,be.qb=function(a){a.classType===ei?a.name.indexOf("Orient")===0?this.segmentOrientation=a:at("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===kt&&(this.stretch=a)},be.toString=function(){return Pn(this.constructor)+"#"+_i(this)},be.th=function(){this.A!==null&&(this.A.nc=!0)};function Ao(a){a.A===null?a.A=new Pf:a.A.nc&&(a.A=a.A.copy())}be.Xc=function(){if(this.ba===null){var a=new sp;a.Xi=Jr,a.yj=Jr,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},be.cb=function(a,y,x,b,E,z,ee){var oe=this.part;if(oe!==null&&(oe.gk(a,y,x,b,E,z,ee),x===this&&a===Kr&&ks(this)&&Xr(this,oe,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 di),ee=z.undoManager.transactionLevel===0,a.startCondition===Ss?ee=!0:a.startCondition===ja&&(ee=!1),ee?(z=new ya,la(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()):(Is(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof $n&&x===oe&&(oe.l&16777216)!==0&&oe.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)oe=x[E],oe instanceof $n&&Uc(oe,function(re){re.data!==null&&re.l&16777216&&re.La(y)})};function Xr(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=LS(z,b,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,oe.model.modelData,x,b)}else{if(oe=b.data,oe===null)continue;var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,oe,x,b)}ee===a&&(oe=b.ks(z.Ai),oe!==null&&z.Mv(oe,ee,x))}}be.ks=function(a){return this.bindingId===a?this:null},be.g=function(a,y,x){this.cb(Kr,a,this,y,x)},be.Ge=function(a,y,x,b){var E=this.uc;if(E.h(a,y,x,b),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new Mo);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function as(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}be.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?dr(a.x,a.y,0,0,0,b.height)<=y||dr(a.x,a.y,0,b.height,b.width,b.height)<=y||dr(a.x,a.y,b.width,b.height,b.width,0)<=y||dr(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},be.se=function(){return!0},be.ca=function(a){var y=Ke.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Ke.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),ee=z/2,oe=this.naturalBounds;b=this.Df()*b.scale;var re=1/b;if(oe.width*b<E&&oe.height*b<E)return a=Ko(x.x-ee*re,x.y-ee*re,x.width+z*re,x.height+z*re,y.x,y.y),Ke.free(y),a}return E=!1,(this instanceof ur||this instanceof Eo?Ko(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?E=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?E=!0:E=this.gh(a)),Ke.free(y),E},be.gh=function(a){var y=this.naturalBounds;return Ko(0,0,y.width,y.height,a.x,a.y)},be.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=vn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Ke.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)))),Ke.free(E),vn.free(y),b},be.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Ke.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)))),Ke.free(E),b},be.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Ke.allocAt(0,0),E=Ke.allocAt(0,x.height),z=Ke.allocAt(x.width,x.height),ee=Ke.allocAt(x.width,0),oe=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))oe=!0;else{x=vn.allocAt(0,0,x.width,x.height);var re=Ke.allocAt(a.x,a.y);x.ca(y.Cd(re))?oe=!0:(re.h(a.x,a.bottom),x.ca(y.Cd(re))?oe=!0:(re.h(a.right,a.bottom),x.ca(y.Cd(re))?oe=!0:(re.h(a.right,a.y),x.ca(y.Cd(re))&&(oe=!0)))),Ke.free(re),vn.free(x),!oe&&(Bt.us(a,b,E)||Bt.us(a,E,z)||Bt.us(a,z,ee)||Bt.us(a,ee,b))&&(oe=!0)}return Ke.free(b),Ke.free(E),Ke.free(z),Ke.free(ee),oe},be.ga=function(a,y){if(y===void 0&&(y=new Ke),a instanceof xi){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},be.mi=function(a){a===void 0&&(a=new vn);var y=this.naturalBounds,x=this.oe,b=Ke.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),lo(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),lo(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),lo(a,b.x,b.y,0,0),Ke.free(b),a},be.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},be.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},be.qs=function(a,y){return y===void 0&&(y=new Ke),y.assign(a),this.oe.Cd(y),y},be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},be.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),oe=z.m22*ee,re=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),Se=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Bt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(ee=a*oe+y*le+fe,a=a*re+y*ue+Se,y=x*oe+b*le+fe,x=x*re+b*ue+Se,E.h(0,0),b=this.naturalBounds,x=Bt.Ff(0,0,b.width,b.height,ee,a,y,x,E),E.transform(z),x)},kt.prototype.measure=function(a,y,x,b){if(ql(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 oe=this instanceof $n;switch(yl(this,!0)){case Zn:ee=E=0,oe&&(y=a=1/0);break;case Yn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(ee=y);break;case Oi:isFinite(a)&&a>x&&(E=a),ee=0,oe&&(y=1/0);break;case Ui:isFinite(y)&&y>b&&(ee=y),E=0,oe&&(a=1/0)}oe=this.maxSize;var re=this.minSize;E>oe.width&&re.width<oe.width&&(E=oe.width),ee>oe.height&&re.height<oe.height&&(ee=oe.height),x=Math.max(E,re.width),b=Math.max(ee,re.height),oe.width<x&&(x=Math.min(re.width,x)),oe.height<b&&(b=Math.min(re.height,b)),a=Math.min(oe.width,a),y=Math.min(oe.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()||at("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),$a(this,!1)}},kt.prototype.Wl=function(){},kt.prototype.Dd=function(){return!1},kt.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=vn.alloc();z.assign(this.Ib),this.Ib.ka(),ol(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&&Ad(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 jr&&(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()||at("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Gh(this,!1),vn.free(z)},be=kt.prototype,be.eh=function(){};function Qs(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=yl(a,!0),x===b&&z===E&&(y=Zn),y){case Zn:(x>b||z>E)&&($a(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Yn:$a(a,!0),a.measure(b,E,0,0);break;case Oi:$a(a,!0),a.measure(b,z,0,0);break;case Ui:$a(a,!0),a.measure(x,E,0,0)}}}be.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||jv(x,!0),this.N(),xr(a,y)||(x.oh(),this.Pn(x)))},be.Pn=function(a){this.portId!==null&&(jv(a,!0),a instanceof li&&K1(a,this))},be.gc=function(a,y){if(!fu(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 $n&&Ad(this),ee=this.Ib;if(z){var oe=this.Ib,re=this.dc,le=this.areaBackground,ue=this.Ma;le===null&&ue===null||a.yc(),le!==null&&(Ea(this,a,le,!0,!0,re,oe),le instanceof wr&&le.type===mu?(a.beginPath(),a.rect(oe.x,oe.y,oe.width,oe.height),a.ng(le)):a.fillRect(oe.x,oe.y,oe.width,oe.height)),ue!==null&&(Ea(this,a,ue,!0,!1,re,oe),ue instanceof wr&&ue.type===mu?(a.beginPath(),a.rect(oe.x,oe.y,oe.width,oe.height),a.ng(ue)):a.fillRect(oe.x,oe.y,oe.width,oe.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,oe=this.panel,this.l&4096&&ws(this),le=this.part,re=!1;var fe=0;le&&y.Gf("drawShadows")&&(re=le.isShadowed)&&(ue=le.shadowOffset,fe=Math.max(ue.y,ue.x)*y.scale*y.Mb),ue=this.Dd();var Se;if(!(Se=y.$i||!ue)){var Pe=this.naturalBounds;Se=this.wh;var Ee=Se.m11,Te=Se.m21,_e=Se.dx,Ge=Se.m12,st=Se.m22,ut=Se.dy,pt,Nt=pt=0;Se=pt*Ee+Nt*Te+_e;var Qt=pt*Ge+Nt*st+ut;pt=Pe.width+fe,Nt=0;var ri=pt*Ee+Nt*Te+_e;pt=pt*Ge+Nt*st+ut,Nt=Math.min(Se,ri);var Si=Math.min(Qt,pt),mi=Math.max(Se+0,ri)-Nt,qn=Math.max(Qt+0,pt)-Si;Se=Nt,Qt=Si,pt=Pe.width+fe,Nt=Pe.height+fe,ri=pt*Ee+Nt*Te+_e,pt=pt*Ge+Nt*st+ut,Nt=Math.min(Se,ri),Si=Math.min(Qt,pt),mi=Math.max(Se+mi,ri)-Nt,qn=Math.max(Qt+qn,pt)-Si,Se=Nt,Qt=Si,pt=0,Nt=Pe.height+fe,ri=pt*Ee+Nt*Te+_e,pt=pt*Ge+Nt*st+ut,Nt=Math.min(Se,ri),Si=Math.min(Qt,pt),mi=Math.max(Se+mi,ri)-Nt,qn=Math.max(Qt+qn,pt)-Si,Se=Nt,Qt=Si,fe=y.viewportBounds,Pe=fe.x,Ee=fe.y,Se=!(Se>fe.width+Pe||Pe>mi+Se||Qt>fe.height+Ee||Ee>qn+Qt)}if(Se){if(Se=(this.l&256)!==0,a.clipInsteadOfFill&&(Se=!1),this instanceof jr&&(a.font=this.font),Se){if(Qt=oe.se()?oe.naturalBounds:oe.actualBounds,mi=Math.max(ee.x,Qt.x),qn=Math.max(ee.y,Qt.y),fe=Math.min(ee.right,Qt.right)-mi,Pe=Math.min(ee.bottom,Qt.bottom)-qn,Ee=this.tb,Ee!==null&&(mi=Ee.x,qn=Ee.y,fe=Ee.width,Pe=Ee.height),mi>ee.width+ee.x||ee.x>Qt.width+Qt.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(mi,qn,fe,Pe),a.clip()}if(ue){if(!le.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}re&&(Qt=le.shadowOffset,a.Ev(Qt.x*y.scale*this.scale*y.Mb,Qt.y*y.scale*this.scale*y.Mb,le.shadowBlur),ud(a),a.shadowColor=le.shadowColor)}re&&this.shadowVisible===!0?ud(a):re&&this.shadowVisible===!1&&Kh(a),le=this.naturalBounds,this.areaBackground!==null&&(a.yc(),_l(this,a,le,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),re&&ps(this,oe)&&this.shadowVisible===null&&Kh(a),this.Ma!==null&&(a.yc(),Nl(this,a,le,ee)),re&&(this.Ma!==null||this.areaBackground!==null||ps(this,oe))?(Ku(this,!0),this.shadowVisible===null&&Kh(a)):Ku(this,!1),this.hh(a,y),re&&this.l&512&&ud(a),ue&&re&&Kh(a),Se&&(a.restore(),a.Vc(this instanceof $n)),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 ps(a,y){return y===null?!1:(Ad(y)&&(y=y.panel),(y.l&512)!==0||(y.type===$n.Auto||y.type===$n.Spot)&&y.Pb()!==a)}be.Dv=function(){};function _l(a,y,x,b){Ea(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof wr&&a.areaBackground.type===mu?(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 Nl(a,y,x,b){var E=a.kq(),z=x.x,ee=x.y,oe=x.width+E,re=x.height+E;Ea(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof wr&&a.Ma.type===mu?(y.beginPath(),y.rect(z-E/2,ee-E/2,oe,re),y.ng(a.Ma)):y.fillRect(z-E/2,ee-E/2,oe,re)}function Ks(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===$n.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 fu(a,y,x){if(!(y instanceof Rl))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&&Ks(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),ud(y),y.shadowColor=a.shadowColor}a instanceof jr&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof $n;var oe=a instanceof $n?Ad(a):!1;a.l&4096&&ws(a);var re=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&oe?(lp(y,1,0,0,1,0,0),a.svg=y.ad):z?(lp(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):lp(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],_l(a,y,E,re),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?(oe&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),Nl(a,y,E,re),oe&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Nl(a,y,E,re)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,E=a.part,oe=!1,E&&x.Gf("drawShadows")&&(oe=E.isShadowed),y.clipInsteadOfFill&&(oe=!1),a.Dd()&&oe&&ud(y),oe&&a.shadowVisible===!0?ud(y):oe&&a.shadowVisible===!1&&Kh(y),E=a.panel,oe&&ps(a,E)&&a.shadowVisible===null&&Kh(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)),oe&&(a.Ma!==null||a.areaBackground!==null||ps(a,E))?(Ku(a,!0),a.shadowVisible===null&&Kh(y)):Ku(a,!1),E=oe,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,oe=z?a.svg:y.yd,le=a.svg,!z&&le!==null&&oe!==le&&le.parentNode===a.panel.svg?(a.svg.replaceWith(oe),a.svg=oe,oe!==null&&a.$o(y,b,re,oe),vl(y,le),!0):(a.svg=oe,ee!==null&&oe===null&&(fm(y),y.nh.pop()),oe===null||(a.$o(y,b,re,oe),y.Il&&(x=x.computePixelRatio(),a.Dv(oe,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&ud(y),a.Dd()&&Kh(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&oe.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&oe.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(oe):y.Nj.prepend(oe),y.ti=oe):b!==null&&Ks(a,b,oe),ee!==null&&ee(a,oe)),!0)}be.$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 oe=null;z!==null&&(oe=a.svg.getElementById(z.split("#")[1].slice(0,-1))),oe===null?(z="CLIP"+Go++,oe=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:ee,height:x}),this instanceof $n&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),oe.appendChild(y),a.svg.appendChild(oe),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=oe.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"),vl(a,b)};function vl(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function Zs(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Ei(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()}}be.hh=function(){},be.lv=function(){this.Uc=!0},be.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 $n?Ad(this):!1;if(!(this instanceof $n&&E))if(this instanceof xl){var z=this.bt;a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy],z!==null&&Jy(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",$y(a)):y.setAttributeNS(null,"transform",$y(a))}else if(!x||this instanceof $n)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Eo){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],_l(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&&gm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(gm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof $n))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Nl(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gm(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&&gm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},be.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 Ea(a,y,x,b,E,z,ee){if(x!==null){var oe=1,re=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===kd)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var le=a.kq();if(oe=z.width,re=z.height,E?(oe=ee.width,re=ee.height):b||(oe+=le,re+=le),(z=y instanceof Vc)&&x.xe&&(x.type===hg||x.yk===oe&&x.ft===re))var ue=x.xe;else{var fe=0,Se=0,Pe=0,Ee=0,Te=0,_e=0;if(_e=Te=0,E?(Te=ee.x,_e=ee.y):b||(Te-=le/2,_e-=le/2),fe=x.start.x*oe+x.start.offsetX,Se=x.start.y*re+x.start.offsetY,Pe=x.end.x*oe+x.end.offsetX,Ee=x.end.y*re+x.end.offsetY,fe+=Te,Pe+=Te,Se+=_e,Ee+=_e,x.type===dd)ue=y.createLinearGradient(fe,Se,Pe,Ee);else if(x.type===mu)_e=isNaN(x.endRadius)?Math.max(oe,re)/2:x.endRadius,isNaN(x.startRadius)?(Te=0,_e=Math.max(oe,re)/2):Te=x.startRadius,ue=y.createRadialGradient(fe,Se,Te,Pe,Ee,_e);else if(x.type===hg)try{ue=y.createPattern(x.pattern,"repeat")}catch(st){ue=null}if(x.type!==hg&&(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=oe,x.ft=re),ue===null&&x.type===hg&&x.yk!==-1)){x.yk=-1;var Ge=a.diagram;Ge!==null&&x.yk===-1&&fn(function(){Ge.redraw()},600)}}b?y.fillStyle=ue:y.strokeStyle=ue}}}be.rg=function(a){if(a instanceof $n)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},be.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},be.If=function(){for(var a=this instanceof $n?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function ws(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Nu(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)}Nu(a,!1),gu(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,gu(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,gu(a,!1)))}be.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Ke.alloc();z.yi(y,x,b,E,Uo),a.rotate(this.Kb,z.x,z.y),Ke.free(z)}},be.v=function(a){if(!ql(this)){a===void 0&&(a=!1),$a(this,!0),Gh(this,!0);var y=this.panel;y===null||a||y.v()}},be.Uj=function(){ql(this)||($a(this,!0),Gh(this,!0))};function il(a){if(!ol(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof li&&a.Bd(),y.$b())),Gh(a,!0)}}be.Uk=function(){!(this.l&2048)&&(Nu(this,!0),gu(this,!0))},be.Wu=function(){gu(this,!0)},be.N=function(){var a=this.part;a!==null&&a.N()};function yl(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===$n.Table?rh(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===$n.Auto&&b.Pb()===a?ms(a,Yn,y):x===mo?b!==null?b.type===$n.Spot&&b.Pb()===a?ms(a,Yn,y):(x=b.defaultStretch,x===mo?ms(a,Zn,y):ms(a,x,y)):ms(a,Zn,y):ms(a,x,y)}function rh(a,y,x,b){var E=a.stretch;if(E!==mo)return ms(a,E,b);var z=E=null;switch(y.stretch){case Ui:z=!0;break;case Yn:z=!0}switch(x.stretch){case Oi:E=!0;break;case Yn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===Oi||y===Yn),z===null&&(z=y===Ui||y===Yn),E===!0&&z===!0?ms(a,Yn,b):E===!0?ms(a,Oi,b):z===!0?ms(a,Ui,b):ms(a,Zn,b)}function ms(a,y,x){if(x)return y;if(y===Zn||(x=a.desiredSize,x.w()))return Zn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===Oi)return Zn;if(y===Yn)return Ui}else{if(y===Ui)return Zn;if(y===Yn)return Oi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Ui)return Zn;if(y===Yn)return Oi}else{if(y===Oi)return Zn;if(y===Yn)return Ui}return y}function Ku(a,y){a.l=y?a.l|512:a.l&-513}function ks(a){return(a.l&1024)!==0}function wf(a,y){a.l=y?a.l|1024:a.l&-1025}function Nu(a,y){a.l=y?a.l|2048:a.l&-2049}function gu(a,y){a.l=y?a.l|4096:a.l&-4097}function ql(a){return(a.l&8192)!==0}function $a(a,y){a.l=y?a.l|8192:a.l&-8193}function ol(a){return(a.l&16384)!==0}function Gh(a,y){a.l=y?a.l|16384:a.l&-16385}be.Gj=function(){this.svg=null},be.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},be.Av=function(){},be.zv=function(a){return this.pa=a,il(this),!0},be.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},be.kq=function(){return 0};function Kc(a){var y=a.part;if(y instanceof li&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||K1(y,a)}}function Xy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof $n?a instanceof li?a.Bd():a.qm(a,function(x){Kc(x)}):Kc(a))}be.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new za(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&c1(a)&&at("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Ln),this.localBindings.add(E),this},be.set=function(a){return Object.assign(this,a),this},be.Du=function(a){return nv(this,a),this},be.apply=function(a){return a(this),this},be.nm=function(a){return du(this,a),this},be.pz=function(){return this.ih()},be.ih=function(){for(var a=this instanceof $n?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},be.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new di),this.animationTriggers.add(a.propertyName,a),this};function pu(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=og.I(a);typeof z=="function"?(x=It(arguments),b=z(x),jt(b)||at('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ye.go[a]}if(b===null&&(E!=null&&E.constructor||at("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 $t&&1<x.length){z=b;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(Nc(z,ee),E++)}for(;E<x.length;E++)z=x[E],z===void 0?at("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):nv(b,z);return b}function nv(a,y){if(typeof y=="string")if(a instanceof jr)a.text=y;else if(a instanceof Eo)a.figure=y;else if(a instanceof xl)a.source=y;else if(a instanceof $n)y=Zu.I(y),y!==null&&(a.type=y);else if(a instanceof wr){var x=Xn(wr,y);x!==null?a.type=x:at("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof ni?(y=Xn(ni,y),y!==null&&(a.type=y)):a instanceof tr&&(y=Xn(tr,y),y!==null&&(a.type=y));else if(y instanceof kt)a instanceof $n||at("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Qa){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 Qa?km(b,y):at("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof nn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof is)a.type=y;else if(y instanceof za)a instanceof kt||a instanceof Qa?a.bind(y):at("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Il)a instanceof kt?a.Jv(y):at("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Za)a instanceof ni&&a.type===ni.o?a.figures.add(y):at("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof tr)a instanceof Za?a.segments.add(y):at("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof ta)a instanceof $t||a instanceof co?a.layout=y:at("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++)nv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof wr){x=new wi;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 Qa){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&at("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)&&at("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new wi;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);du(a,E)}else du(a,y);else at('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Nd(a,y){og.add(a,y)}function cm(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}Re.Object.defineProperties(kt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Pf),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 Pf),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 Pf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Ao(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&&(Ao(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:sl},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new rc),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===sl&&(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 rc),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 rc),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Do},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new rc),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:mo},set:function(a){var y=this.stretch;y!==a&&(Ao(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&&(Ao(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)&&Hn(a,"0 <= value <= 1",kt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Jc(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(Jc(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(),Xy(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&&bf(a,"GraphObject.areaBackground"),a instanceof wr&&a.freeze(),Ao(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&&bf(a,"GraphObject.background"),a instanceof wr&&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 Wi)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 Ke(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&&at("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,Xy(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 Eo&&this.qc(),this.g("desiredSize",b,a),ks(this)&&(a=this.part,a!==null&&(Xr(this,a,"width"),Xr(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 ti(a,this.jd.height).freeze(),this.v(),this instanceof Eo&&this.qc(),this.g("desiredSize",y,a),ks(this)&&(a=this.part,a!==null&&Xr(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 ti(this.jd.width,a).freeze(),this.v(),this instanceof Eo&&this.qc(),this.g("desiredSize",y,a),ks(this)&&(a=this.part,a!==null&&Xr(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:io},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(),Ao(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Lr},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(),Ao(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&&ws(this),this.Ab}},oe:{get:function(){return this.l&4096&&ws(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Ao(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Zn},set:function(a){this.reshapingBehavior!==a&&(Ao(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()&&at("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),il(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&&Hn(a,">= 0",kt,"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&&Hn(a,">= 1",kt,"columnSpan"),Ao(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&&Hn(a,">= 0",kt,"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&&Hn(a,">= 1",kt,"rowSpan"),Ao(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&&(Ao(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 li||at("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,U1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Jr},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Kc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Hn(a,">= 0",kt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Kc(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),Kc(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&&Hn(a,">= 0",kt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Jr},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Kc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Hn(a,">= 0",kt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Kc(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),Kc(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&&Hn(a,">= 0",kt,"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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(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&&(Ao(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),kt.prototype.trigger=kt.prototype.Jv,kt.prototype.findBindingPanel=kt.prototype.ih,kt.prototype.findTemplateBinder=kt.prototype.pz,kt.prototype.setProperties=kt.prototype.nm,kt.prototype.apply=kt.prototype.apply,kt.prototype.attach=kt.prototype.Du,kt.prototype.set=kt.prototype.set,kt.prototype.isEnabledObject=kt.prototype.If,kt.prototype.isVisibleObject=kt.prototype.Ed,kt.prototype.isContainedBy=kt.prototype.rg,kt.prototype.getNearestIntersectionPoint=kt.prototype.rs,kt.prototype.getLocalPoint=kt.prototype.qs,kt.prototype.getDocumentScale=kt.prototype.Df,kt.prototype.getDocumentAngle=kt.prototype.li,kt.prototype.getDocumentBounds=kt.prototype.mi,kt.prototype.getDocumentPoint=kt.prototype.ga,kt.prototype.intersectsRect=kt.prototype.Yc,kt.prototype.containedInRect=kt.prototype.fh,kt.prototype.containsRect=kt.prototype.Re,kt.prototype.containsPoint=kt.prototype.ca,kt.prototype.raiseChanged=kt.prototype.g,kt.prototype.raiseChangedEvent=kt.prototype.cb,kt.prototype.addCopyProperty=kt.prototype.Vw;var og=null;kt.className="GraphObject",og=new di,Nd("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=pu($n,$n.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof $n){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"},pu(Eo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new xi(0,0,2.76142374915397,2.761423749153969),spot2:new xi(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 $n&&(x=b.fb("ButtonBorder"),x instanceof Eo)){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 $n&&(x=b.fb("ButtonBorder"),x instanceof Eo&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof $n&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Eo){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 $n&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Eo){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 $n&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Eo){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 $n&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Eo))){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}),Nd("TreeExpanderButton",function(){var a=pu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},pu(Eo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:mr},new za("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new za("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof ur&&(x=x.adornedPart),x instanceof li){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}),Nd("SubGraphExpanderButton",function(){var a=pu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},pu(Eo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:mr},new za("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 ur&&(x=x.adornedPart),x instanceof co){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}),Nd("ToolTip",function(){return pu(ur,$n.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ke(0,3),shadowBlur:5},pu(Eo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new xi(0,0,4,6),spot2:new xi(1,1,-4,-4)}))}),Nd("ContextMenu",function(){return pu(ur,$n.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Ke(0,3),shadowBlur:5},new za("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Nd("ContextMenuButton",function(){var a=pu("Button");a.stretch=Oi;var y=a.fb("ButtonBorder");return y instanceof Eo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new xi(0,0,2,3),y.spot2=new xi(1,1,-2,-2)),a}),Nd("PanelExpanderButton",function(a){var y=cm(a,"COLLAPSIBLE"),x=pu("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},pu(Eo,{name:"ButtonIcon",strokeWidth:2},new za("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Eo&&(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}),Nd("CheckBoxButton",function(a){var y=cm(a);return a=pu("Button",{desiredSize:new ti(14,14)},pu(Eo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Yn,geometryStretch:Li,visible:!1},y!==""?new za("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof $n){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}),Nd("CheckBox",function(a){a=cm(a),a=pu("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new vi(0,1,0,0)});var y=pu($n,"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}),kt.None=Zn=new nn(kt,"None",0),kt.Default=mo=new nn(kt,"Default",0),kt.Vertical=Ui=new nn(kt,"Vertical",4),kt.Horizontal=Oi=new nn(kt,"Horizontal",5),kt.Fill=Yn=new nn(kt,"Fill",3),kt.Uniform=Li=new nn(kt,"Uniform",1),kt.UniformToFill=Zo=new nn(kt,"UniformToFill",2),kt.FlipVertical=To=new nn(kt,"FlipVertical",1),kt.FlipHorizontal=qo=new nn(kt,"FlipHorizontal",2),kt.FlipBoth=kr=new nn(kt,"FlipBoth",3),kt.make=pu,kt.getBuilders=function(){var a=new di,y;for(y in og)if(y!==y.toLowerCase()){var x=og.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},kt.defineBuilder=Nd,kt.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=og.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof kt))return y&&b.set(y),b;at('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},kt.takeBuilderArgument=cm;function Pf(){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=io,this.o=Lr,this.hg=mo,this.ob=this.Bi=1,this.Pf=Zn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Pf.prototype.copy=function(){var a=new Pf;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 rc(){this.u=-1/0,this.o=0,this.F=Do,this.rr=sl,this.j=this.V="None"}rc.prototype.copy=function(){var a=new rc;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},rc.className="LinkElementSettings";function sp(){this.yj=this.Xi=sr,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}sp.prototype.copy=function(){var a=new sp;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},sp.className="LinkSettings";function Zc(){this.ha=[1,0,0,1,0,0]}Zc.prototype.copy=function(){var a=new Zc;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},Zc.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},Zc.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Zc.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)}},Zc.className="STransform";function Cf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Cf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Cf.className="SGradient";function Ph(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 Rl(this,x)}Ph.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},Ph.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),jt(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},Ph.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ph.prototype.focus=function(){this.Oa.focus()},Ph.prototype.mx=function(){this.ownerDocument=null},Re.Object.defineProperties(Ph.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}}}),Ph.className="SVGSurface";function Rl(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 Zc,this.j=fm(this),this.Nj=fm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=Go++,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 Yy(a,y,x,b,E,z,ee){a.Nj===void 0?lp(a,y,x,b,E,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+ee+")")}be=Rl.prototype,be.arc=function(a,y,x,b,E,z,ee,oe){var re=2*Math.PI,le=re-1e-6,ue=x*Math.cos(b),fe=x*Math.sin(b),Se=a+ue,Pe=y+fe,Ee=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(ee-Se)||1e-6<Math.abs(oe-Pe))&&this.path.push(["L",Se,+Pe]),0>b&&(b=b%re+re),b>le?(this.path.push(["A",x,x,0,1,Ee,a-ue,y-fe]),this.path.push(["A",x,x,0,1,Ee,Se,Pe])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),Ee,a+x*Math.cos(E),y+x*Math.sin(E)])},be.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},be.Se=function(a){this.addPath(this.path,this.rb,a||0)},be.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},be.clearRect=function(){},be.clip=function(){this.Yl.clipPath=!0},be.closePath=function(){this.path.push(["z"])},be.createLinearGradient=function(a,y,x,b){var E=new Cf("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},be.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"+Go++,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(Wc,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},be.createRadialGradient=function(a,y,x,b,E,z){var ee=new Cf("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=b,ee.y2=E,ee.r2=z,ee};function Jy(a,y,x,b,E,z,ee,oe,re){b=oe/b,E=re/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)}be.drawImage=function(a,y,x,b,E,z,ee,oe,re){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,oe=b=ue,re=E=a),b=b||0,E=E||0,oe=oe||0,re=re||0,Jy(this,y,x,b,E,z||0,ee||0,oe,re),z={x:0,y:0,width:ue||b,height:a||E,href:le},Bt.$(b,oe)&&Bt.$(E,re)?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')"),rg(this,Wc,z,this.rb),this.addElement(Wc,z)},be.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},be.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},be.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},rg(this,"fill",a,this.rb),this.addElement("rect",a)},be.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},rg(this,"fill",a,this.rb),iv(this,a),this.svg.prepend(this.Ud("rect",a))},be.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},rg(this,"fill",y,this.rb),this.addElement("text",y,a[0])},be.lineTo=function(a,y){this.path.push(["L",a,y])},be.moveTo=function(a,y){this.path.push(["M",a,y])},be.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},be.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"])},be.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},be.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())},be.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||lp(this,a,y,x,b,E,z)};function $y(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}be.scale=function(a,y){this.rb.scale(a,y)},be.translate=function(a,y){this.rb.translate(a,y)},be.transform=function(){},be.yc=function(){},be.stroke=function(){_y(this,this.Yl)},be.jk=function(){this.clipInsteadOfFill||this.stroke()},be.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},be.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 rg(a,y,x,b){y==="fill"?iv(a,x):y==="stroke"&&_y(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function iv(a,y){a.fillStyle instanceof Cf?y.fill=ov(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 Qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Cf?y.setAttributeNS(null,"fill",ov(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 _y(a,y){if(a.strokeStyle instanceof Cf)y.stroke=ov(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 ov(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"+Go++,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 oe=E[ee],re=oe.color;oe={offset:oe.offset,"stop-color":re},/^rgba\(/.test(re)&&(re=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(re),oe["stop-color"]="rgb("+re[1]+","+re[2]+","+re[3]+")",oe["stop-opacity"]=re[4]),z.push(oe)}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+")"}be.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=It(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,rg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var oe in a)oe!=="transform"&&y.setAttributeNS(null,oe,a[oe]);else{oe=y.getElementsByTagName("path");for(var re in a)re!=="transform"&&oe[x].setAttributeNS(null,re,a[re])}else this.addElement("path",a)};function lp(a,y,x,b,E,z,ee){var oe=new Zc;oe.ha=[y,x,b,E,z,ee],y={},rg(a,"g",y,oe),oe=a.addElement("g",y),a.nh.push(oe)}function fm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Kh(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function ud(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}be.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},be.fs=function(){this.Ct=!1},be.Vc=function(){},be.Wx=function(){},Rl.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Rl.prototype.getImageData=function(){return null},Rl.prototype.measureText=function(){return null};function gm(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()))}Rl.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Rl.className="SVGContext",$t.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Ph(this,Ye.document));var y=new Ph(this,Ye.document,!0);a===void 0&&(a=new wi);var x=this;return mf(this,function(b,E){return b=lm(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},$t.prototype.makeSvg=$t.prototype.Cs,$t.prototype.av=function(a){return this.Cs(a)},$t.prototype.makeSVG=$t.prototype.av;function ku(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 Vc(y,x,b),y.H=a}ku.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},ku.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},ku.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},ku.prototype.focus=function(){this.Oa.focus()},ku.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Re.Object.defineProperties(ku.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}}}),ku.className="CanvasSurface";function Vc(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&at("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new Mo,this.isTemporary=!!x}be=Vc.prototype,be.Wx=function(a){this.Z.imageSmoothingEnabled=a},be.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},be.beginPath=function(){this.Z.beginPath()},be.Se=function(){},be.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},be.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},be.clip=function(){this.Z.clip()},be.closePath=function(){this.Z.closePath()},be.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},be.createPattern=function(a,y){return this.Z.createPattern(a,y)},be.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},be.drawImage=function(a,y,x,b,E,z,ee,oe,re){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,ee,oe,re)},be.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},be.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},be.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},be.fillText=function(a,y,x){this.Z.fillText(a,y,x)},be.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},be.lineTo=function(a,y){this.Z.lineTo(a,y)},be.measureText=function(a){return this.Z.measureText(a)},be.moveTo=function(a,y){this.Z.moveTo(a,y)},be.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},be.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},be.restore=function(){this.Z.restore()},be.save=function(){this.yc(),this.Z.save()},Vc.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},be=Vc.prototype,be.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},be.scale=function(a,y){this.El.scale(a,y)},be.translate=function(a,y){this.El.translate(a,y)},be.stroke=function(){this.Z.stroke()},be.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,oe=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=oe,ee.m12=a,ee.m21=y,ee.m22=x}},be.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},be.ng=function(a,y){if(a instanceof wr&&a.type===mu){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)},be.jk=function(){this.Hm||this.stroke()},be.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},be.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},be.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},be.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},be.Hs=function(){},Re.Object.defineProperties(Vc.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 mx=Object.freeze([]);Vc.className="CanvasSurfaceContext";function up(){this.F=this.o=this.u=this.j=0}up.className="ColorNumbers";function wr(a,y){ug||(hv(),ug=!0),ro(this),this._isFrozen=!1,a===void 0?(this.na=kd,this.xk="black"):typeof a=="string"?(this.na=kd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===dd?(this.Qd=es,this.Lk=As):this.Lk=a===mu?this.Qd=Uo:this.Qd=Jr,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}wr.prototype.copy=function(){var a=new wr;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},be=wr.prototype,be.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},be.ka=function(){return Object.isFrozen(this)&&at("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},be.qb=function(a){a.classType===wr&&(this.type=a)},be.toString=function(){var a="Brush(";if(this.type===kd)a+=this.color;else if(a=this.type===dd?a+"Linear ":this.type===mu?a+"Radial ":this.type===hg?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+")"},be.addColorStop=function(a,y){return this._isFrozen&&ln(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Hn(a,"0 <= loc <= 1",wr,"addColorStop:loc"),this.we===null&&(this.we=new di),this.we.add(a,y),this.na===kd&&(this.type=dd),this.xe=null,this},be.Vz=function(a,y){if(this._isFrozen&&ln(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dg:y,this.type===kd)hd(this.color),this.color=sg(a,y);else if((this.type===dd||this.type===mu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hd(x.value),this.addColorStop(x.key,sg(a,y));return this};function qy(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dg:x,hd(a),sg(y,x)}be.Wy=function(a,y){if(this._isFrozen&&ln(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dg:y,this.type===kd)hd(this.color),this.color=sg(-a,y);else if((this.type===dd||this.type===mu)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)hd(x.value),this.addColorStop(x.key,sg(-a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dg:x,hd(a),sg(-y,x)}function rv(a,y,x){hd(a),a=Hr.j;var b=Hr.u,E=Hr.o,z=Hr.F;return hd(y),x===void 0&&(x=.5),"rgba("+Math.round((Hr.j-a)*x+a)+", "+Math.round((Hr.u-b)*x+b)+", "+Math.round((Hr.o-E)*x+E)+", "+Math.round((Hr.F-z)*x+z)+")"}be.Gx=function(){if(this.type===kd)return ag(this.color);if((this.type===dd||this.type===mu)&&this.colorStops!==null){var a=this.colorStops;if(this.type===mu)return ag(a.first().value);if(a.get(.5)!==null)return ag(a.get(.5));if(a.count===2)return a=a.Fa(),ag(rv(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,oe=Math.abs(.5-y.key);E>z&&oe<E?(x=ee,E=oe):z>=E&&oe<z&&(b=ee,z=oe)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,ag(rv(a.get(x),a.get(b),1-z/E))}return!1};function ag(a){return a?a instanceof wr?a.Gx():(hd(a),128>(299*Hr.j+587*Hr.u+114*Hr.o)/1e3):!1}function sg(a,y){switch(y){case dg:y=100*sv(Hr.j);var x=100*sv(Hr.u),b=100*sv(Hr.o);return rl.j=.4124564*y+.3575761*x+.1804375*b,rl.u=.2126729*y+.7151522*x+.072175*b,rl.o=.0193339*y+.119192*x+.9503041*b,rl.F=Hr.F,y=uv(rl.j/lg[0]),x=uv(rl.u/lg[1]),b=uv(rl.o/lg[2]),Zh.j=116*x-16,Zh.u=500*(y-x),Zh.o=200*(x-b),Zh.F=rl.F,Zh.j=Math.min(100,Math.max(0,Zh.j+100*a)),a=(Zh.j+16)/116,y=a-Zh.o/200,rl.j=lg[0]*t1(Zh.u/500+a),rl.u=lg[1]*(Zh.j>pm*dv?Math.pow(a,3):Zh.j/pm),rl.o=lg[2]*t1(y),rl.F=Zh.F,a=-.969266*rl.j+1.8760108*rl.u+.041556*rl.o,y=.0556434*rl.j+-.2040259*rl.u+1.0572252*rl.o,Hr.j=255*lv((3.2404542*rl.j+-1.5371385*rl.u+-.4985314*rl.o)/100),Hr.u=255*lv(a/100),Hr.o=255*lv(y/100),Hr.F=rl.F,Hr.j=Math.round(Hr.j),255<Hr.j?Hr.j=255:0>Hr.j&&(Hr.j=0),Hr.u=Math.round(Hr.u),255<Hr.u?Hr.u=255:0>Hr.u&&(Hr.u=0),Hr.o=Math.round(Hr.o),255<Hr.o?Hr.o=255:0>Hr.o&&(Hr.o=0),"rgba("+Hr.j+", "+Hr.u+", "+Hr.o+", "+Hr.F+")";case n1:return av(),eu.o=Math.min(100,Math.max(0,eu.o+100*a)),"hsla("+eu.j+", "+eu.u+"%, "+eu.o+"%, "+eu.F+")";default:at("Unknown color space: "+y)}}function hd(a){ug||(hv(),ug=!0);var y=cv;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,Hr.j=a[0],Hr.u=a[1],Hr.o=a[2],Hr.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Hr.j=0,Hr.u=0,Hr.o=0,Hr.F=1)}}function av(){var a=Hr.j/255,y=Hr.u/255,x=Hr.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))}eu.j=Math.round(ee),eu.u=Math.round(100*a),eu.o=Math.round(100*E),eu.F=Hr.F}function sv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function lv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function uv(a){return a>dv?Math.pow(a,1/3):(pm*a+16)/116}function t1(a){var y=a*a*a;return y>dv?y:(116*a-16)/pm}function bf(a,y){typeof a!="string"&&(a instanceof wr||at("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=xa?new ku(null,void 0,{willReadFrequently:!0}).context:null}Re.Object.defineProperties(wr.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&ln(this,a),this.na=a,this.start.Mc()&&(a===dd?this.start=es:a===mu&&(this.start=Uo)),this.end.Mc()&&(a===dd?this.end=As:a===mu&&(this.end=Uo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&ln(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&ln(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&ln(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&ln(this,a),0>a&&Hn(a,">= zero",wr,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&ln(this,a),0>a&&Hn(a,">= zero",wr,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&ln(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&ln(this,a),this.cr=a,this.xe=null}}}),wr.prototype.isDark=wr.prototype.Gx,wr.prototype.darkenBy=wr.prototype.Wy,wr.prototype.lightenBy=wr.prototype.Vz,wr.prototype.addColorStop=wr.prototype.addColorStop;var dv=216/24389,pm=24389/27,lg=[95.047,100,108.883],cv=null,Hr=new up,eu=new up,rl=new up,Zh=new up,ug=!1;wr.className="Brush";var kd;wr.Solid=kd=new nn(wr,"Solid",0);var dd;wr.Linear=dd=new nn(wr,"Linear",1);var mu;wr.Radial=mu=new nn(wr,"Radial",2);var hg;wr.Pattern=hg=new nn(wr,"Pattern",4);var dg;wr.Lab=dg=new nn(wr,"Lab",5);var n1;wr.HSL=n1=new nn(wr,"HSL",6),wr.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},wr.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;ug||(hv(),ug=!0);var y=cv;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)},wr.lighten=function(a){return qy(a)},wr.lightenBy=qy,wr.darken=function(a){return e1(a)},wr.darkenBy=e1,wr.mix=rv,wr.isDark=ag;function is(){this.xa="Base"}is.prototype.measure=function(){},is.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},is.prototype.arrange=function(){},is.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},is.prototype.iA=function(a){a.Uj()},is.prototype.gc=function(){},Re.Object.defineProperties(is.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return $n}}}),is.prototype.remeasureObject=is.prototype.iA,is.prototype.arrangeElement=is.prototype.Ly,is.prototype.measureElement=is.prototype.Yz,is.className="PanelLayout";function mm(){this.xa="Base"}Pt(mm,is),mm.prototype.measure=function(a,y,x,b,E,z,ee){var oe=b.length;a=cd(a);for(var re=0;re<oe;re++){var le=b[re];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 Se=le.measuredBounds;fe=Math.max(Se.width+fe,0),ue=Math.max(Se.height+ue,0),Se=le.position.x;var Pe=le.position.y;isFinite(Se)||(Se=0),isFinite(Pe)||(Pe=0),le instanceof Eo&&le.isGeometryPositioned&&(le=le.strokeWidth/2,Se-=le,Pe-=le),lo(E,Se,Pe,fe,ue)}}},mm.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,oe=z.margin,re=z.position.x,le=z.position.y;if(re=isNaN(re)?-a:re-a,le=isNaN(le)?-x:le-x,z instanceof Eo&&z.isGeometryPositioned){var ue=z.strokeWidth/2;re-=ue,le-=ue}z.visible&&z.arrange(re+oe.left,le+oe.top,ee.width,ee.height)}};function vm(){this.xa="Base"}Pt(vm,is),vm.prototype.measure=function(a,y,x,b,E,z,ee){var oe=b.length;y=en(),z=cd(a);for(var re=0;re<oe;re++){var le=b[re];if(le.visible||le===z){var ue=yl(le,!1);if(ue!==Zn&&ue!==Oi)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++)re=y[a],(re.visible||re===z)&&(ue=re.margin,oe=ue.right+ue.left,ue=ue.top+ue.bottom,re.measure(1/0,x,0,ee),re=re.measuredBounds,ue=Math.max(re.height+ue,0),E.width+=Math.max(re.width+oe,0),E.height=Math.max(E.height,ue));xn(y)},vm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,ee=a.isOpposite,oe=ee?x.width:E.left,re=0;re<b;re++){var le=z,ue=y[re];if(ue.visible){var fe=ue.measuredBounds,Se=ue.margin,Pe=Se.top+Se.bottom,Ee=z+E.bottom,Te=fe.height,_e=yl(ue,!1);(isNaN(ue.desiredSize.height)&&_e===Yn||_e===Ui)&&(Te=Math.max(x.height-Pe-Ee,0)),Pe=Te+Pe+Ee,Ee=ue.alignment,Ee.Xb()&&(Ee=a.defaultAlignment),Ee.sb()||(Ee=Uo),ee&&(oe-=fe.width+Se.left+Se.right),ue.arrange(oe+Ee.offsetX+Se.left,le+Ee.offsetY+Se.top+(x.height*Ee.y-Pe*Ee.y),fe.width,Te),ee||(oe+=fe.width+Se.left+Se.right)}}};function ym(){this.xa="Base"}Pt(ym,is),ym.prototype.measure=function(a,y,x,b,E,z){var ee=b.length;x=en();for(var oe=cd(a),re=0;re<ee;re++){var le=b[re];if(le.visible||le===oe){var ue=yl(le,!1);if(ue!==Zn&&ue!==Ui)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,ia(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++)re=x[a],(re.visible||re===oe)&&(le=re.margin,ee=le.right+le.left,le=le.top+le.bottom,re.measure(y,1/0,z,0),re=re.measuredBounds,le=Math.max(re.height+le,0),E.width=Math.max(E.width,Math.max(re.width+ee,0)),E.height+=le);xn(x)}},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,ee=a.isOpposite,oe=ee?x.height:E.top,re=0;re<b;re++){var le=z,ue=y[re];if(ue.visible){var fe=ue.measuredBounds,Se=ue.margin,Pe=Se.left+Se.right,Ee=z+E.right,Te=fe.width,_e=yl(ue,!1);(isNaN(ue.desiredSize.width)&&_e===Yn||_e===Oi)&&(Te=Math.max(x.width-Pe-Ee,0)),Pe=Te+Pe+Ee,Ee=ue.alignment,Ee.Xb()&&(Ee=a.defaultAlignment),Ee.sb()||(Ee=Uo),ee&&(oe-=fe.height+Se.bottom+Se.top),ue.arrange(le+Ee.offsetX+Se.left+(x.width*Ee.x-Pe*Ee.x),oe+Ee.offsetY+Se.top,Te,fe.height),ee||(oe+=fe.height+Se.bottom+Se.top)}}};function Sm(){this.xa="Base"}Pt(Sm,is),Sm.prototype.measure=function(a,y,x,b,E,z,ee){var oe=b.length,re=a.Pb(),le=re.margin,ue=le.right+le.left,fe=le.top+le.bottom;re.measure(y,x,z,ee);var Se=re.measuredBounds;z=Se.width,ee=Se.height;var Pe=Math.max(z+ue,0),Ee=Math.max(ee+fe,0),Te=a.isClipping,_e=vn.allocAt(-le.left,-le.top,Pe,Ee),Ge=vn.allocAt(0,0,z,ee);fv(re,Ge,!0),z=Ge.width,ee=Ge.height;for(var st=!0,ut=cd(a),pt=0;pt<oe;pt++){var Nt=b[pt];Se=y;var Qt=x;if(Nt!==re&&(Nt.visible||Nt===ut)){le=Nt.margin;var ri=le.left,Si=le.top;switch(Pe=le.right+le.left,Ee=le.top+le.bottom,le=yl(Nt,!1),le){case Yn:Se=z,Qt=ee,Si=ri=Ee=Pe=0;break;case Oi:Se=z,ri=Pe=0;break;case Ui:Qt=ee,Si=Ee=0}Nt.measure(Se,Qt,0,0),Se=Nt.measuredBounds,Pe=Math.max(Se.width+Pe,0),Ee=Math.max(Se.height+Ee,0),le=Nt.alignment,le.Xb()&&(le=a.defaultAlignment),le.sb()||(le=Uo);var mi=Nt.alignmentFocus;if(mi.Xb()&&(mi=Uo),Qt=null,Nt instanceof $n&&Nt.$e!==""&&(Qt=Nt.fb(Nt.$e),Qt===Nt&&(Qt=null)),ri=Ge.x-ri,Si=Ge.y-Si,Qt!==null){for(Nt.arrange(0,0,Se.width,Se.height),Se=Qt.actualBounds,Se=Ke.allocAt(Se.x+(mi.x*Se.width-mi.offsetX),Se.y+(mi.y*Se.height-mi.offsetY)),Qt=Qt.panel;Qt!==Nt;)Qt.transform.Ga(Se),Qt=Qt.panel;ri+=le.x*z+le.offsetX-Se.x,Si+=le.y*ee+le.offsetY-Se.y,Ke.free(Se)}else ri+=le.x*z+le.offsetX-(mi.x*Se.width+mi.offsetX),Si+=le.y*ee+le.offsetY-(mi.y*Se.height+mi.offsetY);st?(st=!1,E.h(ri,Si,Pe,Ee)):lo(E,ri,Si,Pe,Ee)}}switch(st?E.assign(_e):Te?E.Uu(Ge.x,Ge.y,Ge.width,Ge.height):lo(E,_e.x,_e.y,_e.width,_e.height),vn.free(_e),vn.free(Ge),le=re.stretch,le===mo&&(le=yl(re,!1)),le){case Zn:return;case Yn:if(!isFinite(y)&&!isFinite(x))return;break;case Oi:if(!isFinite(y))return;break;case Ui:if(!isFinite(x))return}for(Se=re.measuredBounds,z=Se.width,ee=Se.height,Pe=Math.max(z+ue,0),Ee=Math.max(ee+fe,0),le=re.margin,Ge=vn.allocAt(-le.left,-le.top,Pe,Ee),fv(re,Ge,!0),z=Ge.width,ee=Ge.height,y=0;y<oe;y++)x=b[y],x===re||!x.visible&&x!==ut||(le=x.margin,Pe=le.right+le.left,Ee=le.top+le.bottom,Se=x.measuredBounds,Pe=Math.max(Se.width+Pe,0),Ee=Math.max(Se.height+Ee,0),ue=x.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=Uo),x=x.alignmentFocus,x.Xb()&&(x=Uo),st?(st=!1,E.h(ue.x*z+ue.offsetX-(x.x*Se.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*Se.height+x.offsetY)-le.top,Pe,Ee)):lo(E,ue.x*z+ue.offsetX-(x.x*Se.width+x.offsetX)-le.left,ue.y*ee+ue.offsetY-(x.y*Se.height+x.offsetY)-le.top,Pe,Ee));st?E.assign(_e):Te?E.Uu(Ge.x,Ge.y,Ge.width,Ge.height):lo(E,_e.x,_e.y,_e.width,_e.height),vn.free(Ge)},Sm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,ee=z.width,oe=z.height,re=a.padding;z=re.left,re=re.top;var le=z-x.x,ue=re-x.y;for(E.arrange(le,ue,ee,oe),ee=vn.allocAt(0,0,ee,oe),fv(E,ee,!1),oe=0;oe<b;oe++){var fe=y[oe];if(fe!==E){le=fe.measuredBounds;var Se=le.width,Pe=le.height;ue=fe.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=Uo);var Ee=fe.alignmentFocus;if(Ee.Xb()&&(Ee=Uo),le=null,fe instanceof $n&&fe.$e!==""&&(le=fe.fb(fe.$e),le===fe&&(le=null)),le!==null){var Te=le.actualBounds;for(Ee=Ke.allocAt(Te.x+(Ee.x*Te.width-Ee.offsetX),Te.y+(Ee.y*Te.height-Ee.offsetY)),le=le.panel;le!==fe;)le.transform.Ga(Ee),le=le.panel;le=ue.x*ee.width+ue.offsetX-Ee.x,ue=ue.y*ee.height+ue.offsetY-Ee.y,Ke.free(Ee)}else le=ue.x*ee.width+ue.offsetX-(Ee.x*Se+Ee.offsetX),ue=ue.y*ee.height+ue.offsetY-(Ee.y*Pe+Ee.offsetY);le+=ee.x-x.x,ue+=ee.y-x.y,fe.visible&&fe.arrange(z+le,re+ue,Se,Pe)}}vn.free(ee)};function fv(a,y,x){var b=null;if(a instanceof $n&&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 xm(){this.xa="Base"}Pt(xm,is),xm.prototype.measure=function(a,y,x,b,E,z,ee){var oe=b.length,re=a.Pb(),le=re.margin,ue=y,fe=x,Se=le.right+le.left,Pe=le.top+le.bottom;re.measure(y,x,z,ee),le=re.measuredBounds;var Ee=0,Te=null;re instanceof Eo&&(Te=re,Ee=Te.strokeWidth*Te.scale);var _e=Math.max(le.width+Se,0);le=Math.max(le.height+Pe,0);var Ge=vv(re),st=Ge.x*_e+Ge.offsetX;Ge=Ge.y*le+Ge.offsetY;var ut=yv(re),pt=ut.x*_e+ut.offsetX;for(ut=ut.y*le+ut.offsetY,isFinite(y)&&(ue=Math.max(Math.abs(st-pt)-Ee,0)),isFinite(x)&&(fe=Math.max(Math.abs(Ge-ut)-Ee,0)),Ee=ti.alloc(),Ee.h(0,0),a=cd(a),ut=0;ut<oe;ut++)Ge=b[ut],Ge===re||!Ge.visible&&Ge!==a||(le=Ge.margin,_e=le.right+le.left,st=le.top+le.bottom,Ge.measure(ue,fe,0,0),le=Ge.measuredBounds,_e=Math.max(le.width+_e,0),le=Math.max(le.height+st,0),Ee.h(Math.max(_e,Ee.width),Math.max(le,Ee.height)));if(oe===1)E.width=_e,E.height=le,ti.free(Ee);else{switch(Ge=vv(re),ut=yv(re),oe=b=0,ut.x!==Ge.x&&ut.y!==Ge.y&&(b=Ee.width/Math.abs(ut.x-Ge.x),oe=Ee.height/Math.abs(ut.y-Ge.y)),ti.free(Ee),Ee=0,Te!==null&&(Ee=Te.strokeWidth*Te.scale,bv(Te)===Li&&(b=oe=Math.max(b,oe))),b+=Math.abs(Ge.offsetX)+Math.abs(ut.offsetX)+Ee,oe+=Math.abs(Ge.offsetY)+Math.abs(ut.offsetY)+Ee,Te=re.stretch,Te===mo&&(Te=yl(re,!1)),Te){case Zn:ee=z=0;break;case Yn:isFinite(y)&&(b=y),isFinite(x)&&(oe=x);break;case Oi:isFinite(y)&&(b=y),ee=0;break;case Ui:z=0,isFinite(x)&&(oe=x)}re.Uj(),re.measure(b,oe,z,ee),E.width=re.measuredBounds.width+Se,E.height=re.measuredBounds.height+Pe}},xm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=vn.alloc();z.h(0,0,1,1);var ee=b.margin,oe=ee.left;ee=ee.top;var re=a.padding,le=re.left;re=re.top,b.arrange(le+oe,re+ee,E.width,E.height);var ue=vv(b),fe=yv(b),Se=ue.y*E.height+ue.offsetY,Pe=fe.x*E.width+fe.offsetX;for(fe=fe.y*E.height+fe.offsetY,z.x=ue.x*E.width+ue.offsetX,z.y=Se,lo(z,Pe,fe,0,0),z.x+=oe+le,z.y+=ee+re,E=0;E<x;E++)oe=y[E],oe!==b&&(le=oe.measuredBounds,ee=oe.margin,re=Math.max(le.width+ee.right+ee.left,0),ue=Math.max(le.height+ee.top+ee.bottom,0),Se=oe.alignment,Se.Xb()&&(Se=a.defaultAlignment),Se.sb()||(Se=Uo),re=z.width*Se.x+Se.offsetX-re*Se.x+ee.left+z.x,ee=z.height*Se.y+Se.offsetY-ue*Se.y+ee.top+z.y,oe.visible&&(Ko(z.x,z.y,z.width,z.height,re,ee,le.width,le.height)?oe.arrange(re,ee,le.width,le.height):oe.arrange(re,ee,le.width,le.height,new vn(z.x,z.y,z.width,z.height))));vn.free(z)};function wm(){this.xa="Base",this.name="Table"}Pt(wm,is),wm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,ee=en(),oe=en(),re=0;re<z;re++){var le=b[re],ue=le instanceof $n?le:null;if(ue!==null&&Ad(ue)&&le.visible){oe.push(ue);for(var fe=ue.O.s,Se=fe.length,Pe=0;Pe<Se;Pe++){var Ee=fe[Pe];ue.type===$n.TableRow?Ee.row=le.row:ue.type===$n.TableColumn&&(Ee.column=le.column),ee.push(Ee)}}else ee.push(le)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Te=[],_e=0;_e<z;_e++){var Ge=ee[_e];Ge.visible&&($a(Ge,!0),Gh(Ge,!0),Te[Ge.row]||(Te[Ge.row]=[]),Te[Ge.row][Ge.column]||(Te[Ge.row][Ge.column]=[]),Te[Ge.row][Ge.column].push(Ge))}xn(ee);var st=en(),ut=en(),pt=en(),Nt={count:0},Qt={count:0},ri=y,Si=x,mi=a.rowDefs,qn=a.colDefs,In=null;z=mi.length;for(var uo=0;uo<z;uo++)In=mi[uo],In!==void 0&&(In.actual=0);z=qn.length;for(var to=0;to<z;to++)In=qn[to],In!==void 0&&(In.actual=0);for(var gr=Te.length,Or=0,ss=0;ss<gr;ss++)Te[ss]&&(Or=Math.max(Or,Te[ss].length));var fs=Math.min(a.topIndex,gr-1),_s=Math.min(a.leftIndex,Or-1),ls=0;gr=Te.length;for(var Wd=cd(a),Ha=0;Ha<gr;Ha++)if(Te[Ha]){Or=Te[Ha].length;var hh=a.Fb(Ha);hh.actual=0;for(var qs=hh.oc=0;qs<Or;qs++)if(Te[Ha][qs]){var Gd=a.Eb(qs);st[qs]===void 0&&(Gd.actual=0,Gd.oc=0,st[qs]=!0);for(var iu=Te[Ha][qs],Tu=iu.length,Hl=0;Hl<Tu;Hl++){var Al=iu[Hl];if(Al.visible||Al===Wd){var Sc=1<Al.rowSpan||1<Al.columnSpan;Sc&&(Ha<fs||qs<_s||ut.push(Al));var dh=Al.margin,Tg=dh.right+dh.left,Wl=dh.top+dh.bottom,el=rh(Al,hh,Gd,!1),$p=Al.desiredSize,If=!isNaN($p.height),Eh=!isNaN($p.width)&&If;if(Sc||el===Zn||Eh||Ha<fs||qs<_s||(Nt[qs]!==void 0||el!==Yn&&el!==Oi||(Nt[qs]=-1,Nt.count++),Qt[Ha]!==void 0||el!==Yn&&el!==Ui||(Qt[Ha]=-1,Qt.count++),pt.push(Al)),Al.measure(1/0,1/0,0,0),!(Ha<fs||qs<_s)){var Dl=Al.measuredBounds,ef=Math.max(Dl.width+Tg,0),Gl=Math.max(Dl.height+Wl,0);if(Al.rowSpan===1&&(el===Zn||el===Oi)){In=a.Fb(Ha);var xc=In.Wc();ls=Math.max(Gl-In.actual,0),ls+xc>Si&&(ls=Math.max(Si-xc,0));var Z0=In.oa===0;In.oc=In.oc+ls,In.actual=In.oa+ls,Si=Math.max(Si-(ls+(Z0?xc:0)),0)}if(Al.columnSpan===1&&(el===Zn||el===Ui)){In=a.Eb(qs);var Qp=In.Wc();ls=Math.max(ef-In.actual,0),ls+Qp>ri&&(ls=Math.max(ri-Qp,0));var Hy=In.oa===0;In.oc=In.oc+ls,In.actual=In.oa+ls,ri=Math.max(ri-(ls+(Hy?Qp:0)),0)}Sc&&Al.Uj()}}}}}xn(st);var qh=0,pd=0;z=a.columnCount;for(var Rf=0;Rf<z;Rf++){var wc=qn[Rf];wc!==void 0&&(qh+=isNaN(wc.Hc)?wc.oc:wc.Hc,wc.oc!==0&&(qh+=wc.Wc()))}z=a.rowCount;for(var Og=0;Og<z;Og++){var Pc=mi[Og];Pc!==void 0&&(pd+=isNaN(Pc.Hc)?Pc.oc:Pc.Hc,Pc.oc!==0&&(pd+=Pc.Wc()))}ri=Math.max(y-qh,0);var ed=Si=Math.max(x-pd,0),Kd=ri;z=pt.length;for(var Bl=0;Bl<z;Bl++){var Lh=pt[Bl],V0=a.Fb(Lh.row),md=a.Eb(Lh.column),Ig=Lh.measuredBounds,ch=Lh.margin,tf=ch.right+ch.left,Mh=ch.top+ch.bottom;Nt[Lh.column]=md.oc===0&&Nt[Lh.column]!==void 0?Math.max(Ig.width+tf,Nt[Lh.column]):null,Qt[Lh.row]=V0.oc===0&&Qt[Lh.row]!==void 0?Math.max(Ig.height+Mh,Qt[Lh.row]):null}var jf=0,Rg=0,$u;for($u in Qt)$u!=="count"&&(jf+=Qt[$u]);for($u in Nt)$u!=="count"&&(Rg+=Nt[$u]);for(var Cs=ti.alloc(),_p=0;_p<z;_p++){var cl=pt[_p];if(cl.visible||cl===Wd){var Wa=a.Fb(cl.row),fl=a.Eb(cl.column),vd=0;isFinite(fl.width)?vd=fl.width:(isFinite(ri)&&Nt[cl.column]!==null?Rg===0?vd=fl.actual+ri:vd=Nt[cl.column]/Rg*Kd:Nt[cl.column]!==null?vd=ri:vd=fl.actual||ri,vd=Math.max(0,vd-fl.Wc()));var Zd=0;switch(isFinite(Wa.height)?Zd=Wa.height:(isFinite(Si)&&Qt[cl.row]!==null?jf===0?Zd=Wa.actual+Si:Zd=Qt[cl.row]/jf*ed:Qt[cl.row]!==null?Zd=Si:Zd=Wa.actual||Si,Zd=Math.max(0,Zd-Wa.Wc())),Cs.h(Math.max(fl.minimum,Math.min(vd,fl.maximum)),Math.max(Wa.minimum,Math.min(Zd,Wa.maximum))),el=rh(cl,Wa,fl,!1),el){case Oi:Cs.height=Math.max(Cs.height,Wa.actual+Si);break;case Ui:Cs.width=Math.max(Cs.width,fl.actual+ri)}var nf=cl.margin,Wy=nf.right+nf.left,U0=nf.top+nf.bottom;cl.Uj(),cl.measure(Cs.width,Cs.height,fl.minimum,Wa.minimum);var jg=cl.measuredBounds,of=Math.max(jg.width+Wy,0),zf=Math.max(jg.height+U0,0);isFinite(ri)&&(of=Math.min(of,Cs.width)),isFinite(Si)&&(zf=Math.min(zf,Cs.height));var Tl=0;Tl=Wa.actual,Wa.actual=Math.max(Wa.actual,zf),Wa.oc=Math.max(Wa.oc,zf),ls=Wa.actual-Tl,Si=Math.max(Si-ls,0),Qt[cl.row]===null&&(ed=Math.max(ed-ls,0)),Tl=fl.actual,fl.actual=Math.max(fl.actual,of),fl.oc=Math.max(fl.oc,of),ls=fl.actual-Tl,ri=Math.max(ri-ls,0),Nt[cl.column]===null&&(Kd=Math.max(Kd-ls,0))}}xn(pt);var yd=ti.alloc(),fh=en(),wu=en();if(z=ut.length,z!==0){for(var Cc=0;Cc<gr;Cc++)if(Te[Cc]){Or=Te[Cc].length;var zg=a.Fb(Cc);fh[Cc]=zg.actual;for(var bc=0;bc<Or;bc++)if(Te[Cc][bc]){var X0=a.Eb(bc);wu[bc]=X0.actual}}}for(var Hg=0;Hg<z;Hg++){var Ma=ut[Hg];if(Ma.visible||Ma===Wd){var Qu=a.Fb(Ma.row),Ou=a.Eb(Ma.column);switch(Cs.h(Math.max(Ou.minimum,Math.min(y,Ou.maximum)),Math.max(Qu.minimum,Math.min(x,Qu.maximum))),el=rh(Ma,Qu,Ou,!1),el){case Yn:wu[Ou.index]!==0&&(Cs.width=Math.min(Cs.width,wu[Ou.index])),fh[Qu.index]!==0&&(Cs.height=Math.min(Cs.height,fh[Qu.index]));break;case Oi:wu[Ou.index]!==0&&(Cs.width=Math.min(Cs.width,wu[Ou.index]));break;case Ui:fh[Qu.index]!==0&&(Cs.height=Math.min(Cs.height,fh[Qu.index]))}isFinite(Ou.width)&&(Cs.width=Ou.width),isFinite(Qu.height)&&(Cs.height=Qu.height),yd.h(0,0);for(var Y0=Ou.minimum,Kl=Qu.minimum,Vd=1;Vd<Ma.rowSpan&&!(Ma.row+Vd>=a.rowCount);Vd++)In=a.Fb(Ma.row+Vd),ls=0,ls=el===Yn||el===Ui?Math.max(In.minimum,fh[Ma.row+Vd]===0?In.maximum:Math.min(fh[Ma.row+Vd],In.maximum)):Math.max(In.minimum,isNaN(In.Hc)?In.maximum:Math.min(In.Hc,In.maximum)),yd.height+=ls,Kl+=In.minimum;for(var Iu=1;Iu<Ma.columnSpan&&!(Ma.column+Iu>=a.columnCount);Iu++)In=a.Eb(Ma.column+Iu),ls=0,ls=el===Yn||el===Oi?Math.max(In.minimum,wu[Ma.column+Iu]===0?In.maximum:Math.min(wu[Ma.column+Iu],In.maximum)):Math.max(In.minimum,isNaN(In.Hc)?In.maximum:Math.min(In.Hc,In.maximum)),yd.width+=ls,Y0+=In.minimum;Cs.width+=yd.width,Cs.height+=yd.height;var Wg=Ma.margin,Ec=Wg.right+Wg.left,qp=Wg.top+Wg.bottom;Ma.measure(Cs.width,Cs.height,Y0,Kl);for(var Gg=Ma.measuredBounds,Fh=Math.max(Gg.width+Ec,0),rf=Math.max(Gg.height+qp,0),Lc=0,Kg=0;Kg<Ma.rowSpan&&!(Ma.row+Kg>=a.rowCount);Kg++)In=a.Fb(Ma.row+Kg),Lc+=In.total||0;if(Lc<rf){var Ud=rf-Lc,td=rf-Lc;if(Ma.spanAllocation!==null)for(var Xd=Ma.spanAllocation,Sd=0;Sd<Ma.rowSpan&&!(0>=Ud)&&!(Ma.row+Sd>=a.rowCount);Sd++){In=a.Fb(Ma.row+Sd);var Yd=In.oa||0,af=Xd(Ma,In,td);In.actual=Math.min(In.maximum,Yd+af),In.oa!==Yd&&(Ud-=In.oa-Yd)}for(;0<Ud;){var gh=In.oa||0;if(isNaN(In.height)&&In.maximum>gh&&(In.actual=Math.min(In.maximum,gh+Ud),In.oa!==gh&&(Ud-=In.oa-gh)),In.index===0)break;In=a.Fb(In.index-1)}}for(var Hf=0,Jd=0;Jd<Ma.columnSpan&&!(Ma.column+Jd>=a.columnCount);Jd++)In=a.Eb(Ma.column+Jd),Hf+=In.total||0;if(Hf<Fh){var Wf=Fh-Hf,Gy=Fh-Hf;if(Ma.spanAllocation!==null)for(var xd=Ma.spanAllocation,sf=0;sf<Ma.columnSpan&&!(0>=Wf)&&!(Ma.column+sf>=a.columnCount);sf++){In=a.Eb(Ma.column+sf);var em=In.oa||0,Ky=xd(Ma,In,Gy);In.actual=Math.min(In.maximum,em+Ky),In.oa!==em&&(Wf-=In.oa-em)}for(;0<Wf;){var J0=In.oa||0;if(isNaN(In.width)&&In.maximum>J0&&(In.actual=Math.min(In.maximum,J0+Wf),In.oa!==J0&&(Wf-=In.oa-J0)),In.index===0)break;In=a.Eb(In.index-1)}}}}xn(ut),ti.free(yd),ti.free(Cs),fh!==void 0&&xn(fh),wu!==void 0&&xn(wu);var Gf=0,Kf=0,$0=a.desiredSize,gx=a.maxSize;el=yl(a,!0);var tm=pd=qh=0,nm=0;z=a.columnCount;for(var Q0=0;Q0<z;Q0++)qn[Q0]!==void 0&&(In=a.Eb(Q0),isFinite(In.width)?(tm+=In.width,tm+=In.Wc()):Am(In)===fp?(tm+=In.oa,tm+=In.Wc()):In.oa!==0&&(qh+=In.oa,qh+=In.Wc()));isFinite($0.width)?Gf=Math.min($0.width,gx.width):Gf=el!==Zn&&isFinite(y)?y:qh,Gf=Math.max(Gf,a.minSize.width),Gf=Math.max(Gf-tm,0);for(var Qx=qh===0?1:Math.max(Gf/qh,1),_0=0;_0<z;_0++)qn[_0]!==void 0&&(In=a.Eb(_0),isFinite(In.width)||Am(In)===fp||(In.actual=In.oa*Qx),In.position=E.width,In.oa!==0&&(E.width+=In.oa,E.width+=In.Wc()));z=a.rowCount;for(var q0=0;q0<z;q0++)mi[q0]!==void 0&&(In=a.Fb(q0),isFinite(In.height)?(nm+=In.height,nm+=In.Wc()):Am(In)===fp?(nm+=In.oa,nm+=In.Wc()):In.oa!==0&&(pd+=In.oa,pd+=In.Wc()));isFinite($0.height)?Kf=Math.min($0.height,gx.height):Kf=el!==Zn&&isFinite(x)?x:pd,Kf=Math.max(Kf,a.minSize.height),Kf=Math.max(Kf-nm,0);for(var _x=pd===0?1:Math.max(Kf/pd,1),ev=0;ev<z;ev++)mi[ev]!==void 0&&(In=a.Fb(ev),isFinite(In.height)||Am(In)===fp||(In.actual=In.oa*_x),In.position=E.height,In.oa!==0&&(E.height+=In.oa,E.height+=In.Wc()));z=oe.length;for(var Zy=0;Zy<z;Zy++){var im=oe[Zy],Vy=0,Uy=0;im.type===$n.TableRow?(Vy=E.width,In=a.Fb(im.row),Uy=In.actual):(In=a.Eb(im.column),Vy=In.actual,Uy=E.height),im.measuredBounds.h(0,0,Vy,Uy),$a(im,!1)}xn(oe),a.inRowsCols=Te},wm.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 oe,re,le=ee.length,ue=0,fe=0;fe<le;fe++)ee[fe]&&(ue=Math.max(ue,ee[fe].length));re=a.rowDefs,oe=a.colDefs;var Se=fe=0,Pe=Math.min(a.topIndex,le-1);if(0<re.length){for(;Pe!==le&&(re[Pe]===void 0||re[Pe].oa===0);)Pe++;Pe=Math.max(Math.min(Pe,le-1),0),fe=-re[Pe].position}var Ee=Math.min(a.leftIndex,ue-1);if(0<oe.length){for(;Ee!==ue&&(oe[Ee]===void 0||oe[Ee].oa===0);)Ee++;Ee=Math.max(Math.min(Ee,ue-1),0),Se=-oe[Ee].position}for(var Te=0,_e=0;Te!==le&&re[Te]===void 0;)Te++;for(;_e!==le&&oe[_e]===void 0;)_e++;ue=a.part,a.Fb(Te),a.Eb(_e);for(var Ge=0;Ge<y.length;Ge++){var st=y[Ge];if(st instanceof $n&&st.visible&&Ad(st)){if(st.type===$n.TableRow){oe=a.Fb(st.row);var ut=a.Eb(_e)}else oe=a.Fb(Te),ut=a.Eb(st.column);re=oe.position+fe+E,oe.oa!==0&&(re+=oe.Io(Math.max(Te,Pe))),oe=ut.position+Se+z,ut.oa!==0&&(oe+=ut.Io(Math.max(_e,Ee))),ut=st.measuredBounds,st.Uk(),st.actualBounds.ka();var pt=st.actualBounds,Nt=vn.allocAt(pt.x,pt.y,pt.width,pt.height);pt.x=st.type===$n.TableRow?z:oe,pt.y=st.type===$n.TableColumn?E:re,pt.width=ut.width,pt.height=ut.height,st.actualBounds.freeze(),Gh(st,!1),xr(Nt,pt)||ue===null||(ue.oh(),st.Pn(ue)),vn.free(Nt)}}for(Ge=ti.alloc(),st=0;st<le;st++)if(ee[st]){for(ue=ee[st].length,ut=a.Fb(st),re=ut.position+fe+E,ut.oa!==0&&(re+=ut.Io(Math.max(Te,Pe))),pt=0;pt<ue;pt++)if(ee[st][pt]){Nt=a.Eb(pt),oe=Nt.position+Se+z,Nt.oa!==0&&(oe+=Nt.Io(Math.max(_e,Ee)));for(var Qt=ee[st][pt],ri=Qt.length,Si=0;Si<ri;Si++){var mi=Qt[Si],qn=mi.measuredBounds;Ge.h(0,0);for(var In=1;In<mi.rowSpan&&!(st+In>=a.rowCount);In++){var uo=a.Fb(st+In);uo.oa!==0&&(Ge.height+=uo.total)}for(In=1;In<mi.columnSpan&&!(pt+In>=a.columnCount);In++)uo=a.Eb(pt+In),uo.oa!==0&&(Ge.width+=uo.total);var to=Nt.oa+Ge.width,gr=ut.oa+Ge.height;In=oe,uo=re;var Or=to,ss=gr,fs=oe,_s=re,ls=to,Wd=gr;oe+to>x.width&&(ls=Math.max(x.width-oe,0)),re+gr>x.height&&(Wd=Math.max(x.height-re,0));var Ha=mi.alignment;if(Ha.Xb()){Ha=a.defaultAlignment,Ha.sb()||(Ha=Uo);var hh=Ha.x,qs=Ha.y,Gd=Ha.offsetX;Ha=Ha.offsetY;var iu=Nt.alignment,Tu=ut.alignment;iu.sb()&&(hh=iu.x,Gd=iu.offsetX),Tu.sb()&&(qs=Tu.y,Ha=Tu.offsetY)}else hh=Ha.x,qs=Ha.y,Gd=Ha.offsetX,Ha=Ha.offsetY;(isNaN(hh)||isNaN(qs))&&(qs=hh=.5,Ha=Gd=0),iu=qn.width,Tu=qn.height;var Hl=mi.margin,Al=Hl.left+Hl.right,Sc=Hl.top+Hl.bottom,dh=rh(mi,ut,Nt,!1);!isNaN(mi.desiredSize.width)||dh!==Yn&&dh!==Oi||(iu=Math.max(to-Al,0)),!isNaN(mi.desiredSize.height)||dh!==Yn&&dh!==Ui||(Tu=Math.max(gr-Sc,0)),to=mi.maxSize,gr=mi.minSize,iu=Math.min(to.width,iu),Tu=Math.min(to.height,Tu),iu=Math.max(gr.width,iu),Tu=Math.max(gr.height,Tu),to=Tu+Sc,In+=Or*hh-(iu+Al)*hh+Gd+Hl.left,uo+=ss*qs-to*qs+Ha+Hl.top,mi.visible&&(Ko(fs,_s,ls,Wd,In,uo,qn.width,qn.height)?mi.arrange(In,uo,iu,Tu):mi.arrange(In,uo,iu,Tu,new vn(fs,_s,ls,Wd)))}}}for(ti.free(Ge),a=0;a<b;a++)x=y[a],z=x instanceof $n?x:null,z!==null&&Ad(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Pm(){this.xa="Base"}Pt(Pm,is),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}Pt(Cm,is),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function bm(){this.xa="Base"}Pt(bm,is),bm.prototype.measure=function(a,y,x,b,E,z,ee){1<b.length&&at("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 oe=b.measuredBounds,re=b.margin,le=re.right+re.left;if(re=re.top+re.bottom,isFinite(y)||isFinite(x)){var ue=b.scale,fe=oe.width;oe=oe.height;var Se=Math.max(y-le,0),Pe=Math.max(x-re,0),Ee=1;a.viewboxStretch===Li?fe!==0&&oe!==0&&(Ee=Math.min(Se/fe,Pe/oe)):fe!==0&&oe!==0&&(Ee=Math.max(Se/fe,Pe/oe)),Ee===0&&(Ee=1e-4),b.Ca*=Ee,ue!==b.scale&&($a(b,!0),b.measure(1/0,1/0,z,ee))}oe=b.measuredBounds,E.width=isFinite(y)?y:Math.max(oe.width+le,0),E.height=isFinite(x)?x:Math.max(oe.height+re,0)},bm.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=Uo),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 hp(){this.xa="Base"}Pt(hp,is),hp.prototype.measure=function(){},hp.prototype.arrange=function(){},hp.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,oe=z.width,re=z.height,le=Math.ceil(oe/E),ue=Math.ceil(re/b),fe=a.gridOrigin,Se=fe.x;fe=fe.y,y.save(),y.beginPath(),y.rect(0,0,oe,re),y.clip(),y.Se();for(var Pe=[],Ee=a.O.s,Te=Ee.length,_e=0;_e<Te;_e++){var Ge=Ee[_e],st=[];if(Pe.push(st),Ge.visible){var ut=Ge.interval;if(!(0>ut)){Ge=pv(Ge.figure);for(var pt=0;pt<Te;pt++)if(pt!==_e){var Nt=Ee[pt];Nt.visible&&pv(Nt.figure)===Ge&&(Nt=Nt.interval,Nt>ut&&st.push(Nt))}}}}for(Ee=a.O.s,Te=Ee.length,_e=0;_e<Te;_e++){var Qt=Ee[_e];if(Qt.visible&&(st=Qt.interval||1,Ge=Math.abs(st),!(2>E*Ge*x))){if(ut=Qt.segmentIndex,(!isFinite(ut)||isNaN(ut))&&(ut=0),0>ut&&(ut=Ge-Math.min(-ut,Ge)),ut=Math.round(ut%Ge),Ge=Qt.opacity,pt=1,Ge!==1){if(Ge===0)continue;pt=y.globalAlpha,y.globalAlpha=pt*Ge}Nt=Pe[_e];var ri=!1,Si=Qt.strokeDashArray;if(Si!==null&&(ri=!0,y.js(Si,Qt.strokeDashOffset)),Qt.figure==="LineV"&&Qt.stroke!==null&&0<Qt.strokeWidth){for(y.lineWidth=Qt.strokeWidth,Ea(a,y,Qt.stroke,!1,!1,z,ee),y.beginPath(),Si=Qt=Math.floor((Se-E)/E);Si<=Qt+le;Si++){var mi=Si*E+Se;0<=mi&&mi<=oe&&Em(Si,st,ut,Nt)&&(y.moveTo(mi,0),y.lineTo(mi,re))}y.stroke(),y.Se()}else if(Qt.figure==="LineH"&&Qt.stroke!==null&&0<Qt.strokeWidth){for(y.lineWidth=Qt.strokeWidth,Ea(a,y,Qt.stroke,!1,!1,z,ee),y.beginPath(),Si=Qt=Math.floor((fe-b)/b);Si<=Qt+ue;Si++)mi=Si*b+fe,0<=mi&&mi<=re&&Em(Si,st,ut,Nt)&&(y.moveTo(0,mi),y.lineTo(oe,mi));y.stroke(),y.Se()}else if(Qt.figure==="BarV"&&Qt.fill!==null)for(Ea(a,y,Qt.fill,!0,!1,z,ee),Qt=Qt.width,isNaN(Qt)&&(Qt=E),mi=Si=Math.floor((Se-E)/E);mi<=Si+le;mi++){var qn=mi*E+Se;0<=qn+Qt&&qn<=oe&&Em(mi,st,ut,Nt)&&y.fillRect(qn,0,Qt,re)}else if(Qt.figure==="BarH"&&Qt.fill!==null)for(Ea(a,y,Qt.fill,!0,!1,z,ee),Qt=Qt.height,isNaN(Qt)&&(Qt=b),mi=Si=Math.floor((fe-b)/b);mi<=Si+ue;mi++)qn=mi*b+fe,0<=qn+Qt&&qn<=re&&Em(mi,st,ut,Nt)&&y.fillRect(0,qn,oe,Qt);ri&&y.fs(),Ge!==1&&(y.globalAlpha=pt)}}y.restore(),y.Vc(!1)};function Em(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 Lm(){this.xa="Base"}Pt(Lm,is),Lm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof ur||a instanceof ei){var ee=null,oe=null;if(a instanceof ei&&(ee=a),a instanceof ur&&(oe=a,ee=oe.adornedPart,a.j===null&&(a.j=[])),ee instanceof ei){var re=ee;if(z===0)ia(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var le=a instanceof ur?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ue=re.points,fe=ee.pointsCount;oe!==null?oe.Ul(!1):ee!==null&&ee.Ul(!1),oe=y.width;var Se=y.height,Pe=a.j;if(Pe.length=0,le!==null){i1(a,oe,Se,le);var Ee=le.measuredBounds;x.ed(Ee),Pe.push(Ee)}Ee=Mo.alloc();for(var Te=Ke.alloc(),_e=Ke.alloc(),Ge=0;Ge<z;Ge++){var st=b[Ge];if(st!==le)if(st.isPanelMain&&st instanceof Eo){i1(a,oe,Se,st);var ut=st.measuredBounds;x.ed(ut),Pe.push(ut)}else if(2>fe)st.measure(1/0,1/0,0,0),ut=st.measuredBounds,x.ed(ut),Pe.push(ut);else{var pt=st.segmentIndex,Nt=st.segmentFraction,Qt=st.alignmentFocus;Qt.Mc()&&(Qt=Uo);var ri=st.segmentOrientation,Si=st.segmentOffset;if(isNaN(pt)){var mi=re.ua;ut=en(),mi.Qu(Nt,ut);var qn=Ke.allocAt(ut[0],ut[1]);if(qn.add(re.i(0)),mi.type===ni.j?qn.offset(-mi.startX,-mi.startY):(mi=mi.figures.first(),mi!==null&&qn.offset(-mi.startX,-mi.startY)),mi=ut[2],ri!==sl){var In=re.computeAngle(st,ri,mi);st.Kb=In}In=qn.x-y.x;var uo=qn.y-y.y;Ke.free(qn),xn(ut)}else if(pt<-fe||pt>=fe)ut=Ke.alloc(),re.vg(),re.computeMidPoint(ut),mi=re.midAngle,ri!==sl&&(In=re.computeAngle(st,ri,mi),st.Kb=In),In=ut.x-y.x,uo=ut.y-y.y,Ke.free(ut);else{if(In=0,0<=pt?(uo=ue.M(pt),ut=pt<fe-1?ue.M(pt+1):uo):(In=fe+pt,uo=ue.M(In),ut=0<In?ue.M(In-1):uo),uo.Xa(ut)){0<=pt?(mi=0<pt?ue.M(pt-1):uo,In=pt<fe-2?ue.M(pt+2):ut):(mi=In<fe-1?ue.M(In+1):uo,In=1<In?ue.M(In-2):ut),qn=mi.Bf(uo);var to=ut.Bf(In);mi=qn>to+10?0<=pt?mi.ab(uo):uo.ab(mi):to>qn+10?0<=pt?ut.ab(In):In.ab(ut):0<=pt?mi.ab(In):In.ab(mi)}else mi=0<=pt?uo.ab(ut):ut.ab(uo);ri!==sl&&(In=re.computeAngle(st,ri,mi),st.Kb=In),In=uo.x+(ut.x-uo.x)*Nt-y.x,uo=uo.y+(ut.y-uo.y)*Nt-y.y}st.measure(1/0,1/0,0,0),ut=st.measuredBounds,qn=st.naturalBounds;var gr=0;st instanceof Eo&&(gr=st.strokeWidth),to=qn.width+gr;var Or=qn.height+gr;Ee.reset(),Ee.translate(-ut.x,-ut.y),Ee.scale(st.scale,st.scale),Ee.rotate(ri===sl?st.angle:mi,to/2,Or/2),ri!==Cp&&ri!==Ep||Ee.rotate(90,to/2,Or/2),ri!==bp&&ri!==Lp||Ee.rotate(-90,to/2,Or/2),ri===n0&&(45<mi&&135>mi||225<mi&&315>mi)&&Ee.rotate(-mi,to/2,Or/2),qn=new vn(0,0,to,Or),Te.xi(qn,Qt),Ee.Ga(Te),Qt=-Te.x+gr/2*st.scale,st=-Te.y+gr/2*st.scale,_e.assign(Si),gr=isNaN(Si.x);var ss=isNaN(Si.y);if(gr||ss){to=to/2+3,Or=Or/2+3;var fs=45<=mi&&135>=mi,_s=225<=mi&&315>=mi;ri===sl&&(fs||_s)?(_e.x=ss?to:Si.y,_e.y=gr?Or:Si.x,fs?0<=pt||isNaN(pt)&&.5>Nt||!gr||(_e.y=-Or):_s&&((0<=pt||isNaN(pt)&&.5>Nt)&&gr&&(_e.y=-Or),ss&&(_e.x=-to))):(gr&&(_e.x=0<=pt||isNaN(pt)&&.5>Nt?to:-to),ss&&(_e.y=-Or),_e.rotate(mi))}else _e.rotate(mi);In+=_e.x,uo+=_e.y,qn.set(ut),qn.h(In+Qt,uo+st,ut.width,ut.height),Pe.push(qn),x.ed(qn)}}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),ia(E,x.width||0,x.height||0),Mo.free(Ee),Ke.free(Te),Ke.free(_e)}}}},Lm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof ur||a instanceof ei){var b=a,E=null;a instanceof ur&&(E=a,b=E.adornedPart);var z=a instanceof ur?null:b.path,ee=a.j;if(ee.length!==0){var oe=0;if(z!==null&&oe<ee.length){var re=ee[oe];oe++,z.arrange(re.x-a.jg.x,re.y-a.jg.y,re.width,re.height)}for(re=0;re<x;re++){var le=y[re];if(le!==z&&oe<ee.length){var ue=ee[oe];oe++,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 ei)for(z=a.labelNodes;z.next();){var fe=a;ee=z.value,oe=ee.segmentIndex,re=ee.segmentFraction;var Se=ee.alignmentFocus;if(le=ee.segmentOrientation,ue=ee.segmentOffset,isNaN(oe)){var Pe=fe.ua,Ee=en();Pe.Qu(re,Ee);var Te=Ke.allocAt(Ee[0],Ee[1]);Te.add(fe.i(0)),Pe.type===ni.j||(Pe=Pe.figures.first()),Te.offset(-Pe.startX,-Pe.startY),Pe=Ee[2],le!==sl&&(fe=fe.computeAngle(ee,le,Pe),ee.angle=fe),fe=Te.x;var _e=Te.y;Ke.free(Te),xn(Ee)}else if(oe<-x||oe>=x)Ee=Ke.alloc(),Pe=fe,_e=Ee,Pe.vg(),Pe.computeMidPoint(_e),Pe=fe.midAngle,le!==sl&&(fe=fe.computeAngle(ee,le,Pe),ee.angle=fe),fe=Ee.x,_e=Ee.y,Ke.free(Ee);else{if(Te=0,0<=oe?(Ee=y.s[oe],_e=oe<x-1?y.s[oe+1]:Ee):(Te=x+oe,Ee=y.s[Te],_e=0<Te?y.s[Te-1]:Ee),Ee.Xa(_e)){0<=oe?(Pe=0<oe?y.s[oe-1]:Ee,Te=oe<x-2?y.s[oe+2]:_e):(Pe=Te<x-1?y.s[Te+1]:Ee,Te=1<Te?y.s[Te-2]:_e);var Ge=Pe.Bf(Ee),st=_e.Bf(Te);Pe=Ge>st+10?0<=oe?Pe.ab(Ee):Ee.ab(Pe):st>Ge+10?0<=oe?_e.ab(Te):Te.ab(_e):0<=oe?Pe.ab(Te):Te.ab(Pe)}else Pe=0<=oe?Ee.ab(_e):_e.ab(Ee);le!==sl&&(fe=fe.computeAngle(ee,le,Pe),ee.angle=fe),fe=Ee.x+(_e.x-Ee.x)*re,_e=Ee.y+(_e.y-Ee.y)*re}if(Se.ys())ee.location=new Ke(fe,_e);else{Se.Mc()&&(Se=Uo),Ee=Mo.alloc(),Ee.reset(),Ee.scale(ee.scale,ee.scale),Ee.rotate(ee.angle,0,0);var ut=ee.naturalBounds;Te=vn.allocAt(0,0,ut.width,ut.height),Ge=Ke.alloc(),Ge.xi(Te,Se),Ee.Ga(Ge),Se=-Ge.x,st=-Ge.y;var pt=ut.width,Nt=ut.height;ut=Ke.alloc(),ut.assign(ue);var Qt=isNaN(ue.x),ri=isNaN(ue.y);if(Qt||ri){pt=pt/2+3,Nt=Nt/2+3;var Si=45<=Pe&&135>=Pe,mi=225<=Pe&&315>=Pe;le===sl&&(Si||mi)?(ut.x=ri?pt:ue.y,ut.y=Qt?Nt:ue.x,Si?0<=oe||isNaN(oe)&&.5>re||!Qt||(ut.y=-Nt):mi&&((0<=oe||isNaN(oe)&&.5>re)&&Qt&&(ut.y=-Nt),ri&&(ut.x=-pt))):(Qt&&(ut.x=0<=oe||isNaN(oe)&&.5>re?pt:-pt),ri&&(ut.y=-Nt),ut.rotate(Pe))}else ut.rotate(Pe);fe+=ut.x,_e+=ut.y,Ee.pp(Te),Se+=Te.x,st+=Te.y,oe=Ke.allocAt(fe+Se,_e+st),ee.move(oe),Ke.free(oe),Ke.free(ut),Ke.free(Ge),vn.free(Te),Mo.free(Ee)}}E!==null?E.Ul(!1):b.Ul(!1),b=D1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Ke.free(b)}};function i1(a,y,x,b){if(ql(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof ur&&a.type===$n.Link&&a.adornedObject instanceof Eo&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof ei&&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 ur&&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),$a(b,!1)}}function dp(){this.xa="Base"}Pt(dp,is),dp.prototype.measure=function(a,y,x,b,E,z,ee){var oe=a.Pb();a.graduatedBounds=[];var re=oe.margin,le=re.right+re.left,ue=re.top+re.bottom;oe.measure(y,x,z,ee);var fe=oe.measuredBounds,Se=new vn(-re.left,-re.top,Math.max(fe.width+le,0),Math.max(fe.height+ue,0));a.graduatedBounds.push(Se),E.assign(Se);for(var Pe=oe.geometry,Ee=oe.strokeWidth,Te=Pe.flattenedSegments,_e=Pe.flattenedLengths,Ge=Pe.flattenedTotalLength,st=Te.length,ut=0,pt=0,Nt=en(),Qt=0;Qt<st;Qt++){var ri=Te[Qt],Si=[];pt=ut=0;for(var mi=ri.length,qn=0;qn<mi;qn+=2){var In=ri[qn],uo=ri[qn+1];if(qn!==0){var to=180*Math.atan2(uo-pt,In-ut)/Math.PI;0>to&&(to+=360),Si.push(to)}ut=In,pt=uo}Nt.push(Si)}if(a.graduatedIntervals===null){for(var gr=[],Or=a.O.s,ss=Or.length,fs=0;fs<ss;fs++){var _s=Or[fs],ls=[];if(gr.push(ls),_s.visible){var Wd=_s.interval;if(!(0>Wd)){for(var Ha=0;Ha<ss;Ha++)if(Ha!==fs){var hh=Or[Ha];if(hh.visible&&_s.constructor===hh.constructor){var qs=hh.interval;qs>Wd&&ls.push(qs)}}}}}a.graduatedIntervals=gr}var Gd=a.graduatedIntervals,iu=a.O.s,Tu=iu.length,Hl=0,Al=0,Sc=Ge;a.graduatedMarks=[];for(var dh,Tg=0;Tg<Tu;Tg++){var Wl=iu[Tg];if(dh=[],Wl.visible&&Wl!==oe){var el=Math.abs(Wl.interval),$p=a.graduatedTickUnit;if(!(2>$p*el*Ge/a.graduatedRange&&Wl.graduatedSkip===null)){var If=_e[0][0],Eh=0,Dl=0;Al=Ge*Wl.graduatedStart-1e-4,Sc=Ge*Wl.graduatedEnd+1e-4;var ef=$p*el,Gl=a.graduatedTickBase;if(Gl<a.graduatedMin){var xc=(a.graduatedMin-Gl)/ef;xc=xc%1===0?xc:Math.floor(xc+1),Gl+=xc*ef}else Gl>a.graduatedMin+ef&&(Gl-=Math.floor((Gl-a.graduatedMin)/ef)*ef);for(var Z0=Gd[Tg],Qp=Gl,Hy=1e-6*a.graduatedMax,qh=1;Gl<=a.graduatedMax+Hy;qh++){e:{for(var pd=Z0.length,Rf=0;Rf<pd;Rf++){var wc=(Gl-a.graduatedTickBase)%(Z0[Rf]*a.graduatedTickUnit),Og=1e-6*a.graduatedTickUnit;if(wc<Og&&wc>-Og){var Pc=!1;break e}}Pc=!0}if(Pc&&(Gl>a.graduatedMax&&(Gl=a.graduatedMax),Wl.graduatedSkip===null||Wl instanceof jr&&!Wl.graduatedSkip(Gl,Wl)||Wl instanceof Eo&&!Wl.graduatedSkip(Gl,Wl))&&(Hl=(Gl-a.graduatedMin)*Ge/a.graduatedRange,Hl>Ge&&(Hl=Ge),Al<=Hl&&Hl<=Sc)){for(var ed=Nt[Eh][Dl],Kd=_e[Eh][Dl];Eh<_e.length;){for(;Hl>If&&Dl<_e[Eh].length-1;)Dl++,ed=Nt[Eh][Dl],Kd=_e[Eh][Dl],If+=Kd;if(Hl<=If)break;Eh++,Dl=0,ed=Nt[Eh][Dl],Kd=_e[Eh][Dl],If+=Kd}var Bl=Te[Eh],Lh=Bl[2*Dl],V0=Bl[2*Dl+1],md=(Hl-(If-Kd))/Kd,Ig=new Ke(Lh+(Bl[2*Dl+2]-Lh)*md+Ee/2-Pe.bounds.x,V0+(Bl[2*Dl+3]-V0)*md+Ee/2-Pe.bounds.y);Ig.scale(oe.scale,oe.scale);e:{var ch=ed,tf=Nt[Eh];if(!(.5005>md&&.4995<md)){var Mh=ch;if(.5>md?0<Dl?Mh=tf[Dl-1]:Bt.$(Bl[0],Bl[Bl.length-2])&&Bt.$(Bl[1],Bl[Bl.length-1])&&(Mh=tf[tf.length-1]):.5<md&&(Dl+1<tf.length?Mh=tf[Dl+1]:Bt.$(Bl[0],Bl[Bl.length-2])&&Bt.$(Bl[1],Bl[Bl.length-1])&&(Mh=tf[0])),ch!==Mh){var jf=Math.abs(ch-Mh);if(180<jf&&(ch<Mh?ch+=360:Mh+=360,jf=Math.abs(ch-Mh)),5e-4>md||.9995<md){ed=(ch+Mh)/2%360;break e}if(10>jf){var Rg=1-Math.abs(.5-md);ed=(ch*Rg+Mh*(1-Rg))%360;break e}}}ed=ch}if(Wl instanceof jr){var $u="";Wl.graduatedFunction!==null?($u=Wl.graduatedFunction(Gl,Wl),$u=$u!=null?$u.toString():""):$u=(+Gl.toFixed(2)).toString(),$u!==""&&dh.push({$l:Ig,angle:ed,text:$u})}else dh.push({$l:Ig,angle:ed})}Gl=Qp+qh*ef}}}a.graduatedMarks.push(dh)}xn(Nt);var Cs=a.graduatedMarks;if(Cs!==null)for(var _p=b.length,cl=0;cl<_p;cl++){var Wa=b[cl],fl=Cs[cl];if(Wa.visible&&Wa!==oe&&fl.length!==0){if(Wa instanceof Eo){var vd=a,Zd=E,nf=Wa.alignmentFocus;nf.Mc()&&(nf=es);var Wy=Wa.angle;Wa.Kb=0,Wa.measure(1/0,1/0,0,0),Wa.Kb=Wy;var U0=Wa.measuredBounds,jg=U0.width,of=U0.height,zf=vn.allocAt(0,0,jg,of),Tl=Ke.alloc();Tl.xi(zf,nf),vn.free(zf);for(var yd=-Tl.x,fh=-Tl.y,wu=new vn,Cc=fl.length,zg=0;zg<Cc;zg++)for(var bc=fl[zg],X0=bc.$l.x,Hg=bc.$l.y,Ma=bc.angle,Qu=0;4>Qu;Qu++){switch(Qu){case 0:Tl.h(yd,fh);break;case 1:Tl.h(yd+jg,fh);break;case 2:Tl.h(yd,fh+of);break;case 3:Tl.h(yd+jg,fh+of)}Tl.rotate(Ma+Wa.angle),Tl.offset(X0,Hg),zg===0&&Qu===0?wu.h(Tl.x,Tl.y,0,0):wu.Ye(Tl),Tl.offset(-X0,-Hg),Tl.rotate(-Ma-Wa.angle)}Ke.free(Tl),vd.graduatedBounds!==null&&vd.graduatedBounds.push(wu),lo(Zd,wu.x,wu.y,wu.width,wu.height)}else if(Wa instanceof jr){var Ou=a,Y0=E;Ou.temporaryTextBlock===null&&(Ou.temporaryTextBlock=new jr);var Kl=Ou.temporaryTextBlock;y1(Kl,Wa);var Vd=Wa.alignmentFocus;Vd.Mc()&&(Vd=es);for(var Iu=Wa.segmentOrientation,Wg=Wa.segmentOffset,Ec=new vn,qp=0,Gg=0,Fh=0,rf=0,Lc=0,Kg=fl.length,Ud=0;Ud<Kg;Ud++){var td=fl[Ud];qp=td.$l.x,Gg=td.$l.y,Fh=td.angle,Lc=rf=Wa.angle,Iu!==sl&&(Lc=Iu===Pp||Iu===t0?Fh+Wa.angle:Fh,rf=ei.computeAngle(Iu,Lc)),Kl.Kb=rf,Kl.text=td.text||"",Kl.measure(1/0,1/0,0,0);var Xd=Kl.measuredBounds,Sd=Kl.naturalBounds,Yd=Sd.width,af=Sd.height,gh=Mo.alloc();gh.reset(),gh.translate(-Xd.x,-Xd.y),gh.scale(Kl.scale,Kl.scale),gh.rotate(Lc,Yd/2,af/2),Iu!==Cp&&Iu!==Ep||gh.rotate(90,Yd/2,af/2),Iu!==bp&&Iu!==Lp||gh.rotate(-90,Yd/2,af/2),Iu===n0&&(45<Fh&&135>Fh||225<Fh&&315>Fh)&&gh.rotate(-Fh,Yd/2,af/2);var Hf=vn.allocAt(0,0,Yd,af),Jd=Ke.alloc();Jd.xi(Hf,Vd),gh.Ga(Jd);var Wf=-Jd.x,Gy=-Jd.y,xd=Ke.alloc();xd.assign(Wg),isNaN(xd.x)&&(xd.x=Yd/2+3),isNaN(xd.y)&&(xd.y=-(af/2+3)),xd.rotate(Fh),qp+=xd.x+Wf,Gg+=xd.y+Gy;var sf=new vn(qp,Gg,Xd.width,Xd.height),em=new vn(Xd.x,Xd.y,Xd.width,Xd.height),Ky=new vn(Sd.x,Sd.y,Sd.width,Sd.height);td.Sz=rf,td.lineCount=Kl.lineCount,td.lines=[Kl.Cb,Kl.Ih,Kl.df,Kl.Le,Kl.Qc,Kl.Qb,Kl.ze],td.actualBounds=sf,td.measuredBounds=em,td.naturalBounds=Ky,Ud===0?Ec.assign(sf):Ec.ed(sf),Ke.free(xd),Ke.free(Jd),vn.free(Hf),Mo.free(gh)}Ou.graduatedBounds!==null&&Ou.graduatedBounds.push(Ec),lo(Y0,Ec.x,Ec.y,Ec.width,Ec.height)}$a(Wa,!1)}}},dp.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,oe=z[ee];ee++,b!==null&&b.arrange(oe.x-x.x,oe.y-x.y,oe.width,oe.height);for(var re=y.length,le=0;le<re;le++){var ue=y[le];oe=E[le],ue.visible&&ue!==b&&oe.length!==0&&(oe=z[ee],ee++,ue.arrange(oe.x-x.x,oe.y-x.y,oe.width,oe.height))}a.graduatedBounds=null}}},dp.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 Rl,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 oe=z.actualBounds,re=a.O.s,le=a.graduatedMarks,ue=re.length,fe=0;fe<ue;fe++){var Se=re[fe],Pe=le[fe],Ee=Pe.length;if(Se.visible&&Se!==z&&Pe.length!==0){if(Se instanceof Eo){if(!(2>a.graduatedTickUnit*Se.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&Se.graduatedSkip===null)){var Te=Se.measuredBounds,_e=Se.strokeWidth*Se.scale,Ge=Se.alignmentFocus;Ge.Mc()&&(Ge=es);for(var st=0;st<Ee;st++){var ut=Pe[st].$l,pt=Pe[st].angle,Nt=Ge,Qt=Se.Ab;Qt.reset(),Qt.translate(ut.x+oe.x,ut.y+oe.y),Qt.rotate(pt+Se.angle,0,0),Qt.translate(-Te.width*Nt.x+Nt.offsetX+_e/2,-Te.height*Nt.y+Nt.offsetY+_e/2),Qt.scale(Se.scale,Se.scale),Nu(Se,!1),Se.wh.set(Se.Ab),Se.Kk=Se.scale,gu(Se,!1),Se.gc(y,x),E&&(a.svg.appendChild(Se.svg),Se.svg=null),Se.Ab.reset()}}}else if(Se instanceof jr)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new jr),Te=a.temporaryTextBlock,y1(Te,Se),_e=0;_e<Ee;_e++)Ge=Pe[_e],Ge.actualBounds&&Ge.measuredBounds&&Ge.naturalBounds&&(Te.ec=Ge.text||"",Te.Kb=Ge.Sz||0,Te.Gc=Ge.lineCount||0,st=Ge.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]),Ge.naturalBounds&&(Te.dc=Ge.naturalBounds),Ge.actualBounds&&(st=Ge.actualBounds,Te.arrange(st.x,st.y,st.width,st.height)),st=Ge.actualBounds,Te.arrange(st.x,st.y,st.width,st.height),ut=Ge.measuredBounds,Ge=Ge.naturalBounds,pt=Te.Ab,pt.reset(),pt.translate(st.x+oe.x,st.y+oe.y),pt.translate(-ut.x,-ut.y),Te.no(pt,Ge.x,Ge.y,Ge.width,Ge.height),Nu(Te,!1),Te.wh.set(Te.Ab),Te.Kk=Te.scale,gu(Te,!1),Te.Ng=Se.part,Te.Me=Se.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 $n(a,y){if(kt.call(this),this.na=null,a===void 0)this.na=$n.Position;else if(typeof a=="string"){var x=Zu.I(a);x!==null&&(this.na=x)}else a instanceof is?this.na=a:a&&(this.na=$n.Position,y=a);this.na===null&&at("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===$n.Grid?1048576:0),this.O=new Ln,this.yb=qa,this.Tm=sr,this.Uf=mo,this.$g=null,this.$e="",this.jg=new vn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Li,this.jn=er,this.kn=Do,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Pt($n,kt),$n.prototype.cloneProtected=function(a){kt.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},$n.prototype.Af=function(a){kt.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},$n.prototype.copy=function(){var a=kt.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 li&&(z.Te=!0);var oe=a.diagram;oe!==null&&oe.undoManager.isUndoingRedoing||z.cb(fa,"elements",a,null,E,null,ee)}}return a}return null},be=$n.prototype,be.toString=function(){return"Panel("+this.type.name+")#"+_i(this)},be.Pn=function(a){kt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},be.hh=function(a,y){if(this.na===$n.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===$n.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===$n.Table)if(a.yc(),a instanceof Rl){var x=a.yd;a.yd=fm(a,"gojs-ts"),gv(this,a),a.nh.pop(),a.yd=x}else gv(this,a);(x=this.isClipping&&this.na===$n.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,ee=0;ee<z;ee++){var oe=E[ee];x&&oe===b&&(a.clipInsteadOfFill=!0),oe.gc(a,y),x&&oe===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function gv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&Mm(a,y,!0,x,!0),b!==null&&Mm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Mm(a,y,!0,x,!1),b!==null&&Mm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,z=a.actualBounds,ee=a.naturalBounds,oe=!0,re=0;re<E;re++){var le=b[re];if(le!==void 0&&le.actual!==0)if(oe)oe=!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){Ea(a,y,fe,!1,!1,ee,z),fe=!1;var Se=le.separatorDashArray;Se===null&&(Se=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Se!==null&&(fe=!0,y.js(Se,0)),y.beginPath(),Se=le.position+ue,x?Se>ee.height&&(ue-=Se-ee.height):Se>ee.width&&(ue-=Se-ee.width),le=le.position+ue/2,y.lineWidth=ue,ue=a.yb,x?(le+=ue.top,Se=ee.width-ue.right,y.moveTo(ue.left,le),y.lineTo(Se,le)):(le+=ue.left,Se=ee.height-ue.bottom,y.moveTo(le,ue.top),y.lineTo(le,Se)),y.stroke(),y.Se(),fe&&y.fs()}}}}function Mm(a,y,x,b,E){for(var z=b.length,ee=a.actualBounds,oe=a.naturalBounds,re=r1(a,!0),le=r1(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 Se=x?ee.height:ee.width;if(!(fe.position>Se)){var Pe=fe.Wc(),Ee=fe.separatorStrokeWidth;isNaN(Ee)&&(Ee=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Te=fe.separatorStroke;Te===null&&(Te=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Te===null||fe.index===(x?re:le))&&(Ee=0),Pe-=Ee,Ee=fe.position+Ee,Pe+=fe.actual,Ee+Pe>Se&&(Pe=Se-Ee),0>=Pe||(Se=a.yb,Ea(a,y,fe.background,!0,!1,oe,ee),x?y.fillRect(Se.left,Ee+Se.top,ee.width-(Se.left+Se.right),Pe):y.fillRect(Ee+Se.left,Se.top,Pe,ee.height-(Se.top+Se.bottom)))}}}}function r1(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 pv(a){return a==="LineV"||a==="BarV"}be.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},be.kk=function(a,y,x){if(!kt.prototype.kk.call(this,a,y,x))return!1;if(this.type===$n.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,gv(this,a),a.yd=null;else if(this.na===$n.Grid||this.na===$n.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},be.nk=function(){return!0},be.$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 oe=y[ee].actualBounds;E=ee===0?oe.x:Math.min(oe.x,E),z=ee===0?oe.y:Math.min(oe.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 kt.prototype.$o.call(this,a,y,x,b)},be.Sj=function(a,y,x,b,E){var z=this.se(),ee=this.transform,oe=1/(ee.m11*ee.m22-ee.m12*ee.m21),re=ee.m22*oe,le=-ee.m12*oe,ue=-ee.m21*oe,fe=ee.m11*oe,Se=oe*(ee.m21*ee.dy-ee.m22*ee.dx),Pe=oe*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,Bt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,b,E);if(this.background!==null)return z=a*re+y*ue+Se,oe=a*le+y*fe+Pe,a=x*re+b*ue+Se,re=x*le+b*fe+Pe,E.h(0,0),x=this.naturalBounds,z=Bt.Ff(0,0,x.width,x.height,z,oe,a,re,E),E.transform(ee),z;z||(re=1,ue=le=0,fe=1,Pe=Se=0),oe=a*re+y*ue+Se,a=a*le+y*fe+Pe,re=x*re+b*ue+Se,x=x*le+b*fe+Pe,E.h(re,x),b=(re-oe)*(re-oe)+(x-a)*(x-a),le=!1,fe=this.O.s,Pe=fe.length,ue=Ke.alloc(),Se=null,y=1/0;var Ee=null,Te=this.isClipping&&this.na===$n.Spot;Te&&(Ee=Ke.alloc(),Se=this.Pb(),(le=Se.Sj(oe,a,re,x,Ee))&&(y=(oe-Ee.x)*(oe-Ee.x)+(a-Ee.y)*(a-Ee.y)));for(var _e=0;_e<Pe;_e++){var Ge=fe[_e];Ge.visible&&Ge!==Se&&Ge.Sj(oe,a,re,x,ue)&&(le=!0,Ge=(oe-ue.x)*(oe-ue.x)+(a-ue.y)*(a-ue.y),Ge<b&&(b=Ge,E.set(ue)))}return Te&&(y>b&&E.set(Ee),Ke.free(Ee)),Ke.free(ue),z&&E.transform(ee),le},be.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();kt.prototype.Gj.call(this)},be.v=function(a){if(!ql(this)){kt.prototype.v.call(this,a),a=null,(this.na===$n.Auto||this.na===$n.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=yl(E,!1);(E instanceof al||E instanceof $n||E instanceof jr||z!==Zn)&&E.v(!0)}}}},be.Uj=function(){if(!ql(this)){$a(this,!0),Gh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},be.Uk=function(){if(!(this.l&2048)){Nu(this,!0),gu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},be.Wu=function(){gu(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},be.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 oe=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,oe.width)),isNaN(z.height)||(y=Math.min(z.height,oe.height)),a=Math.max(x,a),y=Math.max(b,y);var re=this.yb;a=Math.max(a-re.left-re.right,0),y=Math.max(y-re.top-re.bottom,0);var le=this.O.s;le.length!==0&&this.na.measure(this,a,y,le,E,x,b),a=E.width+re.left+re.right,re=E.height+re.top+re.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(re=z.height),a=Math.min(oe.width,a),re=Math.min(oe.height,re),a=Math.max(ee.width,a),re=Math.max(ee.height,re),a=Math.max(x,a),re=Math.max(b,re),ia(E,a,re),ia(this.naturalBounds,a,re),this.Ge(0,0,a,re)},be.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 cd(a){return a.part!==null?a.part.locationObject:null}be.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=yl(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,oe=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===b&&(a=Zn),a){case Zn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Yn:this.v(!0),this.measure(x+oe,b+ee,0,0);break;case Oi:this.v(!0),this.measure(x+oe,z+ee,0,0);break;case Ui:this.v(!0),this.measure(y+oe,b+ee,0,0)}}this.na.arrange(this,E,this.jg)}},be.gh=function(a){var y=this.naturalBounds,x=cd(this);if(Ko(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Ke.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Lo(E.set(a),z.transform),z.ca(E)))return Ke.free(E),!0}return Ke.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},be.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},be.qm=function(a,y){if(y(this,a),a instanceof $n){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Uc(a,y){a1(a,a,y)}function a1(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 $n&&a1(a,z,x)}}function vx(a,y){s1(a,a,y)}function s1(a,y,x){if(x(y),y instanceof $n){y=y.O.s;for(var b=y.length,E=0;E<b;E++)s1(a,y[E],x)}}be.Nl=function(a){return l1(this,this,a)};function l1(a,y,x){if(x(y))return y;if(y instanceof $n){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=l1(a,y[E],x);if(z!==null)return z}}return null}be.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=cp(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof $n){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function u1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof $n?x=Math.max(x,u1(E)):E instanceof Eo&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}be.se=function(){return!(this.type===$n.TableRow||this.type===$n.TableColumn)};function Ad(a){return a.type===$n.TableRow||a.type===$n.TableColumn}be.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),ol(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),ee=z?a:Lo(Ke.allocAt(a.x,a.y),this.transform),oe=this.diagram,re=10,le=5;if(oe!==null&&(re=oe.Ql("extraTouchArea"),le=re/2),Ko(-(le*E),-(le*E),b.width+re*E,b.height+re*E,ee.x,ee.y)){if(!this.isAtomic){E=this.O.s;var ue=E.length;if(oe=Ke.alloc(),le=(re=this.isClipping&&this.na===$n.Spot)?this.Pb():null,re&&(le.se()?Lo(oe.set(a),le.transform):oe.set(a),!le.ca(oe)))return Ke.free(oe),z||Ke.free(ee),null;for(var fe=cd(this);ue--;){var Se=E[ue];if((Se.visible||Se===fe)&&(Se.se()?Lo(oe.set(a),Se.transform):oe.set(a),!re||Se!==le)){var Pe=null;if(Se instanceof $n?Pe=Se.ic(oe,y,x):Se.pickable===!0&&Se.ca(oe)&&(Pe=Se),Pe!==null&&(y!==null&&(Pe=y(Pe)),Pe!==null&&(x===null||x(Pe))))return Ke.free(oe),z||Ke.free(ee),Pe}}Ke.free(oe)}return this.background===null&&this.areaBackground===null?(z||Ke.free(ee),null):(a=Ko(0,0,b.width,b.height,ee.x,ee.y)?this:null,z||Ke.free(ee),a)}return z||Ke.free(ee),null},be.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:Lo(Ke.allocAt(a.x,a.y),this.transform);if(E=Ko(0,0,E.width,E.height,ee.x,ee.y),Ad(this)||E){if(!this.isAtomic){for(var oe=this.O.s,re=oe.length,le=Ke.alloc(),ue=cd(this);re--;){var fe=oe[re];if(fe.visible||fe===ue){fe.se()?Lo(le.set(a),fe.transform):le.set(a);var Se=fe;fe=fe instanceof $n?fe:null,(fe!==null?fe.ji(le,y,x,b):Se.ca(le))&&Se.pickable!==!1&&(y!==null&&(Se=y(Se)),Se===null||x!==null&&!x(Se)||b.add(Se))}}Ke.free(le)}return z||Ke.free(ee),E&&(this.background!==null||this.areaBackground!==null)}return z||Ke.free(ee),!1},be.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=Mo.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return mv(this,y,x,E),z===void 0&&Mo.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var oe=cd(this),re=this.O.s,le=re.length;le--;){var ue=re[le];if(ue.visible||ue===oe){var fe=ue.actualBounds,Se=this.naturalBounds;fe.x>Se.width||fe.y>Se.height||0>fe.x+fe.width||0>fe.y+fe.height||(fe=ue,ue=ue instanceof $n?ue:null,Se=Mo.alloc(),Se.set(ee),(ue!==null?ue.Cf(a,y,x,b,E,Se):as(fe,a,b,Se))&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||E.add(fe)),Mo.free(Se))}}return z===void 0&&Mo.free(ee),b}return z===void 0&&Mo.free(ee),!1};function mv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var ee=E[z];if(ee.visible){var oe=ee.actualBounds,re=a.naturalBounds;oe.x>re.width||oe.y>re.height||0>oe.x+oe.width||0>oe.y+oe.height||(ee instanceof $n&&mv(ee,y,x,b),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||b.add(ee))}}}be.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,oe=this.se(),re=oe?a:Lo(Ke.allocAt(a.x,a.y),this.transform),le=oe?y:Lo(Ke.allocAt(y.x,y.y),this.transform),ue=re.Bf(le),fe=0<re.x&&re.x<ee.width&&0<re.y&&re.y<ee.height||dr(re.x,re.y,0,0,0,ee.height)<=ue||dr(re.x,re.y,0,ee.height,ee.width,ee.height)<=ue||dr(re.x,re.y,ee.width,ee.height,ee.width,0)<=ue||dr(re.x,re.y,ee.width,0,0,0)<=ue;if(ee=re.zd(0,0)<=ue&&re.zd(0,ee.height)<=ue&&re.zd(ee.width,0)<=ue&&re.zd(ee.width,ee.height)<=ue,oe||(Ke.free(re),Ke.free(le)),fe){if(!this.isAtomic){re=Ke.alloc(),le=Ke.alloc(),ue=cd(this);for(var Se=this.O.s,Pe=Se.length;Pe--;){var Ee=Se[Pe];if(Ee.visible||Ee===ue){var Te=Ee.actualBounds,_e=this.naturalBounds;(!oe||!(Te.x>_e.width||Te.y>_e.height||0>Te.x+Te.width||0>Te.y+Te.height))&&(Ee.se()?(Te=Ee.transform,Lo(re.set(a),Te),Lo(le.set(y),Te)):(re.set(a),le.set(y)),Te=Ee,Ee=Ee instanceof $n?Ee:null,(Ee!==null?Ee.og(re,le,x,b,E,z):Te.tx(re,le,E))&&(x!==null&&(Te=x(Te)),Te===null||b!==null&&!b(Te)||z.add(Te)))}}Ke.free(re),Ke.free(le)}return E?fe:ee}return!1};function vv(a){var y=null;return a instanceof Eo&&(y=a.spot1,y===sr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=_r),y}function yv(a){var y=null;return a instanceof Eo&&(y=a.spot2,y===sr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ds),y}be.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},be.M=function(a){return this.O.M(a)},be.Gb=function(a,y){y instanceof Wi&&at("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&at("Cannot make a Panel contain itself: "+this.toString()),at("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&at("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!==$n.Grid||y instanceof Eo||at("Can only add Shapes to a Grid Panel, not: "+y),this.na!==$n.Graduated||y instanceof Eo||y instanceof jr||at("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 di),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,ee=this.O.s,oe=ee.length,re=0;re<oe;re++)if(ee[re]===y){z=re;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else at("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),ql(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof $n&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Nm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof li&&(x.Te=!0),x.Te&&x instanceof li&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Ca,"elements",this,y,null,b,null),x.cb(fa,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}be.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)},be.mb=function(a){0<=a&&this.pc(a,!0)},be.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),$a(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 li&&(b instanceof $n?b.qm(b,function(ee,oe){Gv(z,oe,y)}):Gv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ca,"elements",this,b,null,a,null))},be.Fb=function(a){0>a&&Hn(a,">= 0",$n,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Qa;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(fa,"rowdefs",this,null,x,null,a)}return y[a]},be.oA=function(a){if(0>a&&Hn(a,">= 0",$n,"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(Ca,"rowdefs",this,x,null,a,null),this.v()}}};function h1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof Qa?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}be.Eb=function(a){0>a&&Hn(a,">= 0",$n,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Qa;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(fa,"coldefs",this,null,x,null,a)}return y[a]},be.jA=function(a){if(0>a&&Hn(a,">= 0",$n,"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(Ca,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof Qa?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}be.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&km(y,a),this},be.Hy=function(a,y){return(a=this.Fb(a))&&km(a,new Qa(y)),this},be.By=function(a,y){return(a=this.Eb(a))&&km(a,new Qa(y)),this},be.nz=function(a){if(0>a||this.type!==$n.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},be.fz=function(a){if(0>a||this.type!==$n.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},be.Fz=function(a,y){if(y===void 0&&(y=new Ke(NaN,NaN)),this.type!==$n.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)},be.Gz=function(a){if(this.type!==$n.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function c1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Au(a){var y=a.allBindings;if(y===null)a.data!==null&&at("Template cannot have .data be non-null: "+a),a.allBindings=y=new Ln;else if(y._isFrozen)return;var x=new Ln;Sv(a,!1),a.qm(a,function(le,ue){ue.th();var fe=ue.localBindings;if(fe!==null)for(wf(ue,!1),fe=fe.iterator;fe.next();){var Se=fe.value;Se.mode===Tp&&wf(ue,!0);var Pe=Se.sourceName;Pe!==null&&(Pe==="/"&&Sv(le,!0),Pe=LS(Se,le,ue),Pe!==null&&(x.add(Pe),Pe.srcBindings===null&&(Pe.srcBindings=new Ln),Pe.srcBindings.add(Se))),y.add(Se)}if(ue instanceof $n&&ue.type===$n.Table){if(0<ue.rowCount){for(le=ue.rowDefs,fe=le.length,Se=0;Se<fe;Se++)if(Pe=le[Se],Pe!==void 0&&Pe.be!==null)for(var Ee=Pe.be.iterator;Ee.next();){var Te=Ee.value;Te.xd=Pe,Te.to=2,Te.wl=Pe.index,y.add(Te)}}if(0<ue.columnCount){for(ue=ue.colDefs,le=ue.length,fe=0;fe<le;fe++)if(Se=ue[fe],Se!==void 0&&Se.be!==null)for(Pe=Se.be.iterator;Pe.next();)Ee=Pe.value,Ee.xd=Se,Ee.to=1,Ee.wl=Se.index,y.add(Ee)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){wf(E,!0);for(var z=E.srcBindings.iterator;z.next();){var ee=z.value;E.localBindings===null&&(E.localBindings=new Ln),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 oe=E.targetProperty,re=oe.indexOf(".");0<re&&z instanceof $n&&(ee=oe.substring(0,re),oe=oe.substr(re+1),re=z.fb(ee),re!==null?(z=re,E.targetProperty=oe):ii('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+E.toString())),z instanceof Qa?(ee=_i(z.panel),E.Ai=ee===void 0?-1:ee,z.panel.bindingId=E.Ai):z instanceof kt?(ee=_i(z),E.Ai=ee===void 0?-1:ee,z.bindingId=E.Ai):at("Unknown type of binding target: "+z)}y.freeze(),a instanceof Wi&&a.Zc()&&a.Va()}be.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof $n&&(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&&Au(y),y},be.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 $n))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},be.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function yx(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 $n&&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 $n)||z.data!==y[ee])return!0;E++,ee++}return!1}function cp(a){if(a.type===$n.Spot||a.type===$n.Auto)return Math.min(a.O.length,1);if(a.type===$n.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Eo&&b.isPanelMain))break}return x}return a.type===$n.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof $n&&Ad(a))?1:0}be.mv=function(){for(var a=cp(this);this.O.length>a;)this.pc(this.O.length-1,!1);f1(this,this.itemArray)};function f1(a,y){var x=cp(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++)Fm(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 $n){if(ee.data!==z){var oe=wv(a,ee.data),re=wv(a,z),le=re!==oe;le||(oe=Pv(a,oe),le=Pv(a,re)!==oe),le?(a.pc(b,!1),Fm(a,z,E,!1)):ee.data=z}}else Fm(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,xv(a,x,0),ql(a)||a.v(),a.graduatedIntervals=null,a.If()||Nm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof li&&(y.Te=!0),y.Te&&y instanceof li&&(y.wc=null))}}function Fm(a,y,x,b){if(!(y==null||0>x)){var E=wv(a,y);if(E=Pv(a,E),E!==null){if(Au(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&Sv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new di),a.ge.add(y,E)),z=x+cp(a),a.Gb(z,E),b&&(E.ub=y,xv(a,z,x),E.ub=null),E.data=y}}}function xv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof $n){var E=y,z=x;b.type===$n.TableRow?b.row=E:b.type===$n.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function wv(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=Ba(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;at("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Pv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(g1||(g1=!0,ii('No item template Panel found for category "'+y+'" on '+a),ii(" Using default item template."),a=new $n,y=new jr,y.bind(new za("text","",An)),a.add(y),p1=a),b=p1)),b}function Nm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof $n){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof $n&&!z.isEnabled||Nm(a,z,x)}}}function Ch(a,y){y.name=a,Zu.add(a,y)}Re.Object.defineProperties($n.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===$n.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&&Hn(a,">= 0",$n,"padding"),a=new vi(a)):(0>a.left&&Hn(a.left,">= 0",$n,"padding:value.left"),0>a.right&&Hn(a.right,">= 0",$n,"padding:value.right"),0>a.top&&Hn(a.top,">= 0",$n,"padding:value.top"),0>a.bottom&&Hn(a.bottom,">= 0",$n,"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:qa},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 vu),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 wr)&&(a instanceof wr&&a.freeze(),this.T===null&&(this.T=new vu),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 vu),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)||at("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 vu),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 wr)&&(a instanceof wr&&a.freeze(),this.T===null&&(this.T=new vu),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 vu),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)||at("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 vu),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 vu),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||at("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&xh(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()||at("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&xh(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 fd),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),ks(this)&&(a=this.part,a!==null&&Xr(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 fd),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),ks(this)&&(a=this.part,a!==null&&Xr(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 fd),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 fd),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 fd,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 fd,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 fd,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 fd,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 vu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new vu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Dm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new vu),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Dm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new vu),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)&&at("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new vu),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)&&at("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new vu),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 Wi&&!(this instanceof ur);Au(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof ei?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Wi&&(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 Pf),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&yx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&ly(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&sy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||f1(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 di}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Wi||a.isPanelMain)&&at("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(););Ao(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&&(Ao(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 co&&(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&&Nm(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))}}}),Re.Object.defineProperties($n,{Position:{get:function(){return Zu.I("Position")}},Horizontal:{get:function(){return Zu.I("Horizontal")}},Vertical:{get:function(){return Zu.I("Vertical")}},Spot:{get:function(){return Zu.I("Spot")}},Auto:{get:function(){return Zu.I("Auto")}},Table:{get:function(){return Zu.I("Table")}},Viewbox:{get:function(){return Zu.I("Viewbox")}},TableRow:{get:function(){return Zu.I("TableRow")}},TableColumn:{get:function(){return Zu.I("TableColumn")}},Link:{get:function(){return Zu.I("Link")}},Grid:{get:function(){return Zu.I("Grid")}},Graduated:{get:function(){return Zu.I("Graduated")}}}),$n.prototype.rebuildItemElements=$n.prototype.mv,$n.prototype.findItemPanelForData=$n.prototype.sx,$n.prototype.updateTargetBindings=$n.prototype.La,$n.prototype.copyTemplate=$n.prototype.Uy,$n.prototype.graduatedValueForPoint=$n.prototype.Gz,$n.prototype.graduatedPointForValue=$n.prototype.Fz,$n.prototype.findColumnForLocalX=$n.prototype.fz,$n.prototype.findRowForLocalY=$n.prototype.nz,$n.prototype.addColumnDefinition=$n.prototype.By,$n.prototype.addRowDefinition=$n.prototype.Hy,$n.prototype.addRowColumnDefinition=$n.prototype.Gy,$n.prototype.removeColumnDefinition=$n.prototype.jA,$n.prototype.getColumnDefinition=$n.prototype.Eb,$n.prototype.removeRowDefinition=$n.prototype.oA,$n.prototype.getRowDefinition=$n.prototype.Fb,$n.prototype.removeAt=$n.prototype.mb,$n.prototype.remove=$n.prototype.remove,$n.prototype.insertAt=$n.prototype.Gb,$n.prototype.elt=$n.prototype.M,$n.prototype.add=$n.prototype.add,$n.prototype.findObject=$n.prototype.fb,$n.prototype.findInVisualTree=$n.prototype.Nl,$n.prototype.walkVisualTreeFrom=$n.prototype.qm,$n.prototype.findMainElement=$n.prototype.Pb;var g1=!1,p1=null,Zu=new di;$n.className="Panel",$n.definePanelLayout=Ch,Ch("Position",new mm),Ch("Vertical",new ym),Ch("Auto",new xm),Ch("Link",new Lm);function fd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}fd.prototype.copy=function(){var a=new fd;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},fd.className="GradPanelSettings";function vu(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=qa,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}vu.prototype.copy=function(a){for(var y=new vu,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},vu.className="TablePanelSettings";function Qa(a){ro(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=sr,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=mo,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))}Qa.prototype.copy=function(){var a=new Qa;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=It(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function km(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=It(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}be=Qa.prototype,be.qb=function(a){a.classType===Qa&&(this.sizing=a)},be.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+_i(this)},be.wi=function(a){this.Me=a},be.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)},be.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===$n.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)},be.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Kr,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 Am(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}be.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new za(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&c1(y)&&at("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Ln),this.be.add(E),this},Re.Object.defineProperties(Qa.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&&Hn(a,">= 0",Qa,"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&&Hn(a,">= 0",Qa,"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))&&Hn(a,">= 0",Qa,"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&&Hn(a,">= 0",Qa,"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&&bf(a,"RowColumnDefinition.separatorStroke"),a instanceof wr&&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)||at("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&&bf(a,"RowColumnDefinition.background"),a instanceof wr&&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}}}),Qa.prototype.computeEffectiveSpacing=Qa.prototype.Wc,Qa.prototype.computeEffectiveSpacingTop=Qa.prototype.Io;var Cv=new nn(Qa,"Default",0),fp=new nn(Qa,"None",1),Dm=new nn(Qa,"ProportionalExtra",2);Qa.className="RowColumnDefinition",Qa.Default=Cv,Qa.None=fp,Qa.ProportionalExtra=Dm;function Eo(a,y){kt.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)}Pt(Eo,kt),Eo.prototype.cloneProtected=function(a){kt.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=It(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 Xc(a){a.Na===null?a.Na=new Lv:a.Na.nc&&(a.Na=a.Na.copy())}be=Eo.prototype,be.th=function(){kt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},be.qb=function(a){a===Zn||a===Li||a===Zo||a===mo?this.geometryStretch=a:kt.prototype.qb.call(this,a)},be.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+_i(this)};function cg(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 oe=x[0],re=x[1],le,ue,fe,Se,Pe,Ee,Te=0,_e=en(),Ge=2;Ge<E;Ge+=2)le=x[Ge],ue=x[Ge+1],fe=le-oe,oe=ue-re,fe===0&&(fe=.001),Se=oe/fe,Pe=Math.atan2(oe,fe),Ee=Math.sqrt(fe*fe+oe*oe),_e.push([fe,Pe,Se,Ee]),Te+=Ee,oe=le,re=ue;oe=x[0],re=x[1],fe=b.measuredBounds.width,b instanceof Eo&&(fe-=b.strokeWidth),1>fe&&(fe=1),E=x=fe,le=ee/2,ue=le!==0,Ge=0,Ee=_e[Ge],fe=Ee[0],Pe=Ee[1],Se=Ee[2],Ee=Ee[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){xn(_e);return}E>Ee?(st=E-Ee,E=Ee):st=0;var ut=Math.sqrt(E*E/(1+Se*Se));if(0>fe&&(ut=-ut),oe+=ut,re+=Se*ut,a.translate(oe,re),a.rotate(Pe),a.translate(-(ee/2),-(z/2)),st===0&&b.hh(a,y),a.translate(ee/2,z/2),a.rotate(-Pe),a.translate(-oe,-re),Te-=E,Ee-=E,st!==0){if(Ge++,Ge===_e.length){xn(_e);return}Ee=_e[Ge],fe=Ee[0],Pe=Ee[1],Se=Ee[2],Ee=Ee[3],E=st}}xn(_e)}}be.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&&Ea(this,a,b,!0,!1,ee,z);var oe=this.part,re=this.ig;if(x===null||re!==0||oe===null||!this.isPanelMain&&oe.Pb()!==this||(re=oe.type===$n.Link&&oe instanceof ur&&oe.category==="Selection"&&oe.adornedObject instanceof Eo&&oe.adornedPart.Pb()===oe.adornedObject?oe.adornedObject.strokeWidth:0),re===0&&(x=null),x!==null&&re!==0&&(Ea(this,a,x,!1,!1,ee,z),a.lineWidth=re,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,oe&&y.Gf("drawShadows")&&(z=oe.isShadowed),a.Il===!1&&(z=!1),oe=!0,x===null||b!==null&&b!=="transparent"||(oe=!1),ee=!1,re=this.strokeDashArray,re!==null&&(ee=!0,a.js(re,this.strokeDashOffset)),E.type===ni.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===ni.u){var le=E.startX;re=E.startY;var ue=E.endX,fe=E.endY;E=Math.min(le,ue);var Se=Math.min(re,fe);le=Math.abs(ue-le),re=Math.abs(fe-re),a.beginPath(),a.rect(E,Se,le,re),b!==null&&a.ng(b),x!==null&&(oe&&z&&Kh(a),a.jk(),oe&&z&&ud(a)),a.Se()}else if(E.type===ni.F)le=E.startX,re=E.startY,ue=E.endX,fe=E.endY,E=Math.abs(ue-le)/2,Se=Math.abs(fe-re)/2,le=Math.min(le,ue)+E,re=Math.min(re,fe)+Se,a.beginPath(),a.moveTo(le,re-Se),a.bezierCurveTo(le+Bt.wg*E,re-Se,le+E,re-Bt.wg*Se,le+E,re),a.bezierCurveTo(le+E,re+Bt.wg*Se,le+Bt.wg*E,re+Se,le,re+Se),a.bezierCurveTo(le-Bt.wg*E,re+Se,le-E,re+Bt.wg*Se,le-E,re),a.bezierCurveTo(le-E,re-Bt.wg*Se,le-Bt.wg*E,re-Se,le,re-Se),a.closePath(),b!==null&&a.ng(b),x!==null&&(oe&&z&&Kh(a),a.jk(),oe&&z&&ud(a)),a.Se();else if(E.type===ni.o)for(E=E.figures,re=E.length,Se=0;Se<re;Se++){le=E.s[Se],a.beginPath(),a.moveTo(le.startX,le.startY),ue=le.segments.s,fe=ue.length;for(var Pe=null,Ee=0;Ee<fe;Ee++){var Te=ue[Ee];switch(Te.type){case Fa:a.moveTo(Te.endX,Te.endY);break;case yi:a.lineTo(Te.endX,Te.endY);break;case cr:a.bezierCurveTo(Te.point1X,Te.point1Y,Te.point2X,Te.point2Y,Te.endX,Te.endY);break;case Cr:a.quadraticCurveTo(Te.point1X,Te.point1Y,Te.endX,Te.endY);break;case Br:if(Te.radiusX===Te.radiusY){var _e=Math.PI/180;a.arc(Te.point1X,Te.point1Y,Te.radiusX,Te.startAngle*_e,(Te.startAngle+Te.sweepAngle)*_e,0>Te.sweepAngle,Pe!==null?Pe.endX:le.startX,Pe!==null?Pe.endY:le.startY)}else if(Pe=tl(Te,le),_e=Pe.length,_e===0)a.lineTo(Te.centerX,Te.centerY);else for(var Ge=0;Ge<_e;Ge++){var st=Pe[Ge];Ge===0&&a.lineTo(st[0],st[1]),a.bezierCurveTo(st[2],st[3],st[4],st[5],st[6],st[7])}break;case Sa:if(Ge=_e=0,Pe!==null&&Pe.type===Br){if(Pe=tl(Pe,le),st=Pe.length,st===0){a.lineTo(Te.endX,Te.endY);break}Pe=Pe[st-1]||null,Pe!==null&&(_e=Pe[6],Ge=Pe[7])}else _e=Pe!==null?Pe.endX:le.startX,Ge=Pe!==null?Pe.endY:le.startY;if(Pe=zs(Te,le,_e,Ge),_e=Pe.length,_e===0){a.lineTo(Te.endX,Te.endY);break}for(Ge=0;Ge<_e;Ge++)st=Pe[Ge],a.bezierCurveTo(st[2],st[3],st[4],st[5],st[6],st[7]);break;default:at("Segment not of valid type: "+Te.type)}Te.isClosed&&a.closePath(),Pe=Te}ue=le.isFilled,z?le.isShadowed?(ue===!0&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&(ue&&oe&&Kh(a),a.jk(),ue&&oe&&ud(a))):(Kh(a),ue&&b!=="transparent"&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk(),ud(a)):(ue&&b!==null&&a.ng(b,le.isEvenOdd),x!==null&&a.jk()),a.Se(Se)}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=en(),z.type===ni.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),cg(a,y,b,x);else if(z.type===ni.o)for(z=z.figures.iterator;z.next();){for(oe=z.value,b.length=0,b.push(oe.startX),b.push(oe.startY),ee=oe.startX,E=oe.startY,re=ee,Se=E,le=oe.segments.s,ue=le.length,fe=0;fe<ue;fe++){switch(Ee=le[fe],Ee.type){case Fa:cg(a,y,b,x),b.length=0,b.push(Ee.endX),b.push(Ee.endY),ee=Ee.endX,E=Ee.endY,re=ee,Se=E;break;case yi:b.push(Ee.endX),b.push(Ee.endY),ee=Ee.endX,E=Ee.endY;break;case cr:Bt.Qe(ee,E,Ee.point1X,Ee.point1Y,Ee.point2X,Ee.point2Y,Ee.endX,Ee.endY,.5,b),ee=Ee.endX,E=Ee.endY;break;case Cr:Bt.ep(ee,E,Ee.point1X,Ee.point1Y,Ee.endX,Ee.endY,.5,b),ee=Ee.endX,E=Ee.endY;break;case Br:if(Te=tl(Ee,oe),Pe=Te.length,Pe===0){b.push(Ee.centerX),b.push(Ee.centerY),ee=Ee.centerX,E=Ee.centerY;break}for(_e=0;_e<Pe;_e++)Ge=Te[_e],Bt.Qe(ee,E,Ge[2],Ge[3],Ge[4],Ge[5],Ge[6],Ge[7],.5,b),ee=Ge[6],E=Ge[7];break;case Sa:if(Te=zs(Ee,oe,ee,E),Pe=Te.length,Pe===0){b.push(Ee.endX),b.push(Ee.endY),ee=Ee.endX,E=Ee.endY;break}for(_e=0;_e<Pe;_e++)Ge=Te[_e],Bt.Qe(ee,E,Ge[2],Ge[3],Ge[4],Ge[5],Ge[6],Ge[7],.5,b),ee=Ge[6],E=Ge[7];break;default:at("Segment not of valid type: "+Ee.type)}Ee.isClosed&&(b.push(re),b.push(Se),cg(a,y,b,x))}cg(a,y,b,x)}else if(z.type===ni.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),cg(a,y,b,x);else if(z.type===ni.F){if(E=new Za,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,ee=new tr(Br),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=tl(ee,E),oe=z.length,oe===0)b.push(ee.centerX),b.push(ee.centerY);else for(ee=E.startX,E=E.startY,re=0;re<oe;re++)Se=z[re],Bt.Qe(ee,E,Se[2],Se[3],Se[4],Se[5],Se[6],Se[7],.5,b),ee=Se[6],E=Se[7];cg(a,y,b,x)}xn(b),a.restore(),a.Vc(!1)}}}},be.kk=function(a,y,x){return!kt.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)},be.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:kt.prototype.nk.call(this,a)},be.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)}},be.ga=function(a,y){if(y===void 0&&(y=new Ke),a instanceof xi){a.Mc()&&at("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},be.mi=function(a){a===void 0&&(a=new vn);var y=this.naturalBounds,x=this.oe;y=vn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Ke.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),lo(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),lo(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),lo(a,b.x,b.y,0,0),vn.free(y),Ke.free(b),a},be.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!==ni.j||y||(E+=2);var z=vn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return vn.free(z),!1;if(b=E+1e-4,x.type===ni.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:(vn.free(z),Bt.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===ni.u){y=x.startX;var ee=x.startY,oe=x.endX;if(x=x.endY,z.x=Math.min(y,oe),z.y=Math.min(ee,x),z.width=Math.abs(oe-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return vn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),vn.free(z),a}if(x.type===ni.F){ee=x.startX,E=x.startY,oe=x.endX;var re=x.endY;if(x=Math.min(ee,oe),y=Math.min(E,re),ee=Math.abs(oe-ee)/2,E=Math.abs(re-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 vn.free(z),!1;ee+=b,E+=b}return this.stroke!==null&&(ee+=b,E+=b),vn.free(z),0>=ee||0>=E?!1:1>=x*x/(ee*ee)+y*y/(E*E)}if(x.type===ni.o)return vn.free(z),this.fill===null?zu(x,a.x,a.y,E):Cu(x,a,E,1<this.strokeWidth,y);at("Unknown Geometry type: "+x.type)},be.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 oe=this.figure,re=Ev[oe];if(re===void 0){var le=Bt.Ze[oe];typeof le=="string"&&(le=Bt.Ze[le]),typeof le=="function"?(re=le(null,100,100),Ev[oe]=re):at("Unsupported Figure: "+oe)}ee=re.bounds}oe=ee.width,re=ee.height,le=ee.width;var ue=ee.height;switch(yl(this,!0)){case Zn:b=x=0;break;case Yn:le=Math.max(a-z,0),ue=Math.max(y-z,0);break;case Oi:le=Math.max(a-z,0),b=0;break;case Ui:x=0,ue=Math.max(y-z,0)}isFinite(E.width)&&(le=E.width),isFinite(E.height)&&(ue=E.height);var fe=this.maxSize,Se=this.minSize;switch(x=Math.max(x-z,Se.width),b=Math.max(b-z,Se.height),le=Math.min(fe.width,le),ue=Math.min(fe.height,ue),le=isFinite(le)?Math.max(x,le):Math.max(oe,x),ue=isFinite(ue)?Math.max(b,ue):Math.max(re,b),x=bv(this),x){case Zn:break;case Yn:oe=le,re=ue;break;case Li:x=Math.min(le/oe,ue/re),isFinite(x)||(x=1),oe*=x,re*=x;break;default:at(x+" is not a valid geometryStretch.")}this.Rd!==null?(oe===0&&(oe=.001),re===0&&(re=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,b=oe/ee.width,ee=re/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&&Bt.$(this.ua.Sk,a-z)&&Bt.$(this.ua.Rk,y-z)||(this.ua=Eo.makeGeometry(this,oe,re)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&oe===0?0:ee.width+z,y===0&&re===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(Se.width,le),ue=Math.max(Se.height,ue),this.dc.h(0,0,le,ue)):this.dc.assign(ee)};function bv(a){var y=a.geometryStretch;return a.Rd!==null?y===mo?Yn:y:y===mo?Ev[a.figure].defaultStretch:y}be.eh=function(a,y,x,b){Qs(this,a,y,x,b)},be.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},be.Sj=function(a,y,x,b,E){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),oe=z.m22*ee,re=-z.m12*ee,le=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),Se=ee*(z.m12*z.dx-z.m11*z.dy);z=a*oe+y*le+fe,ee=a*re+y*ue+Se,oe=x*oe+b*le+fe,re=x*re+b*ue+Se,fe=this.ig/2,le=this.ua,le===null&&(this.measure(1/0,1/0),le=this.ua);var Pe=le.bounds;if(ue=!1,le.type===ni.j)if(1.5>=this.strokeWidth)ue=Bt.Ve(le.startX,le.startY,le.endX,le.endY,z,ee,oe,re,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=en(),a=new Ke,Bt.Ve(le.startX+b,le.startY+ue,le.endX+b,le.endY+ue,z,ee,oe,re,a)&&y.push(a),a=new Ke,Bt.Ve(le.startX-b,le.startY-ue,le.endX-b,le.endY-ue,z,ee,oe,re,a)&&y.push(a),a=new Ke,Bt.Ve(le.startX+b,le.startY+ue,le.startX-b,le.startY-ue,z,ee,oe,re,a)&&y.push(a),a=new Ke,Bt.Ve(le.endX+b,le.endY+ue,le.endX-b,le.endY-ue,z,ee,oe,re,a)&&y.push(a),oe=y.length,oe===0)return xn(y),!1;for(ue=!0,re=1/0,b=0;b<oe;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<re&&(re=x,E.x=a.x,E.y=a.y);xn(y)}else if(le.type===ni.u)ue=Bt.Ff(Pe.x-fe,Pe.y-fe,Pe.x+Pe.width+fe,Pe.y+Pe.height+fe,z,ee,oe,re,E);else if(le.type===ni.F){y=vn.allocAt(Pe.x,Pe.y,Pe.width,Pe.height).Bc(fe,fe);e:if(y.width===0)ue=Bt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,oe,re,E);else if(y.height===0)ue=Bt.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,oe,re,E);else{if(a=y.width/2,le=y.height/2,b=y.x+a,ue=y.y+le,x=9999,z!==oe&&(x=(ee-re)/(z-oe)),9999>Math.abs(x)){if(re=ee-ue-x*(z-b),0>a*a*x*x+le*le-re*re){E.x=NaN,E.y=NaN,ue=!1;break e}fe=Math.sqrt(a*a*x*x+le*le-re*re),oe=(-(a*a*x*re)+a*le*fe)/(le*le+a*a*x*x)+b,a=(-(a*a*x*re)-a*le*fe)/(le*le+a*a*x*x)+b,le=x*(oe-b)+re+ue,re=x*(a-b)+re+ue,Math.abs((z-oe)*(z-oe))+Math.abs((ee-le)*(ee-le))<Math.abs((z-a)*(z-a))+Math.abs((ee-re)*(ee-re))?(E.x=oe,E.y=le):(E.x=a,E.y=re)}else{if(oe=le*le,re=z-b,oe-=oe/(a*a)*re*re,0>oe){E.x=NaN,E.y=NaN,ue=!1;break e}re=Math.sqrt(oe),oe=ue+re,re=ue-re,Math.abs(oe-ee)<Math.abs(re-ee)?(E.x=z,E.y=oe):(E.x=z,E.y=re)}ue=!0}vn.free(y)}else if(le.type===ni.o){Se=Ke.alloc();var Ee=oe-z,Te=re-ee,_e=Ee*Ee+Te*Te,Ge=z,st=ee;if(0<_e&&Pe.contains(Ge,st)&&(Se.x=Ge,Se.y=st,this.ca(Se)))for(Ee!==0&&.5>Math.abs(Ee)?(Te*=.5/Ee,Ee=.5):Te!==0&&.5>Math.abs(Te)&&(Ee*=.5/Te,Te=.5),Ge-=Ee,st-=Te;Pe.contains(Ge,st);)Ge-=Ee,st-=Te;for(E.x=oe,E.y=re,Te=0;Te<le.figures.count;Te++){var ut=le.figures.s[Te],pt=ut.isFilled?Ge:z,Nt=ut.isFilled?st:ee,Qt=ut.segments;Pe=ut.startX,Ee=ut.startY;for(var ri=Pe,Si=Ee,mi=0;mi<Qt.count;mi++){var qn=Qt.s[mi],In=qn.type,uo=qn.endX,to=qn.endY,gr=!1;switch(In){case Fa:ri=uo,Si=to;break;case yi:gr=Tm(Pe,Ee,uo,to,pt,Nt,oe,re,Se);break;case cr:gr=Bt.Eo(Pe,Ee,qn.point1X,qn.point1Y,qn.point2X,qn.point2Y,uo,to,pt,Nt,oe,re,.6,Se);break;case Cr:gr=Bt.Eo(Pe,Ee,Pe+2/3*(qn.point1X-Pe),Ee+2/3*(qn.point1Y-Ee),uo+2/3*(qn.point1X-uo),to+2/3*(qn.point1Y-to),uo,to,pt,Nt,oe,re,.6,Se);break;case Br:case Sa:In=qn.type===Br?tl(qn,ut):zs(qn,ut,Pe,Ee);var Or=In.length;if(Or===0){gr=Tm(Pe,Ee,qn.type===Br?qn.centerX:qn.endX,qn.type===Br?qn.centerY:qn.endY,pt,Nt,oe,re,Se);break}for(to=null,uo=0;uo<Or;uo++){if(to=In[uo],uo===0&&Tm(Pe,Ee,to[0],to[1],pt,Nt,oe,re,Se)){var ss=Bm(pt,Nt,Se,_e,E);ss<_e&&(_e=ss,ue=!0)}Bt.Eo(to[0],to[1],to[2],to[3],to[4],to[5],to[6],to[7],pt,Nt,oe,re,.6,Se)&&(ss=Bm(pt,Nt,Se,_e,E),ss<_e&&(_e=ss,ue=!0))}uo=to[6],to=to[7];break;default:at("Unknown Segment type: "+In)}Pe=uo,Ee=to,gr&&(gr=Bm(pt,Nt,Se,_e,E),gr<_e&&(_e=gr,ue=!0)),qn.isClosed&&(uo=ri,to=Si,Tm(Pe,Ee,uo,to,pt,Nt,oe,re,Se)&&(qn=Bm(pt,Nt,Se,_e,E),qn<_e&&(_e=qn,ue=!0)))}}z=x-a,ee=b-y,oe=Math.sqrt(z*z+ee*ee),oe!==0&&(z/=oe,ee/=oe),E.x-=z*fe,E.y-=ee*fe,Ke.free(Se)}else at("Unknown Geometry type: "+le.type);return ue?(this.transform.Ga(E),!0):!1};function Bm(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 Tm(a,y,x,b,E,z,ee,oe,re){if(Bt.$(a,x)&&Bt.$(y,b)||Bt.$(E,ee)&&Bt.$(z,oe))return!1;var le=!1,ue=(E-ee)*(y-b)-(z-oe)*(a-x);return ue===0?!1:(re.x=((E*oe-z*ee)*(a-x)-(E-ee)*(a*b-y*x))/ue,re.y=((E*oe-z*ee)*(y-b)-(z-oe)*(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,(re.y>a||Bt.$(re.y,a))&&(re.y<y||Bt.$(re.y,y))&&(le=!0)):(y=a<x?a:x,a=a<x?x:a,(re.x>y||Bt.$(re.x,y))&&(re.x<a||Bt.$(re.x,a))&&(le=!0)),le)}be.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=Ke.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)))),Ke.free(z),E},be.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Mo.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var ee=Ke.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 Ke.free(ee),!0;var oe=Ke.alloc(),re=Ke.alloc();return x.set(y),x.bv(this.transform),x.Vj(),oe.x=E,oe.y=z,oe.transform(x),ee.x=b,ee.y=z,ee.transform(x),y=!1,Yc(this,ee,oe,re)?y=!0:(ee.x=E,ee.y=a,ee.transform(x),Yc(this,ee,oe,re)?y=!0:(oe.x=b,oe.y=a,oe.transform(x),Yc(this,ee,oe,re)?y=!0:(ee.x=b,ee.y=z,ee.transform(x),Yc(this,ee,oe,re)&&(y=!0)))),Ke.free(ee),Mo.free(x),Ke.free(oe),Ke.free(re),y};function Yc(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)}be.tx=function(a,y,x){function b(_e,Ge){for(var st=_e.length,ut=0;ut<st;ut+=2)if(Ge.zd(_e[ut],_e[ut+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,oe=ee.x,re=ee.y,le=ee.x+ee.width;if(ee=ee.y+ee.height,Pr(a.x,a.y,oe,re)<=E&&Pr(a.x,a.y,le,re)<=E&&Pr(a.x,a.y,oe,ee)<=E&&Pr(a.x,a.y,le,ee)<=E)return!0}if(oe=y.startX,re=y.startY,le=y.endX,ee=y.endY,y.type===ni.j){if(x=(oe-le)*(a.x-le)+(re-ee)*(a.y-ee),dr(a.x,a.y,oe,re,le,ee)<=(0<=(le-oe)*(a.x-oe)+(ee-re)*(a.y-re)&&0<=x?E:z))return!0}else{if(y.type===ni.u)return y=!1,x&&(y=dr(a.x,a.y,oe,re,oe,ee)<=E||dr(a.x,a.y,oe,re,le,re)<=E||dr(a.x,a.y,le,re,le,ee)<=E||dr(a.x,a.y,oe,ee,le,ee)<=E),y;if(y.type===ni.F){y=a.x-(oe+le)/2,z=a.y-(re+ee)/2;var ue=Math.abs(le-oe)/2,fe=Math.abs(ee-re)/2;if(ue===0||fe===0)return dr(a.x,a.y,oe,re,le,ee)<=E;if(x){if(a=Bt.$y(ue,fe,y,z),a*a<=E)return!0}else return!(Pr(y,z,-ue,0)>=E||Pr(y,z,0,-fe)>=E||Pr(y,z,0,fe)>=E||Pr(y,z,ue,0)>=E)}else if(y.type===ni.o){if(le=y.bounds,z=le.x,oe=le.y,re=le.x+le.width,le=le.y+le.height,a.x>re&&a.x<z&&a.y>le&&a.y<oe&&dr(a.x,a.y,z,oe,z,le)>E&&dr(a.x,a.y,z,oe,re,oe)>E&&dr(a.x,a.y,re,le,z,le)>E&&dr(a.x,a.y,re,le,re,oe)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?zu(y,a.x,a.y,z):Cu(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(oe=z.segments.s,re=oe.length,le=0;le<re;le++)switch(fe=oe[le],fe.type){case Fa:case yi:if(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E)return!1;break;case cr:var Se=en();if(Bt.Qe(ee,ue,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.8,Se),ee=b(Se,a),xn(Se),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case Cr:if(Se=en(),Bt.ep(ee,ue,fe.point1X,fe.point1Y,fe.endX,fe.endY,.8,Se),ee=b(Se,a),xn(Se),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>E))return!1;break;case Br:case Sa:Se=fe.type===Br?tl(fe,z):zs(fe,z,ee,ue);var Pe=Se.length;if(Pe===0){if(ee=fe.type===Br?fe.centerX:fe.endX,ue=fe.type===Br?fe.centerY:fe.endY,a.zd(ee,ue)>E)return!1;break}fe=null;for(var Ee=en(),Te=0;Te<Pe;Te++)if(fe=Se[Te],Ee.length=0,Bt.Qe(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.8,Ee),b(Ee,a))return xn(Ee),!1;xn(Ee),fe!==null&&(ee=fe[6],ue=fe[7]);break;default:at("Unknown Segment type: "+fe.type)}}return!0}}}return!1},be.qc=function(){this.ua=null},be.kq=function(){return this.ig};function m1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Pp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ga):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new xi(1-Ga.x,Ga.y)))}Eo.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Vh[a.toArrow];else a.fromArrow!=="None"?b=Vh[a.fromArrow]:(b=Bt.Ze[a.figure],typeof b=="string"&&(b=Bt.Ze[b]),b===void 0&&at("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Bt.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function v1(a){var y=Vh[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Vh[x],y===void 0){var b=null,E;for(E in Bt.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=ni.parse(Bt.um[b],!1),Vh[b]=a,x!==b&&(Vh[x]=b),b}}return typeof y=="string"?y:y instanceof ni?a:null}Re.Object.defineProperties(Eo.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),ks(this)&&(a=this.part,a!==null&&Xr(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=ni.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Ke.allocAt(-y.x,-y.y),Ke.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&&bf(a,"Shape.fill"),a instanceof wr&&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&&bf(a,"Shape.stroke"),a instanceof wr&&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 Hn(a,"value >= 0",Eo,"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"?Hn(a,'"butt", "round", or "square"',Eo,"strokeCap"):(Xc(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"?Hn(a,'"miter", "bevel", or "round"',Eo,"strokeJoin"):(Xc(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){Xc(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)||at("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&&(Xc(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=Bt.Ze[a];typeof x=="function"?x=a:(x=Bt.Ze[a.toLowerCase()])||at("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=v1(a);x===null?at("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new rc),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),m1(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=v1(a);x===null?at("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new rc),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),m1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:sr},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Xc(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:sr},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Xc(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&&(Xc(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:mo},set:function(a){var y=this.geometryStretch;y!==a&&(Xc(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 Uh),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&xh(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 Uh),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 Uh),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 Uh),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Eo.prototype.intersectsRect=Eo.prototype.Yc,Eo.prototype.containedInRect=Eo.prototype.fh,Eo.prototype.getNearestIntersectionPoint=Eo.prototype.rs,Eo.prototype.getDocumentBounds=Eo.prototype.mi,Eo.prototype.getDocumentPoint=Eo.prototype.ga;var Vh=new wi,Ev=new wi;Eo.className="Shape",Eo.getFigureGenerators=function(){var a=new di,y;for(y in Bt.Ze)y!==y.toLowerCase()&&a.add(y,Bt.Ze[y]);return a.freeze(),a},Eo.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Bt.Ze;b[a]=y,b[x]=a},Eo.getArrowheadGeometries=function(){var a=new di;for(b in Bt.um)if(Vh[b]===void 0){var y=ni.parse(Bt.um[b],!1);Vh[b]=y,y=b.toLowerCase(),y!==b&&(Vh[y]=b)}for(var x in Vh)if(x!==x.toLowerCase()){var b=Vh[x];b instanceof ni&&a.add(x,b)}return a.freeze(),a},Eo.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=ni.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||at("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Vh;b[a]=x,b[y]=a};function Lv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=mo,this.gg=this.fg=sr}Lv.prototype.copy=function(){var a=new Lv;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 jr(a,y){return kt.call(this),zm||(Sl=xa?new ku(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}Pt(jr,kt),jr.prototype.cloneProtected=function(a){kt.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 bh(a){a.da===null?a.da=new Bv:a.da.nc&&(a.da=a.da.copy())}be=jr.prototype,be.th=function(){kt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function y1(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}be.qb=function(a){a.classType===jr?this.wrap=a:kt.prototype.qb.call(this,a)},be.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},be.v=function(){kt.prototype.v.call(this)},be.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=pp(this),oe=a.textAlign=this.textAlign,re=y.tn;oe==="start"?oe=re?"right":"left":oe==="end"&&(oe=re?"left":"right"),re=this.isUnderline;var le=this.isStrikethrough;Ea(this,a,this.xc,!0,!1,x,b),(re||le)&&Ea(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 Se=y.scale;switch(8>(fe*fe+ue*ue)*Se*Se&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Rl&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,fe=this.spacingBelow,this.flip){case qo:a.translate(E,0),a.scale(-1,1);break;case To:a.translate(0,z),a.scale(1,-1);break;case kr:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ue=this.Gc,Se=(y+ee+fe)*ue,z>Se&&(b=this.verticalAlignment,b=b.y*z-b.y*Se+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,oe,re,le);else if(this.Qc!==null&&this.Qb!==null)for(Se=0;Se<ue;Se++){var Pe=this.Qc[Se];Pe>E&&(Pe=E),b+=y,this.Oj(this.Qb[Se],a,0,b,E,ee,Pe,x,oe,re,le),b+=ee+fe}switch(this.flip){case qo:a.scale(-1,1),a.translate(-E,0);break;case To:a.scale(1,-1),a.translate(0,-z);break;case kr:a.scale(-1,-1),a.translate(-E,-z)}}},be.Oj=function(a,y,x,b,E,z,ee,oe,re,le,ue){var fe=0;if(oe)re==="left"?fe=0:re==="right"?fe=E-ee:re==="center"&&(fe=(E-ee)/2),y.fillRect(x+fe,b+.25*z,ee,1);else{if(re==="left"?fe=0:re==="right"?fe=E:re==="center"&&(fe=E/2),E=Om!==null?Om(this,z):.75*z,y.fillText(a,x+fe,b+E),a=z/20|0,a===0&&(a=1),re==="right"?fe-=ee:re==="center"&&(fe-=ee/2),le){oe=Im!==null?Im(this,z):.8*z,re=x+fe,le=b+oe,E=x+fe+ee,oe=b+oe;var Se=a;y.beginPath(),y.lineWidth=Se,y.moveTo(re,le),y.lineTo(E,oe),y.stroke(),y.Se(),y instanceof Rl&&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 Rl&&y.ad.classList.add("gojs-td"))}},be.kk=function(a,y,x){if(!kt.prototype.kk.call(this,a,y,x))return!1;if(Ea(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++)Qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,Qy(a,y,!0);return!0},be.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:kt.prototype.nk.call(this,a)},be.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)}},be.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;Sl!==null&&E1!==z&&(E1=Sl.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 oe=ee=0,re=!1;!re;){var le=z.indexOf(`
|
|
|
`,oe);le===-1&&(le=z.length,re=!0),oe=z.substr(oe,le-oe),this.formatting===mp&&(oe=oe.trim()),ee=Math.max(ee,Vu(oe)),oe=le+1}z=ee}else ee=z.indexOf(`
|
|
|
`,0),0<=ee&&(z=z.substr(0,ee)),z=Vu(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=x1(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,re=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Rm&&(y=this.Ae,y=this.overflow===Rm?S1(y):0,le=this.spacingAbove+this.spacingBelow,le=Math.max(0,pp(this)+le),re=Math.min(this.maxLines-1,Math.max(Math.floor(re/le+.01)-1,0)),!(re+1>=this.Qb.length))){for(this.l|=16777216,le=this.Qb[re],y=Math.max(1,a-y);Vu(le)>y&&1<le.length;)le=le.substr(0,le.length-1);le+=vp,y=Vu(le),this.Qb[re]=le,this.Qb=this.Qb.slice(0,re+1),this.Qc[re]=y,this.Qc=this.Qc.slice(0,re+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===w1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(b,ee),ia(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},be.eh=function(a,y,x,b){Qs(this,a,y,x,b)};function gp(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 Mv(a,y,x,b){var E=a.formatting===mp;E&&(y=y.trim());var z=0,ee=a.Ae,oe=a.spacingAbove+a.spacingBelow;oe=Math.max(0,pp(a)+oe);var re=a.overflow===Rm?S1(ee):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,oe);else if(ee=y,a.wrap===Fv){a.Le=1;var le=Vu(y);if(re===0||le<=x)a.Cb=Math.max(a.Cb,le),gp(a,y,a.Cb),b!==null&&b.h(le,oe);else{for(z=fg(a,ee),ee=ee.substr(z.length),y=fg(a,ee),le=Vu(z+y);0<y.length&&le<=x;)z+=y,ee=ee.substr(y.length),y=fg(a,ee),le=z+y,E&&(le=le.trim()),le=Vu(le);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-re);Vu(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=vp;var ue=Vu(z);a.Cb=ue,gp(a,z,ue),b!==null&&b.h(ue,oe)}}else{for(re=0,ee.length===0&&(re=1,gp(a,ee,0));0<ee.length;){for(y=fg(a,ee),ee=ee.substr(y.length);Vu(y)>x;){var fe=1;for(le=Vu(y.substr(0,fe)),ue=0;le<=x;)fe++,ue=le,le=Vu(y.substr(0,fe));if(fe===1){var Se=le;z=Math.max(z,le)}else Se=ue,z=Math.max(z,ue);if(fe--,1>fe&&(fe=1),gp(a,y.substr(0,fe),Se),re++,y=y.substr(fe),a.Gc+re>a.maxLines)break}for(ue=fg(a,ee),le=Vu(y+ue);0<ue.length&&le<=x;)y+=ue,ee=ee.substr(ue.length),ue=fg(a,ee),le=y+ue,E&&(le=le.trim()),le=Vu(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=Vu(y),z=Math.max(z,ue)),gp(a,y,fe),re++,a.Gc+re>a.maxLines))break}a.Le=Math.min(a.maxLines,re),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,oe*a.Le)}}function fg(a,y){if(a.wrap===P1)return y.substr(0,1);for(var x=y.length,b=0,E=Sx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===C1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function Vu(a){return Sl===null?8*a.length:Sl.measureText(a).width}function pp(a){if(a.df!==null)return a.df;var y=a.Ae;if(Sl===null){var x=16;return a.df=x}return Av[y]!==void 0&&5e3>b1?x=Av[y]:(x=1.3*Sl.measureText("M").width,Av[y]=x,b1++),a.df=x}function S1(a){if(Sl===null)return 6;if(jm[a]!==void 0&&5e3>Dv)var y=jm[a];else y=Sl.measureText(vp).width,jm[a]=y,Dv++;return y}function x1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,pp(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,oe=!1;!oe;){if(ee=x.indexOf(`
|
|
|
`,z),ee===-1&&(ee=x.length,oe=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Fv){a.Le=0;var re=ti.alloc();Mv(a,z,y,re),E+=re.height,ti.free(re),a.Gc+=a.Le}else Mv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(oe=!0)}z=ee+1}return a.Lq=E}Re.Object.defineProperties(jr.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"||(bh(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Zn},set:function(a){var y=this.flip;y!==a&&(bh(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:ts},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),bh(this),this.da.Yr=a,il(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=ti.alloc();Mv(this,this.ec,999999,a);var y=a.width;ti.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),ia(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:Nv},set:function(a){var y=this.wrap;y!==a&&(bh(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:kv},set:function(a){var y=this.overflow;y!==a&&(bh(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&&bf(a,"TextBlock.stroke"),a instanceof wr&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return pp(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&&(bh(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&&(bh(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 Uh),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 Uh),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 Uh),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 Uh),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 Uh),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&&(bh(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&&(bh(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&&(bh(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&&(bh(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:mp},set:function(a){var y=this.formatting;y!==a&&(bh(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&&Hn(a,"> 0",jr,"maxLines"),bh(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 Om=null,Im=null,Fv=new nn(jr,"None",0),w1=new nn(jr,"WrapFit",1),Nv=new nn(jr,"WrapDesiredSize",2),P1=new nn(jr,"WrapBreakAll",3),kv=new nn(jr,"OverflowClip",0),Rm=new nn(jr,"OverflowEllipsis",1),mp=new nn(jr,"FormatTrim",0),C1=new nn(jr,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Av=new wi,b1=0,jm=new wi,Dv=0,vp="...",E1="",Sl=null,zm=!1;jr.className="TextBlock";function Bv(){this.nc=!1,this.Hd=null,this.Xf=Zn,this.gq=mp,this.Jq=1/0,this.$q=kv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=ts,this.$r=Nv}Bv.prototype.copy=function(){var a=new Bv;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},jr.getEllipsis=function(){return vp},jr.setEllipsis=function(a){vp=a,jm=new wi,Dv=0},jr.getBaseline=function(){return Om},jr.setBaseline=function(a){Om=a},jr.getUnderline=function(){return Im},jr.setUnderline=function(a){Im=a},jr.isValidFont=function(a){if(zm||(Sl=xa?new ku(null).context:null,zm=!0),Sl===null)return!0;var y=Sl.font;if(a===y||a==="10px sans-serif")return!0;Sl.font="10px sans-serif",Sl.font=a;var x=Sl.font;if(x!=="10px sans-serif")return Sl.font=y,!0;Sl.font="19px serif";var b=Sl.font;return Sl.font=a,x=Sl.font,Sl.font=y,x!==b},jr.FormatNone=C1,jr.FormatTrim=mp,jr.None=Fv,jr.OverflowClip=kv,jr.OverflowEllipsis=Rm,jr.WrapBreakAll=P1,jr.WrapDesiredSize=Nv,jr.WrapFit=w1;function Uh(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Uh.prototype.copy=function(){var a=new Uh;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Uh.className="GradElementSettings";function xl(a,y){kt.call(this),this.Eg=null,this.qo="",this.Xg=Io,this.Nk=Yn,this.Zg=this.Hd=null,this.Mk=Uo,this.Xf=Zn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var gg;Pt(xl,kt),xl.prototype.cloneProtected=function(a){kt.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},xl.prototype.qb=function(a){a===Zn||a===Li||a===Zo?this.imageStretch=a:kt.prototype.qb.call(this,a)},xl.prototype.toString=function(){return"Picture("+this.source+")#"+_i(this)};function pg(a){a===void 0&&(a=""),a!==""?gg[a]&&(delete gg[a],Hm--):(gg=new wi,Hm=0)}function L1(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 oe=ee.length,re=0;re<oe;re++)z=ee[re],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()||($a(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=en();for(var oe=0;oe<E;oe++)z.push(ee[oe]);if(y.hn)for(oe=0;oe<E;oe++)ee=z[oe],ee.Hd!==null&&ee.Hd(ee,x);xn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}xl.prototype.hA=function(){if(this.source!==""){pg(this.source);var a=this.source;this.source="",this.source=a}},xl.prototype.redraw=function(){this.N(),this.Uc=!0},xl.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 Vc)){var E=a instanceof Rl;b=this.naturalBounds;var z=0,ee=0,oe=this.qn,re=oe?+x.width:x.naturalWidth;if(oe=oe?+x.height:x.naturalHeight,re===void 0&&x.videoWidth&&(re=x.videoWidth),oe===void 0&&x.videoHeight&&(oe=x.videoHeight),re=re||b.width,oe=oe||b.height,re!==0&&oe!==0){var le=re,ue=oe;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,re=this.Xg.width,oe=this.Xg.height);var fe=re,Se=oe,Pe=this.Nk,Ee=this.Mk;switch(Pe){case Zn:if(this.sourceRect.w())break;fe>=b.width&&(z=z+Ee.offsetX+(fe*Ee.x-b.width*Ee.x)),Se>=b.height&&(ee=ee+Ee.offsetY+(Se*Ee.y-b.height*Ee.y)),re=Math.min(b.width,fe),oe=Math.min(b.height,Se);break;case Yn:fe=b.width,Se=b.height;break;case Li:case Zo:Pe===Li?(Pe=Math.min(b.height/Se,b.width/fe),fe*=Pe,Se*=Pe):Pe===Zo&&(Pe=Math.max(b.height/Se,b.width/fe),fe*=Pe,Se*=Pe,fe>=b.width&&(z=(z+Ee.offsetX+(fe*Ee.x-b.width*Ee.x)/fe)*re),Se>=b.height&&(ee=(ee+Ee.offsetY+(Se*Ee.y-b.height*Ee.y)/Se)*oe),re*=1/(fe/b.width),oe*=1/(Se/b.height),fe=b.width,Se=b.height)}Pe=this.Df()*y.scale;var Te=fe*Pe*Se*Pe,_e=re*oe/Te,Ge=x.__goCache;Pe=null;var st=xx;if(!E){if(x.sq&&Ge!==void 0&&4<Te&&_e>st*st)for(Ge.gi===null&&(F1(Ge,4,le,ue,x),F1(Ge,16,le,ue,x)),E=Ge.gi,le=E.length,ue=0;ue<le&&E[ue].ratio*E[ue].ratio<_e;ue++)Pe=E[ue];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new ku(null).context;try{E.drawImage(this.Eg,0,0)}catch(ut){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ut){this.vl=!0}}if(this.vl)return}}switch(E=fe<b.width?Ee.offsetX+(b.width*Ee.x-fe*Ee.x):0,Ee=Se<b.height?Ee.offsetY+(b.height*Ee.y-Se*Ee.y):0,this.flip){case qo:a.translate(Math.min(b.width,fe),0),a.scale(-1,1);break;case To:a.translate(0,Math.min(b.height,Se)),a.scale(1,-1);break;case kr:a.translate(Math.min(b.width,fe),Math.min(b.height,Se)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Ge!==void 0&&Pe!==null&&Pe.ratio!==1){a.save(),y=Pe.ratio;try{a.drawImage(Pe.source,z/y,ee/y,Math.min(Pe.source.width,re/y),Math.min(Pe.source.height,oe/y),E,Ee,Math.min(b.width,fe),Math.min(b.height,Se)),a instanceof Rl&&(this.bt=[z/y,ee/y,Math.min(Pe.source.width,re/y),Math.min(Pe.source.height,oe/y),E,Ee,Math.min(b.width,fe),Math.min(b.height,Se)])}catch(ut){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,re,oe,E,Ee,Math.min(b.width,fe),Math.min(b.height,Se)),a instanceof Rl&&(this.bt=[z,ee,re,oe,E,Ee,Math.min(b.width,fe),Math.min(b.height,Se)])}catch(ut){this.en=!1}switch(this.flip){case qo:a.scale(-1,1),a.translate(-Math.min(b.width,fe),0);break;case To:a.scale(1,-1),a.translate(0,-Math.min(b.height,Se));break;case kr:a.scale(-1,-1),a.translate(-Math.min(b.width,fe),-Math.min(b.height,Se))}}}}},xl.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=yl(this,!0),ee=this.Eg,oe=this.qn,re=0,le=0;(oe||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(re=oe?+ee.width:ee.naturalWidth,le=oe?+ee.height:ee.naturalHeight),isFinite(E.width)||z===Yn||z===Oi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=re)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:re),isFinite(E.height)||z===Yn||z===Ui?(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)),ia(this.dc,a,y),this.Ge(0,0,a,y)},xl.prototype.eh=function(a,y,x,b){Qs(this,a,y,x,b)},Re.Object.defineProperties(xl.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||at("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&$g(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Mn),b!==null&&x&&nc(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()||($a(this,!1),this.v())):x&&L1(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=gg;if(xa){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Hm&&(pg(),x=gg),b=Dn("img"),b.hn=!0,L1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Hm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new M1),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}}}),xl.prototype.redraw=xl.prototype.redraw,xl.prototype.reloadSource=xl.prototype.hA;var Hm=0,xx=4;xl.className="Picture",gg=new wi,xl.clearCache=pg;function M1(){this.gi=null}function F1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new ku(null),ee=z.context,oe=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new N1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),ee.setTransform(oe*x,0,0,oe*x,0,0),ee.yc(),ee.drawImage(E,0,0),a.gi.push(y))}M1.className="PictureCacheArray";function N1(a,y){this.source=a,this.ratio=y}N1.className="PictureCacheInstance";function mg(){this.os=new ni,this.mc=null}mg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new ni,this.mc=null};function vg(a,y,x,b,E,z){a.mc=new Za,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 wx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}mg.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new tr(Fa);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},mg.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new tr(yi);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Dd(a,y,x,b,E,z,ee){var oe;oe===void 0&&(oe=!1);var re=new tr(cr);re.point1X=y,re.point1Y=x,re.point2X=b,re.point2Y=E,re.endX=z,re.endY=ee,oe&&re.close(),a.mc.segments.add(re)}function Wm(a,y,x,b,E){var z;z===void 0&&(z=!1);var ee=new tr(Cr);ee.point1X=y,ee.point1Y=x,ee.endX=b,ee.endY=E,z&&ee.close(),a.mc.segments.add(ee)}mg.prototype.arcTo=function(a,y,x,b,E,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var oe=new tr(Br);oe.startAngle=a,oe.sweepAngle=y,oe.centerX=x,oe.centerY=b,oe.radiusX=E,oe.radiusY=z!==0?z:E,ee&&oe.close(),this.mc.segments.add(oe)};function Px(a,y,x,b,E,z,ee,oe){var re;re===void 0&&(re=!1),y=new tr(Sa,ee,oe,y,x,b,E,z),re&&y.close(),a.mc.segments.add(y)}function k1(a){var y=Gm;return y!==null?(Gm=null,y.reset(a),y):(y=new mg,y.reset(a),y)}var Gm=null;mg.className="StreamGeometryContext";function Vs(a,y){var x=a.toLowerCase(),b=Bt.Ze;b[a]=y,b[x]=a}Vs("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Bt.Mf[a];return b!==void 0||(b=new ni(ni.u),b.endX=y,b.endY=x,Bt.Nf<Bt.vm&&(Bt.Mf[a]=b,Bt.Nf++)),b}),Vs("Square",function(a,y,x){a="s"+y+","+x;var b=Bt.Mf[a];return b!==void 0||(b=new ni(ni.u),b.endX=y,b.endY=x,b.defaultStretch=Li,Bt.Nf<Bt.vm&&(Bt.Mf[a]=b,Bt.Nf++)),b}),Vs("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=Bt.Mf[b];if(E!==void 0)return E;var z=a*Bt.wg;return E=new ni().add(new Za(a,0,!0).add(new tr(yi,y-a,0)).add(new tr(cr,y,a,y-z,0,y,z)).add(new tr(yi,y,x-a)).add(new tr(cr,y-a,x,y,x-z,y-z,x)).add(new tr(yi,a,x)).add(new tr(cr,0,x-a,z,x,0,x-z)).add(new tr(yi,0,a)).add(new tr(cr,a,0,0,z,z,0).close())),1<z&&(E.spot1=new xi(0,0,z,z),E.spot2=new xi(1,1,-z,-z)),Bt.Nf<Bt.vm&&(Bt.Mf[b]=E,Bt.Nf++),E}),Vs("Border","RoundedRectangle"),Vs("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Bt.Mf[a];return b!==void 0||(b=new ni(ni.F),b.endX=y,b.endY=x,b.spot1=Vl,b.spot2=Cl,Bt.Nf<Bt.vm&&(Bt.Mf[a]=b,Bt.Nf++)),b}),Vs("Circle",function(a,y,x){a="c"+y+","+x;var b=Bt.Mf[a];return b!==void 0||(b=new ni(ni.F),b.endX=y,b.endY=x,b.spot1=Vl,b.spot2=Cl,b.defaultStretch=Li,Bt.Nf<Bt.vm&&(Bt.Mf[a]=b,Bt.Nf++)),b}),Vs("TriangleRight",function(a,y,x){return new ni().add(new Za(0,0).add(new tr(yi,y,.5*x)).add(new tr(yi,0,x).close())).pm(0,.25,.5,.75)}),Vs("TriangleDown",function(a,y,x){return new ni().add(new Za(0,0).add(new tr(yi,y,0)).add(new tr(yi,.5*y,x).close())).pm(.25,0,.75,.5)}),Vs("TriangleLeft",function(a,y,x){return new ni().add(new Za(y,x).add(new tr(yi,0,.5*x)).add(new tr(yi,y,0).close())).pm(.5,.25,1,.75)}),Vs("TriangleUp",function(a,y,x){return new ni().add(new Za(y,x).add(new tr(yi,0,x)).add(new tr(yi,.5*y,0).close())).pm(.25,.5,.75,1)}),Vs("Triangle","TriangleUp"),Vs("Diamond",function(a,y,x){return new ni().add(new Za(.5*y,0).add(new tr(yi,0,.5*x)).add(new tr(yi,.5*y,x)).add(new tr(yi,y,.5*x).close())).pm(.25,.25,.75,.75)}),Vs("LineH",function(a,y,x){return a=new ni(ni.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Vs("LineV",function(a,y,x){return a=new ni(ni.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Vs("None","Rectangle"),Vs("BarH","Rectangle"),Vs("BarV","Rectangle"),Vs("MinusLine","LineH"),Vs("PlusLine",function(a,y,x){return new ni().add(new Za(0,x/2,!1).add(new tr(yi,y,x/2)).add(new tr(Fa,y/2,0)).add(new tr(yi,y/2,x)))}),Vs("XLine",function(a,y,x){return new ni().add(new Za(0,x,!1).add(new tr(yi,y,0)).add(new tr(Fa,0,0)).add(new tr(yi,y,x)))}),Vs("LineRight",function(a,y,x){return new ni().add(new Za(.25*y,0,!1).add(new tr(yi,.75*y,.5*x)).add(new tr(yi,.25*y,x)))}),Vs("LineDown",function(a,y,x){return new ni().add(new Za(0,.25*x,!1).add(new tr(yi,.5*y,.75*x)).add(new tr(yi,y,.25*x)))}),Vs("LineLeft",function(a,y,x){return new ni().add(new Za(.75*y,0,!1).add(new tr(yi,.25*y,.5*x)).add(new tr(yi,.75*y,x)))}),Vs("LineUp",function(a,y,x){return new ni().add(new Za(0,.75*x,!1).add(new tr(yi,.5*y,.25*x)).add(new tr(yi,y,.75*x)))}),Bt.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 Tv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Ar,this.ir=null,this.jr="",this.lr=sr,this.Gq="",this.Hq=_r,this.Pq=nr,this.Kq=xo,this.Up=null,this.Cq=127,this.zr=hr,this.yr="gray",this.Vg=4}Tv.prototype.copy=function(){var a=new Tv;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 Wi(a,y){a===void 0||a instanceof is||typeof a=="string"?$n.call(this,a):($n.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 Ke(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new vn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Pt(Wi,$n),Wi.prototype.cloneProtected=function(a){$n.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},be=Wi.prototype,be.Af=function(a){$n.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},be.toString=function(){var a=Pn(this.constructor)+"#"+_i(this);return this.data!==null&&(a+="("+An(this.data)+")"),a};function wl(a){a.P===null?a.P=new Tv:a.P.nc&&(a.P=a.P.copy())}be.th=function(){$n.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},be.gk=function(a,y,x,b,E,z,ee){var oe=this.diagram;oe!==null&&(a===fa&&y==="elements"?E instanceof $n?Uc(E,function(re){sy(oe.partManager,re),jc(oe,re)}):nc(oe,E):a===Ca&&y==="elements"&&(E instanceof $n?Uc(E,function(re){ly(oe.partManager,re,oe)}):$g(oe,E)),oe.cb(a,y,x,b,E,z,ee))},be.La=function(a){if($n.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 $n&&Uc(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Wi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Wi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Wi.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 di),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)))}}},Wi.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)}},Wi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=en();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);xn(y)}},Wi.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 co?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof ur))break e;Au(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=$n.Link),x.adornedObject=y)}if(x!==null){x.type===$n.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},Wi.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Ov(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Cx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Km(a){if(ac(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function A1(a){if(a.G|=2097152,ac(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||T1(a,y,x),x=a.Ib;var b=vn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),vn.free(b),Rv(a,!1)}}Wi.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Mo);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},Wi.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Uo;this.locationSpot.sb()&&(z=this.locationSpot);var ee=Ke.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),Ke.free(ee)}},Wi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Wi.prototype.moveTo=function(a,y,x){a=Ke.allocAt(a,y),this.move(a,x),Ke.free(a)},Wi.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())},Wi.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())},Wi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new di),y.I(a)!==null)return y.I(a);var x=$n.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Bd(a,y,x,b){b===void 0&&(b=new Ke),x=x.Mc()?Uo: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}Wi.prototype.mi=function(a){return a===void 0&&(a=new vn),a.assign(this.actualBounds)},Wi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function D1(a){var y=Ke.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Eo?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 Jc(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=u1(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}Wi.prototype.arrange=function(){if(ol(this)===!1)A1(this);else{Gh(this,!1);var a=this.Ib,y=vn.alloc();y.assign(a);var x=sc(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;T1(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()||Bt.B(y.width,a.width)&&Bt.B(y.height,a.height)||0<=this.vw&&this.C(16),vn.free(y),Rv(this,!1)}},be=Wi.prototype,be.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=vn.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),vn.free(E)}!(this.G&65536)&&a.D(y)||R1(this,b,x),x.N(),!a.w()&&!y.w()||xr(a,y)||(this instanceof li&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},be.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&B1(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 Ke(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),ac(this)===!1&&ol(this)===!1&&(Km(this),A1(this)),!0};function B1(a,y,x,b,E){y===null||a instanceof ur||(y=y.animationManager,y.zb&&nh(y,a,new Ke(b,E),x))}be.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;ac(this)||ol(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)}Km(this)},be.Av=function(){this.G&=-2097153,Km(this)};function T1(a,y,x){var b=D1(a),E=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?O1(a,y,x,E,b):I1(a,y,x,E,b):z?O1(a,y,x,E,b):ee&&I1(a,y,x,E,b),a.G|=2097152,Ke.free(b),a.Uk()}function O1(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 ur||nh(x,a,new Ke(z,ee),y),b||y.x===z&&y.y===ee||a.g("position",new Ke(z,ee),y.copy()))}function I1(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 R1(a,y,x){jv(a,!1),a instanceof li&&Ld(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?sc(a)?(Ro(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}be.si=function(){return!0},be.Zc=function(){return!0},be.ph=function(){return!1},be.Dd=function(){return!0};function Iv(a,y,x,b){y.constructor===a.constructor||H1||(H1=!0,ii('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),ii(" Old class: "+Pn(a.constructor)+", new class: "+Pn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,oe=!0,re=!0,le=!1;a instanceof li&&(oe=a.isTreeLeaf,re=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 li&&(a.U=oe?a.U|4:a.U&-5,a.U=re?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)}Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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},Wi.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 ac(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function jv(a,y){a.G=y?a.G|65536:a.G&-65537}function sc(a){return(a.G&131072)!==0}be=Wi.prototype,be.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Zm(a,y){a.G=y?a.G|1048576:a.G&-1048577}be.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},be.N=function(){var a=this.diagram;a!==null&&!ol(this)&&!ac(this)&&this.isVisible()&&this.Ib.w()&&a.N(Jc(this,this.Ib))},be.v=function(){$n.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof li&&this.labeledLink!==null&&il(this.labeledLink),a.$b(!0))},be.Vo=function(a){a||(a=this.Ah,a!==null&&Zv(a,this))},be.Wo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},be.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},be.oz=function(){return zv(this,this)};function zv(a,y){var x=y.containingGroup;return x!==null?1+zv(a,x):y instanceof li&&(y=y.labeledLink,y!==null)?zv(a,y):0}be.sz=function(){return j1(this,this)};function j1(a,y){var x=y.containingGroup;return x!==null||y instanceof li&&(x=y.labeledLink,x!==null)?j1(a,x):y}be.Td=function(a){return a instanceof co?Hv(this,this,a):!1};function Hv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Hv(a,b,x)?y instanceof li&&(y=y.labeledLink,y!==null)?Hv(a,y,x):!1:!0}be.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof co&&Zm(y,!0),y instanceof li){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 li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof co&&Zm(y,!1),y instanceof li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Wi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof li&&this.isLinkLabel)},Wi.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 li&&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 z1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function lc(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof ur)){if(a.add(y),y instanceof li){if(x&&y instanceof co)for(var ee=y.memberParts;ee.next();)lc(a,ee.value,x,b,E,z);if(E!==!1)for(ee=y.linksConnected;ee.next();){var oe=ee.value;if(!a.contains(oe)){var re=oe.fromNode,le=oe.toNode;re=re===null||a.contains(re),le=le===null||a.contains(le),(E?re&&le:re||le)&&lc(a,oe,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)lc(a,y.value,x,b-1,E,z)}else if(y instanceof ei)for(y=y.labelNodes;y.next();)lc(a,y.value,x,b,E,z)}}Re.Object.defineProperties(Wi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Ki: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(Ca,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(fa,"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&&(wl(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&&Mu(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 ur?this.type!==$n.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:nr},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),wl(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:xo},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),wl(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&&(wl(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:_r},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),wl(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,ol(this)===!1&&(Km(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)),B1(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 ur)){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 ur?this instanceof ur&&(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&&(Au(x),x=x.copy(),x!==null&&Iv(this,x,y,a))):(z!==null&&z.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(Au(x),x=x.copy(),x===null||x instanceof ei||(b=this.location.copy(),Iv(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){Iv(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&&(wl(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&&(wl(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&&(wl(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 ei?(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&&(wl(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&&(wl(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&&(wl(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:Ar},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),wl(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&&(wl(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&&(wl(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:sr},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),wl(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&&at("Cannot make a Group a member of itself: "+this.toString()),at("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Vv(y,this):this instanceof co&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Zv(a,this):this instanceof co&&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 co){for(x=new Mn,lc(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof li)for(b=b.linksConnected;b.next();)yg(b.value)}if(this instanceof li){for(x=this.linksConnected;x.next();)yg(x.value);x=this.labeledLink,x!==null&&yg(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&Mu(y,-1,a))}}else at("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&&(wl(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof li&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(wl(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&&(wl(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:hr},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),wl(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&&(wl(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&&(wl(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Wi.prototype.invalidateLayout=Wi.prototype.C,Wi.prototype.findCommonContainingGroup=Wi.prototype.px,Wi.prototype.isMemberOf=Wi.prototype.Td,Wi.prototype.findTopLevelPart=Wi.prototype.sz,Wi.prototype.findSubGraphLevel=Wi.prototype.oz,Wi.prototype.ensureBounds=Wi.prototype.Va,Wi.prototype.getDocumentBounds=Wi.prototype.mi,Wi.prototype.findObject=Wi.prototype.fb,Wi.prototype.moveTo=Wi.prototype.moveTo,Wi.prototype.invalidateAdornments=Wi.prototype.Wb,Wi.prototype.clearAdornments=Wi.prototype.Ej,Wi.prototype.removeAdornment=Wi.prototype.Jf,Wi.prototype.addAdornment=Wi.prototype.bh,Wi.prototype.findAdornment=Wi.prototype.Pj,Wi.prototype.updateTargetBindings=Wi.prototype.La;var H1=!1;Wi.className="Part",Wi.LayoutNone=0,Wi.LayoutAdded=1,Wi.LayoutRemoved=2,Wi.LayoutShown=4,Wi.LayoutHidden=8,Wi.LayoutNodeSized=16,Wi.LayoutGroupLayout=32,Wi.LayoutNodeReplaced=64,Wi.LayoutStandard=127,Wi.LayoutAll=16777215;function ur(a,y){a===void 0||a instanceof is||typeof a=="string"?Wi.call(this,a):(Wi.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)}Pt(ur,Wi),ur.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},ur.prototype.updateRelationshipsFromData=function(){},ur.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof ei&&y instanceof Eo){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 Eo&&(E.ua=a)}}},ur.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!ol(a))},ur.prototype.Zc=function(){return!1},ur.prototype.gk=function(a,y,x,b,E,z,ee){if(a===fa&&y==="elements"){if(E instanceof al)this.$a===null&&(this.$a=E);else if(E instanceof $n){var oe=E.Nl(function(re){return re instanceof al});oe instanceof al&&this.$a===null&&(this.$a=oe)}}else a===Ca&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof $n&&this.$a.rg(b)&&(this.$a=null));Wi.prototype.gk.call(this,a,y,x,b,E,z,ee)},ur.prototype.updateAdornments=function(){},ur.prototype.Lj=function(){},Re.Object.defineProperties(ur.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}}}),ur.className="Adornment";function Wv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=bs,this.er=Xm,this.Kr=this.ij=this.Nq=this.Mq=null}Wv.prototype.copy=function(){var a=new Wv;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 li(a,y){a===void 0||a instanceof is||typeof a=="string"?Wi.call(this,a):(Wi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Ln,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Pt(li,Wi),li.prototype.cloneProtected=function(a){Wi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},be=li.prototype,be.Af=function(a){Wi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Td(a){a.Ba===null?a.Ba=new Wv:a.Ba.nc&&(a.Ba=a.Ba.copy())}be.th=function(){Wi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function W1(a,y){y!==null&&(a.af===null&&(a.af=new Mn),a.af.add(y))}function G1(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}be.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=G1(this,a,y,x),a!==null&&a.Sl()},be.gk=function(a,y,x,b,E,z,ee){a===fa&&y==="elements"?this.wc=null:a===Ca&&y==="elements"&&(this.wc=null),Wi.prototype.gk.call(this,a,y,x,b,E,z,ee)},be.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(jl(x.fromPort),jl(x.toPort),x.bb())}};function K1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(jl(x.fromPort),jl(x.toPort),x.bb())}}function jl(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||jl(y.port)}}be.si=function(){return!0},li.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},li.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},li.prototype.isVisible=function(){if(!Wi.prototype.isVisible.call(this))return!1;var a=!0,y=Fd,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Fd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Ja){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===ig&&(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},li.prototype.Zb=function(a){Wi.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)}},li.prototype.qx=function(){var a=new Mn,y=new Mn;return Z1(this,this,a,y),y.iterator};function Z1(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)&&Z1(a,E?ee.toNode:ee.fromNode,x,b):b.add(ee)})}}li.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new Pi(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},be=li.prototype,be.Mo=function(a){a===void 0&&(a=null);var y=new Pi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},be.Sd=function(a){a===void 0&&(a=null);var y=new Pi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},be.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 Mn,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 Mn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new ji(x):Ki},be.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 Mn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new ji(x):Ki},be.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 Mn,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new ji(x):Ki},be.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Pi(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},be.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new Pi(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 Vm(a,y,x){jl(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 Um(a,y,x){jl(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)):yp(y)))}function yp(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}}}li.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},be=li.prototype,be.Vo=function(a){Wi.prototype.Vo.call(this,a),a||(yp(this),a=this.Yk,a!==null&&q1(a,this))},be.Wo=function(a){Wi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},be.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,Wi.prototype.Lj.call(this)},be.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;V1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function V1(a){a.wc===null?a.wc=new di:a.wc.clear(),a.qm(a,function(y,x){U1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function U1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Gv(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=en()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);xn(x)}}}be.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},be.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}},be.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Zm(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;)Zm(y,!1),y=y.pg();return x},be.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},be.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof li)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},be.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 Mn;return a(this,y),y},be.uz=function(){return X1(this,this)};function X1(a,y){return y=y.pg(),y===null?0:1+X1(a,y)}be.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new Pi(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},be.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 Ln,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 Ln,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new ji(x):Ki},be.wz=function(a){a===void 0&&(a=1/0);var y=new Mn;return lc(y,this,!1,a,!0),y},li.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 Mn;x.add(this),Y1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Fd),y.Ue=!1}};function Y1(a,y,x,b,E,z,ee){if(1<b)for(var oe=x?a.Mo():a.Sd();oe.next();){var re=oe.value;re.isTreeLink&&(re=re.To(a),re===null||re===a||y.contains(re)||(y.add(re),Y1(re,y,x,b-1,E,z,ee)))}else J1(a,y,x,E,z,ee)}function J1(a,y,x,b,E,z){for(var ee=E===a?!0:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),re={};oe.next();){var le=oe.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();re.uv=a,fe.all(function(Se){return function(Pe){return Pe===Se.uv||!Pe.isTreeExpanded}}(re))&&b.Aj(le,E),le.oh(),le.Zb(!1)}le.isTreeExpanded&&(le.wasTreeExpanded=le.isTreeExpanded,ue||J1(le,y,x,b,E,z))}re={uv:re.uv}}a.isTreeExpanded=!1}li.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 Mn;x.add(this),$1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Fd),y.Ue=!1}};function $1(a,y,x,b,E,z,ee){for(var oe=z===a?!1:a.isTreeExpanded,re=x?a.Mo():a.Sd(),le={};re.next();){var ue=re.value;if(ue.isTreeLink&&(oe||ue.fd||ue.bb(),ue=ue.To(a),ue!==null&&ue!==a&&!y.contains(ue))){if(y.add(ue),!oe){ue.Zb(!0),ue.oh();var fe=x?ue.Oo():ue.Po();le.vv=a,fe.all(function(Se){return function(Pe){return Pe===Se.vv||!Pe.isTreeExpanded}}(le))&&E.Cj(ue,z)}(2<b||ue.wasTreeExpanded)&&(ue.wasTreeExpanded=!1,$1(ue,y,x,b-1,E,z,ee))}le={vv:le.vv}}a.isTreeExpanded=!0}Re.Object.defineProperties(li.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Xm},set:function(a){var y=this.portSpreading;y!==a&&(Td(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&&Ld(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:bs},set:function(a){typeof a=="number"&&(a=new vi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Td(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Ld(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&&(Td(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&&(Td(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&&(Td(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&&(q1(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),il(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&V1(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&&(Td(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))}}}),li.prototype.expandTree=li.prototype.expandTree,li.prototype.collapseTree=li.prototype.collapseTree,li.prototype.findTreeParts=li.prototype.wz,li.prototype.findTreeChildrenNodes=li.prototype.Ou,li.prototype.findTreeChildrenLinks=li.prototype.Qo,li.prototype.findTreeLevel=li.prototype.uz,li.prototype.findTreeParentChain=li.prototype.vz,li.prototype.findTreeParentNode=li.prototype.pg,li.prototype.findTreeParentLink=li.prototype.kh,li.prototype.findCommonTreeParent=li.prototype.gz,li.prototype.findTreeRoot=li.prototype.xz,li.prototype.isInTreeOf=li.prototype.Nz,li.prototype.findPort=li.prototype.ns,li.prototype.findLinksTo=li.prototype.kz,li.prototype.findLinksBetween=li.prototype.jz,li.prototype.findNodesInto=li.prototype.Oo,li.prototype.findNodesOutOf=li.prototype.Po,li.prototype.findNodesConnected=li.prototype.Mu,li.prototype.findLinksInto=li.prototype.Sd,li.prototype.findLinksOutOf=li.prototype.Mo,li.prototype.findExternalTreeLinksConnected=li.prototype.qx,li.prototype.invalidateConnectedLinks=li.prototype.Bd,li.prototype.invalidateLinkBundle=li.prototype.Lz;var bx=new nn(li,"SpreadingNone",10),Xm=new nn(li,"SpreadingEvenly",11),Kv=new nn(li,"SpreadingPacked",12);li.className="Node",li.SpreadingNone=bx,li.SpreadingEvenly=Xm,li.SpreadingPacked=Kv;function co(a,y){a===void 0||a instanceof is||typeof a=="string"?li.call(this,a):(li.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Mn,this.$a=null,this.Sc=new ta,this.Sc.group=this,this.gl=new Mn,this.tb=this.$p=null,y&&Object.assign(this,y)}Pt(co,li),co.prototype.cloneProtected=function(a){li.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof al});y instanceof al?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())},be=co.prototype,be.Af=function(a){li.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 li)x.Bd(y);else if(x instanceof ei)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},be.gk=function(a,y,x,b,E,z,ee){if(a===fa&&y==="elements"){if(E instanceof al)this.$a===null?this.$a=E:this.$a!==E&&at("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof $n){var oe=E.Nl(function(re){return re instanceof al});oe instanceof al&&(this.$a===null?this.$a=oe:this.$a!==oe&&at("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ca&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof $n&&this.$a.rg(b)&&(this.$a=null));li.prototype.gk.call(this,a,y,x,b,E,z,ee)},be.Xl=function(a,y){li.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==$n.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof $n&&(a=a.Pb()),this.tb===null&&(this.tb=new vn),a.mi(this.tb),a instanceof Eo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},be.eh=function(a,y,x,b){this.nf=this.$a,li.prototype.eh.call(this,a,y,x,b)},be.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof ei||y.Va()}),li.prototype.Va.call(this)},be.si=function(){if(!li.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof li){if(y.isVisible()&&ol(y))return!1}else if(y instanceof ei&&y.isVisible()&&ol(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Zv(a,y){if(a.Gn.add(y)){y instanceof co&&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 ei&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Vv(a,y){if(a.Gn.remove(y)){y instanceof co&&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 ei&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}be.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)}li.prototype.Lj.call(this)},co.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=mn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},co.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=mn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},co.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))},be=co.prototype,be.Bd=function(a){var y=(this.U&65536)!==0;if(li.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()?(jl(x.fromPort),jl(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(jl(x.fromPort),jl(x.toPort),x.bb()))}}},be.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 Mn,b=y.iterator;b.next();){var E=b.value;if(E instanceof li)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},be.iz=function(){var a=this.Rj();a.add(this);for(var y=new Mn,x=a.iterator;x.next();){var b=x.value;if(b instanceof li)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},be.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Mn;return a(this,y),y},be.Rj=function(){var a=new Mn;return lc(a,this,!0,0,!0),a.remove(this),a},be.Zb=function(a){li.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},co.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();Q1(this,y,a,this),a.Ue=!1}};function Q1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof co&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,Q1(z,y,x,b)),z instanceof li)z.Bd(y),x.Aj(z,b);else if(z instanceof ei)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}co.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();_1(this,y,a,this),a.Ue=!1}};function _1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof co&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,_1(z,y,x,b)),z instanceof li)z.Bd(y),x.Cj(z,b);else if(z instanceof ei)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}co.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=Ke.alloc(),li.prototype.move.call(this,a,y),a=new Mn,y=this.Rj().iterator;y.next();)E=y.value,E instanceof ei&&(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 li&&E.isLinkLabel)){var ee=E.position,oe=E.location;ee.w()?(z.x=ee.x+b,z.y=ee.y+x,E.position=z):oe.w()&&(z.x=oe.x+b,z.y=oe.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof ei&&(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(),Xv(E)&&E.bb());Ke.free(z)}},Re.Object.defineProperties(co.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&&at("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&&(Td(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&&(Td(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&&(Td(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&&(Td(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)}}}),co.prototype.expandSubGraph=co.prototype.expandSubGraph,co.prototype.collapseSubGraph=co.prototype.collapseSubGraph,co.prototype.findSubGraphParts=co.prototype.Rj,co.prototype.findContainingGroupChain=co.prototype.hz,co.prototype.findExternalNodesConnected=co.prototype.iz,co.prototype.findExternalLinksConnected=co.prototype.Lu,co.prototype.ensureBounds=co.prototype.Va,co.className="Group";function al(a){kt.call(this),this.yb=qa,this.ko=new vn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Pt(al,kt),al.prototype.cloneProtected=function(a){kt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},al.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Ko(0,0,y.width,y.height,a.x,a.y)},al.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof co||a instanceof ur)||at("Placeholder is not inside a Group or Adornment."),a instanceof co){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(ia(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=Ke.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Ke.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 Eo&&(ee=z.strokeWidth);var oe=z.Df(),re=z.naturalBounds,le=(re.width+ee)*oe;ee=(re.height+ee)*oe,a.type!==$n.Link&&(oe=z.ga(a.category==="Selection"?_r:a.locationSpot,Ke.alloc()),a.location=oe,Ke.free(oe)),isNaN(le)||isNaN(ee)?(a=z.ga(_r,Ke.alloc()),le=vn.allocAt(a.x,a.y,0,0),le.Ye(z.ga(Ds,a)),le.Ye(z.ga(Xs,a)),le.Ye(z.ga(Rs,a)),ia(y,le.width+b||0,le.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Ke.free(a),vn.free(le)):(ia(y,le+b||0,ee+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},al.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},al.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof co&&!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=vn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof co&&!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)),vn.free(x),b&&y instanceof co&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},al.prototype.computeMemberBounds=function(a){if(!(this.part instanceof co))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 oe=ee.value;if(oe.isVisible()){if(oe instanceof ei&&(!y.computesBoundsIncludingLinks||ql(oe)||oe.fromNode===y||oe.toNode===y))continue;oe=oe.actualBounds,oe.left<x&&(x=oe.left),oe.top<b&&(b=oe.top),oe.right>E&&(E=oe.right),oe.bottom>z&&(z=oe.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},Re.Object.defineProperties(al.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())}}}),al.className="Placeholder";function ei(a){Wi.call(this,$n.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=sl,this.Om=0,this.Qm=sl,this.Rm=NaN,this.qj=$v,this.po=.5,this.wd=null,this.Nb=new Ln().freeze(),this.Tg=this.Mg=null,this.ml=new vn,this.ua=new ni,this.u=this.o=this.Sf=this.Wf=null,this.su=new Ke,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Pt(ei,Wi),ei.prototype.cloneProtected=function(a){Wi.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())},be=ei.prototype,be.Af=function(a){Wi.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&&jl(y),a=a.toPort,a!==null&&jl(a)},be.qb=function(a){a.classType===ei?(a.value&2)===2?this.routing=a:a===tu||a===Id||a===xg?this.curve=a:a===wp||a===qm||a===e0?this.adjusting=a:a!==$v&&a!==sl&&at("Unknown Link enum value for a Link property: "+a):Wi.prototype.qb.call(this,a)},be.Xc=function(){this.ba===null&&(this.ba=new sp)},be.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),ol(a)||ac(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),ol(a)||ac(a)))},be.zv=function(){return!1},be.Av=function(){},be.Zc=function(){return!1},ei.prototype.computeAngle=function(a,y,x){return ei.computeAngle(y,x)},ei.computeAngle=function(a,y){switch(a){default:case sl:a=0;break;case Pp:a=y;break;case Cp:a=y+90;break;case bp:a=y-90;break;case Qv:a=y+180;break;case t0:a=Bt.bp(y),90<a&&270>a&&(a-=180);break;case Ep:a=Bt.bp(y+90),90<a&&270>a&&(a-=180);break;case Lp:a=Bt.bp(y-90),90<a&&270>a&&(a-=180);break;case n0:if(a=Bt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Bt.bp(a)};function yg(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&&Vv(x,a),a.Ah=y,y!==null&&Zv(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}be=ei.prototype,be.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Wi.prototype.oh.call(this)},be.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},be.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function q1(a,y){a.wd===null&&(a.wd=new Mn),a.wd.add(y),a.v()}be.Vo=function(a){if(Wi.prototype.Vo.call(this,a),$c(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Vm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Vm(x,this,b)}Sp(this)}},be.Wo=function(a){if(Wi.prototype.Wo.call(this,a),$c(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Um(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Um(x,this,b)}xp(this)}},be.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))},ei.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},ei.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?Wi.prototype.move.call(this,a,!1):(a=Ke.allocAt(x.x+b,x.y+E),Wi.prototype.move.call(this,a,!1),Ke.free(a)),Od(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},ei.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},ei.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},ei.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Qo),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()===tu))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()===tu){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Bt.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),Bt.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},ei.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()===tu))return this.ua.wx(.5);if(this.computeCurve()===tu&&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),Bt.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)},be=ei.prototype,be.i=function(a){return this.Nb.s[a]},be.dd=function(a,y){this.Nb.cd(a,y)},be.L=function(a,y,x){this.Nb.cd(a,new Ke(y,x))},be.Kz=function(a,y){this.Nb.Gb(a,y)},be.m=function(a,y,x){this.Nb.Gb(a,new Ke(y,x))},be.ne=function(a){this.Nb.add(a)},be.yf=function(a,y){this.Nb.add(new Ke(a,y))},be.pv=function(a){this.Nb.mb(a)},be.Fj=function(){this.Nb.clear()};function Od(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 Ln,z=a.Nb.iterator;z.next();){var ee=z.value;E.add(new Ke(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),il(a)),b?Ym(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&Ur(ee.animationManager,a,E),a.g("points",z,E)}}be.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},be.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 oe=E[ee];x=Math.min(oe.x,x),b=Math.min(oe.y,b)}oe=ee=1/0;for(var re=y.s,le=re.length,ue=0;ue<le;ue++){var fe=re[ue];ee=Math.min(fe.x,ee),oe=Math.min(fe.y,oe),fe.freeze()}if(y.freeze(),le===z){for(z=0;z<le;z++)if(ue=E[z],fe=re[z],ue.x-x!==fe.x-ee||ue.y-b!==fe.y-oe){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Ur(x.animationManager,this,y),Ym(this),this.g("points",a,y)}},be.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Ym(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),_m(a,!1))}be.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())}},be.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()}}},ei.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Mf||(Mf=new li,Mf.desiredSize=io,Mf.Va()),this.defaultFromPoint&&(Mf.location=this.defaultFromPoint,Mf.Va(),y=a=Mf)):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?(Ff||(Ff=new li,Ff.desiredSize=io,Ff.Va()),this.defaultToPoint&&(Ff.location=this.defaultToPoint,Ff.Va(),E=b=Ff)):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 oe=Sg(ee),re=Sg(x),le=y===E&&y!==null,ue=this.isOrthogonal,fe=this.curve===tu;this.Wf=le&&!ue?fe=!0:!1;var Se=this.computeAdjusting()===sl||le;if(!ue&&!le&&oe&&re){if(oe=!1,!Se&&3<=z&&(Se=this.getLinkPoint(a,y,ee,!0,!1,b,E),re=this.getLinkPoint(b,E,x,!1,!1,a,y),oe=this.adjustPoints(0,Se,z-1,re))&&(Se=this.getLinkPoint(a,y,ee,!0,!1,b,E),re=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Se,z-1,re)),!oe)if(this.Fj(),fe){z=this.getLinkPoint(a,y,ee,!0,!1,b,E),Se=this.getLinkPoint(b,E,x,!1,!1,a,y),oe=Se.x-z.x,re=Se.y-z.y,le=this.computeCurviness(),fe=ue=0;var Pe=z.x+oe/3,Ee=z.y+re/3,Te=Pe,_e=Ee;Bt.B(re,0)?_e=0<oe?_e-le:_e+le:(ue=-oe/re,fe=Math.sqrt(le*le/(ue*ue+1)),0>le&&(fe=-fe),Te=(0>re?-1:1)*fe+Pe,_e=ue*(Te-Pe)+Ee),Pe=z.x+2*oe/3,Ee=z.y+2*re/3;var Ge=Pe,st=Ee;Bt.B(re,0)?st=0<oe?st-le:st+le:(Ge=(0>re?-1:1)*fe+Pe,st=ue*(Ge-Pe)+Ee),this.Fj(),this.ne(z),this.yf(Te,_e),this.yf(Ge,st),this.ne(Se),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,Se=E,b=this.getLinkPoint(a,y,ee,!0,!1,z,Se),E=this.getLinkPoint(z,Se,x,!1,!1,a,y),this.hasCurviness()?(Se=E.x-b.x,x=E.y-b.y,ee=this.computeCurviness(),a=b.x+Se/2,y=b.y+x/2,z=a,oe=y,Bt.B(x,0)?oe=0<Se?oe-ee:oe+ee:(Se=-Se/x,z=Math.sqrt(ee*ee/(Se*Se+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,oe=Se*(z-a)+y),this.ne(b),this.yf(z,oe),this.ne(E)):(this.ne(b),this.ne(E),oe=vn.alloc(),y.mi(oe),re=oe.ca(E),Se.mi(oe),le=oe.ca(b),(re||le)&&(ee=y.ga($m(ee),new Ke),this.dd(0,this.getLinkPointFromPoint(a,y,ee,E,!0,ee)),x=Se.ga($m(x),new Ke),this.dd(1,this.getLinkPointFromPoint(z,Se,x,b,!1,x))),vn.free(oe))}else{fe=this.isAvoiding,Se&&(ue&&fe||le)&&this.Fj();var ut=le?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ue,b,E),Pe=Te=Ee=0,(ue||!oe||le)&&(_e=this.computeEndSegmentLength(a,y,ee,!0),Pe=this.getLinkDirection(a,y,fe,ee,!0,ue,b,E),le&&(oe||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(Pe-=ue?90:30,0>ut&&(Pe-=180)),0>Pe?Pe+=360:360<=Pe&&(Pe-=360),le&&(_e+=Math.abs(ut)*(ue?1:2)),Pe===0?Ee=_e:Pe===90?Te=_e:Pe===180?Ee=-_e:Pe===270?Te=-_e:(Ee=_e*Math.cos(Pe*Math.PI/180),Te=_e*Math.sin(Pe*Math.PI/180)),ee.Mc()&&le&&(_e=y.ga(Uo,Ke.alloc()),Ge=Ke.allocAt(_e.x+1e3*Ee,_e.y+1e3*Te),this.getLinkPointFromPoint(a,y,_e,Ge,!0,fe),Ke.free(_e),Ke.free(Ge))),_e=this.getLinkPoint(b,E,x,!1,ue,a,y);var pt=st=Ge=0;if(ue||!re||le){var Nt=this.computeEndSegmentLength(b,E,x,!1);pt=this.getLinkDirection(b,E,_e,x,!1,ue,a,y),le&&(re||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(pt+=ue?0:30,0>ut&&(pt+=180)),0>pt?pt+=360:360<=pt&&(pt-=360),le&&(Nt+=Math.abs(ut)*(ue?1:2)),pt===0?Ge=Nt:pt===90?st=Nt:pt===180?Ge=-Nt:pt===270?st=-Nt:(Ge=Nt*Math.cos(pt*Math.PI/180),st=Nt*Math.sin(pt*Math.PI/180)),x.Mc()&&le&&(x=E.ga(Uo,Ke.alloc()),ee=Ke.allocAt(x.x+1e3*Ge,x.y+1e3*st),this.getLinkPointFromPoint(b,E,x,ee,!1,_e),Ke.free(x),Ke.free(ee))}x=fe,(ue||!oe||le)&&(x=new Ke(fe.x+Ee,fe.y+Te)),ee=_e,(ue||!re||le)&&(ee=new Ke(_e.x+Ge,_e.y+st)),!Se&&!ue&&oe&&3<z&&this.adjustPoints(0,fe,z-2,ee)?this.dd(z-1,_e):!Se&&!ue&&re&&3<z&&this.adjustPoints(1,x,z-1,_e)?this.dd(0,fe):!Se&&(ue?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,fe),this.dd(z-1,_e)):(this.Fj(),this.ne(fe),(ue||!oe||le)&&this.ne(x),ue&&this.addOrthoPoints(x,Pe,ee,pt,a,b),(ue||!re||le)&&this.ne(ee),this.ne(_e))}return!0};function Uv(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}ei.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Ke),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 oe=-a.m12*E,re=-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*re+ue,b=b.x*oe+b.y*le+fe,ee=x.x*ee+x.y*re+ue,x=x.x*oe+x.y*le+fe}return y.Sj(E,b,ee,x,z),a!==null&&z.transform(a),z};function Jm(a,y){var x=y.Zn;return x===null&&(x=new Nf,x.port=y,x.node=y.part,y.Zn=x),sS(x,a)}ei.prototype.getLinkPoint=function(a,y,x,b,E,z,ee,oe){if(oe===void 0&&(oe=new Ke),x.sb()&&!Sg(x))return y.ga(x,oe),oe;if(x.$c()){var re=Jm(this,y);if(re!==null){if(oe.assign(re.Zo),E&&this.routing===tS){var le=Jm(this,ee);if(le!==null&&re.Gl<le.Gl){re=Ke.alloc(),le=Ke.alloc();var ue=new vn(y.ga(_r,re),y.ga(Ds,le)),fe=this.computeSpot(!b,ee);a=this.getLinkPoint(z,ee,fe,!b,E,a,y,le),(x.Hf(ou)||x.Hf(js))&&a.y>=ue.y&&a.y<=ue.y+ue.height?oe.y=a.y:(x.Hf(Zl)||x.Hf(Ys))&&a.x>=ue.x&&a.x<=ue.x+ue.width&&(oe.x=a.x),Ke.free(re),Ke.free(le)}}return oe}}return x=y.ga($m(x),Ke.alloc()),this.pointsCount>(E?6:2)?(ee=b?this.i(1):this.i(this.pointsCount-2),E&&(ee=Uv(x,ee.copy()))):(re=this.computeSpot(!b,ee),z=Ke.alloc(),ee=ee.ga($m(re),z),E&&(ee=Uv(x,ee)),Ke.free(z)),this.getLinkPointFromPoint(a,y,x,ee,b,oe),Ke.free(x),oe},ei.prototype.getLinkDirection=function(a,y,x,b,E,z,ee,oe){e:if(b.sb())var re=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()&&(re=Jm(this,y),re!==null))switch(re.Nc){case 1:re=270;break e;case 2:re=180;break e;default:case 4:re=0;break e;case 8:re=90;break e}re=y.ga(Uo,Ke.alloc()),this.pointsCount>(z?6:2)?(oe=E?this.i(1):this.i(this.pointsCount-2),oe=z?Uv(re,oe.copy()):x):(x=Ke.alloc(),oe=oe.ga(Uo,x),Ke.free(x)),x=Math.abs(oe.x-re.x)>Math.abs(oe.y-re.y)?oe.x>=re.x?0:180:oe.y>=re.y?90:270,Ke.free(re),re=x}return b.Mc()&&ee.Td(a)&&(re+=180,360<=re&&(re-=360)),Sg(b)||(a=y.li(),a===0)||(45<=a&&135>a?re+=90:135<=a&&225>a?re+=180:225<=a&&315>a&&(re+=270),360<=re&&(re-=360)),re},ei.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Jm(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)},ei.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Uo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===sr?Jr:y)):(a=y||this.toPort,a===null?a=Uo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===sr?Jr:y)),a};function Sg(a){return a===Jr||a.x===.5&&a.y===.5}function $m(a){return a.x===.5&&a.y===.5?a:Uo}ei.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==sl&&4<this.pointsCount?this.computeMidPoint(new Ke):(a=y.Zn,a=a!==null?sS(a,this):null,a!==null?a.Zo:y.ga(Uo))},ei.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},ei.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=Mo.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return mv(this,y,x,E),z===void 0&&Mo.free(ee),!0;if(this.Yc(a,ee)){var oe=!1;if(!this.isAtomic)for(var re=this.O.s,le=re.length;le--;){var ue=re[le];if(ue.visible||ue===this.locationObject){var fe=ue.actualBounds,Se=this.naturalBounds;if(!(fe.x>Se.width||fe.y>Se.height||0>fe.x+fe.width||0>fe.y+fe.height)){if(fe=Mo.alloc(),fe.set(ee),ue instanceof $n)oe=ue.Cf(a,y,x,b,E,fe);else if(this.path===ue){if(ue instanceof Eo)if(oe=a,Se=b,ue.pickable===!1)oe=!1;else if(fe.multiply(ue.transform),Se)e:{var Pe=oe,Ee=fe;if(ue.fh(Pe,Ee))oe=!0;else{if(Ee===void 0&&(Ee=ue.transform,Pe.Re(ue.actualBounds))){oe=!0;break e}oe=Pe.left,Se=Pe.right;var Te=Pe.top;Pe=Pe.bottom;var _e=Ke.alloc(),Ge=Ke.alloc(),st=Ke.alloc(),ut=Mo.alloc();ut.set(Ee),ut.bv(ue.transform),ut.Vj(),Ge.x=Se,Ge.y=Te,Ge.transform(ut),_e.x=oe,_e.y=Te,_e.transform(ut),Ee=!1,Yc(ue,_e,Ge,st)?Ee=!0:(_e.x=Se,_e.y=Pe,_e.transform(ut),Yc(ue,_e,Ge,st)?Ee=!0:(Ge.x=oe,Ge.y=Pe,Ge.transform(ut),Yc(ue,_e,Ge,st)?Ee=!0:(_e.x=oe,_e.y=Te,_e.transform(ut),Yc(ue,_e,Ge,st)&&(Ee=!0)))),Mo.free(ut),Ke.free(_e),Ke.free(Ge),Ke.free(st),oe=Ee}}else oe=ue.fh(oe,fe)}else oe=as(ue,a,b,fe);oe&&(Se=ue,y!==null&&(Se=y(ue)),Se&&(x===null||x(Se))&&E.add(Se)),Mo.free(fe)}}}return z===void 0&&Mo.free(ee),oe||this.background!==null||this.areaBackground!==null}return z===void 0&&Mo.free(ee),!1},ei.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?tu:this.curve},ei.prototype.computeCorner=function(){if(this.curve===tu)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},ei.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},ei.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=iS;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===Pp||b===t0||b===Qv?a=Math.max(a,E):b===bp||b===Lp||b===Cp||b===Ep?a=Math.max(a,ee):(y=y.ga(Uo).ab(x.ga(Uo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*E)+1)),this.curve===tu&&(a*=1.333)}}return a},ei.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===sl&&x.bb()}},ei.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=nS;var y=this.Sf;if(y!==null){for(var x=en(),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),xn(x)}}return a},ei.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},ei.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},ei.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===qm)return!1;E===e0&&(E=wp)}switch(E){case qm:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(b)){E=z.x,z=z.y;var oe=ee.x-E,re=ee.y-z,le=Math.sqrt(oe*oe+re*re);if(!Bt.$(le,0)){if(Bt.$(oe,0))var ue=0>re?-Math.PI/2:Math.PI/2;else ue=Math.atan(re/Math.abs(oe)),0>oe&&(ue=Math.PI-ue);ee=y.x;var fe=y.y;oe=b.x-ee;var Se=b.y-fe;for(re=Math.sqrt(oe*oe+Se*Se),Bt.$(oe,0)?Se=0>Se?-Math.PI/2:Math.PI/2:(Se=Math.atan(Se/Math.abs(oe)),0>oe&&(Se=Math.PI-Se)),le=re/le,ue=Se-ue,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),oe=y.x-E,re=y.y-z,y=Math.sqrt(oe*oe+re*re),Bt.$(y,0)||(Bt.$(oe,0)?re=0>re?-Math.PI/2:Math.PI/2:(re=Math.atan(re/Math.abs(oe)),0>oe&&(re=Math.PI-re)),oe=re+ue,y*=le,this.L(a,ee+y*Math.cos(oe),fe+y*Math.sin(oe)));this.dd(x,b)}}return!0;case e0: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),oe=y.x,ue=y.y,re=b.x,Se=b.y;var Pe=1;if(re-oe!==0){var Ee=(Se-ue)/(re-oe);Pe=Math.sqrt(1+1/(Ee*Ee))}else Ee=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Te=y.x,_e=y.y,Ge=.5;le!==0&&(Ge=((E-Te)*(E-ee)+(z-_e)*(z-fe))/le);var st=E+Ge*(ee-E),ut=z+Ge*(fe-z);y=Math.sqrt((Te-st)*(Te-st)+(_e-ut)*(_e-ut)),_e<Ee*(Te-st)+ut&&(y=-y),0<Ee&&(y=-y),Te=oe+Ge*(re-oe),Ge=ue+Ge*(Se-ue),Ee!==0?(y=Te+y/Pe,this.L(a,y,Ge-(y-Te)/Ee)):this.L(a,Te,Ge+y)}this.dd(x,b)}return!0;case wp:e:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),ee=this.i(a+2),oe=z.x,ue=z.y,fe=oe,le=ue,Bt.B(E.y,z.y)?Bt.B(z.x,ee.x)?ue=y.y:Bt.B(z.y,ee.y)&&(oe=y.x):Bt.B(E.x,z.x)&&(Bt.B(z.y,ee.y)?oe=y.x:Bt.B(z.x,ee.x)&&(ue=y.y)),this.L(a+1,oe,ue),E=this.i(x),z=this.i(x-1),ee=this.i(x-2),oe=z.x,ue=z.y,re=oe,Se=ue,Bt.B(E.y,z.y)?Bt.B(z.x,ee.x)?ue=b.y:Bt.B(z.y,ee.y)&&(oe=b.x):Bt.B(E.x,z.x)&&(Bt.B(z.y,ee.y)?oe=b.x:Bt.B(z.x,ee.x)&&(ue=b.y)),this.L(x-1,oe,ue),Xv(this))){this.L(a+1,fe,le),this.L(x-1,re,Se),x=!1;break e}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},ei.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 oe=E.actualBounds.copy(),re=z.actualBounds.copy();if(oe.w()&&re.w()){oe.Bc(Mp,Mp),re.Bc(Mp,Mp),oe.Ye(a),re.Ye(x);var le=Ke.alloc(),ue=Ke.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&re.right>a.x||b===90&&x.y>a.y&&re.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<re.left?this.computeMidOrthoPosition(a.x,a.y,re.left,x.y,!1):a.x<re.right&&(b===270&&a.y<re.top||b===90&&a.y>re.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):re.right,ue.x=le.x,ue.y=x.y):b===0&&a.x<re.left&&a.y>re.top&&a.y<re.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,re.top):Math.max(x.y,re.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<oe.top||b===270&&x.y>oe.bottom)&&(b===180&&(re.ca(a)||oe.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,oe.top,x.x,Math.max(x.y,re.bottom),!0):x.y>a.y&&(b===180||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,oe.bottom,x.x,Math.min(x.y,re.top),!0)),ue.x=x.x,ue.y=le.y),le.y>oe.top&&le.y<oe.bottom&&(x.x>=oe.left&&x.x<=a.x||a.x<=re.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?oe.top:Math.min(oe.top,re.top)):Math.max(x.y,b===0?oe.bottom:Math.max(oe.bottom,re.bottom)),ue.x=x.x,ue.y=le.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&re.left<a.x||b===90&&x.y>a.y&&re.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>re.right?this.computeMidOrthoPosition(a.x,a.y,re.right,x.y,!1):a.x>re.left&&(b===270&&a.y<re.top||b===90&&a.y>re.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):re.left,ue.x=le.x,ue.y=x.y):b===180&&a.x>re.right&&a.y>re.top&&a.y<re.bottom&&(le.x=a.x,le.y=a.y<x.y?Math.min(x.y,re.top):Math.max(x.y,re.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<oe.top||b===270&&x.y>oe.bottom)&&(b===0&&(re.ca(a)||oe.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,oe.top,x.x,Math.max(x.y,re.bottom),!0):x.y>a.y&&(b===0||b===270)&&(le.y=this.computeMidOrthoPosition(a.x,oe.bottom,x.x,Math.min(x.y,re.top),!0)),ue.x=x.x,ue.y=le.y),le.y>oe.top&&le.y<oe.bottom&&(x.x<=oe.right&&x.x>=a.x||a.x>=re.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?oe.top:Math.min(oe.top,re.top)):Math.max(x.y,b===180?oe.bottom:Math.max(oe.bottom,re.bottom)),ue.x=x.x,ue.y=le.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&re.bottom>a.y||b===0&&x.x>a.x&&re.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<re.top?this.computeMidOrthoPosition(a.x,a.y,x.x,re.top,!0):a.y<re.bottom&&(b===180&&a.x<re.left||b===0&&a.x>re.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):re.bottom,ue.x=x.x,ue.y=le.y):b===90&&a.y<re.top&&a.x>re.left&&a.x<re.right&&(le.x=a.x<x.x?Math.min(x.x,re.left):Math.max(x.x,re.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<oe.left||b===180&&x.x>oe.right)&&(b===270&&(re.ca(a)||oe.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(oe.left,a.y,Math.max(x.x,re.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(le.x=this.computeMidOrthoPosition(oe.right,a.y,Math.min(x.x,re.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>oe.left&&le.x<oe.right&&(x.y>=oe.top&&x.y<=a.y||a.y<=re.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?oe.left:Math.min(oe.left,re.left)):Math.max(x.x,b===90?oe.right:Math.max(oe.right,re.right)),ue.x=le.x,ue.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&re.top<a.y||b===0&&x.x>a.x&&re.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>re.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,re.bottom,!0):a.y>re.top&&(b===180&&a.x<re.left||b===0&&a.x>re.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):re.top,ue.x=x.x,ue.y=le.y):b===270&&a.y>re.bottom&&a.x>re.left&&a.x<re.right&&(le.x=a.x<x.x?Math.min(x.x,re.left):Math.max(x.x,re.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<oe.left||b===180&&x.x>oe.right)&&(b===90&&(re.ca(a)||oe.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(oe.left,a.y,Math.max(x.x,re.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(le.x=this.computeMidOrthoPosition(oe.right,a.y,Math.min(x.x,re.left),x.y,!1)),ue.x=le.x,ue.y=x.y),le.x>oe.left&&le.x<oe.right&&(x.y<=oe.bottom&&x.y>=a.y||a.y>=re.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?oe.left:Math.min(oe.left,re.left)):Math.max(x.x,b===270?oe.right:Math.max(oe.right,re.right)),ue.x=le.x,ue.y=x.y)));var fe=x;if(this.isAvoiding){var Se=this.diagram;if(Se===null||E===z||this.layer.isTemporary||!qf(Se)||oe.ca(fe)&&!z.Td(E)||re.ca(a)&&!E.Td(z))y=!1;else{var Pe=eg(Se,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Pe.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))&&Pe.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))&&Pe.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 Ee=x=null;if(Se.isVirtualized){Se=Pe.bounds.copy(),Se.Bc(-Pe.Ho,-Pe.Go);var Te=Ke.alloc();wg(Pe,a.x,a.y)||(Bt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,a.x,a.y,le.x,le.y,Te)?(x=a=Te.copy(),y=Te.ab(le)):Bt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,ue.x,ue.y,Te)?(x=a=Te.copy(),y=Te.ab(ue)):Bt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,ue.x,ue.y,fe.x,fe.y,Te)&&(x=a=Te.copy(),y=Te.ab(fe))),wg(Pe,fe.x,fe.y)||(Bt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,fe.x,fe.y,ue.x,ue.y,Te)?(Ee=fe=Te.copy(),b=ue.ab(Te)):Bt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,ue.x,ue.y,le.x,le.y,Te)?(Ee=fe=Te.copy(),b=le.ab(Te)):Bt.Ff(Se.x,Se.y,Se.x+Se.width,Se.y+Se.height,le.x,le.y,a.x,a.y,Te)&&(Ee=fe=Te.copy(),b=a.ab(Te))),Ke.free(Te)}oe=oe.copy().ed(re),oe.Bc(Pe.Ho*Pe.Os,Pe.Go*Pe.Os),rS(Pe,a,y,fe,b,oe,!0),re=Xh(Pe,fe.x,fe.y),!Pe.abort&&re>=Pg&&(oS(Pe),oe.Bc(Pe.Ho*Pe.Hx,Pe.Go*Pe.Ix),rS(Pe,a,y,fe,b,oe,!1),re=Xh(Pe,fe.x,fe.y)),!Pe.abort&&re<Pg&&Xh(Pe,fe.x,fe.y)!==Rd?(Yv(this,Pe,fe.x,fe.y,b,!0,ee),oe=this.i(2),4>this.pointsCount?(y===0||y===180?(oe.x=a.x,oe.y=fe.y):(oe.x=fe.x,oe.y=a.y),this.L(2,oe.x,oe.y),this.m(3,oe.x,oe.y)):(ee=this.i(3),y===0||y===180?Bt.B(oe.x,ee.x)?(oe=y===0?Math.max(oe.x,a.x):Math.min(oe.x,a.x),this.L(2,oe,a.y),this.L(3,oe,ee.y)):Bt.B(oe.y,ee.y)?(Math.abs(a.y-oe.y)<=Pe.Go/2&&(this.L(2,oe.x,a.y),this.L(3,ee.x,a.y)),this.m(2,oe.x,a.y)):this.L(2,a.x,oe.y):(y===90||y===270)&&(Bt.B(oe.y,ee.y)?(oe=y===90?Math.max(oe.y,a.y):Math.min(oe.y,a.y),this.L(2,a.x,oe),this.L(3,ee.x,oe)):Bt.B(oe.x,ee.x)?(Math.abs(a.x-oe.x)<=Pe.Ho/2&&(this.L(2,a.x,oe.y),this.L(3,a.x,ee.y)),this.m(2,a.x,oe.y)):this.L(2,oe.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)),Ee!==null&&(b===0||b===180?this.yf(z.x,Ee.y):this.yf(Ee.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(le.copy()),this.ne(ue.copy())),Ke.free(le),Ke.free(ue)}},ei.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 Xv(a){if(a.diagram===null||!a.isAvoiding||!qf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=eg(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 Yv(a,y,x,b,E,z,ee){var oe=y.Ho,re=y.Go,le=Xh(y,x,b),ue=x,fe=b;for(E===0?ue+=oe:E===90?fe+=re:E===180?ue-=oe:fe-=re,E!==ee&&le>Qc&&Xh(y,ue,fe)!==le-1&&(Xh(y,x-oe,b)===le-1?(E=180,ue=x-oe,fe=b):Xh(y,x+oe,b)===le-1?(E=0,ue=x+oe,fe=b):Xh(y,x,b-re)===le-1?(E=270,ue=x,fe=b-re):Xh(y,x,b+re)===le-1&&(E=90,ue=x,fe=b+re));le>Qc&&Xh(y,ue,fe)===le-1;)x=ue,b=fe,E===0?ue+=oe:E===90?fe+=re:E===180?ue-=oe:fe-=re,--le;z?le>Qc&&(E===180||E===0?x=Math.floor(x/oe)*oe+oe/2:(E===90||E===270)&&(b=Math.floor(b/re)*re+re/2)):(x=Math.floor(x/oe)*oe+oe/2,b=Math.floor(b/re)*re+re/2),le>Qc&&(z=E,ee=x,ue=b,E===0?(z=90,ue+=re):E===90?(z=180,ee-=oe):E===180?(z=270,ue-=re):E===270&&(z=0,ee+=oe),Xh(y,ee,ue)===le-1?Yv(a,y,ee,ue,z,!1,z):(ee=x,ue=b,E===0?(z=270,ue-=re):E===90?(z=0,ee+=oe):E===180?(z=90,ue+=re):E===270&&(z=180,ee-=oe),Xh(y,ee,ue)===le-1&&Yv(a,y,ee,ue,z,!1,z))),a.yf(x,b)}ei.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=dr(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 oe=dr(y,a,b.x,b.y,x.x,x.y);b=x,oe<E&&(z=ee,E=oe)}return z},ei.prototype.qc=function(){this.lk=!1,this.v()},ei.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 Eo&&(E.ua=this.ua)}}},ei.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&$c(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===tu&&3<=y&&!Bt.$(this.smoothness,0))if(y===3){var oe=this.i(1);b=Math.min(E.x,oe.x);var re=Math.min(E.y,oe.y);oe=this.i(2),b=Math.min(b,oe.x),re=Math.min(re,oe.y)}else{if(this.isOrthogonal)for(re=0;re<y;re++)oe=b[re],z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),re=this.i(b),z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);b=z.x,re=z.y}else{for(re=0;re<y;re++)oe=b[re],z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);b=z.x,re=z.y}if(b-=this.su.x,re-=this.su.y,E.x-=b,E.y-=re,y!==2||$c(this)){if(a.type=ni.o,oe=k1(a),this.computeShortLength(!0)!==0&&(E=Ef(this,E,!0,z)),vg(oe,E.x,E.y,!1),ee===tu&&3<=y&&!Bt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-re,E=this.i(2).copy(),E.x-=b,E.y-=re,this.computeShortLength(!1)!==0&&(E=Ef(this,E,!1,z)),Dd(oe,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Ke.allocAt(b,re),x=Ke.alloc(),x.assign(this.i(1)),z=Ke.allocAt(b,re),E=Ke.allocAt(b,re),ee=this.i(0);for(var le,ue=this.smoothness/3,fe=1;fe<this.pointsCount-1;fe++){le=this.i(fe);var Se=ee,Pe=le,Ee=this.i(Jv(this,le,fe,!1));if((!Bt.$(Se.x,Pe.x)||!Bt.$(Pe.x,Ee.x))&&(!Bt.$(Se.y,Pe.y)||!Bt.$(Pe.y,Ee.y))){var Te=ue;isNaN(Te)&&(Te=this.smoothness/3);var _e=Se.x;Se=Se.y;var Ge=Pe.x;Pe=Pe.y;var st=Ee.x;Ee=Ee.y;var ut=Te*Qm(_e,Se,Ge,Pe);Te*=Qm(Ge,Pe,st,Ee),Bt.$(Se,Pe)&&Bt.$(Ge,st)&&(Ge>_e?Ee>Pe?(z.x=Ge-ut,z.y=Pe-ut,E.x=Ge+Te,E.y=Pe+Te):(z.x=Ge-ut,z.y=Pe+ut,E.x=Ge+Te,E.y=Pe-Te):Ee>Pe?(z.x=Ge+ut,z.y=Pe-ut,E.x=Ge-Te,E.y=Pe+Te):(z.x=Ge+ut,z.y=Pe+ut,E.x=Ge-Te,E.y=Pe-Te)),Bt.$(_e,Ge)&&Bt.$(Pe,Ee)&&(Pe>Se?(st>Ge?(z.x=Ge-ut,z.y=Pe-ut,E.x=Ge+Te):(z.x=Ge+ut,z.y=Pe-ut,E.x=Ge-Te),E.y=Pe+Te):(st>Ge?(z.x=Ge-ut,z.y=Pe+ut,E.x=Ge+Te):(z.x=Ge+ut,z.y=Pe+ut,E.x=Ge-Te),E.y=Pe-Te)),(Bt.$(_e,Ge)&&Bt.$(Ge,st)||Bt.$(Se,Pe)&&Bt.$(Pe,Ee))&&(_e=.5*(_e+st),Se=.5*(Se+Ee),z.x=_e,z.y=Se,E.x=_e,E.y=Se),(fe===1||fe===2&&Bt.$(ee.x,this.i(0).x)&&Bt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+le.x),x.y=.5*(ee.y+le.y)),Dd(oe,x.x-b,x.y-re,z.x-b,z.y-re,le.x-b,le.y-re),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=Ef(this,ue.copy(),!1,Do)),le=.5*(le+ue.x),ee=.5*(ee+ue.y),Dd(oe,E.x-b,E.y-re,le-b,ee-re,ue.x-b,ue.y-re),Ke.free(y),Ke.free(x),Ke.free(z),Ke.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=Ef(this,ee.copy(),!1,Do)),Dd(oe,z.x-b,z.y-re,E.x-b,E.y-re,ee.x-b,ee.y-re);else{for(z=Ke.alloc(),z.assign(this.i(0)),E=Ke.alloc(),E.assign(z),ee=this.computeCorner(),fe=1,le=0;fe<y;){if(fe=Jv(this,z,fe,1<fe),ue=this.i(fe),fe>=y-1){if(!z.D(ue))this.computeShortLength(!1)!==0&&(ue=Ef(this,ue.copy(),!1,Do)),Lf(this,oe,-b,-re,z,ue,x);else if(le===0)for(fe=1;fe<y;)E.assign(z),ue=this.i(fe++),Lf(this,oe,-b,-re,z,ue,x),z.assign(ue);break}if(le=Jv(this,ue,fe+1,fe<y-3),fe=-b,_e=-re,Se=ue,Ge=this.i(le),Te=x,Bt.B(z.y,Se.y)&&Bt.B(Se.x,Ge.x))if(Ee=Math.min(ee,Math.abs(Se.x-E.x)/2),Ee=ut=Math.min(Ee,Math.abs(Ge.y-Se.y)/2),Bt.B(Ee,0))Lf(this,oe,fe,_e,z,Se,Te),z.assign(Se);else{var pt=Se.x,Nt=Se.y;Pe=pt,st=Nt,Se.x>z.x?pt=Se.x-Ee:pt=Se.x+Ee,Ge.y>Se.y?st=Se.y+ut:st=Se.y-ut,Ge=Ke.allocAt(pt,Nt),Lf(this,oe,fe,_e,z,Ge,Te),Ke.free(Ge),Wm(oe,Se.x+fe,Se.y+_e,Pe+fe,st+_e),z.h(Pe,st)}else Bt.B(z.x,Se.x)&&Bt.B(Se.y,Ge.y)?(Ee=Math.min(ee,Math.abs(Se.y-E.y)/2),Ee=ut=Math.min(Ee,Math.abs(Ge.x-Se.x)/2),Bt.B(ut,0)?(Lf(this,oe,fe,_e,z,Se,Te),z.assign(Se)):(pt=Se.x,Nt=Se.y,Pe=pt,st=Nt,Se.y>z.y?Nt=Se.y-Ee:Nt=Se.y+Ee,Ge.x>Se.x?Pe=Se.x+ut:Pe=Se.x-ut,Ge=Ke.allocAt(pt,Nt),Lf(this,oe,fe,_e,z,Ge,Te),Ke.free(Ge),Wm(oe,Se.x+fe,Se.y+_e,Pe+fe,st+_e),z.h(Pe,st))):(Lf(this,oe,fe,_e,z,Se,Te),z.assign(Se));E.assign(ue),fe=le}Ke.free(z)}Gm=oe}else oe=this.i(1).copy(),oe.x-=b,oe.y-=re,this.computeShortLength(!0)!==0&&(E=Ef(this,E,!0,z)),this.computeShortLength(!1)!==0&&(oe=Ef(this,oe,!1,z)),a.type=ni.j,a.startX=E.x,a.startY=E.y,a.endX=oe.x,a.endY=oe.y;return this.lk=!0,a};function Qm(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),Bt.$(a,0)?y:Bt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Ef(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=Qm(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=Qm(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 Jv(a,y,x,b){for(var E=a.pointsCount,z=y;Bt.$(y.x,z.x)&&Bt.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Bt.$(y.x,z.x)&&!Bt.$(y.y,z.y))return x-1;for(var ee=z;Bt.$(y.x,z.x)&&Bt.$(z.x,ee.x)&&(!b||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||Bt.$(y.y,z.y)&&Bt.$(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}ei.prototype.computeJumpLength=function(){return 10};function Lf(a,y,x,b,E,z,ee){if(!ee&&$c(a)){ee=a.computeJumpLength();var oe=ee/2,re=[],le=0;if(a.isVisible()&&(le=Ex(a,E,z,re)),0<le){if(Bt.B(E.y,z.y))if(E.x<z.x)for(var ue=0;ue<le;){var fe=Math.max(E.x,Math.min(re[ue++]-oe,z.x-ee));y.lineTo(fe+x,z.y+b);for(var Se=fe+x,Pe=Math.min(fe+ee,z.x);ue<le&&(fe=re[ue],fe<Pe+ee);)ue++,Pe=Math.min(fe+oe,z.x);fe=z.y-ee+b,Pe+=x;var Ee=z.y+b;a.curve===Id?vg(y,Pe,Ee,!1):Dd(y,Se,fe,Pe,fe,Pe,Ee)}else for(--le;0<=le;){for(ue=Math.min(E.x,Math.max(re[le--]+oe,z.x+ee)),y.lineTo(ue+x,z.y+b),Se=ue+x,fe=Math.max(ue-ee,z.x);0<=le&&(ue=re[le],ue>fe-ee);)le--,fe=Math.max(ue-oe,z.x);ue=z.y-ee+b,fe+=x,Pe=z.y+b,a.curve===Id?vg(y,fe,Pe,!1):Dd(y,Se,ue,fe,ue,fe,Pe)}else if(Bt.B(E.x,z.x))if(E.y<z.y)for(ue=0;ue<le;){for(fe=Math.max(E.y,Math.min(re[ue++]-oe,z.y-ee)),y.lineTo(z.x+x,fe+b),Se=fe+b,fe=Math.min(fe+ee,z.y);ue<le&&(Pe=re[ue],Pe<fe+ee);)ue++,fe=Math.min(Pe+oe,z.y);Pe=z.x-ee+x,Ee=z.x+x,fe+=b,a.curve===Id?vg(y,Ee,fe,!1):Dd(y,Pe,Se,Pe,fe,Ee,fe)}else for(--le;0<=le;){for(ue=Math.min(E.y,Math.max(re[le--]+oe,z.y+ee)),y.lineTo(z.x+x,ue+b),Se=ue+b,ue=Math.max(ue-ee,z.y);0<=le&&(fe=re[le],fe>ue-ee);)le--,ue=Math.max(fe-oe,z.y);fe=z.x-ee+x,Pe=z.x+x,ue+=b,a.curve===Id?vg(y,Pe,ue,!1):Dd(y,fe,Se,fe,ue,Pe,ue)}}}y.lineTo(z.x+x,z.y+b)}function Ex(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,oe=0;oe<ee;oe++){var re=z[oe];if(re instanceof ei){if(re===a)return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length;if(re.isVisible()&&$c(re)){var le=re.routeBounds;le.w()&&a.routeBounds.Yc(le)&&!a.usesSamePort(re)&&(le=re.path,le!==null&&le.Ed()&&Lx(y,x,b,re))}}}}}return 0<b.length&&b.sort(function(ue,fe){return ue-fe}),b.length}function Lx(a,y,x,b){for(var E=Bt.B(a.y,y.y),z=b.pointsCount,ee=b.i(0),oe=Ke.alloc(),re=1;re<z;re++){var le=b.i(re);if(re<z-1){var ue=b.i(re+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,Se=y.x,Pe=y.y,Ee=ee.x;ee=ee.y;var Te=le.x,_e=le.y;if(Bt.B(ue,Se)){if(!Bt.B(fe,Pe)&&Bt.B(ee,_e)&&Math.min(fe,Pe)<ee&&Math.max(fe,Pe)>ee&&Math.min(Ee,Te)<ue&&Math.max(Ee,Te)>ue&&!Bt.B(Ee,Te)){oe.x=ue,oe.y=ee,ue=!0;break e}}else if(Bt.B(fe,Pe)&&Bt.B(Ee,Te)&&Math.min(ue,Se)<Ee&&Math.max(ue,Se)>Ee&&Math.min(ee,_e)<fe&&Math.max(ee,_e)>fe&&!Bt.B(ee,_e)){oe.x=Ee,oe.y=fe,ue=!0;break e}oe.x=0,oe.y=0,ue=!1}ue&&(E?x.push(oe.x):x.push(oe.y)),ee=le}Ke.free(oe)}function $c(a){return a=a.curve,a===xg||a===Id}function _m(a,y){(y||$c(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()))}ei.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,oe=0;oe<ee;oe++){var re=E[oe];re instanceof ei&&(re===this?z=!0:z&&eS(this,re,a))}}else if(b)for(z=E.Pa.s,E=z.length,ee=0;ee<E;ee++)oe=z[ee],oe instanceof ei&&eS(this,oe,a)}}}}};function eS(a,y,x){if(y!==null&&y.lk&&y.fd&&$c(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}ei.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},ei.prototype.isVisible=function(){if(!Wi.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},ei.prototype.Zb=function(a){if(Wi.prototype.Zb.call(this,a),a&&_m(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},ei.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?wp:this.qk};function Sp(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,oe=ee.length,re=0;re<oe;re++){var le=ee[re];(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=G1(y,x,b,E),z===null&&(z=new i0(y,b,x,E),W1(y,z),W1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function xp(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(qt(y.links,a),y.Sl()))}ei.prototype.ph=function(){return!0},Re.Object.defineProperties(ei.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&&Um(y,this,x),xp(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&&Vm(a,this,E),Sp(this),this.C(1)),this.g("fromNode",y,a),yg(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&jl(x),xp(this),this.ff=a;var b=this.fromPort;b!==null&&jl(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))),Sp(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&&Um(y,this,x),xp(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&&Vm(a,this,E),Sp(this),this.C(1)),this.g("toNode",y,a),yg(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&jl(x),xp(this),this.vf=a;var b=this.toPort;b!==null&&jl(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))),Sp(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:sr},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&&jl(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&&Hn(a,">= 0",ei,"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:sr},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&&jl(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&&Hn(a,">= 0",ei,"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?Ki: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&&yp(this.fromNode),this.toNode!==null&&yp(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Eo?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()===tu&&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),Bt.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 oe=this.i(z-1),re=this.i(z);Bt.Dl(E.x,E.y,ee.x,ee.y,oe.x,oe.y,re.x,re.y,.5,a),y=Math.min(re.x,y),x=Math.min(re.y,x),E=re}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 Ke)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Ym(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);Bt.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Bt.$(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 Ln,b=0;b<a.length/2;b++)E=new Ke(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(!jt(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new Ln,b=0;b<a.length;b++)E=a[b],x.add(new Ke(E.x,E.y).freeze())}}else if(a instanceof Ln)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else at("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Ym(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Ur(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||!Sg(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Sg(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(),_m(this,y===Id||y===xg||a===Id||a===xg),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(),_m(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)}}}),ei.prototype.invalidateOtherJumpOvers=ei.prototype.Xo,ei.prototype.findClosestSegment=ei.prototype.ez,ei.prototype.updateRoute=ei.prototype.vg,ei.prototype.invalidateRoute=ei.prototype.bb,ei.prototype.rollbackRoute=ei.prototype.rv,ei.prototype.commitRoute=ei.prototype.zf,ei.prototype.startRoute=ei.prototype.uh,ei.prototype.clearPoints=ei.prototype.Fj,ei.prototype.removePoint=ei.prototype.pv,ei.prototype.addPointAt=ei.prototype.yf,ei.prototype.addPoint=ei.prototype.ne,ei.prototype.insertPointAt=ei.prototype.m,ei.prototype.insertPoint=ei.prototype.Kz,ei.prototype.setPointAt=ei.prototype.L,ei.prototype.setPoint=ei.prototype.dd,ei.prototype.getPoint=ei.prototype.i,ei.prototype.getOtherPort=ei.prototype.Cz,ei.prototype.getOtherNode=ei.prototype.To;var Mf=null,Ff=null,$v=new nn(ei,"Normal",1),Mx=new nn(ei,"Orthogonal",2),Fx=new nn(ei,"AvoidsNodes",6),tS=new nn(ei,"AvoidsNodesStraight",7),sl=new nn(ei,"None",0),tu=new nn(ei,"Bezier",9),Id=new nn(ei,"JumpGap",10),xg=new nn(ei,"JumpOver",11),wp=new nn(ei,"End",17),qm=new nn(ei,"Scale",18),e0=new nn(ei,"Stretch",19),Pp=new nn(ei,"OrientAlong",21),Cp=new nn(ei,"OrientPlus90",22),bp=new nn(ei,"OrientMinus90",23),Qv=new nn(ei,"OrientOpposite",24),t0=new nn(ei,"OrientUpright",25),Ep=new nn(ei,"OrientPlus90Upright",26),Lp=new nn(ei,"OrientMinus90Upright",27),n0=new nn(ei,"OrientUpright45",28),nS=16,iS=14,Mp=8;ei.className="Link",ei.Normal=$v,ei.Orthogonal=Mx,ei.AvoidsNodes=Fx,ei.AvoidsNodesStraight=tS,ei.None=sl,ei.Bezier=tu,ei.JumpGap=Id,ei.JumpOver=xg,ei.End=wp,ei.Scale=qm,ei.Stretch=e0,ei.OrientAlong=Pp,ei.OrientPlus90=Cp,ei.OrientMinus90=bp,ei.OrientOpposite=Qv,ei.OrientUpright=t0,ei.OrientPlus90Upright=Ep,ei.OrientMinus90Upright=Lp,ei.OrientUpright45=n0,ei.EndSegmentStep=8,ei.CurvinessStart=nS,ei.SpacingMin=iS,ei.OrthoShortCut=Mp;function i0(a,y,x,b){ro(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}i0.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},i0.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))}},i0.className="LinkBundle";function Fp(a){ro(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}Fp.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=_v,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 wg(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Xh(a,y,x){return wg(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):_v}function oS(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]>=Qc&&(x[b]=_v)}Fp.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]===Rd)return!1}return!0};function Yh(a,y,x,b,E,z,ee,oe,re){if(!(y<z||y>ee||x<oe||x>re)){var le=y|0,ue=x|0,fe=a.ac[le][ue];if(fe>=Qc&&fe<Pg)for(E?ue+=b:le+=b,fe+=1;z<=le&&le<=ee&&oe<=ue&&ue<=re&&!(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)Yh(a,y,x,1,!E,z,ee,oe,re),Yh(a,y,x,-1,!E,z,ee,oe,re);else for(x+=b;x>le;x+=b)Yh(a,y,x,1,!E,z,ee,oe,re),Yh(a,y,x,-1,!E,z,ee,oe,re);else if(0<b)for(y+=b;y<le;y+=b)Yh(a,y,x,1,!E,z,ee,oe,re),Yh(a,y,x,-1,!E,z,ee,oe,re);else for(y+=b;y>le;y+=b)Yh(a,y,x,1,!E,z,ee,oe,re),Yh(a,y,x,-1,!E,z,ee,oe,re)}}function o0(a,y,x,b,E,z,ee,oe,re){y|=0,x|=0;var le=Rd,ue=Qc;for(a.ac[y][x]=ue;le===Rd&&y>z&&y<ee&&x>oe&&x<re;)ue+=1,a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function r0(a,y,x,b,E,z,ee,oe,re){y|=0,x|=0;var le=Rd,ue=Pg;for(a.ac[y][x]=ue;le===Rd&&y>z&&y<ee&&x>oe&&x<re;)a.ac[y][x]=ue,E?x+=b:y+=b,le=a.ac[y][x]}function rS(a,y,x,b,E,z,ee){if(a.ac!==null){a.abort=!1;var oe=y.x,re=y.y;if(wg(a,oe,re)){oe-=a.Nd,oe/=a.rc,re-=a.Od,re/=a.sc;var le=b.x,ue=b.y;if(wg(a,le,ue))if(le-=a.Nd,le/=a.rc,ue-=a.Od,ue/=a.sc,1>=Math.abs(oe-le)&&1>=Math.abs(re-ue))a.abort=!0;else{var fe=z.x;b=z.y,y=z.x+z.width;var Se=z.y+z.height;fe-=a.Nd,fe/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Se-=a.Od,Se/=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)),Se=Math.min(a.ei,Math.max(0,Se|0)),b=a.ac,oe|=0,re|=0,le|=0,ue|=0;var Pe=x===0||x===90?1:-1;if(x=x===90||x===270,b[oe][re]===Rd?(o0(a,oe,re,Pe,x,z,y,fe,Se),o0(a,oe,re,1,!x,z,y,fe,Se),o0(a,oe,re,-1,!x,z,y,fe,Se)):o0(a,oe,re,Pe,x,oe,re,oe,re),b[le][ue]===Rd?(r0(a,le,ue,E===0||E===90?1:-1,E===90||E===270,z,y,fe,Se),r0(a,le,ue,1,!(E===90||E===270),z,y,fe,Se),r0(a,le,ue,-1,!(E===90||E===270),z,y,fe,Se)):r0(a,le,ue,Pe,x,le,ue,le,ue),x=en(),ee&&aS(a,le,ue,E,oe,re,x))for((x[0]!==le||x[1]!==ue)&&(x.unshift(ue),x.unshift(le)),(x[x.length-2]!==oe||x[x.length-1]!==re)&&(x.push(oe),x.push(re)),a=Qc,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 Yh(a,oe,re,1,!1,z,y,fe,Se),Yh(a,oe,re,-1,!1,z,y,fe,Se),Yh(a,oe,re,1,!0,z,y,fe,Se),Yh(a,oe,re,-1,!0,z,y,fe,Se);xn(x)}}}}function aS(a,y,x,b,E,z,ee){for(var oe=a.ac,re=y,le=x;;){if(re===E&&le===z)return!0;var ue=re,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 Se=oe[ue][fe];if(Se===0||Se===qv)break;re=ue,le=fe}for(;;){if(ue=b,fe=re,Se=le,b===0?Se<z?(ue=90,Se++):Se>z&&(ue=270,Se--):b===90?fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--):b===180?Se<z?(ue=90,Se++):Se>z&&(ue=270,Se--):fe<E?(ue=0,fe++):fe>E&&(ue=180,fe--),fe=oe[fe][Se],ue!==b&&fe!==0&&fe!==qv){if(ee.push(re),ee.push(le),aS(a,re,le,ue,E,z,ee))return!0;ee.pop(),ee.pop()}if(oe[re][le]=qv,b===0){if(re===y)return!1;re--}else if(b===90){if(le===x)return!1;le--}else if(b===180){if(re===y)return!1;re++}else{if(le===x)return!1;le++}}}Re.Object.defineProperties(Fp.prototype,{bounds:{get:function(){return new vn(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 Rd=0,Qc=1,Pg=999999,_v=Pg+1,qv=Pg+2;Fp.className="PositionArray";function Nf(){ro(this),this.port=this.node=null,this.pe=[],this.ap=!1}Nf.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 Nx(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}Nf.prototype.Sl=function(){this.pe.length=0};function sS(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 co?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 oe=a.port.ga(_r,Ke.alloc()),re=a.port.ga(Ds,Ke.alloc());for(E=vn.allocAt(oe.x,oe.y,0,0),E.Ye(re),Ke.free(oe),Ke.free(re),oe=Ke.allocAt(E.x+E.width/2,E.y+E.height/2),re=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 Se=ue.part;if(Se!==null){var Pe=Se.findVisibleNode();Pe!==null&&Pe!==Se&&(Se=Pe,ue=Se.port),ue=le.computeOtherPoint(Se,ue),Se=oe.ab(ue),Se-=re,0>Se?Se+=360:360<=Se&&(Se-=360),fe=Nx(E,fe,Se,le.isOrthogonal),fe===0?(fe=4,180<Se&&(Se-=360)):fe===90?(fe=8,270<Se&&(Se-=360)):fe===180?fe=2:(fe=1,90>Se&&(Se+=360)),Pe=a.pe[z],Pe===void 0?(Pe=new ey(le,Se,fe),a.pe[z]=Pe):(Pe.link=le,Pe.angle=Se,Pe.Nc=fe),Pe.hv.set(ue),z++}}}}for(Ke.free(oe),a.pe.sort(Nf.prototype.j),re=a.pe.length,b=-1,z=oe=0;z<re;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==b&&(b=ee.Nc,oe=0),ee.Uo=oe,oe++);for(b=-1,oe=0,z=re-1;0<=z;z--)re=a.pe[z],re!==void 0&&(re.Nc!==b&&(b=re.Nc,oe=re.Uo+1),re.Gl=oe);if(z=a.pe,fe=a.port,b=a.node.portSpreading,oe=Ke.alloc(),re=Ke.alloc(),ee=Ke.alloc(),le=Ke.alloc(),fe.ga(_r,oe),fe.ga(Xs,re),fe.ga(Ds,ee),fe.ga(Rs,le),Pe=Se=ue=fe=0,b===Kv)for(var Ee=0;Ee<z.length;Ee++){var Te=z[Ee];if(Te!==null){var _e=Te.link.computeThickness();switch(Te.Nc){case 8:Se+=_e;break;case 2:Pe+=_e;break;case 1:fe+=_e;break;default:case 4:ue+=_e}}}var Ge=Ee=0,st=1,ut=Te=0;for(_e=0;_e<z.length;_e++){var pt=z[_e];if(pt!==null){if(Ee!==pt.Nc){switch(Ee=pt.Nc,Ee){case 8:var Nt=ee;Ge=le;break;case 2:Nt=le,Ge=oe;break;case 1:Nt=oe,Ge=re;break;default:case 4:Nt=re,Ge=ee}switch(Te=Ge.x-Nt.x,ut=Ge.y-Nt.y,Ee){case 8:Se>Math.abs(Te)?(st=Math.abs(Te)/Se,Se=Math.abs(Te)):st=1;break;case 2:Pe>Math.abs(ut)?(st=Math.abs(ut)/Pe,Pe=Math.abs(ut)):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(ut)?(st=Math.abs(ut)/ue,ue=Math.abs(ut)):st=1}Ge=0}var Qt=pt.Zo;if(b===Kv){switch(pt=pt.link.computeThickness(),pt*=st,Qt.set(Nt),Ee){case 8:Qt.x=Nt.x+Te/2+Se/2-Ge-pt/2;break;case 2:Qt.y=Nt.y+ut/2+Pe/2-Ge-pt/2;break;case 1:Qt.x=Nt.x+Te/2-fe/2+Ge+pt/2;break;default:case 4:Qt.y=Nt.y+ut/2-ue/2+Ge+pt/2}Ge+=pt}else{var ri=.5;b===Xm&&(ri=(pt.Uo+1)/(pt.Gl+1)),Qt.x=Nt.x+Te*ri,Qt.y=Nt.y+ut*ri}}}for(Ke.free(oe),Ke.free(re),Ke.free(ee),Ke.free(le),Nt=a.pe,z=0;z<Nt.length;z++)b=Nt[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,vn.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}Nf.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},Nf.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Jr,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)},Nf.className="Knot";function ey(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Ke,this.Gl=this.Uo=0,this.Zo=new Ke,this.Ju=0}ey.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()},ey.className="LinkInfo";function ta(a){ro(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Ke(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}ta.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},ta.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ta.prototype.qb=function(){},ta.prototype.toString=function(){var a=Pn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},ta.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())}}},ta.prototype.createNetwork=function(){return new zr(this)},ta.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof $t?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof co?y.lg(a.memberParts):y.lg(a.iterator),y},ta.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")}},ta.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()}},ta.prototype.doLayout=function(a){var y=new Mn;a instanceof $t?(uc(this,y,a.nodes,!0,this.rh,!0,!1,!0),uc(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof co?uc(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},ta.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 oe=a.value;Np(oe);var re=oe.measuredBounds,le=re.width;re=re.height,oe.moveTo(b,E),oe instanceof co&&(oe.rh=!1),b+=Math.max(le,50)+20,ee=Math.max(ee,Math.max(re,50)),z>=y-1?(z=0,b=x,E+=ee+20,ee=0):z++}},ta.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 oe=ee.value.node;if(!(oe===null||oe instanceof ei)&&(Np(oe),this.rh(oe))){var re=oe.measuredBounds,le=re.width;re=re.height,oe.moveTo(x,b),oe instanceof co&&(oe.rh=!1),x+=Math.max(le,50)+20,z=Math.max(z,Math.max(re,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},ta.prototype.rh=function(a){return!!(!a.location.w()||a instanceof co&&a.rh)};function uc(a,y,x,b,E,z,ee,oe){for(x=x.iterator;x.next();){var re=x.value;b&&!re.isTopLevel||E!==null&&!E(re)||!re.canLayout()||(z&&re instanceof li?re.isLinkLabel||(re instanceof co&&re.layout===null?uc(a,y,re.memberParts,!1,E,z,ee,oe):(Np(re),y.add(re))):ee&&re instanceof ei?y.add(re):!oe||!re.Zc()||re instanceof li||(Np(re),y.add(re)))}}function Np(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}ta.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new vn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},ta.prototype.ex=function(a){var y=new Mn;return a instanceof $t?(uc(this,y,a.nodes,!0,null,!0,!0,!0),uc(this,y,a.links,!0,null,!0,!0,!0),uc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof co?uc(this,y,a.memberParts,!1,null,!0,!0,!0):uc(this,y,a.iterator,!1,null,!0,!0,!0),y},ta.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(_r),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Re.Object.defineProperties(ta.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())}}}),ta.prototype.collectParts=ta.prototype.ex,ta.prototype.getLayoutBounds=ta.prototype.ni,ta.prototype.invalidateLayout=ta.prototype.C,ta.className="Layout";function zr(a){ro(this),this.Sc=a,this.wf=new Mn,this.ye=new Mn,this.Es=new di,this.zs=new di}zr.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 Mn,this.ye=new Mn,this.Es=new di,this.zs=new di},zr.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},zr.prototype.createVertex=function(){return new os(this)},zr.prototype.createEdge=function(){return new zl(this)},zr.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 li)return!ee.isLinkLabel;if(ee instanceof ei){var oe=ee.fromNode;return oe===null||oe.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof li&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof co&&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 ei&&(!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))}}},zr.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},be=zr.prototype,be.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},be.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},be.Iu=function(a){if(a!==null&&lS(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 lS(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}be.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},be.ki=function(a){return a===null?null:this.Es.I(a)},be.Bo=function(a){if(a!==null){ty(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ty(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}}be.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},be.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ny(this,a)}};function ny(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}be.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},be.Lo=function(a){return a===null?null:this.zs.I(a)},be.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},be.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))}},be.Ko=function(){for(var a=en(),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]);xn(a)},zr.prototype.deleteArtificialVertexes=function(){for(var a=en(),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=en(),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]);xn(a),xn(y)};function kx(a){for(var y=en(),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]);xn(y)}zr.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),kx(this),this.Ko()),a=new Ln;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),iy(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 iy(a,y,x){if(x!==null&&x.network!==y){lS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(ny(a,E),ty(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ny(a,x),ty(y,x),iy(a,y,x.toVertex))}}zr.prototype.dz=function(){for(var a=new Mn,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},Re.Object.defineProperties(zr.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}}}),zr.prototype.findAllParts=zr.prototype.dz,zr.prototype.splitIntoSubNetworks=zr.prototype.Zx,zr.prototype.deleteSelfEdges=zr.prototype.Ko,zr.prototype.reverseEdge=zr.prototype.gm,zr.prototype.linkVertexes=zr.prototype.Zj,zr.prototype.findEdge=zr.prototype.Lo,zr.prototype.deleteLink=zr.prototype.Yy,zr.prototype.deleteEdge=zr.prototype.Mj,zr.prototype.addLink=zr.prototype.Dy,zr.prototype.addEdge=zr.prototype.Bo,zr.prototype.findVertex=zr.prototype.ki,zr.prototype.deleteNode=zr.prototype.Zy,zr.prototype.deleteVertex=zr.prototype.Iu,zr.prototype.addNode=zr.prototype.Bl,zr.prototype.addVertex=zr.prototype.dh,zr.prototype.addParts=zr.prototype.lg,zr.className="LayoutNetwork";function os(a){ro(this),this.ob=a,this.j=new vn(0,0,10,10).freeze(),this.o=new Ke(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Ln,this.mg=new Ln}os.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Ln,this.mg=new Ln},os.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+_i(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},os.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;jt(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 co)){x=vn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(Uo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),vn.free(x);return}vn.free(x)}a.moveTo(y.x,y.y)}},os.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},os.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},os.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},os.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function oy(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}Re.Object.defineProperties(os.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=vn.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),vn.free(x),!(a instanceof co)&&(a=a.locationObject.ga(Uo),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 Mn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Mn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Mn,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 Ln,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}}}),os.prototype.deleteDestinationEdge=os.prototype.Jl,os.prototype.addDestinationEdge=os.prototype.zl,os.prototype.deleteSourceEdge=os.prototype.Kl,os.prototype.addSourceEdge=os.prototype.Cl,os.className="LayoutVertex",os.standardComparer=oy,os.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 zl(a){ro(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}zl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},zl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+_i(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},zl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},zl.prototype.commit=function(){},zl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Re.Object.defineProperties(zl.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)}}}),zl.prototype.getOtherVertex=zl.prototype.Ax,zl.className="LayoutEdge";function Ps(a){ta.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new ti(NaN,NaN).freeze(),this.tf=new ti(10,10).freeze(),this.Jb=kp,this.Rb=s0,this.nd=Ap,this.hd=uS,a&&Object.assign(this,a)}Pt(Ps,ta),Ps.prototype.cloneProtected=function(a){ta.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},Ps.prototype.qb=function(a){a.classType===Ps?a===Ap||a===u0||a===ry||a===l0?this.sorting=a:a===s0||a===ah?this.arrangement=a:a===kp||a===a0?this.alignment=a:at("Unknown enum value: "+a):ta.prototype.qb.call(this,a)},Ps.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 co)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 l0:E.reverse();break;case Ap:E.sort(this.comparer);break;case u0: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 a0:var oe=y,re=x,le=vn.alloc(),ue=Math.max(this.cellSize.width,1);if(!isFinite(ue))for(var fe=ue=0;fe<E.length;fe++){var Se=this.ni(E[fe],le);ue=Math.max(ue,Se.width)}if(ue=Math.max(ue+oe,1),fe=Math.max(this.cellSize.height,1),!isFinite(fe))for(Se=fe=0;Se<E.length;Se++){var Pe=this.ni(E[Se],le);fe=Math.max(fe,Pe.height)}fe=Math.max(fe+re,1),Se=this.arrangement;for(var Ee=Pe=this.arrangementOrigin.x,Te=this.arrangementOrigin.y,_e=0,Ge=0,st=0;st<E.length;st++){var ut=E[st],pt=this.ni(ut,le),Nt=Math.ceil((pt.width+oe)/ue)*ue,Qt=Math.ceil((pt.height+re)/fe)*fe;switch(Se){case ah:var ri=Math.abs(Ee-pt.width);break;default:ri=Ee+pt.width}switch((0<z&&_e>z-1||0<ee&&0<_e&&ri-Pe>ee)&&(b.push(new vn(0,Te,ee+oe,Ge)),_e=0,Ee=Pe,Te+=Ge,Ge=0),Ge=Math.max(Ge,Qt),Se){case ah:pt=-pt.width;break;default:pt=0}switch(ut.moveTo(Ee+pt,Te),Se){case ah:Ee-=Nt;break;default:Ee+=Nt}_e++}b.push(new vn(0,Te,ee+oe,Ge)),vn.free(le);break;case kp:for(re=ee,ue=z,fe=y,Se=x,ee=vn.alloc(),Pe=Math.max(this.cellSize.width,1),z=Te=le=0,oe=Ke.alloc(),Ee=0;Ee<E.length;Ee++)Ge=E[Ee],_e=this.ni(Ge,ee),Ge=Bd(Ge,Ge.locationObject,Ge.locationSpot,oe),le=Math.max(le,Ge.x),Te=Math.max(Te,_e.width-Ge.x),z=Math.max(z,Ge.y);switch(Ee=this.arrangement,Ee){case ah:le+=fe;break;default:Te+=fe}Pe=isFinite(Pe)?Math.max(Pe+fe,1):Math.max(le+Te,1);var Si=Ge=this.arrangementOrigin.x;for(st=this.arrangementOrigin.y,Te=0,re>=le&&(re-=le),le=ut=0,Nt=Math.max(this.cellSize.height,1),pt=z=0,Qt=!0,_e=Ke.alloc(),ri=0;ri<E.length;ri++){var mi=E[ri],qn=this.ni(mi,ee),In=Bd(mi,mi.locationObject,mi.locationSpot,oe);if(0<Te)switch(Ee){case ah:Si=(Si-Ge-(qn.width-In.x))/Pe,Si=Bt.$(Math.round(Si),Si)?Math.round(Si):Math.floor(Si),Si=Si*Pe+Ge;break;default:Si=(Si-Ge+In.x)/Pe,Si=Bt.$(Math.round(Si),Si)?Math.round(Si):Math.ceil(Si),Si=Si*Pe+Ge}else switch(Ee){case ah:ut=Si+In.x+qn.width;break;default:ut=Si-In.x}switch(Ee){case ah:var uo=-(Si+In.x)+ut;break;default:uo=Si+qn.width-In.x-ut}if(0<ue&&Te>ue-1||0<re&&0<Te&&uo>re){for(b.push(new vn(0,Qt?st-z:st,re+fe,pt+z+Se)),Si=0;Si<Te&&ri!==Te;Si++){uo=E[ri-Te+Si];var to=Bd(uo,uo.locationObject,uo.locationSpot,_e);uo.moveTo(uo.position.x,uo.position.y+z-to.y)}pt+=Se,st=Qt?st+pt:st+(pt+z),Te=pt=z=0,Si=Ge,Qt=!1}switch(Si===Ge&&(le=Ee===ah?Math.max(le,qn.width-In.x):Math.min(le,-In.x)),z=Math.max(z,In.y),pt=Math.max(pt,qn.height-In.y),isFinite(Nt)&&(pt=Math.max(pt,Math.max(qn.height,Nt)-In.y)),Qt?mi.moveTo(Si-In.x,st-In.y):mi.moveTo(Si-In.x,st),Ee){case ah:Si-=In.x+fe;break;default:Si+=qn.width-In.x+fe}Te++}if(b.push(new vn(0,st,re+fe,(Qt?pt:pt+z)+Se)),E.length!==Te)for(re=0;re<Te;re++)ue=E[E.length-Te+re],fe=Bd(ue,ue.locationObject,ue.locationSpot,oe),ue.moveTo(ue.position.x,ue.position.y+z-fe.y);if(Ke.free(oe),Ke.free(_e),Ee===ah)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);vn.free(ee)}for(oe=z=ee=E=0;oe<b.length;oe++)re=b[oe],E=Math.min(E,re.x),ee=Math.min(ee,re.y),z=Math.max(z,re.x+re.width);this.arrangement===ah?this.commitLayers(b,new Ke(E+y/2-(z+E),ee-x/2)):this.commitLayers(b,new Ke(E-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Ps.prototype.commitLayers=function(){};function uS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Re.Object.defineProperties(Ps.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!==kp&&a!==a0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==s0&&a!==ah||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ry&&a!==l0&&a!==Ap&&a!==u0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var a0=new nn(Ps,"Position",0),kp=new nn(Ps,"Location",1),s0=new nn(Ps,"LeftToRight",2),ah=new nn(Ps,"RightToLeft",3),ry=new nn(Ps,"Forward",4),l0=new nn(Ps,"Reverse",5),Ap=new nn(Ps,"Ascending",6),u0=new nn(Ps,"Descending",7);Ps.className="GridLayout",Ps.standardComparer=uS,Ps.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},Ps.Position=a0,Ps.Location=kp,Ps.LeftToRight=s0,Ps.RightToLeft=ah,Ps.Forward=ry,Ps.Reverse=l0,Ps.Ascending=Ap,Ps.Descending=u0;function br(){this.On=new Mn,this.Dn=new Mn,this.Pa=new Mn,this.cf=new di,this.bf=new di,this.aj=new di,this.H=null,this.tp=!1}be=br.prototype,be.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},be.Xe=function(a){this.H=a},be.oi=function(a){if(a instanceof li){if(this.On.add(a),a instanceof co){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 ei?this.Dn.add(a):a instanceof ur||this.Pa.add(a);y=a.data,y===null||a instanceof ur||(a instanceof ei?this.bf.add(y,a):this.cf.add(y,a))},be.pc=function(a){if(a.Ej(),a instanceof li){if(this.On.remove(a),a instanceof co){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 ei?this.Dn.remove(a):a instanceof ur||this.Pa.remove(a);y=a.data,y===null||a instanceof ur||(a instanceof ei?this.bf.remove(y):this.cf.remove(y))},be.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 co)&&at('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 co||at('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 ei||at('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=en(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=en(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=en(),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]);xn(y),xn(x),xn(a)}},br.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},br.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&hS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&Qf(this.diagram,!1)};function hS(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=dS(a,y,b);if(E!==null&&(Au(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)}}br.prototype.insertLink=function(){return null},br.prototype.resolveReferencesForData=function(){},br.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(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&&(gS||(gS=!0,ii('No Group template found for category "'+x+'"'),ii(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(fS||(fS=!0,ii('No Node template found for category "'+x+'"'),ii(" Using default node template")),y=a.ny))),y}br.prototype.getLinkCategoryForData=function(){return""},br.prototype.setLinkCategoryForData=function(){},br.prototype.setFromNodeForLink=function(){},br.prototype.setToNodeForLink=function(){},br.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(pS||(pS=!0,ii('No Link template found for category "'+a+'"'),ii(" Using default link template")),x=y.my)),x},br.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},br.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},br.prototype.ip=function(a){a=this.Lc(a),a!==null&&(ec(this.diagram,a,!1),this.unresolveReferencesForPart(a))},br.prototype.unresolveReferencesForPart=function(){},br.prototype.removeDataForLink=function(){},br.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},br.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof li?a:null)},br.prototype.findLinkForKey=function(){return null},be=br.prototype,be.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},be.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof li?a:null)},be.Kc=function(a){return a===null?null:this.bf.I(a)},be.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Mn;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(jt(ee)&&ay(this,E,ee)){y.add(b);break}}}return y.iterator},be.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Mn;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(jt(ee)&&ay(this,E,ee)){y.add(b);break}}}return y.iterator};function ay(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 oe=z[ee];if(oe!==void 0&&!cS(a,E[ee],oe))return!1}}else if(!cS(a,E,z))return!1}return!0}function cS(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(jt(y)&&jt(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}br.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===Kr){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===fa){var ee=a.newValue;b==="nodeDataArray"&&jt(ee)&&hS(this,ee),y.isModified=!0}else if(x===Ca){var oe=a.oldValue;b==="nodeDataArray"&&jt(oe)&&this.ip(oe),y.isModified=!0}else x===Bs&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Kr){var re=a.propertyName,le=a.object;le===y.model?(re==="nodeKeyProperty"||re==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(le,re),y.isModified=!0}else if(x===fa||x===Ca){var ue=a.change===fa,fe=ue?a.newParam:a.oldParam,Se=ue?a.newValue:a.oldValue,Pe=this.aj.I(a.object);if(Array.isArray(Pe))for(a=0;a<Pe.length;a++){var Ee=Pe[a];if(ue)Fm(Ee,Se,fe,!0);else if(!(0>fe)){var Te=fe+cp(Ee);Ee.pc(Te,!0),xv(Ee,Te,fe)}}y.isModified=!0}}finally{y.aa=!0}}}}},br.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)},br.prototype.rp=function(){for(var a=this.H.model,y=new Mn,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){bS(a,ee,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&CS(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()},br.prototype.refreshDataBoundLinks=function(){},br.prototype.updateRelationshipsFromData=function(){},br.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=en()),x.push(ee))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);xn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(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 ly(a,y,x){Uc(y,function(ee){ee=ee.O.s;for(var oe=ee.length,re=0;re<oe;re++)$g(x,ee[re])});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}}}}br.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new di;if(sn(a))for(var E=0;E<a.length;E++)h0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)h0(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 Mn;for(var z=new di,ee=b.iterator;ee.next();){var oe=ee.value;if(oe instanceof ei)a||oe.fromNode!==null&&oe.toNode!==null||E.add(oe);else if(oe instanceof li&&oe.data!==null&&x.Tl()){var re=oe;oe=ee.key;var le=oe.pg();le!==null&&(le=b.I(le),le!==null?(x.qe(re.data,x.wa(le.data)),re=y.Kc(re.data),oe=oe.kh(),oe!==null&&re!==null&&z.add(oe,re)):x.qe(re.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 di;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 h0(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 Wi))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof li){for(var ee=y.linksConnected;ee.next();){var oe=ee.value;if(oe.fromNode===y){var re=b.I(oe);re!==null&&(re.fromNode=z)}oe.toNode===y&&(oe=b.I(oe),oe!==null&&(oe.toNode=z))}if(y instanceof co&&z instanceof co)for(y=y.memberParts;y.next();)ee=h0(a,y.value,x,b,E),ee instanceof ei||ee===null||(ee.containingGroup=z)}else if(y instanceof ei&&z instanceof ei)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=h0(a,y.value,x,b,E),ee!==null&&ee instanceof li&&(ee.labeledLink=z);return z}br.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof ei||(b=E.copyNodeData(b),jt(b)&&(E.xf(b),x=y.Lc(b)))}else Au(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 ei||(E=y.copyNodeData(b)),jt(E)&&(x.data=E)));return x},Re.Object.defineProperties(br.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}}}),br.prototype.updateAllRelationshipsFromData=br.prototype.rp,br.prototype.findLinksByExample=br.prototype.ls,br.prototype.findNodesByExample=br.prototype.ms,br.prototype.findLinkForData=br.prototype.Kc,br.prototype.findNodeForData=br.prototype.ii,br.prototype.findPartForData=br.prototype.Lc,br.prototype.findNodeForKey=br.prototype.Vb,br.prototype.removeModeledPart=br.prototype.ip,br.prototype.removeModeledParts=br.prototype.Gs,br.prototype.rebuildParts=br.prototype.Wd;var fS=!1,gS=!1,pS=!1;br.className="PartManager";function cs(a){br.apply(this,arguments)}Pt(cs,br),cs.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),mS(this,a.linkDataArray)},cs.prototype.addModeledParts=function(a){for(br.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)yg(a.value);Qf(this.diagram,!1)};function mS(a,y){y.forEach(function(x){vS(a,x)}),Qf(a.diagram,!1)}function vS(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){Au(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=g0(x,y,!0);z!==""&&(E.fromPortId=z),z=nu(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof li&&(E.fromNode=z)),z=g0(x,y,!1),z!==""&&(E.toPortId=z),z=nu(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof li&&(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}}}}cs.prototype.removeAllModeledParts=function(){var a=this.diagram.model;yS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function yS(a,y){y.forEach(function(x){a.ip(x)})}cs.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},cs.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},cs.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},cs.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},cs.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},cs.prototype.findPartForKey=function(a){var y=br.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},cs.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},cs.prototype.doModelChanged=function(a){var y=this;if(br.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===Kr){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 oe=this.Kc(a.object);if(oe!==null){var re=this.Vb(a.newValue);oe.toNode=re}}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 Se=a.newValue;typeof Se=="string"&&(fe.toPortId=Se)}}else if(E==="nodeGroupKey"){var Pe=this.Lc(a.object);if(Pe!==null){var Ee=a.newValue;if(Ee!==void 0){var Te=this.Vb(Ee);Te instanceof co?Pe.containingGroup=Te:Pe.containingGroup=null}else Pe.containingGroup=null}}else if(E==="linkLabelKeys"){var _e=this.Kc(a.object);if(_e!==null){var Ge=a.oldValue,st=a.newValue;Array.isArray(Ge)&&Ge.forEach(function(In){0<=st.indexOf(In)||(In=y.Vb(In),In!==null&&(In.labeledLink=null))}),Array.isArray(st)&&st.forEach(function(In){In=y.Vb(In),In!==null&&(In.labeledLink=_e)})}}else if(E==="linkCategory"){var ut=this.Kc(a.object),pt=a.newValue;ut!==null&&typeof pt=="string"&&(ut.category=pt)}else E==="linkDataArray"&&(yS(this,a.oldValue),mS(this,a.newValue));x.isModified=!0}else if(b===fa){var Nt=a.newValue;if(E==="linkDataArray"&&typeof Nt=="object"&&Nt!==null)vS(this,Nt);else if(E==="linkLabelKeys"&&dc(Nt)){var Qt=this.Kc(a.object),ri=this.Vb(Nt);Qt!==null&&ri!==null&&(ri.labeledLink=Qt)}x.isModified=!0}else if(b===Ca){var Si=a.oldValue;if(E==="linkDataArray"&&typeof Si=="object"&&Si!==null)this.ip(Si);else if(E==="linkLabelKeys"&&dc(Si)){var mi=this.Vb(Si);mi!==null&&(mi.labeledLink=null)}x.isModified=!0}}else if(b===Kr){var qn=a.propertyName;a.object!==x.model||qn!=="linkFromKeyProperty"&&qn!=="linkToKeyProperty"&&qn!=="linkFromPortIdProperty"&&qn!=="linkToPortIdProperty"&&qn!=="linkLabelKeysProperty"&&qn!=="nodeIsGroupProperty"&&qn!=="nodeGroupKeyProperty"&&qn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},cs.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Mn,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){kS(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&NS(y,z,!1)})},cs.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 ei){var E=nu(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=nu(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 Mn().addAll(y);var ee=new Mn;a.labelNodes.each(function(oe){oe.data!==null&&(oe=b.wa(oe.data),oe!==void 0&&ee.add(oe))}),y=ee.copy(),y.hp(E),E=E.copy(),E.hp(ee),(0<y.count||0<E.count)&&(y.each(function(oe){oe=x.Vb(oe),oe!==null&&oe.labeledLink===a&&(oe.labeledLink=null)}),E.each(function(oe){oe=x.Vb(oe),oe!==null&&oe.labeledLink!==a&&(oe.labeledLink=a)}))}}else!(a instanceof ur)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof co)&&(a.containingGroup=y)}}},cs.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Dp(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 co&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=E)):(z.link=this.Kc(ee),z.link!==null&&E instanceof li&&(nu(y,ee,!0)===x&&(z.link.fromNode=E),nu(y,ee,!1)===x&&(z.link.toNode=E),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(oe){return function(re){return re===x?(E.labeledLink=oe.link,!0):!1}}(z)))),z={link:z.link}}lh(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof co&&(E.containingGroup=a))}},cs.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof li){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)sh(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&sh(y,x,b.data)),a instanceof co)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&sh(y,x,b)}}},cs.prototype.copyPartData=function(a,y){var x=br.prototype.copyPartData.call(this,a,y);if(a instanceof ei)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},cs.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,ee=E.toolManager.findTool("Linking"),oe="";if(a!==null&&(y===null&&(y=a),oe=y.portId,oe===null&&(oe="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=ee.archetypeLinkData,b instanceof ei){if(Au(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=oe,z.toNode=x,z.toPortId=y,E.add(z),a=ee.archetypeLabelNodeData,a instanceof li&&(Au(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&&bg(z,b,z.wa(a.data),!0),Eg(z,b,oe,!0),x!==null&&bg(z,b,z.wa(x.data),!1),Eg(z,b,y,!1),z.fi(b),a=ee.archetypeLabelNodeData,a===null||a instanceof li||(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},cs.prototype.findLinkForKey=cs.prototype.findLinkForKey,cs.prototype.findPartForKey=cs.prototype.findPartForKey,cs.prototype.removeAllModeledParts=cs.prototype.removeAllModeledParts,cs.prototype.addModeledParts=cs.prototype.addModeledParts,cs.prototype.addAllModeledParts=cs.prototype.addAllModeledParts,cs.className="GraphLinksPartManager";function yu(){br.apply(this,arguments),this.Sg=null}Pt(yu,br);function d0(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||!Un(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Au(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}}}yu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},yu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},yu.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}},yu.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))},yu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},yu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},yu.prototype.doModelChanged=function(a){if(br.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===Kr){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 oe=ee.kh();oe!==null?z===null?y.remove(oe):y.isTreePathToChildren?oe.fromNode=z:oe.toNode=z:d0(this,z,ee)}}else if(b==="parentLinkCategory"){var re=this.ii(a.object),le=a.newValue;if(re!==null&&typeof le=="string"){var ue=re.kh();ue!==null&&(ue.category=le)}}y.isModified=!0}}else if(x===Kr){var fe=a.propertyName;a.object===y.model&&fe==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},yu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof li&&(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:d0(this,y,a):b!==null&&ec(x,b,!1)))}}},yu.prototype.updateDataBindings=function(a,y){br.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},yu.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=Dp(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 li&&y.mh(z)===x&&d0(this,E,this.ii(z))}lh(y,x)}a=y.mh(a),a!==void 0&&E instanceof li&&(a=this.Vb(a),d0(this,a,E))}},yu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof li){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(Ca,"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)&&sh(y,x,E)}},yu.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},yu.prototype.findLinkForKey=yu.prototype.findLinkForKey,yu.className="TreePartManager";function Ni(a,y){this.kl=new Mn,this.il=new Mn,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,ro(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new di,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 di,this.Lt=new Ln,this.Wg=!1,this.o=null,this.undoManager=new Vr,a!==void 0&&(sn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ni.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},Ni.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ni.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ni.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)+":"+An(E)}}return y},Ni.prototype.xA=function(a){a.change!==Bs&&at("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof ka?(xS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ni.prototype.Qv=function(a,y){var x=this,b=!1,E=new Mn,z=new Mn,ee=new Mn,oe=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="nodeDataArray"?fe.change===fa?E.add(fe.newValue):fe.change===Ca&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==Kr||x.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(oe&&oe.contains(fe.object)?oe.get(fe.object).each(function(Se){x.lb(Se)&&z.add(Se)}):fe.object instanceof Ni||x.ri()&&x.Jc(fe.object)||wS(x,fe.object).each(function(Se){z.add(Se)})):b=!0)});var re=this.il;re.clear(),E.each(function(fe){re.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<re.count&&(ue===null&&(ue={}),y?ue.removedNodeKeys=re.Fa():ue.insertedNodeKeys=re.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(),re.clear(),ue},Ni.prototype.cloneDeep=function(a){return Cg(this,a,!0)};function Cg(a,y,x,b,E,z){function ee(fe,Se){oe?(fe.__gohashid===void 0&&z.push(fe),b.set(fe,Se)):(fe=Go++,b.set(fe,Se),E.set(fe,y))}if(!jt(y))return y;z||(z=[]);var oe=Object.isExtensible(y);if(b||(b=new di),oe){var re=b.get(y);if(re)return re}else for(E||(E=new di),re=E.iterator;re.next();){var le=re.key;if(re.value===y&&(le=b.get(le)))return le}if(Array.isArray(y)){re=[],ee(y,re);for(var ue=0;ue<y.length;ue++)re.push(Cg(a,y[ue],!1,b,E,z))}else if(y instanceof Ke||y instanceof ti||y instanceof vn||y instanceof vi||y instanceof xi)re=y.copy(),ee(y,re);else{if(y instanceof wr||y instanceof ni||y instanceof nn)return y;if(y instanceof Ln)re=new Ln().addAll(Cg(a,y.Fa(),!1,b,E,z)),ee(y,re);else if(y instanceof Mn)re=new Mn().addAll(Cg(a,y.Fa(),!1,b,E,z)),ee(y,re);else if(y instanceof di)re=new di().addAll(Cg(a,y.Fa(),!1,b,E,z)),ee(y,re);else if(y instanceof Date)re=new Date(y.getTime()),ee(y,re);else if(y instanceof RegExp)re=new RegExp(y),ee(y,re),re.lastIndex=y.lastIndex;else if(typeof y.copy=="function")re=y.copy(),ee(y,re);else for(ue in re={},ee(y,re),y)ue!=="__gohashid"&&(re[ue]=Cg(a,y[ue],!1,b,E,z))}return x&&z.forEach(function(fe){delete fe.__gohashid}),re}be=Ni.prototype,be.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},be.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},be.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 SS(a,y){y=y.modelData,jt(y)&&(a.dm(y),a.modelData=y)}be.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!PS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+uy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+hc(this,this.nodeDataArray,!0)},be.kv=function(a){SS(this,a),a=a.nodeDataArray,sn(a)&&(this.dm(a),this.nodeDataArray=a)};function xS(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var ee=b.get(E);ee===null?(ee=new Mn,ee.add(z),b.add(E,ee)):ee.add(z)}}var b=a.vh;b===null&&(b=new di,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Kr?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===fa||z===Ca)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function wS(a,y){for(var x=new Mn,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];c0(a,y,E,E,x)}return x}function c0(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(c0(a,y,ee,b,E))return!0}else if(jt(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return E.add(b),!0;if(c0(a,y,ee,b,E))return!0}return!1}be.Pv=function(a,y){var x=this,b=!1,E=new Mn,z=new Mn,ee=new Mn,oe=this.vh;a.changes.each(function(ue){ue.model===x&&(ue.modelChange==="nodeDataArray"?ue.change===fa?E.add(ue.newValue):ue.change===Ca&&ee.add(ue.oldValue):x.lb(ue.object)?z.add(ue.object):ue.change!==Kr||x.modelData!==ue.object&&ue.propertyName!=="modelData"?ue.object!==null&&(oe&&oe.contains(ue.object)?oe.get(ue.object).each(function(fe){x.lb(fe)&&z.add(fe)}):ue.object instanceof Ni||x.ri()&&x.Jc(ue.object)||wS(x,ue.object).each(function(fe){z.add(fe)})):b=!0)});var re=this.il;re.clear(),E.each(function(ue){re.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": `+uy(this,this.modelData)),0<re.count&&(a+=(y?this.Yv:this.Wv)+hc(this,re.Fa(),!0)),0<z.count&&(a+=this.jy+hc(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Wv:this.Yv)+hc(this,le.Fa(),!0)),le.clear(),re.clear(),a},be.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)&&at("applyIncrementalJson cannot change Model properties"),SS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new di;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 oe=this.hc(ee);oe===null&&(oe=(oe=b.get(ee))?oe:this.copyNodeData({}),this.km(oe,ee),this.xf(oe))}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 re in E)re==="__gohashid"||re===this.nodeKeyProperty||this.Wj()&&re===this.nodeIsGroupProperty||this.setDataProperty(z,re,E[re]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,re=0;re<x;re++)y=this.hc(a[re]),y!==null&&this.cm(y)},be.$x=function(a,y){a.change!==Bs&&at("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof ka?(y===void 0&&(y=Bp(this,this)),xS(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 }'},be.yA=function(a,y){return this.$x(a,y)},be.np=function(a){return a===void 0&&(a=Bp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},be.toJSON=function(a){return this.np(a)},be.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ye.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:at("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&at("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},be.Ky=function(a){return this.Zw(a)},Ni.constructGraphLinksModel=function(){return new Ni},be=Ni.prototype,be.dm=function(a){if(sn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(jt(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:at("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(jt(a)){for(y in a)if(x=a[y],jt(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 Ln,b=0;b<x.length/2;b++)E.add(new Ke(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Ax(a)}return a},be.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)?hc(this,a):jt(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function hc(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new fi;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 PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function ll(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Ke)y={class:"go.Point",x:ll(x.x),y:ll(x.y)};else if(x instanceof ti)y={class:"go.Size",width:ll(x.width),height:ll(x.height)};else if(x instanceof vn)y={class:"go.Rect",x:ll(x.x),y:ll(x.y),width:ll(x.width),height:ll(x.height)};else if(x instanceof vi)y={class:"go.Margin",top:ll(x.top),right:ll(x.right),bottom:ll(x.bottom),left:ll(x.left)};else if(x instanceof xi)x.sb()?y={class:"go.Spot",x:ll(x.x),y:ll(x.y),offsetX:ll(x.offsetX),offsetY:ll(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof wr){if(y={class:"go.Brush",type:x.type.name},x.type===kd?y.color=x.color:(x.type===dd||x.type===mu)&&(y.start=x.start,y.end=x.end,x.type===mu&&(x.startRadius!==0&&(y.startRadius=ll(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=ll(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 ni?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=ll(x.startX)),x.startY!==0&&(y.startY=ll(x.startY)),x.endX!==0&&(y.endX=ll(x.endX)),x.endY!==0&&(y.endY=ll(x.endY)),x.spot1.D(_r)||(y.spot1=x.spot1),x.spot2.D(Ds)||(y.spot2=x.spot2),x.type===ni.o&&(y.path=ni.ia(x))):x instanceof nn&&(y={class:"go.EnumValue",classType:Bp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=Ba(y,E);if(!PS(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Ln){var ee="[";for(z=z.iterator;z.next();){var oe=z.value;1<ee.length&&(ee+=","),ee+=a.sm(oe.x),ee+=",",ee+=a.sm(oe.y)}ee+="]",b+=ee}else b+=a.sm(z)}return b+"}"}function ul(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Ax(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 Ke(ul(a.x),ul(a.y));else if(y==="Size")x=new ti(ul(a.width),ul(a.height));else if(y==="Rect")x=new vn(ul(a.x),ul(a.y),ul(a.width),ul(a.height));else if(y==="Margin")x=new vi(ul(a.top),ul(a.right),ul(a.bottom),ul(a.left));else if(y==="Spot")typeof a.enum=="string"?x=ca(a.enum):x=new xi(ul(a.x),ul(a.y),ul(a.offsetX),ul(a.offsetY));else if(y==="Brush"){if(x=new wr,x.type=Xn(wr,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof xi&&(x.start=a.start),a.end instanceof xi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=ul(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=ul(a.endRadius)),a=a.colorStops,jt(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=ni.parse(a.path):x=new ni,x.type=Xn(ni,a.type),typeof a.startX=="number"&&(x.startX=ul(a.startX)),typeof a.startY=="number"&&(x.startY=ul(a.startY)),typeof a.endX=="number"&&(x.endX=ul(a.endX)),typeof a.endY=="number"&&(x.endY=ul(a.endY)),a.spot1 instanceof xi&&(x.spot1=a.spot1),a.spot2 instanceof xi&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=Xn(b,a.name)));return x}be.Pe=function(a){return this.Lt.add(a),this},be.ik=function(a){this.Lt.remove(a)},be.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)},be.cb=function(a,y,x,b,E,z,ee){_a(this,"",a,y,x,b,E,z,ee)},be.g=function(a,y,x,b,E){_a(this,"",Kr,a,this,y,x,b,E)},be.Fs=function(a,y,x,b,E,z){_a(this,"",Kr,y,a,x,b,E,z)};function _a(a,y,x,b,E,z,ee,oe,re){oe===void 0&&(oe=null),re===void 0&&(re=null);var le=new Gr;le.model=a,le.change=x,le.modelChange=y,le.propertyName=b,le.object=E,le.oldValue=z,le.oldParam=oe,le.newValue=ee,le.newParam=re,a.ds(le)}Ni.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Kr){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)),Qr(x,b,E)}else a.change===fa?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,jt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&qt(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&on(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!sn(b)&&a.propertyName&&(b=Ba(a.object,a.propertyName)),sn(b)&&typeof x=="number"&&(a=a.newValue,y?qt(b,x):on(b,x,a))):at("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ca?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,jt(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&on(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&qt(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!sn(b)&&a.propertyName&&(b=Ba(a.object,a.propertyName)),sn(b)&&typeof x=="number"&&(a=a.oldValue,y?on(b,x,a):qt(b,x))):at("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Bs&&at("unknown ChangedEvent: "+a.toString())},Ni.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ni.prototype.eb=function(a){return this.undoManager.eb(a)},Ni.prototype.Kf=function(){return this.undoManager.Kf()},Ni.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}},be=Ni.prototype,be.La=function(a,y){y===void 0&&(y=""),_a(this,"SourceChanged",Bs,y,a,null,null)},be.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Ba(a,y),y!==void 0)){if(dc(y))return y;at("Key value for node data "+a+" is not a number or a string: "+y)}}},be.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=Ba(a,x);b!==y&&this.hc(y)===null&&(Qr(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),_a(this,"nodeKey",Kr,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Qr(a,x,y)}};function dc(a){return typeof a=="number"||typeof a=="string"}be.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},be.hc=function(a){return a===null&&at("Model.findNodeDataForKey:key must not be null"),a!==void 0&&dc(a)?this.kb.I(a):null},be.$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))){Qr(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Qr(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Qr(a,y,x)}}}}},be.xf=function(a){a!==null&&(No(a),this.lb(a)||CS(this,a,!0))};function CS(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&&at("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,on(a.Tc,b,y)),_a(a,"nodeDataArray",fa,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}be.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)},be.cm=function(a){a!==null&&bS(this,a,!0)};function bS(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;qt(a.Tc,b)}_a(a,"nodeDataArray",Ca,"nodeDataArray",a,y,null,b,null),a.qp(y)}be.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)},be.$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 oe=this.hc(ee);oe!==z&&(oe!==null?(this.Do(oe,z),this.lm(z,oe)):(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()}},be.jp=function(a,y){y!==void 0&&(a=Dp(this,a),a instanceof Mn&&this.Vf.add(y,a))},be.Lv=function(){},be.fm=function(){},be.em=function(){},be.qp=function(){};function sh(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Mn,a.Vf.add(y,b)),b.add(x)}}function lh(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Mn&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Dp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Mn?a:null)}be.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ni.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):f0(this,a,!0),jt(a)&&ro(a),a};function f0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=f0(a,y[x],a.copiesArrayObjects);b.push(E)}return ro(b),b}if(x&&jt(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=Ba(y,b),ee=Bp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof Ni||z instanceof Vr||z instanceof ka||z instanceof Gr||(z=f0(a,z,!1)),Qr(x,b,z)}return ro(x),x}return y instanceof Ke||y instanceof ti||y instanceof vn||y instanceof xi||y instanceof vi?y.copy():y}Ni.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!ES&&a instanceof kt&&(ES=!0,ii('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),ii(" Is that really your intent?"));var b=Ba(a,y);b!==x&&(Qr(a,y,x),this.Fs(a,y,b,x))},be=Ni.prototype,be.set=function(a,y,x){this.setDataProperty(a,y,x)},be.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])}},be.Ay=function(a,y){this.ts(a,-1,y)},be.ts=function(a,y,x){0>y&&(y=a.length),on(a,y,x),_a(this,"",fa,"",a,null,x,null,y)},be.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&at("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];qt(a,y),_a(this,"",Ca,"",a,x,null,y,null)},be.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Ba(a,y),y===void 0))return"";if(typeof y=="string")return y;at("getCategoryForNodeData found a non-string category for "+a+": "+y)},be.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=Ba(a,x);b===void 0&&(b=""),b!==y&&(Qr(a,x,y),_a(this,"nodeCategory",Kr,x,a,b,y))}else Qr(a,x,y)}},be.lm=function(a,y){this.jm(y,this.Ro(a))},be.Tl=function(){return!1},be.Wj=function(){return!1},be.ri=function(){return!1},be.xs=function(){return!1},be.Xj=function(){return!1};function hy(){return new Ni}function Bp(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 Bp(a,y.constructor);return typeof y}function dy(a){return Uu[a]?Uu[a]:Ye.go!==void 0&&Ye.go[a]?Ye.go[a]:null}function Ba(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 Qr(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){}}Re.Object.defineProperties(Ni.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===""&&at("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&at("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];jt(E)||at("Model.nodeDataArray must only contain Objects, not: "+E),No(E)}for(this.Tc=a,b=new Ln,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(_a(this,"nodeDataArray",Kr,"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"}}}),Ni.prototype.setCategoryForNodeData=Ni.prototype.jm,Ni.prototype.getCategoryForNodeData=Ni.prototype.Ro,Ni.prototype.removeArrayItem=Ni.prototype.ov,Ni.prototype.insertArrayItem=Ni.prototype.ts,Ni.prototype.addArrayItem=Ni.prototype.Ay,Ni.prototype.assignAllDataProperties=Ni.prototype.Do,Ni.prototype.set=Ni.prototype.set,Ni.prototype.clearUnresolvedReferences=Ni.prototype.Qy,Ni.prototype.mergeNodeDataArray=Ni.prototype.$z,Ni.prototype.removeNodeDataCollection=Ni.prototype.nA,Ni.prototype.removeNodeData=Ni.prototype.cm,Ni.prototype.addNodeDataCollection=Ni.prototype.Fy,Ni.prototype.addNodeData=Ni.prototype.xf,Ni.prototype.makeNodeDataKeyUnique=Ni.prototype.$u,Ni.prototype.findNodeDataForKey=Ni.prototype.hc,Ni.prototype.containsNodeData=Ni.prototype.lb,Ni.prototype.setKeyForNodeData=Ni.prototype.km,Ni.prototype.getKeyForNodeData=Ni.prototype.wa,Ni.prototype.updateTargetBindings=Ni.prototype.La,Ni.prototype.commit=Ni.prototype.commit,Ni.prototype.rollbackTransaction=Ni.prototype.Kf,Ni.prototype.commitTransaction=Ni.prototype.eb,Ni.prototype.startTransaction=Ni.prototype.Ea,Ni.prototype.raiseDataChanged=Ni.prototype.Fs,Ni.prototype.raiseChanged=Ni.prototype.g,Ni.prototype.raiseChangedEvent=Ni.prototype.cb,Ni.prototype.removeChangedListener=Ni.prototype.ik,Ni.prototype.addChangedListener=Ni.prototype.Pe,Ni.prototype.writeJsonValue=Ni.prototype.sm,Ni.prototype.replaceJsonObjects=Ni.prototype.dm,Ni.prototype.applyIncrementalJSON=Ni.prototype.Ky,Ni.prototype.applyIncrementalJson=Ni.prototype.Zw,Ni.prototype.toJSON=Ni.prototype.toJSON,Ni.prototype.toJson=Ni.prototype.np,Ni.prototype.toIncrementalJSON=Ni.prototype.yA,Ni.prototype.toIncrementalJson=Ni.prototype.$x,Ni.prototype.toIncrementalData=Ni.prototype.xA,Ni.prototype.clear=Ni.prototype.clear;var ES=!1,Uu={};Ni.className="Model",Ni.fromJSON=Ni.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:at("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=dy(b)):(E=dy(b),E===null&&(E=Ye[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof Ni?y=a:at("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ni.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ni.safePropertyValue=Ba,Ni.safePropertySet=Qr,Uu.Brush=wr,Uu.ChangedEvent=Gr,Uu.Geometry=ni,Uu.Margin=vi,Uu.Panel=$n,Uu.Point=Ke,Uu.Rect=vn,Uu.Size=ti,Uu.Spot=xi,Uu.Transaction=ka,Uu.UndoManager=Vr;function za(a,y,x,b){ro(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=MS,this.wk=null):(this.el=Tp,this.wk=b),this.st=new Mn}za.prototype.copy=function(){var a=new za;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},be=za.prototype,be.qb=function(a){a.classType===za&&(this.mode=a)},be.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},be.freeze=function(){return this._isFrozen=!0,this},be.ka=function(){return this._isFrozen=!1,this},be.Kx=function(a){return a===void 0&&(a=null),this.mode=Tp,this.backConverter=a,this},be.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},be.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function LS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}be.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==="")ii("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=Ba(y,b)),z!==void 0)if(E===null)x!==""&&Qr(a,x,z);else try{if(x!==""){var ee=E(z,a);Qr(a,x,ee)}else E(z,a)}catch(oe){}}}},be.sp=function(a,y,x,b){if(this.el===Tp){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,ee=a;if(E!==""&&(ee=Ba(a,E)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var oe=b!==null?b.diagram:null,re=oe!==null?oe.model:null;if(z===null){if(x!=="")re!==null?re.setDataProperty(y,x,ee):Qr(y,x,ee);else if(re!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var le=b.itemIndex,ue=b.panel.itemArray;re.ov(ue,le),re.ts(ue,le,ee)}}else try{if(x!==""){var fe=z(ee,y,re);re!==null?re.setDataProperty(y,x,fe):Qr(y,x,fe)}else{var Se=z(ee,y,re);if(Se!==void 0&&re!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Pe=b.itemIndex,Ee=b.panel.itemArray;re.ov(Ee,Pe),re.ts(Ee,Pe,Se)}}}catch(Te){}}finally{this.st.remove(a)}}}},Re.Object.defineProperties(za.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&ln(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&ln(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&ln(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&ln(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&ln(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&ln(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&ln(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&ln(this),this.el=a}}}),za.prototype.updateSource=za.prototype.sp,za.prototype.updateTarget=za.prototype.Mv,za.prototype.ofModel=za.prototype.dA,za.prototype.ofObject=za.prototype.cp,za.prototype.makeTwoWay=za.prototype.Kx;var Dx="Binding",MS=new nn(za,"OneWay",1),Tp=new nn(za,"TwoWay",2);za.className="Binding",za.parseEnum=function(a,y){return function(x){return x=Xn(a,x),x===null?y:x}},za.toString=An,za.OneWay=MS,za.TwoWay=Tp;function $o(a,y,x){Ni.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Mn,this.wb=new di,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))}Pt($o,Ni),$o.constructGraphLinksModel=Ni.constructGraphLinksModel,$o.prototype.cloneProtected=function(a){Ni.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},be=$o.prototype,be.clear=function(){Ni.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},be.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)+":"+An(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+nu(this,E,!0)+"-->"+nu(this,E,!1)}return y},be.Qv=function(a,y){this.linkKeyProperty===""&&at("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ni.prototype.Qv.call(this,a,y),b=this,E=new Mn,z=new Mn,ee=new Mn,oe=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===fa?E.add(ue.newValue):ue.change===Ca&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&oe&&oe.contains(ue.object)?oe.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof Ni||b.lb(ue.object)||FS(b,ue.object).each(function(fe){z.add(fe)})))});var re=this.il;re.clear(),E.each(function(ue){re.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<re.count&&(x===null&&(x={}),y?x.removedLinkKeys=re.Fa():x.insertedLinkKeys=re.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(),re.clear(),x},be.rm=function(){var a=Ni.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},be.gp=function(a){Ni.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)},be.Rv=function(){var a=Ni.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+hc(this,this.linkDataArray,!0);return a+y},be.kv=function(a){Ni.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function FS(a,y){for(var x=new Mn,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];c0(a,y,E,E,x)}return x}be.Pv=function(a,y){this.linkKeyProperty===""&&at("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ni.prototype.Pv.call(this,a,y),b=this,E=new Mn,z=new Mn,ee=new Mn,oe=this.vh;a.changes.each(function(ue){ue.model===b&&(ue.modelChange==="linkDataArray"?ue.change===fa?E.add(ue.newValue):ue.change===Ca&&ee.add(ue.oldValue):b.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&oe&&oe.contains(ue.object)?oe.get(ue.object).each(function(fe){b.Jc(fe)&&z.add(fe)}):ue.object instanceof Ni||b.lb(ue.object)||FS(b,ue.object).each(function(fe){z.add(fe)})))});var re=this.il;re.clear(),E.each(function(ue){re.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<re.count&&(a+=(y?this.Xv:this.Vv)+hc(this,re.Fa(),!0)),0<z.count&&(a+=this.iy+hc(this,z.Fa(),!0)),0<le.count&&(a+=(y?this.Vv:this.Xv)+hc(this,le.Fa(),!0)),le.clear(),re.clear(),a},be.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)&&at("applyIncrementalJson cannot change Model properties"),Ni.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]);AS(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)},$o.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Kr){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),Qr(x,b,E);return}}else if(a.change===fa){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,jt(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===Ca){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,jt(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}}Ni.prototype.changeState.call(this,a,y)}},be=$o.prototype,be.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),Qr(x,this.nodeKeyProperty,a),this.xf(x))}return a}},be.yx=function(a){return nu(this,a,!0)},be.wv=function(a,y){bg(this,a,y,!0)},be.Bx=function(a){return nu(this,a,!1)},be.Bv=function(a,y){bg(this,a,y,!1)};function nu(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Ba(y,a),a!==void 0))){if(dc(a))return a;at((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function bg(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=Ba(y,E);z!==x&&(lh(a,z,y),Qr(y,E,x),a.hc(x)===null&&sh(a,x,y),_a(a,b?"linkFromKey":"linkToKey",Kr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Qr(y,E,x)}}be.zx=function(a){return g0(this,a,!0)},be.xv=function(a,y){Eg(this,a,y,!0)},be.Cx=function(a){return g0(this,a,!1)},be.Cv=function(a,y){Eg(this,a,y,!1)};function g0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Ba(y,a),y===void 0?"":y)}function Eg(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=Ba(y,E);z===void 0&&(z=""),z!==x&&(Qr(y,E,x),_a(a,b?"linkFromPortId":"linkToPortId",Kr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Qr(y,E,x)}}be.Ef=function(a){if(a===null)return p0;var y=this.je;return y===""?p0:(a=Ba(a,y),a===void 0?p0:a)},be.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=Ba(a,x);if(b===void 0&&(b=p0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)lh(this,b[z],a);for(Qr(a,x,y),E=y.length,z=0;z<E;z++){var ee=y[z];this.hc(ee)===null&&sh(this,ee,a)}_a(this,"linkLabelKeys",Kr,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Qr(a,x,y)}},be.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Ba(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&&sh(this,y,a),_a(this,"linkLabelKeys",fa,x,a,null,y,null,E)))}else at(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},be.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=Ba(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(lh(this,y,a),_a(this,"linkLabelKeys",Ca,x,a,y,null,E,null)))}else b!==void 0&&at(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},be.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Ba(a,y),y!==void 0)){if(dc(y))return y;at("Key value for link data "+a+" is not a number or a string: "+y)}}},be.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=Ba(a,x);b!==y&&this.jh(y)===null&&(Qr(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),_a(this,"linkKey",Kr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qr(a,x,y)}},be.jh=function(a){return a===null&&at("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&dc(a)?this.wb.I(a):null},be.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))){Qr(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Qr(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Qr(a,y,x)}}}}},be.Jc=function(a){return a===null?!1:this.$f.contains(a)},be.fi=function(a){a!==null&&(No(a),this.Jc(a)||NS(this,a,!0))};function NS(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&&at("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)),_a(a,"linkDataArray",fa,"linkDataArray",a,null,y,null,b),cy(a,y)}be.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)},be.bm=function(a){a!==null&&kS(this,a,!0)};function kS(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(_a(a,"linkDataArray",Ca,"linkDataArray",a,y,null,b,null),x=nu(a,y,!0),lh(a,x,y),x=nu(a,y,!1),lh(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],lh(a,x,y)}be.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)},be.Zz=function(a){if(this.linkKeyProperty===""&&at("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 oe=this.jh(ee);oe!==z&&(oe!==null?(this.Do(oe,z),AS(this,z,oe)):(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 cy(a,y){var x=nu(a,y,!0);x=a.Vl(x),a.hc(x)===null&&sh(a,x,y),x=nu(a,y,!1),x=a.Vl(x),a.hc(x)===null&&sh(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&&sh(a,x,y)}be.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):f0(this,a,!0),jt(a)&&(ro(a),this.lf!==""&&Qr(a,this.lf,void 0),this.mf!==""&&Qr(a,this.mf,void 0),this.je!==""&&Qr(a,this.je,[])),a},be.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Ba(a,y)},be.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Ba(a,y),y!==void 0)){if(dc(y))return y;at("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},be.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=Ba(a,x);b!==y&&(lh(this,b,a),Qr(a,x,y),this.hc(y)===null&&sh(this,y,a),_a(this,"nodeGroupKey",Kr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qr(a,x,y)}},$o.prototype.copyNodeData=function(a){return a===null?null:(a=Ni.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Ba(a,this.Je)===void 0||Qr(a,this.Je,void 0),a)},$o.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){bg(this,a,x,!0);return}if(y===this.linkToKeyProperty){bg(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Eg(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Eg(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=Ba(a,y);b!==x&&(Qr(a,y,x),this.Fs(a,y,b,x))},be=$o.prototype,be.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&&Ba(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},be.jp=function(a,y){Ni.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(nu(this,b,!0)===E){var ee=this.lf;Qr(b,ee,z),_a(this,"linkFromKey",Kr,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)}if(nu(this,b,!1)===E&&(ee=this.mf,Qr(b,ee,z),_a(this,"linkToKey",Kr,ee,b,E,z),typeof ee=="string"&&this.La(b,ee)),ee=this.Ef(b),Array.isArray(ee))for(var oe=ee.length,re=this.je,le=0;le<oe;le++)ee[le]===E&&(ee[le]=z,_a(this,"linkLabelKeys",fa,re,b,E,z,le,le))}},be.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Qr(a,b,x),_a(this,"nodeGroupKey",Kr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},be.Lv=function(){Ni.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},be.fm=function(a){Ni.prototype.fm.call(this,a),a=this.wa(a);var y=Dp(this,a);if(y!==null){var x=en();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;_a(this,"nodeGroupKey",Kr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(nu(this,b,!0)===a&&(E=this.lf,_a(this,"linkFromKey",Kr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),nu(this,b,!1)===a&&(E=this.mf,_a(this,"linkToKey",Kr,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,oe=0;oe<z;oe++)E[oe]===a&&(_a(this,"linkLabelKeys",fa,ee,b,a,a,oe,oe),x.push(b))}for(y=0;y<x.length;y++)lh(this,a,x[y]);xn(x)}},be.em=function(a){Ni.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&sh(this,y,a)},be.qp=function(a){Ni.prototype.qp.call(this,a);var y=this.lh(a);lh(this,y,a)},be.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Ba(a,y),y===void 0))return"";if(typeof y=="string")return y;at("getCategoryForLinkData found a non-string category for "+a+": "+y)},$o.prototype.getLinkCategoryForData=function(a){return this.ps(a)},$o.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=Ba(a,x);b===void 0&&(b=""),b!==y&&(Qr(a,x,y),_a(this,"linkCategory",Kr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qr(a,x,y)}},$o.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},be=$o.prototype,be.lm=function(a,y){Ni.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function AS(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))}be.Wj=function(){return!0},be.ri=function(){return!0},be.xs=function(){return!0},be.Xj=function(){return!0},Re.Object.defineProperties($o.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];jt(E)||at("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),No(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Ln,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 Mn,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,_a(this,"linkDataArray",Kr,"linkDataArray",this,y,a),y=0;y<x;y++)cy(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"}}}),$o.prototype.setCategoryForLinkData=$o.prototype.lp,$o.prototype.getCategoryForLinkData=$o.prototype.ps,$o.prototype.assignAllDataProperties=$o.prototype.Do,$o.prototype.setGroupKeyForNodeData=$o.prototype.mp,$o.prototype.getGroupKeyForNodeData=$o.prototype.lh,$o.prototype.isGroupForNodeData=$o.prototype.Yu,$o.prototype.copyLinkData=$o.prototype.Jo,$o.prototype.mergeLinkDataArray=$o.prototype.Zz,$o.prototype.removeLinkDataCollection=$o.prototype.lA,$o.prototype.removeLinkData=$o.prototype.bm,$o.prototype.addLinkDataCollection=$o.prototype.Ey,$o.prototype.addLinkData=$o.prototype.fi,$o.prototype.containsLinkData=$o.prototype.Jc,$o.prototype.makeLinkDataKeyUnique=$o.prototype.Bs,$o.prototype.findLinkDataForKey=$o.prototype.jh,$o.prototype.setKeyForLinkData=$o.prototype.Ks,$o.prototype.getKeyForLinkData=$o.prototype.Ac,$o.prototype.removeLabelKeyForLinkData=$o.prototype.Qx,$o.prototype.addLabelKeyForLinkData=$o.prototype.Bu,$o.prototype.setLabelKeysForLinkData=$o.prototype.Ls,$o.prototype.getLabelKeysForLinkData=$o.prototype.Ef,$o.prototype.setToPortIdForLinkData=$o.prototype.Cv,$o.prototype.getToPortIdForLinkData=$o.prototype.Cx,$o.prototype.setFromPortIdForLinkData=$o.prototype.xv,$o.prototype.getFromPortIdForLinkData=$o.prototype.zx,$o.prototype.setToKeyForLinkData=$o.prototype.Bv,$o.prototype.getToKeyForLinkData=$o.prototype.Bx,$o.prototype.setFromKeyForLinkData=$o.prototype.wv,$o.prototype.getFromKeyForLinkData=$o.prototype.yx,$o.prototype.clear=$o.prototype.clear;var p0=Object.freeze([]);$o.className="GraphLinksModel",Uu.GraphLinksModel=$o,Ni.constructGraphLinksModel=Ni.constructGraphLinksModel=function(){return new $o},Ni.initDiagramModel=hy=function(){return new $o};function hl(a,y){Ni.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))}Pt(hl,Ni),hl.constructGraphLinksModel=Ni.constructGraphLinksModel,hl.prototype.cloneProtected=function(a){Ni.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},be=hl.prototype,be.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)+":"+An(E)}}return y},be.rm=function(){var a=Ni.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},be.gp=function(a){Ni.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},be.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&at("applyIncrementalJson cannot change Model properties"),Ni.prototype.fp.call(this,a)},be.Vl=function(a){return a},be.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Ba(a,y),y!==void 0)){if(dc(y))return y;at("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},be.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=Ba(a,x);b!==y&&(lh(this,b,a),Qr(a,x,y),this.hc(y)===null&&sh(this,y,a),_a(this,"nodeParentKey",Kr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qr(a,x,y)}},be.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Ba(a,y),y===void 0)?"":typeof y=="string"?y:(at("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},hl.prototype.getLinkCategoryForData=function(a){return this.ss(a)},hl.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=Ba(a,x);b===void 0&&(b=""),b!==y&&(Qr(a,x,y),_a(this,"parentLinkCategory",Kr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Qr(a,x,y)}},hl.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},hl.prototype.copyNodeData=function(a){return a===null?null:(a=Ni.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Ba(a,this.Ke)===void 0||Qr(a,this.Ke,void 0),a)},hl.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=Ba(a,y);b!==x&&(Qr(a,y,x),this.Fs(a,y,b,x))},be=hl.prototype,be.jp=function(a,y){Ni.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},be.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Qr(a,b,x),_a(this,"nodeParentKey",Kr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},be.fm=function(a){Ni.prototype.fm.call(this,a),a=this.wa(a);var y=Dp(this,a);if(y!==null){var x=en();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;_a(this,"nodeParentKey",Kr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)lh(this,a,x[y]);xn(x)}},be.em=function(a){Ni.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&sh(this,y,a)},be.qp=function(a){Ni.prototype.qp.call(this,a);var y=this.mh(a);lh(this,y,a)},be.lm=function(a,y){Ni.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},be.Tl=function(){return!0},be.xs=function(){return!0},Re.Object.defineProperties(hl.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"}}}),hl.prototype.setParentLinkCategoryForNodeData=hl.prototype.Ms,hl.prototype.getParentLinkCategoryForNodeData=hl.prototype.ss,hl.prototype.setParentKeyForNodeData=hl.prototype.qe,hl.prototype.getParentKeyForNodeData=hl.prototype.mh,hl.className="TreeModel",Uu.TreeModel=hl;function ha(a){ta.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Xu,this.Ti=0,this.Zv=new Ke,this.Jp=this.me=0,this.Xr=new jp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Xu,this.K=dl,this.nd=Mg,this.hd=oy,this.tf=6,this.Nn=P0,a&&Object.assign(this,a)}Pt(ha,ta),ha.prototype.cloneProtected=function(a){ta.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},ha.prototype.qb=function(a){a.classType===ha?a===x0||a===w0||a===y0||a===S0||a===Mg?this.sorting=a:a===_c||a===Lg||a===dl||a===fc?this.direction=a:a===jd||a===cc||a===Xu||a===Yu?this.arrangement=a:(a===kf||a===P0)&&(this.nodeDiameterFormula=a):ta.prototype.qb.call(this,a)},ha.prototype.createNetwork=function(){return new Fg(this)},ha.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 Ln;y.addAll(a.iterator),a=new Ln;var x=new Ln,b=this.sort(y),E,z,ee=this.Jp,oe=this.arrangement,re=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 Se=this.sweepAngle;if((!isFinite(Se)||360<Se||1>Se)&&(Se=360),y=this.spacing,isFinite(y)||(y=NaN),oe===Yu&&re===kf?oe=Xu:oe===Yu&&re!==kf&&(oe=this.arrangement),(this.direction===_c||this.direction===Lg)&&this.sorting!==Mg){for(re=0;!(re>=b.length)&&(a.add(b.M(re)),!(re+1>=b.length));re+=2)x.add(b.M(re+1));this.direction===_c?(this.arrangement===Yu&&a.reverse(),b=new Ln,b.addAll(a),b.addAll(x)):(this.arrangement===Yu&&x.reverse(),b=new Ln,b.addAll(x),b.addAll(a))}re=b.length;for(var Pe=z=E=0;Pe<b.length;Pe++){var Ee=fe+Se*z*(this.direction===dl?1:-1)/re,Te=b.M(Pe).diameter;isNaN(Te)&&(Te=gc(b.M(Pe),Ee)),360>Se&&(Pe===0||Pe===b.length-1)&&(Te/=2),E+=Te,z++}if(isNaN(le)||oe===Yu){if(isNaN(y)&&(y=6),oe!==Xu&&oe!==Yu){for(z=-1/0,ee=0;ee<re;ee++)Pe=b.M(ee),E=b.M(ee===re-1?0:ee+1),isNaN(Pe.diameter)&&gc(Pe,0),isNaN(E.diameter)&&gc(E,0),z=Math.max(z,(Pe.diameter+E.diameter)/2);ee=z+y,oe===jd?le=(z+y)/(2*Math.PI/re):le=m0(this,ee*(360<=Se?re:re-1),ue,fe*Math.PI/180,Se*Math.PI/180)}else le=m0(this,E+(360<=Se?re:re-1)*(oe!==Yu?y:1.6*y),ue,fe*Math.PI/180,Se*Math.PI/180);z=le*ue}else if(z=le*ue,Pe=fy(this,le,z,fe*Math.PI/180,Se*Math.PI/180),isNaN(y))(oe===Xu||oe===Yu)&&(y=(Pe-E)/(360<=Se?re:re-1));else if(oe===Xu||oe===Yu)Pe=(Pe-E)/(360<=Se?re:re-1),Pe<y?(le=m0(this,E+y*(360<=Se?re:re-1),ue,fe*Math.PI/180,Se*Math.PI/180),z=le*ue):y=Pe;else{for(ee=-1/0,E=0;E<re;E++)Ee=b.M(E),Te=b.M(E===re-1?0:E+1),isNaN(Ee.diameter)&&gc(Ee,0),isNaN(Te.diameter)&&gc(Te,0),ee=Math.max(ee,(Ee.diameter+Te.diameter)/2);ee+=y,E=m0(this,ee*(360<=Se?re:re-1),ue,fe*Math.PI/180,Se*Math.PI/180),E>le?(le=E,z=le*ue):ee=Pe/(360<=Se?re:re-1)}if(this.kw=oe,this.lc=le,this.Zm=ue,this.lw=fe,this.Wp=Se,this.Ti=y,this.me=z,this.Jp=ee,y=b,b=this.kw,oe=this.lc,le=this.lw,ue=this.Wp,fe=this.Ti,Se=this.me,re=this.Jp,this.direction!==_c&&this.direction!==Lg||b!==Yu)if(this.direction===_c||this.direction===Lg){switch(ee=0,b){case cc:ee=180*v0(this,oe,Se,le,re)/Math.PI;break;case Xu:re=y=0,ee=a.first(),ee!==null&&(y=gc(ee,Math.PI/2)),ee=x.first(),ee!==null&&(re=gc(ee,Math.PI/2)),ee=180*v0(this,oe,Se,le,fe+(y+re)/2)/Math.PI;break;case jd:ee=ue/y.length}if(this.direction===_c){switch(b){case cc:Rp(this,a,le,fc);break;case Xu:Ip(this,a,le,fc);break;case jd:Op(this,a,ue/2,le,fc)}switch(b){case cc:Rp(this,x,le+ee,dl);break;case Xu:Ip(this,x,le+ee,dl);break;case jd:Op(this,x,ue/2,le+ee,dl)}}else{switch(b){case cc:Rp(this,x,le,fc);break;case Xu:Ip(this,x,le,fc);break;case jd:Op(this,x,ue/2,le,fc)}switch(b){case cc:Rp(this,a,le+ee,dl);break;case Xu:Ip(this,a,le+ee,dl);break;case jd:Op(this,a,ue/2,le+ee,dl)}}}else switch(b){case cc:Rp(this,y,le,this.direction);break;case Xu:Ip(this,y,le,this.direction);break;case jd:Op(this,y,ue,le,this.direction);break;case Yu:DS(this,y,ue,le,this.direction)}else DS(this,y,ue,le-ue/2,dl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Op(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 oe=y.length,re=0;re<oe;re++){var le=b+(E===dl?re*x/(360<=z?oe:oe-1):-(re*x)/oe),ue=y.M(re),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 Ip(a,y,x,b){var E=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var oe=y.length,re=0;re<oe;re++){var le=y.M(re),ue=y.M(re===oe-1?0:re+1),fe=z*Math.sin(x);le.centerX=E*Math.cos(x),le.centerY=fe,le.actualAngle=180*x/Math.PI,isNaN(le.diameter)&&gc(le,0),isNaN(ue.diameter)&&gc(ue,0),le=v0(a,E,z,b===dl?x:-x,(le.diameter+ue.diameter)/2+ee),x+=b===dl?le:-le}}function Rp(a,y,x,b){var E=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var oe=y.length,re=0;re<oe;re++){var le=y.M(re);le.centerX=E*Math.cos(x),le.centerY=z*Math.sin(x),le.actualAngle=180*x/Math.PI,le=v0(a,E,z,b===dl?x:-x,ee),x+=b===dl?le:-le}}function DS(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new jp,360>x){for(z=b+(E===dl?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,TS(a,y,x,b,E)}else BS(a,y,x,b,E);a.Xr.commit(y)}function BS(a,y,x,b,E){var z=a.lc,ee=a.Ti,oe=a.Zm,re=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=Ke.alloc();for(var fe=0;fe<ue.length&&(ue[fe].centerX=re,ue[fe].centerY=le,!(fe>=ue.length-1));fe++)OS(a,re,le,ue,fe,E,z)||IS(a,re,le,ue,fe,E,z),re=z.x,le=z.y;if(Ke.free(z),a.mj++,!(23<a.mj)){re=ue[0].centerX,le=ue[0].centerY,z=ue[ue.length-1].centerX,fe=ue[ue.length-1].centerY;var Se=Math.abs(re-z)-((ue[0].width+ue[ue.length-1].width)/2+ee),Pe=Math.abs(le-fe)-((ue[0].height+ue[ue.length-1].height)/2+ee);ee=0,1>Math.abs(Pe)?Math.abs(re-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ee=0):ee=0<Pe?Pe:1>Math.abs(Se)?0:Se,re=Math.abs(z)>Math.abs(fe)?0<z!=le>fe:0<fe!=re<z,(re=E===dl?re:!re)&&(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*oe,BS(a,y,x,b,E))}}}function TS(a,y,x,b,E){for(var z=a.lc,ee=a.me,oe=a.Zm,re=z*Math.cos(b*Math.PI/180),le=ee*Math.sin(b*Math.PI/180),ue=Ke.alloc(),fe=y.Fa(),Se=0;Se<fe.length&&(fe[Se].centerX=re,fe[Se].centerY=le,!(Se>=fe.length-1));Se++)OS(a,re,le,fe,Se,E,ue)||IS(a,re,le,fe,Se,E,ue),re=ue.x,le=ue.y;if(Ke.free(ue),a.mj++,!(23<a.mj)){if(re=Math.atan2(le,re),re=E===dl?a.gt-re:re-a.gt,re=Math.abs(re)<Math.abs(re-2*Math.PI)?re:re-2*Math.PI,z=re*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],re=0;re<fe.length;re++)ee.mk[re]=fe[re].bounds.x,ee.tm[re]=fe[re].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*oe,TS(a,y,x,b,E))}}function OS(a,y,x,b,E,z,ee){var oe=a.lc,re=a.me,le=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ue=!1;if(0<=x!=(z===dl)){if(z=y+a,z>oe){if(z=y-a,z<-oe)return ee.x=z,ee.y=le,!1;ue=!0}}else if(z=y-a,z<-oe){if(z=y+a,z>oe)return ee.x=z,ee.y=le,!1;ue=!0}return le=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,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 IS(a,y,x,b,E,z,ee){var oe=a.lc,re=a.me,le=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===dl)){if(z=x-a,z<-re){if(z=x+a,z>re){ee.x=le,ee.y=z;return}b=!0}}else if(z=x+a,z>re){if(z=x-a,z<-re){ee.x=le,ee.y=z;return}b=!0}le=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>y!==b&&(le=-le),ee.x=le,ee.y=z}ha.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},ha.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 Ke(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))},ha.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function fy(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,oe=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),re=0,le=0;le<=z;le++){b!==void 0&&E!==void 0?re=b+le*E/z:re=le*Math.PI/(2*z);var ue=Math.sin(re);ee+=Math.sqrt(1-a*a*ue*ue)*oe}return b!==void 0&&E!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function m0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?fy(a,1,x,b,E):fy(a,1,x))}function v0(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 oe=0;;oe++){var re=Math.sin(b+oe*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*re*re)*a,ee>=E)return oe*a}}ha.prototype.sort=function(a){switch(this.sorting){case y0:break;case S0:a.reverse();break;case x0:a.sort(this.comparer);break;case w0:a.sort(this.comparer),a.reverse();break;case Mg:return this.ak(Bx(a));default:at("Invalid sorting type.")}return a};function Bx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Ln;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 oe=a.M(ee).edgesCount;oe>E&&(E=oe,z=ee)}else for(ee=0;ee<a.length;ee++)oe=y[ee],oe>E&&(E=oe,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}ha.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=[],oe=[];b=[],E=new Ln;for(var re=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(re===0)x.push(le);else{for(var fe=ue=1/0,Se=-1,Pe=[],Ee=0;Ee<x.length;Ee++)0>y[x[Ee]].indexOf(x[Ee===x.length-1?0:Ee+1])&&Pe.push(Ee===x.length-1?0:Ee+1);if(Pe.length===0)for(Ee=0;Ee<x.length;Ee++)Pe.push(Ee);for(Ee=0;Ee<Pe.length;Ee++){for(var Te=Pe[Ee],_e=y[le],Ge=0,st=0;st<ee.length;st++){var ut=z[ee[st]],pt=z[oe[st]];if(ut<pt){var Nt=ut;ut=pt}else Nt=pt;if(Nt<Te&&Te<=ut)for(pt=0;pt<_e.length;pt++){var Qt=_e[pt];0>x.indexOf(Qt)||Nt<z[Qt]&&z[Qt]<ut||Nt===z[Qt]||ut===z[Qt]||Ge++}else for(pt=0;pt<_e.length;pt++)Qt=_e[pt],0>x.indexOf(Qt)||Nt<z[Qt]&&z[Qt]<ut&&Nt!==z[Qt]&&ut!==z[Qt]&&Ge++}for(_e=Ge,st=Ge=0;st<y[le].length;st++)Nt=x.indexOf(y[le][st]),0<=Nt&&(Nt=Math.abs(Te-(Nt>=Te?Nt+1:Nt)),Ge+=Nt<x.length+1-Nt?Nt:x.length+1-Nt);for(st=0;st<ee.length;st++)Nt=z[ee[st]],ut=z[oe[st]],Nt>=Te&&Nt++,ut>=Te&&ut++,Nt>ut&&(pt=ut,ut=Nt,Nt=pt),ut-Nt<(x.length+2)/2==(Nt<Te&&Te<=ut)&&Ge++;(_e<ue||_e===ue&&Ge<fe)&&(ue=_e,fe=Ge,Se=Te)}for(x.splice(Se,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),oe.push(fe))}re++}}for(ee=x.length;;){for(z=!0,oe=0;oe<b.length;oe++)if(re=b[oe],le=y[re][0],ue=x.indexOf(le),0<=ue){for(Se=fe=0;Se<y[le].length;Se++)Pe=x.indexOf(y[le][Se]),0>Pe||Pe===ue||(Ee=Pe>ue?Pe-ue:ue-Pe,fe+=Pe<ue!=Ee>ee-Ee?1:-1);x.splice(0>fe?ue:ue+1,0,re),b.splice(oe,1),oe--}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},Re.Object.defineProperties(ha.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!==Yu&&a!==Xu&&a!==cc&&a!==jd||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==dl&&a!==fc&&a!==_c&&a!==Lg||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==y0&&a!==S0&&a!==x0&&!w0&&a!==Mg||(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!==P0&&a!==kf||(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 Xu=new nn(ha,"ConstantSpacing",0),cc=new nn(ha,"ConstantDistance",1),jd=new nn(ha,"ConstantAngle",2),Yu=new nn(ha,"Packed",3),dl=new nn(ha,"Clockwise",4),fc=new nn(ha,"Counterclockwise",5),_c=new nn(ha,"BidirectionalLeft",6),Lg=new nn(ha,"BidirectionalRight",7),y0=new nn(ha,"Forwards",8),S0=new nn(ha,"Reverse",9),x0=new nn(ha,"Ascending",10),w0=new nn(ha,"Descending",11),Mg=new nn(ha,"Optimized",12),P0=new nn(ha,"Pythagorean",13),kf=new nn(ha,"Circular",14);ha.className="CircularLayout",ha.ConstantSpacing=Xu,ha.ConstantDistance=cc,ha.ConstantAngle=jd,ha.Packed=Yu,ha.Clockwise=dl,ha.Counterclockwise=fc,ha.BidirectionalLeft=_c,ha.BidirectionalRight=Lg,ha.Forwards=y0,ha.Reverse=S0,ha.Ascending=x0,ha.Descending=w0,ha.Optimized=Mg,ha.Pythagorean=P0,ha.Circular=kf;function jp(){this.Pl=-1/0,this.tm=this.mk=null}jp.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},jp.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]}},jp.className="VertexArrangement";function Fg(a){zr.call(this,a)}Pt(Fg,zr),Fg.prototype.createVertex=function(){return new zp(this)},Fg.prototype.createEdge=function(){return new C0(this)},Fg.className="CircularNetwork";function zp(a){os.call(this,a),this.u=this.Si=NaN}Pt(zp,os);function gc(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Yu)if(x.nodeDiameterFormula===kf)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===kf?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Re.Object.defineProperties(zp.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)}}}),zp.className="CircularVertex";function C0(a){zl.call(this,a)}Pt(C0,zl),C0.className="CircularEdge";function Ts(a){ta.call(this),this.ah=null,this.An=0,this.$d=new ti(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)}Pt(Ts,ta),Ts.prototype.cloneProtected=function(a){ta.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},Ts.prototype.createNetwork=function(){return new Af(this)},Ts.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}RS(this,0,a)}this.network=y;var ee=b=x.iterator;b=this.arrangementSpacing;var oe=ee.count,re=!0;z=E=0;for(var le=en(),ue=0;ue<oe+y.vertexes.count+2;ue++)le[ue]=null;oe=0,ee.reset();for(var fe=vn.alloc();ee.next();)if(ue=ee.value,this.computeBounds(ue,fe),re)re=!1,E=fe.x+fe.width/2,z=fe.y+fe.height/2,le[0]=new Ke(fe.x+fe.width+b.width,fe.y),le[1]=new Ke(fe.x,fe.y+fe.height+b.height),oe=2;else{var Se=jS(le,oe,E,z,fe.width,fe.height,b),Pe=le[Se],Ee=new Ke(Pe.x+fe.width+b.width,Pe.y),Te=new Ke(Pe.x,Pe.y+fe.height+b.height);for(Se+1<oe&&le.splice(Se+1,0,null),le[Se]=Ee,le[Se+1]=Te,oe++,Se=Pe.x-fe.x,Pe=Pe.y-fe.y,ue=ue.vertexes.iterator;ue.next();)Ee=ue.value,Ee.centerX+=Se,Ee.centerY+=Pe}for(vn.free(fe),ue=y.vertexes.iterator;ue.next();)ee=ue.value,Se=ee.bounds,2>oe?(E=Se.x+Se.width/2,z=Se.y+Se.height/2,le[0]=new Ke(Se.x+Se.width+b.width,Se.y),le[1]=new Ke(Se.x,Se.y+Se.height+b.height),oe=2):(re=jS(le,oe,E,z,Se.width,Se.height,b),fe=le[re],Pe=new Ke(fe.x+Se.width+b.width,fe.y),Se=new Ke(fe.x,fe.y+Se.height+b.height),re+1<oe&&le.splice(re+1,0,null),le[re]=Pe,le[re+1]=Se,oe++,ee.centerX=fe.x+ee.width/2,ee.centerY=fe.y+ee.height/2);for(xn(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)}}HS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},Ts.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},Ts.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 RS(a,y,x){if(Tx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Ox(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,RS(a,y+1,x),HS(a,z),Ix(a,E),y=E.vertexes.Fa(),y.sort(function(ee,oe){return ee===null||oe===null||ee===oe?0:oe.Vd-ee.Vd}),x=0;x<y.length;x++)Rx(a,y[x]);a.Zf=b}}function Tx(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 Ox(a,y){for(var x=a.network,b=new Af(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var ee=new WS;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 Ln),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var oe=z.value;E=oe.fromVertex,ee=oe.toVertex,E.network===b&&ee.network===b?b.Bo(oe):E.network===b?(oe=E.Hj,oe===null&&(oe=new Ln,E.Hj=oe),oe.add(ee),E.Vd--,E.sh+=ee.sh):ee.network===b&&(oe=ee.Hj,oe===null&&(oe=new Ln,ee.Hj=oe),oe.add(E),ee.Vd--,ee.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Bt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var re=E.Hj;if(re!==null&&0<re.count&&(ee=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=ee))){for(var le=oe=0,ue=re.count-ee;ue<re.count;ue++){var fe=re.M(ue),Se=null;for(z=fe.edges.iterator;z.next();){var Pe=z.value;if(Pe.Ax(fe)===E){Se=Pe;break}}Se!==null&&(le+=Se.length,oe+=fe.width*fe.height)}z=E.centerX,re=E.centerY,ue=E.width,fe=E.height,Se=E.focus,Pe=ue*fe,1>Pe&&(Pe=1),oe=Bt.sqrt((oe+Pe+le*le*4/(ee*ee))/Pe),ee=(oe-1)*ue/2,oe=(oe-1)*fe/2,E.bounds=new vn(z-Se.x-ee,re-Se.y-oe,ue+2*ee,fe+2*oe),E.focus=new Ke(Se.x+ee,Se.y+oe)}}return a.network=b,x}function Ix(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 vn(b.centerX-z,b.centerY-ee,E.Ss,E.Qs),b.focus=new Ke(z,ee),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Rx(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=Bt.sqrt(z*z+ee*ee)/2;for(var oe=!1,re=ee=0,le=0,ue=y.vertexes.iterator;ue.next();){var fe=ue.value;1>=fe.Vd?re++:(oe=!0,le++,ee+=Math.atan2(y.centerY-fe.centerY,y.centerX-fe.centerX))}if(re!==0){for(0<le&&(ee/=le),le=y=0,y=oe?2*Math.PI/(re+1):2*Math.PI/re,re%2===0&&(le=y/2),1<x.count&&x.sort(function(Pe,Ee){return Pe===null||Ee===null||Pe===Ee?0:Ee.width*Ee.height-Pe.width*Pe.height}),oe=re%2===0?0:1,x=x.iterator;x.next();)if(re=x.value,!(1<re.Vd||a.isFixed(re))){for(ue=null,fe=re.edges.iterator;fe.next();){ue=fe.value;break}fe=re.width;var Se=re.height;fe=Bt.sqrt(fe*fe+Se*Se)/2,ue=z+ue.length+fe,fe=ee+(y*(oe/2>>1)+le)*(oe%2===0?1:-1),re.centerX=b+ue*Math.cos(fe),re.centerY=E+ue*Math.sin(fe),oe++}}}}function jS(a,y,x,b,E,z,ee){var oe=9e19,re=-1,le=0;e:for(;le<y;le++){var ue=a[le],fe=ue.x-x,Se=ue.y-b;if(fe=fe*fe+Se*Se,fe<oe){for(Se=le-1;0<=Se;Se--)if(a[Se].y>ue.y&&a[Se].x-ue.x<E+ee.width)continue e;for(Se=le+1;Se<y;Se++)if(a[Se].x>ue.x&&a[Se].y-ue.y<z+ee.height)continue e;re=le,oe=fe}}return re}Ts.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ts.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 zS(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 oe=z.width;return z=z.height,b+E<ee?a>y+z?(x=b+E-ee,a=a-y-z,Bt.sqrt(x*x+a*a)):a+x<y?(b=b+E-ee,a=a+x-y,Bt.sqrt(b*b+a*a)):ee-(b+E):b>ee+oe?a>y+z?(x=b-ee-oe,a=a-y-z,Bt.sqrt(x*x+a*a)):a+x<y?(b=b-ee-oe,a=a+x-y,Bt.sqrt(b*b+a*a)):b-(ee+oe):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function HS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,jx(a)););a.ah=null}function jx(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 oe=y[ee];oe.forceX=0,oe.forceY=0;var re=oe.centerX;oe=oe.centerY,b=Math.min(b,re),E=Math.max(E,re),x=Math.min(x,oe),z=Math.max(z,oe)}(E=E-b>z-x)?y.sort(function(Te,_e){return Te===null||_e===null||Te===_e?0:Te.centerX-_e.centerX}):y.sort(function(Te,_e){return Te===null||_e===null||Te===_e?0:Te.centerY-_e.centerY}),x=a.Zf;var le=b=oe=0;for(z=0;z<y.length;z++){ee=y[z],b=ee.bounds,oe=ee.focus,re=b.x+oe.x;var ue=b.y+oe.y;b=ee.charge*a.electricalFieldX(re,ue),le=ee.charge*a.electricalFieldY(re,ue),b+=ee.mass*a.gravitationalFieldX(re,ue),le+=ee.mass*a.gravitationalFieldY(re,ue),ee.forceX+=b,ee.forceY+=le;for(var fe=z+1;fe<y.length;fe++){var Se=y[fe];if(Se!==ee){b=Se.bounds,oe=Se.focus,le=b.x+oe.x;var Pe=b.y+oe.y;if(re-le>x||le-re>x){if(E)break}else if(ue-Pe>x||Pe-ue>x){if(!E)break}else{var Ee=zS(ee,Se);1>Ee?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new b0),Ee=b.random(),oe=b.random(),re>le?(b=Math.abs(Se.bounds.right-ee.bounds.x),b=(1+b)*Ee):re<le?(b=Math.abs(Se.bounds.x-ee.bounds.right),b=-(1+b)*Ee):(b=Math.max(Se.width,ee.width),b=(1+b)*Ee-b/2),ue>Pe?(le=Math.abs(Se.bounds.bottom-ee.bounds.y),le=(1+le)*oe):re<le?(le=Math.abs(Se.bounds.y-ee.bounds.bottom),le=-(1+le)*oe):(le=Math.max(Se.height,ee.height),le=(1+le)*oe-le/2)):(oe=-(ee.charge*Se.charge)/(Ee*Ee),b=(le-re)/Ee*oe,le=(Pe-ue)/Ee*oe),ee.forceX+=b,ee.forceY+=le,Se.forceX-=b,Se.forceY-=le}}}}for(E=a.network.edges.iterator;E.next();)oe=E.value,x=oe.fromVertex,z=oe.toVertex,ee=x.bounds,re=x.focus,b=ee.x+re.x,ee=ee.y+re.y,ue=z.bounds,fe=z.focus,re=ue.x+fe.x,ue=ue.y+fe.y,fe=zS(x,z),1>fe?(fe=a.randomNumberGenerator,fe===null&&(a.randomNumberGenerator=fe=new b0),oe=fe.random(),fe=fe.random(),b=(b>re?1:-1)*(1+(z.width>x.width?z.width:x.width))*oe,le=(ee>ue?1:-1)*(1+(z.height>x.height?z.height:x.height))*fe):(oe=oe.stiffness*(fe-oe.length),b=(re-b)/fe*oe,le=(ue-ee)/fe*oe),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}Ts.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},Ts.prototype.moveFixedVertex=function(){},Ts.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ts.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=sr,y.toSpot=sr)}},Ts.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=vn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,vn.free(x)}x=vn.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()}vn.free(x)},Ts.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ts.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},Ts.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},Ts.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},Ts.prototype.electricalFieldX=function(){return 0},Ts.prototype.electricalFieldY=function(){return 0},Ts.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},Ts.prototype.gravitationalFieldX=function(){return 0},Ts.prototype.gravitationalFieldY=function(){return 0},Ts.prototype.isFixed=function(a){return a.isFixed},Re.Object.defineProperties(Ts.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"&&at('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())}}}),Ts.className="ForceDirectedLayout";function WS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}WS.className="ForceDirectedSubnet";function Af(a){zr.call(this,a)}Pt(Af,zr),Af.prototype.createVertex=function(){return new Hp(this)},Af.prototype.createEdge=function(){return new Wp(this)},Af.className="ForceDirectedNetwork";function Hp(a){os.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}Pt(Hp,os),Re.Object.defineProperties(Hp.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)}}}),Hp.className="ForceDirectedVertex";function Wp(a){zl.call(this,a),this.j=this.o=NaN}Pt(Wp,zl),Re.Object.defineProperties(Wp.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)}}}),Wp.className="ForceDirectedEdge";function b0(){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()}b0.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},b0.className="RandomNumberGenerator";function Er(a){ta.call(this),this.kc=this.ie=25,this.K=0,this.Dk=N0,this.Zk=k0,this.Qk=A0,this.bj=4,this.rk=D0,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 Ke,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Pt(Er,ta),Er.prototype.cloneProtected=function(a){ta.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},Er.prototype.qb=function(a){a.classType===Er?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:at("Unknown enum value: "+a):ta.prototype.qb.call(this,a)},Er.prototype.createNetwork=function(){return new kg(this)},Er.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!==Kp&&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===Kp&&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,oe=0,re=0,le=0;if(b.link!==null){if(oe=b.link,oe===null)continue;var ue=E.node;if(ee=z.node,ue===null||ee===null)continue;var fe=oe.fromNode;re=oe.toNode;for(var Se=oe.fromPort;Se!==null&&!Se.Ed();)Se=Se.panel;for(oe=oe.toPort;oe!==null&&!oe.Ed();)oe=oe.panel;if(b.rev){le=fe;var Pe=Se;fe=re,Se=oe,re=le,oe=Pe}var Ee=E.focus;le=z.focus;var Te=b.rev?z.bounds:E.bounds;Pe=Ke.alloc(),ue!==fe?Te.w()&&fe.isVisible()?fe.actualBounds.w()?(Bd(fe,Se,Uo,Pe),Pe.x+=fe.actualBounds.x-Te.x,Pe.y+=fe.actualBounds.y-Te.y):(Bd(fe,Se,Uo,Pe),Pe.w()||Pe.assign(Ee)):Pe.assign(Ee):Te.w()?(Bd(fe,Se,Uo,Pe),Pe.w()||Pe.assign(Ee)):Pe.assign(Ee),fe=b.rev?E.bounds:z.bounds,ue=Ke.alloc(),ee!==re?fe.w()&&re.isVisible()?re.actualBounds.w()?(Bd(re,oe,Uo,ue),ue.x+=re.actualBounds.x-fe.x,ue.y+=re.actualBounds.y-fe.y):(Bd(re,oe,Uo,ue),ue.w()||ue.assign(le)):ue.assign(le):fe.w()?(Bd(re,oe,Uo,ue),ue.w()||ue.assign(le)):ue.assign(le),this.K===90||this.K===270?(ee=Math.round((Pe.x-Ee.x)/this.kc),re=Pe.x,oe=Math.round((ue.x-le.x)/this.kc),le=ue.x):(ee=Math.round((Pe.y-Ee.y)/this.kc),re=Pe.y,oe=Math.round((ue.y-le.y)/this.kc),le=ue.y),Ke.free(Pe),Ke.free(ue),b.portFromColOffset=ee,b.portFromPos=re,b.portToColOffset=oe,b.portToPos=le}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Pe=E.layer,ue=z.layer,fe=0,Te=b.link,Te!==null){var _e=Te.fromPort,Ge=Te.toPort;if(_e!==null&&Ge!==null){var st=Te.fromNode;if(Se=Te.toNode,st!==null&&Se!==null){var ut=F0(this,!0),pt=F0(this,!1),Nt=this.setsPortSpots?ut:Te.computeSpot(!0,_e);Ee=this.setsPortSpots?pt:Te.computeSpot(!1,Ge);var Qt=Te.isOrthogonal;Nt.$c()&&Nt.Hf(pt)&&Ee.$c()&&Ee.Hf(ut)?fe=0:(ut=Te.getLinkPoint(st,_e,Nt,!0,Qt,Se,Ge,Ke.alloc()),pt=Te.getLinkDirection(st,_e,ut,Nt,!0,Qt,Se,Ge),Ke.free(ut),Nt.ys()||pt!==$S(this,b,!0)?this.setsPortSpots&&st!==null&&st.ports.count===1&&b.rev&&(fe+=1):fe+=1,Nt=Te.getLinkPoint(Se,Ge,Ee,!1,Qt,st,_e,Ke.alloc()),Te=Te.getLinkDirection(Se,Ge,Nt,Ee,!1,Qt,st,_e),Ke.free(Nt),Ee.ys()||Te!==$S(this,b,!1)?this.setsPortSpots&&Se!==null&&Se.ports.count===1&&b.rev&&(fe+=2):fe+=2)}}}if(Se=fe,fe=Se===1||Se===3,(Se=Se===2||Se===3)&&(Ee=a.createVertex(),Ee.node=null,Ee.Dj=1,Ee.layer=Pe,Ee.near=E,a.dh(Ee),E=a.Zj(E,Ee,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=ee,E.portToColOffset=0,E.portFromPos=re,E.portToPos=0,E=Ee),Te=1,fe&&Te--,Pe-ue>Te&&0<Pe){for(b.valid=!1,Ee=a.createVertex(),Ee.node=null,Ee.Dj=2,Ee.layer=Pe-1,a.dh(Ee),E=a.Zj(E,Ee,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Se?0:ee,E.portToColOffset=0,E.portFromPos=Se?0:re,E.portToPos=0,E=Ee,Pe--;Pe-ue>Te&&0<Pe;)Ee=a.createVertex(),Ee.node=null,Ee.Dj=3,Ee.layer=Pe-1,a.dh(Ee),E=a.Zj(E,Ee,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=Ee,Pe--;E=a.Zj(Ee,z,b.link),E.valid=!fe,fe&&(Ee.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=oe,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=pc(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),mc(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Er.prototype.linkMinLength=function(){return 1};function gy(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}Er.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},Er.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 Pl(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 Su(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 GS(a,y,x){var b=pc(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 oe=0,re=b[ee],le=re.near;if(le!==null&&le.layer===re.layer)if(re=le.index,re>ee)for(var ue=ee+1;ue<re;ue++){var fe=b[ue];fe.near===le&&fe.Dj===le.Dj||oe++}else for(ue=ee-1;ue>re;ue--)fe=b[ue],fe.near===le&&fe.Dj===le.Dj||oe++;var Se;if(0<=x)for(re=b[ee].sourceEdgesArrayAccess,le=0;le<re.length;le++){var Pe=re[le];if(Pe.valid&&Pe.fromVertex.layer!==y)for(fe=Pe.fromVertex.index,ue=Pe.portToPos,Pe=Pe.portFromPos,Se=le+1;Se<re.length;Se++){var Ee=re[Se];if(Ee.valid&&Ee.fromVertex.layer!==y){var Te=Ee.fromVertex.index,_e=Ee.portToPos;Ee=Ee.portFromPos,ue<_e&&(fe>Te||fe===Te&&Pe>Ee)&&oe++,_e<ue&&(Te>fe||Te===fe&&Ee>Pe)&&oe++}}}if(0>=x){for(re=b[ee].destinationEdgesArrayAccess,le=0;le<re.length;le++)if(Pe=re[le],Pe.valid&&Pe.toVertex.layer!==y)for(fe=Pe.toVertex.index,ue=Pe.portToPos,Pe=Pe.portFromPos,Se=le+1;Se<re.length;Se++)Ee=re[Se],Ee.valid&&Ee.toVertex.layer!==y&&(Te=Ee.toVertex.index,_e=Ee.portToPos,Ee=Ee.portFromPos,Pe<Ee&&(fe>Te||fe===Te&&ue>_e)&&oe++,Ee<Pe&&(Te>fe||Te===fe&&_e>ue)&&oe++)}for(z[ee*E+ee]=oe,re=ee+1;re<E;re++){var Ge=0,st=0;if(0<=x){oe=b[ee].sourceEdgesArrayAccess;var ut=b[re].sourceEdgesArrayAccess;for(le=0;le<oe.length;le++)if(Pe=oe[le],Pe.valid&&Pe.fromVertex.layer!==y)for(fe=Pe.fromVertex.index,Pe=Pe.portFromPos,Se=0;Se<ut.length;Se++)Ee=ut[Se],Ee.valid&&Ee.fromVertex.layer!==y&&(Te=Ee.fromVertex.index,Ee=Ee.portFromPos,(fe<Te||fe===Te&&Pe<Ee)&&st++,(Te<fe||Te===fe&&Ee<Pe)&&Ge++)}if(0>=x){for(oe=b[ee].destinationEdgesArrayAccess,ut=b[re].destinationEdgesArrayAccess,le=0;le<oe.length;le++)if(Pe=oe[le],Pe.valid&&Pe.toVertex.layer!==y)for(fe=Pe.toVertex.index,ue=Pe.portToPos,Se=0;Se<ut.length;Se++)Ee=ut[Se],Ee.valid&&Ee.toVertex.layer!==y&&(Te=Ee.toVertex.index,_e=Ee.portToPos,(fe<Te||fe===Te&&ue<_e)&&st++,(Te<fe||Te===fe&&_e<ue)&&Ge++)}z[ee*E+re]=Ge,z[re*E+ee]=st}}return mc(a,y,b),z}Er.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=GS(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 E0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=pc(b,E),ee=b.tc[E],oe=0,re=0;re<ee;re++){var le=z[re].destinationEdgesArrayAccess;if(le!==null)for(var ue=0;ue<le.length;ue++){var fe=le[ue];if(fe.valid&&fe.toVertex.layer!==E){var Se=fe.fromVertex.column+fe.portFromColOffset,Pe=fe.toVertex.column+fe.portToColOffset;oe+=(Math.abs(Se-Pe)+1)*gy(fe)}}}mc(b,E,z),y+=oe}return y}Er.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 py(a,y,x){for(var b=pc(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var oe=b[ee],re=null;0>=x&&(re=oe.sourceEdgesArrayAccess);var le=null;0<=x&&(le=oe.destinationEdgesArrayAccess);var ue=0,fe=0,Se=oe.near;if(Se!==null&&Se.layer===oe.layer&&(ue+=Se.column-1,fe++),re!==null)for(Se=0;Se<re.length;Se++){oe=re[Se];var Pe=oe.fromVertex;oe.valid&&!oe.rev&&Pe.layer!==y&&(ue+=Pe.column,fe++)}if(le!==null)for(re=0;re<le.length;re++)oe=le[re],Se=oe.toVertex,oe.valid&&!oe.rev&&Se.layer!==y&&(ue+=Se.column,fe++);z[ee]=fe===0?-1:ue/fe}return mc(a,y,b),z}function KS(a,y,x){for(var b=pc(a,y),E=a.tc[y],z=[],ee=0;ee<E;ee++){var oe=b[ee],re=null;0>=x&&(re=oe.sourceEdgesArrayAccess);var le=null;0<=x&&(le=oe.destinationEdgesArrayAccess);var ue=0,fe=[],Se=oe.near;if(Se!==null&&Se.layer===oe.layer&&(fe[ue]=Se.column-1,ue++),oe=void 0,re!==null)for(Se=0;Se<re.length;Se++){oe=re[Se];var Pe=oe.fromVertex;oe.valid&&!oe.rev&&Pe.layer!==y&&(fe[ue]=Pe.column+oe.portFromColOffset,ue++)}if(le!==null)for(re=0;re<le.length;re++)oe=le[re],Se=oe.toVertex,oe.valid&&!oe.rev&&Se.layer!==y&&(fe[ue]=Se.column+oe.portToColOffset,ue++);ue===0?z[ee]=-1:(fe.sort(function(Ee,Te){return Ee-Te}),le=ue>>1,z[ee]=ue&1?fe[le]:fe[le-1]+fe[le]>>1)}return mc(a,y,b),z}function Gp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();){var oe=ee.value,re=oe.toVertex,le=y.layer-re.layer;oe=a.linkMinLength(oe),le===oe&&Gp(a,re,x,b,E,z)}if(z)for(ee=y.sourceEdges;ee.next();)oe=ee.value,re=oe.fromVertex,le=re.layer-y.layer,oe=a.linkMinLength(oe),le===oe&&Gp(a,re,x,b,E,z)}}function my(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var ee=y.destinationEdges;ee.next();)my(a,ee.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,b,E,z)}}Er.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Sy: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(;zx(a)!==null;){for(E=ZS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=ZS(a);for(E=VS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=VS(a);E=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var oe=ee.value;if(oe.valid){for(var re=0,le=oe.destinationEdges;le.next();)le.value.toVertex.valid&&re++;le=0;for(var ue=oe.sourceEdges;ue.next();)ue.value.fromVertex.valid&&le++;(E===null||z<re-le)&&(E=oe,z=re-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 N0: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&&vy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&vy(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 Kp: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 zx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function ZS(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 VS(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 vy(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,vy(a,E))}y.finish=a.Kn,a.Kn++}Er.prototype.assignLayers=function(){switch(this.Zk){case xy:US(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=YS(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 k0:for(US(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&JS(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 US(a){for(var y=a.network.vertexes.iterator;y.next();){var x=XS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function XS(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,XS(a,z)+E)}y.layer=x}else x=y.layer;return x}function YS(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,YS(a,z)+E)}y.layer=x}else x=y.layer;return x}function JS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)JS(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],oe=ee.fromVertex,re=ee.toVertex;ee=a.linkMinLength(ee),oe.layer-re.layer>ee&&Gp(a,oe,0,-1,!0,!1)}for(Gp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,oe=0,re=null,ee=a.network.vertexes.iterator;ee.next();){var le=ee.value;if(le.component===1){var ue=0,fe=!1,Se=le.sourceEdgesArrayAccess;E=Se.length;for(var Pe=0;Pe<E;Pe++){var Ee=Se[Pe],Te=Ee.fromVertex;ue+=1,Te.component!==1&&(z+=1,Te=Te.layer-le.layer,Ee=a.linkMinLength(Ee),b=Math.min(b,Te-Ee))}for(Se=le.destinationEdgesArrayAccess,E=Se.length,Pe=0;Pe<E;Pe++)Ee=Se[Pe].toVertex,--ue,Ee.component!==1?--z:fe=!0;(re===null||ue<oe)&&!fe&&(re=le,oe=ue)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else re.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(Gp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,oe=null,re=a.network.vertexes.iterator;re.next();)if(ee=re.value,ee.component===1){for(le=0,ue=!1,Se=ee.sourceEdgesArrayAccess,fe=Se.length,Pe=0;Pe<fe;Pe++)Ee=Se[Pe].fromVertex,le+=1,Ee.component!==1?b+=1:ue=!0;for(Se=ee.destinationEdgesArrayAccess,fe=Se.length,Pe=0;Pe<fe;Pe++)Ee=Se[Pe],Te=Ee.toVertex,--le,Te.component!==1&&(--b,Te=ee.layer-Te.layer,Ee=a.linkMinLength(Ee),E=Math.min(E,Te-Ee));(oe===null||le>z)&&!ue&&(oe=ee,z=le)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else oe.component=0}}}function $S(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}Er.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy: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 A0: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&&QS(this,x);break;case Py: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&&_S(this,x)}};function QS(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&&QS(a,b))}function _S(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&&_S(a,b))}Er.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Pl(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)L0(this,b,1),Du(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Pl(this)),b=this.Ia;0<=b;b--)L0(this,b,-1),Du(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Pl(this))}for(Su(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)L0(this,b,0),Du(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Pl(this)),b=this.Ia;0<=b;b--)L0(this,b,0),Du(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Pl(this))}Su(this,y);var z,ee,oe;switch(this.rk){case by:break;case Ey:for(oe=a+1;(b=this.countCrossings())<oe;)for(oe=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=Du(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Du(this,b,1)||z;for(E=this.countCrossings(),E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Du(this,b,1)||z;for(E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Du(this,b,-1)||z;for(E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Du(this,b,0)||z;for(E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Du(this,b,0)||z;E>=a?Su(this,y):(a=E,y=Pl(this))}break;default:case D0:for(x=this.Ia,ee=0,oe=a+1;(b=this.countCrossings())<oe;){for(oe=b,z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Du(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Du(this,b,1)||z;for(E=this.countCrossings(),E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Du(this,b,1)||z;for(E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Du(this,b,-1)||z;for(E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=x;b>=ee;b--)z=Du(this,b,0)||z;for(E>=a?Su(this,y):(a=E,y=Pl(this)),z=!0;z;)for(z=!1,b=ee;b<=x;b++)z=Du(this,b,0)||z;E>=a?Su(this,y):(a=E,y=Pl(this))}}Su(this,y)};function L0(a,y,x){var b=pc(a,y),E=a.tc[y],z=KS(a,y,x),ee=py(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 oe=!0,re;oe;)for(oe=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(oe=!0,re=z[x],z[x]=z[x+1],z[x+1]=re,re=ee[x],ee[x]=ee[x+1],ee[x+1]=re,re=b[x],b[x]=b[x+1],b[x+1]=re);for(x=z=0;x<E;x++)re=b[x],re.index=x,z+=a.nodeMinColumnSpace(re,!0),re.column=z,z+=1,z+=a.nodeMinColumnSpace(re,!1);mc(a,y,b)}function Du(a,y,x){var b=pc(a,y),E=a.tc[y];x=GS(a,y,x);var z,ee=[];for(z=0;z<E;z++)ee[z]=-1;var oe=[];for(z=0;z<E;z++)oe[z]=-1;for(var re=!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],Se=0,Pe=0,Ee=b[z].column,Te=b[z+1].column,_e=a.nodeMinColumnSpace(b[z],!0),Ge=a.nodeMinColumnSpace(b[z],!1),st=a.nodeMinColumnSpace(b[z+1],!0),ut=a.nodeMinColumnSpace(b[z+1],!1);_e=Ee-_e+st,Ge=Te-Ge+ut;var pt=b[z].sourceEdges.iterator;for(pt.reset();pt.next();)if(st=pt.value,ut=st.fromVertex,st.valid&&ut.layer===y){for(st=0;b[st]!==ut;)st++;st<z&&(Se+=2*(z-st),Pe+=2*(z+1-st)),st===z+1&&(Se+=1),st>z+1&&(Se+=4*(st-z),Pe+=4*(st-(z+1)))}for(pt=b[z].destinationEdges.iterator,pt.reset();pt.next();)if(st=pt.value,ut=st.toVertex,st.valid&&ut.layer===y){for(st=0;b[st]!==ut;)st++;st===z+1&&(Pe+=1)}for(pt=b[z+1].sourceEdges.iterator,pt.reset();pt.next();)if(st=pt.value,ut=st.fromVertex,st.valid&&ut.layer===y){for(st=0;b[st]!==ut;)st++;st<z&&(Se+=2*(z+1-st),Pe+=2*(z-st)),st===z&&(Pe+=1),st>z+1&&(Se+=4*(st-(z+1)),Pe+=4*(st-z))}for(pt=b[z+1].destinationEdges.iterator,pt.reset();pt.next();)if(st=pt.value,ut=st.toVertex,st.valid&&ut.layer===y){for(st=0;b[st]!==ut;)st++;st===z&&(Se+=1)}st=ut=0,pt=ee[b[z].index];var Nt=oe[b[z].index],Qt=ee[b[z+1].index],ri=oe[b[z+1].index];pt!==-1&&(ut+=Math.abs(pt-Ee),st+=Math.abs(pt-Ge)),Nt!==-1&&(ut+=Math.abs(Nt-Ee),st+=Math.abs(Nt-Ge)),Qt!==-1&&(ut+=Math.abs(Qt-Te),st+=Math.abs(Qt-_e)),ri!==-1&&(ut+=Math.abs(ri-Te),st+=Math.abs(ri-_e)),(Pe<Se-.5||Pe===Se&&fe<ue-.5||Pe===Se&&fe===ue&&st<ut-.5)&&(le=re=!0,b[z].column=Ge,b[z+1].column=_e,ue=b[z],b[z]=b[z+1],b[z+1]=ue)}for(z=0;z<E;z++)b[z].index=z;return mc(a,y,b),re}Er.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Xx)!==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=Ng(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Ng(this,y,-1)||x;x=Ng(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)yy(this,y,1);for(y=this.Md-1;0<=y;y--)yy(this,y,-1);yy(this,this.Md,0)}if(a&&(qS(this,-1),qS(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Ng(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Ng(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Ng(this,y,0)||x}}else Kx(this)};function Ng(a,y,x){for(var b=!1;Hx(a,y,x);)b=!0;return b}function Hx(a,y,x){var b,E=pc(a,y),z=a.tc[y],ee=py(a,y,-1);if(0<x)for(b=0;b<z;b++)ee[b]=-1;var oe=py(a,y,1);if(0>x)for(b=0;b<z;b++)oe[b]=-1;for(var re=!1,le=!0;le;)for(le=!1,b=0;b<z;b++){var ue=E[b].column,fe=a.nodeMinColumnSpace(E[b],!0),Se=a.nodeMinColumnSpace(E[b],!1),Pe=0;0>b-1||ue-E[b-1].column-1>fe+a.nodeMinColumnSpace(E[b-1],!1)?Pe=ue-1:Pe=ue,fe=b+1>=z||E[b+1].column-ue-1>Se+a.nodeMinColumnSpace(E[b+1],!0)?ue+1:ue;var Ee=Se=0,Te=0;if(0>=x)for(var _e=E[b].sourceEdges.iterator;_e.next();){var Ge=_e.value,st=Ge.fromVertex;if(Ge.valid&&st.layer!==y){var ut=gy(Ge),pt=Ge.portFromColOffset;Ge=Ge.portToColOffset,st=st.column,Se+=(Math.abs(ue+Ge-(st+pt))+1)*ut,Ee+=(Math.abs(Pe+Ge-(st+pt))+1)*ut,Te+=(Math.abs(fe+Ge-(st+pt))+1)*ut}}if(0<=x)for(_e=E[b].destinationEdges.iterator;_e.next();)Ge=_e.value,st=Ge.toVertex,Ge.valid&&st.layer!==y&&(ut=gy(Ge),pt=Ge.portFromColOffset,Ge=Ge.portToColOffset,st=st.column,Se+=(Math.abs(ue+pt-(st+Ge))+1)*ut,Ee+=(Math.abs(Pe+pt-(st+Ge))+1)*ut,Te+=(Math.abs(fe+pt-(st+Ge))+1)*ut);Ge=pt=ut=0,_e=ee[E[b].index],st=oe[E[b].index],_e!==-1&&(ut+=Math.abs(_e-ue),pt+=Math.abs(_e-Pe),Ge+=Math.abs(_e-fe)),st!==-1&&(ut+=Math.abs(st-ue),pt+=Math.abs(st-Pe),Ge+=Math.abs(st-fe)),Ee<Se||Ee===Se&&pt<ut?(le=re=!0,E[b].column=Pe):(Te<Se||Te===Se&&Ge<ut)&&(le=re=!0,E[b].column=fe)}return mc(a,y,E),a.normalize(),re}function yy(a,y,x){var b=pc(a,y),E=a.tc[y],z=KS(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 oe=b[x].column,re=a.nodeMinColumnSpace(b[x],!0),le=a.nodeMinColumnSpace(b[x],!1),ue=0;if(ee[x]===-1)if(x===0&&x===E-1)ue=oe;else if(x===0){var fe=b[x+1].column;fe-oe===le+a.nodeMinColumnSpace(b[x+1],!0)?ue=oe-1:ue=oe}else x===E-1?(fe=b[x-1].column,ue=oe-fe===re+a.nodeMinColumnSpace(b[x-1],!1)?oe+1:oe):(fe=b[x-1].column,re=fe+a.nodeMinColumnSpace(b[x-1],!1)+re+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,ue=(re+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,re=fe+a.nodeMinColumnSpace(b[x-1],!1)+re+1,ue=Math.max(ee[x],re)):(fe=b[x-1].column,re=fe+a.nodeMinColumnSpace(b[x-1],!1)+re+1,fe=b[x+1].column,le=fe-a.nodeMinColumnSpace(b[x+1],!0)-le-1,re<ee[x]&&ee[x]<le?ue=ee[x]:re>=ee[x]?ue=re:le<=ee[x]&&(ue=le));ue!==oe&&(z=!0,b[x].column=ue)}mc(a,y,b),a.normalize()}function Wx(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 Gx(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 oe=b.column-a.nodeMinColumnSpace(b,!0),re=b.column+a.nodeMinColumnSpace(b,!1);oe<=y&&re>=y&&(E[b.layer]=!0),oe<=x&&re>=x&&(z[b.layer]=!0)}for(oe=!0,x=!1,b=0;b<=a.Ia;b++)oe=oe&&!(E[b]&&z[b]);if(oe)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function qS(a,y){for(var x=0;x<=a.Ra;x++)for(;Wx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Gx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Pl(a),z=E0(a);for(b=z+1;z<b;){b=z,ex(a,x,1);var ee=E0(a);ee>z?Su(a,E):ee<z&&(z=ee,E=Pl(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Pl(a),z=E0(a),b=z+1;z<b;)b=z,ex(a,x,-1),ee=E0(a),ee>z?Su(a,E):ee<z&&(z=ee,E=Pl(a));a.normalize()}function ex(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&&(my(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,oe=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),re=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));oe<=re;oe++)E[ee*(a.Ra+1)+oe]=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(re=ee[ee.length-1],ee.pop(),E[re])for(E[re]=!1,z=0;z<a.le;z++)y[re*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 Kx(a){for(var y=en(),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 Mn,Zx(y,x);var z=null,ee=null,oe=null,re=null,le=(a.ve&1)!==0,ue=(a.ve&2)!==0,fe=(a.ve&4)!==0,Se=(a.ve&8)!==0;for(le&&(a.verticalAlignment(y,x,!0),z=M0(a,y,!0,!1)),y.reverse(),fe&&(a.verticalAlignment(y,x,!1),oe=M0(a,y,!1,!1)),b=Ei(y),E=b.next();!E.done;E=b.next())E.value.reverse();Se&&(a.verticalAlignment(y,x,!1),re=M0(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ee=M0(a,y,!0,!0)),xn(y),a.u(z,ee,oe,re),a.network.vertexes.each(function(Pe){var Ee=en();le&&Ee.push(z.get(Pe)),ue&&Ee.push(ee.get(Pe)),fe&&Ee.push(oe.get(Pe)),Se&&Ee.push(re.get(Pe)),Ee.sort(function(_e,Ge){return _e-Ge});var Te=Ee.length;Te=(Ee[Math.floor((Te-1)/2)]+Ee[Math.ceil((Te-1)/2)])/2,xn(Ee),Pe.zc=Te})}function Zx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,ee=a[b],oe=a[b+1],re=0;z<oe.length;re++){var le=oe[re];e:{if(le.node===null){var ue=Ly(le);if(0<ue.length){ue=ue[0].node===null;break e}}ue=!1}var fe=ue;if(re===oe.length-1||fe){for(ue=ee.length-1,fe&&(ue=Ly(le)[0].index);z<=re;){if(le=oe[z],!le.bo){fe=[];for(var Se=Ei(le.sourceEdgesArrayAccess),Pe=Se.next();!Pe.done;Pe=Se.next())Pe=Pe.value,Pe.valid&&fe.push(Pe);le.bo=fe}for(le=Ei(le.bo),fe=le.next();!fe.done;fe=le.next())fe=fe.value,Se=fe.fromVertex.index,(Se<E||Se>ue)&&y.add(fe);z++}E=ue}}}Er.prototype.verticalAlignment=function(a,y,x){Vx(a),a=Ei(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Ei(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var ee=x?Ly(z):Yx(z),oe=ee.length;if(0<oe){ee.sort(function(fe,Se){return fe.vi-Se.vi});var re=(oe-1)/2;for(oe=Math.floor(re),re=Math.ceil(re);oe<=re;oe++)if(z.align===z){var le=ee[oe],ue=void 0;ue=x?B0(le,z):B0(z,le),!y.contains(ue)&&E<le.vi&&(le.align=z,z.root=le.root,z.align=le.root,E=le.vi)}}}}};function Vx(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 M0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Ei(y),ee=z.next();!ee.done;ee=z.next()){var oe=Ei(ee.value);for(ee=oe.next();!ee.done;ee=oe.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=Ei(y),oe=z.next();!oe.done;oe=z.next()){oe=Ei(oe.value);for(var re=oe.next();!re.done;re=oe.next())if(re=re.value,re.root===re){for(var le=0,ue=re;ue.align!==re;){var fe=ue.align,Se=ee?ue.width:ue.height,Pe=ee?fe.width:fe.height;if(x){var Ee=B0(ue,fe),Te=Ee.portFromPos,_e=Ee.portToPos;Ee.link!==null&&(ue.node&&ue.node!==Ee.link.fromNode&&(Te=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Ee.link.toNode&&(_e=ee?fe.focusX:fe.focusY))}else Ee=B0(fe,ue),Te=Ee.portToPos,_e=Ee.portFromPos,Ee.link!==null&&(ue.node&&ue.node!==Ee.link.toNode&&(Te=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Ee.link.fromNode&&(_e=ee?fe.focusX:fe.focusY));Se=b?ue.qg+(Se-Te)-(Pe-_e):ue.qg+Te-_e,fe.qg=Se,le=Math.min(le,Se),ue=ue.align}ue=re;do ue.qg=ue.qg-le,ue=ue.align;while(ue!==re)}}for(x=Ei(y),ee=x.next();!ee.done;ee=x.next())for(z=Ei(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&tx(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,oe=0;do{for(z=y[ee][oe];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(oe=nx(z,y),oe.sd.shift=Math.min(oe.sd.shift,z.sd.shift+z.zc+z.qg-(oe.zc+oe.qg+(E?oe.width:oe.height)+a.columnSpacing)));oe=z.vi+1}while(ee<y.length&&oe<y[ee].length&&z.sd===y[ee][oe].sd)}for(a=new di,y=Ei(y),ee=y.next();!ee.done;ee=y.next())for(x=Ei(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 tx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=nx(b,x),z=E.root;tx(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 nx(a,y){var x=a.Tz;return a=a.vi,1>a&&at("Could not determine previous vertex in layer"),y[x][a-1]}Er.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=en(),E=en(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var oe=Ux(this,y[ee],b,E,ee);oe<z&&(x=ee,z=oe)}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(re){return function(le){le.value+=re.delta}}(z)));xn(b),xn(E)};function Ux(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(oe){var re=oe.key;oe=oe.value,re=a.K===90||a.K===270?re.width:re.height,oe<z&&(z=oe),oe+re>ee&&(ee=oe+re)}),x[E]=z,b[E]=ee,ee-z}Er.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=F0(this,!0),y=F0(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 F0(a,y){return a.K===270?y?La:Ka:a.K===90?y?Ka:La:a.K===180?y?Pa:Ga:y?Ga:Pa}Er.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,oe=-1/0;a.next();){var re=a.value,le=re.layer,ue=re.column|0;b?(ee=y.x+this.kc*ue,le=this.Kd[le]):(ee=this.Kd[le],le=y.y+this.kc*ue),re.centerX=ee,re.centerY=le,x&&isFinite(re.zc)&&(b?re.node?re.x=y.x+re.zc:re.centerX=y.x+re.zc:re.node?re.y=y.y+re.zc:re.centerY=y.y+re.zc),z=Math.min(re.x,z),E=Math.min(re.y,E),b?(ee=z,oe=Math.max(oe,re.bounds.right)):(ee=E,oe=Math.max(oe,re.bounds.bottom))}for(this.xw=oe-ee,z=y.x-z,y=y.y-E,this.Rf=new Ke(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Er.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 vn(0,0,x,Math.abs(this.Ta[0]))):y.push(new vn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new vn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new vn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new vn(0,0,Math.abs(this.Ta[0]),x)):y.push(new vn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new vn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new vn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Er.prototype.commitLayers=function(){},Er.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,oe=b.toPort;if(E!==null){var re=E.findVisibleNode();re!==null&&re!==E&&(E=re,ee=re.port)}z!==null&&(re=z.findVisibleNode(),re!==null&&re!==z&&(z=re,oe=re.port));var le=y.computeSpot(!0,ee);re=y.computeSpot(!1,oe);var ue=x.fromVertex,fe=x.toVertex;if(x.valid)y.curve===tu&&y.pointsCount===4&&(ue.column===fe.column&&this.alignOption===0?(x=y.getLinkPoint(E,ee,le,!0,!1,z,oe),oe=y.getLinkPoint(z,oe,re,!1,!1,E,ee),x.w()||x.set(E.actualBounds.center),oe.w()||oe.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+oe.x)/3,(2*x.y+oe.y)/3),y.yf((x.x+2*oe.x)/3,(x.y+2*oe.y)/3),y.yf(oe.x,oe.y)):(x=b=!1,ee!==null&&le===Jr&&(b=!0),oe!==null&&re===Jr&&(x=!0),(b||x)&&(re=null,b&&(re=y.getLinkPointFromPoint(E,ee,ee.ga(Uo),y.i(3),!0),re.w()||re.set(E.actualBounds.center),y.L(0,re.x,re.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,oe,oe.ga(Uo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),re&&(z=y.i(2),y.L(1,(2*re.x+z.x)/3,(2*re.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 Se=!1,Pe=!1,Ee=this.ie,Te=y.firstPickIndex+1;if(y.isOrthogonal){Pe=!0;var _e=y.pointsCount;4<_e&&y.points.removeRange(2,_e-3)}else if(y.curve===tu)Se=!0,_e=y.pointsCount,4<_e&&y.points.removeRange(2,_e-3),_e===4&&(Te=2);else{_e=y.pointsCount;var Ge=le===Jr,st=re===Jr;2<_e&&Ge&&st?y.points.removeRange(1,_e-2):3<_e&&Ge&&!st?y.points.removeRange(1,_e-3):3<_e&&!Ge&&st?y.points.removeRange(2,_e-2):4<_e&&!Ge&&!st&&y.points.removeRange(2,_e-3)}if(x.rev){for(;fe!==null&&ue!==fe;){var ut=_e=null;for(Ge=fe.sourceEdges.iterator;Ge.next()&&(st=Ge.value,st.link!==x.link||(_e=st.fromVertex,ut=st.toVertex,_e.node!==null)););if(_e===null)break;if(_e!==ue){Ge=y.i(Te-1).x,st=y.i(Te-1).y;var pt=_e.centerX,Nt=_e.centerY;if(Pe)this.K===180||this.K===0?Te===y.firstPickIndex+1?(y.m(Te++,Ge,st),y.m(Te++,Ge,Nt)):(ut!==null?ut.centerY:st)!==Nt&&(ut=this.Ta[_e.layer-1]+this.Rf.x,y.m(Te++,ut,st),y.m(Te++,ut,Nt)):Te===y.firstPickIndex+1?(y.m(Te++,Ge,st),y.m(Te++,pt,st)):(ut!==null?ut.centerX:Ge)!==pt&&(ut=this.Ta[_e.layer-1]+this.Rf.y,y.m(Te++,Ge,ut),y.m(Te++,pt,ut));else if(Te===y.firstPickIndex+1){ut=Math.max(10,this.he[fe.layer]);var Qt=Math.max(10,this.Ld[fe.layer]);if(Se)this.K===180?pt<=fe.bounds.x?(fe=fe.bounds.x,y.m(Te++,fe-ut,Nt),y.m(Te++,fe,Nt),y.m(Te++,fe+Qt,Nt)):(y.m(Te++,pt-ut,Nt),y.m(Te++,pt,Nt),y.m(Te++,pt+Qt,Nt)):this.K===90?Nt>=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(Te++,pt,fe+Qt),y.m(Te++,pt,fe),y.m(Te++,pt,fe-ut)):(y.m(Te++,pt,Nt+Qt),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt-ut)):this.K===270?Nt<=fe.bounds.y?(fe=fe.bounds.y,y.m(Te++,pt,fe-ut),y.m(Te++,pt,fe),y.m(Te++,pt,fe+Qt)):(y.m(Te++,pt,Nt-ut),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt+Qt)):this.K===0&&(pt>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(Te++,fe+Qt,Nt),y.m(Te++,fe,Nt),y.m(Te++,fe-ut,Nt)):(y.m(Te++,pt+Qt,Nt),y.m(Te++,pt,Nt),y.m(Te++,pt-ut,Nt)));else{y.m(Te++,Ge,st);var ri=0;this.K===180||this.K===0?((this.K===180?pt>=fe.bounds.right:pt<=fe.bounds.x)&&(ri=(this.K===0?-ut:Qt)/2),y.m(Te++,Ge+ri,Nt)):((this.K===270?Nt>=fe.bounds.bottom:Nt<=fe.bounds.y)&&(ri=(this.K===90?-ut:Qt)/2),y.m(Te++,pt,st+ri)),y.m(Te++,pt,Nt)}}else ut=Math.max(10,this.he[_e.layer]),Qt=Math.max(10,this.Ld[_e.layer]),Se?this.K===180?(y.m(Te++,pt-ut-Ee,Nt),y.m(Te++,Math.min(pt-ut+Ee/2,pt),Nt),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt),y.m(Te++,Math.max(pt+Qt-Ee/2,pt),Nt),y.m(Te++,pt+Qt+Ee,Nt)):this.K===90?(y.m(Te++,pt,Nt+Qt+Ee),y.m(Te++,pt,Math.max(Nt+Qt-Ee/2,Nt)),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt),y.m(Te++,pt,Math.min(Nt-ut+Ee/2,Nt)),y.m(Te++,pt,Nt-ut-Ee)):this.K===270?(y.m(Te++,pt,Nt-ut-Ee),y.m(Te++,pt,Math.min(Nt-ut+Ee/2,Nt)),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt),y.m(Te++,pt,Math.max(Nt+Qt-Ee/2,Nt)),y.m(Te++,pt,Nt+Qt+Ee)):(y.m(Te++,pt+Qt+Ee,Nt),y.m(Te++,Math.max(pt+Qt-Ee/2,pt),Nt),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt),y.m(Te++,Math.min(pt-ut+Ee/2,pt),Nt),y.m(Te++,pt-ut-Ee,Nt)):y.m(Te++,pt,Nt)}fe=_e}(oe===null||le!==Jr||Pe)&&(Ge=y.i(Te-1).x,st=y.i(Te-1).y,pt=y.i(Te).x,Nt=y.i(Te).y,Pe?(Ee=this.Ld[ue.layer],this.K===180||this.K===0?(Pe=st,Pe>=ue.bounds.y&&Pe<=ue.bounds.bottom&&(this.K===180?pt>=ue.bounds.x:pt<=ue.bounds.right)&&(fe=ue.centerX+(this.K===180?-Ee:Ee),Pe<ue.bounds.y+ue.bounds.height/2?Pe=ue.bounds.y-this.kc/2:Pe=ue.bounds.bottom+this.kc/2,y.m(Te++,fe,st),y.m(Te++,fe,Pe)),y.m(Te++,pt,Pe)):(Pe=Ge,Pe>=ue.bounds.x&&Pe<=ue.bounds.right&&(this.K===270?Nt>=ue.bounds.y:Nt<=ue.bounds.bottom)&&(fe=ue.centerY+(this.K===270?-Ee:Ee),Pe<ue.bounds.x+ue.bounds.width/2?Pe=ue.bounds.x-this.kc/2:Pe=ue.bounds.right+this.kc/2,y.m(Te++,Ge,fe),y.m(Te++,Pe,fe)),y.m(Te++,Pe,Nt)),y.m(Te++,pt,Nt)):Se?(ut=Math.max(10,this.he[ue.layer]),Qt=Math.max(10,this.Ld[ue.layer]),this.K===180&&pt>=ue.bounds.x?(fe=ue.bounds.x+ue.bounds.width,y.L(Te-2,fe,st),y.L(Te-1,fe+Qt,st)):this.K===90&&Nt<=ue.bounds.bottom?(fe=ue.bounds.y,y.L(Te-2,Ge,fe),y.L(Te-1,Ge,fe-ut)):this.K===270&&Nt>=ue.bounds.y?(fe=ue.bounds.y+ue.bounds.height,y.L(Te-2,Ge,fe),y.L(Te-1,Ge,fe+Qt)):this.K===0&&pt<=ue.bounds.right&&(fe=ue.bounds.x,y.L(Te-2,fe,st),y.L(Te-1,fe-ut,st))):(ut=Math.max(10,this.he[ue.layer]),Qt=Math.max(10,this.Ld[ue.layer]),Pe=0,this.K===180||this.K===0?((this.K===180?pt<=ue.bounds.x:pt>=ue.bounds.right)&&(Pe=(this.K===0?Qt:-ut)/2),y.m(Te++,pt+Pe,st)):((this.K===270?Nt<=ue.bounds.y:Nt>=ue.bounds.bottom)&&(Pe=(this.K===90?Qt:-ut)/2),y.m(Te++,Ge,Nt+Pe)),y.m(Te++,pt,Nt)))}else{for(;ue!==null&&ue!==fe;){for(ut=_e=null,ue=ue.destinationEdges.iterator;ue.next()&&(Ge=ue.value,Ge.link!==x.link||(_e=Ge.toVertex,ut=Ge.fromVertex,ut.node!==null&&(ut=null),_e.node!==null)););if(_e===null)break;_e!==fe&&(Ge=y.i(Te-1).x,st=y.i(Te-1).y,pt=_e.centerX,Nt=_e.centerY,Pe?this.K===180||this.K===0?(ut!==null?ut.centerY:st)!==Nt&&(ut=this.Ta[_e.layer]+this.Rf.x,Te===y.firstPickIndex+1&&(ut=this.K===0?Math.max(ut,Ge):Math.min(ut,Ge)),y.m(Te++,ut,st),y.m(Te++,ut,Nt)):(ut!==null?ut.centerX:Ge)!==pt&&(ut=this.Ta[_e.layer]+this.Rf.y,Te===y.firstPickIndex+1&&(ut=this.K===90?Math.max(ut,st):Math.min(ut,st)),y.m(Te++,Ge,ut),y.m(Te++,pt,ut)):(ut=Math.max(10,this.he[_e.layer]),Qt=Math.max(10,this.Ld[_e.layer]),Se?this.K===180?(y.m(Te++,pt+Qt+Ee,Nt),y.m(Te++,Math.max(pt+Qt-Ee/2,pt),Nt),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt),y.m(Te++,Math.min(pt-ut+Ee/2,pt),Nt),y.m(Te++,pt-ut-Ee,Nt)):this.K===90?(y.m(Te++,pt,Nt-ut-Ee),y.m(Te++,pt,Math.min(Nt-ut+Ee/2,Nt)),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt),y.m(Te++,pt,Math.max(Nt+Qt-Ee/2,Nt)),y.m(Te++,pt,Nt+Qt+Ee)):this.K===270?(y.m(Te++,pt,Nt+Qt+Ee),y.m(Te++,pt,Math.max(Nt+Qt-Ee/2,Nt)),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt),y.m(Te++,pt,Math.min(Nt-ut+Ee/2,Nt)),y.m(Te++,pt,Nt-ut-Ee)):(y.m(Te++,pt-ut-Ee,Nt),y.m(Te++,Math.min(pt-ut+Ee/2,pt),Nt),y.m(Te++,pt,Nt),y.m(Te++,pt,Nt),y.m(Te++,Math.max(pt+Qt-Ee/2,pt),Nt),y.m(Te++,pt+Qt+Ee,Nt)):this.K===180?(y.m(Te++,pt+Qt,Nt),y.m(Te++,pt-ut,Nt)):this.K===90?(y.m(Te++,pt,Nt-ut),y.m(Te++,pt,Nt+Qt)):this.K===270?(y.m(Te++,pt,Nt+Qt),y.m(Te++,pt,Nt-ut)):(y.m(Te++,pt-ut,Nt),y.m(Te++,pt+Qt,Nt)))),ue=_e}Pe&&(Ge=y.i(Te-1).x,st=y.i(Te-1).y,pt=y.i(Te).x,Nt=y.i(Te).y,this.K===180||this.K===0?st!==Nt&&(ut=this.K===0?Math.min(Math.max((pt+Ge)/2,this.Ta[fe.layer]+this.Rf.x),pt):Math.max(Math.min((pt+Ge)/2,this.Ta[fe.layer]+this.Rf.x),pt),y.m(Te++,ut,st),y.m(Te++,ut,Nt)):Ge!==pt&&(ut=this.K===90?Math.min(Math.max((Nt+st)/2,this.Ta[fe.layer]+this.Rf.y),Nt):Math.max(Math.min((Nt+st)/2,this.Ta[fe.layer]+this.Rf.y),Nt),y.m(Te++,Ge,ut),y.m(Te++,pt,ut)))}b!==null&&Se&&4<=y.pointsCount&&(ee!==null&&(ee=le===Jr?y.getLinkPointFromPoint(E,ee,ee.ga(Uo),y.i(3),!0):y.i(0),le===Jr&&(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)),oe!==null&&(E=re===Jr?y.getLinkPointFromPoint(z,oe,oe.ga(Uo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),re===Jr&&(oe=y.i(y.pointsCount-3),re=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+oe.x)/2,oe.y),y.L(y.pointsCount-2,re.x,(oe.y+re.y)/2)):(y.L(y.pointsCount-2,oe.x,(E.y+oe.y)/2),y.L(y.pointsCount-3,(oe.x+re.x)/2,re.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Er.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Ln,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 oe=new vc;oe.layer=Math.floor(z.y/2);var re=b.i(0),le=b.i(b.pointsCount-1);if(oe.first=re.x*re.x+re.y,oe.jc=le.x*le.x+le.y,oe.rd=Math.min(z.x,ee.x),oe.Ic=Math.max(z.x,ee.x),oe.index=E,oe.link=b,E+2<b.pointsCount){re=b.i(E-1),le=b.i(E+2);var ue=0;re.y<z.y?ue=le.y<z.y?3:z.x<ee.x?2:1:re.y>z.y&&(ue=le.y>z.y?0:ee.x<z.x?2:1),oe.j=ue}x.push(oe)}}}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,oe=x[z].jc,re=z;re<E;re++)le=x[re],le.jc!==oe&&(ue++,oe=le.jc);this.zi(x,this.Ux,z,z+ee);var fe=1;for(oe=x[z].first,re=z;re<E;re++)le=x[re],le.first!==oe&&(fe++,oe=le.first);for(re=!0,le=fe,ue<fe?(re=!1,le=ue,oe=x[z].jc,this.zi(x,this.Js,z,z+ee)):oe=x[z].first,ue=0,fe=z;fe<E;fe++){var Se=x[fe];(re?Se.first:Se.jc)!==oe&&(ue++,oe=re?Se.first:Se.jc);var Pe=Se.link;z=Pe.i(Se.index),ee=Pe.i(Se.index+1);var Ee=this.linkSpacing*(ue-(le-1)/2);y++,Pe.uh(),Pe.L(Se.index,z.x,z.y+Ee),Pe.L(Se.index+1,ee.x,ee.y+Ee),Pe.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)&&(oe=new vc,oe.layer=Math.floor(z.x/2),re=b.i(0),le=b.i(b.pointsCount-1),oe.first=re.x+re.y*re.y,oe.jc=le.x+le.y*le.y,oe.rd=Math.min(z.y,ee.y),oe.Ic=Math.max(z.y,ee.y),oe.index=E,oe.link=b,E+2<b.pointsCount&&(re=b.i(E-1),le=b.i(E+2),ue=0,re.x<z.x?ue=le.x<z.x?3:z.y<ee.y?2:1:re.x>z.x&&(ue=le.x>z.x?0:ee.y<z.y?2:1),oe.j=ue),x.push(oe));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,oe=x[z].jc,re=z;re<E;re++)le=x[re],le.jc!==oe&&(ue++,oe=le.jc);for(this.zi(x,this.Ux,z,z+ee),fe=1,oe=x[z].first,re=z;re<E;re++)le=x[re],le.first!==oe&&(fe++,oe=le.first);for(re=!0,le=fe,ue<fe?(re=!1,le=ue,oe=x[z].jc,this.zi(x,this.Js,z,z+ee)):oe=x[z].first,ue=0,fe=z;fe<E;fe++)Se=x[fe],(re?Se.first:Se.jc)!==oe&&(ue++,oe=re?Se.first:Se.jc),Pe=Se.link,z=Pe.i(Se.index),ee=Pe.i(Se.index+1),Ee=this.linkSpacing*(ue-(le-1)/2),y++,Pe.uh(),Pe.L(Se.index,z.x+Ee,z.y),Pe.L(Se.index+1,ee.x+Ee,ee.y),Pe.zf()}z=E}a=b}}}},be=Er.prototype,be.Vx=function(a,y){return a instanceof vc&&y instanceof vc&&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},be.Ux=function(a,y){return a instanceof vc&&y instanceof vc&&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},be.Js=function(a,y){return a instanceof vc&&y instanceof vc&&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},be.B=function(a,y){return a-=y,-1<a&&1>a},be.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&at("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 pc(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 mc(a,y,x){a.He[a.tc[y]]=x}Re.Object.defineProperties(Er.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()):at("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==N0&&a!==Kp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==k0&&a!==xy&&a!==wy||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==A0&&a!==Py&&a!==Cy||(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!==by&&a!==D0&&a!==Ey||(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 N0=new nn(Er,"CycleDepthFirst",0),Sy=new nn(Er,"CycleGreedy",1),Kp=new nn(Er,"CycleFromLayers",2),k0=new nn(Er,"LayerOptimalLinkLength",0),xy=new nn(Er,"LayerLongestPathSink",1),wy=new nn(Er,"LayerLongestPathSource",2),A0=new nn(Er,"InitDepthFirstOut",0),Py=new nn(Er,"InitDepthFirstIn",1),Cy=new nn(Er,"InitNaive",2),by=new nn(Er,"AggressiveNone",0),D0=new nn(Er,"AggressiveLess",1),Ey=new nn(Er,"AggressiveMore",2),Xx=8;Er.className="LayeredDigraphLayout",Er.CycleDepthFirst=N0,Er.CycleGreedy=Sy,Er.CycleFromLayers=Kp,Er.LayerOptimalLinkLength=k0,Er.LayerLongestPathSink=xy,Er.LayerLongestPathSource=wy,Er.InitDepthFirstOut=A0,Er.InitDepthFirstIn=Py,Er.InitNaive=Cy,Er.AggressiveNone=by,Er.AggressiveLess=D0,Er.AggressiveMore=Ey,Er.PackNone=0,Er.PackExpand=1,Er.PackStraighten=2,Er.PackMedian=4,Er.PackAll=15,Er.AlignNone=0,Er.AlignUpperLeft=1,Er.AlignUpperRight=2,Er.AlignLowerLeft=4,Er.AlignLowerRight=8,Er.AlignAll=15;function vc(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}vc.className="SegInfo";function kg(a){zr.call(this,a)}Pt(kg,zr),kg.prototype.createVertex=function(){return new xu(this)},kg.prototype.createEdge=function(){return new Zp(this)},kg.className="LayeredDigraphNetwork";function xu(a){os.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}Pt(xu,os);function ix(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],b=Ei(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Ei(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;at("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=Ei(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(ix),a.co=y}return a.co}function Yx(a){if(!a.ao){for(var y=[],x=Ei(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(ix),a.ao=y}return a.ao}xu.prototype.Cl=function(a){os.prototype.Cl.call(this,a),this.bo=this.co=null},xu.prototype.Kl=function(a){os.prototype.Kl.call(this,a),this.bo=this.co=null},xu.prototype.zl=function(a){os.prototype.zl.call(this,a),this.$n=this.ao=null},xu.prototype.Jl=function(a){os.prototype.Jl.call(this,a),this.$n=this.ao=null},Re.Object.defineProperties(xu.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)}}}),xu.prototype.deleteDestinationEdge=xu.prototype.Jl,xu.prototype.addDestinationEdge=xu.prototype.zl,xu.prototype.deleteSourceEdge=xu.prototype.Kl,xu.prototype.addSourceEdge=xu.prototype.Cl,xu.className="LayeredDigraphVertex";function Zp(a){zl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Pt(Zp,zl),Re.Object.defineProperties(Zp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},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)}}}),Zp.className="LayeredDigraphEdge";function Ho(a){ta.call(this),this.Ub=new Mn,this.Wn=R0,this.ud=Jh,this.vo=z0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=H0,this.$d=new ti(10,10).freeze();var y=new Of(this);this.W=new Bu(y),this.Y=new Bu(y),this.ru=[],a&&Object.assign(this,a)}Pt(Ho,ta),Ho.prototype.cloneProtected=function(a){ta.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)},Ho.prototype.qb=function(a){a.classType===Ho?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:at("Unknown enum value: "+a):ta.prototype.qb.call(this,a)},Ho.prototype.createNetwork=function(){return new Of(this)},Ho.prototype.makeNetwork=function(a){function y(b){if(b instanceof li)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof ei){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 $t?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof co?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Ho.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==W0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof $t&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?Jh:Bf:this.ud=this.path===R0?Jh: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 Mn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof li?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Bu&&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,My(this,y));for(y=this.network.vertexes,a=null;a=Jx(y),0<a.count;)y=ox(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,My(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Bu&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Bu&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Bu&&lx(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===jy)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 Bu&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Mn,this.isValidLayout=!0};function Jx(a){var y=new Mn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Ho.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Jh:x.sourceEdges.count===0&&this.Ub.add(x);break;case Bf:x.destinationEdges.count===0&&this.Ub.add(x);break;default:at("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ox(this,a),a!==null&&this.Ub.add(a))};function ox(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Jh:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Bf:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:at("Unhandled path value "+a.ud.toString())}}return b}function My(a,y){if(y!==null){switch(a.ud){case Jh:if(0<y.destinationEdges.count){for(var x=new Ln,b=y.destinationVertexes;b.next();){var E=b.value;rx(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Bf:if(0<y.sourceEdges.count){for(x=new Ln,b=y.sourceVertexes;b.next();)E=b.value,rx(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:at("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++)My(a,x[y])}}function rx(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}Ho.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 ax(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===_h&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,ee=z.length,oe=0;oe<ee;oe++){var re=z[oe];ax(a,re),x+=re.descendantCount+1,b=Math.max(b,re.maxChildrenCount),E=Math.max(E,re.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function $x(a,y){switch(a.vo){default:case z0:return y.parent!==null?y.parent:a.W;case Oy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Ty:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case By: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}}Ho.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom($x(this,a)),a.parent!==null&&a.parent.alignment===_h){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 sx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)sx(a,y[b])}}Ho.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==_h&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Ho.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Ag:break;case Up:a.children.reverse();break;case Xp:a.children.sort(a.comparer);break;case Yp:a.children.sort(a.comparer),a.children.reverse();break;default:at("Unhandled sorting value "+a.sorting.toString())}},Ho.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Ho.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=yc(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,ee=0,oe=0,re=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(oe)):(z+=ue.width+Math.abs(oe),ee=Math.max(ee,ue.height)),oe=re)}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=vn.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=E,vn.free(E))};function yc(a){return a===zd||a===_h||a===Hd||a===gd}function Vp(a){return a===zd||a===_h}function Fy(a){var y=a.parent;if(y!==null){var x=y.alignment;if(yc(x)){if(Vp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Hd)return!0}}return!1}Ho.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=yc(z)),b=b===90||b===270,x=E===90||E===270;for(var ee=a.childrenCount===0,oe=Fy(a),re=0,le=a.comments,ue=le.length,fe=Ke.alloc(),Se=0;Se<ue;Se++){var Pe=le[Se],Ee=Pe.measuredBounds;if(b&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<E&&!z||x&&oe)if(0<=a.commentMargin)for(fe.h(a.bounds.x-a.commentMargin-Ee.width,a.bounds.y+re),Pe.move(fe),Pe=Pe.Sd();Pe.next();){var Te=Pe.value;Te.fromSpot=Pa,Te.toSpot=Ga}else for(fe.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+re),Pe.move(fe),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=Ga,Te.toSpot=Pa;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+re),Pe.move(fe),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=Ga,Te.toSpot=Pa;else for(fe.h(a.bounds.x+a.commentMargin-Ee.width,a.bounds.y+re),Pe.move(fe),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=Pa,Te.toSpot=Ga;re=0<=a.commentSpacing?re+(Ee.height+a.commentSpacing):re+(a.commentSpacing-Ee.height)}else{if(135<E&&!z||!x&&oe)if(0<=a.commentMargin)for(fe.h(a.bounds.x+re,a.bounds.y-a.commentMargin-Ee.height),Pe.move(fe),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=La,Te.toSpot=Ka;else for(fe.h(a.bounds.x+re,a.bounds.y+2*a.focus.y-a.commentMargin),Pe.move(fe),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=Ka,Te.toSpot=La;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+re,a.bounds.y+2*a.focus.y+a.commentMargin),Pe.move(fe),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=Ka,Te.toSpot=La;else for(fe.h(a.bounds.x+re,a.bounds.y+a.commentMargin-Ee.height),Pe.move(fe),Pe=Pe.Sd();Pe.next();)Te=Pe.value,Te.fromSpot=La,Te.toSpot=Ka;re=0<=a.commentSpacing?re+(Ee.width+a.commentSpacing):re+(a.commentSpacing-Ee.width)}}if(Ke.free(fe),y=re-a.commentSpacing-(b?y.height:y.width),this.ud===Jh)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)}},Ho.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 j0:ux(this,a);break;case Jp:if(a.alignment===_h)ux(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=yc(x)),b=Fy(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=Ju(a);y=E===90||E===270;var z=0,ee=a.children,oe=ee.length;for(x=0;x<oe;x++)b=ee[x],z=Math.max(z,y?b.Da.width:b.Da.height);var re=a.alignment;b=re===$h;var le=re===Qh,ue=yc(re),fe=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Se=a.nodeSpacing,Pe=this.computeNodeIndent(a),Ee=a.rowSpacing,Te=0;(b||le||a.hm||a.im&&a.maxGenerationCount===1)&&(Te=Math.max(0,a.rowIndent)),b=a.width;var _e=a.height,Ge=0,st=0,ut=0,pt=null,Nt=null,Qt=0,ri=0,Si=0,mi=0,qn=0,In=0,uo=0,to=0;if(ue&&!Vp(re)&&135<E&&ee.reverse(),Vp(re))if(1<oe)for(var gr=0;gr<oe;gr++)gr%2===0&&gr!==oe-1&&(to=Math.max(to,y?ee[gr].Da.width:ee[gr].Da.height));else oe===1&&(to=y?ee[0].Da.width:ee[0].Da.height);if(ue){switch(re){case zd:st=135>E?hx(this,a,ee,to,Ge,st):dx(this,a,ee,to,Ge,st),to=st.x,Ge=st.width,st=st.height;break;case Hd:for(pt=0;pt<oe;pt++)Nt=ee[pt],fe=Nt.Da,ut=In===0?0:Ee,y?(Nt.S.h(z-fe.width,mi+ut),Ge=Math.max(Ge,fe.width),st=Math.max(st,mi+ut+fe.height),mi+=ut+fe.height):(Nt.S.h(Si+ut,z-fe.height),Ge=Math.max(Ge,Si+ut+fe.width),st=Math.max(st,fe.height),Si+=ut+fe.width),In++;break;case gd:for(pt=0;pt<oe;pt++)Nt=ee[pt],z=Nt.Da,fe=In===0?0:Ee,y?(Nt.S.h(Se/2+a.focus.x,mi+fe),Ge=Math.max(Ge,z.width),st=Math.max(st,mi+fe+z.height),mi+=fe+z.height):(Nt.S.h(Si+fe,Se/2+a.focus.y),Ge=Math.max(Ge,Si+fe+z.width),st=Math.max(st,z.height),Si+=fe+z.width),In++}pt=kl(this,2),Nt=kl(this,2),y?(pt[0].h(0,0),pt[1].h(0,st),Nt[0].h(Ge,0)):(pt[0].h(0,0),pt[1].h(Ge,0),Nt[0].h(0,st)),Nt[1].h(Ge,st)}else for(gr=0;gr<oe;gr++){var Or=ee[gr],ss=Or.Da;if(y){0<fe&&0<In&&Si+Se+ss.width>fe&&(Si<z&&qc(a,re,z-Si,0,uo,gr-1),qn++,In=0,uo=gr,ut=st,Si=0,mi=135<E?-st-Ee:st+Ee),O0(this,Or,0,mi);var fs=0;if(In===0)pt=Or.Yo,Nt=Or.kp,Qt=ss.width,ri=ss.height,(pt===null||Nt===null||E!==Ju(Or))&&(pt=kl(this,2),Nt=kl(this,2),pt[0].h(0,0),pt[1].h(0,ri),Nt[0].h(Qt,0),Nt[1].h(Qt,ri));else{var _s=en();ri=cx(this,a,Or,pt,Nt,Qt,ri,_s),fs=ri.x,pt=_s[0],Nt=_s[1],Qt=ri.width,ri=ri.height,xn(_s),Si<ss.width&&0>fs&&(Df(a,-fs,0,uo,gr-1),I0(pt,-fs,0),I0(Nt,-fs,0),fs=0)}Or.S.h(fs,mi),Ge=Math.max(Ge,Qt),st=Math.max(st,ut+(qn===0?0:Ee)+ss.height),Si=Qt}else 0<fe&&0<In&&mi+Se+ss.height>fe&&(mi<z&&qc(a,re,0,z-mi,uo,gr-1),qn++,In=0,uo=gr,ut=Ge,mi=0,Si=135<E?-Ge-Ee:Ge+Ee),O0(this,Or,Si,0),fs=0,In===0?(pt=Or.Yo,Nt=Or.kp,Qt=ss.width,ri=ss.height,(pt===null||Nt===null||E!==Ju(Or))&&(pt=kl(this,2),Nt=kl(this,2),pt[0].h(0,0),pt[1].h(Qt,0),Nt[0].h(0,ri),Nt[1].h(Qt,ri))):(_s=en(),ri=cx(this,a,Or,pt,Nt,Qt,ri,_s),fs=ri.x,pt=_s[0],Nt=_s[1],Qt=ri.width,ri=ri.height,xn(_s),mi<ss.height&&0>fs&&(Df(a,0,-fs,uo,gr-1),I0(pt,0,-fs),I0(Nt,0,-fs),fs=0)),Or.S.h(Si,fs),st=Math.max(st,ri),Ge=Math.max(Ge,ut+(qn===0?0:Ee)+ss.width),mi=ri;In++}switch(0<qn&&(y?(st+=Math.max(0,x),Si<Ge&&qc(a,re,Ge-Si,0,uo,oe-1),0<Te&&(le||Df(a,Te,0,0,oe-1),Ge+=Te)):(Ge+=Math.max(0,x),mi<st&&qc(a,re,0,st-mi,uo,oe-1),0<Te&&(le||Df(a,0,Te,0,oe-1),st+=Te))),Te=le=0,re){case Dg:y?le+=Ge/2-a.focus.x-Pe/2:Te+=st/2-a.focus.y-Pe/2;break;case Tf:0<qn?y?le+=Ge/2-a.focus.x-Pe/2:Te+=st/2-a.focus.y-Pe/2:y?(to=ee[0].S.x+ee[0].la.x,le+=to+(ee[oe-1].S.x+ee[oe-1].la.x+2*ee[oe-1].focus.x-to)/2-a.focus.x-Pe/2):(to=ee[0].S.y+ee[0].la.y,Te+=to+(ee[oe-1].S.y+ee[oe-1].la.y+2*ee[oe-1].focus.y-to)/2-a.focus.y-Pe/2);break;case $h:y?(le-=Pe,Ge+=Pe):(Te-=Pe,st+=Pe);break;case Qh:y?(le+=Ge-a.width+Pe,Ge+=Pe):(Te+=st-a.height+Pe,st+=Pe);break;case zd:y?1<oe?le+=to+Se/2-a.focus.x:le+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<oe?Te+=to+Se/2-a.focus.y:Te+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case Hd:y?le+=Ge+Se/2-a.focus.x:Te+=st+Se/2-a.focus.y;break;case gd:break;default:st=this.customAlignment(a,le,Te,Ge,st),le=st[0],Te=st[1],Ge=st[2],st=st[3]}for(Pe=0;Pe<oe;Pe++)to=ee[Pe],y?to.S.h(to.S.x+to.la.x-le,to.S.y+(135<E?(ue?-st:-to.Da.height)+to.la.y-x:_e+x+to.la.y)):to.S.h(to.S.x+(135<E?(ue?-Ge:-to.Da.width)+to.la.x-x:b+x+to.la.x),to.S.y+to.la.y-Te);if(oe=ee=0,ue?y?(Ge=Ny(a,Ge,le),0>le&&(le=0),135<E&&(Te+=st+x),st+=_e+x,re===gd&&(ee+=Se/2+a.focus.x),oe+=_e+x):(135<E&&(le+=Ge+x),Ge+=b+x,st=ky(a,st,Te),0>Te&&(Te=0),re===gd&&(oe+=Se/2+a.focus.y),ee+=b+x):y?(a.comments===null?b>Ge&&(Ge=Ay(re,b-Ge,0),ee=Ge.x,oe=Ge.y,Ge=b,le=0):Ge=Ny(a,Ge,le),0>le&&(ee-=le,le=0),135<E&&(Te+=st+x),st=Math.max(Math.max(st,_e),st+_e+x),oe+=_e+x):(135<E&&(le+=Ge+x),Ge=Math.max(Math.max(Ge,b),Ge+b+x),a.comments===null?_e>st&&(st=Ay(re,0,_e-st),ee=st.x,oe=st.y,st=_e,Te=0):st=ky(a,st,Te),0>Te&&(oe-=Te,Te=0),ee+=b+x),0<qn)E=kl(this,4),qn=kl(this,4),y?(E[2].h(0,_e+x),E[3].h(E[2].x,st),qn[2].h(Ge,E[2].y),qn[3].h(qn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Ge,E[2].y),qn[2].h(E[2].x,st),qn[3].h(E[3].x,qn[2].y));else{for(E=kl(this,pt.length+2),qn=kl(this,Nt.length+2),re=0;re<pt.length;re++)ue=pt[re],E[re+2].h(ue.x+ee,ue.y+oe);for(re=0;re<Nt.length;re++)ue=Nt[re],qn[re+2].h(ue.x+ee,ue.y+oe)}y?(E[0].h(le,0),E[1].h(E[0].x,_e),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])),qn[0].h(le+b,0),qn[1].h(qn[0].x,_e),qn[2].y<qn[1].y&&(qn[2].x<qn[0].x?qn[2].assign(qn[1]):qn[1].assign(qn[2])),qn[3].y<qn[2].y&&(qn[3].x<qn[0].x?qn[3].assign(qn[2]):qn[2].assign(qn[3])),E[2].y-=x/2,qn[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])),qn[0].h(0,Te+_e),qn[1].h(b,qn[0].y),qn[2].x<qn[1].x&&(qn[2].y<qn[0].y?qn[2].assign(qn[1]):qn[1].assign(qn[2])),qn[3].x<qn[2].x&&(qn[3].y<qn[0].y?qn[3].assign(qn[2]):qn[2].assign(qn[3])),E[2].x-=x/2,qn[2].x-=x/2),uh(this,pt),uh(this,Nt),a.Yo=E,a.kp=qn,a.la.h(le,Te),a.Da.h(Ge,st)}break;default:at("Unhandled compaction value "+a.compaction.toString())}}};function ux(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=yc(x));var E=Fy(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=Ju(y),x=b===90||b===270;var z=0;E=y.children;for(var ee=E.length,oe=0;oe<ee;oe++){var re=E[oe];z=Math.max(z,x?re.Da.width:re.Da.height)}var le=y.alignment,ue=le===$h,fe=le===Qh;oe=yc(le);var Se=Math.max(0,y.breadthLimit);re=a.computeLayerSpacing(y);var Pe=y.nodeSpacing,Ee=a.computeNodeIndent(y),Te=ue||fe?0:Ee/2,_e=y.rowSpacing,Ge=0;(ue||fe||y.hm||y.im&&y.maxGenerationCount===1)&&(Ge=Math.max(0,y.rowIndent)),ue=y.width;var st=y.height,ut=0,pt=0,Nt=0,Qt=0,ri=0,Si=0,mi=0,qn=0,In=0,uo=0;if(oe&&!Vp(le)&&135<b&&E.reverse(),Vp(le))if(1<ee)for(var to=0;to<ee;to++){var gr=E[to],Or=gr.Da;to%2===0&&to!==ee-1?In=Math.max(In,(x?Or.width:Or.height)+a.computeBusNodeSpacing(gr)-Pe):to%2!==0&&(uo=Math.max(uo,(x?Or.width:Or.height)+a.computeBusNodeSpacing(gr)-Pe))}else ee===1&&(In=x?E[0].Da.width:E[0].Da.height);if(oe)switch(le){case zd:case _h:pt=135>b?hx(a,y,E,In,ut,pt):dx(a,y,E,In,ut,pt),In=pt.x,ut=pt.width,pt=pt.height;break;case Hd:for(Se=0;Se<ee;Se++)Te=E[Se],Nt=Te.Da,uo=mi===0?0:_e,x?(Te.S.h(z-Nt.width,ri+uo),ut=Math.max(ut,Nt.width),pt=Math.max(pt,ri+uo+Nt.height),ri+=uo+Nt.height):(Te.S.h(Qt+uo,z-Nt.height),ut=Math.max(ut,Qt+uo+Nt.width),pt=Math.max(pt,Nt.height),Qt+=uo+Nt.width),mi++;break;case gd:for(z=0;z<ee;z++)Se=E[z],Te=Se.Da,Nt=mi===0?0:_e,x?(Se.S.h(Pe/2+y.focus.x,ri+Nt),ut=Math.max(ut,Te.width),pt=Math.max(pt,ri+Nt+Te.height),ri+=Nt+Te.height):(Se.S.h(Qt+Nt,Pe/2+y.focus.y),ut=Math.max(ut,Qt+Nt+Te.width),pt=Math.max(pt,Te.height),Qt+=Nt+Te.width),mi++}else for(uo=0;uo<ee;uo++)to=E[uo],gr=to.Da,x?(0<Se&&0<mi&&Qt+Pe+gr.width>Se&&(Qt<z&&qc(y,le,z-Qt,0,qn,uo-1),Si++,mi=0,qn=uo,Nt=pt,Qt=0,ri=135<b?-pt-_e:pt+_e),Or=mi===0?Te:Pe,O0(a,to,0,ri),to.S.h(Qt+Or,ri),ut=Math.max(ut,Qt+Or+gr.width),pt=Math.max(pt,Nt+(Si===0?0:_e)+gr.height),Qt+=Or+gr.width):(0<Se&&0<mi&&ri+Pe+gr.height>Se&&(ri<z&&qc(y,le,0,z-ri,qn,uo-1),Si++,mi=0,qn=uo,Nt=ut,ri=0,Qt=135<b?-ut-_e:ut+_e),Or=mi===0?Te:Pe,O0(a,to,Qt,0),to.S.h(Qt,ri+Or),pt=Math.max(pt,ri+Or+gr.height),ut=Math.max(ut,Nt+(Si===0?0:_e)+gr.width),ri+=Or+gr.height),mi++;switch(0<Si&&(x?(pt+=Math.max(0,re),Qt<ut&&qc(y,le,ut-Qt,0,qn,ee-1),0<Ge&&(fe||Df(y,Ge,0,0,ee-1),ut+=Ge)):(ut+=Math.max(0,re),ri<pt&&qc(y,le,0,pt-ri,qn,ee-1),0<Ge&&(fe||Df(y,0,Ge,0,ee-1),pt+=Ge))),Ge=fe=0,le){case Dg:x?fe+=ut/2-y.focus.x-Ee/2:Ge+=pt/2-y.focus.y-Ee/2;break;case Tf:0<Si?x?fe+=ut/2-y.focus.x-Ee/2:Ge+=pt/2-y.focus.y-Ee/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-Ee/2):(a=E[0].S.y+E[0].la.y,Ge+=a+(E[ee-1].S.y+E[ee-1].la.y+2*E[ee-1].focus.y-a)/2-y.focus.y-Ee/2);break;case $h:x?(fe-=Ee,ut+=Ee):(Ge-=Ee,pt+=Ee);break;case Qh:x?(fe+=ut-y.width+Ee,ut+=Ee):(Ge+=pt-y.height+Ee,pt+=Ee);break;case zd:case _h:x?1<ee?fe+=In+Pe/2-y.focus.x:fe+=E[0].focus.x-y.focus.x+E[0].la.x:1<ee?Ge+=In+Pe/2-y.focus.y:Ge+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Hd:x?fe+=ut+Pe/2-y.focus.x:Ge+=pt+Pe/2-y.focus.y;break;case gd:break;default:a=a.customAlignment(y,fe,Ge,ut,pt),fe=a[0],Ge=a[1],ut=a[2],pt=a[3]}for(a=0;a<ee;a++)Ee=E[a],x?Ee.S.h(Ee.S.x+Ee.la.x-fe,Ee.S.y+(135<b?(oe?-pt:-Ee.Da.height)+Ee.la.y-re:st+re+Ee.la.y)):Ee.S.h(Ee.S.x+(135<b?(oe?-ut:-Ee.Da.width)+Ee.la.x-re:ue+re+Ee.la.x),Ee.S.y+Ee.la.y-Ge);x?(ut=Ny(y,ut,fe),0>fe&&(fe=0),135<b&&(Ge+=pt+re),pt=Math.max(Math.max(pt,st),pt+st+re)):(135<b&&(fe+=ut+re),ut=Math.max(Math.max(ut,ue),ut+ue+re),pt=ky(y,pt,Ge),0>Ge&&(Ge=0)),y.la.h(fe,Ge),y.Da.h(ut,pt)}}Ho.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new vn(b,0,E,z);if(ee===1)return y=x[0],E=y.Da.width,z=y.Da.height,new vn(b,0,E,z);for(var oe=y.nodeSpacing,re=y.rowSpacing,le=Ju(y)===90,ue=0,fe=0,Se=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Ee=x[Pe],Te=Ee.Da,_e=ue===0?0:re;if(le){var Ge=a.computeBusNodeSpacing(Ee)-oe;Ee.S.h(b-(Te.width+Ge),Se+_e),E=Math.max(E,Te.width+Ge),z=Math.max(z,Se+_e+Te.height),Se+=_e+Te.height}else Ge=a.computeBusNodeSpacing(Ee)-oe,Ee.S.h(fe+_e,b-(Te.height+Ge)),z=Math.max(z,Te.height+Ge),E=Math.max(E,fe+_e+Te.width),fe+=_e+Te.width;ue++}for(ue=0,Ee=fe,Pe=Se,le?(fe=b+oe,Se=0):(fe=0,Se=b+oe),Te=0;Te<ee;Te++)if(Te%2!==0){_e=x[Te],Ge=_e.Da;var st=ue===0?0:re;if(le){var ut=a.computeBusNodeSpacing(_e)-oe;_e.S.h(fe+ut,Se+st),E=Math.max(E,fe+Ge.width+ut),z=Math.max(z,Se+st+Ge.height),Se+=st+Ge.height}else ut=a.computeBusNodeSpacing(_e)-oe,_e.S.h(fe+st,Se+ut),E=Math.max(E,fe+st+Ge.width),z=Math.max(z,Se+Ge.height+ut),fe+=st+Ge.width;ue++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,le?Math.max(Math.abs(Pe),Math.abs(Se)):Math.max(Math.abs(Ee),Math.abs(fe))),le?(x.S.h(b+oe/2-x.focus.x-x.la.x,z+a),le=b+oe/2-x.focus.x-x.la.x,E=Math.max(E,le+ee.width),0>le&&(E-=le),z=Math.max(z,Math.max(Pe,Se)+a+ee.height),0>x.S.x&&(b=T0(y,x.S.x,!1,b,oe))):(x.S.h(E+a,b+oe/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(Ee,fe)+a+ee.width),Se=b+oe/2-x.focus.y-x.la.y,z=Math.max(z,Se+ee.height),0>Se&&(z-=Se),0>x.S.y&&(b=T0(y,x.S.y,!0,b,oe)))),new vn(b,0,E,z)}function dx(a,y,x,b,E,z){var ee=x.length;if(ee===0)return new vn(b,0,E,z);if(ee===1)return x=x[0],E=x.Da.width,z=x.Da.height,new vn(b,0,E,z);for(var oe=y.nodeSpacing,re=y.rowSpacing,le=Ju(y)===270,ue=0,fe=0,Se=0,Pe=0;Pe<ee;Pe++)if(!(Pe%2!==0||1<ee&&Pe===ee-1)){var Ee=x[Pe],Te=Ee.Da,_e=ue===0?0:re;if(le){var Ge=a.computeBusNodeSpacing(Ee)-oe;Se-=_e+Te.height,Ee.S.h(b-(Te.width+Ge),Se),E=Math.max(E,Te.width+Ge),z=Math.max(z,Math.abs(Se))}else Ge=a.computeBusNodeSpacing(Ee)-oe,fe-=_e+Te.width,Ee.S.h(fe,b-(Te.height+Ge)),z=Math.max(z,Te.height+Ge),E=Math.max(E,Math.abs(fe));ue++}for(ue=0,Ee=fe,Pe=Se,le?(fe=b+oe,Se=0):(fe=0,Se=b+oe),Te=0;Te<ee;Te++)if(Te%2!==0){_e=x[Te],Ge=_e.Da;var st=ue===0?0:re;if(le){var ut=a.computeBusNodeSpacing(_e)-oe;Se-=st+Ge.height,_e.S.h(fe+ut,Se),E=Math.max(E,fe+Ge.width+ut),z=Math.max(z,Math.abs(Se))}else ut=a.computeBusNodeSpacing(_e)-oe,fe-=st+Ge.width,_e.S.h(fe,Se+ut),z=Math.max(z,Se+Ge.height+ut),E=Math.max(E,Math.abs(fe));ue++}for(1<ee&&ee%2===1&&(re=x[ee-1],ue=re.Da,a=a.computeBusLastRowSpacing(re,le?Math.max(Math.abs(Pe),Math.abs(Se)):Math.max(Math.abs(Ee),Math.abs(fe))),le?(re.S.h(b+oe/2-re.focus.x-re.la.x,-z-ue.height-a),fe=b+oe/2-re.focus.x-re.la.x,E=Math.max(E,fe+ue.width),0>fe&&(E-=fe),z=Math.max(z,Math.abs(Math.min(Pe,Se))+a+ue.height),0>re.S.x&&(b=T0(y,re.S.x,!1,b,oe))):(re.S.h(-E-ue.width-a,b+oe/2-re.focus.y-re.la.y),E=Math.max(E,Math.abs(Math.min(Ee,fe))+a+ue.width),Se=b+oe/2-re.focus.y-re.la.y,z=Math.max(z,Se+ue.height),0>Se&&(z-=Se),0>re.S.y&&(b=T0(y,re.S.y,!0,b,oe)))),y=0;y<ee;y++)oe=x[y],le?oe.S.h(oe.S.x,oe.S.y+z):oe.S.h(oe.S.x+E,oe.S.y);return new vn(b,0,E,z)}Ho.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Ho.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function T0(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 Ny(a,y,x){switch(a.alignment){case Tf:case Dg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case $h:return a.width>y?a.width:y;case Qh:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case zd:case _h:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Hd:return a.width-a.focus.x+a.nodeSpacing/2+y;case gd:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function ky(a,y,x){switch(a.alignment){case Tf:case Dg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case $h:return a.height>y?a.height:y;case Qh:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case zd:case _h:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Hd:return a.height-a.focus.y+a.nodeSpacing/2+y;case gd:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Ay(a,y,x){switch(a){case Dg:y/=2,x/=2;break;case Tf:y/=2,x/=2;break;case $h:x=y=0;break;case Qh:break;default:at("Unhandled alignment value "+a.toString())}return new Ke(y,x)}function qc(a,y,x,b,E,z){y=Ay(y,x,b),Df(a,y.x,y.y,E,z)}function Df(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 O0(a,y,x,b){var E=y.parent;switch(a.ud){case Jh:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Bf:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:at("Unhandled path value "+a.ud.toString())}}function I0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function cx(a,y,x,b,E,z,ee,oe){var re=Ju(y),le=re===90||re===270,ue=y.nodeSpacing;y=b;var fe=E;b=z;var Se=ee,Pe=x.Yo,Ee=x.kp;ee=x.Da;var Te=le?Math.max(Se,ee.height):Math.max(b,ee.width);if((Pe===null||re!==Ju(x))&&(Pe=kl(a,2),Ee=kl(a,2),le?(Pe[0].h(0,0),Pe[1].h(0,ee.height),Ee[0].h(ee.width,0),Ee[1].h(Ee[0].x,Pe[1].y)):(Pe[0].h(0,0),Pe[1].h(ee.width,0),Ee[0].h(0,ee.height),Ee[1].h(Pe[1].x,Ee[0].y))),le){if(Se=9999999,!(fe===null||2>fe.length||Pe===null||2>Pe.length))for(E=x=0;x<fe.length&&E<Pe.length;){z=fe[x];var _e=Pe[E];re=_e.x,le=_e.y,re+=b;var Ge=z;x+1<fe.length&&(Ge=fe[x+1]);var st=_e;_e=st.x,st=st.y,E+1<Pe.length&&(st=Pe[E+1],_e=st.x,st=st.y,_e+=b);var ut=Se;z.y===le?ut=re-z.x:z.y>le&&z.y<st?ut=re+(z.y-le)/(st-le)*(_e-re)-z.x:le>z.y&&le<Ge.y&&(ut=re-(z.x+(le-z.y)/(Ge.y-z.y)*(Ge.x-z.x))),ut<Se&&(Se=ut),Ge.y<=z.y?x++:st<=le?E++:(Ge.y<=st&&x++,st<=Ge.y&&E++)}if(Se=b-Se,Se+=ue,x=Pe,E=Se,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=kl(a,y.length+x.length),b=z=re=0;z<x.length&&x[z].y<y[0].y;)le=x[z++],ue[b++].h(le.x+E,le.y);for(;re<y.length;)le=y[re++],ue[b++].h(le.x,le.y);for(re=y[y.length-1].y;z<x.length&&x[z].y<=re;)z++;for(;z<x.length&&x[z].y>re;)le=x[z++],ue[b++].h(le.x+E,le.y);for(x=kl(a,b),re=0;re<b;re++)x[re].assign(ue[re]);uh(a,ue),b=x}if(z=Ee,re=Se,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=kl(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].y<z[0].y;)Ge=fe[x++],ue[E++].h(Ge.x,Ge.y);for(;le<z.length;)Ge=z[le++],ue[E++].h(Ge.x+re,Ge.y);for(z=z[z.length-1].y;x<fe.length&&fe[x].y<=z;)x++;for(;x<fe.length&&fe[x].y>z;)re=fe[x++],ue[E++].h(re.x,re.y);for(z=kl(a,E),x=0;x<E;x++)z[x].assign(ue[x]);uh(a,ue),E=z}return z=Math.max(0,Se)+ee.width,ee=Te,uh(a,y),uh(a,Pe),uh(a,fe),uh(a,Ee),oe[0]=b,oe[1]=E,new vn(Se,0,z,ee)}if(b=9999999,!(fe===null||2>fe.length||Pe===null||2>Pe.length))for(E=x=0;x<fe.length&&E<Pe.length;)z=fe[x],_e=Pe[E],re=_e.x,le=_e.y,le+=Se,Ge=z,x+1<fe.length&&(Ge=fe[x+1]),st=_e,_e=st.x,st=st.y,E+1<Pe.length&&(st=Pe[E+1],_e=st.x,st=st.y,st+=Se),ut=b,z.x===re?ut=le-z.y:z.x>re&&z.x<_e?ut=le+(z.x-re)/(_e-re)*(st-le)-z.y:re>z.x&&re<Ge.x&&(ut=le-(z.y+(re-z.x)/(Ge.x-z.x)*(Ge.y-z.y))),ut<b&&(b=ut),Ge.x<=z.x?x++:_e<=re?E++:(Ge.x<=_e&&x++,_e<=Ge.x&&E++);if(Se-=b,Se+=ue,x=Pe,E=Se,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ue=kl(a,y.length+x.length),b=z=re=0;z<x.length&&x[z].x<y[0].x;)le=x[z++],ue[b++].h(le.x,le.y+E);for(;re<y.length;)le=y[re++],ue[b++].h(le.x,le.y);for(re=y[y.length-1].x;z<x.length&&x[z].x<=re;)z++;for(;z<x.length&&x[z].x>re;)le=x[z++],ue[b++].h(le.x,le.y+E);for(x=kl(a,b),re=0;re<b;re++)x[re].assign(ue[re]);uh(a,ue),b=x}if(z=Ee,re=Se,fe===null||2>fe.length||z===null||2>z.length)E=null;else{for(ue=kl(a,fe.length+z.length),E=le=x=0;x<fe.length&&fe[x].x<z[0].x;)Ge=fe[x++],ue[E++].h(Ge.x,Ge.y);for(;le<z.length;)Ge=z[le++],ue[E++].h(Ge.x,Ge.y+re);for(z=z[z.length-1].x;x<fe.length&&fe[x].x<=z;)x++;for(;x<fe.length&&fe[x].x>z;)re=fe[x++],ue[E++].h(re.x,re.y);for(z=kl(a,E),x=0;x<E;x++)z[x].assign(ue[x]);uh(a,ue),E=z}return z=Te,ee=Math.max(0,Se)+ee.height,uh(a,y),uh(a,Pe),uh(a,fe),uh(a,Ee),oe[0]=b,oe[1]=E,new vn(Se,0,z,ee)}function kl(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 Ke;return a}function uh(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Ho.prototype.arrangeTrees=function(){if(this.Rb===W0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Bu){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),Dy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Bu&&a.push(x);switch(this.sorting){case Ag:break;case Up:a.reverse();break;case Xp:a.sort(this.comparer);break;case Yp:a.sort(this.comparer),a.reverse();break;default:at("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(Dy(this,E,y+E.la.x,x+E.la.y),this.Rb){case H0:x+=E.Da.height+this.$d.height;break;case Iy:y+=E.Da.width+this.$d.width;break;default:at("Unhandled arrangement value "+this.Rb.toString())}}}};function Dy(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];Dy(a,ee,x+ee.S.x,b+ee.S.y)}}}Ho.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Ho.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Ho.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 Ke(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Ke(-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 oe=a[ee]+y[ee];this.angle===270?(z-=oe,E.push(new vn(0,z,x,oe))):this.angle===90?(E.push(new vn(0,z,x,oe)),z+=oe):this.angle===180?(z-=oe,E.push(new vn(z,0,oe,x))):(E.push(new vn(z,0,oe,x)),z+=oe)}this.commitLayers(E,b)}},Ho.prototype.commitLayers=function(){},Ho.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Ho.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Bu&&fx(this,y)}};function fx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)fx(a,y[b])}}Ho.prototype.setPortSpots=function(a){var y=a.alignment;if(yc(y)){var x=this.ud===Jh,b=Ju(a);switch(b){case 0:var E=Ga;break;case 90:E=Ka;break;case 180:E=Pa;break;default:E=La}var z=a.children,ee=z.length;switch(y){case zd:case _h:for(y=0;y<ee;y++){var oe=z[y];if(oe=(x?oe.sourceEdges:oe.destinationEdges).first(),oe!==null&&(oe=oe.link,oe!==null)){var re=b===90||b===270?Pa:La;if(ee===1||y===ee-1&&ee%2===1)switch(b){case 0:re=Pa;break;case 90:re=La;break;case 180:re=Ga;break;default:re=Ka}else y%2===0&&(re=b===90||b===270?Ga:Ka);x?(a.setsPortSpot&&(oe.fromSpot=E),a.setsChildPortSpot&&(oe.toSpot=re)):(a.setsPortSpot&&(oe.fromSpot=re),a.setsChildPortSpot&&(oe.toSpot=E))}}break;case Hd:for(b=b===90||b===270?Ga:Ka,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 gd:for(b=b===90||b===270?Pa:La,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=Ju(a),this.ud===Jh){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=Ga;break;case 90:b.fromSpot=Ka;break;case 180:b.fromSpot=Pa;break;default:b.fromSpot=La}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Pa;break;case 90:b.toSpot=La;break;case 180:b.toSpot=Ga;break;default:b.toSpot=Ka}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=Ga;break;case 90:b.toSpot=Ka;break;case 180:b.toSpot=Pa;break;default:b.toSpot=La}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Pa;break;case 90:b.fromSpot=La;break;case 180:b.fromSpot=Ga;break;default:b.fromSpot=Ka}else b.fromSpot=a.childPortSpot}};function Ju(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Ho.prototype.computeLayerSpacing=function(a){var y=Ju(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},Ho.prototype.computeNodeIndent=function(a){var y=Ju(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)},Re.Object.defineProperties(Ho.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!==Ty&&a!==By&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==jy&&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!==H0&&a!==Iy&&a!==W0||(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!==Ag&&a!==Up&&a!==Xp&&!Yp||(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()):at("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!==j0&&a!==Jp||(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!==Ag&&a!==Up&&a!==Xp&&!Yp||(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!==j0&&a!==Jp||(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 R0=new nn(Ho,"PathDefault",-1),Jh=new nn(Ho,"PathDestination",0),Bf=new nn(Ho,"PathSource",1),Ag=new nn(Ho,"SortingForwards",10),Up=new nn(Ho,"SortingReverse",11),Xp=new nn(Ho,"SortingAscending",12),Yp=new nn(Ho,"SortingDescending",13),Dg=new nn(Ho,"AlignmentCenterSubtrees",20),Tf=new nn(Ho,"AlignmentCenterChildren",21),$h=new nn(Ho,"AlignmentStart",22),Qh=new nn(Ho,"AlignmentEnd",23),zd=new nn(Ho,"AlignmentBus",24),_h=new nn(Ho,"AlignmentBusBranching",25),Hd=new nn(Ho,"AlignmentTopLeftBus",26),gd=new nn(Ho,"AlignmentBottomRightBus",27),j0=new nn(Ho,"CompactionNone",30),Jp=new nn(Ho,"CompactionBlock",31),z0=new nn(Ho,"StyleLayered",40),By=new nn(Ho,"StyleLastParents",41),Ty=new nn(Ho,"StyleAlternating",42),Oy=new nn(Ho,"StyleRootOnly",43),H0=new nn(Ho,"ArrangementVertical",50),Iy=new nn(Ho,"ArrangementHorizontal",51),W0=new nn(Ho,"ArrangementFixedRoots",52),Ry=new nn(Ho,"LayerIndividual",60),jy=new nn(Ho,"LayerSiblings",61),G0=new nn(Ho,"LayerUniform",62);Ho.className="TreeLayout",Ho.PathDefault=R0,Ho.PathDestination=Jh,Ho.PathSource=Bf,Ho.SortingForwards=Ag,Ho.SortingReverse=Up,Ho.SortingAscending=Xp,Ho.SortingDescending=Yp,Ho.AlignmentCenterSubtrees=Dg,Ho.AlignmentCenterChildren=Tf,Ho.AlignmentStart=$h,Ho.AlignmentEnd=Qh,Ho.AlignmentBus=zd,Ho.AlignmentBusBranching=_h,Ho.AlignmentTopLeftBus=Hd,Ho.AlignmentBottomRightBus=gd,Ho.CompactionNone=j0,Ho.CompactionBlock=Jp,Ho.StyleLayered=z0,Ho.StyleLastParents=By,Ho.StyleAlternating=Ty,Ho.StyleRootOnly=Oy,Ho.ArrangementVertical=H0,Ho.ArrangementHorizontal=Iy,Ho.ArrangementFixedRoots=W0,Ho.LayerIndividual=Ry,Ho.LayerSiblings=jy,Ho.LayerUniform=G0;function Of(a){zr.call(this,a)}Pt(Of,zr),Of.prototype.createVertex=function(){return new Bu(this)},Of.prototype.createEdge=function(){return new Bg(this)},Of.className="TreeNetwork";function Bu(a){os.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 Ke(0,0),this.Da=new ti(0,0),this.la=new Ke(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Ag,this.hd=oy,this.Kb=0,this.Jb=Tf,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Jp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=sr,this.wr=!0,this.Dp=sr}Pt(Bu,os),Bu.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)},Re.Object.defineProperties(Bu.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)}}}),Bu.className="TreeVertex";function Bg(a){zl.call(this,a),this.$t=new Ke(0,0)}Pt(Bg,zl),Bg.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 Jh:x=this.fromVertex,b=this.toVertex;break;case Bf:x=this.toVertex,b=this.fromVertex;break;default:at("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=Ju(x),ee=y.computeLayerSpacing(x),oe=x.rowSpacing;a.vg();var re=a.curve===tu,le=a.isOrthogonal,ue;if(a.uh(),le||re){for(ue=2;4<a.pointsCount;)a.pv(2);var fe=a.i(1),Se=a.i(2)}else{for(ue=1;3<a.pointsCount;)a.pv(1);fe=a.i(0),Se=a.i(a.pointsCount-1)}var Pe=a.i(a.pointsCount-1);z===0?(x.alignment===Qh?(z=b.bottom+E.y,E.y===0&&fe.y>Pe.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===$h?(z=b.top+E.y,E.y===0&&fe.y<Pe.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,re?(a.m(ue,fe.x,z),ue++,a.m(ue,b.right+ee,z),ue++,a.m(ue,b.right+ee+(E.x-oe)/3,z),ue++,a.m(ue,b.right+ee+2*(E.x-oe)/3,z),ue++,a.m(ue,b.right+ee+(E.x-oe),z),ue++,a.m(ue,Se.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?oe/2:oe),z),ue++,le&&a.m(ue,a.i(ue-1).x,Se.y))):z===90?(x.alignment===Qh?(z=b.right+E.x,E.x===0&&fe.x>Pe.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===$h?(z=b.left+E.x,E.x===0&&fe.x<Pe.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,re?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.bottom+ee),ue++,a.m(ue,z,b.bottom+ee+(E.y-oe)/3),ue++,a.m(ue,z,b.bottom+ee+2*(E.y-oe)/3),ue++,a.m(ue,z,b.bottom+ee+(E.y-oe)),ue++,a.m(ue,z,Se.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?oe/2:oe)),ue++,le&&a.m(ue,Se.x,a.i(ue-1).y))):z===180?(x.alignment===Qh?(z=b.bottom+E.y,E.y===0&&fe.y>Pe.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===$h?(z=b.top+E.y,E.y===0&&fe.y<Pe.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,re?(a.m(ue,fe.x,z),ue++,a.m(ue,b.left-ee,z),ue++,a.m(ue,b.left-ee+(E.x+oe)/3,z),ue++,a.m(ue,b.left-ee+2*(E.x+oe)/3,z),ue++,a.m(ue,b.left-ee+(E.x+oe),z),ue++,a.m(ue,Se.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?oe/2:oe),z),ue++,le&&a.m(ue,a.i(ue-1).x,Se.y))):z===270?(x.alignment===Qh?(z=b.right+E.x,E.x===0&&fe.x>Pe.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===$h?(z=b.left+E.x,E.x===0&&fe.x<Pe.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,re?(a.m(ue,z,fe.y),ue++,a.m(ue,z,b.top-ee),ue++,a.m(ue,z,b.top-ee+(E.y+oe)/3),ue++,a.m(ue,z,b.top-ee+2*(E.y+oe)/3),ue++,a.m(ue,z,b.top-ee+(E.y+oe)),ue++,a.m(ue,z,Se.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?oe/2:oe)),ue++,le&&a.m(ue,Se.x,a.i(ue-1).y))):at("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Ju(x),y!==Ju(E)&&(ee=b.computeLayerSpacing(x),oe=x.bounds,x=E.bounds,y===0&&x.left-oe.right<ee+1||y===90&&x.top-oe.bottom<ee+1||y===180&&oe.left-x.right<ee+1||y===270&&oe.top-x.bottom<ee+1||(a.vg(),x=a.curve===tu,E=a.isOrthogonal,b=yc(this.fromVertex.alignment),a.uh(),y===0?(y=oe.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=oe.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=oe.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=oe.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()))}}},Re.Object.defineProperties(Bg.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)}}}),Bg.className="TreeEdge",Rr.prototype.initializeStandardTools=function(){this.gb("Action",new Po,this.mouseDownTools),this.gb("Relinking",new Fi,this.mouseDownTools),this.gb("LinkReshaping",new Ti,this.mouseDownTools),this.gb("Rotating",new Vo,this.mouseDownTools),this.gb("Resizing",new fo,this.mouseDownTools),this.gb("Linking",new hi,this.mouseMoveTools),this.gb("Dragging",new aa,this.mouseMoveTools),this.gb("DragSelecting",new wo,this.mouseMoveTools),this.gb("Panning",new Ji,this.mouseMoveTools),this.gb("ContextMenu",new pr,this.mouseUpTools),this.gb("TextEditing",new ar,this.mouseUpTools),this.gb("ClickCreating",new zo,this.mouseUpTools),this.gb("ClickSelecting",new Mr,this.mouseUpTools)},Ch("Horizontal",new vm),Ch("Spot",new Sm),Ch("Table",new wm),Ch("Viewbox",new bm),Ch("TableRow",new Pm),Ch("TableColumn",new Cm),Ch("Graduated",new dp),Ch("Grid",new hp),ng.add("GraphLinksModel",cs),ng.add("TreeModel",yu);var K0=Ye.go,zy={get licenseKey(){return $t.licenseKey},set licenseKey(a){$t.licenseKey=a},get version(){return $t.version},Group:co,EnumValue:nn,List:Ln,Set:Mn,Map:di,Point:Ke,Size:ti,Rect:vn,Margin:vi,Spot:xi,Geometry:ni,PathFigure:Za,PathSegment:tr,InputEvent:hs,DiagramEvent:Eu,ChangedEvent:Gr,Model:Ni,GraphLinksModel:$o,TreeModel:hl,Binding:za,Transaction:ka,UndoManager:Vr,CommandHandler:Qe,Tool:Wo,DraggingTool:aa,DraggingInfo:ld,DraggingOptions:ae,LinkingBaseTool:rn,LinkingTool:hi,RelinkingTool:Fi,LinkReshapingTool:Ti,ResizingTool:fo,RotatingTool:Vo,ClickSelectingTool:Mr,ActionTool:Po,ClickCreatingTool:zo,HTMLInfo:Bo,ContextMenuTool:pr,DragSelectingTool:wo,PanningTool:Ji,TextEditingTool:ar,ToolManager:Rr,Animation:ya,AnimationManager:pa,AnimationTrigger:Il,Layer:na,Diagram:$t,Palette:ce,Overview:pe,Brush:wr,GraphObject:kt,Panel:$n,RowColumnDefinition:Qa,Shape:Eo,TextBlock:jr,Picture:xl,Part:Wi,Adornment:ur,Node:li,Link:ei,Placeholder:al,Layout:ta,LayoutNetwork:zr,LayoutVertex:os,LayoutEdge:zl,GridLayout:Ps,PanelLayout:is,CircularLayout:ha,CircularNetwork:Fg,CircularVertex:zp,CircularEdge:C0,ForceDirectedLayout:Ts,ForceDirectedNetwork:Af,ForceDirectedVertex:Hp,ForceDirectedEdge:Wp,LayeredDigraphLayout:Er,LayeredDigraphNetwork:kg,LayeredDigraphVertex:xu,LayeredDigraphEdge:Zp,TreeLayout:Ho,TreeNetwork:Of,TreeVertex:Bu,TreeEdge:Bg};typeof K0=="object"&&K0.version&&ii("WARNING: a `go` object on the root object is already defined. "+("Debug"in K0?"debug ":"")+"version: "+K0.version+", replaced with version: "+zy.version),$t.prototype.go=zy,Ye.go=zy,typeof Kn.exports=="object"&&(Kn.exports=typeof ye.g!="undefined"?ye.g.go:self.go)}();var Ce=typeof ye.g!="undefined"?ye.g.go:self.go;const Oe=typeof ye.g!="undefined"?ye.g.go:self.go,tt=Oe.Group,At=Oe.EnumValue,Ue=Oe.List,Je=Oe.Set,ke=Oe.Map,Ot=Oe.Point,Lt=Oe.Size,ot=Oe.Rect,Rt=Oe.Margin,xt=Oe.Spot,zt=Oe.Geometry,Ae=Oe.PathFigure,te=Oe.PathSegment,ne=Oe.InputEvent,he=Oe.DiagramEvent,se=Oe.ChangedEvent,ge=Oe.Model,me=Oe.GraphLinksModel,we=Oe.TreeModel,Fe=Oe.Binding,Be=Oe.Transaction,Ie=Oe.UndoManager,We=Oe.CommandHandler,nt=Oe.Tool,Xe=Oe.DraggingTool,dt=Oe.DraggingInfo,Ze=Oe.LinkingBaseTool,Zt=Oe.LinkingTool,yt=Oe.RelinkingTool,an=Oe.LinkReshapingTool,Gt=Oe.ResizingTool,Vt=Oe.RotatingTool,hn=Oe.ClickSelectingTool,yn=Oe.ActionTool,vt=Oe.ClickCreatingTool,je=Oe.HTMLInfo,wt=Oe.ContextMenuTool,tn=Oe.DragSelectingTool,bn=Oe.PanningTool,Ft=Oe.TextEditingTool,Xt=Oe.ToolManager,Cn=Oe.Animation,Qn=Oe.AnimationManager,gn=Oe.AnimationTrigger,Gn=Oe.Layer,bt=Oe.Diagram,zn=Oe.Palette,ai=Oe.Overview,He=Oe.Brush,Le=Oe.GraphObject,xe=Oe.Panel,Ne=Oe.RowColumnDefinition,De=Oe.Shape,ve=Oe.TextBlock,$e=Oe.TextBlockMetrics,mt=Oe.Picture,et=Oe.Part,Ve=Oe.Adornment,gt=Oe.Node,ft=Oe.Link,rt=Oe.Placeholder,Mt=Oe.Layout,pn=Oe.LayoutNetwork,dn=Oe.LayoutVertex,Jt=Oe.LayoutEdge,Rn=Oe.GridLayout,Tn=Oe.PanelLayout,Et=Oe.CircularLayout,cn=Oe.CircularNetwork,On=Oe.CircularVertex,Ct=Oe.CircularEdge,_n=Oe.ForceDirectedLayout,ui=Oe.ForceDirectedNetwork,Ci=Oe.ForceDirectedVertex,ci=Oe.ForceDirectedEdge,Hi=Oe.LayeredDigraphLayout,qi=Oe.LayeredDigraphNetwork,Xi=Oe.LayeredDigraphVertex,eo=Oe.LayeredDigraphEdge,Oo=Oe.TreeLayout,vo=Oe.TreeNetwork,Ri=Oe.TreeVertex,Co=Oe.TreeEdge,Bn=Oe.version},2859:function(Kn,kn,ye){"use strict";ye.d(kn,{hP:function(){return ai}});var Ce=function(He,Le){return(Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ne){xe.__proto__=Ne}||function(xe,Ne){for(var De in Ne)Object.prototype.hasOwnProperty.call(Ne,De)&&(xe[De]=Ne[De])})(He,Le)};function Oe(He,Le){function xe(){this.constructor=He}Ce(He,Le),He.prototype=Le===null?Object.create(Le):(xe.prototype=Le.prototype,new xe)}function tt(He,Le,xe,Ne){return new(xe||(xe=Promise))(function(De,ve){function $e(Ve){try{et(Ne.next(Ve))}catch(gt){ve(gt)}}function mt(Ve){try{et(Ne.throw(Ve))}catch(gt){ve(gt)}}function et(Ve){var gt;Ve.done?De(Ve.value):(gt=Ve.value,gt instanceof xe?gt:new xe(function(ft){ft(gt)})).then($e,mt)}et((Ne=Ne.apply(He,Le||[])).next())})}function At(He,Le){var xe,Ne,De,ve,$e={label:0,sent:function(){if(1&De[0])throw De[1];return De[1]},trys:[],ops:[]};return ve={next:mt(0),throw:mt(1),return:mt(2)},typeof Symbol=="function"&&(ve[Symbol.iterator]=function(){return this}),ve;function mt(et){return function(Ve){return function(gt){if(xe)throw new TypeError("Generator is already executing.");for(;$e;)try{if(xe=1,Ne&&(De=2>[0]?Ne.return:gt[0]?Ne.throw||((De=Ne.return)&&De.call(Ne),0):Ne.next)&&!(De=De.call(Ne,gt[1])).done)return De;switch(Ne=0,De&&(gt=[2>[0],De.value]),gt[0]){case 0:case 1:De=gt;break;case 4:return $e.label++,{value:gt[1],done:!1};case 5:$e.label++,Ne=gt[1],gt=[0];continue;case 7:gt=$e.ops.pop(),$e.trys.pop();continue;default:if(De=$e.trys,!((De=De.length>0&&De[De.length-1])||gt[0]!==6&>[0]!==2)){$e=0;continue}if(gt[0]===3&&(!De||gt[1]>De[0]&>[1]<De[3])){$e.label=gt[1];break}if(gt[0]===6&&$e.label<De[1]){$e.label=De[1],De=gt;break}if(De&&$e.label<De[2]){$e.label=De[2],$e.ops.push(gt);break}De[2]&&$e.ops.pop(),$e.trys.pop();continue}gt=Le.call(He,$e)}catch(ft){gt=[6,ft],Ne=0}finally{xe=De=0}if(5>[0])throw gt[1];return{value:gt[0]?gt[1]:void 0,done:!0}}([et,Ve])}}}function Ue(){for(var He=0,Le=0,xe=arguments.length;Le<xe;Le++)He+=arguments[Le].length;var Ne=Array(He),De=0;for(Le=0;Le<xe;Le++)for(var ve=arguments[Le],$e=0,mt=ve.length;$e<mt;$e++,De++)Ne[De]=ve[$e];return Ne}var Je=function(){function He(){}return He.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},He.setAttributes=function(Le,xe){for(var Ne=0,De=xe;Ne<De.length;Ne++){var ve=De[Ne],$e=ve[0],mt=ve[1];Le.setAttribute($e,mt)}},He.createRect=function(Le,xe,Ne){var De=document.createElementNS("http://www.w3.org/2000/svg","rect");return De.setAttribute("width",Le.toString()),De.setAttribute("height",xe.toString()),Ne&&He.setAttributes(De,Ne),De},He.createLine=function(Le,xe,Ne,De,ve){var $e=document.createElementNS("http://www.w3.org/2000/svg","line");return $e.setAttribute("x1",Le.toString()),$e.setAttribute("y1",xe.toString()),$e.setAttribute("x2",Ne.toString()),$e.setAttribute("y2",De.toString()),ve&&He.setAttributes($e,ve),$e},He.createPolygon=function(Le,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ne.setAttribute("points",Le),xe&&He.setAttributes(Ne,xe),Ne},He.createCircle=function(Le,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ne.setAttribute("cx",(Le/2).toString()),Ne.setAttribute("cy",(Le/2).toString()),Ne.setAttribute("r",Le.toString()),xe&&He.setAttributes(Ne,xe),Ne},He.createEllipse=function(Le,xe,Ne){var De=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return De.setAttribute("cx",(Le/2).toString()),De.setAttribute("cy",(xe/2).toString()),De.setAttribute("rx",(Le/2).toString()),De.setAttribute("ry",(xe/2).toString()),Ne&&He.setAttributes(De,Ne),De},He.createGroup=function(Le){var xe=document.createElementNS("http://www.w3.org/2000/svg","g");return Le&&He.setAttributes(xe,Le),xe},He.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},He.createMarker=function(Le,xe,Ne,De,ve,$e,mt){var et=document.createElementNS("http://www.w3.org/2000/svg","marker");return He.setAttributes(et,[["id",Le],["orient",xe],["markerWidth",Ne.toString()],["markerHeight",De.toString()],["refX",ve.toString()],["refY",$e.toString()]]),et.appendChild(mt),et},He.createText=function(Le){var xe=document.createElementNS("http://www.w3.org/2000/svg","text");return xe.setAttribute("x","0"),xe.setAttribute("y","0"),Le&&He.setAttributes(xe,Le),xe},He.createTSpan=function(Le,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ne.textContent=Le,xe&&He.setAttributes(Ne,xe),Ne},He.createImage=function(Le){var xe=document.createElementNS("http://www.w3.org/2000/svg","image");return Le&&He.setAttributes(xe,Le),xe},He.createPoint=function(Le,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ne.x=Le,Ne.y=xe,Ne},He.createPath=function(Le,xe){var Ne=document.createElementNS("http://www.w3.org/2000/svg","path");return Ne.setAttribute("d",Le),xe&&He.setAttributes(Ne,xe),Ne},He}(),ke=function(){function He(){}return He.addKey=function(Le){He.key=Le},Object.defineProperty(He,"isLicensed",{get:function(){return!!He.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(He.key)},enumerable:!1,configurable:!0}),He}(),Ot=function(){function He(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return He.prototype.rasterize=function(Le,xe,Ne){var De=this;return new Promise(function(ve){var $e=Ne!==void 0?Ne:document.createElement("canvas");Le===null&&(De.markersOnly=!0,De.naturalSize=!1);var mt=document.createElementNS("http://www.w3.org/2000/svg","svg");mt.setAttribute("xmlns","http://www.w3.org/2000/svg"),mt.setAttribute("width",xe.width.baseVal.valueAsString),mt.setAttribute("height",xe.height.baseVal.valueAsString),mt.setAttribute("viewBox","0 0 "+xe.viewBox.baseVal.width.toString()+" "+xe.viewBox.baseVal.height.toString()),mt.innerHTML=xe.innerHTML,De.naturalSize===!0?(mt.width.baseVal.value=Le.naturalWidth,mt.height.baseVal.value=Le.naturalHeight):De.width!==void 0&&De.height!==void 0&&(mt.width.baseVal.value=De.width,mt.height.baseVal.value=De.height),$e.width=mt.width.baseVal.value,$e.height=mt.height.baseVal.value;var et=mt.outerHTML,Ve=$e.getContext("2d");De.markersOnly!==!0&&Ve.drawImage(Le,0,0,$e.width,$e.height);var gt=window.URL,ft=new Image($e.width,$e.height);ft.setAttribute("crossOrigin","anonymous");var rt=new Blob([et],{type:"image/svg+xml"}),Mt=gt.createObjectURL(rt);ft.onload=function(){Ve.drawImage(ft,0,0),gt.revokeObjectURL(Mt);var pn=$e.toDataURL(De.imageType,De.imageQuality);ve(pn)},ft.src=Mt})},He}(),Lt=function(){},ot=function(){function He(Le){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Le+"_"}return Object.defineProperty(He.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(He.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(He.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),He.prototype.addClass=function(Le){return this.styleSheet===void 0&&this.addStyleSheet(),Le.name=""+this.classNamePrefix+Le.localName,this.classes.push(Le),this.styleSheet.sheet.insertRule("."+Le.name+" {"+Le.style+"}",this.styleSheet.sheet.cssRules.length),Le},He.prototype.addRule=function(Le){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Le),this.styleSheet.sheet.insertRule(Le.selector+" {"+Le.style+"}",this.styleSheet.sheet.cssRules.length)},He.prototype.addStyleSheet=function(){var Le;this.styleSheet=document.createElement("style"),((Le=this.styleSheetRoot)!==null&&Le!==void 0?Le:document.head).appendChild(this.styleSheet),this.addRule(new Rt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Rt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Rt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new xt("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new xt("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},He.prototype.removeStyleSheet=function(){var Le;this.styleSheet&&(((Le=this.styleSheetRoot)!==null&&Le!==void 0?Le:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},He}(),Rt=function(He,Le){this.selector=He,this.style=Le},xt=function(He,Le){this.localName=He,this.style=Le},zt=function(){function He(Le,xe,Ne,De,ve){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Le,this.displayMode=xe,this.markerItems=Ne,this.uiStyleSettings=De,this.styles=ve,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return He.prototype.show=function(Le){var xe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Le,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ne=document.createElement("div");Ne.className=this.toolbarBlockStyleClass.name,Ne.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ne),this.addActionButton(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(Ne,'<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(ve){var $e=document.createElement("div");$e.className=""+xe.toolbarButtonStyleClass.name,$e.setAttribute("data-type-name",ve.typeName),$e.innerHTML=ve.icon,$e.addEventListener("click",function(){xe.markerToolbarButtonClicked($e,ve)}),xe.buttons.push($e),xe.markerButtons.push($e)}),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 De=document.createElement("div");De.className=this.toolbarBlockStyleClass.name,De.style.whiteSpace="nowrap",De.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(De),this.addActionButton(De,'<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(De,'<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()},He.prototype.addButtonClickListener=function(Le){this.buttonClickListeners.push(Le)},He.prototype.removeButtonClickListener=function(Le){this.buttonClickListeners.indexOf(Le)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Le),1)},He.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},He.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Le=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xe=0;xe<this.markerButtons.length;xe++)xe<Le||xe===Le&&this.markerButtons.length-1===Le?this.markerButtonBlock.appendChild(this.markerButtons[xe]):(xe===Le&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xe]))}},He.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")},He.prototype.resetButtonStyles=function(){var Le=this;this.buttons.forEach(function(xe){xe.className=xe.className.replace(Le.uiStyleSettings.toolbarButtonStyleColorsClassName?Le.uiStyleSettings.toolbarButtonStyleColorsClassName:Le.toolbarButtonStyleColorsClass.name,"").trim(),xe.className=xe.className.replace(Le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Le.toolbarActiveButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(Le.uiStyleSettings.toolbarButtonStyleColorsClassName?Le.uiStyleSettings.toolbarButtonStyleColorsClassName:Le.toolbarButtonStyleColorsClass.name)})},He.prototype.addActionButton=function(Le,xe,Ne){var De=this,ve=document.createElement("div");switch(ve.className=""+this.toolbarButtonStyleClass.name,ve.innerHTML=xe,ve.setAttribute("data-action",Ne),ve.addEventListener("click",function(){De.actionToolbarButtonClicked(ve,Ne)}),Ne){case"select":ve.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ve.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ve.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ve.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ve.style.fill=this.uiStyleSettings.closeButtonColor}Le.appendChild(ve),this.buttons.push(ve)},He.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new xt("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 xt("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new xt("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new xt("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 xt("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Le=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new xt("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
|
|
|
padding: `+Le+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new xt("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new xt("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Rt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Rt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},He.prototype.markerToolbarButtonClicked=function(Le,xe){this.setActiveButton(Le),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("marker",xe)}),this.markerButtonOverflowBlock.style.display="none"},He.prototype.actionToolbarButtonClicked=function(Le,xe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("action",xe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},He.prototype.setActiveButton=function(Le){this.resetButtonStyles(),Le.className=Le.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Le.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},He.prototype.setActiveMarkerButton=function(Le){var xe=this.markerButtons.find(function(Ne){return Ne.getAttribute("data-type-name")===Le});xe&&this.setActiveButton(xe)},He.prototype.setCurrentMarker=function(Le){var xe=this;this.currentMarker=Le,this.buttons.filter(function(Ne){return/delete|notes/.test(Ne.getAttribute("data-action"))}).forEach(function(Ne){xe.currentMarker===void 0?(Ne.style.fillOpacity="0.4",Ne.style.pointerEvents="none"):(Ne.style.fillOpacity="1",Ne.style.pointerEvents="all")})},He}(),Ae=function(){function He(Le,xe,Ne,De){this.panels=[],this.panelButtons=[],this.markerjsContainer=Le,this.displayMode=xe,this.uiStyleSettings=Ne,this.styles=De,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return He.prototype.addStyles=function(){var Le;this.toolboxStyleClass=this.styles.addClass(new xt("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 xt("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new xt("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new xt("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new xt("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 xt("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Le=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Le!==void 0?Le:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new xt("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
padding: `+xe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new xt("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new xt("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Rt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Rt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},He.prototype.show=function(Le){var xe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Le,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},He.prototype.setPanelButtons=function(Le){var xe,Ne,De=this;this.panels=Le,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ne!==void 0?Ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ve){var $e;ve.uiStyleSettings=De.uiStyleSettings;var mt=document.createElement("div");mt.className=De.toolboxButtonStyleClass.name+" "+(($e=De.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&$e!==void 0?$e:De.toolboxButtonStyleColorsClass.name),mt.innerHTML=ve.icon,mt.title=ve.title,mt.addEventListener("click",function(){De.panelButtonClick(ve)}),De.panelButtons.push(mt),De.buttonRow.appendChild(mt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},He.prototype.panelButtonClick=function(Le){var xe=this,Ne=-1;if(Le!==this.activePanel){Ne=this.panels.indexOf(Le),this.panelRow.innerHTML="";var De=Le.getUi();De.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(De),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=Le}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xe.displayMode==="inline"?xe.panelRow.style.display="none":xe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ve,$e){var mt,et;ve.className=xe.toolboxButtonStyleClass.name+" "+($e===Ne?""+((mt=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&mt!==void 0?mt:xe.toolboxActiveButtonStyleColorsClass.name):""+((et=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&et!==void 0?et:xe.toolboxButtonStyleColorsClass.name))})},He}(),te=function(He,Le){this.title=He,this.icon=Le},ne=function(He){function Le(xe,Ne,De,ve){var $e=He.call(this,xe,ve||'<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 $e.colors=[],$e.addTransparent=!1,$e.colorBoxes=[],$e.colors=Ne,$e.currentColor=De,$e.setCurrentColor=$e.setCurrentColor.bind($e),$e.getColorBox=$e.getColorBox.bind($e),$e}return Oe(Le,He),Le.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.whiteSpace="nowrap",this.colors.forEach(function(De){var ve=xe.getColorBox(De);Ne.appendChild(ve),xe.colorBoxes.push(ve)}),Ne},Le.prototype.getColorBox=function(xe){var Ne=this,De=this.uiStyleSettings.toolbarHeight/4,ve=this.uiStyleSettings.toolbarHeight-De,$e=document.createElement("div");$e.style.display="inline-block",$e.style.boxSizing="content-box",$e.style.width=ve-2+"px",$e.style.height=ve-2+"px",$e.style.padding="1px",$e.style.marginRight="2px",$e.style.marginBottom="2px",$e.style.borderWidth="2px",$e.style.borderStyle="solid",$e.style.borderRadius=(ve+2)/2+"px",$e.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",$e.addEventListener("click",function(){Ne.setCurrentColor(xe,$e)});var mt=document.createElement("div");return mt.style.display="inline-block",mt.style.width=ve-2+"px",mt.style.height=ve-2+"px",mt.style.backgroundColor=xe,mt.style.borderRadius=ve/2+"px",xe==="transparent"&&(mt.style.fill=this.uiStyleSettings.toolboxAccentColor,mt.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>`),$e.appendChild(mt),$e},Le.prototype.setCurrentColor=function(xe,Ne){var De=this;this.currentColor=xe,this.colorBoxes.forEach(function(ve){ve.style.borderColor=ve===Ne?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},Le}(te),he=function(){function He(Le,xe,Ne){this._state="new",this._isSelected=!1,this._container=Le,this._overlayContainer=xe,this.globalSettings=Ne,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(He.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),He.prototype.ownsTarget=function(Le){return!1},Object.defineProperty(He.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),He.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},He.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},He.prototype.pointerDown=function(Le,xe){},He.prototype.dblClick=function(Le,xe){},He.prototype.manipulate=function(Le){},He.prototype.pointerUp=function(Le){this.stateChanged()},He.prototype.dispose=function(){},He.prototype.addMarkerVisualToContainer=function(Le){this.container.childNodes.length>0?this.container.insertBefore(Le,this.container.childNodes[0]):this.container.appendChild(Le)},He.prototype.getState=function(){return{typeName:He.typeName,state:this.state,notes:this.notes}},He.prototype.restoreState=function(Le){this._state=Le.state,this.notes=Le.notes},He.prototype.scale=function(Le,xe){},He.prototype.colorChanged=function(Le){this.onColorChanged&&this.onColorChanged(Le),this.stateChanged()},He.prototype.fillColorChanged=function(Le){this.onFillColorChanged&&this.onFillColorChanged(Le),this.stateChanged()},He.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Le=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Le.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Le)&&this.onStateChanged(this)}},He.typeName="MarkerBase",He}(),se=function(){function He(){this.findGripByVisual=this.findGripByVisual.bind(this)}return He.prototype.findGripByVisual=function(Le){return this.topLeft.ownsTarget(Le)?this.topLeft:this.topCenter.ownsTarget(Le)?this.topCenter:this.topRight.ownsTarget(Le)?this.topRight:this.centerLeft.ownsTarget(Le)?this.centerLeft:this.centerRight.ownsTarget(Le)?this.centerRight:this.bottomLeft.ownsTarget(Le)?this.bottomLeft:this.bottomCenter.ownsTarget(Le)?this.bottomCenter:this.bottomRight.ownsTarget(Le)?this.bottomRight:void 0},He}(),ge=function(){function He(){this.GRIP_SIZE=10,this.visual=Je.createGroup(),this.visual.appendChild(Je.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Je.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return He.prototype.ownsTarget=function(Le){return Le===this.visual||Le===this.visual.childNodes[0]||Le===this.visual.childNodes[1]},He}(),me=function(){function He(){}return He.toITransformMatrix=function(Le){return{a:Le.a,b:Le.b,c:Le.c,d:Le.d,e:Le.e,f:Le.f}},He.toSVGMatrix=function(Le,xe){return Le.a=xe.a,Le.b=xe.b,Le.c=xe.c,Le.d=xe.d,Le.e=xe.e,Le.f=xe.f,Le},He}(),we=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.left=0,ve.top=0,ve.width=0,ve.height=0,ve.defaultSize={x:50,y:20},ve.offsetX=0,ve.offsetY=0,ve.rotationAngle=0,ve.CB_DISTANCE=10,ve._suppressMarkerCreateEvent=!1,ve.container.transform.baseVal.appendItem(Je.createTransform()),ve.setupControlBox(),ve}return Oe(Le,He),Object.defineProperty(Le.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"visual",{get:function(){return this._visual},set:function(xe){this._visual=xe;var Ne=Je.createTransform();this._visual.transform.baseVal.appendItem(Ne)},enumerable:!1,configurable:!0}),Le.prototype.ownsTarget=function(xe){return!!He.prototype.ownsTarget.call(this,xe)||!!(this.controlGrips.findGripByVisual(xe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xe))},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.left=xe.x,this.top=xe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var De=this.unrotatePoint(xe);if(this.manipulationStartX=De.x,this.manipulationStartY=De.y,this.offsetX=De.x-this.left,this.offsetY=De.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ne)){this.activeGrip=this.rotatorGrip;var ve=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ve.x-this.width/2,this.top=ve.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var $e=this.container.transform.baseVal.getItem(0);$e.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem($e,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Le.prototype.pointerUp=function(xe){var Ne=this.state;He.prototype.pointerUp.call(this,xe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xe),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Le.prototype.moveVisual=function(xe){this.visual.style.transform="translate("+xe.x+"px, "+xe.y+"px)"},Le.prototype.manipulate=function(xe){var Ne=this.unrotatePoint(xe);this.state==="creating"?this.resize(xe):this.state==="move"?(this.left=this.manipulationStartLeft+(Ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ne):this.state==="rotate"&&this.rotate(xe)},Le.prototype.resize=function(xe){var Ne=this.manipulationStartLeft,De=this.manipulationStartWidth,ve=this.manipulationStartTop,$e=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ne=this.manipulationStartLeft+xe.x-this.manipulationStartX,De=this.manipulationStartWidth+this.manipulationStartLeft-Ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:De=this.manipulationStartWidth+xe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ve=this.manipulationStartTop+xe.y-this.manipulationStartY,$e=this.manipulationStartHeight+this.manipulationStartTop-ve;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:$e=this.manipulationStartHeight+xe.y-this.manipulationStartY}De>=0?(this.left=Ne,this.width=De):(this.left=Ne+De,this.width=-De),$e>=0?(this.top=ve,this.height=$e):(this.top=ve+$e,this.height=-$e),this.setSize()},Le.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Le.prototype.rotate=function(xe){if(Math.abs(xe.x-this.centerX)>.1){var Ne=Math.sign(xe.x-this.centerX);this.rotationAngle=180*Math.atan((xe.y-this.centerY)/(xe.x-this.centerX))/Math.PI+90*Ne,this.applyRotation()}},Le.prototype.applyRotation=function(){var xe=this.container.transform.baseVal.getItem(0);xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xe,0)},Le.prototype.rotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Ne=this.container.getCTM(),De=Je.createPoint(xe.x,xe.y);return{x:(De=De.matrixTransform(Ne)).x,y:De.y}},Le.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Ne=this.container.getCTM();Ne=Ne.inverse();var De=Je.createPoint(xe.x,xe.y);return{x:(De=De.matrixTransform(Ne)).x,y:De.y}},Le.prototype.select=function(){He.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Le.prototype.deselect=function(){He.prototype.deselect.call(this),this.controlBox.style.display="none"},Le.prototype.setupControlBox=function(){this.controlBox=Je.createGroup();var xe=Je.createTransform();xe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xe),this.container.appendChild(this.controlBox),this.controlRect=Je.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=Je.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new se,this.addControlGrips(),this.controlBox.style.display="none"},Le.prototype.adjustControlBox=function(){var xe=this.controlBox.transform.baseVal.getItem(0);xe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xe,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()},Le.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()},Le.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(Je.createTransform()),this.controlBox.appendChild(xe.visual),xe},Le.prototype.positionGrips=function(){var xe=this.controlGrips.topLeft.GRIP_SIZE,Ne=-xe/2,De=Ne,ve=(this.width+this.CB_DISTANCE)/2-xe/2,$e=(this.height+this.CB_DISTANCE)/2-xe/2,mt=this.height+this.CB_DISTANCE-xe/2,et=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,Ne,De),this.positionGrip(this.controlGrips.topCenter.visual,ve,De),this.positionGrip(this.controlGrips.topRight.visual,et,De),this.positionGrip(this.controlGrips.centerLeft.visual,Ne,$e),this.positionGrip(this.controlGrips.centerRight.visual,et,$e),this.positionGrip(this.controlGrips.bottomLeft.visual,Ne,mt),this.positionGrip(this.controlGrips.bottomCenter.visual,ve,mt),this.positionGrip(this.controlGrips.bottomRight.visual,et,mt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ve,De-3*this.CB_DISTANCE)},Le.prototype.positionGrip=function(xe,Ne,De){var ve=xe.transform.baseVal.getItem(0);ve.setTranslate(Ne,De),xe.transform.baseVal.replaceItem(ve,0)},Le.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Le.prototype.showControlBox=function(){this.controlBox.style.display=""},Le.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},He.prototype.getState.call(this))},Le.prototype.restoreState=function(xe){He.prototype.restoreState.call(this,xe);var Ne=xe;this.left=Ne.left,this.top=Ne.top,this.width=Ne.width,this.height=Ne.height,this.rotationAngle=Ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ne.containerTransformMatrix))},Le.prototype.scale=function(xe,Ne){He.prototype.scale.call(this,xe,Ne);var De=this.rotatePoint({x:this.left,y:this.top}),ve=this.unrotatePoint({x:De.x*xe,y:De.y*Ne});this.left=ve.x,this.top=ve.y,this.width=this.width*xe,this.height=this.height*Ne,this.adjustControlBox()},Le}(he),Fe=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.fillColor="transparent",ve.strokeColor="transparent",ve.strokeWidth=0,ve.strokeDasharray="",ve.opacity=1,ve.setStrokeColor=ve.setStrokeColor.bind(ve),ve.setFillColor=ve.setFillColor.bind(ve),ve.setStrokeWidth=ve.setStrokeWidth.bind(ve),ve.setStrokeDasharray=ve.setStrokeDasharray.bind(ve),ve.createVisual=ve.createVisual.bind(ve),ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){return!(!He.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Le.prototype.createVisual=function(){this.visual=Je.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)},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Le.prototype.manipulate=function(xe){He.prototype.manipulate.call(this,xe)},Le.prototype.resize=function(xe){He.prototype.resize.call(this,xe),this.setSize()},Le.prototype.setSize=function(){He.prototype.setSize.call(this),Je.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Le.prototype.pointerUp=function(xe){He.prototype.pointerUp.call(this,xe),this.setSize()},Le.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&Je.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Le.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&Je.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Le.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&Je.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Le.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&Je.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Le.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},He.prototype.getState.call(this))},Le.prototype.restoreState=function(xe){var Ne=xe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),He.prototype.restoreState.call(this,xe),this.setSize()},Le.prototype.scale=function(xe,Ne){He.prototype.scale.call(this,xe,Ne),this.setSize()},Le.title="Rectangle marker",Le}(we),Be=function(He){function Le(xe,Ne,De,ve){var $e=He.call(this,xe,ve||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return $e.widths=[],$e.widthBoxes=[],$e.widths=Ne,$e.currentWidth=De,$e.setCurrentWidth=$e.setCurrentWidth.bind($e),$e}return Oe(Le,He),Le.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.widths.forEach(function(De){var ve=document.createElement("div");ve.style.display="flex",ve.style.flexGrow="2",ve.style.alignItems="center",ve.style.justifyContent="space-between",ve.style.padding="5px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.borderColor=De===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){xe.setCurrentWidth(De,ve)}),Ne.appendChild(ve);var $e=document.createElement("div");$e.innerText=De.toString(),$e.style.marginRight="5px",ve.appendChild($e);var mt=document.createElement("div");mt.style.minHeight="20px",mt.style.flexGrow="2",mt.style.display="flex",mt.style.alignItems="center";var et=document.createElement("hr");et.style.minWidth="20px",et.style.border="0px",et.style.borderTop=De+"px solid "+xe.uiStyleSettings.toolboxColor,et.style.flexGrow="2",mt.appendChild(et),ve.appendChild(mt),xe.widthBoxes.push(ve)}),Ne},Le.prototype.setCurrentWidth=function(xe,Ne){var De=this;this.currentWidth=xe,this.widthBoxes.forEach(function(ve){ve.style.borderColor=ve===Ne?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Le}(te),Ie=function(He){function Le(xe,Ne,De,ve){var $e=He.call(this,xe,ve||'<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 $e.styles=[],$e.styleBoxes=[],$e.styles=Ne,$e.currentStyle=De,$e.setCurrentStyle=$e.setCurrentStyle.bind($e),$e}return Oe(Le,He),Le.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.styles.forEach(function(De){var ve=document.createElement("div");ve.style.display="flex",ve.style.alignItems="center",ve.style.justifyContent="space-between",ve.style.padding="5px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.overflow="hidden",ve.style.maxWidth=100/xe.styles.length-5+"%",ve.style.borderColor=De===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){xe.setCurrentStyle(De,ve)}),Ne.appendChild(ve);var $e=document.createElement("div");$e.style.minHeight="20px",$e.style.flexGrow="2",$e.style.overflow="hidden";var mt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(De!==""?'stroke-dasharray="'+De+'"':"")+` />
|
|
|
</svg>`;$e.innerHTML=mt,ve.appendChild($e),xe.styleBoxes.push(ve)}),Ne},Le.prototype.setCurrentStyle=function(xe,Ne){var De=this;this.currentStyle=xe,this.styleBoxes.forEach(function(ve){ve.style.borderColor=ve===Ne?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Le}(te),We=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.strokeColor=De.defaultColor,ve.strokeWidth=De.defaultStrokeWidth,ve.strokeDasharray=De.defaultStrokeDasharray,ve.strokePanel=new ne("Line color",De.defaultColorSet,De.defaultColor),ve.strokePanel.onColorChanged=ve.setStrokeColor,ve.strokeWidthPanel=new Be("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),ve.strokeWidthPanel.onWidthChanged=ve.setStrokeWidth,ve.strokeStylePanel=new Ie("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),ve.strokeStylePanel.onStyleChanged=ve.setStrokeDasharray,ve}return Oe(Le,He),Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=He.prototype.getState.call(this);return xe.typeName=Le.typeName,xe},Le.typeName="FrameMarker",Le.title="Frame marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Le}(Fe),nt=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"},Xe=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.x1=0,ve.y1=0,ve.x2=0,ve.y2=0,ve.defaultLength=50,ve.manipulationStartX=0,ve.manipulationStartY=0,ve.manipulationStartX1=0,ve.manipulationStartY1=0,ve.manipulationStartX2=0,ve.manipulationStartY2=0,ve.setupControlBox(),ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){return!!He.prototype.ownsTarget.call(this,xe)||!(!this.grip1.ownsTarget(xe)&&!this.grip2.ownsTarget(xe))},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.state==="new"&&(this.x1=xe.x,this.y1=xe.y,this.x2=xe.x,this.y2=xe.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(Ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Le.prototype.pointerUp=function(xe){var Ne=this.state;He.prototype.pointerUp.call(this,xe),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(xe),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Le.prototype.adjustVisual=function(){},Le.prototype.manipulate=function(xe){this.state==="creating"?this.resize(xe):this.state==="move"?(this.x1=this.manipulationStartX1+xe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xe)},Le.prototype.resize=function(xe){switch(this.activeGrip){case this.grip1:this.x1=xe.x,this.y1=xe.y;break;case this.grip2:case void 0:this.x2=xe.x,this.y2=xe.y}this.adjustVisual(),this.adjustControlBox()},Le.prototype.select=function(){He.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Le.prototype.deselect=function(){He.prototype.deselect.call(this),this.controlBox.style.display="none"},Le.prototype.setupControlBox=function(){this.controlBox=Je.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Le.prototype.adjustControlBox=function(){this.positionGrips()},Le.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Le.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(Je.createTransform()),this.controlBox.appendChild(xe.visual),xe},Le.prototype.positionGrips=function(){var xe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xe/2,this.y1-xe/2),this.positionGrip(this.grip2.visual,this.x2-xe/2,this.y2-xe/2)},Le.prototype.positionGrip=function(xe,Ne,De){var ve=xe.transform.baseVal.getItem(0);ve.setTranslate(Ne,De),xe.transform.baseVal.replaceItem(ve,0)},Le.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},He.prototype.getState.call(this))},Le.prototype.restoreState=function(xe){He.prototype.restoreState.call(this,xe);var Ne=xe;this.x1=Ne.x1,this.y1=Ne.y1,this.x2=Ne.x2,this.y2=Ne.y2},Le.prototype.scale=function(xe,Ne){He.prototype.scale.call(this,xe,Ne),this.x1=this.x1*xe,this.y1=this.y1*Ne,this.x2=this.x2*xe,this.y2=this.y2*Ne,this.adjustVisual(),this.adjustControlBox()},Le}(he),dt=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.strokeColor="transparent",ve.strokeWidth=0,ve.strokeDasharray="",ve.setStrokeColor=ve.setStrokeColor.bind(ve),ve.setStrokeWidth=ve.setStrokeWidth.bind(ve),ve.setStrokeDasharray=ve.setStrokeDasharray.bind(ve),ve.strokeColor=De.defaultColor,ve.strokeWidth=De.defaultStrokeWidth,ve.strokeDasharray=De.defaultStrokeDasharray,ve.strokePanel=new ne("Line color",De.defaultColorSet,De.defaultColor),ve.strokePanel.onColorChanged=ve.setStrokeColor,ve.strokeWidthPanel=new Be("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),ve.strokeWidthPanel.onWidthChanged=ve.setStrokeWidth,ve.strokeStylePanel=new Ie("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),ve.strokeStylePanel.onStyleChanged=ve.setStrokeDasharray,ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){return!(!He.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorLine&&xe!==this.visibleLine)},Le.prototype.createVisual=function(){this.visual=Je.createGroup(),this.selectorLine=Je.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Je.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)},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Le.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()),Je.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Je.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Je.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Le.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Le.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Le.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},He.prototype.getState.call(this));return xe.typeName=Le.typeName,xe},Le.prototype.restoreState=function(xe){He.prototype.restoreState.call(this,xe);var Ne=xe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.createVisual(),this.adjustVisual()},Le.typeName="LineMarker",Le.title="Line marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Le}(Xe),Ze=function(He){function Le(xe,Ne,De,ve){var $e=He.call(this,xe,ve||'<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 $e.fonts=[],$e.fontBoxes=[],$e.fonts=Ne,$e.currentFont=De,$e.setCurrentFont=$e.setCurrentFont.bind($e),$e}return Oe(Le,He),Le.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.fonts.forEach(function(De){var ve=document.createElement("div");ve.style.display="inline-block",ve.style.alignItems="center",ve.style.justifyContent="space-between",ve.style.padding="5px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.overflow="hidden",ve.style.maxWidth=100/xe.fonts.length-5+"%",ve.style.borderColor=De===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){xe.setCurrentFont(De,ve)}),Ne.appendChild(ve);var $e=document.createElement("div");$e.style.display="flex",$e.style.minHeight="20px",$e.style.flexGrow="2",$e.style.fontFamily=De,$e.style.overflow="hidden";var mt=document.createElement("div");mt.style.whiteSpace="nowrap",mt.style.overflow="hidden",mt.style.textOverflow="ellipsis",mt.innerHTML="The quick brown fox jumps over the lazy dog",$e.appendChild(mt),ve.appendChild($e),xe.fontBoxes.push(ve)}),Ne},Le.prototype.setCurrentFont=function(xe,Ne){var De=this;this.currentFont=xe,this.fontBoxes.forEach(function(ve){ve.style.borderColor=ve===Ne?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Le}(te),Zt=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.color="transparent",ve.padding=5,ve.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ve.text=ve.DEFAULT_TEXT,ve.isMoved=!1,ve.color=De.defaultColor,ve.fontFamily=De.defaultFontFamily,ve.defaultSize={x:100,y:30},ve.setColor=ve.setColor.bind(ve),ve.setFont=ve.setFont.bind(ve),ve.renderText=ve.renderText.bind(ve),ve.sizeText=ve.sizeText.bind(ve),ve.textEditDivClicked=ve.textEditDivClicked.bind(ve),ve.showTextEditor=ve.showTextEditor.bind(ve),ve.setSize=ve.setSize.bind(ve),ve.positionTextEditor=ve.positionTextEditor.bind(ve),ve.colorPanel=new ne("Color",De.defaultColorSet,De.defaultColor),ve.colorPanel.onColorChanged=ve.setColor,ve.fontFamilyPanel=new Ze("Font",De.defaultFontFamilies,De.defaultFontFamily),ve.fontFamilyPanel.onFontChanged=ve.setFont,ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){if(He.prototype.ownsTarget.call(this,xe)||xe===this.visual||xe===this.textElement||xe===this.bgRectangle)return!0;var Ne=!1;return this.textElement.childNodes.forEach(function(De){De===xe&&(Ne=!0)}),Ne},Le.prototype.createVisual=function(){this.visual=Je.createGroup(),this.bgRectangle=Je.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Je.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Je.createTransform()),this.textElement.transform.baseVal.appendItem(Je.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Le.prototype.renderText=function(){var xe=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(Ne){xe.textElement.appendChild(Je.createTSpan(Ne.trim()===""?" ":Ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Le.prototype.getTextScale=function(){var xe=this.textElement.getBBox(),Ne=1;if(xe.width>0&&xe.height>0){var De=(1*this.width-this.width*this.padding*2/100)/xe.width,ve=(1*this.height-this.height*this.padding*2/100)/xe.height;Ne=Math.min(De,ve)}return Ne},Le.prototype.getTextPosition=function(xe){var Ne=this.textElement.getBBox(),De=0,ve=0;return Ne.width>0&&Ne.height>0&&(De=(this.width-Ne.width*xe)/2,ve=this.height/2-Ne.height*xe/2),{x:De,y:ve}},Le.prototype.sizeText=function(){var xe=this.textElement.getBBox(),Ne=this.getTextScale(),De=this.getTextPosition(Ne);De.y-=xe.y*Ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+De.x+"px, "+De.y+"px) scale("+Ne+", "+Ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(De.x,De.y),this.textElement.transform.baseVal.getItem(1).setScale(Ne,Ne))},Le.prototype.manipulate=function(xe){He.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Le.prototype.resize=function(xe){He.prototype.resize.call(this,xe),this.isMoved=!0,this.setSize(),this.sizeText()},Le.prototype.setSize=function(){He.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Je.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Je.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Le.prototype.pointerUp=function(xe){var Ne=this.state;Ne==="creating"&&(this._suppressMarkerCreateEvent=!0),He.prototype.pointerUp.call(this,xe),this.setSize(),(Ne==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Le.prototype.showTextEditor=function(){var xe=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(Ne){Ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ne=Number.parseFloat(xe.textEditor.style.fontSize);xe.textEditor.clientWidth>=Number.parseInt(xe.textEditor.style.maxWidth)&&Ne>.9;)Ne-=.1,xe.textEditor.style.fontSize=Math.max(Ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ne){if(Ne.clipboardData){var De=Ne.clipboardData.getData("text"),ve=window.getSelection();if(!ve.rangeCount)return!1;ve.deleteFromDocument(),ve.getRangeAt(0).insertNode(document.createTextNode(De)),Ne.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xe.textEditDivClicked(xe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Le.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xe=this.getTextScale(),Ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),De=this.textElement.getBBox(),ve={x:De.width*xe,y:De.height*xe};Ne.x-=ve.x/2,Ne.y-=ve.y/2,this.textEditor.style.top=Ne.y+"px",this.textEditor.style.left=Ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ne.x+"px",this.textEditor.style.fontSize=Math.max(16*xe,12)+"px",this.textElement.style.display="none"}},Le.prototype.textEditDivClicked=function(xe){this.text=xe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Le.prototype.select=function(){He.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Le.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),He.prototype.deselect.call(this)},Le.prototype.dblClick=function(xe,Ne){He.prototype.dblClick.call(this,xe,Ne),this.showTextEditor()},Le.prototype.setColor=function(xe){this.textElement&&Je.setAttributes(this.textElement,[["fill",xe]]),this.color=xe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xe)},Le.prototype.setFont=function(xe){this.textElement&&Je.setAttributes(this.textElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Le.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Le.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},He.prototype.getState.call(this));return xe.typeName=Le.typeName,xe},Le.prototype.restoreState=function(xe){var Ne=xe;this.color=Ne.color,this.fontFamily=Ne.fontFamily,this.padding=Ne.padding,this.text=Ne.text,this.createVisual(),He.prototype.restoreState.call(this,xe),this.setSize()},Le.prototype.scale=function(xe,Ne){He.prototype.scale.call(this,xe,Ne),this.setSize(),this.sizeText(),this.positionTextEditor()},Le.typeName="TextMarker",Le.title="Text marker",Le.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>',Le}(we),yt=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.color="transparent",ve.lineWidth=3,ve.drawing=!1,ve.pixelRatio=1,ve.color=De.defaultColor,ve.lineWidth=De.defaultStrokeWidth,ve.pixelRatio=De.freehandPixelRatio,ve.setColor=ve.setColor.bind(ve),ve.addCanvas=ve.addCanvas.bind(ve),ve.finishCreation=ve.finishCreation.bind(ve),ve.setLineWidth=ve.setLineWidth.bind(ve),ve.colorPanel=new ne("Color",De.defaultColorSet,De.defaultColor),ve.colorPanel.onColorChanged=ve.setColor,ve.lineWidthPanel=new Be("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),ve.lineWidthPanel.onWidthChanged=ve.setLineWidth,ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){return!(!He.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.drawingImage)},Le.prototype.createVisual=function(){this.visual=Je.createGroup(),this.drawingImage=Je.createImage(),this.visual.appendChild(this.drawingImage);var xe=Je.createTransform();this.visual.transform.baseVal.appendItem(xe),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(xe,Ne){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(xe.x,xe.y),this.drawing=!0):He.prototype.pointerDown.call(this,xe,Ne)},Le.prototype.manipulate=function(xe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xe.x,xe.y),this.canvasContext.stroke()):He.prototype.manipulate.call(this,xe)},Le.prototype.resize=function(xe){He.prototype.resize.call(this,xe),Je.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Je.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Le.prototype.pointerUp=function(xe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):He.prototype.pointerUp.call(this,xe)},Le.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)},Le.prototype.select=function(){this.state==="creating"&&this.finishCreation(),He.prototype.select.call(this)},Le.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),He.prototype.deselect.call(this)},Le.prototype.finishCreation=function(){for(var xe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],De=Ne[0],ve=Ne[1],$e=Ne[2],mt=Ne[3],et=!1,Ve=0;Ve<this.canvasElement.height;Ve++)for(var gt=0;gt<this.canvasElement.width;gt++)xe.data[Ve*this.canvasElement.width*4+4*gt+3]>0&&(et=!0,Ve<ve&&(ve=Ve),gt<De&&(De=gt),Ve>mt&&(mt=Ve),gt>$e&&($e=gt));if(et){this.left=De/this.pixelRatio,this.top=ve/this.pixelRatio,this.width=($e-De)/this.pixelRatio,this.height=(mt-ve)/this.pixelRatio;var ft=document.createElement("canvas");ft.width=$e-De,ft.height=mt-ve,ft.getContext("2d").putImageData(this.canvasContext.getImageData(De,ve,$e-De,mt-ve),0,0),this.drawingImgUrl=ft.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Le.prototype.setDrawingImage=function(){Je.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Je.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Le.prototype.setColor=function(xe){this.color=xe,this.colorChanged(xe)},Le.prototype.setLineWidth=function(xe){this.lineWidth=xe},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=Object.assign({drawingImgUrl:this.drawingImgUrl},He.prototype.getState.call(this));return xe.typeName=Le.typeName,xe},Le.prototype.restoreState=function(xe){this.createVisual(),He.prototype.restoreState.call(this,xe),this.drawingImgUrl=xe.drawingImgUrl,this.setDrawingImage()},Le.prototype.scale=function(xe,Ne){He.prototype.scale.call(this,xe,Ne),this.setDrawingImage()},Le.typeName="FreehandMarker",Le.title="Freehand marker",Le.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>',Le}(we),an=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,De||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ve.typeBoxes=[],ve.currentType=Ne,ve.setCurrentType=ve.setCurrentType.bind(ve),ve}return Oe(Le,He),Le.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2";for(var De=function(mt){var et="both";switch(mt){case 0:et="both";break;case 1:et="start";break;case 2:et="end";break;case 3:et="none"}var Ve=document.createElement("div");if(Ve.style.display="flex",Ve.style.flexGrow="2",Ve.style.alignItems="center",Ve.style.justifyContent="space-between",Ve.style.padding="5px",Ve.style.borderWidth="2px",Ve.style.borderStyle="solid",Ve.style.borderColor=et===ve.currentType?ve.uiStyleSettings.toolboxAccentColor:"transparent",Ve.addEventListener("click",function(){xe.setCurrentType(et,Ve)}),Ne.appendChild(Ve),et==="both"||et==="start"){var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.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="`+(ve.uiStyleSettings!==void 0?ve.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,gt.style.marginLeft="5px",Ve.appendChild(gt)}var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.style.flexGrow="2";var rt=document.createElement("hr");if(rt.style.minWidth="20px",rt.style.border="0px",rt.style.borderTop="3px solid "+(ve.uiStyleSettings!==void 0?ve.uiStyleSettings.toolboxColor:"#eeeeee"),rt.style.flexGrow="2",ft.appendChild(rt),Ve.appendChild(ft),et==="both"||et==="end"){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.minHeight="20px",Mt.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="`+(ve.uiStyleSettings!==void 0?ve.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Mt.style.marginRight="5px",Ve.appendChild(Mt)}ve.typeBoxes.push(Ve)},ve=this,$e=0;$e<4;$e++)De($e);return Ne},Le.prototype.setCurrentType=function(xe,Ne){var De=this;this.currentType=xe,this.typeBoxes.forEach(function(ve){ve.style.borderColor=ve===Ne?De.uiStyleSettings!==void 0?De.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Le}(te),Gt=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.arrowType="end",ve.arrowBaseHeight=10,ve.arrowBaseWidth=10,ve.getArrowPoints=ve.getArrowPoints.bind(ve),ve.setArrowType=ve.setArrowType.bind(ve),ve.arrowTypePanel=new an("Arrow type","end"),ve.arrowTypePanel.onArrowTypeChanged=ve.setArrowType,ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){return!(!He.prototype.ownsTarget.call(this,xe)&&xe!==this.arrow1&&xe!==this.arrow2)},Le.prototype.getArrowPoints=function(xe,Ne){var De=this.arrowBaseWidth+2*this.strokeWidth,ve=this.arrowBaseHeight+2*this.strokeWidth;return xe-De/2+","+(Ne+ve/2)+" "+xe+","+(Ne-ve/2)+" "+(xe+De/2)+","+(Ne+ve/2)},Le.prototype.createTips=function(){this.arrow1=Je.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Je.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Je.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Je.createTransform()),this.visual.appendChild(this.arrow2)},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.state==="creating"&&this.createTips()},Le.prototype.adjustVisual=function(){if(He.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",Je.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Je.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xe=0;Math.abs(this.x1-this.x2)>.1&&(xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ne=this.arrow1.transform.baseVal.getItem(0);Ne.setRotate(xe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ne,0);var De=this.arrow2.transform.baseVal.getItem(0);De.setRotate(xe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(De,0)}},Le.prototype.setArrowType=function(xe){this.arrowType=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=Object.assign({arrowType:this.arrowType},He.prototype.getState.call(this));return xe.typeName=Le.typeName,xe},Le.prototype.restoreState=function(xe){He.prototype.restoreState.call(this,xe);var Ne=xe;this.arrowType=Ne.arrowType,this.createTips(),this.adjustVisual()},Le.typeName="ArrowMarker",Le.title="Arrow marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Le}(dt),Vt=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.fillColor=De.defaultFillColor,ve.strokeWidth=0,ve.fillPanel=new ne("Color",De.defaultColorSet,De.defaultFillColor),ve.fillPanel.onColorChanged=ve.setFillColor,ve}return Oe(Le,He),Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=He.prototype.getState.call(this);return xe.typeName=Le.typeName,xe},Le.typeName="CoverMarker",Le.title="Cover marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Le}(Fe),hn=function(He){function Le(xe,Ne,De,ve){var $e=He.call(this,xe,ve||'<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 $e.opacities=[],$e.opacityBoxes=[],$e.opacities=Ne,$e.currentOpacity=De,$e.setCurrentOpacity=$e.setCurrentOpacity.bind($e),$e}return Oe(Le,He),Le.prototype.getUi=function(){var xe=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",Ne.style.justifyContent="space-between",this.opacities.forEach(function(De){var ve=document.createElement("div");ve.style.display="flex",ve.style.alignItems="center",ve.style.justifyContent="center",ve.style.padding="5px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.borderColor=De===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){xe.setCurrentOpacity(De,ve)}),Ne.appendChild(ve);var $e=document.createElement("div");$e.innerText=100*De+"%",ve.appendChild($e),xe.opacityBoxes.push(ve)}),Ne},Le.prototype.setCurrentOpacity=function(xe,Ne){var De=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(ve){ve.style.borderColor=ve===Ne?De.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Le}(te),yn=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.setOpacity=ve.setOpacity.bind(ve),ve.fillColor=De.defaultHighlightColor,ve.strokeWidth=0,ve.opacity=De.defaultHighlightOpacity,ve.fillPanel=new ne("Color",De.defaultColorSet,ve.fillColor),ve.fillPanel.onColorChanged=ve.setFillColor,ve.opacityPanel=new hn("Opacity",De.defaultOpacitySteps,ve.opacity),ve.opacityPanel.onOpacityChanged=ve.setOpacity,ve}return Oe(Le,He),Le.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&Je.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=He.prototype.getState.call(this);return xe.typeName=Le.typeName,xe},Le.typeName="HighlightMarker",Le.title="Highlight marker",Le.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>',Le}(Vt),vt='<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>',je='<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>',wt=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.bgColor="transparent",ve.tipPosition={x:0,y:0},ve.tipBase1Position={x:0,y:0},ve.tipBase2Position={x:0,y:0},ve.tipMoving=!1,ve.color=De.defaultStrokeColor,ve.bgColor=De.defaultFillColor,ve.fontFamily=De.defaultFontFamily,ve.defaultSize={x:100,y:30},ve.setBgColor=ve.setBgColor.bind(ve),ve.getTipPoints=ve.getTipPoints.bind(ve),ve.positionTip=ve.positionTip.bind(ve),ve.setTipPoints=ve.setTipPoints.bind(ve),ve.colorPanel=new ne("Text color",De.defaultColorSet,ve.color,vt),ve.colorPanel.onColorChanged=ve.setColor,ve.bgColorPanel=new ne("Fill color",De.defaultColorSet,ve.bgColor,je),ve.bgColorPanel.onColorChanged=ve.setBgColor,ve.fontFamilyPanel=new Ze("Font",De.defaultFontFamilies,De.defaultFontFamily),ve.fontFamilyPanel.onFontChanged=ve.setFont,ve.tipGrip=new ge,ve.tipGrip.visual.transform.baseVal.appendItem(Je.createTransform()),ve.controlBox.appendChild(ve.tipGrip.visual),ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){return He.prototype.ownsTarget.call(this,xe)||this.tipGrip.ownsTarget(xe)||this.tip===xe},Le.prototype.createTip=function(){Je.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Je.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Le.prototype.pointerDown=function(xe,Ne){this.state==="new"&&He.prototype.pointerDown.call(this,xe,Ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):He.prototype.pointerDown.call(this,xe,Ne)},Le.prototype.pointerUp=function(xe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,He.prototype.pointerUp.call(this,xe);else{var Ne=this.state==="creating";He.prototype.pointerUp.call(this,xe),this.setTipPoints(Ne),this.positionTip()}},Le.prototype.manipulate=function(xe){if(this.tipMoving){var Ne=this.unrotatePoint(xe);this.tipPosition={x:Ne.x-this.manipulationStartLeft,y:Ne.y-this.manipulationStartTop},this.positionTip()}else He.prototype.manipulate.call(this,xe)},Le.prototype.setBgColor=function(xe){this.bgRectangle&&this.tip&&(Je.setAttributes(this.bgRectangle,[["fill",xe]]),Je.setAttributes(this.tip,[["fill",xe]])),this.bgColor=xe,this.fillColorChanged(xe)},Le.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},Le.prototype.setTipPoints=function(xe){xe===void 0&&(xe=!1);var Ne=Math.min(this.height/2,15),De=this.height/5;xe&&(this.tipPosition={x:Ne+De/2,y:this.height+20});var ve=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ve<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(De=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:0},this.tipBase2Position={x:Ne+De,y:0}):(this.tipBase1Position={x:0,y:Ne},this.tipBase2Position={x:0,y:Ne+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ve<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(De=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-De,y:0},this.tipBase2Position={x:this.width-Ne,y:0}):(this.tipBase1Position={x:this.width,y:Ne},this.tipBase2Position={x:this.width,y:Ne+De}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ve<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(De=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-De,y:this.height},this.tipBase2Position={x:this.width-Ne,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ne-De},this.tipBase2Position={x:this.width,y:this.height-Ne}):ve<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(De=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:this.height},this.tipBase2Position={x:Ne+De,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ne},this.tipBase2Position={x:0,y:this.height-Ne-De})},Le.prototype.resize=function(xe){He.prototype.resize.call(this,xe),this.positionTip()},Le.prototype.positionTip=function(){Je.setAttributes(this.tip,[["points",this.getTipPoints()]]);var xe=this.tipGrip.visual.transform.baseVal.getItem(0);xe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(xe,0)},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Le.prototype.select=function(){this.positionTip(),He.prototype.select.call(this)},Le.prototype.getState=function(){var xe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},He.prototype.getState.call(this));return xe.typeName=Le.typeName,xe},Le.prototype.restoreState=function(xe){var Ne=xe;this.bgColor=Ne.bgColor,this.tipPosition=Ne.tipPosition,He.prototype.restoreState.call(this,xe),this.createTip(),this.setTipPoints()},Le.prototype.scale=function(xe,Ne){He.prototype.scale.call(this,xe,Ne),this.tipPosition={x:this.tipPosition.x*xe,y:this.tipPosition.y*Ne},this.positionTip()},Le.typeName="CalloutMarker",Le.title="Callout marker",Le.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>',Le}(Zt),tn=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.fillColor="transparent",ve.strokeColor="transparent",ve.strokeWidth=0,ve.strokeDasharray="",ve.opacity=1,ve.strokeColor=De.defaultColor,ve.strokeWidth=De.defaultStrokeWidth,ve.strokeDasharray=De.defaultStrokeDasharray,ve.fillColor=De.defaultFillColor,ve.setStrokeColor=ve.setStrokeColor.bind(ve),ve.setFillColor=ve.setFillColor.bind(ve),ve.setStrokeWidth=ve.setStrokeWidth.bind(ve),ve.setStrokeDasharray=ve.setStrokeDasharray.bind(ve),ve.setOpacity=ve.setOpacity.bind(ve),ve.createVisual=ve.createVisual.bind(ve),ve.strokePanel=new ne("Line color",Ue(De.defaultColorSet,["transparent"]),De.defaultColor),ve.strokePanel.onColorChanged=ve.setStrokeColor,ve.fillPanel=new ne("Fill color",Ue(De.defaultColorSet,["transparent"]),ve.fillColor,je),ve.fillPanel.onColorChanged=ve.setFillColor,ve.strokeWidthPanel=new Be("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),ve.strokeWidthPanel.onWidthChanged=ve.setStrokeWidth,ve.strokeStylePanel=new Ie("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),ve.strokeStylePanel.onStyleChanged=ve.setStrokeDasharray,ve.opacityPanel=new hn("Opacity",De.defaultOpacitySteps,ve.opacity),ve.opacityPanel.onOpacityChanged=ve.setOpacity,ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){return!(!He.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Le.prototype.createVisual=function(){this.visual=Je.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)},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Le.prototype.manipulate=function(xe){He.prototype.manipulate.call(this,xe)},Le.prototype.resize=function(xe){He.prototype.resize.call(this,xe),this.setSize()},Le.prototype.setSize=function(){He.prototype.setSize.call(this),Je.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Le.prototype.pointerUp=function(xe){He.prototype.pointerUp.call(this,xe),this.setSize()},Le.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&Je.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Le.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&Je.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Le.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&Je.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Le.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&Je.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Le.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&Je.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},He.prototype.getState.call(this));return xe.typeName=Le.typeName,xe},Le.prototype.restoreState=function(xe){var Ne=xe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),He.prototype.restoreState.call(this,xe),this.setSize()},Le.prototype.scale=function(xe,Ne){He.prototype.scale.call(this,xe,Ne),this.setSize()},Le.typeName="EllipseMarker",Le.title="Ellipse marker",Le.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>',Le}(we),bn=function(He){function Le(xe,Ne,De){return He.call(this,xe,Ne,De)||this}return Oe(Le,He),Object.defineProperty(Le.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Le.prototype.ownsTarget=function(xe){return!(!He.prototype.ownsTarget.call(this,xe)&&xe!==this.tip1&&xe!==this.tip2)},Le.prototype.createTips=function(){this.tip1=Je.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(Je.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Je.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(Je.createTransform()),this.visual.appendChild(this.tip2)},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.state==="creating"&&this.createTips()},Le.prototype.adjustVisual=function(){if(He.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Je.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()]]),Je.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 xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ne=this.tip1.transform.baseVal.getItem(0);Ne.setRotate(xe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ne,0);var De=this.tip2.transform.baseVal.getItem(0);De.setRotate(xe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(De,0)}},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=He.prototype.getState.call(this);return xe.typeName=Le.typeName,xe},Le.prototype.restoreState=function(xe){He.prototype.restoreState.call(this,xe),this.createTips(),this.adjustVisual()},Le.typeName="MeasurementMarker",Le.title="Measurement marker",Le.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>',Le}(dt),Ft=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.strokePanel.colors=De.defaultColorSet,ve.fillColor="transparent",ve}return Oe(Le,He),Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=He.prototype.getState.call(this);return xe.typeName=Le.typeName,xe},Le.typeName="EllipseFrameMarker",Le.title="Ellipse frame marker",Le.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>',Le}(tn),Xt=function(){function He(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(He.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),He.prototype.addUndoStep=function(Le){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Le)||(this.undoStack.push(Le),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Le)&&this.redoStack.splice(0,this.redoStack.length))},He.prototype.replaceLastUndoStep=function(Le){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Le)},He.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},He.prototype.undo=function(){if(this.undoStack.length>1){var Le=this.undoStack.pop();return Le!==void 0&&this.redoStack.push(Le),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},He.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},He}(),Cn=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.strokeColor="transparent",ve.strokeWidth=0,ve.strokeDasharray="",ve.curveX=0,ve.curveY=0,ve.manipulationStartCurveX=0,ve.manipulationStartCurveY=0,ve.setStrokeColor=ve.setStrokeColor.bind(ve),ve.setStrokeWidth=ve.setStrokeWidth.bind(ve),ve.setStrokeDasharray=ve.setStrokeDasharray.bind(ve),ve.positionGrips=ve.positionGrips.bind(ve),ve.addControlGrips=ve.addControlGrips.bind(ve),ve.adjustVisual=ve.adjustVisual.bind(ve),ve.setupControlBox=ve.setupControlBox.bind(ve),ve.resize=ve.resize.bind(ve),ve.strokeColor=De.defaultColor,ve.strokeWidth=De.defaultStrokeWidth,ve.strokeDasharray=De.defaultStrokeDasharray,ve.strokePanel=new ne("Line color",De.defaultColorSet,De.defaultColor),ve.strokePanel.onColorChanged=ve.setStrokeColor,ve.strokeWidthPanel=new Be("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),ve.strokeWidthPanel.onWidthChanged=ve.setStrokeWidth,ve.strokeStylePanel=new Ie("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),ve.strokeStylePanel.onStyleChanged=ve.setStrokeDasharray,ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){return!(!He.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorCurve&&xe!==this.visibleCurve&&!this.curveGrip.ownsTarget(xe))},Le.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Le.prototype.createVisual=function(){this.visual=Je.createGroup(),this.selectorCurve=Je.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Je.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)},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xe.x,this.curveY=xe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ne)&&(this.activeGrip=this.curveGrip,this._state="resize")},Le.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Je.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Je.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Je.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Le.prototype.setupControlBox=function(){He.prototype.setupControlBox.call(this),this.curveControlLine1=Je.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Je.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)},Le.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,He.prototype.addControlGrips.call(this)},Le.prototype.positionGrips=function(){He.prototype.positionGrips.call(this);var xe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xe/2,this.curveY-xe/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()))},Le.prototype.manipulate=function(xe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xe.y-this.manipulationStartY),He.prototype.manipulate.call(this,xe)},Le.prototype.resize=function(xe){this.activeGrip===this.curveGrip&&(this.curveX=xe.x,this.curveY=xe.y),He.prototype.resize.call(this,xe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Le.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Le.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Le.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual()},Le.prototype.scale=function(xe,Ne){this.curveX=this.curveX*xe,this.curveY=this.curveY*Ne,He.prototype.scale.call(this,xe,Ne)},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},He.prototype.getState.call(this));return xe.typeName=Le.typeName,xe},Le.prototype.restoreState=function(xe){He.prototype.restoreState.call(this,xe);var Ne=xe;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.curveX=Ne.curveX,this.curveY=Ne.curveY,this.createVisual(),this.adjustVisual()},Le.typeName="CurveMarker",Le.title="Curve marker",Le.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>',Le}(Xe),Qn=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,Ne,De)||this;return ve.fillColor="transparent",ve.strokeColor="transparent",ve.strokeWidth=0,ve.strokeDasharray="",ve.textColor="transparent",ve.fontSize="1rem",ve.isMoved=!1,ve.captionText="Caption",ve.PADDING=5,ve.captionBoxWidth=0,ve.captionBoxHeight=0,ve.strokeColor=De.defaultColor,ve.strokeWidth=De.defaultStrokeWidth,ve.strokeDasharray=De.defaultStrokeDasharray,ve.fillColor=De.defaultFillColor,ve.textColor=De.defaultStrokeColor,ve.fontFamily=De.defaultFontFamily,ve.fontSize=De.defaultCaptionFontSize,ve.captionText=De.defaultCaptionText,ve.setStrokeColor=ve.setStrokeColor.bind(ve),ve.setFillColor=ve.setFillColor.bind(ve),ve.setStrokeWidth=ve.setStrokeWidth.bind(ve),ve.setStrokeDasharray=ve.setStrokeDasharray.bind(ve),ve.createVisual=ve.createVisual.bind(ve),ve.sizeCaption=ve.sizeCaption.bind(ve),ve.setCaptionText=ve.setCaptionText.bind(ve),ve.showTextEditor=ve.showTextEditor.bind(ve),ve.positionTextEditor=ve.positionTextEditor.bind(ve),ve.finishTextEditing=ve.finishTextEditing.bind(ve),ve.setFont=ve.setFont.bind(ve),ve.setTextColor=ve.setTextColor.bind(ve),ve.strokePanel=new ne("Line color",Ue(De.defaultColorSet,["transparent"]),ve.strokeColor),ve.strokePanel.onColorChanged=ve.setStrokeColor,ve.fillPanel=new ne("Fill color",Ue(De.defaultColorSet,["transparent"]),ve.fillColor,je),ve.fillPanel.onColorChanged=ve.setFillColor,ve.strokeWidthPanel=new Be("Line width",De.defaultStrokeWidths,De.defaultStrokeWidth),ve.strokeWidthPanel.onWidthChanged=ve.setStrokeWidth,ve.strokeStylePanel=new Ie("Line style",De.defaultStrokeDasharrays,De.defaultStrokeDasharray),ve.strokeStylePanel.onStyleChanged=ve.setStrokeDasharray,ve.fontFamilyPanel=new Ze("Font",De.defaultFontFamilies,De.defaultFontFamily),ve.fontFamilyPanel.onFontChanged=ve.setFont,ve.textColorPanel=new ne("Text color",De.defaultColorSet,ve.textColor,vt),ve.textColorPanel.onColorChanged=ve.setTextColor,ve}return Oe(Le,He),Le.prototype.ownsTarget=function(xe){return!(!He.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.frame&&xe!==this.captionBg&&xe!==this.captionElement)},Le.prototype.createVisual=function(){this.visual=Je.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Je.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Je.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=Je.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()},Le.prototype.setCaptionText=function(xe){this.captionText=xe,this.captionElement.textContent=this.captionText,this.sizeCaption()},Le.prototype.pointerDown=function(xe,Ne){He.prototype.pointerDown.call(this,xe,Ne),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Le.prototype.manipulate=function(xe){He.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Le.prototype.resize=function(xe){He.prototype.resize.call(this,xe),this.setSize()},Le.prototype.sizeCaption=function(){var xe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xe.width+2*this.PADDING,this.captionBoxHeight=xe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Je.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')"]]),Je.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')"]])},Le.prototype.showTextEditor=function(){var xe=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(Ne){Ne.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ne){Ne.key==="Enter"&&xe.finishTextEditing(xe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Le.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"))},Le.prototype.finishTextEditing=function(xe){this.setCaptionText(xe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Le.prototype.setFont=function(xe){this.captionElement&&Je.setAttributes(this.captionElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Le.prototype.setTextColor=function(xe){this.captionElement&&Je.setAttributes(this.captionElement,[["fill",xe]]),this.textColor=xe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Le.prototype.setSize=function(){He.prototype.setSize.call(this),Je.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Le.prototype.pointerUp=function(xe){He.prototype.pointerUp.call(this,xe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Le.prototype.dblClick=function(xe,Ne){He.prototype.dblClick.call(this,xe,Ne),this.showTextEditor()},Le.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.frame&&Je.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Le.prototype.setFillColor=function(xe){this.fillColor=xe,this.captionBg&&Je.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Le.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.frame&&Je.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Le.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.frame&&Je.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var xe=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},He.prototype.getState.call(this));return xe.typeName=this.typeName,xe},Le.prototype.restoreState=function(xe){var Ne=xe;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.textColor=Ne.textColor,this.fontFamily=Ne.fontFamily,this.captionText=Ne.captionText,this.fontSize=Ne.fontSize,this.createVisual(),He.prototype.restoreState.call(this,xe),this.setSize()},Le.prototype.scale=function(xe,Ne){He.prototype.scale.call(this,xe,Ne),this.setSize()},Le.typeName="CaptionFrameMarker",Le.title="Caption frame marker",Le.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>',Le}(we),gn=function(){function He(Le,xe){xe===void 0&&(xe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Le,this.cancelable=xe}return Object.defineProperty(He.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),He.prototype.preventDefault=function(){this._defaultPrevented=!0},He}(),Gn=function(He){function Le(xe,Ne,De){var ve=He.call(this,xe,!1)||this;return ve.dataUrl=Ne,ve.state=De,ve}return Oe(Le,He),Le}(gn),bt=function(He){function Le(xe,Ne,De){De===void 0&&(De=!1);var ve=He.call(this,xe,De)||this;return ve.marker=Ne,ve}return Oe(Le,He),Le}(gn),zn=function(){function He(){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 He.prototype.addEventListener=function(Le,xe){this[Le].push(xe)},He.prototype.removeEventListener=function(Le,xe){var Ne=this[Le].indexOf(xe);Ne>-1&&this[Le].splice(Ne,1)},He}(),ai=function(){function He(Le){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new nt,this._isOpen=!1,this.undoRedoManager=new Xt,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 zn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=He.instanceCounter++,this.styles=new ot(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Le,this.targetRoot=document.body,this.width=Le.clientWidth,this.height=Le.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(He.prototype,"ALL_MARKER_TYPES",{get:function(){return[We,yt,Gt,Zt,Ft,tn,yn,wt,bn,Vt,dt,Cn,Qn]},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[We,yt,Gt,Zt,tn,yn,wt]},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"BASIC_MARKER_TYPES",{get:function(){return[We,yt,Gt,Zt,yn]},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Le){var xe=this;this._availableMarkerTypes.splice(0),Le.forEach(function(Ne){if(typeof Ne=="string"){var De=xe.ALL_MARKER_TYPES.find(function(ve){return ve.typeName===Ne});De!==void 0&&xe._availableMarkerTypes.push(De)}else xe._availableMarkerTypes.push(Ne)})},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(He.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Le){this._zoomLevel=Le,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(He.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),He.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ke.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},He.prototype.show=function(){var Le=this;this.styles.styleSheetRoot===void 0&&Lt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Lt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new gn(Le))})},He.prototype.render=function(){return tt(this,void 0,void 0,function(){var Le;return At(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(Le=new Ot).naturalSize=this.renderAtNaturalSize,Le.imageType=this.renderImageType,Le.imageQuality=this.renderImageQuality,Le.markersOnly=this.renderMarkersOnly,Le.width=this.renderWidth,Le.height=this.renderHeight,[4,Le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xe.sent(),[4,Le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xe.sent()]}})})},He.prototype.close=function(Le){var xe=this;if(Le===void 0&&(Le=!1),this.isOpen){var Ne=!1;Le||this.eventListeners.beforeclose.forEach(function(De){var ve=new gn(xe,!0);De(ve),ve.defaultPrevented&&(Ne=!0)}),Ne||(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(De){return De(new gn(xe))}),this.detachEvents(),this._isOpen=!1)}},He.prototype.addMarkersToToolbar=function(){for(var Le,xe=[],Ne=0;Ne<arguments.length;Ne++)xe[Ne]=arguments[Ne];(Le=this._availableMarkerTypes).push.apply(Le,xe)},He.prototype.addRenderEventListener=function(Le){this.addEventListener("render",function(xe){Le(xe.dataUrl,xe.state)})},He.prototype.removeRenderEventListener=function(Le){},He.prototype.addCloseEventListener=function(Le){this.addEventListener("close",function(){Le()})},He.prototype.removeCloseEventListener=function(Le){},He.prototype.setupResizeObserver=function(){var Le=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Le.resize(Le.target.clientWidth,Le.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Le.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},He.prototype.onPopupTargetResize=function(){var Le=1*this.target.clientWidth/this.target.clientHeight,xe=this.editorCanvas.clientWidth/Le>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Le:this.editorCanvas.clientWidth,Ne=xe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Le;this.resize(xe,Ne)},He.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},He.prototype.resize=function(Le,xe){this._isResizing=!0;var Ne=Le/this.imageWidth,De=xe/this.imageHeight;this.imageWidth=Math.round(Le),this.imageHeight=Math.round(xe),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(Ne,De),this._isResizing=!1},He.prototype.scaleMarkers=function(Le,xe){var Ne,De=this;this._currentMarker&&this._currentMarker instanceof Zt?this._currentMarker.scale(Le,xe):(Ne=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ve){ve!==De._currentMarker&&ve.scale(Le,xe)}),Ne!==void 0&&this.setCurrentMarker(Ne)},He.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"},He.prototype.setTopLeft=function(){var Le=this.editingTarget.getBoundingClientRect(),xe=this.editorCanvas.getBoundingClientRect();this.left=Le.left-xe.left,this.top=Le.top-xe.top},He.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)},He.prototype.addDefs=function(){for(var Le,xe=[],Ne=0;Ne<arguments.length;Ne++)xe[Ne]=arguments[Ne];this.defs=Je.createDefs(),this.addDefsToImage(),(Le=this.defs).append.apply(Le,xe)},He.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},He.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)},He.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},He.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},He.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)},He.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},He.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)},He.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 Le=document.createElement("a");Le.href="https://markerjs.com/",Le.target="_blank",Le.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>',Le.title="Powered by marker.js",Le.style.display="grid",Le.style.alignItems="center",Le.style.justifyItems="center",Le.style.padding="3px",Le.style.width="20px",Le.style.height="20px",this.logoUI.appendChild(Le),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},He.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")},He.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"},He.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},He.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 Le=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=Le+"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 zt(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 Ae(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},He.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},He.prototype.removeMarker=function(Le){this.markerImage.removeChild(Le.container),this.markers.indexOf(Le)>-1&&this.markers.splice(this.markers.indexOf(Le),1),Le.dispose()},He.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())},He.prototype.toolbarButtonClicked=function(Le,xe){if(Le==="marker"&&xe!==void 0)this.createNewMarker(xe);else if(Le==="action")switch(xe){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()}},He.prototype.deleteSelectedMarker=function(){var Le=this;if(this._currentMarker!==void 0){var xe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(De){var ve=new bt(Le,Le._currentMarker,!0);De(ve),ve.defaultPrevented&&(xe=!0)}),!xe){var Ne=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(De){return De(new bt(Le,Ne))})}}},He.prototype.clear=function(){var Le=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function($e){var mt=new bt(Le,void 0,!0);$e(mt),mt.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var Ne=function($e){var mt=De.markers[$e];De.setCurrentMarker(De.markers[$e]),De._currentMarker.dispose(),De.markerImage.removeChild(De._currentMarker.container),De.markers.splice(De.markers.indexOf(De._currentMarker),1),De.eventListeners.markerdelete.forEach(function(et){return et(new bt(Le,mt))})},De=this,ve=this.markers.length-1;ve>=0;ve--)Ne(ve);this.addUndoStep()}},Object.defineProperty(He.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),He.prototype.showNotesEditor=function(){var Le;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=(Le=this._currentMarker.notes)!==null&&Le!==void 0?Le:"",this.overlayContainer.appendChild(this.notesArea))},He.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)},He.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},He.prototype.addUndoStep=function(){var Le=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xe=this.getState(),Ne=this.undoRedoManager.getLastUndoStep();if(!Ne||Ne.width===xe.width&&Ne.height===xe.height){var De=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xe),De<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ve){return ve(new gn(Le))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(ve){return ve(new gn(Le))})}},He.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},He.prototype.undoStep=function(){var Le=this,xe=this.undoRedoManager.undo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new gn(Le))}))},He.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},He.prototype.redoStep=function(){var Le=this,xe=this.undoRedoManager.redo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new gn(Le))}))},He.prototype.stepZoom=function(){var Le=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Le<this.zoomSteps.length-1?this.zoomSteps[Le+1]:this.zoomSteps[0]},He.prototype.panTo=function(Le){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Le.x,top:this.prevPanPoint.y-Le.y}),this.prevPanPoint=Le},He.prototype.startRenderAndClose=function(){return tt(this,void 0,void 0,function(){var Le,xe,Ne=this;return At(this,function(De){switch(De.label){case 0:return[4,this.render()];case 1:return Le=De.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(ve){return ve(new Gn(Ne,Le,xe))}),this.close(!0),[2]}})})},He.prototype.getState=function(Le){Le===!0&&this.setCurrentMarker();var xe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ne){return xe.markers.push(Ne.getState())}),xe},He.prototype.restoreState=function(Le){var xe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Le.markers.forEach(function(Ne){var De=xe._availableMarkerTypes.find(function($e){return $e.typeName===Ne.typeName});if(De!==void 0){var ve=xe.addNewMarker(De);ve.restoreState(Ne),xe.markers.push(ve)}}),Le.width&&Le.height&&(Le.width!==this.imageWidth||Le.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Le.width,this.imageHeight/Le.height),this.eventListeners.restorestate.forEach(function(Ne){return Ne(new gn(xe))})},He.prototype.addNewMarker=function(Le){var xe=Je.createGroup();return this.markerImage.appendChild(xe),new Le(xe,this.overlayContainer,this.settings)},He.prototype.createNewMarker=function(Le){var xe,Ne=this;(xe=typeof Le=="string"?this._availableMarkerTypes.find(function(De){return De.typeName===Le}):Le)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(xe),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(xe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(De){return De(new bt(Ne,Ne._currentMarker))}))},He.prototype.markerCreated=function(Le){var xe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Le),this.setCurrentMarker(Le),Le instanceof yt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(yt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ne){return Ne(new bt(xe,xe._currentMarker))})},He.prototype.colorChanged=function(Le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Le,this.settings.defaultStrokeColor=Le)},He.prototype.fillColorChanged=function(Le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Le)},He.prototype.markerStateChanged=function(Le){var xe=this;this.eventListeners.markerchange.forEach(function(Ne){return Ne(new bt(xe,Le))})},He.prototype.setCurrentMarker=function(Le){var xe=this;this._currentMarker!==Le&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ne){return Ne(new bt(xe,xe._currentMarker))})),this._currentMarker=Le,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(Ne){return Ne(new bt(xe,xe._currentMarker))}))},He.prototype.onPointerDown=function(Le){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Le.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var xe=this.markers.find(function(Ne){return Ne.ownsTarget(Le.target)});xe!==void 0?(this.setCurrentMarker(xe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Le.clientX,Le.clientY),Le.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Le.clientX,y:Le.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Le.clientX,Le.clientY))},He.prototype.onDblClick=function(Le){if(this._isFocused||this.focus(),this.mode==="select"){var xe=this.markers.find(function(Ne){return Ne.ownsTarget(Le.target)});xe!==void 0&&xe!==this._currentMarker&&this.setCurrentMarker(xe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Le.clientX,Le.clientY),Le.target):this.setCurrentMarker()}},He.prototype.onPointerMove=function(Le){this.touchPoints!==1&&Le.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Le.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Le.clientX,Le.clientY)):this.zoomLevel>1&&this.panTo({x:Le.clientX,y:Le.clientY}))},He.prototype.onPointerUp=function(Le){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Le.clientX,Le.clientY)),this.isDragging=!1,this.addUndoStep()},He.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},He.prototype.onKeyUp=function(Le){this._currentMarker===void 0||this.notesArea!==void 0||Le.key!=="Delete"&&Le.key!=="Backspace"||this.deleteSelectedMarker()},He.prototype.clientToLocalCoordinates=function(Le,xe){var Ne=this.markerImage.getBoundingClientRect();return{x:(Le-Ne.left)/this.zoomLevel,y:(xe-Ne.top)/this.zoomLevel}},He.prototype.onWindowResize=function(){this.positionUI()},He.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Le=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Le+"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()},He.prototype.addLicenseKey=function(Le){ke.addKey(Le)},He.prototype.addEventListener=function(Le,xe){this.eventListeners.addEventListener(Le,xe)},He.prototype.removeEventListener=function(Le,xe){this.eventListeners.removeEventListener(Le,xe)},He.prototype.renderState=function(Le){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Le),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(He.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),He.prototype.focus=function(){var Le=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xe){return xe(new gn(Le))}))},He.prototype.blur=function(){var Le=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xe){return xe(new gn(Le))}))},He.instanceCounter=0,He}()},17115:function(Kn,kn,ye){"use strict";ye.d(kn,{ZP:function(){return ke}});var Ce=ye(72071),Oe=ye(59301),tt=ye(47273),At=0,Ue=(0,tt.Z)();function Je(){var Ot;return Ue?(Ot=At,At+=1):Ot="TEST_OR_SSR",Ot}function ke(Ot){var Lt=Oe.useState(),ot=(0,Ce.Z)(Lt,2),Rt=ot[0],xt=ot[1];return Oe.useEffect(function(){xt("rc_select_".concat(Je()))},[]),Ot||Rt}},77861:function(Kn,kn,ye){"use strict";ye.d(kn,{Ac:function(){return Mt},Xo:function(){return ci},Wx:function(){return qi},ZP:function(){return _t},lk:function(){return we}});var Ce=ye(96663),Oe=ye(19127),tt=ye(90493),At=ye(44127),Ue=ye(72071),Je=ye(6620),ke=ye(20135),Ot=ye(18929),Lt=ye(48736),ot=ye(59301),Rt=ye(92310),xt=ye.n(Rt),zt=ye(34280),Ae=ye(49658),te=ye(10228),ne=ye(8654),he=function(Ye){var Wt=Ye.className,Ut=Ye.customizeIcon,fn=Ye.customizeIconProps,Dn=Ye.onMouseDown,at=Ye.onClick,ln=Ye.children,Hn;return typeof Ut=="function"?Hn=Ut(fn):Hn=Ut,ot.createElement("span",{className:Wt,onMouseDown:function(jt){jt.preventDefault(),Dn&&Dn(jt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:at,"aria-hidden":!0},Hn!==void 0?Hn:ot.createElement("span",{className:xt()(Wt.split(/\s+/).map(function(ii){return"".concat(ii,"-icon")}))},ln))},se=he;function ge(ht,Ye,Wt,Ut,fn){var Dn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,at=arguments.length>6?arguments[6]:void 0,ln=arguments.length>7?arguments[7]:void 0,Hn=ot.useMemo(function(){if((0,ke.Z)(Ut)==="object")return Ut.clearIcon;if(fn)return fn},[Ut,fn]),ii=ot.useMemo(function(){return!!(!Dn&&Ut&&(Wt.length||at)&&!(ln==="combobox"&&at===""))},[Ut,Dn,Wt.length,at,ln]);return{allowClear:ii,clearIcon:ot.createElement(se,{className:"".concat(ht,"-clear"),onMouseDown:Ye,customizeIcon:Hn},"\xD7")}}var me=ot.createContext(null);function we(){return ot.useContext(me)}function Fe(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ye=ot.useState(!1),Wt=(0,Ue.Z)(Ye,2),Ut=Wt[0],fn=Wt[1],Dn=ot.useRef(null),at=function(){window.clearTimeout(Dn.current)};ot.useEffect(function(){return at},[]);var ln=function(ii,jt){at(),Dn.current=window.setTimeout(function(){fn(ii),jt&&jt()},ht)};return[Ut,ln,at]}function Be(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ye=ot.useRef(null),Wt=ot.useRef(null);ot.useEffect(function(){return function(){window.clearTimeout(Wt.current)}},[]);function Ut(fn){(fn||Ye.current===null)&&(Ye.current=fn),window.clearTimeout(Wt.current),Wt.current=window.setTimeout(function(){Ye.current=null},ht)}return[function(){return Ye.current},Ut]}function Ie(ht,Ye,Wt,Ut){var fn=ot.useRef(null);fn.current={open:Ye,triggerOpen:Wt,customizedTrigger:Ut},ot.useEffect(function(){function Dn(at){var ln;if(!((ln=fn.current)!==null&&ln!==void 0&&ln.customizedTrigger)){var Hn=at.target;Hn.shadowRoot&&at.composed&&(Hn=at.composedPath()[0]||Hn),fn.current.open&&ht().filter(function(ii){return ii}).every(function(ii){return!ii.contains(Hn)&&ii!==Hn})&&fn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Dn),function(){return window.removeEventListener("mousedown",Dn)}},[])}var We=ye(26112),nt=ye(11780),Xe=function(Ye,Wt){var Ut,fn,Dn=Ye.prefixCls,at=Ye.id,ln=Ye.inputElement,Hn=Ye.disabled,ii=Ye.tabIndex,jt=Ye.autoFocus,sn=Ye.autoComplete,It=Ye.editable,on=Ye.activeDescendantId,qt=Ye.value,en=Ye.maxLength,xn=Ye.onKeyDown,Pn=Ye.onMouseDown,An=Ye.onChange,Wn=Ye.onPaste,pi=Ye.onCompositionStart,Yt=Ye.onCompositionEnd,bi=Ye.open,Di=Ye.attrs,ki=ln||ot.createElement("input",null),nn=ki,Xn=nn.ref,fi=nn.props,wi=fi.onKeyDown,gi=fi.onChange,Bi=fi.onMouseDown,Ki=fi.onCompositionStart,ji=fi.onCompositionEnd,Pi=fi.style;return(0,Lt.Kp)(!("maxLength"in ki.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ki=ot.cloneElement(ki,(0,At.Z)((0,At.Z)((0,At.Z)({type:"search"},fi),{},{id:at,ref:(0,ne.sQ)(Wt,Xn),disabled:Hn,tabIndex:ii,autoComplete:sn||"off",autoFocus:jt,className:xt()("".concat(Dn,"-selection-search-input"),(Ut=ki)===null||Ut===void 0||(fn=Ut.props)===null||fn===void 0?void 0:fn.className),role:"combobox","aria-label":"Search","aria-expanded":bi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(at,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(at,"_list"),"aria-activedescendant":bi?on:void 0},Di),{},{value:It?qt:"",maxLength:en,readOnly:!It,unselectable:It?null:"on",style:(0,At.Z)((0,At.Z)({},Pi),{},{opacity:It?null:0}),onKeyDown:function(Ln){xn(Ln),wi&&wi(Ln)},onMouseDown:function(Ln){Pn(Ln),Bi&&Bi(Ln)},onChange:function(Ln){An(Ln),gi&&gi(Ln)},onCompositionStart:function(Ln){pi(Ln),Ki&&Ki(Ln)},onCompositionEnd:function(Ln){Yt(Ln),ji&&ji(Ln)},onPaste:Wn})),ki},dt=ot.forwardRef(Xe);dt.displayName="Input";var Ze=dt;function Zt(ht){return Array.isArray(ht)?ht:ht!==void 0?[ht]:[]}var yt=typeof window!="undefined"&&window.document&&window.document.documentElement,an=yt;function Gt(ht){return ht!=null}function Vt(ht){return!ht&&ht!==0}function hn(ht){return["string","number"].includes((0,ke.Z)(ht))}function yn(ht){var Ye=void 0;return ht&&(hn(ht.title)?Ye=ht.title.toString():hn(ht.label)&&(Ye=ht.label.toString())),Ye}function vt(ht,Ye){an?ot.useLayoutEffect(ht,Ye):ot.useEffect(ht,Ye)}function je(ht){var Ye;return(Ye=ht.key)!==null&&Ye!==void 0?Ye:ht.value}var wt=function(Ye){Ye.preventDefault(),Ye.stopPropagation()},tn=function(Ye){var Wt=Ye.id,Ut=Ye.prefixCls,fn=Ye.values,Dn=Ye.open,at=Ye.searchValue,ln=Ye.autoClearSearchValue,Hn=Ye.inputRef,ii=Ye.placeholder,jt=Ye.disabled,sn=Ye.mode,It=Ye.showSearch,on=Ye.autoFocus,qt=Ye.autoComplete,en=Ye.activeDescendantId,xn=Ye.tabIndex,Pn=Ye.removeIcon,An=Ye.maxTagCount,Wn=Ye.maxTagTextLength,pi=Ye.maxTagPlaceholder,Yt=pi===void 0?function(Do){return"+ ".concat(Do.length," ...")}:pi,bi=Ye.tagRender,Di=Ye.onToggleOpen,ki=Ye.onRemove,nn=Ye.onInputChange,Xn=Ye.onInputPaste,fi=Ye.onInputKeyDown,wi=Ye.onInputMouseDown,gi=Ye.onInputCompositionStart,Bi=Ye.onInputCompositionEnd,Ki=ot.useRef(null),ji=(0,ot.useState)(0),Pi=(0,Ue.Z)(ji,2),Vi=Pi[0],Ln=Pi[1],So=(0,ot.useState)(!1),Mn=(0,Ue.Z)(So,2),ro=Mn[0],No=Mn[1],_i="".concat(Ut,"-selection"),Go=Dn||sn==="multiple"&&ln===!1||sn==="tags"?at:"",ko=sn==="tags"||sn==="multiple"&&ln===!1||It&&(Dn||ro);vt(function(){Ln(Ki.current.scrollWidth)},[Go]);function Ii(Do,nr,xo,hr,Qo){return ot.createElement("span",{className:xt()("".concat(_i,"-item"),(0,tt.Z)({},"".concat(_i,"-item-disabled"),xo)),title:yn(Do)},ot.createElement("span",{className:"".concat(_i,"-item-content")},nr),hr&&ot.createElement(se,{className:"".concat(_i,"-item-remove"),onMouseDown:wt,onClick:Qo,customizeIcon:Pn},"\xD7"))}function Ai(Do,nr,xo,hr,Qo){var $i=function(jo){wt(jo),Di(!Dn)};return ot.createElement("span",{onMouseDown:$i},bi({label:nr,value:Do,disabled:xo,closable:hr,onClose:Qo}))}function Zi(Do){var nr=Do.disabled,xo=Do.label,hr=Do.value,Qo=!jt&&!nr,$i=xo;if(typeof Wn=="number"&&(typeof xo=="string"||typeof xo=="number")){var ao=String($i);ao.length>Wn&&($i="".concat(ao.slice(0,Wn),"..."))}var jo=function(dr){dr&&dr.stopPropagation(),ki(Do)};return typeof bi=="function"?Ai(hr,$i,nr,Qo,jo):Ii(Do,$i,nr,Qo,jo)}function yo(Do){var nr=typeof Yt=="function"?Yt(Do):Yt;return Ii({title:nr},nr,!1)}var di=ot.createElement("div",{className:"".concat(_i,"-search"),style:{width:Vi},onFocus:function(){No(!0)},onBlur:function(){No(!1)}},ot.createElement(Ze,{ref:Hn,open:Dn,prefixCls:Ut,id:Wt,inputElement:null,disabled:jt,autoFocus:on,autoComplete:qt,editable:ko,activeDescendantId:en,value:Go,onKeyDown:fi,onMouseDown:wi,onChange:nn,onPaste:Xn,onCompositionStart:gi,onCompositionEnd:Bi,tabIndex:xn,attrs:(0,We.Z)(Ye,!0)}),ot.createElement("span",{ref:Ki,className:"".concat(_i,"-search-mirror"),"aria-hidden":!0},Go,"\xA0")),Ke=ot.createElement(nt.Z,{prefixCls:"".concat(_i,"-overflow"),data:fn,renderItem:Zi,renderRest:yo,suffix:di,itemKey:je,maxCount:An});return ot.createElement(ot.Fragment,null,Ke,!fn.length&&!Go&&ot.createElement("span",{className:"".concat(_i,"-placeholder")},ii))},bn=tn,Ft=function(Ye){var Wt=Ye.inputElement,Ut=Ye.prefixCls,fn=Ye.id,Dn=Ye.inputRef,at=Ye.disabled,ln=Ye.autoFocus,Hn=Ye.autoComplete,ii=Ye.activeDescendantId,jt=Ye.mode,sn=Ye.open,It=Ye.values,on=Ye.placeholder,qt=Ye.tabIndex,en=Ye.showSearch,xn=Ye.searchValue,Pn=Ye.activeValue,An=Ye.maxLength,Wn=Ye.onInputKeyDown,pi=Ye.onInputMouseDown,Yt=Ye.onInputChange,bi=Ye.onInputPaste,Di=Ye.onInputCompositionStart,ki=Ye.onInputCompositionEnd,nn=Ye.title,Xn=ot.useState(!1),fi=(0,Ue.Z)(Xn,2),wi=fi[0],gi=fi[1],Bi=jt==="combobox",Ki=Bi||en,ji=It[0],Pi=xn||"";Bi&&Pn&&!wi&&(Pi=Pn),ot.useEffect(function(){Bi&&gi(!1)},[Bi,Pn]);var Vi=jt!=="combobox"&&!sn&&!en?!1:!!Pi,Ln=nn===void 0?yn(ji):nn,So=function(){if(ji)return null;var ro=Vi?{visibility:"hidden"}:void 0;return ot.createElement("span",{className:"".concat(Ut,"-selection-placeholder"),style:ro},on)};return ot.createElement(ot.Fragment,null,ot.createElement("span",{className:"".concat(Ut,"-selection-search")},ot.createElement(Ze,{ref:Dn,prefixCls:Ut,id:fn,open:sn,inputElement:Wt,disabled:at,autoFocus:ln,autoComplete:Hn,editable:Ki,activeDescendantId:ii,value:Pi,onKeyDown:Wn,onMouseDown:pi,onChange:function(ro){gi(!0),Yt(ro)},onPaste:bi,onCompositionStart:Di,onCompositionEnd:ki,tabIndex:qt,attrs:(0,We.Z)(Ye,!0),maxLength:Bi?An:void 0})),!Bi&&ji?ot.createElement("span",{className:"".concat(Ut,"-selection-item"),title:Ln,style:Vi?{visibility:"hidden"}:void 0},ji.label):null,So())},Xt=Ft;function Cn(ht){return![te.Z.ESC,te.Z.SHIFT,te.Z.BACKSPACE,te.Z.TAB,te.Z.WIN_KEY,te.Z.ALT,te.Z.META,te.Z.WIN_KEY_RIGHT,te.Z.CTRL,te.Z.SEMICOLON,te.Z.EQUALS,te.Z.CAPS_LOCK,te.Z.CONTEXT_MENU,te.Z.F1,te.Z.F2,te.Z.F3,te.Z.F4,te.Z.F5,te.Z.F6,te.Z.F7,te.Z.F8,te.Z.F9,te.Z.F10,te.Z.F11,te.Z.F12].includes(ht)}var Qn=function(Ye,Wt){var Ut=(0,ot.useRef)(null),fn=(0,ot.useRef)(!1),Dn=Ye.prefixCls,at=Ye.open,ln=Ye.mode,Hn=Ye.showSearch,ii=Ye.tokenWithEnter,jt=Ye.autoClearSearchValue,sn=Ye.onSearch,It=Ye.onSearchSubmit,on=Ye.onToggleOpen,qt=Ye.onInputKeyDown,en=Ye.domRef;ot.useImperativeHandle(Wt,function(){return{focus:function(){Ut.current.focus()},blur:function(){Ut.current.blur()}}});var xn=Be(0),Pn=(0,Ue.Z)(xn,2),An=Pn[0],Wn=Pn[1],pi=function(Pi){var Vi=Pi.which;(Vi===te.Z.UP||Vi===te.Z.DOWN)&&Pi.preventDefault(),qt&&qt(Pi),Vi===te.Z.ENTER&&ln==="tags"&&!fn.current&&!at&&(It==null||It(Pi.target.value)),Cn(Vi)&&on(!0)},Yt=function(){Wn(!0)},bi=(0,ot.useRef)(null),Di=function(Pi){sn(Pi,!0,fn.current)!==!1&&on(!0)},ki=function(){fn.current=!0},nn=function(Pi){fn.current=!1,ln!=="combobox"&&Di(Pi.target.value)},Xn=function(Pi){var Vi=Pi.target.value;if(ii&&bi.current&&/[\r\n]/.test(bi.current)){var Ln=bi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Vi=Vi.replace(Ln,bi.current)}bi.current=null,Di(Vi)},fi=function(Pi){var Vi=Pi.clipboardData,Ln=Vi.getData("text");bi.current=Ln},wi=function(Pi){var Vi=Pi.target;if(Vi!==Ut.current){var Ln=document.body.style.msTouchAction!==void 0;Ln?setTimeout(function(){Ut.current.focus()}):Ut.current.focus()}},gi=function(Pi){var Vi=An();Pi.target!==Ut.current&&!Vi&&ln!=="combobox"&&Pi.preventDefault(),(ln!=="combobox"&&(!Hn||!Vi)||!at)&&(at&&jt!==!1&&sn("",!0,!1),on())},Bi={inputRef:Ut,onInputKeyDown:pi,onInputMouseDown:Yt,onInputChange:Xn,onInputPaste:fi,onInputCompositionStart:ki,onInputCompositionEnd:nn},Ki=ln==="multiple"||ln==="tags"?ot.createElement(bn,(0,Ce.Z)({},Ye,Bi)):ot.createElement(Xt,(0,Ce.Z)({},Ye,Bi));return ot.createElement("div",{ref:en,className:"".concat(Dn,"-selector"),onClick:wi,onMouseDown:gi},Ki)},gn=ot.forwardRef(Qn);gn.displayName="Selector";var Gn=gn,bt=ye(35593),zn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ai=function(Ye){var Wt=Ye===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Wt,adjustY:1},htmlRegion:"scroll"}}},He=function(Ye,Wt){var Ut=Ye.prefixCls,fn=Ye.disabled,Dn=Ye.visible,at=Ye.children,ln=Ye.popupElement,Hn=Ye.animation,ii=Ye.transitionName,jt=Ye.dropdownStyle,sn=Ye.dropdownClassName,It=Ye.direction,on=It===void 0?"ltr":It,qt=Ye.placement,en=Ye.builtinPlacements,xn=Ye.dropdownMatchSelectWidth,Pn=Ye.dropdownRender,An=Ye.dropdownAlign,Wn=Ye.getPopupContainer,pi=Ye.empty,Yt=Ye.getTriggerDOMNode,bi=Ye.onPopupVisibleChange,Di=Ye.onPopupMouseEnter,ki=(0,Je.Z)(Ye,zn),nn="".concat(Ut,"-dropdown"),Xn=ln;Pn&&(Xn=Pn(ln));var fi=ot.useMemo(function(){return en||ai(xn)},[en,xn]),wi=Hn?"".concat(nn,"-").concat(Hn):ii,gi=typeof xn=="number",Bi=ot.useMemo(function(){return gi?null:xn===!1?"minWidth":"width"},[xn,gi]),Ki=jt;gi&&(Ki=(0,At.Z)((0,At.Z)({},Ki),{},{width:xn}));var ji=ot.useRef(null);return ot.useImperativeHandle(Wt,function(){return{getPopupElement:function(){return ji.current}}}),ot.createElement(bt.Z,(0,Ce.Z)({},ki,{showAction:bi?["click"]:[],hideAction:bi?["click"]:[],popupPlacement:qt||(on==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:fi,prefixCls:nn,popupTransitionName:wi,popup:ot.createElement("div",{ref:ji,onMouseEnter:Di},Xn),stretch:Bi,popupAlign:An,popupVisible:Dn,getPopupContainer:Wn,popupClassName:xt()(sn,(0,tt.Z)({},"".concat(nn,"-empty"),pi)),popupStyle:Ki,getTriggerDOMNode:Yt,onPopupVisibleChange:bi}),at)},Le=ot.forwardRef(He);Le.displayName="SelectTrigger";var xe=Le,Ne=ye(4537);function De(ht,Ye){var Wt=ht.key,Ut;return"value"in ht&&(Ut=ht.value),Wt!=null?Wt:Ut!==void 0?Ut:"rc-index-key-".concat(Ye)}function ve(ht,Ye){var Wt=ht||{},Ut=Wt.label,fn=Wt.value,Dn=Wt.options,at=Wt.groupLabel,ln=Ut||(Ye?"children":"label");return{label:ln,value:fn||"value",options:Dn||"options",groupLabel:at||ln}}function $e(ht){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Wt=Ye.fieldNames,Ut=Ye.childrenAsData,fn=[],Dn=ve(Wt,!1),at=Dn.label,ln=Dn.value,Hn=Dn.options,ii=Dn.groupLabel;function jt(sn,It){sn.forEach(function(on){if(It||!(Hn in on)){var qt=on[ln];fn.push({key:De(on,fn.length),groupOption:It,data:on,label:on[at],value:qt})}else{var en=on[ii];en===void 0&&Ut&&(en=on.label),fn.push({key:De(on,fn.length),group:!0,data:on,label:en}),jt(on[Hn],!0)}})}return jt(ht,!1),fn}function mt(ht){var Ye=(0,At.Z)({},ht);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 et(ht,Ye){if(!Ye||!Ye.length)return null;var Wt=!1;function Ut(Dn,at){var ln=(0,Ne.Z)(at),Hn=ln[0],ii=ln.slice(1);if(!Hn)return[Dn];var jt=Dn.split(Hn);return Wt=Wt||jt.length>1,jt.reduce(function(sn,It){return[].concat((0,Oe.Z)(sn),(0,Oe.Z)(Ut(It,ii)))},[]).filter(function(sn){return sn})}var fn=Ut(ht,Ye);return Wt?fn:null}var Ve=["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"],gt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ft(ht){return ht==="tags"||ht==="multiple"}var rt=ot.forwardRef(function(ht,Ye){var Wt,Ut,fn=ht.id,Dn=ht.prefixCls,at=ht.className,ln=ht.showSearch,Hn=ht.tagRender,ii=ht.direction,jt=ht.omitDomProps,sn=ht.displayValues,It=ht.onDisplayValuesChange,on=ht.emptyOptions,qt=ht.notFoundContent,en=qt===void 0?"Not Found":qt,xn=ht.onClear,Pn=ht.mode,An=ht.disabled,Wn=ht.loading,pi=ht.getInputElement,Yt=ht.getRawInputElement,bi=ht.open,Di=ht.defaultOpen,ki=ht.onDropdownVisibleChange,nn=ht.activeValue,Xn=ht.onActiveValueChange,fi=ht.activeDescendantId,wi=ht.searchValue,gi=ht.autoClearSearchValue,Bi=ht.onSearch,Ki=ht.onSearchSplit,ji=ht.tokenSeparators,Pi=ht.allowClear,Vi=ht.suffixIcon,Ln=ht.clearIcon,So=ht.OptionList,Mn=ht.animation,ro=ht.transitionName,No=ht.dropdownStyle,_i=ht.dropdownClassName,Go=ht.dropdownMatchSelectWidth,ko=ht.dropdownRender,Ii=ht.dropdownAlign,Ai=ht.placement,Zi=ht.builtinPlacements,yo=ht.getPopupContainer,di=ht.showAction,Ke=di===void 0?[]:di,Do=ht.onFocus,nr=ht.onBlur,xo=ht.onKeyUp,hr=ht.onKeyDown,Qo=ht.onMouseDown,$i=(0,Je.Z)(ht,Ve),ao=ft(Pn),jo=(ln!==void 0?ln:ao)||Pn==="combobox",Lo=(0,At.Z)({},$i);gt.forEach(function(sr){delete Lo[sr]}),jt==null||jt.forEach(function(sr){delete Lo[sr]});var dr=ot.useState(!1),Pr=(0,Ue.Z)(dr,2),Yi=Pr[0],Qi=Pr[1];ot.useEffect(function(){Qi((0,Ae.Z)())},[]);var ti=ot.useRef(null),io=ot.useRef(null),ir=ot.useRef(null),Ir=ot.useRef(null),mr=ot.useRef(null),er=Fe(),Lr=(0,Ue.Z)(er,3),Ar=Lr[0],ra=Lr[1],ua=Lr[2];ot.useImperativeHandle(Ye,function(){var sr,un;return{focus:(sr=Ir.current)===null||sr===void 0?void 0:sr.focus,blur:(un=Ir.current)===null||un===void 0?void 0:un.blur,scrollTo:function(ts){var Ta;return(Ta=mr.current)===null||Ta===void 0?void 0:Ta.scrollTo(ts)}}});var wa=ot.useMemo(function(){var sr;if(Pn!=="combobox")return wi;var un=(sr=sn[0])===null||sr===void 0?void 0:sr.value;return typeof un=="string"||typeof un=="number"?String(un):""},[wi,Pn,sn]),vn=Pn==="combobox"&&typeof pi=="function"&&pi()||null,ia=typeof Yt=="function"&&Yt(),Us=(0,ne.x1)(io,ia==null||(Wt=ia.props)===null||Wt===void 0?void 0:Wt.ref),us=ot.useState(!1),xr=(0,Ue.Z)(us,2),or=xr[0],da=xr[1];(0,zt.Z)(function(){da(!0)},[]);var Ro=(0,Ot.Z)(!1,{defaultValue:Di,value:bi}),lo=(0,Ue.Z)(Ro,2),Ko=lo[0],Wr=lo[1],no=or?Ko:!1,Io=!en&&on;(An||Io&&no&&Pn==="combobox")&&(no=!1);var Fo=Io?!1:no,vi=ot.useCallback(function(sr){var un=sr!==void 0?sr:!no;An||(Wr(un),no!==un&&(ki==null||ki(un)))},[An,no,Wr,ki]),Zr=ot.useMemo(function(){return(ji||[]).some(function(sr){return[`
|
|
|
`,`\r
|
|
|
`].includes(sr)})},[ji]),Yr=function(un,Es,ts){var Ta=!0,La=un;Xn==null||Xn(null);var Pa=ts?null:et(un,ji);return Pn!=="combobox"&&Pa&&(La="",Ki==null||Ki(Pa),vi(!1),Ta=!1),Bi&&wa!==La&&Bi(La,{source:Es?"typing":"effect"}),Ta},qa=function(un){!un||!un.trim()||Bi(un,{source:"submit"})};ot.useEffect(function(){!no&&!ao&&Pn!=="combobox"&&Yr("",!1,!1)},[no]),ot.useEffect(function(){Ko&&An&&Wr(!1),An&&ra(!1)},[An]);var bs=Be(),vs=(0,Ue.Z)(bs,2),xi=vs[0],Jr=vs[1],_r=function(un){var Es=xi(),ts=un.which;if(ts===te.Z.ENTER&&(Pn!=="combobox"&&un.preventDefault(),no||vi(!0)),Jr(!!wa),ts===te.Z.BACKSPACE&&!Es&&ao&&!wa&&sn.length){for(var Ta=(0,Oe.Z)(sn),La=null,Pa=Ta.length-1;Pa>=0;Pa-=1){var Ga=Ta[Pa];if(!Ga.disabled){Ta.splice(Pa,1),La=Ga;break}}La&&It(Ta,{type:"remove",values:[La]})}for(var Ka=arguments.length,Vl=new Array(Ka>1?Ka-1:0),Cl=1;Cl<Ka;Cl++)Vl[Cl-1]=arguments[Cl];if(no&&mr.current){var Oa;(Oa=mr.current).onKeyDown.apply(Oa,[un].concat(Vl))}hr==null||hr.apply(void 0,[un].concat(Vl))},es=function(un){for(var Es=arguments.length,ts=new Array(Es>1?Es-1:0),Ta=1;Ta<Es;Ta++)ts[Ta-1]=arguments[Ta];if(no&&mr.current){var La;(La=mr.current).onKeyUp.apply(La,[un].concat(ts))}xo==null||xo.apply(void 0,[un].concat(ts))},Xs=function(un){var Es=sn.filter(function(ts){return ts!==un});It(Es,{type:"remove",values:[un]})},gl=ot.useRef(!1),Uo=function(){ra(!0),An||(Do&&!gl.current&&Do.apply(void 0,arguments),Ke.includes("focus")&&vi(!0)),gl.current=!0},Ru=function(){ra(!1,function(){gl.current=!1,vi(!1)}),!An&&(wa&&(Pn==="tags"?Bi(wa,{source:"submit"}):Pn==="multiple"&&Bi("",{source:"blur"})),nr&&nr.apply(void 0,arguments))},Rs=[];ot.useEffect(function(){return function(){Rs.forEach(function(sr){return clearTimeout(sr)}),Rs.splice(0,Rs.length)}},[]);var As=function(un){var Es,ts=un.target,Ta=(Es=ir.current)===null||Es===void 0?void 0:Es.getPopupElement();if(Ta&&Ta.contains(ts)){var La=setTimeout(function(){var Vl=Rs.indexOf(La);if(Vl!==-1&&Rs.splice(Vl,1),ua(),!Yi&&!Ta.contains(document.activeElement)){var Cl;(Cl=Ir.current)===null||Cl===void 0||Cl.focus()}});Rs.push(La)}for(var Pa=arguments.length,Ga=new Array(Pa>1?Pa-1:0),Ka=1;Ka<Pa;Ka++)Ga[Ka-1]=arguments[Ka];Qo==null||Qo.apply(void 0,[un].concat(Ga))},Ds=ot.useState({}),Zl=(0,Ue.Z)(Ds,2),ou=Zl[1];function js(){ou({})}var Ys;ia&&(Ys=function(un){vi(un)}),Ie(function(){var sr;return[ti.current,(sr=ir.current)===null||sr===void 0?void 0:sr.getPopupElement()]},Fo,vi,!!ia);var Pu=ot.useMemo(function(){return(0,At.Z)((0,At.Z)({},ht),{},{notFoundContent:en,open:no,triggerOpen:Fo,id:fn,showSearch:jo,multiple:ao,toggleOpen:vi})},[ht,en,Fo,no,fn,jo,ao,vi]),Nh=!!Vi||Wn,ph;Nh&&(ph=ot.createElement(se,{className:xt()("".concat(Dn,"-arrow"),(0,tt.Z)({},"".concat(Dn,"-arrow-loading"),Wn)),customizeIcon:Vi,customizeIconProps:{loading:Wn,searchValue:wa,open:no,focused:Ar,showSearch:jo}}));var kh=function(){var un;xn==null||xn(),(un=Ir.current)===null||un===void 0||un.focus(),It([],{type:"clear",values:sn}),Yr("",!1,!1)},_u=ge(Dn,kh,sn,Pi,Ln,An,wa,Pn),ju=_u.allowClear,ru=_u.clearIcon,pl=ot.createElement(So,{ref:mr}),Ah=xt()(Dn,at,(Ut={},(0,tt.Z)(Ut,"".concat(Dn,"-focused"),Ar),(0,tt.Z)(Ut,"".concat(Dn,"-multiple"),ao),(0,tt.Z)(Ut,"".concat(Dn,"-single"),!ao),(0,tt.Z)(Ut,"".concat(Dn,"-allow-clear"),Pi),(0,tt.Z)(Ut,"".concat(Dn,"-show-arrow"),Nh),(0,tt.Z)(Ut,"".concat(Dn,"-disabled"),An),(0,tt.Z)(Ut,"".concat(Dn,"-loading"),Wn),(0,tt.Z)(Ut,"".concat(Dn,"-open"),no),(0,tt.Z)(Ut,"".concat(Dn,"-customize-input"),vn),(0,tt.Z)(Ut,"".concat(Dn,"-show-search"),jo),Ut)),qu=ot.createElement(xe,{ref:ir,disabled:An,prefixCls:Dn,visible:Fo,popupElement:pl,animation:Mn,transitionName:ro,dropdownStyle:No,dropdownClassName:_i,direction:ii,dropdownMatchSelectWidth:Go,dropdownRender:ko,dropdownAlign:Ii,placement:Ai,builtinPlacements:Zi,getPopupContainer:yo,empty:on,getTriggerDOMNode:function(){return io.current},onPopupVisibleChange:Ys,onPopupMouseEnter:js},ia?ot.cloneElement(ia,{ref:Us}):ot.createElement(Gn,(0,Ce.Z)({},ht,{domRef:io,prefixCls:Dn,inputElement:vn,ref:Ir,id:fn,showSearch:jo,autoClearSearchValue:gi,mode:Pn,activeDescendantId:fi,tagRender:Hn,values:sn,open:no,onToggleOpen:vi,activeValue:nn,searchValue:wa,onSearch:Yr,onSearchSubmit:qa,onRemove:Xs,tokenWithEnter:Zr}))),au;return ia?au=qu:au=ot.createElement("div",(0,Ce.Z)({className:Ah},Lo,{ref:ti,onMouseDown:As,onKeyDown:_r,onKeyUp:es,onFocus:Uo,onBlur:Ru}),Ar&&!no&&ot.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(sn.map(function(sr){var un=sr.label,Es=sr.value;return["number","string"].includes((0,ke.Z)(un))?un:Es}).join(", "))),qu,ph,ju&&ru),ot.createElement(me.Provider,{value:Pu},au)}),Mt=rt,pn=function(ht,Ye){var Wt=ot.useRef({values:new Map,options:new Map}),Ut=ot.useMemo(function(){var Dn=Wt.current,at=Dn.values,ln=Dn.options,Hn=ht.map(function(sn){if(sn.label===void 0){var It;return(0,At.Z)((0,At.Z)({},sn),{},{label:(It=at.get(sn.value))===null||It===void 0?void 0:It.label})}return sn}),ii=new Map,jt=new Map;return Hn.forEach(function(sn){ii.set(sn.value,sn),jt.set(sn.value,Ye.get(sn.value)||ln.get(sn.value))}),Wt.current.values=ii,Wt.current.options=jt,Hn},[ht,Ye]),fn=ot.useCallback(function(Dn){return Ye.get(Dn)||Wt.current.options.get(Dn)},[Ye]);return[Ut,fn]};function dn(ht,Ye){return Zt(ht).join("").toUpperCase().includes(Ye)}var Jt=function(ht,Ye,Wt,Ut,fn){return ot.useMemo(function(){if(!Wt||Ut===!1)return ht;var Dn=Ye.options,at=Ye.label,ln=Ye.value,Hn=[],ii=typeof Ut=="function",jt=Wt.toUpperCase(),sn=ii?Ut:function(on,qt){return fn?dn(qt[fn],jt):qt[Dn]?dn(qt[at!=="children"?at:"label"],jt):dn(qt[ln],jt)},It=ii?function(on){return mt(on)}:function(on){return on};return ht.forEach(function(on){if(on[Dn]){var qt=sn(Wt,It(on));if(qt)Hn.push(on);else{var en=on[Dn].filter(function(xn){return sn(Wt,It(xn))});en.length&&Hn.push((0,At.Z)((0,At.Z)({},on),{},(0,tt.Z)({},Dn,en)))}return}sn(Wt,It(on))&&Hn.push(on)}),Hn},[ht,Ut,fn,Wt,Ye])},Rn=ye(17115),Tn=ye(11592),Et=["children","value"],cn=["children"];function On(ht){var Ye=ht,Wt=Ye.key,Ut=Ye.props,fn=Ut.children,Dn=Ut.value,at=(0,Je.Z)(Ut,Et);return(0,At.Z)({key:Wt,value:Dn!==void 0?Dn:Wt,children:fn},at)}function Ct(ht){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Tn.Z)(ht).map(function(Wt,Ut){if(!ot.isValidElement(Wt)||!Wt.type)return null;var fn=Wt,Dn=fn.type.isSelectOptGroup,at=fn.key,ln=fn.props,Hn=ln.children,ii=(0,Je.Z)(ln,cn);return Ye||!Dn?On(Wt):(0,At.Z)((0,At.Z)({key:"__RC_SELECT_GRP__".concat(at===null?Ut:at,"__"),label:at},ii),{},{options:Ct(Hn)})}).filter(function(Wt){return Wt})}function _n(ht,Ye,Wt,Ut,fn){return ot.useMemo(function(){var Dn=ht,at=!ht;at&&(Dn=Ct(Ye));var ln=new Map,Hn=new Map,ii=function(It,on,qt){qt&&typeof qt=="string"&&It.set(on[qt],on)};function jt(sn){for(var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<sn.length;on+=1){var qt=sn[on];!qt[Wt.options]||It?(ln.set(qt[Wt.value],qt),ii(Hn,qt,Wt.label),ii(Hn,qt,Ut),ii(Hn,qt,fn)):jt(qt[Wt.options],!0)}}return jt(Dn),{options:Dn,valueOptions:ln,labelOptions:Hn}},[ht,Ye,Wt,Ut,fn])}function ui(ht){var Ye=ot.useRef();Ye.current=ht;var Wt=ot.useCallback(function(){return Ye.current.apply(Ye,arguments)},[]);return Wt}var Ci=function(){return null};Ci.isSelectOptGroup=!0;var ci=Ci,Hi=function(){return null};Hi.isSelectOption=!0;var qi=Hi,Xi=ye(80547),eo=ye(2738),Oo=ye(24916),vo=ot.createContext(null),Ri=vo;function Co(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Bn=["disabled","title","children","style","className"];function be(ht){return typeof ht=="string"||typeof ht=="number"}var Mi=function(Ye,Wt){var Ut=we(),fn=Ut.prefixCls,Dn=Ut.id,at=Ut.open,ln=Ut.multiple,Hn=Ut.mode,ii=Ut.searchValue,jt=Ut.toggleOpen,sn=Ut.notFoundContent,It=Ut.onPopupScroll,on=ot.useContext(Ri),qt=on.flattenOptions,en=on.onActiveValue,xn=on.defaultActiveFirstOption,Pn=on.onSelect,An=on.menuItemSelectedIcon,Wn=on.rawValues,pi=on.fieldNames,Yt=on.virtual,bi=on.direction,Di=on.listHeight,ki=on.listItemHeight,nn="".concat(fn,"-item"),Xn=(0,Xi.Z)(function(){return qt},[at,qt],function(Ii,Ai){return Ai[0]&&Ii[1]!==Ai[1]}),fi=ot.useRef(null),wi=function(Ai){Ai.preventDefault()},gi=function(Ai){fi.current&&fi.current.scrollTo(typeof Ai=="number"?{index:Ai}:Ai)},Bi=function(Ai){for(var Zi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,yo=Xn.length,di=0;di<yo;di+=1){var Ke=(Ai+di*Zi+yo)%yo,Do=Xn[Ke],nr=Do.group,xo=Do.data;if(!nr&&!xo.disabled)return Ke}return-1},Ki=ot.useState(function(){return Bi(0)}),ji=(0,Ue.Z)(Ki,2),Pi=ji[0],Vi=ji[1],Ln=function(Ai){var Zi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Vi(Ai);var yo={source:Zi?"keyboard":"mouse"},di=Xn[Ai];if(!di){en(null,-1,yo);return}en(di.value,Ai,yo)};(0,ot.useEffect)(function(){Ln(xn!==!1?Bi(0):-1)},[Xn.length,ii]);var So=ot.useCallback(function(Ii){return Wn.has(Ii)&&Hn!=="combobox"},[Hn,(0,Oe.Z)(Wn).toString(),Wn.size]);(0,ot.useEffect)(function(){var Ii=setTimeout(function(){if(!ln&&at&&Wn.size===1){var Zi=Array.from(Wn)[0],yo=Xn.findIndex(function(di){var Ke=di.data;return Ke.value===Zi});yo!==-1&&(Ln(yo),gi(yo))}});if(at){var Ai;(Ai=fi.current)===null||Ai===void 0||Ai.scrollTo(void 0)}return function(){return clearTimeout(Ii)}},[at,ii,qt.length]);var Mn=function(Ai){Ai!==void 0&&Pn(Ai,{selected:!Wn.has(Ai)}),ln||jt(!1)};if(ot.useImperativeHandle(Wt,function(){return{onKeyDown:function(Ai){var Zi=Ai.which,yo=Ai.ctrlKey;switch(Zi){case te.Z.N:case te.Z.P:case te.Z.UP:case te.Z.DOWN:{var di=0;if(Zi===te.Z.UP?di=-1:Zi===te.Z.DOWN?di=1:Co()&&yo&&(Zi===te.Z.N?di=1:Zi===te.Z.P&&(di=-1)),di!==0){var Ke=Bi(Pi+di,di);gi(Ke),Ln(Ke,!0)}break}case te.Z.ENTER:{var Do=Xn[Pi];Do&&!Do.data.disabled?Mn(Do.value):Mn(void 0),at&&Ai.preventDefault();break}case te.Z.ESC:jt(!1),at&&Ai.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ai){gi(Ai)}}}),Xn.length===0)return ot.createElement("div",{role:"listbox",id:"".concat(Dn,"_list"),className:"".concat(nn,"-empty"),onMouseDown:wi},sn);var ro=Object.keys(pi).map(function(Ii){return pi[Ii]}),No=function(Ai){return Ai.label};function _i(Ii,Ai){var Zi=Ii.group;return{role:Zi?"presentation":"option",id:"".concat(Dn,"_list_").concat(Ai)}}var Go=function(Ai){var Zi=Xn[Ai];if(!Zi)return null;var yo=Zi.data||{},di=yo.value,Ke=Zi.group,Do=(0,We.Z)(yo,!0),nr=No(Zi);return Zi?ot.createElement("div",(0,Ce.Z)({"aria-label":typeof nr=="string"&&!Ke?nr:null},Do,{key:Ai},_i(Zi,Ai),{"aria-selected":So(di)}),di):null},ko={role:"listbox",id:"".concat(Dn,"_list")};return ot.createElement(ot.Fragment,null,Yt&&ot.createElement("div",(0,Ce.Z)({},ko,{style:{height:0,width:0,overflow:"hidden"}}),Go(Pi-1),Go(Pi),Go(Pi+1)),ot.createElement(Oo.Z,{itemKey:"key",ref:fi,data:Xn,height:Di,itemHeight:ki,fullHeight:!1,onMouseDown:wi,onScroll:It,virtual:Yt,direction:bi,innerProps:Yt?null:ko},function(Ii,Ai){var Zi,yo=Ii.group,di=Ii.groupOption,Ke=Ii.data,Do=Ii.label,nr=Ii.value,xo=Ke.key;if(yo){var hr,Qo=(hr=Ke.title)!==null&&hr!==void 0?hr:be(Do)?Do.toString():void 0;return ot.createElement("div",{className:xt()(nn,"".concat(nn,"-group")),title:Qo},Do!==void 0?Do:xo)}var $i=Ke.disabled,ao=Ke.title,jo=Ke.children,Lo=Ke.style,dr=Ke.className,Pr=(0,Je.Z)(Ke,Bn),Yi=(0,eo.Z)(Pr,ro),Qi=So(nr),ti="".concat(nn,"-option"),io=xt()(nn,ti,dr,(Zi={},(0,tt.Z)(Zi,"".concat(ti,"-grouped"),di),(0,tt.Z)(Zi,"".concat(ti,"-active"),Pi===Ai&&!$i),(0,tt.Z)(Zi,"".concat(ti,"-disabled"),$i),(0,tt.Z)(Zi,"".concat(ti,"-selected"),Qi),Zi)),ir=No(Ii),Ir=!An||typeof An=="function"||Qi,mr=typeof ir=="number"?ir:ir||nr,er=be(mr)?mr.toString():void 0;return ao!==void 0&&(er=ao),ot.createElement("div",(0,Ce.Z)({},(0,We.Z)(Yi),Yt?{}:_i(Ii,Ai),{"aria-selected":Qi,className:io,title:er,onMouseMove:function(){Pi===Ai||$i||Ln(Ai)},onClick:function(){$i||Mn(nr)},style:Lo}),ot.createElement("div",{className:"".concat(ti,"-content")},mr),ot.isValidElement(An)||Qi,Ir&&ot.createElement(se,{className:"".concat(nn,"-option-state"),customizeIcon:An,customizeIconProps:{isSelected:Qi}},Qi?"\u2713":null))}))},Ei=ot.forwardRef(Mi);Ei.displayName="OptionList";var Dt=Ei;function En(ht){var Ye=ht.mode,Wt=ht.options,Ut=ht.children,fn=ht.backfill,Dn=ht.allowClear,at=ht.placeholder,ln=ht.getInputElement,Hn=ht.showSearch,ii=ht.onSearch,jt=ht.defaultOpen,sn=ht.autoFocus,It=ht.labelInValue,on=ht.value,qt=ht.inputValue,en=ht.optionLabelProp,xn=isMultiple(Ye),Pn=Hn!==void 0?Hn:xn||Ye==="combobox",An=Wt||convertChildrenToData(Ut);if(warning(Ye!=="tags"||An.every(function(bi){return!bi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ye==="tags"||Ye==="combobox"){var Wn=An.some(function(bi){return bi.options?bi.options.some(function(Di){return typeof("value"in Di?Di.value:Di.key)=="number"}):typeof("value"in bi?bi.value:bi.key)=="number"});warning(!Wn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ye!=="combobox"||!en,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ye==="combobox"||!fn,"`backfill` only works with `combobox` mode."),warning(Ye==="combobox"||!ln,"`getInputElement` only work with `combobox` mode."),noteOnce(Ye!=="combobox"||!ln||!Dn||!at,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ii&&!Pn&&Ye!=="combobox"&&Ye!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!jt||sn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),on!=null){var pi=toArray(on);warning(!It||pi.every(function(bi){return _typeof(bi)==="object"&&("key"in bi||"value"in bi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!xn||Array.isArray(on),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ut){var Yt=null;toNodeArray(Ut).some(function(bi){if(!React.isValidElement(bi)||!bi.type)return!1;var Di=bi,ki=Di.type;if(ki.isSelectOption)return!1;if(ki.isSelectOptGroup){var nn=toNodeArray(bi.props.children).every(function(Xn){return!React.isValidElement(Xn)||!bi.type||Xn.type.isSelectOption?!0:(Yt=Xn.type,!1)});return!nn}return Yt=ki,!0}),Yt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Yt.displayName||Yt.name||Yt,"`.")),warning(qt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Fn(ht,Ye){if(ht){var Wt=function Ut(fn){for(var Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=0;at<fn.length;at++){var ln=fn[at];if(ln[Ye==null?void 0:Ye.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Dn&&Array.isArray(ln[Ye==null?void 0:Ye.options])&&Ut(ln[Ye==null?void 0:Ye.options],!0))break}};Wt(ht)}}var Jn=null,wn=["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"],Nn=["inputValue"];function ct(ht){return!ht||(0,ke.Z)(ht)!=="object"}var Pt=ot.forwardRef(function(ht,Ye){var Wt=ht.id,Ut=ht.mode,fn=ht.prefixCls,Dn=fn===void 0?"rc-select":fn,at=ht.backfill,ln=ht.fieldNames,Hn=ht.inputValue,ii=ht.searchValue,jt=ht.onSearch,sn=ht.autoClearSearchValue,It=sn===void 0?!0:sn,on=ht.onSelect,qt=ht.onDeselect,en=ht.dropdownMatchSelectWidth,xn=en===void 0?!0:en,Pn=ht.filterOption,An=ht.filterSort,Wn=ht.optionFilterProp,pi=ht.optionLabelProp,Yt=ht.options,bi=ht.children,Di=ht.defaultActiveFirstOption,ki=ht.menuItemSelectedIcon,nn=ht.virtual,Xn=ht.direction,fi=ht.listHeight,wi=fi===void 0?200:fi,gi=ht.listItemHeight,Bi=gi===void 0?20:gi,Ki=ht.value,ji=ht.defaultValue,Pi=ht.labelInValue,Vi=ht.onChange,Ln=(0,Je.Z)(ht,wn),So=(0,Rn.ZP)(Wt),Mn=ft(Ut),ro=!!(!Yt&&bi),No=ot.useMemo(function(){return Pn===void 0&&Ut==="combobox"?!1:Pn},[Pn,Ut]),_i=ot.useMemo(function(){return ve(ln,ro)},[JSON.stringify(ln),ro]),Go=(0,Ot.Z)("",{value:ii!==void 0?ii:Hn,postState:function(Io){return Io||""}}),ko=(0,Ue.Z)(Go,2),Ii=ko[0],Ai=ko[1],Zi=_n(Yt,bi,_i,Wn,pi),yo=Zi.valueOptions,di=Zi.labelOptions,Ke=Zi.options,Do=ot.useCallback(function(no){var Io=Zt(no);return Io.map(function(Fo){var vi,Zr,Yr,qa,bs;if(ct(Fo))vi=Fo;else{var vs;Yr=Fo.key,Zr=Fo.label,vi=(vs=Fo.value)!==null&&vs!==void 0?vs:Yr}var xi=yo.get(vi);if(xi){var Jr;if(Zr===void 0&&(Zr=xi==null?void 0:xi[pi||_i.label]),Yr===void 0&&(Yr=(Jr=xi==null?void 0:xi.key)!==null&&Jr!==void 0?Jr:vi),qa=xi==null?void 0:xi.disabled,bs=xi==null?void 0:xi.title,0)var _r}return{label:Zr,value:vi,key:Yr,disabled:qa,title:bs}})},[_i,pi,yo]),nr=(0,Ot.Z)(ji,{value:Ki}),xo=(0,Ue.Z)(nr,2),hr=xo[0],Qo=xo[1],$i=ot.useMemo(function(){var no,Io=Do(hr);return Ut==="combobox"&&Vt((no=Io[0])===null||no===void 0?void 0:no.value)?[]:Io},[hr,Do,Ut]),ao=pn($i,yo),jo=(0,Ue.Z)(ao,2),Lo=jo[0],dr=jo[1],Pr=ot.useMemo(function(){if(!Ut&&Lo.length===1){var no=Lo[0];if(no.value===null&&(no.label===null||no.label===void 0))return[]}return Lo.map(function(Io){var Fo;return(0,At.Z)((0,At.Z)({},Io),{},{label:(Fo=Io.label)!==null&&Fo!==void 0?Fo:Io.value})})},[Ut,Lo]),Yi=ot.useMemo(function(){return new Set(Lo.map(function(no){return no.value}))},[Lo]);ot.useEffect(function(){if(Ut==="combobox"){var no,Io=(no=Lo[0])===null||no===void 0?void 0:no.value;Ai(Gt(Io)?String(Io):"")}},[Lo]);var Qi=ui(function(no,Io){var Fo,vi=Io!=null?Io:no;return Fo={},(0,tt.Z)(Fo,_i.value,no),(0,tt.Z)(Fo,_i.label,vi),Fo}),ti=ot.useMemo(function(){if(Ut!=="tags")return Ke;var no=(0,Oe.Z)(Ke),Io=function(vi){return yo.has(vi)};return(0,Oe.Z)(Lo).sort(function(Fo,vi){return Fo.value<vi.value?-1:1}).forEach(function(Fo){var vi=Fo.value;Io(vi)||no.push(Qi(vi,Fo.label))}),no},[Qi,Ke,yo,Lo,Ut]),io=Jt(ti,_i,Ii,No,Wn),ir=ot.useMemo(function(){return Ut!=="tags"||!Ii||io.some(function(no){return no[Wn||"value"]===Ii})||io.some(function(no){return no[_i.value]===Ii})?io:[Qi(Ii)].concat((0,Oe.Z)(io))},[Qi,Wn,Ut,io,Ii,_i]),Ir=ot.useMemo(function(){return An?(0,Oe.Z)(ir).sort(function(no,Io){return An(no,Io)}):ir},[ir,An]),mr=ot.useMemo(function(){return $e(Ir,{fieldNames:_i,childrenAsData:ro})},[Ir,_i,ro]),er=function(Io){var Fo=Do(Io);if(Qo(Fo),Vi&&(Fo.length!==Lo.length||Fo.some(function(Yr,qa){var bs;return((bs=Lo[qa])===null||bs===void 0?void 0:bs.value)!==(Yr==null?void 0:Yr.value)}))){var vi=Pi?Fo:Fo.map(function(Yr){return Yr.value}),Zr=Fo.map(function(Yr){return mt(dr(Yr.value))});Vi(Mn?vi:vi[0],Mn?Zr:Zr[0])}},Lr=ot.useState(null),Ar=(0,Ue.Z)(Lr,2),ra=Ar[0],ua=Ar[1],wa=ot.useState(0),vn=(0,Ue.Z)(wa,2),ia=vn[0],Us=vn[1],us=Di!==void 0?Di:Ut!=="combobox",xr=ot.useCallback(function(no,Io){var Fo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vi=Fo.source,Zr=vi===void 0?"keyboard":vi;Us(Io),at&&Ut==="combobox"&&no!==null&&Zr==="keyboard"&&ua(String(no))},[at,Ut]),or=function(Io,Fo,vi){var Zr=function(){var gl,Uo=dr(Io);return[Pi?{label:Uo==null?void 0:Uo[_i.label],value:Io,key:(gl=Uo==null?void 0:Uo.key)!==null&&gl!==void 0?gl:Io}:Io,mt(Uo)]};if(Fo&&on){var Yr=Zr(),qa=(0,Ue.Z)(Yr,2),bs=qa[0],vs=qa[1];on(bs,vs)}else if(!Fo&&qt&&vi!=="clear"){var xi=Zr(),Jr=(0,Ue.Z)(xi,2),_r=Jr[0],es=Jr[1];qt(_r,es)}},da=ui(function(no,Io){var Fo,vi=Mn?Io.selected:!0;vi?Fo=Mn?[].concat((0,Oe.Z)(Lo),[no]):[no]:Fo=Lo.filter(function(Zr){return Zr.value!==no}),er(Fo),or(no,vi),Ut==="combobox"?ua(""):(!ft||It)&&(Ai(""),ua(""))}),Ro=function(Io,Fo){er(Io);var vi=Fo.type,Zr=Fo.values;(vi==="remove"||vi==="clear")&&Zr.forEach(function(Yr){or(Yr.value,!1,vi)})},lo=function(Io,Fo){if(Ai(Io),ua(null),Fo.source==="submit"){var vi=(Io||"").trim();if(vi){var Zr=Array.from(new Set([].concat((0,Oe.Z)(Yi),[vi])));er(Zr),or(vi,!0),Ai("")}return}Fo.source!=="blur"&&(Ut==="combobox"&&er(Io),jt==null||jt(Io))},Ko=function(Io){var Fo=Io;Ut!=="tags"&&(Fo=Io.map(function(Zr){var Yr=di.get(Zr);return Yr==null?void 0:Yr.value}).filter(function(Zr){return Zr!==void 0}));var vi=Array.from(new Set([].concat((0,Oe.Z)(Yi),(0,Oe.Z)(Fo))));er(vi),vi.forEach(function(Zr){or(Zr,!0)})},Wr=ot.useMemo(function(){var no=nn!==!1&&xn!==!1;return(0,At.Z)((0,At.Z)({},Zi),{},{flattenOptions:mr,onActiveValue:xr,defaultActiveFirstOption:us,onSelect:da,menuItemSelectedIcon:ki,rawValues:Yi,fieldNames:_i,virtual:no,direction:Xn,listHeight:wi,listItemHeight:Bi,childrenAsData:ro})},[Zi,mr,xr,us,da,ki,Yi,_i,nn,xn,wi,Bi,ro]);return ot.createElement(Ri.Provider,{value:Wr},ot.createElement(Mt,(0,Ce.Z)({},Ln,{id:So,prefixCls:Dn,ref:Ye,omitDomProps:Nn,mode:Ut,displayValues:Pr,onDisplayValuesChange:Ro,direction:Xn,searchValue:Ii,onSearch:lo,autoClearSearchValue:It,onSearchSplit:Ko,dropdownMatchSelectWidth:xn,OptionList:Dt,emptyOptions:!mr.length,activeValue:ra,activeDescendantId:"".concat(So,"_list_").concat(ia)})))}),Re=Pt;Re.Option=qi,Re.OptGroup=ci;var Tt=Re,_t=Tt},9296:function(Kn,kn,ye){"use strict";ye.r(kn),ye.d(kn,{ResizableTextArea:function(){return dt},default:function(){return Vt}});var Ce=ye(96663),Oe=ye(44127),tt=ye(90493),At=ye(20135),Ue=ye(72071),Je=ye(6620),ke=ye(19127),Ot=ye(92310),Lt=ye.n(Ot),ot=ye(93681),Rt=ye(5643),xt=ye(18929),zt=ye(59301),Ae=ye(29301),te=ye(34280),ne=ye(16089),he=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,se=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ge={},me;function we(hn){var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vt=hn.getAttribute("id")||hn.getAttribute("data-reactid")||hn.getAttribute("name");if(yn&&ge[vt])return ge[vt];var je=window.getComputedStyle(hn),wt=je.getPropertyValue("box-sizing")||je.getPropertyValue("-moz-box-sizing")||je.getPropertyValue("-webkit-box-sizing"),tn=parseFloat(je.getPropertyValue("padding-bottom"))+parseFloat(je.getPropertyValue("padding-top")),bn=parseFloat(je.getPropertyValue("border-bottom-width"))+parseFloat(je.getPropertyValue("border-top-width")),Ft=se.map(function(Cn){return"".concat(Cn,":").concat(je.getPropertyValue(Cn))}).join(";"),Xt={sizingStyle:Ft,paddingSize:tn,borderSize:bn,boxSizing:wt};return yn&&vt&&(ge[vt]=Xt),Xt}function Fe(hn){var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;me||(me=document.createElement("textarea"),me.setAttribute("tab-index","-1"),me.setAttribute("aria-hidden","true"),document.body.appendChild(me)),hn.getAttribute("wrap")?me.setAttribute("wrap",hn.getAttribute("wrap")):me.removeAttribute("wrap");var wt=we(hn,yn),tn=wt.paddingSize,bn=wt.borderSize,Ft=wt.boxSizing,Xt=wt.sizingStyle;me.setAttribute("style","".concat(Xt,";").concat(he)),me.value=hn.value||hn.placeholder||"";var Cn=void 0,Qn=void 0,gn,Gn=me.scrollHeight;if(Ft==="border-box"?Gn+=bn:Ft==="content-box"&&(Gn-=tn),vt!==null||je!==null){me.value=" ";var bt=me.scrollHeight-tn;vt!==null&&(Cn=bt*vt,Ft==="border-box"&&(Cn=Cn+tn+bn),Gn=Math.max(Cn,Gn)),je!==null&&(Qn=bt*je,Ft==="border-box"&&(Qn=Qn+tn+bn),gn=Gn>Qn?"":"hidden",Gn=Math.min(Qn,Gn))}var zn={height:Gn,overflowY:gn,resize:"none"};return Cn&&(zn.minHeight=Cn),Qn&&(zn.maxHeight=Qn),zn}var Be=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ie=0,We=1,nt=2,Xe=zt.forwardRef(function(hn,yn){var vt=hn,je=vt.prefixCls,wt=vt.onPressEnter,tn=vt.defaultValue,bn=vt.value,Ft=vt.autoSize,Xt=vt.onResize,Cn=vt.className,Qn=vt.style,gn=vt.disabled,Gn=vt.onChange,bt=vt.onInternalAutoSize,zn=(0,Je.Z)(vt,Be),ai=(0,xt.Z)(tn,{value:bn,postState:function(ci){return ci!=null?ci:""}}),He=(0,Ue.Z)(ai,2),Le=He[0],xe=He[1],Ne=function(ci){xe(ci.target.value),Gn==null||Gn(ci)},De=zt.useRef();zt.useImperativeHandle(yn,function(){return{textArea:De.current}});var ve=zt.useMemo(function(){return Ft&&(0,At.Z)(Ft)==="object"?[Ft.minRows,Ft.maxRows]:[]},[Ft]),$e=(0,Ue.Z)(ve,2),mt=$e[0],et=$e[1],Ve=!!Ft,gt=function(){try{if(document.activeElement===De.current){var ci=De.current,Hi=ci.selectionStart,qi=ci.selectionEnd,Xi=ci.scrollTop;De.current.setSelectionRange(Hi,qi),De.current.scrollTop=Xi}}catch(eo){}},ft=zt.useState(nt),rt=(0,Ue.Z)(ft,2),Mt=rt[0],pn=rt[1],dn=zt.useState(),Jt=(0,Ue.Z)(dn,2),Rn=Jt[0],Tn=Jt[1],Et=function(){pn(Ie)};(0,te.Z)(function(){Ve&&Et()},[bn,mt,et,Ve]),(0,te.Z)(function(){if(Mt===Ie)pn(We);else if(Mt===We){var Ci=Fe(De.current,!1,mt,et);pn(nt),Tn(Ci)}else gt()},[Mt]);var cn=zt.useRef(),On=function(){ne.Z.cancel(cn.current)},Ct=function(ci){Mt===nt&&(Xt==null||Xt(ci),Ft&&(On(),cn.current=(0,ne.Z)(function(){Et()})))};zt.useEffect(function(){return On},[]);var _n=Ve?Rn:null,ui=(0,Oe.Z)((0,Oe.Z)({},Qn),_n);return(Mt===Ie||Mt===We)&&(ui.overflowY="hidden",ui.overflowX="hidden"),zt.createElement(Ae.Z,{onResize:Ct,disabled:!(Ft||Xt)},zt.createElement("textarea",(0,Ce.Z)({},zn,{ref:De,style:ui,className:Lt()(je,Cn,(0,tt.Z)({},"".concat(je,"-disabled"),gn)),disabled:gn,value:Le,onChange:Ne})))}),dt=Xe,Ze=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Zt(hn,yn){return(0,ke.Z)(hn||"").slice(0,yn).join("")}function yt(hn,yn,vt,je){var wt=vt;return hn?wt=Zt(vt,je):(0,ke.Z)(yn||"").length<vt.length&&(0,ke.Z)(vt||"").length>je&&(wt=yn),wt}var an=zt.forwardRef(function(hn,yn){var vt,je=hn.defaultValue,wt=hn.value,tn=hn.onFocus,bn=hn.onBlur,Ft=hn.onChange,Xt=hn.allowClear,Cn=hn.maxLength,Qn=hn.onCompositionStart,gn=hn.onCompositionEnd,Gn=hn.suffix,bt=hn.prefixCls,zn=bt===void 0?"rc-textarea":bt,ai=hn.classes,He=hn.showCount,Le=hn.className,xe=hn.style,Ne=hn.disabled,De=hn.hidden,ve=hn.classNames,$e=hn.styles,mt=hn.onResize,et=(0,Je.Z)(hn,Ze),Ve=(0,xt.Z)(je,{value:wt,defaultValue:je}),gt=(0,Ue.Z)(Ve,2),ft=gt[0],rt=gt[1],Mt=(0,zt.useRef)(null),pn=zt.useState(!1),dn=(0,Ue.Z)(pn,2),Jt=dn[0],Rn=dn[1],Tn=zt.useState(!1),Et=(0,Ue.Z)(Tn,2),cn=Et[0],On=Et[1],Ct=zt.useRef(),_n=zt.useRef(0),ui=zt.useState(null),Ci=(0,Ue.Z)(ui,2),ci=Ci[0],Hi=Ci[1],qi=function(){var ct;(ct=Mt.current)===null||ct===void 0||ct.textArea.focus()};(0,zt.useImperativeHandle)(yn,function(){return{resizableTextArea:Mt.current,focus:qi,blur:function(){var ct;(ct=Mt.current)===null||ct===void 0||ct.textArea.blur()}}}),(0,zt.useEffect)(function(){Rn(function(Nn){return!Ne&&Nn})},[Ne]);var Xi=Number(Cn)>0,eo=function(ct){On(!0),Ct.current=ft,_n.current=ct.currentTarget.selectionStart,Qn==null||Qn(ct)},Oo=function(ct){On(!1);var Pt=ct.currentTarget.value;if(Xi){var Re,Tt=_n.current>=Cn+1||_n.current===((Re=Ct.current)===null||Re===void 0?void 0:Re.length);Pt=yt(Tt,Ct.current,Pt,Cn)}Pt!==ft&&(rt(Pt),(0,Rt.rJ)(ct.currentTarget,ct,Ft,Pt)),gn==null||gn(ct)},vo=function(ct){var Pt=ct.target.value;if(!cn&&Xi){var Re=ct.target.selectionStart>=Cn+1||ct.target.selectionStart===Pt.length||!ct.target.selectionStart;Pt=yt(Re,ft,Pt,Cn)}rt(Pt),(0,Rt.rJ)(ct.currentTarget,ct,Ft,Pt)},Ri=function(ct){var Pt=et.onPressEnter,Re=et.onKeyDown;ct.key==="Enter"&&Pt&&Pt(ct),Re==null||Re(ct)},Co=function(ct){Rn(!0),tn==null||tn(ct)},Bn=function(ct){Rn(!1),bn==null||bn(ct)},be=function(ct){var Pt;rt(""),qi(),(0,Rt.rJ)((Pt=Mt.current)===null||Pt===void 0?void 0:Pt.textArea,ct,Ft)},Mi=(0,Rt.D7)(ft);!cn&&Xi&&wt==null&&(Mi=Zt(Mi,Cn));var Ei=Gn,Dt;if(He){var En=(0,ke.Z)(Mi).length;(0,At.Z)(He)==="object"?Dt=He.formatter({value:Mi,count:En,maxLength:Cn}):Dt="".concat(En).concat(Xi?" / ".concat(Cn):""),Ei=zt.createElement(zt.Fragment,null,Ei,zt.createElement("span",{className:Lt()("".concat(zn,"-data-count"),ve==null?void 0:ve.count),style:$e==null?void 0:$e.count},Dt))}var Fn=function(ct){var Pt;mt==null||mt(ct),(Pt=Mt.current)!==null&&Pt!==void 0&&Pt.textArea.style.height&&Hi(!0)},Jn=!et.autoSize&&!He&&!Xt,wn=zt.createElement(ot.BaseInput,{value:Mi,allowClear:Xt,handleReset:be,suffix:Ei,prefixCls:zn,classes:{affixWrapper:Lt()(ai==null?void 0:ai.affixWrapper,(vt={},(0,tt.Z)(vt,"".concat(zn,"-show-count"),He),(0,tt.Z)(vt,"".concat(zn,"-textarea-allow-clear"),Xt),vt))},disabled:Ne,focused:Jt,className:Le,style:(0,Oe.Z)((0,Oe.Z)({},xe),ci&&!Jn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Dt=="string"?Dt:void 0}},hidden:De,inputElement:zt.createElement(dt,(0,Ce.Z)({},et,{onKeyDown:Ri,onChange:vo,onFocus:Co,onBlur:Bn,onCompositionStart:eo,onCompositionEnd:Oo,className:ve==null?void 0:ve.textarea,style:(0,Oe.Z)((0,Oe.Z)({},$e==null?void 0:$e.textarea),{},{resize:xe==null?void 0:xe.resize}),disabled:Ne,prefixCls:zn,onResize:Fn,ref:Mt}))});return wn}),Gt=an,Vt=Gt},39417:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return We}});var Ce=ye(96663),Oe=ye(90493),tt=ye(6620),At=ye(44127),Ue=ye(52884),Je=ye(95727),ke=ye(89866),Ot=ye(65711),Lt=ye(85745),ot=ye(92310),Rt=ye.n(ot),xt=ye(26112),zt=ye(59301),Ae=ye(39378),te=function(Xe){for(var dt=Xe.prefixCls,Ze=Xe.level,Zt=Xe.isStart,yt=Xe.isEnd,an="".concat(dt,"-indent-unit"),Gt=[],Vt=0;Vt<Ze;Vt+=1){var hn;Gt.push(zt.createElement("span",{key:Vt,className:Rt()(an,(hn={},(0,Oe.Z)(hn,"".concat(an,"-start"),Zt[Vt]),(0,Oe.Z)(hn,"".concat(an,"-end"),yt[Vt]),hn))}))}return zt.createElement("span",{"aria-hidden":"true",className:"".concat(dt,"-indent")},Gt)},ne=zt.memo(te),he=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"],me="open",we="close",Fe="---",Be=function(nt){(0,Ot.Z)(dt,nt);var Xe=(0,Lt.Z)(dt);function dt(){var Ze;(0,Ue.Z)(this,dt);for(var Zt=arguments.length,yt=new Array(Zt),an=0;an<Zt;an++)yt[an]=arguments[an];return Ze=Xe.call.apply(Xe,[this].concat(yt)),Ze.state={dragNodeHighlight:!1},Ze.selectHandle=void 0,Ze.cacheIndent=void 0,Ze.onSelectorClick=function(Gt){var Vt=Ze.props.context.onNodeClick;Vt(Gt,(0,se.F)(Ze.props)),Ze.isSelectable()?Ze.onSelect(Gt):Ze.onCheck(Gt)},Ze.onSelectorDoubleClick=function(Gt){var Vt=Ze.props.context.onNodeDoubleClick;Vt(Gt,(0,se.F)(Ze.props))},Ze.onSelect=function(Gt){if(!Ze.isDisabled()){var Vt=Ze.props.context.onNodeSelect;Vt(Gt,(0,se.F)(Ze.props))}},Ze.onCheck=function(Gt){if(!Ze.isDisabled()){var Vt=Ze.props,hn=Vt.disableCheckbox,yn=Vt.checked,vt=Ze.props.context.onNodeCheck;if(!(!Ze.isCheckable()||hn)){var je=!yn;vt(Gt,(0,se.F)(Ze.props),je)}}},Ze.onMouseEnter=function(Gt){var Vt=Ze.props.context.onNodeMouseEnter;Vt(Gt,(0,se.F)(Ze.props))},Ze.onMouseLeave=function(Gt){var Vt=Ze.props.context.onNodeMouseLeave;Vt(Gt,(0,se.F)(Ze.props))},Ze.onContextMenu=function(Gt){var Vt=Ze.props.context.onNodeContextMenu;Vt(Gt,(0,se.F)(Ze.props))},Ze.onDragStart=function(Gt){var Vt=Ze.props.context.onNodeDragStart;Gt.stopPropagation(),Ze.setState({dragNodeHighlight:!0}),Vt(Gt,(0,ke.Z)(Ze));try{Gt.dataTransfer.setData("text/plain","")}catch(hn){}},Ze.onDragEnter=function(Gt){var Vt=Ze.props.context.onNodeDragEnter;Gt.preventDefault(),Gt.stopPropagation(),Vt(Gt,(0,ke.Z)(Ze))},Ze.onDragOver=function(Gt){var Vt=Ze.props.context.onNodeDragOver;Gt.preventDefault(),Gt.stopPropagation(),Vt(Gt,(0,ke.Z)(Ze))},Ze.onDragLeave=function(Gt){var Vt=Ze.props.context.onNodeDragLeave;Gt.stopPropagation(),Vt(Gt,(0,ke.Z)(Ze))},Ze.onDragEnd=function(Gt){var Vt=Ze.props.context.onNodeDragEnd;Gt.stopPropagation(),Ze.setState({dragNodeHighlight:!1}),Vt(Gt,(0,ke.Z)(Ze))},Ze.onDrop=function(Gt){var Vt=Ze.props.context.onNodeDrop;Gt.preventDefault(),Gt.stopPropagation(),Ze.setState({dragNodeHighlight:!1}),Vt(Gt,(0,ke.Z)(Ze))},Ze.onExpand=function(Gt){var Vt=Ze.props,hn=Vt.loading,yn=Vt.context.onNodeExpand;hn||yn(Gt,(0,se.F)(Ze.props))},Ze.setSelectHandle=function(Gt){Ze.selectHandle=Gt},Ze.getNodeState=function(){var Gt=Ze.props.expanded;return Ze.isLeaf()?null:Gt?me:we},Ze.hasChildren=function(){var Gt=Ze.props.eventKey,Vt=Ze.props.context.keyEntities,hn=(0,he.Z)(Vt,Gt)||{},yn=hn.children;return!!(yn||[]).length},Ze.isLeaf=function(){var Gt=Ze.props,Vt=Gt.isLeaf,hn=Gt.loaded,yn=Ze.props.context.loadData,vt=Ze.hasChildren();return Vt===!1?!1:Vt||!yn&&!vt||yn&&hn&&!vt},Ze.isDisabled=function(){var Gt=Ze.props.disabled,Vt=Ze.props.context.disabled;return!!(Vt||Gt)},Ze.isCheckable=function(){var Gt=Ze.props.checkable,Vt=Ze.props.context.checkable;return!Vt||Gt===!1?!1:Vt},Ze.syncLoadData=function(Gt){var Vt=Gt.expanded,hn=Gt.loading,yn=Gt.loaded,vt=Ze.props.context,je=vt.loadData,wt=vt.onNodeLoad;hn||je&&Vt&&!Ze.isLeaf()&&!Ze.hasChildren()&&!yn&&wt((0,se.F)(Ze.props))},Ze.isDraggable=function(){var Gt=Ze.props,Vt=Gt.data,hn=Gt.context.draggable;return!!(hn&&(!hn.nodeDraggable||hn.nodeDraggable(Vt)))},Ze.renderDragHandler=function(){var Gt=Ze.props.context,Vt=Gt.draggable,hn=Gt.prefixCls;return Vt!=null&&Vt.icon?zt.createElement("span",{className:"".concat(hn,"-draggable-icon")},Vt.icon):null},Ze.renderSwitcherIconDom=function(Gt){var Vt=Ze.props.switcherIcon,hn=Ze.props.context.switcherIcon,yn=Vt||hn;return typeof yn=="function"?yn((0,At.Z)((0,At.Z)({},Ze.props),{},{isLeaf:Gt})):yn},Ze.renderSwitcher=function(){var Gt=Ze.props.expanded,Vt=Ze.props.context.prefixCls;if(Ze.isLeaf()){var hn=Ze.renderSwitcherIconDom(!0);return hn!==!1?zt.createElement("span",{className:Rt()("".concat(Vt,"-switcher"),"".concat(Vt,"-switcher-noop"))},hn):null}var yn=Rt()("".concat(Vt,"-switcher"),"".concat(Vt,"-switcher_").concat(Gt?me:we)),vt=Ze.renderSwitcherIconDom(!1);return vt!==!1?zt.createElement("span",{onClick:Ze.onExpand,className:yn},vt):null},Ze.renderCheckbox=function(){var Gt=Ze.props,Vt=Gt.checked,hn=Gt.halfChecked,yn=Gt.disableCheckbox,vt=Ze.props.context.prefixCls,je=Ze.isDisabled(),wt=Ze.isCheckable();if(!wt)return null;var tn=typeof wt!="boolean"?wt:null;return zt.createElement("span",{className:Rt()("".concat(vt,"-checkbox"),Vt&&"".concat(vt,"-checkbox-checked"),!Vt&&hn&&"".concat(vt,"-checkbox-indeterminate"),(je||yn)&&"".concat(vt,"-checkbox-disabled")),onClick:Ze.onCheck},tn)},Ze.renderIcon=function(){var Gt=Ze.props.loading,Vt=Ze.props.context.prefixCls;return zt.createElement("span",{className:Rt()("".concat(Vt,"-iconEle"),"".concat(Vt,"-icon__").concat(Ze.getNodeState()||"docu"),Gt&&"".concat(Vt,"-icon_loading"))})},Ze.renderSelector=function(){var Gt=Ze.state.dragNodeHighlight,Vt=Ze.props,hn=Vt.title,yn=hn===void 0?Fe:hn,vt=Vt.selected,je=Vt.icon,wt=Vt.loading,tn=Vt.data,bn=Ze.props.context,Ft=bn.prefixCls,Xt=bn.showIcon,Cn=bn.icon,Qn=bn.loadData,gn=bn.titleRender,Gn=Ze.isDisabled(),bt="".concat(Ft,"-node-content-wrapper"),zn;if(Xt){var ai=je||Cn;zn=ai?zt.createElement("span",{className:Rt()("".concat(Ft,"-iconEle"),"".concat(Ft,"-icon__customize"))},typeof ai=="function"?ai(Ze.props):ai):Ze.renderIcon()}else Qn&&wt&&(zn=Ze.renderIcon());var He;typeof yn=="function"?He=yn(tn):gn?He=gn(tn):He=yn;var Le=zt.createElement("span",{className:"".concat(Ft,"-title")},He);return zt.createElement("span",{ref:Ze.setSelectHandle,title:typeof yn=="string"?yn:"",className:Rt()("".concat(bt),"".concat(bt,"-").concat(Ze.getNodeState()||"normal"),!Gn&&(vt||Gt)&&"".concat(Ft,"-node-selected")),onMouseEnter:Ze.onMouseEnter,onMouseLeave:Ze.onMouseLeave,onContextMenu:Ze.onContextMenu,onClick:Ze.onSelectorClick,onDoubleClick:Ze.onSelectorDoubleClick},zn,Le,Ze.renderDropIndicator())},Ze.renderDropIndicator=function(){var Gt=Ze.props,Vt=Gt.disabled,hn=Gt.eventKey,yn=Ze.props.context,vt=yn.draggable,je=yn.dropLevelOffset,wt=yn.dropPosition,tn=yn.prefixCls,bn=yn.indent,Ft=yn.dropIndicatorRender,Xt=yn.dragOverNodeKey,Cn=yn.direction,Qn=!!vt,gn=!Vt&&Qn&&Xt===hn,Gn=bn!=null?bn:Ze.cacheIndent;return Ze.cacheIndent=bn,gn?Ft({dropPosition:wt,dropLevelOffset:je,indent:Gn,prefixCls:tn,direction:Cn}):null},Ze}return(0,Je.Z)(dt,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Zt=this.props.selectable,yt=this.props.context.selectable;return typeof Zt=="boolean"?Zt:yt}},{key:"render",value:function(){var Zt,yt=this.props,an=yt.eventKey,Gt=yt.className,Vt=yt.style,hn=yt.dragOver,yn=yt.dragOverGapTop,vt=yt.dragOverGapBottom,je=yt.isLeaf,wt=yt.isStart,tn=yt.isEnd,bn=yt.expanded,Ft=yt.selected,Xt=yt.checked,Cn=yt.halfChecked,Qn=yt.loading,gn=yt.domRef,Gn=yt.active,bt=yt.data,zn=yt.onMouseMove,ai=yt.selectable,He=(0,tt.Z)(yt,ge),Le=this.props.context,xe=Le.prefixCls,Ne=Le.filterTreeNode,De=Le.keyEntities,ve=Le.dropContainerKey,$e=Le.dropTargetKey,mt=Le.draggingNodeKey,et=this.isDisabled(),Ve=(0,xt.Z)(He,{aria:!0,data:!0}),gt=(0,he.Z)(De,an)||{},ft=gt.level,rt=tn[tn.length-1],Mt=this.isDraggable(),pn=!et&&Mt,dn=mt===an,Jt=ai!==void 0?{"aria-selected":!!ai}:void 0;return zt.createElement("div",(0,Ce.Z)({ref:gn,className:Rt()(Gt,"".concat(xe,"-treenode"),(Zt={},(0,Oe.Z)(Zt,"".concat(xe,"-treenode-disabled"),et),(0,Oe.Z)(Zt,"".concat(xe,"-treenode-switcher-").concat(bn?"open":"close"),!je),(0,Oe.Z)(Zt,"".concat(xe,"-treenode-checkbox-checked"),Xt),(0,Oe.Z)(Zt,"".concat(xe,"-treenode-checkbox-indeterminate"),Cn),(0,Oe.Z)(Zt,"".concat(xe,"-treenode-selected"),Ft),(0,Oe.Z)(Zt,"".concat(xe,"-treenode-loading"),Qn),(0,Oe.Z)(Zt,"".concat(xe,"-treenode-active"),Gn),(0,Oe.Z)(Zt,"".concat(xe,"-treenode-leaf-last"),rt),(0,Oe.Z)(Zt,"".concat(xe,"-treenode-draggable"),Mt),(0,Oe.Z)(Zt,"dragging",dn),(0,Oe.Z)(Zt,"drop-target",$e===an),(0,Oe.Z)(Zt,"drop-container",ve===an),(0,Oe.Z)(Zt,"drag-over",!et&&hn),(0,Oe.Z)(Zt,"drag-over-gap-top",!et&&yn),(0,Oe.Z)(Zt,"drag-over-gap-bottom",!et&&vt),(0,Oe.Z)(Zt,"filter-node",Ne&&Ne((0,se.F)(this.props))),Zt)),style:Vt,draggable:pn,"aria-grabbed":dn,onDragStart:pn?this.onDragStart:void 0,onDragEnter:Mt?this.onDragEnter:void 0,onDragOver:Mt?this.onDragOver:void 0,onDragLeave:Mt?this.onDragLeave:void 0,onDrop:Mt?this.onDrop:void 0,onDragEnd:Mt?this.onDragEnd:void 0,onMouseMove:zn},Jt,Ve),zt.createElement(ne,{prefixCls:xe,level:ft,isStart:wt,isEnd:tn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),dt}(zt.Component),Ie=function(Xe){return zt.createElement(Ae.k.Consumer,null,function(dt){return zt.createElement(Be,(0,Ce.Z)({},Xe,{context:dt}))})};Ie.displayName="TreeNode",Ie.isTreeNode=1;var We=Ie},39378:function(Kn,kn,ye){"use strict";ye.d(kn,{k:function(){return Oe}});var Ce=ye(59301),Oe=Ce.createContext(null)},43858:function(Kn,kn,ye){"use strict";ye.d(kn,{O:function(){return We.Z},Z:function(){return Le}});var Ce=ye(96663),Oe=ye(90493),tt=ye(20135),At=ye(44127),Ue=ye(19127),Je=ye(52884),ke=ye(95727),Ot=ye(89866),Lt=ye(65711),ot=ye(85745),Rt=ye(92310),xt=ye.n(Rt),zt=ye(10228),Ae=ye(26112),te=ye(48736),ne=ye(59301),he=ye(39378);function se(xe){var Ne=xe.dropPosition,De=xe.dropLevelOffset,ve=xe.indent,$e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ne){case-1:$e.top=0,$e.left=-De*ve;break;case 1:$e.bottom=0,$e.left=-De*ve;break;case 0:$e.bottom=0,$e.left=ve;break}return ne.createElement("div",{style:$e})}function ge(xe){if(xe==null)throw new TypeError("Cannot destructure "+xe)}var me=ye(72071),we=ye(6620),Fe=ye(34280),Be=ye(24916),Ie=ye(77900),We=ye(39417);function nt(xe,Ne){var De=ne.useState(!1),ve=(0,me.Z)(De,2),$e=ve[0],mt=ve[1];ne.useLayoutEffect(function(){if($e)return xe(),function(){Ne()}},[$e]),ne.useLayoutEffect(function(){return mt(!0),function(){mt(!1)}},[])}var Xe=ye(71430),dt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ze=function(Ne,De){var ve=Ne.className,$e=Ne.style,mt=Ne.motion,et=Ne.motionNodes,Ve=Ne.motionType,gt=Ne.onMotionStart,ft=Ne.onMotionEnd,rt=Ne.active,Mt=Ne.treeNodeRequiredProps,pn=(0,we.Z)(Ne,dt),dn=ne.useState(!0),Jt=(0,me.Z)(dn,2),Rn=Jt[0],Tn=Jt[1],Et=ne.useContext(he.k),cn=Et.prefixCls,On=et&&Ve!=="hide";(0,Fe.Z)(function(){et&&On!==Rn&&Tn(On)},[et]);var Ct=function(){et&>()},_n=ne.useRef(!1),ui=function(){et&&!_n.current&&(_n.current=!0,ft())};nt(Ct,ui);var Ci=function(Hi){On===Hi&&ui()};return et?ne.createElement(Ie.default,(0,Ce.Z)({ref:De,visible:Rn},mt,{motionAppear:Ve==="show",onVisibleChanged:Ci}),function(ci,Hi){var qi=ci.className,Xi=ci.style;return ne.createElement("div",{ref:Hi,className:xt()("".concat(cn,"-treenode-motion"),qi),style:Xi},et.map(function(eo){var Oo=(0,Ce.Z)({},(ge(eo.data),eo.data)),vo=eo.title,Ri=eo.key,Co=eo.isStart,Bn=eo.isEnd;delete Oo.children;var be=(0,Xe.H8)(Ri,Mt);return ne.createElement(We.Z,(0,Ce.Z)({},Oo,be,{title:vo,active:rt,data:eo.data,key:Ri,isStart:Co,isEnd:Bn}))}))}):ne.createElement(We.Z,(0,Ce.Z)({domRef:De,className:ve,style:$e},pn,{active:rt}))};Ze.displayName="MotionTreeNode";var Zt=ne.forwardRef(Ze),yt=Zt;function an(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],De=xe.length,ve=Ne.length;if(Math.abs(De-ve)!==1)return{add:!1,key:null};function $e(mt,et){var Ve=new Map;mt.forEach(function(ft){Ve.set(ft,!0)});var gt=et.filter(function(ft){return!Ve.has(ft)});return gt.length===1?gt[0]:null}return De<ve?{add:!0,key:$e(xe,Ne)}:{add:!1,key:$e(Ne,xe)}}function Gt(xe,Ne,De){var ve=xe.findIndex(function(Ve){return Ve.key===De}),$e=xe[ve+1],mt=Ne.findIndex(function(Ve){return Ve.key===De});if($e){var et=Ne.findIndex(function(Ve){return Ve.key===$e.key});return Ne.slice(mt+1,et)}return Ne.slice(mt+1)}var Vt=["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"],hn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},yn=function(){},vt="RC_TREE_MOTION_".concat(Math.random()),je={key:vt},wt={key:vt,level:0,index:0,pos:"0",node:je,nodes:[je]},tn={parent:null,children:[],pos:wt.pos,data:je,title:null,key:vt,isStart:[],isEnd:[]};function bn(xe,Ne,De,ve){return Ne===!1||!De?xe:xe.slice(0,Math.ceil(De/ve)+1)}function Ft(xe){var Ne=xe.key,De=xe.pos;return(0,Xe.km)(Ne,De)}function Xt(xe){for(var Ne=String(xe.data.key),De=xe;De.parent;)De=De.parent,Ne="".concat(De.data.key," > ").concat(Ne);return Ne}var Cn=ne.forwardRef(function(xe,Ne){var De=xe.prefixCls,ve=xe.data,$e=xe.selectable,mt=xe.checkable,et=xe.expandedKeys,Ve=xe.selectedKeys,gt=xe.checkedKeys,ft=xe.loadedKeys,rt=xe.loadingKeys,Mt=xe.halfCheckedKeys,pn=xe.keyEntities,dn=xe.disabled,Jt=xe.dragging,Rn=xe.dragOverNodeKey,Tn=xe.dropPosition,Et=xe.motion,cn=xe.height,On=xe.itemHeight,Ct=xe.virtual,_n=xe.focusable,ui=xe.activeItem,Ci=xe.focused,ci=xe.tabIndex,Hi=xe.onKeyDown,qi=xe.onFocus,Xi=xe.onBlur,eo=xe.onActiveChange,Oo=xe.onListChangeStart,vo=xe.onListChangeEnd,Ri=(0,we.Z)(xe,Vt),Co=ne.useRef(null),Bn=ne.useRef(null);ne.useImperativeHandle(Ne,function(){return{scrollTo:function(sn){Co.current.scrollTo(sn)},getIndentWidth:function(){return Bn.current.offsetWidth}}});var be=ne.useState(et),Mi=(0,me.Z)(be,2),Ei=Mi[0],Dt=Mi[1],En=ne.useState(ve),Fn=(0,me.Z)(En,2),Jn=Fn[0],wn=Fn[1],Nn=ne.useState(ve),ct=(0,me.Z)(Nn,2),Pt=ct[0],Re=ct[1],Tt=ne.useState([]),_t=(0,me.Z)(Tt,2),ht=_t[0],Ye=_t[1],Wt=ne.useState(null),Ut=(0,me.Z)(Wt,2),fn=Ut[0],Dn=Ut[1],at=ne.useRef(ve);at.current=ve;function ln(){var jt=at.current;wn(jt),Re(jt),Ye([]),Dn(null),vo()}(0,Fe.Z)(function(){Dt(et);var jt=an(Ei,et);if(jt.key!==null)if(jt.add){var sn=Jn.findIndex(function(Pn){var An=Pn.key;return An===jt.key}),It=bn(Gt(Jn,ve,jt.key),Ct,cn,On),on=Jn.slice();on.splice(sn+1,0,tn),Re(on),Ye(It),Dn("show")}else{var qt=ve.findIndex(function(Pn){var An=Pn.key;return An===jt.key}),en=bn(Gt(ve,Jn,jt.key),Ct,cn,On),xn=ve.slice();xn.splice(qt+1,0,tn),Re(xn),Ye(en),Dn("hide")}else Jn!==ve&&(wn(ve),Re(ve))},[et,ve]),ne.useEffect(function(){Jt||ln()},[Jt]);var Hn=Et?Pt:ve,ii={expandedKeys:et,selectedKeys:Ve,loadedKeys:ft,loadingKeys:rt,checkedKeys:gt,halfCheckedKeys:Mt,dragOverNodeKey:Rn,dropPosition:Tn,keyEntities:pn};return ne.createElement(ne.Fragment,null,Ci&&ui&&ne.createElement("span",{style:hn,"aria-live":"assertive"},Xt(ui)),ne.createElement("div",null,ne.createElement("input",{style:hn,disabled:_n===!1||dn,tabIndex:_n!==!1?ci:null,onKeyDown:Hi,onFocus:qi,onBlur:Xi,value:"",onChange:yn,"aria-label":"for screen reader"})),ne.createElement("div",{className:"".concat(De,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ne.createElement("div",{className:"".concat(De,"-indent")},ne.createElement("div",{ref:Bn,className:"".concat(De,"-indent-unit")}))),ne.createElement(Be.Z,(0,Ce.Z)({},Ri,{data:Hn,itemKey:Ft,height:cn,fullHeight:!1,virtual:Ct,itemHeight:On,prefixCls:"".concat(De,"-list"),ref:Co,onVisibleChange:function(sn,It){var on=new Set(sn),qt=It.filter(function(en){return!on.has(en)});qt.some(function(en){return Ft(en)===vt})&&ln()}}),function(jt){var sn=jt.pos,It=(0,Ce.Z)({},(ge(jt.data),jt.data)),on=jt.title,qt=jt.key,en=jt.isStart,xn=jt.isEnd,Pn=(0,Xe.km)(qt,sn);delete It.key,delete It.children;var An=(0,Xe.H8)(Pn,ii);return ne.createElement(yt,(0,Ce.Z)({},It,An,{title:on,active:!!ui&&qt===ui.key,pos:sn,data:jt.data,isStart:en,isEnd:xn,motion:Et,motionNodes:qt===vt?ht:null,motionType:fn,onMotionStart:Oo,onMotionEnd:ln,treeNodeRequiredProps:ii,onMouseMove:function(){eo(null)}}))}))});Cn.displayName="NodeList";var Qn=Cn,gn=ye(35654),Gn=ye(90782),bt=ye(67841),zn=10,ai=function(xe){(0,Lt.Z)(De,xe);var Ne=(0,ot.Z)(De);function De(){var ve;(0,Je.Z)(this,De);for(var $e=arguments.length,mt=new Array($e),et=0;et<$e;et++)mt[et]=arguments[et];return ve=Ne.call.apply(Ne,[this].concat(mt)),ve.destroyed=!1,ve.delayedDragEnterLogic=void 0,ve.loadingRetryTimes={},ve.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$)()},ve.dragStartMousePosition=null,ve.dragNode=void 0,ve.currentMouseOverDroppableNodeKey=null,ve.listRef=ne.createRef(),ve.onNodeDragStart=function(Ve,gt){var ft=ve.state,rt=ft.expandedKeys,Mt=ft.keyEntities,pn=ve.props.onDragStart,dn=gt.props.eventKey;ve.dragNode=gt,ve.dragStartMousePosition={x:Ve.clientX,y:Ve.clientY};var Jt=(0,gn._5)(rt,dn);ve.setState({draggingNodeKey:dn,dragChildrenKeys:(0,gn.wA)(dn,Mt),indent:ve.listRef.current.getIndentWidth()}),ve.setExpandedKeys(Jt),window.addEventListener("dragend",ve.onWindowDragEnd),pn==null||pn({event:Ve,node:(0,Xe.F)(gt.props)})},ve.onNodeDragEnter=function(Ve,gt){var ft=ve.state,rt=ft.expandedKeys,Mt=ft.keyEntities,pn=ft.dragChildrenKeys,dn=ft.flattenNodes,Jt=ft.indent,Rn=ve.props,Tn=Rn.onDragEnter,Et=Rn.onExpand,cn=Rn.allowDrop,On=Rn.direction,Ct=gt.props,_n=Ct.pos,ui=Ct.eventKey,Ci=(0,Ot.Z)(ve),ci=Ci.dragNode;if(ve.currentMouseOverDroppableNodeKey!==ui&&(ve.currentMouseOverDroppableNodeKey=ui),!ci){ve.resetDragState();return}var Hi=(0,gn.OM)(Ve,ci,gt,Jt,ve.dragStartMousePosition,cn,dn,Mt,rt,On),qi=Hi.dropPosition,Xi=Hi.dropLevelOffset,eo=Hi.dropTargetKey,Oo=Hi.dropContainerKey,vo=Hi.dropTargetPos,Ri=Hi.dropAllowed,Co=Hi.dragOverNodeKey;if(pn.indexOf(eo)!==-1||!Ri){ve.resetDragState();return}if(ve.delayedDragEnterLogic||(ve.delayedDragEnterLogic={}),Object.keys(ve.delayedDragEnterLogic).forEach(function(Bn){clearTimeout(ve.delayedDragEnterLogic[Bn])}),ci.props.eventKey!==gt.props.eventKey&&(Ve.persist(),ve.delayedDragEnterLogic[_n]=window.setTimeout(function(){if(ve.state.draggingNodeKey!==null){var Bn=(0,Ue.Z)(rt),be=(0,bt.Z)(Mt,gt.props.eventKey);be&&(be.children||[]).length&&(Bn=(0,gn.L0)(rt,gt.props.eventKey)),"expandedKeys"in ve.props||ve.setExpandedKeys(Bn),Et==null||Et(Bn,{node:(0,Xe.F)(gt.props),expanded:!0,nativeEvent:Ve.nativeEvent})}},800)),ci.props.eventKey===eo&&Xi===0){ve.resetDragState();return}ve.setState({dragOverNodeKey:Co,dropPosition:qi,dropLevelOffset:Xi,dropTargetKey:eo,dropContainerKey:Oo,dropTargetPos:vo,dropAllowed:Ri}),Tn==null||Tn({event:Ve,node:(0,Xe.F)(gt.props),expandedKeys:rt})},ve.onNodeDragOver=function(Ve,gt){var ft=ve.state,rt=ft.dragChildrenKeys,Mt=ft.flattenNodes,pn=ft.keyEntities,dn=ft.expandedKeys,Jt=ft.indent,Rn=ve.props,Tn=Rn.onDragOver,Et=Rn.allowDrop,cn=Rn.direction,On=(0,Ot.Z)(ve),Ct=On.dragNode;if(Ct){var _n=(0,gn.OM)(Ve,Ct,gt,Jt,ve.dragStartMousePosition,Et,Mt,pn,dn,cn),ui=_n.dropPosition,Ci=_n.dropLevelOffset,ci=_n.dropTargetKey,Hi=_n.dropContainerKey,qi=_n.dropAllowed,Xi=_n.dropTargetPos,eo=_n.dragOverNodeKey;rt.indexOf(ci)!==-1||!qi||(Ct.props.eventKey===ci&&Ci===0?ve.state.dropPosition===null&&ve.state.dropLevelOffset===null&&ve.state.dropTargetKey===null&&ve.state.dropContainerKey===null&&ve.state.dropTargetPos===null&&ve.state.dropAllowed===!1&&ve.state.dragOverNodeKey===null||ve.resetDragState():ui===ve.state.dropPosition&&Ci===ve.state.dropLevelOffset&&ci===ve.state.dropTargetKey&&Hi===ve.state.dropContainerKey&&Xi===ve.state.dropTargetPos&&qi===ve.state.dropAllowed&&eo===ve.state.dragOverNodeKey||ve.setState({dropPosition:ui,dropLevelOffset:Ci,dropTargetKey:ci,dropContainerKey:Hi,dropTargetPos:Xi,dropAllowed:qi,dragOverNodeKey:eo}),Tn==null||Tn({event:Ve,node:(0,Xe.F)(gt.props)}))}},ve.onNodeDragLeave=function(Ve,gt){ve.currentMouseOverDroppableNodeKey===gt.props.eventKey&&!Ve.currentTarget.contains(Ve.relatedTarget)&&(ve.resetDragState(),ve.currentMouseOverDroppableNodeKey=null);var ft=ve.props.onDragLeave;ft==null||ft({event:Ve,node:(0,Xe.F)(gt.props)})},ve.onWindowDragEnd=function(Ve){ve.onNodeDragEnd(Ve,null,!0),window.removeEventListener("dragend",ve.onWindowDragEnd)},ve.onNodeDragEnd=function(Ve,gt){var ft=ve.props.onDragEnd;ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),ft==null||ft({event:Ve,node:(0,Xe.F)(gt.props)}),ve.dragNode=null,window.removeEventListener("dragend",ve.onWindowDragEnd)},ve.onNodeDrop=function(Ve,gt){var ft,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Mt=ve.state,pn=Mt.dragChildrenKeys,dn=Mt.dropPosition,Jt=Mt.dropTargetKey,Rn=Mt.dropTargetPos,Tn=Mt.dropAllowed;if(Tn){var Et=ve.props.onDrop;if(ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),Jt!==null){var cn=(0,At.Z)((0,At.Z)({},(0,Xe.H8)(Jt,ve.getTreeNodeRequiredProps())),{},{active:((ft=ve.getActiveItem())===null||ft===void 0?void 0:ft.key)===Jt,data:(0,bt.Z)(ve.state.keyEntities,Jt).node}),On=pn.indexOf(Jt)!==-1;(0,te.ZP)(!On,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ct=(0,gn.yx)(Rn),_n={event:Ve,node:(0,Xe.F)(cn),dragNode:ve.dragNode?(0,Xe.F)(ve.dragNode.props):null,dragNodesKeys:[ve.dragNode.props.eventKey].concat(pn),dropToGap:dn!==0,dropPosition:dn+Number(Ct[Ct.length-1])};rt||Et==null||Et(_n),ve.dragNode=null}}},ve.cleanDragState=function(){var Ve=ve.state.draggingNodeKey;Ve!==null&&ve.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ve.dragStartMousePosition=null,ve.currentMouseOverDroppableNodeKey=null},ve.triggerExpandActionExpand=function(Ve,gt){var ft=ve.state,rt=ft.expandedKeys,Mt=ft.flattenNodes,pn=gt.expanded,dn=gt.key,Jt=gt.isLeaf;if(!(Jt||Ve.shiftKey||Ve.metaKey||Ve.ctrlKey)){var Rn=Mt.filter(function(Et){return Et.key===dn})[0],Tn=(0,Xe.F)((0,At.Z)((0,At.Z)({},(0,Xe.H8)(dn,ve.getTreeNodeRequiredProps())),{},{data:Rn.data}));ve.setExpandedKeys(pn?(0,gn._5)(rt,dn):(0,gn.L0)(rt,dn)),ve.onNodeExpand(Ve,Tn)}},ve.onNodeClick=function(Ve,gt){var ft=ve.props,rt=ft.onClick,Mt=ft.expandAction;Mt==="click"&&ve.triggerExpandActionExpand(Ve,gt),rt==null||rt(Ve,gt)},ve.onNodeDoubleClick=function(Ve,gt){var ft=ve.props,rt=ft.onDoubleClick,Mt=ft.expandAction;Mt==="doubleClick"&&ve.triggerExpandActionExpand(Ve,gt),rt==null||rt(Ve,gt)},ve.onNodeSelect=function(Ve,gt){var ft=ve.state.selectedKeys,rt=ve.state,Mt=rt.keyEntities,pn=rt.fieldNames,dn=ve.props,Jt=dn.onSelect,Rn=dn.multiple,Tn=gt.selected,Et=gt[pn.key],cn=!Tn;cn?Rn?ft=(0,gn.L0)(ft,Et):ft=[Et]:ft=(0,gn._5)(ft,Et);var On=ft.map(function(Ct){var _n=(0,bt.Z)(Mt,Ct);return _n?_n.node:null}).filter(function(Ct){return Ct});ve.setUncontrolledState({selectedKeys:ft}),Jt==null||Jt(ft,{event:"select",selected:cn,node:gt,selectedNodes:On,nativeEvent:Ve.nativeEvent})},ve.onNodeCheck=function(Ve,gt,ft){var rt=ve.state,Mt=rt.keyEntities,pn=rt.checkedKeys,dn=rt.halfCheckedKeys,Jt=ve.props,Rn=Jt.checkStrictly,Tn=Jt.onCheck,Et=gt.key,cn,On={event:"check",node:gt,checked:ft,nativeEvent:Ve.nativeEvent};if(Rn){var Ct=ft?(0,gn.L0)(pn,Et):(0,gn._5)(pn,Et),_n=(0,gn._5)(dn,Et);cn={checked:Ct,halfChecked:_n},On.checkedNodes=Ct.map(function(Xi){return(0,bt.Z)(Mt,Xi)}).filter(function(Xi){return Xi}).map(function(Xi){return Xi.node}),ve.setUncontrolledState({checkedKeys:Ct})}else{var ui=(0,Gn.S)([].concat((0,Ue.Z)(pn),[Et]),!0,Mt),Ci=ui.checkedKeys,ci=ui.halfCheckedKeys;if(!ft){var Hi=new Set(Ci);Hi.delete(Et);var qi=(0,Gn.S)(Array.from(Hi),{checked:!1,halfCheckedKeys:ci},Mt);Ci=qi.checkedKeys,ci=qi.halfCheckedKeys}cn=Ci,On.checkedNodes=[],On.checkedNodesPositions=[],On.halfCheckedKeys=ci,Ci.forEach(function(Xi){var eo=(0,bt.Z)(Mt,Xi);if(eo){var Oo=eo.node,vo=eo.pos;On.checkedNodes.push(Oo),On.checkedNodesPositions.push({node:Oo,pos:vo})}}),ve.setUncontrolledState({checkedKeys:Ci},!1,{halfCheckedKeys:ci})}Tn==null||Tn(cn,On)},ve.onNodeLoad=function(Ve){var gt=Ve.key,ft=new Promise(function(rt,Mt){ve.setState(function(pn){var dn=pn.loadedKeys,Jt=dn===void 0?[]:dn,Rn=pn.loadingKeys,Tn=Rn===void 0?[]:Rn,Et=ve.props,cn=Et.loadData,On=Et.onLoad;if(!cn||Jt.indexOf(gt)!==-1||Tn.indexOf(gt)!==-1)return null;var Ct=cn(Ve);return Ct.then(function(){var _n=ve.state.loadedKeys,ui=(0,gn.L0)(_n,gt);On==null||On(ui,{event:"load",node:Ve}),ve.setUncontrolledState({loadedKeys:ui}),ve.setState(function(Ci){return{loadingKeys:(0,gn._5)(Ci.loadingKeys,gt)}}),rt()}).catch(function(_n){if(ve.setState(function(Ci){return{loadingKeys:(0,gn._5)(Ci.loadingKeys,gt)}}),ve.loadingRetryTimes[gt]=(ve.loadingRetryTimes[gt]||0)+1,ve.loadingRetryTimes[gt]>=zn){var ui=ve.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ve.setUncontrolledState({loadedKeys:(0,gn.L0)(ui,gt)}),rt()}Mt(_n)}),{loadingKeys:(0,gn.L0)(Tn,gt)}})});return ft.catch(function(){}),ft},ve.onNodeMouseEnter=function(Ve,gt){var ft=ve.props.onMouseEnter;ft==null||ft({event:Ve,node:gt})},ve.onNodeMouseLeave=function(Ve,gt){var ft=ve.props.onMouseLeave;ft==null||ft({event:Ve,node:gt})},ve.onNodeContextMenu=function(Ve,gt){var ft=ve.props.onRightClick;ft&&(Ve.preventDefault(),ft({event:Ve,node:gt}))},ve.onFocus=function(){var Ve=ve.props.onFocus;ve.setState({focused:!0});for(var gt=arguments.length,ft=new Array(gt),rt=0;rt<gt;rt++)ft[rt]=arguments[rt];Ve==null||Ve.apply(void 0,ft)},ve.onBlur=function(){var Ve=ve.props.onBlur;ve.setState({focused:!1}),ve.onActiveChange(null);for(var gt=arguments.length,ft=new Array(gt),rt=0;rt<gt;rt++)ft[rt]=arguments[rt];Ve==null||Ve.apply(void 0,ft)},ve.getTreeNodeRequiredProps=function(){var Ve=ve.state,gt=Ve.expandedKeys,ft=Ve.selectedKeys,rt=Ve.loadedKeys,Mt=Ve.loadingKeys,pn=Ve.checkedKeys,dn=Ve.halfCheckedKeys,Jt=Ve.dragOverNodeKey,Rn=Ve.dropPosition,Tn=Ve.keyEntities;return{expandedKeys:gt||[],selectedKeys:ft||[],loadedKeys:rt||[],loadingKeys:Mt||[],checkedKeys:pn||[],halfCheckedKeys:dn||[],dragOverNodeKey:Jt,dropPosition:Rn,keyEntities:Tn}},ve.setExpandedKeys=function(Ve){var gt=ve.state,ft=gt.treeData,rt=gt.fieldNames,Mt=(0,Xe.oH)(ft,Ve,rt);ve.setUncontrolledState({expandedKeys:Ve,flattenNodes:Mt},!0)},ve.onNodeExpand=function(Ve,gt){var ft=ve.state.expandedKeys,rt=ve.state,Mt=rt.listChanging,pn=rt.fieldNames,dn=ve.props,Jt=dn.onExpand,Rn=dn.loadData,Tn=gt.expanded,Et=gt[pn.key];if(!Mt){var cn=ft.indexOf(Et),On=!Tn;if((0,te.ZP)(Tn&&cn!==-1||!Tn&&cn===-1,"Expand state not sync with index check"),On?ft=(0,gn.L0)(ft,Et):ft=(0,gn._5)(ft,Et),ve.setExpandedKeys(ft),Jt==null||Jt(ft,{node:gt,expanded:On,nativeEvent:Ve.nativeEvent}),On&&Rn){var Ct=ve.onNodeLoad(gt);Ct&&Ct.then(function(){var _n=(0,Xe.oH)(ve.state.treeData,ft,pn);ve.setUncontrolledState({flattenNodes:_n})}).catch(function(){var _n=ve.state.expandedKeys,ui=(0,gn._5)(_n,Et);ve.setExpandedKeys(ui)})}}},ve.onListChangeStart=function(){ve.setUncontrolledState({listChanging:!0})},ve.onListChangeEnd=function(){setTimeout(function(){ve.setUncontrolledState({listChanging:!1})})},ve.onActiveChange=function(Ve){var gt=ve.state.activeKey,ft=ve.props.onActiveChange;gt!==Ve&&(ve.setState({activeKey:Ve}),Ve!==null&&ve.scrollTo({key:Ve}),ft==null||ft(Ve))},ve.getActiveItem=function(){var Ve=ve.state,gt=Ve.activeKey,ft=Ve.flattenNodes;return gt===null?null:ft.find(function(rt){var Mt=rt.key;return Mt===gt})||null},ve.offsetActiveKey=function(Ve){var gt=ve.state,ft=gt.flattenNodes,rt=gt.activeKey,Mt=ft.findIndex(function(Jt){var Rn=Jt.key;return Rn===rt});Mt===-1&&Ve<0&&(Mt=ft.length),Mt=(Mt+Ve+ft.length)%ft.length;var pn=ft[Mt];if(pn){var dn=pn.key;ve.onActiveChange(dn)}else ve.onActiveChange(null)},ve.onKeyDown=function(Ve){var gt=ve.state,ft=gt.activeKey,rt=gt.expandedKeys,Mt=gt.checkedKeys,pn=gt.fieldNames,dn=ve.props,Jt=dn.onKeyDown,Rn=dn.checkable,Tn=dn.selectable;switch(Ve.which){case zt.Z.UP:{ve.offsetActiveKey(-1),Ve.preventDefault();break}case zt.Z.DOWN:{ve.offsetActiveKey(1),Ve.preventDefault();break}}var Et=ve.getActiveItem();if(Et&&Et.data){var cn=ve.getTreeNodeRequiredProps(),On=Et.data.isLeaf===!1||!!(Et.data[pn.children]||[]).length,Ct=(0,Xe.F)((0,At.Z)((0,At.Z)({},(0,Xe.H8)(ft,cn)),{},{data:Et.data,active:!0}));switch(Ve.which){case zt.Z.LEFT:{On&&rt.includes(ft)?ve.onNodeExpand({},Ct):Et.parent&&ve.onActiveChange(Et.parent.key),Ve.preventDefault();break}case zt.Z.RIGHT:{On&&!rt.includes(ft)?ve.onNodeExpand({},Ct):Et.children&&Et.children.length&&ve.onActiveChange(Et.children[0].key),Ve.preventDefault();break}case zt.Z.ENTER:case zt.Z.SPACE:{Rn&&!Ct.disabled&&Ct.checkable!==!1&&!Ct.disableCheckbox?ve.onNodeCheck({},Ct,!Mt.includes(ft)):!Rn&&Tn&&!Ct.disabled&&Ct.selectable!==!1&&ve.onNodeSelect({},Ct);break}}}Jt==null||Jt(Ve)},ve.setUncontrolledState=function(Ve){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ve.destroyed){var rt=!1,Mt=!0,pn={};Object.keys(Ve).forEach(function(dn){if(dn in ve.props){Mt=!1;return}rt=!0,pn[dn]=Ve[dn]}),rt&&(!gt||Mt)&&ve.setState((0,At.Z)((0,At.Z)({},pn),ft))}},ve.scrollTo=function(Ve){ve.listRef.current.scrollTo(Ve)},ve}return(0,ke.Z)(De,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var $e=this.props.activeKey;$e!==void 0&&$e!==this.state.activeKey&&(this.setState({activeKey:$e}),$e!==null&&this.scrollTo({key:$e}))}},{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 $e,mt=this.state,et=mt.focused,Ve=mt.flattenNodes,gt=mt.keyEntities,ft=mt.draggingNodeKey,rt=mt.activeKey,Mt=mt.dropLevelOffset,pn=mt.dropContainerKey,dn=mt.dropTargetKey,Jt=mt.dropPosition,Rn=mt.dragOverNodeKey,Tn=mt.indent,Et=this.props,cn=Et.prefixCls,On=Et.className,Ct=Et.style,_n=Et.showLine,ui=Et.focusable,Ci=Et.tabIndex,ci=Ci===void 0?0:Ci,Hi=Et.selectable,qi=Et.showIcon,Xi=Et.icon,eo=Et.switcherIcon,Oo=Et.draggable,vo=Et.checkable,Ri=Et.checkStrictly,Co=Et.disabled,Bn=Et.motion,be=Et.loadData,Mi=Et.filterTreeNode,Ei=Et.height,Dt=Et.itemHeight,En=Et.virtual,Fn=Et.titleRender,Jn=Et.dropIndicatorRender,wn=Et.onContextMenu,Nn=Et.onScroll,ct=Et.direction,Pt=Et.rootClassName,Re=Et.rootStyle,Tt=(0,Ae.Z)(this.props,{aria:!0,data:!0}),_t;return Oo&&((0,tt.Z)(Oo)==="object"?_t=Oo:typeof Oo=="function"?_t={nodeDraggable:Oo}:_t={}),ne.createElement(he.k.Provider,{value:{prefixCls:cn,selectable:Hi,showIcon:qi,icon:Xi,switcherIcon:eo,draggable:_t,draggingNodeKey:ft,checkable:vo,checkStrictly:Ri,disabled:Co,keyEntities:gt,dropLevelOffset:Mt,dropContainerKey:pn,dropTargetKey:dn,dropPosition:Jt,dragOverNodeKey:Rn,indent:Tn,direction:ct,dropIndicatorRender:Jn,loadData:be,filterTreeNode:Mi,titleRender:Fn,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:xt()(cn,On,Pt,($e={},(0,Oe.Z)($e,"".concat(cn,"-show-line"),_n),(0,Oe.Z)($e,"".concat(cn,"-focused"),et),(0,Oe.Z)($e,"".concat(cn,"-active-focused"),rt!==null),$e)),style:Re},ne.createElement(Qn,(0,Ce.Z)({ref:this.listRef,prefixCls:cn,style:Ct,data:Ve,disabled:Co,selectable:Hi,checkable:!!vo,motion:Bn,dragging:ft!==null,height:Ei,itemHeight:Dt,virtual:En,focusable:ui,focused:et,tabIndex:ci,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wn,onScroll:Nn},this.getTreeNodeRequiredProps(),Tt))))}}],[{key:"getDerivedStateFromProps",value:function($e,mt){var et=mt.prevProps,Ve={prevProps:$e};function gt(ui){return!et&&ui in $e||et&&et[ui]!==$e[ui]}var ft,rt=mt.fieldNames;if(gt("fieldNames")&&(rt=(0,Xe.w$)($e.fieldNames),Ve.fieldNames=rt),gt("treeData")?ft=$e.treeData:gt("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ft=(0,Xe.zn)($e.children)),ft){Ve.treeData=ft;var Mt=(0,Xe.I8)(ft,{fieldNames:rt});Ve.keyEntities=(0,At.Z)((0,Oe.Z)({},vt,wt),Mt.keyEntities)}var pn=Ve.keyEntities||mt.keyEntities;if(gt("expandedKeys")||et&>("autoExpandParent"))Ve.expandedKeys=$e.autoExpandParent||!et&&$e.defaultExpandParent?(0,gn.r7)($e.expandedKeys,pn):$e.expandedKeys;else if(!et&&$e.defaultExpandAll){var dn=(0,At.Z)({},pn);delete dn[vt],Ve.expandedKeys=Object.keys(dn).map(function(ui){return dn[ui].key})}else!et&&$e.defaultExpandedKeys&&(Ve.expandedKeys=$e.autoExpandParent||$e.defaultExpandParent?(0,gn.r7)($e.defaultExpandedKeys,pn):$e.defaultExpandedKeys);if(Ve.expandedKeys||delete Ve.expandedKeys,ft||Ve.expandedKeys){var Jt=(0,Xe.oH)(ft||mt.treeData,Ve.expandedKeys||mt.expandedKeys,rt);Ve.flattenNodes=Jt}if($e.selectable&&(gt("selectedKeys")?Ve.selectedKeys=(0,gn.BT)($e.selectedKeys,$e):!et&&$e.defaultSelectedKeys&&(Ve.selectedKeys=(0,gn.BT)($e.defaultSelectedKeys,$e))),$e.checkable){var Rn;if(gt("checkedKeys")?Rn=(0,gn.E6)($e.checkedKeys)||{}:!et&&$e.defaultCheckedKeys?Rn=(0,gn.E6)($e.defaultCheckedKeys)||{}:ft&&(Rn=(0,gn.E6)($e.checkedKeys)||{checkedKeys:mt.checkedKeys,halfCheckedKeys:mt.halfCheckedKeys}),Rn){var Tn=Rn,Et=Tn.checkedKeys,cn=Et===void 0?[]:Et,On=Tn.halfCheckedKeys,Ct=On===void 0?[]:On;if(!$e.checkStrictly){var _n=(0,Gn.S)(cn,!0,pn);cn=_n.checkedKeys,Ct=_n.halfCheckedKeys}Ve.checkedKeys=cn,Ve.halfCheckedKeys=Ct}}return gt("loadedKeys")&&(Ve.loadedKeys=$e.loadedKeys),Ve}}]),De}(ne.Component);ai.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},ai.TreeNode=We.Z;var He=ai,Le=He},35654:function(Kn,kn,ye){"use strict";ye.d(kn,{BT:function(){return ne},E6:function(){return ge},L0:function(){return ot},OM:function(){return te},_5:function(){return Lt},r7:function(){return me},wA:function(){return xt},yx:function(){return Rt}});var Ce=ye(19127),Oe=ye(20135),tt=ye(48736),At=ye(59301),Ue=ye(39417),Je=ye(67841),ke=ye(71430),Ot=null;function Lt(we,Fe){if(!we)return[];var Be=we.slice(),Ie=Be.indexOf(Fe);return Ie>=0&&Be.splice(Ie,1),Be}function ot(we,Fe){var Be=(we||[]).slice();return Be.indexOf(Fe)===-1&&Be.push(Fe),Be}function Rt(we){return we.split("-")}function xt(we,Fe){var Be=[],Ie=(0,Je.Z)(Fe,we);function We(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];nt.forEach(function(Xe){var dt=Xe.key,Ze=Xe.children;Be.push(dt),We(Ze)})}return We(Ie.children),Be}function zt(we){if(we.parent){var Fe=Rt(we.pos);return Number(Fe[Fe.length-1])===we.parent.children.length-1}return!1}function Ae(we){var Fe=Rt(we.pos);return Number(Fe[Fe.length-1])===0}function te(we,Fe,Be,Ie,We,nt,Xe,dt,Ze,Zt){var yt,an=we.clientX,Gt=we.clientY,Vt=we.target.getBoundingClientRect(),hn=Vt.top,yn=Vt.height,vt=(Zt==="rtl"?-1:1)*(((We==null?void 0:We.x)||0)-an),je=(vt-12)/Ie,wt=(0,Je.Z)(dt,Be.props.eventKey);if(Gt<hn+yn/2){var tn=Xe.findIndex(function(Le){return Le.key===wt.key}),bn=tn<=0?0:tn-1,Ft=Xe[bn].key;wt=(0,Je.Z)(dt,Ft)}var Xt=wt.key,Cn=wt,Qn=wt.key,gn=0,Gn=0;if(!Ze.includes(Xt))for(var bt=0;bt<je&&zt(wt);bt+=1)wt=wt.parent,Gn+=1;var zn=Fe.props.data,ai=wt.node,He=!0;return Ae(wt)&&wt.level===0&&Gt<hn+yn/2&&nt({dragNode:zn,dropNode:ai,dropPosition:-1})&&wt.key===Be.props.eventKey?gn=-1:(Cn.children||[]).length&&Ze.includes(Qn)?nt({dragNode:zn,dropNode:ai,dropPosition:0})?gn=0:He=!1:Gn===0?je>-1.5?nt({dragNode:zn,dropNode:ai,dropPosition:1})?gn=1:He=!1:nt({dragNode:zn,dropNode:ai,dropPosition:0})?gn=0:nt({dragNode:zn,dropNode:ai,dropPosition:1})?gn=1:He=!1:nt({dragNode:zn,dropNode:ai,dropPosition:1})?gn=1:He=!1,{dropPosition:gn,dropLevelOffset:Gn,dropTargetKey:wt.key,dropTargetPos:wt.pos,dragOverNodeKey:Qn,dropContainerKey:gn===0?null:((yt=wt.parent)===null||yt===void 0?void 0:yt.key)||null,dropAllowed:He}}function ne(we,Fe){if(we){var Be=Fe.multiple;return Be?we.slice():we.length?[we[0]]:we}}var he=function(Fe){return Fe};function se(we,Fe){if(!we)return[];var Be=Fe||{},Ie=Be.processProps,We=Ie===void 0?he:Ie,nt=Array.isArray(we)?we:[we];return nt.map(function(Xe){var dt=Xe.children,Ze=_objectWithoutProperties(Xe,Ot),Zt=se(dt,Fe);return React.createElement(TreeNode,_extends({key:Ze.key},We(Ze)),Zt)})}function ge(we){if(!we)return null;var Fe;if(Array.isArray(we))Fe={checkedKeys:we,halfCheckedKeys:void 0};else if((0,Oe.Z)(we)==="object")Fe={checkedKeys:we.checked||void 0,halfCheckedKeys:we.halfChecked||void 0};else return(0,tt.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Fe}function me(we,Fe){var Be=new Set;function Ie(We){if(!Be.has(We)){var nt=(0,Je.Z)(Fe,We);if(nt){Be.add(We);var Xe=nt.parent,dt=nt.node;dt.disabled||Xe&&Ie(Xe.key)}}}return(we||[]).forEach(function(We){Ie(We)}),(0,Ce.Z)(Be)}},90782:function(Kn,kn,ye){"use strict";ye.d(kn,{S:function(){return ke}});var Ce=ye(48736),Oe=ye(67841);function tt(Ot,Lt){var ot=new Set;return Ot.forEach(function(Rt){Lt.has(Rt)||ot.add(Rt)}),ot}function At(Ot){var Lt=Ot||{},ot=Lt.disabled,Rt=Lt.disableCheckbox,xt=Lt.checkable;return!!(ot||Rt)||xt===!1}function Ue(Ot,Lt,ot,Rt){for(var xt=new Set(Ot),zt=new Set,Ae=0;Ae<=ot;Ae+=1){var te=Lt.get(Ae)||new Set;te.forEach(function(ge){var me=ge.key,we=ge.node,Fe=ge.children,Be=Fe===void 0?[]:Fe;xt.has(me)&&!Rt(we)&&Be.filter(function(Ie){return!Rt(Ie.node)}).forEach(function(Ie){xt.add(Ie.key)})})}for(var ne=new Set,he=ot;he>=0;he-=1){var se=Lt.get(he)||new Set;se.forEach(function(ge){var me=ge.parent,we=ge.node;if(!(Rt(we)||!ge.parent||ne.has(ge.parent.key))){if(Rt(ge.parent.node)){ne.add(me.key);return}var Fe=!0,Be=!1;(me.children||[]).filter(function(Ie){return!Rt(Ie.node)}).forEach(function(Ie){var We=Ie.key,nt=xt.has(We);Fe&&!nt&&(Fe=!1),!Be&&(nt||zt.has(We))&&(Be=!0)}),Fe&&xt.add(me.key),Be&&zt.add(me.key),ne.add(me.key)}})}return{checkedKeys:Array.from(xt),halfCheckedKeys:Array.from(tt(zt,xt))}}function Je(Ot,Lt,ot,Rt,xt){for(var zt=new Set(Ot),Ae=new Set(Lt),te=0;te<=Rt;te+=1){var ne=ot.get(te)||new Set;ne.forEach(function(me){var we=me.key,Fe=me.node,Be=me.children,Ie=Be===void 0?[]:Be;!zt.has(we)&&!Ae.has(we)&&!xt(Fe)&&Ie.filter(function(We){return!xt(We.node)}).forEach(function(We){zt.delete(We.key)})})}Ae=new Set;for(var he=new Set,se=Rt;se>=0;se-=1){var ge=ot.get(se)||new Set;ge.forEach(function(me){var we=me.parent,Fe=me.node;if(!(xt(Fe)||!me.parent||he.has(me.parent.key))){if(xt(me.parent.node)){he.add(we.key);return}var Be=!0,Ie=!1;(we.children||[]).filter(function(We){return!xt(We.node)}).forEach(function(We){var nt=We.key,Xe=zt.has(nt);Be&&!Xe&&(Be=!1),!Ie&&(Xe||Ae.has(nt))&&(Ie=!0)}),Be||zt.delete(we.key),Ie&&Ae.add(we.key),he.add(we.key)}})}return{checkedKeys:Array.from(zt),halfCheckedKeys:Array.from(tt(Ae,zt))}}function ke(Ot,Lt,ot,Rt){var xt=[],zt;Rt?zt=Rt:zt=At;var Ae=new Set(Ot.filter(function(se){var ge=!!(0,Oe.Z)(ot,se);return ge||xt.push(se),ge})),te=new Map,ne=0;Object.keys(ot).forEach(function(se){var ge=ot[se],me=ge.level,we=te.get(me);we||(we=new Set,te.set(me,we)),we.add(ge),ne=Math.max(ne,me)}),(0,Ce.ZP)(!xt.length,"Tree missing follow keys: ".concat(xt.slice(0,100).map(function(se){return"'".concat(se,"'")}).join(", ")));var he;return Lt===!0?he=Ue(Ae,te,ne,zt):he=Je(Ae,Lt.halfCheckedKeys,te,ne,zt),he}},67841:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ce}});function Ce(Oe,tt){return Oe[tt]}},71430:function(Kn,kn,ye){"use strict";ye.d(kn,{F:function(){return me},H8:function(){return ge},I8:function(){return se},km:function(){return xt},oH:function(){return ne},w$:function(){return zt},zn:function(){return te}});var Ce=ye(20135),Oe=ye(19127),tt=ye(44127),At=ye(6620),Ue=ye(11592),Je=ye(2738),ke=ye(48736),Ot=ye(67841),Lt=["children"];function ot(we,Fe){return"".concat(we,"-").concat(Fe)}function Rt(we){return we&&we.type&&we.type.isTreeNode}function xt(we,Fe){return we!=null?we:Fe}function zt(we){var Fe=we||{},Be=Fe.title,Ie=Fe._title,We=Fe.key,nt=Fe.children,Xe=Be||"title";return{title:Xe,_title:Ie||[Xe],key:We||"key",children:nt||"children"}}function Ae(we,Fe){var Be=new Map;function Ie(We){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(We||[]).forEach(function(Xe){var dt=Xe[Fe.key],Ze=Xe[Fe.children];warning(dt!=null,"Tree node must have a certain key: [".concat(nt).concat(dt,"]"));var Zt=String(dt);warning(!Be.has(Zt)||dt===null||dt===void 0,"Same 'key' exist in the Tree: ".concat(Zt)),Be.set(Zt,!0),Ie(Ze,"".concat(nt).concat(Zt," > "))})}Ie(we)}function te(we){function Fe(Be){var Ie=(0,Ue.Z)(Be);return Ie.map(function(We){if(!Rt(We))return(0,ke.ZP)(!We,"Tree/TreeNode can only accept TreeNode as children."),null;var nt=We.key,Xe=We.props,dt=Xe.children,Ze=(0,At.Z)(Xe,Lt),Zt=(0,tt.Z)({key:nt},Ze),yt=Fe(dt);return yt.length&&(Zt.children=yt),Zt}).filter(function(We){return We})}return Fe(we)}function ne(we,Fe,Be){var Ie=zt(Be),We=Ie._title,nt=Ie.key,Xe=Ie.children,dt=new Set(Fe===!0?[]:Fe),Ze=[];function Zt(yt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return yt.map(function(Gt,Vt){for(var hn=ot(an?an.pos:"0",Vt),yn=xt(Gt[nt],hn),vt,je=0;je<We.length;je+=1){var wt=We[je];if(Gt[wt]!==void 0){vt=Gt[wt];break}}var tn=(0,tt.Z)((0,tt.Z)({},(0,Je.Z)(Gt,[].concat((0,Oe.Z)(We),[nt,Xe]))),{},{title:vt,key:yn,parent:an,pos:hn,children:null,data:Gt,isStart:[].concat((0,Oe.Z)(an?an.isStart:[]),[Vt===0]),isEnd:[].concat((0,Oe.Z)(an?an.isEnd:[]),[Vt===yt.length-1])});return Ze.push(tn),Fe===!0||dt.has(yn)?tn.children=Zt(Gt[Xe]||[],tn):tn.children=[],tn})}return Zt(we),Ze}function he(we,Fe,Be){var Ie={};(0,Ce.Z)(Be)==="object"?Ie=Be:Ie={externalGetKey:Be},Ie=Ie||{};var We=Ie,nt=We.childrenPropName,Xe=We.externalGetKey,dt=We.fieldNames,Ze=zt(dt),Zt=Ze.key,yt=Ze.children,an=nt||yt,Gt;Xe?typeof Xe=="string"?Gt=function(yn){return yn[Xe]}:typeof Xe=="function"&&(Gt=function(yn){return Xe(yn)}):Gt=function(yn,vt){return xt(yn[Zt],vt)};function Vt(hn,yn,vt,je){var wt=hn?hn[an]:we,tn=hn?ot(vt.pos,yn):"0",bn=hn?[].concat((0,Oe.Z)(je),[hn]):[];if(hn){var Ft=Gt(hn,tn),Xt={node:hn,index:yn,pos:tn,key:Ft,parentPos:vt.node?vt.pos:null,level:vt.level+1,nodes:bn};Fe(Xt)}wt&&wt.forEach(function(Cn,Qn){Vt(Cn,Qn,{node:hn,pos:tn,level:vt?vt.level+1:-1},bn)})}Vt(null)}function se(we){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=Fe.initWrapper,Ie=Fe.processEntity,We=Fe.onProcessFinished,nt=Fe.externalGetKey,Xe=Fe.childrenPropName,dt=Fe.fieldNames,Ze=arguments.length>2?arguments[2]:void 0,Zt=nt||Ze,yt={},an={},Gt={posEntities:yt,keyEntities:an};return Be&&(Gt=Be(Gt)||Gt),he(we,function(Vt){var hn=Vt.node,yn=Vt.index,vt=Vt.pos,je=Vt.key,wt=Vt.parentPos,tn=Vt.level,bn=Vt.nodes,Ft={node:hn,nodes:bn,index:yn,key:je,pos:vt,level:tn},Xt=xt(je,vt);yt[vt]=Ft,an[Xt]=Ft,Ft.parent=yt[wt],Ft.parent&&(Ft.parent.children=Ft.parent.children||[],Ft.parent.children.push(Ft)),Ie&&Ie(Ft,Gt)},{externalGetKey:Zt,childrenPropName:Xe,fieldNames:dt}),We&&We(Gt),Gt}function ge(we,Fe){var Be=Fe.expandedKeys,Ie=Fe.selectedKeys,We=Fe.loadedKeys,nt=Fe.loadingKeys,Xe=Fe.checkedKeys,dt=Fe.halfCheckedKeys,Ze=Fe.dragOverNodeKey,Zt=Fe.dropPosition,yt=Fe.keyEntities,an=(0,Ot.Z)(yt,we),Gt={eventKey:we,expanded:Be.indexOf(we)!==-1,selected:Ie.indexOf(we)!==-1,loaded:We.indexOf(we)!==-1,loading:nt.indexOf(we)!==-1,checked:Xe.indexOf(we)!==-1,halfChecked:dt.indexOf(we)!==-1,pos:String(an?an.pos:""),dragOver:Ze===we&&Zt===0,dragOverGapTop:Ze===we&&Zt===-1,dragOverGapBottom:Ze===we&&Zt===1};return Gt}function me(we){var Fe=we.data,Be=we.expanded,Ie=we.selected,We=we.checked,nt=we.loaded,Xe=we.loading,dt=we.halfChecked,Ze=we.dragOver,Zt=we.dragOverGapTop,yt=we.dragOverGapBottom,an=we.pos,Gt=we.active,Vt=we.eventKey,hn=(0,tt.Z)((0,tt.Z)({},Fe),{},{expanded:Be,selected:Ie,checked:We,loaded:nt,loading:Xe,halfChecked:dt,dragOver:Ze,dragOverGapTop:Zt,dragOverGapBottom:yt,pos:an,active:Gt,key:Vt});return"props"in hn||Object.defineProperty(hn,"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`."),we}}),hn}},8224:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Oe}});var Ce=ye(4676);function Oe(tt,At,Ue,Je){var ke=Ce.unstable_batchedUpdates?function(Lt){Ce.unstable_batchedUpdates(Ue,Lt)}:Ue;return tt!=null&&tt.addEventListener&&tt.addEventListener(At,ke,Je),{remove:function(){tt!=null&&tt.removeEventListener&&tt.removeEventListener(At,ke,Je)}}}},55468:function(Kn,kn,ye){"use strict";ye.d(kn,{g1:function(){return Rt},os:function(){return zt}});var Ce=/margin|padding|width|height|max|min|offset/,Oe={left:!0,top:!0},tt={cssFloat:1,styleFloat:1,float:1};function At(Ae){return Ae.nodeType===1?Ae.ownerDocument.defaultView.getComputedStyle(Ae,null):{}}function Ue(Ae,te,ne){if(te=te.toLowerCase(),ne==="auto"){if(te==="height")return Ae.offsetHeight;if(te==="width")return Ae.offsetWidth}return te in Oe||(Oe[te]=Ce.test(te)),Oe[te]?parseFloat(ne)||0:ne}function Je(Ae,te){var ne=arguments.length,he=At(Ae);return te=tt[te]?"cssFloat"in Ae.style?"cssFloat":"styleFloat":te,ne===1?he:Ue(Ae,te,he[te]||Ae.style[te])}function ke(Ae,te,ne){var he=arguments.length;if(te=tt[te]?"cssFloat"in Ae.style?"cssFloat":"styleFloat":te,he===3)return typeof ne=="number"&&Ce.test(te)&&(ne="".concat(ne,"px")),Ae.style[te]=ne,ne;for(var se in te)te.hasOwnProperty(se)&&ke(Ae,se,te[se]);return At(Ae)}function Ot(Ae){return Ae===document.body?document.documentElement.clientWidth:Ae.offsetWidth}function Lt(Ae){return Ae===document.body?window.innerHeight||document.documentElement.clientHeight:Ae.offsetHeight}function ot(){var Ae=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),te=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ae,height:te}}function Rt(){var Ae=document.documentElement.clientWidth,te=window.innerHeight||document.documentElement.clientHeight;return{width:Ae,height:te}}function xt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function zt(Ae){var te=Ae.getBoundingClientRect(),ne=document.documentElement;return{left:te.left+(window.pageXOffset||ne.scrollLeft)-(ne.clientLeft||document.body.clientLeft||0),top:te.top+(window.pageYOffset||ne.scrollTop)-(ne.clientTop||document.body.clientTop||0)}}},24514:function(Kn,kn,ye){"use strict";ye.d(kn,{G:function(){return At}});var Ce=ye(47273),Oe=function(Je){if((0,Ce.Z)()&&window.document.documentElement){var ke=Array.isArray(Je)?Je:[Je],Ot=window.document.documentElement;return ke.some(function(Lt){return Lt in Ot.style})}return!1},tt=function(Je,ke){if(!Oe(Je))return!1;var Ot=document.createElement("div"),Lt=Ot.style[Je];return Ot.style[Je]=ke,Ot.style[Je]!==Lt};function At(Ue,Je){return!Array.isArray(Ue)&&Je!==void 0?tt(Ue,Je):Oe(Ue)}},24916:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return ai}});var Ce=ye(96663),Oe=ye(20135),tt=ye(44127),At=ye(90493),Ue=ye(72071),Je=ye(6620),ke=ye(92310),Ot=ye.n(ke),Lt=ye(29301),ot=ye(70425),Rt=ye(34280),xt=ye(59301),zt=ye(4676),Ae=xt.forwardRef(function(He,Le){var xe=He.height,Ne=He.offsetY,De=He.offsetX,ve=He.children,$e=He.prefixCls,mt=He.onInnerResize,et=He.innerProps,Ve=He.rtl,gt=He.extra,ft={},rt={display:"flex",flexDirection:"column"};return Ne!==void 0&&(ft={height:xe,position:"relative",overflow:"hidden"},rt=(0,tt.Z)((0,tt.Z)({},rt),{},(0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)({transform:"translateY(".concat(Ne,"px)")},Ve?"marginRight":"marginLeft",-De),"position","absolute"),"left",0),"right",0),"top",0))),xt.createElement("div",{style:ft},xt.createElement(Lt.Z,{onResize:function(pn){var dn=pn.offsetHeight;dn&&mt&&mt()}},xt.createElement("div",(0,Ce.Z)({style:rt,className:Ot()((0,At.Z)({},"".concat($e,"-holder-inner"),$e)),ref:Le},et),ve,gt)))});Ae.displayName="Filler";var te=Ae;function ne(He){var Le=He.children,xe=He.setRef,Ne=xt.useCallback(function(De){xe(De)},[]);return xt.cloneElement(Le,{ref:Ne})}function he(He,Le,xe,Ne,De,ve,$e,mt){var et=mt.getKey;return He.slice(Le,xe+1).map(function(Ve,gt){var ft=Le+gt,rt=$e(Ve,ft,{style:{width:Ne},offsetX:De}),Mt=et(Ve);return xt.createElement(ne,{key:Mt,setRef:function(dn){return ve(Ve,dn)}},rt)})}function se(He,Le,xe,Ne){var De=xe-He,ve=Le-xe,$e=Math.min(De,ve)*2;if(Ne<=$e){var mt=Math.floor(Ne/2);return Ne%2?xe+mt+1:xe-mt}return De>ve?xe-(Ne-ve):xe+(Ne-De)}function ge(He,Le,xe){var Ne=He.length,De=Le.length,ve,$e;if(Ne===0&&De===0)return null;Ne<De?(ve=He,$e=Le):(ve=Le,$e=He);var mt={__EMPTY_ITEM__:!0};function et(pn){return pn!==void 0?xe(pn):mt}for(var Ve=null,gt=Math.abs(Ne-De)!==1,ft=0;ft<$e.length;ft+=1){var rt=et(ve[ft]),Mt=et($e[ft]);if(rt!==Mt){Ve=ft,gt=gt||rt!==et($e[ft+1]);break}}return Ve===null?null:{index:Ve,multiple:gt}}function me(He,Le,xe){var Ne=xt.useState(He),De=(0,Ue.Z)(Ne,2),ve=De[0],$e=De[1],mt=xt.useState(null),et=(0,Ue.Z)(mt,2),Ve=et[0],gt=et[1];return xt.useEffect(function(){var ft=ge(ve||[],He||[],Le);(ft==null?void 0:ft.index)!==void 0&&(xe==null||xe(ft.index),gt(He[ft.index])),$e(He)},[He]),[Ve]}var we=ye(16089),Fe=(typeof navigator=="undefined"?"undefined":(0,Oe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Be=Fe,Ie=function(He,Le,xe,Ne){var De=(0,xt.useRef)(!1),ve=(0,xt.useRef)(null);function $e(){clearTimeout(ve.current),De.current=!0,ve.current=setTimeout(function(){De.current=!1},50)}var mt=(0,xt.useRef)({top:He,bottom:Le,left:xe,right:Ne});return mt.current.top=He,mt.current.bottom=Le,mt.current.left=xe,mt.current.right=Ne,function(et,Ve){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ft=et?Ve<0&&mt.current.left||Ve>0&&mt.current.right:Ve<0&&mt.current.top||Ve>0&&mt.current.bottom;return gt&&ft?(clearTimeout(ve.current),De.current=!1):(!ft||De.current)&&$e(),!De.current&&ft}};function We(He,Le,xe,Ne,De,ve,$e){var mt=(0,xt.useRef)(0),et=(0,xt.useRef)(null),Ve=(0,xt.useRef)(null),gt=(0,xt.useRef)(!1),ft=Ie(Le,xe,Ne,De);function rt(Tn,Et){if(we.Z.cancel(et.current),!ft(!1,Et)){var cn=Tn;if(!cn._virtualHandled)cn._virtualHandled=!0;else return;mt.current+=Et,Ve.current=Et,Be||cn.preventDefault(),et.current=(0,we.Z)(function(){var On=gt.current?10:1;$e(mt.current*On,!1),mt.current=0})}}function Mt(Tn,Et){$e(Et,!0),Be||Tn.preventDefault()}var pn=(0,xt.useRef)(null),dn=(0,xt.useRef)(null);function Jt(Tn){if(He){we.Z.cancel(dn.current),dn.current=(0,we.Z)(function(){pn.current=null},2);var Et=Tn.deltaX,cn=Tn.deltaY,On=Tn.shiftKey,Ct=Et,_n=cn;(pn.current==="sx"||!pn.current&&On&&cn&&!Et)&&(Ct=cn,_n=0,pn.current="sx");var ui=Math.abs(Ct),Ci=Math.abs(_n);pn.current===null&&(pn.current=ve&&ui>Ci?"x":"y"),pn.current==="y"?rt(Tn,_n):Mt(Tn,Ct)}}function Rn(Tn){He&&(gt.current=Tn.detail===Ve.current)}return[Jt,Rn]}function nt(He,Le,xe,Ne){var De=xt.useMemo(function(){return[new Map,[]]},[He,xe.id,Ne]),ve=(0,Ue.Z)(De,2),$e=ve[0],mt=ve[1],et=function(gt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt,rt=$e.get(gt),Mt=$e.get(ft);if(rt===void 0||Mt===void 0)for(var pn=He.length,dn=mt.length;dn<pn;dn+=1){var Jt,Rn=He[dn],Tn=Le(Rn);$e.set(Tn,dn);var Et=(Jt=xe.get(Tn))!==null&&Jt!==void 0?Jt:Ne;if(mt[dn]=(mt[dn-1]||0)+Et,Tn===gt&&(rt=dn),Tn===ft&&(Mt=dn),rt!==void 0&&Mt!==void 0)break}return{top:mt[rt-1]||0,bottom:mt[Mt]}};return et}var Xe=ye(52884),dt=ye(95727),Ze=function(){function He(){(0,Xe.Z)(this,He),(0,At.Z)(this,"maps",void 0),(0,At.Z)(this,"id",0),(0,At.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,dt.Z)(He,[{key:"set",value:function(xe,Ne){this.maps[xe]=Ne,this.id+=1,this.diffKeys.add(xe)}},{key:"get",value:function(xe){return this.maps[xe]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),He}(),Zt=Ze;function yt(He){var Le=parseFloat(He);return isNaN(Le)?0:Le}function an(He,Le,xe){var Ne=xt.useState(0),De=(0,Ue.Z)(Ne,2),ve=De[0],$e=De[1],mt=(0,xt.useRef)(new Map),et=(0,xt.useRef)(new Zt),Ve=(0,xt.useRef)(0);function gt(){Ve.current+=1}function ft(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;gt();var pn=function(){var Rn=!1;mt.current.forEach(function(Tn,Et){if(Tn&&Tn.offsetParent){var cn=Tn.offsetHeight,On=getComputedStyle(Tn),Ct=On.marginTop,_n=On.marginBottom,ui=yt(Ct),Ci=yt(_n),ci=cn+ui+Ci;et.current.get(Et)!==ci&&(et.current.set(Et,ci),Rn=!0)}}),Rn&&$e(function(Tn){return Tn+1})};if(Mt)pn();else{Ve.current+=1;var dn=Ve.current;Promise.resolve().then(function(){dn===Ve.current&&pn()})}}function rt(Mt,pn){var dn=He(Mt),Jt=mt.current.get(dn);pn?(mt.current.set(dn,pn),ft()):mt.current.delete(dn),!Jt!=!pn&&(pn?Le==null||Le(Mt):xe==null||xe(Mt))}return(0,xt.useEffect)(function(){return gt},[]),[rt,ft,et.current,ve]}var Gt=14/15;function Vt(He,Le,xe){var Ne=(0,xt.useRef)(!1),De=(0,xt.useRef)(0),ve=(0,xt.useRef)(0),$e=(0,xt.useRef)(null),mt=(0,xt.useRef)(null),et,Ve=function(Mt){if(Ne.current){var pn=Math.ceil(Mt.touches[0].pageX),dn=Math.ceil(Mt.touches[0].pageY),Jt=De.current-pn,Rn=ve.current-dn,Tn=Math.abs(Jt)>Math.abs(Rn);Tn?De.current=pn:ve.current=dn;var Et=xe(Tn,Tn?Jt:Rn,!1,Mt);Et&&Mt.preventDefault(),clearInterval(mt.current),Et&&(mt.current=setInterval(function(){Tn?Jt*=Gt:Rn*=Gt;var cn=Math.floor(Tn?Jt:Rn);(!xe(Tn,cn,!0)||Math.abs(cn)<=.1)&&clearInterval(mt.current)},16))}},gt=function(){Ne.current=!1,et()},ft=function(Mt){et(),Mt.touches.length===1&&!Ne.current&&(Ne.current=!0,De.current=Math.ceil(Mt.touches[0].pageX),ve.current=Math.ceil(Mt.touches[0].pageY),$e.current=Mt.target,$e.current.addEventListener("touchmove",Ve,{passive:!1}),$e.current.addEventListener("touchend",gt,{passive:!0}))};et=function(){$e.current&&($e.current.removeEventListener("touchmove",Ve),$e.current.removeEventListener("touchend",gt))},(0,Rt.Z)(function(){return He&&Le.current.addEventListener("touchstart",ft,{passive:!0}),function(){var rt;(rt=Le.current)===null||rt===void 0||rt.removeEventListener("touchstart",ft),et(),clearInterval(mt.current)}},[He])}function hn(He){return Math.floor(Math.pow(He,.5))}function yn(He,Le){var xe="touches"in He?He.touches[0]:He;return xe[Le?"pageX":"pageY"]-window[Le?"scrollX":"scrollY"]}function vt(He,Le,xe){xt.useEffect(function(){var Ne=Le.current;if(He&&Ne){var De=!1,ve,$e,mt=function(){we.Z.cancel(ve)},et=function rt(){mt(),ve=(0,we.Z)(function(){xe($e),rt()})},Ve=function(Mt){if(!Mt.target.draggable){var pn=Mt;pn._virtualHandled||(pn._virtualHandled=!0,De=!0)}},gt=function(){De=!1,mt()},ft=function(Mt){if(De){var pn=yn(Mt,!1),dn=Ne.getBoundingClientRect(),Jt=dn.top,Rn=dn.bottom;if(pn<=Jt){var Tn=Jt-pn;$e=-hn(Tn),et()}else if(pn>=Rn){var Et=pn-Rn;$e=hn(Et),et()}else mt()}};return Ne.addEventListener("mousedown",Ve),Ne.ownerDocument.addEventListener("mouseup",gt),Ne.ownerDocument.addEventListener("mousemove",ft),function(){Ne.removeEventListener("mousedown",Ve),Ne.ownerDocument.removeEventListener("mouseup",gt),Ne.ownerDocument.removeEventListener("mousemove",ft),mt()}}},[He])}var je=10;function wt(He,Le,xe,Ne,De,ve,$e,mt){var et=xt.useRef(),Ve=xt.useState(null),gt=(0,Ue.Z)(Ve,2),ft=gt[0],rt=gt[1];return(0,Rt.Z)(function(){if(ft&&ft.times<je){if(!He.current){rt(function(Bn){return(0,tt.Z)({},Bn)});return}ve();var Mt=ft.targetAlign,pn=ft.originAlign,dn=ft.index,Jt=ft.offset,Rn=He.current.clientHeight,Tn=!1,Et=Mt,cn=null;if(Rn){for(var On=Mt||pn,Ct=0,_n=0,ui=0,Ci=Math.min(Le.length-1,dn),ci=0;ci<=Ci;ci+=1){var Hi=De(Le[ci]);_n=Ct;var qi=xe.get(Hi);ui=_n+(qi===void 0?Ne:qi),Ct=ui}for(var Xi=On==="top"?Jt:Rn-Jt,eo=Ci;eo>=0;eo-=1){var Oo=De(Le[eo]),vo=xe.get(Oo);if(vo===void 0){Tn=!0;break}if(Xi-=vo,Xi<=0)break}switch(On){case"top":cn=_n-Jt;break;case"bottom":cn=ui-Rn+Jt;break;default:{var Ri=He.current.scrollTop,Co=Ri+Rn;_n<Ri?Et="top":ui>Co&&(Et="bottom")}}cn!==null&&$e(cn),cn!==ft.lastTop&&(Tn=!0)}Tn&&rt((0,tt.Z)((0,tt.Z)({},ft),{},{times:ft.times+1,targetAlign:Et,lastTop:cn}))}},[ft,He.current]),function(Mt){if(Mt==null){mt();return}if(we.Z.cancel(et.current),typeof Mt=="number")$e(Mt);else if(Mt&&(0,Oe.Z)(Mt)==="object"){var pn,dn=Mt.align;"index"in Mt?pn=Mt.index:pn=Le.findIndex(function(Tn){return De(Tn)===Mt.key});var Jt=Mt.offset,Rn=Jt===void 0?0:Jt;rt({times:0,index:pn,offset:Rn,originAlign:dn})}}}var tn=xt.forwardRef(function(He,Le){var xe=He.prefixCls,Ne=He.rtl,De=He.scrollOffset,ve=He.scrollRange,$e=He.onStartMove,mt=He.onStopMove,et=He.onScroll,Ve=He.horizontal,gt=He.spinSize,ft=He.containerSize,rt=He.style,Mt=He.thumbStyle,pn=He.showScrollBar,dn=xt.useState(!1),Jt=(0,Ue.Z)(dn,2),Rn=Jt[0],Tn=Jt[1],Et=xt.useState(null),cn=(0,Ue.Z)(Et,2),On=cn[0],Ct=cn[1],_n=xt.useState(null),ui=(0,Ue.Z)(_n,2),Ci=ui[0],ci=ui[1],Hi=!Ne,qi=xt.useRef(),Xi=xt.useRef(),eo=xt.useState(pn),Oo=(0,Ue.Z)(eo,2),vo=Oo[0],Ri=Oo[1],Co=xt.useRef(),Bn=function(){pn===!0||pn===!1||(clearTimeout(Co.current),Ri(!0),Co.current=setTimeout(function(){Ri(!1)},3e3))},be=ve-ft||0,Mi=ft-gt||0,Ei=xt.useMemo(function(){if(De===0||be===0)return 0;var Re=De/be;return Re*Mi},[De,be,Mi]),Dt=function(Tt){Tt.stopPropagation(),Tt.preventDefault()},En=xt.useRef({top:Ei,dragging:Rn,pageY:On,startTop:Ci});En.current={top:Ei,dragging:Rn,pageY:On,startTop:Ci};var Fn=function(Tt){Tn(!0),Ct(yn(Tt,Ve)),ci(En.current.top),$e(),Tt.stopPropagation(),Tt.preventDefault()};xt.useEffect(function(){var Re=function(Ye){Ye.preventDefault()},Tt=qi.current,_t=Xi.current;return Tt.addEventListener("touchstart",Re,{passive:!1}),_t.addEventListener("touchstart",Fn,{passive:!1}),function(){Tt.removeEventListener("touchstart",Re),_t.removeEventListener("touchstart",Fn)}},[]);var Jn=xt.useRef();Jn.current=be;var wn=xt.useRef();wn.current=Mi,xt.useEffect(function(){if(Rn){var Re,Tt=function(Ye){var Wt=En.current,Ut=Wt.dragging,fn=Wt.pageY,Dn=Wt.startTop;we.Z.cancel(Re);var at=qi.current.getBoundingClientRect(),ln=ft/(Ve?at.width:at.height);if(Ut){var Hn=(yn(Ye,Ve)-fn)*ln,ii=Dn;!Hi&&Ve?ii-=Hn:ii+=Hn;var jt=Jn.current,sn=wn.current,It=sn?ii/sn:0,on=Math.ceil(It*jt);on=Math.max(on,0),on=Math.min(on,jt),Re=(0,we.Z)(function(){et(on,Ve)})}},_t=function(){Tn(!1),mt()};return window.addEventListener("mousemove",Tt,{passive:!0}),window.addEventListener("touchmove",Tt,{passive:!0}),window.addEventListener("mouseup",_t,{passive:!0}),window.addEventListener("touchend",_t,{passive:!0}),function(){window.removeEventListener("mousemove",Tt),window.removeEventListener("touchmove",Tt),window.removeEventListener("mouseup",_t),window.removeEventListener("touchend",_t),we.Z.cancel(Re)}}},[Rn]),xt.useEffect(function(){return Bn(),function(){clearTimeout(Co.current)}},[De]),xt.useImperativeHandle(Le,function(){return{delayHidden:Bn}});var Nn="".concat(xe,"-scrollbar"),ct={position:"absolute",visibility:vo?null:"hidden"},Pt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ve?(ct.height=8,ct.left=0,ct.right=0,ct.bottom=0,Pt.height="100%",Pt.width=gt,Hi?Pt.left=Ei:Pt.right=Ei):(ct.width=8,ct.top=0,ct.bottom=0,Hi?ct.right=0:ct.left=0,Pt.width="100%",Pt.height=gt,Pt.top=Ei),xt.createElement("div",{ref:qi,className:Ot()(Nn,(0,At.Z)((0,At.Z)((0,At.Z)({},"".concat(Nn,"-horizontal"),Ve),"".concat(Nn,"-vertical"),!Ve),"".concat(Nn,"-visible"),vo)),style:(0,tt.Z)((0,tt.Z)({},ct),rt),onMouseDown:Dt,onMouseMove:Bn},xt.createElement("div",{ref:Xi,className:Ot()("".concat(Nn,"-thumb"),(0,At.Z)({},"".concat(Nn,"-thumb-moving"),Rn)),style:(0,tt.Z)((0,tt.Z)({},Pt),Mt),onMouseDown:Fn}))}),bn=tn,Ft=20;function Xt(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xe=He/Le*He;return isNaN(xe)&&(xe=0),xe=Math.max(xe,Ft),Math.floor(xe)}var Cn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Qn=[],gn={overflowY:"auto",overflowAnchor:"none"};function Gn(He,Le){var xe=He.prefixCls,Ne=xe===void 0?"rc-virtual-list":xe,De=He.className,ve=He.height,$e=He.itemHeight,mt=He.fullHeight,et=mt===void 0?!0:mt,Ve=He.style,gt=He.data,ft=He.children,rt=He.itemKey,Mt=He.virtual,pn=He.direction,dn=He.scrollWidth,Jt=He.component,Rn=Jt===void 0?"div":Jt,Tn=He.onScroll,Et=He.onVirtualScroll,cn=He.onVisibleChange,On=He.innerProps,Ct=He.extraRender,_n=He.styles,ui=He.showScrollBar,Ci=ui===void 0?"optional":ui,ci=(0,Je.Z)(He,Cn),Hi=xt.useCallback(function($i){return typeof rt=="function"?rt($i):$i==null?void 0:$i[rt]},[rt]),qi=an(Hi,null,null),Xi=(0,Ue.Z)(qi,4),eo=Xi[0],Oo=Xi[1],vo=Xi[2],Ri=Xi[3],Co=!!(Mt!==!1&&ve&&$e),Bn=xt.useMemo(function(){return Object.values(vo.maps).reduce(function($i,ao){return $i+ao},0)},[vo.id,vo.maps]),be=Co&>&&(Math.max($e*gt.length,Bn)>ve||!!dn),Mi=pn==="rtl",Ei=Ot()(Ne,(0,At.Z)({},"".concat(Ne,"-rtl"),Mi),De),Dt=gt||Qn,En=(0,xt.useRef)(),Fn=(0,xt.useRef)(),Jn=(0,xt.useRef)(),wn=(0,xt.useState)(0),Nn=(0,Ue.Z)(wn,2),ct=Nn[0],Pt=Nn[1],Re=(0,xt.useState)(0),Tt=(0,Ue.Z)(Re,2),_t=Tt[0],ht=Tt[1],Ye=(0,xt.useState)(!1),Wt=(0,Ue.Z)(Ye,2),Ut=Wt[0],fn=Wt[1],Dn=function(){fn(!0)},at=function(){fn(!1)},ln={getKey:Hi};function Hn($i){Pt(function(ao){var jo;typeof $i=="function"?jo=$i(ao):jo=$i;var Lo=Bi(jo);return En.current.scrollTop=Lo,Lo})}var ii=(0,xt.useRef)({start:0,end:Dt.length}),jt=(0,xt.useRef)(),sn=me(Dt,Hi),It=(0,Ue.Z)(sn,1),on=It[0];jt.current=on;var qt=xt.useMemo(function(){if(!Co)return{scrollHeight:void 0,start:0,end:Dt.length-1,offset:void 0};if(!be){var $i;return{scrollHeight:(($i=Fn.current)===null||$i===void 0?void 0:$i.offsetHeight)||0,start:0,end:Dt.length-1,offset:void 0}}for(var ao=0,jo,Lo,dr,Pr=Dt.length,Yi=0;Yi<Pr;Yi+=1){var Qi=Dt[Yi],ti=Hi(Qi),io=vo.get(ti),ir=ao+(io===void 0?$e:io);ir>=ct&&jo===void 0&&(jo=Yi,Lo=ao),ir>ct+ve&&dr===void 0&&(dr=Yi),ao=ir}return jo===void 0&&(jo=0,Lo=0,dr=Math.ceil(ve/$e)),dr===void 0&&(dr=Dt.length-1),dr=Math.min(dr+1,Dt.length-1),{scrollHeight:ao,start:jo,end:dr,offset:Lo}},[be,Co,ct,Dt,Ri,ve]),en=qt.scrollHeight,xn=qt.start,Pn=qt.end,An=qt.offset;ii.current.start=xn,ii.current.end=Pn,xt.useLayoutEffect(function(){var $i=vo.getRecord();if($i.size===1){var ao=Array.from($i)[0],jo=Dt[xn];if(jo){var Lo=Hi(jo);if(Lo===ao){var dr=vo.get(ao),Pr=dr-$e;Hn(function(Yi){return Yi+Pr})}}}vo.resetRecord()},[en]);var Wn=xt.useState({width:0,height:ve}),pi=(0,Ue.Z)(Wn,2),Yt=pi[0],bi=pi[1],Di=function(ao){bi({width:ao.offsetWidth,height:ao.offsetHeight})},ki=(0,xt.useRef)(),nn=(0,xt.useRef)(),Xn=xt.useMemo(function(){return Xt(Yt.width,dn)},[Yt.width,dn]),fi=xt.useMemo(function(){return Xt(Yt.height,en)},[Yt.height,en]),wi=en-ve,gi=(0,xt.useRef)(wi);gi.current=wi;function Bi($i){var ao=$i;return Number.isNaN(gi.current)||(ao=Math.min(ao,gi.current)),ao=Math.max(ao,0),ao}var Ki=ct<=0,ji=ct>=wi,Pi=_t<=0,Vi=_t>=dn,Ln=Ie(Ki,ji,Pi,Vi),So=function(){return{x:Mi?-_t:_t,y:ct}},Mn=(0,xt.useRef)(So()),ro=(0,ot.useEvent)(function($i){if(Et){var ao=(0,tt.Z)((0,tt.Z)({},So()),$i);(Mn.current.x!==ao.x||Mn.current.y!==ao.y)&&(Et(ao),Mn.current=ao)}});function No($i,ao){var jo=$i;ao?((0,zt.flushSync)(function(){ht(jo)}),ro()):Hn(jo)}function _i($i){var ao=$i.currentTarget.scrollTop;ao!==ct&&Hn(ao),Tn==null||Tn($i),ro()}var Go=function(ao){var jo=ao,Lo=dn?dn-Yt.width:0;return jo=Math.max(jo,0),jo=Math.min(jo,Lo),jo},ko=(0,ot.useEvent)(function($i,ao){ao?((0,zt.flushSync)(function(){ht(function(jo){var Lo=jo+(Mi?-$i:$i);return Go(Lo)})}),ro()):Hn(function(jo){var Lo=jo+$i;return Lo})}),Ii=We(Co,Ki,ji,Pi,Vi,!!dn,ko),Ai=(0,Ue.Z)(Ii,2),Zi=Ai[0],yo=Ai[1];Vt(Co,En,function($i,ao,jo,Lo){var dr=Lo;return Ln($i,ao,jo)?!1:!dr||!dr._virtualHandled?(dr&&(dr._virtualHandled=!0),Zi({preventDefault:function(){},deltaX:$i?ao:0,deltaY:$i?0:ao}),!0):!1}),vt(be,En,function($i){Hn(function(ao){return ao+$i})}),(0,Rt.Z)(function(){function $i(jo){var Lo=Ki&&jo.detail<0,dr=ji&&jo.detail>0;Co&&!Lo&&!dr&&jo.preventDefault()}var ao=En.current;return ao.addEventListener("wheel",Zi,{passive:!1}),ao.addEventListener("DOMMouseScroll",yo,{passive:!0}),ao.addEventListener("MozMousePixelScroll",$i,{passive:!1}),function(){ao.removeEventListener("wheel",Zi),ao.removeEventListener("DOMMouseScroll",yo),ao.removeEventListener("MozMousePixelScroll",$i)}},[Co,Ki,ji]),(0,Rt.Z)(function(){if(dn){var $i=Go(_t);ht($i),ro({x:$i})}},[Yt.width,dn]);var di=function(){var ao,jo;(ao=ki.current)===null||ao===void 0||ao.delayHidden(),(jo=nn.current)===null||jo===void 0||jo.delayHidden()},Ke=wt(En,Dt,vo,$e,Hi,function(){return Oo(!0)},Hn,di);xt.useImperativeHandle(Le,function(){return{nativeElement:Jn.current,getScrollInfo:So,scrollTo:function(ao){function jo(Lo){return Lo&&(0,Oe.Z)(Lo)==="object"&&("left"in Lo||"top"in Lo)}jo(ao)?(ao.left!==void 0&&ht(Go(ao.left)),Ke(ao.top)):Ke(ao)}}}),(0,Rt.Z)(function(){if(cn){var $i=Dt.slice(xn,Pn+1);cn($i,Dt)}},[xn,Pn,Dt]);var Do=nt(Dt,Hi,vo,$e),nr=Ct==null?void 0:Ct({start:xn,end:Pn,virtual:be,offsetX:_t,offsetY:An,rtl:Mi,getSize:Do}),xo=he(Dt,xn,Pn,dn,_t,eo,ft,ln),hr=null;ve&&(hr=(0,tt.Z)((0,At.Z)({},et?"height":"maxHeight",ve),gn),Co&&(hr.overflowY="hidden",dn&&(hr.overflowX="hidden"),Ut&&(hr.pointerEvents="none")));var Qo={};return Mi&&(Qo.dir="rtl"),xt.createElement("div",(0,Ce.Z)({ref:Jn,style:(0,tt.Z)((0,tt.Z)({},Ve),{},{position:"relative"}),className:Ei},Qo,ci),xt.createElement(Lt.Z,{onResize:Di},xt.createElement(Rn,{className:"".concat(Ne,"-holder"),style:hr,ref:En,onScroll:_i,onMouseEnter:di},xt.createElement(te,{prefixCls:Ne,height:en,offsetX:_t,offsetY:An,scrollWidth:dn,onInnerResize:Oo,ref:Fn,innerProps:On,rtl:Mi,extra:nr},xo))),be&&en>ve&&xt.createElement(bn,{ref:ki,prefixCls:Ne,scrollOffset:ct,scrollRange:en,rtl:Mi,onScroll:No,onStartMove:Dn,onStopMove:at,spinSize:fi,containerSize:Yt.height,style:_n==null?void 0:_n.verticalScrollBar,thumbStyle:_n==null?void 0:_n.verticalScrollBarThumb,showScrollBar:Ci}),be&&dn>Yt.width&&xt.createElement(bn,{ref:nn,prefixCls:Ne,scrollOffset:_t,scrollRange:dn,rtl:Mi,onScroll:No,onStartMove:Dn,onStopMove:at,spinSize:Xn,containerSize:Yt.width,horizontal:!0,style:_n==null?void 0:_n.horizontalScrollBar,thumbStyle:_n==null?void 0:_n.horizontalScrollBarThumb,showScrollBar:Ci}))}var bt=xt.forwardRef(Gn);bt.displayName="List";var zn=bt,ai=zn},32637:function(Kn,kn,ye){"use strict";Kn.exports=ye.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Kn){"use strict";Kn.exports="data:image/png;base64,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"},96908:function(Kn){"use strict";Kn.exports="data:image/png;base64,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"},57177:function(Kn){"use strict";Kn.exports="data:image/png;base64,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"},81378:function(Kn){"use strict";Kn.exports="data:image/png;base64,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"},16722:function(Kn,kn,ye){"use strict";ye.d(kn,{Z:function(){return Ot}});const Ce=Lt=>typeof Lt=="object"&&Lt!=null&&Lt.nodeType===1,Oe=(Lt,ot)=>(!ot||Lt!=="hidden")&&Lt!=="visible"&&Lt!=="clip",tt=(Lt,ot)=>{if(Lt.clientHeight<Lt.scrollHeight||Lt.clientWidth<Lt.scrollWidth){const Rt=getComputedStyle(Lt,null);return Oe(Rt.overflowY,ot)||Oe(Rt.overflowX,ot)||(xt=>{const zt=(Ae=>{if(!Ae.ownerDocument||!Ae.ownerDocument.defaultView)return null;try{return Ae.ownerDocument.defaultView.frameElement}catch(te){return null}})(xt);return!!zt&&(zt.clientHeight<xt.scrollHeight||zt.clientWidth<xt.scrollWidth)})(Lt)}return!1},At=(Lt,ot,Rt,xt,zt,Ae,te,ne)=>Ae<Lt&&te>ot||Ae>Lt&&te<ot?0:Ae<=Lt&&ne<=Rt||te>=ot&&ne>=Rt?Ae-Lt-xt:te>ot&&ne<Rt||Ae<Lt&&ne>Rt?te-ot+zt:0,Ue=Lt=>{const ot=Lt.parentElement;return ot==null?Lt.getRootNode().host||null:ot},Je=(Lt,ot)=>{var Rt,xt,zt,Ae;if(typeof document=="undefined")return[];const{scrollMode:te,block:ne,inline:he,boundary:se,skipOverflowHiddenElements:ge}=ot,me=typeof se=="function"?se:bn=>bn!==se;if(!Ce(Lt))throw new TypeError("Invalid target");const we=document.scrollingElement||document.documentElement,Fe=[];let Be=Lt;for(;Ce(Be)&&me(Be);){if(Be=Ue(Be),Be===we){Fe.push(Be);break}Be!=null&&Be===document.body&&tt(Be)&&!tt(document.documentElement)||Be!=null&&tt(Be,ge)&&Fe.push(Be)}const Ie=(xt=(Rt=window.visualViewport)==null?void 0:Rt.width)!=null?xt:innerWidth,We=(Ae=(zt=window.visualViewport)==null?void 0:zt.height)!=null?Ae:innerHeight,{scrollX:nt,scrollY:Xe}=window,{height:dt,width:Ze,top:Zt,right:yt,bottom:an,left:Gt}=Lt.getBoundingClientRect(),{top:Vt,right:hn,bottom:yn,left:vt}=(bn=>{const Ft=window.getComputedStyle(bn);return{top:parseFloat(Ft.scrollMarginTop)||0,right:parseFloat(Ft.scrollMarginRight)||0,bottom:parseFloat(Ft.scrollMarginBottom)||0,left:parseFloat(Ft.scrollMarginLeft)||0}})(Lt);let je=ne==="start"||ne==="nearest"?Zt-Vt:ne==="end"?an+yn:Zt+dt/2-Vt+yn,wt=he==="center"?Gt+Ze/2-vt+hn:he==="end"?yt+hn:Gt-vt;const tn=[];for(let bn=0;bn<Fe.length;bn++){const Ft=Fe[bn],{height:Xt,width:Cn,top:Qn,right:gn,bottom:Gn,left:bt}=Ft.getBoundingClientRect();if(te==="if-needed"&&Zt>=0&&Gt>=0&&an<=We&&yt<=Ie&&(Ft===we&&!tt(Ft)||Zt>=Qn&&an<=Gn&&Gt>=bt&&yt<=gn))return tn;const zn=getComputedStyle(Ft),ai=parseInt(zn.borderLeftWidth,10),He=parseInt(zn.borderTopWidth,10),Le=parseInt(zn.borderRightWidth,10),xe=parseInt(zn.borderBottomWidth,10);let Ne=0,De=0;const ve="offsetWidth"in Ft?Ft.offsetWidth-Ft.clientWidth-ai-Le:0,$e="offsetHeight"in Ft?Ft.offsetHeight-Ft.clientHeight-He-xe:0,mt="offsetWidth"in Ft?Ft.offsetWidth===0?0:Cn/Ft.offsetWidth:0,et="offsetHeight"in Ft?Ft.offsetHeight===0?0:Xt/Ft.offsetHeight:0;if(we===Ft)Ne=ne==="start"?je:ne==="end"?je-We:ne==="nearest"?At(Xe,Xe+We,We,He,xe,Xe+je,Xe+je+dt,dt):je-We/2,De=he==="start"?wt:he==="center"?wt-Ie/2:he==="end"?wt-Ie:At(nt,nt+Ie,Ie,ai,Le,nt+wt,nt+wt+Ze,Ze),Ne=Math.max(0,Ne+Xe),De=Math.max(0,De+nt);else{Ne=ne==="start"?je-Qn-He:ne==="end"?je-Gn+xe+$e:ne==="nearest"?At(Qn,Gn,Xt,He,xe+$e,je,je+dt,dt):je-(Qn+Xt/2)+$e/2,De=he==="start"?wt-bt-ai:he==="center"?wt-(bt+Cn/2)+ve/2:he==="end"?wt-gn+Le+ve:At(bt,gn,Cn,ai,Le+ve,wt,wt+Ze,Ze);const{scrollLeft:Ve,scrollTop:gt}=Ft;Ne=et===0?0:Math.max(0,Math.min(gt+Ne/et,Ft.scrollHeight-Xt/et+$e)),De=mt===0?0:Math.max(0,Math.min(Ve+De/mt,Ft.scrollWidth-Cn/mt+ve)),je+=gt-Ne,wt+=Ve-De}tn.push({el:Ft,top:Ne,left:De})}return tn},ke=Lt=>Lt===!1?{block:"end",inline:"nearest"}:(ot=>ot===Object(ot)&&Object.keys(ot).length!==0)(Lt)?Lt:{block:"start",inline:"nearest"};function Ot(Lt,ot){if(!Lt.isConnected||!(zt=>{let Ae=zt;for(;Ae&&Ae.parentNode;){if(Ae.parentNode===document)return!0;Ae=Ae.parentNode instanceof ShadowRoot?Ae.parentNode.host:Ae.parentNode}return!1})(Lt))return;const Rt=(zt=>{const Ae=window.getComputedStyle(zt);return{top:parseFloat(Ae.scrollMarginTop)||0,right:parseFloat(Ae.scrollMarginRight)||0,bottom:parseFloat(Ae.scrollMarginBottom)||0,left:parseFloat(Ae.scrollMarginLeft)||0}})(Lt);if((zt=>typeof zt=="object"&&typeof zt.behavior=="function")(ot))return ot.behavior(Je(Lt,ot));const xt=typeof ot=="boolean"||ot==null?void 0:ot.behavior;for(const{el:zt,top:Ae,left:te}of Je(Lt,ke(ot))){const ne=Ae-Rt.top+Rt.bottom,he=te-Rt.left+Rt.right;zt.scroll({top:ne,left:he,behavior:xt})}}}}]);
|