|
|
(self.webpackChunk=self.webpackChunk||[]).push([[9271],{35323:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},19155:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},10402:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},72295:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},93343:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},24566:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},80205:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},61441:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},30631:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},43971:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},58358:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},44757:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},16537:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},77042:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},5527:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},86902:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},53878:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},21970:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(oe,ve){return It.createElement(Vt.Z,(0,Ct.Z)({},oe,{ref:ve,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft},79906:function(){"use strict"},93938:function(Dn,An){"use strict";An.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},49394:function(Dn,An){"use strict";An.Z={modal:"modal___A9Ovz",colorBlue:"colorBlue___XSmR5",formWrap:"formWrap___wRvaA",flexRow:"flexRow___C40dc",flexColumn:"flexColumn___LkZfj",example:"example___bz7Hw",exampleImg:"exampleImg___gNkC_",colorOrange:"colorOrange___Ka6zf",uploader:"uploader___plQRr",uploadImg:"uploadImg___cjOpL",imageTip:"imageTip___p1_lZ",uploadTipIcon:"uploadTipIcon___SpsS2",uploadTip:"uploadTip___e9JlL",color05101a:"color05101a___CDEUv",viewLargerImg:"viewLargerImg___IclRX",footerWrap:"footerWrap___beWC6",note:"note___CXi9y",schoolHintWrap:"schoolHintWrap___Ma6ly",colorCDCDCD:"colorCDCDCD___D0UWo",color0152d9:"color0152d9___hF3Bb"}},37404:function(){"use strict";function Dn(Tt,et,nt,ht){nt===void 0&&(nt=0),ht===void 0&&(ht=1/0),this._name=Tt,this._defaultValue=et,this._minimum=nt,this._maximum=ht}Object.defineProperty(Dn.prototype,"name",{get:function(){return this._name},set:function(Tt){if(typeof Tt!="string"||Tt==="")throw new Error("Shape name must be a valid string.");this._name=Tt}}),Object.defineProperty(Dn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Tt){if(typeof Tt!="number"||isNaN(Tt))throw new Error("The default value must be a real number, not: "+Tt);this._defaultValue=Tt}}),Object.defineProperty(Dn.prototype,"minimum",{get:function(){return this._minimum},set:function(Tt){if(typeof Tt!="number"||isNaN(Tt))throw new Error("Minimum must be a real number, not: "+Tt);this._minimum=Tt}}),Object.defineProperty(Dn.prototype,"maximum",{get:function(){return this._maximum},set:function(Tt){if(typeof Tt!="number"||isNaN(Tt))throw new Error("Maximum must be a real number, not: "+Tt);this._maximum=Tt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Tt,et){var nt=go.Shape._FigureParameters[Tt];return nt?nt[et]:null},go.Shape.setFigureParameter=function(Tt,et,nt){if(!(nt instanceof Dn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+nt);if(nt.defaultValue<nt.minimum||nt.defaultValue>nt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+nt.defaultValue);var ht=go.Shape._FigureParameters[Tt];ht||(ht=[],go.Shape._FigureParameters[Tt]=ht),ht[et]=nt};var An=[];function St(Tt,et){var nt=An.pop();return nt===void 0?new go.Point(Tt,et):(nt.x=Tt,nt.y=et,nt)}function Ct(){var Tt=An.pop();return Tt===void 0?new go.Point:Tt}function It(Tt){An.push(Tt)}function ee(Tt,et,nt,ht,st,gt,vt,wt,Bt){Bt||(Bt=new go.Point);var kt=Tt-nt,Ot=st-vt,jt=NaN,Xt=NaN;if(kt===0)if(Ot===0)Tt===nt&&(jt=Tt,Xt=et);else{var Ut=(gt-wt)/Ot,de=gt-Ut*st;jt=Tt,Xt=Ut*jt+de}else if(Ot===0){var Gt=(et-ht)/kt,Ve=et-Gt*Tt;jt=st,Xt=Gt*jt+Ve}else{var Gt=(et-ht)/kt,Ut=(gt-wt)/Ot,Ve=et-Gt*Tt,de=gt-Ut*st;jt=(de-Ve)/(Gt-Ut),Xt=Gt*jt+Ve}return Bt.x=jt,Bt.y=Xt,Bt}function Ne(Tt,et,nt,ht,st,gt,vt,wt,Bt,kt,Ot,jt,Xt,Ut){var de=1-Bt,Gt=Bt,Ve=Tt*de+nt*Gt,me=et*de+ht*Gt,sn=nt*de+st*Gt,qe=ht*de+gt*Gt,Ye=st*de+vt*Gt,je=gt*de+wt*Gt,hn=Ve*de+sn*Gt,ge=me*de+qe*Gt,Ht=sn*de+Ye*Gt,Ce=qe*de+je*Gt,bn=hn*de+Ht*Gt,yn=ge*de+Ce*Gt;kt.x=Ve,kt.y=me,Ot.x=hn,Ot.y=ge,jt.x=bn,jt.y=yn,Xt.x=Ht,Xt.y=Ce,Ut.x=Ye,Ut.y=je}var Vt=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),Ft=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Dn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=5),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var st=ht*Ft,gt=new go.Geometry().add(new go.PathFigure(ht,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-ht,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-st,0,et,st)).add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)).add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,nt-st,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,ht,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,st,nt,0,nt-st)).add(new go.PathSegment(go.PathSegment.Line,0,ht)).add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,st,st,0).close()));return st>1&&(gt.spot1=new go.Spot(0,0,st,st),gt.spot2=new go.Spot(1,1,-st,-st)),gt}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,nt).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Tt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=nt/2,ht.endX=et,ht.endY=nt/2,ht}),go.Shape.defineFigureGenerator("LineV",function(Tt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et/2,ht.startY=0,ht.endX=et/2,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("XLine",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LineRight",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)))}),go.Shape.defineFigureGenerator("LineDown",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.25*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)))}),go.Shape.defineFigureGenerator("LineLeft",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)))}),go.Shape.defineFigureGenerator("LineUp",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.75*nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Tt,et,nt){var ht=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ht*et,(1-ht)*nt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt/2)).add(new go.PathSegment(go.PathSegment.Line,et,nt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,nt)))}),go.Shape.defineFigureGenerator("CircleLine",function(Tt,et,nt){var ht=et/2,st=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ht,ht,ht,ht).close()));return st.spot1=Vt,st.spot2=fe,st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Line1",function(Tt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=0,ht.startY=0,ht.endX=et,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Line2",function(Tt,et,nt){var ht=new go.Geometry(go.Geometry.Line);return ht.startX=et,ht.startY=0,ht.endX=0,ht.endY=nt,ht}),go.Shape.defineFigureGenerator("Curve1",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Ft*et,0,et,(1-Ft)*nt)))}),go.Shape.defineFigureGenerator("Curve2",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,nt,0,Ft*nt,(1-Ft)*et,nt)))}),go.Shape.defineFigureGenerator("Curve3",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,Ft*nt,Ft*et,nt)))}),go.Shape.defineFigureGenerator("Curve4",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,(1-Ft)*et,0,0,(1-Ft)*nt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Dn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=.1:ht<-1?ht=-1:ht>1&&(ht=1);var st=Math.abs(ht)*et;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Dn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=10:ht<-et?ht=-et:ht>et&&(ht=et);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.setFigureParameter("Trapezoid1",0,new Dn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=.2:ht<.5?ht=-.5:ht>.5&&(ht=.5);var st=Math.abs(ht)*et;if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Dn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=20:ht<-et?ht=-et/2:ht>et&&(ht=et/2);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())):gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}}),go.Shape.setFigureParameter("ManualOperation",0,new Dn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)?ht=10:ht<-et?ht=-et/2:ht>et&&(ht=et/2);var st=Math.abs(ht);if(ht===0){var gt=new go.Geometry(go.Geometry.Rectangle);return gt.startX=0,gt.startY=0,gt.endX=et,gt.endY=nt,gt}else{var gt=new go.Geometry;return ht>0?gt.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-st,nt)).add(new go.PathSegment(go.PathSegment.Line,st,nt).close())):gt.add(new go.PathFigure(st,0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close())),st<et/2&>.setSpots(st/et,0,(et-st)/et,1),gt}});var ze=[];function we(){var Tt=ze.pop();return Tt===void 0?[]:Tt}function oe(Tt){Tt.length=0,ze.push(Tt)}function ve(Tt){for(var et=we(),nt=.5,ht=.5,st=Math.PI*1.5,gt=0,vt=0;vt<Tt;vt++)gt=2*Math.PI/Tt*vt+st,et[vt]=new go.Point(ht+nt*Math.cos(gt),ht+nt*Math.sin(gt));return et.push(et[0]),et}function ye(Tt){var et=Re(Tt),nt=we();nt[0]=et[0];for(var ht=1,st=1;ht<et.length;ht+=2,st+=3)nt[st]=et[ht],nt[st+1]=et[ht],nt[st+2]=et[ht+1];return oe(et),nt}function Re(Tt){for(var et=ve(Tt),nt=we(),ht=Math.floor(et.length/2),st=et.length-1,gt=Tt%2===0?2:1,vt=0;vt<st;vt++){var wt=et[vt],Bt=et[vt+1],kt=et[(ht+vt-1)%st],Ot=et[(ht+vt+gt)%st];nt[vt*2]=wt,nt[vt*2+1]=ee(wt.x,wt.y,kt.x,kt.y,Bt.x,Bt.y,Ot.x,Ot.y,new go.Point)}return nt[nt.length]=nt[0],oe(et),nt}go.Shape.defineFigureGenerator("Pentagon",function(Tt,et,nt){var ht=ve(5),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<5;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.2,.22),st.spot2=new go.Spot(.8,.9),st}),go.Shape.defineFigureGenerator("Hexagon",function(Tt,et,nt){var ht=ve(6),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<6;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.07,.25),st.spot2=new go.Spot(.93,.75),st}),go.Shape.defineFigureGenerator("Heptagon",function(Tt,et,nt){var ht=ve(7),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<7;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.2,.15),st.spot2=new go.Spot(.8,.85),st}),go.Shape.defineFigureGenerator("Octagon",function(Tt,et,nt){var ht=ve(8),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<8;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.15,.15),st.spot2=new go.Spot(.85,.85),st}),go.Shape.defineFigureGenerator("Nonagon",function(Tt,et,nt){var ht=ve(9),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<9;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.17,.13),st.spot2=new go.Spot(.82,.82),st}),go.Shape.defineFigureGenerator("Decagon",function(Tt,et,nt){var ht=ve(10),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<10;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.16,.16),st.spot2=new go.Spot(.84,.84),st}),go.Shape.defineFigureGenerator("Dodecagon",function(Tt,et,nt){var ht=ve(12),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<12;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.16,.16),st.spot2=new go.Spot(.84,.84),st}),go.Shape.defineFigureGenerator("FivePointedStar",function(Tt,et,nt){var ht=Re(5),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<10;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.266,.333),st.spot2=new go.Spot(.733,.733),st}),go.Shape.defineFigureGenerator("SixPointedStar",function(Tt,et,nt){var ht=Re(6),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<12;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.17,.25),st.spot2=new go.Spot(.83,.75),st}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Tt,et,nt){var ht=Re(7),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<14;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.222,.277),st.spot2=new go.Spot(.777,.666),st}),go.Shape.defineFigureGenerator("EightPointedStar",function(Tt,et,nt){var ht=Re(8),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<16;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("NinePointedStar",function(Tt,et,nt){var ht=Re(9),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<18;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.222,.277),st.spot2=new go.Spot(.777,.666),st}),go.Shape.defineFigureGenerator("TenPointedStar",function(Tt,et,nt){var ht=Re(10),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<20;vt++)gt.add(new go.PathSegment(go.PathSegment.Line,ht[vt].x*et,ht[vt].y*nt));return gt.add(new go.PathSegment(go.PathSegment.Line,ht[0].x*et,ht[0].y*nt).close()),oe(ht),st.spot1=new go.Spot(.281,.261),st.spot2=new go.Spot(.723,.748),st}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Tt,et,nt){var ht=ye(5),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.277),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Tt,et,nt){var ht=ye(6),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.17,.222),st.spot2=new go.Spot(.833,.777),st}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Tt,et,nt){var ht=ye(7),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Tt,et,nt){var ht=ye(8),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Tt,et,nt){var ht=ye(9),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Tt,et,nt){var ht=ye(10),st=new go.Geometry,gt=new go.PathFigure(ht[0].x*et,ht[0].y*nt,!0);st.add(gt);for(var vt=1;vt<ht.length;vt+=3)gt.add(new go.PathSegment(go.PathSegment.Bezier,ht[vt+2].x*et,ht[vt+2].y*nt,ht[vt].x*et,ht[vt].y*nt,ht[vt+1].x*et,ht[vt+1].y*nt));return gt.segments.last().close(),oe(ht),st.spot1=new go.Spot(.222,.222),st.spot2=new go.Spot(.777,.777),st}),go.Shape.setFigureParameter("FramedRectangle",0,new Dn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Dn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN,st=Tt?Tt.parameter2:NaN;isNaN(ht)&&(ht=8),isNaN(st)&&(st=8);var gt=new go.Geometry,vt=new go.PathFigure(0,0,!0);return gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht<et/2&&st<nt/2&&(vt.add(new go.PathSegment(go.PathSegment.Move,ht,st)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,st).close())),gt.setSpots(0,0,1,1,ht,st,-ht,-st),gt}),go.Shape.setFigureParameter("Ring",0,new Dn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=8);var st=et/2,gt=new go.Geometry,vt=new go.PathFigure(et,et/2,!0);gt.add(vt),vt.add(new go.PathSegment(go.PathSegment.Arc,0,360,st,st,st,st).close());var wt=Math.max(st-ht,0);return wt>0&&(vt.add(new go.PathSegment(go.PathSegment.Move,et/2+wt,et/2)),vt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,st,st,wt,wt).close())),gt.spot1=Vt,gt.spot2=fe,gt.defaultStretch=go.GraphObject.Uniform,gt}),go.Shape.defineFigureGenerator("Cloud",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*nt,-.09239631*et,.07836421*nt,.1406031*et,-.0542823*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*nt,.2450511*et,-.00697547*nt,.3776197*et,-.01112067*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*nt,.4539471*et,0,.6066018*et,-.02526587*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*nt,.6914277*et,-.01904177*nt,.8921095*et,-.01220843*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*nt,1.036446*et,.04105738*nt,1.020377*et,.3022052*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*nt,1.04448*et,.360238*nt,.992256*et,.5219009*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*nt,1.032337*et,.5771781*nt,1.018411*et,.8120651*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*nt,1.028411*et,.9571472*nt,.8556702*et,1.052487*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*nt,.7431877*et,1.009325*nt,.5624123*et,1.021761*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*nt,.4820677*et,1.031761*nt,.3030112*et,1.002796*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*nt,.2329994*et,1.01518*nt,.03213784*et,1.01518*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*nt,-.02812061*et,.9032597*nt,-.01205169*et,.6835638*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*nt,-.01812061*et,.6089503*nt,-.00606892*et,.4555777*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*nt,-.01606892*et,.3892545*nt,-.01205169*et,.1944299*nt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Tt,et,nt){var ht=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ht*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close())).setSpots(ht/2,ht/2,1-ht/2,1-ht/2)}),go.Shape.setFigureParameter("Pie",0,new Dn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Dn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN,st=Tt?Tt.parameter2:NaN;isNaN(ht)&&(ht=0),isNaN(st)&&(st=315);var gt=ht%360;gt<0&&(gt+=360);var vt=st%360,wt=Math.min(et,nt)/2;return new go.Geometry().add(new go.PathFigure(wt,wt).add(new go.PathSegment(go.PathSegment.Arc,gt,vt,wt,wt,wt,wt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Tt,et,nt){var ht=Ft/Math.SQRT2*.5,st=Math.SQRT2/2,gt=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,st*et,gt*nt,et,(1-ht)*nt,(st+ht)*et,(gt+ht)*nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Dn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30);var st=Math.min(ht,et)/2,gt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-st,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+st,0)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt-st)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt-st).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Dn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var st=Math.min(ht,et)/2,gt=et/2,vt=nt/2;return new go.Geometry().add(new go.PathFigure(gt-st,0,!0).add(new go.PathSegment(go.PathSegment.Line,gt+st,0)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt-st)).add(new go.PathSegment(go.PathSegment.Line,et,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,gt+st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,nt)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt+st)).add(new go.PathSegment(go.PathSegment.Line,0,vt-st)).add(new go.PathSegment(go.PathSegment.Line,gt-st,vt-st).close()))}),go.Shape.setFigureParameter("ThickX",0,new Dn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;if((isNaN(ht)||ht<0)&&(ht=30),et===0||nt===0){var st=new go.Geometry(go.Geometry.Rectangle);return st.startX=0,st.startY=0,st.endX=et,st.endY=nt,st}else{var gt=et/2,vt=nt/2,wt=Math.atan2(nt,et),Bt=ht-Math.min(Math.cos(wt)*ht/2,gt),kt=ht-Math.min(Math.sin(wt)*ht/2,vt),st=new go.Geometry,Ot=new go.PathFigure(Bt,0,!0);return st.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,gt,.2*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et-Bt,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,kt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.8*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et,nt-kt)),Ot.add(new go.PathSegment(go.PathSegment.Line,et-Bt,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,gt,.8*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,Bt,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,nt-kt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,kt).close()),st}}),go.Shape.setFigureParameter("ThinX",0,new Dn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=10);var st=new go.Geometry,gt=new go.PathFigure(.1*et,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt).close()),st}),go.Shape.setFigureParameter("SquareIBeam",0,new Dn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.2);var st=new go.Geometry,gt=new go.PathFigure(0,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5+ht/2)*et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,(1-ht)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(.5-ht/2)*et,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt).close()),st}),go.Shape.setFigureParameter("RoundedIBeam",0,new Dn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.5);var st=new go.Geometry,gt=new go.PathFigure(0,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,Math.abs(1-ht)*et,.25*nt,Math.abs(1-ht)*et,.75*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),st}),go.Shape.defineFigureGenerator("HalfEllipse",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,Ft*et,0,et,(.5-Ft/2)*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,(.5+Ft/2)*nt,Ft*et,nt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,nt,et,0,et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*nt,.5*et,.25*nt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,.1*et,.8*nt,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.5*nt,.9*et,.8*nt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*nt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.6*et,.2*nt,et,.25*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*nt,et,.8*nt,.6*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,.5*et,.75*nt,.55*et,.95*nt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*nt,.45*et,.95*nt,.5*et,.75*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.4*et,.8*nt,0,.8*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*nt,0,.25*nt,.4*et,.2*nt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.4*et,.6*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,nt,.5*et,.75*nt,.45*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*nt,.55*et,.95*nt,.5*et,.75*nt));var gt=.2,vt=.3,wt=0,Bt=gt*Ft;return st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+gt+wt)*nt,(.5-gt+vt)*et,(.5+Bt+wt)*nt,(.5-Bt+vt)*et,(.5+gt+wt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+vt)*et,(.5+wt)*nt,(.5+Bt+vt)*et,(.5+gt+wt)*nt,(.5+gt+vt)*et,(.5+Bt+wt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-gt+wt)*nt,(1-.5+gt+vt)*et,(.5-Bt+wt)*nt,(.5+Bt+vt)*et,(.5-gt+wt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*nt,(.5-Bt+vt)*et,(.5-gt+wt)*nt,(.5-gt+vt+.05)*et,(.5-Bt+wt-.02)*nt)),gt=.2,vt=0,wt=-.3,Bt=gt*Ft,st.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+gt+vt)*et,(.5+wt)*nt,(.5+Bt+vt)*et,(.5+gt+wt)*nt,(.5+gt+vt)*et,(.5+Bt+wt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-gt+wt)*nt,(1-.5+gt+vt)*et,(.5-Bt+wt)*nt,(.5+Bt+vt)*et,(.5-gt+wt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+vt)*et,(.5+wt)*nt,(.5-Bt+vt)*et,(.5-gt+wt)*nt,(.5-gt+vt)*et,(.5-Bt+wt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Bt+vt)*et,(.5+gt+wt)*nt,(.5-gt+vt)*et,(.5+Bt+wt)*nt,(.5-Bt+vt)*et,(.5+gt+wt)*nt)),gt=.2,vt=-.3,wt=0,Bt=gt*Ft,st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5-gt+wt)*nt,(1-.5+gt+vt-.05)*et,(.5-Bt+wt-.02)*nt,(.5+Bt+vt)*et,(.5-gt+wt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-gt+vt)*et,(.5+wt)*nt,(.5-Bt+vt)*et,(.5-gt+wt)*nt,(.5-gt+vt)*et,(.5-Bt+wt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5+vt)*et,(.5+gt+wt)*nt,(.5-gt+vt)*et,(.5+Bt+wt)*nt,(.5-Bt+vt)*et,(.5+gt+wt)*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*nt,(.5+Bt+vt)*et,(.5+gt+wt)*nt,(.5+gt+vt)*et,(.5+Bt+wt)*nt).close()),ht.setSpots(.06,.33,.93,.68),ht}),go.Shape.defineFigureGenerator("YinYang",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.5,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),st.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),st.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var gt=.1,vt=.5,wt=.25;return st.add(new go.PathSegment(go.PathSegment.Move,(vt+gt)*et,wt*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*vt,nt*wt,gt*et,gt*et).close()),st=new go.PathFigure(et*.5,0,!1),ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),wt=.75,st=new go.PathFigure((vt+gt)*et,wt*nt,!0),ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*vt,nt*wt,gt*et,gt*et).close()),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Peace",function(Tt,et,nt){var ht=.8535533905932737,st=.5*et,gt=.5*nt;return new go.Geometry().add(new go.PathFigure(st,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,st,gt,st,gt)).add(new go.PathSegment(go.PathSegment.Line,st,nt)).add(new go.PathSegment(go.PathSegment.Move,st,gt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Move,st,gt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,ht*nt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,vt=.5,wt=.5,Bt=new go.PathFigure(vt*et,(wt-gt)*nt);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,wt*nt,(vt-st)*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+gt)*nt,(vt-gt)*et,(wt+st)*nt,(vt-st)*et,(wt+gt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,wt*nt,(vt+st)*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-gt)*nt,(vt+gt)*et,(wt-st)*nt,(vt+st)*et,(wt-gt)*nt)),gt=.4,st=Ft*.4;var kt=Ct(),Ot=Ct(),jt=Ct(),Xt=Ct();Ne(vt,wt-gt,vt+st,wt-gt,vt+gt,wt-st,vt+gt,wt,.42,kt,Ot,jt,Xt,Xt);var Ut=Ct(),de=Ct(),Gt=Ct();Ne(vt,wt-gt,vt+st,wt-gt,vt+gt,wt-st,vt+gt,wt,.58,Xt,Xt,Gt,Ut,de);var Ve=Ct(),me=Ct(),sn=Ct();Ne(vt,wt+gt,vt-st,wt+gt,vt-gt,wt+st,vt-gt,wt,.42,Ve,me,sn,Xt,Xt);var qe=Ct(),Ye=Ct(),je=Ct();return Ne(vt,wt+gt,vt-st,wt+gt,vt-gt,wt+st,vt-gt,wt,.58,Xt,Xt,je,qe,Ye),Bt.add(new go.PathSegment(go.PathSegment.Move,je.x*et,je.y*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,wt*nt,qe.x*et,qe.y*nt,Ye.x*et,Ye.y*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,jt.x*et,jt.y*nt,kt.x*et,kt.y*nt,Ot.x*et,Ot.y*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,je.x*et,je.y*nt).close()),Bt.add(new go.PathSegment(go.PathSegment.Move,sn.x*et,sn.y*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,Gt.x*et,Gt.y*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,wt*nt,Ut.x*et,Ut.y*nt,de.x*et,de.y*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,sn.x*et,sn.y*nt,Ve.x*et,Ve.y*nt,me.x*et,me.y*nt).close()),It(kt),It(Ot),It(jt),It(Xt),It(Ut),It(de),It(Gt),It(Ve),It(me),It(sn),It(qe),It(Ye),It(je),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("Fragile",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*nt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*nt,et,.25*nt,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*nt,0,.25*nt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Dn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=30),ht>et&&(ht=et);var st=(et-ht)/2,gt=st+ht;return new go.Geometry().add(new go.PathFigure(gt,.5*nt).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)).add(new go.PathSegment(go.PathSegment.Line,st,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,.55*nt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*nt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.4,gt=.4,vt=.5,wt=.5,Bt=Ct(),kt=Ct(),Ot=Ct(),jt=Ct(),Xt=new go.PathFigure((vt-gt)*et,wt*nt,!1);ht.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt)),Ne(vt,wt-gt,vt+st,wt-gt,vt+gt,wt-st,vt+gt,wt,.44,Ot,jt,kt,Bt,Bt),Xt.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*et,kt.y*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt));var Ut=St(kt.x,kt.y);Ne(vt,wt-gt,vt+st,wt-gt,vt+gt,wt-st,vt+gt,wt,.56,Bt,Bt,kt,Ot,jt);var de=St(kt.x,kt.y);Xt.add(new go.PathSegment(go.PathSegment.Line,(Ut.x*.1+.95*.9)*et,Ut.y*.1*nt)),Xt.add(new go.PathSegment(go.PathSegment.Line,.85*et,Ut.y*.1*nt)),Xt.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Xt.add(new go.PathSegment(go.PathSegment.Line,et,0)),Xt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),Xt.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.9)*et,.15*nt)),Xt.add(new go.PathSegment(go.PathSegment.Line,(de.x*.1+.9)*et,(de.y*.1+.05*.9)*nt)),Xt.add(new go.PathSegment(go.PathSegment.Line,de.x*et,de.y*nt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,wt*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,wt*nt,(vt-st)*et,(wt+gt)*nt,(vt-gt)*et,(wt+st)*nt)),gt=.35,st=Ft*.35;var Gt=new go.PathFigure(vt*et,(wt-gt)*nt,!1);ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,wt*nt,(vt-st)*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+gt)*nt,(vt-gt)*et,(wt+st)*nt,(vt-st)*et,(wt+gt)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,wt*nt,(vt+st)*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-gt)*nt,(vt+gt)*et,(wt-st)*nt,(vt+st)*et,(wt-gt)*nt));var Ve=new go.PathFigure((vt-gt)*et,wt*nt,!1);return ht.add(Ve),It(Bt),It(kt),It(Ot),It(jt),It(Ut),It(de),ht.spot1=new go.Spot(.202,.257),ht.spot2=new go.Spot(.792,.739),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("GenderFemale",function(Tt,et,nt){var ht=new go.Geometry,st=.375,gt=0,vt=-.125,wt=st*Ft,Bt=new go.PathFigure((.525+gt)*et,(.5+st+vt)*nt,!1);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+st+gt)*et,(.5+vt)*nt,(.5+wt+gt)*et,(.5+st+vt)*nt,(.5+st+gt)*et,(.5+wt+vt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-st+vt)*nt,(1-.5+st+gt)*et,(.5-wt+vt)*nt,(.5+wt+gt)*et,(.5-st+vt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+vt)*nt,(.5-wt+gt)*et,(.5-st+vt)*nt,(.5-st+gt)*et,(.5-wt+vt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+gt)*et,(.5+st+vt)*nt,(.5-st+gt)*et,(.5+wt+vt)*nt,(.5-wt+gt)*et,(.5+st+vt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.475*et,nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.525*et,nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt).close()),st=.325,gt=0,vt=-.125,wt=st*Ft;var Bt=new go.PathFigure((1-.5+st+gt)*et,(.5+vt)*nt,!1);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5+st+vt)*nt,(.5+st+gt)*et,(.5+wt+vt)*nt,(.5+wt+gt)*et,(.5+st+vt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+vt)*nt,(.5-wt+gt)*et,(.5+st+vt)*nt,(.5-st+gt)*et,(.5+wt+vt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+gt)*et,(.5-st+vt)*nt,(.5-st+gt)*et,(.5-wt+vt)*nt,(.5-wt+gt)*et,(.5-st+vt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+st+gt)*et,(.5+vt)*nt,(.5+wt+gt)*et,(.5-st+vt)*nt,(1-.5+st+gt)*et,(.5-wt+vt)*nt));var Bt=new go.PathFigure((.525+gt)*et,(.5+st+vt)*nt,!1);return ht.add(Bt),ht.spot1=new go.Spot(.232,.136),ht.spot2=new go.Spot(.682,.611),ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicImplies",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;return isNaN(ht)&&(ht=.2),new go.Geometry().add(new go.PathFigure((1-ht)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,(1-ht)*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,ht*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,ht*et,nt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Tt,et,nt){var ht=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*nt,.5*et,.5*nt)));return ht.defaultStretch=go.GraphObject.Uniform,ht}),go.Shape.defineFigureGenerator("LogicTruth",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)).add(new go.PathSegment(go.PathSegment.Move,0,nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Tt,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(0,nt,!1).add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,et,nt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Tt,et,nt){var ht=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,ht*nt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ht*et,ht*nt,ht*et,ht*nt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Dn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Dn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=.3);var gt=(1-ht)*et,vt=(.5-st/2)*nt,wt=(.5+st/2)*nt,Bt=new go.Geometry,kt=new go.PathFigure(0,vt,!0);Bt.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,gt,vt)),kt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),kt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),kt.add(new go.PathSegment(go.PathSegment.Line,gt,wt)),kt.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Bt.spot1=new go.Spot(0,vt/nt);var Ot=ee(0,wt/nt,1,wt/nt,gt/et,1,1,.5,Ct());return Bt.spot2=new go.Spot(Ot.x,Ot.y),It(Ot),Bt}),go.Shape.setFigureParameter("Arrow2",0,new Dn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Dn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=30),ht>et&&(ht=et);var st=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=30),st=Math.min(st,nt/2);var gt=et-ht,vt=(nt-st)/2,wt=vt+st,Bt=new go.Geometry,kt=new go.PathFigure(0,vt,!0);Bt.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,gt,vt)),kt.add(new go.PathSegment(go.PathSegment.Line,gt,0)),kt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,gt,nt)),kt.add(new go.PathSegment(go.PathSegment.Line,gt,wt)),kt.add(new go.PathSegment(go.PathSegment.Line,0,wt).close()),Bt.spot1=new go.Spot(0,vt/nt);var Ot=ee(0,wt/nt,1,wt/nt,gt/et,1,1,.5,Ct());return Bt.spot2=new go.Spot(Ot.x,Ot.y),It(Ot),Bt}),go.Shape.defineFigureGenerator("Chevron",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("DoubleArrow",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,1*nt).close()),ht}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Dn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,vt=new go.Geometry,wt=new go.PathFigure(et,.5*nt,!0);vt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.3*et,st)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var Bt=ee(0,.5,.3,0,0,st/nt,.1,st/nt,Ct());return vt.spot1=new go.Spot(Bt.x,Bt.y),Bt=ee(.7,1,1,.5,0,gt/nt,1,gt/nt,Bt),vt.spot2=new go.Spot(Bt.x,Bt.y),It(Bt),vt}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Dn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Dn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=40);var st=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=100);var gt=(nt-ht)/2,vt=gt+ht,wt=(nt-st)/2,Bt=wt+st;(ht>nt||st>nt)&&(st>ht?(ht=ht*nt/st,gt=(nt-ht)/2,vt=gt+ht,wt=0,Bt=nt):(gt=0,vt=nt,wt=0,Bt=nt));var kt=new go.Geometry,Ot=new go.PathFigure(et,.5*nt,!0);kt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Bt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,Bt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.3*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,wt).close());var jt=ee(0,.5,.3,wt/nt,0,gt/nt,1,gt/nt,Ct());return kt.spot1=new go.Spot(jt.x,jt.y),jt=ee(.7,Bt/nt,1,.5,0,vt/nt,1,vt/nt,jt),kt.spot2=new go.Spot(jt.x,jt.y),It(jt),kt}),go.Shape.setFigureParameter("IBeamArrow",0,new Dn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,vt=new go.Geometry,wt=new go.PathFigure(et,.5*nt,!0);vt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,st)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(0,st/nt);var Bt=ee(.7,1,1,.5,0,gt/nt,1,gt/nt,Ct());return vt.spot2=new go.Spot(Bt.x,Bt.y),It(Bt),vt}),go.Shape.setFigureParameter("IBeamArrow2",0,new Dn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Dn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=40);var st=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=100);var gt=(nt-ht)/2,vt=gt+ht,wt=(nt-st)/2,Bt=wt+st;(ht>nt||st>nt)&&(st>ht?(ht=ht*nt/st,gt=(nt-ht)/2,vt=gt+ht,wt=0,Bt=nt):(gt=0,vt=nt,wt=0,Bt=nt));var kt=new go.Geometry,Ot=new go.PathFigure(et,.5*nt,!0);kt.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,Bt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,vt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,Bt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,Bt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,wt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.2*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),Ot.add(new go.PathSegment(go.PathSegment.Line,.7*et,wt).close()),kt.spot1=new go.Spot(0,gt/nt);var jt=ee(.7,Bt/nt,1,.5,0,vt/nt,1,vt/nt,Ct());return kt.spot2=new go.Spot(jt.x,jt.y),It(jt),kt}),go.Shape.setFigureParameter("Pointer",0,new Dn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.1);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),st.spot1=new go.Spot(ht,.35);var vt=ee(.2,.65,1,.65,0,1,1,.5,Ct());return st.spot2=new go.Spot(vt.x,vt.y),It(vt),st}),go.Shape.setFigureParameter("RoundedPointer",0,new Dn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.3);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ht*et,.75*nt,ht*et,.25*nt).close()),st.spot1=new go.Spot(ht,.35);var vt=ee(0,.65,1,.65,0,1,1,.5,Ct());return st.spot2=new go.Spot(vt.x,vt.y),It(vt),st}),go.Shape.setFigureParameter("SplitEndArrow",0,new Dn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.4);var st=(.5-ht/2)*nt,gt=(.5+ht/2)*nt,vt=new go.Geometry,wt=new go.PathFigure(et,.5*nt,!0);vt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,st)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,.3);var Bt=ee(.7,1,1,.5,0,gt/nt,1,gt/nt,Ct());return vt.spot2=new go.Spot(Bt.x,Bt.y),It(Bt),vt}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Dn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=50);var st=(nt-ht)/2,gt=st+ht;ht>nt&&(st=0,gt=nt);var vt=new go.Geometry,wt=new go.PathFigure(et,.5*nt,!0);vt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,0,st)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,st)),wt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),vt.spot1=new go.Spot(.2,st/nt);var Bt=ee(.7,1,1,.5,0,gt/nt,1,gt/nt,Ct());return vt.spot2=new go.Spot(Bt.x,Bt.y),It(Bt),vt}),go.Shape.setFigureParameter("SquareArrow",0,new Dn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.7);var st=new go.Geometry,gt=new go.PathFigure(et,.5*nt,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(ht,1),st}),go.Shape.defineFigureGenerator("Cone1",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=Ft*.1,vt=new go.PathFigure(0,.9*nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt).close()),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.97),ht}),go.Shape.defineFigureGenerator("Cone2",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.9*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,nt,.85/.9*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.9*nt).close());var gt=new go.PathFigure(0,.9*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*nt,(1-.85/.9)*et,.8*nt,.85/.9*et,.8*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.82),ht}),go.Shape.defineFigureGenerator("Cube1",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.15*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.5,.85),ht}),go.Shape.defineFigureGenerator("Cube2",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.3*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var gt=new go.PathFigure(0,.3*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(.7,1),ht}),go.Shape.defineFigureGenerator("Cylinder1",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var st=new go.Geometry,gt=Ft*.5,vt=new go.PathFigure(0,ht,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ft*ht,(.5-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,1*et,ht,(.5+gt)*et,0,1*et,Ft*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*nt,1*et,nt-Ft*ht,(.5+gt)*et,1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-gt)*et,1*nt,0,nt-Ft*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht));var wt=new go.PathFigure(et,ht,!1);return st.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*ht,1*et,2*ht-Ft*ht,(.5+gt)*et,2*ht)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,ht,(.5-gt)*et,2*ht,0,2*ht-Ft*ht)),st.spot1=new go.Spot(0,0,0,2*ht),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Cylinder2",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,nt/3);var st=new go.Geometry,gt=Ft*.5,vt=new go.PathFigure(0,nt-ht,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,Ft*ht,(.5-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,(.5+gt)*et,0,et,Ft*ht)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-ht)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,nt-Ft*ht,(.5+gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-ht,(.5-gt)*et,nt,0,nt-Ft*ht));var wt=new go.PathFigure(0,nt-ht,!1);return st.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt-2*ht,0,nt-ht-Ft*ht,(.5-gt)*et,nt-2*ht)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,nt-ht,(.5+gt)*et,nt-2*ht,et,nt-ht-Ft*ht)),st.spot1=new go.Spot(0,0),st.spot2=new go.Spot(1,1,0,-2*ht),st}),go.Shape.defineFigureGenerator("Cylinder3",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var st=new go.Geometry,gt=Ft*.5,vt=new go.PathFigure(ht,0,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Ft*ht,0,et,(.5-gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+gt)*nt,et-Ft*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Ft*ht,nt,0,(.5+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*nt,Ft*ht,0));var wt=new go.PathFigure(ht,0,!1);return st.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,2*ht,.5*nt,ht+Ft*ht,0,2*ht,(.5-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ht,nt,2*ht,(.5+gt)*nt,ht+Ft*ht,nt)),st.spot1=new go.Spot(0,0,2*ht,0),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Cylinder4",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=5),ht=Math.min(ht,et/3);var st=new go.Geometry,gt=Ft*.5,vt=new go.PathFigure(et-ht,0,!0);st.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,et-Ft*ht,0,et,(.5-gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et,(.5+gt)*nt,et-Ft*ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,ht,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,Ft*ht,nt,0,(.5+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,(.5-gt)*nt,Ft*ht,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0));var wt=new go.PathFigure(et-ht,0,!1);return st.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*ht,.5*nt,et-ht-Ft*ht,0,et-2*ht,(.5-gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,nt,et-2*ht,(.5+gt)*nt,et-ht-Ft*ht,nt)),st.spot1=new go.Spot(0,0),st.spot2=new go.Spot(1,1,-2*ht,0),st}),go.Shape.defineFigureGenerator("Prism1",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,.25*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.25*et,.25*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.408,.172),ht.spot2=new go.Spot(.833,.662),ht}),go.Shape.defineFigureGenerator("Prism2",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.25*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*nt)),ht.spot1=new go.Spot(.25,.5),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("Pyramid1",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Pyramid2",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt).close());var gt=new go.PathFigure(.5*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.85*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),ht.spot1=new go.Spot(.25,.367),ht.spot2=new go.Spot(.75,.875),ht}),go.Shape.defineFigureGenerator("Actor",function(Tt,et,nt){var ht=new go.Geometry,st=.2,gt=.1,vt=Ft*st,wt=Ft*gt,Bt=.5,kt=.1,Ot=new go.PathFigure(Bt*et,(kt+gt)*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-st)*et,kt*nt,(Bt-vt)*et,(kt+gt)*nt,(Bt-st)*et,(kt+wt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt-gt)*nt,(Bt-st)*et,(kt-wt)*nt,(Bt-vt)*et,(kt-gt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+st)*et,kt*nt,(Bt+vt)*et,(kt-gt)*nt,(Bt+st)*et,(kt-wt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt+gt)*nt,(Bt+st)*et,(kt+wt)*nt,(Bt+vt)*et,(kt+gt)*nt));var jt=.05,Xt=Ft*jt;Bt=.05,kt=.25;var Ut=new go.PathFigure(.5*et,.2*nt,!0);return ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*nt)),Bt=.95,kt=.25,Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+jt)*et,kt*nt,(Bt+Xt)*et,(kt-jt)*nt,(Bt+jt)*et,(kt-Xt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*nt)),jt=.025,Xt=Ft*jt,Bt=.825,kt=.35,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt-jt)*nt,(Bt+jt)*et,(kt-Xt)*nt,(Bt+Xt)*et,(kt-jt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-jt)*et,kt*nt,(Bt-Xt)*et,(kt-jt)*nt,(Bt-jt)*et,(kt-Xt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt)),jt=.05,Xt=Ft*jt,Bt=.5,kt=.7,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt-jt)*nt,(Bt+jt)*et,(kt-Xt)*nt,(Bt+Xt)*et,(kt-jt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-jt)*et,kt*nt,(Bt-Xt)*et,(kt-jt)*nt,(Bt-jt)*et,(kt-Xt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*nt)),jt=.025,Xt=Ft*jt,Bt=.175,kt=.35,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt-jt)*nt,(Bt+jt)*et,(kt-Xt)*nt,(Bt+Xt)*et,(kt-jt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-jt)*et,kt*nt,(Bt-Xt)*et,(kt-jt)*nt,(Bt-jt)*et,(kt-Xt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),jt=.05,Xt=Ft*jt,Bt=.05,kt=.25,Ut.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt-jt)*nt,(Bt-jt)*et,(kt-Xt)*nt,(Bt-Xt)*et,(kt-jt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),ht.spot1=new go.Spot(.2,.2),ht.spot2=new go.Spot(.8,.65),ht}),go.Shape.setFigureParameter("Card",0,new Dn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;isNaN(ht)&&(ht=.2);var st=new go.Geometry,gt=new go.PathFigure(et,0,!0);return st.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,ht*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,ht*et,0).close()),st.spot1=new go.Spot(0,ht),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Collate",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt));var gt=new go.PathFigure(.5*et,.5*nt,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,.25),ht}),go.Shape.defineFigureGenerator("CreateRequest",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,st*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*nt)),ht}),go.Shape.defineFigureGenerator("Database",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=Ft*.1,vt=new go.PathFigure(et,.1*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+st)*et,0,et,(.1-gt)*nt));var wt=new go.PathFigure(et,.1*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+st)*et,.2*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-st)*et,.2*nt,0,(.1+gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+st)*et,.3*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-st)*et,.3*nt,0,(.2+gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,.3*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*nt,et,(.3+gt)*nt,(.5+st)*et,.4*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*nt,(.5-st)*et,.4*nt,0,(.3+gt)*nt)),ht.spot1=new go.Spot(0,.4),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("DataStorage",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*nt,.25*et,.1*nt).close()),ht.spot1=new go.Spot(.226,0),ht.spot2=new go.Spot(.81,1),ht}),go.Shape.defineFigureGenerator("DiskStorage",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=Ft*.1,vt=new go.PathFigure(et,.1*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.9+gt)*nt,(.5+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,(.5-st)*et,nt,0,(.9+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-gt)*nt,(.5-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,(.5+st)*et,0,et,(.1-gt)*nt));var wt=new go.PathFigure(et,.1*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,et,(.1+gt)*nt,(.5+st)*et,.2*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*nt,(.5-st)*et,.2*nt,0,(.1+gt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,.2*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*nt,et,(.2+gt)*nt,(.5+st)*et,.3*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*nt,(.5-st)*et,.3*nt,0,(.2+gt)*nt)),ht.spot1=new go.Spot(0,.3),ht.spot2=new go.Spot(1,.9),ht}),go.Shape.defineFigureGenerator("Display",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,nt,et,0,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close()),ht.spot1=new go.Spot(.25,0),ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("DividedEvent",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)?st=.2:st<.15&&(st=.15);var gt=Ft*.2,vt=new go.PathFigure(0,.2*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-gt)*nt,(.2-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*nt,(.8+gt)*et,0,et,(.2-gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,nt,et,(.8+gt)*nt,(.8+gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*nt,(.2-gt)*et,nt,0,(.8+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt));var wt=new go.PathFigure(0,st*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),ht}),go.Shape.defineFigureGenerator("DividedProcess",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;(isNaN(st)||st<.1)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(0,st*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,st*nt)),ht}),go.Shape.defineFigureGenerator("Document",function(Tt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;(isNaN(st)||st<.2)&&(st=.2);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(st*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,0,st*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,et,st*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Move,0,(1-st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*nt)),ht}),go.Shape.defineFigureGenerator("ExternalProcess",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(.1*et,.4*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("File",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(.75*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Interrupt",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt));var gt=new go.PathFigure(et,.5*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt));var vt=new go.PathFigure(et,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("InternalStorage",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN,gt=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.1);var vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var wt=new go.PathFigure(st*et,0,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Move,0,gt*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt)),ht}),go.Shape.defineFigureGenerator("Junction",function(Tt,et,nt){var ht=new go.Geometry,st=1/Math.SQRT2,gt=(1-1/Math.SQRT2)/2,vt=Ft*.5,wt=.5,Bt=new go.PathFigure(et,wt*nt,!0);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,nt,et,(wt+vt)*nt,(wt+vt)*et,nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,0,wt*nt,(wt-vt)*et,nt,0,(wt+vt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,0,0,(wt-vt)*nt,(wt-vt)*et,0)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,et,wt*nt,(wt+vt)*et,0,et,(wt-vt)*nt));var kt=new go.PathFigure((gt+st)*et,(gt+st)*nt,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,gt*et,gt*nt)),kt.add(new go.PathSegment(go.PathSegment.Move,gt*et,(gt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,(gt+st)*et,gt*nt)),ht}),go.Shape.defineFigureGenerator("LinedDocument",function(Tt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close());var gt=new go.PathFigure(.1*et,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*nt)),ht.spot1=new go.Spot(.1,0),ht.spot2=new go.Spot(1,.6),ht}),go.Shape.defineFigureGenerator("LoopLimit",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MagneticTape",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,vt=new go.PathFigure(.5*et,nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(gt+.1)*et,.9*nt,et,(gt+st)*nt,(gt+st)*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),ht.spot1=new go.Spot(.15,.15),ht.spot2=new go.Spot(.85,.8),ht}),go.Shape.defineFigureGenerator("ManualInput",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("MessageFromUser",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.7);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,st*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.25);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,st*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("MicroformRecording",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("MultiDocument",function(Tt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*nt,.96*et,.47*nt,.93*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*nt,.86*et,.57*nt,.83*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.4*et,.4*nt,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var gt=new go.PathFigure(.1*et,.2*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.8,.77),ht}),go.Shape.defineFigureGenerator("MultiProcess",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,.1*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close());var gt=new go.PathFigure(.2*et,.1*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*nt)),ht.spot1=new go.Spot(0,.2),ht.spot2=new go.Spot(.8,1),ht}),go.Shape.defineFigureGenerator("OfflineStorage",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=1-st,vt=new go.PathFigure(0,0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close());var wt=new go.PathFigure(.5*st*et,st*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*st)*et,st*nt)),ht}),go.Shape.defineFigureGenerator("OffPageConnector",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.75,1),ht}),go.Shape.defineFigureGenerator("Or",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,vt=new go.PathFigure(et,gt*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+st)*nt,(gt+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt));var wt=new go.PathFigure(et,.5*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ht}),go.Shape.defineFigureGenerator("PaperTape",function(Tt,et,nt){var ht=new go.Geometry;nt=nt/.8;var st=new go.PathFigure(0,.7*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*nt,.5*et,.6*nt,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*nt,.5*et,.4*nt,.5*et,nt).close()),ht.spot1=new go.Spot(0,.49),ht.spot2=new go.Spot(1,.75),ht}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN,gt=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN,gt=Tt?Tt.parameter2:NaN;isNaN(st)&&(st=.1),isNaN(gt)&&(gt=.3);var vt=new go.PathFigure(0,0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Procedure",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure((1-st)*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,st*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),ht}),go.Shape.defineFigureGenerator("Process",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var vt=new go.PathFigure(st*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),ht.spot2=go.Spot.BottomRight,ht}),go.Shape.defineFigureGenerator("Sort",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt).close());var gt=new go.PathFigure(0,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),ht.spot1=new go.Spot(.25,.25),ht.spot2=new go.Spot(.75,.5),ht}),go.Shape.defineFigureGenerator("Start",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.25);var gt=new go.PathFigure(st*et,0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt));var vt=new go.PathFigure(st*et,0,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,st*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Move,(1-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,nt)),ht.spot1=new go.Spot(st,0),ht.spot2=new go.Spot(1-st,1),ht}),go.Shape.defineFigureGenerator("Terminator",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.25*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*nt,.25*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*nt,.25*et,.5*nt)),ht.spot1=new go.Spot(.23,0),ht.spot2=new go.Spot(.77,1),ht}),go.Shape.defineFigureGenerator("TransmittalTape",function(Tt,et,nt){var ht=new go.Geometry,st=Tt?Tt.parameter1:NaN;isNaN(st)&&(st=.1);var gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*nt).close()),ht.spot1=go.Spot.TopLeft,ht}),go.Shape.defineFigureGenerator("AndGate",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=new go.PathFigure(0,0,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(.5+st)*et,0,et,(.5-st)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,(.5+st)*nt,(.5+st)*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=go.Spot.TopLeft,ht.spot2=new go.Spot(.55,1),ht}),go.Shape.defineFigureGenerator("Buffer",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Clock",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,vt=new go.PathFigure(et,gt*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,nt,et,(gt+st)*nt,(gt+st)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt*nt,(gt-st)*et,nt,0,(gt+st)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,gt*et,0,0,(gt-st)*nt,(gt-st)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,gt*nt,(gt+st)*et,0,et,(gt-st)*nt));var wt=new go.PathFigure(et,gt*nt,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,gt*nt));var Bt=new go.PathFigure(.8*et,.75*nt,!1);return ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*nt)),ht}),go.Shape.defineFigureGenerator("Ground",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),ht}),go.Shape.defineFigureGenerator("Inverter",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.1,gt=.1,vt=.9,wt=.5,Bt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Bt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt));var kt=new go.PathFigure((vt+gt)*et,wt*nt,!0);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,wt*nt,(vt-st)*et,(wt+gt)*nt,(vt-gt)*et,(wt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,wt*nt,(vt+st)*et,(wt-gt)*nt,(vt+gt)*et,(wt-st)*nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.4,.75),ht}),go.Shape.defineFigureGenerator("NandGate",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=Ft*.4,vt=Ft*.1,wt=.1,Bt=.9,kt=.5,Ot=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,.8*et,(.5+gt)*nt,(.4+st)*et,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,nt)),Ot.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ot.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(.4+st)*et,0,.8*et,(.5-gt)*nt));var jt=new go.PathFigure((Bt+wt)*et,kt*nt,!0);return ht.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt+wt)*nt,(Bt+wt)*et,(kt+vt)*nt,(Bt+vt)*et,(kt+wt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-wt)*et,kt*nt,(Bt-vt)*et,(kt+wt)*nt,(Bt-wt)*et,(kt+vt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt-wt)*nt,(Bt-wt)*et,(kt-vt)*nt,(Bt-vt)*et,(kt-wt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+wt)*et,kt*nt,(Bt+vt)*et,(kt-wt)*nt,(Bt+wt)*et,(kt-vt)*nt)),ht.spot1=new go.Spot(0,.05),ht.spot2=new go.Spot(.55,.95),ht}),go.Shape.defineFigureGenerator("NorGate",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*st,vt=0,wt=.5,Bt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.7*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+gt)*et,(wt-st)*nt,.7*et,(wt-gt)*nt)),st=.1,gt=Ft*.1,vt=.9,wt=.5;var kt=new go.PathFigure((vt-st)*et,wt*nt,!0);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,wt*nt,(vt+gt)*et,(wt-st)*nt,(vt+st)*et,(wt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,wt*nt,(vt-gt)*et,(wt+st)*nt,(vt-st)*et,(wt+gt)*nt)),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.6,.75),ht}),go.Shape.defineFigureGenerator("OrGate",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*st,vt=0,wt=.5,Bt=new go.PathFigure(0,0,!0);return ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+gt+gt)*et,(wt-st)*nt,.8*et,(wt-gt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.8*et,(wt+gt)*nt,(vt+gt+gt)*et,(wt+st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*nt,.25*et,.25*nt).close()),ht.spot1=new go.Spot(.2,.25),ht.spot2=new go.Spot(.75,.75),ht}),go.Shape.defineFigureGenerator("XnorGate",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*st,vt=.2,wt=.5,Bt=new go.PathFigure(.1*et,0,!1);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var kt=new go.PathFigure(.8*et,.5*nt,!0);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.7*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*nt,(vt+gt)*et,(wt-st)*nt,.7*et,(wt-gt)*nt)),st=.1,gt=Ft*.1,vt=.9,wt=.5;var Ot=new go.PathFigure((vt-st)*et,wt*nt,!0);return ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,wt*nt,(vt+gt)*et,(wt-st)*nt,(vt+st)*et,(wt-gt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,wt*nt,(vt-gt)*et,(wt+st)*nt,(vt-st)*et,(wt+gt)*nt)),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.65,.75),ht}),go.Shape.defineFigureGenerator("XorGate",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*st,vt=.2,wt=.5,Bt=new go.PathFigure(.1*et,0,!1);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,nt,.35*et,.25*nt,.35*et,.75*nt));var kt=new go.PathFigure(.2*et,0,!0);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,(vt+gt)*et,(wt-st)*nt,.9*et,(wt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,nt,.9*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*nt,.45*et,.25*nt).close()),ht.spot1=new go.Spot(.4,.25),ht.spot2=new go.Spot(.8,.75),ht}),go.Shape.defineFigureGenerator("Capacitor",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Resistor",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Inductor",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.1,gt=.1,vt=.1,wt=.5,Bt=new go.PathFigure((vt-st*.5)*et,nt,!1);return ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.3,Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.5,Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.7,Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,0,(vt-st)*et,nt,(vt-gt)*et,0)),vt=.9,Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st*.5)*et,nt,(vt+gt)*et,0,(vt+st)*et,nt)),ht}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.5,gt=.5,vt=.5,wt=.5,Bt=new go.PathFigure((vt-gt)*et,wt*nt,!1);return ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,wt*nt,(vt+st)*et,(wt-gt)*nt,(vt+gt)*et,(wt-st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,wt*nt,(vt-st)*et,(wt+gt)*nt,(vt-gt)*et,(wt+st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Move,(vt-gt+.1)*et,wt*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt-.1)*et,wt*nt,vt*et,(wt-gt)*nt,vt*et,(wt+gt)*nt)),ht}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.75*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("Diode",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht.spot1=new go.Spot(0,.25),ht.spot2=new go.Spot(.5,.75),ht}),go.Shape.defineFigureGenerator("Wifi",function(Tt,et,nt){var ht=new go.Geometry,st=et,gt=nt;et=et*.38,nt=nt*.6;var vt=Ft*.8,wt=.8,Bt=0,kt=.5,Ot=(st-et)/2,jt=(gt-nt)/2,Xt=new go.PathFigure(Bt*et+Ot,(kt+wt)*nt+jt,!0);ht.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-wt)*et+Ot,kt*nt+jt,(Bt-vt)*et+Ot,(kt+wt)*nt+jt,(Bt-wt)*et+Ot,(kt+vt)*nt+jt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt-wt)*nt+jt,(Bt-wt)*et+Ot,(kt-vt)*nt+jt,(Bt-vt)*et+Ot,(kt-wt)*nt+jt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-wt+vt*.5)*et+Ot,kt*nt+jt,Bt*et+Ot,(kt-wt)*nt+jt,(Bt-wt+vt*.5)*et+Ot,(kt-vt)*nt+jt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt+wt)*nt+jt,(Bt-wt+vt*.5)*et+Ot,(kt+vt)*nt+jt,Bt*et+Ot,(kt+wt)*nt+jt).close()),vt=Ft*.4,wt=.4,Bt=.2,kt=.5;var Ut=new go.PathFigure(Bt*et+Ot,(kt+wt)*nt+jt,!0);ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-wt)*et+Ot,kt*nt+jt,(Bt-vt)*et+Ot,(kt+wt)*nt+jt,(Bt-wt)*et+Ot,(kt+vt)*nt+jt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt-wt)*nt+jt,(Bt-wt)*et+Ot,(kt-vt)*nt+jt,(Bt-vt)*et+Ot,(kt-wt)*nt+jt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-wt+vt*.5)*et+Ot,kt*nt+jt,Bt*et+Ot,(kt-wt)*nt+jt,(Bt-wt+vt*.5)*et+Ot,(kt-vt)*nt+jt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt+wt)*nt+jt,(Bt-wt+vt*.5)*et+Ot,(kt+vt)*nt+jt,Bt*et+Ot,(kt+wt)*nt+jt).close()),vt=Ft*.2,wt=.2,Bt=.5,kt=.5;var de=new go.PathFigure((Bt-wt)*et+Ot,kt*nt+jt,!0);ht.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt-wt)*nt+jt,(Bt-wt)*et+Ot,(kt-vt)*nt+jt,(Bt-vt)*et+Ot,(kt-wt)*nt+jt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+wt)*et+Ot,kt*nt+jt,(Bt+vt)*et+Ot,(kt-wt)*nt+jt,(Bt+wt)*et+Ot,(kt-vt)*nt+jt)),de.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt+wt)*nt+jt,(Bt+wt)*et+Ot,(kt+vt)*nt+jt,(Bt+vt)*et+Ot,(kt+wt)*nt+jt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-wt)*et+Ot,kt*nt+jt,(Bt-vt)*et+Ot,(kt+wt)*nt+jt,(Bt-wt)*et+Ot,(kt+vt)*nt+jt)),vt=Ft*.4,wt=.4,Bt=.8,kt=.5;var Gt=new go.PathFigure(Bt*et+Ot,(kt-wt)*nt+jt,!0);ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+wt)*et+Ot,kt*nt+jt,(Bt+vt)*et+Ot,(kt-wt)*nt+jt,(Bt+wt)*et+Ot,(kt-vt)*nt+jt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt+wt)*nt+jt,(Bt+wt)*et+Ot,(kt+vt)*nt+jt,(Bt+vt)*et+Ot,(kt+wt)*nt+jt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+wt-vt*.5)*et+Ot,kt*nt+jt,Bt*et+Ot,(kt+wt)*nt+jt,(Bt+wt-vt*.5)*et+Ot,(kt+vt)*nt+jt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt-wt)*nt+jt,(Bt+wt-vt*.5)*et+Ot,(kt-vt)*nt+jt,Bt*et+Ot,(kt-wt)*nt+jt).close()),vt=Ft*.8,wt=.8,Bt=1,kt=.5;var Ve=new go.PathFigure(Bt*et+Ot,(kt-wt)*nt+jt,!0);return ht.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+wt)*et+Ot,kt*nt+jt,(Bt+vt)*et+Ot,(kt-wt)*nt+jt,(Bt+wt)*et+Ot,(kt-vt)*nt+jt)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt+wt)*nt+jt,(Bt+wt)*et+Ot,(kt+vt)*nt+jt,(Bt+vt)*et+Ot,(kt+wt)*nt+jt)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+wt-vt*.5)*et+Ot,kt*nt+jt,Bt*et+Ot,(kt+wt)*nt+jt,(Bt+wt-vt*.5)*et+Ot,(kt+vt)*nt+jt)),Ve.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et+Ot,(kt-wt)*nt+jt,(Bt+wt-vt*.5)*et+Ot,(kt-vt)*nt+jt,Bt*et+Ot,(kt-wt)*nt+jt).close()),ht}),go.Shape.defineFigureGenerator("Email",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,0,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,0)),gt.add(new go.PathSegment(go.PathSegment.Move,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Ethernet",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.35*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var gt=new go.PathFigure(.1*et,nt,!0,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var vt=new go.PathFigure(.6*et,nt,!0,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.6*et,nt).close());var wt=new go.PathFigure(0,.5*nt,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Power",function(Tt,et,nt){var ht=new go.Geometry,st=Ft*.4,gt=.4,vt=.5,wt=.5,Bt=Ct(),kt=Ct(),Ot=Ct(),jt=Ct();Ne(vt,wt-gt,vt+st,wt-gt,vt+gt,wt-st,vt+gt,wt,.5,Bt,Bt,kt,Ot,jt);var Xt=St(kt.x,kt.y),Ut=new go.PathFigure(kt.x*et,kt.y*nt,!0);ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,wt*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,wt*nt,(vt-st)*et,(wt+gt)*nt,(vt-gt)*et,(wt+st)*nt)),Ne(vt-gt,wt,vt-gt,wt-st,vt-st,wt-gt,vt,wt-gt,.5,Ot,jt,kt,Bt,Bt),Ut.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*et,kt.y*nt,Ot.x*et,Ot.y*nt,jt.x*et,jt.y*nt)),st=Ft*.3,gt=.3,Ne(vt-gt,wt,vt-gt,wt-st,vt-st,wt-gt,vt,wt-gt,.5,Ot,jt,kt,Bt,Bt),Ut.add(new go.PathSegment(go.PathSegment.Line,kt.x*et,kt.y*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt-gt)*et,wt*nt,jt.x*et,jt.y*nt,Ot.x*et,Ot.y*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+gt)*nt,(vt-gt)*et,(wt+st)*nt,(vt-st)*et,(wt+gt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(vt+gt)*et,wt*nt,(vt+st)*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),Ne(vt,wt-gt,vt+st,wt-gt,vt+gt,wt-st,vt+gt,wt,.5,Bt,Bt,kt,Ot,jt),Ut.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*et,kt.y*nt,jt.x*et,jt.y*nt,Ot.x*et,Ot.y*nt).close());var Ut=new go.PathFigure(.45*et,0,!0);return ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*nt)),Ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),It(Bt),It(kt),It(Ot),It(jt),It(Xt),ht.spot1=new go.Spot(.25,.45),ht.spot2=new go.Spot(.75,.8),ht}),go.Shape.defineFigureGenerator("Fallout",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt/2,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,nt/2,et/2,nt/2));function gt(vt,wt,Bt){vt.add(new go.PathSegment(go.PathSegment.Move,(.3+wt)*et,(.8+Bt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.5+wt)*et,(.5+Bt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.1+wt)*et,(.5+Bt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,(.3+wt)*et,(.8+Bt)*nt).close())}return gt(st,0,0),gt(st,.4,0),gt(st,.2,-.3),ht}),go.Shape.defineFigureGenerator("IrritationHazard",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.2*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close()),ht.spot1=new go.Spot(.3,.3),ht.spot2=new go.Spot(.7,.7),ht}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.37*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.37*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.34*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt).close()),ht}),go.Shape.defineFigureGenerator("FireHazard",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*nt,.45*et,.44*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*nt,.48*et,.17*nt,.54*et,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*nt,.59*et,.29*nt,.58*et,.28*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*nt,.8*et,.34*nt,.88*et,.43*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*nt,.87*et,.48*nt,.88*et,.43*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,1.17*et,.76*nt,.82*et,.8*nt).close()),ht.spot1=new go.Spot(.07,.445),ht.spot2=new go.Spot(.884,.958),ht}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=0,vt=0,wt=st*Ft,Bt=.4*Math.SQRT2/2+.5,kt=.5-.5*Math.SQRT2/2,Ot=1,jt=.5,Xt=.5,Ut=0,de=new go.PathFigure(Bt*et,(1-kt)*nt,!1);return ht.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,jt*nt,Ot*et,.7*nt,Ot*et,jt*nt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Xt+gt)*et,(Ut+gt)*nt,(.5+st+gt)*et,(.5-wt+gt)*nt,(.5+wt+gt)*et,(.5-st+gt)*nt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(.5-st+gt)*et,(.5+vt)*nt,(.5-wt+gt)*et,(.5-st+vt)*nt,(.5-st+gt)*et,(.5-wt+vt)*nt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(.35+gt)*et,.9*nt,(.5-st+gt)*et,(.5+wt+vt)*nt,(.5-wt+gt)*et,.9*nt)),de.add(new go.PathSegment(go.PathSegment.Move,(.25+gt)*et,.8*nt)),de.add(new go.PathSegment(go.PathSegment.Line,(.35+gt)*et,.9*nt)),de.add(new go.PathSegment(go.PathSegment.Line,(.2+gt)*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(et,nt,!1);ht.add(gt);var vt=new go.PathFigure(0,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.2*et,.35*nt,.3*et,.35*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.7*et,.65*nt,.8*et,.65*nt)),ht}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.2*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt).close());var st=new go.PathFigure(0,.2*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.7*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*nt,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,nt,.4*et,.5*nt,et,.5*nt).close());var gt=new go.PathFigure(.45*et,.73*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*nt)),ht}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(.335*et,(1-.555)*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*nt,(1-.12)*et,.46*nt,(1-.02)*et,.54*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.68*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*nt,.02*et,.54*nt,.12*et,.46*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*nt));var vt=.5-.285,wt=.5,Bt=vt,kt=Math.PI/4,Ot=4*(1-Math.cos(kt))/(3*Math.sin(kt)),jt=Ot*.5,Xt=vt,Ut=vt,de=Ot*Xt,Gt=Ot*Ut;gt.add(new go.PathSegment(go.PathSegment.Bezier,(wt-Xt)*et,Bt*nt,(wt-(de+Xt)/2)*et,(Bt+(Ut+Gt)/2)*nt,(wt-Xt)*et,(Bt+Gt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,wt*et,(Bt-Ut)*nt,(wt-Xt)*et,(Bt-Gt)*nt,(wt-de)*et,(Bt-Ut)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(wt+Xt)*et,Bt*nt,(wt+de)*et,(Bt-Ut)*nt,(wt+Xt)*et,(Bt-Gt)*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*nt,(wt+Xt)*et,(Bt+Gt)*nt,(wt+(de+Xt)/2)*et,(Bt+(Ut+Gt)/2)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*nt));var Ve=new go.PathFigure(.2*et,nt,!1);ht.add(Ve),Ve.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*nt));var me=new go.PathFigure(.8*et,nt,!1);return ht.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,nt).close());var gt=new go.PathFigure(.2*et,.2*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventError",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st);var gt=new go.PathFigure(et,nt,!1);ht.add(gt);var vt=new go.PathFigure(.1*et,nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Caution",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.05*et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*nt,0,nt,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*nt,.5*et,0,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,nt,et,nt,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,nt));var gt=.05;return st.add(new go.PathSegment(go.PathSegment.Move,(.5-gt)*et,.875*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*nt,gt*et,gt*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*nt,.575*et,.725*nt,.625*et,.375*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*nt,.375*et,.375*nt,.425*et,.725*nt)),ht}),go.Shape.defineFigureGenerator("Recycle",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.45*et,.95*nt,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*nt,.17*et,.95*nt,.15*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*nt,0,.675*nt,0,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*nt));var gt=new go.PathFigure(.475*et,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*nt,.35*et,0,.375*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*nt,.625*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*nt));var vt=new go.PathFigure(.675*et,.575*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*nt,et,.8*nt,et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,et,.775*nt)),vt.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*nt)),ht}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*.5,vt=new go.PathFigure(et,st*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,st*et,nt,et,(st+gt)*nt,(st+gt)*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,st*nt,(st-gt)*et,nt,0,(st+gt)*nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,st*et,0,0,(st-gt)*nt,(st-gt)*et,0)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et,st*nt,(st+gt)*et,0,et,(st-gt)*nt));var wt=new go.PathFigure(st*et,0,!1);return ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,st*et,.15*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,st*et,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,st*et,.85*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,0,st*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.15*et,st*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,et,st*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.85*et,st*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,st*et,st*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*nt)),wt.add(new go.PathSegment(go.PathSegment.Move,st*et,st*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*nt)),ht}),go.Shape.defineFigureGenerator("Package",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.15*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close());var gt=new go.PathFigure(0,.15*nt,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*nt).close()),ht.spot1=new go.Spot(0,.1),ht.spot2=new go.Spot(1,1),ht}),go.Shape.defineFigureGenerator("Class",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(0,.5*nt,!1);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt).close()),ht}),go.Shape.defineFigureGenerator("Component",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close());var gt=new go.PathFigure(0,.2*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.2*nt).close());var vt=new go.PathFigure(0,.6*nt,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt).close()),ht}),go.Shape.defineFigureGenerator("Boat Shipment",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.15*et,.6*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*nt));var gt=new go.PathFigure(.15*et,.6*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*nt)),ht}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Workcell",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.35*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Supermarket",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,.33*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Move,et,.66*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),ht}),go.Shape.defineFigureGenerator("TruckShipment",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(et,.8*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt).close());var vt=.1,wt=Ft*.1,Bt=.2,kt=.9,Ot=new go.PathFigure((Bt-vt)*et,kt*nt,!0);ht.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt-vt)*nt,(Bt-vt)*et,(kt-wt)*nt,(Bt-wt)*et,(kt-vt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+vt)*et,kt*nt,(Bt+wt)*et,(kt-vt)*nt,(Bt+vt)*et,(kt-wt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt+vt)*nt,(Bt+vt)*et,(kt+wt)*nt,(Bt+wt)*et,(kt+vt)*nt)),Ot.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-vt)*et,kt*nt,(Bt-wt)*et,(kt+vt)*nt,(Bt-vt)*et,(kt+wt)*nt).close()),vt=.1,wt=Ft*.1,Bt=.8,kt=.9;var jt=new go.PathFigure((Bt-vt)*et,kt*nt,!0);return ht.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt-vt)*nt,(Bt-vt)*et,(kt-wt)*nt,(Bt-wt)*et,(kt-vt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Bt+vt)*et,kt*nt,(Bt+wt)*et,(kt-vt)*nt,(Bt+vt)*et,(kt-wt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,Bt*et,(kt+vt)*nt,(Bt+vt)*et,(kt+wt)*nt,(Bt+wt)*et,(kt+vt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(Bt-vt)*et,kt*nt,(Bt-wt)*et,(kt+vt)*nt,(Bt-vt)*et,(kt+wt)*nt).close()),ht}),go.Shape.defineFigureGenerator("KanbanPost",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.2*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,nt)),ht}),go.Shape.defineFigureGenerator("Forklift",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0));var gt=new go.PathFigure(0,.5*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var vt=new go.PathFigure(.5*et,.8*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*nt));var wt=new go.PathFigure(.5*et,.7*nt,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et,.7*nt));var Bt=.1,kt=Ft*.1,Ot=.1,jt=.9,Xt=new go.PathFigure((Ot-Bt)*et,jt*nt,!0);ht.add(Xt),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt-Bt)*nt,(Ot-Bt)*et,(jt-kt)*nt,(Ot-kt)*et,(jt-Bt)*nt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+Bt)*et,jt*nt,(Ot+kt)*et,(jt-Bt)*nt,(Ot+Bt)*et,(jt-kt)*nt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt+Bt)*nt,(Ot+Bt)*et,(jt+kt)*nt,(Ot+kt)*et,(jt+Bt)*nt)),Xt.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-Bt)*et,jt*nt,(Ot-kt)*et,(jt+Bt)*nt,(Ot-Bt)*et,(jt+kt)*nt)),Bt=.1,kt=Ft*.1,Ot=.4,jt=.9;var Ut=new go.PathFigure((Ot-Bt)*et,jt*nt,!0);return ht.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt-Bt)*nt,(Ot-Bt)*et,(jt-kt)*nt,(Ot-kt)*et,(jt-Bt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ot+Bt)*et,jt*nt,(Ot+kt)*et,(jt-Bt)*nt,(Ot+Bt)*et,(jt-kt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ot*et,(jt+Bt)*nt,(Ot+Bt)*et,(jt+kt)*nt,(Ot+kt)*et,(jt+Bt)*nt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ot-Bt)*et,jt*nt,(Ot-kt)*et,(jt+Bt)*nt,(Ot-Bt)*et,(jt+kt)*nt)),ht}),go.Shape.defineFigureGenerator("RailShipment",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.1*et,.4*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*nt).close());var gt=new go.PathFigure(.45*et,.7*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*nt));var vt=new go.PathFigure(.55*et,.4*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*nt).close());var Ot=.05,jt=Ft*.05,Xt=.175,Ut=.95,wt=new go.PathFigure((Xt-Ot)*et,Ut*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Bezier,Xt*et,(Ut-Ot)*nt,(Xt-Ot)*et,(Ut-jt)*nt,(Xt-jt)*et,(Ut-Ot)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Xt+Ot)*et,Ut*nt,(Xt+jt)*et,(Ut-Ot)*nt,(Xt+Ot)*et,(Ut-jt)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,Xt*et,(Ut+Ot)*nt,(Xt+Ot)*et,(Ut+jt)*nt,(Xt+jt)*et,(Ut+Ot)*nt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,(Xt-Ot)*et,Ut*nt,(Xt-jt)*et,(Ut+Ot)*nt,(Xt-Ot)*et,(Ut+jt)*nt));var Ot=.05,jt=Ft*.05,Xt=.375,Ut=.95,Bt=new go.PathFigure((Xt-Ot)*et,Ut*nt,!0);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,Xt*et,(Ut-Ot)*nt,(Xt-Ot)*et,(Ut-jt)*nt,(Xt-jt)*et,(Ut-Ot)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(Xt+Ot)*et,Ut*nt,(Xt+jt)*et,(Ut-Ot)*nt,(Xt+Ot)*et,(Ut-jt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,Xt*et,(Ut+Ot)*nt,(Xt+Ot)*et,(Ut+jt)*nt,(Xt+jt)*et,(Ut+Ot)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(Xt-Ot)*et,Ut*nt,(Xt-jt)*et,(Ut+Ot)*nt,(Xt-Ot)*et,(Ut+jt)*nt));var Ot=.05,jt=Ft*.05,Xt=.625,Ut=.95,kt=new go.PathFigure((Xt-Ot)*et,Ut*nt,!0);ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,Xt*et,(Ut-Ot)*nt,(Xt-Ot)*et,(Ut-jt)*nt,(Xt-jt)*et,(Ut-Ot)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Xt+Ot)*et,Ut*nt,(Xt+jt)*et,(Ut-Ot)*nt,(Xt+Ot)*et,(Ut-jt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,Xt*et,(Ut+Ot)*nt,(Xt+Ot)*et,(Ut+jt)*nt,(Xt+jt)*et,(Ut+Ot)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(Xt-Ot)*et,Ut*nt,(Xt-jt)*et,(Ut+Ot)*nt,(Xt-Ot)*et,(Ut+jt)*nt));var Ot=.05,jt=Ft*.05,Xt=.825,Ut=.95,de=new go.PathFigure((Xt-Ot)*et,Ut*nt,!0);ht.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,Xt*et,(Ut-Ot)*nt,(Xt-Ot)*et,(Ut-jt)*nt,(Xt-jt)*et,(Ut-Ot)*nt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Xt+Ot)*et,Ut*nt,(Xt+jt)*et,(Ut-Ot)*nt,(Xt+Ot)*et,(Ut-jt)*nt)),de.add(new go.PathSegment(go.PathSegment.Bezier,Xt*et,(Ut+Ot)*nt,(Xt+Ot)*et,(Ut+jt)*nt,(Xt+jt)*et,(Ut+Ot)*nt)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Xt-Ot)*et,Ut*nt,(Xt-jt)*et,(Ut+Ot)*nt,(Xt-Ot)*et,(Ut+jt)*nt).close());var Gt=new go.PathFigure(0,nt,!1);return ht.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,et,nt).close()),ht}),go.Shape.defineFigureGenerator("Warehouse",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var gt=new go.PathFigure(0,.2*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt).close());var vt=new go.PathFigure(.15*et,nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.4*et,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.15*et,nt).close());var wt=.05,Bt=Ft*.05,kt=.35,Ot=.775,jt=new go.PathFigure((kt-wt)*et,Ot*nt,!0);return ht.add(jt),jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(Ot-wt)*nt,(kt-wt)*et,(Ot-Bt)*nt,(kt-Bt)*et,(Ot-wt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt+wt)*et,Ot*nt,(kt+Bt)*et,(Ot-wt)*nt,(kt+wt)*et,(Ot-Bt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,kt*et,(Ot+wt)*nt,(kt+wt)*et,(Ot+Bt)*nt,(kt+Bt)*et,(Ot+wt)*nt)),jt.add(new go.PathSegment(go.PathSegment.Bezier,(kt-wt)*et,Ot*nt,(kt-Bt)*et,(Ot+wt)*nt,(kt-wt)*et,(Ot+Bt)*nt).close()),ht}),go.Shape.defineFigureGenerator("ControlCenter",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt).close()),ht}),go.Shape.defineFigureGenerator("Bluetooth",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.75*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.25*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Bookmark",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.add(new go.PathSegment(go.PathSegment.Line,0,0)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Globe",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*nt,.75*et,0,et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,et,.75*nt,.75*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.25*et,nt,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*nt,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,nt,.15*et,.25*nt,.15*et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*nt,.85*et,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*nt,.35*et,.3*nt,.65*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*nt,.35*et,.7*nt,.65*et,.7*nt)),ht}),go.Shape.defineFigureGenerator("Wave",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.25*nt,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*nt,.1*et,0,.2*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*nt,.425*et,.5*nt,.575*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*nt,.8*et,0,.9*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.25*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.75*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*nt,.1*et,.5*nt,.2*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*nt,.425*et,nt,.575*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*nt,.8*et,.5*nt,.9*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Operator",function(Tt,et,nt){var ht=new go.Geometry,st=.3,gt=Ft*.3,vt=.5,wt=.7,Bt=new go.PathFigure((vt-st)*et,wt*nt,!0);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,wt*nt,(vt+gt)*et,(wt-st)*nt,(vt+st)*et,(wt-gt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,wt*nt,(vt-gt)*et,(wt+st)*nt,(vt-st)*et,(wt+gt)*nt));var kt=new go.PathFigure(0,.7*nt,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*nt,0,0,et,0)),ht}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.5*et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.65*et,.3*nt,.65*et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*nt,.35*et,.3*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,nt,.3*et,.6*nt,.1*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.2*et,nt,.35*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,nt,.7*et,.6*nt,.9*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*nt,.8*et,nt,.65*et,.95*nt)),ht}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et,0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,0,.075*nt,0,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,nt,0,nt,.4*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*nt,.8*et,nt,.85*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,0)),ht}),go.Shape.defineFigureGenerator("Battery",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*nt));var gt=new go.PathFigure(0,.6*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,0,.4*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,et,.4*nt)),ht}),go.Shape.defineFigureGenerator("Delete",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*.5,vt=.5,wt=.5,Bt=new go.PathFigure((vt-st)*et,wt*nt,!0);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,wt*nt,(vt+gt)*et,(wt-st)*nt,(vt+st)*et,(wt-gt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,wt*nt,(vt-gt)*et,(wt+st)*nt,(vt-st)*et,(wt+gt)*nt));var kt=new go.PathFigure(.15*et,.5*nt,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*nt)),ht}),go.Shape.defineFigureGenerator("Flag",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.1*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Move,0,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*nt,.15*et,0,.35*et,0)),st.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*nt,.65*et,.2*nt,.85*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*nt,.85*et,.6*nt,.65*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*nt,.35*et,.4*nt,.15*et,.4*nt).close()),ht}),go.Shape.defineFigureGenerator("Help",function(Tt,et,nt){var ht=new go.Geometry,st=.5,gt=Ft*.5,vt=.5,wt=.5,Bt=new go.PathFigure((vt-st)*et,wt*nt,!1);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,wt*nt,(vt+gt)*et,(wt-st)*nt,(vt+st)*et,(wt-gt)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),Bt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,wt*nt,(vt-gt)*et,(wt+st)*nt,(vt-st)*et,(wt+gt)*nt).close()),st=.05,gt=Ft*.05,vt=.5,wt=.8;var kt=new go.PathFigure((vt-st)*et,wt*nt,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt-st)*nt,(vt-st)*et,(wt-gt)*nt,(vt-gt)*et,(wt-st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt+st)*et,wt*nt,(vt+gt)*et,(wt-st)*nt,(vt+st)*et,(wt-gt)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,vt*et,(wt+st)*nt,(vt+st)*et,(wt+gt)*nt,(vt+gt)*et,(wt+st)*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,(vt-st)*et,wt*nt,(vt-gt)*et,(wt+st)*nt,(vt-st)*et,(wt+gt)*nt).close()),kt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*nt)),kt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*nt,.75*et,.475*nt,.75*et,.225*nt)),kt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*nt,.4*et,.2*nt,.3*et,.25*nt)),ht}),go.Shape.defineFigureGenerator("Location",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.5*et,nt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*nt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*nt,.5*et,0,.025*et,.025*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Lock",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*nt)),ht}),go.Shape.defineFigureGenerator("Unlocked",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,.5*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.5*nt));var gt=new go.PathFigure(.2*et,.5*nt,!1);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*nt)),gt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*nt,.25*et,0,.75*et,0)),gt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*nt)),ht}),go.Shape.defineFigureGenerator("Gear",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*nt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*nt,.79840625*et,.39915625*nt,.7834375*et,.3635*nt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*nt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*nt,.64228125*et,.2188125*nt,.603875*et,.2021875*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*nt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*nt,.39759375*et,.20190625*nt,.36053125*et,.2176875*nt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*nt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*nt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*nt,.21765625*et,.36059375*nt,.201875*et,.397625*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*nt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*nt,.20221875*et,.603875*nt,.21884375*et,.64228125*nt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*nt,.36353125*et,.78340625*nt,.3991875*et,.79840625*nt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*nt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*nt,.602375*et,.79809375*nt,.63946875*et,.78234375*nt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*nt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*nt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*nt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*nt,.78234375*et,.63940625*nt,.798125*et,.602375*nt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*nt,.1*et,.1*nt).close()))}),go.Shape.defineFigureGenerator("Hand",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.5*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*nt,0,.375*nt,.05*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*nt,.3*et,.225*nt,.4*et,.175*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*nt,.46*et,.05*nt,.525*et,.05*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*nt,.525*et,.275*nt,.475*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*nt,et,.4*nt,et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*nt,.675*et,.55*nt,.675*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*nt,.65*et,.7*nt,.65*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,nt,.61*et,.85*nt,.61*et,nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*nt,.435*et,nt,0,nt).close()),ht}),go.Shape.defineFigureGenerator("Map",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,.2*nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt).close()),st.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt)),st.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),st.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*nt)),ht}),go.Shape.defineFigureGenerator("Eject",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et,nt)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.7)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.7).close());var gt=new go.PathFigure(0,nt*.6,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et,.6*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),ht}),go.Shape.defineFigureGenerator("Pencil",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*nt).close()))}),go.Shape.defineFigureGenerator("Building",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*1,nt*1,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,.046*et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.3)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,nt*.85)),st.add(new go.PathSegment(go.PathSegment.Line,et,nt*.85).close());var gt=new go.PathFigure(.126*et,.85*nt,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*nt)),gt.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*nt).close());var vt=new go.PathFigure(.402*et,.85*nt,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*nt)),vt.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*nt).close());var wt=new go.PathFigure(.678*et,.85*nt,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*nt)),wt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*nt).close());var Bt=new go.PathFigure(.5*et,.1*nt,!1);return ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*nt)),Bt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*nt).close()),ht}),go.Shape.defineFigureGenerator("Staircase",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt*1,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.8)),st.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.8)),st.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.6)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.6)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.4)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.4)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.2)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.2)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.15)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.15)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*.95).close()),ht}),go.Shape.defineFigureGenerator("5Bars",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,nt*1,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.184,nt*(1-.184)).close());var gt=new go.PathFigure(et*.204,nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.204,nt*(1-.184))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*(1-.184*2))),gt.add(new go.PathSegment(go.PathSegment.Line,et*.388,nt*1).close());var vt=new go.PathFigure(et*.408,nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.408,nt*(1-.184*2))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*(1-.184*3))),vt.add(new go.PathSegment(go.PathSegment.Line,et*.592,nt*1).close());var wt=new go.PathFigure(et*.612,nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.612,nt*(1-.184*3))),wt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*(1-.184*4))),wt.add(new go.PathSegment(go.PathSegment.Line,et*.796,nt*1).close());var Bt=new go.PathFigure(et*.816,nt,!0);return ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,et*.816,nt*(1-.184*4))),Bt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-.184*5))),Bt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1).close()),ht}),go.Shape.defineFigureGenerator("PC",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var gt=new go.PathFigure(et*.055,.07*nt,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.07)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.1).close());var vt=new go.PathFigure(et*.055,.13*nt,!0);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.13)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.16)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.16).close());var wt=new go.PathFigure(et*.055,.18*nt,!0);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.18)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.245,nt*.21)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.055,nt*.21).close());var Bt=new go.PathFigure(et*1,0,!0);return ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),Bt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.65)),Bt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.65).close()),ht}),go.Shape.defineFigureGenerator("Plane",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(.55*et,nt,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*nt,0,.4*nt,.225*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*nt)),st.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*nt,.975*et,0,et,.08*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*nt)),st.add(new go.PathSegment(go.PathSegment.Line,.55*et,nt).close()),ht}),go.Shape.defineFigureGenerator("Key",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*1,nt*.5,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.35*nt)),st.add(new go.PathSegment(go.PathSegment.Line,0,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*nt)),st.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*nt).close()),st.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*nt)),st.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*nt,.075*et,.075*nt).close()),ht}),go.Shape.defineFigureGenerator("FilmTape",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(0,0,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),st.add(new go.PathSegment(go.PathSegment.Line,0,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.08,nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*.95)),st.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var gt=new go.PathFigure(0,0,!1);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),gt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1));var vt=new go.PathFigure(et*.11,nt*.1,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.1)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),nt*.8)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.11,nt*.8).close());var wt=new go.PathFigure(et*(.11+.24133333*1+.028*1),nt*.1,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.1)),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),nt*.8)),wt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),nt*.8).close());var Bt=new go.PathFigure(et*(.11+.24133333*2+.028*2),nt*.1,!1);return ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.1)),Bt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),nt*.8)),Bt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),nt*.8).close()),ht}),go.Shape.defineFigureGenerator("FloppyDisk",function(Tt,et,nt){var ht=new go.Geometry,st=8,gt=st*Ft,vt=new go.PathFigure(st,0,!1);ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.14)),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,nt,et,nt-gt,et-gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,st,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-st,gt,nt,0,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Line,0,st)),vt.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,gt,gt,0).close());var wt=new go.PathFigure(et*.83,0,!1);ht.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.3)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*0).close());var Bt=new go.PathFigure(et*.83,nt*1,!1);ht.add(Bt),Bt.add(new go.PathSegment(go.PathSegment.Line,et*.83,nt*.5)),Bt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*.5)),Bt.add(new go.PathSegment(go.PathSegment.Line,et*.17,nt*1).close());var kt=new go.PathFigure(et*.78,nt*.05,!1);return ht.add(kt),kt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.05)),kt.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.25)),kt.add(new go.PathSegment(go.PathSegment.Line,et*.78,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("SpeechBubble",function(Tt,et,nt){var ht=Tt?Tt.parameter1:NaN;(isNaN(ht)||ht<0)&&(ht=15),ht=Math.min(ht,et/3),ht=Math.min(ht,nt/3);var st=ht*Ft,gt=nt*.8,vt=new go.Geometry,wt=new go.PathFigure(ht,0,!0);return vt.add(wt),wt.add(new go.PathSegment(go.PathSegment.Line,et-ht,0)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et,ht,et-st,0,et,st)),wt.add(new go.PathSegment(go.PathSegment.Line,et,gt-ht)),wt.add(new go.PathSegment(go.PathSegment.Bezier,et-ht,gt,et,gt-st,et-st,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.7,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt)),wt.add(new go.PathSegment(go.PathSegment.Line,et*.55,gt)),wt.add(new go.PathSegment(go.PathSegment.Line,ht,gt)),wt.add(new go.PathSegment(go.PathSegment.Bezier,0,gt-ht,st,gt,0,gt-st)),wt.add(new go.PathSegment(go.PathSegment.Line,0,ht)),wt.add(new go.PathSegment(go.PathSegment.Bezier,ht,0,0,st,st,0).close()),st>1?(vt.spot1=new go.Spot(0,0,st,st),vt.spot2=new go.Spot(1,.8,-st,-st)):(vt.spot1=go.Spot.TopLeft,vt.spot2=new go.Spot(1,.8)),vt}),go.Shape.defineFigureGenerator("Repeat",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*.45,!0);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.2,nt*.45).close());var gt=new go.PathFigure(et*1,nt*.55,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.55)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.1)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*.55).close()),ht}),go.Shape.defineFigureGenerator("Windows",function(Tt,et,nt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,nt)).add(new go.PathSegment(go.PathSegment.Line,0,nt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*nt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*nt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*nt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*nt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*nt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*nt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*nt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*.1,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.9)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.9).close());var gt=new go.PathFigure(et*.1,nt*.2,!0);ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.25)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.22,nt*.285)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.1,nt*.37)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.32)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.275,nt*.25).close());var vt=new go.PathFigure(et*.28,nt*.37,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.37)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.41)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.28,nt*.41).close()),ht}),go.Shape.defineFigureGenerator("Beaker",function(Tt,et,nt){var ht=new go.Geometry,st=15,gt=st*Ft,vt=new go.PathFigure(et*.62,nt*.475,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et,nt-st)),vt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,nt,et,nt-gt,et-gt,nt)),vt.add(new go.PathSegment(go.PathSegment.Line,st,nt)),vt.add(new go.PathSegment(go.PathSegment.Bezier,0,nt-st,gt,nt,0,nt-gt)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.475)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.38,nt*.03)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*0)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.62,nt*.03).close()),gt>1?(ht.spot1=new go.Spot(0,0,gt,gt),ht.spot2=new go.Spot(1,1,-gt,-gt)):(ht.spot1=go.Spot.TopLeft,ht.spot2=go.Spot.BottomRight),ht}),go.Shape.defineFigureGenerator("Download",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var vt=new go.PathFigure(et*.4,nt*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.66)),vt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.44)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*0).close()),ht}),go.Shape.defineFigureGenerator("Bin",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;return st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close()),ht}),go.Shape.defineFigureGenerator("Upload",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*0,nt*1,!0);ht.add(st);var gt=.1/.3;st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.8,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.66,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.755,nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*.93,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.64,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.61,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.39,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.36,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*.07,nt*(1-gt))),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*.055)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*(1-gt)).close());var vt=new go.PathFigure(et*.5,nt*0,!0);return ht.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,et*.26,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.4,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.63)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.6,nt*.25)),vt.add(new go.PathSegment(go.PathSegment.Line,et*.74,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("EmptyDrink",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.15,nt*0,!1);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close()),ht}),go.Shape.defineFigureGenerator("Drink",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.15,nt*0,!1);ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.85,nt*0)),st.add(new go.PathSegment(go.PathSegment.Line,et*.7,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.3,nt*1).close());var gt=new go.PathFigure(et*.235,nt*.28,!0);return ht.add(gt),gt.add(new go.PathSegment(go.PathSegment.Line,et*.765,nt*.28)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.655,nt*.97)),gt.add(new go.PathSegment(go.PathSegment.Line,et*.345,nt*.97).close()),ht}),go.Shape.defineFigureGenerator("4Arrows",function(Tt,et,nt){var ht=new go.Geometry,st=new go.PathFigure(et*.5,nt*0,!0);return ht.add(st),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*1,nt*.5)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.65)),st.add(new go.PathSegment(go.PathSegment.Line,et*.75,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.55,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.65,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.5,nt*1)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.75)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.55)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.65)),st.add(new go.PathSegment(go.PathSegment.Line,et*0,nt*.5)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.35)),st.add(new go.PathSegment(go.PathSegment.Line,et*.25,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.45)),st.add(new go.PathSegment(go.PathSegment.Line,et*.45,nt*.25)),st.add(new go.PathSegment(go.PathSegment.Line,et*.35,nt*.25).close()),ht}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Dn={},An="5.0",St={},Ct=null,It=!1,ee=!1,Ne=null,Vt=!1,fe=null,Ft=null,ze=0;ze<arguments.length;ze++){var we=arguments[ze];if(we!==null)switch(typeof we){case"number":An=we.toFixed(1);break;case"string":we.match(new RegExp("^[0-9]\\.[0-9]+$"))?An=we:Ne=we;break;case"object":typeof we.is3D!="undefined"?Ct=we:St=we;break;case"boolean":It=we,ee=!0;break}}Ct===null&&(Ct={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},St.material_id!==void 0&&!ee&&(It=!0)),Ne!==null&&St.id===void 0&&(St.id=Ne);var oe="",ve="",ye=!1,Re=null,Tt=null,et=null,nt=!1,ht=null,st=null,gt=null,vt=null,wt=null;St.height!==void 0&&(St.height=Math.round(St.height)),St.width!==void 0&&(St.width=Math.round(St.width));var Bt=function(Ae){return parseFloat(Ae)>4?parseFloat(Ae):5};Dn.setHTML5Codebase=function(Ae,Ue){Ft=Ae,Ce(Ae,Ue)},Dn.setJavaCodebase=Dn.setJavaCodebaseVersion=Dn.isCompiledInstalled=Dn.setPreCompiledScriptPath=Dn.setPreCompiledResourcePath=function(){},Dn.setHTML5CodebaseVersion=function(Ae,Ue){var Sn=parseFloat(Ae);if(Sn!==NaN&&Sn<5){console.log("The GeoGebra HTML5 codebase version "+Sn+" is deprecated. Using version latest instead.");return}fe=Ae,Ht(Ae,Ue)},Dn.getHTML5CodebaseVersion=function(){return Tt},Dn.getParameters=function(){return St},Dn.setFontsCSSURL=function(Ae){vt=Ae},Dn.setGiacJSURL=function(Ae){},Dn.setJNLPFile=function(Ae){oe=Ae},Dn.setJNLPBaseDir=function(Ae){},Dn.inject=function(){function Ae(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",Sn=St.id,Xn,Pn=!1,Gn=0;Gn<arguments.length;Gn++){var Ee=arguments[Gn];typeof Ee=="string"?(Ee=Ee.toLowerCase(),Ee.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ue=Ee:Sn=arguments[Gn]):typeof Ee=="boolean"?Pn=Ee:Ee instanceof HTMLElement&&(Xn=Ee)}Jn();function Jn(){if(!Vt){setTimeout(Jn,200);return}Ue=hn(Ue);var ai=Xn||document.getElementById(Sn);if(!ai){console.log("possibly bug on ajax loading? ");return}if(Dn.removeExistingApplet(ai,!1),St.width===void 0&&ai.clientWidth&&(St.width=ai.clientWidth),St.height===void 0&&ai.clientHeight&&(St.height=ai.clientHeight),!(St.width&&St.height)&&Ue==="html5"&&(delete St.width,delete St.height),Re=Ue,Ue==="screenshot")me(ai,St);else{var ui=!1;St.hasOwnProperty("playButton")&&St.playButton||St.hasOwnProperty("clickToLoad")&&St.clickToLoad?ui=!0:St.hasOwnProperty("playButtonAutoDecide")&&St.playButtonAutoDecide&&(ui=(!kt()||Ae())&&Ot()),ui?(Re="screenshot",qe(ai,St,Pn,Ue)):Ve(ai,St,Pn)}}};function kt(){try{return window.self!==window.top}catch(Ae){return!0}}function Ot(){return St.hasOwnProperty("screenshotGenerator")&&St.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Dn.getViews=function(){return Ct},Dn.isJavaInstalled=function(){return!1};var jt=function(Ae){var Ue=function(Gn){var Ee=JSON.parse(Gn),Jn=function(ln){return ln.type=="G"||ln.type=="E"},ai=Ee.elements?Ee.elements.filter(Jn)[0]:Ee;if(!ai||!ai.url){Sn();return}St.fileName=ai.url,Xt(ai.settings||{}),Ct.is3D=!0;var ui="https://www.geogebra.org/images/";Dn.setPreviewImage(ht||ai.previewUrl,ui+"GeoGebra_loading.png",ui+"applet_play.png"),Ae()},Sn=function(){St.onError&&St.onError(),bn("Error: Fetching material (id "+St.material_id+") failed.",St)},Xn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Pn="/materials/"+St.material_id+"?scope=basic";Ut("https://"+Xn+"/api/proxy.php?path="+encodeURIComponent(Pn),Ue,Sn)};function Xt(Ae){var Ue=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Sn){Ae[Sn]=!!Ae[Sn]}),Ue.forEach(function(Sn){St[Sn]===void 0&&Ae[Sn]!==void 0&&(St[Sn]=Ae[Sn])}),St.showToolBarHelp===void 0&&(St.showToolBarHelp=St.showToolBar)}function Ut(Ae,Ue,Sn){var Xn=new XMLHttpRequest;Xn.open("GET",Ae),Xn.onload=function(){Ue(Xn.responseText)},Xn.onerror=Sn,Xn.send()}Dn.isHTML5Installed=function(){return!0},Dn.getLoadedAppletType=function(){return Re},Dn.setPreviewImage=function(Ae,Ue,Sn){ht=Ae,st=Ue,gt=Sn},Dn.removeExistingApplet=function(Ae,Ue){var Sn;typeof Ae=="string"&&(Ae=document.getElementById(Ae)),Re=null;var Xn=null;for(Sn=0;Sn<Ae.childNodes.length;Sn++){var Pn=Ae.childNodes[Sn],Gn=Pn.className;Gn==="applet_screenshot"?Ue?(Pn.style.display="block",Re="screenshot"):Pn.style.display="none":Gn!=="applet_scaler prerender"&&(Ae.removeChild(Pn),Xn=Gn&&Gn.indexOf("appletParameters")!=-1?Pn.id:null,Sn--)}var Ee=St.id!==void 0?St.id:Xn,Jn=window[Ee];Jn&&typeof Jn.getBase64=="function"&&(Jn.remove(),window[Ee]=null)},Dn.refreshHitPoints=function(){if(Bt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ae=Dn.getAppletObject();return Ae&&typeof Ae.recalculateEnvironments=="function"?(Ae.recalculateEnvironments(),!0):!1},Dn.startAnimation=function(){var Ae=Dn.getAppletObject();return Ae&&typeof Ae.startAnimation=="function"?(Ae.startAnimation(),!0):!1},Dn.stopAnimation=function(){var Ae=Dn.getAppletObject();return Ae&&typeof Ae.stopAnimation=="function"?(Ae.stopAnimation(),!0):!1},Dn.getAppletObject=function(){var Ae=St.id!==void 0?St.id:"ggbApplet";return window[Ae]},Dn.resize=function(){};var de=function(Ae,Ue,Sn){var Xn=document.createElement("param");Xn.setAttribute("name",Ue),Xn.setAttribute("value",Sn),Ae.appendChild(Xn)},Gt=function(Ae){return Ae&&Ae!=="false"},Ve=function(Ae,Ue,Sn){Bt(Tt)<=4.2&&(Sn=!0);var Xn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Tt||ggbHTML5LoadedCodebaseIsWebSimple&&!nt)&&(Xn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Pn=document.createElement("div");Pn.classList.add("appletParameters","notranslate");var Gn=Ue.width,Ee=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(Bt(Tt)<=4.4)Gt(Ue.showToolBar)&&(Ue.height-=7),Gt(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&Gt(Ue.showToolBar)&&(Ue.width=605,Gn=605);else{var Jn=100;(Gt(Ue.showToolBar)||Gt(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),Jn=Gt(Ue.showMenuBar)?245:155),Gn<Jn&&(Ue.width=Jn,Gn=Jn)}Pn.style.border="none",Pn.style.display="inline-block";for(var ai in Ue)Ue.hasOwnProperty(ai)&&ai!=="appletOnLoad"&&Pn.setAttribute("data-param-"+ai,Ue[ai]);vt&&Pn.setAttribute("data-param-fontscssurl",vt),Dn.resize=function(){GGBAppletUtils.responsiveResize(Ae,Ue)},window.addEventListener("resize",function(mt){Dn.resize()});var ui=typeof Ue.appletOnLoad=="function"?Ue.appletOnLoad:function(){};if(!Sn&&Ue.width!==void 0){Ue.hasOwnProperty("showSplash")||Pn.setAttribute("data-param-showSplash","false");var ln=Ae.querySelector(".applet_scaler.prerender"),Te=ln!==null;if(Te)var Me=ln.querySelector(".ggb_preview");else{var Me=je(Gn,Ee,Ue.borderColor,!1);ln=document.createElement("div"),ln.className="applet_scaler",ln.style.position="relative",ln.style.display="block",ln.style.width=Gn+"px",ln.style.height=Ee+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ln,"66%"),Bt(Tt)>=5?(Ue.appletOnLoad=function(mt){var Mt=Ae.querySelector(".ggb_preview");Mt&&Mt.parentNode.removeChild(Mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ln),window.GGBT_wsf_view&&$(window).trigger("resize"),ui(mt)},Te||ln.appendChild(Me)):Pn.appendChild(Me),ln.appendChild(Pn),Te||Ae.appendChild(ln),setTimeout(function(){Dn.resize()},1)}else{var ie=document.createElement("div");ie.className="applet_scaler",ie.style.position="relative",ie.style.display="block",ie.appendChild(Pn),Ae.appendChild(ie),Ue.appletOnLoad=function(mt){Dn.resize(),ui(mt)}}function Kt(mt,Mt){Mt&&typeof Mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(mt,Mt.appletOnLoad):renderGGBElement(mt),bn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Mt)}function Oe(mt,Mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:mt,params:Mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Rt){Kt(Rt.article,Rt.params)}),html5AppletsToProcess=null)},Bt(Tt)<5&&(mt.className+=" geogebraweb")):Kt(mt,Mt)}if(Xn){scriptLoadStarted=!0;for(var ke=0;ke<Pn.childNodes.length;ke++){var te=Pn.childNodes[ke].tagName;te==="TABLE"&&(Pn.removeChild(Pn.childNodes[ke]),ke--)}if(ggbHTML5LoadedScript!==null){var qt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');qt!=null&&qt.parentNode.removeChild(qt)}var Dt=document.createElement("script"),xt=function(){Oe(Pn,Ue)};Dt.src=ve+et,ggbHTML5LoadedCodebaseIsWebSimple=nt,ggbHTML5LoadedCodebaseVersion=Tt,ggbHTML5LoadedScript=Dt.src,bn("GeoGebra HTML5 codebase loaded: '"+ve+"'.",Ue),!Ft&&(!fe||fe=="5.0")?(nt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),xt()):ve.requirejs?__webpack_require__.e(7374).then(function(){var mt=[__webpack_require__(97374)];xt.apply(null,mt)}.bind(this)).catch(__webpack_require__.oe):(Dt.onload=xt,Ae.appendChild(Dt))}else Oe(Pn,Ue);Ue.height=Ee,Ue.width=Gn},me=function(Ae,Ue,Sn){var Xn=je(Ue.width,Ue.height,Ue.borderColor,Sn),Pn=document.createElement("div");Pn.style.position="relative",Pn.style.display="block",Pn.style.width=Ue.width+"px",Pn.style.height=Ue.height+"px",Pn.className="applet_screenshot applet_scaler"+(Sn?" applet_screenshot_play":""),Pn.appendChild(Xn);var Gn=GGBAppletUtils.getScale(Ue,Ae,Sn);Sn?(Ae.appendChild(Ye()),window.GGBT_wsf_view||(Ae.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pn,"66%"),Ae.appendChild(Pn),Gn!==1&&!isNaN(Gn)&&(GGBAppletUtils.scaleElement(Pn,Gn),Pn.style.width=Ue.width+"px",Pn.style.height=Ue.height+"px",Pn.parentNode.style.width=Ue.width*Gn+"px",Pn.parentNode.style.height=Ue.height*Gn+"px"),Dn.resize=function(){sn(Ae,Xn,Pn,Sn)},window.addEventListener("resize",function(Ee){Dn.resize()}),Dn.resize()};function sn(Ae,Ue,Sn,Xn){if(Ae.contains(Ue)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ae.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ae)}var Pn=GGBAppletUtils.getScale(St,Ae,Xn);Sn.parentNode!==null&&(!isNaN(Pn)&&Pn!==1?(GGBAppletUtils.scaleElement(Sn,Pn),Sn.parentNode.style.width=St.width*Pn+"px",Sn.parentNode.style.height=St.height*Pn+"px"):(GGBAppletUtils.scaleElement(Sn,1),Sn.parentNode.style.width=St.width+"px",Sn.parentNode.style.height=St.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ae),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Dn.onExitFullscreen=function(Ae,Ue){Ue.appendChild(Ae)};var qe=function(Ae,Ue,Sn,Xn){me(Ae,Ue,!0);for(var Pn=function(){var Jn=[];for(Ee=0;Ee<Ae.childNodes.length;Ee++)Jn.push(Ae.childNodes[Ee]);if(window.GGBT_wsf_view){var ai=window.GGBT_wsf_view.renderFullScreen(Ae,Ue.id),ui=document.getElementById("fullscreencontainer"),ln=jQuery(Ae).find(".fullscreencontent");ln.length>0?(ai.remove(),ln.attr("id","fullscreencontent").show(),jQuery(ui).append(ln),window.dispatchEvent(new Event("resize"))):Ve(ai,Ue,!1),window.GGBT_wsf_view.launchFullScreen(ui)}else Re=Xn,Ve(Ae,Ue,!1);if(!window.GGBT_wsf_view)for(Ee=0;Ee<Jn.length;Ee++)Ae.removeChild(Jn[Ee])},Gn=Ae.getElementsByClassName("ggb_preview_play"),Ee=0;Ee<Gn.length;Ee++)Gn[Ee].addEventListener("click",Pn,!1),Gn[Ee].addEventListener("ontouchstart",Pn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ae),Ot()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ye=function(){var Ae=document.createElement("div");if(Ae.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ue='.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");}',Sn=document.createElement("style");Sn.styleSheet?Sn.styleSheet.cssText=Ue:Sn.appendChild(document.createTextNode(Ue)),document.getElementsByTagName("head")[0].appendChild(Sn)}return Ae},je=function(Ae,Ue,Sn,Xn){var Pn=document.createElement("div");Pn.className="ggb_preview",Pn.style.position="absolute",Pn.style.zIndex="90",Pn.style.width=Ae-2+"px",Pn.style.height=Ue-2+"px",Pn.style.top="0px",Pn.style.left="0px",Pn.style.overflow="hidden",Pn.style.backgroundColor="white";var Gn="lightgrey";Sn!==void 0&&(Sn==="none"?Gn="transparent":Gn=Sn),Pn.style.border="1px solid "+Gn;var Ee=document.createElement("img");if(Ee.style.position="relative",Ee.style.zIndex="1000",Ee.style.top="-1px",Ee.style.left="-1px",ht!==null&&Ee.setAttribute("src",ht),Ee.style.opacity=.7,st!==null){var Jn,ai,ui;if(!Xn){Jn=document.createElement("img"),Jn.style.position="absolute",Jn.style.zIndex="1001",Jn.style.opacity=1,Ee.style.opacity=.3,ai=360,ai>Ae/4*3&&(ai=Ae/4*3),ui=ai/5.8,Jn.setAttribute("src",st),Jn.setAttribute("width",ai),Jn.setAttribute("height",ui);var ln=(Ae-ai)/2,Te=(Ue-ui)/2;Jn.style.left=ln+"px",Jn.style.top=Te+"px",Pn.appendChild(Jn)}}return Pn.appendChild(Ee),Pn},hn=function(Ae){return Ae=Ae.toLowerCase(),Ae==="html5"||Ae==="screenshot"?Ae:"html5"},ge=["web","webSimple","web3d","tablet","tablet3d","phone"],Ht=function(Ae,Ue){if(Tt=Ae,Ue){Ce(Tt,!0);return}var Sn=!It;if(Sn){var Xn=Bt(Tt);!isNaN(Xn)&&Xn<4.4&&(Sn=!1)}var Pn,Gn;window.location.protocol.substr(0,4)==="http"?Pn=window.location.protocol:Pn="http:";var Ee=Tt.indexOf("//");Ee>0?Gn=Tt:Ee===0?Gn=Pn+Tt:Gn="https://www.geogebra.org/apps/5.2.814.0/";for(var Jn in ge)if(Tt.slice(ge[Jn].length*-1)===ge[Jn]||Tt.slice((ge[Jn].length+1)*-1)===ge[Jn]+"/"){Ce(Gn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Sn&&!Ct.is3D&&!Ct.AV&&!Ct.SV&&!Ct.CV&&!Ct.EV2&&!Ct.CP&&!Ct.PC&&!Ct.DA&&!Ct.FI&&!Ct.PV&&!Gt(St.showToolBar)&&!Gt(St.showMenuBar)&&!Gt(St.showAlgebraInput)&&!Gt(St.enableRightClick)&&(!St.appName||St.appName=="classic")?Gn+="webSimple/":Gn+="web3d/",Ce(Gn,!1)},Ce=function(Ae,Ue){if(Ae.requirejs){ve=Ae;return}Ae.slice(-1)!=="/"&&(Ae+="/"),ve=Ae,Ue===null&&(Ue=Ae.indexOf("http")===-1),ye=Ue,et="web.nocache.js",nt=!1;var Sn=ve.split("/");Sn.length>1&&(!Ue&&Sn[Sn.length-2]==="webSimple"?(et="webSimple.nocache.js",nt=!0):ge.indexOf(Sn[Sn.length-2])>=0&&(et=Sn[Sn.length-2]+".nocache.js")),Sn=Ae.split("/"),Tt=Sn[Sn.length-3],Tt.substr(0,4)==="test"?Tt=Tt.substr(4,1)+"."+Tt.substr(5,1):(Tt.substr(0,3)==="war"||Tt.substr(0,4)==="beta")&&(Tt="5.0");var Xn=parseFloat(Tt);Xn!==NaN&&Xn<5&&Ae.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Xn+" is deprecated. Using version latest instead."),Ht("5.0",Ue))},bn=function(Ae,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log(Ae)};St.material_id!==void 0?jt(yn):yn();function yn(){var Ae=An;fe!==null?Ae=fe:parseFloat(Ae)<5&&(Ae="5.0"),Ht(Ae,!1),Ft!==null&&Ce(Ft,ye),Vt=!0}return Dn},GGBAppletUtils=function(){"use strict";function Dn(){return window.GGBT_wsf_edit!==void 0}function An(Vt,fe){fe!=1?(Vt.style.transformOrigin="0% 0% 0px",Vt.style.webkitTransformOrigin="0% 0% 0px",Vt.style.transform="scale("+fe+","+fe+")",Vt.style.webkitTransform="scale("+fe+","+fe+")",Vt.style.maxWidth="initial",Vt.querySelector(".ggb_preview")!==null&&(Vt.querySelector(".ggb_preview").style.maxWidth="initial"),Vt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Vt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Vt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Vt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Vt.style.transform="none",Vt.style.webkitTransform="none")}function St(Vt,fe,Ft,ze,we,oe){var ve=null;if(oe!=null&&oe!="")for(var ye=Vt.parentNode;ye!=null;)if((" "+ye.className+" ").indexOf(" "+oe+" ")>-1){ve=ye;break}else ye=ye.parentNode;var Re=0,Tt=0,et=0,nt=0,ht=0,st=0,gt=0;if(ve)Re=ve.offsetWidth,Tt=Math.max(ze?ve.offsetWidth:0,ve.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),Tt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=Re):(Re=window.innerWidth,Tt=window.innerHeight,et=window.innerWidth),Vt){var vt=Vt.getBoundingClientRect();vt.left>0&&vt.left<=Re&&(we===void 0||!we)&&(document.dir==="rtl"?(ht=Re-vt.width-vt.left,st=et<=480?10:30):(st=vt.left,ht=et<=480?10:30),nt=st+ht)}if(Vt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var wt=Vt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(nt=40,gt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(nt=0,gt=40)}}return Vt&&((Ft===void 0||!Ft)&&fe>0&&fe+nt<Re?Re=fe:Re-=nt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ft===void 0||!Ft)&&(Tt-=gt)),{width:Re,height:Tt}}function Ct(Vt,fe,Ft,ze,we){if(Vt.isScreenshoGenerator)return 1;var oe=ze!==void 0&&ze,ve=Vt.noScaleMargin!=null&&Vt.noScaleMargin,ye=function(wt){return wt&&wt!=="false"},Re=ye(Vt.autoHeight),Tt=St(fe,Vt.width,Ft,Re,oe&&window.GGBT_wsf_view||ve,we),et=parseInt(Tt.width),nt=Vt.width,ht=Vt.height;if(nt===void 0){var st=fe.querySelector(".appletParameters");st&&(nt=st.offsetWidth,ht=st.offsetHeight)}var gt=et/nt,vt=oe?1:Tt.height/ht;return Ft!==void 0&&!Ft&&(gt=Math.min(1,gt),vt=Math.min(1,vt)),Math.min(gt,vt)}function It(Vt,fe,Ft){var ze=1,we,oe=!1;if(Vt.hasOwnProperty("allowUpscale")&&(oe=Vt.allowUpscale),Vt.hasOwnProperty("scale")&&(ze=parseFloat(Vt.scale),(isNaN(ze)||ze===null||ze===0)&&(ze=1),ze>1&&(oe=!0)),fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(oe=!0),!(Vt.hasOwnProperty("disableAutoScale")&&Vt.disableAutoScale))we=Ct(Vt,fe,oe,Ft,Vt.scaleContainerClass);else return ze;return oe&&(!Vt.hasOwnProperty("scale")||ze===1)?we:Math.min(ze,we)}function ee(Vt){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ft=Math.min(window.innerHeight,document.documentElement.clientHeight),ze=Vt.getBoundingClientRect(),we=(fe-ze.width)/2,oe=(Ft-ze.height)/2;oe<0&&(oe=0),Vt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we<40?Vt.style.left="40px":Vt.style.left=we+"px",Vt.style.top=oe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(oe<40?Vt.style.top="40px":Vt.style.top=oe+"px",Vt.style.left=we+"px")}function Ne(Vt,fe){var Ft=Vt.querySelector(".appletParameters");if(Ft){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==Ft.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Vt)}if(Ft.parentElement&&/fullscreen/.test(Ft.parentElement.className))return;var ze=It(fe,Vt);Dn()&&Ft.setAttribute("data-param-scale",ze);for(var we=null,oe=0;oe<Vt.childNodes.length;oe++)if(Vt.childNodes[oe].className!==void 0&&Vt.childNodes[oe].className.match(/^applet_scaler/)){we=Vt.childNodes[oe];break}if(we!==null&&we.querySelector(".noscale")!==null)return;var ve=fe.id!==void 0?fe.id:"ggbApplet",ye=window[ve];(ye==null||!ye.recalculateEnvironments)&&we!==null&&!we.className.match(/fullscreen/)&&(we.parentNode.style.transform="",!isNaN(ze)&&ze!==1?(we.parentNode.style.width=fe.width*ze+"px",we.parentNode.style.height=fe.height*ze+"px",An(we,ze)):(An(we,1),we.parentNode.style.width=fe.width+"px",we.parentNode.style.height=fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ee(Vt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ft).parents(".content-added-content"))}}return{responsiveResize:Ne,isFlexibleWorksheetEditor:Dn,positionCenter:ee,getScale:It,scaleElement:An}}();__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 Dn=n.location.search;return Dn.indexOf(J)!=-1||Dn.indexOf(K)!=-1}function q(Dn,An){}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(Dn){var An=s[L].bindings;s[L].bindings=function(){for(var St=An?An():{},Ct=Dn[webModule.__softPermutationId],It=O;It<Ct.length;It++){var ee=Ct[It];St[ee[O]]=ee[P]}return St}};var t;function u(){return v(),t}function v(){if(!t){var Dn=o.createElement(Q);if(Dn.id=L,Dn.style.cssText=R+S,Dn.tabIndex=-1,o.body.appendChild(Dn),t=Dn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var An=document.compatMode==U?V:W;t.write(An+X),t.close()}}}function w(Dn){function An(Ct){function It(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ee=It();if(ee){Ct();return}function Ne(){if(!ee){if(!It())return;ee=!0,Ct(),o.removeEventListener&&o.removeEventListener(Z,Ne,!1),Vt&&clearInterval(Vt)}}o.addEventListener&&o.addEventListener(Z,Ne,!1);var Vt=setInterval(function(){Ne()},$)}function St(Ct){var It=u(),ee=It.body,Ne=It.createElement(_);Ne.language=ab,Ne.crossOrigin=W,Ne.src=Ct,webModule.__errFn&&(Ne.onerror=function(){webModule.__errFn(L,new Error(bb+Ct))}),ee.appendChild(Ne)}An(function(){St(Dn)})}webModule.__startLoadingFragment=function(Dn){return C(Dn)},webModule.__installRunAsyncCode=function(Dn){var An=u(),St=An.body,Ct=An.createElement(_);Ct.language=ab,Ct.text=Dn,St.appendChild(Ct),St.removeChild(Ct)};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(Dn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Dn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Dn){var An=c[Dn];return An==null?null:An},r=d,webModule.__errFn=e}function B(){function Dn(Vt){var fe=Vt.lastIndexOf(rb);fe==-1&&(fe=Vt.length);var Ft=Vt.indexOf(sb);Ft==-1&&(Ft=Vt.length);var ze=Vt.lastIndexOf(tb,Math.min(Ft,fe));return ze>=O?Vt.substring(O,ze+P):W}function An(Vt){if(!Vt.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=Vt+vb,Vt=Dn(fe.src)}return Vt}function St(){var Vt=__gwt_getMetaProperty(wb);return Vt!=null?Vt:W}function Ct(){for(var Vt=o.getElementsByTagName(_),fe=O;fe<Vt.length;++fe)if(Vt[fe].src.indexOf(xb)!=-1)return Dn(Vt[fe].src);return W}function It(){var Vt=o.getElementsByTagName(yb);return Vt.length>O?Vt[Vt.length-P].href:W}function ee(){var Vt=o.location;return Vt.href==Vt.protocol+zb+Vt.host+Vt.pathname+Vt.search+Vt.hash}var Ne=St();return Ne==W&&(Ne=Ct()),Ne==W&&(Ne=It()),Ne==W&&ee()&&(Ne=Dn(o.location.href)),Ne=An(Ne),Ne}function C(Dn){return Dn.match(/^\//)||Dn.match(/^[a-zA-Z]+:\/\//)?Dn:webModule.__moduleBase+Dn}function D(){var Dn=[],An=O,St=[],Ct=[];function It(Vt){var fe=Ct[Vt](),Ft=St[Vt];if(fe in Ft)return fe;var ze=[];for(var we in Ft)ze[Ft[we]]=we;throw r&&r(Vt,ze,fe),null}if(__gwt_isKnownPropertyValue=function(Vt,fe){return fe in St[Vt]},webModule.__getPropMap=function(){var Vt={};for(var fe in St)St.hasOwnProperty(fe)&&(Vt[fe]=It(fe));return Vt},webModule.__computePropValue=It,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ee;try{ee=Cb;var Ne=ee.indexOf(Db);Ne!=-1&&(An=parseInt(ee.substring(Ne+P),$),ee=ee.substring(O,Ne))}catch(Vt){}return webModule.__softPermutationId=An,C(ee+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(Dn,An,St){"use strict";St.d(An,{Ax:function(){return Ne},Ds:function(){return Vt},KI:function(){return Ft},SI:function(){return ee},f1:function(){return It}});var Ct=St(10148);function It(ze){let we=!0;if(ze.length>0){for(let oe=0;oe<ze.length;oe++)if(ze[oe].compile_success==0||!ze[oe].compile_success){we=!1;break}}else we=!1;return we}function ee(ze,we=""){let oe=[];for(let ve=0;ve<ze.length;ve++){let ye=ze[ve],Re=we?`${we}/${ye.name}`:`${ye.name}`;oe.push({title:ye.name,type:ye.type,isLeaf:ye.type!=="tree",key:Re})}return oe}function Ne(ze,we,oe){for(let ve=0;ve<ze.length;ve++){let ye=ze[ve];if(ye.key===we){ye.children=oe;break}ye.children&&Ne(ye.children,we,oe)}return ze}function Vt(ze,we,oe){let ve;return function(){let ye=this,Re=arguments,Tt=function(){ve=null,oe||ze.apply(ye,Re)},et=oe&&!ve;clearTimeout(ve),ve=setTimeout(Tt,we),et&&ze.apply(ye,Re)}}const fe=!0,Ft=Ct.Z.API_SERVER},37470:function(Dn,An,St){"use strict";var Ct=St(59301),It=St(42203),ee=St(92832),Ne=St(78241),Vt=St(8591),fe=St(43418),Ft=St(2595),ze=St(70635),we=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,ye=(nt,ht)=>{var st={};for(var gt in nt)oe.call(nt,gt)&&ht.indexOf(gt)<0&&(st[gt]=nt[gt]);if(nt!=null&&we)for(var gt of we(nt))ht.indexOf(gt)<0&&ve.call(nt,gt)&&(st[gt]=nt[gt]);return st},Re=(nt,ht,st)=>new Promise((gt,vt)=>{var wt=Ot=>{try{kt(st.next(Ot))}catch(jt){vt(jt)}},Bt=Ot=>{try{kt(st.throw(Ot))}catch(jt){vt(jt)}},kt=Ot=>Ot.done?gt(Ot.value):Promise.resolve(Ot.value).then(wt,Bt);kt((st=st.apply(nt,ht)).next())});const Tt=ee.default.TextArea,et=nt=>{var ht=nt,{account:st,globalSetting:gt,loading:vt,dispatch:wt,schoolName:Bt,departmentName:kt,visible:Ot,onClose:jt=()=>{},onSuccess:Xt=()=>{}}=ht,Ut=ye(ht,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]);const[de]=Ne.default.useForm(),Gt=(0,Ct.useRef)(),[Ve,me]=(0,Ct.useState)(!1);(0,Ct.useEffect)(()=>{Gt.current=Ut.schoolId},[Ut.schoolId]),(0,Ct.useEffect)(()=>{de.setFieldsValue({department:kt})},[kt]);const sn=qe=>Re(void 0,null,function*(){var Ye,je,hn;const{department:ge,remarks:Ht}=qe||{};me(!0);const Ce=yield(0,ze.ZP)("/api/add_department_applies/inspect.json",{method:"get",params:{name:ge,school_id:Gt.current}});me(!1);const bn=()=>Re(void 0,null,function*(){const yn=yield wt({type:"account/appplyDepartment",payload:{school_id:Gt.current,name:ge,remarks:Ht}});(yn==null?void 0:yn.status)===0&&(Vt.ZP.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),Xt(ge),jt())});if((Ce==null?void 0:Ce.status)===0){if((Ye=Ce==null?void 0:Ce.data)!=null&&Ye.name){fe.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ct.createElement("div",null,Ct.createElement("div",{className:"mb10"},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7533\u8BF7\u65B0\u589E\u7684\u90E8\u95E8\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4E3A\u8BE5\u90E8\u95E8\uFF1F"),Ct.createElement(Ft.default,{rowKey:"name",columns:[{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"name"},{title:"\u7528\u6237\u6570",dataIndex:"size"}],dataSource:[{name:(je=Ce==null?void 0:Ce.data)==null?void 0:je.name,size:(hn=Ce==null?void 0:Ce.data)==null?void 0:hn.size}],pagination:!1})),onOk:()=>{Xt(ge),jt()}});return}bn()}});return Ct.createElement(fe.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Ot,title:"\u7533\u8BF7\u6DFB\u52A0\u90E8\u95E8\u540D\u79F0",width:"600px",onCancel:jt,onOk:()=>de.submit(),confirmLoading:Ve},Ct.createElement(Ne.default,{form:de,labelCol:{span:4},wrapperCol:{span:20},onFinish:sn},Ct.createElement(Ne.default.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},Bt),Ct.createElement(Ne.default.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},Ct.createElement(ee.default,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),Ct.createElement(Ne.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks",style:{marginBottom:0}},Ct.createElement(Tt,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"}))))};An.Z=(0,It.connect)(({account:nt,loading:ht,globalSetting:st})=>({account:nt,globalSetting:st,loading:ht.effects}))(et)},65983:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return qt}});var Ct=St(59301),It={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ee=St(92310),Ne=St.n(ee),Vt=St(71418);var fe=function(Dt,xt){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,Mt){mt.__proto__=Mt}||function(mt,Mt){for(var Rt in Mt)Object.prototype.hasOwnProperty.call(Mt,Rt)&&(mt[Rt]=Mt[Rt])})(Dt,xt)};function Ft(Dt,xt){function mt(){this.constructor=Dt}fe(Dt,xt),Dt.prototype=xt===null?Object.create(xt):(mt.prototype=xt.prototype,new mt)}function ze(Dt,xt,mt,Mt){return new(mt||(mt=Promise))(function(Rt,Et){function re(le){try{mn(Mt.next(le))}catch(Ge){Et(Ge)}}function Qe(le){try{mn(Mt.throw(le))}catch(Ge){Et(Ge)}}function mn(le){var Ge;le.done?Rt(le.value):(Ge=le.value,Ge instanceof mt?Ge:new mt(function(cn){cn(Ge)})).then(re,Qe)}mn((Mt=Mt.apply(Dt,xt||[])).next())})}function we(Dt,xt){var mt,Mt,Rt,Et,re={label:0,sent:function(){if(1&Rt[0])throw Rt[1];return Rt[1]},trys:[],ops:[]};return Et={next:Qe(0),throw:Qe(1),return:Qe(2)},typeof Symbol=="function"&&(Et[Symbol.iterator]=function(){return this}),Et;function Qe(mn){return function(le){return function(Ge){if(mt)throw new TypeError("Generator is already executing.");for(;re;)try{if(mt=1,Mt&&(Rt=2&Ge[0]?Mt.return:Ge[0]?Mt.throw||((Rt=Mt.return)&&Rt.call(Mt),0):Mt.next)&&!(Rt=Rt.call(Mt,Ge[1])).done)return Rt;switch(Mt=0,Rt&&(Ge=[2&Ge[0],Rt.value]),Ge[0]){case 0:case 1:Rt=Ge;break;case 4:return re.label++,{value:Ge[1],done:!1};case 5:re.label++,Mt=Ge[1],Ge=[0];continue;case 7:Ge=re.ops.pop(),re.trys.pop();continue;default:if(Rt=re.trys,!((Rt=Rt.length>0&&Rt[Rt.length-1])||Ge[0]!==6&&Ge[0]!==2)){re=0;continue}if(Ge[0]===3&&(!Rt||Ge[1]>Rt[0]&&Ge[1]<Rt[3])){re.label=Ge[1];break}if(Ge[0]===6&&re.label<Rt[1]){re.label=Rt[1],Rt=Ge;break}if(Rt&&re.label<Rt[2]){re.label=Rt[2],re.ops.push(Ge);break}Rt[2]&&re.ops.pop(),re.trys.pop();continue}Ge=xt.call(Dt,re)}catch(cn){Ge=[6,cn],Mt=0}finally{mt=Rt=0}if(5&Ge[0])throw Ge[1];return{value:Ge[0]?Ge[1]:void 0,done:!0}}([mn,le])}}}function oe(){for(var Dt=0,xt=0,mt=arguments.length;xt<mt;xt++)Dt+=arguments[xt].length;var Mt=Array(Dt),Rt=0;for(xt=0;xt<mt;xt++)for(var Et=arguments[xt],re=0,Qe=Et.length;re<Qe;re++,Rt++)Mt[Rt]=Et[re];return Mt}var ve=function(){function Dt(){}return Dt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Dt.setAttributes=function(xt,mt){for(var Mt=0,Rt=mt;Mt<Rt.length;Mt++){var Et=Rt[Mt],re=Et[0],Qe=Et[1];xt.setAttribute(re,Qe)}},Dt.createRect=function(xt,mt,Mt){var Rt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Rt.setAttribute("width",xt.toString()),Rt.setAttribute("height",mt.toString()),Mt&&Dt.setAttributes(Rt,Mt),Rt},Dt.createLine=function(xt,mt,Mt,Rt,Et){var re=document.createElementNS("http://www.w3.org/2000/svg","line");return re.setAttribute("x1",xt.toString()),re.setAttribute("y1",mt.toString()),re.setAttribute("x2",Mt.toString()),re.setAttribute("y2",Rt.toString()),Et&&Dt.setAttributes(re,Et),re},Dt.createPolygon=function(xt,mt){var Mt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Mt.setAttribute("points",xt),mt&&Dt.setAttributes(Mt,mt),Mt},Dt.createCircle=function(xt,mt){var Mt=document.createElementNS("http://www.w3.org/2000/svg","circle");return Mt.setAttribute("cx",(xt/2).toString()),Mt.setAttribute("cy",(xt/2).toString()),Mt.setAttribute("r",xt.toString()),mt&&Dt.setAttributes(Mt,mt),Mt},Dt.createEllipse=function(xt,mt,Mt){var Rt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Rt.setAttribute("cx",(xt/2).toString()),Rt.setAttribute("cy",(mt/2).toString()),Rt.setAttribute("rx",(xt/2).toString()),Rt.setAttribute("ry",(mt/2).toString()),Mt&&Dt.setAttributes(Rt,Mt),Rt},Dt.createGroup=function(xt){var mt=document.createElementNS("http://www.w3.org/2000/svg","g");return xt&&Dt.setAttributes(mt,xt),mt},Dt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Dt.createMarker=function(xt,mt,Mt,Rt,Et,re,Qe){var mn=document.createElementNS("http://www.w3.org/2000/svg","marker");return Dt.setAttributes(mn,[["id",xt],["orient",mt],["markerWidth",Mt.toString()],["markerHeight",Rt.toString()],["refX",Et.toString()],["refY",re.toString()]]),mn.appendChild(Qe),mn},Dt.createText=function(xt){var mt=document.createElementNS("http://www.w3.org/2000/svg","text");return mt.setAttribute("x","0"),mt.setAttribute("y","0"),xt&&Dt.setAttributes(mt,xt),mt},Dt.createTSpan=function(xt,mt){var Mt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Mt.textContent=xt,mt&&Dt.setAttributes(Mt,mt),Mt},Dt.createImage=function(xt){var mt=document.createElementNS("http://www.w3.org/2000/svg","image");return xt&&Dt.setAttributes(mt,xt),mt},Dt.createPoint=function(xt,mt){var Mt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Mt.x=xt,Mt.y=mt,Mt},Dt.createPath=function(xt,mt){var Mt=document.createElementNS("http://www.w3.org/2000/svg","path");return Mt.setAttribute("d",xt),mt&&Dt.setAttributes(Mt,mt),Mt},Dt}(),ye=function(){function Dt(){}return Dt.addKey=function(xt){Dt.key=xt},Object.defineProperty(Dt,"isLicensed",{get:function(){return!!Dt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Dt.key)},enumerable:!1,configurable:!0}),Dt}(),Re=function(){function Dt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Dt.prototype.rasterize=function(xt,mt,Mt){var Rt=this;return new Promise(function(Et){var re=Mt!==void 0?Mt:document.createElement("canvas");xt===null&&(Rt.markersOnly=!0,Rt.naturalSize=!1);var Qe=document.createElementNS("http://www.w3.org/2000/svg","svg");Qe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Qe.setAttribute("width",mt.width.baseVal.valueAsString),Qe.setAttribute("height",mt.height.baseVal.valueAsString),Qe.setAttribute("viewBox","0 0 "+mt.viewBox.baseVal.width.toString()+" "+mt.viewBox.baseVal.height.toString()),Qe.innerHTML=mt.innerHTML,Rt.naturalSize===!0?(Qe.width.baseVal.value=xt.naturalWidth,Qe.height.baseVal.value=xt.naturalHeight):Rt.width!==void 0&&Rt.height!==void 0&&(Qe.width.baseVal.value=Rt.width,Qe.height.baseVal.value=Rt.height),re.width=Qe.width.baseVal.value,re.height=Qe.height.baseVal.value;var mn=Qe.outerHTML,le=re.getContext("2d");Rt.markersOnly!==!0&&le.drawImage(xt,0,0,re.width,re.height);var Ge=window.URL,cn=new Image(re.width,re.height);cn.setAttribute("crossOrigin","anonymous");var Mn=new Blob([mn],{type:"image/svg+xml"}),Zn=Ge.createObjectURL(Mn);cn.onload=function(){le.drawImage(cn,0,0),Ge.revokeObjectURL(Zn);var _n=re.toDataURL(Rt.imageType,Rt.imageQuality);Et(_n)},cn.src=Zn})},Dt}(),Tt=function(){},et=function(){function Dt(xt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+xt+"_"}return Object.defineProperty(Dt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.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(Dt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Dt.prototype.addClass=function(xt){return this.styleSheet===void 0&&this.addStyleSheet(),xt.name=""+this.classNamePrefix+xt.localName,this.classes.push(xt),this.styleSheet.sheet.insertRule("."+xt.name+" {"+xt.style+"}",this.styleSheet.sheet.cssRules.length),xt},Dt.prototype.addRule=function(xt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(xt),this.styleSheet.sheet.insertRule(xt.selector+" {"+xt.style+"}",this.styleSheet.sheet.cssRules.length)},Dt.prototype.addStyleSheet=function(){var xt;this.styleSheet=document.createElement("style"),((xt=this.styleSheetRoot)!==null&&xt!==void 0?xt:document.head).appendChild(this.styleSheet),this.addRule(new nt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new nt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ht("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ht("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Dt.prototype.removeStyleSheet=function(){var xt;this.styleSheet&&(((xt=this.styleSheetRoot)!==null&&xt!==void 0?xt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Dt}(),nt=function(Dt,xt){this.selector=Dt,this.style=xt},ht=function(Dt,xt){this.localName=Dt,this.style=xt},st=function(){function Dt(xt,mt,Mt,Rt,Et){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=xt,this.displayMode=mt,this.markerItems=Mt,this.uiStyleSettings=Rt,this.styles=Et,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Dt.prototype.show=function(xt){var mt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Mt=document.createElement("div");Mt.className=this.toolbarBlockStyleClass.name,Mt.style.whiteSpace="nowrap",this.uiContainer.appendChild(Mt),this.addActionButton(Mt,'<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(Mt,'<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(Mt,'<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(Mt,'<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(Mt,'<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(Mt,'<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(Mt,'<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(Mt,'<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(Et){var re=document.createElement("div");re.className=""+mt.toolbarButtonStyleClass.name,re.setAttribute("data-type-name",Et.typeName),re.innerHTML=Et.icon,re.addEventListener("click",function(){mt.markerToolbarButtonClicked(re,Et)}),mt.buttons.push(re),mt.markerButtons.push(re)}),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 Rt=document.createElement("div");Rt.className=this.toolbarBlockStyleClass.name,Rt.style.whiteSpace="nowrap",Rt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Rt),this.addActionButton(Rt,'<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(Rt,'<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()},Dt.prototype.addButtonClickListener=function(xt){this.buttonClickListeners.push(xt)},Dt.prototype.removeButtonClickListener=function(xt){this.buttonClickListeners.indexOf(xt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(xt),1)},Dt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Dt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var xt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var mt=0;mt<this.markerButtons.length;mt++)mt<xt||mt===xt&&this.markerButtons.length-1===xt?this.markerButtonBlock.appendChild(this.markerButtons[mt]):(mt===xt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[mt]))}},Dt.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")},Dt.prototype.resetButtonStyles=function(){var xt=this;this.buttons.forEach(function(mt){mt.className=mt.className.replace(xt.uiStyleSettings.toolbarButtonStyleColorsClassName?xt.uiStyleSettings.toolbarButtonStyleColorsClassName:xt.toolbarButtonStyleColorsClass.name,"").trim(),mt.className=mt.className.replace(xt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?xt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:xt.toolbarActiveButtonStyleColorsClass.name,"").trim(),mt.className+=" "+(xt.uiStyleSettings.toolbarButtonStyleColorsClassName?xt.uiStyleSettings.toolbarButtonStyleColorsClassName:xt.toolbarButtonStyleColorsClass.name)})},Dt.prototype.addActionButton=function(xt,mt,Mt){var Rt=this,Et=document.createElement("div");switch(Et.className=""+this.toolbarButtonStyleClass.name,Et.innerHTML=mt,Et.setAttribute("data-action",Mt),Et.addEventListener("click",function(){Rt.actionToolbarButtonClicked(Et,Mt)}),Mt){case"select":Et.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Et.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Et.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Et.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Et.style.fill=this.uiStyleSettings.closeButtonColor}xt.appendChild(Et),this.buttons.push(Et)},Dt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ht("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ht("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ht("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ht("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ht("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var xt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ht("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xt)+`px;
|
|
|
padding: `+xt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ht("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ht("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new nt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Dt.prototype.markerToolbarButtonClicked=function(xt,mt){this.setActiveButton(xt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Mt){return Mt("marker",mt)}),this.markerButtonOverflowBlock.style.display="none"},Dt.prototype.actionToolbarButtonClicked=function(xt,mt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Mt){return Mt("action",mt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Dt.prototype.setActiveButton=function(xt){this.resetButtonStyles(),xt.className=xt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),xt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Dt.prototype.setActiveMarkerButton=function(xt){var mt=this.markerButtons.find(function(Mt){return Mt.getAttribute("data-type-name")===xt});mt&&this.setActiveButton(mt)},Dt.prototype.setCurrentMarker=function(xt){var mt=this;this.currentMarker=xt,this.buttons.filter(function(Mt){return/delete|notes/.test(Mt.getAttribute("data-action"))}).forEach(function(Mt){mt.currentMarker===void 0?(Mt.style.fillOpacity="0.4",Mt.style.pointerEvents="none"):(Mt.style.fillOpacity="1",Mt.style.pointerEvents="all")})},Dt}(),gt=function(){function Dt(xt,mt,Mt,Rt){this.panels=[],this.panelButtons=[],this.markerjsContainer=xt,this.displayMode=mt,this.uiStyleSettings=Mt,this.styles=Rt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Dt.prototype.addStyles=function(){var xt;this.toolboxStyleClass=this.styles.addClass(new ht("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ht("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var mt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ht("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ht("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ht("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ht("toolbox-panel-row_colors",`
|
|
|
background-color: `+((xt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&xt!==void 0?xt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ht("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*mt)+`px;
|
|
|
padding: `+mt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ht("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ht("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new nt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Dt.prototype.show=function(xt){var mt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Dt.prototype.setPanelButtons=function(xt){var mt,Mt,Rt=this;this.panels=xt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((mt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&mt!==void 0?mt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Mt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Mt!==void 0?Mt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Et){var re;Et.uiStyleSettings=Rt.uiStyleSettings;var Qe=document.createElement("div");Qe.className=Rt.toolboxButtonStyleClass.name+" "+((re=Rt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&re!==void 0?re:Rt.toolboxButtonStyleColorsClass.name),Qe.innerHTML=Et.icon,Qe.title=Et.title,Qe.addEventListener("click",function(){Rt.panelButtonClick(Et)}),Rt.panelButtons.push(Qe),Rt.buttonRow.appendChild(Qe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Dt.prototype.panelButtonClick=function(xt){var mt=this,Mt=-1;if(xt!==this.activePanel){Mt=this.panels.indexOf(xt),this.panelRow.innerHTML="";var Rt=xt.getUi();Rt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Rt),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=xt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){mt.displayMode==="inline"?mt.panelRow.style.display="none":mt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Et,re){var Qe,mn;Et.className=mt.toolboxButtonStyleClass.name+" "+(re===Mt?""+((Qe=mt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Qe!==void 0?Qe:mt.toolboxActiveButtonStyleColorsClass.name):""+((mn=mt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&mn!==void 0?mn:mt.toolboxButtonStyleColorsClass.name))})},Dt}(),vt=function(Dt,xt){this.title=Dt,this.icon=xt},wt=function(Dt){function xt(mt,Mt,Rt,Et){var re=Dt.call(this,mt,Et||'<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 re.colors=[],re.addTransparent=!1,re.colorBoxes=[],re.colors=Mt,re.currentColor=Rt,re.setCurrentColor=re.setCurrentColor.bind(re),re.getColorBox=re.getColorBox.bind(re),re}return Ft(xt,Dt),xt.prototype.getUi=function(){var mt=this,Mt=document.createElement("div");return Mt.style.overflow="hidden",Mt.style.whiteSpace="nowrap",this.colors.forEach(function(Rt){var Et=mt.getColorBox(Rt);Mt.appendChild(Et),mt.colorBoxes.push(Et)}),Mt},xt.prototype.getColorBox=function(mt){var Mt=this,Rt=this.uiStyleSettings.toolbarHeight/4,Et=this.uiStyleSettings.toolbarHeight-Rt,re=document.createElement("div");re.style.display="inline-block",re.style.boxSizing="content-box",re.style.width=Et-2+"px",re.style.height=Et-2+"px",re.style.padding="1px",re.style.marginRight="2px",re.style.marginBottom="2px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderRadius=(Et+2)/2+"px",re.style.borderColor=mt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){Mt.setCurrentColor(mt,re)});var Qe=document.createElement("div");return Qe.style.display="inline-block",Qe.style.width=Et-2+"px",Qe.style.height=Et-2+"px",Qe.style.backgroundColor=mt,Qe.style.borderRadius=Et/2+"px",mt==="transparent"&&(Qe.style.fill=this.uiStyleSettings.toolboxAccentColor,Qe.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>`),re.appendChild(Qe),re},xt.prototype.setCurrentColor=function(mt,Mt){var Rt=this;this.currentColor=mt,this.colorBoxes.forEach(function(Et){Et.style.borderColor=Et===Mt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(mt)},xt}(vt),Bt=function(){function Dt(xt,mt,Mt){this._state="new",this._isSelected=!1,this._container=xt,this._overlayContainer=mt,this.globalSettings=Mt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Dt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Dt.prototype.ownsTarget=function(xt){return!1},Object.defineProperty(Dt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Dt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Dt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Dt.prototype.pointerDown=function(xt,mt){},Dt.prototype.dblClick=function(xt,mt){},Dt.prototype.manipulate=function(xt){},Dt.prototype.pointerUp=function(xt){this.stateChanged()},Dt.prototype.dispose=function(){},Dt.prototype.addMarkerVisualToContainer=function(xt){this.container.childNodes.length>0?this.container.insertBefore(xt,this.container.childNodes[0]):this.container.appendChild(xt)},Dt.prototype.getState=function(){return{typeName:Dt.typeName,state:this.state,notes:this.notes}},Dt.prototype.restoreState=function(xt){this._state=xt.state,this.notes=xt.notes},Dt.prototype.scale=function(xt,mt){},Dt.prototype.colorChanged=function(xt){this.onColorChanged&&this.onColorChanged(xt),this.stateChanged()},Dt.prototype.fillColorChanged=function(xt){this.onFillColorChanged&&this.onFillColorChanged(xt),this.stateChanged()},Dt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var xt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),xt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(xt)&&this.onStateChanged(this)}},Dt.typeName="MarkerBase",Dt}(),kt=function(){function Dt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Dt.prototype.findGripByVisual=function(xt){return this.topLeft.ownsTarget(xt)?this.topLeft:this.topCenter.ownsTarget(xt)?this.topCenter:this.topRight.ownsTarget(xt)?this.topRight:this.centerLeft.ownsTarget(xt)?this.centerLeft:this.centerRight.ownsTarget(xt)?this.centerRight:this.bottomLeft.ownsTarget(xt)?this.bottomLeft:this.bottomCenter.ownsTarget(xt)?this.bottomCenter:this.bottomRight.ownsTarget(xt)?this.bottomRight:void 0},Dt}(),Ot=function(){function Dt(){this.GRIP_SIZE=10,this.visual=ve.createGroup(),this.visual.appendChild(ve.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ve.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Dt.prototype.ownsTarget=function(xt){return xt===this.visual||xt===this.visual.childNodes[0]||xt===this.visual.childNodes[1]},Dt}(),jt=function(){function Dt(){}return Dt.toITransformMatrix=function(xt){return{a:xt.a,b:xt.b,c:xt.c,d:xt.d,e:xt.e,f:xt.f}},Dt.toSVGMatrix=function(xt,mt){return xt.a=mt.a,xt.b=mt.b,xt.c=mt.c,xt.d=mt.d,xt.e=mt.e,xt.f=mt.f,xt},Dt}(),Xt=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.left=0,Et.top=0,Et.width=0,Et.height=0,Et.defaultSize={x:50,y:20},Et.offsetX=0,Et.offsetY=0,Et.rotationAngle=0,Et.CB_DISTANCE=10,Et._suppressMarkerCreateEvent=!1,Et.container.transform.baseVal.appendItem(ve.createTransform()),Et.setupControlBox(),Et}return Ft(xt,Dt),Object.defineProperty(xt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(xt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(xt.prototype,"visual",{get:function(){return this._visual},set:function(mt){this._visual=mt;var Mt=ve.createTransform();this._visual.transform.baseVal.appendItem(Mt)},enumerable:!1,configurable:!0}),xt.prototype.ownsTarget=function(mt){return!!Dt.prototype.ownsTarget.call(this,mt)||!!(this.controlGrips.findGripByVisual(mt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(mt))},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.state==="new"&&(this.left=mt.x,this.top=mt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Rt=this.unrotatePoint(mt);if(this.manipulationStartX=Rt.x,this.manipulationStartY=Rt.y,this.offsetX=Rt.x-this.left,this.offsetY=Rt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Mt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Mt)){this.activeGrip=this.rotatorGrip;var Et=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Et.x-this.width/2,this.top=Et.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var re=this.container.transform.baseVal.getItem(0);re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(re,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},xt.prototype.pointerUp=function(mt){var Mt=this.state;Dt.prototype.pointerUp.call(this,mt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(mt),this._state="select",Mt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},xt.prototype.moveVisual=function(mt){this.visual.style.transform="translate("+mt.x+"px, "+mt.y+"px)"},xt.prototype.manipulate=function(mt){var Mt=this.unrotatePoint(mt);this.state==="creating"?this.resize(mt):this.state==="move"?(this.left=this.manipulationStartLeft+(Mt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Mt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Mt):this.state==="rotate"&&this.rotate(mt)},xt.prototype.resize=function(mt){var Mt=this.manipulationStartLeft,Rt=this.manipulationStartWidth,Et=this.manipulationStartTop,re=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Mt=this.manipulationStartLeft+mt.x-this.manipulationStartX,Rt=this.manipulationStartWidth+this.manipulationStartLeft-Mt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Rt=this.manipulationStartWidth+mt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Et=this.manipulationStartTop+mt.y-this.manipulationStartY,re=this.manipulationStartHeight+this.manipulationStartTop-Et;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:re=this.manipulationStartHeight+mt.y-this.manipulationStartY}Rt>=0?(this.left=Mt,this.width=Rt):(this.left=Mt+Rt,this.width=-Rt),re>=0?(this.top=Et,this.height=re):(this.top=Et+re,this.height=-re),this.setSize()},xt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},xt.prototype.rotate=function(mt){if(Math.abs(mt.x-this.centerX)>.1){var Mt=Math.sign(mt.x-this.centerX);this.rotationAngle=180*Math.atan((mt.y-this.centerY)/(mt.x-this.centerX))/Math.PI+90*Mt,this.applyRotation()}},xt.prototype.applyRotation=function(){var mt=this.container.transform.baseVal.getItem(0);mt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(mt,0)},xt.prototype.rotatePoint=function(mt){if(this.rotationAngle===0)return mt;var Mt=this.container.getCTM(),Rt=ve.createPoint(mt.x,mt.y);return{x:(Rt=Rt.matrixTransform(Mt)).x,y:Rt.y}},xt.prototype.unrotatePoint=function(mt){if(this.rotationAngle===0)return mt;var Mt=this.container.getCTM();Mt=Mt.inverse();var Rt=ve.createPoint(mt.x,mt.y);return{x:(Rt=Rt.matrixTransform(Mt)).x,y:Rt.y}},xt.prototype.select=function(){Dt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xt.prototype.deselect=function(){Dt.prototype.deselect.call(this),this.controlBox.style.display="none"},xt.prototype.setupControlBox=function(){this.controlBox=ve.createGroup();var mt=ve.createTransform();mt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(mt),this.container.appendChild(this.controlBox),this.controlRect=ve.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=ve.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 kt,this.addControlGrips(),this.controlBox.style.display="none"},xt.prototype.adjustControlBox=function(){var mt=this.controlBox.transform.baseVal.getItem(0);mt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(mt,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()},xt.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()},xt.prototype.createGrip=function(){var mt=new Ot;return mt.visual.transform.baseVal.appendItem(ve.createTransform()),this.controlBox.appendChild(mt.visual),mt},xt.prototype.positionGrips=function(){var mt=this.controlGrips.topLeft.GRIP_SIZE,Mt=-mt/2,Rt=Mt,Et=(this.width+this.CB_DISTANCE)/2-mt/2,re=(this.height+this.CB_DISTANCE)/2-mt/2,Qe=this.height+this.CB_DISTANCE-mt/2,mn=this.width+this.CB_DISTANCE-mt/2;this.positionGrip(this.controlGrips.topLeft.visual,Mt,Rt),this.positionGrip(this.controlGrips.topCenter.visual,Et,Rt),this.positionGrip(this.controlGrips.topRight.visual,mn,Rt),this.positionGrip(this.controlGrips.centerLeft.visual,Mt,re),this.positionGrip(this.controlGrips.centerRight.visual,mn,re),this.positionGrip(this.controlGrips.bottomLeft.visual,Mt,Qe),this.positionGrip(this.controlGrips.bottomCenter.visual,Et,Qe),this.positionGrip(this.controlGrips.bottomRight.visual,mn,Qe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Et,Rt-3*this.CB_DISTANCE)},xt.prototype.positionGrip=function(mt,Mt,Rt){var Et=mt.transform.baseVal.getItem(0);Et.setTranslate(Mt,Rt),mt.transform.baseVal.replaceItem(Et,0)},xt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},xt.prototype.showControlBox=function(){this.controlBox.style.display=""},xt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:jt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:jt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Dt.prototype.getState.call(this))},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Mt=mt;this.left=Mt.left,this.top=Mt.top,this.width=Mt.width,this.height=Mt.height,this.rotationAngle=Mt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(jt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Mt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(jt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Mt.containerTransformMatrix))},xt.prototype.scale=function(mt,Mt){Dt.prototype.scale.call(this,mt,Mt);var Rt=this.rotatePoint({x:this.left,y:this.top}),Et=this.unrotatePoint({x:Rt.x*mt,y:Rt.y*Mt});this.left=Et.x,this.top=Et.y,this.width=this.width*mt,this.height=this.height*Mt,this.adjustControlBox()},xt}(Bt),Ut=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.opacity=1,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},xt.prototype.createVisual=function(){this.visual=ve.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)},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.manipulate=function(mt){Dt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),this.setSize()},xt.prototype.setSize=function(){Dt.prototype.setSize.call(this),ve.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},xt.prototype.pointerUp=function(mt){Dt.prototype.pointerUp.call(this,mt),this.setSize()},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&ve.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},xt.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&ve.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&ve.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&ve.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Dt.prototype.getState.call(this))},xt.prototype.restoreState=function(mt){var Mt=mt;this.fillColor=Mt.fillColor,this.strokeColor=Mt.strokeColor,this.strokeWidth=Mt.strokeWidth,this.strokeDasharray=Mt.strokeDasharray,this.opacity=Mt.opacity,this.createVisual(),Dt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,Mt){Dt.prototype.scale.call(this,mt,Mt),this.setSize()},xt.title="Rectangle marker",xt}(Xt),de=function(Dt){function xt(mt,Mt,Rt,Et){var re=Dt.call(this,mt,Et||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return re.widths=[],re.widthBoxes=[],re.widths=Mt,re.currentWidth=Rt,re.setCurrentWidth=re.setCurrentWidth.bind(re),re}return Ft(xt,Dt),xt.prototype.getUi=function(){var mt=this,Mt=document.createElement("div");return Mt.style.display="flex",Mt.style.overflow="hidden",Mt.style.flexGrow="2",this.widths.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="flex",Et.style.flexGrow="2",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=Rt===mt.currentWidth?mt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){mt.setCurrentWidth(Rt,Et)}),Mt.appendChild(Et);var re=document.createElement("div");re.innerText=Rt.toString(),re.style.marginRight="5px",Et.appendChild(re);var Qe=document.createElement("div");Qe.style.minHeight="20px",Qe.style.flexGrow="2",Qe.style.display="flex",Qe.style.alignItems="center";var mn=document.createElement("hr");mn.style.minWidth="20px",mn.style.border="0px",mn.style.borderTop=Rt+"px solid "+mt.uiStyleSettings.toolboxColor,mn.style.flexGrow="2",Qe.appendChild(mn),Et.appendChild(Qe),mt.widthBoxes.push(Et)}),Mt},xt.prototype.setCurrentWidth=function(mt,Mt){var Rt=this;this.currentWidth=mt,this.widthBoxes.forEach(function(Et){Et.style.borderColor=Et===Mt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},xt}(vt),Gt=function(Dt){function xt(mt,Mt,Rt,Et){var re=Dt.call(this,mt,Et||'<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 re.styles=[],re.styleBoxes=[],re.styles=Mt,re.currentStyle=Rt,re.setCurrentStyle=re.setCurrentStyle.bind(re),re}return Ft(xt,Dt),xt.prototype.getUi=function(){var mt=this,Mt=document.createElement("div");return Mt.style.display="flex",Mt.style.overflow="hidden",Mt.style.flexGrow="2",this.styles.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.overflow="hidden",Et.style.maxWidth=100/mt.styles.length-5+"%",Et.style.borderColor=Rt===mt.currentStyle?mt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){mt.setCurrentStyle(Rt,Et)}),Mt.appendChild(Et);var re=document.createElement("div");re.style.minHeight="20px",re.style.flexGrow="2",re.style.overflow="hidden";var Qe=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+mt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Rt!==""?'stroke-dasharray="'+Rt+'"':"")+` />
|
|
|
</svg>`;re.innerHTML=Qe,Et.appendChild(re),mt.styleBoxes.push(Et)}),Mt},xt.prototype.setCurrentStyle=function(mt,Mt){var Rt=this;this.currentStyle=mt,this.styleBoxes.forEach(function(Et){Et.style.borderColor=Et===Mt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},xt}(vt),Ve=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.strokePanel=new wt("Line color",Rt.defaultColorSet,Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new de("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Gt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return Ft(xt,Dt),Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="FrameMarker",xt.title="Frame marker",xt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',xt}(Ut),me=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},sn=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.x1=0,Et.y1=0,Et.x2=0,Et.y2=0,Et.defaultLength=50,Et.manipulationStartX=0,Et.manipulationStartY=0,Et.manipulationStartX1=0,Et.manipulationStartY1=0,Et.manipulationStartX2=0,Et.manipulationStartY2=0,Et.setupControlBox(),Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){return!!Dt.prototype.ownsTarget.call(this,mt)||!(!this.grip1.ownsTarget(mt)&&!this.grip2.ownsTarget(mt))},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.manipulationStartX=mt.x,this.manipulationStartY=mt.y,this.state==="new"&&(this.x1=mt.x,this.y1=mt.y,this.x2=mt.x,this.y2=mt.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(Mt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Mt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},xt.prototype.pointerUp=function(mt){var Mt=this.state;Dt.prototype.pointerUp.call(this,mt),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(mt),this._state="select",Mt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},xt.prototype.adjustVisual=function(){},xt.prototype.manipulate=function(mt){this.state==="creating"?this.resize(mt):this.state==="move"?(this.x1=this.manipulationStartX1+mt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+mt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+mt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+mt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(mt)},xt.prototype.resize=function(mt){switch(this.activeGrip){case this.grip1:this.x1=mt.x,this.y1=mt.y;break;case this.grip2:case void 0:this.x2=mt.x,this.y2=mt.y}this.adjustVisual(),this.adjustControlBox()},xt.prototype.select=function(){Dt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xt.prototype.deselect=function(){Dt.prototype.deselect.call(this),this.controlBox.style.display="none"},xt.prototype.setupControlBox=function(){this.controlBox=ve.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},xt.prototype.adjustControlBox=function(){this.positionGrips()},xt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},xt.prototype.createGrip=function(){var mt=new Ot;return mt.visual.transform.baseVal.appendItem(ve.createTransform()),this.controlBox.appendChild(mt.visual),mt},xt.prototype.positionGrips=function(){var mt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-mt/2,this.y1-mt/2),this.positionGrip(this.grip2.visual,this.x2-mt/2,this.y2-mt/2)},xt.prototype.positionGrip=function(mt,Mt,Rt){var Et=mt.transform.baseVal.getItem(0);Et.setTranslate(Mt,Rt),mt.transform.baseVal.replaceItem(Et,0)},xt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Dt.prototype.getState.call(this))},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Mt=mt;this.x1=Mt.x1,this.y1=Mt.y1,this.x2=Mt.x2,this.y2=Mt.y2},xt.prototype.scale=function(mt,Mt){Dt.prototype.scale.call(this,mt,Mt),this.x1=this.x1*mt,this.y1=this.y1*Mt,this.x2=this.x2*mt,this.y2=this.y2*Mt,this.adjustVisual(),this.adjustControlBox()},xt}(Bt),qe=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.strokePanel=new wt("Line color",Rt.defaultColorSet,Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new de("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Gt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorLine&&mt!==this.visibleLine)},xt.prototype.createVisual=function(){this.visual=ve.createGroup(),this.selectorLine=ve.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ve.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)},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},xt.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()),ve.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ve.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ve.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Mt=mt;this.strokeColor=Mt.strokeColor,this.strokeWidth=Mt.strokeWidth,this.strokeDasharray=Mt.strokeDasharray,this.createVisual(),this.adjustVisual()},xt.typeName="LineMarker",xt.title="Line marker",xt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',xt}(sn),Ye=function(Dt){function xt(mt,Mt,Rt,Et){var re=Dt.call(this,mt,Et||'<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 re.fonts=[],re.fontBoxes=[],re.fonts=Mt,re.currentFont=Rt,re.setCurrentFont=re.setCurrentFont.bind(re),re}return Ft(xt,Dt),xt.prototype.getUi=function(){var mt=this,Mt=document.createElement("div");return Mt.style.overflow="hidden",Mt.style.flexGrow="2",this.fonts.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="inline-block",Et.style.alignItems="center",Et.style.justifyContent="space-between",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.overflow="hidden",Et.style.maxWidth=100/mt.fonts.length-5+"%",Et.style.borderColor=Rt===mt.currentFont?mt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){mt.setCurrentFont(Rt,Et)}),Mt.appendChild(Et);var re=document.createElement("div");re.style.display="flex",re.style.minHeight="20px",re.style.flexGrow="2",re.style.fontFamily=Rt,re.style.overflow="hidden";var Qe=document.createElement("div");Qe.style.whiteSpace="nowrap",Qe.style.overflow="hidden",Qe.style.textOverflow="ellipsis",Qe.innerHTML="The quick brown fox jumps over the lazy dog",re.appendChild(Qe),Et.appendChild(re),mt.fontBoxes.push(Et)}),Mt},xt.prototype.setCurrentFont=function(mt,Mt){var Rt=this;this.currentFont=mt,this.fontBoxes.forEach(function(Et){Et.style.borderColor=Et===Mt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},xt}(vt),je=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.color="transparent",Et.padding=5,Et.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Et.text=Et.DEFAULT_TEXT,Et.isMoved=!1,Et.color=Rt.defaultColor,Et.fontFamily=Rt.defaultFontFamily,Et.defaultSize={x:100,y:30},Et.setColor=Et.setColor.bind(Et),Et.setFont=Et.setFont.bind(Et),Et.renderText=Et.renderText.bind(Et),Et.sizeText=Et.sizeText.bind(Et),Et.textEditDivClicked=Et.textEditDivClicked.bind(Et),Et.showTextEditor=Et.showTextEditor.bind(Et),Et.setSize=Et.setSize.bind(Et),Et.positionTextEditor=Et.positionTextEditor.bind(Et),Et.colorPanel=new wt("Color",Rt.defaultColorSet,Rt.defaultColor),Et.colorPanel.onColorChanged=Et.setColor,Et.fontFamilyPanel=new Ye("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){if(Dt.prototype.ownsTarget.call(this,mt)||mt===this.visual||mt===this.textElement||mt===this.bgRectangle)return!0;var Mt=!1;return this.textElement.childNodes.forEach(function(Rt){Rt===mt&&(Mt=!0)}),Mt},xt.prototype.createVisual=function(){this.visual=ve.createGroup(),this.bgRectangle=ve.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ve.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ve.createTransform()),this.textElement.transform.baseVal.appendItem(ve.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.renderText=function(){var mt=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(Mt){mt.textElement.appendChild(ve.createTSpan(Mt.trim()===""?" ":Mt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},xt.prototype.getTextScale=function(){var mt=this.textElement.getBBox(),Mt=1;if(mt.width>0&&mt.height>0){var Rt=(1*this.width-this.width*this.padding*2/100)/mt.width,Et=(1*this.height-this.height*this.padding*2/100)/mt.height;Mt=Math.min(Rt,Et)}return Mt},xt.prototype.getTextPosition=function(mt){var Mt=this.textElement.getBBox(),Rt=0,Et=0;return Mt.width>0&&Mt.height>0&&(Rt=(this.width-Mt.width*mt)/2,Et=this.height/2-Mt.height*mt/2),{x:Rt,y:Et}},xt.prototype.sizeText=function(){var mt=this.textElement.getBBox(),Mt=this.getTextScale(),Rt=this.getTextPosition(Mt);Rt.y-=mt.y*Mt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Rt.x+"px, "+Rt.y+"px) scale("+Mt+", "+Mt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Rt.x,Rt.y),this.textElement.transform.baseVal.getItem(1).setScale(Mt,Mt))},xt.prototype.manipulate=function(mt){Dt.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),this.isMoved=!0,this.setSize(),this.sizeText()},xt.prototype.setSize=function(){Dt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ve.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ve.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},xt.prototype.pointerUp=function(mt){var Mt=this.state;Mt==="creating"&&(this._suppressMarkerCreateEvent=!0),Dt.prototype.pointerUp.call(this,mt),this.setSize(),(Mt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},xt.prototype.showTextEditor=function(){var mt=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(Mt){Mt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Mt=Number.parseFloat(mt.textEditor.style.fontSize);mt.textEditor.clientWidth>=Number.parseInt(mt.textEditor.style.maxWidth)&&Mt>.9;)Mt-=.1,mt.textEditor.style.fontSize=Math.max(Mt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Mt){Mt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Mt){if(Mt.clipboardData){var Rt=Mt.clipboardData.getData("text"),Et=window.getSelection();if(!Et.rangeCount)return!1;Et.deleteFromDocument(),Et.getRangeAt(0).insertNode(document.createTextNode(Rt)),Mt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){mt.textEditDivClicked(mt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},xt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var mt=this.getTextScale(),Mt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Rt=this.textElement.getBBox(),Et={x:Rt.width*mt,y:Rt.height*mt};Mt.x-=Et.x/2,Mt.y-=Et.y/2,this.textEditor.style.top=Mt.y+"px",this.textEditor.style.left=Mt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Mt.x+"px",this.textEditor.style.fontSize=Math.max(16*mt,12)+"px",this.textElement.style.display="none"}},xt.prototype.textEditDivClicked=function(mt){this.text=mt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},xt.prototype.select=function(){Dt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},xt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Dt.prototype.deselect.call(this)},xt.prototype.dblClick=function(mt,Mt){Dt.prototype.dblClick.call(this,mt,Mt),this.showTextEditor()},xt.prototype.setColor=function(mt){this.textElement&&ve.setAttributes(this.textElement,[["fill",mt]]),this.color=mt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(mt)},xt.prototype.setFont=function(mt){this.textElement&&ve.setAttributes(this.textElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},xt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},xt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){var Mt=mt;this.color=Mt.color,this.fontFamily=Mt.fontFamily,this.padding=Mt.padding,this.text=Mt.text,this.createVisual(),Dt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,Mt){Dt.prototype.scale.call(this,mt,Mt),this.setSize(),this.sizeText(),this.positionTextEditor()},xt.typeName="TextMarker",xt.title="Text marker",xt.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>',xt}(Xt),hn=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.color="transparent",Et.lineWidth=3,Et.drawing=!1,Et.pixelRatio=1,Et.color=Rt.defaultColor,Et.lineWidth=Rt.defaultStrokeWidth,Et.pixelRatio=Rt.freehandPixelRatio,Et.setColor=Et.setColor.bind(Et),Et.addCanvas=Et.addCanvas.bind(Et),Et.finishCreation=Et.finishCreation.bind(Et),Et.setLineWidth=Et.setLineWidth.bind(Et),Et.colorPanel=new wt("Color",Rt.defaultColorSet,Rt.defaultColor),Et.colorPanel.onColorChanged=Et.setColor,Et.lineWidthPanel=new de("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.lineWidthPanel.onWidthChanged=Et.setLineWidth,Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.drawingImage)},xt.prototype.createVisual=function(){this.visual=ve.createGroup(),this.drawingImage=ve.createImage(),this.visual.appendChild(this.drawingImage);var mt=ve.createTransform();this.visual.transform.baseVal.appendItem(mt),this.addMarkerVisualToContainer(this.visual)},xt.prototype.pointerDown=function(mt,Mt){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(mt.x,mt.y),this.drawing=!0):Dt.prototype.pointerDown.call(this,mt,Mt)},xt.prototype.manipulate=function(mt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(mt.x,mt.y),this.canvasContext.stroke()):Dt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),ve.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ve.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},xt.prototype.pointerUp=function(mt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Dt.prototype.pointerUp.call(this,mt)},xt.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)},xt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Dt.prototype.select.call(this)},xt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Dt.prototype.deselect.call(this)},xt.prototype.finishCreation=function(){for(var mt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Mt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Rt=Mt[0],Et=Mt[1],re=Mt[2],Qe=Mt[3],mn=!1,le=0;le<this.canvasElement.height;le++)for(var Ge=0;Ge<this.canvasElement.width;Ge++)mt.data[le*this.canvasElement.width*4+4*Ge+3]>0&&(mn=!0,le<Et&&(Et=le),Ge<Rt&&(Rt=Ge),le>Qe&&(Qe=le),Ge>re&&(re=Ge));if(mn){this.left=Rt/this.pixelRatio,this.top=Et/this.pixelRatio,this.width=(re-Rt)/this.pixelRatio,this.height=(Qe-Et)/this.pixelRatio;var cn=document.createElement("canvas");cn.width=re-Rt,cn.height=Qe-Et,cn.getContext("2d").putImageData(this.canvasContext.getImageData(Rt,Et,re-Rt,Qe-Et),0,0),this.drawingImgUrl=cn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},xt.prototype.setDrawingImage=function(){ve.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ve.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},xt.prototype.setColor=function(mt){this.color=mt,this.colorChanged(mt)},xt.prototype.setLineWidth=function(mt){this.lineWidth=mt},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({drawingImgUrl:this.drawingImgUrl},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){this.createVisual(),Dt.prototype.restoreState.call(this,mt),this.drawingImgUrl=mt.drawingImgUrl,this.setDrawingImage()},xt.prototype.scale=function(mt,Mt){Dt.prototype.scale.call(this,mt,Mt),this.setDrawingImage()},xt.typeName="FreehandMarker",xt.title="Freehand marker",xt.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>',xt}(Xt),ge=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Rt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Et.typeBoxes=[],Et.currentType=Mt,Et.setCurrentType=Et.setCurrentType.bind(Et),Et}return Ft(xt,Dt),xt.prototype.getUi=function(){var mt=this,Mt=document.createElement("div");Mt.style.display="flex",Mt.style.overflow="hidden",Mt.style.flexGrow="2";for(var Rt=function(Qe){var mn="both";switch(Qe){case 0:mn="both";break;case 1:mn="start";break;case 2:mn="end";break;case 3:mn="none"}var le=document.createElement("div");if(le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=mn===Et.currentType?Et.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){mt.setCurrentType(mn,le)}),Mt.appendChild(le),mn==="both"||mn==="start"){var Ge=document.createElement("div");Ge.style.display="flex",Ge.style.alignItems="center",Ge.style.minHeight="20px",Ge.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="`+(Et.uiStyleSettings!==void 0?Et.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ge.style.marginLeft="5px",le.appendChild(Ge)}var cn=document.createElement("div");cn.style.display="flex",cn.style.alignItems="center",cn.style.minHeight="20px",cn.style.flexGrow="2";var Mn=document.createElement("hr");if(Mn.style.minWidth="20px",Mn.style.border="0px",Mn.style.borderTop="3px solid "+(Et.uiStyleSettings!==void 0?Et.uiStyleSettings.toolboxColor:"#eeeeee"),Mn.style.flexGrow="2",cn.appendChild(Mn),le.appendChild(cn),mn==="both"||mn==="end"){var Zn=document.createElement("div");Zn.style.display="flex",Zn.style.alignItems="center",Zn.style.minHeight="20px",Zn.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="`+(Et.uiStyleSettings!==void 0?Et.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Zn.style.marginRight="5px",le.appendChild(Zn)}Et.typeBoxes.push(le)},Et=this,re=0;re<4;re++)Rt(re);return Mt},xt.prototype.setCurrentType=function(mt,Mt){var Rt=this;this.currentType=mt,this.typeBoxes.forEach(function(Et){Et.style.borderColor=Et===Mt?Rt.uiStyleSettings!==void 0?Rt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},xt}(vt),Ht=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.arrowType="end",Et.arrowBaseHeight=10,Et.arrowBaseWidth=10,Et.getArrowPoints=Et.getArrowPoints.bind(Et),Et.setArrowType=Et.setArrowType.bind(Et),Et.arrowTypePanel=new ge("Arrow type","end"),Et.arrowTypePanel.onArrowTypeChanged=Et.setArrowType,Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.arrow1&&mt!==this.arrow2)},xt.prototype.getArrowPoints=function(mt,Mt){var Rt=this.arrowBaseWidth+2*this.strokeWidth,Et=this.arrowBaseHeight+2*this.strokeWidth;return mt-Rt/2+","+(Mt+Et/2)+" "+mt+","+(Mt-Et/2)+" "+(mt+Rt/2)+","+(Mt+Et/2)},xt.prototype.createTips=function(){this.arrow1=ve.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ve.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ve.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ve.createTransform()),this.visual.appendChild(this.arrow2)},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.state==="creating"&&this.createTips()},xt.prototype.adjustVisual=function(){if(Dt.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",ve.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ve.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var mt=0;Math.abs(this.x1-this.x2)>.1&&(mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Mt=this.arrow1.transform.baseVal.getItem(0);Mt.setRotate(mt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Mt,0);var Rt=this.arrow2.transform.baseVal.getItem(0);Rt.setRotate(mt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Rt,0)}},xt.prototype.setArrowType=function(mt){this.arrowType=mt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({arrowType:this.arrowType},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Mt=mt;this.arrowType=Mt.arrowType,this.createTips(),this.adjustVisual()},xt.typeName="ArrowMarker",xt.title="Arrow marker",xt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',xt}(qe),Ce=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.fillColor=Rt.defaultFillColor,Et.strokeWidth=0,Et.fillPanel=new wt("Color",Rt.defaultColorSet,Rt.defaultFillColor),Et.fillPanel.onColorChanged=Et.setFillColor,Et}return Ft(xt,Dt),Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="CoverMarker",xt.title="Cover marker",xt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',xt}(Ut),bn=function(Dt){function xt(mt,Mt,Rt,Et){var re=Dt.call(this,mt,Et||'<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 re.opacities=[],re.opacityBoxes=[],re.opacities=Mt,re.currentOpacity=Rt,re.setCurrentOpacity=re.setCurrentOpacity.bind(re),re}return Ft(xt,Dt),xt.prototype.getUi=function(){var mt=this,Mt=document.createElement("div");return Mt.style.display="flex",Mt.style.overflow="hidden",Mt.style.flexGrow="2",Mt.style.justifyContent="space-between",this.opacities.forEach(function(Rt){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.justifyContent="center",Et.style.padding="5px",Et.style.borderWidth="2px",Et.style.borderStyle="solid",Et.style.borderColor=Rt===mt.currentOpacity?mt.uiStyleSettings.toolboxAccentColor:"transparent",Et.addEventListener("click",function(){mt.setCurrentOpacity(Rt,Et)}),Mt.appendChild(Et);var re=document.createElement("div");re.innerText=100*Rt+"%",Et.appendChild(re),mt.opacityBoxes.push(Et)}),Mt},xt.prototype.setCurrentOpacity=function(mt,Mt){var Rt=this;this.currentOpacity=mt,this.opacityBoxes.forEach(function(Et){Et.style.borderColor=Et===Mt?Rt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},xt}(vt),yn=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.setOpacity=Et.setOpacity.bind(Et),Et.fillColor=Rt.defaultHighlightColor,Et.strokeWidth=0,Et.opacity=Rt.defaultHighlightOpacity,Et.fillPanel=new wt("Color",Rt.defaultColorSet,Et.fillColor),Et.fillPanel.onColorChanged=Et.setFillColor,Et.opacityPanel=new bn("Opacity",Rt.defaultOpacitySteps,Et.opacity),Et.opacityPanel.onOpacityChanged=Et.setOpacity,Et}return Ft(xt,Dt),xt.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&ve.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="HighlightMarker",xt.title="Highlight marker",xt.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>',xt}(Ce),Ae='<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>',Ue='<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>',Sn=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.bgColor="transparent",Et.tipPosition={x:0,y:0},Et.tipBase1Position={x:0,y:0},Et.tipBase2Position={x:0,y:0},Et.tipMoving=!1,Et.color=Rt.defaultStrokeColor,Et.bgColor=Rt.defaultFillColor,Et.fontFamily=Rt.defaultFontFamily,Et.defaultSize={x:100,y:30},Et.setBgColor=Et.setBgColor.bind(Et),Et.getTipPoints=Et.getTipPoints.bind(Et),Et.positionTip=Et.positionTip.bind(Et),Et.setTipPoints=Et.setTipPoints.bind(Et),Et.colorPanel=new wt("Text color",Rt.defaultColorSet,Et.color,Ae),Et.colorPanel.onColorChanged=Et.setColor,Et.bgColorPanel=new wt("Fill color",Rt.defaultColorSet,Et.bgColor,Ue),Et.bgColorPanel.onColorChanged=Et.setBgColor,Et.fontFamilyPanel=new Ye("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et.tipGrip=new Ot,Et.tipGrip.visual.transform.baseVal.appendItem(ve.createTransform()),Et.controlBox.appendChild(Et.tipGrip.visual),Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){return Dt.prototype.ownsTarget.call(this,mt)||this.tipGrip.ownsTarget(mt)||this.tip===mt},xt.prototype.createTip=function(){ve.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ve.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},xt.prototype.pointerDown=function(mt,Mt){this.state==="new"&&Dt.prototype.pointerDown.call(this,mt,Mt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Mt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Dt.prototype.pointerDown.call(this,mt,Mt)},xt.prototype.pointerUp=function(mt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Dt.prototype.pointerUp.call(this,mt);else{var Mt=this.state==="creating";Dt.prototype.pointerUp.call(this,mt),this.setTipPoints(Mt),this.positionTip()}},xt.prototype.manipulate=function(mt){if(this.tipMoving){var Mt=this.unrotatePoint(mt);this.tipPosition={x:Mt.x-this.manipulationStartLeft,y:Mt.y-this.manipulationStartTop},this.positionTip()}else Dt.prototype.manipulate.call(this,mt)},xt.prototype.setBgColor=function(mt){this.bgRectangle&&this.tip&&(ve.setAttributes(this.bgRectangle,[["fill",mt]]),ve.setAttributes(this.tip,[["fill",mt]])),this.bgColor=mt,this.fillColorChanged(mt)},xt.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},xt.prototype.setTipPoints=function(mt){mt===void 0&&(mt=!1);var Mt=Math.min(this.height/2,15),Rt=this.height/5;mt&&(this.tipPosition={x:Mt+Rt/2,y:this.height+20});var Et=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Et<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Rt=this.width/5,Mt=Math.min(this.width/2,15),this.tipBase1Position={x:Mt,y:0},this.tipBase2Position={x:Mt+Rt,y:0}):(this.tipBase1Position={x:0,y:Mt},this.tipBase2Position={x:0,y:Mt+Rt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Et<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Rt=this.width/5,Mt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Mt-Rt,y:0},this.tipBase2Position={x:this.width-Mt,y:0}):(this.tipBase1Position={x:this.width,y:Mt},this.tipBase2Position={x:this.width,y:Mt+Rt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Et<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Rt=this.width/5,Mt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Mt-Rt,y:this.height},this.tipBase2Position={x:this.width-Mt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Mt-Rt},this.tipBase2Position={x:this.width,y:this.height-Mt}):Et<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Rt=this.width/5,Mt=Math.min(this.width/2,15),this.tipBase1Position={x:Mt,y:this.height},this.tipBase2Position={x:Mt+Rt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Mt},this.tipBase2Position={x:0,y:this.height-Mt-Rt})},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),this.positionTip()},xt.prototype.positionTip=function(){ve.setAttributes(this.tip,[["points",this.getTipPoints()]]);var mt=this.tipGrip.visual.transform.baseVal.getItem(0);mt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(mt,0)},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xt.prototype.select=function(){this.positionTip(),Dt.prototype.select.call(this)},xt.prototype.getState=function(){var mt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){var Mt=mt;this.bgColor=Mt.bgColor,this.tipPosition=Mt.tipPosition,Dt.prototype.restoreState.call(this,mt),this.createTip(),this.setTipPoints()},xt.prototype.scale=function(mt,Mt){Dt.prototype.scale.call(this,mt,Mt),this.tipPosition={x:this.tipPosition.x*mt,y:this.tipPosition.y*Mt},this.positionTip()},xt.typeName="CalloutMarker",xt.title="Callout marker",xt.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>',xt}(je),Xn=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.opacity=1,Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.fillColor=Rt.defaultFillColor,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.setOpacity=Et.setOpacity.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et.strokePanel=new wt("Line color",oe(Rt.defaultColorSet,["transparent"]),Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.fillPanel=new wt("Fill color",oe(Rt.defaultColorSet,["transparent"]),Et.fillColor,Ue),Et.fillPanel.onColorChanged=Et.setFillColor,Et.strokeWidthPanel=new de("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Gt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et.opacityPanel=new bn("Opacity",Rt.defaultOpacitySteps,Et.opacity),Et.opacityPanel.onOpacityChanged=Et.setOpacity,Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual)},xt.prototype.createVisual=function(){this.visual=ve.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)},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.manipulate=function(mt){Dt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),this.setSize()},xt.prototype.setSize=function(){Dt.prototype.setSize.call(this),ve.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},xt.prototype.pointerUp=function(mt){Dt.prototype.pointerUp.call(this,mt),this.setSize()},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.visual&&ve.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},xt.prototype.setFillColor=function(mt){this.fillColor=mt,this.visual&&ve.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.visual&&ve.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.visual&&ve.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xt.prototype.setOpacity=function(mt){this.opacity=mt,this.visual&&ve.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){var Mt=mt;this.fillColor=Mt.fillColor,this.strokeColor=Mt.strokeColor,this.strokeWidth=Mt.strokeWidth,this.strokeDasharray=Mt.strokeDasharray,this.opacity=Mt.opacity,this.createVisual(),Dt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,Mt){Dt.prototype.scale.call(this,mt,Mt),this.setSize()},xt.typeName="EllipseMarker",xt.title="Ellipse marker",xt.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>',xt}(Xt),Pn=function(Dt){function xt(mt,Mt,Rt){return Dt.call(this,mt,Mt,Rt)||this}return Ft(xt,Dt),Object.defineProperty(xt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.tip1&&mt!==this.tip2)},xt.prototype.createTips=function(){this.tip1=ve.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(ve.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ve.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(ve.createTransform()),this.visual.appendChild(this.tip2)},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.state==="creating"&&this.createTips()},xt.prototype.adjustVisual=function(){if(Dt.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ve.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()]]),ve.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 mt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Mt=this.tip1.transform.baseVal.getItem(0);Mt.setRotate(mt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Mt,0);var Rt=this.tip2.transform.baseVal.getItem(0);Rt.setRotate(mt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Rt,0)}},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt),this.createTips(),this.adjustVisual()},xt.typeName="MeasurementMarker",xt.title="Measurement marker",xt.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>',xt}(qe),Gn=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.strokePanel.colors=Rt.defaultColorSet,Et.fillColor="transparent",Et}return Ft(xt,Dt),Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Dt.prototype.getState.call(this);return mt.typeName=xt.typeName,mt},xt.typeName="EllipseFrameMarker",xt.title="Ellipse frame marker",xt.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>',xt}(Xn),Ee=function(){function Dt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Dt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Dt.prototype.addUndoStep=function(xt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(xt)||(this.undoStack.push(xt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(xt)&&this.redoStack.splice(0,this.redoStack.length))},Dt.prototype.replaceLastUndoStep=function(xt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=xt)},Dt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Dt.prototype.undo=function(){if(this.undoStack.length>1){var xt=this.undoStack.pop();return xt!==void 0&&this.redoStack.push(xt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Dt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Dt}(),Jn=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.curveX=0,Et.curveY=0,Et.manipulationStartCurveX=0,Et.manipulationStartCurveY=0,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.positionGrips=Et.positionGrips.bind(Et),Et.addControlGrips=Et.addControlGrips.bind(Et),Et.adjustVisual=Et.adjustVisual.bind(Et),Et.setupControlBox=Et.setupControlBox.bind(Et),Et.resize=Et.resize.bind(Et),Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.strokePanel=new wt("Line color",Rt.defaultColorSet,Rt.defaultColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.strokeWidthPanel=new de("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Gt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.selectorCurve&&mt!==this.visibleCurve&&!this.curveGrip.ownsTarget(mt))},xt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},xt.prototype.createVisual=function(){this.visual=ve.createGroup(),this.selectorCurve=ve.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ve.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)},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=mt.x,this.curveY=mt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Mt)&&(this.activeGrip=this.curveGrip,this._state="resize")},xt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ve.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ve.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ve.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xt.prototype.setupControlBox=function(){Dt.prototype.setupControlBox.call(this),this.curveControlLine1=ve.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ve.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)},xt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Dt.prototype.addControlGrips.call(this)},xt.prototype.positionGrips=function(){Dt.prototype.positionGrips.call(this);var mt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-mt/2,this.curveY-mt/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()))},xt.prototype.manipulate=function(mt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+mt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+mt.y-this.manipulationStartY),Dt.prototype.manipulate.call(this,mt)},xt.prototype.resize=function(mt){this.activeGrip===this.curveGrip&&(this.curveX=mt.x,this.curveY=mt.y),Dt.prototype.resize.call(this,mt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.adjustVisual(),this.colorChanged(mt)},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.adjustVisual()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.adjustVisual()},xt.prototype.scale=function(mt,Mt){this.curveX=this.curveX*mt,this.curveY=this.curveY*Mt,Dt.prototype.scale.call(this,mt,Mt)},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Dt.prototype.getState.call(this));return mt.typeName=xt.typeName,mt},xt.prototype.restoreState=function(mt){Dt.prototype.restoreState.call(this,mt);var Mt=mt;this.strokeColor=Mt.strokeColor,this.strokeWidth=Mt.strokeWidth,this.strokeDasharray=Mt.strokeDasharray,this.curveX=Mt.curveX,this.curveY=Mt.curveY,this.createVisual(),this.adjustVisual()},xt.typeName="CurveMarker",xt.title="Curve marker",xt.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>',xt}(sn),ai=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,Mt,Rt)||this;return Et.fillColor="transparent",Et.strokeColor="transparent",Et.strokeWidth=0,Et.strokeDasharray="",Et.textColor="transparent",Et.fontSize="1rem",Et.isMoved=!1,Et.captionText="Caption",Et.PADDING=5,Et.captionBoxWidth=0,Et.captionBoxHeight=0,Et.strokeColor=Rt.defaultColor,Et.strokeWidth=Rt.defaultStrokeWidth,Et.strokeDasharray=Rt.defaultStrokeDasharray,Et.fillColor=Rt.defaultFillColor,Et.textColor=Rt.defaultStrokeColor,Et.fontFamily=Rt.defaultFontFamily,Et.fontSize=Rt.defaultCaptionFontSize,Et.captionText=Rt.defaultCaptionText,Et.setStrokeColor=Et.setStrokeColor.bind(Et),Et.setFillColor=Et.setFillColor.bind(Et),Et.setStrokeWidth=Et.setStrokeWidth.bind(Et),Et.setStrokeDasharray=Et.setStrokeDasharray.bind(Et),Et.createVisual=Et.createVisual.bind(Et),Et.sizeCaption=Et.sizeCaption.bind(Et),Et.setCaptionText=Et.setCaptionText.bind(Et),Et.showTextEditor=Et.showTextEditor.bind(Et),Et.positionTextEditor=Et.positionTextEditor.bind(Et),Et.finishTextEditing=Et.finishTextEditing.bind(Et),Et.setFont=Et.setFont.bind(Et),Et.setTextColor=Et.setTextColor.bind(Et),Et.strokePanel=new wt("Line color",oe(Rt.defaultColorSet,["transparent"]),Et.strokeColor),Et.strokePanel.onColorChanged=Et.setStrokeColor,Et.fillPanel=new wt("Fill color",oe(Rt.defaultColorSet,["transparent"]),Et.fillColor,Ue),Et.fillPanel.onColorChanged=Et.setFillColor,Et.strokeWidthPanel=new de("Line width",Rt.defaultStrokeWidths,Rt.defaultStrokeWidth),Et.strokeWidthPanel.onWidthChanged=Et.setStrokeWidth,Et.strokeStylePanel=new Gt("Line style",Rt.defaultStrokeDasharrays,Rt.defaultStrokeDasharray),Et.strokeStylePanel.onStyleChanged=Et.setStrokeDasharray,Et.fontFamilyPanel=new Ye("Font",Rt.defaultFontFamilies,Rt.defaultFontFamily),Et.fontFamilyPanel.onFontChanged=Et.setFont,Et.textColorPanel=new wt("Text color",Rt.defaultColorSet,Et.textColor,Ae),Et.textColorPanel.onColorChanged=Et.setTextColor,Et}return Ft(xt,Dt),xt.prototype.ownsTarget=function(mt){return!(!Dt.prototype.ownsTarget.call(this,mt)&&mt!==this.visual&&mt!==this.frame&&mt!==this.captionBg&&mt!==this.captionElement)},xt.prototype.createVisual=function(){this.visual=ve.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ve.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ve.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=ve.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()},xt.prototype.setCaptionText=function(mt){this.captionText=mt,this.captionElement.textContent=this.captionText,this.sizeCaption()},xt.prototype.pointerDown=function(mt,Mt){Dt.prototype.pointerDown.call(this,mt,Mt),this.isMoved=!1,this.pointerDownPoint=mt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(mt),this._state="creating")},xt.prototype.manipulate=function(mt){Dt.prototype.manipulate.call(this,mt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(mt.x-this.pointerDownPoint.x)>5||Math.abs(mt.y-this.pointerDownPoint.y)>5)},xt.prototype.resize=function(mt){Dt.prototype.resize.call(this,mt),this.setSize()},xt.prototype.sizeCaption=function(){var mt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=mt.width+2*this.PADDING,this.captionBoxHeight=mt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ve.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')"]]),ve.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')"]])},xt.prototype.showTextEditor=function(){var mt=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(Mt){Mt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Mt){Mt.key==="Enter"&&mt.finishTextEditing(mt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Mt){Mt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){mt.finishTextEditing(mt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},xt.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"))},xt.prototype.finishTextEditing=function(mt){this.setCaptionText(mt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},xt.prototype.setFont=function(mt){this.captionElement&&ve.setAttributes(this.captionElement,[["font-family",mt]]),this.fontFamily=mt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},xt.prototype.setTextColor=function(mt){this.captionElement&&ve.setAttributes(this.captionElement,[["fill",mt]]),this.textColor=mt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},xt.prototype.setSize=function(){Dt.prototype.setSize.call(this),ve.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},xt.prototype.pointerUp=function(mt){Dt.prototype.pointerUp.call(this,mt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},xt.prototype.dblClick=function(mt,Mt){Dt.prototype.dblClick.call(this,mt,Mt),this.showTextEditor()},xt.prototype.setStrokeColor=function(mt){this.strokeColor=mt,this.frame&&ve.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(mt),this.stateChanged()},xt.prototype.setFillColor=function(mt){this.fillColor=mt,this.captionBg&&ve.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(mt),this.stateChanged()},xt.prototype.setStrokeWidth=function(mt){this.strokeWidth=mt,this.frame&&ve.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xt.prototype.setStrokeDasharray=function(mt){this.strokeDasharray=mt,this.frame&&ve.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(xt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),xt.prototype.getState=function(){var mt=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},Dt.prototype.getState.call(this));return mt.typeName=this.typeName,mt},xt.prototype.restoreState=function(mt){var Mt=mt;this.fillColor=Mt.fillColor,this.strokeColor=Mt.strokeColor,this.strokeWidth=Mt.strokeWidth,this.strokeDasharray=Mt.strokeDasharray,this.textColor=Mt.textColor,this.fontFamily=Mt.fontFamily,this.captionText=Mt.captionText,this.fontSize=Mt.fontSize,this.createVisual(),Dt.prototype.restoreState.call(this,mt),this.setSize()},xt.prototype.scale=function(mt,Mt){Dt.prototype.scale.call(this,mt,Mt),this.setSize()},xt.typeName="CaptionFrameMarker",xt.title="Caption frame marker",xt.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>',xt}(Xt),ui=function(){function Dt(xt,mt){mt===void 0&&(mt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=xt,this.cancelable=mt}return Object.defineProperty(Dt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Dt.prototype.preventDefault=function(){this._defaultPrevented=!0},Dt}(),ln=function(Dt){function xt(mt,Mt,Rt){var Et=Dt.call(this,mt,!1)||this;return Et.dataUrl=Mt,Et.state=Rt,Et}return Ft(xt,Dt),xt}(ui),Te=function(Dt){function xt(mt,Mt,Rt){Rt===void 0&&(Rt=!1);var Et=Dt.call(this,mt,Rt)||this;return Et.marker=Mt,Et}return Ft(xt,Dt),xt}(ui),Me=function(){function Dt(){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 Dt.prototype.addEventListener=function(xt,mt){this[xt].push(mt)},Dt.prototype.removeEventListener=function(xt,mt){var Mt=this[xt].indexOf(mt);Mt>-1&&this[xt].splice(Mt,1)},Dt}(),ie=function(){function Dt(xt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new me,this._isOpen=!1,this.undoRedoManager=new Ee,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 Me,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Dt.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=xt,this.targetRoot=document.body,this.width=xt.clientWidth,this.height=xt.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(Dt.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ve,hn,Ht,je,Gn,Xn,yn,Sn,Pn,Ce,qe,Jn,ai]},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ve,hn,Ht,je,Xn,yn,Sn]},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ve,hn,Ht,je,yn]},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(xt){var mt=this;this._availableMarkerTypes.splice(0),xt.forEach(function(Mt){if(typeof Mt=="string"){var Rt=mt.ALL_MARKER_TYPES.find(function(Et){return Et.typeName===Mt});Rt!==void 0&&mt._availableMarkerTypes.push(Rt)}else mt._availableMarkerTypes.push(Mt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Dt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(xt){this._zoomLevel=xt,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(Dt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Dt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ye.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Dt.prototype.show=function(){var xt=this;this.styles.styleSheetRoot===void 0&&Tt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Tt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(mt){return mt(new ui(xt))})},Dt.prototype.render=function(){return ze(this,void 0,void 0,function(){var xt;return we(this,function(mt){switch(mt.label){case 0:return this.setCurrentMarker(),(xt=new Re).naturalSize=this.renderAtNaturalSize,xt.imageType=this.renderImageType,xt.imageQuality=this.renderImageQuality,xt.markersOnly=this.renderMarkersOnly,xt.width=this.renderWidth,xt.height=this.renderHeight,[4,xt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return mt.sent(),[4,xt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,mt.sent()]}})})},Dt.prototype.close=function(xt){var mt=this;if(xt===void 0&&(xt=!1),this.isOpen){var Mt=!1;xt||this.eventListeners.beforeclose.forEach(function(Rt){var Et=new ui(mt,!0);Rt(Et),Et.defaultPrevented&&(Mt=!0)}),Mt||(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(Rt){return Rt(new ui(mt))}),this.detachEvents(),this._isOpen=!1)}},Dt.prototype.addMarkersToToolbar=function(){for(var xt,mt=[],Mt=0;Mt<arguments.length;Mt++)mt[Mt]=arguments[Mt];(xt=this._availableMarkerTypes).push.apply(xt,mt)},Dt.prototype.addRenderEventListener=function(xt){this.addEventListener("render",function(mt){xt(mt.dataUrl,mt.state)})},Dt.prototype.removeRenderEventListener=function(xt){},Dt.prototype.addCloseEventListener=function(xt){this.addEventListener("close",function(){xt()})},Dt.prototype.removeCloseEventListener=function(xt){},Dt.prototype.setupResizeObserver=function(){var xt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){xt.resize(xt.target.clientWidth,xt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return xt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Dt.prototype.onPopupTargetResize=function(){var xt=1*this.target.clientWidth/this.target.clientHeight,mt=this.editorCanvas.clientWidth/xt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*xt:this.editorCanvas.clientWidth,Mt=mt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/xt;this.resize(mt,Mt)},Dt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Dt.prototype.resize=function(xt,mt){this._isResizing=!0;var Mt=xt/this.imageWidth,Rt=mt/this.imageHeight;this.imageWidth=Math.round(xt),this.imageHeight=Math.round(mt),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(Mt,Rt),this._isResizing=!1},Dt.prototype.scaleMarkers=function(xt,mt){var Mt,Rt=this;this._currentMarker&&this._currentMarker instanceof je?this._currentMarker.scale(xt,mt):(Mt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Et){Et!==Rt._currentMarker&&Et.scale(xt,mt)}),Mt!==void 0&&this.setCurrentMarker(Mt)},Dt.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"},Dt.prototype.setTopLeft=function(){var xt=this.editingTarget.getBoundingClientRect(),mt=this.editorCanvas.getBoundingClientRect();this.left=xt.left-mt.left,this.top=xt.top-mt.top},Dt.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)},Dt.prototype.addDefs=function(){for(var xt,mt=[],Mt=0;Mt<arguments.length;Mt++)mt[Mt]=arguments[Mt];this.defs=ve.createDefs(),this.addDefsToImage(),(xt=this.defs).append.apply(xt,mt)},Dt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Dt.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)},Dt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Dt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Dt.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)},Dt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Dt.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)},Dt.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 xt=document.createElement("a");xt.href="https://markerjs.com/",xt.target="_blank",xt.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>',xt.title="Powered by marker.js",xt.style.display="grid",xt.style.alignItems="center",xt.style.justifyItems="center",xt.style.padding="3px",xt.style.width="20px",xt.style.height="20px",this.logoUI.appendChild(xt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Dt.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")},Dt.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"},Dt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Dt.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 xt=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=xt+"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 st(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 gt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Dt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Dt.prototype.removeMarker=function(xt){this.markerImage.removeChild(xt.container),this.markers.indexOf(xt)>-1&&this.markers.splice(this.markers.indexOf(xt),1),xt.dispose()},Dt.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())},Dt.prototype.toolbarButtonClicked=function(xt,mt){if(xt==="marker"&&mt!==void 0)this.createNewMarker(mt);else if(xt==="action")switch(mt){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()}},Dt.prototype.deleteSelectedMarker=function(){var xt=this;if(this._currentMarker!==void 0){var mt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Rt){var Et=new Te(xt,xt._currentMarker,!0);Rt(Et),Et.defaultPrevented&&(mt=!0)}),!mt){var Mt=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(Rt){return Rt(new Te(xt,Mt))})}}},Dt.prototype.clear=function(){var xt=this,mt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(re){var Qe=new Te(xt,void 0,!0);re(Qe),Qe.defaultPrevented&&(mt=!0)}),!mt)){this.setCurrentMarker();for(var Mt=function(re){var Qe=Rt.markers[re];Rt.setCurrentMarker(Rt.markers[re]),Rt._currentMarker.dispose(),Rt.markerImage.removeChild(Rt._currentMarker.container),Rt.markers.splice(Rt.markers.indexOf(Rt._currentMarker),1),Rt.eventListeners.markerdelete.forEach(function(mn){return mn(new Te(xt,Qe))})},Rt=this,Et=this.markers.length-1;Et>=0;Et--)Mt(Et);this.addUndoStep()}},Object.defineProperty(Dt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Dt.prototype.showNotesEditor=function(){var xt;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=(xt=this._currentMarker.notes)!==null&&xt!==void 0?xt:"",this.overlayContainer.appendChild(this.notesArea))},Dt.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)},Dt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Dt.prototype.addUndoStep=function(){var xt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var mt=this.getState(),Mt=this.undoRedoManager.getLastUndoStep();if(!Mt||Mt.width===mt.width&&Mt.height===mt.height){var Rt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(mt),Rt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Et){return Et(new ui(xt))})}else this.undoRedoManager.replaceLastUndoStep(mt),this.eventListeners.statechange.forEach(function(Et){return Et(new ui(xt))})}},Dt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Dt.prototype.undoStep=function(){var xt=this,mt=this.undoRedoManager.undo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Mt){return Mt(new ui(xt))}))},Dt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Dt.prototype.redoStep=function(){var xt=this,mt=this.undoRedoManager.redo();mt!==void 0&&(this.restoreState(mt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Mt){return Mt(new ui(xt))}))},Dt.prototype.stepZoom=function(){var xt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=xt<this.zoomSteps.length-1?this.zoomSteps[xt+1]:this.zoomSteps[0]},Dt.prototype.panTo=function(xt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-xt.x,top:this.prevPanPoint.y-xt.y}),this.prevPanPoint=xt},Dt.prototype.startRenderAndClose=function(){return ze(this,void 0,void 0,function(){var xt,mt,Mt=this;return we(this,function(Rt){switch(Rt.label){case 0:return[4,this.render()];case 1:return xt=Rt.sent(),mt=this.getState(),this.eventListeners.render.forEach(function(Et){return Et(new ln(Mt,xt,mt))}),this.close(!0),[2]}})})},Dt.prototype.getState=function(xt){xt===!0&&this.setCurrentMarker();var mt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Mt){return mt.markers.push(Mt.getState())}),mt},Dt.prototype.restoreState=function(xt){var mt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);xt.markers.forEach(function(Mt){var Rt=mt._availableMarkerTypes.find(function(re){return re.typeName===Mt.typeName});if(Rt!==void 0){var Et=mt.addNewMarker(Rt);Et.restoreState(Mt),mt.markers.push(Et)}}),xt.width&&xt.height&&(xt.width!==this.imageWidth||xt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/xt.width,this.imageHeight/xt.height),this.eventListeners.restorestate.forEach(function(Mt){return Mt(new ui(mt))})},Dt.prototype.addNewMarker=function(xt){var mt=ve.createGroup();return this.markerImage.appendChild(mt),new xt(mt,this.overlayContainer,this.settings)},Dt.prototype.createNewMarker=function(xt){var mt,Mt=this;(mt=typeof xt=="string"?this._availableMarkerTypes.find(function(Rt){return Rt.typeName===xt}):xt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(mt),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(mt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Rt){return Rt(new Te(Mt,Mt._currentMarker))}))},Dt.prototype.markerCreated=function(xt){var mt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(xt),this.setCurrentMarker(xt),xt instanceof hn&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(hn):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Mt){return Mt(new Te(mt,mt._currentMarker))})},Dt.prototype.colorChanged=function(xt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=xt,this.settings.defaultStrokeColor=xt)},Dt.prototype.fillColorChanged=function(xt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=xt)},Dt.prototype.markerStateChanged=function(xt){var mt=this;this.eventListeners.markerchange.forEach(function(Mt){return Mt(new Te(mt,xt))})},Dt.prototype.setCurrentMarker=function(xt){var mt=this;this._currentMarker!==xt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Mt){return Mt(new Te(mt,mt._currentMarker))})),this._currentMarker=xt,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(Mt){return Mt(new Te(mt,mt._currentMarker))}))},Dt.prototype.onPointerDown=function(xt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||xt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var mt=this.markers.find(function(Mt){return Mt.ownsTarget(xt.target)});mt!==void 0?(this.setCurrentMarker(mt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xt.clientX,xt.clientY),xt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:xt.clientX,y:xt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xt.clientX,xt.clientY))},Dt.prototype.onDblClick=function(xt){if(this._isFocused||this.focus(),this.mode==="select"){var mt=this.markers.find(function(Mt){return Mt.ownsTarget(xt.target)});mt!==void 0&&mt!==this._currentMarker&&this.setCurrentMarker(mt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(xt.clientX,xt.clientY),xt.target):this.setCurrentMarker()}},Dt.prototype.onPointerMove=function(xt){this.touchPoints!==1&&xt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||xt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(xt.clientX,xt.clientY)):this.zoomLevel>1&&this.panTo({x:xt.clientX,y:xt.clientY}))},Dt.prototype.onPointerUp=function(xt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(xt.clientX,xt.clientY)),this.isDragging=!1,this.addUndoStep()},Dt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Dt.prototype.onKeyUp=function(xt){this._currentMarker===void 0||this.notesArea!==void 0||xt.key!=="Delete"&&xt.key!=="Backspace"||this.deleteSelectedMarker()},Dt.prototype.clientToLocalCoordinates=function(xt,mt){var Mt=this.markerImage.getBoundingClientRect();return{x:(xt-Mt.left)/this.zoomLevel,y:(mt-Mt.top)/this.zoomLevel}},Dt.prototype.onWindowResize=function(){this.positionUI()},Dt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var xt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=xt+"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()},Dt.prototype.addLicenseKey=function(xt){ye.addKey(xt)},Dt.prototype.addEventListener=function(xt,mt){this.eventListeners.addEventListener(xt,mt)},Dt.prototype.removeEventListener=function(xt,mt){this.eventListeners.removeEventListener(xt,mt)},Dt.prototype.renderState=function(xt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(xt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Dt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Dt.prototype.focus=function(){var xt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(mt){return mt(new ui(xt))}))},Dt.prototype.blur=function(){var xt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(mt){return mt(new ui(xt))}))},Dt.instanceCounter=0,Dt}(),Kt=St(70635),Oe=St(58130),ke=(Dt,xt,mt)=>new Promise((Mt,Rt)=>{var Et=mn=>{try{Qe(mt.next(mn))}catch(le){Rt(le)}},re=mn=>{try{Qe(mt.throw(mn))}catch(le){Rt(le)}},Qe=mn=>mn.done?Mt(mn.value):Promise.resolve(mn.value).then(Et,re);Qe((mt=mt.apply(Dt,xt)).next())}),qt=({data:Dt,className:xt,fullWidth:mt,style:Mt={},onClose:Rt,onOk:Et,showFullTools:re,noAssociationId:Qe})=>{const mn=(0,Ct.useRef)(null),le=(0,Ct.useRef)(null),Ge=(0,Ct.useRef)(null),cn=(0,Ct.useRef)(null),[Mn,Zn]=(0,Ct.useState)(!1),[_n,di]=(0,Ct.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ct.useEffect)(()=>{Ge.current||(Ge.current=document.createElement("style"),document.head.appendChild(Ge.current)),Dt!=null&&Dt.visible?(document.body.setAttribute("data-custom","y-hidden"),Ge.current.innerHTML=" html { overflow-y: hidden; }",Dt!=null&&Dt.src&&ri()):(document.body.removeAttribute("data-custom"),Ge.current&&(document.head.removeChild(Ge.current),Ge.current=null))},[Dt==null?void 0:Dt.visible]);const ri=()=>ke(void 0,null,function*(){Zn(!0),di("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ji=yield(0,Oe.ZJ)(Dt==null?void 0:Dt.src);mn.current.src="",mn.current.src=ji,mn.current.onload=function(){Vi()},Zn(!1),di("")}),Fi=ji=>ke(void 0,null,function*(){Zn(!0),di("\u6B63\u5728\u4FDD\u5B58\u4E2D");const qi=yield(0,Kt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Dt.title,file:ji.dataUrl}});qi!=null&&qi.id&&!Qe?(yield(0,Kt.ZP)(`/api/attachments/${Dt.id}/add_subitem.json`,{method:"post",body:{subitem_id:qi==null?void 0:qi.id,settings:JSON.stringify(ji.state)}})).status===0&&Et():qi!=null&&qi.id&&Et(qi),Zn(!1),di("")}),Zi=()=>{const ji=document.querySelector('a[href="https://markerjs.com/"]');ji&&ji.parentNode&&(ji.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(wo=>{const Ei=document.querySelector(wo.name);Ei&&Ei.setAttribute("title",wo.title)})},Vi=()=>{le.current=new ie(mn.current),le.current.targetRoot=cn.current,le.current.addEventListener("render",Fi),le.current.addEventListener("beforeclose",Rt),re&&(le.current.availableMarkerTypes=le.current.ALL_MARKER_TYPES,le.current.uiStyleSettings.redoButtonVisible=!0,le.current.uiStyleSettings.notesButtonVisible=!0,le.current.uiStyleSettings.zoomButtonVisible=!0,le.current.uiStyleSettings.zoomOutButtonVisible=!0,le.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=le.current.uiStyleSettings,le.current.show(),Dt!=null&&Dt.snapshotData&&le.current.restoreState(Dt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Zi()},300)};return Ct.createElement(Ct.Fragment,null,(Dt==null?void 0:Dt.visible)&&Ct.createElement(Vt.Z,{spinning:Mn,tip:_n,style:{position:"absolute"}},Ct.createElement("div",{ref:cn,className:Ne()(It.imageDimensions,xt,mt?It.fullWidth:""),style:Mt},Ct.createElement("img",{className:It.img,ref:mn}))))}},75890:function(Dn,An,St){"use strict";var Ct=St(59301),It=St(95237),ee=St(43604),Ne=St(99313),Vt=St(3113),fe=St(25711),Ft=St(93938),ze=St(48136),we=St(59301);const oe=(0,Ct.forwardRef)(({callback:ve,showSaveButton:ye,value:Re=""},Tt)=>{const et=(0,Ct.useRef)(),nt=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ht=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],st=wt=>{et.current.setValue(et.current.getValue()+" "+wt.value+" ")},gt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:we.createElement(It.Z,{className:Ft.Z.lists,gutter:[10,10]},nt.map((wt,Bt)=>we.createElement(ee.Z,{flex:"110px",className:Ft.Z.item},we.createElement("div",null,we.createElement(fe.Z,{value:`$$${wt.value}$$`}),wt.name),we.createElement("div",{className:Ft.Z.children},wt.children.map((kt,Ot)=>we.createElement("div",{key:Ot},we.createElement("h1",null,kt.name),we.createElement(It.Z,{gutter:[10,10]},kt.data.map((jt,Xt)=>we.createElement(ee.Z,{key:Xt,onClick:()=>st(jt),className:Ft.Z.diamond},we.createElement(fe.Z,{value:"`$$"+jt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:we.createElement(It.Z,{className:Ft.Z.lists,gutter:[10,10]},ht.map((wt,Bt)=>we.createElement(ee.Z,{flex:"110px",className:Ft.Z.item},we.createElement("div",null,we.createElement(fe.Z,{value:"`$$"+wt.value+"$$`"}),wt.name),we.createElement("div",{className:Ft.Z.children},wt.children.map((kt,Ot)=>we.createElement("div",{key:Ot},kt.name&&we.createElement("h1",null,kt.name),we.createElement(It.Z,{gutter:[10,10]},kt.data.map((jt,Xt)=>we.createElement(ee.Z,{key:Xt,onClick:()=>st(jt),className:Ft.Z.diamond},we.createElement(fe.Z,{value:"`$$"+jt.value+"$$`"}))))))))))}],vt=()=>{var wt=document.createElement("div");wt.innerHTML=et.current.getValue();var Bt=wt.innerText;return ve&&ve(Bt),Bt};return(0,Ct.useImperativeHandle)(Tt,()=>({getData:vt})),we.createElement("div",{className:Ft.Z.mathWrap},we.createElement(Ne.default,{defaultActiveKey:"1",items:gt}),we.createElement("math-field",{locale:"zh_cn",className:Ft.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},Re||""),ye&&we.createElement("div",{className:Ft.Z.button},we.createElement(Vt.ZP,{size:"large",onClick:vt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});An.Z=oe},97267:function(Dn,An,St){"use strict";var Ct=St(59301),It=St(93314),ee=St(3113),Ne=Object.defineProperty,Vt=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,oe=(Tt,et,nt)=>et in Tt?Ne(Tt,et,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Tt[et]=nt,ve=(Tt,et)=>{for(var nt in et||(et={}))ze.call(et,nt)&&oe(Tt,nt,et[nt]);if(Ft)for(var nt of Ft(et))we.call(et,nt)&&oe(Tt,nt,et[nt]);return Tt},ye=(Tt,et)=>Vt(Tt,fe(et));const Re=({img:Tt,buttonProps:et={},styles:nt={},customText:ht,ButtonText:st,ButtonClick:gt,Buttonclass:vt,ButtonTwo:wt,imgStyles:Bt,loading:kt=!1})=>Ct.createElement("section",{className:"tc animated fadeIn",style:ve(ve({},{color:"#999",margin:"100px auto",visibility:kt?"hidden":"visible"}),nt)},Ct.createElement("img",{src:Tt||It,style:ye(ve({},Bt),{pointerEvents:"none",userSelect:"none"})}),Ct.createElement("p",{className:"mt20 font14"},ht||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),st&&Ct.createElement(ee.ZP,ve({className:vt,onClick:gt},et),st),wt&&wt);An.Z=Re},79646:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return vt}});var Ct=St(59301),It={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ee=St(3113),Ne=St(63093),Vt=St(48551),fe=St(6848),Ft=St(58130),ze=St(79124),we=St(97267),oe=St(10148),ve=St(63486),ye=St(59301),Re=Object.defineProperty,Tt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,ht=(wt,Bt,kt)=>Bt in wt?Re(wt,Bt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):wt[Bt]=kt,st=(wt,Bt)=>{for(var kt in Bt||(Bt={}))et.call(Bt,kt)&&ht(wt,kt,Bt[kt]);if(Tt)for(var kt of Tt(Bt))nt.call(Bt,kt)&&ht(wt,kt,Bt[kt]);return wt},gt=(wt,Bt,kt)=>new Promise((Ot,jt)=>{var Xt=Gt=>{try{de(kt.next(Gt))}catch(Ve){jt(Ve)}},Ut=Gt=>{try{de(kt.throw(Gt))}catch(Ve){jt(Ve)}},de=Gt=>Gt.done?Ot(Gt.value):Promise.resolve(Gt.value).then(Xt,Ut);de((kt=kt.apply(wt,Bt)).next())}),vt=({editOffice:wt="view",data:Bt,theme:kt,type:Ot,filename:jt,monacoEditor:Xt,className:Ut,style:de,close:Gt,onClose:Ve,hasMask:me,disabledDownload:sn,onImgDimensions:qe,showNodata:Ye,recordInfo:je})=>{const[hn,ge]=(0,Ct.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ht,Ce]=(0,Ct.useState)(""),[bn,yn]=(0,Ct.useState)(),Ae=window.ENV==="build"?"/react/build":"",Ue=location.host.startsWith("localhost")?oe.Z.PROXY_SERVER:oe.Z.API_SERVER,Xn=10*(1024*1024),Pn=(0,Ct.useRef)();Bt!=null&&Bt.startsWith("/api")&&Ot!=="txt"&&(Bt=oe.Z.API_SERVER+Bt);const Gn=ui=>ui.substring(ui.lastIndexOf("/")+1).split(".").pop();jt&&Xt&&(Xt.filename=jt),(0,Ct.useEffect)(()=>{var ui,ln;const Te=(ln=(ui=document.cookie)==null?void 0:ui.replace(/\s/g,""))==null?void 0:ln.split(";");Te==null||Te.map(Me=>{let ie=Me.split("=");ie[0]==="_educoder_session"&&Ce(ie[1])})},[]),(0,Ct.useEffect)(()=>{Ot==="office"&&(Bt.indexOf("bigfilescdn.")>-1||Bt.indexOf("bigfiles1")>-1?yn({url:Bt,fileType:Gn(Bt),model:Bt.indexOf("model=edit")?"edit":"view"}):Ee())},[Ot,Bt]);const Ee=()=>gt(void 0,null,function*(){console.log("data:",Bt);let ui=Bt;Bt.startsWith("http")||(ui=location.origin+ui);let ln=new URL(ui).pathname.split("/").pop();const Te=yield(0,ze.gJ)({attachment_id:ln});Te.url=Ue+Te.url,yn(Te)}),Jn=()=>{if(Bt.startsWith("http")||Bt.startsWith("blob:")){ai();return}(0,Ft.Sv)(jt||"educoder",Bt,jt)},ai=()=>{je&&(0,ve.fc)({id:je==null?void 0:je.id,watch_type:1,course_id:je==null?void 0:je.course_id}),(0,Ft.Nd)(jt||"educoder",decodeURIComponent(Bt))};return ye.createElement("div",{style:st({},de||{}),className:`${me&&It.bgBlack} ${Ot?It.wrp:"hide"}`},Gt&&ye.createElement("div",{className:It.close,ref:Pn},!!qe&&ye.createElement(fe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Pn.current},ye.createElement("span",{onClick:()=>{Ve(),qe()}},ye.createElement("i",{className:"icon-yulanpizhu"}))),!sn&&ye.createElement(fe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Pn.current},ye.createElement("span",{onClick:ai},ye.createElement("i",{className:"icon-quxiaozhiding"}))),ye.createElement(fe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Pn.current},ye.createElement("span",{className:"",onClick:Ve},ye.createElement("i",{className:"icon-guanbi1"})))),ye.createElement("div",{className:`${It[Ut]} ${Ut} ${It.monaco} ${Ot==="txt"?"show":"hide"}`},Ot==="txt"&&ye.createElement(ye.Fragment,null,ye.createElement(Vt.ZP,st({},Xt)))),Ot==="audio"&&ye.createElement("audio",{src:`${(Bt==null?void 0:Bt.indexOf("http://"))>-1||(Bt==null?void 0:Bt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Bt}`,autoPlay:!0}),Ot==="video"&&ye.createElement(ye.Fragment,null,(Bt==null?void 0:Bt.indexOf("http"))>-1?ye.createElement("video",{controls:!0,src:`${Bt}`,autoPlay:!0}):ye.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Bt}`,autoPlay:!0})),Ot==="office"&&bn&&ye.createElement("iframe",{src:`${Ae}/office.html?key=${bn.key}&url=${btoa(bn.url)}&callbackUrl=${Ue+(bn.callbackUrl||"")}&fileType=${bn.fileType}&title=${bn.title||""}&model=${wt}&officeServer=${oe.Z.ONLYOFFICE}&disabledDownload=${!!sn}`}),Ot==="html"&&ye.createElement("iframe",{src:Bt+"&disposition=inline"}),Ot==="pdf"&&ye.createElement("iframe",{src:`${Ae}/js/pdfview/index.html?filename=${jt||"educoder.pdf"}&url=${encodeURIComponent(Bt)}&disabledDownload=${!!sn}`}),Ot==="image"&&ye.createElement("img",{src:`${(Bt==null?void 0:Bt.indexOf("http://"))>-1||(Bt==null?void 0:Bt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Bt}`}),(Ot==="other"||Ot==="download")&&ye.createElement(ye.Fragment,null,Ye?ye.createElement(we.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ye.createElement(ee.ZP,{icon:ye.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Jn,disabled:sn},"\u4E0B\u8F7D")}):ye.createElement(ee.ZP,{type:"primary",size:"middle",onClick:Jn,disabled:sn},ye.createElement(Ne.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(Dn,An,St){"use strict";St.d(An,{z:function(){return Ot},Z:function(){return jt}});var Ct=St(59301),It=St(1751),ee=St(31087),Ne=St(64018),Vt=St(37312),fe=St(10148),Ft=St(58130),ze=St(15342),we=St(1012),oe=St(79646),ve=St(59301),Re=({html:Xt})=>{const Ut=(0,Ct.useRef)(null),de=(0,Ct.useRef)(null),Gt=`.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,Ct.useEffect)(()=>{const Ve=Ut.current.attachShadow({mode:"open"});de.current=document.createElement("div"),de.current.className="markdown-body",de.current.innerHTML=Xt,Ve.appendChild(de.current);const me=document.createElement("style");return me.textContent=Gt,Ve.appendChild(me),()=>{Ve.innerHTML=""}},[]),(0,Ct.useEffect)(()=>{de.current&&(de.current.innerHTML=Xt)},[Xt]),ve.createElement("div",{ref:Ut})},Tt=Object.defineProperty,et=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,st=(Xt,Ut,de)=>Ut in Xt?Tt(Xt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:de}):Xt[Ut]=de,gt=(Xt,Ut)=>{for(var de in Ut||(Ut={}))nt.call(Ut,de)&&st(Xt,de,Ut[de]);if(et)for(var de of et(Ut))ht.call(Ut,de)&&st(Xt,de,Ut[de]);return Xt};const vt="@\u2581\u2581@",wt="@\u2581@",Bt=/<pre[^>]*>/g;function kt(Xt){let Ut=document.createElement("div");return Ut.innerHTML=Xt,Ut.childNodes.length===0?"":Ut.childNodes[0].nodeValue}const Ot=(Xt,Ut)=>{Xt=Xt||"";const de=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Gt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ve=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,me=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ut?Xt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(de,(sn,qe,Ye,je,hn,ge,Ht)=>{const Ce=qe||je||ge,bn=Ye||hn||Ht||"?";return fe.Z.API_SERVER+"/api/attachments/"+Ce+bn+"&t="+(0,Ft.Jn)(Ce,Date.now())+(sn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Xt=Xt.replace(me,(sn,qe,Ye,je,hn,ge,Ht)=>{const Ce=qe||je||ge,bn=Ye||hn||Ht||"?";return fe.Z.API_SERVER+"/attachments/download/"+Ce+bn+"&t="+(0,Ft.Jn)(Ce,Date.now())+(sn.indexOf(")")>-1?")":"&")}).replace(de,(sn,qe,Ye,je,hn,ge,Ht)=>{const Ce=qe||je||ge,bn=Ye||hn||Ht||"?";return fe.Z.API_SERVER+"/api/attachments/"+Ce+bn+"&t="+(0,Ft.Jn)(Ce,Date.now())+(sn.indexOf(")")>-1?")":"&")}).replace(Gt,(sn,qe,Ye,je,hn)=>{const ge=qe||je,Ht=Ye||hn||"";return'"'+fe.Z.API_SERVER+"/api/attachments/"+ge+Ht+ge+Ht+"&t="+(0,Ft.Jn)(ge,Date.now())}).replace(Ve,(sn,qe,Ye,je,hn)=>{const ge=qe||je,Ht=Ye||hn||"";return"("+fe.Z.API_SERVER+"/files/uploads/"+ge+Ht+ge+Ht+"&t="+(0,Ft.Jn)(ge,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,`
|
|
|
`),Xt)};var jt=({value:Xt="",className:Ut,showTextOnly:de,showLines:Gt,style:Ve={},stylesPrev:me={},highlightKeywords:sn,showProgramFill:qe,isProgramFill:Ye,disabledFill:je=!1,programFillValue:hn,onFillChange:ge=bn=>{},onFillBlur:Ht=()=>{},onFillFocus:Ce=()=>{}})=>{let bn=String(Xt);const[yn,Ae]=(0,Ct.useState)(""),[Ue,Sn]=(0,Ct.useState)("office"),[Xn,Pn]=(0,Ct.useState)([]),Gn=(0,Ct.useRef)("a"+(0,we.Z)()),Ee={},Jn=(Dt,xt,mt)=>{const Mt=document.createElement(Dt===wt?"input":"textarea");Mt.style.width="100%",Mt.style.height=Dt===wt?"40px":"151px",Mt.rows=5,Mt.spellcheck=!1,Mt.name="edu-program-fill",Mt.placeholder="\u8BF7\u8F93\u5165",Mt.dataset.id=xt;const Rt=Object.keys(Ee).length;return Ee[Rt]=Mt,`<span class="edu-program-fill-wrap ${Dt===wt?"":"show"}" style="width:${Dt===wt?"400px":"100%"}" title=${mt||""}><span>${Mt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ai(Dt){return Dt=Dt.replace(/!\[.*?\]\(.*?\)/g,""),Dt=Dt.replace(/\[.*?\]\(.*?\)/g,""),Dt=Dt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Dt=Dt.replace(/<embed.*?>/g,""),Dt=Dt.replace(/<img.*?>/g,""),Dt=Dt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Dt=Dt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Dt=Dt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Dt=Dt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Dt}const ui=Dt=>Dt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(xt,mt){let Mt=mt.replace(/(\n|\r)/g,"").split("}"),Rt=[];return Mt.map(Et=>{Et!=""&&Rt.push(`.${Gn.current} ${Et}`)}),`<style>${Rt.join("}")}</style>`}),ln=(0,Ct.useMemo)(()=>{try{const Mt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Rt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Et=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,re=/\(\/attachments\/download\//g;bn=bn.replace(re,"("+fe.Z.API_SERVER+"/attachments/download/").replace(Mt,"("+fe.Z.API_SERVER+"/api/attachments/").replace(Rt,'"'+fe.Z.API_SERVER+"/api/attachments/").replace(Et,'"'+fe.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(qe){let Mt=-1;return bn=bn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Rt,Et,re){var Qe;return++Mt,Jn(Rt,Mt,(Qe=hn==null?void 0:hn[Mt])==null?void 0:Qe.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ui(bn||"")}</pre>`}let Dt=ui(bn);Dt=(0,ee.ZP)(Dt);const xt=(0,ee.ez)();bn.match(/\[TOC\]/)&&(Dt=Dt.replace("<p>[TOC]</p>",(0,ee.Qv)()),(0,ee.Iy)()),Dt=Dt.replace(/(__special_katext_id_\d+__)/g,(Mt,Rt)=>{const{type:Et,expression:re}=xt[Rt];return(0,ze.renderToString)(kt(re)||"",{displayMode:Et==="block",throwOnError:!1,output:"html"})}),Dt=Dt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ee.AL)();const mt=document.createElement("div");if(mt.innerHTML=Dt,de)return mt.innerText;if(sn){const Mt=sn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Kt(mt,Mt),mt.innerHTML}return setTimeout(()=>te(),500),mt.innerHTML},[bn,sn]);(0,Ct.useEffect)(()=>{Oe.current&&Oe.current.querySelectorAll(["input","textarea"]).forEach(xt=>{xt.oninput=Te,xt.onblur=Me,xt.onfocus=ie})},[Xn]),(0,Ct.useEffect)(()=>{var Dt,xt,mt,Mt,Rt;if(hn!=null&&hn.length)try{const Et=Oe.current.querySelectorAll(".edu-program-fill-score"),re=Oe.current.querySelectorAll('[name="edu-program-fill"]');for(const[Qe,mn]of re.entries())mn.value=((Dt=hn==null?void 0:hn[Qe])==null?void 0:Dt.value)||"",((xt=hn==null?void 0:hn[Qe])==null?void 0:xt.type)==="warning"?mn.className="program-fill-warning":((mt=hn==null?void 0:hn[Qe])==null?void 0:mt.type)==="success"?mn.className="program-fill-success":mn.className="";for(const[Qe,mn]of Et.entries())mn.innerHTML=(Mt=hn==null?void 0:hn[Qe])!=null&&Mt.score?`${(Rt=hn==null?void 0:hn[Qe])==null?void 0:Rt.score}\u5206`:"";Pn(hn)}catch(Et){console.log(Et,"error")}},[hn]);const Te=Dt=>{Xn[Dt.target.dataset.id]=Xn[Dt.target.dataset.id]||{},Xn[Dt.target.dataset.id].value=Dt.target.value,Pn([...Xn]),ge(Xn,Dt.target.dataset.id)},Me=Dt=>{Xn[Dt.target.dataset.id]=Xn[Dt.target.dataset.id]||{},Xn[Dt.target.dataset.id].value=Dt.target.value,Pn([...Xn]),Ht(Xn,Dt.target.dataset.id)},ie=Dt=>{Xn[Dt.target.dataset.id]=Xn[Dt.target.dataset.id]||{},Xn[Dt.target.dataset.id].value=Dt.target.value,Pn([...Xn]),Ce(Xn,Dt.target.dataset.id)};function Kt(Dt,xt){return Dt.childNodes.forEach(mt=>{var Mt;if(mt.childNodes.length>0)Kt(mt,xt);else if(mt.nodeName!=="IMG")if(mt.innerHTML)mt.innerHTML=(Mt=mt.innerHTML)==null?void 0:Mt.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Rt=document.createElement("span");Rt.innerHTML=mt.textContent.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),mt.replaceWith(Rt)}})}const Oe=(0,Ct.useRef)();ee.jb.WebkitLineClamp=Gt,Gt&&(Ve=gt(gt({},Ve),ee.jb));function ke(Dt){let xt=Dt.target;if(xt.tagName.toUpperCase()==="A"){let mt=xt.getAttribute("href");if(mt.indexOf("office")>-1)Dt.preventDefault(),Ae(mt),Sn("office");else if(mt.indexOf("application/pdf")>-1)Dt.preventDefault(),Ae(mt),Sn("pdf");else if(mt.indexOf("text/html")>-1)Dt.preventDefault(),Ae(mt),Sn("html");else if(mt.startsWith("#")){Dt.preventDefault();let Mt=document.getElementById(mt.replace("#",""));Mt&&Mt.scrollIntoView(!0)}}}const te=()=>{var Dt;const xt=(Dt=Oe.current)==null?void 0:Dt.querySelectorAll("video");xt==null||xt.forEach(mt=>{if(mt.oncontextmenu=()=>!1,mt.src.indexOf(".m3u8")>-1&&!mt.canPlayType("application/vnd.apple.mpegurl")){if(Vt.ZP.isSupported()){var Mt=new Vt.ZP;Mt.loadSource(mt.src),Mt.attachMedia(mt)}}})};(0,Ct.useEffect)(()=>{if(Oe.current&&ln&&ln.match(Bt)&&window.PR.prettyPrint(),Oe.current)return Oe.current.addEventListener("click",ke),()=>{var Dt;(Dt=Oe.current)==null||Dt.removeEventListener("click",ke),(0,ee.AL)(),(0,ee.Iy)()}},[ln,Oe.current,ke]),(0,Ct.useEffect)(()=>{var Dt;const xt=mt=>{mt.preventDefault(),mt.clipboardData.setData("text",window.getSelection().toString())};return(Dt=Oe.current)==null||Dt.addEventListener("copy",xt),()=>{var mt;(mt=Oe.current)==null||mt.removeEventListener("copy",xt)}},[Oe.current]);const qt=Dt=>/<style[\s\S]*?>/i.test(Dt||"");return Ct.createElement(Ct.Fragment,null,de&&Ct.createElement("div",{ref:Oe},ln),!de&&!qt(ln)&&Ct.createElement("div",{ref:Oe,style:gt({},Ve),className:`${Ut||""} ${je?"disabled-fill":""} markdown-body ${Gn.current}`,dangerouslySetInnerHTML:{__html:ln}}),!de&&qt(ln)&&Ct.createElement(Re,{html:ln}),Ct.createElement(oe.Z,{close:!0,data:yn,type:yn!=null&&yn.length?Ue:"",style:gt({},me),onClose:()=>Ae("")}))}},36866:function(Dn,An,St){"use strict";St.d(An,{h:function(){return wt},Z:function(){return vt}});var Ct=St(59301),It=St(57809),ee=St(78241),Ne=St(3113),Vt=St(89780),fe=St.n(Vt),Ft=St(79906),ze=Object.defineProperty,we=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Tt=(Bt,kt,Ot)=>kt in Bt?ze(Bt,kt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):Bt[kt]=Ot,et=(Bt,kt)=>{for(var Ot in kt||(kt={}))ye.call(kt,Ot)&&Tt(Bt,Ot,kt[Ot]);if(ve)for(var Ot of ve(kt))Re.call(kt,Ot)&&Tt(Bt,Ot,kt[Ot]);return Bt},nt=(Bt,kt)=>we(Bt,oe(kt));const ht=It.default.Option,st={labelCol:{span:4},wrapperCol:{span:20}},gt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var vt=({callback:Bt,onCancel:kt})=>{const[Ot,jt]=(0,Ct.useState)("python");function Xt(de){jt(gt[de][1])}function Ut(de){Bt(de)}return Ct.createElement(ee.default,nt(et({},st),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ut,style:{width:500}}),Ct.createElement(ee.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ct.createElement(It.default,{getPopupContainer:de=>de.parentNode,onChange:Xt},Object.keys(gt).map(de=>Ct.createElement(ht,{key:de,value:de},gt[de][0])))),Ct.createElement(ee.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ct.createElement(wt,{mode:Ot})),Ct.createElement("div",{className:"flex-container flex-end"},Ct.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ct.createElement(Ne.ZP,{type:"ghost",onClick:kt},"\u53D6\u6D88")))};function wt({value:Bt,onChange:kt,mode:Ot,options:jt={}}){const Xt=(0,Ct.useRef)(),[Ut,de]=(0,Ct.useState)();return(0,Ct.useEffect)(()=>{if(Ut){let Gt=function(Ve){const me=Ve.getValue();kt&&kt(me)};return Ut.on("change",Gt),()=>{Ut.off("change",Gt)}}},[Ut,kt]),(0,Ct.useEffect)(()=>{Ut&&Ut.setOption("mode",Ot)},[Ut,Ot]),(0,Ct.useEffect)(()=>{Ut&&(Bt!==Ut.getValue()||Bt==="")&&setTimeout(()=>{Ut.setValue(Bt||"")},300)},[Ut,Bt]),(0,Ct.useEffect)(()=>{if(Xt.current&&!Ut){const Gt=fe().fromTextArea(Xt.current,et({mode:Ot,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},jt));de(Gt)}},[Xt.current,Ut]),Ct.createElement("div",{className:"my-codemirror-container"},Ct.createElement("textarea",{ref:Xt}))}},23469:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return Rn}});var Ct=St(59301),It=St(89780),ee=St.n(It),Ne=St(76374),Vt=St(79906),fe=St(6313),Ft=St(25717),ze=St(99498),we=St(25419),oe=St(67549),ve=St(25711),ye=({value:Le="",className:Fe,showTextOnly:he,showLines:_t,style:Ze={}})=>{const tn=(0,Ct.useMemo)(()=>"",[Le]);return Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{dangerouslySetInnerHTML:{__html:tn}}))},Re=St(59301),Tt=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,vt=(Le,Fe,he)=>Fe in Le?Tt(Le,Fe,{enumerable:!0,configurable:!0,writable:!0,value:he}):Le[Fe]=he,wt=(Le,Fe)=>{for(var he in Fe||(Fe={}))st.call(Fe,he)&&vt(Le,he,Fe[he]);if(ht)for(var he of ht(Fe))gt.call(Fe,he)&&vt(Le,he,Fe[he]);return Le},Bt=(Le,Fe)=>et(Le,nt(Fe));let kt=[{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 Ot({onActionCallback:Le,title:Fe,icon:he,actionName:_t,className:Ze="",children:tn}){function Se(){Le(_t)}return Re.createElement("a",{title:Fe,className:Ze,onClick:Se},Re.createElement("i",{className:`${he}`}),tn)}var jt=({watch:Le,showNullButton:Fe,showNullProgramButton:he,onActionCallback:_t,fullScreen:Ze,insertTemp:tn,hidetoolBar:Se,extraUse:Yt})=>{const $e=[...kt,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!Se&&$e.map((on,zn)=>Re.createElement("li",{key:zn},on.actionName?Re.createElement(Ot,Bt(wt({},on),{onActionCallback:_t})):Re.createElement("span",{className:"v-line"}))),Fe?Re.createElement("li",null,Re.createElement(Ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:_t},Re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,he?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Re.createElement(Ot,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:_t},Re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Re.createElement("li",null,Re.createElement(Ot,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:_t},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,tn&&Re.createElement("li",null,Re.createElement(Ot,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${tn}`,onActionCallback:_t},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Yt&&Re.createElement("li",null,Yt),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(Ot,{icon:`${Ze?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ze?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_t})))},Xt=St(50474),Ut=St(78241),de=St(92832),Gt=St(3113),Ve=Object.defineProperty,me=Object.defineProperties,sn=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,hn=(Le,Fe,he)=>Fe in Le?Ve(Le,Fe,{enumerable:!0,configurable:!0,writable:!0,value:he}):Le[Fe]=he,ge=(Le,Fe)=>{for(var he in Fe||(Fe={}))Ye.call(Fe,he)&&hn(Le,he,Fe[he]);if(qe)for(var he of qe(Fe))je.call(Fe,he)&&hn(Le,he,Fe[he]);return Le},Ht=(Le,Fe)=>me(Le,sn(Fe));const Ce={labelCol:{span:4},wrapperCol:{span:20}};var bn=({callback:Le,onCancel:Fe})=>{function he(_t){Le(_t)}return Ct.createElement(Ut.default,Ht(ge({},Ce),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:he,style:{width:500}}),Ct.createElement(Ut.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ct.createElement(de.default,null)),Ct.createElement(Ut.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ct.createElement(de.default,null)),Ct.createElement("div",{className:"flex-container flex-end"},Ct.createElement(Gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ct.createElement(Gt.ZP,{type:"ghost",onClick:Fe},"\u53D6\u6D88")))},yn=St(36866),Ae=St(56701),Ue=St(43418),Sn=St(95237),Xn=St(65983),Pn=St(59301),Gn=({callback:Le,onCancel:Fe})=>{const he=document.createElement("canvas"),_t=he.getContext("2d");he.width=1e3,he.height=800,_t.fillStyle="#ffffff",_t.fillRect(0,0,he.width,he.height);const Ze=he.toDataURL("image/png");return Pn.createElement(Ue.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Pn.createElement(Sn.Z,{style:{height:"100vh"}},Pn.createElement(Xn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ze,visible:!0,title:String(Date.now())},onOk:tn=>{Le({src:tn.url})},onClose:Fe})))},Ee=St(12378);function Jn(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Jn,go.CommandHandler),Jn.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},Jn.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var Fe=1/0;Le.selection.each(function(he){he instanceof go.Link||(Fe=Math.min(he.position.x,Fe))}),Le.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(Fe,he.position.y))}),Le.commitTransaction("aligning left")},Jn.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var Fe=-1/0;Le.selection.each(function(he){if(!(he instanceof go.Link)){var _t=he.actualBounds.x+he.actualBounds.width;Fe=Math.max(_t,Fe)}}),Le.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(Fe-he.actualBounds.width,he.position.y))}),Le.commitTransaction("aligning right")},Jn.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var Fe=1/0;Le.selection.each(function(he){he instanceof go.Link||(Fe=Math.min(he.position.y,Fe))}),Le.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.position.x,Fe))}),Le.commitTransaction("alignTop")},Jn.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var Fe=-1/0;Le.selection.each(function(he){if(!(he instanceof go.Link)){var _t=he.actualBounds.y+he.actualBounds.height;Fe=Math.max(_t,Fe)}}),Le.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.actualBounds.x,Fe-he.actualBounds.height))}),Le.commitTransaction("aligning bottom")},Jn.prototype.alignCenterX=function(){var Le=this.diagram,Fe=Le.selection.first();if(Fe){Le.startTransaction("aligning Center X");var he=Fe.actualBounds.x+Fe.actualBounds.width/2;Le.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(he-_t.actualBounds.width/2,_t.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},Jn.prototype.alignCenterY=function(){var Le=this.diagram,Fe=Le.selection.first();if(Fe){Le.startTransaction("aligning Center Y");var he=Fe.actualBounds.y+Fe.actualBounds.height/2;Le.selection.each(function(_t){_t instanceof go.Link||_t.move(new go.Point(_t.actualBounds.x,he-_t.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},Jn.prototype.alignColumn=function(Le){var Fe=this.diagram;Fe.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var he=new Array;Fe.selection.each(function(Yt){Yt instanceof go.Link||he.push(Yt)});for(var _t=0;_t<he.length-1;_t++){var Ze=he[_t],tn=Ze.actualBounds.y+Ze.actualBounds.height+Le,Se=he[_t+1];Se.move(new go.Point(Ze.actualBounds.x,tn))}Fe.commitTransaction("align Column")},Jn.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var Fe=this.diagram;Fe.startTransaction("align Row");var he=new Array;Fe.selection.each(function(Yt){Yt instanceof go.Link||he.push(Yt)});for(var _t=0;_t<he.length-1;_t++){var Ze=he[_t],tn=Ze.actualBounds.x+Ze.actualBounds.width+Le,Se=he[_t+1];Se.move(new go.Point(tn,Ze.actualBounds.y))}Fe.commitTransaction("align Row")},Jn.prototype.canRotate=function(Le){var Fe=this.diagram;return!(Fe===null||Fe.isReadOnly||Fe.isModelReadOnly||Fe.selection.count<1)},Jn.prototype.rotate=function(Le){Le===void 0&&(Le=90);var Fe=this.diagram;Fe.startTransaction("rotate "+Le.toString());var Fe=this.diagram;Fe.selection.each(function(he){he instanceof go.Link||he instanceof go.Group||(he.angle+=Le)}),Fe.commitTransaction("rotate "+Le.toString())},Jn.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var Fe=new go.Map;Le.selection.each(function(he){Fe.set(he.layer,0)}),Fe.iteratorKeys.each(function(he){var _t=0;he.parts.each(function(Ze){if(!Ze.isSelected){var tn=Ze.zOrder;isNaN(tn)?Ze.zOrder=0:_t=Math.max(_t,tn)}}),Fe.set(he,_t)}),Le.selection.each(function(he){Jn._assignZOrder(he,Fe.get(he.layer)+1)}),Le.commitTransaction("pullToFront")},Jn.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var Fe=new go.Map;Le.selection.each(function(he){Fe.set(he.layer,0)}),Fe.iteratorKeys.each(function(he){var _t=0;he.parts.each(function(Ze){if(!Ze.isSelected){var tn=Ze.zOrder;isNaN(tn)?Ze.zOrder=0:_t=Math.min(_t,tn)}}),Fe.set(he,_t)}),Le.selection.each(function(he){Jn._assignZOrder(he,Fe.get(he.layer)-1-Jn._findGroupDepth(he))}),Le.commitTransaction("pushToBack")},Jn._assignZOrder=function(Le,Fe,he){he===void 0&&(he=Le),Le.layer===he.layer&&(Le.zOrder=Fe),Le instanceof go.Group&&Le.memberParts.each(function(_t){Jn._assignZOrder(_t,Fe+1,he)})},Jn._findGroupDepth=function(Le){if(Le instanceof go.Group){var Fe=0;return Le.memberParts.each(function(he){Fe=Math.max(Fe,Jn._findGroupDepth(he))}),Fe+1}else return 0},Jn.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var Fe=Le.lastInput;if(Fe.key==="Up"||Fe.key==="Down"||Fe.key==="Left"||Fe.key==="Right"){var he=this.arrowKeyBehavior;if(he==="none")return;if(he==="select"){this._arrowKeySelect();return}else if(he==="move"){this._arrowKeyMove();return}else if(he==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Jn.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(Fe){Le.push(Fe)}),this.diagram.parts.each(function(Fe){Le.push(Fe)}),Le},Jn.prototype._arrowKeyMove=function(){var Le=this.diagram,Fe=Le.lastInput,he=0,_t=0;if(Fe.control||Fe.meta)he=1,_t=1;else if(Le.grid!==null){var Ze=Le.grid.gridCellSize;_t=Ze.width,he=Ze.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(tn){Fe.key==="Up"?tn.move(new go.Point(tn.actualBounds.x,tn.actualBounds.y-he)):Fe.key==="Down"?tn.move(new go.Point(tn.actualBounds.x,tn.actualBounds.y+he)):Fe.key==="Left"?tn.move(new go.Point(tn.actualBounds.x-_t,tn.actualBounds.y)):Fe.key==="Right"&&tn.move(new go.Point(tn.actualBounds.x+_t,tn.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},Jn.prototype._arrowKeySelect=function(){var Le=this.diagram,Fe=Le.lastInput,he=null;Fe.key==="Up"?he=this._findNearestPartTowards(270):Fe.key==="Down"?he=this._findNearestPartTowards(90):Fe.key==="Left"?he=this._findNearestPartTowards(180):Fe.key==="Right"&&(he=this._findNearestPartTowards(0)),he!==null&&(Fe.shift?he.isSelected=!0:Fe.control||Fe.meta?he.isSelected=!he.isSelected:Le.select(he))},Jn.prototype._findNearestPartTowards=function(Le){var Fe=this.diagram.selection.first();if(Fe===null)return null;for(var he=Fe.actualBounds.center,_t=this._getAllParts(),Ze=1/0,tn=Fe,Se=0;Se<_t.length;Se++){var Yt=_t[Se];if(Yt!==Fe&&Yt.canSelect()){var $e=Yt.actualBounds.center,on=he.directionPoint($e),zn=this._angleCloseness(on,Le);if(zn<=45){var en=he.distanceSquaredPoint($e);en*=1+Math.sin(zn*Math.PI/180),en<Ze&&(Ze=en,tn=Yt)}}}return tn},Jn.prototype._angleCloseness=function(Le,Fe){return Math.min(Math.abs(Fe-Le),Math.min(Math.abs(Fe+360-Le),Math.abs(Fe-360-Le)))},Jn.prototype._arrowKeyTree=function(){var Le=this.diagram,Fe=Le.selection.first();if(Fe instanceof go.Node){var he=Le.lastInput;if(he.key==="Right"){if(!Fe.isTreeLeaf)if(!Fe.isTreeExpanded)Le.commandHandler.canExpandTree(Fe)&&Le.commandHandler.expandTree(Fe);else{var _t=this._sortTreeChildrenByY(Fe).first();_t!==null&&Le.select(_t)}}else if(he.key==="Left")if(!Fe.isTreeLeaf&&Fe.isTreeExpanded)Le.commandHandler.canCollapseTree(Fe)&&Le.commandHandler.collapseTree(Fe);else{var Ze=Fe.findTreeParentNode();Ze!==null&&Le.select(Ze)}else if(he.key==="Up"){var Ze=Fe.findTreeParentNode();if(Ze!==null){var tn=this._sortTreeChildrenByY(Ze),Se=tn.indexOf(Fe);if(Se>0){for(var Yt=tn.elt(Se-1);Yt!==null&&Yt.isTreeExpanded&&!Yt.isTreeLeaf;){var $e=this._sortTreeChildrenByY(Yt);Yt=$e.last()}Yt!==null&&Le.select(Yt)}else Le.select(Ze)}}else if(he.key==="Down")if(Fe.isTreeExpanded&&!Fe.isTreeLeaf){var _t=this._sortTreeChildrenByY(Fe).first();_t!==null&&Le.select(_t)}else for(;Fe!==null;){var Ze=Fe.findTreeParentNode();if(Ze===null)break;var tn=this._sortTreeChildrenByY(Ze),Se=tn.indexOf(Fe);if(Se<tn.length-1){Le.select(tn.elt(Se+1));break}else Fe=Ze}var on=Le.selection.first();on!==null&&Le.scrollToRect(on.actualBounds)}},Jn.prototype._sortTreeChildrenByY=function(Le){var Fe=new go.List().addAll(Le.findTreeChildrenNodes());return Fe.sort(function(he,_t){var Ze=he.location,tn=_t.location;return Ze.y<tn.y?-1:Ze.y>tn.y?1:Ze.x<tn.x?-1:Ze.x>tn.x?1:0}),Fe},Jn.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},Jn.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(Jn.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(Jn.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var ai=Jn,ui=St(37404),ln=St(43604),Te=St(70635),Me={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ie=St(59301),Kt=(Le,Fe,he)=>new Promise((_t,Ze)=>{var tn=$e=>{try{Yt(he.next($e))}catch(on){Ze(on)}},Se=$e=>{try{Yt(he.throw($e))}catch(on){Ze(on)}},Yt=$e=>$e.done?_t($e.value):Promise.resolve($e.value).then(tn,Se);Yt((he=he.apply(Le,Fe)).next())});function Oe({onCancel:Le,callback:Fe}){let he=(0,Ct.useRef)(),_t=(0,Ct.useRef)(),Ze=(0,Ct.useRef)(),tn=(0,Ct.useRef)(!1);const Se=(0,Ct.useRef)(!1),[Yt,$e]=(0,Ct.useState)(0);function on(){const en=Ee.bx.make,xe={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};he.current=new Ee.S0(_t.current,{padding:20,grid:en(Ee.s_,"Grid",en(Ee.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),en(Ee.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Be=>{var ei=Be.diagram.commandHandler.addTopLevelParts(Be.diagram.selection,!0);ei||Be.diagram.currentTool.doCancel()},commandHandler:en(ai),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Be=>{var ei=Be.subject;ei.location=ei.location.copy().snapToGridPoint(Be.diagram.grid.gridOrigin,Be.diagram.grid.gridCellSize),setTimeout(()=>{Be.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Be=>{var ei=Be.subject;setTimeout(()=>{Be.diagram.commandHandler.editTextBlock()})},LinkRelinked:Be=>{var ei=Be.parameter.part;ei.invalidateConnectedLinks();var Si=Be.subject;Be.diagram.toolManager.linkingTool.isForwards?Si.toNode.invalidateConnectedLinks():Si.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),he.current.nodeTemplate=en(Ee.NB,"Auto",{locationSpot:Ee.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ee.$u(120,60),minSize:new Ee.$u(40,40),resizable:!0,resizeCellSize:new Ee.$u(10,10),rotatable:!0},new Ee.KX("location","loc",Ee.E9.parse).makeTwoWay(Ee.E9.stringify),new Ee.KX("desiredSize","size",Ee.$u.parse).makeTwoWay(Ee.$u.stringify),en(Ee.bn,{name:"SHAPE",fill:xe.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ee.z6.AllSides,toSpot:Ee.z6.AllSides},new Ee.KX("figure"),new Ee.KX("fill"),new Ee.KX("stroke","borderColor"),new Ee.KX("strokeWidth","thickness"),new Ee.KX("strokeDashArray","dash")),en(Ee.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),en(Ee.al,{margin:1,textAlign:"center",overflow:Ee.al.OverflowEllipsis,editable:!0},new Ee.KX("text").makeTwoWay(),new Ee.KX("stroke","color"))),he.current.nodeTemplate.toolTip=en("ToolTip",en(Ee.s_,"Vertical",{maxSize:new Ee.$u(200,NaN)},en(Ee.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ee.KX("text")),en(Ee.al,{font:"10pt sans-serif",textAlign:"center"},new Ee.KX("text","details"))));function vn(Be,ei){var Si=(ci,Hi)=>{ci.handled=!0,ci.diagram.model.commit(Ni=>{var Ui=Hi.part.adornedPart,Ii=new Ee.E9().setRectSpot(Ui.actualBounds,Be);Ii.subtract(Ui.location),Ii.scale(2,2),Ii.x+=Math.sign(Ii.x)*130,Ii.y+=Math.sign(Ii.y)*130,Ii.add(Ui.location),Ii.snapToGridPoint(ci.diagram.grid.gridOrigin,ci.diagram.grid.gridCellSize);var bi=Ni.copyNodeData(Ui.data);Ni.setGroupKeyForNodeData(bi,Ni.getGroupKeyForNodeData(Ui.data)),Ni.addNodeData(bi);var eo={from:Ui.key,to:Ni.getKeyForNodeData(bi)};Ni.addLinkData(eo);var xn=ci.diagram.findNodeForData(bi);xn.location=Ii,ci.diagram.select(xn),setTimeout(()=>{ci.diagram.commandHandler.editTextBlock()},20)})};return en(Ee.bn,{figure:ei,alignment:Be,alignmentFocus:Be.opposite(),width:Be.equals(Ee.z6.Top)||Be.equals(Ee.z6.Bottom)?25:18,height:Be.equals(Ee.z6.Top)||Be.equals(Ee.z6.Bottom)?18:25,fill:"orange",stroke:xe.white,strokeWidth:4,mouseEnter:(ci,Hi)=>Hi.fill="dodgerblue",mouseLeave:(ci,Hi)=>Hi.fill="orange",isActionable:!0,click:Si,contextClick:Si})}function Wn(Be){return en(Ee.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:(ei,Si)=>Si.fill="dodgerblue",mouseLeave:(ei,Si)=>Si.fill="orange",click:(ei,Si)=>{ei.diagram.commandHandler.showContextMenu(Si.part.adornedPart)}},Be||{})}he.current.nodeTemplate.selectionAdornmentTemplate=en(Ee.uz,"Spot",en(Ee.Vm,{padding:10}),vn(Ee.z6.Top,"TriangleUp"),vn(Ee.z6.Left,"TriangleLeft"),vn(Ee.z6.Right,"TriangleRight"),vn(Ee.z6.Bottom,"TriangleDown"),Wn({alignment:new Ee.z6(.75,0)}));function qn(Be,ei){return(Si,ci)=>{Si.handled=!0,Si.diagram.model.commit(Hi=>{Hi.set(ci.part.adornedPart.data,Be,ei)})}}function We(Be,ei){return ei||(ei="color"),en(Ee.bn,{width:16,height:16,stroke:"lightgray",fill:Be,margin:1,background:"transparent",mouseEnter:(Si,ci)=>ci.stroke="dodgerblue",mouseLeave:(Si,ci)=>ci.stroke="lightgray",click:qn(ei,Be),contextClick:qn(ei,Be)})}function fn(){return[en("ContextMenuButton",en(Ee.s_,"Horizontal",We(xe.white,"fill"),We(xe.beige,"fill"),We(xe.extralightblue,"fill"),We(xe.extralightred,"fill"))),en("ContextMenuButton",en(Ee.s_,"Horizontal",We(xe.lightgray,"fill"),We(xe.lightgreen,"fill"),We(xe.lightblue,"fill"),We(xe.lightred,"fill")))]}function Ie(){return[en("ContextMenuButton",en(Ee.s_,"Horizontal",We(xe.black),We(xe.green),We(xe.blue),We(xe.red))),en("ContextMenuButton",en(Ee.s_,"Horizontal",We(xe.white),We(xe.magenta),We(xe.purple),We(xe.orange)))]}function an(Be,ei){return ei||(ei="thickness"),en(Ee.bn,"LineH",{width:16,height:16,strokeWidth:Be,margin:1,background:"transparent",mouseEnter:(Si,ci)=>ci.background="dodgerblue",mouseLeave:(Si,ci)=>ci.background="transparent",click:qn(ei,Be),contextClick:qn(ei,Be)})}function _e(Be,ei){return ei||(ei="dash"),en(Ee.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Be,margin:1,background:"transparent",mouseEnter:(Si,ci)=>ci.background="dodgerblue",mouseLeave:(Si,ci)=>ci.background="transparent",click:qn(ei,Be),contextClick:qn(ei,Be)})}function rn(){return[en("ContextMenuButton",en(Ee.s_,"Horizontal",an(1),an(2),an(3),an(4))),en("ContextMenuButton",en(Ee.s_,"Horizontal",_e(null),_e([2,4]),_e([4,4])))]}function pn(Be,ei){return ei||(ei="figure"),en(Ee.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Be,margin:1,background:"transparent",mouseEnter:(Si,ci)=>ci.fill="dodgerblue",mouseLeave:(Si,ci)=>ci.fill="lightgray",click:qn(ei,Be),contextClick:qn(ei,Be)})}he.current.nodeTemplate.contextMenu=en("ContextMenu",en("ContextMenuButton",en(Ee.s_,"Horizontal",pn("Rectangle"),pn("RoundedRectangle"),pn("Ellipse"),pn("Diamond"))),en("ContextMenuButton",en(Ee.s_,"Horizontal",pn("Parallelogram2"),pn("ManualOperation"),pn("Procedure"),pn("Cylinder1"))),en("ContextMenuButton",en(Ee.s_,"Horizontal",pn("Terminator"),pn("CreateRequest"),pn("Document"),pn("TriangleDown"))),fn(),Ie(),rn()),he.current.groupTemplate=en(Ee.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ee.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Be,ei)=>{var Si=ei.addMembers(ei.diagram.selection,!0);Si||ei.diagram.currentTool.doCancel()},avoidable:!1},new Ee.KX("location","loc",Ee.E9.parse).makeTwoWay(Ee.E9.stringify),en(Ee.s_,"Auto",{name:"BODY"},en(Ee.bn,{parameter1:10,fill:xe.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ee.z6.AllSides,toSpot:Ee.z6.AllSides},new Ee.KX("fill"),new Ee.KX("stroke","color"),new Ee.KX("strokeWidth","thickness"),new Ee.KX("strokeDashArray","dash")),en(Ee.Vm,{background:"transparent",margin:20})),en(Ee.al,{alignment:Ee.z6.Top,alignmentFocus:Ee.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ee.KX("text"),new Ee.KX("stroke","color"))),he.current.groupTemplate.selectionAdornmentTemplate=en(Ee.uz,"Spot",en(Ee.s_,"Auto",en(Ee.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),en(Ee.Vm,{margin:1.5})),Wn({alignment:Ee.z6.TopRight,alignmentFocus:Ee.z6.BottomRight})),he.current.groupTemplate.contextMenu=en("ContextMenu",fn(),Ie(),rn()),he.current.linkTemplate=en(Ee.rU,{layerName:"Foreground",routing:Ee.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ee.KX("fromSpot","fromSpot",Ee.z6.parse),new Ee.KX("toSpot","toSpot",Ee.z6.parse),new Ee.KX("fromShortLength","dir",Be=>Be>=1?10:0),new Ee.KX("toShortLength","dir",Be=>Be>=1?10:0),new Ee.KX("points").makeTwoWay(),en(Ee.bn,{strokeWidth:2},new Ee.KX("stroke","color"),new Ee.KX("strokeWidth","thickness"),new Ee.KX("strokeDashArray","dash")),en(Ee.bn,{segmentIndex:0,segmentOffset:new Ee.E9(15,0),segmentOrientation:Ee.rU.OrientAlong,alignmentFocus:Ee.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ee.KX("fill","color"),new Ee.KX("visible","dir",Be=>Be===1)),en(Ee.bn,{segmentIndex:-1,segmentOffset:new Ee.E9(-10,6),segmentOrientation:Ee.rU.OrientPlus90,alignmentFocus:Ee.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ee.KX("fill","color"),new Ee.KX("visible","dir",Be=>Be>=1),new Ee.KX("width","thickness",Be=>7+3*Be),new Ee.KX("height","thickness",Be=>7+3*Be),new Ee.KX("segmentOffset","thickness",Be=>new Ee.E9(-15,4+1.5*Be))),en(Ee.bn,{segmentIndex:0,segmentOffset:new Ee.E9(15,-6),segmentOrientation:Ee.rU.OrientMinus90,alignmentFocus:Ee.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ee.KX("fill","color"),new Ee.KX("visible","dir",Be=>Be===2),new Ee.KX("width","thickness",Be=>7+3*Be),new Ee.KX("height","thickness",Be=>7+3*Be),new Ee.KX("segmentOffset","thickness",Be=>new Ee.E9(-15,4+1.5*Be))),en(Ee.al,{alignmentFocus:new Ee.z6(0,1,-4,0),editable:!0},new Ee.KX("text").makeTwoWay(),new Ee.KX("stroke","color"))),he.current.linkTemplate.selectionAdornmentTemplate=en(Ee.uz,en(Ee.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Cn(2)},new Ee.KX("pathPattern","thickness",Cn)),Wn({alignmentFocus:new Ee.z6(0,0,-6,-4)}));function Cn(Be){return en(Ee.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Be+4).toString()+" H3"})}function kn(Be){var ei="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Be===0?ei="M0 0 M16 16 M0 8 L16 8":Be===2&&(ei="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),en(Ee.bn,{geometryString:ei,margin:2,background:"transparent",mouseEnter:(Si,ci)=>ci.background="dodgerblue",mouseLeave:(Si,ci)=>ci.background="transparent",click:qn("dir",Be),contextClick:qn("dir",Be)})}function In(Be){var ei=(Si,ci)=>{Si.handled=!0,Si.diagram.model.commit(Hi=>{var Ni=ci.part.adornedPart;Hi.set(Ni.data,Be?"toSpot":"fromSpot",Ee.z6.stringify(Ee.z6.AllSides)),(Be?Ni.toNode:Ni.fromNode).invalidateConnectedLinks()})};return en(Ee.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Si,ci)=>ci.background="dodgerblue",mouseLeave:(Si,ci)=>ci.background="transparent",click:ei,contextClick:ei})}function wn(Be,ei){var Si=0,ci=Ee.z6.RightSide;Be.equals(Ee.z6.Top)?(Si=270,ci=Ee.z6.TopSide):Be.equals(Ee.z6.Left)?(Si=180,ci=Ee.z6.LeftSide):Be.equals(Ee.z6.Bottom)&&(Si=90,ci=Ee.z6.BottomSide),ei||(Si-=180);var Hi=(Ni,Ui)=>{Ni.handled=!0,Ni.diagram.model.commit(Ii=>{var bi=Ui.part.adornedPart;Ii.set(bi.data,ei?"toSpot":"fromSpot",Ee.z6.stringify(ci)),(ei?bi.toNode:bi.fromNode).invalidateConnectedLinks()})};return en(Ee.bn,{alignment:Be,alignmentFocus:Be.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Si,background:"transparent",mouseEnter:(Ni,Ui)=>Ui.background="dodgerblue",mouseLeave:(Ni,Ui)=>Ui.background="transparent",click:Hi,contextClick:Hi})}he.current.linkTemplate.contextMenu=en("ContextMenu",Ie(),rn(),en("ContextMenuButton",en(Ee.s_,"Horizontal",kn(0),kn(1),kn(2))),en("ContextMenuButton",en(Ee.s_,"Horizontal",en(Ee.s_,"Spot",In(!1),wn(Ee.z6.Top,!1),wn(Ee.z6.Left,!1),wn(Ee.z6.Right,!1),wn(Ee.z6.Bottom,!1)),en(Ee.s_,"Spot",{margin:new Ee.Zt(0,0,0,2)},In(!0),wn(Ee.z6.Top,!0),wn(Ee.z6.Left,!0),wn(Ee.z6.Right,!0),wn(Ee.z6.Bottom,!0)))));const Kn=`{ "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 Ci=["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 Wi(Be){return console.log("shapeName:",Be),Ci.indexOf(Be)>=0}var Li=new Ee.YI(Ze.current,{maxSelectionCount:1,linkTemplate:en(Ee.rU,{locationSpot:Ee.z6.Center,selectionAdornmentTemplate:en(Ee.uz,"Link",{locationSpot:Ee.z6.Center},en(Ee.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),en(Ee.bn,{toArrow:"Standard",stroke:null}))},{routing:Ee.rU.AvoidsNodes,curve:Ee.rU.JumpOver,corner:5,toShortLength:4},new Ee.KX("points"),en(Ee.bn,{isPanelMain:!0,strokeWidth:2}),en(Ee.bn,{toArrow:"Standard",stroke:null})),model:new Ee.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ee.bn.getFigureGenerators().toArray().map(Be=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Be.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return he.current.addDiagramListener("TextEdited",function(Be){var ei;const Si=Be.subject.part;var ci=(ei=document.activeElement)==null?void 0:ei.value;typeof ci=="string"&&ci.trim()===""&&he.current.model.commit(function(Hi){Hi.set(Si.data,"text","\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}),Li.nodeTemplate=en(Ee.NB,"Auto",{locationSpot:Ee.z6.Center},new Ee.KX("location","location",Ee.E9.parse).makeTwoWay(Ee.E9.stringify),en(Ee.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 Ee.KX("stroke").makeTwoWay(),new Ee.KX("fill").makeTwoWay(),new Ee.KX("figure")),en(Ee.al,{margin:new Ee.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ee.$u(16,16),maxSize:new Ee.$u(10,NaN),textAlign:"center",editable:!0},new Ee.KX("key").makeTwoWay())),setTimeout(()=>{he.current.grid=en(Ee.s_,"Grid",en(Ee.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),en(Ee.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),he.current.grid.visible=!0,he.current.grid.gridCellStroke="darkgray",he.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=he.current,he.current}const zn=()=>Kt(this,null,function*(){var en=he.current.makeImage();const xe=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:en.src}});Fe({src:xe.url})});return(0,Ct.useEffect)(()=>(setTimeout(()=>{on()},500),$e(Yt+1),()=>{he.current=null}),[]),ie.createElement("div",{ref:Se,className:tn.current?`${Me.maxH60} body-overflow-initial`:"body-overflow-initial"},ie.createElement(Ue.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Yt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ie.createElement(Sn.Z,null,ie.createElement(ln.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ie.createElement(ln.Z,{onClick:()=>{var en,xe,vn=he.current.selection.first();if(tn.current=!tn.current,document.activeElement&&vn){let Wn=(xe=(en=document.activeElement)==null?void 0:en.value)==null?void 0:xe.trim();typeof Wn=="string"&&he.current.model.commit(function(qn){qn.set(vn.data,"text",Wn||"\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}$e(Yt+1)}},ie.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},ie.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Me.flowChartWrp},ie.createElement("div",{style:{display:"flex",height:"100%"}},ie.createElement("div",{style:{width:"300px",height:"100%"}},ie.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ie.createElement("div",{style:{height:"calc(100% - 50px)"},className:Me.myPaletteDiv,ref:Ze})),ie.createElement("div",{style:{flex:1,position:"relative"}},ie.createElement("div",{ref:_t,style:{height:"80vh"}}))),ie.createElement("div",{className:"tr"},ie.createElement(Gt.ZP,{size:"large",onClick:zn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ke=Oe,te=St(5112),qt=St(88897);const Dt=te.ZP.Group,xt={margin:"0 8px"};var mt=({callback:Le,onCancel:Fe})=>{function he(_t){Le(_t)}return Ct.createElement(Ut.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:he},Ct.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ct.createElement("span",{style:xt},"\u5355\u5143\u683C\u6570\uFF1A"),Ct.createElement("span",{style:xt},"\u884C\u6570"),Ct.createElement(Ut.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ct.createElement(qt.Z,null)),Ct.createElement("span",{style:xt},"\u5217\u6570"),Ct.createElement(Ut.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ct.createElement(qt.Z,null))),Ct.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ct.createElement("span",{style:xt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ct.createElement(Ut.default.Item,{name:"align"},Ct.createElement(Dt,null,Ct.createElement(te.ZP,{value:"default"},Ct.createElement("i",{className:"fa fa-align-justify"})),Ct.createElement(te.ZP,{value:"left"},Ct.createElement("i",{className:"fa fa-align-left"})),Ct.createElement(te.ZP,{value:"center"},Ct.createElement("i",{className:"fa fa-align-center"})),Ct.createElement(te.ZP,{value:"right"},Ct.createElement("i",{className:"fa fa-align-right"}))))),Ct.createElement("div",{className:"flex-container flex-end"},Ct.createElement(Gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ct.createElement(Gt.ZP,{type:"ghost",onClick:Fe},"\u53D6\u6D88")))},Mt=St(78673),Rt=St(98598),Et=St.n(Rt),Qe=(0,Ct.forwardRef)(({use3d:Le,width:Fe,height:he,callback:_t,showSaveButton:Ze},tn)=>{const Se=(0,Ct.useRef)(),Yt=(0,Ct.useRef)(),[$e,on]=(0,Ct.useState)(!1),zn=(0,Ct.useRef)({id:Se,appName:"graphing",width:Fe||1e3,height:he||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ct.useEffect)(()=>{Yt.current=new(Et())(zn.current,!0),window.onload=function(){Yt.current.inject("applet_container")}},[]);const en=()=>{var xe=window.ggbApplet.getPNGBase64(1,!0,72);return _t&&_t(xe),xe};return(0,Ct.useEffect)(()=>{zn.current.appName=$e?"3D":"graphing",Yt.current.inject("applet_container")},[$e]),(0,Ct.useEffect)(()=>{on(Le)},[Le]),(0,Ct.useImperativeHandle)(tn,()=>({getImgData:en})),Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Se}),Ct.createElement(Sn.Z,{align:"middle"},Ct.createElement(ln.Z,{flex:1},Ct.createElement(Mt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:$e,onChange:xe=>on(xe)})),Ct.createElement(ln.Z,null,Ct.createElement(Gt.ZP,{size:"large",onClick:en,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),mn=St(75890),le=St(8591);const Ge="link",cn="upload-image",Mn="add-flowchart",Zn="draw-image",_n="add-flowchart",di="code-block",ri="add-table",Fi="------------",Zi={default:Fi,left:`:${Fi}`,center:`:${Fi}:`,right:`${Fi}:`};var Vi=St(91300);function ji(){}let qi=0;const wo=1e4,Ei="\u2581",Po="@\u2581\u2581@",ki="@\u2581@",Lt=`
|
|
|
**\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`,Mo=["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 $i(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const hi=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",gi={[hi+"-B"]:"bold",[hi+"-I"]:"italic"},Pi={[Ge]:"\u6DFB\u52A0\u94FE\u63A5",[di]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[cn]:"\u6DFB\u52A0\u56FE\u7247",[Zn]:"\u6DFB\u52A0\u753B\u56FE",[Mn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ri]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Rn=({defaultValue:Le="",onChange:Fe,width:he="100%",height:_t=400,miniToolbar:Ze=!1,isFocus:tn=!1,watch:Se,insertTemp:Yt,mode:$e="markdown",id:on="markdown-editor-id",showResizeBar:zn=!1,noStorage:en=!1,showNullButton:xe=!1,showNullProgramButton:vn=!1,hidetoolBar:Wn=!1,fullScreen:qn=!1,onBlur:We,onCMBeforeChange:fn,onFullScreen:Ie,className:an="",disablePaste:_e=!1,disabled:rn=!1,disabledFill:pn=!1,placeholder:Cn="",values:kn="",extraUse:In})=>{const[wn,Kn]=(0,Ct.useState)(null),[Ci,Wi]=(0,Ct.useState)(Le),[Li,Be]=(0,Ct.useState)(Se),[ei,Si]=(0,Ct.useState)(qn),[ci,Hi]=(0,Ct.useState)(""),[Ni,Ui]=(0,Ct.useState)(0),[Ii,bi]=(0,Ct.useState)(_t),[eo,xn]=(0,Ct.useState)(!1),[Fo,Ln]=(0,Ct.useState)(0),[po,Go]=(0,Ct.useState)(0),Yi=(0,Ct.useRef)(),nr=(0,Ct.useRef)(),Bo=(0,Ct.useRef)(),Ti=(0,Ct.useRef)();(0,Ct.useEffect)(()=>{const Ki=window.scrollY||window.pageYOffset;Wi(kn),wn==null||wn.setValue(kn),window.scrollTo(0,Ki)},[kn]),(0,Ct.useEffect)(()=>{Ie==null||Ie(ei)},[ei]),(0,Ct.useEffect)(()=>{if(Yi.current){let Ki=function(co,Yn){var ar;if(_e){Yn.preventDefault();return}const wr=Yn.clipboardData;if(wr){const ia=wr.types.toString(),sr=wr.items;if(ia==="Files"||wr.types.indexOf("Files")>-1){if(Yn.preventDefault(),$e=="stex")return;try{let ir=sr[1];((ar=sr[0])==null?void 0:ar.kind)==="file"&&(ir=sr[0]);const Fr=ir.getAsFile(),Qr=Fr.name.split(".").pop();(0,Ae.I)(Fr,$r=>{var qa,Ea,gn;$r.id?((qa=Fr==null?void 0:Fr.type)==null?void 0:qa.indexOf("image"))>-1?zi.replaceSelection(``):((Ea=Fr==null?void 0:Fr.type)==null?void 0:Ea.indexOf("video"))>-1?zi.replaceSelection(`<video width="100%" controls src="/api/attachments/${$r.id}"></video>`):((gn=Fr==null?void 0:Fr.type)==null?void 0:gn.indexOf("pdf"))>-1?zi.replaceSelection(`<a href="/api/attachments/${$r.id}?type=${Fr.type}&disposition=inline" target="_blank">${Fr.name}</a>`):Mo.includes(Qr)?zi.replaceSelection(`<a href="/api/attachments/${$r.id}?type=office&disposition=inline" target="_blank">${Fr.name}</a>`):zi.replaceSelection(`[${Fr.name}](/api/attachments/${$r.id}?type=${$r.content_type})`):($r==null?void 0:$r.status)===401&&(document.location.href="/user/login")})}catch(ir){le.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const zi=ee().fromTextArea(Yi.current,{mode:$e,lineNumbers:!Ze,lineWrapping:!0,value:Le,autoCloseTags:!0,autoCloseBrackets:!0});return zi.on("keyup",function(co,Yn){Yn.keyCode===8&&(co.getValue()==""?zi.setOption("placeholder",Cn):zi.setOption("placeholder",null))}),zi.on("keydown",function(co,Yn){if(Yn.keyCode===8){var ar=bo(co);ar&&Yn.preventDefault()}}),tn&&zi.focus(),zi.on("paste",Ki),rn&&zi.on("beforeChange",function(co,Yn){(Yn.origin==="paste"||Yn.origin==="+input")&&Yn.cancel()}),Kn(zi),()=>{zi.off("paste",Ki)}}},[]);const Oi=(0,Ct.useCallback)(()=>{if(nr.current)try{}catch(Ki){console.log(Ki,"---- to set md editor body height")}},[Ii,nr,ei]);(0,Ct.useEffect)(()=>{function Ki(){let zi=new Ne.Z(co=>{for(let Yn of co)(Yn.target.offsetHeight>0||Yn.target.offsetWidth>0)&&(Oi(),wn.setSize("100%","100%"),wn.refresh())});return zi.observe(Yi.current.parentElement),zi}if(wn){const zi=Ki();return()=>{var co,Yn;(co=Yi.current)!=null&&co.parentElement&&zi.unobserve((Yn=Yi.current)==null?void 0:Yn.parentElement)}}},[wn,Oi]),(0,Ct.useEffect)(()=>{if(wn){let Ki=[];for(const[zi,co]of Object.entries(gi)){let Yn={[zi]:()=>{Do(co)}};Ki.push(Yn),wn.addKeyMap(Yn)}return()=>{for(let zi of Ki)wn.removeKeyMap(zi)}}},[wn]),(0,Ct.useEffect)(()=>{qn!==ei&&Si(qn)},[qn]),(0,Vi.Z)(()=>{if(!en&&Ni>0){let Ki=new Date().getTime(),zi=window.sessionStorage.getItem(on);Ki>=Ni+wo&&(!zi||zi!==Ci)&&(window.sessionStorage.setItem(on,Ci),xn(!0))}},wo),(0,Ct.useEffect)(()=>{Be(Se)},[wn,Se]),(0,Ct.useEffect)(()=>{wn&&tn&&wn.focus()},[wn,tn]),(0,Ct.useEffect)(()=>{if(Li&&wn){let Ki=function(co){let Yn=co.target;if(Ti.current){let ar=Yn.scrollTop/Yn.scrollHeight;Ti.current.scrollTop=Ti.current.scrollHeight*ar}};const zi=wn.getScrollerElement();return zi.addEventListener("scroll",Ki),()=>{zi.removeEventListener("scroll",Ki)}}},[wn,Li]),(0,Ct.useEffect)(()=>{if(wn&&fn){let Ki=function(zi,co){fn(zi,co)};return wn.on("beforeChange",Ki),()=>{wn.off("beforeChange",Ki)}}},[wn,fn]),(0,Ct.useEffect)(()=>{if(wn&&We){let Ki=function(){We(wn.getValue())};return wn.on("blur",Ki),()=>{wn.off("blur",Ki)}}},[wn,We]);function bo(Ki,zi){var co=Ki.getDoc(),Yn=co.getCursor(),ar=co.getLine(Yn.line),wr=ar.charAt(Yn.ch-1),ia=ar.lastIndexOf("@\u2581@",Yn.ch),sr=ar.lastIndexOf("@\u2581\u2581@",Yn.ch),ir=ia>sr?ia:sr,Fr=ia>sr?3:4;if(Po.indexOf(wr)===-1)return null;if(console.log("change1:",zi,Ki,ar,Yn,ir,ia,sr,wr),ir>=0&&Yn.ch-ir<5){var Qr=ir+Fr;return co.replaceRange("",{line:Yn.line,ch:ir},{line:Yn.line,ch:Qr}),{line:Yn.line,ch:Qr}}return null}(0,Ct.useEffect)(()=>{if(wn){let Ki=function(zi,co){const Yn=zi.getValue();Wi(Yn),Ui(new Date().getTime()),zi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Fe&&(vn?Fe(Yn,Ji(Yn)):Fe(Yn))};return wn.on("change",Ki),()=>{wn.off("change",Ki)}}},[wn,Fe]),(0,Ct.useEffect)(()=>{if(wn)if(Le==null)wn.setValue(""),Wi("");else{const Ki=window.scrollY||window.pageYOffset;Le!==wn.getValue()&&(wn.setValue(Le),Wi(Le),wn.setCursor(rn?1:wn.lineCount(),0),window.scrollTo(0,Ki))}},[wn,Le]);const Do=(0,Ct.useCallback)(Ki=>{const zi=wn.getCursor(),co=wn.getSelection();let Yn=co.split(`
|
|
|
`);switch(Ki){case"bold":return wn.replaceSelection("**"+co+"**"),co===""&&wn.setCursor(zi.line,zi.ch+2),wn.focus();case"italic":return wn.replaceSelection("*"+co+"*"),co===""&&wn.setCursor(zi.line,zi.ch+1),wn.focus();case"code":return wn.replaceSelection("`"+co+"`"),co===""&&wn.setCursor(zi.line,zi.ch+1),wn.focus();case"inline-latex":return Hi("inline-latex"),wn.focus();case"latex":return wn.replaceSelection("```latex\n"+co+"\n```"),wn.setCursor(zi.line+1,co.length+1),wn.focus();case"line-break":return wn.replaceSelection(`<br/>
|
|
|
`),wn.focus();case"list-ul":return co===""?wn.replaceSelection("- "+co):wn.replaceSelection(Yn.map(ar=>ar===""?"":`- ${ar}`).join(`
|
|
|
`)),wn.focus();case"list-ol":return co===""?wn.replaceSelection("1. "+co):wn.replaceSelection(Yn.map((ar,wr)=>ar===""?"":`${wr+1}. ${ar}`).join(`
|
|
|
`)),wn.focus();case"add-null-ch":return co===""&&wn.setCursor(zi.line,zi.ch),wn.replaceSelection(Ei),wn.focus();case"add-signal":return co===""&&wn.setCursor(zi.line,zi.ch),wn.replaceSelection(ki),wn.focus();case"add-multiple":return co===""&&wn.setCursor(zi.line,zi.ch),wn.replaceSelection(Po),wn.focus();case"inster-template-1":return co===""&&wn.setCursor(zi.line,zi.ch),wn.replaceSelection(Lt),wn.focus();case"eraser":return wn.setValue(""),wn.focus();case"trigger-watch":return Be(!Li),wn.focus();case"trigger-full-screen":return Si(!ei),wn.focus();case Ge:Hi(Ge);return;case di:Hi(di);return;case cn:Hi(cn);return;case Zn:Hi(Zn);return;case"maths-latex":Hi("maths-latex");return;case Mn:Hi(Mn);return;case ri:Hi(ri);return;default:throw new Error}},[wn,Li,ei]),si=(0,Ct.useCallback)((Ki,zi)=>{var co,Yn,ar,wr,ia,sr;switch(Hi(""),ci){case Ge:const{title:qa,link:Ea}=Ki;return wn.replaceSelection(`[${qa}](${Ea})`),wn.focus();case di:const{language:gn,content:La}=Ki;return wn.replaceSelection(["```"+gn,La,"```"].join(`
|
|
|
`)),wn.focus();case"maths-latex":for(var ir=atob(Ki),Fr=new Uint8Array(ir.length),Qr=0;Qr<ir.length;Qr++)Fr[Qr]=ir.charCodeAt(Qr);var $r=new Blob([Fr],{type:"image/png"});(0,Ae.I)($r,Ua=>{Ua.id?wn.replaceSelection(``):(Ua==null?void 0:Ua.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":wn.replaceSelection("`$$"+Ki+"$$`");break;case cn:case Zn:case _n:const{src:tl,alt:js}=Ki,Qo=zi,Tr=(ar=(Yn=(co=Qo==null?void 0:Qo.name)==null?void 0:co.split("."))==null?void 0:Yn.pop)==null?void 0:ar.call(Yn);return((wr=Qo==null?void 0:Qo.type)==null?void 0:wr.indexOf("image"))>-1||!(Qo!=null&&Qo.type)?js?wn.replaceSelection(``):wn.replaceSelection(``):((ia=Qo==null?void 0:Qo.type)==null?void 0:ia.indexOf("video"))>-1?wn.replaceSelection(`<video width="100%" controls src="${tl}"></video>`):((sr=Qo==null?void 0:Qo.type)==null?void 0:sr.indexOf("pdf"))>-1?wn.replaceSelection(`<a href="${tl}?type=${Qo.type}&disposition=inline" target="_blank">${Qo.name}</a>`):Mo.includes(Tr)?wn.replaceSelection(`<a href="${tl}?type=office&disposition=inline" target="_blank">${Qo.name}</a>`):wn.replaceSelection(`[${Qo.name}](${tl})`),wn.focus();case ri:const{row:ha,col:Cr,align:or}=Ki;let Br=`
|
|
|
`;for(let Ua=0;Ua<ha;Ua++){let No=[],dr=[];for(let ur=0;ur<Cr;ur++)Ua===1&&dr.push(Zi[or]),No.push(" ");Ua===1&&(Br+=`| ${dr.join(" | ")} |
|
|
|
`),Br+=`| ${No.join(Cr===1?"":" | ")} |
|
|
|
`}return wn.replaceSelection(Br+`
|
|
|
`),wn.focus();default:throw new Error}},[wn,ci]),Zt=(0,Ct.useMemo)(()=>{switch(ci){case Ge:return Ct.createElement(bn,{callback:si,onCancel:Co});case di:return Ct.createElement(yn.Z,{callback:si,onCancel:Co});case cn:return Ct.createElement(Ae.Z,{callback:si,onCancel:Co});case Mn:return Ct.createElement(ke,{callback:si,onCancel:Co});case ri:return Ct.createElement(mt,{callback:si,onCancel:Co});case"maths-latex":return Ct.createElement(Qe,{showSaveButton:!0,callback:si});case"inline-latex":return Ct.createElement(mn.Z,{showSaveButton:!0,callback:si});default:return null}},[ci]);function Co(){Hi("")}(0,Ct.useEffect)(()=>{if(Bo.current){let Ki=function(ia){ar=!0,wr=ia.pageY},zi=function(){ar=!1},co=function(ia){if(ar){let sr=ia.pageY-wr;sr<0&&(sr=0),sr>300&&(sr=300);let ir=_t+sr+"px";bi(ir)}},Yn=Bo.current,ar=!1,wr=0;return Yn.addEventListener("mousedown",Ki),document.addEventListener("mousemove",co),document.addEventListener("mouseup",zi),()=>{Yn.removeEventListener("mousedown",Ki),document.removeEventListener("mousemove",co),document.removeEventListener("mouseup",zi)}}},[wn,Bo]),(0,Ct.useEffect)(()=>{bi(_t)},[_t]);const xr=$i(he),yo=$i(Ii),yr={width:xr,height:yo},_i=(0,Ct.useMemo)(()=>{if(Ni){let Ki=new Date(Ni),zi=Ki.getHours(),co=Ki.getMinutes(),Yn=Ki.getSeconds();return zi=zi<10?"0"+zi:zi,co=co<10?"0"+co:co,Yn=Yn<10?"0"+Yn:Yn,`${zi}:${co}:${Yn}`}return 0},[Ni]),Ji=Ki=>{const zi=[];if(vn){let co=-1;Ki=Ki.replace(/(@▁▁@|@▁@)/g,function(Yn,ar,wr){zi.push({multiLine:Yn!==ki})})}return zi};function Zo(){window.sessionStorage.removeItem(on),xn(!1),Ui(0)}function rr(){xn(!1),Ui(0),wn.setValue(window.sessionStorage.getItem(on))}(0,Ct.useEffect)(()=>{Pi[ci]&&ci!==Zn&&ci!==Mn&&setTimeout(()=>{const Ki=document.getElementsByClassName("markdown-popup-form")[0],zi=window.innerWidth/2-Ki.offsetWidth/2,co=window.innerHeight/2-Ki.offsetHeight/2;Ln(zi),Go(co)},0)},[ci]);const Ao=Ki=>{Ki.preventDefault();const zi=Ki.clientX-Fo,co=Ki.clientY-po;document.body.onmousemove=Yn=>{let ar=Yn.clientX-zi,wr=Yn.clientY-co;const ia=document.getElementsByClassName("markdown-popup-form")[0],sr=window.innerWidth-ia.offsetWidth,ir=window.innerHeight-ia.offsetHeight;ar=Math.max(0,Math.min(ar,sr)),wr=Math.max(0,Math.min(wr,ir)),kr(Yn.clientX,Yn.clientY,zi,co)&&(Ln(ar),Go(wr))},document.body.onmouseup=function(){document.body.onmousemove=null}},kr=(Ki,zi,co,Yn)=>{const ar=document.body.clientHeight,wr=document.body.clientWidth;return Ki<20&&co>Ki||Ki>wr-20&&co<Ki||zi<20&&Yn>zi||zi>ar-20&&Yn<zi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{className:"markdown-editor-wrapper",ref:nr},Ct.createElement("div",{className:`markdown-editor-container ${an} ${Li?"on-preview":""} ${Ze?"mini":""} ${ei?"full-screen":""}`,style:yr},Ct.createElement(jt,{insertTemp:Yt,watch:Li,fullScreen:ei,showNullButton:xe,showNullProgramButton:vn,onActionCallback:Do,hidetoolBar:Wn,extraUse:In}),Ct.createElement("div",{className:"markdown-editor-body"},Ct.createElement("div",{className:"codemirror-container"},Ct.createElement("textarea",{ref:Yi,placeholder:Cn})),Li?Ct.createElement("div",{ref:Ti,className:"preview-container"},$e==="stex"&&Ct.createElement(ye,{value:Ci}),$e!=="stex"&&Ct.createElement(ve.Z,{disabledFill:pn,showProgramFill:vn,value:Ci})):null))),zn?Ct.createElement("a",{ref:Bo,className:"editor-resize"}):null,ci===Zn&&Ct.createElement(Gn,{callback:si,onCancel:Co}),ci===Mn&&Ct.createElement(ke,{callback:si,onCancel:Co}),Ct.createElement(Xt.Z,null,Pi[ci]&&ci!==Zn&&ci!==Mn?Ct.createElement(Ue.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Fo,top:po},title:Ct.createElement("div",{style:{cursor:"move"},onMouseDown:Ao},Pi[ci]),open:!0,onCancel:Co,footer:null,destroyOnClose:!0,width:ci===Mn?"1200px":null,height:ci===Mn?"80vh":null,className:"markdown-popup-form"},Zt):null))}},56701:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return vt},I:function(){return Bt}});var Ct=St(78241),It=St(8591),ee=St(92832),Ne=St(3113),Vt=St(58788),fe=St(59301),Ft=St(59301),ze=Object.defineProperty,we=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Tt=(kt,Ot,jt)=>Ot in kt?ze(kt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:jt}):kt[Ot]=jt,et=(kt,Ot)=>{for(var jt in Ot||(Ot={}))ye.call(Ot,jt)&&Tt(kt,jt,Ot[jt]);if(ve)for(var jt of ve(Ot))Re.call(Ot,jt)&&Tt(kt,jt,Ot[jt]);return kt},nt=(kt,Ot)=>we(kt,oe(Ot));const{useForm:ht}=Ct.default,st={width:280,marginRight:10},gt={labelCol:{span:5},wrapperCol:{span:19}};var vt=({callback:kt,onCancel:Ot})=>{const[jt]=ht();let Xt=(0,fe.useRef)();function Ut(Ve){kt(Ve,Xt.current)}function de(Ve,me){if(Ve.status===-1){It.ZP.error(Ve.message);return}jt.setFieldsValue({src:`/api/attachments/${Ve.id}`,type:me.type})}function Gt(Ve){let me=Ve.target.files[0];Xt.current=me,Bt(me,de)}return Ft.createElement(Ct.default,nt(et({form:jt},gt),{className:"upload-image-panel",onFinish:Ut,style:{width:470,overflow:"hidden"}}),Ft.createElement(Ct.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ft.createElement("div",{className:"flex-container"},Ft.createElement(Ct.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ft.createElement(ee.default,{style:st})),Ft.createElement(wt,{onFileChange:Gt}))),Ft.createElement(Ct.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ft.createElement(ee.default,{style:{width:264}})),Ft.createElement(Ct.default.Item,{style:{textAlign:"right"}},Ft.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ft.createElement(Ne.ZP,{type:"default",onClick:Ot},"\u53D6\u6D88")))};function wt({onFileChange:kt}){return Ft.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ft.createElement("input",{type:"file",onChange:kt}))}function Bt(kt,Ot){if(!kt)throw new String("\u6CA1\u6709\u6587\u4EF6");let jt=new FormData;jt.append("editormd-image-file",kt),jt.append("file_param_name","editormd-image-file"),jt.append("byxhr","true");var Xt=new window.XMLHttpRequest;Xt.withCredentials=!0,Xt.addEventListener("load",function(Ut){Ot(JSON.parse(Ut.target.responseText),kt)},!1),Xt.addEventListener("error",function(Ut){console.error(Ut)},!1),Xt.open("POST",`${Vt.KI}/api/attachments.json`),Xt.send(jt)}},50474:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ee}});var Ct=St(59301),It=St(4676);class ee extends Ct.Component{constructor(Vt){super(Vt);const fe=window.document;this.node=fe.createElement("div"),fe.body.appendChild(this.node)}render(){const{children:Vt}=this.props;return(0,It.createPortal)(Vt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(Dn,An,St){"use strict";St.d(An,{SV:function(){return Oe},ZP:function(){return Kt}});var Ct=St(59301),It=St(76374);const ee={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"]},Ne={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"]},Vt={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(`
|
|
|
`)}]},fe={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(`
|
|
|
`)}]},Ft={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 ze=St(86061),we=St.n(ze),oe=Object.defineProperty,ve=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,nt=(ke,te,qt)=>te in ke?oe(ke,te,{enumerable:!0,configurable:!0,writable:!0,value:qt}):ke[te]=qt,ht=(ke,te)=>{for(var qt in te||(te={}))Tt.call(te,qt)&&nt(ke,qt,te[qt]);if(Re)for(var qt of Re(te))et.call(te,qt)&&nt(ke,qt,te[qt]);return ke},st=(ke,te)=>ve(ke,ye(te)),gt=(ke,te,qt)=>new Promise((Dt,xt)=>{var mt=Et=>{try{Rt(qt.next(Et))}catch(re){xt(re)}},Mt=Et=>{try{Rt(qt.throw(Et))}catch(re){xt(re)}},Rt=Et=>Et.done?Dt(Et.value):Promise.resolve(Et.value).then(mt,Mt);Rt((qt=qt.apply(ke,te)).next())});const vt={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},wt=(ke,te)=>te.map(qt=>({label:qt,kind:ke.languages.CompletionItemKind.Keyword,insertText:qt})),Bt=ke=>Object.keys(vt.tables).map(te=>({label:te,kind:ke.languages.CompletionItemKind.Variable,insertText:te})),kt=(ke,te)=>{const qt=vt.tables[ke];return qt?qt.map(Dt=>({label:Dt,kind:te.languages.CompletionItemKind.Field,insertText:Dt})):[]};function Ot(ke,te,qt,Dt,xt){let mt=te.getWordUntilPosition(qt),Mt={startLineNumber:qt.lineNumber,endLineNumber:qt.lineNumber,startColumn:mt.startColumn,endColumn:mt.endColumn},Rt=Dt.map(Et=>({label:Et,kind:ke.languages.CompletionItemKind.Keyword,insertText:Et,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Mt}));return xt.map(Et=>{Rt.push(st(ht({},Et),{range:Mt}))}),Rt}var jt=ke=>{vt.languages.map(xt=>(ke.languages.registerDocumentFormattingEditProvider(xt,{provideDocumentFormattingEdits(mt,Mt,Rt){return gt(this,null,function*(){const Et=we()(mt.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:mt.getFullModelRange(),text:Et}]})}}),xt));const te=Vt.quickKey.map(xt=>({label:xt.label,kind:ke.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet})),qt=fe.quickKey.map(xt=>({label:xt.label,kind:ke.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Dt=Ne.quickKey.map(xt=>({label:xt.label,kind:ke.languages.CompletionItemKind.Method,insertText:xt.content,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet}));ke.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(xt,mt){var Mt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Et=xt.getLineContent(mt.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...Vt.keywords.map(re=>({label:re,kind:ke.languages.CompletionItemKind.Function,documentation:re,insertText:re,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...Vt.quickKey.map(re=>({label:re.label,kind:ke.languages.CompletionItemKind.Function,documentation:re.content,insertText:Et.startsWith("#")?re.content.replace(/#/,""):re.content,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),ke.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(xt,mt){var Mt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn};return{suggestions:[...ee.keywords.map(Et=>({label:Et,kind:ke.languages.CompletionItemKind.Function,documentation:Et,insertText:Et,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),ke.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(xt,mt){var Mt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Et=xt.getLineContent(mt.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...Ne.keywords.map(re=>({label:re,kind:ke.languages.CompletionItemKind.Function,documentation:re,insertText:re,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...Ne.quickKey.map(re=>({label:re.label,kind:ke.languages.CompletionItemKind.Function,documentation:re.content,insertText:Et.startsWith("#")?re.content.replace(/#/,""):re.content,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),ke.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(xt,mt){var Mt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Et=xt.getLineContent(mt.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...Ft.keywords.map(re=>({label:re,kind:ke.languages.CompletionItemKind.Function,documentation:re,insertText:re,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...Ft.quickKey.map(re=>({label:re.label,kind:ke.languages.CompletionItemKind.Function,documentation:re.content,insertText:Et.startsWith("#")?re.content.replace(/#/,""):re.content,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}}),ke.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(xt,mt){var Mt=xt.getWordUntilPosition(mt),Rt={startLineNumber:mt.lineNumber,endLineNumber:mt.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Et=xt.getLineContent(mt.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...fe.keywords.map(re=>({label:re,kind:ke.languages.CompletionItemKind.Function,documentation:re,insertText:re,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt})),...fe.quickKey.map(re=>({label:re.label,kind:ke.languages.CompletionItemKind.Function,documentation:re.content,insertText:Et.startsWith("#")?re.content.replace(/#/,""):re.content,insertTextRules:ke.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Rt}))]}}})};const Xt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ut=Object.defineProperty,de=(ke,te,qt)=>te in ke?Ut(ke,te,{enumerable:!0,configurable:!0,writable:!0,value:qt}):ke[te]=qt,Gt=(ke,te,qt)=>de(ke,typeof te!="symbol"?te+"":te,qt);const Ve=class px{constructor(te,qt,Dt){this.placeholder=te,this.editor=qt,this.monaco=Dt,qt.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)}};Gt(Ve,"ID","editor.widget.placeholderHint");var sn=Ve,qe=St(96236),Ye=St(8591),je=St(6848),hn=St(89392),ge=St(86766),Ht=St(56102),Ce=Object.defineProperty,bn=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Sn=Object.prototype.propertyIsEnumerable,Xn=(ke,te,qt)=>te in ke?Ce(ke,te,{enumerable:!0,configurable:!0,writable:!0,value:qt}):ke[te]=qt,Pn=(ke,te)=>{for(var qt in te||(te={}))Ue.call(te,qt)&&Xn(ke,qt,te[qt]);if(Ae)for(var qt of Ae(te))Sn.call(te,qt)&&Xn(ke,qt,te[qt]);return ke},Gn=(ke,te)=>bn(ke,yn(te)),Ee=(ke,te)=>{var qt={};for(var Dt in ke)Ue.call(ke,Dt)&&te.indexOf(Dt)<0&&(qt[Dt]=ke[Dt]);if(ke!=null&&Ae)for(var Dt of Ae(ke))te.indexOf(Dt)<0&&Sn.call(ke,Dt)&&(qt[Dt]=ke[Dt]);return qt},Jn=(ke,te,qt)=>new Promise((Dt,xt)=>{var mt=Et=>{try{Rt(qt.next(Et))}catch(re){xt(re)}},Mt=Et=>{try{Rt(qt.throw(Et))}catch(re){xt(re)}},Rt=Et=>Et.done?Dt(Et.value):Promise.resolve(Et.value).then(mt,Mt);Rt((qt=qt.apply(ke,te)).next())});function ai(ke){return/^\d+$/.test(ke)?`${ke}px`:ke}function ui(){}let ln=!1;const Te={"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 Me(ke=[]){let te=ke;if(Array.isArray(ke)){for(let qt=0;qt<ke.length;qt++){let Dt=Te[ke[qt]];if(Dt)return Dt}return te[0]}return Te[te]||te}let ie=null;var Kt=ke=>{var te=ke,{width:qt="100%",height:Dt="100%",value:xt,language:mt="javascript",style:Mt={},options:Rt={},overrideServices:Et={},theme:re="vs-dark",onEditBlur:Qe,isCopy:mn=!1,onSave:le,autoHeight:Ge=!1,forbidCopy:cn=!1,onChange:Mn=ui,editorDidMount:Zn=ui,onFocus:_n=ui,onBreakPoint:di=ui,breakPointValue:ri=[],filename:Fi="educoder.txt",errorLine:Zi,errorContent:Vi="",highlightLine:ji,openBreakPoint:qi=!1,placeholder:wo=""}=te,Ei=Ee(te,["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 Po=(0,Ct.useRef)(),ki=(0,Ct.useRef)({}),Lt=(0,Ct.useRef)(),Mo=(0,Ct.useRef)(),$i=(0,Ct.useRef)([]),En=(0,Ct.useRef)(!1),hi=(0,Ct.useRef)(),gi=(0,Ct.useRef)(),Pi=(0,Ct.useRef)(!1),[Rn,Le]=(0,Ct.useState)(!1);function Fe(){let We;return Po.current&&(We=new It.Z(fn=>{for(let Ie of fn)(Ie.target.offsetHeight>0||Ie.target.offsetWidth>0)&&ki.current.instance.layout()}),We.observe(Po.current)),We}function he(){Ye.ZP.warning({content:decodeURIComponent(Xt),key:"monaco-editor-tip"})}const _t=()=>{let We=ki.current.instance;if(xt!=null&&We&&Rn){const fn=We.getModel();fn&&xt!==fn.getValue()&&(ln=!0,fn.setValue(xt),We.layout(),ln=!1)}};(0,Ct.useEffect)(()=>{const We=ge.Z.subscribe("formatDocument",fn=>{var Ie;let an=ki.current.instance;(Ie=an==null?void 0:an.getAction)==null||Ie.call(an,"editor.action.formatDocument").run()});return window.updateMonacoValue=fn=>{Mn(fn)},We},[]),(0,Ct.useEffect)(()=>{var We;let fn=ki.current.instance;Mo.current&&clearTimeout(Mo.current),Mo.current=setTimeout(()=>{_t()},500),xt&&(xt!=null&&xt.length)&&((We=fn==null?void 0:fn.updateOptions)==null||We.call(fn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(xt.split(/\r\n|\r|\n/g).length))+3,5)}))},[xt,Rn,ki.current]),(0,Ct.useEffect)(()=>{if(Zi&&ki.current&&ki.current.instance){let fn=ki.current.instance;fn.changeViewZones(function(Ie){var an=document.createElement("div");an.style.padding="10px 20px",an.style.width="calc(100% - 20px)",an.className="my-error-line-wrp",an.innerHTML=Vi,Ie.addZone({afterLineNumber:Zi||11,heightInLines:3,domNode:an})});var We={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}};fn.addOverlayWidget(We),fn.revealPositionInCenter({lineNumber:20,column:1})}},[Zi,ki.current,Rn]);const Ze=(We="",fn)=>{if(!We||We.trim()==="")return!0;const an=ki.current.instance.getModel().getLineTokens(fn);let _e=!1;for(let rn=0;rn<2;rn++)an.getStandardTokenType(rn)===1&&(_e=!0);return _e};(0,Ct.useEffect)(()=>{var We;const fn=(We=ki.current)==null?void 0:We.instance;if(fn&&Rn&&cn){const Ie=fn.onDidBlurEditorWidget(()=>{Pi.current=!1}),an=fn.onDidFocusEditorText(()=>{Pi.current=!0});return()=>{Ie.dispose(),an.dispose()}}},[ki.current,Rn,cn]),(0,Ct.useEffect)(()=>{var We;if((We=ki.current)!=null&&We.instance&&Rn&&qi){let fn=ki.current.instance,Ie=fn.getModel();if(!Ie)return;(()=>{var Li;let Be=[],ei=[];const Si=Ie.getAllDecorations();for(let Hi of Si)Hi.options.className==="highlighted-line"&&(Be.push((Li=Hi==null?void 0:Hi.range)==null?void 0:Li.startLineNumber),ei.push(Hi==null?void 0:Hi.id));if(ji===Be[0])return;Ie.deltaDecorations(ei,[]);const ci=Ie.getLineCount();ji&&ji<=ci&&(fn.deltaDecorations([],[{range:new ie.Range(ji,1,ji,Ie.getLineMaxColumn(ji)),options:{isWholeLine:!0,className:"highlighted-line"}}]),fn.revealLineInCenter(ji))})();const _e=(Li=!1)=>{var Be;let ei=[],Si=[];const ci=Ie.getAllDecorations();for(let Hi of ci)Hi.options.linesDecorationsClassName==="breakpoints-select"&&(ei.push((Be=Hi==null?void 0:Hi.range)==null?void 0:Be.startLineNumber),Si.push(Hi==null?void 0:Hi.id));if(Li)return{lines:ei,ids:Si};di(ei)},rn=Li=>Jn(void 0,null,function*(){let Be={range:new ie.Range(Li,1,Li,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ie.deltaDecorations([],[Be]),_e()}),pn=Li=>Jn(void 0,null,function*(){let Be=[];const ei=fn.getLineDecorations(Li);for(let Si of ei)Si.options.linesDecorationsClassName==="breakpoints-select"&&Be.push(Si.id);yield Ie.deltaDecorations(Be,[]),_e()}),Cn=Li=>{let Be=fn.getLineDecorations(Li);for(let ei of Be)if(ei.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,hn.isEqual)(ri,_e(!0).lines)){Ie.deltaDecorations(_e(!0).ids,[]);const Li=ri.map(Be=>({range:new ie.Range(Be,1,Be,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ie.deltaDecorations([],Li)}const kn=fn.onDidChangeModelContent(Li=>{let Be=fn.getPosition();if(Be){let ei=Be.lineNumber;clearTimeout(gi.current),gi.current=setTimeout(()=>{Ze(Ie.getLineContent(ei),ei)?pn(ei):Cn(ei)?(pn(ei),rn(ei)):_e()},100)}}),In=fn.onMouseDown(Li=>{var Be,ei,Si;if(Li.target.detail&&((Si=(ei=(Be=Li.target)==null?void 0:Be.element)==null?void 0:ei.className)!=null&&Si.includes("line-numbers"))){let ci=Li.target.position.lineNumber;if(Ze(Ie.getLineContent(ci),ci))return;Cn(ci)?pn(ci):rn(ci)}}),wn=Li=>{let Be={range:new ie.Range(Li,1,Li,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};$i.current=fn.deltaDecorations($i.current,[Be])},Kn=()=>{$i.current=fn.deltaDecorations($i.current,[])},Ci=fn.onMouseMove(Li=>{var Be,ei,Si;if(Kn(),Li.target.detail&&((Si=(ei=(Be=Li.target)==null?void 0:Be.element)==null?void 0:ei.className)!=null&&Si.includes("line-numbers"))){let ci=Li.target.position.lineNumber;if(Ze(Ie.getLineContent(ci),ci))return;wn(ci)}}),Wi=fn.onMouseLeave(()=>{Kn()});return()=>{kn.dispose(),In.dispose(),Ci.dispose(),Wi.dispose()}}},[ki.current,Rn,ri,ji,qi,mt]),(0,Ct.useEffect)(()=>{var We;(We=ki.current)!=null&&We.instance&&qi&&ki.current.instance.setPosition({lineNumber:0,column:0})},[ji]);function tn(){let We=ki.current.instance;if(We){const fn=We.getSelection(),Ie=ki.current.pastePos||{},an=new ie.Range(Ie.startLineNumber||fn.endLineNumber,Ie.startColumn||fn.endColumn,Ie.endLineNumber||fn.endLineNumber,Ie.endColumn||fn.endColumn);setTimeout(()=>{We.executeEdits("",[{range:an,text:""}])},300)}}function Se(We){(window.navigator.platform.match("Mac")?We.metaKey:We.ctrlKey)&&We.keyCode==83&&(We.preventDefault(),le())}const Yt=()=>{if(Ge&&ki.current.instance){const We=ki.current.instance.getContentHeight();Wn(We<Dt?Dt:We)}else Wn(Dt)};function $e(We){var fn=document.createEvent("MouseEvents");fn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),We.dispatchEvent(fn)}const on=We=>{if(!Pi.current)return;const{keyCode:fn,ctrlKey:Ie,metaKey:an,target:_e,type:rn}=We;return(rn==="paste"||(fn===67||fn===86)&&(an||Ie))&&_e.nodeName==="TEXTAREA"&&(he(),We.preventDefault()),!1};function zn(We,fn){var Ie=window.URL||window.webkitURL||window,an=new Blob([fn]),_e=document.createElementNS("http://www.w3.org/1999/xhtml","a");_e.href=Ie.createObjectURL(an),_e.download=We,$e(_e)}(0,Ct.useEffect)(()=>{Yt()},[Yt]),(0,Ct.useEffect)(()=>{Po.current&&!Rn&&Promise.all([St.e(8909),St.e(1810)]).then(St.bind(St,71448)).then(We=>{try{ie=We,ki.current.instance=ie.editor.create(Po.current,{value:xt,language:Me(mt),theme:re,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Et);const fn=ki.current.instance;let _e=[...qe.BH._menuItems].find(kn=>kn[0]._debugName=="EditorContext")[1],rn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],pn=(kn,In)=>{var wn,Kn;let Ci=kn._first;do In.includes((Kn=(wn=Ci.element)==null?void 0:wn.command)==null?void 0:Kn.id)&&kn._remove(Ci);while(Ci=Ci.next)};if(Zn(fn,ie),setTimeout(()=>{Yt(),ki.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{zn(Fi||"educoder.txt",fn.getValue())}})},500),ki.current.subscription=fn.onDidChangeModelContent(kn=>{En.current?clearTimeout(hi.current):(Yt(),Mn(fn.getValue(),kn)),hi.current=setTimeout(()=>{En.current=!1},500)}),window.Monaco||jt(ie,Me(mt)),cn&&(pn(_e,rn),Po.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",on),window.removeEventListener("paste",on),window.addEventListener("keydown",on),window.addEventListener("paste",on)),window.Monaco=ie,Qe&&fn.onDidBlurEditorWidget(()=>{Qe(fn.getValue())}),_n&&fn.onDidFocusEditorText(()=>{_n(fn.getValue())}),cn)try{fn.onDidPaste(kn=>{const In=fn.getSelection(),wn=ki.current.pastePos||{},Kn=new ie.Range(wn.startLineNumber||In.endLineNumber,wn.startColumn||In.endColumn,wn.endLineNumber||In.endLineNumber,wn.endColumn||In.endColumn);fn.executeEdits("",[{range:kn.range,text:""}])})}catch(kn){}let Cn=Fe();return wo&&typeof wo=="string"&&new sn(wo,fn,ie),Le(!0),()=>{const kn=ki.current.instance;kn.dispose();const In=kn.getModel();In&&In.dispose(),ki.current.subscription&&ki.current.subscription.dispose(),Cn.unobserve(Po.current)}}catch(fn){}})},[]),(0,Ct.useEffect)(()=>{if(ki.current.instance&&Rn)return document.addEventListener("keydown",Se,!1),()=>{document.removeEventListener("keydown",Se)}},[le,Rn]),(0,Ct.useEffect)(()=>{let We=ki.current.instance;if(We&&Rn){let fn=Me(mt);ie.editor.setModelLanguage(We.getModel(),fn)}},[mt,Rn]),(0,Ct.useEffect)(()=>{ki.current.instance&&Rn&&ie.editor.setTheme(re)},[re,Rn]),(0,Ct.useEffect)(()=>{let We=ki.current.instance;Lt.current=Rt,We&&Rn&&(We.updateOptions(Pn({},Rt)),setTimeout(()=>{We.getModel().updateOptions(Pn({},Rt))},200))},[JSON.stringify(Rt),Rn]),(0,Ct.useEffect)(()=>{let We=ki.current.instance;We&&Rn&&We.layout()},[qt,Dt,Rn]);const[en,xe]=(0,Ct.useState)(ai(qt)),[vn,Wn]=(0,Ct.useState)(ai(Dt)),qn=Gn(Pn({},Mt),{width:en,height:vn,position:"relative"});return Ct.createElement("div",{className:"my-monaco-editor",ref:Po,style:qn},mn&&Ct.createElement(Ht.CopyToClipboard,{text:xt,onCopy:()=>Ye.ZP.success("\u590D\u5236\u6210\u529F")},Ct.createElement(je.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ct.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ct.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Oe({width:ke="100%",height:te="100%",original:qt,modified:Dt,language:xt,options:mt={}}){const Mt=(0,Ct.useRef)(),[Rt,Et]=(0,Ct.useState)(null);function re(Ge){let cn;return Mt.current&&(cn=new It.Z(Mn=>{for(let Zn of Mn)(Zn.target.offsetHeight>0||Zn.target.offsetWidth>0)&&Ge.layout()}),cn.observe(Mt.current)),cn}(0,Ct.useEffect)(()=>(Mt.current&&Promise.all([St.e(8909),St.e(9404)]).then(St.bind(St,2550)).then(Ge=>{ie=Ge;const cn=ie.editor.createDiffEditor(Mt.current,Gn(Pn({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},mt),{wordWrap:!0}));Et(cn);let Mn=re(cn);return()=>{cn.dispose();const Zn=cn.getModel();Zn&&Zn.dispose(),Mn.unobserve(Mt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ct.useEffect)(()=>{Rt&&Rt.setModel({original:ie.editor.createModel(qt,xt),modified:ie.editor.createModel(Dt,xt)})},[qt,Dt,xt,Rt]);const Qe=ai(ke),mn=ai(te),le={width:Qe,height:mn};return Ct.createElement("div",{className:"my-diff-editor",ref:Mt,style:le})}},94606:function(Dn,An,St){"use strict";St.d(An,{jL:function(){return Vt},w9:function(){return Ue},QD:function(){return Mn},cQ:function(){return Ht},op:function(){return re},O5:function(){return Pi},_b:function(){return Zi},t7:function(){return st},Gi:function(){return Jn},YG:function(){return Gn},qp:function(){return ve},vr:function(){return di},qE:function(){return le},Je:function(){return wt},wb:function(){return qe},cq:function(){return ie},tp:function(){return Tt}});var Ct=St(59301),It={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"},ee="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+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJa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syXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Vt=({dataSource:Rn=[],img:Le,imgWidth:Fe=346,title:he,sunTitle:_t,bannerExtraContent:Ze})=>Ct.createElement("div",{className:It.banner},Ct.createElement("div",{className:It.content},Ct.createElement("aside",null,Ct.createElement("p",null,Ct.createElement("b",null,he),Ct.createElement("span",null,_t)),Rn.length>0&&Ct.createElement("div",{className:It.btns},Rn.map((tn,Se)=>Ct.createElement("div",{key:Se,onClick:tn.click},tn.name,tn.sign?Ct.createElement("img",{src:ee,width:39}):null))),Ze),Le&&Ct.createElement("img",{style:{marginTop:33,marginRight:38},src:Le,width:Fe}))),fe={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"},Ft=St(92310),ze=St.n(Ft),we=St(89392),ve=({dataSource:Rn=[],value:Le,onChange:Fe,onTitleChange:he,className:_t,title:Ze,titleWidth:tn=41,style:Se={},fontColor:Yt="#6A7283",showCount:$e})=>{const[on,zn]=(0,Ct.useState)(0),[en,xe]=(0,Ct.useState)(!1),vn=(0,Ct.useRef)(null),Wn=(0,Ct.useRef)(null);return(0,Ct.useEffect)(()=>{var qn;Rn.length!==0&&(((qn=vn==null?void 0:vn.current)==null?void 0:qn.clientHeight)>97?zn(1):zn(0)),Rn.length===0&&zn(0),xe(!1)},[Rn]),Ct.createElement("div",{className:ze()(fe.row,_t),style:Se},Ct.createElement("div",{onClick:(0,we.throttle)(()=>he==null?void 0:he(),2e3),style:{width:tn,marginTop:en?12:4},className:`${fe.title} ${he?"current":""}`},Ze),Ct.createElement("div",{className:en?`${fe.tagsWrap} ${fe.tagsBorderWrap}`:fe.tagsWrap},Ct.createElement("div",{className:fe.bar,ref:Wn,style:on>0?{height:on===1?97:"auto",overflow:on===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Ct.createElement("div",{className:fe.tag,ref:vn},Rn==null?void 0:Rn.map(qn=>Ct.createElement("span",{onClick:()=>Fe(qn.id),key:qn.id,style:{color:Yt},className:Le===qn.id?fe.active:""},Ct.createElement("span",{title:qn.name,className:fe.name},qn.name),!!$e&&Ct.createElement("span",{className:fe.num},qn.count))))),!!on&&Ct.createElement(Ct.Fragment,null,on===1?Ct.createElement("div",{onClick:()=>{var qn;zn(2),((qn=vn==null?void 0:vn.current)==null?void 0:qn.clientHeight)>245?xe(!0):xe(!1)},className:fe.action},"\u5C55\u5F00",Ct.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Ct.createElement("div",{onClick:()=>{Wn.current.scrollTop=0,zn(1),xe(!1)},className:fe.action},"\u6536\u8D77",Ct.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ye={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"},Tt=({dataSource:Rn=[],value:Le,onChange:Fe,className:he,style:_t={}})=>Ct.createElement("div",{style:_t,className:ze()(ye.tabs,he)},Rn.map(Ze=>Ct.createElement("span",{onClick:()=>Fe(Ze.id),className:Le===Ze.id?ye.active:"",key:Ze.id},Ze.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},nt=St(92832),st=({dataSource:Rn=[],value:Le="",onChange:Fe,onInputChange:he=()=>{},className:_t,style:Ze={},placeholder:tn,allowClear:Se=!1})=>{var Yt;const[$e,on]=(0,Ct.useState)(""),[zn,en]=(0,Ct.useState)("");(0,Ct.useEffect)(()=>{var Wn;let qn=Le;(Wn=JSON.stringify(Le))!=null&&Wn.includes("{")&&(on(Le.id),qn=Le.value||"");try{en(decodeURIComponent(qn||""))}catch(We){en(decodeURIComponent(qn||""))}},[Le]);const xe=()=>{Fe(encodeURIComponent(zn),$e||null)},vn=Wn=>{Wn!==$e&&(on(Wn),Fe(encodeURIComponent(zn),Wn))};return Ct.createElement("div",{className:ze()(et.input,_t),style:Ze},!!Rn.length&&Ct.createElement("div",{className:et.dropdown},Ct.createElement("div",{className:et.text},(Yt=Rn.find(Wn=>Wn.id===$e))==null?void 0:Yt.name,Ct.createElement("i",{className:"iconfont icon-zhankai4"}),Ct.createElement("b",{className:et.b1}),Ct.createElement("b",{className:et.b2})),Ct.createElement("div",{className:et.menu},Rn.map((Wn,qn)=>Ct.createElement("div",{key:qn,onClick:()=>vn(Wn.id)},Wn.name)))),Ct.createElement(nt.default,{onPressEnter:xe,value:zn,onChange:Wn=>{en(Wn.target.value),he(encodeURIComponent(Wn.target.value),$e||null)},bordered:!1,placeholder:tn}),Ct.createElement("i",{onClick:xe,className:"iconfont icon-sousuo9 font14 pl10 current"}))},gt={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"},wt=({value:Rn,onChange:Le,className:Fe,total:he,pageSize:_t,style:Ze={}})=>{const tn=Rn<2,Se=Rn>=Math.ceil(he/_t);return he<=_t?Ct.createElement(Ct.Fragment,null):Ct.createElement("div",{className:ze()(gt.quickPager,Fe),style:Ze},Ct.createElement("div",{onClick:()=>{tn||Le(Rn-1,"prev")},className:tn?gt.disabled:""},"\u4E0A\u4E00\u9875"),Ct.createElement("div",{onClick:()=>{Se||Le(Rn+1,"next")},className:Se?gt.disabled:""},"\u4E0B\u4E00\u9875"))},Bt={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"},kt=St(71418),Ot=St(6848),jt=St(39978),Xt=St(10148),Ut=St(58130),de=St(96908),Gt=St(57177),Ve=St(81378),me=St(97267),qe=({className:Rn,dataSource:Le=[],col:Fe=4,right:he,bottom:_t=23,precision:Ze=0,wrapWidth:tn=1200,trackEventItems:Se,loading:Yt})=>{const $e=Math.floor((tn-(Fe-1)*he)/Fe);return Ct.createElement(kt.Z,{spinning:Yt},Ct.createElement("div",{className:ze()(Bt.list,Rn)},!!Le.length&&Le.map((on,zn)=>{const{name:en,id:xe,identifier:vn,power:Wn,cover_image_id:qn,pic:We}=on;return Ct.createElement("div",{className:Bt.wrap,key:xe,style:{width:$e,marginRight:(1+zn)%Fe===0?0:he+Ze,marginBottom:_t}},Ct.createElement("a",{target:"_blank",href:`/shixuns/${vn}/challenges`,className:Bt.li,onClick:fn=>{fn.preventDefault(),Se&&(0,Ut.L9)([Se]),Wn&&(0,Ut.xg)(`/shixuns/${vn}/challenges`)}},Ct.createElement("div",{className:Bt.img},Ct.createElement("img",{className:Bt.cover,src:`${We}`}),on.is_jupyter&&Ct.createElement("img",{className:Bt.sign,src:de}),on.is_jupyter_lab&&Ct.createElement("img",{className:Bt.sign,src:Gt}),on.is_unity_3d&&Ct.createElement("img",{className:Bt.sign,src:Ve})),Ct.createElement("div",{className:Bt.name},Ct.createElement(Ot.Z,{title:en||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Ct.createElement("span",{className:Bt.e},en||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Ct.createElement("div",{className:Bt.tags},Ct.createElement(Ot.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Ct.createElement("span",null,Ct.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Ct.createElement("span",null,on.challenges_count))),!!on.myshixuns_count&&Ct.createElement(Ot.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ct.createElement("span",null,Ct.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Ct.createElement("span",null,on.myshixuns_count))),Ct.createElement(Ot.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Ct.createElement("span",null,Ct.createElement("span",null,on.level))),Ct.createElement("div",{className:Bt.rate},Ct.createElement(jt.Z,{allowHalf:!0,disabled:!0,defaultValue:on.score_info}),Ct.createElement("span",null,"\xA0",on.score_info?`${on.score_info}\u5206`:"5\u5206")))),!Wn&&Ct.createElement("div",{className:Bt.lockWrap},Ct.createElement("img",{src:`${Xt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ct.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Le.length&&Ct.createElement(me.Z,null)))},Ye={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"},je=St(2119),hn=St(59301),Ht=({className:Rn,dataSource:Le=[],col:Fe=4,right:he,bottom:_t=23,precision:Ze=0,wrapWidth:tn=1200,trackEventItems:Se,loading:Yt,onRemove:$e=()=>{},isCurrent:on=!0,showAlias:zn=!1})=>{const en=Math.floor((tn-(Fe-1)*he)/Fe),xe=[{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 hn.createElement(kt.Z,{spinning:Yt},hn.createElement("div",{className:ze()(Ye.list,Rn)},!!(Le!=null&&Le.length)&&(Le==null?void 0:Le.map((vn,Wn)=>{var qn;const{name:We,id:fn,identifier:Ie,featured:an,school_name:_e,image_url:rn,excellent:pn,is_plan:Cn}=vn;return hn.createElement("div",{key:fn,className:Ye.wrap,style:{width:en,marginRight:(1+Wn)%Fe===0?0:he+Ze,marginBottom:_t}},hn.createElement("a",{className:Ye.li,onClick:kn=>{kn.preventDefault(),kn.stopPropagation(),Se&&(0,Ut.L9)([Se]),(0,Ut.xg)(`/paths/${Ie}`)}},hn.createElement("div",{className:Ye.img},hn.createElement("img",{className:Ye.cover,src:`${rn}`}),on&&(0,je.bg)()&&(vn==null?void 0:vn.studying)&&hn.createElement("div",{className:`${Ye.movebq} user-path-items`,onClick:kn=>{kn.stopPropagation(),$e(vn)}},hn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),hn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(qn=vn==null?void 0:vn.subject_tags)==null?void 0:qn.map((kn,In)=>{var wn,Kn;if(In===0){const Wi=(wn=xe.find(Li=>Li.name==kn))==null?void 0:wn.swimg;return hn.createElement("img",{className:Ye.sign,src:Wi,style:{left:"-4px"}})}const Ci=(Kn=xe.find(Wi=>Wi.name==kn))==null?void 0:Kn.ptimg;return hn.createElement("img",{className:Ye.sign,src:Ci,style:{left:`${48+52*(In-1)+2*In}px`}})}),hn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(vn==null?void 0:vn.excellent)&&hn.createElement("div",{className:Ye.bq},"\u5F00\u653E\u8BFE\u7A0B"))),hn.createElement("div",{className:Ye.name},hn.createElement(Ot.Z,{title:zn&&(vn!=null&&vn.excellent_alias_name)?hn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${We}`,hn.createElement("br",null),hn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${vn==null?void 0:vn.excellent_alias_name}`)):We},hn.createElement("span",{className:Ye.e},zn&&(vn==null?void 0:vn.excellent_alias_name)||We))),hn.createElement(Ot.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${_e}`},hn.createElement("div",{className:Ye.unit},hn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),_e)),hn.createElement("div",{className:Ye.tags},hn.createElement("div",null,hn.createElement(Ot.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},hn.createElement("span",null,hn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),hn.createElement("span",null,vn.stages_count))),hn.createElement(Ot.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},hn.createElement("span",null,hn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),hn.createElement("span",null,vn.members_count)))))))})),!Le.length&&hn.createElement(me.Z,null)))},Ce={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"},bn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8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PbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",yn=St(59301),Ue=({className:Rn,dataSource:Le=[],col:Fe=4,right:he,bottom:_t=23,precision:Ze=0,wrapWidth:tn=1200,trackEventItems:Se,loading:Yt})=>{const $e=Math.floor((tn-(Fe-1)*he)/Fe);return yn.createElement(kt.Z,{spinning:Yt},yn.createElement("div",{className:ze()(Ce.list,Rn)},!!Le.length&&Le.map((on,zn)=>{const{subject_identifier:en,id:xe,identifier:vn,power:Wn}=on,qn=on.is_public!=0&&on.is_public;return yn.createElement("div",{className:Ce.wrap,key:xe,style:{width:$e,marginRight:(1+zn)%Fe===0?0:he+Ze,marginBottom:_t}},yn.createElement("a",{className:Ce.li,onClick:We=>{We.preventDefault(),Se&&(0,Ut.L9)([Se]),(0,Ut.xg)(on.first_category_url)}},yn.createElement("div",{className:Ce.top},yn.createElement(Ot.Z,{title:on.name},yn.createElement("div",{className:Ce.name},on.name)),yn.createElement("img",{className:Ce.img,src:Xt.Z.IMG_SERVER+"/images/"+on.avatar_url}),yn.createElement("div",{className:Ce.text,title:on.creator},on.creator),en&&yn.createElement("div",{className:Ce.btns},yn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),yn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),qn&&yn.createElement("div",{className:Ce.sign},"\u516C\u5F00")),yn.createElement("div",{className:Ce.bottom},on.visits>0&&yn.createElement(Ot.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},yn.createElement("span",null,yn.createElement("i",{className:"iconfont icon-liulanyan"}),yn.createElement("span",null,on.visits))),on.course_members_count>0&&yn.createElement(Ot.Z,{title:"\u6210\u5458",placement:"bottom"},yn.createElement("span",null,yn.createElement("i",{className:"iconfont icon-chengyuan"}),on.course_members_count)),on.tasks_count>0&&yn.createElement(Ot.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},yn.createElement("span",null,yn.createElement("i",{className:"iconfont icon-zuoye"}),on.tasks_count)),on.is_end?yn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):yn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!on.is_accessible&&yn.createElement("div",{className:Ce.lockWrap},yn.createElement("img",{src:`${Xt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),yn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Le.length&&yn.createElement(me.Z,null)))},Sn={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"},Xn=St(42203),Gn=({dataSource:Rn=[],value:Le,onChange:Fe,className:he,style:_t={},tabBarExtraContent:Ze})=>Ct.createElement("div",{className:ze()(Sn.tabs,he),style:_t},Ct.createElement("div",{className:Sn.tabsWrap},Rn.map((tn,Se)=>Ct.createElement("aside",{className:Sn.tab,onClick:()=>{Fe(tn.id),tn.link&&Xn.history.push(tn.link)},key:Se},Ct.createElement("div",{className:Le===tn.id?Sn.active:""},tn.name),(tn==null?void 0:tn.resetCount)==null&&(tn==null?void 0:tn.total)!==void 0&&Ct.createElement("span",null,"\uFF08",tn==null?void 0:tn.total,"\uFF09"),(tn==null?void 0:tn.resetCount)!==void 0&&(tn==null?void 0:tn.total)!==void 0&&Ct.createElement(Ot.Z,{title:(tn==null?void 0:tn.tip)!=null?tn==null?void 0:tn.tip:""},Ct.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Ct.createElement("span",{style:{color:"#000"}},tn==null?void 0:tn.resetCount),"/",Ct.createElement("span",null,tn==null?void 0:tn.total),"\uFF09"))))),Ct.createElement("div",{className:Sn.tabBar},Ze)),Jn=({className:Rn,style:Le={},children:Fe})=>Ct.createElement("div",{className:ze()(Rn),style:Le},Fe),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"},ui=St(38854),ln=St(20834);const Te=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ie=({sortValue:Rn,dropValue:Le,className:Fe,onSort:he,onDrop:_t,dataSource:Ze=Te})=>{var tn;return Ct.createElement("div",{className:ze()(ai.orderWrap,Fe)},Ct.createElement(ui.Z,{dropdownRender:()=>Ct.createElement(ln.default,null,Ze.map((Se,Yt)=>Ct.createElement(ln.default.Item,{key:Yt,onClick:()=>_t(Se.id)},Se.name)))},Ct.createElement("span",{className:ai.orderTextWrap},(tn=Ze.find(Se=>Le===Se.id))==null?void 0:tn.name)),Ct.createElement("span",{className:ai.orderIconWrap},Ct.createElement("span",{className:ai.orderAsc},Ct.createElement("i",{className:Rn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ai.cursorPointer} ${ai.active}`:`iconfont icon-sanjiaoxing-up font12 ${ai.cursorPointer}`,onClick:()=>he(Rn==="asc"?"desc":"asc")})),Ct.createElement("span",{className:ai.orderDesc},Ct.createElement("i",{className:Rn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ai.cursorPointer} ${ai.active}`:`iconfont icon-sanjiaoxing-down font12 ${ai.cursorPointer}`,onClick:()=>he(Rn==="asc"?"desc":"asc")}))))},Kt={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"},Oe=St(3113),ke=Object.defineProperty,te=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,xt=(Rn,Le,Fe)=>Le in Rn?ke(Rn,Le,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Rn[Le]=Fe,mt=(Rn,Le)=>{for(var Fe in Le||(Le={}))qt.call(Le,Fe)&&xt(Rn,Fe,Le[Fe]);if(te)for(var Fe of te(Le))Dt.call(Le,Fe)&&xt(Rn,Fe,Le[Fe]);return Rn},Mt=(Rn,Le)=>{var Fe={};for(var he in Rn)qt.call(Rn,he)&&Le.indexOf(he)<0&&(Fe[he]=Rn[he]);if(Rn!=null&&te)for(var he of te(Rn))Le.indexOf(he)<0&&Dt.call(Rn,he)&&(Fe[he]=Rn[he]);return Fe},Rt=(Rn,Le,Fe)=>new Promise((he,_t)=>{var Ze=Yt=>{try{Se(Fe.next(Yt))}catch($e){_t($e)}},tn=Yt=>{try{Se(Fe.throw(Yt))}catch($e){_t($e)}},Se=Yt=>Yt.done?he(Yt.value):Promise.resolve(Yt.value).then(Ze,tn);Se((Fe=Fe.apply(Rn,Le)).next())}),re=Rn=>{var Le=Rn,{className:Fe,style:he,children:_t,loading:Ze=!1,openLoading:tn,onClick:Se=()=>{},size:Yt="middle",shape:$e="round"}=Le,on=Mt(Le,["className","style","children","loading","openLoading","onClick","size","shape"]);const[zn,en]=(0,Ct.useState)(!1);return Ct.createElement(Oe.ZP,mt({onClick:(0,we.throttle)(xe=>Rt(void 0,null,function*(){tn&&en(!0);try{yield Se(xe)}catch(vn){console.log("error",vn)}tn&&en(!1)}),2e3,{leading:!0,trailing:!1}),className:ze()(Kt.btn,Kt[`${Yt}-${$e}`],Fe),style:he,size:Yt,shape:$e,loading:zn||Ze},on),_t)},Qe={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"},le=({className:Rn,style:Le,children:Fe=null,onClick:he,title:_t})=>Ct.createElement("div",{className:ze()(Qe.head,Rn),style:Le},Ct.createElement("span",{className:"primary-hover",onClick:he},Ct.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Ct.createElement("b",{title:_t},_t),Ct.createElement("div",{className:Qe.node},Fe)),Ge={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"},Mn=({confirmShow:Rn=!0,confirmTitle:Le,confirmClick:Fe,cancelShow:he=!0,cancelTitle:_t,cancelClick:Ze,className:tn,style:Se,confirmLoading:Yt=!1})=>Ct.createElement("div",{className:ze()(Ge.btns,tn),style:Se},Rn&&Ct.createElement(Oe.ZP,{loading:Yt,onClick:Fe,type:"primary",className:Ge.confirm},Le),he&&Ct.createElement(Oe.ZP,{onClick:Ze,className:Ge.cancel},_t)),Zn={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"},di=({className:Rn,style:Le={},LeftContent:Fe,children:he,RightContent:_t})=>Ct.createElement("div",{className:ze()(Zn.fixedBottom,Rn),style:Le},Ct.createElement("div",{className:Zn.wrap},Ct.createElement("div",{className:Zn.left},Fe),Ct.createElement("div",{className:Zn.center},he),Ct.createElement("div",{className:Zn.right},_t))),ri={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"},Zi=({className:Rn,style:Le={},dataSource:Fe=[]})=>Ct.createElement("div",{className:ze()(ri.crumbs,Rn),style:Le},Fe.map((he,_t)=>_t<Fe.length-1?Ct.createElement(Ct.Fragment,{key:_t},he.path||he.onClick?Ct.createElement("span",{className:ri.hover,onClick:he!=null&&he.onClick?he.onClick:()=>Xn.history.push(he.path)},he.name):Ct.createElement("span",null,he.name),Ct.createElement("span",null,"\xA0",">","\xA0")):Ct.createElement("span",{key:_t,style:{color:"#5F6368"}},he.name))),Vi=St(31797),ji=Object.defineProperty,qi=Object.defineProperties,wo=Object.getOwnPropertyDescriptors,Ei=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty,ki=Object.prototype.propertyIsEnumerable,Lt=(Rn,Le,Fe)=>Le in Rn?ji(Rn,Le,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Rn[Le]=Fe,Mo=(Rn,Le)=>{for(var Fe in Le||(Le={}))Po.call(Le,Fe)&&Lt(Rn,Fe,Le[Fe]);if(Ei)for(var Fe of Ei(Le))ki.call(Le,Fe)&&Lt(Rn,Fe,Le[Fe]);return Rn},$i=(Rn,Le)=>qi(Rn,wo(Le)),En=(Rn,Le)=>{var Fe={};for(var he in Rn)Po.call(Rn,he)&&Le.indexOf(he)<0&&(Fe[he]=Rn[he]);if(Rn!=null&&Ei)for(var he of Ei(Rn))Le.indexOf(he)<0&&ki.call(Rn,he)&&(Fe[he]=Rn[he]);return Fe};const{Countdown:hi}=Vi.default;var Pi=Rn=>{var Le=Rn,{onChange:Fe}=Le,he=En(Le,["onChange"]);const[_t,Ze]=(0,Ct.useState)(null);(0,Ct.useEffect)(()=>{typeof _t=="number"&&_t>=0&&Fe(_t)},[_t]);const tn=Se=>{const Yt=Math.floor(Se/1e3);Ze(Yt)};return Ct.createElement(hi,$i(Mo({},he),{onChange:tn}))}},91300:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return It}});var Ct=St(59301);function It(ee,Ne){const Vt=(0,Ct.useRef)();(0,Ct.useEffect)(()=>{Vt.current=ee}),(0,Ct.useEffect)(()=>{function fe(){Vt.current()}if(Ne!==null){let Ft=setInterval(fe,Ne);return()=>clearInterval(Ft)}},[Ne])}},44900:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ui}});var Ct=St(59301),It=St(42203),ee=St(57809),Ne=St(24645),Vt=St(78241),fe=St(8591),Ft=St(43418),ze=St(95237),we=St(43604),oe=St(71418),ve=St(92832),ye=St(88522),Re=St(3113),Tt=St(10148),et=St(51941),nt=St(49394),ht=St(58130),st=St(37470),gt=St(19842),vt=St(79999),wt=St(33130),Bt=St(60059),kt={flexRow:"flexRow___jGYtM",flexColumn:"flexColumn___NPMB3",formWrap:"formWrap___vwH9N",example:"example____BmJC",footerWrap:"footerWrap___lp1L0"},Ot=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,Ut=(ln,Te)=>{var Me={};for(var ie in ln)jt.call(ln,ie)&&Te.indexOf(ie)<0&&(Me[ie]=ln[ie]);if(ln!=null&&Ot)for(var ie of Ot(ln))Te.indexOf(ie)<0&&Xt.call(ln,ie)&&(Me[ie]=ln[ie]);return Me},de=(ln,Te,Me)=>new Promise((ie,Kt)=>{var Oe=qt=>{try{te(Me.next(qt))}catch(Dt){Kt(Dt)}},ke=qt=>{try{te(Me.throw(qt))}catch(Dt){Kt(Dt)}},te=qt=>qt.done?ie(qt.value):Promise.resolve(qt.value).then(Oe,ke);te((Me=Me.apply(ln,Te)).next())});const Gt=(ln,Te)=>Te.some(Me=>Me.label.toLowerCase().indexOf(ln.toLowerCase())>-1),Ve=ve.default.TextArea,me=ln=>{var Te=ln,{account:Me,globalSetting:ie,loading:Kt,dispatch:Oe,schoolName:ke,visible:te,onClose:qt=()=>{},onSuccess:Dt=()=>{}}=Te,xt=Ut(Te,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]);const[mt]=Vt.default.useForm();(0,Ct.useEffect)(()=>{mt.setFieldsValue({name:ke})},[ke]);const Mt=Rt=>de(void 0,null,function*(){const{name:Et,city:re=[],address:Qe,remarks:mn}=Rt||{},le=yield Oe({type:"account/appplySchool",payload:{name:Et,province:re[0],city:re[1],address:Qe,remarks:mn}});qt(),le&&(fe.ZP.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),Dt(Et))});return Ct.createElement(Ft.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:te,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},Ct.createElement(Vt.default,{className:kt.formWrap,form:mt,labelCol:{span:4},wrapperCol:{span:20},onFinish:Mt},Ct.createElement(Vt.default.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},Ct.createElement(ve.default,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),Ct.createElement("div",{className:`${kt.flexRow} ${kt.example}`},Ct.createElement("div",null,"\u793A\u4F8B\uFF1A"),Ct.createElement("div",{className:kt.flexColumn},Ct.createElement("div",null,Ct.createElement(vt.Z,{style:{color:"rgb(82, 196, 26)"}}),Ct.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),Ct.createElement("div",null,Ct.createElement(wt.Z,{style:{color:"red"}}),Ct.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),Ct.createElement(Vt.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},Ct.createElement(gt.Z,{allowClear:!0,size:"middle",options:Bt.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:Gt}})),Ct.createElement(Vt.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},Ct.createElement(ve.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),Ct.createElement(Vt.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},Ct.createElement(Ve,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),Ct.createElement("div",{className:kt.footerWrap},Ct.createElement(Vt.default.Item,null,Ct.createElement(Re.ZP,{className:"mr5",size:"middle",onClick:()=>{qt()}},"\u53D6\u6D88"),Ct.createElement(Re.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Kt["account/appplySchool"]},"\u4FDD\u5B58")))))};var sn=(0,It.connect)(({account:ln,loading:Te,globalSetting:Me})=>({account:ln,globalSetting:Me,loading:Te.effects}))(me),qe=St(99460),Ye=St(89392),je=St(59301),hn=Object.defineProperty,ge=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Ae=(ln,Te,Me)=>Te in ln?hn(ln,Te,{enumerable:!0,configurable:!0,writable:!0,value:Me}):ln[Te]=Me,Ue=(ln,Te)=>{for(var Me in Te||(Te={}))bn.call(Te,Me)&&Ae(ln,Me,Te[Me]);if(Ce)for(var Me of Ce(Te))yn.call(Te,Me)&&Ae(ln,Me,Te[Me]);return ln},Sn=(ln,Te)=>ge(ln,Ht(Te)),Xn=(ln,Te)=>{var Me={};for(var ie in ln)bn.call(ln,ie)&&Te.indexOf(ie)<0&&(Me[ie]=ln[ie]);if(ln!=null&&Ce)for(var ie of Ce(ln))Te.indexOf(ie)<0&&yn.call(ln,ie)&&(Me[ie]=ln[ie]);return Me},Pn=(ln,Te,Me)=>new Promise((ie,Kt)=>{var Oe=qt=>{try{te(Me.next(qt))}catch(Dt){Kt(Dt)}},ke=qt=>{try{te(Me.throw(qt))}catch(Dt){Kt(Dt)}},te=qt=>qt.done?ie(qt.value):Promise.resolve(qt.value).then(Oe,ke);te((Me=Me.apply(ln,Te)).next())});const Gn=ee.default.Option,Ee=Ne.default.Dragger;var Jn=(ln=>(ln[ln.Professor=1]="Professor",ln[ln.AssistantProfessor=2]="AssistantProfessor",ln[ln.Student=3]="Student",ln))(Jn||{});const ai=ln=>{var Te=ln,{user:Me,account:ie,globalSetting:Kt,loading:Oe,dispatch:ke,Scoid:te}=Te,qt=Xn(Te,["user","account","globalSetting","loading","dispatch","Scoid"]),Dt,xt;const[mt]=Vt.default.useForm(),[Mt,Rt]=(0,Ct.useState)({}),[Et,re]=(0,Ct.useState)([]),[Qe,mn]=(0,Ct.useState)([]),[le,Ge]=(0,Ct.useState)([]),[cn,Mn]=(0,Ct.useState)([]),[Zn,_n]=(0,Ct.useState)(),[di,ri]=(0,Ct.useState)(),[Fi,Zi]=(0,Ct.useState)(),[Vi,ji]=(0,Ct.useState)(),[qi,wo]=(0,Ct.useState)(),Ei=(0,Ct.useRef)((0,Ye.throttle)(he=>Po(he),1200,{leading:!0,trailing:!0})).current;(0,Ct.useEffect)(()=>{},[]),(0,Ct.useEffect)(()=>{Pn(void 0,null,function*(){if(!te)return;const he=yield ki(te);Ge(he==null?void 0:he.departments)})},[te]);const Po=he=>Pn(void 0,null,function*(){var _t,Ze;const tn=yield ke({type:"account/getSchoolOption",payload:{keyword:he,limit:10}});re(tn==null?void 0:tn.schools),he&&he!=""&&(mn((_t=tn==null?void 0:tn.schools)==null?void 0:_t.filter(Yt=>Yt.name.includes(he))),(((Ze=tn==null?void 0:tn.schools)==null?void 0:Ze.find(Yt=>Yt.name===he))||{}).id?hi(he,null,tn==null?void 0:tn.schools):(mt.setFieldsValue({department:""}),Rt(Ue(Ue({},Mt),{school:he,department:""}))))}),ki=he=>{if(he)return ke({type:"account/getDepartmentOption",payload:{id:he}})};(0,Ct.useEffect)(()=>{if(!ie.basicInfo)return;const{basicInfo:he}=ie,_t={identity:he.identity,school:he.school_name,department:he.department_name,studentNo:he.student_id,jobTitle:he.identity=="teacher"?he.technical_title:"\u6559\u6388",manager:he.identity=="professional"?he.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};mt.setFieldsValue(_t),Rt(_t)},[ie.basicInfo]);const Lt=()=>{ji(!0)},Mo=()=>{if(!Et.find(he=>he.name===Mt.school)){fe.ZP.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}wo(!0)},$i=he=>{Rt(Ue({},mt.getFieldsValue())),"school"in he&&(mn(Et.filter(Ze=>Ze.name.includes(he.school))),(Et.find(Ze=>Ze.name===he.school)||{}).id?hi(he.school):(mt.setFieldsValue({department:""}),Rt(Ue(Ue({},Mt),{school:he.school,department:""}))))},En=(he,_t)=>{if(ie.actionTabs.checkedList.includes(1)){Ft.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:je.createElement("div",{className:"tc"},_t||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${he}/students`}});return}window.location.href=`/classrooms/${he}/students`},hi=(he,_t,Ze)=>Pn(void 0,null,function*(){var tn,Se,Yt;const $e=(tn=(Ze||Et).find(en=>en.name===he))==null?void 0:tn.id,on=(yield ki($e))||{};Ge(on==null?void 0:on.departments);const zn=_t||((Yt=(Se=on==null?void 0:on.departments)==null?void 0:Se[0])==null?void 0:Yt.name);mt.setFieldsValue({department:zn}),Rt(Ue(Ue({},Mt),{school:he,department:zn}))}),gi=he=>Pn(void 0,null,function*(){yield Po(),mt.setFieldsValue({school:he,department:""}),Rt(Ue(Ue({},Mt),{school:he,department:""}))}),Pi=he=>{var _t;if(he.file.status==="uploading"){Zi(!0);return}he.file.status==="done"&&(console.log(he.file,he.file.response),ri((_t=he.file.response)==null?void 0:_t.id),(0,ht.y3)(he.file.originFileObj,Ze=>{_n(Ze),Zi(!1)}))},Rn=he=>Pn(void 0,null,function*(){var _t,Ze,tn,Se,Yt;const{school:$e,department:on,identity:zn,studentNo:en,jobTitle:xe,manager:vn}=he||{};if(!Zn){fe.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const Wn=(_t=Et.find(Ie=>Ie.name===$e))==null?void 0:_t.id,qn=(Ze=le.find(Ie=>Ie.name===on))==null?void 0:Ze.id;let We;zn==="student"?We=en:zn==="teacher"?We=xe:We=vn;const fn=yield ke({type:"account/applyProfessionalAuth",payload:{id:((tn=ie.basicInfo)==null?void 0:tn.id)||((Se=Me.userInfo)==null?void 0:Se.login),school_id:Wn,department_id:qn,identity:zn,extra:We,attachment_ids:[di]}});if(ie.actionTabs.code){let Ie=yield(0,qe.cR)({invite_code:ie.actionTabs.code,professor:ie.actionTabs.checkedList.includes(1)?1:null,assistant_professor:ie.actionTabs.checkedList.includes(2)?1:null,student:ie.actionTabs.checkedList.includes(3)?1:null});Ie.message==="\u52A0\u5165\u6210\u529F"&&(Ie!=null&&Ie.course_id?En(Ie.course_id,Ie.message):fe.ZP.success(Ie.message))}Le(),fn&&(fe.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),ke({type:"account/getBasicInfo",payload:{login:(Yt=Me.userInfo)==null?void 0:Yt.login}}))}),Le=()=>{ke({type:"account/setActionTabs",payload:{}})},Fe={data:{type:"professional"},multiple:!0,showUploadList:!1,action:`${Tt.Z.API_SERVER}/api/attachments.json`,className:nt.Z.uploader,onChange:Pi,beforeUpload:he=>{const _t=he.type==="image/jpeg"||he.type==="image/png"||he.type==="image/jpg"||he.type==="image/bmp";return _t||fe.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),_t}};return je.createElement(Ft.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:nt.Z.modal,open:ie.actionTabs.key==="Account-ProfessionalAuth",title:je.createElement(ze.Z,{style:{padding:"25px"},align:"middle",justify:"space-between"},je.createElement(we.Z,null,"\u804C\u4E1A\u8BA4\u8BC1"),je.createElement(we.Z,null,je.createElement("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:Le}))),width:"660px",footer:null},je.createElement(oe.Z,{spinning:!!Fi},je.createElement(Vt.default,{className:nt.Z.formWrap,form:mt,colon:!1,onValuesChange:$i,onFinish:Rn},je.createElement(ze.Z,{gutter:[10,0]},je.createElement(we.Z,{flex:"300px"},je.createElement(Vt.default.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},je.createElement(ee.default,null,je.createElement(Gn,{value:"teacher"},"\u6559\u5E08"),je.createElement(Gn,{value:"student"},"\u5B66\u751F"),je.createElement(Gn,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),Mt.identity==="student"&&je.createElement(we.Z,{flex:"200px"},je.createElement(Vt.default.Item,{initialValue:Mt.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},je.createElement(ve.default,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),Mt.identity==="teacher"&&je.createElement(we.Z,{flex:"200px"},je.createElement(Vt.default.Item,{initialValue:Mt.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},je.createElement(ee.default,null,je.createElement(Gn,{value:"\u6559\u6388"},"\u6559\u6388"),je.createElement(Gn,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),je.createElement(Gn,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),je.createElement(Gn,{value:"\u52A9\u6559"},"\u52A9\u6559")))),Mt.identity==="professional"&&je.createElement(we.Z,{flex:"200px"},je.createElement(Vt.default.Item,{initialValue:Mt.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},je.createElement(ee.default,null,je.createElement(Gn,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),je.createElement(Gn,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),je.createElement(Gn,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),je.createElement(Gn,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),je.createElement(Gn,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),je.createElement(Vt.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:Mt.school&&!(Et!=null&&Et.find(he=>he.name===Mt.school))&&je.createElement("div",{className:nt.Z.schoolHintWrap},je.createElement("span",{className:nt.Z.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",Mt.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),je.createElement("span",{className:`${nt.Z.color0152d9} current`,onClick:Lt},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},je.createElement(ye.Z,{showSearch:!0,onSearch:Ei,options:Qe==null?void 0:Qe.map(he=>({value:he.name}))})),je.createElement(Vt.default.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:Mt.department&&!(le!=null&&le.find(he=>he.name===Mt.department))&&je.createElement("div",{className:nt.Z.schoolHintWrap},je.createElement("span",{className:nt.Z.colorCDCDCD},Mt.department?`\u672A\u627E\u5230\u5305\u542B\u201C${Mt.department}\u201D\u7684\u9AD8\u6821\uFF0C`:"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),je.createElement("span",{className:`${nt.Z.color0152d9} current`,onClick:Mo},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},je.createElement(ye.Z,{showSearch:!0,onChange:he=>Mn(le.filter(_t=>_t.name.includes(he))),options:cn==null?void 0:cn.map(he=>({value:he.name}))})),je.createElement(Vt.default.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},je.createElement("div",{className:nt.Z.flexRow},je.createElement("div",{className:nt.Z.flexColumn},je.createElement(Ee,Sn(Ue({},Fe),{accept:".png,.jpg,.bmp,.jpeg"}),Zn?je.createElement("img",{src:Zn,className:nt.Z.uploadImg}):je.createElement("div",{className:nt.Z.imageTip},je.createElement("p",null,je.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${nt.Z.uploadTipIcon}`})),je.createElement("p",{className:nt.Z.uploadTip},je.createElement("a",{className:nt.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),je.createElement("span",{className:"tc"},je.createElement("p",{className:nt.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))),je.createElement("div",{className:`${nt.Z.flexColumn} ${nt.Z.example}`},je.createElement("span",{className:nt.Z.exampleImg},je.createElement("img",{src:et})),je.createElement("span",{className:"tc"},je.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),je.createElement("p",{className:`${nt.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))))),je.createElement("div",{className:nt.Z.footerWrap},je.createElement(Vt.default.Item,null,je.createElement(Re.ZP,{className:"mr5",size:"middle",onClick:Le},"\u53D6\u6D88"),je.createElement(Re.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Oe["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),je.createElement("div",{className:nt.Z.note},je.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),je.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),je.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),je.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),je.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),je.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),je.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!((Dt=Kt==null?void 0:Kt.setting)!=null&&Dt.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),je.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),je.createElement(sn,{visible:Vi,onClose:()=>ji(!1),schoolName:Mt.school,onSuccess:gi}),je.createElement(st.Z,{visible:qi,onClose:()=>wo(!1),schoolId:(xt=Et.find(he=>he.name===Mt.school))==null?void 0:xt.id,schoolName:Mt.school,departmentName:Mt.department,onSuccess:he=>hi(Mt.school,he)}))};var ui=(0,It.connect)(({user:ln,account:Te,loading:Me,globalSetting:ie})=>({user:ln,account:Te,globalSetting:ie,loading:Me.effects}))(ai)},60059:function(Dn,An,St){"use strict";St.d(An,{P:function(){return Ct}});const Ct=[{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"}]}]},31087:function(Dn,An,St){"use strict";St.d(An,{AL:function(){return wt},Iy:function(){return ve},Qv:function(){return Tt},ez:function(){return vt},jb:function(){return ye}});var Ct=St(32834),It=St.n(Ct),ee=St(11690),Ne=St.n(ee);let Vt=1;function fe(Xt,Ut){const de=Xt.match(/^(\s+)(?:```)/);if(de===null)return Ut;const Gt=de[1];return Ut.split(`
|
|
|
`).map(Ve=>{const me=Ve.match(/^\s+/);if(me===null)return Ve;const[sn]=me;return sn.length>=Gt.length?Ve.slice(Gt.length):Ve}).join(`
|
|
|
`)}let Ft=[],ze=["<ul>"];const we=new(It()).Renderer,oe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ve(){Ft.length=0,ze=["<ul>"]}const ye={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Re(Xt,Ut,de,Gt){if(Ut>=Xt.length||Xt[Ut].level<=de)return Ut;var Ve=Xt[Ut];Gt.push("<li><a href='#"+Vt+Ve.anchor+"'>"+Ve.text+"</a>"),Ut++;var me=[];return Ut=Re(Xt,Ut,Ve.level,me),me.length>0&&(Gt.push("<ul>"),me.forEach(function(sn){Gt.push(sn)}),Gt.push("</ul>")),Gt.push("</li>"),Ut=Re(Xt,Ut,de,Gt),Ut}function Tt(){return Re(Ft,0,0,ze),ze.push("</ul>"),ze.join("")}const et={heading(Xt){const Ut=oe.exec(Xt);if(Vt+=1,Ut)return{type:"heading",raw:Ut[0],depth:Ut[1].length,text:Ut[2]}},fences(Xt){const Ut=this.rules.block.fences.exec(Xt);if(Ut){const de=Ut[0];let Gt=fe(de,Ut[3]||"");const Ve=Ut[2]?Ut[2].trim():Ut[2];if(["latex","katex","math"].indexOf(Ve)>=0){const me=st(),sn=Gt;Gt=me,gt[me]={type:"block",expression:sn}}return{type:"code",raw:de,lang:Ve,text:Gt}}}},nt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ht=0;const st=()=>`__special_katext_id_${ht++}__`;let gt={};function vt(){return gt}function wt(){ht=0,gt={}}function Bt(Xt){return Xt=Xt.replace(nt,(Ut,de)=>{const Gt=st();return gt[Gt]={type:"inline",expression:de},Gt}),Xt}const kt=we.listitem;we.listitem=function(Xt){return kt(Bt(Xt))};const Ot=we.paragraph;we.paragraph=function(Xt){return Ot(Bt(Xt))};const jt=we.tablecell;we.tablecell=function(Xt,Ut){return jt(Bt(Xt),Ut)},we.code=function(Xt,Ut,de){const Gt=(Ut||"").match(/\S*/)[0];return Gt?["latex","katex","math"].indexOf(Gt)>=0?`<p class='editormd-tex'>${Xt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ut}">${de?Xt:(0,ee.escape)(Xt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(de?Xt:(0,ee.escape)(Xt,!0))+"</code></pre>"},we.heading=function(Xt,Ut,de){let Gt=this.options.headerPrefix+de.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ft.push({anchor:Gt,level:Ut,text:Xt}),"<h"+Ut+' id="'+Vt+Gt+'">'+Xt+"</h"+Ut+">"},It().setOptions({silent:!0,gfm:!0,pedantic:!1}),It().use({tokenizer:et,renderer:we}),An.ZP=It()},18032:function(Dn,An,St){"use strict";St.d(An,{rX:function(){return wt},pW:function(){return Bt},gy:function(){return kt},xY:function(){return vt},O5:function(){return gt},tJ:function(){return Tt},o1:function(){return et},Rd:function(){return st}});var Ct=St(42203),It=St(43418),ee=St(28103),Ne=St(8591),Vt=St(2119),fe=St(58130),Ft=St(80205),ze=St(25510),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAX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WydjIHgCAsAyEBgAQAZCCwAIAOBBQBkILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",oe=St.p+"static/newqrcode.a8740efb.png",ve=St(32637),ye=St(59301),Re=(Ot,jt,Xt)=>new Promise((Ut,de)=>{var Gt=sn=>{try{me(Xt.next(sn))}catch(qe){de(qe)}},Ve=sn=>{try{me(Xt.throw(sn))}catch(qe){de(qe)}},me=sn=>sn.done?Ut(sn.value):Promise.resolve(sn.value).then(Gt,Ve);me((Xt=Xt.apply(Ot,jt)).next())});const Tt=(Ot,jt=!1)=>!!(et(Ot)&&nt(jt)),et=Ot=>(0,Vt.bg)()?!0:(Ot({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),nt=(Ot=!1)=>{var jt;const{user:Xt}=(0,Ct.getDvaApp)()._store.getState();return(jt=Xt.userInfo)!=null&&jt.profile_completed?!0:(It.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,fe.xg)("/account/profile/edit"),ht()}}),!1)},ht=()=>{It.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},st=()=>{It.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:ye.createElement("div",{style:{textAlign:"center"}},ye.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),ye.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:ve}),ye.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},gt=()=>{var Ot;const{user:jt}=(0,Ct.getDvaApp)()._store.getState();return(Ot=jt.userInfo)!=null&&Ot.professional_certification?!0:(It.default.confirm({title:"\u63D0\u793A",centered:!0,content:ye.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,fe.xg)("/account/certification")}}),!1)},vt=()=>(0,Vt.V9)()?!0:(It.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:ye.createElement("div",{className:"tc",style:{marginLeft:-38}},ye.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),ye.createElement("img",{src:oe,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),wt=(Ot,jt)=>Ot?!0:(It.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:ye.createElement("div",null,ye.createElement("p",null,jt||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),ye.createElement("div",{style:{marginLeft:"110px"}},ye.createElement("img",{src:we,width:200}),ye.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,fe.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Bt=Ot=>{It.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:ye.createElement("div",null,ye.createElement("div",null,ye.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),ye.createElement(ee.Z,null),ye.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ye.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",ye.createElement("a",null,Ot),"\u5929\u3002"),ye.createElement("p",{style:{color:"#666666",fontSize:12}}," ",ye.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),ye.createElement("div",{style:{textAlign:"center",marginTop:30}},ye.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:ze,alt:"\u4E8C\u7EF4\u7801",width:160})))})},kt=(Ot,jt="")=>{const{shixunsDetail:{detail:Xt}}=(0,Ct.getDvaApp)()._store.getState();if((Xt==null?void 0:Xt.public)===2||(Xt==null?void 0:Xt.public)===1||(Xt==null?void 0:Xt.shixun_status)===3){let Ut="";return(Xt==null?void 0:Xt.public)===2&&(Ut="\u5DF2\u516C\u5F00"),(Xt==null?void 0:Xt.public)===1&&(Ut="\u5F85\u5BA1\u6838"),(Xt==null?void 0:Xt.shixun_status)===3&&(Ut="\u5DF2\u5173\u95ED"),It.default.info({centered:!0,icon:ye.createElement(Ft.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:ye.createElement("div",{className:"tc",style:{marginLeft:-38}},ye.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},ye.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Ut,"\uFF0C",jt,"\u3002"),ye.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),ye.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:ze,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Xt==null?void 0:Xt.shixun_status)===2?(It.default.confirm({centered:!0,icon:ye.createElement(Ft.Z,null),title:"\u63D0\u793A",content:ye.createElement("div",null,ye.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",jt,"\u3002"),ye.createElement("br",null),ye.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{It.default.confirm({width:440,centered:!0,icon:ye.createElement(Ft.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Re(void 0,null,function*(){(yield Ot({type:"shixunsDetail/cancelRelease",payload:{id:Xt==null?void 0:Xt.identifier}})).status!==401&&(Ne.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Ot({type:"shixunsDetail/getShixunsDetail",payload:{id:Xt==null?void 0:Xt.identifier}}),Ot({type:"practiceSetting/getCommonData",payload:{id:Xt==null?void 0:Xt.identifier}}))})})}}),!0):!1}},50371:function(Dn,An){"use strict";function St(){const Ct=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let It=1;It<arguments.length;It++){const ee=It<0||arguments.length<=It?void 0:arguments[It];ee&&Object.keys(ee).forEach(Ne=>{const Vt=ee[Ne];Vt!==void 0&&(Ct[Ne]=Vt)})}return Ct}An.Z=St},13845:function(Dn,An,St){"use strict";St.d(An,{F:function(){return Ct},Z:function(){return It}});function Ct(ee){return ee!=null&&ee===ee.window}function It(ee,Ne){var Vt,fe;if(typeof window=="undefined")return 0;const Ft=Ne?"scrollTop":"scrollLeft";let ze=0;return Ct(ee)?ze=ee[Ne?"pageYOffset":"pageXOffset"]:ee instanceof Document?ze=ee.documentElement[Ft]:(ee instanceof HTMLElement||ee)&&(ze=ee[Ft]),ee&&!Ct(ee)&&typeof ze!="number"&&(ze=(fe=((Vt=ee.ownerDocument)!==null&&Vt!==void 0?Vt:ee).documentElement)===null||fe===void 0?void 0:fe[Ft]),ze}},56762:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return It}});var Ct=St(59301);function It(){const[,ee]=Ct.useReducer(Ne=>Ne+1,0);return ee}},68031:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return Ne}});var Ct=St(23073);function It(Vt,fe,Ft,ze){const we=Ft-fe;return Vt/=ze/2,Vt<1?we/2*Vt*Vt*Vt+fe:we/2*((Vt-=2)*Vt*Vt+2)+fe}var ee=St(13845);function Ne(Vt){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ft=()=>window,callback:ze,duration:we=450}=fe,oe=Ft(),ve=(0,ee.Z)(oe,!0),ye=Date.now(),Re=()=>{const et=Date.now()-ye,nt=It(et>we?we:et,ve,Vt,we);(0,ee.F)(oe)?oe.scrollTo(window.pageXOffset,nt):oe instanceof Document||oe.constructor.name==="HTMLDocument"?oe.documentElement.scrollTop=nt:oe.scrollTop=nt,et<we?(0,Ct.Z)(Re):typeof ze=="function"&&ze()};(0,Ct.Z)(Re)}},88522:function(Dn,An,St){"use strict";var Ct=St(92310),It=St.n(Ct),ee=St(38298),Ne=St(64002),Vt=St(59301),fe=St(53487),Ft=St(92343),ze=St(36355),we=St(57809);const{Option:oe}=we.default;function ve(et){return et&&et.type&&(et.type.isSelectOption||et.type.isSelectOptGroup)}const ye=(et,nt)=>{const{prefixCls:ht,className:st,popupClassName:gt,dropdownClassName:vt,children:wt,dataSource:Bt}=et,kt=(0,ee.Z)(wt);let Ot;kt.length===1&&(0,Ft.l$)(kt[0])&&!ve(kt[0])&&([Ot]=kt);const jt=Ot?()=>Ot:void 0;let Xt;kt.length&&ve(kt[0])?Xt=wt:Xt=Bt?Bt.map(Gt=>{if((0,Ft.l$)(Gt))return Gt;switch(typeof Gt){case"string":return Vt.createElement(oe,{key:Gt,value:Gt},Gt);case"object":{const{value:Ve}=Gt;return Vt.createElement(oe,{key:Ve,value:Ve},Gt.text)}default:return}}):[];const{getPrefixCls:Ut}=Vt.useContext(ze.E_),de=Ut("select",ht);return Vt.createElement(we.default,Object.assign({ref:nt,suffixIcon:null},(0,Ne.Z)(et,["dataSource","dropdownClassName"]),{prefixCls:de,popupClassName:gt||vt,className:It()(`${de}-auto-complete`,st),mode:we.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:jt}),Xt)},Re=Vt.forwardRef(ye),Tt=(0,fe.Z)(Re);Re.Option=oe,Re._InternalPanelDoNotUseOrYouWillBeFired=Tt,An.Z=Re},19842:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return $i}});var Ct=St(26390),It=St(59301),ee=St(16537),Ne=St(50023),Vt=St(53878),fe=St(92310),Ft=St.n(fe),ze=St(5891),we=St(29043),oe=St(19149),ve=St(77861),ye=St(17115),Re=St(90782),Tt=St(8107),et=St(35788),nt=It.createContext(null),ht=nt,st=St(80665),gt=St(80962),vt=St(57259),wt="__rc_cascader_search_mark__",Bt=function(hi,gi,Pi){var Rn=Pi.label;return gi.some(function(Le){return String(Le[Rn]).toLowerCase().includes(hi.toLowerCase())})},kt=function(hi,gi,Pi,Rn){return gi.map(function(Le){return Le[Rn.label]}).join(" / ")},Ot=function(En,hi,gi,Pi,Rn,Le){var Fe=Rn.filter,he=Fe===void 0?Bt:Fe,_t=Rn.render,Ze=_t===void 0?kt:_t,tn=Rn.limit,Se=tn===void 0?50:tn,Yt=Rn.sort;return It.useMemo(function(){var $e=[];if(!En)return[];function on(zn,en){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;zn.forEach(function(vn){if(!(!Yt&&Se!==!1&&Se>0&&$e.length>=Se)){var Wn=[].concat((0,Ct.Z)(en),[vn]),qn=vn[gi.children],We=xe||vn.disabled;if((!qn||qn.length===0||Le)&&he(En,Wn,{label:gi.label})){var fn;$e.push((0,vt.Z)((0,vt.Z)({},vn),{},(fn={disabled:We},(0,gt.Z)(fn,gi.label,Ze(En,Wn,Pi,gi)),(0,gt.Z)(fn,wt,Wn),(0,gt.Z)(fn,gi.children,void 0),fn)))}qn&&on(vn[gi.children],Wn,We)}})}return on(hi,[]),Yt&&$e.sort(function(zn,en){return Yt(zn[wt],en[wt],En,gi)}),Se!==!1&&Se>0?$e.slice(0,Se):$e},[En,hi,gi,Pi,Ze,Le,he,Yt,Se])},jt="__RC_CASCADER_SPLIT__",Xt="SHOW_PARENT",Ut="SHOW_CHILD";function de(En){return En.join(jt)}function Gt(En){return En.map(de)}function Ve(En){return En.split(jt)}function me(En){var hi=En||{},gi=hi.label,Pi=hi.value,Rn=hi.children,Le=Pi||"value";return{label:gi||"label",value:Le,key:Le,children:Rn||"children"}}function sn(En,hi){var gi,Pi;return(gi=En.isLeaf)!==null&&gi!==void 0?gi:!((Pi=En[hi.children])!==null&&Pi!==void 0&&Pi.length)}function qe(En){var hi=En.parentElement;if(hi){var gi=En.offsetTop-hi.offsetTop;gi-hi.scrollTop<0?hi.scrollTo({top:gi}):gi+En.offsetHeight-hi.scrollTop>hi.offsetHeight&&hi.scrollTo({top:gi+En.offsetHeight-hi.offsetHeight})}}function Ye(En,hi){return En.map(function(gi){var Pi;return(Pi=gi[wt])===null||Pi===void 0?void 0:Pi.map(function(Rn){return Rn[hi.value]})})}function je(En,hi,gi){var Pi=new Set(En),Rn=hi();return En.filter(function(Le){var Fe=Rn[Le],he=Fe?Fe.parent:null,_t=Fe?Fe.children:null;return Fe&&Fe.node.disabled?!0:gi===Ut?!(_t&&_t.some(function(Ze){return Ze.key&&Pi.has(Ze.key)})):!(he&&!he.node.disabled&&Pi.has(he.key))})}function hn(En,hi,gi){for(var Pi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Rn=hi,Le=[],Fe=function(){var Ze,tn,Se,Yt=En[he],$e=(Ze=Rn)===null||Ze===void 0?void 0:Ze.findIndex(function(zn){var en=zn[gi.value];return Pi?String(en)===String(Yt):en===Yt}),on=$e!==-1?(tn=Rn)===null||tn===void 0?void 0:tn[$e]:null;Le.push({value:(Se=on==null?void 0:on[gi.value])!==null&&Se!==void 0?Se:Yt,index:$e,option:on}),Rn=on==null?void 0:on[gi.children]},he=0;he<En.length;he+=1)Fe();return Le}var ge=function(En,hi,gi,Pi,Rn){return It.useMemo(function(){var Le=Rn||function(Fe){var he=Pi?Fe.slice(-1):Fe,_t=" / ";return he.every(function(Ze){return["string","number"].includes((0,st.Z)(Ze))})?he.join(_t):he.reduce(function(Ze,tn,Se){var Yt=It.isValidElement(tn)?It.cloneElement(tn,{key:Se}):tn;return Se===0?[Yt]:[].concat((0,Ct.Z)(Ze),[_t,Yt])},[])};return En.map(function(Fe){var he,_t,Ze=hn(Fe,hi,gi),tn=Le(Ze.map(function(Yt){var $e,on=Yt.option,zn=Yt.value;return($e=on==null?void 0:on[gi.label])!==null&&$e!==void 0?$e:zn}),Ze.map(function(Yt){var $e=Yt.option;return $e})),Se=de(Fe);return{label:tn,value:Se,key:Se,valueCells:Fe,disabled:(he=Ze[Ze.length-1])===null||he===void 0||(_t=he.option)===null||_t===void 0?void 0:_t.disabled}})},[En,hi,gi,Rn,Pi])},Ht=St(71430),Ce=function(En,hi){var gi=It.useRef({options:null,info:null}),Pi=It.useCallback(function(){return gi.current.options!==En&&(gi.current.options=En,gi.current.info=(0,Ht.I8)(En,{fieldNames:hi,initWrapper:function(Le){return(0,vt.Z)((0,vt.Z)({},Le),{},{pathKeyEntities:{}})},processEntity:function(Le,Fe){var he=Le.nodes.map(function(_t){return _t[hi.value]}).join(jt);Fe.pathKeyEntities[he]=Le,Le.key=he}})),gi.current.info.pathKeyEntities},[hi,En]);return Pi},bn=function(En,hi){return It.useCallback(function(gi){var Pi=[],Rn=[];return gi.forEach(function(Le){var Fe=hn(Le,En,hi);Fe.every(function(he){return he.option})?Rn.push(Le):Pi.push(Le)}),[Rn,Pi]},[En,hi])},yn=St(51395);function Ae(En){return It.useMemo(function(){if(!En)return[!1,{}];var hi={matchInputWidth:!0,limit:50};return En&&(0,st.Z)(En)==="object"&&(hi=(0,vt.Z)((0,vt.Z)({},hi),En)),hi.limit<=0&&delete hi.limit,[!0,hi]},[En])}var Ue=It.memo(function(En){var hi=En.children;return hi},function(En,hi){return!hi.open}),Sn=Ue;function Xn(En){var hi,gi=En.prefixCls,Pi=En.checked,Rn=En.halfChecked,Le=En.disabled,Fe=En.onClick,he=En.disableCheckbox,_t=It.useContext(ht),Ze=_t.checkable,tn=typeof Ze!="boolean"?Ze:null;return It.createElement("span",{className:Ft()("".concat(gi),(hi={},(0,gt.Z)(hi,"".concat(gi,"-checked"),Pi),(0,gt.Z)(hi,"".concat(gi,"-indeterminate"),!Pi&&Rn),(0,gt.Z)(hi,"".concat(gi,"-disabled"),Le||he),hi)),onClick:Fe},tn)}var Pn="__cascader_fix_label__";function Gn(En){var hi=En.prefixCls,gi=En.multiple,Pi=En.options,Rn=En.activeValue,Le=En.prevValuePath,Fe=En.onToggleOpen,he=En.onSelect,_t=En.onActive,Ze=En.checkedSet,tn=En.halfCheckedSet,Se=En.loadingKeys,Yt=En.isSelectable,$e=En.searchValue,on="".concat(hi,"-menu"),zn="".concat(hi,"-menu-item"),en=It.useContext(ht),xe=en.fieldNames,vn=en.changeOnSelect,Wn=en.expandTrigger,qn=en.expandIcon,We=en.loadingIcon,fn=en.dropdownMenuColumnStyle,Ie=Wn==="hover",an=It.useMemo(function(){return Pi.map(function(_e){var rn,pn=_e.disabled,Cn=_e.disableCheckbox,kn=_e[wt],In=(rn=_e[Pn])!==null&&rn!==void 0?rn:_e[xe.label],wn=_e[xe.value],Kn=sn(_e,xe),Ci=kn?kn.map(function(Si){return Si[xe.value]}):[].concat((0,Ct.Z)(Le),[wn]),Wi=de(Ci),Li=Se.includes(Wi),Be=Ze.has(Wi),ei=tn.has(Wi);return{disabled:pn,label:In,value:wn,isLeaf:Kn,isLoading:Li,checked:Be,halfChecked:ei,option:_e,disableCheckbox:Cn,fullPath:Ci,fullPathKey:Wi}})},[Pi,Ze,xe,tn,Se,Le]);return It.createElement("ul",{className:on,role:"menu"},an.map(function(_e){var rn,pn=_e.disabled,Cn=_e.label,kn=_e.value,In=_e.isLeaf,wn=_e.isLoading,Kn=_e.checked,Ci=_e.halfChecked,Wi=_e.option,Li=_e.fullPath,Be=_e.fullPathKey,ei=_e.disableCheckbox,Si=function(){if(!(pn||$e)){var Ui=(0,Ct.Z)(Li);Ie&&In&&Ui.pop(),_t(Ui)}},ci=function(){Yt(Wi)&&he(Li,In)},Hi;return typeof Wi.title=="string"?Hi=Wi.title:typeof Cn=="string"&&(Hi=Cn),It.createElement("li",{key:Be,className:Ft()(zn,(rn={},(0,gt.Z)(rn,"".concat(zn,"-expand"),!In),(0,gt.Z)(rn,"".concat(zn,"-active"),Rn===kn||Rn===Be),(0,gt.Z)(rn,"".concat(zn,"-disabled"),pn),(0,gt.Z)(rn,"".concat(zn,"-loading"),wn),rn)),style:fn,role:"menuitemcheckbox",title:Hi,"aria-checked":Kn,"data-path-key":Be,onClick:function(){Si(),!ei&&(!gi||In)&&ci()},onDoubleClick:function(){vn&&Fe(!1)},onMouseEnter:function(){Ie&&Si()},onMouseDown:function(Ui){Ui.preventDefault()}},gi&&It.createElement(Xn,{prefixCls:"".concat(hi,"-checkbox"),checked:Kn,halfChecked:Ci,disabled:pn||ei,disableCheckbox:ei,onClick:function(Ui){ei||(Ui.stopPropagation(),ci())}}),It.createElement("div",{className:"".concat(zn,"-content")},Cn),!wn&&qn&&!In&&It.createElement("div",{className:"".concat(zn,"-expand-icon")},qn),wn&&We&&It.createElement("div",{className:"".concat(zn,"-loading-icon")},We))}))}var Ee=function(){var En=(0,ve.lk)(),hi=En.multiple,gi=En.open,Pi=It.useContext(ht),Rn=Pi.values,Le=It.useState([]),Fe=(0,we.Z)(Le,2),he=Fe[0],_t=Fe[1];return It.useEffect(function(){if(gi&&!hi){var Ze=Rn[0];_t(Ze||[])}},[gi]),[he,_t]},Jn=St(85108),ai=function(En,hi,gi,Pi,Rn,Le){var Fe=(0,ve.lk)(),he=Fe.direction,_t=Fe.searchValue,Ze=Fe.toggleOpen,tn=Fe.open,Se=he==="rtl",Yt=It.useMemo(function(){for(var fn=-1,Ie=hi,an=[],_e=[],rn=Pi.length,pn=Ye(hi,gi),Cn=function(Wi){var Li=Ie.findIndex(function(Be,ei){return(pn[ei]?de(pn[ei]):Be[gi.value])===Pi[Wi]});if(Li===-1)return"break";fn=Li,an.push(fn),_e.push(Pi[Wi]),Ie=Ie[fn][gi.children]},kn=0;kn<rn&&Ie;kn+=1){var In=Cn(kn);if(In==="break")break}for(var wn=hi,Kn=0;Kn<an.length-1;Kn+=1)wn=wn[an[Kn]][gi.children];return[_e,fn,wn,pn]},[Pi,gi,hi]),$e=(0,we.Z)(Yt,4),on=$e[0],zn=$e[1],en=$e[2],xe=$e[3],vn=function(Ie){Rn(Ie)},Wn=function(Ie){var an=en.length,_e=zn;_e===-1&&Ie<0&&(_e=an);for(var rn=0;rn<an;rn+=1){_e=(_e+Ie+an)%an;var pn=en[_e];if(pn&&!pn.disabled){var Cn=on.slice(0,-1).concat(xe[_e]?de(xe[_e]):pn[gi.value]);vn(Cn);return}}},qn=function(){if(on.length>1){var Ie=on.slice(0,-1);vn(Ie)}else Ze(!1)},We=function(){var Ie,an=((Ie=en[zn])===null||Ie===void 0?void 0:Ie[gi.children])||[],_e=an.find(function(pn){return!pn.disabled});if(_e){var rn=[].concat((0,Ct.Z)(on),[_e[gi.value]]);vn(rn)}};It.useImperativeHandle(En,function(){return{onKeyDown:function(Ie){var an=Ie.which;switch(an){case Jn.Z.UP:case Jn.Z.DOWN:{var _e=0;an===Jn.Z.UP?_e=-1:an===Jn.Z.DOWN&&(_e=1),_e!==0&&Wn(_e);break}case Jn.Z.LEFT:{if(_t)break;Se?We():qn();break}case Jn.Z.RIGHT:{if(_t)break;Se?qn():We();break}case Jn.Z.BACKSPACE:{_t||qn();break}case Jn.Z.ENTER:{if(on.length){var rn=en[zn],pn=(rn==null?void 0:rn[wt])||[];pn.length?Le(pn.map(function(Cn){return Cn[gi.value]}),pn[pn.length-1]):Le(on,en[zn])}break}case Jn.Z.ESC:Ze(!1),tn&&Ie.stopPropagation()}},onKeyUp:function(){}}})},ui=It.forwardRef(function(En,hi){var gi,Pi,Rn,Le,Fe=(0,ve.lk)(),he=Fe.prefixCls,_t=Fe.multiple,Ze=Fe.searchValue,tn=Fe.toggleOpen,Se=Fe.notFoundContent,Yt=Fe.direction,$e=Fe.open,on=It.useRef(),zn=Yt==="rtl",en=It.useContext(ht),xe=en.options,vn=en.values,Wn=en.halfValues,qn=en.fieldNames,We=en.changeOnSelect,fn=en.onSelect,Ie=en.searchOptions,an=en.dropdownPrefixCls,_e=en.loadData,rn=en.expandTrigger,pn=an||he,Cn=It.useState([]),kn=(0,we.Z)(Cn,2),In=kn[0],wn=kn[1],Kn=function(Yi){if(!(!_e||Ze)){var nr=hn(Yi,xe,qn),Bo=nr.map(function(bo){var Do=bo.option;return Do}),Ti=Bo[Bo.length-1];if(Ti&&!sn(Ti,qn)){var Oi=de(Yi);wn(function(bo){return[].concat((0,Ct.Z)(bo),[Oi])}),_e(Bo)}}};It.useEffect(function(){In.length&&In.forEach(function(Go){var Yi=Ve(Go),nr=hn(Yi,xe,qn,!0).map(function(Ti){var Oi=Ti.option;return Oi}),Bo=nr[nr.length-1];(!Bo||Bo[qn.children]||sn(Bo,qn))&&wn(function(Ti){return Ti.filter(function(Oi){return Oi!==Go})})})},[xe,In,qn]);var Ci=It.useMemo(function(){return new Set(Gt(vn))},[vn]),Wi=It.useMemo(function(){return new Set(Gt(Wn))},[Wn]),Li=Ee(),Be=(0,we.Z)(Li,2),ei=Be[0],Si=Be[1],ci=function(Yi){Si(Yi),Kn(Yi)},Hi=function(Yi){var nr=Yi.disabled,Bo=sn(Yi,qn);return!nr&&(Bo||We||_t)},Ni=function(Yi,nr){var Bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;fn(Yi),!_t&&(nr||We&&(rn==="hover"||Bo))&&tn(!1)},Ui=It.useMemo(function(){return Ze?Ie:xe},[Ze,Ie,xe]),Ii=It.useMemo(function(){for(var Go=[{options:Ui}],Yi=Ui,nr=Ye(Yi,qn),Bo=function(){var Do=ei[Ti],si=Yi.find(function(Co,xr){return(nr[xr]?de(nr[xr]):Co[qn.value])===Do}),Zt=si==null?void 0:si[qn.children];if(!(Zt!=null&&Zt.length))return"break";Yi=Zt,Go.push({options:Zt})},Ti=0;Ti<ei.length;Ti+=1){var Oi=Bo();if(Oi==="break")break}return Go},[Ui,ei,qn]),bi=function(Yi,nr){Hi(nr)&&Ni(Yi,sn(nr,qn),!0)};ai(hi,Ui,qn,ei,ci,bi),It.useEffect(function(){for(var Go=0;Go<ei.length;Go+=1){var Yi,nr=ei.slice(0,Go+1),Bo=de(nr),Ti=(Yi=on.current)===null||Yi===void 0?void 0:Yi.querySelector('li[data-path-key="'.concat(Bo.replace(/\\{0,2}"/g,'\\"'),'"]'));Ti&&qe(Ti)}},[ei]);var eo=!((gi=Ii[0])!==null&&gi!==void 0&&(Pi=gi.options)!==null&&Pi!==void 0&&Pi.length),xn=[(Rn={},(0,gt.Z)(Rn,qn.value,"__EMPTY__"),(0,gt.Z)(Rn,Pn,Se),(0,gt.Z)(Rn,"disabled",!0),Rn)],Fo=(0,vt.Z)((0,vt.Z)({},En),{},{multiple:!eo&&_t,onSelect:Ni,onActive:ci,onToggleOpen:tn,checkedSet:Ci,halfCheckedSet:Wi,loadingKeys:In,isSelectable:Hi}),Ln=eo?[{options:xn}]:Ii,po=Ln.map(function(Go,Yi){var nr=ei.slice(0,Yi),Bo=ei[Yi];return It.createElement(Gn,(0,ze.Z)({key:Yi},Fo,{searchValue:Ze,prefixCls:pn,options:Go.options,prevValuePath:nr,activeValue:Bo}))});return It.createElement(Sn,{open:$e},It.createElement("div",{className:Ft()("".concat(pn,"-menus"),(Le={},(0,gt.Z)(Le,"".concat(pn,"-menu-empty"),eo),(0,gt.Z)(Le,"".concat(pn,"-rtl"),zn),Le)),ref:on},po))}),ln=ui;function Te(En){var hi=En.onPopupVisibleChange,gi=En.popupVisible,Pi=En.popupClassName,Rn=En.popupPlacement;warning(!hi,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(gi===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Pi===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Rn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Me(En,hi){if(En){var gi=function Pi(Rn){for(var Le=0;Le<Rn.length;Le++){var Fe=Rn[Le];if(Fe[hi==null?void 0:hi.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Fe[hi==null?void 0:hi.children])&&Pi(Fe[hi==null?void 0:hi.children]))return!0}};gi(En)}}var ie=null,Kt=["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 Oe(En){return Array.isArray(En)&&Array.isArray(En[0])}function ke(En){return En?Oe(En)?En:(En.length===0?[]:[En]).map(function(hi){return Array.isArray(hi)?hi:[hi]}):[]}var te=It.forwardRef(function(En,hi){var gi=En.id,Pi=En.prefixCls,Rn=Pi===void 0?"rc-cascader":Pi,Le=En.fieldNames,Fe=En.defaultValue,he=En.value,_t=En.changeOnSelect,Ze=En.onChange,tn=En.displayRender,Se=En.checkable,Yt=En.autoClearSearchValue,$e=Yt===void 0?!0:Yt,on=En.searchValue,zn=En.onSearch,en=En.showSearch,xe=En.expandTrigger,vn=En.options,Wn=En.dropdownPrefixCls,qn=En.loadData,We=En.popupVisible,fn=En.open,Ie=En.popupClassName,an=En.dropdownClassName,_e=En.dropdownMenuColumnStyle,rn=En.popupPlacement,pn=En.placement,Cn=En.onDropdownVisibleChange,kn=En.onPopupVisibleChange,In=En.expandIcon,wn=In===void 0?">":In,Kn=En.loadingIcon,Ci=En.children,Wi=En.dropdownMatchSelectWidth,Li=Wi===void 0?!1:Wi,Be=En.showCheckedStrategy,ei=Be===void 0?Xt:Be,Si=(0,oe.Z)(En,Kt),ci=(0,ye.ZP)(gi),Hi=!!Se,Ni=(0,et.Z)(Fe,{value:he,postState:ke}),Ui=(0,we.Z)(Ni,2),Ii=Ui[0],bi=Ui[1],eo=It.useMemo(function(){return me(Le)},[JSON.stringify(Le)]),xn=It.useMemo(function(){return vn||[]},[vn]),Fo=Ce(xn,eo),Ln=It.useCallback(function(sr){var ir=Fo();return sr.map(function(Fr){var Qr=ir[Fr].nodes;return Qr.map(function($r){return $r[eo.value]})})},[Fo,eo]),po=(0,et.Z)("",{value:on,postState:function(ir){return ir||""}}),Go=(0,we.Z)(po,2),Yi=Go[0],nr=Go[1],Bo=function(ir,Fr){nr(ir),Fr.source!=="blur"&&zn&&zn(ir)},Ti=Ae(en),Oi=(0,we.Z)(Ti,2),bo=Oi[0],Do=Oi[1],si=Ot(Yi,xn,eo,Wn||Rn,Do,_t),Zt=bn(xn,eo),Co=It.useMemo(function(){var sr=Zt(Ii),ir=(0,we.Z)(sr,2),Fr=ir[0],Qr=ir[1];if(!Hi||!Ii.length)return[Fr,[],Qr];var $r=Gt(Fr),qa=Fo(),Ea=(0,Re.S)($r,!0,qa),gn=Ea.checkedKeys,La=Ea.halfCheckedKeys;return[Ln(gn),Ln(La),Qr]},[Hi,Ii,Fo,Ln,Zt]),xr=(0,we.Z)(Co,3),yo=xr[0],yr=xr[1],_i=xr[2],Ji=It.useMemo(function(){var sr=Gt(yo),ir=je(sr,Fo,ei);return[].concat((0,Ct.Z)(_i),(0,Ct.Z)(Ln(ir)))},[yo,Fo,Ln,_i,ei]),Zo=ge(Ji,xn,eo,Hi,tn),rr=(0,Tt.Z)(function(sr){if(bi(sr),Ze){var ir=ke(sr),Fr=ir.map(function(qa){return hn(qa,xn,eo).map(function(Ea){return Ea.option})}),Qr=Hi?ir:ir[0],$r=Hi?Fr:Fr[0];Ze(Qr,$r)}}),Ao=(0,Tt.Z)(function(sr){if((!Hi||$e)&&nr(""),!Hi)rr(sr);else{var ir=de(sr),Fr=Gt(yo),Qr=Gt(yr),$r=Fr.includes(ir),qa=_i.some(function(Cr){return de(Cr)===ir}),Ea=yo,gn=_i;if(qa&&!$r)gn=_i.filter(function(Cr){return de(Cr)!==ir});else{var La=$r?Fr.filter(function(Cr){return Cr!==ir}):[].concat((0,Ct.Z)(Fr),[ir]),tl=Fo(),js;if($r){var Qo=(0,Re.S)(La,{checked:!1,halfCheckedKeys:Qr},tl);js=Qo.checkedKeys}else{var Tr=(0,Re.S)(La,!0,tl);js=Tr.checkedKeys}var ha=je(js,Fo,ei);Ea=Ln(ha)}rr([].concat((0,Ct.Z)(gn),(0,Ct.Z)(Ea)))}}),kr=function(ir,Fr){if(Fr.type==="clear"){rr([]);return}var Qr=Fr.values[0],$r=Qr.valueCells;Ao($r)},Ki=fn!==void 0?fn:We,zi=an||Ie,co=pn||rn,Yn=function(ir){Cn==null||Cn(ir),kn==null||kn(ir)},ar=It.useMemo(function(){return{options:xn,fieldNames:eo,values:yo,halfValues:yr,changeOnSelect:_t,onSelect:Ao,checkable:Se,searchOptions:si,dropdownPrefixCls:Wn,loadData:qn,expandTrigger:xe,expandIcon:wn,loadingIcon:Kn,dropdownMenuColumnStyle:_e}},[xn,eo,yo,yr,_t,Ao,Se,si,Wn,qn,xe,wn,Kn,_e]),wr=!(Yi?si:xn).length,ia=Yi&&Do.matchInputWidth||wr?{}:{minWidth:"auto"};return It.createElement(ht.Provider,{value:ar},It.createElement(ve.Ac,(0,ze.Z)({},Si,{ref:hi,id:ci,prefixCls:Rn,autoClearSearchValue:$e,dropdownMatchSelectWidth:Li,dropdownStyle:ia,displayValues:Zo,onDisplayValuesChange:kr,mode:Hi?"multiple":void 0,searchValue:Yi,onSearch:Bo,showSearch:bo,OptionList:ln,emptyOptions:wr,open:Ki,dropdownClassName:zi,placement:co,onDropdownVisibleChange:Yn,getRawInputElement:function(){return Ci}})))});te.SHOW_PARENT=Xt,te.SHOW_CHILD=Ut;var qt=te,Dt=qt,xt=St(64002),mt=St(62892),Mt=St(53487),Rt=St(19080),Et=St(36355),re=St(93891),Qe=St(1684),mn=St(19716),le=St(32441),Ge=St(14154),cn=St(58582),Mn=St(84443),Zn=St(66339),_n=St(33234),di=St(98447),ri=St(17313),Fi=St(74207),Zi=St(83116);const Vi=En=>{const{prefixCls:hi,componentCls:gi,antCls:Pi}=En,Rn=`${gi}-menu-item`,Le=`
|
|
|
&${Rn}-expand ${Rn}-expand-icon,
|
|
|
${Rn}-loading-icon
|
|
|
`;return[{[gi]:{width:En.controlWidth}},{[`${gi}-dropdown`]:[(0,di.C2)(`${hi}-checkbox`,En),{[`&${Pi}-select-dropdown`]:{padding:0}},{[gi]:{"&-checkbox":{top:0,marginInlineEnd:En.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${gi}-menu-empty`]:{[`${gi}-menu`]:{width:"100%",height:"auto",[Rn]:{color:En.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:En.controlItemWidth,height:En.dropdownHeight,margin:0,padding:En.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${En.lineWidth}px ${En.lineType} ${En.colorSplit}`},"&-item":Object.assign(Object.assign({},ri.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:En.optionPadding,lineHeight:En.lineHeight,cursor:"pointer",transition:`all ${En.motionDurationMid}`,borderRadius:En.borderRadiusSM,"&:hover":{background:En.controlItemBgHover},"&-disabled":{color:En.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Le]:{color:En.colorTextDisabled}},[`&-active:not(${Rn}-disabled)`]:{"&, &:hover":{fontWeight:En.optionSelectedFontWeight,backgroundColor:En.optionSelectedBg}},"&-content":{flex:"auto"},[Le]:{marginInlineStart:En.paddingXXS,color:En.colorTextDescription,fontSize:En.fontSizeIcon},"&-keyword":{color:En.colorHighlight}})}}}]},{[`${gi}-dropdown-rtl`]:{direction:"rtl"}},(0,Fi.c)(En)]};var ji=(0,Zi.Z)("Cascader",En=>[Vi(En)],En=>{const hi=Math.round((En.controlHeight-En.fontSize*En.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:En.controlItemBgActive,optionSelectedFontWeight:En.fontWeightStrong,optionPadding:`${hi}px ${En.paddingSM}px`,menuPadding:En.paddingXXS}}),qi=function(En,hi){var gi={};for(var Pi in En)Object.prototype.hasOwnProperty.call(En,Pi)&&hi.indexOf(Pi)<0&&(gi[Pi]=En[Pi]);if(En!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rn=0,Pi=Object.getOwnPropertySymbols(En);Rn<Pi.length;Rn++)hi.indexOf(Pi[Rn])<0&&Object.prototype.propertyIsEnumerable.call(En,Pi[Rn])&&(gi[Pi[Rn]]=En[Pi[Rn]]);return gi};const{SHOW_CHILD:wo,SHOW_PARENT:Ei}=Dt;function Po(En,hi,gi){const Pi=En.toLowerCase().split(hi).reduce((Fe,he,_t)=>_t===0?[he]:[].concat((0,Ct.Z)(Fe),[hi,he]),[]),Rn=[];let Le=0;return Pi.forEach((Fe,he)=>{const _t=Le+Fe.length;let Ze=En.slice(Le,_t);Le=_t,he%2===1&&(Ze=It.createElement("span",{className:`${gi}-menu-item-keyword`,key:`separator-${he}`},Ze)),Rn.push(Ze)}),Rn}const ki=(En,hi,gi,Pi)=>{const Rn=[],Le=En.toLowerCase();return hi.forEach((Fe,he)=>{he!==0&&Rn.push(" / ");let _t=Fe[Pi.label];const Ze=typeof _t;(Ze==="string"||Ze==="number")&&(_t=Po(String(_t),Le,gi)),Rn.push(_t)}),Rn},Lt=It.forwardRef((En,hi)=>{const{prefixCls:gi,size:Pi,disabled:Rn,className:Le,rootClassName:Fe,multiple:he,bordered:_t=!0,transitionName:Ze,choiceTransitionName:tn="",popupClassName:Se,dropdownClassName:Yt,expandIcon:$e,placement:on,showSearch:zn,allowClear:en=!0,notFoundContent:xe,direction:vn,getPopupContainer:Wn,status:qn,showArrow:We,builtinPlacements:fn,style:Ie}=En,an=qi(En,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),_e=(0,xt.Z)(an,["suffixIcon"]),{getPopupContainer:rn,getPrefixCls:pn,renderEmpty:Cn,direction:kn,popupOverflow:In,cascader:wn}=It.useContext(Et.E_),Kn=vn||kn,Ci=Kn==="rtl",{status:Wi,hasFeedback:Li,isFormItemInput:Be,feedbackIcon:ei}=It.useContext(le.aM),Si=(0,Rt.F)(Wi,qn),ci=xe||(Cn==null?void 0:Cn("Cascader"))||It.createElement(re.Z,{componentName:"Cascader"}),Hi=pn(),Ni=pn("select",gi),Ui=pn("cascader",gi),[Ii,bi]=(0,Ge.Z)(Ni),[eo]=ji(Ui),{compactSize:xn,compactItemClassnames:Fo}=(0,_n.ri)(Ni,vn),Ln=Ft()(Se||Yt,`${Ui}-dropdown`,{[`${Ui}-dropdown-rtl`]:Kn==="rtl"},Fe,bi),po=It.useMemo(()=>{if(!zn)return zn;let _i={render:ki};return typeof zn=="object"&&(_i=Object.assign(Object.assign({},_i),zn)),_i},[zn]),Go=(0,mn.Z)(_i=>{var Ji;return(Ji=Pi!=null?Pi:xn)!==null&&Ji!==void 0?Ji:_i}),Yi=It.useContext(Qe.Z),nr=Rn!=null?Rn:Yi;let Bo=$e;$e||(Bo=Ci?It.createElement(ee.Z,null):It.createElement(Vt.Z,null));const Ti=It.createElement("span",{className:`${Ni}-menu-item-loading-icon`},It.createElement(Ne.Z,{spin:!0})),Oi=It.useMemo(()=>he?It.createElement("span",{className:`${Ui}-checkbox-inner`}):!1,[he]),bo=(0,Mn.Z)(En.suffixIcon,We),{suffixIcon:Do,removeIcon:si,clearIcon:Zt}=(0,Zn.Z)(Object.assign(Object.assign({},En),{hasFeedback:Li,feedbackIcon:ei,showSuffixIcon:bo,multiple:he,prefixCls:Ni,componentName:"Cascader"})),Co=It.useMemo(()=>on!==void 0?on:Ci?"bottomRight":"bottomLeft",[on,Ci]),xr=(0,cn.Z)(fn,In),yo=en===!0?{clearIcon:Zt}:en,yr=It.createElement(Dt,Object.assign({prefixCls:Ni,className:Ft()(!gi&&Ui,{[`${Ni}-lg`]:Go==="large",[`${Ni}-sm`]:Go==="small",[`${Ni}-rtl`]:Ci,[`${Ni}-borderless`]:!_t,[`${Ni}-in-form-item`]:Be},(0,Rt.Z)(Ni,Si,Li),Fo,wn==null?void 0:wn.className,Le,Fe,bi),disabled:nr,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),Ie)},_e,{builtinPlacements:xr,direction:Kn,placement:Co,notFoundContent:ci,allowClear:yo,showSearch:po,expandIcon:Bo,suffixIcon:Do,removeIcon:si,loadingIcon:Ti,checkable:Oi,dropdownClassName:Ln,dropdownPrefixCls:gi||Ui,choiceTransitionName:(0,mt.m)(Hi,"",tn),transitionName:(0,mt.m)(Hi,"slide-up",Ze),getPopupContainer:Wn||rn,ref:hi}));return eo(Ii(yr))}),Mo=(0,Mt.Z)(Lt);Lt.SHOW_PARENT=Ei,Lt.SHOW_CHILD=wo,Lt._InternalPanelDoNotUseOrYouWillBeFired=Mo;var $i=Lt},24905:function(Dn,An,St){"use strict";St.d(An,{default:function(){return Ot}});var Ct=St(92310),It=St.n(Ct),ee=St(5630),Ne=St(59301),Vt=St(36355),fe=St(1684),Ft=St(32441),we=Ne.createContext(null),oe=St(98447),ve=St(14088),ye=St(4572),Re=function(jt,Xt){var Ut={};for(var de in jt)Object.prototype.hasOwnProperty.call(jt,de)&&Xt.indexOf(de)<0&&(Ut[de]=jt[de]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,de=Object.getOwnPropertySymbols(jt);Gt<de.length;Gt++)Xt.indexOf(de[Gt])<0&&Object.prototype.propertyIsEnumerable.call(jt,de[Gt])&&(Ut[de[Gt]]=jt[de[Gt]]);return Ut};const Tt=(jt,Xt)=>{var Ut;const{prefixCls:de,className:Gt,rootClassName:Ve,children:me,indeterminate:sn=!1,style:qe,onMouseEnter:Ye,onMouseLeave:je,skipGroup:hn=!1,disabled:ge}=jt,Ht=Re(jt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ce,direction:bn,checkbox:yn}=Ne.useContext(Vt.E_),Ae=Ne.useContext(we),{isFormItemInput:Ue}=Ne.useContext(Ft.aM),Sn=Ne.useContext(fe.Z),Xn=(Ut=(Ae==null?void 0:Ae.disabled)||ge)!==null&&Ut!==void 0?Ut:Sn,Pn=Ne.useRef(Ht.value);Ne.useEffect(()=>{Ae==null||Ae.registerValue(Ht.value)},[]),Ne.useEffect(()=>{if(!hn)return Ht.value!==Pn.current&&(Ae==null||Ae.cancelValue(Pn.current),Ae==null||Ae.registerValue(Ht.value),Pn.current=Ht.value),()=>Ae==null?void 0:Ae.cancelValue(Ht.value)},[Ht.value]);const Gn=Ce("checkbox",de),[Ee,Jn]=(0,oe.ZP)(Gn),ai=Object.assign({},Ht);Ae&&!hn&&(ai.onChange=function(){Ht.onChange&&Ht.onChange.apply(Ht,arguments),Ae.toggleOption&&Ae.toggleOption({label:me,value:Ht.value})},ai.name=Ae.name,ai.checked=Ae.value.includes(Ht.value));const ui=It()(`${Gn}-wrapper`,{[`${Gn}-rtl`]:bn==="rtl",[`${Gn}-wrapper-checked`]:ai.checked,[`${Gn}-wrapper-disabled`]:Xn,[`${Gn}-wrapper-in-form-item`]:Ue},yn==null?void 0:yn.className,Gt,Ve,Jn),ln=It()({[`${Gn}-indeterminate`]:sn},ye.A,Jn),Te=sn?"mixed":void 0;return Ee(Ne.createElement(ve.Z,{component:"Checkbox",disabled:Xn},Ne.createElement("label",{className:ui,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),qe),onMouseEnter:Ye,onMouseLeave:je},Ne.createElement(ee.Z,Object.assign({"aria-checked":Te},ai,{prefixCls:Gn,className:ln,disabled:Xn,ref:Xt})),me!==void 0&&Ne.createElement("span",null,me))))};var nt=Ne.forwardRef(Tt),ht=St(26390),st=St(64002),gt=function(jt,Xt){var Ut={};for(var de in jt)Object.prototype.hasOwnProperty.call(jt,de)&&Xt.indexOf(de)<0&&(Ut[de]=jt[de]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,de=Object.getOwnPropertySymbols(jt);Gt<de.length;Gt++)Xt.indexOf(de[Gt])<0&&Object.prototype.propertyIsEnumerable.call(jt,de[Gt])&&(Ut[de[Gt]]=jt[de[Gt]]);return Ut};const vt=(jt,Xt)=>{const{defaultValue:Ut,children:de,options:Gt=[],prefixCls:Ve,className:me,rootClassName:sn,style:qe,onChange:Ye}=jt,je=gt(jt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:hn,direction:ge}=Ne.useContext(Vt.E_),[Ht,Ce]=Ne.useState(je.value||Ut||[]),[bn,yn]=Ne.useState([]);Ne.useEffect(()=>{"value"in je&&Ce(je.value||[])},[je.value]);const Ae=Ne.useMemo(()=>Gt.map(Me=>typeof Me=="string"||typeof Me=="number"?{label:Me,value:Me}:Me),[Gt]),Ue=Me=>{yn(ie=>ie.filter(Kt=>Kt!==Me))},Sn=Me=>{yn(ie=>[].concat((0,ht.Z)(ie),[Me]))},Xn=Me=>{const ie=Ht.indexOf(Me.value),Kt=(0,ht.Z)(Ht);ie===-1?Kt.push(Me.value):Kt.splice(ie,1),"value"in je||Ce(Kt),Ye==null||Ye(Kt.filter(Oe=>bn.includes(Oe)).sort((Oe,ke)=>{const te=Ae.findIndex(Dt=>Dt.value===Oe),qt=Ae.findIndex(Dt=>Dt.value===ke);return te-qt}))},Pn=hn("checkbox",Ve),Gn=`${Pn}-group`,[Ee,Jn]=(0,oe.ZP)(Pn),ai=(0,st.Z)(je,["value","disabled"]),ui=Gt.length?Ae.map(Me=>Ne.createElement(nt,{prefixCls:Pn,key:Me.value.toString(),disabled:"disabled"in Me?Me.disabled:je.disabled,value:Me.value,checked:Ht.includes(Me.value),onChange:Me.onChange,className:`${Gn}-item`,style:Me.style,title:Me.title},Me.label)):de,ln={toggleOption:Xn,value:Ht,disabled:je.disabled,name:je.name,registerValue:Sn,cancelValue:Ue},Te=It()(Gn,{[`${Gn}-rtl`]:ge==="rtl"},me,sn,Jn);return Ee(Ne.createElement("div",Object.assign({className:Te,style:qe},ai,{ref:Xt}),Ne.createElement(we.Provider,{value:ln},ui)))},wt=Ne.forwardRef(vt);var Bt=Ne.memo(wt);const kt=nt;kt.Group=Bt,kt.__ANT_CHECKBOX=!0;var Ot=kt},98447:function(Dn,An,St){"use strict";St.d(An,{C2:function(){return Vt}});var Ct=St(17313),It=St(37613),ee=St(83116);const Ne=fe=>{const{checkboxCls:Ft}=fe,ze=`${Ft}-wrapper`;return[{[`${Ft}-group`]:Object.assign(Object.assign({},(0,Ct.Wf)(fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:fe.marginXS,[`> ${fe.antCls}-row`]:{flex:1}}),[ze]:Object.assign(Object.assign({},(0,Ct.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ze}`]:{marginInlineStart:0},[`&${ze}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ft]:Object.assign(Object.assign({},(0,Ct.Wf)(fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:fe.borderRadiusSM,alignSelf:"center",[`${Ft}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ft}-inner`]:Object.assign({},(0,Ct.oN)(fe))},[`${Ft}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:fe.checkboxSize,height:fe.checkboxSize,direction:"ltr",backgroundColor:fe.colorBgContainer,border:`${fe.lineWidth}px ${fe.lineType} ${fe.colorBorder}`,borderRadius:fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:fe.checkboxSize/14*5,height:fe.checkboxSize/14*8,border:`${fe.lineWidthBold}px solid ${fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${fe.motionDurationFast} ${fe.motionEaseInBack}, opacity ${fe.motionDurationFast}`}},"& + span":{paddingInlineStart:fe.paddingXS,paddingInlineEnd:fe.paddingXS}})},{[`
|
|
|
${ze}:not(${ze}-disabled),
|
|
|
${Ft}:not(${Ft}-disabled)
|
|
|
`]:{[`&:hover ${Ft}-inner`]:{borderColor:fe.colorPrimary}},[`${ze}:not(${ze}-disabled)`]:{[`&:hover ${Ft}-checked:not(${Ft}-disabled) ${Ft}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ft}-checked:not(${Ft}-disabled):after`]:{borderColor:fe.colorPrimaryHover}}},{[`${Ft}-checked`]:{[`${Ft}-inner`]:{backgroundColor:fe.colorPrimary,borderColor:fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${fe.motionDurationMid} ${fe.motionEaseOutBack} ${fe.motionDurationFast}`}}},[`
|
|
|
${ze}-checked:not(${ze}-disabled),
|
|
|
${Ft}-checked:not(${Ft}-disabled)
|
|
|
`]:{[`&:hover ${Ft}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"}}},{[Ft]:{"&-indeterminate":{[`${Ft}-inner`]:{backgroundColor:fe.colorBgContainer,borderColor:fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:fe.fontSizeLG/2,height:fe.fontSizeLG/2,backgroundColor:fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ze}-disabled`]:{cursor:"not-allowed"},[`${Ft}-disabled`]:{[`&, ${Ft}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ft}-inner`]:{background:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,"&:after":{borderColor:fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:fe.colorTextDisabled},[`&${Ft}-indeterminate ${Ft}-inner::after`]:{background:fe.colorTextDisabled}}}]};function Vt(fe,Ft){const ze=(0,It.TS)(Ft,{checkboxCls:`.${fe}`,checkboxSize:Ft.controlInteractiveSize});return[Ne(ze)]}An.ZP=(0,ee.Z)("Checkbox",(fe,Ft)=>{let{prefixCls:ze}=Ft;return[Vt(ze,fe)]})},93891:function(Dn,An,St){"use strict";var Ct=St(59301),It=St(36355),ee=St(64165);const Ne=Vt=>{const{componentName:fe}=Vt,{getPrefixCls:Ft}=(0,Ct.useContext)(It.E_),ze=Ft("empty");switch(fe){case"Table":case"List":return Ct.createElement(ee.Z,{image:ee.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Ct.createElement(ee.Z,{image:ee.Z.PRESENTED_IMAGE_SIMPLE,className:`${ze}-small`});default:return Ct.createElement(ee.Z,null)}};An.Z=Ne},28103:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ye}});var Ct=St(92310),It=St.n(Ct),ee=St(59301),Ne=St(36355),Vt=St(17313),fe=St(83116),Ft=St(37613);const ze=Re=>{const{componentCls:Tt,sizePaddingEdgeHorizontal:et,colorSplit:nt,lineWidth:ht,textPaddingInline:st,orientationMargin:gt,verticalMarginInline:vt}=Re;return{[Tt]:Object.assign(Object.assign({},(0,Vt.Wf)(Re)),{borderBlockStart:`${ht}px solid ${nt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:vt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ht}px solid ${nt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Re.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${Tt}-with-text`]:{display:"flex",alignItems:"center",margin:`${Re.dividerHorizontalWithTextGutterMargin}px 0`,color:Re.colorTextHeading,fontWeight:500,fontSize:Re.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${nt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ht}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Tt}-with-text-left`]:{"&::before":{width:`${gt*100}%`},"&::after":{width:`${100-gt*100}%`}},[`&-horizontal${Tt}-with-text-right`]:{"&::before":{width:`${100-gt*100}%`},"&::after":{width:`${gt*100}%`}},[`${Tt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:st},"&-dashed":{background:"none",borderColor:nt,borderStyle:"dashed",borderWidth:`${ht}px 0 0`},[`&-horizontal${Tt}-with-text${Tt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Tt}-dashed`]:{borderInlineStartWidth:ht,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Tt}-with-text`]:{color:Re.colorText,fontWeight:"normal",fontSize:Re.fontSize},[`&-horizontal${Tt}-with-text-left${Tt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Tt}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${Tt}-with-text-right${Tt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Tt}-inner-text`]:{paddingInlineEnd:et}}})}};var we=(0,fe.Z)("Divider",Re=>{const Tt=(0,Ft.TS)(Re,{dividerHorizontalWithTextGutterMargin:Re.margin,dividerHorizontalGutterMargin:Re.marginLG,sizePaddingEdgeHorizontal:0});return[ze(Tt)]},Re=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Re.marginXS})),oe=function(Re,Tt){var et={};for(var nt in Re)Object.prototype.hasOwnProperty.call(Re,nt)&&Tt.indexOf(nt)<0&&(et[nt]=Re[nt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,nt=Object.getOwnPropertySymbols(Re);ht<nt.length;ht++)Tt.indexOf(nt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Re,nt[ht])&&(et[nt[ht]]=Re[nt[ht]]);return et},ye=Re=>{const{getPrefixCls:Tt,direction:et,divider:nt}=ee.useContext(Ne.E_),{prefixCls:ht,type:st="horizontal",orientation:gt="center",orientationMargin:vt,className:wt,rootClassName:Bt,children:kt,dashed:Ot,plain:jt,style:Xt}=Re,Ut=oe(Re,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),de=Tt("divider",ht),[Gt,Ve]=we(de),me=gt.length>0?`-${gt}`:gt,sn=!!kt,qe=gt==="left"&&vt!=null,Ye=gt==="right"&&vt!=null,je=It()(de,nt==null?void 0:nt.className,Ve,`${de}-${st}`,{[`${de}-with-text`]:sn,[`${de}-with-text${me}`]:sn,[`${de}-dashed`]:!!Ot,[`${de}-plain`]:!!jt,[`${de}-rtl`]:et==="rtl",[`${de}-no-default-orientation-margin-left`]:qe,[`${de}-no-default-orientation-margin-right`]:Ye},wt,Bt),hn=ee.useMemo(()=>typeof vt=="number"?vt:/^\d+$/.test(vt)?Number(vt):vt,[vt]),ge=Object.assign(Object.assign({},qe&&{marginLeft:hn}),Ye&&{marginRight:hn});return Gt(ee.createElement("div",Object.assign({className:je,style:Object.assign(Object.assign({},nt==null?void 0:nt.style),Xt)},Ut,{role:"separator"}),kt&&st!=="vertical"&&ee.createElement("span",{className:`${de}-inner-text`,style:ge},kt)))}},91857:function(Dn,An,St){"use strict";var Ct=St(59301),It=St(53878),ee=St(92310),Ne=St.n(ee),Vt=St(31561),fe=St(80764),Ft=St(35788),ze=St(64002),we=St(79676),oe=St(53487),ve=St(92343),ye=St(36355),Re=St(20834),Tt=St(40875),et=St(88088),nt=St(47211);const ht=null,st=Bt=>{const{menu:kt,arrow:Ot,prefixCls:jt,children:Xt,trigger:Ut,disabled:de,dropdownRender:Gt,getPopupContainer:Ve,overlayClassName:me,rootClassName:sn,open:qe,onOpenChange:Ye,visible:je,onVisibleChange:hn,mouseEnterDelay:ge=.15,mouseLeaveDelay:Ht=.1,autoAdjustOverflow:Ce=!0,placement:bn="",overlay:yn,transitionName:Ae}=Bt,{getPopupContainer:Ue,getPrefixCls:Sn,direction:Xn}=Ct.useContext(ye.E_),Pn=Ct.useMemo(()=>{const mt=Sn();return Ae!==void 0?Ae:bn.includes("top")?`${mt}-slide-down`:`${mt}-slide-up`},[Sn,bn,Ae]),Gn=Ct.useMemo(()=>bn?bn.includes("Center")?bn.slice(0,bn.indexOf("Center")):bn:Xn==="rtl"?"bottomRight":"bottomLeft",[bn,Xn]),Ee=Sn("dropdown",jt),[Jn,ai]=(0,nt.Z)(Ee),[,ui]=(0,et.Z)(),ln=Ct.Children.only(Xt),Te=(0,ve.Tm)(ln,{className:Ne()(`${Ee}-trigger`,{[`${Ee}-rtl`]:Xn==="rtl"},ln.props.className),disabled:de}),Me=de?[]:Ut;let ie;Me&&Me.includes("contextMenu")&&(ie=!0);const[Kt,Oe]=(0,Ft.Z)(!1,{value:qe!=null?qe:je}),ke=(0,fe.useEvent)(mt=>{Ye==null||Ye(mt),hn==null||hn(mt),Oe(mt)}),te=Ne()(me,sn,ai,{[`${Ee}-rtl`]:Xn==="rtl"}),qt=(0,we.Z)({arrowPointAtCenter:typeof Ot=="object"&&Ot.pointAtCenter,autoAdjustOverflow:Ce,offset:ui.marginXXS,arrowWidth:Ot?ui.sizePopupArrow:0,borderRadius:ui.borderRadius}),Dt=Ct.useCallback(()=>{Oe(!1)},[]),xt=()=>{let mt;return kt!=null&&kt.items?mt=Ct.createElement(Re.default,Object.assign({},kt)):typeof yn=="function"?mt=yn():mt=yn,Gt&&(mt=Gt(mt)),mt=Ct.Children.only(typeof mt=="string"?Ct.createElement("span",null,mt):mt),Ct.createElement(Tt.J,{prefixCls:`${Ee}-menu`,expandIcon:Ct.createElement("span",{className:`${Ee}-menu-submenu-arrow`},Ct.createElement(It.Z,{className:`${Ee}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Dt,validator:Mt=>{let{mode:Rt}=Mt}},mt)};return Jn(Ct.createElement(Vt.Z,Object.assign({alignPoint:ie},(0,ze.Z)(Bt,["rootClassName"]),{mouseEnterDelay:ge,mouseLeaveDelay:Ht,visible:Kt,builtinPlacements:qt,arrow:!!Ot,overlayClassName:te,prefixCls:Ee,getPopupContainer:Ve||Ue,transitionName:Pn,trigger:Me,overlay:xt,placement:Gn,onVisibleChange:ke}),Te))};function gt(Bt){return Object.assign(Object.assign({},Bt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const vt=(0,oe.Z)(st,"dropdown",Bt=>Bt,gt),wt=Bt=>Ct.createElement(vt,Object.assign({},Bt),Ct.createElement("span",null));st._InternalPanelDoNotUseOrYouWillBeFired=wt,An.Z=st},38854:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return et}});var Ct=St(91857),It=St(92310),ee=St.n(It),Ne=St(59301),Vt=St(19362),fe=St(3113),Ft=St(36355),ze=St(81327),we=St(33234),oe=St(47211),ve=function(nt,ht){var st={};for(var gt in nt)Object.prototype.hasOwnProperty.call(nt,gt)&&ht.indexOf(gt)<0&&(st[gt]=nt[gt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,gt=Object.getOwnPropertySymbols(nt);vt<gt.length;vt++)ht.indexOf(gt[vt])<0&&Object.prototype.propertyIsEnumerable.call(nt,gt[vt])&&(st[gt[vt]]=nt[gt[vt]]);return st};const ye=nt=>{const{getPopupContainer:ht,getPrefixCls:st,direction:gt}=Ne.useContext(Ft.E_),{prefixCls:vt,type:wt="default",danger:Bt,disabled:kt,loading:Ot,onClick:jt,htmlType:Xt,children:Ut,className:de,menu:Gt,arrow:Ve,autoFocus:me,overlay:sn,trigger:qe,align:Ye,open:je,onOpenChange:hn,placement:ge,getPopupContainer:Ht,href:Ce,icon:bn=Ne.createElement(Vt.Z,null),title:yn,buttonsRender:Ae=xt=>xt,mouseEnterDelay:Ue,mouseLeaveDelay:Sn,overlayClassName:Xn,overlayStyle:Pn,destroyPopupOnHide:Gn,dropdownRender:Ee}=nt,Jn=ve(nt,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ai=st("dropdown",vt),ui=`${ai}-button`,[ln,Te]=(0,oe.Z)(ai),Me={menu:Gt,arrow:Ve,autoFocus:me,align:Ye,disabled:kt,trigger:kt?[]:qe,onOpenChange:hn,getPopupContainer:Ht||ht,mouseEnterDelay:Ue,mouseLeaveDelay:Sn,overlayClassName:Xn,overlayStyle:Pn,destroyPopupOnHide:Gn,dropdownRender:Ee},{compactSize:ie,compactItemClassnames:Kt}=(0,we.ri)(ai,gt),Oe=ee()(ui,Kt,de,Te);"overlay"in nt&&(Me.overlay=sn),"open"in nt&&(Me.open=je),"placement"in nt?Me.placement=ge:Me.placement=gt==="rtl"?"bottomLeft":"bottomRight";const ke=Ne.createElement(fe.ZP,{type:wt,danger:Bt,disabled:kt,loading:Ot,onClick:jt,htmlType:Xt,href:Ce,title:yn},Ut),te=Ne.createElement(fe.ZP,{type:wt,danger:Bt,icon:bn}),[qt,Dt]=Ae([ke,te]);return ln(Ne.createElement(ze.Z.Compact,Object.assign({className:Oe,size:ie,block:!0},Jn),qt,Ne.createElement(Ct.Z,Object.assign({},Me),Dt)))};ye.__ANT_BUTTON=!0;var Re=ye;const Tt=Ct.Z;Tt.Button=Re;var et=Tt},47211:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ve}});var Ct=St(17313),It=St(13826),ee=St(92899),Ne=St(29878),Vt=St(19447),fe=St(83116),Ft=St(37613),we=ye=>{const{componentCls:Re,menuCls:Tt,colorError:et,colorTextLightSolid:nt}=ye,ht=`${Tt}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${Tt} ${ht}`]:{[`&${ht}-danger:not(${ht}-disabled)`]:{color:et,"&:hover":{color:nt,backgroundColor:et}}}}}};const oe=ye=>{const{componentCls:Re,menuCls:Tt,zIndexPopup:et,dropdownArrowDistance:nt,sizePopupArrow:ht,antCls:st,iconCls:gt,motionDurationMid:vt,dropdownPaddingVertical:wt,fontSize:Bt,dropdownEdgeChildPadding:kt,colorTextDisabled:Ot,fontSizeIcon:jt,controlPaddingHorizontal:Xt,colorBgElevated:Ut}=ye;return[{[Re]:Object.assign(Object.assign({},(0,Ct.Wf)(ye)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-nt+ht/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${st}-btn`]:{[`& > ${gt}-down, & > ${st}-btn-icon > ${gt}-down`]:{fontSize:jt}},[`${Re}-wrap`]:{position:"relative",[`${st}-btn > ${gt}-down`]:{fontSize:jt},[`${gt}-down::before`]:{transition:`transform ${vt}`}},[`${Re}-wrap-open`]:{[`${gt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${st}-slide-down-enter${st}-slide-down-enter-active${Re}-placement-bottomLeft,
|
|
|
&${st}-slide-down-appear${st}-slide-down-appear-active${Re}-placement-bottomLeft,
|
|
|
&${st}-slide-down-enter${st}-slide-down-enter-active${Re}-placement-bottom,
|
|
|
&${st}-slide-down-appear${st}-slide-down-appear-active${Re}-placement-bottom,
|
|
|
&${st}-slide-down-enter${st}-slide-down-enter-active${Re}-placement-bottomRight,
|
|
|
&${st}-slide-down-appear${st}-slide-down-appear-active${Re}-placement-bottomRight`]:{animationName:It.fJ},[`&${st}-slide-up-enter${st}-slide-up-enter-active${Re}-placement-topLeft,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${Re}-placement-topLeft,
|
|
|
&${st}-slide-up-enter${st}-slide-up-enter-active${Re}-placement-top,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${Re}-placement-top,
|
|
|
&${st}-slide-up-enter${st}-slide-up-enter-active${Re}-placement-topRight,
|
|
|
&${st}-slide-up-appear${st}-slide-up-appear-active${Re}-placement-topRight`]:{animationName:It.Qt},[`&${st}-slide-down-leave${st}-slide-down-leave-active${Re}-placement-bottomLeft,
|
|
|
&${st}-slide-down-leave${st}-slide-down-leave-active${Re}-placement-bottom,
|
|
|
&${st}-slide-down-leave${st}-slide-down-leave-active${Re}-placement-bottomRight`]:{animationName:It.Uw},[`&${st}-slide-up-leave${st}-slide-up-leave-active${Re}-placement-topLeft,
|
|
|
&${st}-slide-up-leave${st}-slide-up-leave-active${Re}-placement-top,
|
|
|
&${st}-slide-up-leave${st}-slide-up-leave-active${Re}-placement-topRight`]:{animationName:It.ly}})},(0,Vt.ZP)(ye,{colorBg:Ut,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${Tt}`]:{position:"relative",margin:0},[`${Tt}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Re}, ${Re}-menu-submenu`]:{[Tt]:Object.assign(Object.assign({padding:kt,listStyleType:"none",backgroundColor:Ut,backgroundClip:"padding-box",borderRadius:ye.borderRadiusLG,outline:"none",boxShadow:ye.boxShadowSecondary},(0,Ct.Qy)(ye)),{[`${Tt}-item-group-title`]:{padding:`${wt}px ${Xt}px`,color:ye.colorTextDescription,transition:`all ${vt}`},[`${Tt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Tt}-item-icon`]:{minWidth:Bt,marginInlineEnd:ye.marginXS,fontSize:ye.fontSizeSM},[`${Tt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${vt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Tt}-item, ${Tt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${wt}px ${Xt}px`,color:ye.colorText,fontWeight:"normal",fontSize:Bt,lineHeight:ye.lineHeight,cursor:"pointer",transition:`all ${vt}`,borderRadius:ye.borderRadiusSM,"&:hover, &-active":{backgroundColor:ye.controlItemBgHover}},(0,Ct.Qy)(ye)),{"&-selected":{color:ye.colorPrimary,backgroundColor:ye.controlItemBgActive,"&:hover, &-active":{backgroundColor:ye.controlItemBgActiveHover}},"&-disabled":{color:Ot,cursor:"not-allowed","&:hover":{color:Ot,backgroundColor:Ut,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ye.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ye.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ye.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ye.colorTextDescription,fontSize:jt,fontStyle:"normal"}}}),[`${Tt}-item-group-list`]:{margin:`0 ${ye.marginXS}px`,padding:0,listStyle:"none"},[`${Tt}-submenu-title`]:{paddingInlineEnd:Xt+ye.fontSizeSM},[`${Tt}-submenu-vertical`]:{position:"relative"},[`${Tt}-submenu${Tt}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:Ot,backgroundColor:Ut,cursor:"not-allowed"}},[`${Tt}-submenu-selected ${Re}-menu-submenu-title`]:{color:ye.colorPrimary}})}},[(0,It.oN)(ye,"slide-up"),(0,It.oN)(ye,"slide-down"),(0,ee.Fm)(ye,"move-up"),(0,ee.Fm)(ye,"move-down"),(0,Ne._y)(ye,"zoom-big")]]};var ve=(0,fe.Z)("Dropdown",(ye,Re)=>{let{rootPrefixCls:Tt}=Re;const{marginXXS:et,sizePopupArrow:nt,controlHeight:ht,fontSize:st,lineHeight:gt,paddingXXS:vt,componentCls:wt,borderRadiusLG:Bt}=ye,kt=(ht-st*gt)/2,{dropdownArrowOffset:Ot}=(0,Vt.fS)({contentRadius:Bt}),jt=(0,Ft.TS)(ye,{menuCls:`${wt}-menu`,rootPrefixCls:Tt,dropdownArrowDistance:nt/2+et,dropdownArrowOffset:Ot,dropdownPaddingVertical:kt,dropdownEdgeChildPadding:vt});return[oe(jt),we(jt)]},ye=>({zIndexPopup:ye.zIndexPopupBase+50}))},64165:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return vt}});var Ct=St(92310),It=St.n(Ct),ee=St(59301),Ne=St(36355),Vt=St(9763),fe=St(64993),Ft=St(88088),we=()=>{const[,wt]=(0,Ft.Z)(),kt=new fe.C(wt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ee.createElement("svg",{style:kt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ee.createElement("g",{fill:"none",fillRule:"evenodd"},ee.createElement("g",{transform:"translate(24 31.67)"},ee.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ee.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"}),ee.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)"}),ee.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"}),ee.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"})),ee.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"}),ee.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ee.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ee.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ve=()=>{const[,wt]=(0,Ft.Z)(),{colorFill:Bt,colorFillTertiary:kt,colorFillQuaternary:Ot,colorBgContainer:jt}=wt,{borderColor:Xt,shadowColor:Ut,contentColor:de}=(0,ee.useMemo)(()=>({borderColor:new fe.C(Bt).onBackground(jt).toHexShortString(),shadowColor:new fe.C(kt).onBackground(jt).toHexShortString(),contentColor:new fe.C(Ot).onBackground(jt).toHexShortString()}),[Bt,kt,Ot,jt]);return ee.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ee.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ee.createElement("ellipse",{fill:Ut,cx:"32",cy:"33",rx:"32",ry:"7"}),ee.createElement("g",{fillRule:"nonzero",stroke:Xt},ee.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"}),ee.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:de}))))},ye=St(83116),Re=St(37613);const Tt=wt=>{const{componentCls:Bt,margin:kt,marginXS:Ot,marginXL:jt,fontSize:Xt,lineHeight:Ut}=wt;return{[Bt]:{marginInline:Ot,fontSize:Xt,lineHeight:Ut,textAlign:"center",[`${Bt}-image`]:{height:wt.emptyImgHeight,marginBottom:Ot,opacity:wt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Bt}-description`]:{color:wt.colorText},[`${Bt}-footer`]:{marginTop:kt},"&-normal":{marginBlock:jt,color:wt.colorTextDisabled,[`${Bt}-description`]:{color:wt.colorTextDisabled},[`${Bt}-image`]:{height:wt.emptyImgHeightMD}},"&-small":{marginBlock:Ot,color:wt.colorTextDisabled,[`${Bt}-image`]:{height:wt.emptyImgHeightSM}}}}};var et=(0,ye.Z)("Empty",wt=>{const{componentCls:Bt,controlHeightLG:kt}=wt,Ot=(0,Re.TS)(wt,{emptyImgCls:`${Bt}-img`,emptyImgHeight:kt*2.5,emptyImgHeightMD:kt,emptyImgHeightSM:kt*.875});return[Tt(Ot)]}),nt=function(wt,Bt){var kt={};for(var Ot in wt)Object.prototype.hasOwnProperty.call(wt,Ot)&&Bt.indexOf(Ot)<0&&(kt[Ot]=wt[Ot]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Ot=Object.getOwnPropertySymbols(wt);jt<Ot.length;jt++)Bt.indexOf(Ot[jt])<0&&Object.prototype.propertyIsEnumerable.call(wt,Ot[jt])&&(kt[Ot[jt]]=wt[Ot[jt]]);return kt};const ht=ee.createElement(we,null),st=ee.createElement(ve,null),gt=wt=>{var{className:Bt,rootClassName:kt,prefixCls:Ot,image:jt=ht,description:Xt,children:Ut,imageStyle:de,style:Gt}=wt,Ve=nt(wt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:me,direction:sn,empty:qe}=ee.useContext(Ne.E_),Ye=me("empty",Ot),[je,hn]=et(Ye),[ge]=(0,Vt.Z)("Empty"),Ht=typeof Xt!="undefined"?Xt:ge==null?void 0:ge.description,Ce=typeof Ht=="string"?Ht:"empty";let bn=null;return typeof jt=="string"?bn=ee.createElement("img",{alt:Ce,src:jt}):bn=jt,je(ee.createElement("div",Object.assign({className:It()(hn,Ye,qe==null?void 0:qe.className,{[`${Ye}-normal`]:jt===st,[`${Ye}-rtl`]:sn==="rtl"},Bt,kt),style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Gt)},Ve),ee.createElement("div",{className:`${Ye}-image`,style:de},bn),Ht&&ee.createElement("div",{className:`${Ye}-description`},Ht),Ut&&ee.createElement("div",{className:`${Ye}-footer`},Ut)))};gt.PRESENTED_IMAGE_DEFAULT=ht,gt.PRESENTED_IMAGE_SIMPLE=st;var vt=gt},78241:function(Dn,An,St){"use strict";St.d(An,{default:function(){return he}});var Ct=St(26390),It=St(92310),ee=St.n(It),Ne=St(43469),Vt=St(59301),fe=St(62892),Ft=St(32441);function ze(_t){const[Ze,tn]=Vt.useState(_t);return Vt.useEffect(()=>{const Se=setTimeout(()=>{tn(_t)},_t.length?0:10);return()=>{clearTimeout(Se)}},[_t]),Ze}var we=St(17313),oe=St(29878),ve=St(8378),ye=St(37613),Re=St(83116),et=_t=>{const{componentCls:Ze}=_t,tn=`${Ze}-show-help`,Se=`${Ze}-show-help-item`;return{[tn]:{transition:`opacity ${_t.motionDurationSlow} ${_t.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Se]:{overflow:"hidden",transition:`height ${_t.motionDurationSlow} ${_t.motionEaseInOut},
|
|
|
opacity ${_t.motionDurationSlow} ${_t.motionEaseInOut},
|
|
|
transform ${_t.motionDurationSlow} ${_t.motionEaseInOut} !important`,[`&${Se}-appear, &${Se}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Se}-leave-active`]:{transform:"translateY(-5px)"}}}}};const nt=_t=>({legend:{display:"block",width:"100%",marginBottom:_t.marginLG,padding:0,color:_t.colorTextDescription,fontSize:_t.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${_t.lineWidth}px ${_t.lineType} ${_t.colorBorder}`},label:{fontSize:_t.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 ${_t.controlOutlineWidth}px ${_t.controlOutline}`},output:{display:"block",paddingTop:15,color:_t.colorText,fontSize:_t.fontSize,lineHeight:_t.lineHeight}}),ht=(_t,Ze)=>{const{formItemCls:tn}=_t;return{[tn]:{[`${tn}-label > label`]:{height:Ze},[`${tn}-control-input`]:{minHeight:Ze}}}},st=_t=>{const{componentCls:Ze}=_t;return{[_t.componentCls]:Object.assign(Object.assign(Object.assign({},(0,we.Wf)(_t)),nt(_t)),{[`${Ze}-text`]:{display:"inline-block",paddingInlineEnd:_t.paddingSM},"&-small":Object.assign({},ht(_t,_t.controlHeightSM)),"&-large":Object.assign({},ht(_t,_t.controlHeightLG))})}},gt=_t=>{const{formItemCls:Ze,iconCls:tn,componentCls:Se,rootPrefixCls:Yt,labelRequiredMarkColor:$e,labelColor:on,labelFontSize:zn,labelHeight:en,labelColonMarginInlineStart:xe,labelColonMarginInlineEnd:vn,itemMarginBottom:Wn}=_t;return{[Ze]:Object.assign(Object.assign({},(0,we.Wf)(_t)),{marginBottom:Wn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Yt}-row`]:{display:"none"},"&-has-warning":{[`${Ze}-split`]:{color:_t.colorError}},"&-has-error":{[`${Ze}-split`]:{color:_t.colorWarning}},[`${Ze}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${_t.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:en,color:on,fontSize:zn,[`> ${tn}`]:{fontSize:_t.fontSize,verticalAlign:"top"},[`&${Ze}-required:not(${Ze}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:_t.marginXXS,color:$e,fontSize:_t.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Se}-hide-required-mark &`]:{display:"none"}},[`${Ze}-optional`]:{display:"inline-block",marginInlineStart:_t.marginXXS,color:_t.colorTextDescription,[`${Se}-hide-required-mark &`]:{display:"none"}},[`${Ze}-tooltip`]:{color:_t.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:_t.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:xe,marginInlineEnd:vn},[`&${Ze}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ze}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Yt}-col-'"]):not([class*="' ${Yt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:_t.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ze]:{"&-explain, &-extra":{clear:"both",color:_t.colorTextDescription,fontSize:_t.fontSize,lineHeight:_t.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:_t.controlHeightSM,transition:`color ${_t.motionDurationMid} ${_t.motionEaseOut}`},"&-explain":{"&-error":{color:_t.colorError},"&-warning":{color:_t.colorWarning}}},[`&-with-help ${Ze}-explain`]:{height:"auto",opacity:1},[`${Ze}-feedback-icon`]:{fontSize:_t.fontSize,textAlign:"center",visibility:"visible",animationName:oe.kr,animationDuration:_t.motionDurationMid,animationTimingFunction:_t.motionEaseOutBack,pointerEvents:"none","&-success":{color:_t.colorSuccess},"&-error":{color:_t.colorError},"&-warning":{color:_t.colorWarning},"&-validating":{color:_t.colorPrimary}}})}},vt=_t=>{const{componentCls:Ze,formItemCls:tn}=_t;return{[`${Ze}-horizontal`]:{[`${tn}-label`]:{flexGrow:0},[`${tn}-control`]:{flex:"1 1 0",minWidth:0},[`${tn}-label[class$='-24'], ${tn}-label[class*='-24 ']`]:{[`& + ${tn}-control`]:{minWidth:"unset"}}}}},wt=_t=>{const{componentCls:Ze,formItemCls:tn}=_t;return{[`${Ze}-inline`]:{display:"flex",flexWrap:"wrap",[tn]:{flex:"none",marginInlineEnd:_t.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${tn}-label,
|
|
|
> ${tn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${tn}-label`]:{flex:"none"},[`${Ze}-text`]:{display:"inline-block"},[`${tn}-has-feedback`]:{display:"inline-block"}}}}},Bt=_t=>({padding:_t.verticalLabelPadding,margin:_t.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),kt=_t=>{const{componentCls:Ze,formItemCls:tn,rootPrefixCls:Se}=_t;return{[`${tn} ${tn}-label`]:Bt(_t),[Ze]:{[tn]:{flexWrap:"wrap",[`${tn}-label, ${tn}-control`]:{[`&:not([class*=" ${Se}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ot=_t=>{const{componentCls:Ze,formItemCls:tn,rootPrefixCls:Se}=_t;return{[`${Ze}-vertical`]:{[tn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ze}-item-control`]:{width:"100%"}}},[`${Ze}-vertical ${tn}-label,
|
|
|
.${Se}-col-24${tn}-label,
|
|
|
.${Se}-col-xl-24${tn}-label`]:Bt(_t),[`@media (max-width: ${_t.screenXSMax}px)`]:[kt(_t),{[Ze]:{[`.${Se}-col-xs-24${tn}-label`]:Bt(_t)}}],[`@media (max-width: ${_t.screenSMMax}px)`]:{[Ze]:{[`.${Se}-col-sm-24${tn}-label`]:Bt(_t)}},[`@media (max-width: ${_t.screenMDMax}px)`]:{[Ze]:{[`.${Se}-col-md-24${tn}-label`]:Bt(_t)}},[`@media (max-width: ${_t.screenLGMax}px)`]:{[Ze]:{[`.${Se}-col-lg-24${tn}-label`]:Bt(_t)}}}},jt=(_t,Ze)=>(0,ye.TS)(_t,{formItemCls:`${_t.componentCls}-item`,rootPrefixCls:Ze});var Xt=(0,Re.Z)("Form",(_t,Ze)=>{let{rootPrefixCls:tn}=Ze;const Se=jt(_t,tn);return[st(Se),gt(Se),et(Se),vt(Se),wt(Se),Ot(Se),(0,ve.Z)(Se),oe.kr]},_t=>({labelRequiredMarkColor:_t.colorError,labelColor:_t.colorTextHeading,labelFontSize:_t.fontSize,labelHeight:_t.controlHeight,labelColonMarginInlineStart:_t.marginXXS/2,labelColonMarginInlineEnd:_t.marginXS,itemMarginBottom:_t.marginLG,verticalLabelPadding:`0 0 ${_t.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Ut=[];function de(_t,Ze,tn){let Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof _t=="string"?_t:`${Ze}-${Se}`,error:_t,errorStatus:tn}}var Ve=_t=>{let{help:Ze,helpStatus:tn,errors:Se=Ut,warnings:Yt=Ut,className:$e,fieldId:on,onVisibleChanged:zn}=_t;const{prefixCls:en}=Vt.useContext(Ft.Rk),xe=`${en}-item-explain`,[,vn]=Xt(en),Wn=(0,Vt.useMemo)(()=>(0,fe.Z)(en),[en]),qn=ze(Se),We=ze(Yt),fn=Vt.useMemo(()=>Ze!=null?[de(Ze,"help",tn)]:[].concat((0,Ct.Z)(qn.map((an,_e)=>de(an,"error","error",_e))),(0,Ct.Z)(We.map((an,_e)=>de(an,"warning","warning",_e)))),[Ze,tn,qn,We]),Ie={};return on&&(Ie.id=`${on}_help`),Vt.createElement(Ne.default,{motionDeadline:Wn.motionDeadline,motionName:`${en}-show-help`,visible:!!fn.length,onVisibleChanged:zn},an=>{const{className:_e,style:rn}=an;return Vt.createElement("div",Object.assign({},Ie,{className:ee()(xe,_e,$e,vn),style:rn,role:"alert"}),Vt.createElement(Ne.CSSMotionList,Object.assign({keys:fn},(0,fe.Z)(en),{motionName:`${en}-show-help-item`,component:!1}),pn=>{const{key:Cn,error:kn,errorStatus:In,className:wn,style:Kn}=pn;return Vt.createElement("div",{key:Cn,className:ee()(wn,{[`${xe}-${In}`]:In}),style:Kn},kn)}))})},me=St(95013),sn=St(36355),qe=St(1684),Ye=St(52946),je=St(19716),hn=St(16722);const ge=["parentNode"],Ht="form_item";function Ce(_t){return _t===void 0||_t===!1?[]:Array.isArray(_t)?_t:[_t]}function bn(_t,Ze){if(!_t.length)return;const tn=_t.join("_");return Ze?`${Ze}_${tn}`:ge.includes(tn)?`${Ht}_${tn}`:tn}function yn(_t,Ze,tn,Se,Yt,$e){let on=Se;return $e!==void 0?on=$e:tn.validating?on="validating":_t.length?on="error":Ze.length?on="warning":(tn.touched||Yt&&tn.validated)&&(on="success"),on}function Ae(_t){return Ce(_t).join("_")}function Ue(_t){const[Ze]=(0,me.useForm)(),tn=Vt.useRef({}),Se=Vt.useMemo(()=>_t!=null?_t:Object.assign(Object.assign({},Ze),{__INTERNAL__:{itemRef:Yt=>$e=>{const on=Ae(Yt);$e?tn.current[on]=$e:delete tn.current[on]}},scrollToField:function(Yt){let $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const on=Ce(Yt),zn=bn(on,Se.__INTERNAL__.name),en=zn?document.getElementById(zn):null;en&&(0,hn.Z)(en,Object.assign({scrollMode:"if-needed",block:"nearest"},$e))},getFieldInstance:Yt=>{const $e=Ae(Yt);return tn.current[$e]}}),[_t,Ze]);return[Se]}var Sn=St(28726),Xn=function(_t,Ze){var tn={};for(var Se in _t)Object.prototype.hasOwnProperty.call(_t,Se)&&Ze.indexOf(Se)<0&&(tn[Se]=_t[Se]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Se=Object.getOwnPropertySymbols(_t);Yt<Se.length;Yt++)Ze.indexOf(Se[Yt])<0&&Object.prototype.propertyIsEnumerable.call(_t,Se[Yt])&&(tn[Se[Yt]]=_t[Se[Yt]]);return tn};const Pn=(_t,Ze)=>{const tn=Vt.useContext(qe.Z),{getPrefixCls:Se,direction:Yt,form:$e}=Vt.useContext(sn.E_),{prefixCls:on,className:zn,rootClassName:en,size:xe,disabled:vn=tn,form:Wn,colon:qn,labelAlign:We,labelWrap:fn,labelCol:Ie,wrapperCol:an,hideRequiredMark:_e,layout:rn="horizontal",scrollToFirstError:pn,requiredMark:Cn,onFinishFailed:kn,name:In,style:wn,feedbackIcons:Kn}=_t,Ci=Xn(_t,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Wi=(0,je.Z)(xe),Li=Vt.useContext(Sn.Z),Be=(0,Vt.useMemo)(()=>Cn!==void 0?Cn:$e&&$e.requiredMark!==void 0?$e.requiredMark:!_e,[_e,Cn,$e]),ei=qn!=null?qn:$e==null?void 0:$e.colon,Si=Se("form",on),[ci,Hi]=Xt(Si),Ni=ee()(Si,`${Si}-${rn}`,{[`${Si}-hide-required-mark`]:Be===!1,[`${Si}-rtl`]:Yt==="rtl",[`${Si}-${Wi}`]:Wi},Hi,$e==null?void 0:$e.className,zn,en),[Ui]=Ue(Wn),{__INTERNAL__:Ii}=Ui;Ii.name=In;const bi=(0,Vt.useMemo)(()=>({name:In,labelAlign:We,labelCol:Ie,labelWrap:fn,wrapperCol:an,vertical:rn==="vertical",colon:ei,requiredMark:Be,itemRef:Ii.itemRef,form:Ui,feedbackIcons:Kn}),[In,We,Ie,an,rn,ei,Be,Ui,Kn]);Vt.useImperativeHandle(Ze,()=>Ui);const eo=(Fo,Ln)=>{if(Fo){let po={block:"nearest"};typeof Fo=="object"&&(po=Fo),Ui.scrollToField(Ln,po)}},xn=Fo=>{if(kn==null||kn(Fo),Fo.errorFields.length){const Ln=Fo.errorFields[0].name;if(pn!==void 0){eo(pn,Ln);return}$e&&$e.scrollToFirstError!==void 0&&eo($e.scrollToFirstError,Ln)}};return ci(Vt.createElement(qe.n,{disabled:vn},Vt.createElement(Ye.q,{size:Wi},Vt.createElement(Ft.RV,Object.assign({},{validateMessages:Li}),Vt.createElement(Ft.q3.Provider,{value:bi},Vt.createElement(me.default,Object.assign({id:In},Ci,{name:In,onFinishFailed:xn,form:Ui,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),wn),className:Ni})))))))};var Ee=Vt.forwardRef(Pn),Jn=St(12383),ai=St(20475),ui=St(92343),ln=St(38298);function Te(_t){if(typeof _t=="function")return _t;const Ze=(0,ln.Z)(_t);return Ze.length<=1?Ze[0]:Ze}const Me=()=>{const{status:_t,errors:Ze=[],warnings:tn=[]}=(0,Vt.useContext)(Ft.aM);return{status:_t,errors:Ze,warnings:tn}};Me.Context=Ft.aM;var ie=Me,Kt=St(23073);function Oe(_t){const[Ze,tn]=Vt.useState(_t),Se=(0,Vt.useRef)(null),Yt=(0,Vt.useRef)([]),$e=(0,Vt.useRef)(!1);Vt.useEffect(()=>($e.current=!1,()=>{$e.current=!0,Kt.Z.cancel(Se.current),Se.current=null}),[]);function on(zn){$e.current||(Se.current===null&&(Yt.current=[],Se.current=(0,Kt.Z)(()=>{Se.current=null,tn(en=>{let xe=en;return Yt.current.forEach(vn=>{xe=vn(xe)}),xe})})),Yt.current.push(zn))}return[Ze,on]}function ke(){const{itemRef:_t}=Vt.useContext(Ft.q3),Ze=Vt.useRef({});function tn(Se,Yt){const $e=Yt&&typeof Yt=="object"&&Yt.ref,on=Se.join("_");return(Ze.current.name!==on||Ze.current.originRef!==$e)&&(Ze.current.name=on,Ze.current.originRef=$e,Ze.current.ref=(0,ai.sQ)(_t(Se),$e)),Ze.current.ref}return tn}var te=St(48886),qt=St(28800),Dt=St(64002),xt=St(27382),mt=St(37028);const Mt=_t=>{const{formItemCls:Ze}=_t;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ze}-control`]:{display:"flex"}}}};var Rt=(0,Re.b)(["Form","item-item"],(_t,Ze)=>{let{rootPrefixCls:tn}=Ze;const Se=jt(_t,tn);return[Mt(Se)]}),re=_t=>{const{prefixCls:Ze,status:tn,wrapperCol:Se,children:Yt,errors:$e,warnings:on,_internalItemRender:zn,extra:en,help:xe,fieldId:vn,marginBottom:Wn,onErrorVisibleChanged:qn}=_t,We=`${Ze}-item`,fn=Vt.useContext(Ft.q3),Ie=Se||fn.wrapperCol||{},an=ee()(`${We}-control`,Ie.className),_e=Vt.useMemo(()=>Object.assign({},fn),[fn]);delete _e.labelCol,delete _e.wrapperCol;const rn=Vt.createElement("div",{className:`${We}-control-input`},Vt.createElement("div",{className:`${We}-control-input-content`},Yt)),pn=Vt.useMemo(()=>({prefixCls:Ze,status:tn}),[Ze,tn]),Cn=Wn!==null||$e.length||on.length?Vt.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Vt.createElement(Ft.Rk.Provider,{value:pn},Vt.createElement(Ve,{fieldId:vn,errors:$e,warnings:on,help:xe,helpStatus:tn,className:`${We}-explain-connected`,onVisibleChanged:qn})),!!Wn&&Vt.createElement("div",{style:{width:0,height:Wn}})):null,kn={};vn&&(kn.id=`${vn}_extra`);const In=en?Vt.createElement("div",Object.assign({},kn,{className:`${We}-extra`}),en):null,wn=zn&&zn.mark==="pro_table_render"&&zn.render?zn.render(_t,{input:rn,errorList:Cn,extra:In}):Vt.createElement(Vt.Fragment,null,rn,Cn,In);return Vt.createElement(Ft.q3.Provider,{value:_e},Vt.createElement(mt.Z,Object.assign({},Ie,{className:an}),wn),Vt.createElement(Rt,{prefixCls:Ze}))},Qe=St(86902),mn=St(31724),le=St(9763),Ge=St(6848),cn=function(_t,Ze){var tn={};for(var Se in _t)Object.prototype.hasOwnProperty.call(_t,Se)&&Ze.indexOf(Se)<0&&(tn[Se]=_t[Se]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Se=Object.getOwnPropertySymbols(_t);Yt<Se.length;Yt++)Ze.indexOf(Se[Yt])<0&&Object.prototype.propertyIsEnumerable.call(_t,Se[Yt])&&(tn[Se[Yt]]=_t[Se[Yt]]);return tn};function Mn(_t){return _t?typeof _t=="object"&&!Vt.isValidElement(_t)?_t:{title:_t}:null}var _n=_t=>{let{prefixCls:Ze,label:tn,htmlFor:Se,labelCol:Yt,labelAlign:$e,colon:on,required:zn,requiredMark:en,tooltip:xe}=_t;var vn;const[Wn]=(0,le.Z)("Form"),{vertical:qn,labelAlign:We,labelCol:fn,labelWrap:Ie,colon:an}=Vt.useContext(Ft.q3);if(!tn)return null;const _e=Yt||fn||{},rn=$e||We,pn=`${Ze}-item-label`,Cn=ee()(pn,rn==="left"&&`${pn}-left`,_e.className,{[`${pn}-wrap`]:!!Ie});let kn=tn;const In=on===!0||an!==!1&&on!==!1;In&&!qn&&typeof tn=="string"&&tn.trim()!==""&&(kn=tn.replace(/[:|:]\s*$/,""));const Kn=Mn(xe);if(Kn){const{icon:Be=Vt.createElement(Qe.Z,null)}=Kn,ei=cn(Kn,["icon"]),Si=Vt.createElement(Ge.Z,Object.assign({},ei),Vt.cloneElement(Be,{className:`${Ze}-item-tooltip`,title:""}));kn=Vt.createElement(Vt.Fragment,null,kn,Si)}const Ci=en==="optional",Wi=typeof en=="function";Wi?kn=en(kn,{required:!!zn}):Ci&&!zn&&(kn=Vt.createElement(Vt.Fragment,null,kn,Vt.createElement("span",{className:`${Ze}-item-optional`,title:""},(Wn==null?void 0:Wn.optional)||((vn=mn.Z.Form)===null||vn===void 0?void 0:vn.optional))));const Li=ee()({[`${Ze}-item-required`]:zn,[`${Ze}-item-required-mark-optional`]:Ci||Wi,[`${Ze}-item-no-colon`]:!In});return Vt.createElement(mt.Z,Object.assign({},_e,{className:Cn}),Vt.createElement("label",{htmlFor:Se,className:Li,title:typeof tn=="string"?tn:""},kn))},di=St(79999),ri=St(33130),Fi=St(85404),Zi=St(50023);const Vi={success:di.Z,warning:Fi.Z,error:ri.Z,validating:Zi.Z};function ji(_t){let{children:Ze,errors:tn,warnings:Se,hasFeedback:Yt,validateStatus:$e,prefixCls:on,meta:zn,noStyle:en}=_t;const xe=`${on}-item`,{feedbackIcons:vn}=Vt.useContext(Ft.q3),Wn=yn(tn,Se,zn,null,!!Yt,$e),{isFormItemInput:qn,status:We}=Vt.useContext(Ft.aM),fn=Vt.useMemo(()=>{var Ie;let an;if(Yt){const pn=Yt!==!0&&Yt.icons||vn,Cn=Wn&&((Ie=pn==null?void 0:pn({status:Wn,errors:tn,warnings:Se}))===null||Ie===void 0?void 0:Ie[Wn]),kn=Wn&&Vi[Wn];an=Cn!==!1&&kn?Vt.createElement("span",{className:ee()(`${xe}-feedback-icon`,`${xe}-feedback-icon-${Wn}`)},Cn||Vt.createElement(kn,null)):null}let _e=!0,rn=Wn||"";return en&&(_e=qn,rn=(Wn!=null?Wn:We)||""),{status:rn,errors:tn,warnings:Se,hasFeedback:!!Yt,feedbackIcon:an,isFormItemInput:_e}},[Wn,Yt,en,qn,We]);return Vt.createElement(Ft.aM.Provider,{value:fn},Ze)}var qi=function(_t,Ze){var tn={};for(var Se in _t)Object.prototype.hasOwnProperty.call(_t,Se)&&Ze.indexOf(Se)<0&&(tn[Se]=_t[Se]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Se=Object.getOwnPropertySymbols(_t);Yt<Se.length;Yt++)Ze.indexOf(Se[Yt])<0&&Object.prototype.propertyIsEnumerable.call(_t,Se[Yt])&&(tn[Se[Yt]]=_t[Se[Yt]]);return tn};function wo(_t){const{prefixCls:Ze,className:tn,rootClassName:Se,style:Yt,help:$e,errors:on,warnings:zn,validateStatus:en,meta:xe,hasFeedback:vn,hidden:Wn,children:qn,fieldId:We,required:fn,isRequired:Ie,onSubItemMetaChange:an}=_t,_e=qi(_t,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),rn=`${Ze}-item`,{requiredMark:pn}=Vt.useContext(Ft.q3),Cn=Vt.useRef(null),kn=ze(on),In=ze(zn),wn=$e!=null,Kn=!!(wn||on.length||zn.length),Ci=!!Cn.current&&(0,te.Z)(Cn.current),[Wi,Li]=Vt.useState(null);(0,qt.Z)(()=>{if(Kn&&Cn.current){const Hi=getComputedStyle(Cn.current);Li(parseInt(Hi.marginBottom,10))}},[Kn,Ci]);const Be=Hi=>{Hi||Li(null)},Si=function(){let Hi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ni=Hi?kn:xe.errors,Ui=Hi?In:xe.warnings;return yn(Ni,Ui,xe,"",!!vn,en)}(),ci=ee()(rn,tn,Se,{[`${rn}-with-help`]:wn||kn.length||In.length,[`${rn}-has-feedback`]:Si&&vn,[`${rn}-has-success`]:Si==="success",[`${rn}-has-warning`]:Si==="warning",[`${rn}-has-error`]:Si==="error",[`${rn}-is-validating`]:Si==="validating",[`${rn}-hidden`]:Wn});return Vt.createElement("div",{className:ci,style:Yt,ref:Cn},Vt.createElement(xt.Z,Object.assign({className:`${rn}-row`},(0,Dt.Z)(_e,["_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"])),Vt.createElement(_n,Object.assign({htmlFor:We},_t,{requiredMark:pn,required:fn!=null?fn:Ie,prefixCls:Ze})),Vt.createElement(re,Object.assign({},_t,xe,{errors:kn,warnings:In,prefixCls:Ze,status:Si,help:$e,marginBottom:Wi,onErrorVisibleChanged:Be}),Vt.createElement(Ft.qI.Provider,{value:an},Vt.createElement(ji,{prefixCls:Ze,meta:xe,errors:xe.errors,warnings:xe.warnings,hasFeedback:vn,validateStatus:Si},qn)))),!!Wi&&Vt.createElement("div",{className:`${rn}-margin-offset`,style:{marginBottom:-Wi}}))}const Ei="__SPLIT__",Po=null,ki=Vt.memo(_t=>{let{children:Ze}=_t;return Ze},(_t,Ze)=>_t.value===Ze.value&&_t.update===Ze.update&&_t.childProps.length===Ze.childProps.length&&_t.childProps.every((tn,Se)=>tn===Ze.childProps[Se]));function Lt(_t){return _t!=null}function Mo(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function $i(_t){const{name:Ze,noStyle:tn,className:Se,dependencies:Yt,prefixCls:$e,shouldUpdate:on,rules:zn,children:en,required:xe,label:vn,messageVariables:Wn,trigger:qn="onChange",validateTrigger:We,hidden:fn,help:Ie}=_t,{getPrefixCls:an}=Vt.useContext(sn.E_),{name:_e}=Vt.useContext(Ft.q3),rn=Te(en),pn=typeof rn=="function",Cn=Vt.useContext(Ft.qI),{validateTrigger:kn}=Vt.useContext(me.FieldContext),In=We!==void 0?We:kn,wn=Lt(Ze),Kn=an("form",$e),[Ci,Wi]=Xt(Kn),Li=Vt.useContext(me.ListContext),Be=Vt.useRef(),[ei,Si]=Oe({}),[ci,Hi]=(0,Jn.Z)(()=>Mo()),Ni=Ln=>{const po=Li==null?void 0:Li.getKey(Ln.name);if(Hi(Ln.destroy?Mo():Ln,!0),tn&&Ie!==!1&&Cn){let Go=Ln.name;if(Ln.destroy)Go=Be.current||Go;else if(po!==void 0){const[Yi,nr]=po;Go=[Yi].concat((0,Ct.Z)(nr)),Be.current=Go}Cn(Ln,Go)}},Ui=(Ln,po)=>{Si(Go=>{const Yi=Object.assign({},Go),Bo=[].concat((0,Ct.Z)(Ln.name.slice(0,-1)),(0,Ct.Z)(po)).join(Ei);return Ln.destroy?delete Yi[Bo]:Yi[Bo]=Ln,Yi})},[Ii,bi]=Vt.useMemo(()=>{const Ln=(0,Ct.Z)(ci.errors),po=(0,Ct.Z)(ci.warnings);return Object.values(ei).forEach(Go=>{Ln.push.apply(Ln,(0,Ct.Z)(Go.errors||[])),po.push.apply(po,(0,Ct.Z)(Go.warnings||[]))}),[Ln,po]},[ei,ci.errors,ci.warnings]),eo=ke();function xn(Ln,po,Go){return tn&&!fn?Vt.createElement(ji,{prefixCls:Kn,hasFeedback:_t.hasFeedback,validateStatus:_t.validateStatus,meta:ci,errors:Ii,warnings:bi,noStyle:!0},Ln):Vt.createElement(wo,Object.assign({key:"row"},_t,{className:ee()(Se,Wi),prefixCls:Kn,fieldId:po,isRequired:Go,errors:Ii,warnings:bi,meta:ci,onSubItemMetaChange:Ui}),Ln)}if(!wn&&!pn&&!Yt)return Ci(xn(rn));let Fo={};return typeof vn=="string"?Fo.label=vn:Ze&&(Fo.label=String(Ze)),Wn&&(Fo=Object.assign(Object.assign({},Fo),Wn)),Ci(Vt.createElement(me.Field,Object.assign({},_t,{messageVariables:Fo,trigger:qn,validateTrigger:In,onMetaChange:Ni}),(Ln,po,Go)=>{const Yi=Ce(Ze).length&&po?po.name:[],nr=bn(Yi,_e),Bo=xe!==void 0?xe:!!(zn&&zn.some(bo=>{if(bo&&typeof bo=="object"&&bo.required&&!bo.warningOnly)return!0;if(typeof bo=="function"){const Do=bo(Go);return Do&&Do.required&&!Do.warningOnly}return!1})),Ti=Object.assign({},Ln);let Oi=null;if(Array.isArray(rn)&&wn)Oi=rn;else if(!(pn&&(!(on||Yt)||wn))){if(!(Yt&&!pn&&!wn))if((0,ui.l$)(rn)){const bo=Object.assign(Object.assign({},rn.props),Ti);if(bo.id||(bo.id=nr),Ie||Ii.length>0||bi.length>0||_t.extra){const Zt=[];(Ie||Ii.length>0)&&Zt.push(`${nr}_help`),_t.extra&&Zt.push(`${nr}_extra`),bo["aria-describedby"]=Zt.join(" ")}Ii.length>0&&(bo["aria-invalid"]="true"),Bo&&(bo["aria-required"]="true"),(0,ai.Yr)(rn)&&(bo.ref=eo(Yi,rn)),new Set([].concat((0,Ct.Z)(Ce(qn)),(0,Ct.Z)(Ce(In)))).forEach(Zt=>{bo[Zt]=function(){for(var Co,xr,yo,yr,_i,Ji=arguments.length,Zo=new Array(Ji),rr=0;rr<Ji;rr++)Zo[rr]=arguments[rr];(yo=Ti[Zt])===null||yo===void 0||(Co=yo).call.apply(Co,[Ti].concat(Zo)),(_i=(yr=rn.props)[Zt])===null||_i===void 0||(xr=_i).call.apply(xr,[yr].concat(Zo))}});const si=[bo["aria-required"],bo["aria-invalid"],bo["aria-describedby"]];Oi=Vt.createElement(ki,{value:Ti[_t.valuePropName||"value"],update:rn,childProps:si},(0,ui.Tm)(rn,bo))}else pn&&(on||Yt)&&!wn?Oi=rn(Go):Oi=rn}return xn(Oi,nr,Bo)}))}const En=$i;En.useStatus=ie;var hi=En,gi=function(_t,Ze){var tn={};for(var Se in _t)Object.prototype.hasOwnProperty.call(_t,Se)&&Ze.indexOf(Se)<0&&(tn[Se]=_t[Se]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,Se=Object.getOwnPropertySymbols(_t);Yt<Se.length;Yt++)Ze.indexOf(Se[Yt])<0&&Object.prototype.propertyIsEnumerable.call(_t,Se[Yt])&&(tn[Se[Yt]]=_t[Se[Yt]]);return tn},Rn=_t=>{var{prefixCls:Ze,children:tn}=_t,Se=gi(_t,["prefixCls","children"]);const{getPrefixCls:Yt}=Vt.useContext(sn.E_),$e=Yt("form",Ze),on=Vt.useMemo(()=>({prefixCls:$e,status:"error"}),[$e]);return Vt.createElement(me.List,Object.assign({},Se),(zn,en,xe)=>Vt.createElement(Ft.Rk.Provider,{value:on},tn(zn.map(vn=>Object.assign(Object.assign({},vn),{fieldKey:vn.key})),en,{errors:xe.errors,warnings:xe.warnings})))};function Le(){const{form:_t}=(0,Vt.useContext)(Ft.q3);return _t}const Fe=Ee;Fe.Item=hi,Fe.List=Rn,Fe.ErrorList=Ve,Fe.useForm=Ue,Fe.useFormInstance=Le,Fe.useWatch=me.useWatch,Fe.Provider=Ft.RV,Fe.create=()=>{};var he=Fe},8628:function(Dn,An,St){"use strict";var Ct=St(59301),It=St(28800),ee=St(56762),Ne=St(69507);function Vt(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const Ft=(0,Ct.useRef)({}),ze=(0,ee.Z)(),we=(0,Ne.ZP)();return(0,It.Z)(()=>{const oe=we.subscribe(ve=>{Ft.current=ve,fe&&ze()});return()=>we.unsubscribe(oe)},[]),Ft.current}An.Z=Vt},9432:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return gt},n:function(){return ht}});var Ct=St(33130),It=St(92310),ee=St.n(It),Ne=St(93681),Vt=St(20475),fe=St(59301),Ft=St(19080),ze=St(36355),we=St(1684),oe=St(19716),ve=St(32441),ye=St(33234),Re=St(59412),Tt=St(9937);function et(vt){return!!(vt.prefix||vt.suffix||vt.allowClear)}var nt=function(vt,wt){var Bt={};for(var kt in vt)Object.prototype.hasOwnProperty.call(vt,kt)&&wt.indexOf(kt)<0&&(Bt[kt]=vt[kt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,kt=Object.getOwnPropertySymbols(vt);Ot<kt.length;Ot++)wt.indexOf(kt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(vt,kt[Ot])&&(Bt[kt[Ot]]=vt[kt[Ot]]);return Bt};function ht(vt,wt){if(!vt)return;vt.focus(wt);const{cursor:Bt}=wt||{};if(Bt){const kt=vt.value.length;switch(Bt){case"start":vt.setSelectionRange(0,0);break;case"end":vt.setSelectionRange(kt,kt);break;default:vt.setSelectionRange(0,kt);break}}}var gt=(0,fe.forwardRef)((vt,wt)=>{var Bt;const{prefixCls:kt,bordered:Ot=!0,status:jt,size:Xt,disabled:Ut,onBlur:de,onFocus:Gt,suffix:Ve,allowClear:me,addonAfter:sn,addonBefore:qe,className:Ye,style:je,styles:hn,rootClassName:ge,onChange:Ht,classNames:Ce}=vt,bn=nt(vt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:yn,direction:Ae,input:Ue}=fe.useContext(ze.E_),Sn=yn("input",kt),Xn=(0,fe.useRef)(null),[Pn,Gn]=(0,Tt.ZP)(Sn),{compactSize:Ee,compactItemClassnames:Jn}=(0,ye.ri)(Sn,Ae),ai=(0,oe.Z)(Rt=>{var Et;return(Et=Xt!=null?Xt:Ee)!==null&&Et!==void 0?Et:Rt}),ui=fe.useContext(we.Z),ln=Ut!=null?Ut:ui,{status:Te,hasFeedback:Me,feedbackIcon:ie}=(0,fe.useContext)(ve.aM),Kt=(0,Ft.F)(Te,jt),Oe=et(vt)||!!Me,ke=(0,fe.useRef)(Oe);(0,fe.useEffect)(()=>{var Rt;Oe&&ke.current,ke.current=Oe},[Oe]);const te=(0,Re.Z)(Xn,!0),qt=Rt=>{te(),de==null||de(Rt)},Dt=Rt=>{te(),Gt==null||Gt(Rt)},xt=Rt=>{te(),Ht==null||Ht(Rt)},mt=(Me||Ve)&&fe.createElement(fe.Fragment,null,Ve,Me&&ie);let Mt;return typeof me=="object"&&(me!=null&&me.clearIcon)?Mt=me:me&&(Mt={clearIcon:fe.createElement(Ct.Z,null)}),Pn(fe.createElement(Ne.default,Object.assign({ref:(0,Vt.sQ)(wt,Xn),prefixCls:Sn,autoComplete:Ue==null?void 0:Ue.autoComplete},bn,{disabled:ln,onBlur:qt,onFocus:Dt,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),je),styles:Object.assign(Object.assign({},Ue==null?void 0:Ue.styles),hn),suffix:mt,allowClear:Mt,className:ee()(Ye,ge,Jn,Ue==null?void 0:Ue.className),onChange:xt,addonAfter:sn&&fe.createElement(ye.BR,null,fe.createElement(ve.Ux,{override:!0,status:!0},sn)),addonBefore:qe&&fe.createElement(ye.BR,null,fe.createElement(ve.Ux,{override:!0,status:!0},qe)),classNames:Object.assign(Object.assign(Object.assign({},Ce),Ue==null?void 0:Ue.classNames),{input:ee()({[`${Sn}-sm`]:ai==="small",[`${Sn}-lg`]:ai==="large",[`${Sn}-rtl`]:Ae==="rtl",[`${Sn}-borderless`]:!Ot},!Oe&&(0,Ft.Z)(Sn,Kt),Ce==null?void 0:Ce.input,(Bt=Ue==null?void 0:Ue.classNames)===null||Bt===void 0?void 0:Bt.input,Gn)}),classes:{affixWrapper:ee()({[`${Sn}-affix-wrapper-sm`]:ai==="small",[`${Sn}-affix-wrapper-lg`]:ai==="large",[`${Sn}-affix-wrapper-rtl`]:Ae==="rtl",[`${Sn}-affix-wrapper-borderless`]:!Ot},(0,Ft.Z)(`${Sn}-affix-wrapper`,Kt,Me),Gn),wrapper:ee()({[`${Sn}-group-rtl`]:Ae==="rtl"},Gn),group:ee()({[`${Sn}-group-wrapper-sm`]:ai==="small",[`${Sn}-group-wrapper-lg`]:ai==="large",[`${Sn}-group-wrapper-rtl`]:Ae==="rtl",[`${Sn}-group-wrapper-disabled`]:ln},(0,Ft.Z)(`${Sn}-group-wrapper`,Kt,Me),Gn)}})))})},1643:function(Dn,An,St){"use strict";var Ct=St(33130),It=St(92310),ee=St.n(It),Ne=St(9296),Vt=St(59301),fe=St(19080),Ft=St(36355),ze=St(1684),we=St(19716),oe=St(32441),ve=St(9432),ye=St(9937),Re=function(et,nt){var ht={};for(var st in et)Object.prototype.hasOwnProperty.call(et,st)&&nt.indexOf(st)<0&&(ht[st]=et[st]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,st=Object.getOwnPropertySymbols(et);gt<st.length;gt++)nt.indexOf(st[gt])<0&&Object.prototype.propertyIsEnumerable.call(et,st[gt])&&(ht[st[gt]]=et[st[gt]]);return ht};const Tt=(0,Vt.forwardRef)((et,nt)=>{const{prefixCls:ht,bordered:st=!0,size:gt,disabled:vt,status:wt,allowClear:Bt,showCount:kt,classNames:Ot,rootClassName:jt,className:Xt}=et,Ut=Re(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:de,direction:Gt}=Vt.useContext(Ft.E_),Ve=(0,we.Z)(gt),me=Vt.useContext(ze.Z),sn=vt!=null?vt:me,{status:qe,hasFeedback:Ye,feedbackIcon:je}=Vt.useContext(oe.aM),hn=(0,fe.F)(qe,wt),ge=Vt.useRef(null);Vt.useImperativeHandle(nt,()=>{var Ae;return{resizableTextArea:(Ae=ge.current)===null||Ae===void 0?void 0:Ae.resizableTextArea,focus:Ue=>{var Sn,Xn;(0,ve.n)((Xn=(Sn=ge.current)===null||Sn===void 0?void 0:Sn.resizableTextArea)===null||Xn===void 0?void 0:Xn.textArea,Ue)},blur:()=>{var Ue;return(Ue=ge.current)===null||Ue===void 0?void 0:Ue.blur()}}});const Ht=de("input",ht);let Ce;typeof Bt=="object"&&(Bt!=null&&Bt.clearIcon)?Ce=Bt:Bt&&(Ce={clearIcon:Vt.createElement(Ct.Z,null)});const[bn,yn]=(0,ye.ZP)(Ht);return bn(Vt.createElement(Ne.default,Object.assign({},Ut,{disabled:sn,allowClear:Ce,className:ee()(Xt,jt),classes:{affixWrapper:ee()(`${Ht}-textarea-affix-wrapper`,{[`${Ht}-affix-wrapper-rtl`]:Gt==="rtl",[`${Ht}-affix-wrapper-borderless`]:!st,[`${Ht}-affix-wrapper-sm`]:Ve==="small",[`${Ht}-affix-wrapper-lg`]:Ve==="large",[`${Ht}-textarea-show-count`]:kt},(0,fe.Z)(`${Ht}-affix-wrapper`,hn),yn)},classNames:Object.assign(Object.assign({},Ot),{textarea:ee()({[`${Ht}-borderless`]:!st,[`${Ht}-sm`]:Ve==="small",[`${Ht}-lg`]:Ve==="large"},(0,fe.Z)(Ht,hn),yn,Ot==null?void 0:Ot.textarea)}),prefixCls:Ht,suffix:Ye&&Vt.createElement("span",{className:`${Ht}-textarea-suffix`},je),showCount:kt,ref:ge})))});An.Z=Tt},59412:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return It}});var Ct=St(59301);function It(ee,Ne){const Vt=(0,Ct.useRef)([]),fe=()=>{Vt.current.push(setTimeout(()=>{var Ft,ze,we,oe;!((Ft=ee.current)===null||Ft===void 0)&&Ft.input&&((ze=ee.current)===null||ze===void 0?void 0:ze.input.getAttribute("type"))==="password"&&(!((we=ee.current)===null||we===void 0)&&we.input.hasAttribute("value"))&&((oe=ee.current)===null||oe===void 0||oe.input.removeAttribute("value"))}))};return(0,Ct.useEffect)(()=>(Ne&&fe(),()=>Vt.current.forEach(Ft=>{Ft&&clearTimeout(Ft)})),[]),fe}},92832:function(Dn,An,St){"use strict";St.d(An,{default:function(){return Ve}});var Ct=St(92310),It=St.n(Ct),ee=St(59301),Ne=St(36355),Vt=St(32441),fe=St(9937),ze=me=>{const{getPrefixCls:sn,direction:qe}=(0,ee.useContext)(Ne.E_),{prefixCls:Ye,className:je}=me,hn=sn("input-group",Ye),ge=sn("input"),[Ht,Ce]=(0,fe.ZP)(ge),bn=It()(hn,{[`${hn}-lg`]:me.size==="large",[`${hn}-sm`]:me.size==="small",[`${hn}-compact`]:me.compact,[`${hn}-rtl`]:qe==="rtl"},Ce,je),yn=(0,ee.useContext)(Vt.aM),Ae=(0,ee.useMemo)(()=>Object.assign(Object.assign({},yn),{isFormItemInput:!1}),[yn]);return Ht(ee.createElement("span",{className:bn,style:me.style,onMouseEnter:me.onMouseEnter,onMouseLeave:me.onMouseLeave,onFocus:me.onFocus,onBlur:me.onBlur},ee.createElement(Vt.aM.Provider,{value:Ae},me.children)))},we=St(9432),oe=St(61441),ve=St(30631),ye=St(64002),Re=St(20475),Tt=St(59412),et=function(me,sn){var qe={};for(var Ye in me)Object.prototype.hasOwnProperty.call(me,Ye)&&sn.indexOf(Ye)<0&&(qe[Ye]=me[Ye]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ye=Object.getOwnPropertySymbols(me);je<Ye.length;je++)sn.indexOf(Ye[je])<0&&Object.prototype.propertyIsEnumerable.call(me,Ye[je])&&(qe[Ye[je]]=me[Ye[je]]);return qe};const nt=me=>me?ee.createElement(ve.Z,null):ee.createElement(oe.Z,null),ht={click:"onClick",hover:"onMouseOver"};var gt=ee.forwardRef((me,sn)=>{const{visibilityToggle:qe=!0}=me,Ye=typeof qe=="object"&&qe.visible!==void 0,[je,hn]=(0,ee.useState)(()=>Ye?qe.visible:!1),ge=(0,ee.useRef)(null);ee.useEffect(()=>{Ye&&hn(qe.visible)},[Ye,qe]);const Ht=(0,Tt.Z)(ge),Ce=()=>{const{disabled:ln}=me;ln||(je&&Ht(),hn(Te=>{var Me;const ie=!Te;return typeof qe=="object"&&((Me=qe.onVisibleChange)===null||Me===void 0||Me.call(qe,ie)),ie}))},bn=ln=>{const{action:Te="click",iconRender:Me=nt}=me,ie=ht[Te]||"",Kt=Me(je),Oe={[ie]:Ce,className:`${ln}-icon`,key:"passwordIcon",onMouseDown:ke=>{ke.preventDefault()},onMouseUp:ke=>{ke.preventDefault()}};return ee.cloneElement(ee.isValidElement(Kt)?Kt:ee.createElement("span",null,Kt),Oe)},{className:yn,prefixCls:Ae,inputPrefixCls:Ue,size:Sn}=me,Xn=et(me,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Pn}=ee.useContext(Ne.E_),Gn=Pn("input",Ue),Ee=Pn("input-password",Ae),Jn=qe&&bn(Ee),ai=It()(Ee,yn,{[`${Ee}-${Sn}`]:!!Sn}),ui=Object.assign(Object.assign({},(0,ye.Z)(Xn,["suffix","iconRender","visibilityToggle"])),{type:je?"text":"password",className:ai,prefixCls:Gn,suffix:Jn});return Sn&&(ui.size=Sn),ee.createElement(we.Z,Object.assign({ref:(0,Re.sQ)(sn,ge)},ui))}),vt=St(21970),wt=St(92343),Bt=St(3113),kt=St(19716),Ot=St(33234),jt=function(me,sn){var qe={};for(var Ye in me)Object.prototype.hasOwnProperty.call(me,Ye)&&sn.indexOf(Ye)<0&&(qe[Ye]=me[Ye]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ye=Object.getOwnPropertySymbols(me);je<Ye.length;je++)sn.indexOf(Ye[je])<0&&Object.prototype.propertyIsEnumerable.call(me,Ye[je])&&(qe[Ye[je]]=me[Ye[je]]);return qe},Ut=ee.forwardRef((me,sn)=>{const{prefixCls:qe,inputPrefixCls:Ye,className:je,size:hn,suffix:ge,enterButton:Ht=!1,addonAfter:Ce,loading:bn,disabled:yn,onSearch:Ae,onChange:Ue,onCompositionStart:Sn,onCompositionEnd:Xn}=me,Pn=jt(me,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Gn,direction:Ee}=ee.useContext(Ne.E_),Jn=ee.useRef(!1),ai=Gn("input-search",qe),ui=Gn("input",Ye),{compactSize:ln}=(0,Ot.ri)(ai,Ee),Te=(0,kt.Z)(re=>{var Qe;return(Qe=hn!=null?hn:ln)!==null&&Qe!==void 0?Qe:re}),Me=ee.useRef(null),ie=re=>{re&&re.target&&re.type==="click"&&Ae&&Ae(re.target.value,re,{source:"clear"}),Ue&&Ue(re)},Kt=re=>{var Qe;document.activeElement===((Qe=Me.current)===null||Qe===void 0?void 0:Qe.input)&&re.preventDefault()},Oe=re=>{var Qe,mn;Ae&&Ae((mn=(Qe=Me.current)===null||Qe===void 0?void 0:Qe.input)===null||mn===void 0?void 0:mn.value,re,{source:"input"})},ke=re=>{Jn.current||bn||Oe(re)},te=typeof Ht=="boolean"?ee.createElement(vt.Z,null):null,qt=`${ai}-button`;let Dt;const xt=Ht||{},mt=xt.type&&xt.type.__ANT_BUTTON===!0;mt||xt.type==="button"?Dt=(0,wt.Tm)(xt,Object.assign({onMouseDown:Kt,onClick:re=>{var Qe,mn;(mn=(Qe=xt==null?void 0:xt.props)===null||Qe===void 0?void 0:Qe.onClick)===null||mn===void 0||mn.call(Qe,re),Oe(re)},key:"enterButton"},mt?{className:qt,size:Te}:{})):Dt=ee.createElement(Bt.ZP,{className:qt,type:Ht?"primary":void 0,size:Te,disabled:yn,key:"enterButton",onMouseDown:Kt,onClick:Oe,loading:bn,icon:te},Ht),Ce&&(Dt=[Dt,(0,wt.Tm)(Ce,{key:"addonAfter"})]);const Mt=It()(ai,{[`${ai}-rtl`]:Ee==="rtl",[`${ai}-${Te}`]:!!Te,[`${ai}-with-button`]:!!Ht},je),Rt=re=>{Jn.current=!0,Sn==null||Sn(re)},Et=re=>{Jn.current=!1,Xn==null||Xn(re)};return ee.createElement(we.Z,Object.assign({ref:(0,Re.sQ)(Me,sn),onPressEnter:ke},Pn,{size:Te,onCompositionStart:Rt,onCompositionEnd:Et,prefixCls:ui,addonAfter:Dt,suffix:ge,onChange:ie,className:Mt,disabled:yn}))}),de=St(1643);const Gt=we.Z;Gt.Group=ze,Gt.Search=Ut,Gt.TextArea=de.Z,Gt.Password=gt;var Ve=Gt},99580:function(Dn,An,St){"use strict";St.d(An,{D:function(){return vt},Z:function(){return kt}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(jt,Xt){return It.createElement(Vt.Z,(0,Ct.Z)({},jt,{ref:Xt,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft,we=St(16537),oe=St(53878),ve=St(92310),ye=St.n(ve),Re=St(64002),et=Ot=>!isNaN(parseFloat(Ot))&&isFinite(Ot),nt=St(36355),ht=St(84966),st=function(Ot,jt){var Xt={};for(var Ut in Ot)Object.prototype.hasOwnProperty.call(Ot,Ut)&&jt.indexOf(Ut)<0&&(Xt[Ut]=Ot[Ut]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ut=Object.getOwnPropertySymbols(Ot);de<Ut.length;de++)jt.indexOf(Ut[de])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Ut[de])&&(Xt[Ut[de]]=Ot[Ut[de]]);return Xt};const gt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},vt=It.createContext({}),wt=(()=>{let Ot=0;return function(){let jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ot+=1,`${jt}${Ot}`}})();var kt=It.forwardRef((Ot,jt)=>{const{prefixCls:Xt,className:Ut,trigger:de,children:Gt,defaultCollapsed:Ve=!1,theme:me="dark",style:sn={},collapsible:qe=!1,reverseArrow:Ye=!1,width:je=200,collapsedWidth:hn=80,zeroWidthTriggerStyle:ge,breakpoint:Ht,onCollapse:Ce,onBreakpoint:bn}=Ot,yn=st(Ot,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ae}=(0,It.useContext)(ht.Gs),[Ue,Sn]=(0,It.useState)("collapsed"in Ot?Ot.collapsed:Ve),[Xn,Pn]=(0,It.useState)(!1);(0,It.useEffect)(()=>{"collapsed"in Ot&&Sn(Ot.collapsed)},[Ot.collapsed]);const Gn=(Te,Me)=>{"collapsed"in Ot||Sn(Te),Ce==null||Ce(Te,Me)},Ee=(0,It.useRef)();Ee.current=Te=>{Pn(Te.matches),bn==null||bn(Te.matches),Ue!==Te.matches&&Gn(Te.matches,"responsive")},(0,It.useEffect)(()=>{function Te(ie){return Ee.current(ie)}let Me;if(typeof window!="undefined"){const{matchMedia:ie}=window;if(ie&&Ht&&Ht in gt){Me=ie(`(max-width: ${gt[Ht]})`);try{Me.addEventListener("change",Te)}catch(Kt){Me.addListener(Te)}Te(Me)}}return()=>{try{Me==null||Me.removeEventListener("change",Te)}catch(ie){Me==null||Me.removeListener(Te)}}},[Ht]),(0,It.useEffect)(()=>{const Te=wt("ant-sider-");return Ae.addSider(Te),()=>Ae.removeSider(Te)},[]);const Jn=()=>{Gn(!Ue,"clickTrigger")},{getPrefixCls:ai}=(0,It.useContext)(nt.E_),ui=()=>{const Te=ai("layout-sider",Xt),Me=(0,Re.Z)(yn,["collapsed"]),ie=Ue?hn:je,Kt=et(ie)?`${ie}px`:String(ie),Oe=parseFloat(String(hn||0))===0?It.createElement("span",{onClick:Jn,className:ye()(`${Te}-zero-width-trigger`,`${Te}-zero-width-trigger-${Ye?"right":"left"}`),style:ge},de||It.createElement(ze,null)):null,qt={expanded:Ye?It.createElement(oe.Z,null):It.createElement(we.Z,null),collapsed:Ye?It.createElement(we.Z,null):It.createElement(oe.Z,null)}[Ue?"collapsed":"expanded"],Dt=de!==null?Oe||It.createElement("div",{className:`${Te}-trigger`,onClick:Jn,style:{width:Kt}},de||qt):null,xt=Object.assign(Object.assign({},sn),{flex:`0 0 ${Kt}`,maxWidth:Kt,minWidth:Kt,width:Kt}),mt=ye()(Te,`${Te}-${me}`,{[`${Te}-collapsed`]:!!Ue,[`${Te}-has-trigger`]:qe&&de!==null&&!Oe,[`${Te}-below`]:!!Xn,[`${Te}-zero-width`]:parseFloat(Kt)===0},Ut);return It.createElement("aside",Object.assign({className:mt},Me,{style:xt,ref:jt}),It.createElement("div",{className:`${Te}-children`},Gt),qe||Xn&&Oe?Dt:null)},ln=It.useMemo(()=>({siderCollapsed:Ue}),[Ue]);return It.createElement(vt.Provider,{value:ln},ui())})},84966:function(Dn,An,St){"use strict";St.d(An,{VY:function(){return vt},$_:function(){return gt},h4:function(){return st},Gs:function(){return Re},ZP:function(){return wt}});var Ct=St(26390),It=St(92310),ee=St.n(It),Ne=St(64002),Vt=St(59301),fe=St(36355),Ft=St(83116),we=Bt=>{const{componentCls:kt,bodyBg:Ot,lightSiderBg:jt,lightTriggerBg:Xt,lightTriggerColor:Ut}=Bt;return{[`${kt}-sider-light`]:{background:jt,[`${kt}-sider-trigger`]:{color:Ut,background:Xt},[`${kt}-sider-zero-width-trigger`]:{color:Ut,background:Xt,border:`1px solid ${Ot}`,borderInlineStart:0}}}};const oe=Bt=>{const{antCls:kt,componentCls:Ot,colorText:jt,triggerColor:Xt,footerBg:Ut,triggerBg:de,headerHeight:Gt,headerPadding:Ve,headerColor:me,footerPadding:sn,triggerHeight:qe,zeroTriggerHeight:Ye,zeroTriggerWidth:je,motionDurationMid:hn,motionDurationSlow:ge,fontSize:Ht,borderRadius:Ce,bodyBg:bn,headerBg:yn,siderBg:Ae}=Bt;return{[Ot]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:bn,"&, *":{boxSizing:"border-box"},[`&${Ot}-has-sider`]:{flexDirection:"row",[`> ${Ot}, > ${Ot}-content`]:{width:0}},[`${Ot}-header, &${Ot}-footer`]:{flex:"0 0 auto"},[`${Ot}-sider`]:{position:"relative",minWidth:0,background:Ae,transition:`all ${hn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${kt}-menu${kt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:qe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:qe,color:Xt,lineHeight:`${qe}px`,textAlign:"center",background:de,cursor:"pointer",transition:`all ${hn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Gt,insetInlineEnd:-je,zIndex:1,width:je,height:Ye,color:Xt,fontSize:Bt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ae,borderStartStartRadius:0,borderStartEndRadius:Ce,borderEndEndRadius:Ce,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ge} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ge}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-je,borderStartStartRadius:Ce,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ce}}}}},we(Bt)),{"&-rtl":{direction:"rtl"}}),[`${Ot}-header`]:{height:Gt,padding:Ve,color:me,lineHeight:`${Gt}px`,background:yn,[`${kt}-menu`]:{lineHeight:"inherit"}},[`${Ot}-footer`]:{padding:sn,color:jt,fontSize:Ht,background:Ut},[`${Ot}-content`]:{flex:"auto",minHeight:0}}};var ve=(0,Ft.Z)("Layout",Bt=>[oe(Bt)],Bt=>{const{colorBgLayout:kt,controlHeight:Ot,controlHeightLG:jt,colorText:Xt,controlHeightSM:Ut,marginXXS:de,colorTextLightSolid:Gt,colorBgContainer:Ve}=Bt,me=jt*1.25;return{colorBgHeader:"#001529",colorBgBody:kt,colorBgTrigger:"#002140",bodyBg:kt,headerBg:"#001529",headerHeight:Ot*2,headerPadding:`0 ${me}px`,headerColor:Xt,footerPadding:`${Ut}px ${me}px`,footerBg:kt,siderBg:"#001529",triggerHeight:jt+de*2,triggerBg:"#002140",triggerColor:Gt,zeroTriggerWidth:jt,zeroTriggerHeight:jt,lightSiderBg:Ve,lightTriggerBg:Ve,lightTriggerColor:Xt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ye=function(Bt,kt){var Ot={};for(var jt in Bt)Object.prototype.hasOwnProperty.call(Bt,jt)&&kt.indexOf(jt)<0&&(Ot[jt]=Bt[jt]);if(Bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,jt=Object.getOwnPropertySymbols(Bt);Xt<jt.length;Xt++)kt.indexOf(jt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Bt,jt[Xt])&&(Ot[jt[Xt]]=Bt[jt[Xt]]);return Ot};const Re=Vt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Tt(Bt){let{suffixCls:kt,tagName:Ot,displayName:jt}=Bt;return Xt=>Vt.forwardRef((de,Gt)=>Vt.createElement(Xt,Object.assign({ref:Gt,suffixCls:kt,tagName:Ot},de)))}const et=Vt.forwardRef((Bt,kt)=>{const{prefixCls:Ot,suffixCls:jt,className:Xt,tagName:Ut}=Bt,de=ye(Bt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Gt}=Vt.useContext(fe.E_),Ve=Gt("layout",Ot),[me,sn]=ve(Ve),qe=jt?`${Ve}-${jt}`:Ve;return me(Vt.createElement(Ut,Object.assign({className:ee()(Ot||qe,Xt,sn),ref:kt},de)))}),nt=Vt.forwardRef((Bt,kt)=>{const{direction:Ot}=Vt.useContext(fe.E_),[jt,Xt]=Vt.useState([]),{prefixCls:Ut,className:de,rootClassName:Gt,children:Ve,hasSider:me,tagName:sn,style:qe}=Bt,Ye=ye(Bt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),je=(0,Ne.Z)(Ye,["suffixCls"]),{getPrefixCls:hn,layout:ge}=Vt.useContext(fe.E_),Ht=hn("layout",Ut),[Ce,bn]=ve(Ht),yn=ee()(Ht,{[`${Ht}-has-sider`]:typeof me=="boolean"?me:jt.length>0,[`${Ht}-rtl`]:Ot==="rtl"},ge==null?void 0:ge.className,de,Gt,bn),Ae=Vt.useMemo(()=>({siderHook:{addSider:Ue=>{Xt(Sn=>[].concat((0,Ct.Z)(Sn),[Ue]))},removeSider:Ue=>{Xt(Sn=>Sn.filter(Xn=>Xn!==Ue))}}}),[]);return Ce(Vt.createElement(Re.Provider,{value:Ae},Vt.createElement(sn,Object.assign({ref:kt,className:yn,style:Object.assign(Object.assign({},ge==null?void 0:ge.style),qe)},je),Ve)))}),ht=Tt({tagName:"div",displayName:"Layout"})(nt),st=Tt({suffixCls:"header",tagName:"header",displayName:"Header"})(et),gt=Tt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),vt=Tt({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var wt=ht},40875:function(Dn,An,St){"use strict";St.d(An,{J:function(){return fe}});var Ct=St(59301),It=St(33234),ee=St(80764),Ne=function(Ft,ze){var we={};for(var oe in Ft)Object.prototype.hasOwnProperty.call(Ft,oe)&&ze.indexOf(oe)<0&&(we[oe]=Ft[oe]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,oe=Object.getOwnPropertySymbols(Ft);ve<oe.length;ve++)ze.indexOf(oe[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ft,oe[ve])&&(we[oe[ve]]=Ft[oe[ve]]);return we};const Vt=Ct.createContext(null),fe=Ct.forwardRef((Ft,ze)=>{const{children:we}=Ft,oe=Ne(Ft,["children"]),ve=Ct.useContext(Vt),ye=Ct.useMemo(()=>Object.assign(Object.assign({},ve),oe),[ve,oe.prefixCls,oe.mode,oe.selectable]);return Ct.createElement(Vt.Provider,{value:ye},Ct.createElement(It.BR,null,(0,ee.supportNodeRef)(we)?Ct.cloneElement(we,{ref:ze}):we))});An.Z=Vt},20834:function(Dn,An,St){"use strict";St.d(An,{default:function(){return ln}});var Ct=St(22798),It=St(59301),ee=St(99580),Ne=St(92310),Vt=St.n(Ne),fe=St(36355),Ft=function(Te,Me){var ie={};for(var Kt in Te)Object.prototype.hasOwnProperty.call(Te,Kt)&&Me.indexOf(Kt)<0&&(ie[Kt]=Te[Kt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Kt=Object.getOwnPropertySymbols(Te);Oe<Kt.length;Oe++)Me.indexOf(Kt[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Te,Kt[Oe])&&(ie[Kt[Oe]]=Te[Kt[Oe]]);return ie},we=Te=>{const{prefixCls:Me,className:ie,dashed:Kt}=Te,Oe=Ft(Te,["prefixCls","className","dashed"]),{getPrefixCls:ke}=It.useContext(fe.E_),te=ke("menu",Me),qt=Vt()({[`${te}-item-divider-dashed`]:!!Kt},ie);return It.createElement(Ct.iz,Object.assign({className:qt},Oe))},oe=St(38298),ve=St(64002),ye=St(6848),Re=St(92343),et=(0,It.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ht=Te=>{var Me;const{className:ie,children:Kt,icon:Oe,title:ke,danger:te}=Te,{prefixCls:qt,firstLevel:Dt,direction:xt,disableMenuItemTitleTooltip:mt,inlineCollapsed:Mt}=It.useContext(et),Rt=Ge=>{const cn=It.createElement("span",{className:`${qt}-title-content`},Kt);return(!Oe||(0,Re.l$)(Kt)&&Kt.type==="span")&&Kt&&Ge&&Dt&&typeof Kt=="string"?It.createElement("div",{className:`${qt}-inline-collapsed-noicon`},Kt.charAt(0)):cn},{siderCollapsed:Et}=It.useContext(ee.D);let re=ke;typeof ke=="undefined"?re=Dt?Kt:"":ke===!1&&(re="");const Qe={title:re};!Et&&!Mt&&(Qe.title=null,Qe.open=!1);const mn=(0,oe.Z)(Kt).length;let le=It.createElement(Ct.ck,Object.assign({},(0,ve.Z)(Te,["title","icon","danger"]),{className:Vt()({[`${qt}-item-danger`]:te,[`${qt}-item-only-child`]:(Oe?mn+1:mn)===1},ie),title:typeof ke=="string"?ke:void 0}),(0,Re.Tm)(Oe,{className:Vt()((0,Re.l$)(Oe)?(Me=Oe.props)===null||Me===void 0?void 0:Me.className:"",`${qt}-item-icon`)}),Rt(Mt));return mt||(le=It.createElement(ye.Z,Object.assign({},Qe,{placement:xt==="rtl"?"left":"right",overlayClassName:`${qt}-inline-collapsed-tooltip`}),le)),le},gt=Te=>{var Me;const{popupClassName:ie,icon:Kt,title:Oe,theme:ke}=Te,te=It.useContext(et),{prefixCls:qt,inlineCollapsed:Dt,theme:xt}=te,mt=(0,Ct.Xl)();let Mt;if(!Kt)Mt=Dt&&!mt.length&&Oe&&typeof Oe=="string"?It.createElement("div",{className:`${qt}-inline-collapsed-noicon`},Oe.charAt(0)):It.createElement("span",{className:`${qt}-title-content`},Oe);else{const Et=(0,Re.l$)(Oe)&&Oe.type==="span";Mt=It.createElement(It.Fragment,null,(0,Re.Tm)(Kt,{className:Vt()((0,Re.l$)(Kt)?(Me=Kt.props)===null||Me===void 0?void 0:Me.className:"",`${qt}-item-icon`)}),Et?Oe:It.createElement("span",{className:`${qt}-title-content`},Oe))}const Rt=It.useMemo(()=>Object.assign(Object.assign({},te),{firstLevel:!1}),[te]);return It.createElement(et.Provider,{value:Rt},It.createElement(Ct.Wd,Object.assign({},(0,ve.Z)(Te,["icon"]),{title:Mt,popupClassName:Vt()(qt,ie,`${qt}-${ke||xt}`)})))},vt=St(19362),wt=St(80764),Bt=St(62892),kt=St(40875),Ot=function(Te,Me){var ie={};for(var Kt in Te)Object.prototype.hasOwnProperty.call(Te,Kt)&&Me.indexOf(Kt)<0&&(ie[Kt]=Te[Kt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Kt=Object.getOwnPropertySymbols(Te);Oe<Kt.length;Oe++)Me.indexOf(Kt[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Te,Kt[Oe])&&(ie[Kt[Oe]]=Te[Kt[Oe]]);return ie};function jt(Te){return(Te||[]).map((Me,ie)=>{if(Me&&typeof Me=="object"){const Kt=Me,{label:Oe,children:ke,key:te,type:qt}=Kt,Dt=Ot(Kt,["label","children","key","type"]),xt=te!=null?te:`tmp-${ie}`;return ke||qt==="group"?qt==="group"?It.createElement(Ct.BW,Object.assign({key:xt},Dt,{title:Oe}),jt(ke)):It.createElement(gt,Object.assign({key:xt},Dt,{title:Oe}),jt(ke)):qt==="divider"?It.createElement(we,Object.assign({key:xt},Dt)):It.createElement(ht,Object.assign({key:xt},Dt),Oe)}return null}).filter(Me=>Me)}function Xt(Te){return It.useMemo(()=>Te&&jt(Te),[Te])}var Ut=St(64993),de=St(17313),Gt=St(8378),Ve=St(13826),me=St(29878),sn=St(83116),qe=St(37613),je=Te=>{const{componentCls:Me,motionDurationSlow:ie,horizontalLineHeight:Kt,colorSplit:Oe,lineWidth:ke,lineType:te,itemPaddingInline:qt}=Te;return{[`${Me}-horizontal`]:{lineHeight:Kt,border:0,borderBottom:`${ke}px ${te} ${Oe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Me}-item, ${Me}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:qt},[`> ${Me}-item:hover,
|
|
|
> ${Me}-item-active,
|
|
|
> ${Me}-submenu ${Me}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Me}-item, ${Me}-submenu-title`]:{transition:[`border-color ${ie}`,`background ${ie}`].join(",")},[`${Me}-submenu-arrow`]:{display:"none"}}}},ge=Te=>{let{componentCls:Me,menuArrowOffset:ie}=Te;return{[`${Me}-rtl`]:{direction:"rtl"},[`${Me}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Me}-rtl${Me}-vertical,
|
|
|
${Me}-submenu-rtl ${Me}-vertical`]:{[`${Me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ie})`},"&::after":{transform:`rotate(45deg) translateY(${ie})`}}}}};const Ht=Te=>Object.assign({},(0,de.oN)(Te));var bn=(Te,Me)=>{const{componentCls:ie,itemColor:Kt,itemSelectedColor:Oe,groupTitleColor:ke,itemBg:te,subMenuItemBg:qt,itemSelectedBg:Dt,activeBarHeight:xt,activeBarWidth:mt,activeBarBorderWidth:Mt,motionDurationSlow:Rt,motionEaseInOut:Et,motionEaseOut:re,itemPaddingInline:Qe,motionDurationMid:mn,itemHoverColor:le,lineType:Ge,colorSplit:cn,itemDisabledColor:Mn,dangerItemColor:Zn,dangerItemHoverColor:_n,dangerItemSelectedColor:di,dangerItemActiveBg:ri,dangerItemSelectedBg:Fi,itemHoverBg:Zi,itemActiveBg:Vi,menuSubMenuBg:ji,horizontalItemSelectedColor:qi,horizontalItemSelectedBg:wo,horizontalItemBorderRadius:Ei,horizontalItemHoverBg:Po,popupBg:ki}=Te;return{[`${ie}-${Me}, ${ie}-${Me} > ${ie}`]:{color:Kt,background:te,[`&${ie}-root:focus-visible`]:Object.assign({},Ht(Te)),[`${ie}-item-group-title`]:{color:ke},[`${ie}-submenu-selected`]:{[`> ${ie}-submenu-title`]:{color:Oe}},[`${ie}-item-disabled, ${ie}-submenu-disabled`]:{color:`${Mn} !important`},[`${ie}-item:not(${ie}-item-selected):not(${ie}-submenu-selected)`]:{[`&:hover, > ${ie}-submenu-title:hover`]:{color:le}},[`&:not(${ie}-horizontal)`]:{[`${ie}-item:not(${ie}-item-selected)`]:{"&:hover":{backgroundColor:Zi},"&:active":{backgroundColor:Vi}},[`${ie}-submenu-title`]:{"&:hover":{backgroundColor:Zi},"&:active":{backgroundColor:Vi}}},[`${ie}-item-danger`]:{color:Zn,[`&${ie}-item:hover`]:{[`&:not(${ie}-item-selected):not(${ie}-submenu-selected)`]:{color:_n}},[`&${ie}-item:active`]:{background:ri}},[`${ie}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ie}-item-selected`]:{color:Oe,[`&${ie}-item-danger`]:{color:di},"a, a:hover":{color:"inherit"}},[`& ${ie}-item-selected`]:{backgroundColor:Dt,[`&${ie}-item-danger`]:{backgroundColor:Fi}},[`${ie}-item, ${ie}-submenu-title`]:{[`&:not(${ie}-item-disabled):focus-visible`]:Object.assign({},Ht(Te))},[`&${ie}-submenu > ${ie}`]:{backgroundColor:ji},[`&${ie}-popup > ${ie}`]:{backgroundColor:ki},[`&${ie}-horizontal`]:Object.assign(Object.assign({},Me==="dark"?{borderBottom:0}:{}),{[`> ${ie}-item, > ${ie}-submenu`]:{top:Mt,marginTop:-Mt,marginBottom:0,borderRadius:Ei,"&::after":{position:"absolute",insetInline:Qe,bottom:0,borderBottom:`${xt}px solid transparent`,transition:`border-color ${Rt} ${Et}`,content:'""'},"&:hover, &-active, &-open":{background:Po,"&::after":{borderBottomWidth:xt,borderBottomColor:qi}},"&-selected":{color:qi,backgroundColor:wo,"&:hover":{backgroundColor:wo},"&::after":{borderBottomWidth:xt,borderBottomColor:qi}}}}),[`&${ie}-root`]:{[`&${ie}-inline, &${ie}-vertical`]:{borderInlineEnd:`${Mt}px ${Ge} ${cn}`}},[`&${ie}-inline`]:{[`${ie}-sub${ie}-inline`]:{background:qt},[`${ie}-item, ${ie}-submenu-title`]:Mt&&mt?{width:`calc(100% + ${Mt}px)`}:{},[`${ie}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${mt}px solid ${Oe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${mn} ${re}`,`opacity ${mn} ${re}`].join(","),content:'""'},[`&${ie}-item-danger`]:{"&::after":{borderInlineEndColor:di}}},[`${ie}-selected, ${ie}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${mn} ${Et}`,`opacity ${mn} ${Et}`].join(",")}}}}}};const yn=Te=>{const{componentCls:Me,itemHeight:ie,itemMarginInline:Kt,padding:Oe,menuArrowSize:ke,marginXS:te,itemMarginBlock:qt}=Te,Dt=Oe+ke+te;return{[`${Me}-item`]:{position:"relative",overflow:"hidden"},[`${Me}-item, ${Me}-submenu-title`]:{height:ie,lineHeight:`${ie}px`,paddingInline:Oe,overflow:"hidden",textOverflow:"ellipsis",marginInline:Kt,marginBlock:qt,width:`calc(100% - ${Kt*2}px)`},[`> ${Me}-item,
|
|
|
> ${Me}-submenu > ${Me}-submenu-title`]:{height:ie,lineHeight:`${ie}px`},[`${Me}-item-group-list ${Me}-submenu-title,
|
|
|
${Me}-submenu-title`]:{paddingInlineEnd:Dt}}};var Ue=Te=>{const{componentCls:Me,iconCls:ie,itemHeight:Kt,colorTextLightSolid:Oe,dropdownWidth:ke,controlHeightLG:te,motionDurationMid:qt,motionEaseOut:Dt,paddingXL:xt,itemMarginInline:mt,fontSizeLG:Mt,motionDurationSlow:Rt,paddingXS:Et,boxShadowSecondary:re,collapsedWidth:Qe,collapsedIconSize:mn}=Te,le={height:Kt,lineHeight:`${Kt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Me]:{"&-inline, &-vertical":Object.assign({[`&${Me}-root`]:{boxShadow:"none"}},yn(Te))},[`${Me}-submenu-popup`]:{[`${Me}-vertical`]:Object.assign(Object.assign({},yn(Te)),{boxShadow:re})}},{[`${Me}-submenu-popup ${Me}-vertical${Me}-sub`]:{minWidth:ke,maxHeight:`calc(100vh - ${te*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Me}-inline`]:{width:"100%",[`&${Me}-root`]:{[`${Me}-item, ${Me}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Rt}`,`background ${Rt}`,`padding ${qt} ${Dt}`].join(","),[`> ${Me}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Me}-sub${Me}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Me}-submenu > ${Me}-submenu-title`]:le,[`& ${Me}-item-group-title`]:{paddingInlineStart:xt}},[`${Me}-item`]:le}},{[`${Me}-inline-collapsed`]:{width:Qe,[`&${Me}-root`]:{[`${Me}-item, ${Me}-submenu ${Me}-submenu-title`]:{[`> ${Me}-inline-collapsed-noicon`]:{fontSize:Mt,textAlign:"center"}}},[`> ${Me}-item,
|
|
|
> ${Me}-item-group > ${Me}-item-group-list > ${Me}-item,
|
|
|
> ${Me}-item-group > ${Me}-item-group-list > ${Me}-submenu > ${Me}-submenu-title,
|
|
|
> ${Me}-submenu > ${Me}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Mt/2}px - ${mt}px)`,textOverflow:"clip",[`
|
|
|
${Me}-submenu-arrow,
|
|
|
${Me}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Me}-item-icon, ${ie}`]:{margin:0,fontSize:mn,lineHeight:`${Kt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Me}-item-icon, ${ie}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Me}-item-icon, ${ie}`]:{display:"none"},"a, a:hover":{color:Oe}},[`${Me}-item-group-title`]:Object.assign(Object.assign({},de.vS),{paddingInline:Et})}}]};const Sn=Te=>{const{componentCls:Me,motionDurationSlow:ie,motionDurationMid:Kt,motionEaseInOut:Oe,motionEaseOut:ke,iconCls:te,iconSize:qt,iconMarginInlineEnd:Dt}=Te;return{[`${Me}-item, ${Me}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ie}`,`background ${ie}`,`padding ${ie} ${Oe}`].join(","),[`${Me}-item-icon, ${te}`]:{minWidth:qt,fontSize:qt,transition:[`font-size ${Kt} ${ke}`,`margin ${ie} ${Oe}`,`color ${ie}`].join(","),"+ span":{marginInlineStart:Dt,opacity:1,transition:[`opacity ${ie} ${Oe}`,`margin ${ie}`,`color ${ie}`].join(",")}},[`${Me}-item-icon`]:Object.assign({},(0,de.Ro)()),[`&${Me}-item-only-child`]:{[`> ${te}, > ${Me}-item-icon`]:{marginInlineEnd:0}}},[`${Me}-item-disabled, ${Me}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Me}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Xn=Te=>{const{componentCls:Me,motionDurationSlow:ie,motionEaseInOut:Kt,borderRadius:Oe,menuArrowSize:ke,menuArrowOffset:te}=Te;return{[`${Me}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Te.margin,width:ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ie} ${Kt}, opacity ${ie}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ke*.6,height:ke*.15,backgroundColor:"currentcolor",borderRadius:Oe,transition:[`background ${ie} ${Kt}`,`transform ${ie} ${Kt}`,`top ${ie} ${Kt}`,`color ${ie} ${Kt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${te})`},"&::after":{transform:`rotate(-45deg) translateY(${te})`}}}}},Pn=Te=>{const{antCls:Me,componentCls:ie,fontSize:Kt,motionDurationSlow:Oe,motionDurationMid:ke,motionEaseInOut:te,paddingXS:qt,padding:Dt,colorSplit:xt,lineWidth:mt,zIndexPopup:Mt,borderRadiusLG:Rt,subMenuItemBorderRadius:Et,menuArrowSize:re,menuArrowOffset:Qe,lineType:mn,menuPanelMaskInset:le,groupTitleLineHeight:Ge,groupTitleFontSize:cn}=Te;return[{"":{[`${ie}`]:Object.assign(Object.assign({},(0,de.dF)()),{"&-hidden":{display:"none"}})},[`${ie}-submenu-hidden`]:{display:"none"}},{[ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,de.Wf)(Te)),(0,de.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Kt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Oe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ie}-item`]:{flex:"none"}},[`${ie}-item, ${ie}-submenu, ${ie}-submenu-title`]:{borderRadius:Te.itemBorderRadius},[`${ie}-item-group-title`]:{padding:`${qt}px ${Dt}px`,fontSize:cn,lineHeight:Ge,transition:`all ${Oe}`},[`&-horizontal ${ie}-submenu`]:{transition:[`border-color ${Oe} ${te}`,`background ${Oe} ${te}`].join(",")},[`${ie}-submenu, ${ie}-submenu-inline`]:{transition:[`border-color ${Oe} ${te}`,`background ${Oe} ${te}`,`padding ${ke} ${te}`].join(",")},[`${ie}-submenu ${ie}-sub`]:{cursor:"initial",transition:[`background ${Oe} ${te}`,`padding ${Oe} ${te}`].join(",")},[`${ie}-title-content`]:{transition:`color ${Oe}`},[`${ie}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ie}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xt,borderStyle:mn,borderWidth:0,borderTopWidth:mt,marginBlock:mt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Sn(Te)),{[`${ie}-item-group`]:{[`${ie}-item-group-list`]:{margin:0,padding:0,[`${ie}-item, ${ie}-submenu-title`]:{paddingInline:`${Kt*2}px ${Dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Mt,borderRadius:Rt,boxShadow:"none",transformOrigin:"0 0",[`&${ie}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:le},"\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:Te.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Te.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Te.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Te.paddingXS},[`> ${ie}`]:Object.assign(Object.assign(Object.assign({borderRadius:Rt},Sn(Te)),Xn(Te)),{[`${ie}-item, ${ie}-submenu > ${ie}-submenu-title`]:{borderRadius:Et},[`${ie}-submenu-title::after`]:{transition:`transform ${Oe} ${te}`}})}}),Xn(Te)),{[`&-inline-collapsed ${ie}-submenu-arrow,
|
|
|
&-inline ${ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Qe})`},"&::after":{transform:`rotate(45deg) translateX(-${Qe})`}},[`${ie}-submenu-open${ie}-submenu-inline > ${ie}-submenu-title > ${ie}-submenu-arrow`]:{transform:`translateY(-${re*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Qe})`},"&::before":{transform:`rotate(45deg) translateX(${Qe})`}}})},{[`${Me}-layout-header`]:{[ie]:{lineHeight:"inherit"}}}]};var Gn=(Te,Me)=>(0,sn.Z)("Menu",Kt=>{if(Me===!1)return[];const{colorBgElevated:Oe,colorPrimary:ke,colorTextLightSolid:te,controlHeightLG:qt,fontSize:Dt,darkItemColor:xt,darkDangerItemColor:mt,darkItemBg:Mt,darkSubMenuItemBg:Rt,darkItemSelectedColor:Et,darkItemSelectedBg:re,darkDangerItemSelectedBg:Qe,darkItemHoverBg:mn,darkGroupTitleColor:le,darkItemHoverColor:Ge,darkItemDisabledColor:cn,darkDangerItemHoverColor:Mn,darkDangerItemSelectedColor:Zn,darkDangerItemActiveBg:_n}=Kt,di=Dt/7*5,ri=(0,qe.TS)(Kt,{menuArrowSize:di,menuHorizontalHeight:qt*1.15,menuArrowOffset:`${di*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Oe}),Fi=(0,qe.TS)(ri,{itemColor:xt,itemHoverColor:Ge,groupTitleColor:le,itemSelectedColor:Et,itemBg:Mt,popupBg:Mt,subMenuItemBg:Rt,itemActiveBg:"transparent",itemSelectedBg:re,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:mn,itemDisabledColor:cn,dangerItemColor:mt,dangerItemHoverColor:Mn,dangerItemSelectedColor:Zn,dangerItemActiveBg:_n,dangerItemSelectedBg:Qe,menuSubMenuBg:Rt,horizontalItemSelectedColor:te,horizontalItemSelectedBg:ke});return[Pn(ri),je(ri),Ue(ri),bn(ri,"light"),bn(Fi,"dark"),ge(ri),(0,Gt.Z)(ri),(0,Ve.oN)(ri,"slide-up"),(0,Ve.oN)(ri,"slide-down"),(0,me._y)(ri,"zoom-big")]},Kt=>{const{colorPrimary:Oe,colorError:ke,colorTextDisabled:te,colorErrorBg:qt,colorText:Dt,colorTextDescription:xt,colorBgContainer:mt,colorFillAlter:Mt,colorFillContent:Rt,lineWidth:Et,lineWidthBold:re,controlItemBgActive:Qe,colorBgTextHover:mn,controlHeightLG:le,lineHeight:Ge,colorBgElevated:cn,marginXXS:Mn,padding:Zn,fontSize:_n,controlHeightSM:di,fontSizeLG:ri,colorTextLightSolid:Fi,colorErrorHover:Zi}=Kt,Vi=new Ut.C(Fi).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Kt.zIndexPopupBase+50,radiusItem:Kt.borderRadiusLG,itemBorderRadius:Kt.borderRadiusLG,radiusSubMenuItem:Kt.borderRadiusSM,subMenuItemBorderRadius:Kt.borderRadiusSM,colorItemText:Dt,itemColor:Dt,colorItemTextHover:Dt,itemHoverColor:Dt,colorItemTextHoverHorizontal:Oe,horizontalItemHoverColor:Oe,colorGroupTitle:xt,groupTitleColor:xt,colorItemTextSelected:Oe,itemSelectedColor:Oe,colorItemTextSelectedHorizontal:Oe,horizontalItemSelectedColor:Oe,colorItemBg:mt,itemBg:mt,colorItemBgHover:mn,itemHoverBg:mn,colorItemBgActive:Rt,itemActiveBg:Qe,colorSubItemBg:Mt,subMenuItemBg:Mt,colorItemBgSelected:Qe,itemSelectedBg:Qe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:re,activeBarHeight:re,colorActiveBarBorderSize:Et,activeBarBorderWidth:Et,colorItemTextDisabled:te,itemDisabledColor:te,colorDangerItemText:ke,dangerItemColor:ke,colorDangerItemTextHover:ke,dangerItemHoverColor:ke,colorDangerItemTextSelected:ke,dangerItemSelectedColor:ke,colorDangerItemBgActive:qt,dangerItemActiveBg:qt,colorDangerItemBgSelected:qt,dangerItemSelectedBg:qt,itemMarginInline:Kt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:le,groupTitleLineHeight:Ge,collapsedWidth:le*2,popupBg:cn,itemMarginBlock:Mn,itemPaddingInline:Zn,horizontalLineHeight:`${le*1.15}px`,iconSize:_n,iconMarginInlineEnd:di-_n,collapsedIconSize:ri,groupTitleFontSize:_n,darkItemDisabledColor:new Ut.C(Fi).setAlpha(.25).toRgbString(),darkItemColor:Vi,darkDangerItemColor:ke,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Fi,darkItemSelectedBg:Oe,darkDangerItemSelectedBg:ke,darkItemHoverBg:"transparent",darkGroupTitleColor:Vi,darkItemHoverColor:Fi,darkDangerItemHoverColor:Zi,darkDangerItemSelectedColor:Fi,darkDangerItemActiveBg:ke}},{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"]]})(Te),Ee=function(Te,Me){var ie={};for(var Kt in Te)Object.prototype.hasOwnProperty.call(Te,Kt)&&Me.indexOf(Kt)<0&&(ie[Kt]=Te[Kt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,Kt=Object.getOwnPropertySymbols(Te);Oe<Kt.length;Oe++)Me.indexOf(Kt[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Te,Kt[Oe])&&(ie[Kt[Oe]]=Te[Kt[Oe]]);return ie},ai=(0,It.forwardRef)((Te,Me)=>{var ie,Kt;const Oe=It.useContext(kt.Z),ke=Oe||{},{getPrefixCls:te,getPopupContainer:qt,direction:Dt,menu:xt}=It.useContext(fe.E_),mt=te(),{prefixCls:Mt,className:Rt,style:Et,theme:re="light",expandIcon:Qe,_internalDisableMenuItemTitleTooltip:mn,inlineCollapsed:le,siderCollapsed:Ge,items:cn,children:Mn,rootClassName:Zn,mode:_n,selectable:di,onClick:ri,overflowedIndicatorPopupClassName:Fi}=Te,Zi=Ee(Te,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vi=(0,ve.Z)(Zi,["collapsedWidth"]),ji=Xt(cn)||Mn;(ie=ke.validator)===null||ie===void 0||ie.call(ke,{mode:_n});const qi=(0,wt.useEvent)(function(){var Pi;ri==null||ri.apply(void 0,arguments),(Pi=ke.onClick)===null||Pi===void 0||Pi.call(ke)}),wo=ke.mode||_n,Ei=di!=null?di:ke.selectable,Po=It.useMemo(()=>Ge!==void 0?Ge:le,[le,Ge]),ki={horizontal:{motionName:`${mt}-slide-up`},inline:(0,Bt.Z)(mt),other:{motionName:`${mt}-zoom-big`}},Lt=te("menu",Mt||ke.prefixCls),[Mo,$i]=Gn(Lt,!Oe),En=Vt()(`${Lt}-${re}`,xt==null?void 0:xt.className,Rt);let hi;if(typeof Qe=="function")hi=Qe;else if(Qe===null||Qe===!1)hi=null;else if(ke.expandIcon===null||ke.expandIcon===!1)hi=null;else{const Pi=Qe!=null?Qe:ke.expandIcon;hi=(0,Re.Tm)(Pi,{className:Vt()(`${Lt}-submenu-expand-icon`,(0,Re.l$)(Pi)?(Kt=Pi.props)===null||Kt===void 0?void 0:Kt.className:"")})}const gi=It.useMemo(()=>({prefixCls:Lt,inlineCollapsed:Po||!1,direction:Dt,firstLevel:!0,theme:re,mode:wo,disableMenuItemTitleTooltip:mn}),[Lt,Po,Dt,mn,re]);return Mo(It.createElement(kt.Z.Provider,{value:null},It.createElement(et.Provider,{value:gi},It.createElement(Ct.ZP,Object.assign({getPopupContainer:qt,overflowedIndicator:It.createElement(vt.Z,null),overflowedIndicatorPopupClassName:Vt()(Lt,`${Lt}-${re}`,Fi),mode:wo,selectable:Ei,onClick:qi},Vi,{inlineCollapsed:Po,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Et),className:En,prefixCls:Lt,direction:Dt,defaultMotions:ki,expandIcon:hi,ref:Me,rootClassName:Vt()(Zn,$i)}),ji))))});const ui=(0,It.forwardRef)((Te,Me)=>{const ie=(0,It.useRef)(null),Kt=It.useContext(ee.D);return(0,It.useImperativeHandle)(Me,()=>({menu:ie.current,focus:Oe=>{var ke;(ke=ie.current)===null||ke===void 0||ke.focus(Oe)}})),It.createElement(ai,Object.assign({ref:ie},Te,Kt))});ui.Item=ht,ui.SubMenu=gt,ui.Divider=we,ui.ItemGroup=Ct.BW;var ln=ui},25700:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ke}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(qt,Dt){return It.createElement(Vt.Z,(0,Ct.Z)({},qt,{ref:Dt,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft,we=St(93343),oe=St(16537),ve=St(53878),ye=St(92310),Re=St.n(ye),Tt=St(80962),et=St(57259),nt=St(79545),ht=St(68550),st=St(17928),gt=St(7711),vt=St(36994),wt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Bt=wt,kt=St(91735),Ot=function(te){(0,st.Z)(Dt,te);var qt=(0,gt.Z)(Dt);function Dt(){var xt;(0,nt.Z)(this,Dt);for(var mt=arguments.length,Mt=new Array(mt),Rt=0;Rt<mt;Rt++)Mt[Rt]=arguments[Rt];return xt=qt.call.apply(qt,[this].concat(Mt)),xt.state={goInputText:""},xt.getValidValue=function(){var Et=xt.state.goInputText;return!Et||Number.isNaN(Et)?void 0:Number(Et)},xt.buildOptionText=function(Et){return"".concat(Et," ").concat(xt.props.locale.items_per_page)},xt.changeSize=function(Et){xt.props.changeSize(Number(Et))},xt.handleChange=function(Et){xt.setState({goInputText:Et.target.value})},xt.handleBlur=function(Et){var re=xt.props,Qe=re.goButton,mn=re.quickGo,le=re.rootPrefixCls,Ge=xt.state.goInputText;Qe||Ge===""||(xt.setState({goInputText:""}),!(Et.relatedTarget&&(Et.relatedTarget.className.indexOf("".concat(le,"-item-link"))>=0||Et.relatedTarget.className.indexOf("".concat(le,"-item"))>=0))&&mn(xt.getValidValue()))},xt.go=function(Et){var re=xt.state.goInputText;re!==""&&(Et.keyCode===Bt.ENTER||Et.type==="click")&&(xt.setState({goInputText:""}),xt.props.quickGo(xt.getValidValue()))},xt}return(0,ht.Z)(Dt,[{key:"getPageSizeOptions",value:function(){var mt=this.props,Mt=mt.pageSize,Rt=mt.pageSizeOptions;return Rt.some(function(Et){return Et.toString()===Mt.toString()})?Rt:Rt.concat([Mt.toString()]).sort(function(Et,re){var Qe=Number.isNaN(Number(Et))?0:Number(Et),mn=Number.isNaN(Number(re))?0:Number(re);return Qe-mn})}},{key:"render",value:function(){var mt=this,Mt=this.props,Rt=Mt.pageSize,Et=Mt.locale,re=Mt.rootPrefixCls,Qe=Mt.changeSize,mn=Mt.quickGo,le=Mt.goButton,Ge=Mt.selectComponentClass,cn=Mt.buildOptionText,Mn=Mt.selectPrefixCls,Zn=Mt.disabled,_n=this.state.goInputText,di="".concat(re,"-options"),ri=Ge,Fi=null,Zi=null,Vi=null;if(!Qe&&!mn)return null;var ji=this.getPageSizeOptions();if(Qe&&ri){var qi=ji.map(function(wo,Ei){return It.createElement(ri.Option,{key:Ei,value:wo.toString()},(cn||mt.buildOptionText)(wo))});Fi=It.createElement(ri,{disabled:Zn,prefixCls:Mn,showSearch:!1,className:"".concat(di,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Rt||ji[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ei){return Ei.parentNode},"aria-label":Et.page_size,defaultOpen:!1},qi)}return mn&&(le&&(Vi=typeof le=="boolean"?It.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Zn,className:"".concat(di,"-quick-jumper-button")},Et.jump_to_confirm):It.createElement("span",{onClick:this.go,onKeyUp:this.go},le)),Zi=It.createElement("div",{className:"".concat(di,"-quick-jumper")},Et.jump_to,It.createElement("input",{disabled:Zn,type:"text",value:_n,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Et.page}),Et.page,Vi)),It.createElement("li",{className:"".concat(di)},Fi,Zi)}}]),Dt}(It.Component);Ot.defaultProps={pageSizeOptions:["10","20","50","100"]};var jt=Ot,Xt=function(qt){var Dt,xt=qt.rootPrefixCls,mt=qt.page,Mt=qt.active,Rt=qt.className,Et=qt.showTitle,re=qt.onClick,Qe=qt.onKeyPress,mn=qt.itemRender,le="".concat(xt,"-item"),Ge=Re()(le,"".concat(le,"-").concat(mt),(Dt={},(0,Tt.Z)(Dt,"".concat(le,"-active"),Mt),(0,Tt.Z)(Dt,"".concat(le,"-disabled"),!mt),(0,Tt.Z)(Dt,qt.className,Rt),Dt)),cn=function(){re(mt)},Mn=function(di){Qe(di,re,mt)},Zn=mn(mt,"page",It.createElement("a",{rel:"nofollow"},mt));return Zn?It.createElement("li",{title:Et?mt.toString():null,className:Ge,onClick:cn,onKeyPress:Mn,tabIndex:0},Zn):null},Ut=Xt;function de(){}function Gt(te){var qt=Number(te);return typeof qt=="number"&&!Number.isNaN(qt)&&isFinite(qt)&&Math.floor(qt)===qt}var Ve=function(qt,Dt,xt){return xt};function me(te,qt,Dt){var xt=typeof te=="undefined"?qt.pageSize:te;return Math.floor((Dt.total-1)/xt)+1}var sn=function(te){(0,st.Z)(Dt,te);var qt=(0,gt.Z)(Dt);function Dt(xt){var mt;(0,nt.Z)(this,Dt),mt=qt.call(this,xt),mt.paginationNode=It.createRef(),mt.getJumpPrevPage=function(){return Math.max(1,mt.state.current-(mt.props.showLessItems?3:5))},mt.getJumpNextPage=function(){return Math.min(me(void 0,mt.state,mt.props),mt.state.current+(mt.props.showLessItems?3:5))},mt.getItemIcon=function(Qe,mn){var le=mt.props.prefixCls,Ge=Qe||It.createElement("button",{type:"button","aria-label":mn,className:"".concat(le,"-item-link")});return typeof Qe=="function"&&(Ge=It.createElement(Qe,(0,et.Z)({},mt.props))),Ge},mt.isValid=function(Qe){var mn=mt.props.total;return Gt(Qe)&&Qe!==mt.state.current&&Gt(mn)&&mn>0},mt.shouldDisplayQuickJumper=function(){var Qe=mt.props,mn=Qe.showQuickJumper,le=Qe.total,Ge=mt.state.pageSize;return le<=Ge?!1:mn},mt.handleKeyDown=function(Qe){(Qe.keyCode===Bt.ARROW_UP||Qe.keyCode===Bt.ARROW_DOWN)&&Qe.preventDefault()},mt.handleKeyUp=function(Qe){var mn=mt.getValidValue(Qe),le=mt.state.currentInputValue;mn!==le&&mt.setState({currentInputValue:mn}),Qe.keyCode===Bt.ENTER?mt.handleChange(mn):Qe.keyCode===Bt.ARROW_UP?mt.handleChange(mn-1):Qe.keyCode===Bt.ARROW_DOWN&&mt.handleChange(mn+1)},mt.handleBlur=function(Qe){var mn=mt.getValidValue(Qe);mt.handleChange(mn)},mt.changePageSize=function(Qe){var mn=mt.state.current,le=me(Qe,mt.state,mt.props);mn=mn>le?le:mn,le===0&&(mn=mt.state.current),typeof Qe=="number"&&("pageSize"in mt.props||mt.setState({pageSize:Qe}),"current"in mt.props||mt.setState({current:mn,currentInputValue:mn})),mt.props.onShowSizeChange(mn,Qe),"onChange"in mt.props&&mt.props.onChange&&mt.props.onChange(mn,Qe)},mt.handleChange=function(Qe){var mn=mt.props,le=mn.disabled,Ge=mn.onChange,cn=mt.state,Mn=cn.pageSize,Zn=cn.current,_n=cn.currentInputValue;if(mt.isValid(Qe)&&!le){var di=me(void 0,mt.state,mt.props),ri=Qe;return Qe>di?ri=di:Qe<1&&(ri=1),"current"in mt.props||mt.setState({current:ri}),ri!==_n&&mt.setState({currentInputValue:ri}),Ge(ri,Mn),ri}return Zn},mt.prev=function(){mt.hasPrev()&&mt.handleChange(mt.state.current-1)},mt.next=function(){mt.hasNext()&&mt.handleChange(mt.state.current+1)},mt.jumpPrev=function(){mt.handleChange(mt.getJumpPrevPage())},mt.jumpNext=function(){mt.handleChange(mt.getJumpNextPage())},mt.hasPrev=function(){return mt.state.current>1},mt.hasNext=function(){return mt.state.current<me(void 0,mt.state,mt.props)},mt.runIfEnter=function(Qe,mn){if(Qe.key==="Enter"||Qe.charCode===13){for(var le=arguments.length,Ge=new Array(le>2?le-2:0),cn=2;cn<le;cn++)Ge[cn-2]=arguments[cn];mn.apply(void 0,Ge)}},mt.runIfEnterPrev=function(Qe){mt.runIfEnter(Qe,mt.prev)},mt.runIfEnterNext=function(Qe){mt.runIfEnter(Qe,mt.next)},mt.runIfEnterJumpPrev=function(Qe){mt.runIfEnter(Qe,mt.jumpPrev)},mt.runIfEnterJumpNext=function(Qe){mt.runIfEnter(Qe,mt.jumpNext)},mt.handleGoTO=function(Qe){(Qe.keyCode===Bt.ENTER||Qe.type==="click")&&mt.handleChange(mt.state.currentInputValue)},mt.renderPrev=function(Qe){var mn=mt.props,le=mn.prevIcon,Ge=mn.itemRender,cn=Ge(Qe,"prev",mt.getItemIcon(le,"prev page")),Mn=!mt.hasPrev();return(0,It.isValidElement)(cn)?(0,It.cloneElement)(cn,{disabled:Mn}):cn},mt.renderNext=function(Qe){var mn=mt.props,le=mn.nextIcon,Ge=mn.itemRender,cn=Ge(Qe,"next",mt.getItemIcon(le,"next page")),Mn=!mt.hasNext();return(0,It.isValidElement)(cn)?(0,It.cloneElement)(cn,{disabled:Mn}):cn};var Mt=xt.onChange!==de,Rt="current"in xt;Rt&&!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 Et=xt.defaultCurrent;"current"in xt&&(Et=xt.current);var re=xt.defaultPageSize;return"pageSize"in xt&&(re=xt.pageSize),Et=Math.min(Et,me(re,void 0,xt)),mt.state={current:Et,currentInputValue:Et,pageSize:re},mt}return(0,ht.Z)(Dt,[{key:"componentDidUpdate",value:function(mt,Mt){var Rt=this.props.prefixCls;if(Mt.current!==this.state.current&&this.paginationNode.current){var Et=this.paginationNode.current.querySelector(".".concat(Rt,"-item-").concat(Mt.current));if(Et&&document.activeElement===Et){var re;Et==null||(re=Et.blur)===null||re===void 0||re.call(Et)}}}},{key:"getValidValue",value:function(mt){var Mt=mt.target.value,Rt=me(void 0,this.state,this.props),Et=this.state.currentInputValue,re;return Mt===""?re=Mt:Number.isNaN(Number(Mt))?re=Et:Mt>=Rt?re=Rt:re=Number(Mt),re}},{key:"getShowSizeChanger",value:function(){var mt=this.props,Mt=mt.showSizeChanger,Rt=mt.total,Et=mt.totalBoundaryShowSizeChanger;return typeof Mt!="undefined"?Mt:Rt>Et}},{key:"render",value:function(){var mt=this.props,Mt=mt.prefixCls,Rt=mt.className,Et=mt.style,re=mt.disabled,Qe=mt.hideOnSinglePage,mn=mt.total,le=mt.locale,Ge=mt.showQuickJumper,cn=mt.showLessItems,Mn=mt.showTitle,Zn=mt.showTotal,_n=mt.simple,di=mt.itemRender,ri=mt.showPrevNextJumpers,Fi=mt.jumpPrevIcon,Zi=mt.jumpNextIcon,Vi=mt.selectComponentClass,ji=mt.selectPrefixCls,qi=mt.pageSizeOptions,wo=this.state,Ei=wo.current,Po=wo.pageSize,ki=wo.currentInputValue;if(Qe===!0&&mn<=Po)return null;var Lt=me(void 0,this.state,this.props),Mo=[],$i=null,En=null,hi=null,gi=null,Pi=null,Rn=Ge&&Ge.goButton,Le=cn?1:2,Fe=Ei-1>0?Ei-1:0,he=Ei+1<Lt?Ei+1:Lt,_t=(0,vt.Z)(this.props,{aria:!0,data:!0}),Ze=Zn&&It.createElement("li",{className:"".concat(Mt,"-total-text")},Zn(mn,[mn===0?0:(Ei-1)*Po+1,Ei*Po>mn?mn:Ei*Po]));if(_n){Rn&&(typeof Rn=="boolean"?Pi=It.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},le.jump_to_confirm):Pi=It.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Rn),Pi=It.createElement("li",{title:Mn?"".concat(le.jump_to).concat(Ei,"/").concat(Lt):null,className:"".concat(Mt,"-simple-pager")},Pi));var tn=this.renderPrev(Fe);return It.createElement("ul",(0,Ct.Z)({className:Re()(Mt,"".concat(Mt,"-simple"),(0,Tt.Z)({},"".concat(Mt,"-disabled"),re),Rt),style:Et,ref:this.paginationNode},_t),Ze,tn?It.createElement("li",{title:Mn?le.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(Mt,"-prev"),(0,Tt.Z)({},"".concat(Mt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},tn):null,It.createElement("li",{title:Mn?"".concat(Ei,"/").concat(Lt):null,className:"".concat(Mt,"-simple-pager")},It.createElement("input",{type:"text",value:ki,disabled:re,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),It.createElement("span",{className:"".concat(Mt,"-slash")},"/"),Lt),It.createElement("li",{title:Mn?le.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Re()("".concat(Mt,"-next"),(0,Tt.Z)({},"".concat(Mt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(he)),Pi)}if(Lt<=3+Le*2){var Se={locale:le,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Mn,itemRender:di};Lt||Mo.push(It.createElement(Ut,(0,Ct.Z)({},Se,{key:"noPager",page:1,className:"".concat(Mt,"-item-disabled")})));for(var Yt=1;Yt<=Lt;Yt+=1){var $e=Ei===Yt;Mo.push(It.createElement(Ut,(0,Ct.Z)({},Se,{key:Yt,page:Yt,active:$e})))}}else{var on=cn?le.prev_3:le.prev_5,zn=cn?le.next_3:le.next_5,en=di(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Fi,"prev page")),xe=di(this.getJumpNextPage(),"jump-next",this.getItemIcon(Zi,"next page"));ri&&($i=en?It.createElement("li",{title:Mn?on:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Re()("".concat(Mt,"-jump-prev"),(0,Tt.Z)({},"".concat(Mt,"-jump-prev-custom-icon"),!!Fi))},en):null,En=xe?It.createElement("li",{title:Mn?zn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Re()("".concat(Mt,"-jump-next"),(0,Tt.Z)({},"".concat(Mt,"-jump-next-custom-icon"),!!Zi))},xe):null),gi=It.createElement(Ut,{locale:le,last:!0,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Lt,page:Lt,active:!1,showTitle:Mn,itemRender:di}),hi=It.createElement(Ut,{locale:le,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Mn,itemRender:di});var vn=Math.max(1,Ei-Le),Wn=Math.min(Ei+Le,Lt);Ei-1<=Le&&(Wn=1+Le*2),Lt-Ei<=Le&&(vn=Lt-Le*2);for(var qn=vn;qn<=Wn;qn+=1){var We=Ei===qn;Mo.push(It.createElement(Ut,{locale:le,rootPrefixCls:Mt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:qn,page:qn,active:We,showTitle:Mn,itemRender:di}))}Ei-1>=Le*2&&Ei!==3&&(Mo[0]=(0,It.cloneElement)(Mo[0],{className:"".concat(Mt,"-item-after-jump-prev")}),Mo.unshift($i)),Lt-Ei>=Le*2&&Ei!==Lt-2&&(Mo[Mo.length-1]=(0,It.cloneElement)(Mo[Mo.length-1],{className:"".concat(Mt,"-item-before-jump-next")}),Mo.push(En)),vn!==1&&Mo.unshift(hi),Wn!==Lt&&Mo.push(gi)}var fn=!this.hasPrev()||!Lt,Ie=!this.hasNext()||!Lt,an=this.renderPrev(Fe),_e=this.renderNext(he);return It.createElement("ul",(0,Ct.Z)({className:Re()(Mt,Rt,(0,Tt.Z)({},"".concat(Mt,"-disabled"),re)),style:Et,ref:this.paginationNode},_t),Ze,an?It.createElement("li",{title:Mn?le.prev_page:null,onClick:this.prev,tabIndex:fn?null:0,onKeyPress:this.runIfEnterPrev,className:Re()("".concat(Mt,"-prev"),(0,Tt.Z)({},"".concat(Mt,"-disabled"),fn)),"aria-disabled":fn},an):null,Mo,_e?It.createElement("li",{title:Mn?le.next_page:null,onClick:this.next,tabIndex:Ie?null:0,onKeyPress:this.runIfEnterNext,className:Re()("".concat(Mt,"-next"),(0,Tt.Z)({},"".concat(Mt,"-disabled"),Ie)),"aria-disabled":Ie},_e):null,It.createElement(jt,{disabled:re,locale:le,rootPrefixCls:Mt,selectComponentClass:Vi,selectPrefixCls:ji,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ei,pageSize:Po,pageSizeOptions:qi,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Rn}))}}],[{key:"getDerivedStateFromProps",value:function(mt,Mt){var Rt={};if("current"in mt&&(Rt.current=mt.current,mt.current!==Mt.current&&(Rt.currentInputValue=Rt.current)),"pageSize"in mt&&mt.pageSize!==Mt.pageSize){var Et=Mt.current,re=me(mt.pageSize,Mt,mt);Et=Et>re?re:Et,"current"in mt||(Rt.current=Et,Rt.currentInputValue=Et),Rt.pageSize=mt.pageSize}return Rt}}]),Dt}(It.Component);sn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:de,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:de,locale:kt.Z,style:{},itemRender:Ve,totalBoundaryShowSizeChanger:50};var qe=sn,Ye=St(22075),je=St(36355),hn=St(19716),ge=St(8628),Ht=St(9763),Ce=St(57809);const bn=te=>It.createElement(Ce.default,Object.assign({},te,{showSearch:!0,size:"small"})),yn=te=>It.createElement(Ce.default,Object.assign({},te,{showSearch:!0,size:"middle"}));bn.Option=Ce.default.Option,yn.Option=Ce.default.Option;var Ae=St(9937),Ue=St(17313),Sn=St(83116),Xn=St(37613);const Pn=te=>{const{componentCls:qt}=te;return{[`${qt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${qt}-item-link`]:{color:te.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${qt}-item-link`]:{color:te.colorTextDisabled,cursor:"not-allowed"}}},[`&${qt}-disabled`]:{cursor:"not-allowed",[`${qt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:te.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:te.colorBorder,backgroundColor:te.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:te.itemActiveBgDisabled},a:{color:te.itemActiveColorDisabled}}},[`${qt}-item-link`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${qt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${qt}-simple-pager`]:{color:te.colorTextDisabled},[`${qt}-jump-prev, ${qt}-jump-next`]:{[`${qt}-item-link-icon`]:{opacity:0},[`${qt}-item-ellipsis`]:{opacity:1}}},[`&${qt}-simple`]:{[`${qt}-prev, ${qt}-next`]:{[`&${qt}-disabled ${qt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Gn=te=>{const{componentCls:qt}=te;return{[`&${qt}-mini ${qt}-total-text, &${qt}-mini ${qt}-simple-pager`]:{height:te.itemSizeSM,lineHeight:`${te.itemSizeSM}px`},[`&${qt}-mini ${qt}-item`]:{minWidth:te.itemSizeSM,height:te.itemSizeSM,margin:0,lineHeight:`${te.itemSizeSM-2}px`},[`&${qt}-mini:not(${qt}-disabled) ${qt}-item:not(${qt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:te.colorBgTextHover},"&:active":{backgroundColor:te.colorBgTextActive}},[`&${qt}-mini ${qt}-prev, &${qt}-mini ${qt}-next`]:{minWidth:te.itemSizeSM,height:te.itemSizeSM,margin:0,lineHeight:`${te.itemSizeSM}px`},[`&${qt}-mini:not(${qt}-disabled)`]:{[`${qt}-prev, ${qt}-next`]:{[`&:hover ${qt}-item-link`]:{backgroundColor:te.colorBgTextHover},[`&:active ${qt}-item-link`]:{backgroundColor:te.colorBgTextActive},[`&${qt}-disabled:hover ${qt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${qt}-mini ${qt}-prev ${qt}-item-link,
|
|
|
&${qt}-mini ${qt}-next ${qt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:te.itemSizeSM,lineHeight:`${te.itemSizeSM}px`}},[`&${qt}-mini ${qt}-jump-prev, &${qt}-mini ${qt}-jump-next`]:{height:te.itemSizeSM,marginInlineEnd:0,lineHeight:`${te.itemSizeSM}px`},[`&${qt}-mini ${qt}-options`]:{marginInlineStart:te.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:te.miniOptionsSizeChangerTop},"&-quick-jumper":{height:te.itemSizeSM,lineHeight:`${te.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ae.x0)(te)),{width:te.paginationMiniQuickJumperInputWidth,height:te.controlHeightSM})}}}},Ee=te=>{const{componentCls:qt}=te;return{[`
|
|
|
&${qt}-simple ${qt}-prev,
|
|
|
&${qt}-simple ${qt}-next
|
|
|
`]:{height:te.itemSizeSM,lineHeight:`${te.itemSizeSM}px`,verticalAlign:"top",[`${qt}-item-link`]:{height:te.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:te.colorBgTextHover},"&:active":{backgroundColor:te.colorBgTextActive},"&::after":{height:te.itemSizeSM,lineHeight:`${te.itemSizeSM}px`}}},[`&${qt}-simple ${qt}-simple-pager`]:{display:"inline-block",height:te.itemSizeSM,marginInlineEnd:te.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:te.marginXS,padding:`0 ${te.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:te.itemInputBg,border:`${te.lineWidth}px ${te.lineType} ${te.colorBorder}`,borderRadius:te.borderRadius,outline:"none",transition:`border-color ${te.motionDurationMid}`,color:"inherit","&:hover":{borderColor:te.colorPrimary},"&:focus":{borderColor:te.colorPrimaryHover,boxShadow:`${te.inputOutlineOffset}px 0 ${te.controlOutlineWidth}px ${te.controlOutline}`},"&[disabled]":{color:te.colorTextDisabled,backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder,cursor:"not-allowed"}}}}},Jn=te=>{const{componentCls:qt}=te;return{[`${qt}-jump-prev, ${qt}-jump-next`]:{outline:0,[`${qt}-item-container`]:{position:"relative",[`${qt}-item-link-icon`]:{color:te.colorPrimary,fontSize:te.fontSizeSM,opacity:0,transition:`all ${te.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${qt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:te.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:te.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:te.paginationEllipsisTextIndent,opacity:1,transition:`all ${te.motionDurationMid}`}},"&:hover":{[`${qt}-item-link-icon`]:{opacity:1},[`${qt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${qt}-prev,
|
|
|
${qt}-jump-prev,
|
|
|
${qt}-jump-next
|
|
|
`]:{marginInlineEnd:te.marginXS},[`
|
|
|
${qt}-prev,
|
|
|
${qt}-next,
|
|
|
${qt}-jump-prev,
|
|
|
${qt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:te.itemSize,height:te.itemSize,color:te.colorText,fontFamily:te.fontFamily,lineHeight:`${te.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.motionDurationMid}`},[`${qt}-prev, ${qt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:te.colorText,cursor:"pointer",userSelect:"none"},[`${qt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:te.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${te.lineWidth}px ${te.lineType} transparent`,borderRadius:te.borderRadius,outline:"none",transition:`all ${te.motionDurationMid}`},[`&:hover ${qt}-item-link`]:{backgroundColor:te.colorBgTextHover},[`&:active ${qt}-item-link`]:{backgroundColor:te.colorBgTextActive},[`&${qt}-disabled:hover`]:{[`${qt}-item-link`]:{backgroundColor:"transparent"}}},[`${qt}-slash`]:{marginInlineEnd:te.paginationSlashMarginInlineEnd,marginInlineStart:te.paginationSlashMarginInlineStart},[`${qt}-options`]:{display:"inline-block",marginInlineStart:te.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:te.controlHeight,marginInlineStart:te.marginXS,lineHeight:`${te.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ae.ik)(te)),{width:te.controlHeightLG*1.25,height:te.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:te.marginXS,marginInlineEnd:te.marginXS})}}}},ai=te=>{const{componentCls:qt}=te;return{[`${qt}-item`]:{display:"inline-block",minWidth:te.itemSize,height:te.itemSize,marginInlineEnd:te.marginXS,fontFamily:te.fontFamily,lineHeight:`${te.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${te.lineWidth}px ${te.lineType} transparent`,borderRadius:te.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${te.paginationItemPaddingInline}px`,color:te.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${qt}-item-active)`]:{"&:hover":{transition:`all ${te.motionDurationMid}`,backgroundColor:te.colorBgTextHover},"&:active":{backgroundColor:te.colorBgTextActive}},"&-active":{fontWeight:te.fontWeightStrong,backgroundColor:te.itemActiveBg,borderColor:te.colorPrimary,a:{color:te.colorPrimary},"&:hover":{borderColor:te.colorPrimaryHover},"&:hover a":{color:te.colorPrimaryHover}}}}},ui=te=>{const{componentCls:qt}=te;return{[qt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(te)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${qt}-total-text`]:{display:"inline-block",height:te.itemSize,marginInlineEnd:te.marginXS,lineHeight:`${te.itemSize-2}px`,verticalAlign:"middle"}}),ai(te)),Jn(te)),Ee(te)),Gn(te)),Pn(te)),{[`@media only screen and (max-width: ${te.screenLG}px)`]:{[`${qt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${te.screenSM}px)`]:{[`${qt}-options`]:{display:"none"}}}),[`&${te.componentCls}-rtl`]:{direction:"rtl"}}},ln=te=>{const{componentCls:qt}=te;return{[`${qt}${qt}-disabled:not(${qt}-mini)`]:{"&, &:hover":{[`${qt}-item-link`]:{borderColor:te.colorBorder}},"&:focus-visible":{[`${qt}-item-link`]:{borderColor:te.colorBorder}},[`${qt}-item, ${qt}-item-link`]:{backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder,[`&:hover:not(${qt}-item-active)`]:{backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder,a:{color:te.colorTextDisabled}},[`&${qt}-item-active`]:{backgroundColor:te.itemActiveBgDisabled}},[`${qt}-prev, ${qt}-next`]:{"&:hover button":{backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder,color:te.colorTextDisabled},[`${qt}-item-link`]:{backgroundColor:te.colorBgContainerDisabled,borderColor:te.colorBorder}}},[`${qt}:not(${qt}-mini)`]:{[`${qt}-prev, ${qt}-next`]:{"&:hover button":{borderColor:te.colorPrimaryHover,backgroundColor:te.itemBg},[`${qt}-item-link`]:{backgroundColor:te.itemLinkBg,borderColor:te.colorBorder},[`&:hover ${qt}-item-link`]:{borderColor:te.colorPrimary,backgroundColor:te.itemBg,color:te.colorPrimary},[`&${qt}-disabled`]:{[`${qt}-item-link`]:{borderColor:te.colorBorder,color:te.colorTextDisabled}}},[`${qt}-item`]:{backgroundColor:te.itemBg,border:`${te.lineWidth}px ${te.lineType} ${te.colorBorder}`,[`&:hover:not(${qt}-item-active)`]:{borderColor:te.colorPrimary,backgroundColor:te.itemBg,a:{color:te.colorPrimary}},"&-active":{borderColor:te.colorPrimary}}}}},Te=te=>{const{componentCls:qt}=te;return{[`${qt}:not(${qt}-disabled)`]:{[`${qt}-item`]:Object.assign({},(0,Ue.Qy)(te)),[`${qt}-jump-prev, ${qt}-jump-next`]:{"&:focus-visible":Object.assign({[`${qt}-item-link-icon`]:{opacity:1},[`${qt}-item-ellipsis`]:{opacity:0}},(0,Ue.oN)(te))},[`${qt}-prev, ${qt}-next`]:{[`&:focus-visible ${qt}-item-link`]:Object.assign({},(0,Ue.oN)(te))}}}};var Me=(0,Sn.Z)("Pagination",te=>{const qt=(0,Xn.TS)(te,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:te.marginXXS/2,paginationMiniQuickJumperInputWidth:te.controlHeightLG*1.1,paginationItemPaddingInline:te.marginXXS*1.5,paginationEllipsisLetterSpacing:te.marginXXS/2,paginationSlashMarginInlineStart:te.marginXXS,paginationSlashMarginInlineEnd:te.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ae.e5)(te),(0,Ae.TM)(te));return[ui(qt),Te(qt),te.wireframe&&ln(qt)]},te=>({itemBg:te.colorBgContainer,itemSize:te.controlHeight,itemSizeSM:te.controlHeightSM,itemActiveBg:te.colorBgContainer,itemLinkBg:te.colorBgContainer,itemActiveColorDisabled:te.colorTextDisabled,itemActiveBgDisabled:te.controlItemBgActiveDisabled,itemInputBg:te.colorBgContainer,miniOptionsSizeChangerTop:0})),ie=function(te,qt){var Dt={};for(var xt in te)Object.prototype.hasOwnProperty.call(te,xt)&&qt.indexOf(xt)<0&&(Dt[xt]=te[xt]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,xt=Object.getOwnPropertySymbols(te);mt<xt.length;mt++)qt.indexOf(xt[mt])<0&&Object.prototype.propertyIsEnumerable.call(te,xt[mt])&&(Dt[xt[mt]]=te[xt[mt]]);return Dt},Oe=te=>{const{prefixCls:qt,selectPrefixCls:Dt,className:xt,rootClassName:mt,style:Mt,size:Rt,locale:Et,selectComponentClass:re,responsive:Qe,showSizeChanger:mn}=te,le=ie(te,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Ge}=(0,ge.Z)(Qe),{getPrefixCls:cn,direction:Mn,pagination:Zn={}}=It.useContext(je.E_),_n=cn("pagination",qt),[di,ri]=Me(_n),Fi=mn!=null?mn:Zn.showSizeChanger,Zi=It.useMemo(()=>{const Lt=It.createElement("span",{className:`${_n}-item-ellipsis`},"\u2022\u2022\u2022"),Mo=It.createElement("button",{className:`${_n}-item-link`,type:"button",tabIndex:-1},Mn==="rtl"?It.createElement(ve.Z,null):It.createElement(oe.Z,null)),$i=It.createElement("button",{className:`${_n}-item-link`,type:"button",tabIndex:-1},Mn==="rtl"?It.createElement(oe.Z,null):It.createElement(ve.Z,null)),En=It.createElement("a",{className:`${_n}-item-link`},It.createElement("div",{className:`${_n}-item-container`},Mn==="rtl"?It.createElement(we.Z,{className:`${_n}-item-link-icon`}):It.createElement(ze,{className:`${_n}-item-link-icon`}),Lt)),hi=It.createElement("a",{className:`${_n}-item-link`},It.createElement("div",{className:`${_n}-item-container`},Mn==="rtl"?It.createElement(ze,{className:`${_n}-item-link-icon`}):It.createElement(we.Z,{className:`${_n}-item-link-icon`}),Lt));return{prevIcon:Mo,nextIcon:$i,jumpPrevIcon:En,jumpNextIcon:hi}},[Mn,_n]),[Vi]=(0,Ht.Z)("Pagination",Ye.Z),ji=Object.assign(Object.assign({},Vi),Et),qi=(0,hn.Z)(Rt),wo=qi==="small"||!!(Ge&&!qi&&Qe),Ei=cn("select",Dt),Po=Re()({[`${_n}-mini`]:wo,[`${_n}-rtl`]:Mn==="rtl"},Zn==null?void 0:Zn.className,xt,mt,ri),ki=Object.assign(Object.assign({},Zn==null?void 0:Zn.style),Mt);return di(It.createElement(qe,Object.assign({},Zi,le,{style:ki,prefixCls:_n,selectPrefixCls:Ei,className:Po,selectComponentClass:re||(wo?bn:yn),locale:ji,showSizeChanger:Fi})))},ke=Oe},93948:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return mn}});var Ct=St(59301),It=St(79999),ee=St(10402),Ne=St(33130),Vt=St(72119),fe=St(92310),Ft=St.n(fe),ze=St(64002),we=St(36355),oe=St(5891),ve=St(57259),ye=St(19149),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Tt=function(){var Ge=(0,Ct.useRef)([]),cn=(0,Ct.useRef)(null);return(0,Ct.useEffect)(function(){var Mn=Date.now(),Zn=!1;Ge.current.forEach(function(_n){if(_n){Zn=!0;var di=_n.style;di.transitionDuration=".3s, .3s, .3s, .06s",cn.current&&Mn-cn.current<100&&(di.transitionDuration="0s, 0s")}}),Zn&&(cn.current=Date.now())}),Ge.current},et=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],nt=function(Ge){var cn=(0,ve.Z)((0,ve.Z)({},Re),Ge),Mn=cn.className,Zn=cn.percent,_n=cn.prefixCls,di=cn.strokeColor,ri=cn.strokeLinecap,Fi=cn.strokeWidth,Zi=cn.style,Vi=cn.trailColor,ji=cn.trailWidth,qi=cn.transition,wo=(0,ye.Z)(cn,et);delete wo.gapPosition;var Ei=Array.isArray(Zn)?Zn:[Zn],Po=Array.isArray(di)?di:[di],ki=Tt(),Lt=Fi/2,Mo=100-Fi/2,$i="M ".concat(ri==="round"?Lt:0,",").concat(Lt,`
|
|
|
L `).concat(ri==="round"?Mo:100,",").concat(Lt),En="0 0 100 ".concat(Fi),hi=0;return Ct.createElement("svg",(0,oe.Z)({className:Ft()("".concat(_n,"-line"),Mn),viewBox:En,preserveAspectRatio:"none",style:Zi},wo),Ct.createElement("path",{className:"".concat(_n,"-line-trail"),d:$i,strokeLinecap:ri,stroke:Vi,strokeWidth:ji||Fi,fillOpacity:"0"}),Ei.map(function(gi,Pi){var Rn=1;switch(ri){case"round":Rn=1-Fi/100;break;case"square":Rn=1-Fi/2/100;break;default:Rn=1;break}var Le={strokeDasharray:"".concat(gi*Rn,"px, 100px"),strokeDashoffset:"-".concat(hi,"px"),transition:qi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Fe=Po[Pi]||Po[Po.length-1];return hi+=gi,Ct.createElement("path",{key:Pi,className:"".concat(_n,"-line-path"),d:$i,strokeLinecap:ri,stroke:Fe,strokeWidth:Fi,fillOpacity:"0",ref:function(_t){ki[Pi]=_t},style:Le})}))},ht=nt,st=St(80665),gt=St(29043),vt=St(87746),wt=0,Bt=(0,vt.Z)();function kt(){var le;return Bt?(le=wt,wt+=1):le="TEST_OR_SSR",le}var Ot=function(le){var Ge=Ct.useState(),cn=(0,gt.Z)(Ge,2),Mn=cn[0],Zn=cn[1];return Ct.useEffect(function(){Zn("rc_progress_".concat(kt()))},[]),le||Mn},jt=function(Ge){var cn=Ge.bg,Mn=Ge.children;return Ct.createElement("div",{style:{width:"100%",height:"100%",background:cn}},Mn)};function Xt(le,Ge){return Object.keys(le).map(function(cn){var Mn=parseFloat(cn),Zn="".concat(Math.floor(Mn*Ge),"%");return"".concat(le[cn]," ").concat(Zn)})}var Ut=Ct.forwardRef(function(le,Ge){var cn=le.prefixCls,Mn=le.color,Zn=le.gradientId,_n=le.radius,di=le.style,ri=le.ptg,Fi=le.strokeLinecap,Zi=le.strokeWidth,Vi=le.size,ji=le.gapDegree,qi=Mn&&(0,st.Z)(Mn)==="object",wo=qi?"#FFF":void 0,Ei=Vi/2,Po=Ct.createElement("circle",{className:"".concat(cn,"-circle-path"),r:_n,cx:Ei,cy:Ei,stroke:wo,strokeLinecap:Fi,strokeWidth:Zi,opacity:ri===0?0:1,style:di,ref:Ge});if(!qi)return Po;var ki="".concat(Zn,"-conic"),Lt=ji?"".concat(180+ji/2,"deg"):"0deg",Mo=Xt(Mn,(360-ji)/360),$i=Xt(Mn,1),En="conic-gradient(from ".concat(Lt,", ").concat(Mo.join(", "),")"),hi="linear-gradient(to ".concat(ji?"bottom":"top",", ").concat($i.join(", "),")");return Ct.createElement(Ct.Fragment,null,Ct.createElement("mask",{id:ki},Po),Ct.createElement("foreignObject",{x:0,y:0,width:Vi,height:Vi,mask:"url(#".concat(ki,")")},Ct.createElement(jt,{bg:hi},Ct.createElement(jt,{bg:En}))))}),de=Ut,Gt=100,Ve=function(Ge,cn,Mn,Zn,_n,di,ri,Fi,Zi,Vi){var ji=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,qi=Mn/100*360*((360-di)/360),wo=di===0?0:{bottom:0,top:180,left:90,right:-90}[ri],Ei=(100-Zn)/100*cn;Zi==="round"&&Zn!==100&&(Ei+=Vi/2,Ei>=cn&&(Ei=cn-.01));var Po=Gt/2;return{stroke:typeof Fi=="string"?Fi:void 0,strokeDasharray:"".concat(cn,"px ").concat(Ge),strokeDashoffset:Ei+ji,transform:"rotate(".concat(_n+qi+wo,"deg)"),transformOrigin:"".concat(Po,"px ").concat(Po,"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}},me=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function sn(le){var Ge=le!=null?le:[];return Array.isArray(Ge)?Ge:[Ge]}var qe=function(Ge){var cn=(0,ve.Z)((0,ve.Z)({},Re),Ge),Mn=cn.id,Zn=cn.prefixCls,_n=cn.steps,di=cn.strokeWidth,ri=cn.trailWidth,Fi=cn.gapDegree,Zi=Fi===void 0?0:Fi,Vi=cn.gapPosition,ji=cn.trailColor,qi=cn.strokeLinecap,wo=cn.style,Ei=cn.className,Po=cn.strokeColor,ki=cn.percent,Lt=(0,ye.Z)(cn,me),Mo=Gt/2,$i=Ot(Mn),En="".concat($i,"-gradient"),hi=Mo-di/2,gi=Math.PI*2*hi,Pi=Zi>0?90+Zi/2:-90,Rn=gi*((360-Zi)/360),Le=(0,st.Z)(_n)==="object"?_n:{count:_n,space:2},Fe=Le.count,he=Le.space,_t=sn(ki),Ze=sn(Po),tn=Ze.find(function(xe){return xe&&(0,st.Z)(xe)==="object"}),Se=tn&&(0,st.Z)(tn)==="object",Yt=Se?"butt":qi,$e=Ve(gi,Rn,0,100,Pi,Zi,Vi,ji,Yt,di),on=Tt(),zn=function(){var vn=0;return _t.map(function(Wn,qn){var We=Ze[qn]||Ze[Ze.length-1],fn=Ve(gi,Rn,vn,Wn,Pi,Zi,Vi,We,Yt,di);return vn+=Wn,Ct.createElement(de,{key:qn,color:We,ptg:Wn,radius:hi,prefixCls:Zn,gradientId:En,style:fn,strokeLinecap:Yt,strokeWidth:di,gapDegree:Zi,ref:function(an){on[qn]=an},size:Gt})}).reverse()},en=function(){var vn=Math.round(Fe*(_t[0]/100)),Wn=100/Fe,qn=0;return new Array(Fe).fill(null).map(function(We,fn){var Ie=fn<=vn-1?Ze[0]:ji,an=Ie&&(0,st.Z)(Ie)==="object"?"url(#".concat(En,")"):void 0,_e=Ve(gi,Rn,qn,Wn,Pi,Zi,Vi,Ie,"butt",di,he);return qn+=(Rn-_e.strokeDashoffset+he)*100/Rn,Ct.createElement("circle",{key:fn,className:"".concat(Zn,"-circle-path"),r:hi,cx:Mo,cy:Mo,stroke:an,strokeWidth:di,opacity:1,style:_e,ref:function(pn){on[fn]=pn}})})};return Ct.createElement("svg",(0,oe.Z)({className:Ft()("".concat(Zn,"-circle"),Ei),viewBox:"0 0 ".concat(Gt," ").concat(Gt),style:wo,id:Mn,role:"presentation"},Lt),!Fe&&Ct.createElement("circle",{className:"".concat(Zn,"-circle-trail"),r:hi,cx:Mo,cy:Mo,stroke:ji,strokeLinecap:Yt,strokeWidth:ri||di,style:$e}),Fe?en():zn())},Ye=qe,je={Line:ht,Circle:Ye},hn=St(6848),ge=St(93398);function Ht(le){return!le||le<0?0:le>100?100:le}function Ce(le){let{success:Ge,successPercent:cn}=le,Mn=cn;return Ge&&"progress"in Ge&&(Mn=Ge.progress),Ge&&"percent"in Ge&&(Mn=Ge.percent),Mn}const bn=le=>{let{percent:Ge,success:cn,successPercent:Mn}=le;const Zn=Ht(Ce({success:cn,successPercent:Mn}));return[Zn,Ht(Ht(Ge)-Zn)]},yn=le=>{let{success:Ge={},strokeColor:cn}=le;const{strokeColor:Mn}=Ge;return[Mn||ge.presetPrimaryColors.green,cn||null]},Ae=(le,Ge,cn)=>{var Mn,Zn,_n,di;let ri=-1,Fi=-1;if(Ge==="step"){const Zi=cn.steps,Vi=cn.strokeWidth;typeof le=="string"||typeof le=="undefined"?(ri=le==="small"?2:14,Fi=Vi!=null?Vi:8):typeof le=="number"?[ri,Fi]=[le,le]:[ri=14,Fi=8]=le,ri*=Zi}else if(Ge==="line"){const Zi=cn==null?void 0:cn.strokeWidth;typeof le=="string"||typeof le=="undefined"?Fi=Zi||(le==="small"?6:8):typeof le=="number"?[ri,Fi]=[le,le]:[ri=-1,Fi=8]=le}else(Ge==="circle"||Ge==="dashboard")&&(typeof le=="string"||typeof le=="undefined"?[ri,Fi]=le==="small"?[60,60]:[120,120]:typeof le=="number"?[ri,Fi]=[le,le]:(ri=(Zn=(Mn=le[0])!==null&&Mn!==void 0?Mn:le[1])!==null&&Zn!==void 0?Zn:120,Fi=(di=(_n=le[0])!==null&&_n!==void 0?_n:le[1])!==null&&di!==void 0?di:120));return[ri,Fi]},Ue=3,Sn=le=>Ue/le*100;var Pn=le=>{const{prefixCls:Ge,trailColor:cn=null,strokeLinecap:Mn="round",gapPosition:Zn,gapDegree:_n,width:di=120,type:ri,children:Fi,success:Zi,size:Vi=di}=le,[ji,qi]=Ae(Vi,"circle");let{strokeWidth:wo}=le;wo===void 0&&(wo=Math.max(Sn(ji),6));const Ei={width:ji,height:qi,fontSize:ji*.15+6},Po=Ct.useMemo(()=>{if(_n||_n===0)return _n;if(ri==="dashboard")return 75},[_n,ri]),ki=Zn||ri==="dashboard"&&"bottom"||void 0,Lt=Object.prototype.toString.call(le.strokeColor)==="[object Object]",Mo=yn({success:Zi,strokeColor:le.strokeColor}),$i=Ft()(`${Ge}-inner`,{[`${Ge}-circle-gradient`]:Lt}),En=Ct.createElement(Ye,{percent:bn(le),strokeWidth:wo,trailWidth:wo,strokeColor:Mo,strokeLinecap:Mn,trailColor:cn,prefixCls:Ge,gapDegree:Po,gapPosition:ki});return Ct.createElement("div",{className:$i,style:Ei},ji<=20?Ct.createElement(hn.Z,{title:Fi},Ct.createElement("span",null,En)):Ct.createElement(Ct.Fragment,null,En,Fi))},Gn=function(le,Ge){var cn={};for(var Mn in le)Object.prototype.hasOwnProperty.call(le,Mn)&&Ge.indexOf(Mn)<0&&(cn[Mn]=le[Mn]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zn=0,Mn=Object.getOwnPropertySymbols(le);Zn<Mn.length;Zn++)Ge.indexOf(Mn[Zn])<0&&Object.prototype.propertyIsEnumerable.call(le,Mn[Zn])&&(cn[Mn[Zn]]=le[Mn[Zn]]);return cn};const Ee=le=>{let Ge=[];return Object.keys(le).forEach(cn=>{const Mn=parseFloat(cn.replace(/%/g,""));isNaN(Mn)||Ge.push({key:Mn,value:le[cn]})}),Ge=Ge.sort((cn,Mn)=>cn.key-Mn.key),Ge.map(cn=>{let{key:Mn,value:Zn}=cn;return`${Zn} ${Mn}%`}).join(", ")},Jn=(le,Ge)=>{const{from:cn=ge.presetPrimaryColors.blue,to:Mn=ge.presetPrimaryColors.blue,direction:Zn=Ge==="rtl"?"to left":"to right"}=le,_n=Gn(le,["from","to","direction"]);if(Object.keys(_n).length!==0){const di=Ee(_n);return{backgroundImage:`linear-gradient(${Zn}, ${di})`}}return{backgroundImage:`linear-gradient(${Zn}, ${cn}, ${Mn})`}};var ui=le=>{const{prefixCls:Ge,direction:cn,percent:Mn,size:Zn,strokeWidth:_n,strokeColor:di,strokeLinecap:ri="round",children:Fi,trailColor:Zi=null,success:Vi}=le,ji=di&&typeof di!="string"?Jn(di,cn):{backgroundColor:di},qi=ri==="square"||ri==="butt"?0:void 0,wo={backgroundColor:Zi||void 0,borderRadius:qi},Ei=Zn!=null?Zn:[-1,_n||(Zn==="small"?6:8)],[Po,ki]=Ae(Ei,"line",{strokeWidth:_n}),Lt=Object.assign({width:`${Ht(Mn)}%`,height:ki,borderRadius:qi},ji),Mo=Ce(le),$i={width:`${Ht(Mo)}%`,height:ki,borderRadius:qi,backgroundColor:Vi==null?void 0:Vi.strokeColor},En={width:Po<0?"100%":Po,height:ki};return Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{className:`${Ge}-outer`,style:En},Ct.createElement("div",{className:`${Ge}-inner`,style:wo},Ct.createElement("div",{className:`${Ge}-bg`,style:Lt}),Mo!==void 0?Ct.createElement("div",{className:`${Ge}-success-bg`,style:$i}):null)),Fi)},Te=le=>{const{size:Ge,steps:cn,percent:Mn=0,strokeWidth:Zn=8,strokeColor:_n,trailColor:di=null,prefixCls:ri,children:Fi}=le,Zi=Math.round(cn*(Mn/100)),Vi=Ge==="small"?2:14,ji=Ge!=null?Ge:[Vi,Zn],[qi,wo]=Ae(ji,"step",{steps:cn,strokeWidth:Zn}),Ei=qi/cn,Po=new Array(cn);for(let ki=0;ki<cn;ki++){const Lt=Array.isArray(_n)?_n[ki]:_n;Po[ki]=Ct.createElement("div",{key:ki,className:Ft()(`${ri}-steps-item`,{[`${ri}-steps-item-active`]:ki<=Zi-1}),style:{backgroundColor:ki<=Zi-1?Lt:di,width:Ei,height:wo}})}return Ct.createElement("div",{className:`${ri}-steps-outer`},Po,Fi)},Me=St(9792),ie=St(17313),Kt=St(83116),Oe=St(37613);const ke=le=>{const Ge=le?"100%":"-100%";return new Me.Keyframes(`antProgress${le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},te=le=>{const{componentCls:Ge,iconCls:cn}=le;return{[Ge]:Object.assign(Object.assign({},(0,ie.Wf)(le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:le.fontSize,marginInlineEnd:le.marginXS,marginBottom:le.marginXS},[`${Ge}-outer`]:{display:"inline-block",width:"100%"},[`&${Ge}-show-info`]:{[`${Ge}-outer`]:{marginInlineEnd:`calc(-2em - ${le.marginXS}px)`,paddingInlineEnd:`calc(2em + ${le.paddingXS}px)`}},[`${Ge}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:le.remainingColor,borderRadius:le.lineBorderRadius},[`${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:le.defaultColor}},[`${Ge}-success-bg, ${Ge}-bg`]:{position:"relative",backgroundColor:le.defaultColor,borderRadius:le.lineBorderRadius,transition:`all ${le.motionDurationSlow} ${le.motionEaseInOutCirc}`},[`${Ge}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:le.colorSuccess},[`${Ge}-text`]:{display:"inline-block",width:"2em",marginInlineStart:le.marginXS,color:le.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[cn]:{fontSize:le.fontSize}},[`&${Ge}-status-active`]:{[`${Ge}-bg::before`]:{position:"absolute",inset:0,backgroundColor:le.colorBgContainer,borderRadius:le.lineBorderRadius,opacity:0,animationName:ke(),animationDuration:le.progressActiveMotionDuration,animationTimingFunction:le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ge}-rtl${Ge}-status-active`]:{[`${Ge}-bg::before`]:{animationName:ke(!0)}},[`&${Ge}-status-exception`]:{[`${Ge}-bg`]:{backgroundColor:le.colorError},[`${Ge}-text`]:{color:le.colorError}},[`&${Ge}-status-exception ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:le.colorError}},[`&${Ge}-status-success`]:{[`${Ge}-bg`]:{backgroundColor:le.colorSuccess},[`${Ge}-text`]:{color:le.colorSuccess}},[`&${Ge}-status-success ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:le.colorSuccess}}})}},qt=le=>{const{componentCls:Ge,iconCls:cn}=le;return{[Ge]:{[`${Ge}-circle-trail`]:{stroke:le.remainingColor},[`&${Ge}-circle ${Ge}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ge}-circle ${Ge}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:le.circleTextColor,fontSize:le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[cn]:{fontSize:`${le.fontSize/le.fontSizeSM}em`}},[`${Ge}-circle&-status-exception`]:{[`${Ge}-text`]:{color:le.colorError}},[`${Ge}-circle&-status-success`]:{[`${Ge}-text`]:{color:le.colorSuccess}}},[`${Ge}-inline-circle`]:{lineHeight:1,[`${Ge}-inner`]:{verticalAlign:"bottom"}}}},Dt=le=>{const{componentCls:Ge}=le;return{[Ge]:{[`${Ge}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:le.progressStepMinWidth,marginInlineEnd:le.progressStepMarginInlineEnd,backgroundColor:le.remainingColor,transition:`all ${le.motionDurationSlow}`,"&-active":{backgroundColor:le.defaultColor}}}}}},xt=le=>{const{componentCls:Ge,iconCls:cn}=le;return{[Ge]:{[`${Ge}-small&-line, ${Ge}-small&-line ${Ge}-text ${cn}`]:{fontSize:le.fontSizeSM}}}};var mt=(0,Kt.Z)("Progress",le=>{const Ge=le.marginXXS/2,cn=(0,Oe.TS)(le,{progressStepMarginInlineEnd:Ge,progressStepMinWidth:Ge,progressActiveMotionDuration:"2.4s"});return[te(cn),qt(cn),Dt(cn),xt(cn)]},le=>({circleTextColor:le.colorText,defaultColor:le.colorInfo,remainingColor:le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Mt=function(le,Ge){var cn={};for(var Mn in le)Object.prototype.hasOwnProperty.call(le,Mn)&&Ge.indexOf(Mn)<0&&(cn[Mn]=le[Mn]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zn=0,Mn=Object.getOwnPropertySymbols(le);Zn<Mn.length;Zn++)Ge.indexOf(Mn[Zn])<0&&Object.prototype.propertyIsEnumerable.call(le,Mn[Zn])&&(cn[Mn[Zn]]=le[Mn[Zn]]);return cn};const Rt=null,Et=["normal","exception","active","success"];var Qe=Ct.forwardRef((le,Ge)=>{const{prefixCls:cn,className:Mn,rootClassName:Zn,steps:_n,strokeColor:di,percent:ri=0,size:Fi="default",showInfo:Zi=!0,type:Vi="line",status:ji,format:qi,style:wo}=le,Ei=Mt(le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Po=Ct.useMemo(()=>{var _t,Ze;const tn=Ce(le);return parseInt(tn!==void 0?(_t=tn!=null?tn:0)===null||_t===void 0?void 0:_t.toString():(Ze=ri!=null?ri:0)===null||Ze===void 0?void 0:Ze.toString(),10)},[ri,le.success,le.successPercent]),ki=Ct.useMemo(()=>!Et.includes(ji)&&Po>=100?"success":ji||"normal",[ji,Po]),{getPrefixCls:Lt,direction:Mo,progress:$i}=Ct.useContext(we.E_),En=Lt("progress",cn),[hi,gi]=mt(En),Pi=Ct.useMemo(()=>{if(!Zi)return null;const _t=Ce(le);let Ze;const tn=qi||(Yt=>`${Yt}%`),Se=Vi==="line";return qi||ki!=="exception"&&ki!=="success"?Ze=tn(Ht(ri),Ht(_t)):ki==="exception"?Ze=Se?Ct.createElement(Ne.Z,null):Ct.createElement(Vt.Z,null):ki==="success"&&(Ze=Se?Ct.createElement(It.Z,null):Ct.createElement(ee.Z,null)),Ct.createElement("span",{className:`${En}-text`,title:typeof Ze=="string"?Ze:void 0},Ze)},[Zi,ri,Po,ki,Vi,En,qi]),Rn=Array.isArray(di)?di[0]:di,Le=typeof di=="string"||Array.isArray(di)?di:void 0;let Fe;Vi==="line"?Fe=_n?Ct.createElement(Te,Object.assign({},le,{strokeColor:Le,prefixCls:En,steps:_n}),Pi):Ct.createElement(ui,Object.assign({},le,{strokeColor:Rn,prefixCls:En,direction:Mo}),Pi):(Vi==="circle"||Vi==="dashboard")&&(Fe=Ct.createElement(Pn,Object.assign({},le,{strokeColor:Rn,prefixCls:En,progressStatus:ki}),Pi));const he=Ft()(En,`${En}-status-${ki}`,`${En}-${Vi==="dashboard"&&"circle"||_n&&"steps"||Vi}`,{[`${En}-inline-circle`]:Vi==="circle"&&Ae(Fi,"circle")[0]<=20,[`${En}-show-info`]:Zi,[`${En}-${Fi}`]:typeof Fi=="string",[`${En}-rtl`]:Mo==="rtl"},$i==null?void 0:$i.className,Mn,Zn,gi);return hi(Ct.createElement("div",Object.assign({ref:Ge,style:Object.assign(Object.assign({},$i==null?void 0:$i.style),wo),className:he,role:"progressbar","aria-valuenow":Po},(0,ze.Z)(Ei,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Fe))}),mn=Qe},39978:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return Ht}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(bn,yn){return It.createElement(Vt.Z,(0,Ct.Z)({},bn,{ref:yn,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft,we=St(92310),oe=St.n(we),ve=St(80962),ye=St(29043),Re=St(19149),Tt=St(35788),et=St(85108),nt=St(36994);function ht(Ce,bn){var yn=Ce.disabled,Ae=Ce.prefixCls,Ue=Ce.character,Sn=Ce.characterRender,Xn=Ce.index,Pn=Ce.count,Gn=Ce.value,Ee=Ce.allowHalf,Jn=Ce.focused,ai=Ce.onHover,ui=Ce.onClick,ln=function(qt){ai(qt,Xn)},Te=function(qt){ui(qt,Xn)},Me=function(qt){qt.keyCode===et.Z.ENTER&&ui(qt,Xn)},ie=Xn+1,Kt=new Set([Ae]);Gn===0&&Xn===0&&Jn?Kt.add("".concat(Ae,"-focused")):Ee&&Gn+.5>=ie&&Gn<ie?(Kt.add("".concat(Ae,"-half")),Kt.add("".concat(Ae,"-active")),Jn&&Kt.add("".concat(Ae,"-focused"))):(ie<=Gn?Kt.add("".concat(Ae,"-full")):Kt.add("".concat(Ae,"-zero")),ie===Gn&&Jn&&Kt.add("".concat(Ae,"-focused")));var Oe=typeof Ue=="function"?Ue(Ce):Ue,ke=It.createElement("li",{className:oe()(Array.from(Kt)),ref:bn},It.createElement("div",{onClick:yn?null:Te,onKeyDown:yn?null:Me,onMouseMove:yn?null:ln,role:"radio","aria-checked":Gn>Xn?"true":"false","aria-posinset":Xn+1,"aria-setsize":Pn,tabIndex:yn?-1:0},It.createElement("div",{className:"".concat(Ae,"-first")},Oe),It.createElement("div",{className:"".concat(Ae,"-second")},Oe)));return Sn&&(ke=Sn(ke,Ce)),ke}var st=It.forwardRef(ht);function gt(){var Ce=It.useRef({});function bn(Ae){return Ce.current[Ae]}function yn(Ae){return function(Ue){Ce.current[Ae]=Ue}}return[bn,yn]}function vt(Ce){var bn=Ce.pageXOffset,yn="scrollLeft";if(typeof bn!="number"){var Ae=Ce.document;bn=Ae.documentElement[yn],typeof bn!="number"&&(bn=Ae.body[yn])}return bn}function wt(Ce){var bn,yn,Ae=Ce.ownerDocument,Ue=Ae.body,Sn=Ae&&Ae.documentElement,Xn=Ce.getBoundingClientRect();return bn=Xn.left,yn=Xn.top,bn-=Sn.clientLeft||Ue.clientLeft||0,yn-=Sn.clientTop||Ue.clientTop||0,{left:bn,top:yn}}function Bt(Ce){var bn=wt(Ce),yn=Ce.ownerDocument,Ae=yn.defaultView||yn.parentWindow;return bn.left+=vt(Ae),bn.left}var kt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ot(Ce,bn){var yn,Ae=Ce.prefixCls,Ue=Ae===void 0?"rc-rate":Ae,Sn=Ce.className,Xn=Ce.defaultValue,Pn=Ce.value,Gn=Ce.count,Ee=Gn===void 0?5:Gn,Jn=Ce.allowHalf,ai=Jn===void 0?!1:Jn,ui=Ce.allowClear,ln=ui===void 0?!0:ui,Te=Ce.character,Me=Te===void 0?"\u2605":Te,ie=Ce.characterRender,Kt=Ce.disabled,Oe=Ce.direction,ke=Oe===void 0?"ltr":Oe,te=Ce.tabIndex,qt=te===void 0?0:te,Dt=Ce.autoFocus,xt=Ce.onHoverChange,mt=Ce.onChange,Mt=Ce.onFocus,Rt=Ce.onBlur,Et=Ce.onKeyDown,re=Ce.onMouseLeave,Qe=(0,Re.Z)(Ce,kt),mn=gt(),le=(0,ye.Z)(mn,2),Ge=le[0],cn=le[1],Mn=It.useRef(null),Zn=function(){if(!Kt){var Yt;(Yt=Mn.current)===null||Yt===void 0||Yt.focus()}};It.useImperativeHandle(bn,function(){return{focus:Zn,blur:function(){if(!Kt){var Yt;(Yt=Mn.current)===null||Yt===void 0||Yt.blur()}}}});var _n=(0,Tt.Z)(Xn||0,{value:Pn}),di=(0,ye.Z)(_n,2),ri=di[0],Fi=di[1],Zi=(0,Tt.Z)(null),Vi=(0,ye.Z)(Zi,2),ji=Vi[0],qi=Vi[1],wo=function(Yt,$e){var on=ke==="rtl",zn=Yt+1;if(ai){var en=Ge(Yt),xe=Bt(en),vn=en.clientWidth;(on&&$e-xe>vn/2||!on&&$e-xe<vn/2)&&(zn-=.5)}return zn},Ei=function(Yt){Fi(Yt),mt==null||mt(Yt)},Po=It.useState(!1),ki=(0,ye.Z)(Po,2),Lt=ki[0],Mo=ki[1],$i=function(){Mo(!0),Mt==null||Mt()},En=function(){Mo(!1),Rt==null||Rt()},hi=It.useState(null),gi=(0,ye.Z)(hi,2),Pi=gi[0],Rn=gi[1],Le=function(Yt,$e){var on=wo($e,Yt.pageX);on!==ji&&(Rn(on),qi(null)),xt==null||xt(on)},Fe=function(Yt){Kt||(Rn(null),qi(null),xt==null||xt(void 0)),Yt&&(re==null||re(Yt))},he=function(Yt,$e){var on=wo($e,Yt.pageX),zn=!1;ln&&(zn=on===ri),Fe(),Ei(zn?0:on),qi(zn?on:null)},_t=function(Yt){var $e=Yt.keyCode,on=ke==="rtl",zn=ri;$e===et.Z.RIGHT&&zn<Ee&&!on?(ai?zn+=.5:zn+=1,Ei(zn),Yt.preventDefault()):$e===et.Z.LEFT&&zn>0&&!on||$e===et.Z.RIGHT&&zn>0&&on?(ai?zn-=.5:zn-=1,Ei(zn),Yt.preventDefault()):$e===et.Z.LEFT&&zn<Ee&&on&&(ai?zn+=.5:zn+=1,Ei(zn),Yt.preventDefault()),Et==null||Et(Yt)};It.useEffect(function(){Dt&&!Kt&&Zn()},[]);var Ze=new Array(Ee).fill(0).map(function(Se,Yt){return It.createElement(st,{ref:cn(Yt),index:Yt,count:Ee,disabled:Kt,prefixCls:"".concat(Ue,"-star"),allowHalf:ai,value:Pi===null?ri:Pi,onClick:he,onHover:Le,key:Se||Yt,character:Me,characterRender:ie,focused:Lt})}),tn=oe()(Ue,Sn,(yn={},(0,ve.Z)(yn,"".concat(Ue,"-disabled"),Kt),(0,ve.Z)(yn,"".concat(Ue,"-rtl"),ke==="rtl"),yn));return It.createElement("ul",(0,Ct.Z)({className:tn,onMouseLeave:Fe,tabIndex:Kt?-1:qt,onFocus:Kt?null:$i,onBlur:Kt?null:En,onKeyDown:Kt?null:_t,ref:Mn,role:"radiogroup"},(0,nt.Z)(Qe,{aria:!0,data:!0,attr:!0})),Ze)}var jt=It.forwardRef(Ot),Xt=jt,Ut=St(36355),de=St(6848),Gt=St(17313),Ve=St(83116),me=St(37613);const sn=Ce=>{const{componentCls:bn}=Ce;return{[`${bn}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ce.marginXS},"> div":{transition:`all ${Ce.motionDurationMid}, outline 0s`,"&:hover":{transform:Ce.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ce.lineWidth}px dashed ${Ce.starColor}`,transform:Ce.starHoverScale}},"&-first, &-second":{color:Ce.starBg,transition:`all ${Ce.motionDurationMid}`,userSelect:"none",[Ce.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${bn}-star-first, &-half ${bn}-star-second`]:{opacity:1},[`&-half ${bn}-star-first, &-full ${bn}-star-second`]:{color:"inherit"}}}},qe=Ce=>({[`&-rtl${Ce.componentCls}`]:{direction:"rtl"}}),Ye=Ce=>{const{componentCls:bn}=Ce;return{[bn]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Gt.Wf)(Ce)),{display:"inline-block",margin:0,padding:0,color:Ce.starColor,fontSize:Ce.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${bn} ${bn}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),sn(Ce)),{[`+ ${bn}-text`]:{display:"inline-block",marginInlineStart:Ce.marginXS,fontSize:Ce.fontSize}}),qe(Ce))}};var je=(0,Ve.Z)("Rate",Ce=>{const bn=(0,me.TS)(Ce,{});return[Ye(bn)]},Ce=>({starColor:Ce.yellow6,starSize:Ce.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ce.colorFillContent})),hn=function(Ce,bn){var yn={};for(var Ae in Ce)Object.prototype.hasOwnProperty.call(Ce,Ae)&&bn.indexOf(Ae)<0&&(yn[Ae]=Ce[Ae]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ae=Object.getOwnPropertySymbols(Ce);Ue<Ae.length;Ue++)bn.indexOf(Ae[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ae[Ue])&&(yn[Ae[Ue]]=Ce[Ae[Ue]]);return yn},Ht=It.forwardRef((Ce,bn)=>{const{prefixCls:yn,className:Ae,rootClassName:Ue,style:Sn,tooltips:Xn,character:Pn=It.createElement(ze,null)}=Ce,Gn=hn(Ce,["prefixCls","className","rootClassName","style","tooltips","character"]),Ee=(Kt,Oe)=>{let{index:ke}=Oe;return Xn?It.createElement(de.Z,{title:Xn[ke]},Kt):Kt},{getPrefixCls:Jn,direction:ai,rate:ui}=It.useContext(Ut.E_),ln=Jn("rate",yn),[Te,Me]=je(ln),ie=Object.assign(Object.assign({},ui==null?void 0:ui.style),Sn);return Te(It.createElement(Xt,Object.assign({ref:bn,character:Pn,characterRender:Ee},Gn,{className:oe()(Ae,Ue,Me,ui==null?void 0:ui.className),style:ie,prefixCls:ln,direction:ai})))})},57809:function(Dn,An,St){"use strict";var Ct=St(92310),It=St.n(Ct),ee=St(77861),Ne=St(64002),Vt=St(59301),fe=St(53487),Ft=St(62892),ze=St(19080),we=St(36355),oe=St(1684),ve=St(93891),ye=St(19716),Re=St(32441),Tt=St(33234),et=St(14154),nt=St(58582),ht=St(84443),st=St(66339),gt=function(Ot,jt){var Xt={};for(var Ut in Ot)Object.prototype.hasOwnProperty.call(Ot,Ut)&&jt.indexOf(Ut)<0&&(Xt[Ut]=Ot[Ut]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ut=Object.getOwnPropertySymbols(Ot);de<Ut.length;de++)jt.indexOf(Ut[de])<0&&Object.prototype.propertyIsEnumerable.call(Ot,Ut[de])&&(Xt[Ut[de]]=Ot[Ut[de]]);return Xt};const vt="SECRET_COMBOBOX_MODE_DO_NOT_USE",wt=(Ot,jt)=>{var Xt,{prefixCls:Ut,bordered:de=!0,className:Gt,rootClassName:Ve,getPopupContainer:me,popupClassName:sn,dropdownClassName:qe,listHeight:Ye=256,placement:je,listItemHeight:hn=24,size:ge,disabled:Ht,notFoundContent:Ce,status:bn,builtinPlacements:yn,dropdownMatchSelectWidth:Ae,popupMatchSelectWidth:Ue,direction:Sn,style:Xn,allowClear:Pn}=Ot,Gn=gt(Ot,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ee,getPrefixCls:Jn,renderEmpty:ai,direction:ui,virtual:ln,popupMatchSelectWidth:Te,popupOverflow:Me,select:ie}=Vt.useContext(we.E_),Kt=Jn("select",Ut),Oe=Jn(),ke=Sn!=null?Sn:ui,{compactSize:te,compactItemClassnames:qt}=(0,Tt.ri)(Kt,ke),[Dt,xt]=(0,et.Z)(Kt),mt=Vt.useMemo(()=>{const{mode:ki}=Gn;if(ki!=="combobox")return ki===vt?"combobox":ki},[Gn.mode]),Mt=mt==="multiple"||mt==="tags",Rt=(0,ht.Z)(Gn.suffixIcon,Gn.showArrow),Et=(Xt=Ue!=null?Ue:Ae)!==null&&Xt!==void 0?Xt:Te,{status:re,hasFeedback:Qe,isFormItemInput:mn,feedbackIcon:le}=Vt.useContext(Re.aM),Ge=(0,ze.F)(re,bn);let cn;Ce!==void 0?cn=Ce:mt==="combobox"?cn=null:cn=(ai==null?void 0:ai("Select"))||Vt.createElement(ve.Z,{componentName:"Select"});const{suffixIcon:Mn,itemIcon:Zn,removeIcon:_n,clearIcon:di}=(0,st.Z)(Object.assign(Object.assign({},Gn),{multiple:Mt,hasFeedback:Qe,feedbackIcon:le,showSuffixIcon:Rt,prefixCls:Kt,showArrow:Gn.showArrow,componentName:"Select"})),ri=Pn===!0?{clearIcon:di}:Pn,Fi=(0,Ne.Z)(Gn,["suffixIcon","itemIcon"]),Zi=It()(sn||qe,{[`${Kt}-dropdown-${ke}`]:ke==="rtl"},Ve,xt),Vi=(0,ye.Z)(ki=>{var Lt;return(Lt=ge!=null?ge:te)!==null&&Lt!==void 0?Lt:ki}),ji=Vt.useContext(oe.Z),qi=Ht!=null?Ht:ji,wo=It()({[`${Kt}-lg`]:Vi==="large",[`${Kt}-sm`]:Vi==="small",[`${Kt}-rtl`]:ke==="rtl",[`${Kt}-borderless`]:!de,[`${Kt}-in-form-item`]:mn},(0,ze.Z)(Kt,Ge,Qe),qt,ie==null?void 0:ie.className,Gt,Ve,xt),Ei=Vt.useMemo(()=>je!==void 0?je:ke==="rtl"?"bottomRight":"bottomLeft",[je,ke]),Po=(0,nt.Z)(yn,Me);return Dt(Vt.createElement(ee.ZP,Object.assign({ref:jt,virtual:ln,showSearch:ie==null?void 0:ie.showSearch},Fi,{style:Object.assign(Object.assign({},ie==null?void 0:ie.style),Xn),dropdownMatchSelectWidth:Et,builtinPlacements:Po,transitionName:(0,Ft.m)(Oe,"slide-up",Gn.transitionName),listHeight:Ye,listItemHeight:hn,mode:mt,prefixCls:Kt,placement:Ei,direction:ke,suffixIcon:Mn,menuItemSelectedIcon:Zn,removeIcon:_n,allowClear:ri,notFoundContent:cn,className:wo,getPopupContainer:me||Ee,dropdownClassName:Zi,disabled:qi})))},Bt=Vt.forwardRef(wt),kt=(0,fe.Z)(Bt);Bt.SECRET_COMBOBOX_MODE_DO_NOT_USE=vt,Bt.Option=ee.Wx,Bt.OptGroup=ee.Xo,Bt._InternalPanelDoNotUseOrYouWillBeFired=kt,An.default=Bt},14154:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return Bt}});var Ct=St(17313),It=St(74207),ee=St(37613),Ne=St(83116),Vt=St(13826),fe=St(92899);const Ft=kt=>{const{optionHeight:Ot,optionFontSize:jt,optionLineHeight:Xt,optionPadding:Ut}=kt;return{position:"relative",display:"block",minHeight:Ot,padding:Ut,color:kt.colorText,fontWeight:"normal",fontSize:jt,lineHeight:Xt,boxSizing:"border-box"}};var we=kt=>{const{antCls:Ot,componentCls:jt}=kt,Xt=`${jt}-item`,Ut=`&${Ot}-slide-up-enter${Ot}-slide-up-enter-active`,de=`&${Ot}-slide-up-appear${Ot}-slide-up-appear-active`,Gt=`&${Ot}-slide-up-leave${Ot}-slide-up-leave-active`,Ve=`${jt}-dropdown-placement-`;return[{[`${jt}-dropdown`]:Object.assign(Object.assign({},(0,Ct.Wf)(kt)),{position:"absolute",top:-9999,zIndex:kt.zIndexPopup,boxSizing:"border-box",padding:kt.paddingXXS,overflow:"hidden",fontSize:kt.fontSize,fontVariant:"initial",backgroundColor:kt.colorBgElevated,borderRadius:kt.borderRadiusLG,outline:"none",boxShadow:kt.boxShadowSecondary,[`
|
|
|
${Ut}${Ve}bottomLeft,
|
|
|
${de}${Ve}bottomLeft
|
|
|
`]:{animationName:Vt.fJ},[`
|
|
|
${Ut}${Ve}topLeft,
|
|
|
${de}${Ve}topLeft,
|
|
|
${Ut}${Ve}topRight,
|
|
|
${de}${Ve}topRight
|
|
|
`]:{animationName:Vt.Qt},[`${Gt}${Ve}bottomLeft`]:{animationName:Vt.Uw},[`
|
|
|
${Gt}${Ve}topLeft,
|
|
|
${Gt}${Ve}topRight
|
|
|
`]:{animationName:Vt.ly},"&-hidden":{display:"none"},[`${Xt}`]:Object.assign(Object.assign({},Ft(kt)),{cursor:"pointer",transition:`background ${kt.motionDurationSlow} ease`,borderRadius:kt.borderRadiusSM,"&-group":{color:kt.colorTextDescription,fontSize:kt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ct.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Xt}-option-disabled)`]:{backgroundColor:kt.optionActiveBg},[`&-selected:not(${Xt}-option-disabled)`]:{color:kt.optionSelectedColor,fontWeight:kt.optionSelectedFontWeight,backgroundColor:kt.optionSelectedBg,[`${Xt}-option-state`]:{color:kt.colorPrimary}},"&-disabled":{[`&${Xt}-option-selected`]:{backgroundColor:kt.colorBgContainerDisabled},color:kt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:kt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Vt.oN)(kt,"slide-up"),(0,Vt.oN)(kt,"slide-down"),(0,fe.Fm)(kt,"move-up"),(0,fe.Fm)(kt,"move-down")]};const oe=2,ve=kt=>{let{controlHeightSM:Ot,controlHeight:jt,lineWidth:Xt}=kt;const Ut=(jt-Ot)/2-Xt,de=Math.ceil(Ut/2);return[Ut,de]};function ye(kt,Ot){const{componentCls:jt,iconCls:Xt}=kt,Ut=`${jt}-selection-overflow`,de=kt.multipleSelectItemHeight,[Gt]=ve(kt),Ve=Ot?`${jt}-${Ot}`:"";return{[`${jt}-multiple${Ve}`]:{fontSize:kt.fontSize,[Ut]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${jt}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Gt-oe}px ${oe*2}px`,borderRadius:kt.borderRadius,[`${jt}-show-search&`]:{cursor:"text"},[`${jt}-disabled&`]:{background:kt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${oe}px 0`,lineHeight:`${de}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${jt}-show-arrow ${jt}-selector,
|
|
|
&${jt}-allow-clear ${jt}-selector
|
|
|
`]:{paddingInlineEnd:kt.fontSizeIcon+kt.controlPaddingHorizontal},[`${jt}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:de,marginTop:oe,marginBottom:oe,lineHeight:`${de-kt.lineWidth*2}px`,background:kt.multipleItemBg,border:`${kt.lineWidth}px ${kt.lineType} ${kt.multipleItemBorderColor}`,borderRadius:kt.borderRadiusSM,cursor:"default",transition:`font-size ${kt.motionDurationSlow}, line-height ${kt.motionDurationSlow}, height ${kt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:oe*2,paddingInlineStart:kt.paddingXS,paddingInlineEnd:kt.paddingXS/2,[`${jt}-disabled&`]:{color:kt.multipleItemColorDisabled,borderColor:kt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:kt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ct.Ro)()),{display:"inline-flex",alignItems:"center",color:kt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Xt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:kt.colorIconHover}})},[`${Ut}-item + ${Ut}-item`]:{[`${jt}-selection-search`]:{marginInlineStart:0}},[`${jt}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:kt.inputPaddingHorizontalBase-Gt,"\n &-input,\n &-mirror\n ":{height:de,fontFamily:kt.fontFamily,lineHeight:`${de}px`,transition:`all ${kt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${jt}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:kt.inputPaddingHorizontalBase,insetInlineEnd:kt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${kt.motionDurationSlow}`}}}}var Tt=kt=>{const{componentCls:Ot}=kt,jt=(0,ee.TS)(kt,{controlHeight:kt.controlHeightSM,multipleSelectItemHeight:kt.controlHeightXS,borderRadius:kt.borderRadiusSM,borderRadiusSM:kt.borderRadiusXS}),Xt=(0,ee.TS)(kt,{fontSize:kt.fontSizeLG,controlHeight:kt.controlHeightLG,multipleSelectItemHeight:kt.multipleItemHeightLG,borderRadius:kt.borderRadiusLG,borderRadiusSM:kt.borderRadius}),[,Ut]=ve(kt);return[ye(kt),ye(jt,"sm"),{[`${Ot}-multiple${Ot}-sm`]:{[`${Ot}-selection-placeholder`]:{insetInline:kt.controlPaddingHorizontalSM-kt.lineWidth},[`${Ot}-selection-search`]:{marginInlineStart:Ut}}},ye(Xt,"lg")]};function et(kt,Ot){const{componentCls:jt,inputPaddingHorizontalBase:Xt,borderRadius:Ut}=kt,de=kt.controlHeight-kt.lineWidth*2,Gt=Math.ceil(kt.fontSize*1.25),Ve=Ot?`${jt}-${Ot}`:"";return{[`${jt}-single${Ve}`]:{fontSize:kt.fontSize,[`${jt}-selector`]:Object.assign(Object.assign({},(0,Ct.Wf)(kt)),{display:"flex",borderRadius:Ut,[`${jt}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Xt,insetInlineEnd:Xt,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${jt}-selection-item,
|
|
|
${jt}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${de}px`,transition:`all ${kt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${de}px`}},[`${jt}-selection-item`]:{position:"relative",userSelect:"none"},[`${jt}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${jt}-selection-item:after`,`${jt}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${jt}-show-arrow ${jt}-selection-item,
|
|
|
&${jt}-show-arrow ${jt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Gt},[`&${jt}-open ${jt}-selection-item`]:{color:kt.colorTextPlaceholder},[`&:not(${jt}-customize-input)`]:{[`${jt}-selector`]:{width:"100%",height:kt.controlHeight,padding:`0 ${Xt}px`,[`${jt}-selection-search-input`]:{height:de},"&:after":{lineHeight:`${de}px`}}},[`&${jt}-customize-input`]:{[`${jt}-selector`]:{"&:after":{display:"none"},[`${jt}-selection-search`]:{position:"static",width:"100%"},[`${jt}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Xt}px`,"&:after":{display:"none"}}}}}}}function nt(kt){const{componentCls:Ot}=kt,jt=kt.controlPaddingHorizontalSM-kt.lineWidth;return[et(kt),et((0,ee.TS)(kt,{controlHeight:kt.controlHeightSM,borderRadius:kt.borderRadiusSM}),"sm"),{[`${Ot}-single${Ot}-sm`]:{[`&:not(${Ot}-customize-input)`]:{[`${Ot}-selection-search`]:{insetInlineStart:jt,insetInlineEnd:jt},[`${Ot}-selector`]:{padding:`0 ${jt}px`},[`&${Ot}-show-arrow ${Ot}-selection-search`]:{insetInlineEnd:jt+kt.fontSize*1.5},[`
|
|
|
&${Ot}-show-arrow ${Ot}-selection-item,
|
|
|
&${Ot}-show-arrow ${Ot}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:kt.fontSize*1.5}}}},et((0,ee.TS)(kt,{controlHeight:kt.singleItemHeightLG,fontSize:kt.fontSizeLG,borderRadius:kt.borderRadiusLG}),"lg")]}const ht=kt=>{const{componentCls:Ot,selectorBg:jt}=kt;return{position:"relative",backgroundColor:jt,border:`${kt.lineWidth}px ${kt.lineType} ${kt.colorBorder}`,transition:`all ${kt.motionDurationMid} ${kt.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ot}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ot}-disabled&`]:{color:kt.colorTextDisabled,background:kt.colorBgContainerDisabled,cursor:"not-allowed",[`${Ot}-multiple&`]:{background:kt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},st=function(kt,Ot){let jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Xt,borderHoverColor:Ut,outlineColor:de,antCls:Gt}=Ot,Ve=jt?{[`${Xt}-selector`]:{borderColor:Ut}}:{};return{[kt]:{[`&:not(${Xt}-disabled):not(${Xt}-customize-input):not(${Gt}-pagination-size-changer)`]:Object.assign(Object.assign({},Ve),{[`${Xt}-focused& ${Xt}-selector`]:{borderColor:Ut,boxShadow:`0 0 0 ${Ot.controlOutlineWidth}px ${de}`,outline:0},[`&:hover ${Xt}-selector`]:{borderColor:Ut}})}}},gt=kt=>{const{componentCls:Ot}=kt;return{[`${Ot}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},vt=kt=>{const{componentCls:Ot,inputPaddingHorizontalBase:jt,iconCls:Xt}=kt;return{[Ot]:Object.assign(Object.assign({},(0,Ct.Wf)(kt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ot}-customize-input) ${Ot}-selector`]:Object.assign(Object.assign({},ht(kt)),gt(kt)),[`${Ot}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Ct.vS),[`${Ot}-selection-placeholder`]:Object.assign(Object.assign({},Ct.vS),{flex:1,color:kt.colorTextPlaceholder,pointerEvents:"none"}),[`${Ot}-arrow`]:Object.assign(Object.assign({},(0,Ct.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:jt,height:kt.fontSizeIcon,marginTop:-kt.fontSizeIcon/2,color:kt.colorTextQuaternary,fontSize:kt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Xt]:{verticalAlign:"top",transition:`transform ${kt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ot}-suffix)`]:{pointerEvents:"auto"}},[`${Ot}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ot}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:jt,zIndex:1,display:"inline-block",width:kt.fontSizeIcon,height:kt.fontSizeIcon,marginTop:-kt.fontSizeIcon/2,color:kt.colorTextQuaternary,fontSize:kt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:kt.clearBg,cursor:"pointer",opacity:0,transition:`color ${kt.motionDurationMid} ease, opacity ${kt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:kt.colorTextTertiary}},"&:hover":{[`${Ot}-clear`]:{opacity:1}}}),[`${Ot}-has-feedback`]:{[`${Ot}-clear`]:{insetInlineEnd:jt+kt.fontSize+kt.paddingXS}}}},wt=kt=>{const{componentCls:Ot}=kt;return[{[Ot]:{[`&-borderless ${Ot}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ot}-in-form-item`]:{width:"100%"}}},vt(kt),nt(kt),Tt(kt),we(kt),{[`${Ot}-rtl`]:{direction:"rtl"}},st(Ot,(0,ee.TS)(kt,{borderHoverColor:kt.colorPrimaryHover,outlineColor:kt.controlOutline})),st(`${Ot}-status-error`,(0,ee.TS)(kt,{borderHoverColor:kt.colorErrorHover,outlineColor:kt.colorErrorOutline}),!0),st(`${Ot}-status-warning`,(0,ee.TS)(kt,{borderHoverColor:kt.colorWarningHover,outlineColor:kt.colorWarningOutline}),!0),(0,It.c)(kt,{borderElCls:`${Ot}-selector`,focusElCls:`${Ot}-focused`})]};var Bt=(0,Ne.Z)("Select",(kt,Ot)=>{let{rootPrefixCls:jt}=Ot;const Xt=(0,ee.TS)(kt,{rootPrefixCls:jt,inputPaddingHorizontalBase:kt.paddingSM-1,multipleSelectItemHeight:kt.multipleItemHeight});return[wt(Xt)]},kt=>{const{fontSize:Ot,lineHeight:jt,controlHeight:Xt,controlPaddingHorizontal:Ut,zIndexPopupBase:de,colorText:Gt,fontWeightStrong:Ve,controlItemBgActive:me,controlItemBgHover:sn,colorBgContainer:qe,colorFillSecondary:Ye,controlHeightLG:je,controlHeightSM:hn,colorBgContainerDisabled:ge,colorTextDisabled:Ht}=kt;return{zIndexPopup:de+50,optionSelectedColor:Gt,optionSelectedFontWeight:Ve,optionSelectedBg:me,optionActiveBg:sn,optionPadding:`${(Xt-Ot*jt)/2}px ${Ut}px`,optionFontSize:Ot,optionLineHeight:jt,optionHeight:Xt,selectorBg:qe,clearBg:qe,singleItemHeightLG:je,multipleItemBg:Ye,multipleItemBorderColor:"transparent",multipleItemHeight:hn,multipleItemHeightLG:Xt,multipleSelectorBgDisabled:ge,multipleItemColorDisabled:Ht,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return It}});const Ct=ee=>{const Vt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ee==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Vt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Vt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Vt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Vt),{points:["br","tr"],offset:[0,-4]})}};function It(ee,Ne){return ee||Ct(Ne)}},84443:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return Ct}});function Ct(It,ee){return ee!==void 0?ee:It!==null}},66339:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});var Ct=St(10402),It=St(33130),ee=St(72119),Ne=St(18290),Vt=St(50023),fe=St(21970),Ft=St(59301);function ze(we){let{suffixIcon:oe,clearIcon:ve,menuItemSelectedIcon:ye,removeIcon:Re,loading:Tt,multiple:et,hasFeedback:nt,prefixCls:ht,showSuffixIcon:st,feedbackIcon:gt,showArrow:vt,componentName:wt}=we;const Bt=ve!=null?ve:Ft.createElement(It.Z,null),kt=Ut=>oe===null&&!nt&&!vt?null:Ft.createElement(Ft.Fragment,null,st!==!1&&Ut,nt&>);let Ot=null;if(oe!==void 0)Ot=kt(oe);else if(Tt)Ot=kt(Ft.createElement(Vt.Z,{spin:!0}));else{const Ut=`${ht}-suffix`;Ot=de=>{let{open:Gt,showSearch:Ve}=de;return kt(Gt&&Ve?Ft.createElement(fe.Z,{className:Ut}):Ft.createElement(Ne.Z,{className:Ut}))}}let jt=null;ye!==void 0?jt=ye:et?jt=Ft.createElement(Ct.Z,null):jt=null;let Xt=null;return Re!==void 0?Xt=Re:Xt=Ft.createElement(ee.Z,null),{clearIcon:Bt,suffixIcon:Ot,itemIcon:jt,removeIcon:Xt}}},78485:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return Me}});var Ct=St(92310),It=St.n(Ct),ee=St(59301),Ne=St(36355),Vt=St(64002),Ft=ie=>{const{prefixCls:Kt,className:Oe,style:ke,size:te,shape:qt}=ie,Dt=It()({[`${Kt}-lg`]:te==="large",[`${Kt}-sm`]:te==="small"}),xt=It()({[`${Kt}-circle`]:qt==="circle",[`${Kt}-square`]:qt==="square",[`${Kt}-round`]:qt==="round"}),mt=ee.useMemo(()=>typeof te=="number"?{width:te,height:te,lineHeight:`${te}px`}:{},[te]);return ee.createElement("span",{className:It()(Kt,Dt,xt,Oe),style:Object.assign(Object.assign({},mt),ke)})},ze=St(9792),we=St(83116),oe=St(37613);const ve=new ze.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),ye=ie=>({height:ie,lineHeight:`${ie}px`}),Re=ie=>Object.assign({width:ie},ye(ie)),Tt=ie=>({background:ie.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ve,animationDuration:ie.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=ie=>Object.assign({width:ie*5,minWidth:ie*5},ye(ie)),nt=ie=>{const{skeletonAvatarCls:Kt,gradientFromColor:Oe,controlHeight:ke,controlHeightLG:te,controlHeightSM:qt}=ie;return{[`${Kt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Oe},Re(ke)),[`${Kt}${Kt}-circle`]:{borderRadius:"50%"},[`${Kt}${Kt}-lg`]:Object.assign({},Re(te)),[`${Kt}${Kt}-sm`]:Object.assign({},Re(qt))}},ht=ie=>{const{controlHeight:Kt,borderRadiusSM:Oe,skeletonInputCls:ke,controlHeightLG:te,controlHeightSM:qt,gradientFromColor:Dt}=ie;return{[`${ke}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Dt,borderRadius:Oe},et(Kt)),[`${ke}-lg`]:Object.assign({},et(te)),[`${ke}-sm`]:Object.assign({},et(qt))}},st=ie=>Object.assign({width:ie},ye(ie)),gt=ie=>{const{skeletonImageCls:Kt,imageSizeBase:Oe,gradientFromColor:ke,borderRadiusSM:te}=ie;return{[`${Kt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:ke,borderRadius:te},st(Oe*2)),{[`${Kt}-path`]:{fill:"#bfbfbf"},[`${Kt}-svg`]:Object.assign(Object.assign({},st(Oe)),{maxWidth:Oe*4,maxHeight:Oe*4}),[`${Kt}-svg${Kt}-svg-circle`]:{borderRadius:"50%"}}),[`${Kt}${Kt}-circle`]:{borderRadius:"50%"}}},vt=(ie,Kt,Oe)=>{const{skeletonButtonCls:ke}=ie;return{[`${Oe}${ke}-circle`]:{width:Kt,minWidth:Kt,borderRadius:"50%"},[`${Oe}${ke}-round`]:{borderRadius:Kt}}},wt=ie=>Object.assign({width:ie*2,minWidth:ie*2},ye(ie)),Bt=ie=>{const{borderRadiusSM:Kt,skeletonButtonCls:Oe,controlHeight:ke,controlHeightLG:te,controlHeightSM:qt,gradientFromColor:Dt}=ie;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Oe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Dt,borderRadius:Kt,width:ke*2,minWidth:ke*2},wt(ke))},vt(ie,ke,Oe)),{[`${Oe}-lg`]:Object.assign({},wt(te))}),vt(ie,te,`${Oe}-lg`)),{[`${Oe}-sm`]:Object.assign({},wt(qt))}),vt(ie,qt,`${Oe}-sm`))},kt=ie=>{const{componentCls:Kt,skeletonAvatarCls:Oe,skeletonTitleCls:ke,skeletonParagraphCls:te,skeletonButtonCls:qt,skeletonInputCls:Dt,skeletonImageCls:xt,controlHeight:mt,controlHeightLG:Mt,controlHeightSM:Rt,gradientFromColor:Et,padding:re,marginSM:Qe,borderRadius:mn,titleHeight:le,blockRadius:Ge,paragraphLiHeight:cn,controlHeightXS:Mn,paragraphMarginTop:Zn}=ie;return{[`${Kt}`]:{display:"table",width:"100%",[`${Kt}-header`]:{display:"table-cell",paddingInlineEnd:re,verticalAlign:"top",[`${Oe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Et},Re(mt)),[`${Oe}-circle`]:{borderRadius:"50%"},[`${Oe}-lg`]:Object.assign({},Re(Mt)),[`${Oe}-sm`]:Object.assign({},Re(Rt))},[`${Kt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${ke}`]:{width:"100%",height:le,background:Et,borderRadius:Ge,[`+ ${te}`]:{marginBlockStart:Rt}},[`${te}`]:{padding:0,"> li":{width:"100%",height:cn,listStyle:"none",background:Et,borderRadius:Ge,"+ li":{marginBlockStart:Mn}}},[`${te}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Kt}-content`]:{[`${ke}, ${te} > li`]:{borderRadius:mn}}},[`${Kt}-with-avatar ${Kt}-content`]:{[`${ke}`]:{marginBlockStart:Qe,[`+ ${te}`]:{marginBlockStart:Zn}}},[`${Kt}${Kt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Bt(ie)),nt(ie)),ht(ie)),gt(ie)),[`${Kt}${Kt}-block`]:{width:"100%",[`${qt}`]:{width:"100%"},[`${Dt}`]:{width:"100%"}},[`${Kt}${Kt}-active`]:{[`
|
|
|
${ke},
|
|
|
${te} > li,
|
|
|
${Oe},
|
|
|
${qt},
|
|
|
${Dt},
|
|
|
${xt}
|
|
|
`]:Object.assign({},Tt(ie))}}};var Ot=(0,we.Z)("Skeleton",ie=>{const{componentCls:Kt}=ie,Oe=(0,oe.TS)(ie,{skeletonAvatarCls:`${Kt}-avatar`,skeletonTitleCls:`${Kt}-title`,skeletonParagraphCls:`${Kt}-paragraph`,skeletonButtonCls:`${Kt}-button`,skeletonInputCls:`${Kt}-input`,skeletonImageCls:`${Kt}-image`,imageSizeBase:ie.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ie.gradientFromColor} 25%, ${ie.gradientToColor} 37%, ${ie.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[kt(Oe)]},ie=>{const{colorFillContent:Kt,colorFill:Oe}=ie,ke=Kt,te=Oe;return{color:ke,colorGradientEnd:te,gradientFromColor:ke,gradientToColor:te,titleHeight:ie.controlHeight/2,blockRadius:ie.borderRadiusSM,paragraphMarginTop:ie.marginLG+ie.marginXXS,paragraphLiHeight:ie.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Xt=ie=>{const{prefixCls:Kt,className:Oe,rootClassName:ke,active:te,shape:qt="circle",size:Dt="default"}=ie,{getPrefixCls:xt}=ee.useContext(Ne.E_),mt=xt("skeleton",Kt),[Mt,Rt]=Ot(mt),Et=(0,Vt.Z)(ie,["prefixCls","className"]),re=It()(mt,`${mt}-element`,{[`${mt}-active`]:te},Oe,ke,Rt);return Mt(ee.createElement("div",{className:re},ee.createElement(Ft,Object.assign({prefixCls:`${mt}-avatar`,shape:qt,size:Dt},Et))))},de=ie=>{const{prefixCls:Kt,className:Oe,rootClassName:ke,active:te,block:qt=!1,size:Dt="default"}=ie,{getPrefixCls:xt}=ee.useContext(Ne.E_),mt=xt("skeleton",Kt),[Mt,Rt]=Ot(mt),Et=(0,Vt.Z)(ie,["prefixCls"]),re=It()(mt,`${mt}-element`,{[`${mt}-active`]:te,[`${mt}-block`]:qt},Oe,ke,Rt);return Mt(ee.createElement("div",{className:re},ee.createElement(Ft,Object.assign({prefixCls:`${mt}-button`,size:Dt},Et))))};const Gt="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 me=ie=>{const{prefixCls:Kt,className:Oe,rootClassName:ke,style:te,active:qt}=ie,{getPrefixCls:Dt}=ee.useContext(Ne.E_),xt=Dt("skeleton",Kt),[mt,Mt]=Ot(xt),Rt=It()(xt,`${xt}-element`,{[`${xt}-active`]:qt},Oe,ke,Mt);return mt(ee.createElement("div",{className:Rt},ee.createElement("div",{className:It()(`${xt}-image`,Oe),style:te},ee.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${xt}-image-svg`},ee.createElement("path",{d:Gt,className:`${xt}-image-path`})))))},qe=ie=>{const{prefixCls:Kt,className:Oe,rootClassName:ke,active:te,block:qt,size:Dt="default"}=ie,{getPrefixCls:xt}=ee.useContext(Ne.E_),mt=xt("skeleton",Kt),[Mt,Rt]=Ot(mt),Et=(0,Vt.Z)(ie,["prefixCls"]),re=It()(mt,`${mt}-element`,{[`${mt}-active`]:te,[`${mt}-block`]:qt},Oe,ke,Rt);return Mt(ee.createElement("div",{className:re},ee.createElement(Ft,Object.assign({prefixCls:`${mt}-input`,size:Dt},Et))))},Ye=St(5891),je={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"},hn=je,ge=St(88853),Ht=function(Kt,Oe){return ee.createElement(ge.Z,(0,Ye.Z)({},Kt,{ref:Oe,icon:hn}))},Ce=ee.forwardRef(Ht),bn=Ce,Ae=ie=>{const{prefixCls:Kt,className:Oe,rootClassName:ke,style:te,active:qt,children:Dt}=ie,{getPrefixCls:xt}=ee.useContext(Ne.E_),mt=xt("skeleton",Kt),[Mt,Rt]=Ot(mt),Et=It()(mt,`${mt}-element`,{[`${mt}-active`]:qt},Rt,Oe,ke),re=Dt!=null?Dt:ee.createElement(bn,null);return Mt(ee.createElement("div",{className:Et},ee.createElement("div",{className:It()(`${mt}-image`,Oe),style:te},re)))},Ue=St(26390),Xn=ie=>{const Kt=xt=>{const{width:mt,rows:Mt=2}=ie;if(Array.isArray(mt))return mt[xt];if(Mt-1===xt)return mt},{prefixCls:Oe,className:ke,style:te,rows:qt}=ie,Dt=(0,Ue.Z)(Array(qt)).map((xt,mt)=>ee.createElement("li",{key:mt,style:{width:Kt(mt)}}));return ee.createElement("ul",{className:It()(Oe,ke),style:te},Dt)},Gn=ie=>{let{prefixCls:Kt,className:Oe,width:ke,style:te}=ie;return ee.createElement("h3",{className:It()(Kt,Oe),style:Object.assign({width:ke},te)})};function Ee(ie){return ie&&typeof ie=="object"?ie:{}}function Jn(ie,Kt){return ie&&!Kt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ai(ie,Kt){return!ie&&Kt?{width:"38%"}:ie&&Kt?{width:"50%"}:{}}function ui(ie,Kt){const Oe={};return(!ie||!Kt)&&(Oe.width="61%"),!ie&&Kt?Oe.rows=3:Oe.rows=2,Oe}const ln=ie=>{const{prefixCls:Kt,loading:Oe,className:ke,rootClassName:te,style:qt,children:Dt,avatar:xt=!1,title:mt=!0,paragraph:Mt=!0,active:Rt,round:Et}=ie,{getPrefixCls:re,direction:Qe,skeleton:mn}=ee.useContext(Ne.E_),le=re("skeleton",Kt),[Ge,cn]=Ot(le);if(Oe||!("loading"in ie)){const Mn=!!xt,Zn=!!mt,_n=!!Mt;let di;if(Mn){const Zi=Object.assign(Object.assign({prefixCls:`${le}-avatar`},Jn(Zn,_n)),Ee(xt));di=ee.createElement("div",{className:`${le}-header`},ee.createElement(Ft,Object.assign({},Zi)))}let ri;if(Zn||_n){let Zi;if(Zn){const ji=Object.assign(Object.assign({prefixCls:`${le}-title`},ai(Mn,_n)),Ee(mt));Zi=ee.createElement(Gn,Object.assign({},ji))}let Vi;if(_n){const ji=Object.assign(Object.assign({prefixCls:`${le}-paragraph`},ui(Mn,Zn)),Ee(Mt));Vi=ee.createElement(Xn,Object.assign({},ji))}ri=ee.createElement("div",{className:`${le}-content`},Zi,Vi)}const Fi=It()(le,{[`${le}-with-avatar`]:Mn,[`${le}-active`]:Rt,[`${le}-rtl`]:Qe==="rtl",[`${le}-round`]:Et},mn==null?void 0:mn.className,ke,te,cn);return Ge(ee.createElement("div",{className:Fi,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),qt)},di,ri))}return typeof Dt!="undefined"?Dt:null};ln.Button=de,ln.Avatar=Xt,ln.Input=qe,ln.Image=me,ln.Node=Ae;var Te=ln,Me=Te},81327:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ht}});var Ct=St(59301),It=St(92310),ee=St.n(It),Ne=St(38298),Vt=St(36355),fe=St(33234);const Ft=Ct.createContext({latestIndex:0}),ze=Ft.Provider;var oe=st=>{let{className:gt,index:vt,children:wt,split:Bt,style:kt}=st;const{latestIndex:Ot}=Ct.useContext(Ft);return wt==null?null:Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{className:gt,style:kt},wt),vt<Ot&&Bt&&Ct.createElement("span",{className:`${gt}-split`},Bt))},ve=St(2856);function ye(st){return["small","middle","large"].includes(st)}function Re(st){return st?typeof st=="number"&&!Number.isNaN(st):!1}var Tt=function(st,gt){var vt={};for(var wt in st)Object.prototype.hasOwnProperty.call(st,wt)&>.indexOf(wt)<0&&(vt[wt]=st[wt]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,wt=Object.getOwnPropertySymbols(st);Bt<wt.length;Bt++)gt.indexOf(wt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(st,wt[Bt])&&(vt[wt[Bt]]=st[wt[Bt]]);return vt};const nt=Ct.forwardRef((st,gt)=>{var vt,wt;const{getPrefixCls:Bt,space:kt,direction:Ot}=Ct.useContext(Vt.E_),{size:jt=(kt==null?void 0:kt.size)||"small",align:Xt,className:Ut,rootClassName:de,children:Gt,direction:Ve="horizontal",prefixCls:me,split:sn,style:qe,wrap:Ye=!1,classNames:je,styles:hn}=st,ge=Tt(st,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Ht,Ce]=Array.isArray(jt)?jt:[jt,jt],bn=ye(Ce),yn=ye(Ht),Ae=Re(Ce),Ue=Re(Ht),Sn=(0,Ne.Z)(Gt,{keepEmpty:!0}),Xn=Xt===void 0&&Ve==="horizontal"?"center":Xt,Pn=Bt("space",me),[Gn,Ee]=(0,ve.Z)(Pn),Jn=ee()(Pn,kt==null?void 0:kt.className,Ee,`${Pn}-${Ve}`,{[`${Pn}-rtl`]:Ot==="rtl",[`${Pn}-align-${Xn}`]:Xn,[`${Pn}-gap-row-${Ce}`]:bn,[`${Pn}-gap-col-${Ht}`]:yn},Ut,de),ai=ee()(`${Pn}-item`,(vt=je==null?void 0:je.item)!==null&&vt!==void 0?vt:(wt=kt==null?void 0:kt.classNames)===null||wt===void 0?void 0:wt.item);let ui=0;const ln=Sn.map((ie,Kt)=>{var Oe,ke;ie!=null&&(ui=Kt);const te=ie&&ie.key||`${ai}-${Kt}`;return Ct.createElement(oe,{className:ai,key:te,index:Kt,split:sn,style:(Oe=hn==null?void 0:hn.item)!==null&&Oe!==void 0?Oe:(ke=kt==null?void 0:kt.styles)===null||ke===void 0?void 0:ke.item},ie)}),Te=Ct.useMemo(()=>({latestIndex:ui}),[ui]);if(Sn.length===0)return null;const Me={};return Ye&&(Me.flexWrap="wrap"),!yn&&Ue&&(Me.columnGap=Ht),!bn&&Ae&&(Me.rowGap=Ce),Gn(Ct.createElement("div",Object.assign({ref:gt,className:Jn,style:Object.assign(Object.assign(Object.assign({},Me),kt==null?void 0:kt.style),qe)},ge),Ct.createElement(ze,{value:Te},ln)))});nt.Compact=fe.ZP;var ht=nt},31797:function(Dn,An,St){"use strict";St.d(An,{default:function(){return Ot}});var Ct=St(59301),It=St(56762),ee=St(92343),Ne=St(92310),Vt=St.n(Ne),fe=St(36355),Ft=St(78485),we=jt=>{const{value:Xt,formatter:Ut,precision:de,decimalSeparator:Gt,groupSeparator:Ve="",prefixCls:me}=jt;let sn;if(typeof Ut=="function")sn=Ut(Xt);else{const qe=String(Xt),Ye=qe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ye||qe==="-")sn=qe;else{const je=Ye[1];let hn=Ye[2]||"0",ge=Ye[4]||"";hn=hn.replace(/\B(?=(\d{3})+(?!\d))/g,Ve),typeof de=="number"&&(ge=ge.padEnd(de,"0").slice(0,de>0?de:0)),ge&&(ge=`${Gt}${ge}`),sn=[Ct.createElement("span",{key:"int",className:`${me}-content-value-int`},je,hn),ge&&Ct.createElement("span",{key:"decimal",className:`${me}-content-value-decimal`},ge)]}}return Ct.createElement("span",{className:`${me}-content-value`},sn)},oe=St(17313),ve=St(83116),ye=St(37613);const Re=jt=>{const{componentCls:Xt,marginXXS:Ut,padding:de,colorTextDescription:Gt,titleFontSize:Ve,colorTextHeading:me,contentFontSize:sn,fontFamily:qe}=jt;return{[`${Xt}`]:Object.assign(Object.assign({},(0,oe.Wf)(jt)),{[`${Xt}-title`]:{marginBottom:Ut,color:Gt,fontSize:Ve},[`${Xt}-skeleton`]:{paddingTop:de},[`${Xt}-content`]:{color:me,fontSize:sn,fontFamily:qe,[`${Xt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Xt}-content-prefix, ${Xt}-content-suffix`]:{display:"inline-block"},[`${Xt}-content-prefix`]:{marginInlineEnd:Ut},[`${Xt}-content-suffix`]:{marginInlineStart:Ut}}})}};var Tt=(0,ve.Z)("Statistic",jt=>{const Xt=(0,ye.TS)(jt,{});return[Re(Xt)]},jt=>{const{fontSizeHeading3:Xt,fontSize:Ut}=jt;return{titleFontSize:Ut,contentFontSize:Xt}}),nt=jt=>{const{prefixCls:Xt,className:Ut,rootClassName:de,style:Gt,valueStyle:Ve,value:me=0,title:sn,valueRender:qe,prefix:Ye,suffix:je,loading:hn=!1,onMouseEnter:ge,onMouseLeave:Ht,decimalSeparator:Ce=".",groupSeparator:bn=","}=jt,{getPrefixCls:yn,direction:Ae,statistic:Ue}=Ct.useContext(fe.E_),Sn=yn("statistic",Xt),[Xn,Pn]=Tt(Sn),Gn=Ct.createElement(we,Object.assign({decimalSeparator:Ce,groupSeparator:bn,prefixCls:Sn},jt,{value:me})),Ee=Vt()(Sn,{[`${Sn}-rtl`]:Ae==="rtl"},Ue==null?void 0:Ue.className,Ut,de,Pn);return Xn(Ct.createElement("div",{className:Ee,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),Gt),onMouseEnter:ge,onMouseLeave:Ht},sn&&Ct.createElement("div",{className:`${Sn}-title`},sn),Ct.createElement(Ft.Z,{paragraph:!1,loading:hn,className:`${Sn}-skeleton`},Ct.createElement("div",{style:Ve,className:`${Sn}-content`},Ye&&Ct.createElement("span",{className:`${Sn}-content-prefix`},Ye),qe?qe(Gn):Gn,je&&Ct.createElement("span",{className:`${Sn}-content-suffix`},je)))))};const ht=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function st(jt,Xt){let Ut=jt;const de=/\[[^\]]*]/g,Gt=(Xt.match(de)||[]).map(qe=>qe.slice(1,-1)),Ve=Xt.replace(de,"[]"),me=ht.reduce((qe,Ye)=>{let[je,hn]=Ye;if(qe.includes(je)){const ge=Math.floor(Ut/hn);return Ut-=ge*hn,qe.replace(new RegExp(`${je}+`,"g"),Ht=>{const Ce=Ht.length;return ge.toString().padStart(Ce,"0")})}return qe},Ve);let sn=0;return me.replace(de,()=>{const qe=Gt[sn];return sn+=1,qe})}function gt(jt,Xt){const{format:Ut=""}=Xt,de=new Date(jt).getTime(),Gt=Date.now(),Ve=Math.max(de-Gt,0);return st(Ve,Ut)}const vt=1e3/30;function wt(jt){return new Date(jt).getTime()}const Bt=jt=>{const{value:Xt,format:Ut="HH:mm:ss",onChange:de,onFinish:Gt}=jt,Ve=(0,It.Z)(),me=Ct.useRef(null),sn=()=>{Gt==null||Gt(),me.current&&(clearInterval(me.current),me.current=null)},qe=()=>{const hn=wt(Xt);hn>=Date.now()&&(me.current=setInterval(()=>{Ve(),de==null||de(hn-Date.now()),hn<Date.now()&&sn()},vt))};Ct.useEffect(()=>(qe(),()=>{me.current&&(clearInterval(me.current),me.current=null)}),[Xt]);const Ye=(hn,ge)=>gt(hn,Object.assign(Object.assign({},ge),{format:Ut})),je=hn=>(0,ee.Tm)(hn,{title:void 0});return Ct.createElement(nt,Object.assign({},jt,{valueRender:je,formatter:Ye}))};var kt=Ct.memo(Bt);nt.Countdown=kt;var Ot=nt},15969:function(Dn,An,St){"use strict";St.d(An,{N:function(){return Ct}});const Ct=It=>({color:It.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${It.motionDurationSlow}`,"&:focus, &:hover":{color:It.colorLinkHover},"&:active":{color:It.colorLinkActive}})},78673:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return Ve}});var Ct=St(50023),It=St(92310),ee=St.n(It),Ne=St(5891),Vt=St(80962),fe=St(29043),Ft=St(19149),ze=St(59301),we=St(35788),oe=St(85108),ve=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ye=ze.forwardRef(function(me,sn){var qe,Ye=me.prefixCls,je=Ye===void 0?"rc-switch":Ye,hn=me.className,ge=me.checked,Ht=me.defaultChecked,Ce=me.disabled,bn=me.loadingIcon,yn=me.checkedChildren,Ae=me.unCheckedChildren,Ue=me.onClick,Sn=me.onChange,Xn=me.onKeyDown,Pn=(0,Ft.Z)(me,ve),Gn=(0,we.Z)(!1,{value:ge,defaultValue:Ht}),Ee=(0,fe.Z)(Gn,2),Jn=Ee[0],ai=Ee[1];function ui(ie,Kt){var Oe=Jn;return Ce||(Oe=ie,ai(Oe),Sn==null||Sn(Oe,Kt)),Oe}function ln(ie){ie.which===oe.Z.LEFT?ui(!1,ie):ie.which===oe.Z.RIGHT&&ui(!0,ie),Xn==null||Xn(ie)}function Te(ie){var Kt=ui(!Jn,ie);Ue==null||Ue(Kt,ie)}var Me=ee()(je,hn,(qe={},(0,Vt.Z)(qe,"".concat(je,"-checked"),Jn),(0,Vt.Z)(qe,"".concat(je,"-disabled"),Ce),qe));return ze.createElement("button",(0,Ne.Z)({},Pn,{type:"button",role:"switch","aria-checked":Jn,disabled:Ce,className:Me,ref:sn,onKeyDown:ln,onClick:Te}),bn,ze.createElement("span",{className:"".concat(je,"-inner")},ze.createElement("span",{className:"".concat(je,"-inner-checked")},yn),ze.createElement("span",{className:"".concat(je,"-inner-unchecked")},Ae)))});ye.displayName="Switch";var Re=ye,Tt=St(14088),et=St(36355),nt=St(1684),ht=St(19716),st=St(64993),gt=St(17313),vt=St(83116),wt=St(37613);const Bt=me=>{const{componentCls:sn,trackHeightSM:qe,trackPadding:Ye,trackMinWidthSM:je,innerMinMarginSM:hn,innerMaxMarginSM:ge,handleSizeSM:Ht}=me,Ce=`${sn}-inner`;return{[sn]:{[`&${sn}-small`]:{minWidth:je,height:qe,lineHeight:`${qe}px`,[`${sn}-inner`]:{paddingInlineStart:ge,paddingInlineEnd:hn,[`${Ce}-checked`]:{marginInlineStart:`calc(-100% + ${Ht+Ye*2}px - ${ge*2}px)`,marginInlineEnd:`calc(100% - ${Ht+Ye*2}px + ${ge*2}px)`},[`${Ce}-unchecked`]:{marginTop:-qe,marginInlineStart:0,marginInlineEnd:0}},[`${sn}-handle`]:{width:Ht,height:Ht},[`${sn}-loading-icon`]:{top:(Ht-me.switchLoadingIconSize)/2,fontSize:me.switchLoadingIconSize},[`&${sn}-checked`]:{[`${sn}-inner`]:{paddingInlineStart:hn,paddingInlineEnd:ge,[`${Ce}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ce}-unchecked`]:{marginInlineStart:`calc(100% - ${Ht+Ye*2}px + ${ge*2}px)`,marginInlineEnd:`calc(-100% + ${Ht+Ye*2}px - ${ge*2}px)`}},[`${sn}-handle`]:{insetInlineStart:`calc(100% - ${Ht+Ye}px)`}},[`&:not(${sn}-disabled):active`]:{[`&:not(${sn}-checked) ${Ce}`]:{[`${Ce}-unchecked`]:{marginInlineStart:me.marginXXS/2,marginInlineEnd:-me.marginXXS/2}},[`&${sn}-checked ${Ce}`]:{[`${Ce}-checked`]:{marginInlineStart:-me.marginXXS/2,marginInlineEnd:me.marginXXS/2}}}}}}},kt=me=>{const{componentCls:sn,handleSize:qe}=me;return{[sn]:{[`${sn}-loading-icon${me.iconCls}`]:{position:"relative",top:(qe-me.fontSize)/2,color:me.switchLoadingIconColor,verticalAlign:"top"},[`&${sn}-checked ${sn}-loading-icon`]:{color:me.switchColor}}}},Ot=me=>{const{componentCls:sn,motion:qe,trackPadding:Ye,handleBg:je,handleShadow:hn,handleSize:ge}=me,Ht=`${sn}-handle`;return{[sn]:{[Ht]:{position:"absolute",top:Ye,insetInlineStart:Ye,width:ge,height:ge,transition:`all ${me.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:je,borderRadius:ge/2,boxShadow:hn,transition:`all ${me.switchDuration} ease-in-out`,content:'""'}},[`&${sn}-checked ${Ht}`]:{insetInlineStart:`calc(100% - ${ge+Ye}px)`},[`&:not(${sn}-disabled):active`]:qe?{[`${Ht}::before`]:{insetInlineEnd:me.switchHandleActiveInset,insetInlineStart:0},[`&${sn}-checked ${Ht}::before`]:{insetInlineEnd:0,insetInlineStart:me.switchHandleActiveInset}}:{}}}},jt=me=>{const{componentCls:sn,trackHeight:qe,trackPadding:Ye,innerMinMargin:je,innerMaxMargin:hn,handleSize:ge}=me,Ht=`${sn}-inner`;return{[sn]:{[Ht]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:hn,paddingInlineEnd:je,transition:`padding-inline-start ${me.switchDuration} ease-in-out, padding-inline-end ${me.switchDuration} ease-in-out`,[`${Ht}-checked, ${Ht}-unchecked`]:{display:"block",color:me.colorTextLightSolid,fontSize:me.fontSizeSM,transition:`margin-inline-start ${me.switchDuration} ease-in-out, margin-inline-end ${me.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Ht}-checked`]:{marginInlineStart:`calc(-100% + ${ge+Ye*2}px - ${hn*2}px)`,marginInlineEnd:`calc(100% - ${ge+Ye*2}px + ${hn*2}px)`},[`${Ht}-unchecked`]:{marginTop:-qe,marginInlineStart:0,marginInlineEnd:0}},[`&${sn}-checked ${Ht}`]:{paddingInlineStart:je,paddingInlineEnd:hn,[`${Ht}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ht}-unchecked`]:{marginInlineStart:`calc(100% - ${ge+Ye*2}px + ${hn*2}px)`,marginInlineEnd:`calc(-100% + ${ge+Ye*2}px - ${hn*2}px)`}},[`&:not(${sn}-disabled):active`]:{[`&:not(${sn}-checked) ${Ht}`]:{[`${Ht}-unchecked`]:{marginInlineStart:Ye*2,marginInlineEnd:-Ye*2}},[`&${sn}-checked ${Ht}`]:{[`${Ht}-checked`]:{marginInlineStart:-Ye*2,marginInlineEnd:Ye*2}}}}}},Xt=me=>{const{componentCls:sn,trackHeight:qe,trackMinWidth:Ye}=me;return{[sn]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(me)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ye,height:qe,lineHeight:`${qe}px`,verticalAlign:"middle",background:me.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${me.motionDurationMid}`,userSelect:"none",[`&:hover:not(${sn}-disabled)`]:{background:me.colorTextTertiary}}),(0,gt.Qy)(me)),{[`&${sn}-checked`]:{background:me.switchColor,[`&:hover:not(${sn}-disabled)`]:{background:me.colorPrimaryHover}},[`&${sn}-loading, &${sn}-disabled`]:{cursor:"not-allowed",opacity:me.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${sn}-rtl`]:{direction:"rtl"}})}};var Ut=(0,vt.Z)("Switch",me=>{const sn=(0,wt.TS)(me,{switchDuration:me.motionDurationMid,switchColor:me.colorPrimary,switchDisabledOpacity:me.opacityLoading,switchLoadingIconSize:me.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${me.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xt(sn),jt(sn),Ot(sn),kt(sn),Bt(sn)]},me=>{const{fontSize:sn,lineHeight:qe,controlHeight:Ye,colorWhite:je}=me,hn=sn*qe,ge=Ye/2,Ht=2,Ce=hn-Ht*2,bn=ge-Ht*2;return{trackHeight:hn,trackHeightSM:ge,trackMinWidth:Ce*2+Ht*4,trackMinWidthSM:bn*2+Ht*2,trackPadding:Ht,handleBg:je,handleSize:Ce,handleSizeSM:bn,handleShadow:`0 2px 4px 0 ${new st.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ce/2,innerMaxMargin:Ce+Ht+Ht*2,innerMinMarginSM:bn/2,innerMaxMarginSM:bn+Ht+Ht*2}}),de=function(me,sn){var qe={};for(var Ye in me)Object.prototype.hasOwnProperty.call(me,Ye)&&sn.indexOf(Ye)<0&&(qe[Ye]=me[Ye]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ye=Object.getOwnPropertySymbols(me);je<Ye.length;je++)sn.indexOf(Ye[je])<0&&Object.prototype.propertyIsEnumerable.call(me,Ye[je])&&(qe[Ye[je]]=me[Ye[je]]);return qe};const Gt=ze.forwardRef((me,sn)=>{const{prefixCls:qe,size:Ye,disabled:je,loading:hn,className:ge,rootClassName:Ht,style:Ce}=me,bn=de(me,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:yn,direction:Ae,switch:Ue}=ze.useContext(et.E_),Sn=ze.useContext(nt.Z),Xn=(je!=null?je:Sn)||hn,Pn=yn("switch",qe),Gn=ze.createElement("div",{className:`${Pn}-handle`},hn&&ze.createElement(Ct.Z,{className:`${Pn}-loading-icon`})),[Ee,Jn]=Ut(Pn),ai=(0,ht.Z)(Ye),ui=ee()(Ue==null?void 0:Ue.className,{[`${Pn}-small`]:ai==="small",[`${Pn}-loading`]:hn,[`${Pn}-rtl`]:Ae==="rtl"},ge,Ht,Jn),ln=Object.assign(Object.assign({},Ue==null?void 0:Ue.style),Ce);return Ee(ze.createElement(Tt.Z,{component:"Switch"},ze.createElement(Re,Object.assign({},bn,{prefixCls:Pn,className:ui,style:ln,disabled:Xn,ref:sn,loadingIcon:Gn}))))});Gt.__ANT_SWITCH=!0;var Ve=Gt},2595:function(Dn,An,St){"use strict";St.d(An,{default:function(){return Kg}});var Ct={},It="rc-table-internal-hook",ee=St(29043),Ne=St(8107),Vt=St(28800),fe=St(51346),Ft=St(59301),ze=St(4676);function we(ne){var se=Ft.createContext(void 0),He=function(dn){var nn=dn.value,Tn=dn.children,On=Ft.useRef(nn);On.current=nn;var Bn=Ft.useState(function(){return{getValue:function(){return On.current},listeners:new Set}}),$n=(0,ee.Z)(Bn,1),oi=$n[0];return(0,Vt.Z)(function(){(0,ze.unstable_batchedUpdates)(function(){oi.listeners.forEach(function(ni){ni(nn)})})},[nn]),Ft.createElement(se.Provider,{value:oi},Tn)};return{Context:se,Provider:He,defaultValue:ne}}function oe(ne,se){var He=(0,Ne.Z)(typeof se=="function"?se:function(ni){if(se===void 0)return ni;if(!Array.isArray(se))return ni[se];var Di={};return se.forEach(function(Ai){Di[Ai]=ni[Ai]}),Di}),Ke=Ft.useContext(ne==null?void 0:ne.Context),dn=Ke||{},nn=dn.listeners,Tn=dn.getValue,On=Ft.useRef();On.current=He(Ke?Tn():ne==null?void 0:ne.defaultValue);var Bn=Ft.useState({}),$n=(0,ee.Z)(Bn,2),oi=$n[1];return(0,Vt.Z)(function(){if(!Ke)return;function ni(Di){var Ai=He(Di);(0,fe.Z)(On.current,Ai,!0)||oi({})}return nn.add(ni),function(){nn.delete(ni)}},[Ke]),On.current}var ve=St(5891),ye=St(20475);function Re(){var ne=Ft.createContext(null);function se(){return Ft.useContext(ne)}function He(dn,nn){var Tn=(0,ye.Yr)(dn),On=function($n,oi){var ni=Tn?{ref:oi}:{},Di=Ft.useRef(0),Ai=Ft.useRef($n),mi=se();return mi!==null?Ft.createElement(dn,(0,ve.Z)({},$n,ni)):((!nn||nn(Ai.current,$n))&&(Di.current+=1),Ai.current=$n,Ft.createElement(ne.Provider,{value:Di.current},Ft.createElement(dn,(0,ve.Z)({},$n,ni))))};return Tn?Ft.forwardRef(On):On}function Ke(dn,nn){var Tn=(0,ye.Yr)(dn),On=function($n,oi){var ni=Tn?{ref:oi}:{};return se(),Ft.createElement(dn,(0,ve.Z)({},$n,ni))};return Tn?Ft.memo(Ft.forwardRef(On),nn):Ft.memo(On,nn)}return{makeImmutable:He,responseImmutable:Ke,useImmutableMark:se}}var Tt=Re(),et=Tt.makeImmutable,nt=Tt.responseImmutable,ht=Tt.useImmutableMark,st=Re(),gt=st.makeImmutable,vt=st.responseImmutable,wt=st.useImmutableMark,Bt=we(),kt=Bt;function Ot(ne,se){var He=Ft.useRef(0);He.current+=1;var Ke=Ft.useRef(ne),dn=[];Object.keys(ne||{}).map(function(Tn){var On;(ne==null?void 0:ne[Tn])!==((On=Ke.current)===null||On===void 0?void 0:On[Tn])&&dn.push(Tn)}),Ke.current=ne;var nn=Ft.useRef([]);return dn.length&&(nn.current=dn),Ft.useDebugValue(He.current),Ft.useDebugValue(nn.current.join(", ")),se&&console.log("".concat(se,":"),He.current,nn.current),He.current}var jt=null,Xt=Ft.memo(function(){var ne=Ot();return Ft.createElement("h1",null,"Render Times: ",ne)});Xt.displayName="RenderBlock";var Ut=St(80665),de=St(57259),Gt=St(80962),Ve=St(92310),me=St.n(Ve),sn=St(79722),qe=St(69004),Ye=St(51395),je=Ft.createContext({renderWithProps:!1}),hn=je,ge="RC_TABLE_KEY";function Ht(ne){return ne==null?[]:Array.isArray(ne)?ne:[ne]}function Ce(ne){var se=[],He={};return ne.forEach(function(Ke){for(var dn=Ke||{},nn=dn.key,Tn=dn.dataIndex,On=nn||Ht(Tn).join("-")||ge;He[On];)On="".concat(On,"_next");He[On]=!0,se.push(On)}),se}function bn(ne){return ne!=null}function yn(ne){return ne&&(0,Ut.Z)(ne)==="object"&&!Array.isArray(ne)&&!Ft.isValidElement(ne)}function Ae(ne,se,He,Ke,dn,nn){var Tn=Ft.useContext(hn),On=wt(),Bn=(0,sn.Z)(function(){if(bn(Ke))return[Ke];var $n=se==null||se===""?[]:Array.isArray(se)?se:[se],oi=(0,qe.Z)(ne,$n),ni=oi,Di=void 0;if(dn){var Ai=dn(oi,ne,He);yn(Ai)?(ni=Ai.children,Di=Ai.props,Tn.renderWithProps=!0):ni=Ai}return[ni,Di]},[On,ne,Ke,se,dn,He],function($n,oi){if(nn){var ni=(0,ee.Z)($n,2),Di=ni[1],Ai=(0,ee.Z)(oi,2),mi=Ai[1];return nn(mi,Di)}return Tn.renderWithProps?!0:!(0,fe.Z)($n,oi,!0)});return Bn}function Ue(ne,se,He,Ke){var dn=ne+se-1;return ne<=Ke&&dn>=He}function Sn(ne,se){return oe(kt,function(He){var Ke=Ue(ne,se||1,He.hoverStartRow,He.hoverEndRow);return[Ke,He.onHover]})}var Xn=function(se){var He=se.ellipsis,Ke=se.rowType,dn=se.children,nn,Tn=He===!0?{showTitle:!0}:He;return Tn&&(Tn.showTitle||Ke==="header")&&(typeof dn=="string"||typeof dn=="number"?nn=dn.toString():Ft.isValidElement(dn)&&typeof dn.props.children=="string"&&(nn=dn.props.children)),nn};function Pn(ne){var se,He,Ke,dn,nn,Tn,On,Bn,$n=ne.component,oi=ne.children,ni=ne.ellipsis,Di=ne.scope,Ai=ne.prefixCls,mi=ne.className,io=ne.align,xi=ne.record,to=ne.render,Qi=ne.dataIndex,ho=ne.renderIndex,Oo=ne.shouldCellUpdate,Yo=ne.index,ro=ne.rowType,To=ne.colSpan,gr=ne.rowSpan,uo=ne.fixLeft,Eo=ne.fixRight,lo=ne.firstFixLeft,Gi=ne.lastFixLeft,So=ne.firstFixRight,Wo=ne.lastFixRight,$o=ne.appendNode,_o=ne.additionalProps,ao=_o===void 0?{}:_o,mr=ne.isSticky,Pr="".concat(Ai,"-cell"),_r=oe(kt,["supportSticky","allColumnsFixedLeft"]),Or=_r.supportSticky,Da=_r.allColumnsFixedLeft,Ma=Ae(xi,Qi,ho,oi,to,Oo),Sr=(0,ee.Z)(Ma,2),Vo=Sr[0],Vr=Sr[1],Na={},Sa=typeof uo=="number"&&Or,rs=typeof Eo=="number"&⩔Sa&&(Na.position="sticky",Na.left=uo),rs&&(Na.position="sticky",Na.right=Eo);var tr=(se=(He=(Ke=Vr==null?void 0:Vr.colSpan)!==null&&Ke!==void 0?Ke:ao.colSpan)!==null&&He!==void 0?He:To)!==null&&se!==void 0?se:1,Jo=(dn=(nn=(Tn=Vr==null?void 0:Vr.rowSpan)!==null&&Tn!==void 0?Tn:ao.rowSpan)!==null&&nn!==void 0?nn:gr)!==null&&dn!==void 0?dn:1,er=Sn(Yo,Jo),Io=(0,ee.Z)(er,2),Xr=Io[0],Ro=Io[1],pr=function(ns){var ps;xi&&Ro(Yo,Yo+Jo-1),ao==null||(ps=ao.onMouseEnter)===null||ps===void 0||ps.call(ao,ns)},jr=function(ns){var ps;xi&&Ro(-1,-1),ao==null||(ps=ao.onMouseLeave)===null||ps===void 0||ps.call(ao,ns)};if(tr===0||Jo===0)return null;var Wr=(On=ao.title)!==null&&On!==void 0?On:Xn({rowType:ro,ellipsis:ni,children:Vo}),Ps=me()(Pr,mi,(Bn={},(0,Gt.Z)(Bn,"".concat(Pr,"-fix-left"),Sa&&Or),(0,Gt.Z)(Bn,"".concat(Pr,"-fix-left-first"),lo&&Or),(0,Gt.Z)(Bn,"".concat(Pr,"-fix-left-last"),Gi&&Or),(0,Gt.Z)(Bn,"".concat(Pr,"-fix-left-all"),Gi&&Da&&Or),(0,Gt.Z)(Bn,"".concat(Pr,"-fix-right"),rs&&Or),(0,Gt.Z)(Bn,"".concat(Pr,"-fix-right-first"),So&&Or),(0,Gt.Z)(Bn,"".concat(Pr,"-fix-right-last"),Wo&&Or),(0,Gt.Z)(Bn,"".concat(Pr,"-ellipsis"),ni),(0,Gt.Z)(Bn,"".concat(Pr,"-with-append"),$o),(0,Gt.Z)(Bn,"".concat(Pr,"-fix-sticky"),(Sa||rs)&&mr&&Or),(0,Gt.Z)(Bn,"".concat(Pr,"-row-hover"),!Vr&&Xr),Bn),ao.className,Vr==null?void 0:Vr.className),us={};io&&(us.textAlign=io);var Gs=(0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)({},Na),ao.style),us),Vr==null?void 0:Vr.style),ta=Vo;return(0,Ut.Z)(ta)==="object"&&!Array.isArray(ta)&&!Ft.isValidElement(ta)&&(ta=null),ni&&(Gi||So)&&(ta=Ft.createElement("span",{className:"".concat(Pr,"-content")},ta)),Ft.createElement($n,(0,ve.Z)({},Vr,ao,{className:Ps,style:Gs,title:Wr,scope:Di,onMouseEnter:pr,onMouseLeave:jr,colSpan:tr!==1?tr:null,rowSpan:Jo!==1?Jo:null}),$o,ta)}var Gn=Ft.memo(Pn);function Ee(ne,se,He,Ke,dn,nn){var Tn=He[ne]||{},On=He[se]||{},Bn,$n;Tn.fixed==="left"?Bn=Ke.left[dn==="rtl"?se:ne]:On.fixed==="right"&&($n=Ke.right[dn==="rtl"?ne:se]);var oi=!1,ni=!1,Di=!1,Ai=!1,mi=He[se+1],io=He[ne-1],xi=!(nn!=null&&nn.children);if(dn==="rtl"){if(Bn!==void 0){var to=io&&io.fixed==="left";Ai=!to&&xi}else if($n!==void 0){var Qi=mi&&mi.fixed==="right";Di=!Qi&&xi}}else if(Bn!==void 0){var ho=mi&&mi.fixed==="left";oi=!ho&&xi}else if($n!==void 0){var Oo=io&&io.fixed==="right";ni=!Oo&&xi}return{fixLeft:Bn,fixRight:$n,lastFixLeft:oi,firstFixRight:ni,lastFixRight:Di,firstFixLeft:Ai,isSticky:Ke.isSticky}}var Jn=Ft.createContext({}),ai=Jn;function ui(ne){var se=ne.className,He=ne.index,Ke=ne.children,dn=ne.colSpan,nn=dn===void 0?1:dn,Tn=ne.rowSpan,On=ne.align,Bn=oe(kt,["prefixCls","direction"]),$n=Bn.prefixCls,oi=Bn.direction,ni=Ft.useContext(ai),Di=ni.scrollColumnIndex,Ai=ni.stickyOffsets,mi=ni.flattenColumns,io=ni.columns,xi=He+nn-1,to=xi+1===Di?nn+1:nn,Qi=Ee(He,He+to-1,mi,Ai,oi,io==null?void 0:io[He]);return Ft.createElement(Gn,(0,ve.Z)({className:se,index:He,component:"td",prefixCls:$n,record:null,dataIndex:null,align:On,colSpan:to,rowSpan:Tn,render:function(){return Ke}},Qi))}var ln=St(19149),Te=["children"];function Me(ne){var se=ne.children,He=(0,ln.Z)(ne,Te);return Ft.createElement("tr",He,se)}function ie(ne){var se=ne.children;return se}ie.Row=Me,ie.Cell=ui;var Kt=ie;function Oe(ne){var se=ne.children,He=ne.stickyOffsets,Ke=ne.flattenColumns,dn=ne.columns,nn=oe(kt,"prefixCls"),Tn=Ke.length-1,On=Ke[Tn],Bn=Ft.useMemo(function(){return{stickyOffsets:He,flattenColumns:Ke,scrollColumnIndex:On!=null&&On.scrollbar?Tn:null,columns:dn}},[On,Ke,Tn,He,dn]);return Ft.createElement(ai.Provider,{value:Bn},Ft.createElement("tfoot",{className:"".concat(nn,"-summary")},se))}var ke=vt(Oe),te=Kt,qt=St(80764),Dt=St(29301),xt=St(48886),mt=St(24387),Mt=St(59055),Rt=St(36994);function Et(ne,se,He,Ke,dn,nn,Tn){ne.push({record:se,indent:He,index:Tn});var On=nn(se),Bn=dn==null?void 0:dn.has(On);if(se&&Array.isArray(se[Ke])&&Bn)for(var $n=0;$n<se[Ke].length;$n+=1)Et(ne,se[Ke][$n],He+1,Ke,dn,nn,$n)}function re(ne,se,He,Ke){var dn=Ft.useMemo(function(){if(He!=null&&He.size){for(var nn=[],Tn=0;Tn<(ne==null?void 0:ne.length);Tn+=1){var On=ne[Tn];Et(nn,On,0,se,He,Ke,Tn)}return nn}return ne==null?void 0:ne.map(function(Bn,$n){return{record:Bn,indent:0,index:$n}})},[ne,se,He,Ke]);return dn}function Qe(ne){var se=ne.prefixCls,He=ne.children,Ke=ne.component,dn=ne.cellComponent,nn=ne.className,Tn=ne.expanded,On=ne.colSpan,Bn=ne.isEmpty,$n=oe(kt,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),oi=$n.scrollbarSize,ni=$n.fixHeader,Di=$n.fixColumn,Ai=$n.componentWidth,mi=$n.horizonScroll,io=He;return(Bn?mi&&Ai:Di)&&(io=Ft.createElement("div",{style:{width:Ai-(ni?oi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(se,"-expanded-row-fixed")},io)),Ft.createElement(Ke,{className:nn,style:{display:Tn?null:"none"}},Ft.createElement(Gn,{component:dn,prefixCls:se,colSpan:On},io))}var mn=Qe;function le(ne,se,He,Ke){var dn=oe(kt,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),nn=dn.flattenColumns,Tn=dn.expandableType,On=dn.expandedKeys,Bn=dn.childrenColumnName,$n=dn.onTriggerExpand,oi=dn.rowExpandable,ni=dn.onRow,Di=dn.expandRowByClick,Ai=dn.rowClassName,mi=Tn==="nest",io=Tn==="row"&&(!oi||oi(ne)),xi=io||mi,to=On&&On.has(se),Qi=Bn&&ne&&ne[Bn],ho=(0,qt.useEvent)($n),Oo=ni==null?void 0:ni(ne,He),Yo=Oo==null?void 0:Oo.onClick,ro=function(Eo){Di&&xi&&$n(ne,Eo);for(var lo=arguments.length,Gi=new Array(lo>1?lo-1:0),So=1;So<lo;So++)Gi[So-1]=arguments[So];Yo==null||Yo.apply(void 0,[Eo].concat(Gi))},To;typeof Ai=="string"?To=Ai:typeof Ai=="function"&&(To=Ai(ne,He,Ke));var gr=Ce(nn);return(0,de.Z)((0,de.Z)({},dn),{},{columnsKey:gr,nestExpandable:mi,expanded:to,hasNestChildren:Qi,record:ne,onTriggerExpand:ho,rowSupportExpand:io,expandable:xi,rowProps:(0,de.Z)((0,de.Z)({},Oo),{},{className:me()(To,Oo==null?void 0:Oo.className),onClick:ro})})}function Ge(ne,se,He,Ke,dn){var nn=ne.record,Tn=ne.prefixCls,On=ne.columnsKey,Bn=ne.fixedInfoList,$n=ne.expandIconColumnIndex,oi=ne.nestExpandable,ni=ne.indentSize,Di=ne.expandIcon,Ai=ne.expanded,mi=ne.hasNestChildren,io=ne.onTriggerExpand,xi=On[He],to=Bn[He],Qi;He===($n||0)&&oi&&(Qi=Ft.createElement(Ft.Fragment,null,Ft.createElement("span",{style:{paddingLeft:"".concat(ni*Ke,"px")},className:"".concat(Tn,"-row-indent indent-level-").concat(Ke)}),Di({prefixCls:Tn,expanded:Ai,expandable:mi,record:nn,onExpand:io})));var ho;return se.onCell&&(ho=se.onCell(nn,dn)),{key:xi,fixedInfo:to,appendCellNode:Qi,additionalCellProps:ho||{}}}function cn(ne){var se=ne.className,He=ne.style,Ke=ne.record,dn=ne.index,nn=ne.renderIndex,Tn=ne.rowKey,On=ne.indent,Bn=On===void 0?0:On,$n=ne.rowComponent,oi=ne.cellComponent,ni=ne.scopeCellComponent,Di=le(Ke,Tn,dn,Bn),Ai=Di.prefixCls,mi=Di.flattenColumns,io=Di.expandedRowClassName,xi=Di.expandedRowRender,to=Di.rowProps,Qi=Di.expanded,ho=Di.rowSupportExpand,Oo=Ft.useState(!1),Yo=(0,ee.Z)(Oo,2),ro=Yo[0],To=Yo[1];Ft.useEffect(function(){Qi&&To(!0)},[Qi]);var gr=Ft.createElement($n,(0,ve.Z)({},to,{"data-row-key":Tn,className:me()(se,"".concat(Ai,"-row"),"".concat(Ai,"-row-level-").concat(Bn),to==null?void 0:to.className),style:(0,de.Z)((0,de.Z)({},He),to==null?void 0:to.style)}),mi.map(function(Gi,So){var Wo=Gi.render,$o=Gi.dataIndex,_o=Gi.className,ao=Ge(Di,Gi,So,Bn,dn),mr=ao.key,Pr=ao.fixedInfo,_r=ao.appendCellNode,Or=ao.additionalCellProps;return Ft.createElement(Gn,(0,ve.Z)({className:_o,ellipsis:Gi.ellipsis,align:Gi.align,scope:Gi.rowScope,component:Gi.rowScope?ni:oi,prefixCls:Ai,key:mr,record:Ke,index:dn,renderIndex:nn,dataIndex:$o,render:Wo,shouldCellUpdate:Gi.shouldCellUpdate},Pr,{appendNode:_r,additionalProps:Or}))})),uo;if(ho&&(ro||Qi)){var Eo=xi(Ke,dn,Bn+1,Qi),lo=io&&io(Ke,dn,Bn);uo=Ft.createElement(mn,{expanded:Qi,className:me()("".concat(Ai,"-expanded-row"),"".concat(Ai,"-expanded-row-level-").concat(Bn+1),lo),prefixCls:Ai,component:$n,cellComponent:oi,colSpan:mi.length,isEmpty:!1},Eo)}return Ft.createElement(Ft.Fragment,null,gr,uo)}cn.displayName="BodyRow";var Mn=vt(cn);function Zn(ne){var se=ne.columnKey,He=ne.onColumnResize,Ke=Ft.useRef();return Ft.useEffect(function(){Ke.current&&He(se,Ke.current.offsetWidth)},[]),Ft.createElement(Dt.Z,{data:se},Ft.createElement("td",{ref:Ke,style:{padding:0,border:0,height:0}},Ft.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function _n(ne){var se=ne.prefixCls,He=ne.columnsKey,Ke=ne.onColumnResize;return Ft.createElement("tr",{"aria-hidden":"true",className:"".concat(se,"-measure-row"),style:{height:0,fontSize:0}},Ft.createElement(Dt.Z.Collection,{onBatchResize:function(nn){nn.forEach(function(Tn){var On=Tn.data,Bn=Tn.size;Ke(On,Bn.offsetWidth)})}},He.map(function(dn){return Ft.createElement(Zn,{key:dn,columnKey:dn,onColumnResize:Ke})})))}function di(ne){var se=ne.data,He=ne.measureColumnWidth,Ke=oe(kt,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),dn=Ke.prefixCls,nn=Ke.getComponent,Tn=Ke.onColumnResize,On=Ke.flattenColumns,Bn=Ke.getRowKey,$n=Ke.expandedKeys,oi=Ke.childrenColumnName,ni=Ke.emptyNode,Di=re(se,oi,$n,Bn),Ai=Ft.useRef({renderWithProps:!1}),mi=nn(["body","wrapper"],"tbody"),io=nn(["body","row"],"tr"),xi=nn(["body","cell"],"td"),to=nn(["body","cell"],"th"),Qi;se.length?Qi=Di.map(function(Oo,Yo){var ro=Oo.record,To=Oo.indent,gr=Oo.index,uo=Bn(ro,Yo);return Ft.createElement(Mn,{key:uo,rowKey:uo,record:ro,index:Yo,renderIndex:gr,rowComponent:io,cellComponent:xi,scopeCellComponent:to,getRowKey:Bn,indent:To})}):Qi=Ft.createElement(mn,{expanded:!0,className:"".concat(dn,"-placeholder"),prefixCls:dn,component:io,cellComponent:xi,colSpan:On.length,isEmpty:!0},ni);var ho=Ce(On);return Ft.createElement(hn.Provider,{value:Ai.current},Ft.createElement(mi,{className:"".concat(dn,"-tbody")},He&&Ft.createElement(_n,{prefixCls:dn,columnsKey:ho,onColumnResize:Tn}),Qi))}di.displayName="Body";var ri=vt(di),Fi=["expandable"],Zi="RC_TABLE_INTERNAL_COL_DEFINE";function Vi(ne){var se=ne.expandable,He=(0,ln.Z)(ne,Fi),Ke;return"expandable"in ne?Ke=(0,de.Z)((0,de.Z)({},He),se):Ke=He,Ke.showExpandColumn===!1&&(Ke.expandIconColumnIndex=-1),Ke}var ji=["columnType"];function qi(ne){for(var se=ne.colWidths,He=ne.columns,Ke=ne.columCount,dn=[],nn=Ke||He.length,Tn=!1,On=nn-1;On>=0;On-=1){var Bn=se[On],$n=He&&He[On],oi=$n&&$n[Zi];if(Bn||oi||Tn){var ni=oi||{},Di=ni.columnType,Ai=(0,ln.Z)(ni,ji);dn.unshift(Ft.createElement("col",(0,ve.Z)({key:On,style:{width:Bn}},Ai))),Tn=!0}}return Ft.createElement("colgroup",null,dn)}var wo=qi,Ei=St(26390),Po=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ki(ne,se){return(0,Ft.useMemo)(function(){for(var He=[],Ke=0;Ke<se;Ke+=1){var dn=ne[Ke];if(dn!==void 0)He[Ke]=dn;else return null}return He},[ne.join("_"),se])}var Lt=Ft.forwardRef(function(ne,se){var He=ne.className,Ke=ne.noData,dn=ne.columns,nn=ne.flattenColumns,Tn=ne.colWidths,On=ne.columCount,Bn=ne.stickyOffsets,$n=ne.direction,oi=ne.fixHeader,ni=ne.stickyTopOffset,Di=ne.stickyBottomOffset,Ai=ne.stickyClassName,mi=ne.onScroll,io=ne.maxContentScroll,xi=ne.children,to=(0,ln.Z)(ne,Po),Qi=oe(kt,["prefixCls","scrollbarSize","isSticky"]),ho=Qi.prefixCls,Oo=Qi.scrollbarSize,Yo=Qi.isSticky,ro=Yo&&!oi?0:Oo,To=Ft.useRef(null),gr=Ft.useCallback(function(_o){(0,ye.mH)(se,_o),(0,ye.mH)(To,_o)},[]);Ft.useEffect(function(){var _o;function ao(mr){var Pr=mr,_r=Pr.currentTarget,Or=Pr.deltaX;Or&&(mi({currentTarget:_r,scrollLeft:_r.scrollLeft+Or}),mr.preventDefault())}return(_o=To.current)===null||_o===void 0||_o.addEventListener("wheel",ao),function(){var mr;(mr=To.current)===null||mr===void 0||mr.removeEventListener("wheel",ao)}},[]);var uo=Ft.useMemo(function(){return nn.every(function(_o){return _o.width})},[nn]),Eo=nn[nn.length-1],lo={fixed:Eo?Eo.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ho,"-cell-scrollbar")}}},Gi=(0,Ft.useMemo)(function(){return ro?[].concat((0,Ei.Z)(dn),[lo]):dn},[ro,dn]),So=(0,Ft.useMemo)(function(){return ro?[].concat((0,Ei.Z)(nn),[lo]):nn},[ro,nn]),Wo=(0,Ft.useMemo)(function(){var _o=Bn.right,ao=Bn.left;return(0,de.Z)((0,de.Z)({},Bn),{},{left:$n==="rtl"?[].concat((0,Ei.Z)(ao.map(function(mr){return mr+ro})),[0]):ao,right:$n==="rtl"?_o:[].concat((0,Ei.Z)(_o.map(function(mr){return mr+ro})),[0]),isSticky:Yo})},[ro,Bn,Yo]),$o=ki(Tn,On);return Ft.createElement("div",{style:(0,de.Z)({overflow:"hidden"},Yo?{top:ni,bottom:Di}:{}),ref:gr,className:me()(He,(0,Gt.Z)({},Ai,!!Ai))},Ft.createElement("table",{style:{tableLayout:"fixed",visibility:Ke||$o?null:"hidden"}},(!Ke||!io||uo)&&Ft.createElement(wo,{colWidths:$o?[].concat((0,Ei.Z)($o),[ro]):[],columCount:On+1,columns:So}),xi((0,de.Z)((0,de.Z)({},to),{},{stickyOffsets:Wo,columns:Gi,flattenColumns:So}))))});Lt.displayName="FixedHolder";var Mo=Ft.memo(Lt);function $i(ne){var se=ne.cells,He=ne.stickyOffsets,Ke=ne.flattenColumns,dn=ne.rowComponent,nn=ne.cellComponent,Tn=ne.tdCellComponent,On=ne.onHeaderRow,Bn=ne.index,$n=oe(kt,["prefixCls","direction"]),oi=$n.prefixCls,ni=$n.direction,Di;On&&(Di=On(se.map(function(mi){return mi.column}),Bn));var Ai=Ce(se.map(function(mi){return mi.column}));return Ft.createElement(dn,Di,se.map(function(mi,io){var xi=mi.column,to=Ee(mi.colStart,mi.colEnd,Ke,He,ni,xi),Qi;return xi&&xi.onHeaderCell&&(Qi=mi.column.onHeaderCell(xi)),Ft.createElement(Gn,(0,ve.Z)({},mi,{scope:xi.title?mi.colSpan>1?"colgroup":"col":null,ellipsis:xi.ellipsis,align:xi.align,component:xi.title?nn:Tn,prefixCls:oi,key:Ai[io]},to,{additionalProps:Qi,rowType:"header"}))}))}$i.displayName="HeaderRow";var En=$i;function hi(ne){var se=[];function He(Tn,On){var Bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;se[Bn]=se[Bn]||[];var $n=On,oi=Tn.filter(Boolean).map(function(ni){var Di={key:ni.key,className:ni.className||"",children:ni.title,column:ni,colStart:$n},Ai=1,mi=ni.children;return mi&&mi.length>0&&(Ai=He(mi,$n,Bn+1).reduce(function(io,xi){return io+xi},0),Di.hasSubColumns=!0),"colSpan"in ni&&(Ai=ni.colSpan),"rowSpan"in ni&&(Di.rowSpan=ni.rowSpan),Di.colSpan=Ai,Di.colEnd=Di.colStart+Ai-1,se[Bn].push(Di),$n+=Ai,Ai});return oi}He(ne,0);for(var Ke=se.length,dn=function(On){se[On].forEach(function(Bn){!("rowSpan"in Bn)&&!Bn.hasSubColumns&&(Bn.rowSpan=Ke-On)})},nn=0;nn<Ke;nn+=1)dn(nn);return se}function gi(ne){var se=ne.stickyOffsets,He=ne.columns,Ke=ne.flattenColumns,dn=ne.onHeaderRow,nn=oe(kt,["prefixCls","getComponent"]),Tn=nn.prefixCls,On=nn.getComponent,Bn=Ft.useMemo(function(){return hi(He)},[He]),$n=On(["header","wrapper"],"thead"),oi=On(["header","row"],"tr"),ni=On(["header","cell"],"th"),Di=On(["header","cell"],"td");return Ft.createElement($n,{className:"".concat(Tn,"-thead")},Bn.map(function(Ai,mi){var io=Ft.createElement(En,{key:mi,flattenColumns:Ke,cells:Ai,stickyOffsets:se,rowComponent:oi,cellComponent:ni,tdCellComponent:Di,onHeaderRow:dn,index:mi});return io}))}var Pi=vt(gi),Rn=St(38298);function Le(ne){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof se=="number"?se:se.endsWith("%")?ne*parseFloat(se)/100:null}function Fe(ne,se){return Ft.useMemo(function(){if(se&&se>0){var He=0,Ke=0;ne.forEach(function($n){var oi=Le(se,$n.width);oi?He+=oi:Ke+=1});var dn=se-He,nn=Ke,Tn=dn/Ke,On=0,Bn=ne.map(function($n){var oi=(0,de.Z)({},$n),ni=Le(se,oi.width);if(ni)oi.width=ni;else{var Di=Math.floor(Tn);oi.width=nn===1?dn:Di,dn-=Di,nn-=1}return On+=oi.width,oi});return[Bn,On]}return[ne,se]},[ne,se])}var he=["children"],_t=["fixed"];function Ze(ne){return(0,Rn.Z)(ne).filter(function(se){return Ft.isValidElement(se)}).map(function(se){var He=se.key,Ke=se.props,dn=Ke.children,nn=(0,ln.Z)(Ke,he),Tn=(0,de.Z)({key:He},nn);return dn&&(Tn.children=Ze(dn)),Tn})}function tn(ne){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ne.filter(function(He){return He&&(0,Ut.Z)(He)==="object"}).reduce(function(He,Ke,dn){var nn=Ke.fixed,Tn=nn===!0?"left":nn,On="".concat(se,"-").concat(dn),Bn=Ke.children;return Bn&&Bn.length>0?[].concat((0,Ei.Z)(He),(0,Ei.Z)(tn(Bn,On).map(function($n){return(0,de.Z)({fixed:Tn},$n)}))):[].concat((0,Ei.Z)(He),[(0,de.Z)((0,de.Z)({key:On},Ke),{},{fixed:Tn})])},[])}function Se(ne){for(var se=!0,He=0;He<ne.length;He+=1){var Ke=ne[He];if(se&&Ke.fixed!=="left")se=!1;else if(!se&&Ke.fixed==="left"){warning(!1,"Index ".concat(He-1," of `columns` missing `fixed='left'` prop."));break}}for(var dn=!0,nn=ne.length-1;nn>=0;nn-=1){var Tn=ne[nn];if(dn&&Tn.fixed!=="right")dn=!1;else if(!dn&&Tn.fixed==="right"){warning(!1,"Index ".concat(nn+1," of `columns` missing `fixed='right'` prop."));break}}}function Yt(ne){return ne.map(function(se){var He=se.fixed,Ke=(0,ln.Z)(se,_t),dn=He;return He==="left"?dn="right":He==="right"&&(dn="left"),(0,de.Z)({fixed:dn},Ke)})}function $e(ne,se){var He=ne.prefixCls,Ke=ne.columns,dn=ne.children,nn=ne.expandable,Tn=ne.expandedKeys,On=ne.columnTitle,Bn=ne.getRowKey,$n=ne.onTriggerExpand,oi=ne.expandIcon,ni=ne.rowExpandable,Di=ne.expandIconColumnIndex,Ai=ne.direction,mi=ne.expandRowByClick,io=ne.columnWidth,xi=ne.fixed,to=ne.scrollWidth,Qi=Ft.useMemo(function(){return Ke||Ze(dn)},[Ke,dn]),ho=Ft.useMemo(function(){if(nn){var Eo,lo=Qi.slice();if(!lo.includes(Ct)){var Gi=Di||0;Gi>=0&&lo.splice(Gi,0,Ct)}var So=lo.indexOf(Ct);lo=lo.filter(function(ao,mr){return ao!==Ct||mr===So});var Wo=Qi[So],$o;(xi==="left"||xi)&&!Di?$o="left":(xi==="right"||xi)&&Di===Qi.length?$o="right":$o=Wo?Wo.fixed:null;var _o=(Eo={},(0,Gt.Z)(Eo,Zi,{className:"".concat(He,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Gt.Z)(Eo,"title",On),(0,Gt.Z)(Eo,"fixed",$o),(0,Gt.Z)(Eo,"className","".concat(He,"-row-expand-icon-cell")),(0,Gt.Z)(Eo,"width",io),(0,Gt.Z)(Eo,"render",function(mr,Pr,_r){var Or=Bn(Pr,_r),Da=Tn.has(Or),Ma=ni?ni(Pr):!0,Sr=oi({prefixCls:He,expanded:Da,expandable:Ma,record:Pr,onExpand:$n});return mi?Ft.createElement("span",{onClick:function(Vr){return Vr.stopPropagation()}},Sr):Sr}),Eo);return lo.map(function(ao){return ao===Ct?_o:ao})}return Qi.filter(function(ao){return ao!==Ct})},[nn,Qi,Bn,Tn,oi,Ai]),Oo=Ft.useMemo(function(){var Eo=ho;return se&&(Eo=se(Eo)),Eo.length||(Eo=[{render:function(){return null}}]),Eo},[se,ho,Ai]),Yo=Ft.useMemo(function(){return Ai==="rtl"?Yt(tn(Oo)):tn(Oo)},[Oo,Ai,to]),ro=Fe(Yo,to),To=(0,ee.Z)(ro,2),gr=To[0],uo=To[1];return[Oo,gr,uo]}var on=$e;function zn(ne){var se,He=ne.prefixCls,Ke=ne.record,dn=ne.onExpand,nn=ne.expanded,Tn=ne.expandable,On="".concat(He,"-row-expand-icon");if(!Tn)return Ft.createElement("span",{className:me()(On,"".concat(He,"-row-spaced"))});var Bn=function(oi){dn(Ke,oi),oi.stopPropagation()};return Ft.createElement("span",{className:me()(On,(se={},(0,Gt.Z)(se,"".concat(He,"-row-expanded"),nn),(0,Gt.Z)(se,"".concat(He,"-row-collapsed"),!nn),se)),onClick:Bn})}function en(ne,se,He){var Ke=[];function dn(nn){(nn||[]).forEach(function(Tn,On){Ke.push(se(Tn,On)),dn(Tn[He])})}return dn(ne),Ke}function xe(ne,se,He){var Ke=Vi(ne),dn=Ke.expandIcon,nn=Ke.expandedRowKeys,Tn=Ke.defaultExpandedRowKeys,On=Ke.defaultExpandAllRows,Bn=Ke.expandedRowRender,$n=Ke.onExpand,oi=Ke.onExpandedRowsChange,ni=Ke.childrenColumnName,Di=dn||zn,Ai=ni||"children",mi=Ft.useMemo(function(){return Bn?"row":ne.expandable&&ne.internalHooks===It&&ne.expandable.__PARENT_RENDER_ICON__||se.some(function(Yo){return Yo&&(0,Ut.Z)(Yo)==="object"&&Yo[Ai]})?"nest":!1},[!!Bn,se]),io=Ft.useState(function(){return Tn||(On?en(se,He,Ai):[])}),xi=(0,ee.Z)(io,2),to=xi[0],Qi=xi[1],ho=Ft.useMemo(function(){return new Set(nn||to||[])},[nn,to]),Oo=Ft.useCallback(function(Yo){var ro=He(Yo,se.indexOf(Yo)),To,gr=ho.has(ro);gr?(ho.delete(ro),To=(0,Ei.Z)(ho)):To=[].concat((0,Ei.Z)(ho),[ro]),Qi(To),$n&&$n(!gr,Yo),oi&&oi(To)},[He,ho,se,$n,oi]);return[Ke,mi,ho,Di,Ai,Oo]}function vn(ne,se,He,Ke){var dn=ne.map(function(nn,Tn){return Ee(Tn,Tn,ne,se,He,Ke==null?void 0:Ke[Tn])});return(0,sn.Z)(function(){return dn},[dn],function(nn,Tn){return!(0,fe.Z)(nn,Tn)})}function Wn(ne){var se=(0,Ft.useRef)(ne),He=(0,Ft.useState)({}),Ke=(0,ee.Z)(He,2),dn=Ke[1],nn=(0,Ft.useRef)(null),Tn=(0,Ft.useRef)([]);function On(Bn){Tn.current.push(Bn);var $n=Promise.resolve();nn.current=$n,$n.then(function(){if(nn.current===$n){var oi=Tn.current,ni=se.current;Tn.current=[],oi.forEach(function(Di){se.current=Di(se.current)}),nn.current=null,ni!==se.current&&dn({})}})}return(0,Ft.useEffect)(function(){return function(){nn.current=null}},[]),[se.current,On]}function qn(ne){var se=(0,Ft.useRef)(ne||null),He=(0,Ft.useRef)();function Ke(){window.clearTimeout(He.current)}function dn(Tn){se.current=Tn,Ke(),He.current=window.setTimeout(function(){se.current=null,He.current=void 0},100)}function nn(){return se.current}return(0,Ft.useEffect)(function(){return Ke},[]),[dn,nn]}function We(){var ne=Ft.useState(-1),se=(0,ee.Z)(ne,2),He=se[0],Ke=se[1],dn=Ft.useState(-1),nn=(0,ee.Z)(dn,2),Tn=nn[0],On=nn[1],Bn=Ft.useCallback(function($n,oi){Ke($n),On(oi)},[]);return[He,Tn,Bn]}var fn=St(87746),Ie=(0,fn.Z)()?window:null;function an(ne,se){var He=(0,Ut.Z)(ne)==="object"?ne:{},Ke=He.offsetHeader,dn=Ke===void 0?0:Ke,nn=He.offsetSummary,Tn=nn===void 0?0:nn,On=He.offsetScroll,Bn=On===void 0?0:On,$n=He.getContainer,oi=$n===void 0?function(){return Ie}:$n,ni=oi()||Ie;return Ft.useMemo(function(){var Di=!!ne;return{isSticky:Di,stickyClassName:Di?"".concat(se,"-sticky-holder"):"",offsetHeader:dn,offsetSummary:Tn,offsetScroll:Bn,container:ni}},[Bn,dn,Tn,se,ni])}function _e(ne,se,He){var Ke=(0,Ft.useMemo)(function(){for(var dn=[],nn=[],Tn=0,On=0,Bn=0;Bn<se;Bn+=1)if(He==="rtl"){nn[Bn]=On,On+=ne[Bn]||0;var $n=se-Bn-1;dn[$n]=Tn,Tn+=ne[$n]||0}else{dn[Bn]=Tn,Tn+=ne[Bn]||0;var oi=se-Bn-1;nn[oi]=On,On+=ne[oi]||0}return{left:dn,right:nn}},[ne,se,He]);return Ke}var rn=_e;function pn(ne){var se=ne.className,He=ne.children;return Ft.createElement("div",{className:se},He)}var Cn=pn,kn=St(8178),In=St(21783),wn=function(se,He){var Ke,dn,nn=se.scrollBodyRef,Tn=se.onScroll,On=se.offsetScroll,Bn=se.container,$n=oe(kt,"prefixCls"),oi=((Ke=nn.current)===null||Ke===void 0?void 0:Ke.scrollWidth)||0,ni=((dn=nn.current)===null||dn===void 0?void 0:dn.clientWidth)||0,Di=oi&&ni*(ni/oi),Ai=Ft.useRef(),mi=Wn({scrollLeft:0,isHiddenScrollBar:!1}),io=(0,ee.Z)(mi,2),xi=io[0],to=io[1],Qi=Ft.useRef({delta:0,x:0}),ho=Ft.useState(!1),Oo=(0,ee.Z)(ho,2),Yo=Oo[0],ro=Oo[1],To=function(){ro(!1)},gr=function(So){So.persist(),Qi.current.delta=So.pageX-xi.scrollLeft,Qi.current.x=0,ro(!0),So.preventDefault()},uo=function(So){var Wo,$o=So||((Wo=window)===null||Wo===void 0?void 0:Wo.event),_o=$o.buttons;if(!Yo||_o===0){Yo&&ro(!1);return}var ao=Qi.current.x+So.pageX-Qi.current.x-Qi.current.delta;ao<=0&&(ao=0),ao+Di>=ni&&(ao=ni-Di),Tn({scrollLeft:ao/ni*(oi+2)}),Qi.current.x=So.pageX},Eo=function(){if(nn.current){var So=(0,In.os)(nn.current).top,Wo=So+nn.current.offsetHeight,$o=Bn===window?document.documentElement.scrollTop+window.innerHeight:(0,In.os)(Bn).top+Bn.clientHeight;Wo-(0,Mt.Z)()<=$o||So>=$o-On?to(function(_o){return(0,de.Z)((0,de.Z)({},_o),{},{isHiddenScrollBar:!0})}):to(function(_o){return(0,de.Z)((0,de.Z)({},_o),{},{isHiddenScrollBar:!1})})}},lo=function(So){to(function(Wo){return(0,de.Z)((0,de.Z)({},Wo),{},{scrollLeft:So/oi*ni||0})})};return Ft.useImperativeHandle(He,function(){return{setScrollLeft:lo}}),Ft.useEffect(function(){var Gi=(0,kn.Z)(document.body,"mouseup",To,!1),So=(0,kn.Z)(document.body,"mousemove",uo,!1);return Eo(),function(){Gi.remove(),So.remove()}},[Di,Yo]),Ft.useEffect(function(){var Gi=(0,kn.Z)(Bn,"scroll",Eo,!1),So=(0,kn.Z)(window,"resize",Eo,!1);return function(){Gi.remove(),So.remove()}},[Bn]),Ft.useEffect(function(){xi.isHiddenScrollBar||to(function(Gi){var So=nn.current;return So?(0,de.Z)((0,de.Z)({},Gi),{},{scrollLeft:So.scrollLeft/So.scrollWidth*So.clientWidth}):Gi})},[xi.isHiddenScrollBar]),oi<=ni||!Di||xi.isHiddenScrollBar?null:Ft.createElement("div",{style:{height:(0,Mt.Z)(),width:ni,bottom:On},className:"".concat($n,"-sticky-scroll")},Ft.createElement("div",{onMouseDown:gr,ref:Ai,className:me()("".concat($n,"-sticky-scroll-bar"),(0,Gt.Z)({},"".concat($n,"-sticky-scroll-bar-active"),Yo)),style:{width:"".concat(Di,"px"),transform:"translate3d(".concat(xi.scrollLeft,"px, 0, 0)")}}))},Kn=Ft.forwardRef(wn);function Ci(ne){return null}var Wi=Ci;function Li(ne){return null}var Be=Li,ei="rc-table",Si=[],ci={};function Hi(){return"No Data"}function Ni(ne){var se,He=(0,de.Z)({rowKey:"key",prefixCls:ei,emptyText:Hi},ne),Ke=He.prefixCls,dn=He.className,nn=He.rowClassName,Tn=He.style,On=He.data,Bn=He.rowKey,$n=He.scroll,oi=He.tableLayout,ni=He.direction,Di=He.title,Ai=He.footer,mi=He.summary,io=He.caption,xi=He.id,to=He.showHeader,Qi=He.components,ho=He.emptyText,Oo=He.onRow,Yo=He.onHeaderRow,ro=He.internalHooks,To=He.transformColumns,gr=He.internalRefs,uo=He.tailor,Eo=He.sticky,lo=On||Si,Gi=!!lo.length,So=ro===It,Wo=Ft.useCallback(function(na,Fa){return(0,qe.Z)(Qi,na)||Fa},[Qi]),$o=Ft.useMemo(function(){return typeof Bn=="function"?Bn:function(na){var Fa=na&&na[Bn];return Fa}},[Bn]),_o=Wo(["body"]),ao=We(),mr=(0,ee.Z)(ao,3),Pr=mr[0],_r=mr[1],Or=mr[2],Da=xe(He,lo,$o),Ma=(0,ee.Z)(Da,6),Sr=Ma[0],Vo=Ma[1],Vr=Ma[2],Na=Ma[3],Sa=Ma[4],rs=Ma[5],tr=$n==null?void 0:$n.x,Jo=Ft.useState(0),er=(0,ee.Z)(Jo,2),Io=er[0],Xr=er[1],Ro=on((0,de.Z)((0,de.Z)((0,de.Z)({},He),Sr),{},{expandable:!!Sr.expandedRowRender,columnTitle:Sr.columnTitle,expandedKeys:Vr,getRowKey:$o,onTriggerExpand:rs,expandIcon:Na,expandIconColumnIndex:Sr.expandIconColumnIndex,direction:ni,scrollWidth:So&&uo&&typeof tr=="number"?tr:null}),So?To:null),pr=(0,ee.Z)(Ro,3),jr=pr[0],Wr=pr[1],Ps=pr[2],us=Ps!=null?Ps:tr,Gs=Ft.useMemo(function(){return{columns:jr,flattenColumns:Wr}},[jr,Wr]),ta=Ft.useRef(),Cs=Ft.useRef(),ns=Ft.useRef(),ps=Ft.useRef(),Ku=Ft.useRef(),ea=Ft.useState(!1),aa=(0,ee.Z)(ea,2),ca=aa[0],Qa=aa[1],ms=Ft.useState(!1),Dr=(0,ee.Z)(ms,2),pa=Dr[0],vs=Dr[1],gl=Wn(new Map),Wl=(0,ee.Z)(gl,2),El=Wl[0],_l=Wl[1],tu=Ce(Wr),Hl=tu.map(function(na){return El.get(na)}),oa=Ft.useMemo(function(){return Hl},[Hl.join("_")]),Ls=rn(oa,Wr.length,ni),Za=$n&&bn($n.y),ma=$n&&bn(us)||!!Sr.fixed,Gl=ma&&Wr.some(function(na){var Fa=na.fixed;return Fa}),oh=Ft.useRef(),eu=an(Eo,Ke),Lu=eu.isSticky,Vu=eu.offsetHeader,Ll=eu.offsetSummary,Jr=eu.offsetScroll,xa=eu.stickyClassName,hs=eu.container,wa=Ft.useMemo(function(){return mi==null?void 0:mi(lo)},[mi,lo]),Kr=(Za||Lu)&&Ft.isValidElement(wa)&&wa.type===Kt&&wa.props.fixed,ys,pl,gu;Za&&(pl={overflowY:"scroll",maxHeight:$n.y}),ma&&(ys={overflowX:"auto"},Za||(pl={overflowY:"hidden"}),gu={width:us===!0?"auto":us,minWidth:"100%"});var uf=Ft.useCallback(function(na,Fa){(0,xt.Z)(ta.current)&&_l(function(Ns){if(Ns.get(na)!==Fa){var nu=new Map(Ns);return nu.set(na,Fa),nu}return Ns})},[]),Xe=qn(null),Ph=(0,ee.Z)(Xe,2),Uu=Ph[0],hf=Ph[1];function gd(na,Fa){Fa&&(typeof Fa=="function"?Fa(na):Fa.scrollLeft!==na&&(Fa.scrollLeft=na,Fa.scrollLeft!==na&&setTimeout(function(){Fa.scrollLeft=na},0)))}var Jh=(0,Ne.Z)(function(na){var Fa=na.currentTarget,Ns=na.scrollLeft,nu=ni==="rtl",iu=typeof Ns=="number"?Ns:Fa.scrollLeft,Tc=Fa||ci;if(!hf()||hf()===Tc){var Eh;Uu(Tc),gd(iu,Cs.current),gd(iu,ns.current),gd(iu,Ku.current),gd(iu,(Eh=oh.current)===null||Eh===void 0?void 0:Eh.setScrollLeft)}var Yd=Fa||Cs.current;if(Yd){var pu=Yd.scrollWidth,rh=Yd.clientWidth;if(pu===rh){Qa(!1),vs(!1);return}nu?(Qa(-iu<pu-rh),vs(-iu>0)):(Qa(iu>0),vs(iu<pu-rh))}}),Lc=function(){ma&&ns.current?Jh({currentTarget:ns.current}):(Qa(!1),vs(!1))},Vg=function(Fa){var Ns=Fa.width;Ns!==Io&&(Lc(),Xr(ta.current?ta.current.offsetWidth:Ns))},As=Ft.useRef(!1);Ft.useEffect(function(){As.current&&Lc()},[ma,On,jr.length]),Ft.useEffect(function(){As.current=!0},[]);var Vd=Ft.useState(0),Ac=(0,ee.Z)(Vd,2),Ud=Ac[0],df=Ac[1],Yf=Ft.useState(!0),cf=(0,ee.Z)(Yf,2),Mc=cf[0],Zl=cf[1];Ft.useEffect(function(){(!uo||!So)&&(ns.current instanceof Element?df((0,Mt.o)(ns.current).width):df((0,Mt.o)(ps.current).width)),Zl((0,mt.G)("position","sticky"))},[]),Ft.useEffect(function(){So&&gr&&(gr.body.current=ns.current)});var pd=Ft.useCallback(function(na){return Ft.createElement(Ft.Fragment,null,Ft.createElement(Pi,na),Kr==="top"&&Ft.createElement(ke,na,wa))},[Kr,wa]),ff=Ft.useCallback(function(na){return Ft.createElement(ke,na,wa)},[wa]),Au=Wo(["table"],"table"),Ch=Ft.useMemo(function(){return oi||(Gl?us==="max-content"?"auto":"fixed":Za||Lu||Wr.some(function(na){var Fa=na.ellipsis;return Fa})?"fixed":"auto")},[Za,Gl,Wr,oi,Lu]),md,Qh={colWidths:oa,columCount:Wr.length,stickyOffsets:Ls,onHeaderRow:Yo,fixHeader:Za,scroll:$n},ml=Ft.useMemo(function(){return Gi?null:typeof ho=="function"?ho():ho},[Gi,ho]),Fc=Ft.createElement(ri,{data:lo,measureColumnWidth:Za||ma||Lu}),kc=Ft.createElement(wo,{colWidths:Wr.map(function(na){var Fa=na.width;return Fa}),columns:Wr}),Kl=io!=null?Ft.createElement("caption",{className:"".concat(Ke,"-caption")},io):void 0,vd=(0,Rt.Z)(He,{data:!0}),Bc=(0,Rt.Z)(He,{aria:!0});if(Za||Lu){var Dc;typeof _o=="function"?(Dc=_o(lo,{scrollbarSize:Ud,ref:ns,onScroll:Jh}),Qh.colWidths=Wr.map(function(na,Fa){var Ns=na.width,nu=Fa===Wr.length-1?Ns-Ud:Ns;return typeof nu=="number"&&!Number.isNaN(nu)?nu:0})):Dc=Ft.createElement("div",{style:(0,de.Z)((0,de.Z)({},ys),pl),onScroll:Jh,ref:ns,className:me()("".concat(Ke,"-body"))},Ft.createElement(Au,(0,ve.Z)({style:(0,de.Z)((0,de.Z)({},gu),{},{tableLayout:Ch})},Bc),Kl,kc,Fc,!Kr&&wa&&Ft.createElement(ke,{stickyOffsets:Ls,flattenColumns:Wr,columns:jr},wa)));var bh=(0,de.Z)((0,de.Z)((0,de.Z)({noData:!lo.length,maxContentScroll:ma&&us==="max-content"},Qh),Gs),{},{direction:ni,stickyClassName:xa,onScroll:Jh});md=Ft.createElement(Ft.Fragment,null,to!==!1&&Ft.createElement(Mo,(0,ve.Z)({},bh,{stickyTopOffset:Vu,className:"".concat(Ke,"-header"),ref:Cs}),pd),Dc,Kr&&Kr!=="top"&&Ft.createElement(Mo,(0,ve.Z)({},bh,{stickyBottomOffset:Ll,className:"".concat(Ke,"-summary"),ref:Ku}),ff),Lu&&Ft.createElement(Kn,{ref:oh,offsetScroll:Jr,scrollBodyRef:ns,onScroll:Jh,container:hs}))}else md=Ft.createElement("div",{style:(0,de.Z)((0,de.Z)({},ys),pl),className:me()("".concat(Ke,"-content")),onScroll:Jh,ref:ns},Ft.createElement(Au,(0,ve.Z)({style:(0,de.Z)((0,de.Z)({},gu),{},{tableLayout:Ch})},Bc),Kl,kc,to!==!1&&Ft.createElement(Pi,(0,ve.Z)({},Qh,Gs)),Fc,wa&&Ft.createElement(ke,{stickyOffsets:Ls,flattenColumns:Wr,columns:jr},wa)));var rl=Ft.createElement("div",(0,ve.Z)({className:me()(Ke,dn,(se={},(0,Gt.Z)(se,"".concat(Ke,"-rtl"),ni==="rtl"),(0,Gt.Z)(se,"".concat(Ke,"-ping-left"),ca),(0,Gt.Z)(se,"".concat(Ke,"-ping-right"),pa),(0,Gt.Z)(se,"".concat(Ke,"-layout-fixed"),oi==="fixed"),(0,Gt.Z)(se,"".concat(Ke,"-fixed-header"),Za),(0,Gt.Z)(se,"".concat(Ke,"-fixed-column"),Gl),(0,Gt.Z)(se,"".concat(Ke,"-scroll-horizontal"),ma),(0,Gt.Z)(se,"".concat(Ke,"-has-fix-left"),Wr[0]&&Wr[0].fixed),(0,Gt.Z)(se,"".concat(Ke,"-has-fix-right"),Wr[Wr.length-1]&&Wr[Wr.length-1].fixed==="right"),se)),style:Tn,id:xi,ref:ta},vd),Di&&Ft.createElement(Cn,{className:"".concat(Ke,"-title")},Di(lo)),Ft.createElement("div",{ref:ps,className:"".concat(Ke,"-container")},md),Ai&&Ft.createElement(Cn,{className:"".concat(Ke,"-footer")},Ai(lo)));ma&&(rl=Ft.createElement(Dt.Z,{onResize:Vg},rl));var Nc=vn(Wr,Ls,ni,jr),ds=Ft.useMemo(function(){return{scrollX:us,prefixCls:Ke,getComponent:Wo,scrollbarSize:Ud,direction:ni,fixedInfoList:Nc,isSticky:Lu,supportSticky:Mc,componentWidth:Io,fixHeader:Za,fixColumn:Gl,horizonScroll:ma,tableLayout:Ch,rowClassName:nn,expandedRowClassName:Sr.expandedRowClassName,expandIcon:Na,expandableType:Vo,expandRowByClick:Sr.expandRowByClick,expandedRowRender:Sr.expandedRowRender,onTriggerExpand:rs,expandIconColumnIndex:Sr.expandIconColumnIndex,indentSize:Sr.indentSize,allColumnsFixedLeft:Wr.every(function(na){return na.fixed==="left"}),emptyNode:ml,columns:jr,flattenColumns:Wr,onColumnResize:uf,hoverStartRow:Pr,hoverEndRow:_r,onHover:Or,rowExpandable:Sr.rowExpandable,onRow:Oo,getRowKey:$o,expandedKeys:Vr,childrenColumnName:Sa}},[us,Ke,Wo,Ud,ni,Nc,Lu,Mc,Io,Za,Gl,ma,Ch,nn,Sr.expandedRowClassName,Na,Vo,Sr.expandRowByClick,Sr.expandedRowRender,rs,Sr.expandIconColumnIndex,Sr.indentSize,ml,jr,Wr,uf,Pr,_r,Or,Sr.rowExpandable,Oo,$o,Vr,Sa]);return Ft.createElement(kt.Provider,{value:ds},rl)}function Ui(ne){return gt(Ni,ne)}var Ii=Ui();Ii.EXPAND_COLUMN=Ct,Ii.INTERNAL_HOOKS=It,Ii.Column=Wi,Ii.ColumnGroup=Be,Ii.Summary=te;var bi=Ii,eo=St(21881),xn=we(null),Fo=we(null);function Ln(ne,se,He){var Ke=se||1;return He[ne+Ke]-(He[ne]||0)}function po(ne){var se=ne.rowInfo,He=ne.column,Ke=ne.colIndex,dn=ne.indent,nn=ne.index,Tn=ne.renderIndex,On=ne.record,Bn=ne.style,$n=ne.className,oi=ne.inverse,ni=ne.getHeight,Di=He.render,Ai=He.dataIndex,mi=He.className,io=He.width,xi=oe(Fo,["columnsOffset"]),to=xi.columnsOffset,Qi=Ge(se,He,Ke,dn,nn),ho=Qi.key,Oo=Qi.fixedInfo,Yo=Qi.appendCellNode,ro=Qi.additionalCellProps,To=ro.style,gr=ro.colSpan,uo=gr===void 0?1:gr,Eo=ro.rowSpan,lo=Eo===void 0?1:Eo,Gi=Ke-1,So=Ln(Gi,uo,to),Wo=uo>1?io-So:0,$o=(0,de.Z)((0,de.Z)((0,de.Z)({},To),Bn),{},{flex:"0 0 ".concat(So,"px"),width:"".concat(So,"px"),marginRight:Wo,pointerEvents:"auto"}),_o=Ft.useMemo(function(){return oi?lo<=1:uo===0||lo===0||lo>1},[lo,uo,oi]);_o?$o.visibility="hidden":oi&&($o.height=ni==null?void 0:ni(lo));var ao=_o?function(){return null}:Di,mr={};return(lo===0||uo===0)&&(mr.rowSpan=1,mr.colSpan=1),Ft.createElement(Gn,(0,ve.Z)({className:me()(mi,$n),ellipsis:He.ellipsis,align:He.align,scope:He.rowScope,component:"div",prefixCls:se.prefixCls,key:ho,record:On,index:nn,renderIndex:Tn,dataIndex:Ai,render:ao,shouldCellUpdate:He.shouldCellUpdate},Oo,{appendNode:Yo,additionalProps:(0,de.Z)((0,de.Z)({},ro),{},{style:$o},mr)}))}var Go=po,Yi=["data","index","className","rowKey","style","extra","getHeight"],nr=Ft.forwardRef(function(ne,se){var He=ne.data,Ke=ne.index,dn=ne.className,nn=ne.rowKey,Tn=ne.style,On=ne.extra,Bn=ne.getHeight,$n=(0,ln.Z)(ne,Yi),oi=He.record,ni=He.indent,Di=He.index,Ai=oe(kt,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),mi=Ai.scrollX,io=Ai.flattenColumns,xi=Ai.prefixCls,to=Ai.fixColumn,Qi=Ai.componentWidth,ho=le(oi,nn,Ke,ni),Oo=ho.rowSupportExpand,Yo=ho.expanded,ro=ho.rowProps,To=ho.expandedRowRender,gr=ho.expandedRowClassName,uo;if(Oo&&Yo){var Eo=To(oi,Ke,ni+1,Yo),lo=gr==null?void 0:gr(oi,Ke,ni),Gi={};to&&(Gi={style:(0,Gt.Z)({},"--virtual-width","".concat(Qi,"px"))});var So="".concat(xi,"-expanded-row-cell");uo=Ft.createElement("div",{className:me()("".concat(xi,"-expanded-row"),"".concat(xi,"-expanded-row-level-").concat(ni+1),lo)},Ft.createElement(Gn,{component:"div",prefixCls:xi,className:me()(So,(0,Gt.Z)({},"".concat(So,"-fixed"),to)),additionalProps:Gi},Eo))}var Wo=(0,de.Z)((0,de.Z)({},Tn),{},{width:mi});On&&(Wo.position="absolute",Wo.pointerEvents="none");var $o=Ft.createElement("div",(0,ve.Z)({},ro,$n,{ref:Oo?null:se,className:me()(dn,"".concat(xi,"-row"),ro==null?void 0:ro.className,(0,Gt.Z)({},"".concat(xi,"-row-extra"),On)),style:(0,de.Z)((0,de.Z)({},Wo),ro==null?void 0:ro.style)}),io.map(function(_o,ao){return Ft.createElement(Go,{key:ao,rowInfo:ho,column:_o,colIndex:ao,indent:ni,index:Ke,renderIndex:Di,record:oi,inverse:On,getHeight:Bn})}));return Oo?Ft.createElement("div",{ref:se},$o,uo):$o}),Bo=vt(nr),Ti=Bo,Oi=Ft.forwardRef(function(ne,se){var He=ne.data,Ke=ne.onScroll,dn=oe(kt,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),nn=dn.flattenColumns,Tn=dn.onColumnResize,On=dn.getRowKey,Bn=dn.expandedKeys,$n=dn.prefixCls,oi=dn.childrenColumnName,ni=dn.emptyNode,Di=dn.scrollX,Ai=oe(xn),mi=Ai.scrollY,io=Ai.listItemHeight,xi=Ft.useRef(),to=re(He,oi,Bn,On),Qi=Ft.useMemo(function(){var uo=0;return nn.map(function(Eo){var lo=Eo.width,Gi=Eo.key;return uo+=lo,[Gi,lo,uo]})},[nn]),ho=Ft.useMemo(function(){return Qi.map(function(uo){return uo[2]})},[Qi]);Ft.useEffect(function(){Qi.forEach(function(uo){var Eo=(0,ee.Z)(uo,2),lo=Eo[0],Gi=Eo[1];Tn(lo,Gi)})},[Qi]),Ft.useImperativeHandle(se,function(){var uo={};return Object.defineProperty(uo,"scrollLeft",{get:function(){var lo;return((lo=xi.current)===null||lo===void 0?void 0:lo.getScrollInfo().x)||0},set:function(lo){var Gi;(Gi=xi.current)===null||Gi===void 0||Gi.scrollTo({left:lo})}}),uo});var Oo=function(Eo,lo){var Gi,So=(Gi=to[lo])===null||Gi===void 0?void 0:Gi.record,Wo=Eo.onCell;if(Wo){var $o,_o=Wo(So,lo);return($o=_o==null?void 0:_o.rowSpan)!==null&&$o!==void 0?$o:1}return 1},Yo=function(Eo){var lo=Eo.start,Gi=Eo.end,So=Eo.getSize,Wo=Eo.offsetY;if(Gi<0)return null;for(var $o=nn.filter(function(tr){return Oo(tr,lo)===0}),_o=lo,ao=function(Jo){if($o=$o.filter(function(er){return Oo(er,Jo)===0}),!$o.length)return _o=Jo,"break"},mr=lo;mr>=0;mr-=1){var Pr=ao(mr);if(Pr==="break")break}for(var _r=nn.filter(function(tr){return Oo(tr,Gi)!==1}),Or=Gi,Da=function(Jo){if(_r=_r.filter(function(er){return Oo(er,Jo)!==1}),!_r.length)return Or=Math.max(Jo-1,Gi),"break"},Ma=Gi;Ma<to.length;Ma+=1){var Sr=Da(Ma);if(Sr==="break")break}for(var Vo=[],Vr=function(Jo){var er=to[Jo];if(!er)return"continue";nn.some(function(Io){return Oo(Io,Jo)>1})&&Vo.push(Jo)},Na=_o;Na<=Or;Na+=1)var Sa=Vr(Na);var rs=Vo.map(function(tr){var Jo=to[tr],er=On(Jo.record,tr),Io=function(pr){var jr=tr+pr-1,Wr=On(to[jr].record,jr),Ps=So(er,Wr);return Ps.bottom-Ps.top},Xr=So(er);return Ft.createElement(Ti,{key:tr,data:Jo,rowKey:er,index:tr,style:{top:-Wo+Xr.top},extra:!0,getHeight:Io})});return rs},ro=Ft.useMemo(function(){return{columnsOffset:ho}},[ho]),To="".concat($n,"-tbody"),gr;return to.length?gr=Ft.createElement(eo.Z,{fullHeight:!1,ref:xi,className:me()(To,"".concat(To,"-virtual")),height:mi,itemHeight:io||24,data:to,itemKey:function(Eo){return On(Eo.record)},scrollWidth:Di,onVirtualScroll:function(Eo){var lo=Eo.x;Ke({scrollLeft:lo})},extraRender:Yo},function(uo,Eo,lo){var Gi=On(uo.record,Eo);return Ft.createElement(Ti,(0,ve.Z)({data:uo,rowKey:Gi,index:Eo},lo))}):gr=Ft.createElement("div",{className:me()("".concat($n,"-placeholder"))},Ft.createElement(Gn,{component:"div",prefixCls:$n},ni)),Ft.createElement(Fo.Provider,{value:ro},gr)}),bo=vt(Oi),Do=bo,si=function(se,He){var Ke=He.ref,dn=He.onScroll;return Ft.createElement(Do,{ref:Ke,data:se,onScroll:dn})},Zt=100;function Co(ne){var se=ne.columns,He=ne.scroll,Ke=ne.prefixCls,dn=Ke===void 0?ei:Ke,nn=ne.className,Tn=ne.listItemHeight,On=He||{},Bn=On.x,$n=On.y;typeof Bn!="number"&&(Bn=((se||[]).length+1)*Zt),typeof $n!="number"&&($n=500);var oi=Ft.useMemo(function(){return{scrollY:$n,listItemHeight:Tn}},[$n,Tn]);return Ft.createElement(xn.Provider,{value:oi},Ft.createElement(bi,(0,ve.Z)({},ne,{className:me()(nn,"".concat(dn,"-virtual")),scroll:(0,de.Z)((0,de.Z)({},He),{},{x:Bn}),components:{body:si},columns:se,internalHooks:It,tailor:!0})))}function xr(ne){return gt(Co,ne)}var yo=xr(),yr=null;function _i(ne){return null}var Ji=_i;function Zo(ne){return null}var rr=Zo,Ao=St(64002),kr=St(68031),Ki=St(36355),zi=St(93891),co=St(19716),Yn=St(8628),ar=St(31724),wr=St(25700),ia=St(71418),sr=St(88088);function ir(ne){return function(He){let{prefixCls:Ke,onExpand:dn,record:nn,expanded:Tn,expandable:On}=He;const Bn=`${Ke}-row-expand-icon`;return Ft.createElement("button",{type:"button",onClick:$n=>{dn(nn,$n),$n.stopPropagation()},className:me()(Bn,{[`${Bn}-spaced`]:!On,[`${Bn}-expanded`]:On&&Tn,[`${Bn}-collapsed`]:On&&!Tn}),"aria-label":Tn?ne.collapse:ne.expand,"aria-expanded":Tn})}}var Fr=ir;function Qr(ne,se){return"key"in ne&&ne.key!==void 0&&ne.key!==null?ne.key:ne.dataIndex?Array.isArray(ne.dataIndex)?ne.dataIndex.join("."):ne.dataIndex:se}function $r(ne,se){return se?`${se}-${ne}`:`${ne}`}function qa(ne,se){return typeof ne=="function"?ne(se):ne}function Ea(ne,se){const He=qa(ne,se);return Object.prototype.toString.call(He)==="[object Object]"?"":He}var gn={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"},La=gn,tl=St(88853),js=function(se,He){return Ft.createElement(tl.Z,(0,ve.Z)({},se,{ref:He,icon:La}))},Qo=Ft.forwardRef(js),Tr=Qo,ha=St(56762);function Cr(ne){const se=Ft.useRef(ne),He=(0,ha.Z)();return[()=>se.current,Ke=>{se.current=Ke,He()}]}var or=St(3113),Br=St(24905),Ua=St(38854),No=St(64165),dr=St(20834),ur=St(40875),Bi=St(5112),za=St(86914),ja=St(21970),bs=St(92832);function Tl(ne){let{value:se,onChange:He,filterSearch:Ke,tablePrefixCls:dn,locale:nn}=ne;return Ke?Ft.createElement("div",{className:`${dn}-filter-dropdown-search`},Ft.createElement(bs.default,{prefix:Ft.createElement(ja.Z,null),placeholder:nn.filterSearchPlaceholder,onChange:He,value:se,htmlSize:1,className:`${dn}-filter-dropdown-search-input`})):null}var $l=Tl,yi=St(85108);const la=ne=>{const{keyCode:se}=ne;se===yi.Z.ENTER&&ne.stopPropagation()};var Cl=Ft.forwardRef((ne,se)=>Ft.createElement("div",{className:ne.className,onClick:He=>He.stopPropagation(),onKeyDown:la,ref:se},ne.children));function Ol(ne){let se=[];return(ne||[]).forEach(He=>{let{value:Ke,children:dn}=He;se.push(Ke),dn&&(se=[].concat((0,Ei.Z)(se),(0,Ei.Z)(Ol(dn))))}),se}function Il(ne){return ne.some(se=>{let{children:He}=se;return He})}function jo(ne,se){return typeof se=="string"||typeof se=="number"?se==null?void 0:se.toString().toLowerCase().includes(ne.trim().toLowerCase()):!1}function ph(ne){let{filters:se,prefixCls:He,filteredKeys:Ke,filterMultiple:dn,searchValue:nn,filterSearch:Tn}=ne;return se.map((On,Bn)=>{const $n=String(On.value);if(On.children)return{key:$n||Bn,label:On.text,popupClassName:`${He}-dropdown-submenu`,children:ph({filters:On.children,prefixCls:He,filteredKeys:Ke,filterMultiple:dn,searchValue:nn,filterSearch:Tn})};const oi=dn?Br.default:Bi.ZP,ni={key:On.value!==void 0?$n:Bn,label:Ft.createElement(Ft.Fragment,null,Ft.createElement(oi,{checked:Ke.includes($n)}),Ft.createElement("span",null,On.text))};return nn.trim()?typeof Tn=="function"?Tn(nn,On)?ni:null:jo(nn,On.text)?ni:null:ni})}function el(ne){var se,He;const{tablePrefixCls:Ke,prefixCls:dn,column:nn,dropdownPrefixCls:Tn,columnKey:On,filterMultiple:Bn,filterMode:$n="menu",filterSearch:oi=!1,filterState:ni,triggerFilter:Di,locale:Ai,children:mi,getPopupContainer:io}=ne,{filterDropdownOpen:xi,onFilterDropdownOpenChange:to,filterResetToDefaultFilteredValue:Qi,defaultFilteredValue:ho,filterDropdownVisible:Oo,onFilterDropdownVisibleChange:Yo}=nn,[ro,To]=Ft.useState(!1),gr=!!(ni&&(!((se=ni.filteredKeys)===null||se===void 0)&&se.length||ni.forceFiltered)),uo=Ro=>{To(Ro),to==null||to(Ro),Yo==null||Yo(Ro)},Eo=(He=xi!=null?xi:Oo)!==null&&He!==void 0?He:ro,lo=ni==null?void 0:ni.filteredKeys,[Gi,So]=Cr(lo||[]),Wo=Ro=>{let{selectedKeys:pr}=Ro;So(pr)},$o=(Ro,pr)=>{let{node:jr,checked:Wr}=pr;Wo(Bn?{selectedKeys:Ro}:{selectedKeys:Wr&&jr.key?[jr.key]:[]})};Ft.useEffect(()=>{ro&&Wo({selectedKeys:lo||[]})},[lo]);const[_o,ao]=Ft.useState([]),mr=Ro=>{ao(Ro)},[Pr,_r]=Ft.useState(""),Or=Ro=>{const{value:pr}=Ro.target;_r(pr)};Ft.useEffect(()=>{ro||_r("")},[ro]);const Da=Ro=>{const pr=Ro&&Ro.length?Ro:null;if(pr===null&&(!ni||!ni.filteredKeys)||(0,fe.Z)(pr,ni==null?void 0:ni.filteredKeys,!0))return null;Di({column:nn,key:On,filteredKeys:pr})},Ma=()=>{uo(!1),Da(Gi())},Sr=function(){let{confirm:Ro,closeDropdown:pr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ro&&Da([]),pr&&uo(!1),_r(""),So(Qi?(ho||[]).map(jr=>String(jr)):[])},Vo=function(){let{closeDropdown:Ro}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ro&&uo(!1),Da(Gi())},Vr=Ro=>{Ro&&lo!==void 0&&So(lo||[]),uo(Ro),!Ro&&!nn.filterDropdown&&Ma()},Na=me()({[`${Tn}-menu-without-submenu`]:!Il(nn.filters||[])}),Sa=Ro=>{if(Ro.target.checked){const pr=Ol(nn==null?void 0:nn.filters).map(jr=>String(jr));So(pr)}else So([])},rs=Ro=>{let{filters:pr}=Ro;return(pr||[]).map((jr,Wr)=>{const Ps=String(jr.value),us={title:jr.text,key:jr.value!==void 0?Ps:Wr};return jr.children&&(us.children=rs({filters:jr.children})),us})},tr=Ro=>{var pr;return Object.assign(Object.assign({},Ro),{text:Ro.title,value:Ro.key,children:((pr=Ro.children)===null||pr===void 0?void 0:pr.map(jr=>tr(jr)))||[]})};let Jo;if(typeof nn.filterDropdown=="function")Jo=nn.filterDropdown({prefixCls:`${Tn}-custom`,setSelectedKeys:Ro=>Wo({selectedKeys:Ro}),selectedKeys:Gi(),confirm:Vo,clearFilters:Sr,filters:nn.filters,visible:Eo,close:()=>{uo(!1)}});else if(nn.filterDropdown)Jo=nn.filterDropdown;else{const Ro=Gi()||[],pr=()=>(nn.filters||[]).length===0?Ft.createElement(No.Z,{image:No.Z.PRESENTED_IMAGE_SIMPLE,description:Ai.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):$n==="tree"?Ft.createElement(Ft.Fragment,null,Ft.createElement($l,{filterSearch:oi,value:Pr,onChange:Or,tablePrefixCls:Ke,locale:Ai}),Ft.createElement("div",{className:`${Ke}-filter-dropdown-tree`},Bn?Ft.createElement(Br.default,{checked:Ro.length===Ol(nn.filters).length,indeterminate:Ro.length>0&&Ro.length<Ol(nn.filters).length,className:`${Ke}-filter-dropdown-checkall`,onChange:Sa},Ai.filterCheckall):null,Ft.createElement(za.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Bn,checkStrictly:!Bn,className:`${Tn}-menu`,onCheck:$o,checkedKeys:Ro,selectedKeys:Ro,showIcon:!1,treeData:rs({filters:nn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Pr.trim()?Wr=>typeof oi=="function"?oi(Pr,tr(Wr)):jo(Pr,Wr.title):void 0}))):Ft.createElement(Ft.Fragment,null,Ft.createElement($l,{filterSearch:oi,value:Pr,onChange:Or,tablePrefixCls:Ke,locale:Ai}),Ft.createElement(dr.default,{selectable:!0,multiple:Bn,prefixCls:`${Tn}-menu`,className:Na,onSelect:Wo,onDeselect:Wo,selectedKeys:Ro,getPopupContainer:io,openKeys:_o,onOpenChange:mr,items:ph({filters:nn.filters||[],filterSearch:oi,prefixCls:dn,filteredKeys:Gi(),filterMultiple:Bn,searchValue:Pr})})),jr=()=>Qi?(0,fe.Z)((ho||[]).map(Wr=>String(Wr)),Ro,!0):Ro.length===0;Jo=Ft.createElement(Ft.Fragment,null,pr(),Ft.createElement("div",{className:`${dn}-dropdown-btns`},Ft.createElement(or.ZP,{type:"link",size:"small",disabled:jr(),onClick:()=>Sr()},Ai.filterReset),Ft.createElement(or.ZP,{type:"primary",size:"small",onClick:Ma},Ai.filterConfirm)))}nn.filterDropdown&&(Jo=Ft.createElement(ur.J,{selectable:void 0},Jo));const er=()=>Ft.createElement(Cl,{className:`${dn}-dropdown`},Jo);let Io;typeof nn.filterIcon=="function"?Io=nn.filterIcon(gr):nn.filterIcon?Io=nn.filterIcon:Io=Ft.createElement(Tr,null);const{direction:Xr}=Ft.useContext(Ki.E_);return Ft.createElement("div",{className:`${dn}-column`},Ft.createElement("span",{className:`${Ke}-column-title`},mi),Ft.createElement(Ua.Z,{dropdownRender:er,trigger:["click"],open:Eo,onOpenChange:Vr,getPopupContainer:io,placement:Xr==="rtl"?"bottomLeft":"bottomRight"},Ft.createElement("span",{role:"button",tabIndex:-1,className:me()(`${dn}-trigger`,{active:gr}),onClick:Ro=>{Ro.stopPropagation()}},Io)))}var nl=el;function Ds(ne,se,He){let Ke=[];return(ne||[]).forEach((dn,nn)=>{var Tn;const On=$r(nn,He);if(dn.filters||"filterDropdown"in dn||"onFilter"in dn)if("filteredValue"in dn){let Bn=dn.filteredValue;"filterDropdown"in dn||(Bn=(Tn=Bn==null?void 0:Bn.map(String))!==null&&Tn!==void 0?Tn:Bn),Ke.push({column:dn,key:Qr(dn,On),filteredKeys:Bn,forceFiltered:dn.filtered})}else Ke.push({column:dn,key:Qr(dn,On),filteredKeys:se&&dn.defaultFilteredValue?dn.defaultFilteredValue:void 0,forceFiltered:dn.filtered});"children"in dn&&(Ke=[].concat((0,Ei.Z)(Ke),(0,Ei.Z)(Ds(dn.children,se,On))))}),Ke}function bu(ne,se,He,Ke,dn,nn,Tn,On){return He.map((Bn,$n)=>{const oi=$r($n,On),{filterMultiple:ni=!0,filterMode:Di,filterSearch:Ai}=Bn;let mi=Bn;if(mi.filters||mi.filterDropdown){const io=Qr(mi,oi),xi=Ke.find(to=>{let{key:Qi}=to;return io===Qi});mi=Object.assign(Object.assign({},mi),{title:to=>Ft.createElement(nl,{tablePrefixCls:ne,prefixCls:`${ne}-filter`,dropdownPrefixCls:se,column:mi,columnKey:io,filterState:xi,filterMultiple:ni,filterMode:Di,filterSearch:Ai,triggerFilter:nn,locale:dn,getPopupContainer:Tn},qa(Bn.title,to))})}return"children"in mi&&(mi=Object.assign(Object.assign({},mi),{children:bu(ne,se,mi.children,Ke,dn,nn,Tn,oi)})),mi})}function Ru(ne){const se={};return ne.forEach(He=>{let{key:Ke,filteredKeys:dn,column:nn}=He;const{filters:Tn,filterDropdown:On}=nn;if(On)se[Ke]=dn||null;else if(Array.isArray(dn)){const Bn=Ol(Tn);se[Ke]=Bn.filter($n=>dn.includes(String($n)))}else se[Ke]=null}),se}function Ws(ne,se){return se.reduce((He,Ke)=>{const{column:{onFilter:dn,filters:nn},filteredKeys:Tn}=Ke;return dn&&Tn&&Tn.length?He.filter(On=>Tn.some(Bn=>{const $n=Ol(nn),oi=$n.findIndex(Di=>String(Di)===String(Bn)),ni=oi!==-1?$n[oi]:Bn;return dn(ni,On)})):He},ne)}const cl=ne=>ne.flatMap(se=>"children"in se?[se].concat((0,Ei.Z)(cl(se.children||[]))):[se]);function Wh(ne){let{prefixCls:se,dropdownPrefixCls:He,mergedColumns:Ke,onFilterChange:dn,getPopupContainer:nn,locale:Tn}=ne;const On=Ft.useMemo(()=>cl(Ke||[]),[Ke]),[Bn,$n]=Ft.useState(()=>Ds(On,!0)),oi=Ft.useMemo(()=>{const mi=Ds(On,!1);if(mi.length===0)return mi;let io=!0,xi=!0;if(mi.forEach(to=>{let{filteredKeys:Qi}=to;Qi!==void 0?io=!1:xi=!1}),io){const to=(On||[]).map((Qi,ho)=>Qr(Qi,$r(ho)));return Bn.filter(Qi=>{let{key:ho}=Qi;return to.includes(ho)}).map(Qi=>{const ho=On[to.findIndex(Oo=>Oo===Qi.key)];return Object.assign(Object.assign({},Qi),{column:Object.assign(Object.assign({},Qi.column),ho),forceFiltered:ho.filtered})})}return mi},[On,Bn]),ni=Ft.useMemo(()=>Ru(oi),[oi]),Di=mi=>{const io=oi.filter(xi=>{let{key:to}=xi;return to!==mi.key});io.push(mi),$n(io),dn(Ru(io),io)};return[mi=>bu(se,He,mi,oi,Tn,Di,nn),oi,ni]}var hd=Wh;function Hh(ne,se,He){const Ke=Ft.useRef({});function dn(nn){if(!Ke.current||Ke.current.data!==ne||Ke.current.childrenColumnName!==se||Ke.current.getRowKey!==He){let On=function(Bn){Bn.forEach(($n,oi)=>{const ni=He($n,oi);Tn.set(ni,$n),$n&&typeof $n=="object"&&se in $n&&On($n[se]||[])})};const Tn=new Map;On(ne),Ke.current={data:ne,childrenColumnName:se,kvMap:Tn,getRowKey:He}}return Ke.current.kvMap.get(nn)}return[dn]}var Gd=St(50371),Gh=function(ne,se){var He={};for(var Ke in ne)Object.prototype.hasOwnProperty.call(ne,Ke)&&se.indexOf(Ke)<0&&(He[Ke]=ne[Ke]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dn=0,Ke=Object.getOwnPropertySymbols(ne);dn<Ke.length;dn++)se.indexOf(Ke[dn])<0&&Object.prototype.propertyIsEnumerable.call(ne,Ke[dn])&&(He[Ke[dn]]=ne[Ke[dn]]);return He};const mh=10;function zu(ne,se){const He={current:ne.current,pageSize:ne.pageSize};return Object.keys(se&&typeof se=="object"?se:{}).forEach(dn=>{const nn=ne[dn];typeof nn!="function"&&(He[dn]=nn)}),He}function Rl(ne,se,He){const Ke=He&&typeof He=="object"?He:{},{total:dn=0}=Ke,nn=Gh(Ke,["total"]),[Tn,On]=(0,Ft.useState)(()=>({current:"defaultCurrent"in nn?nn.defaultCurrent:1,pageSize:"defaultPageSize"in nn?nn.defaultPageSize:mh})),Bn=(0,Gd.Z)(Tn,nn,{total:dn>0?dn:ne}),$n=Math.ceil((dn||ne)/Bn.pageSize);Bn.current>$n&&(Bn.current=$n||1);const oi=(Di,Ai)=>{On({current:Di!=null?Di:1,pageSize:Ai||Bn.pageSize})},ni=(Di,Ai)=>{var mi;He&&((mi=He.onChange)===null||mi===void 0||mi.call(He,Di,Ai)),oi(Di,Ai),se(Di,Ai||(Bn==null?void 0:Bn.pageSize))};return He===!1?[{},()=>{}]:[Object.assign(Object.assign({},Bn),{onChange:ni}),oi]}var dd=Rl,Zh=St(18290),vh=St(35654),lr=St(90782),Rr=St(71430),Es=St(35788);const $a={},Wa="SELECT_ALL",fa="SELECT_INVERT",Aa="SELECT_NONE",Xa=[],Ha=(ne,se)=>{let He=[];return(se||[]).forEach(Ke=>{He.push(Ke),Ke&&typeof Ke=="object"&&ne in Ke&&(He=[].concat((0,Ei.Z)(He),(0,Ei.Z)(Ha(ne,Ke[ne]))))}),He};var zl=(ne,se)=>{const{preserveSelectedRowKeys:He,selectedRowKeys:Ke,defaultSelectedRowKeys:dn,getCheckboxProps:nn,onChange:Tn,onSelect:On,onSelectAll:Bn,onSelectInvert:$n,onSelectNone:oi,onSelectMultiple:ni,columnWidth:Di,type:Ai,selections:mi,fixed:io,renderCell:xi,hideSelectAll:to,checkStrictly:Qi=!0}=se||{},{prefixCls:ho,data:Oo,pageData:Yo,getRecordByKey:ro,getRowKey:To,expandType:gr,childrenColumnName:uo,locale:Eo,getPopupContainer:lo}=ne,[Gi,So]=(0,Es.Z)(Ke||dn||Xa,{value:Ke}),Wo=Ft.useRef(new Map),$o=(0,Ft.useCallback)(tr=>{if(He){const Jo=new Map;tr.forEach(er=>{let Io=ro(er);!Io&&Wo.current.has(er)&&(Io=Wo.current.get(er)),Jo.set(er,Io)}),Wo.current=Jo}},[ro,He]);Ft.useEffect(()=>{$o(Gi)},[Gi]);const{keyEntities:_o}=(0,Ft.useMemo)(()=>{if(Qi)return{keyEntities:null};let tr=Oo;if(He){const Jo=new Set(Oo.map((Io,Xr)=>To(Io,Xr))),er=Array.from(Wo.current).reduce((Io,Xr)=>{let[Ro,pr]=Xr;return Jo.has(Ro)?Io:Io.concat(pr)},[]);tr=[].concat((0,Ei.Z)(tr),(0,Ei.Z)(er))}return(0,Rr.I8)(tr,{externalGetKey:To,childrenPropName:uo})},[Oo,To,Qi,uo,He]),ao=(0,Ft.useMemo)(()=>Ha(uo,Yo),[uo,Yo]),mr=(0,Ft.useMemo)(()=>{const tr=new Map;return ao.forEach((Jo,er)=>{const Io=To(Jo,er),Xr=(nn?nn(Jo):null)||{};tr.set(Io,Xr)}),tr},[ao,To,nn]),Pr=(0,Ft.useCallback)(tr=>{var Jo;return!!(!((Jo=mr.get(To(tr)))===null||Jo===void 0)&&Jo.disabled)},[mr,To]),[_r,Or]=(0,Ft.useMemo)(()=>{if(Qi)return[Gi||[],[]];const{checkedKeys:tr,halfCheckedKeys:Jo}=(0,lr.S)(Gi,!0,_o,Pr);return[tr||[],Jo]},[Gi,Qi,_o,Pr]),Da=(0,Ft.useMemo)(()=>{const tr=Ai==="radio"?_r.slice(0,1):_r;return new Set(tr)},[_r,Ai]),Ma=(0,Ft.useMemo)(()=>Ai==="radio"?new Set:new Set(Or),[Or,Ai]),[Sr,Vo]=(0,Ft.useState)(null);Ft.useEffect(()=>{se||So(Xa)},[!!se]);const Vr=(0,Ft.useCallback)((tr,Jo)=>{let er,Io;$o(tr),He?(er=tr,Io=tr.map(Xr=>Wo.current.get(Xr))):(er=[],Io=[],tr.forEach(Xr=>{const Ro=ro(Xr);Ro!==void 0&&(er.push(Xr),Io.push(Ro))})),So(er),Tn==null||Tn(er,Io,{type:Jo})},[So,ro,Tn,He]),Na=(0,Ft.useCallback)((tr,Jo,er,Io)=>{if(On){const Xr=er.map(Ro=>ro(Ro));On(ro(tr),Jo,Xr,Io)}Vr(er,"single")},[On,ro,Vr]),Sa=(0,Ft.useMemo)(()=>!mi||to?null:(mi===!0?[Wa,fa,Aa]:mi).map(Jo=>Jo===Wa?{key:"all",text:Eo.selectionAll,onSelect(){Vr(Oo.map((er,Io)=>To(er,Io)).filter(er=>{const Io=mr.get(er);return!(Io!=null&&Io.disabled)||Da.has(er)}),"all")}}:Jo===fa?{key:"invert",text:Eo.selectInvert,onSelect(){const er=new Set(Da);Yo.forEach((Xr,Ro)=>{const pr=To(Xr,Ro),jr=mr.get(pr);jr!=null&&jr.disabled||(er.has(pr)?er.delete(pr):er.add(pr))});const Io=Array.from(er);$n&&$n(Io),Vr(Io,"invert")}}:Jo===Aa?{key:"none",text:Eo.selectNone,onSelect(){oi==null||oi(),Vr(Array.from(Da).filter(er=>{const Io=mr.get(er);return Io==null?void 0:Io.disabled}),"none")}}:Jo).map(Jo=>Object.assign(Object.assign({},Jo),{onSelect:function(){for(var er,Io,Xr=arguments.length,Ro=new Array(Xr),pr=0;pr<Xr;pr++)Ro[pr]=arguments[pr];(Io=Jo.onSelect)===null||Io===void 0||(er=Io).call.apply(er,[Jo].concat(Ro)),Vo(null)}})),[mi,Da,Yo,To,$n,Vr]);return[(0,Ft.useCallback)(tr=>{var Jo;if(!se)return tr.filter(ea=>ea!==$a);let er=(0,Ei.Z)(tr);const Io=new Set(Da),Xr=ao.map(To).filter(ea=>!mr.get(ea).disabled),Ro=Xr.every(ea=>Io.has(ea)),pr=Xr.some(ea=>Io.has(ea)),jr=()=>{const ea=[];Ro?Xr.forEach(ca=>{Io.delete(ca),ea.push(ca)}):Xr.forEach(ca=>{Io.has(ca)||(Io.add(ca),ea.push(ca))});const aa=Array.from(Io);Bn==null||Bn(!Ro,aa.map(ca=>ro(ca)),ea.map(ca=>ro(ca))),Vr(aa,"all"),Vo(null)};let Wr;if(Ai!=="radio"){let ea;if(Sa){const Dr={getPopupContainer:lo,items:Sa.map((pa,vs)=>{const{key:gl,text:Wl,onSelect:El}=pa;return{key:gl!=null?gl:vs,onClick:()=>{El==null||El(Xr)},label:Wl}})};ea=Ft.createElement("div",{className:`${ho}-selection-extra`},Ft.createElement(Ua.Z,{menu:Dr,getPopupContainer:lo},Ft.createElement("span",null,Ft.createElement(Zh.Z,null))))}const aa=ao.map((Dr,pa)=>{const vs=To(Dr,pa),gl=mr.get(vs)||{};return Object.assign({checked:Io.has(vs)},gl)}).filter(Dr=>{let{disabled:pa}=Dr;return pa}),ca=!!aa.length&&aa.length===ao.length,Qa=ca&&aa.every(Dr=>{let{checked:pa}=Dr;return pa}),ms=ca&&aa.some(Dr=>{let{checked:pa}=Dr;return pa});Wr=!to&&Ft.createElement("div",{className:`${ho}-selection`},Ft.createElement(Br.default,{checked:ca?Qa:!!ao.length&&Ro,indeterminate:ca?!Qa&&ms:!Ro&&pr,onChange:jr,disabled:ao.length===0||ca,"aria-label":ea?"Custom selection":"Select all",skipGroup:!0}),ea)}let Ps;Ai==="radio"?Ps=(ea,aa,ca)=>{const Qa=To(aa,ca),ms=Io.has(Qa);return{node:Ft.createElement(Bi.ZP,Object.assign({},mr.get(Qa),{checked:ms,onClick:Dr=>Dr.stopPropagation(),onChange:Dr=>{Io.has(Qa)||Na(Qa,!0,[Qa],Dr.nativeEvent)}})),checked:ms}}:Ps=(ea,aa,ca)=>{var Qa;const ms=To(aa,ca),Dr=Io.has(ms),pa=Ma.has(ms),vs=mr.get(ms);let gl;return gr==="nest"?gl=pa:gl=(Qa=vs==null?void 0:vs.indeterminate)!==null&&Qa!==void 0?Qa:pa,{node:Ft.createElement(Br.default,Object.assign({},vs,{indeterminate:gl,checked:Dr,skipGroup:!0,onClick:Wl=>Wl.stopPropagation(),onChange:Wl=>{let{nativeEvent:El}=Wl;const{shiftKey:_l}=El;let tu=-1,Hl=-1;if(_l&&Qi){const oa=new Set([Sr,ms]);Xr.some((Ls,Za)=>{if(oa.has(Ls))if(tu===-1)tu=Za;else return Hl=Za,!0;return!1})}if(Hl!==-1&&tu!==Hl&&Qi){const oa=Xr.slice(tu,Hl+1),Ls=[];Dr?oa.forEach(ma=>{Io.has(ma)&&(Ls.push(ma),Io.delete(ma))}):oa.forEach(ma=>{Io.has(ma)||(Ls.push(ma),Io.add(ma))});const Za=Array.from(Io);ni==null||ni(!Dr,Za.map(ma=>ro(ma)),Ls.map(ma=>ro(ma))),Vr(Za,"multiple")}else{const oa=_r;if(Qi){const Ls=Dr?(0,vh._5)(oa,ms):(0,vh.L0)(oa,ms);Na(ms,!Dr,Ls,El)}else{const Ls=(0,lr.S)([].concat((0,Ei.Z)(oa),[ms]),!0,_o,Pr),{checkedKeys:Za,halfCheckedKeys:ma}=Ls;let Gl=Za;if(Dr){const oh=new Set(Za);oh.delete(ms),Gl=(0,lr.S)(Array.from(oh),{checked:!1,halfCheckedKeys:ma},_o,Pr).checkedKeys}Na(ms,!Dr,Gl,El)}}Vo(Dr?null:ms)}})),checked:Dr}};const us=(ea,aa,ca)=>{const{node:Qa,checked:ms}=Ps(ea,aa,ca);return xi?xi(ms,aa,ca,Qa):Qa};if(!er.includes($a))if(er.findIndex(ea=>{var aa;return((aa=ea[Zi])===null||aa===void 0?void 0:aa.columnType)==="EXPAND_COLUMN"})===0){const[ea,...aa]=er;er=[ea,$a].concat((0,Ei.Z)(aa))}else er=[$a].concat((0,Ei.Z)(er));const Gs=er.indexOf($a);er=er.filter((ea,aa)=>ea!==$a||aa===Gs);const ta=er[Gs-1],Cs=er[Gs+1];let ns=io;ns===void 0&&((Cs==null?void 0:Cs.fixed)!==void 0?ns=Cs.fixed:(ta==null?void 0:ta.fixed)!==void 0&&(ns=ta.fixed)),ns&&ta&&((Jo=ta[Zi])===null||Jo===void 0?void 0:Jo.columnType)==="EXPAND_COLUMN"&&ta.fixed===void 0&&(ta.fixed=ns);const ps=me()(`${ho}-selection-col`,{[`${ho}-selection-col-with-dropdown`]:mi&&Ai==="checkbox"}),Ku={fixed:ns,width:Di,className:`${ho}-selection-column`,title:se.columnTitle||Wr,render:us,onCell:se.onCell,[Zi]:{className:ps}};return er.map(ea=>ea===$a?Ku:ea)},[To,ao,se,_r,Da,Ma,Di,Sa,gr,Sr,mr,ni,Na,Pr]),Da]},ka=St(35323),xc=St(19155),wc=St(6848);const Kh="ascend",mo="descend";function cd(ne){return typeof ne.sorter=="object"&&typeof ne.sorter.multiple=="number"?ne.sorter.multiple:!1}function De(ne){return typeof ne=="function"?ne:ne&&typeof ne=="object"&&ne.compare?ne.compare:!1}function Qn(ne,se){return se?ne[ne.indexOf(se)+1]:ne[0]}function Pc(ne,se,He){let Ke=[];function dn(nn,Tn){Ke.push({column:nn,key:Qr(nn,Tn),multiplePriority:cd(nn),sortOrder:nn.sortOrder})}return(ne||[]).forEach((nn,Tn)=>{const On=$r(Tn,He);nn.children?("sortOrder"in nn&&dn(nn,On),Ke=[].concat((0,Ei.Z)(Ke),(0,Ei.Z)(Pc(nn.children,se,On)))):nn.sorter&&("sortOrder"in nn?dn(nn,On):se&&nn.defaultSortOrder&&Ke.push({column:nn,key:Qr(nn,On),multiplePriority:cd(nn),sortOrder:nn.defaultSortOrder}))}),Ke}function rf(ne,se,He,Ke,dn,nn,Tn,On){return(se||[]).map((Bn,$n)=>{const oi=$r($n,On);let ni=Bn;if(ni.sorter){const Di=ni.sortDirections||dn,Ai=ni.showSorterTooltip===void 0?Tn:ni.showSorterTooltip,mi=Qr(ni,oi),io=He.find(gr=>{let{key:uo}=gr;return uo===mi}),xi=io?io.sortOrder:null,to=Qn(Di,xi);let Qi;if(Bn.sortIcon)Qi=Bn.sortIcon({sortOrder:xi});else{const gr=Di.includes(Kh)&&Ft.createElement(xc.Z,{className:me()(`${ne}-column-sorter-up`,{active:xi===Kh})}),uo=Di.includes(mo)&&Ft.createElement(ka.Z,{className:me()(`${ne}-column-sorter-down`,{active:xi===mo})});Qi=Ft.createElement("span",{className:me()(`${ne}-column-sorter`,{[`${ne}-column-sorter-full`]:!!(gr&&uo)})},Ft.createElement("span",{className:`${ne}-column-sorter-inner`,"aria-hidden":"true"},gr,uo))}const{cancelSort:ho,triggerAsc:Oo,triggerDesc:Yo}=nn||{};let ro=ho;to===mo?ro=Yo:to===Kh&&(ro=Oo);const To=typeof Ai=="object"?Ai:{title:ro};ni=Object.assign(Object.assign({},ni),{className:me()(ni.className,{[`${ne}-column-sort`]:xi}),title:gr=>{const uo=Ft.createElement("div",{className:`${ne}-column-sorters`},Ft.createElement("span",{className:`${ne}-column-title`},qa(Bn.title,gr)),Qi);return Ai?Ft.createElement(wc.Z,Object.assign({},To),uo):uo},onHeaderCell:gr=>{const uo=Bn.onHeaderCell&&Bn.onHeaderCell(gr)||{},Eo=uo.onClick,lo=uo.onKeyDown;uo.onClick=Wo=>{Ke({column:Bn,key:mi,sortOrder:to,multiplePriority:cd(Bn)}),Eo==null||Eo(Wo)},uo.onKeyDown=Wo=>{Wo.keyCode===yi.Z.ENTER&&(Ke({column:Bn,key:mi,sortOrder:to,multiplePriority:cd(Bn)}),lo==null||lo(Wo))};const Gi=Ea(Bn.title,{}),So=Gi==null?void 0:Gi.toString();return xi?uo["aria-sort"]=xi==="ascend"?"ascending":"descending":uo["aria-label"]=So||"",uo.className=me()(uo.className,`${ne}-column-has-sorters`),uo.tabIndex=0,Bn.ellipsis&&(uo.title=(Gi!=null?Gi:"").toString()),uo}})}return"children"in ni&&(ni=Object.assign(Object.assign({},ni),{children:rf(ne,ni.children,He,Ke,dn,nn,Tn,oi)})),ni})}function Wu(ne){const{column:se,sortOrder:He}=ne;return{column:se,order:He,field:se.dataIndex,columnKey:se.key}}function Hu(ne){const se=ne.filter(He=>{let{sortOrder:Ke}=He;return Ke}).map(Wu);return se.length===0&&ne.length?Object.assign(Object.assign({},Wu(ne[ne.length-1])),{column:void 0}):se.length<=1?se[0]||{}:se}function ih(ne,se,He){const Ke=se.slice().sort((Tn,On)=>On.multiplePriority-Tn.multiplePriority),dn=ne.slice(),nn=Ke.filter(Tn=>{let{column:{sorter:On},sortOrder:Bn}=Tn;return De(On)&&Bn});return nn.length?dn.sort((Tn,On)=>{for(let Bn=0;Bn<nn.length;Bn+=1){const $n=nn[Bn],{column:{sorter:oi},sortOrder:ni}=$n,Di=De(oi);if(Di&&ni){const Ai=Di(Tn,On,ni);if(Ai!==0)return ni===Kh?Ai:-Ai}}return 0}).map(Tn=>{const On=Tn[He];return On?Object.assign(Object.assign({},Tn),{[He]:ih(On,se,He)}):Tn}):dn}function Cc(ne){let{prefixCls:se,mergedColumns:He,onSorterChange:Ke,sortDirections:dn,tableLocale:nn,showSorterTooltip:Tn}=ne;const[On,Bn]=Ft.useState(Pc(He,!0)),$n=Ft.useMemo(()=>{let mi=!0;const io=Pc(He,!1);if(!io.length)return On;const xi=[];function to(ho){mi?xi.push(ho):xi.push(Object.assign(Object.assign({},ho),{sortOrder:null}))}let Qi=null;return io.forEach(ho=>{Qi===null?(to(ho),ho.sortOrder&&(ho.multiplePriority===!1?mi=!1:Qi=!0)):(Qi&&ho.multiplePriority!==!1||(mi=!1),to(ho))}),xi},[He,On]),oi=Ft.useMemo(()=>{const mi=$n.map(io=>{let{column:xi,sortOrder:to}=io;return{column:xi,order:to}});return{sortColumns:mi,sortColumn:mi[0]&&mi[0].column,sortOrder:mi[0]&&mi[0].order}},[$n]);function ni(mi){let io;mi.multiplePriority===!1||!$n.length||$n[0].multiplePriority===!1?io=[mi]:io=[].concat((0,Ei.Z)($n.filter(xi=>{let{key:to}=xi;return to!==mi.key})),[mi]),Bn(io),Ke(Hu(io),io)}return[mi=>rf(se,mi,$n,ni,dn,nn,Tn),$n,oi,()=>Hu($n)]}function fd(ne,se){return ne.map(He=>{const Ke=Object.assign({},He);return Ke.title=qa(He.title,se),"children"in Ke&&(Ke.children=fd(Ke.children,se)),Ke})}function Ga(ne){return[Ft.useCallback(He=>fd(He,ne),[ne])]}var Uo=Ui((ne,se)=>{const{_renderTimes:He}=ne,{_renderTimes:Ke}=se;return He!==Ke}),il=xr((ne,se)=>{const{_renderTimes:He}=ne,{_renderTimes:Ke}=se;return He!==Ke}),Hs=St(64993),ya=St(17313),Er=St(83116),ls=St(37613),ga=ne=>{const{componentCls:se}=ne,He=`${ne.lineWidth}px ${ne.lineType} ${ne.tableBorderColor}`,Ke=(dn,nn,Tn)=>({[`&${se}-${dn}`]:{[`> ${se}-container`]:{[`> ${se}-content, > ${se}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${se}-expanded-row-fixed`]:{margin:`-${nn}px -${Tn+ne.lineWidth}px`}}}}}});return{[`${se}-wrapper`]:{[`${se}${se}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${se}-title`]:{border:He,borderBottom:0},[`> ${se}-container`]:{borderInlineStart:He,borderTop:He,[`
|
|
|
> ${se}-content,
|
|
|
> ${se}-header,
|
|
|
> ${se}-body,
|
|
|
> ${se}-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:He},"> thead":{"> tr:not(:last-child) > th":{borderBottom:He},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${se}-cell-fix-right-first::after`]:{borderInlineEnd:He}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${se}-expanded-row-fixed`]:{margin:`-${ne.tablePaddingVertical}px -${ne.tablePaddingHorizontal+ne.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ne.lineWidth,bottom:0,borderInlineEnd:He,content:'""'}}}}}},[`&${se}-scroll-horizontal`]:{[`> ${se}-container > ${se}-body`]:{"> table > tbody":{[`
|
|
|
> tr${se}-expanded-row,
|
|
|
> tr${se}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ke("middle",ne.tablePaddingVerticalMiddle,ne.tablePaddingHorizontalMiddle)),Ke("small",ne.tablePaddingVerticalSmall,ne.tablePaddingHorizontalSmall)),{[`> ${se}-footer`]:{border:He,borderTop:0}}),[`${se}-cell`]:{[`${se}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ne.lineWidth}px 0 ${ne.lineWidth}px ${ne.tableHeaderBg}`}},[`${se}-bordered ${se}-cell-scrollbar`]:{borderInlineEnd:He}}}},ws=ne=>{const{componentCls:se}=ne;return{[`${se}-wrapper`]:{[`${se}-cell-ellipsis`]:Object.assign(Object.assign({},ya.vS),{wordBreak:"keep-all",[`
|
|
|
&${se}-cell-fix-left-last,
|
|
|
&${se}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${se}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${se}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Gr=ne=>{const{componentCls:se}=ne;return{[`${se}-wrapper`]:{[`${se}-tbody > tr${se}-placeholder`]:{textAlign:"center",color:ne.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ne.colorBgContainer}}}}},ol=St(15969),da=ne=>{const{componentCls:se,antCls:He,controlInteractiveSize:Ke,motionDurationSlow:dn,lineWidth:nn,paddingXS:Tn,lineType:On,tableBorderColor:Bn,tableExpandIconBg:$n,tableExpandColumnWidth:oi,borderRadius:ni,fontSize:Di,fontSizeSM:Ai,lineHeight:mi,tablePaddingVertical:io,tablePaddingHorizontal:xi,tableExpandedRowBg:to,paddingXXS:Qi}=ne,ho=Ke/2-nn,Oo=ho*2+nn*3,Yo=`${nn}px ${On} ${Bn}`,ro=Qi-nn;return{[`${se}-wrapper`]:{[`${se}-expand-icon-col`]:{width:oi},[`${se}-row-expand-icon-cell`]:{textAlign:"center",[`${se}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${se}-row-indent`]:{height:1,float:"left"},[`${se}-row-expand-icon`]:Object.assign(Object.assign({},(0,ol.N)(ne)),{position:"relative",float:"left",boxSizing:"border-box",width:Oo,height:Oo,padding:0,color:"inherit",lineHeight:`${Oo}px`,background:$n,border:Yo,borderRadius:ni,transform:`scale(${Ke/Oo})`,transition:`all ${dn}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${dn} ease-out`,content:'""'},"&::before":{top:ho,insetInlineEnd:ro,insetInlineStart:ro,height:nn},"&::after":{top:ro,bottom:ro,insetInlineStart:ho,width:nn,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"}}),[`${se}-row-indent + ${se}-row-expand-icon`]:{marginTop:(Di*mi-nn*3)/2-Math.ceil((Ai*1.4-nn*3)/2),marginInlineEnd:Tn},[`tr${se}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:to}},[`${He}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${se}-expanded-row-fixed`]:{position:"relative",margin:`-${io}px -${xi}px`,padding:`${io}px ${xi}px`}}}},Ja=ne=>{const{componentCls:se,antCls:He,iconCls:Ke,tableFilterDropdownWidth:dn,tableFilterDropdownSearchWidth:nn,paddingXXS:Tn,paddingXS:On,colorText:Bn,lineWidth:$n,lineType:oi,tableBorderColor:ni,tableHeaderIconColor:Di,fontSizeSM:Ai,tablePaddingHorizontal:mi,borderRadius:io,motionDurationSlow:xi,colorTextDescription:to,colorPrimary:Qi,tableHeaderFilterActiveBg:ho,colorTextDisabled:Oo,tableFilterDropdownBg:Yo,tableFilterDropdownHeight:ro,controlItemBgHover:To,controlItemBgActive:gr,boxShadowSecondary:uo,filterDropdownMenuBg:Eo}=ne,lo=`${He}-dropdown`,Gi=`${se}-filter-dropdown`,So=`${He}-tree`,Wo=`${$n}px ${oi} ${ni}`;return[{[`${se}-wrapper`]:{[`${se}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${se}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Tn,marginInline:`${Tn}px ${-mi/2}px`,padding:`0 ${Tn}px`,color:Di,fontSize:Ai,borderRadius:io,cursor:"pointer",transition:`all ${xi}`,"&:hover":{color:to,background:ho},"&.active":{color:Qi}}}},{[`${He}-dropdown`]:{[Gi]:Object.assign(Object.assign({},(0,ya.Wf)(ne)),{minWidth:dn,backgroundColor:Yo,borderRadius:io,boxShadow:uo,overflow:"hidden",[`${lo}-menu`]:{maxHeight:ro,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Eo,"&:empty::after":{display:"block",padding:`${On}px 0`,color:Oo,fontSize:Ai,textAlign:"center",content:'"Not Found"'}},[`${Gi}-tree`]:{paddingBlock:`${On}px 0`,paddingInline:On,[So]:{padding:0},[`${So}-treenode ${So}-node-content-wrapper:hover`]:{backgroundColor:To},[`${So}-treenode-checkbox-checked ${So}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:gr}}},[`${Gi}-search`]:{padding:On,borderBottom:Wo,"&-input":{input:{minWidth:nn},[Ke]:{color:Oo}}},[`${Gi}-checkall`]:{width:"100%",marginBottom:Tn,marginInlineStart:Tn},[`${Gi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${On-$n}px ${On}px`,overflow:"hidden",borderTop:Wo}})}},{[`${He}-dropdown ${Gi}, ${Gi}-submenu`]:{[`${He}-checkbox-wrapper + span`]:{paddingInlineStart:On,color:Bn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Uh=ne=>{const{componentCls:se,lineWidth:He,colorSplit:Ke,motionDurationSlow:dn,zIndexTableFixed:nn,tableBg:Tn,zIndexTableSticky:On}=ne,Bn=Ke;return{[`${se}-wrapper`]:{[`
|
|
|
${se}-cell-fix-left,
|
|
|
${se}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:nn,background:Tn},[`
|
|
|
${se}-cell-fix-left-first::after,
|
|
|
${se}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-He,width:30,transform:"translateX(100%)",transition:`box-shadow ${dn}`,content:'""',pointerEvents:"none"},[`${se}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${se}-cell-fix-right-first::after,
|
|
|
${se}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-He,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${dn}`,content:'""',pointerEvents:"none"},[`${se}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:On+1,width:30,transition:`box-shadow ${dn}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${se}-ping-left`]:{[`&:not(${se}-has-fix-left) ${se}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Bn}`}},[`
|
|
|
${se}-cell-fix-left-first::after,
|
|
|
${se}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Bn}`},[`${se}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${se}-ping-right`]:{[`&:not(${se}-has-fix-right) ${se}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Bn}`}},[`
|
|
|
${se}-cell-fix-right-first::after,
|
|
|
${se}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Bn}`}}}}},Gf=ne=>{const{componentCls:se,antCls:He}=ne;return{[`${se}-wrapper`]:{[`${se}-pagination${He}-pagination`]:{margin:`${ne.margin}px 0`},[`${se}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ne.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Zf=ne=>{const{componentCls:se,tableRadius:He}=ne;return{[`${se}-wrapper`]:{[se]:{[`${se}-title, ${se}-header`]:{borderRadius:`${He}px ${He}px 0 0`},[`${se}-title + ${se}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${se}-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:He,borderStartEndRadius:He,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:He},"> *:last-child":{borderStartEndRadius:He}}},"&-footer":{borderRadius:`0 0 ${He}px ${He}px`}}}}},Kd=ne=>{const{componentCls:se}=ne;return{[`${se}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${se}-pagination-left`]:{justifyContent:"flex-end"},[`${se}-pagination-right`]:{justifyContent:"flex-start"},[`${se}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${se}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${se}-row-indent`]:{float:"right"}}}}},bc=ne=>{const{componentCls:se,antCls:He,iconCls:Ke,fontSizeIcon:dn,padding:nn,paddingXS:Tn,tableHeaderIconColor:On,tableHeaderIconColorHover:Bn,tableSelectionColumnWidth:$n}=ne;return{[`${se}-wrapper`]:{[`${se}-selection-col`]:{width:$n,[`&${se}-selection-col-with-dropdown`]:{width:$n+dn+nn/4}},[`${se}-bordered ${se}-selection-col`]:{width:$n+Tn*2,[`&${se}-selection-col-with-dropdown`]:{width:$n+dn+nn/4+Tn*2}},[`
|
|
|
table tr th${se}-selection-column,
|
|
|
table tr td${se}-selection-column
|
|
|
`]:{paddingInlineEnd:ne.paddingXS,paddingInlineStart:ne.paddingXS,textAlign:"center",[`${He}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${se}-selection-column${se}-cell-fix-left`]:{zIndex:ne.zIndexTableFixed+1},[`table tr th${se}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${se}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${se}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ne.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ne.tablePaddingHorizontal/4}px`,[Ke]:{color:On,fontSize:dn,verticalAlign:"baseline","&:hover":{color:Bn}}}}}},Yh=ne=>{const{componentCls:se}=ne,He=(Ke,dn,nn,Tn)=>({[`${se}${se}-${Ke}`]:{fontSize:Tn,[`
|
|
|
${se}-title,
|
|
|
${se}-footer,
|
|
|
${se}-cell,
|
|
|
${se}-thead > tr > th,
|
|
|
${se}-tbody > tr > th,
|
|
|
${se}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${dn}px ${nn}px`},[`${se}-filter-trigger`]:{marginInlineEnd:`-${nn/2}px`},[`${se}-expanded-row-fixed`]:{margin:`-${dn}px -${nn}px`},[`${se}-tbody`]:{[`${se}-wrapper:only-child ${se}`]:{marginBlock:`-${dn}px`,marginInline:`${ne.tableExpandColumnWidth-nn}px -${nn}px`}},[`${se}-selection-column`]:{paddingInlineStart:`${nn/4}px`}}});return{[`${se}-wrapper`]:Object.assign(Object.assign({},He("middle",ne.tablePaddingVerticalMiddle,ne.tablePaddingHorizontalMiddle,ne.tableFontSizeMiddle)),He("small",ne.tablePaddingVerticalSmall,ne.tablePaddingHorizontalSmall,ne.tableFontSizeSmall))}},Gu=ne=>{const{componentCls:se,marginXXS:He,fontSizeIcon:Ke,tableHeaderIconColor:dn,tableHeaderIconColorHover:nn}=ne;return{[`${se}-wrapper`]:{[`${se}-thead th${se}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ne.motionDurationSlow}`,"&:hover":{background:ne.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ne.colorPrimary},[`
|
|
|
&${se}-cell-fix-left:hover,
|
|
|
&${se}-cell-fix-right:hover
|
|
|
`]:{background:ne.tableFixedHeaderSortActiveBg}},[`${se}-thead th${se}-column-sort`]:{background:ne.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${se}-column-sort`]:{background:ne.tableBodySortBg},[`${se}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${se}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${se}-column-sorter`]:{marginInlineStart:He,color:dn,fontSize:0,transition:`color ${ne.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ke,"&.active":{color:ne.colorPrimary}},[`${se}-column-sorter-up + ${se}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${se}-column-sorters:hover ${se}-column-sorter`]:{color:nn}}}},Xh=ne=>{const{componentCls:se,opacityLoading:He,tableScrollThumbBg:Ke,tableScrollThumbBgHover:dn,tableScrollThumbSize:nn,tableScrollBg:Tn,zIndexTableSticky:On,stickyScrollBarBorderRadius:Bn}=ne,$n=`${ne.lineWidth}px ${ne.lineType} ${ne.tableBorderColor}`;return{[`${se}-wrapper`]:{[`${se}-sticky`]:{"&-holder":{position:"sticky",zIndex:On,background:ne.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${nn}px !important`,zIndex:On,display:"flex",alignItems:"center",background:Tn,borderTop:$n,opacity:He,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:nn,backgroundColor:Ke,borderRadius:Bn,transition:`all ${ne.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:dn}}}}}}},Zu=ne=>{const{componentCls:se,lineWidth:He,tableBorderColor:Ke}=ne,dn=`${He}px ${ne.lineType} ${Ke}`;return{[`${se}-wrapper`]:{[`${se}-summary`]:{position:"relative",zIndex:ne.zIndexTableFixed,background:ne.tableBg,"> tr":{"> th, > td":{borderBottom:dn}}},[`div${se}-summary`]:{boxShadow:`0 -${He}px 0 ${Ke}`}}}},Sh=ne=>{const{componentCls:se}=ne,He=`${ne.lineWidth}px ${ne.lineType} ${ne.tableBorderColor}`,Ke=`${se}-expanded-row-cell`;return{[`${se}-wrapper`]:{[`${se}-tbody-virtual`]:{[`${se}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${se}-cell`]:{borderBottom:He},[`${se}-expanded-row`]:{[`${Ke}${Ke}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ne.lineWidth}px)`,borderInlineEnd:"none"}}},[`${se}-bordered`]:{[`${se}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:He,position:"absolute"},[`${se}-cell`]:{borderInlineEnd:He,[`&${se}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ne.lineWidth,borderInlineStart:He}}}}}}};const Eu=ne=>{const{componentCls:se,fontWeightStrong:He,tablePaddingVertical:Ke,tablePaddingHorizontal:dn,lineWidth:nn,lineType:Tn,tableBorderColor:On,tableFontSize:Bn,tableBg:$n,tableRadius:oi,tableHeaderTextColor:ni,motionDurationMid:Di,tableHeaderBg:Ai,tableHeaderCellSplitColor:mi,tableRowHoverBg:io,tableSelectedRowBg:xi,tableSelectedRowHoverBg:to,tableFooterTextColor:Qi,tableFooterBg:ho,paddingContentVerticalLG:Oo}=ne,Yo=`${nn}px ${Tn} ${On}`;return{[`${se}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ya.dF)()),{[se]:Object.assign(Object.assign({},(0,ya.Wf)(ne)),{fontSize:Bn,background:$n,borderRadius:`${oi}px ${oi}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${oi}px ${oi}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${se}-cell,
|
|
|
${se}-thead > tr > th,
|
|
|
${se}-tbody > tr > th,
|
|
|
${se}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Oo}px ${dn}px`,overflowWrap:"break-word"},[`${se}-title`]:{padding:`${Ke}px ${dn}px`},[`${se}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:ni,fontWeight:He,textAlign:"start",background:Ai,borderBottom:Yo,transition:`background ${Di} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${se}-selection-column):not(${se}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:mi,transform:"translateY(-50%)",transition:`background-color ${Di}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${se}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Di}, border-color ${Di}`,borderBottom:Yo,[`
|
|
|
> ${se}-wrapper:only-child,
|
|
|
> ${se}-expanded-row-fixed > ${se}-wrapper:only-child
|
|
|
`]:{[se]:{marginBlock:`-${Ke}px`,marginInline:`${ne.tableExpandColumnWidth-dn}px -${dn}px`,[`${se}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:ni,fontWeight:He,textAlign:"start",background:Ai,borderBottom:Yo,transition:`background ${Di} ease`},[`
|
|
|
&${se}-row:hover > th,
|
|
|
&${se}-row:hover > td,
|
|
|
> th${se}-cell-row-hover,
|
|
|
> td${se}-cell-row-hover
|
|
|
`]:{background:io},[`&${se}-row-selected`]:{"> th, > td":{background:xi},"&:hover > th, &:hover > td":{background:to}}}},[`${se}-footer`]:{padding:`${Ke}px ${dn}px`,color:Qi,background:ho}})}};var xh=(0,Er.Z)("Table",ne=>{const{colorTextHeading:se,colorSplit:He,colorIcon:Ke,colorIconHover:dn,opacityLoading:nn,colorBgContainer:Tn,controlInteractiveSize:On,headerBg:Bn,headerColor:$n,headerSortActiveBg:oi,headerSortHoverBg:ni,bodySortBg:Di,rowHoverBg:Ai,rowSelectedBg:mi,rowSelectedHoverBg:io,rowExpandedBg:xi,cellPaddingBlock:to,cellPaddingInline:Qi,cellPaddingBlockMD:ho,cellPaddingInlineMD:Oo,cellPaddingBlockSM:Yo,cellPaddingInlineSM:ro,borderColor:To,footerBg:gr,footerColor:uo,headerBorderRadius:Eo,cellFontSize:lo,cellFontSizeMD:Gi,cellFontSizeSM:So,headerSplitColor:Wo,fixedHeaderSortActiveBg:$o,headerFilterHoverBg:_o,filterDropdownBg:ao,expandIconBg:mr,selectionColumnWidth:Pr,stickyScrollBarBg:_r}=ne,Or=new Hs.C(Ke),Da=new Hs.C(dn),Ma=2,Sr=(0,ls.TS)(ne,{tableFontSize:lo,tableBg:Tn,tableRadius:Eo,tablePaddingVertical:to,tablePaddingHorizontal:Qi,tablePaddingVerticalMiddle:ho,tablePaddingHorizontalMiddle:Oo,tablePaddingVerticalSmall:Yo,tablePaddingHorizontalSmall:ro,tableBorderColor:To,tableHeaderTextColor:$n,tableHeaderBg:Bn,tableFooterTextColor:uo,tableFooterBg:gr,tableHeaderCellSplitColor:Wo,tableHeaderSortBg:oi,tableHeaderSortHoverBg:ni,tableHeaderIconColor:Or.clone().setAlpha(Or.getAlpha()*nn).toRgbString(),tableHeaderIconColorHover:Da.clone().setAlpha(Da.getAlpha()*nn).toRgbString(),tableBodySortBg:Di,tableFixedHeaderSortActiveBg:$o,tableHeaderFilterActiveBg:_o,tableFilterDropdownBg:ao,tableRowHoverBg:Ai,tableSelectedRowBg:mi,tableSelectedRowHoverBg:io,zIndexTableFixed:Ma,zIndexTableSticky:Ma+1,tableFontSizeMiddle:Gi,tableFontSizeSmall:So,tableSelectionColumnWidth:Pr,tableExpandIconBg:mr,tableExpandColumnWidth:On+2*ne.padding,tableExpandedRowBg:xi,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:_r,tableScrollThumbBgHover:se,tableScrollBg:He});return[Eu(Sr),Gf(Sr),Zu(Sr),Gu(Sr),Ja(Sr),ga(Sr),Zf(Sr),da(Sr),Zu(Sr),Gr(Sr),bc(Sr),Uh(Sr),Xh(Sr),ws(Sr),Yh(Sr),Kd(Sr),Sh(Sr)]},ne=>{const{colorFillAlter:se,colorBgContainer:He,colorTextHeading:Ke,colorFillSecondary:dn,colorFillContent:nn,controlItemBgActive:Tn,controlItemBgActiveHover:On,padding:Bn,paddingSM:$n,paddingXS:oi,colorBorderSecondary:ni,borderRadiusLG:Di,fontSize:Ai,controlHeight:mi,colorTextPlaceholder:io}=ne,xi=new Hs.C(dn).onBackground(He).toHexShortString(),to=new Hs.C(nn).onBackground(He).toHexShortString(),Qi=new Hs.C(se).onBackground(He).toHexShortString();return{headerBg:Qi,headerColor:Ke,headerSortActiveBg:xi,headerSortHoverBg:to,bodySortBg:Qi,rowHoverBg:Qi,rowSelectedBg:Tn,rowSelectedHoverBg:On,rowExpandedBg:se,cellPaddingBlock:Bn,cellPaddingInline:Bn,cellPaddingBlockMD:$n,cellPaddingInlineMD:oi,cellPaddingBlockSM:oi,cellPaddingInlineSM:oi,borderColor:ni,headerBorderRadius:Di,footerBg:Qi,footerColor:Ke,cellFontSize:Ai,cellFontSizeMD:Ai,cellFontSizeSM:Ai,headerSplitColor:ni,fixedHeaderSortActiveBg:xi,headerFilterHoverBg:nn,filterDropdownMenuBg:He,filterDropdownBg:He,expandIconBg:He,selectionColumnWidth:mi,stickyScrollBarBg:io,stickyScrollBarBorderRadius:100}});const Ec=[],sf=(ne,se)=>{const{prefixCls:He,className:Ke,rootClassName:dn,style:nn,size:Tn,bordered:On,dropdownPrefixCls:Bn,dataSource:$n,pagination:oi,rowSelection:ni,rowKey:Di="key",rowClassName:Ai,columns:mi,children:io,childrenColumnName:xi,onChange:to,getPopupContainer:Qi,loading:ho,expandIcon:Oo,expandable:Yo,expandedRowRender:ro,expandIconColumnIndex:To,indentSize:gr,scroll:uo,sortDirections:Eo,locale:lo,showSorterTooltip:Gi=!0,virtual:So}=ne,Wo=Ft.useMemo(()=>mi||Ze(io),[mi,io]),$o=Ft.useMemo(()=>Wo.some(Jr=>Jr.responsive),[Wo]),_o=(0,Yn.Z)($o),ao=Ft.useMemo(()=>{const Jr=new Set(Object.keys(_o).filter(xa=>_o[xa]));return Wo.filter(xa=>!xa.responsive||xa.responsive.some(hs=>Jr.has(hs)))},[Wo,_o]),mr=(0,Ao.Z)(ne,["className","style","columns"]),{locale:Pr=ar.Z,direction:_r,table:Or,renderEmpty:Da,getPrefixCls:Ma,getPopupContainer:Sr}=Ft.useContext(Ki.E_),Vo=(0,co.Z)(Tn),Vr=Object.assign(Object.assign({},Pr.Table),lo),Na=$n||Ec,Sa=Ma("table",He),rs=Ma("dropdown",Bn),tr=Object.assign({childrenColumnName:xi,expandIconColumnIndex:To},Yo),{childrenColumnName:Jo="children"}=tr,er=Ft.useMemo(()=>Na.some(Jr=>Jr==null?void 0:Jr[Jo])?"nest":ro||Yo&&Yo.expandedRowRender?"row":null,[Na]),Io={body:Ft.useRef()},Xr=Ft.useMemo(()=>typeof Di=="function"?Di:Jr=>Jr==null?void 0:Jr[Di],[Di]),[Ro]=Hh(Na,Jo,Xr),pr={},jr=function(Jr,xa){let hs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var wa,Kr,ys;const pl=Object.assign(Object.assign({},pr),Jr);hs&&((wa=pr.resetPagination)===null||wa===void 0||wa.call(pr),!((Kr=pl.pagination)===null||Kr===void 0)&&Kr.current&&(pl.pagination.current=1),oi&&oi.onChange&&oi.onChange(1,(ys=pl.pagination)===null||ys===void 0?void 0:ys.pageSize)),uo&&uo.scrollToFirstRowOnChange!==!1&&Io.body.current&&(0,kr.Z)(0,{getContainer:()=>Io.body.current}),to==null||to(pl.pagination,pl.filters,pl.sorter,{currentDataSource:Ws(ih(Na,pl.sorterStates,Jo),pl.filterStates),action:xa})},Wr=(Jr,xa)=>{jr({sorter:Jr,sorterStates:xa},"sort",!1)},[Ps,us,Gs,ta]=Cc({prefixCls:Sa,mergedColumns:ao,onSorterChange:Wr,sortDirections:Eo||["ascend","descend"],tableLocale:Vr,showSorterTooltip:Gi}),Cs=Ft.useMemo(()=>ih(Na,us,Jo),[Na,us]);pr.sorter=ta(),pr.sorterStates=us;const ns=(Jr,xa)=>{jr({filters:Jr,filterStates:xa},"filter",!0)},[ps,Ku,ea]=hd({prefixCls:Sa,locale:Vr,dropdownPrefixCls:rs,mergedColumns:ao,onFilterChange:ns,getPopupContainer:Qi||Sr}),aa=Ws(Cs,Ku);pr.filters=ea,pr.filterStates=Ku;const ca=Ft.useMemo(()=>{const Jr={};return Object.keys(ea).forEach(xa=>{ea[xa]!==null&&(Jr[xa]=ea[xa])}),Object.assign(Object.assign({},Gs),{filters:Jr})},[Gs,ea]),[Qa]=Ga(ca),ms=(Jr,xa)=>{jr({pagination:Object.assign(Object.assign({},pr.pagination),{current:Jr,pageSize:xa})},"paginate")},[Dr,pa]=dd(aa.length,ms,oi);pr.pagination=oi===!1?{}:zu(Dr,oi),pr.resetPagination=pa;const vs=Ft.useMemo(()=>{if(oi===!1||!Dr.pageSize)return aa;const{current:Jr=1,total:xa,pageSize:hs=mh}=Dr;return aa.length<xa?aa.length>hs?aa.slice((Jr-1)*hs,Jr*hs):aa:aa.slice((Jr-1)*hs,Jr*hs)},[!!oi,aa,Dr&&Dr.current,Dr&&Dr.pageSize,Dr&&Dr.total]),[gl,Wl]=zl({prefixCls:Sa,data:aa,pageData:vs,getRowKey:Xr,getRecordByKey:Ro,expandType:er,childrenColumnName:Jo,locale:Vr,getPopupContainer:Qi||Sr},ni),El=(Jr,xa,hs)=>{let wa;return typeof Ai=="function"?wa=me()(Ai(Jr,xa,hs)):wa=me()(Ai),me()({[`${Sa}-row-selected`]:Wl.has(Xr(Jr,xa))},wa)};tr.__PARENT_RENDER_ICON__=tr.expandIcon,tr.expandIcon=tr.expandIcon||Oo||Fr(Vr),er==="nest"&&tr.expandIconColumnIndex===void 0?tr.expandIconColumnIndex=ni?1:0:tr.expandIconColumnIndex>0&&ni&&(tr.expandIconColumnIndex-=1),typeof tr.indentSize!="number"&&(tr.indentSize=typeof gr=="number"?gr:15);const _l=Ft.useCallback(Jr=>Qa(gl(ps(Ps(Jr)))),[Ps,ps,gl]);let tu,Hl;if(oi!==!1&&(Dr!=null&&Dr.total)){let Jr;Dr.size?Jr=Dr.size:Jr=Vo==="small"||Vo==="middle"?"small":void 0;const xa=Kr=>Ft.createElement(wr.Z,Object.assign({},Dr,{className:me()(`${Sa}-pagination ${Sa}-pagination-${Kr}`,Dr.className),size:Jr})),hs=_r==="rtl"?"left":"right",{position:wa}=Dr;if(wa!==null&&Array.isArray(wa)){const Kr=wa.find(gu=>gu.includes("top")),ys=wa.find(gu=>gu.includes("bottom")),pl=wa.every(gu=>`${gu}`=="none");!Kr&&!ys&&!pl&&(Hl=xa(hs)),Kr&&(tu=xa(Kr.toLowerCase().replace("top",""))),ys&&(Hl=xa(ys.toLowerCase().replace("bottom","")))}else Hl=xa(hs)}let oa;typeof ho=="boolean"?oa={spinning:ho}:typeof ho=="object"&&(oa=Object.assign({spinning:!0},ho));const[Ls,Za]=xh(Sa),[,ma]=(0,sr.Z)(),Gl=me()(`${Sa}-wrapper`,Or==null?void 0:Or.className,{[`${Sa}-wrapper-rtl`]:_r==="rtl"},Ke,dn,Za),oh=Object.assign(Object.assign({},Or==null?void 0:Or.style),nn),eu=lo&&lo.emptyText||(Da==null?void 0:Da("Table"))||Ft.createElement(zi.Z,{componentName:"Table"}),Lu=So?il:Uo,Vu={},Ll=Ft.useMemo(()=>{const{fontSize:Jr,lineHeight:xa,padding:hs,paddingXS:wa,paddingSM:Kr}=ma,ys=Math.floor(Jr*xa);switch(Vo){case"large":return hs*2+ys;case"small":return wa*2+ys;default:return Kr*2+ys}},[ma,Vo]);return So&&(Vu.listItemHeight=Ll),Ls(Ft.createElement("div",{ref:se,className:Gl,style:oh},Ft.createElement(ia.Z,Object.assign({spinning:!1},oa),tu,Ft.createElement(Lu,Object.assign({},Vu,mr,{columns:ao,direction:_r,expandable:tr,prefixCls:Sa,className:me()({[`${Sa}-middle`]:Vo==="middle",[`${Sa}-small`]:Vo==="small",[`${Sa}-bordered`]:On,[`${Sa}-empty`]:Na.length===0}),data:vs,rowKey:Xr,rowClassName:El,emptyText:eu,internalHooks:It,internalRefs:Io,transformColumns:_l})),Hl)))};var lf=Ft.forwardRef(sf);const Uf=(ne,se)=>{const He=Ft.useRef(0);return He.current+=1,Ft.createElement(lf,Object.assign({},ne,{ref:se,_renderTimes:He.current}))},fl=Ft.forwardRef(Uf);fl.SELECTION_COLUMN=$a,fl.EXPAND_COLUMN=Ct,fl.SELECTION_ALL=Wa,fl.SELECTION_INVERT=fa,fl.SELECTION_NONE=Aa,fl.Column=Ji,fl.ColumnGroup=rr,fl.Summary=te;var wh=fl,Kg=wh},86914:function(Dn,An,St){"use strict";St.d(An,{default:function(){return ge}});var Ct=St(99581),It=St(26390),ee=St(43971),Ne=St(58358),Vt=St(5891),fe=St(59301),Ft={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"},ze=Ft,we=St(88853),oe=function(Ce,bn){return fe.createElement(we.Z,(0,Vt.Z)({},Ce,{ref:bn,icon:ze}))},ve=fe.forwardRef(oe),ye=ve,Re=St(92310),Tt=St.n(Re),et=St(35654),nt=St(71430),ht=St(36355),st=St(44757),gt=St(62892),vt=St(20648);const wt=4;function Bt(Ht){const{dropPosition:Ce,dropLevelOffset:bn,prefixCls:yn,indent:Ae,direction:Ue="ltr"}=Ht,Sn=Ue==="ltr"?"left":"right",Xn=Ue==="ltr"?"right":"left",Pn={[Sn]:-bn*Ae+wt,[Xn]:0};switch(Ce){case-1:Pn.top=-3;break;case 1:Pn.bottom=-3;break;default:Pn.bottom=-3,Pn[Sn]=Ae+wt;break}return fe.createElement("div",{style:Pn,className:`${yn}-drop-indicator`})}var kt=St(48610),jt=fe.forwardRef((Ht,Ce)=>{const{getPrefixCls:bn,direction:yn,virtual:Ae,tree:Ue}=fe.useContext(ht.E_),{prefixCls:Sn,className:Xn,showIcon:Pn=!1,showLine:Gn,switcherIcon:Ee,blockNode:Jn=!1,children:ai,checkable:ui=!1,selectable:ln=!0,draggable:Te,motion:Me,style:ie}=Ht,Kt=bn("tree",Sn),Oe=bn(),ke=Me!=null?Me:Object.assign(Object.assign({},(0,gt.Z)(Oe)),{motionAppear:!1}),te=Object.assign(Object.assign({},Ht),{checkable:ui,selectable:ln,showIcon:Pn,motion:ke,blockNode:Jn,showLine:!!Gn,dropIndicatorRender:Bt}),[qt,Dt]=(0,vt.ZP)(Kt),xt=fe.useMemo(()=>{if(!Te)return!1;let Mt={};switch(typeof Te){case"function":Mt.nodeDraggable=Te;break;case"object":Mt=Object.assign({},Te);break;default:break}return Mt.icon!==!1&&(Mt.icon=Mt.icon||fe.createElement(st.Z,null)),Mt},[Te]),mt=Mt=>fe.createElement(kt.Z,{prefixCls:Kt,switcherIcon:Ee,treeNodeProps:Mt,showLine:Gn});return qt(fe.createElement(Ct.Z,Object.assign({itemHeight:20,ref:Ce,virtual:Ae},te,{style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),ie),prefixCls:Kt,className:Tt()({[`${Kt}-icon-hide`]:!Pn,[`${Kt}-block-node`]:Jn,[`${Kt}-unselectable`]:!ln,[`${Kt}-rtl`]:yn==="rtl"},Ue==null?void 0:Ue.className,Xn,Dt),direction:yn,checkable:ui&&fe.createElement("span",{className:`${Kt}-checkbox-inner`}),selectable:ln,switcherIcon:mt,draggable:xt}),ai))}),Xt;(function(Ht){Ht[Ht.None=0]="None",Ht[Ht.Start=1]="Start",Ht[Ht.End=2]="End"})(Xt||(Xt={}));function Ut(Ht,Ce){function bn(yn){const{key:Ae,children:Ue}=yn;Ce(Ae,yn)!==!1&&Ut(Ue||[],Ce)}Ht.forEach(bn)}function de(Ht){let{treeData:Ce,expandedKeys:bn,startKey:yn,endKey:Ae}=Ht;const Ue=[];let Sn=Xt.None;if(yn&&yn===Ae)return[yn];if(!yn||!Ae)return[];function Xn(Pn){return Pn===yn||Pn===Ae}return Ut(Ce,Pn=>{if(Sn===Xt.End)return!1;if(Xn(Pn)){if(Ue.push(Pn),Sn===Xt.None)Sn=Xt.Start;else if(Sn===Xt.Start)return Sn=Xt.End,!1}else Sn===Xt.Start&&Ue.push(Pn);return bn.includes(Pn)}),Ue}function Gt(Ht,Ce){const bn=(0,It.Z)(Ce),yn=[];return Ut(Ht,(Ae,Ue)=>{const Sn=bn.indexOf(Ae);return Sn!==-1&&(yn.push(Ue),bn.splice(Sn,1)),!!bn.length}),yn}var Ve=function(Ht,Ce){var bn={};for(var yn in Ht)Object.prototype.hasOwnProperty.call(Ht,yn)&&Ce.indexOf(yn)<0&&(bn[yn]=Ht[yn]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,yn=Object.getOwnPropertySymbols(Ht);Ae<yn.length;Ae++)Ce.indexOf(yn[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ht,yn[Ae])&&(bn[yn[Ae]]=Ht[yn[Ae]]);return bn};function me(Ht){const{isLeaf:Ce,expanded:bn}=Ht;return Ce?fe.createElement(ee.Z,null):bn?fe.createElement(Ne.Z,null):fe.createElement(ye,null)}function sn(Ht){let{treeData:Ce,children:bn}=Ht;return Ce||(0,nt.zn)(bn)}const qe=(Ht,Ce)=>{var{defaultExpandAll:bn,defaultExpandParent:yn,defaultExpandedKeys:Ae}=Ht,Ue=Ve(Ht,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Sn=fe.useRef(),Xn=fe.useRef(),Pn=()=>{const{keyEntities:xt}=(0,nt.I8)(sn(Ue));let mt;return bn?mt=Object.keys(xt):yn?mt=(0,et.r7)(Ue.expandedKeys||Ae||[],xt):mt=Ue.expandedKeys||Ae,mt},[Gn,Ee]=fe.useState(Ue.selectedKeys||Ue.defaultSelectedKeys||[]),[Jn,ai]=fe.useState(()=>Pn());fe.useEffect(()=>{"selectedKeys"in Ue&&Ee(Ue.selectedKeys)},[Ue.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Ue&&ai(Ue.expandedKeys)},[Ue.expandedKeys]);const ui=(xt,mt)=>{var Mt;return"expandedKeys"in Ue||ai(xt),(Mt=Ue.onExpand)===null||Mt===void 0?void 0:Mt.call(Ue,xt,mt)},ln=(xt,mt)=>{var Mt;const{multiple:Rt}=Ue,{node:Et,nativeEvent:re}=mt,{key:Qe=""}=Et,mn=sn(Ue),le=Object.assign(Object.assign({},mt),{selected:!0}),Ge=(re==null?void 0:re.ctrlKey)||(re==null?void 0:re.metaKey),cn=re==null?void 0:re.shiftKey;let Mn;Rt&&Ge?(Mn=xt,Sn.current=Qe,Xn.current=Mn,le.selectedNodes=Gt(mn,Mn)):Rt&&cn?(Mn=Array.from(new Set([].concat((0,It.Z)(Xn.current||[]),(0,It.Z)(de({treeData:mn,expandedKeys:Jn,startKey:Qe,endKey:Sn.current}))))),le.selectedNodes=Gt(mn,Mn)):(Mn=[Qe],Sn.current=Qe,Xn.current=Mn,le.selectedNodes=Gt(mn,Mn)),(Mt=Ue.onSelect)===null||Mt===void 0||Mt.call(Ue,Mn,le),"selectedKeys"in Ue||Ee(Mn)},{getPrefixCls:Te,direction:Me}=fe.useContext(ht.E_),{prefixCls:ie,className:Kt,showIcon:Oe=!0,expandAction:ke="click"}=Ue,te=Ve(Ue,["prefixCls","className","showIcon","expandAction"]),qt=Te("tree",ie),Dt=Tt()(`${qt}-directory`,{[`${qt}-directory-rtl`]:Me==="rtl"},Kt);return fe.createElement(jt,Object.assign({icon:me,ref:Ce,blockNode:!0},te,{showIcon:Oe,expandAction:ke,prefixCls:qt,className:Dt,expandedKeys:Jn,selectedKeys:Gn,onSelect:ln,onExpand:ui}))};var je=fe.forwardRef(qe);const hn=jt;hn.DirectoryTree=je,hn.TreeNode=Ct.O;var ge=hn},20648:function(Dn,An,St){"use strict";St.d(An,{TM:function(){return Re},Yk:function(){return ye}});var Ct=St(9792),It=St(98447),ee=St(17313),Ne=St(8378),Vt=St(37613),fe=St(83116);const Ft=new Ct.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ze=(Tt,et)=>({[`.${Tt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),we=(Tt,et)=>({[`.${Tt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${et.lineWidthBold}px solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),oe=(Tt,et)=>{const{treeCls:nt,treeNodeCls:ht,treeNodePadding:st,titleHeight:gt,nodeSelectedBg:vt,nodeHoverBg:wt}=et,Bt=et.paddingXS;return{[nt]:Object.assign(Object.assign({},(0,ee.Wf)(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${nt}-rtl`]:{[`${nt}-switcher`]:{"&_close":{[`${nt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${nt}-active-focused)`]:Object.assign({},(0,ee.oN)(et)),[`${nt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${nt}-block-node`]:{[`${nt}-list-holder-inner`]:{alignItems:"stretch",[`${nt}-node-content-wrapper`]:{flex:"auto"},[`${ht}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:st,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:Ft,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ht}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${st}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${nt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${nt}-node-content-wrapper`]:Object.assign({},(0,ee.oN)(et)),[`&:not(${ht}-disabled).filter-node ${nt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${nt}-draggable-icon`]:{flexShrink:0,width:gt,lineHeight:`${gt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${ht}:hover &`]:{opacity:.45}},[`&${ht}-disabled`]:{[`${nt}-draggable-icon`]:{visibility:"hidden"}}}},[`${nt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:gt}},[`${nt}-draggable-icon`]:{visibility:"hidden"},[`${nt}-switcher`]:Object.assign(Object.assign({},ze(Tt,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:gt,margin:0,lineHeight:`${gt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${nt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:gt/2,bottom:-st,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:gt/2*.8,height:gt/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${nt}-checkbox`]:{top:"initial",marginInlineEnd:Bt},[`${nt}-node-content-wrapper, ${nt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:gt,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${gt}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:wt},[`&${nt}-node-selected`]:{backgroundColor:vt},[`${nt}-iconEle`]:{display:"inline-block",width:gt,height:gt,lineHeight:`${gt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${nt}-unselectable ${nt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${nt}-node-content-wrapper`]:Object.assign({lineHeight:`${gt}px`,userSelect:"none"},we(Tt,et)),[`${ht}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${nt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:gt/2,bottom:-st,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${nt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ht}-leaf-last`]:{[`${nt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${gt/2}px !important`}}}}})}},ve=Tt=>{const{treeCls:et,treeNodeCls:nt,treeNodePadding:ht,directoryNodeSelectedBg:st,directoryNodeSelectedColor:gt}=Tt;return{[`${et}${et}-directory`]:{[nt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ht,insetInlineStart:0,transition:`background-color ${Tt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Tt.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${Tt.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:gt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:st},[`${et}-switcher`]:{color:gt},[`${et}-node-content-wrapper`]:{color:gt,background:"transparent"}}}}}},ye=(Tt,et)=>{const nt=`.${Tt}`,ht=`${nt}-treenode`,st=et.paddingXS/2,gt=(0,Vt.TS)(et,{treeCls:nt,treeNodeCls:ht,treeNodePadding:st});return[oe(Tt,gt),ve(gt)]},Re=Tt=>{const{controlHeightSM:et}=Tt;return{titleHeight:et,nodeHoverBg:Tt.controlItemBgHover,nodeSelectedBg:Tt.controlItemBgActive}};An.ZP=(0,fe.Z)("Tree",(Tt,et)=>{let{prefixCls:nt}=et;return[{[Tt.componentCls]:(0,It.C2)(`${nt}-checkbox`,Tt)},ye(nt,Tt),(0,Ne.Z)(Tt)]},Tt=>{const{colorTextLightSolid:et,colorPrimary:nt}=Tt;return Object.assign(Object.assign({},Re(Tt)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:nt})})},48610:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ht}});var Ct=St(5891),It=St(59301),ee={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"},Ne=ee,Vt=St(88853),fe=function(gt,vt){return It.createElement(Vt.Z,(0,Ct.Z)({},gt,{ref:vt,icon:Ne}))},Ft=It.forwardRef(fe),ze=Ft,we=St(43971),oe=St(50023),ve=St(77042),ye=St(5527),Re=St(92310),Tt=St.n(Re),et=St(92343),ht=st=>{const{prefixCls:gt,switcherIcon:vt,treeNodeProps:wt,showLine:Bt}=st,{isLeaf:kt,expanded:Ot,loading:jt}=wt;if(jt)return It.createElement(oe.Z,{className:`${gt}-switcher-loading-icon`});let Xt;if(Bt&&typeof Bt=="object"&&(Xt=Bt.showLeafIcon),kt){if(!Bt)return null;if(typeof Xt!="boolean"&&Xt){const Gt=typeof Xt=="function"?Xt(wt):Xt,Ve=`${gt}-switcher-line-custom-icon`;return(0,et.l$)(Gt)?(0,et.Tm)(Gt,{className:Tt()(Gt.props.className||"",Ve)}):Gt}return Xt?It.createElement(we.Z,{className:`${gt}-switcher-line-icon`}):It.createElement("span",{className:`${gt}-switcher-leaf-line`})}const Ut=`${gt}-switcher-icon`,de=typeof vt=="function"?vt(wt):vt;return(0,et.l$)(de)?(0,et.Tm)(de,{className:Tt()(de.props.className||"",Ut)}):de!==void 0?de:Bt?Ot?It.createElement(ve.Z,{className:`${gt}-switcher-line-icon`}):It.createElement(ye.Z,{className:`${gt}-switcher-line-icon`}):It.createElement(ze,{className:Ut})}},24645:function(Dn,An,St){"use strict";St.d(An,{default:function(){return fn}});var Ct=St(59301),It=St(26390),ee=St(92310),Ne=St.n(ee),Vt=St(5891),fe=St(79545),Ft=St(68550),ze=St(17928),we=St(7711),oe=St(80962),ve=St(19149),ye=St(50204),Re=St(80665),Tt=St(20959),et=St(36994);function nt(Ie,an){var _e="cannot ".concat(Ie.method," ").concat(Ie.action," ").concat(an.status,"'"),rn=new Error(_e);return rn.status=an.status,rn.method=Ie.method,rn.url=Ie.action,rn}function ht(Ie){var an=Ie.responseText||Ie.response;if(!an)return an;try{return JSON.parse(an)}catch(_e){return an}}function st(Ie){var an=new XMLHttpRequest;Ie.onProgress&&an.upload&&(an.upload.onprogress=function(Cn){Cn.total>0&&(Cn.percent=Cn.loaded/Cn.total*100),Ie.onProgress(Cn)});var _e=new FormData;Ie.data&&Object.keys(Ie.data).forEach(function(pn){var Cn=Ie.data[pn];if(Array.isArray(Cn)){Cn.forEach(function(kn){_e.append("".concat(pn,"[]"),kn)});return}_e.append(pn,Cn)}),Ie.file instanceof Blob?_e.append(Ie.filename,Ie.file,Ie.file.name):_e.append(Ie.filename,Ie.file),an.onerror=function(Cn){Ie.onError(Cn)},an.onload=function(){return an.status<200||an.status>=300?Ie.onError(nt(Ie,an),ht(an)):Ie.onSuccess(ht(an),an)},an.open(Ie.method,Ie.action,!0),Ie.withCredentials&&"withCredentials"in an&&(an.withCredentials=!0);var rn=Ie.headers||{};return rn["X-Requested-With"]!==null&&an.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(rn).forEach(function(pn){rn[pn]!==null&&an.setRequestHeader(pn,rn[pn])}),an.send(_e),{abort:function(){an.abort()}}}var gt=+new Date,vt=0;function wt(){return"rc-upload-".concat(gt,"-").concat(++vt)}var Bt=St(51395),kt=function(Ie,an){if(Ie&&an){var _e=Array.isArray(an)?an:an.split(","),rn=Ie.name||"",pn=Ie.type||"",Cn=pn.replace(/\/.*$/,"");return _e.some(function(kn){var In=kn.trim();if(/^\*(\/\*)?$/.test(kn))return!0;if(In.charAt(0)==="."){var wn=rn.toLowerCase(),Kn=In.toLowerCase(),Ci=[Kn];return(Kn===".jpg"||Kn===".jpeg")&&(Ci=[".jpg",".jpeg"]),Ci.some(function(Wi){return wn.endsWith(Wi)})}return/\/\*$/.test(In)?Cn===In.replace(/\/.*$/,""):pn===In?!0:/^\w+$/.test(In)?((0,Bt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(In,"'.Skip for check.")),!0):!1})}return!0};function Ot(Ie,an){var _e=Ie.createReader(),rn=[];function pn(){_e.readEntries(function(Cn){var kn=Array.prototype.slice.apply(Cn);rn=rn.concat(kn);var In=!kn.length;In?an(rn):pn()})}pn()}var jt=function(an,_e,rn){var pn=function Cn(kn,In){kn&&(kn.path=In||"",kn.isFile?kn.file(function(wn){rn(wn)&&(kn.fullPath&&!wn.webkitRelativePath&&(Object.defineProperties(wn,{webkitRelativePath:{writable:!0}}),wn.webkitRelativePath=kn.fullPath.replace(/^\//,""),Object.defineProperties(wn,{webkitRelativePath:{writable:!1}})),_e([wn]))}):kn.isDirectory&&Ot(kn,function(wn){wn.forEach(function(Kn){Cn(Kn,"".concat(In).concat(kn.name,"/"))})}))};an.forEach(function(Cn){pn(Cn.webkitGetAsEntry())})},Xt=jt,Ut=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],de=function(Ie){(0,ze.Z)(_e,Ie);var an=(0,we.Z)(_e);function _e(){var rn;(0,fe.Z)(this,_e);for(var pn=arguments.length,Cn=new Array(pn),kn=0;kn<pn;kn++)Cn[kn]=arguments[kn];return rn=an.call.apply(an,[this].concat(Cn)),rn.state={uid:wt()},rn.reqs={},rn.fileInput=void 0,rn._isMounted=void 0,rn.onChange=function(In){var wn=rn.props,Kn=wn.accept,Ci=wn.directory,Wi=In.target.files,Li=(0,It.Z)(Wi).filter(function(Be){return!Ci||kt(Be,Kn)});rn.uploadFiles(Li),rn.reset()},rn.onClick=function(In){var wn=rn.fileInput;if(wn){var Kn=In.target,Ci=rn.props.onClick;if(Kn&&Kn.tagName==="BUTTON"){var Wi=wn.parentNode;Wi.focus(),Kn.blur()}wn.click(),Ci&&Ci(In)}},rn.onKeyDown=function(In){In.key==="Enter"&&rn.onClick(In)},rn.onFileDrop=function(In){var wn=rn.props.multiple;if(In.preventDefault(),In.type!=="dragover")if(rn.props.directory)Xt(Array.prototype.slice.call(In.dataTransfer.items),rn.uploadFiles,function(Ci){return kt(Ci,rn.props.accept)});else{var Kn=(0,It.Z)(In.dataTransfer.files).filter(function(Ci){return kt(Ci,rn.props.accept)});wn===!1&&(Kn=Kn.slice(0,1)),rn.uploadFiles(Kn)}},rn.uploadFiles=function(In){var wn=(0,It.Z)(In),Kn=wn.map(function(Ci){return Ci.uid=wt(),rn.processFile(Ci,wn)});Promise.all(Kn).then(function(Ci){var Wi=rn.props.onBatchStart;Wi==null||Wi(Ci.map(function(Li){var Be=Li.origin,ei=Li.parsedFile;return{file:Be,parsedFile:ei}})),Ci.filter(function(Li){return Li.parsedFile!==null}).forEach(function(Li){rn.post(Li)})})},rn.processFile=function(){var In=(0,Tt.Z)((0,ye.Z)().mark(function wn(Kn,Ci){var Wi,Li,Be,ei,Si,ci,Hi,Ni,Ui;return(0,ye.Z)().wrap(function(bi){for(;;)switch(bi.prev=bi.next){case 0:if(Wi=rn.props.beforeUpload,Li=Kn,!Wi){bi.next=14;break}return bi.prev=3,bi.next=6,Wi(Kn,Ci);case 6:Li=bi.sent,bi.next=12;break;case 9:bi.prev=9,bi.t0=bi.catch(3),Li=!1;case 12:if(Li!==!1){bi.next=14;break}return bi.abrupt("return",{origin:Kn,parsedFile:null,action:null,data:null});case 14:if(Be=rn.props.action,typeof Be!="function"){bi.next=21;break}return bi.next=18,Be(Kn);case 18:ei=bi.sent,bi.next=22;break;case 21:ei=Be;case 22:if(Si=rn.props.data,typeof Si!="function"){bi.next=29;break}return bi.next=26,Si(Kn);case 26:ci=bi.sent,bi.next=30;break;case 29:ci=Si;case 30:return Hi=((0,Re.Z)(Li)==="object"||typeof Li=="string")&&Li?Li:Kn,Hi instanceof File?Ni=Hi:Ni=new File([Hi],Kn.name,{type:Kn.type}),Ui=Ni,Ui.uid=Kn.uid,bi.abrupt("return",{origin:Kn,data:ci,parsedFile:Ui,action:ei});case 35:case"end":return bi.stop()}},wn,null,[[3,9]])}));return function(wn,Kn){return In.apply(this,arguments)}}(),rn.saveFileInput=function(In){rn.fileInput=In},rn}return(0,Ft.Z)(_e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(pn){var Cn=this,kn=pn.data,In=pn.origin,wn=pn.action,Kn=pn.parsedFile;if(this._isMounted){var Ci=this.props,Wi=Ci.onStart,Li=Ci.customRequest,Be=Ci.name,ei=Ci.headers,Si=Ci.withCredentials,ci=Ci.method,Hi=In.uid,Ni=Li||st,Ui={action:wn,filename:Be,data:kn,file:Kn,headers:ei,withCredentials:Si,method:ci||"post",onProgress:function(bi){var eo=Cn.props.onProgress;eo==null||eo(bi,Kn)},onSuccess:function(bi,eo){var xn=Cn.props.onSuccess;xn==null||xn(bi,Kn,eo),delete Cn.reqs[Hi]},onError:function(bi,eo){var xn=Cn.props.onError;xn==null||xn(bi,eo,Kn),delete Cn.reqs[Hi]}};Wi(In),this.reqs[Hi]=Ni(Ui)}}},{key:"reset",value:function(){this.setState({uid:wt()})}},{key:"abort",value:function(pn){var Cn=this.reqs;if(pn){var kn=pn.uid?pn.uid:pn;Cn[kn]&&Cn[kn].abort&&Cn[kn].abort(),delete Cn[kn]}else Object.keys(Cn).forEach(function(In){Cn[In]&&Cn[In].abort&&Cn[In].abort(),delete Cn[In]})}},{key:"render",value:function(){var pn=this.props,Cn=pn.component,kn=pn.prefixCls,In=pn.className,wn=pn.disabled,Kn=pn.id,Ci=pn.style,Wi=pn.multiple,Li=pn.accept,Be=pn.capture,ei=pn.children,Si=pn.directory,ci=pn.openFileDialogOnClick,Hi=pn.onMouseEnter,Ni=pn.onMouseLeave,Ui=(0,ve.Z)(pn,Ut),Ii=Ne()((0,oe.Z)((0,oe.Z)((0,oe.Z)({},kn,!0),"".concat(kn,"-disabled"),wn),In,In)),bi=Si?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},eo=wn?{}:{onClick:ci?this.onClick:function(){},onKeyDown:ci?this.onKeyDown:function(){},onMouseEnter:Hi,onMouseLeave:Ni,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Ct.createElement(Cn,(0,Vt.Z)({},eo,{className:Ii,role:"button",style:Ci}),Ct.createElement("input",(0,Vt.Z)({},(0,et.Z)(Ui,{aria:!0,data:!0}),{id:Kn,disabled:wn,type:"file",ref:this.saveFileInput,onClick:function(Fo){return Fo.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Li},bi,{multiple:Wi,onChange:this.onChange},Be!=null?{capture:Be}:{})),ei)}}]),_e}(Ct.Component),Gt=de;function Ve(){}var me=function(Ie){(0,ze.Z)(_e,Ie);var an=(0,we.Z)(_e);function _e(){var rn;(0,fe.Z)(this,_e);for(var pn=arguments.length,Cn=new Array(pn),kn=0;kn<pn;kn++)Cn[kn]=arguments[kn];return rn=an.call.apply(an,[this].concat(Cn)),rn.uploader=void 0,rn.saveUploader=function(In){rn.uploader=In},rn}return(0,Ft.Z)(_e,[{key:"abort",value:function(pn){this.uploader.abort(pn)}},{key:"render",value:function(){return Ct.createElement(Gt,(0,Vt.Z)({},this.props,{ref:this.saveUploader}))}}]),_e}(Ct.Component);me.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ve,onError:Ve,onSuccess:Ve,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var sn=me,qe=sn,Ye=St(35788),je=St(4676),hn=St(36355),ge=St(1684),Ht=St(9763),Ce=St(31724),bn={icon:function(an,_e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:_e}},{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:an}}]}},name:"file",theme:"twotone"},yn=bn,Ae=St(88853),Ue=function(an,_e){return Ct.createElement(Ae.Z,(0,Vt.Z)({},an,{ref:_e,icon:yn}))},Sn=Ct.forwardRef(Ue),Xn=Sn,Pn=St(50023),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"},Ee=Gn,Jn=function(an,_e){return Ct.createElement(Ae.Z,(0,Vt.Z)({},an,{ref:_e,icon:Ee}))},ai=Ct.forwardRef(Jn),ui=ai,ln={icon:function(an,_e){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:an}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:_e}},{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:_e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:_e}},{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:an}}]}},name:"picture",theme:"twotone"},Te=ln,Me=function(an,_e){return Ct.createElement(Ae.Z,(0,Vt.Z)({},an,{ref:_e,icon:Te}))},ie=Ct.forwardRef(Me),Kt=ie,Oe=St(43469),ke=St(56762),te=St(62892),qt=St(92343),Dt=St(3113);function xt(Ie){return Object.assign(Object.assign({},Ie),{lastModified:Ie.lastModified,lastModifiedDate:Ie.lastModifiedDate,name:Ie.name,size:Ie.size,type:Ie.type,uid:Ie.uid,percent:0,originFileObj:Ie})}function mt(Ie,an){const _e=(0,It.Z)(an),rn=_e.findIndex(pn=>{let{uid:Cn}=pn;return Cn===Ie.uid});return rn===-1?_e.push(Ie):_e[rn]=Ie,_e}function Mt(Ie,an){const _e=Ie.uid!==void 0?"uid":"name";return an.filter(rn=>rn[_e]===Ie[_e])[0]}function Rt(Ie,an){const _e=Ie.uid!==void 0?"uid":"name",rn=an.filter(pn=>pn[_e]!==Ie[_e]);return rn.length===an.length?null:rn}const Et=function(){const an=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),rn=an[an.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(rn)||[""])[0]},re=Ie=>Ie.indexOf("image/")===0,Qe=Ie=>{if(Ie.type&&!Ie.thumbUrl)return re(Ie.type);const an=Ie.thumbUrl||Ie.url||"",_e=Et(an);return/^data:image\//.test(an)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(_e)?!0:!(/^data:/.test(an)||_e)},mn=200;function le(Ie){return new Promise(an=>{if(!Ie.type||!re(Ie.type)){an("");return}const _e=document.createElement("canvas");_e.width=mn,_e.height=mn,_e.style.cssText=`position: fixed; left: 0; top: 0; width: ${mn}px; height: ${mn}px; z-index: 9999; display: none;`,document.body.appendChild(_e);const rn=_e.getContext("2d"),pn=new Image;if(pn.onload=()=>{const{width:Cn,height:kn}=pn;let In=mn,wn=mn,Kn=0,Ci=0;Cn>kn?(wn=kn*(mn/Cn),Ci=-(wn-In)/2):(In=Cn*(mn/kn),Kn=-(In-wn)/2),rn.drawImage(pn,Kn,Ci,In,wn);const Wi=_e.toDataURL();document.body.removeChild(_e),window.URL.revokeObjectURL(pn.src),an(Wi)},pn.crossOrigin="anonymous",Ie.type.startsWith("image/svg+xml")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&(pn.src=Cn.result)},Cn.readAsDataURL(Ie)}else if(Ie.type.startsWith("image/gif")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&an(Cn.result)},Cn.readAsDataURL(Ie)}else pn.src=window.URL.createObjectURL(Ie)})}var Ge=St(72295),cn=St(24566),Mn=St(30631),Zn=St(93948),_n=St(6848),ri=Ct.forwardRef((Ie,an)=>{let{prefixCls:_e,className:rn,style:pn,locale:Cn,listType:kn,file:In,items:wn,progress:Kn,iconRender:Ci,actionIconRender:Wi,itemRender:Li,isImgUrl:Be,showPreviewIcon:ei,showRemoveIcon:Si,showDownloadIcon:ci,previewIcon:Hi,removeIcon:Ni,downloadIcon:Ui,onPreview:Ii,onDownload:bi,onClose:eo}=Ie;var xn,Fo;const{status:Ln}=In,[po,Go]=Ct.useState(Ln);Ct.useEffect(()=>{Ln!=="removed"&&Go(Ln)},[Ln]);const[Yi,nr]=Ct.useState(!1);Ct.useEffect(()=>{const Ki=setTimeout(()=>{nr(!0)},300);return()=>{clearTimeout(Ki)}},[]);const Bo=Ci(In);let Ti=Ct.createElement("div",{className:`${_e}-icon`},Bo);if(kn==="picture"||kn==="picture-card"||kn==="picture-circle")if(po==="uploading"||!In.thumbUrl&&!In.url){const Ki=Ne()(`${_e}-list-item-thumbnail`,{[`${_e}-list-item-file`]:po!=="uploading"});Ti=Ct.createElement("div",{className:Ki},Bo)}else{const Ki=Be!=null&&Be(In)?Ct.createElement("img",{src:In.thumbUrl||In.url,alt:In.name,className:`${_e}-list-item-image`,crossOrigin:In.crossOrigin}):Bo,zi=Ne()(`${_e}-list-item-thumbnail`,{[`${_e}-list-item-file`]:Be&&!Be(In)});Ti=Ct.createElement("a",{className:zi,onClick:co=>Ii(In,co),href:In.url||In.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ki)}const Oi=Ne()(`${_e}-list-item`,`${_e}-list-item-${po}`),bo=typeof In.linkProps=="string"?JSON.parse(In.linkProps):In.linkProps,Do=Si?Wi((typeof Ni=="function"?Ni(In):Ni)||Ct.createElement(Ge.Z,null),()=>eo(In),_e,Cn.removeFile):null,si=ci&&po==="done"?Wi((typeof Ui=="function"?Ui(In):Ui)||Ct.createElement(cn.Z,null),()=>bi(In),_e,Cn.downloadFile):null,Zt=kn!=="picture-card"&&kn!=="picture-circle"&&Ct.createElement("span",{key:"download-delete",className:Ne()(`${_e}-list-item-actions`,{picture:kn==="picture"})},si,Do),Co=Ne()(`${_e}-list-item-name`),xr=In.url?[Ct.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Co,title:In.name},bo,{href:In.url,onClick:Ki=>Ii(In,Ki)}),In.name),Zt]:[Ct.createElement("span",{key:"view",className:Co,onClick:Ki=>Ii(In,Ki),title:In.name},In.name),Zt],yo={pointerEvents:"none",opacity:.5},yr=ei?Ct.createElement("a",{href:In.url||In.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:In.url||In.thumbUrl?void 0:yo,onClick:Ki=>Ii(In,Ki),title:Cn.previewFile},typeof Hi=="function"?Hi(In):Hi||Ct.createElement(Mn.Z,null)):null,_i=(kn==="picture-card"||kn==="picture-circle")&&po!=="uploading"&&Ct.createElement("span",{className:`${_e}-list-item-actions`},yr,po==="done"&&si,Do),{getPrefixCls:Ji}=Ct.useContext(hn.E_),Zo=Ji(),rr=Ct.createElement("div",{className:Oi},Ti,xr,_i,Yi&&Ct.createElement(Oe.default,{motionName:`${Zo}-fade`,visible:po==="uploading",motionDeadline:2e3},Ki=>{let{className:zi}=Ki;const co="percent"in In?Ct.createElement(Zn.Z,Object.assign({},Kn,{type:"line",percent:In.percent,"aria-label":In["aria-label"],"aria-labelledby":In["aria-labelledby"]})):null;return Ct.createElement("div",{className:Ne()(`${_e}-list-item-progress`,zi)},co)})),Ao=In.response&&typeof In.response=="string"?In.response:((xn=In.error)===null||xn===void 0?void 0:xn.statusText)||((Fo=In.error)===null||Fo===void 0?void 0:Fo.message)||Cn.uploadError,kr=po==="error"?Ct.createElement(_n.Z,{title:Ao,getPopupContainer:Ki=>Ki.parentNode},rr):rr;return Ct.createElement("div",{className:Ne()(`${_e}-list-item-container`,rn),style:pn,ref:an},Li?Li(kr,In,wn,{download:bi.bind(null,In),preview:Ii.bind(null,In),remove:eo.bind(null,In)}):kr)});const Fi=(Ie,an)=>{const{listType:_e="text",previewFile:rn=le,onPreview:pn,onDownload:Cn,onRemove:kn,locale:In,iconRender:wn,isImageUrl:Kn=Qe,prefixCls:Ci,items:Wi=[],showPreviewIcon:Li=!0,showRemoveIcon:Be=!0,showDownloadIcon:ei=!1,removeIcon:Si,previewIcon:ci,downloadIcon:Hi,progress:Ni={size:[-1,2],showInfo:!1},appendAction:Ui,appendActionVisible:Ii=!0,itemRender:bi,disabled:eo}=Ie,xn=(0,ke.Z)(),[Fo,Ln]=Ct.useState(!1);Ct.useEffect(()=>{_e!=="picture"&&_e!=="picture-card"&&_e!=="picture-circle"||(Wi||[]).forEach(yo=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(yo.originFileObj instanceof File||yo.originFileObj instanceof Blob)||yo.thumbUrl!==void 0||(yo.thumbUrl="",rn&&rn(yo.originFileObj).then(yr=>{yo.thumbUrl=yr||"",xn()}))})},[_e,Wi,rn]),Ct.useEffect(()=>{Ln(!0)},[]);const po=(yo,yr)=>{if(pn)return yr==null||yr.preventDefault(),pn(yo)},Go=yo=>{typeof Cn=="function"?Cn(yo):yo.url&&window.open(yo.url)},Yi=yo=>{kn==null||kn(yo)},nr=yo=>{if(wn)return wn(yo,_e);const yr=yo.status==="uploading",_i=Kn&&Kn(yo)?Ct.createElement(Kt,null):Ct.createElement(Xn,null);let Ji=yr?Ct.createElement(Pn.Z,null):Ct.createElement(ui,null);return _e==="picture"?Ji=yr?Ct.createElement(Pn.Z,null):_i:(_e==="picture-card"||_e==="picture-circle")&&(Ji=yr?In.uploading:_i),Ji},Bo=(yo,yr,_i,Ji)=>{const Zo={type:"text",size:"small",title:Ji,onClick:rr=>{yr(),(0,qt.l$)(yo)&&yo.props.onClick&&yo.props.onClick(rr)},className:`${_i}-list-item-action`,disabled:eo};if((0,qt.l$)(yo)){const rr=(0,qt.Tm)(yo,Object.assign(Object.assign({},yo.props),{onClick:()=>{}}));return Ct.createElement(Dt.ZP,Object.assign({},Zo,{icon:rr}))}return Ct.createElement(Dt.ZP,Object.assign({},Zo),Ct.createElement("span",null,yo))};Ct.useImperativeHandle(an,()=>({handlePreview:po,handleDownload:Go}));const{getPrefixCls:Ti}=Ct.useContext(hn.E_),Oi=Ti("upload",Ci),bo=Ti(),Do=Ne()(`${Oi}-list`,`${Oi}-list-${_e}`),si=(0,It.Z)(Wi.map(yo=>({key:yo.uid,file:yo})));let Co={motionDeadline:2e3,motionName:`${Oi}-${_e==="picture-card"||_e==="picture-circle"?"animate-inline":"animate"}`,keys:si,motionAppear:Fo};const xr=Ct.useMemo(()=>{const yo=Object.assign({},(0,te.Z)(bo));return delete yo.onAppearEnd,delete yo.onEnterEnd,delete yo.onLeaveEnd,yo},[bo]);return _e!=="picture-card"&&_e!=="picture-circle"&&(Co=Object.assign(Object.assign({},xr),Co)),Ct.createElement("div",{className:Do},Ct.createElement(Oe.CSSMotionList,Object.assign({},Co,{component:!1}),yo=>{let{key:yr,file:_i,className:Ji,style:Zo}=yo;return Ct.createElement(ri,{key:yr,locale:In,prefixCls:Oi,className:Ji,style:Zo,file:_i,items:Wi,progress:Ni,listType:_e,isImgUrl:Kn,showPreviewIcon:Li,showRemoveIcon:Be,showDownloadIcon:ei,removeIcon:Si,previewIcon:ci,downloadIcon:Hi,iconRender:nr,actionIconRender:Bo,itemRender:bi,onPreview:po,onDownload:Go,onClose:Yi})}),Ui&&Ct.createElement(Oe.default,Object.assign({},Co,{visible:Ii,forceRender:!0}),yo=>{let{className:yr,style:_i}=yo;return(0,qt.Tm)(Ui,Ji=>({className:Ne()(Ji.className,yr),style:Object.assign(Object.assign(Object.assign({},_i),{pointerEvents:yr?"none":void 0}),Ji.style)}))}))};var Vi=Ct.forwardRef(Fi),ji=St(17313),qi=St(8378),wo=St(83116),Ei=St(37613),ki=Ie=>{const{componentCls:an,iconCls:_e}=Ie;return{[`${an}-wrapper`]:{[`${an}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Ie.colorFillAlter,border:`${Ie.lineWidth}px dashed ${Ie.colorBorder}`,borderRadius:Ie.borderRadiusLG,cursor:"pointer",transition:`border-color ${Ie.motionDurationSlow}`,[an]:{padding:`${Ie.padding}px 0`},[`${an}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${an}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${an}-disabled):hover`]:{borderColor:Ie.colorPrimaryHover},[`p${an}-drag-icon`]:{marginBottom:Ie.margin,[_e]:{color:Ie.colorPrimary,fontSize:Ie.uploadThumbnailSize}},[`p${an}-text`]:{margin:`0 0 ${Ie.marginXXS}px`,color:Ie.colorTextHeading,fontSize:Ie.fontSizeLG},[`p${an}-hint`]:{color:Ie.colorTextDescription,fontSize:Ie.fontSize},[`&${an}-disabled`]:{cursor:"not-allowed",[`p${an}-drag-icon ${_e},
|
|
|
p${an}-text,
|
|
|
p${an}-hint
|
|
|
`]:{color:Ie.colorTextDisabled}}}}}},Mo=Ie=>{const{componentCls:an,antCls:_e,iconCls:rn,fontSize:pn,lineHeight:Cn}=Ie,kn=`${an}-list-item`,In=`${kn}-actions`,wn=`${kn}-action`,Kn=Math.round(pn*Cn);return{[`${an}-wrapper`]:{[`${an}-list`]:Object.assign(Object.assign({},(0,ji.dF)()),{lineHeight:Ie.lineHeight,[kn]:{position:"relative",height:Ie.lineHeight*pn,marginTop:Ie.marginXS,fontSize:pn,display:"flex",alignItems:"center",transition:`background-color ${Ie.motionDurationSlow}`,"&:hover":{backgroundColor:Ie.controlItemBgHover},[`${kn}-name`]:Object.assign(Object.assign({},ji.vS),{padding:`0 ${Ie.paddingXS}px`,lineHeight:Cn,flex:"auto",transition:`all ${Ie.motionDurationSlow}`}),[In]:{[wn]:{opacity:0},[`${wn}${_e}-btn-sm`]:{height:Kn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${wn}:focus-visible,
|
|
|
&.picture ${wn}
|
|
|
`]:{opacity:1},[rn]:{color:Ie.actionsColor,transition:`all ${Ie.motionDurationSlow}`},[`&:hover ${rn}`]:{color:Ie.colorText}},[`${an}-icon ${rn}`]:{color:Ie.colorTextDescription,fontSize:pn},[`${kn}-progress`]:{position:"absolute",bottom:-Ie.uploadProgressOffset,width:"100%",paddingInlineStart:pn+Ie.paddingXS,fontSize:pn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${kn}:hover ${wn}`]:{opacity:1,color:Ie.colorText},[`${kn}-error`]:{color:Ie.colorError,[`${kn}-name, ${an}-icon ${rn}`]:{color:Ie.colorError},[In]:{[`${rn}, ${rn}:hover`]:{color:Ie.colorError},[wn]:{opacity:1}}},[`${an}-list-item-container`]:{transition:`opacity ${Ie.motionDurationSlow}, height ${Ie.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$i=St(9792),En=St(1950);const hi=new $i.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),gi=new $i.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Rn=Ie=>{const{componentCls:an}=Ie,_e=`${an}-animate-inline`;return[{[`${an}-wrapper`]:{[`${_e}-appear, ${_e}-enter, ${_e}-leave`]:{animationDuration:Ie.motionDurationSlow,animationTimingFunction:Ie.motionEaseInOutCirc,animationFillMode:"forwards"},[`${_e}-appear, ${_e}-enter`]:{animationName:hi},[`${_e}-leave`]:{animationName:gi}}},{[`${an}-wrapper`]:(0,En.J$)(Ie)},hi,gi]},Le=St(93398),Fe=St(64993);const he=Ie=>{const{componentCls:an,iconCls:_e,uploadThumbnailSize:rn,uploadProgressOffset:pn}=Ie,Cn=`${an}-list`,kn=`${Cn}-item`;return{[`${an}-wrapper`]:{[`
|
|
|
${Cn}${Cn}-picture,
|
|
|
${Cn}${Cn}-picture-card,
|
|
|
${Cn}${Cn}-picture-circle
|
|
|
`]:{[kn]:{position:"relative",height:rn+Ie.lineWidth*2+Ie.paddingXS*2,padding:Ie.paddingXS,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,borderRadius:Ie.borderRadiusLG,"&:hover":{background:"transparent"},[`${kn}-thumbnail`]:Object.assign(Object.assign({},ji.vS),{width:rn,height:rn,lineHeight:`${rn+Ie.paddingSM}px`,textAlign:"center",flex:"none",[_e]:{fontSize:Ie.fontSizeHeading2,color:Ie.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${kn}-progress`]:{bottom:pn,width:`calc(100% - ${Ie.paddingSM*2}px)`,marginTop:0,paddingInlineStart:rn+Ie.paddingXS}},[`${kn}-error`]:{borderColor:Ie.colorError,[`${kn}-thumbnail ${_e}`]:{[`svg path[fill='${Le.blue[0]}']`]:{fill:Ie.colorErrorBg},[`svg path[fill='${Le.blue.primary}']`]:{fill:Ie.colorError}}},[`${kn}-uploading`]:{borderStyle:"dashed",[`${kn}-name`]:{marginBottom:pn}}},[`${Cn}${Cn}-picture-circle ${kn}`]:{[`&, &::before, ${kn}-thumbnail`]:{borderRadius:"50%"}}}}},_t=Ie=>{const{componentCls:an,iconCls:_e,fontSizeLG:rn,colorTextLightSolid:pn}=Ie,Cn=`${an}-list`,kn=`${Cn}-item`,In=Ie.uploadPicCardSize;return{[`
|
|
|
${an}-wrapper${an}-picture-card-wrapper,
|
|
|
${an}-wrapper${an}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,ji.dF)()),{display:"inline-block",width:"100%",[`${an}${an}-select`]:{width:In,height:In,marginInlineEnd:Ie.marginXS,marginBottom:Ie.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Ie.colorFillAlter,border:`${Ie.lineWidth}px dashed ${Ie.colorBorder}`,borderRadius:Ie.borderRadiusLG,cursor:"pointer",transition:`border-color ${Ie.motionDurationSlow}`,[`> ${an}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${an}-disabled):hover`]:{borderColor:Ie.colorPrimary}},[`${Cn}${Cn}-picture-card, ${Cn}${Cn}-picture-circle`]:{[`${Cn}-item-container`]:{display:"inline-block",width:In,height:In,marginBlock:`0 ${Ie.marginXS}px`,marginInline:`0 ${Ie.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[kn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Ie.paddingXS*2}px)`,height:`calc(100% - ${Ie.paddingXS*2}px)`,backgroundColor:Ie.colorBgMask,opacity:0,transition:`all ${Ie.motionDurationSlow}`,content:'" "'}},[`${kn}:hover`]:{[`&::before, ${kn}-actions`]:{opacity:1}},[`${kn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Ie.motionDurationSlow}`,[`${_e}-eye, ${_e}-download, ${_e}-delete`]:{zIndex:10,width:rn,margin:`0 ${Ie.marginXXS}px`,fontSize:rn,cursor:"pointer",transition:`all ${Ie.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${kn}-actions, ${kn}-actions:hover`]:{[`${_e}-eye, ${_e}-download, ${_e}-delete`]:{color:new Fe.C(pn).setAlpha(.65).toRgbString(),"&:hover":{color:pn}}},[`${kn}-thumbnail, ${kn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${kn}-name`]:{display:"none",textAlign:"center"},[`${kn}-file + ${kn}-name`]:{position:"absolute",bottom:Ie.margin,display:"block",width:`calc(100% - ${Ie.paddingXS*2}px)`},[`${kn}-uploading`]:{[`&${kn}`]:{backgroundColor:Ie.colorFillAlter},[`&::before, ${_e}-eye, ${_e}-download, ${_e}-delete`]:{display:"none"}},[`${kn}-progress`]:{bottom:Ie.marginXL,width:`calc(100% - ${Ie.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${an}-wrapper${an}-picture-circle-wrapper`]:{[`${an}${an}-select`]:{borderRadius:"50%"}}}};var tn=Ie=>{const{componentCls:an}=Ie;return{[`${an}-rtl`]:{direction:"rtl"}}};const Se=Ie=>{const{componentCls:an,colorTextDisabled:_e}=Ie;return{[`${an}-wrapper`]:Object.assign(Object.assign({},(0,ji.Wf)(Ie)),{[an]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${an}-select`]:{display:"inline-block"},[`${an}-disabled`]:{color:_e,cursor:"not-allowed"}})}};var Yt=(0,wo.Z)("Upload",Ie=>{const{fontSizeHeading3:an,fontSize:_e,lineHeight:rn,lineWidth:pn,controlHeightLG:Cn}=Ie,kn=Math.round(_e*rn),In=(0,Ei.TS)(Ie,{uploadThumbnailSize:an*2,uploadProgressOffset:kn/2+pn,uploadPicCardSize:Cn*2.55});return[Se(In),ki(In),he(In),_t(In),Mo(In),Rn(In),tn(In),(0,qi.Z)(In)]},Ie=>({actionsColor:Ie.colorTextDescription})),$e=function(Ie,an,_e,rn){function pn(Cn){return Cn instanceof _e?Cn:new _e(function(kn){kn(Cn)})}return new(_e||(_e=Promise))(function(Cn,kn){function In(Ci){try{Kn(rn.next(Ci))}catch(Wi){kn(Wi)}}function wn(Ci){try{Kn(rn.throw(Ci))}catch(Wi){kn(Wi)}}function Kn(Ci){Ci.done?Cn(Ci.value):pn(Ci.value).then(In,wn)}Kn((rn=rn.apply(Ie,an||[])).next())})};const on=`__LIST_IGNORE_${Date.now()}__`,zn=(Ie,an)=>{const{fileList:_e,defaultFileList:rn,onRemove:pn,showUploadList:Cn=!0,listType:kn="text",onPreview:In,onDownload:wn,onChange:Kn,onDrop:Ci,previewFile:Wi,disabled:Li,locale:Be,iconRender:ei,isImageUrl:Si,progress:ci,prefixCls:Hi,className:Ni,type:Ui="select",children:Ii,style:bi,itemRender:eo,maxCount:xn,data:Fo={},multiple:Ln=!1,action:po="",accept:Go="",supportServerRender:Yi=!0,rootClassName:nr}=Ie,Bo=Ct.useContext(ge.Z),Ti=Li!=null?Li:Bo,[Oi,bo]=(0,Ye.Z)(rn||[],{value:_e,postState:Qo=>Qo!=null?Qo:[]}),[Do,si]=Ct.useState("drop"),Zt=Ct.useRef(null);Ct.useMemo(()=>{const Qo=Date.now();(_e||[]).forEach((Tr,ha)=>{!Tr.uid&&!Object.isFrozen(Tr)&&(Tr.uid=`__AUTO__${Qo}_${ha}__`)})},[_e]);const Co=(Qo,Tr,ha)=>{let Cr=(0,It.Z)(Tr),or=!1;xn===1?Cr=Cr.slice(-1):xn&&(or=Cr.length>xn,Cr=Cr.slice(0,xn)),(0,je.flushSync)(()=>{bo(Cr)});const Br={file:Qo,fileList:Cr};ha&&(Br.event=ha),(!or||Cr.some(Ua=>Ua.uid===Qo.uid))&&(0,je.flushSync)(()=>{Kn==null||Kn(Br)})},xr=(Qo,Tr)=>$e(void 0,void 0,void 0,function*(){const{beforeUpload:ha,transformFile:Cr}=Ie;let or=Qo;if(ha){const Br=yield ha(Qo,Tr);if(Br===!1)return!1;if(delete Qo[on],Br===on)return Object.defineProperty(Qo,on,{value:!0,configurable:!0}),!1;typeof Br=="object"&&Br&&(or=Br)}return Cr&&(or=yield Cr(or)),or}),yo=Qo=>{const Tr=Qo.filter(or=>!or.file[on]);if(!Tr.length)return;const ha=Tr.map(or=>xt(or.file));let Cr=(0,It.Z)(Oi);ha.forEach(or=>{Cr=mt(or,Cr)}),ha.forEach((or,Br)=>{let Ua=or;if(Tr[Br].parsedFile)or.status="uploading";else{const{originFileObj:No}=or;let dr;try{dr=new File([No],No.name,{type:No.type})}catch(ur){dr=new Blob([No],{type:No.type}),dr.name=No.name,dr.lastModifiedDate=new Date,dr.lastModified=new Date().getTime()}dr.uid=or.uid,Ua=dr}Co(Ua,Cr)})},yr=(Qo,Tr,ha)=>{try{typeof Qo=="string"&&(Qo=JSON.parse(Qo))}catch(Br){}if(!Mt(Tr,Oi))return;const Cr=xt(Tr);Cr.status="done",Cr.percent=100,Cr.response=Qo,Cr.xhr=ha;const or=mt(Cr,Oi);Co(Cr,or)},_i=(Qo,Tr)=>{if(!Mt(Tr,Oi))return;const ha=xt(Tr);ha.status="uploading",ha.percent=Qo.percent;const Cr=mt(ha,Oi);Co(ha,Cr,Qo)},Ji=(Qo,Tr,ha)=>{if(!Mt(ha,Oi))return;const Cr=xt(ha);Cr.error=Qo,Cr.response=Tr,Cr.status="error";const or=mt(Cr,Oi);Co(Cr,or)},Zo=Qo=>{let Tr;Promise.resolve(typeof pn=="function"?pn(Qo):pn).then(ha=>{var Cr;if(ha===!1)return;const or=Rt(Qo,Oi);or&&(Tr=Object.assign(Object.assign({},Qo),{status:"removed"}),Oi==null||Oi.forEach(Br=>{const Ua=Tr.uid!==void 0?"uid":"name";Br[Ua]===Tr[Ua]&&!Object.isFrozen(Br)&&(Br.status="removed")}),(Cr=Zt.current)===null||Cr===void 0||Cr.abort(Tr),Co(Tr,or))})},rr=Qo=>{si(Qo.type),Qo.type==="drop"&&(Ci==null||Ci(Qo))};Ct.useImperativeHandle(an,()=>({onBatchStart:yo,onSuccess:yr,onProgress:_i,onError:Ji,fileList:Oi,upload:Zt.current}));const{getPrefixCls:Ao,direction:kr,upload:Ki}=Ct.useContext(hn.E_),zi=Ao("upload",Hi),co=Object.assign(Object.assign({onBatchStart:yo,onError:Ji,onProgress:_i,onSuccess:yr},Ie),{data:Fo,multiple:Ln,action:po,accept:Go,supportServerRender:Yi,prefixCls:zi,disabled:Ti,beforeUpload:xr,onChange:void 0});delete co.className,delete co.style,(!Ii||Ti)&&delete co.id;const[Yn,ar]=Yt(zi),[wr]=(0,Ht.Z)("Upload",Ce.Z.Upload),{showRemoveIcon:ia,showPreviewIcon:sr,showDownloadIcon:ir,removeIcon:Fr,previewIcon:Qr,downloadIcon:$r}=typeof Cn=="boolean"?{}:Cn,qa=(Qo,Tr)=>Cn?Ct.createElement(Vi,{prefixCls:zi,listType:kn,items:Oi,previewFile:Wi,onPreview:In,onDownload:wn,onRemove:Zo,showRemoveIcon:!Ti&&ia,showPreviewIcon:sr,showDownloadIcon:ir,removeIcon:Fr,previewIcon:Qr,downloadIcon:$r,iconRender:ei,locale:Object.assign(Object.assign({},wr),Be),isImageUrl:Si,progress:ci,appendAction:Qo,appendActionVisible:Tr,itemRender:eo,disabled:Ti}):Qo,Ea=Ne()(`${zi}-wrapper`,Ni,nr,ar,Ki==null?void 0:Ki.className,{[`${zi}-rtl`]:kr==="rtl",[`${zi}-picture-card-wrapper`]:kn==="picture-card",[`${zi}-picture-circle-wrapper`]:kn==="picture-circle"}),gn=Object.assign(Object.assign({},Ki==null?void 0:Ki.style),bi);if(Ui==="drag"){const Qo=Ne()(ar,zi,`${zi}-drag`,{[`${zi}-drag-uploading`]:Oi.some(Tr=>Tr.status==="uploading"),[`${zi}-drag-hover`]:Do==="dragover",[`${zi}-disabled`]:Ti,[`${zi}-rtl`]:kr==="rtl"});return Yn(Ct.createElement("span",{className:Ea},Ct.createElement("div",{className:Qo,style:gn,onDrop:rr,onDragOver:rr,onDragLeave:rr},Ct.createElement(qe,Object.assign({},co,{ref:Zt,className:`${zi}-btn`}),Ct.createElement("div",{className:`${zi}-drag-container`},Ii))),qa()))}const La=Ne()(zi,`${zi}-select`,{[`${zi}-disabled`]:Ti}),js=(Qo=>Ct.createElement("div",{className:La,style:Qo},Ct.createElement(qe,Object.assign({},co,{ref:Zt}))))(Ii?void 0:{display:"none"});return Yn(kn==="picture-card"||kn==="picture-circle"?Ct.createElement("span",{className:Ea},qa(js,!!Ii)):Ct.createElement("span",{className:Ea},js,qa()))};var xe=Ct.forwardRef(zn),vn=function(Ie,an){var _e={};for(var rn in Ie)Object.prototype.hasOwnProperty.call(Ie,rn)&&an.indexOf(rn)<0&&(_e[rn]=Ie[rn]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pn=0,rn=Object.getOwnPropertySymbols(Ie);pn<rn.length;pn++)an.indexOf(rn[pn])<0&&Object.prototype.propertyIsEnumerable.call(Ie,rn[pn])&&(_e[rn[pn]]=Ie[rn[pn]]);return _e},qn=Ct.forwardRef((Ie,an)=>{var{style:_e,height:rn}=Ie,pn=vn(Ie,["style","height"]);return Ct.createElement(xe,Object.assign({ref:an},pn,{type:"drag",style:Object.assign(Object.assign({},_e),{height:rn})}))});const We=xe;We.Dragger=qn,We.LIST_IGNORE=on;var fn=We},99498:function(Dn,An,St){(function(Ct){Ct(St(89780))})(function(Ct){Ct.defineOption("placeholder","",function(ze,we,oe){var ve=oe&&oe!=Ct.Init;if(we&&!ve)ze.on("blur",Vt),ze.on("change",fe),ze.on("swapDoc",fe),Ct.on(ze.getInputField(),"compositionupdate",ze.state.placeholderCompose=function(){Ne(ze)}),fe(ze);else if(!we&&ve){ze.off("blur",Vt),ze.off("change",fe),ze.off("swapDoc",fe),Ct.off(ze.getInputField(),"compositionupdate",ze.state.placeholderCompose),It(ze);var ye=ze.getWrapperElement();ye.className=ye.className.replace(" CodeMirror-empty","")}we&&!ze.hasFocus()&&Vt(ze)});function It(ze){ze.state.placeholder&&(ze.state.placeholder.parentNode.removeChild(ze.state.placeholder),ze.state.placeholder=null)}function ee(ze){It(ze);var we=ze.state.placeholder=document.createElement("pre");we.style.cssText="height: 0; overflow: visible",we.style.direction=ze.getOption("direction"),we.className="CodeMirror-placeholder CodeMirror-line-like";var oe=ze.getOption("placeholder");typeof oe=="string"&&(oe=document.createTextNode(oe)),we.appendChild(oe),ze.display.lineSpace.insertBefore(we,ze.display.lineSpace.firstChild)}function Ne(ze){setTimeout(function(){var we=!1,oe=ze.getInputField();oe.nodeName=="TEXTAREA"?we=!oe.value:ze.lineCount()==1&&(we=!/[^\u200b]/.test(oe.querySelector(".CodeMirror-line").textContent)),we?ee(ze):It(ze)},20)}function Vt(ze){Ft(ze)&&ee(ze)}function fe(ze){var we=ze.getWrapperElement(),oe=Ft(ze);we.className=we.className.replace(" CodeMirror-empty","")+(oe?" CodeMirror-empty":""),oe?ee(ze):It(ze)}function Ft(ze){return ze.lineCount()===1&&ze.getLine(0)===""}})},25717:function(Dn,An,St){(function(Ct){Ct(St(89780))})(function(Ct){var It={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ee=Ct.Pos;Ct.defineOption("autoCloseBrackets",!1,function(et,nt,ht){ht&&ht!=Ct.Init&&(et.removeKeyMap(Vt),et.state.closeBrackets=null),nt&&(fe(Ne(nt,"pairs")),et.state.closeBrackets=nt,et.addKeyMap(Vt))});function Ne(et,nt){return nt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[nt]!=null?et[nt]:It[nt]}var Vt={Backspace:we,Enter:oe};function fe(et){for(var nt=0;nt<et.length;nt++){var ht=et.charAt(nt),st="'"+ht+"'";Vt[st]||(Vt[st]=Ft(ht))}}fe(It.pairs+"`");function Ft(et){return function(nt){return ye(nt,et)}}function ze(et){var nt=et.state.closeBrackets;if(!nt||nt.override)return nt;var ht=et.getModeAt(et.getCursor());return ht.closeBrackets||nt}function we(et){var nt=ze(et);if(!nt||et.getOption("disableInput"))return Ct.Pass;for(var ht=Ne(nt,"pairs"),st=et.listSelections(),gt=0;gt<st.length;gt++){if(!st[gt].empty())return Ct.Pass;var vt=Re(et,st[gt].head);if(!vt||ht.indexOf(vt)%2!=0)return Ct.Pass}for(var gt=st.length-1;gt>=0;gt--){var wt=st[gt].head;et.replaceRange("",ee(wt.line,wt.ch-1),ee(wt.line,wt.ch+1),"+delete")}}function oe(et){var nt=ze(et),ht=nt&&Ne(nt,"explode");if(!ht||et.getOption("disableInput"))return Ct.Pass;for(var st=et.listSelections(),gt=0;gt<st.length;gt++){if(!st[gt].empty())return Ct.Pass;var vt=Re(et,st[gt].head);if(!vt||ht.indexOf(vt)%2!=0)return Ct.Pass}et.operation(function(){var wt=et.lineSeparator()||`
|
|
|
`;et.replaceSelection(wt+wt,null),et.execCommand("goCharLeft"),st=et.listSelections();for(var Bt=0;Bt<st.length;Bt++){var kt=st[Bt].head.line;et.indentLine(kt,null,!0),et.indentLine(kt+1,null,!0)}})}function ve(et){var nt=Ct.cmpPos(et.anchor,et.head)>0;return{anchor:new ee(et.anchor.line,et.anchor.ch+(nt?-1:1)),head:new ee(et.head.line,et.head.ch+(nt?1:-1))}}function ye(et,nt){var ht=ze(et);if(!ht||et.getOption("disableInput"))return Ct.Pass;var st=Ne(ht,"pairs"),gt=st.indexOf(nt);if(gt==-1)return Ct.Pass;for(var vt=Ne(ht,"closeBefore"),wt=Ne(ht,"triples"),Bt=st.charAt(gt+1)==nt,kt=et.listSelections(),Ot=gt%2==0,jt,Xt=0;Xt<kt.length;Xt++){var Ut=kt[Xt],de=Ut.head,Gt,Ve=et.getRange(de,ee(de.line,de.ch+1));if(Ot&&!Ut.empty())Gt="surround";else if((Bt||!Ot)&&Ve==nt)Bt&&Tt(et,de)?Gt="both":wt.indexOf(nt)>=0&&et.getRange(de,ee(de.line,de.ch+3))==nt+nt+nt?Gt="skipThree":Gt="skip";else if(Bt&&de.ch>1&&wt.indexOf(nt)>=0&&et.getRange(ee(de.line,de.ch-2),de)==nt+nt){if(de.ch>2&&/\bstring/.test(et.getTokenTypeAt(ee(de.line,de.ch-2))))return Ct.Pass;Gt="addFour"}else if(Bt){var me=de.ch==0?" ":et.getRange(ee(de.line,de.ch-1),de);if(!Ct.isWordChar(Ve)&&me!=nt&&!Ct.isWordChar(me))Gt="both";else return Ct.Pass}else if(Ot&&(Ve.length===0||/\s/.test(Ve)||vt.indexOf(Ve)>-1))Gt="both";else return Ct.Pass;if(!jt)jt=Gt;else if(jt!=Gt)return Ct.Pass}var sn=gt%2?st.charAt(gt-1):nt,qe=gt%2?nt:st.charAt(gt+1);et.operation(function(){if(jt=="skip")et.execCommand("goCharRight");else if(jt=="skipThree")for(var Ye=0;Ye<3;Ye++)et.execCommand("goCharRight");else if(jt=="surround"){for(var je=et.getSelections(),Ye=0;Ye<je.length;Ye++)je[Ye]=sn+je[Ye]+qe;et.replaceSelections(je,"around"),je=et.listSelections().slice();for(var Ye=0;Ye<je.length;Ye++)je[Ye]=ve(je[Ye]);et.setSelections(je)}else jt=="both"?(et.replaceSelection(sn+qe,null),et.triggerElectric(sn+qe),et.execCommand("goCharLeft")):jt=="addFour"&&(et.replaceSelection(sn+sn+sn+sn,"before"),et.execCommand("goCharRight"))})}function Re(et,nt){var ht=et.getRange(ee(nt.line,nt.ch-1),ee(nt.line,nt.ch+1));return ht.length==2?ht:null}function Tt(et,nt){var ht=et.getTokenAt(ee(nt.line,nt.ch+1));return/\bstring/.test(ht.type)&&ht.start==nt.ch&&(nt.ch==0||!/\bstring/.test(et.getTokenTypeAt(nt)))}})},6313:function(Dn,An,St){(function(Ct){Ct(St(89780),St(32855))})(function(Ct){Ct.defineOption("autoCloseTags",!1,function(we,oe,ve){if(ve!=Ct.Init&&ve&&we.removeKeyMap("autoCloseTags"),!!oe){var ye={name:"autoCloseTags"};(typeof oe!="object"||oe.whenClosing!==!1)&&(ye["'/'"]=function(Re){return fe(Re)}),(typeof oe!="object"||oe.whenOpening!==!1)&&(ye["'>'"]=function(Re){return Ne(Re)}),we.addKeyMap(ye)}});var It=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ee=["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 Ne(we){if(we.getOption("disableInput"))return Ct.Pass;for(var oe=we.listSelections(),ve=[],ye=we.getOption("autoCloseTags"),Re=0;Re<oe.length;Re++){if(!oe[Re].empty())return Ct.Pass;var Tt=oe[Re].head,et=we.getTokenAt(Tt),nt=Ct.innerMode(we.getMode(),et.state),ht=nt.state,st=nt.mode.xmlCurrentTag&&nt.mode.xmlCurrentTag(ht),gt=st&&st.name;if(!gt)return Ct.Pass;var vt=nt.mode.configuration=="html",wt=typeof ye=="object"&&ye.dontCloseTags||vt&&It,Bt=typeof ye=="object"&&ye.indentTags||vt&ⅇet.end>Tt.ch&&(gt=gt.slice(0,gt.length-et.end+Tt.ch));var kt=gt.toLowerCase();if(!gt||et.type=="string"&&(et.end!=Tt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&st.close||et.string.indexOf("/")==Tt.ch-et.start-1||wt&&Ft(wt,kt)>-1||ze(we,nt.mode.xmlCurrentContext&&nt.mode.xmlCurrentContext(ht)||[],gt,Tt,!0))return Ct.Pass;var Ot=typeof ye=="object"&&ye.emptyTags;if(Ot&&Ft(Ot,gt)>-1){ve[Re]={text:"/>",newPos:Ct.Pos(Tt.line,Tt.ch+2)};continue}var jt=Bt&&Ft(Bt,kt)>-1;ve[Re]={indent:jt,text:">"+(jt?`
|
|
|
|
|
|
`:"")+"</"+gt+">",newPos:jt?Ct.Pos(Tt.line+1,0):Ct.Pos(Tt.line,Tt.ch+1)}}for(var Xt=typeof ye=="object"&&ye.dontIndentOnAutoClose,Re=oe.length-1;Re>=0;Re--){var Ut=ve[Re];we.replaceRange(Ut.text,oe[Re].head,oe[Re].anchor,"+insert");var de=we.listSelections().slice(0);de[Re]={head:Ut.newPos,anchor:Ut.newPos},we.setSelections(de),!Xt&&Ut.indent&&(we.indentLine(Ut.newPos.line,null,!0),we.indentLine(Ut.newPos.line+1,null,!0))}}function Vt(we,oe){for(var ve=we.listSelections(),ye=[],Re=oe?"/":"</",Tt=we.getOption("autoCloseTags"),et=typeof Tt=="object"&&Tt.dontIndentOnSlash,nt=0;nt<ve.length;nt++){if(!ve[nt].empty())return Ct.Pass;var ht=ve[nt].head,st=we.getTokenAt(ht),gt=Ct.innerMode(we.getMode(),st.state),vt=gt.state;if(oe&&(st.type=="string"||st.string.charAt(0)!="<"||st.start!=ht.ch-1))return Ct.Pass;var wt,Bt=gt.mode.name!="xml"&&we.getMode().name=="htmlmixed";if(Bt&>.mode.name=="javascript")wt=Re+"script";else if(Bt&>.mode.name=="css")wt=Re+"style";else{var kt=gt.mode.xmlCurrentContext&>.mode.xmlCurrentContext(vt);if(!kt||kt.length&&ze(we,kt,kt[kt.length-1],ht))return Ct.Pass;wt=Re+kt[kt.length-1]}we.getLine(ht.line).charAt(st.end)!=">"&&(wt+=">"),ye[nt]=wt}if(we.replaceSelections(ye),ve=we.listSelections(),!et)for(var nt=0;nt<ve.length;nt++)(nt==ve.length-1||ve[nt].head.line<ve[nt+1].head.line)&&we.indentLine(ve[nt].head.line)}function fe(we){return we.getOption("disableInput")?Ct.Pass:Vt(we,!0)}Ct.commands.closeTag=function(we){return Vt(we)};function Ft(we,oe){if(we.indexOf)return we.indexOf(oe);for(var ve=0,ye=we.length;ve<ye;++ve)if(we[ve]==oe)return ve;return-1}function ze(we,oe,ve,ye,Re){if(!Ct.scanForClosingTag)return!1;var Tt=Math.min(we.lastLine()+1,ye.line+500),et=Ct.scanForClosingTag(we,ye,null,Tt);if(!et||et.tag!=ve)return!1;for(var nt=Re?1:0,ht=oe.length-1;ht>=0&&oe[ht]==ve;ht--)++nt;ye=et.to;for(var ht=1;ht<nt;ht++){var st=Ct.scanForClosingTag(we,ye,null,Tt);if(!st||st.tag!=ve)return!1;ye=st.to}return!0}})},32855:function(Dn,An,St){(function(Ct){Ct(St(89780))})(function(Ct){"use strict";var It=Ct.Pos;function ee(ht,st){return ht.line-st.line||ht.ch-st.ch}var Ne="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",Vt=Ne+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",fe=new RegExp("<(/?)(["+Ne+"]["+Vt+"]*)","g");function Ft(ht,st,gt,vt){this.line=st,this.ch=gt,this.cm=ht,this.text=ht.getLine(st),this.min=vt?Math.max(vt.from,ht.firstLine()):ht.firstLine(),this.max=vt?Math.min(vt.to-1,ht.lastLine()):ht.lastLine()}function ze(ht,st){var gt=ht.cm.getTokenTypeAt(It(ht.line,st));return gt&&/\btag\b/.test(gt)}function we(ht){if(!(ht.line>=ht.max))return ht.ch=0,ht.text=ht.cm.getLine(++ht.line),!0}function oe(ht){if(!(ht.line<=ht.min))return ht.text=ht.cm.getLine(--ht.line),ht.ch=ht.text.length,!0}function ve(ht){for(;;){var st=ht.text.indexOf(">",ht.ch);if(st==-1){if(we(ht))continue;return}if(!ze(ht,st+1)){ht.ch=st+1;continue}var gt=ht.text.lastIndexOf("/",st),vt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,st));return ht.ch=st+1,vt?"selfClose":"regular"}}function ye(ht){for(;;){var st=ht.ch?ht.text.lastIndexOf("<",ht.ch-1):-1;if(st==-1){if(oe(ht))continue;return}if(!ze(ht,st+1)){ht.ch=st;continue}fe.lastIndex=st,ht.ch=st;var gt=fe.exec(ht.text);if(gt&>.index==st)return gt}}function Re(ht){for(;;){fe.lastIndex=ht.ch;var st=fe.exec(ht.text);if(!st){if(we(ht))continue;return}if(!ze(ht,st.index+1)){ht.ch=st.index+1;continue}return ht.ch=st.index+st[0].length,st}}function Tt(ht){for(;;){var st=ht.ch?ht.text.lastIndexOf(">",ht.ch-1):-1;if(st==-1){if(oe(ht))continue;return}if(!ze(ht,st+1)){ht.ch=st;continue}var gt=ht.text.lastIndexOf("/",st),vt=gt>-1&&!/\S/.test(ht.text.slice(gt+1,st));return ht.ch=st+1,vt?"selfClose":"regular"}}function et(ht,st){for(var gt=[];;){var vt=Re(ht),wt,Bt=ht.line,kt=ht.ch-(vt?vt[0].length:0);if(!vt||!(wt=ve(ht)))return;if(wt!="selfClose")if(vt[1]){for(var Ot=gt.length-1;Ot>=0;--Ot)if(gt[Ot]==vt[2]){gt.length=Ot;break}if(Ot<0&&(!st||st==vt[2]))return{tag:vt[2],from:It(Bt,kt),to:It(ht.line,ht.ch)}}else gt.push(vt[2])}}function nt(ht,st){for(var gt=[];;){var vt=Tt(ht);if(!vt)return;if(vt=="selfClose"){ye(ht);continue}var wt=ht.line,Bt=ht.ch,kt=ye(ht);if(!kt)return;if(kt[1])gt.push(kt[2]);else{for(var Ot=gt.length-1;Ot>=0;--Ot)if(gt[Ot]==kt[2]){gt.length=Ot;break}if(Ot<0&&(!st||st==kt[2]))return{tag:kt[2],from:It(ht.line,ht.ch),to:It(wt,Bt)}}}}Ct.registerHelper("fold","xml",function(ht,st){for(var gt=new Ft(ht,st.line,0);;){var vt=Re(gt);if(!vt||gt.line!=st.line)return;var wt=ve(gt);if(!wt)return;if(!vt[1]&&wt!="selfClose"){var Bt=It(gt.line,gt.ch),kt=et(gt,vt[2]);return kt&&ee(kt.from,Bt)>0?{from:Bt,to:kt.from}:null}}}),Ct.findMatchingTag=function(ht,st,gt){var vt=new Ft(ht,st.line,st.ch,gt);if(!(vt.text.indexOf(">")==-1&&vt.text.indexOf("<")==-1)){var wt=ve(vt),Bt=wt&&It(vt.line,vt.ch),kt=wt&&ye(vt);if(!(!wt||!kt||ee(vt,st)>0)){var Ot={from:It(vt.line,vt.ch),to:Bt,tag:kt[2]};return wt=="selfClose"?{open:Ot,close:null,at:"open"}:kt[1]?{open:nt(vt,kt[2]),close:Ot,at:"close"}:(vt=new Ft(ht,Bt.line,Bt.ch,gt),{open:Ot,close:et(vt,kt[2]),at:"open"})}}},Ct.findEnclosingTag=function(ht,st,gt,vt){for(var wt=new Ft(ht,st.line,st.ch,gt);;){var Bt=nt(wt,vt);if(!Bt)break;var kt=new Ft(ht,st.line,st.ch,gt),Ot=et(kt,Bt.tag);if(Ot)return{open:Bt,close:Ot}}},Ct.scanForClosingTag=function(ht,st,gt,vt){var wt=new Ft(ht,st.line,st.ch,vt?{from:0,to:vt}:null);return et(wt,gt)}})},89780:function(Dn){(function(An,St){Dn.exports=St()})(this,function(){"use strict";var An=navigator.userAgent,St=navigator.platform,Ct=/gecko\/\d/i.test(An),It=/MSIE \d/.test(An),ee=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(An),Ne=/Edge\/(\d+)/.exec(An),Vt=It||ee||Ne,fe=Vt&&(It?document.documentMode||6:+(Ne||ee)[1]),Ft=!Ne&&/WebKit\//.test(An),ze=Ft&&/Qt\/\d+\.\d+/.test(An),we=!Ne&&/Chrome\//.test(An),oe=/Opera\//.test(An),ve=/Apple Computer/.test(navigator.vendor),ye=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(An),Re=/PhantomJS/.test(An),Tt=!Ne&&/AppleWebKit/.test(An)&&/Mobile\/\w+/.test(An),et=/Android/.test(An),nt=Tt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(An),ht=Tt||/Mac/.test(St),st=/\bCrOS\b/.test(An),gt=/win/i.test(St),vt=oe&&An.match(/Version\/(\d*\.\d*)/);vt&&(vt=Number(vt[1])),vt&&vt>=15&&(oe=!1,Ft=!0);var wt=ht&&(ze||oe&&(vt==null||vt<12.11)),Bt=Ct||Vt&&fe>=9;function kt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Ot=function(it,at){var ct=it.className,dt=kt(at).exec(ct);if(dt){var pt=ct.slice(dt.index+dt[0].length);it.className=ct.slice(0,dt.index)+(pt?dt[1]+pt:"")}};function jt(it){for(var at=it.childNodes.length;at>0;--at)it.removeChild(it.firstChild);return it}function Xt(it,at){return jt(it).appendChild(at)}function Ut(it,at,ct,dt){var pt=document.createElement(it);if(ct&&(pt.className=ct),dt&&(pt.style.cssText=dt),typeof at=="string")pt.appendChild(document.createTextNode(at));else if(at)for(var At=0;At<at.length;++At)pt.appendChild(at[At]);return pt}function de(it,at,ct,dt){var pt=Ut(it,at,ct,dt);return pt.setAttribute("role","presentation"),pt}var Gt;document.createRange?Gt=function(it,at,ct,dt){var pt=document.createRange();return pt.setEnd(dt||it,ct),pt.setStart(it,at),pt}:Gt=function(it,at,ct){var dt=document.body.createTextRange();try{dt.moveToElementText(it.parentNode)}catch(pt){return dt}return dt.collapse(!0),dt.moveEnd("character",ct),dt.moveStart("character",at),dt};function Ve(it,at){if(at.nodeType==3&&(at=at.parentNode),it.contains)return it.contains(at);do if(at.nodeType==11&&(at=at.host),at==it)return!0;while(at=at.parentNode)}function me(){var it;try{it=document.activeElement}catch(at){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function sn(it,at){var ct=it.className;kt(at).test(ct)||(it.className+=(ct?" ":"")+at)}function qe(it,at){for(var ct=it.split(" "),dt=0;dt<ct.length;dt++)ct[dt]&&!kt(ct[dt]).test(at)&&(at+=" "+ct[dt]);return at}var Ye=function(it){it.select()};Tt?Ye=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Vt&&(Ye=function(it){try{it.select()}catch(at){}});function je(it){var at=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,at)}}function hn(it,at,ct){at||(at={});for(var dt in it)it.hasOwnProperty(dt)&&(ct!==!1||!at.hasOwnProperty(dt))&&(at[dt]=it[dt]);return at}function ge(it,at,ct,dt,pt){at==null&&(at=it.search(/[^\s\u00a0]/),at==-1&&(at=it.length));for(var At=dt||0,zt=pt||0;;){var $t=it.indexOf(" ",At);if($t<0||$t>=at)return zt+(at-At);zt+=$t-At,zt+=ct-zt%ct,At=$t+1}}var Ht=function(){this.id=null,this.f=null,this.time=0,this.handler=je(this.onTimeout,this)};Ht.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Ht.prototype.set=function(it,at){this.f=at;var ct=+new Date+it;(!this.id||ct<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=ct)};function Ce(it,at){for(var ct=0;ct<it.length;++ct)if(it[ct]==at)return ct;return-1}var bn=50,yn={toString:function(){return"CodeMirror.Pass"}},Ae={scroll:!1},Ue={origin:"*mouse"},Sn={origin:"+move"};function Xn(it,at,ct){for(var dt=0,pt=0;;){var At=it.indexOf(" ",dt);At==-1&&(At=it.length);var zt=At-dt;if(At==it.length||pt+zt>=at)return dt+Math.min(zt,at-pt);if(pt+=At-dt,pt+=ct-pt%ct,dt=At+1,pt>=at)return dt}}var Pn=[""];function Gn(it){for(;Pn.length<=it;)Pn.push(Ee(Pn)+" ");return Pn[it]}function Ee(it){return it[it.length-1]}function Jn(it,at){for(var ct=[],dt=0;dt<it.length;dt++)ct[dt]=at(it[dt],dt);return ct}function ai(it,at,ct){for(var dt=0,pt=ct(at);dt<it.length&&ct(it[dt])<=pt;)dt++;it.splice(dt,0,at)}function ui(){}function ln(it,at){var ct;return Object.create?ct=Object.create(it):(ui.prototype=it,ct=new ui),at&&hn(at,ct),ct}var Te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Me(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||Te.test(it))}function ie(it,at){return at?at.source.indexOf("\\w")>-1&&Me(it)?!0:at.test(it):Me(it)}function Kt(it){for(var at in it)if(it.hasOwnProperty(at)&&it[at])return!1;return!0}var Oe=/[\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 ke(it){return it.charCodeAt(0)>=768&&Oe.test(it)}function te(it,at,ct){for(;(ct<0?at>0:at<it.length)&&ke(it.charAt(at));)at+=ct;return at}function qt(it,at,ct){for(var dt=at>ct?-1:1;;){if(at==ct)return at;var pt=(at+ct)/2,At=dt<0?Math.ceil(pt):Math.floor(pt);if(At==at)return it(At)?at:ct;it(At)?ct=At:at=At+dt}}function Dt(it,at,ct,dt){if(!it)return dt(at,ct,"ltr",0);for(var pt=!1,At=0;At<it.length;++At){var zt=it[At];(zt.from<ct&&zt.to>at||at==ct&&zt.to==at)&&(dt(Math.max(zt.from,at),Math.min(zt.to,ct),zt.level==1?"rtl":"ltr",At),pt=!0)}pt||dt(at,ct,"ltr")}var xt=null;function mt(it,at,ct){var dt;xt=null;for(var pt=0;pt<it.length;++pt){var At=it[pt];if(At.from<at&&At.to>at)return pt;At.to==at&&(At.from!=At.to&&ct=="before"?dt=pt:xt=pt),At.from==at&&(At.from!=At.to&&ct!="before"?dt=pt:xt=pt)}return dt!=null?dt:xt}var Mt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",at="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ct(pe){return pe<=247?it.charAt(pe):1424<=pe&&pe<=1524?"R":1536<=pe&&pe<=1785?at.charAt(pe-1536):1774<=pe&&pe<=2220?"r":8192<=pe&&pe<=8203?"w":pe==8204?"b":"L"}var dt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pt=/[stwN]/,At=/[LRr]/,zt=/[Lb1n]/,$t=/[1n]/;function Jt(pe,un,be){this.level=pe,this.from=un,this.to=be}return function(pe,un){var be=un=="ltr"?"L":"R";if(pe.length==0||un=="ltr"&&!dt.test(pe))return!1;for(var jn=pe.length,Nn=[],pi=0;pi<jn;++pi)Nn.push(ct(pe.charCodeAt(pi)));for(var wi=0,Ri=be;wi<jn;++wi){var so=Nn[wi];so=="m"?Nn[wi]=Ri:Ri=so}for(var ko=0,xo=be;ko<jn;++ko){var Ho=Nn[ko];Ho=="1"&&xo=="r"?Nn[ko]="n":At.test(Ho)&&(xo=Ho,Ho=="r"&&(Nn[ko]="R"))}for(var vr=1,vo=Nn[0];vr<jn-1;++vr){var Nr=Nn[vr];Nr=="+"&&vo=="1"&&Nn[vr+1]=="1"?Nn[vr]="1":Nr==","&&vo==Nn[vr+1]&&(vo=="1"||vo=="n")&&(Nn[vr]=vo),vo=Nr}for(var _a=0;_a<jn;++_a){var Os=Nn[_a];if(Os==",")Nn[_a]="N";else if(Os=="%"){var as=void 0;for(as=_a+1;as<jn&&Nn[as]=="%";++as);for(var Ul=_a&&Nn[_a-1]=="!"||as<jn&&Nn[as]=="1"?"1":"N",vl=_a;vl<as;++vl)Nn[vl]=Ul;_a=as-1}}for(var Fs=0,ou=be;Fs<jn;++Fs){var al=Nn[Fs];ou=="L"&&al=="1"?Nn[Fs]="L":At.test(al)&&(ou=al)}for(var ks=0;ks<jn;++ks)if(pt.test(Nn[ks])){var sa=void 0;for(sa=ks+1;sa<jn&&pt.test(Nn[sa]);++sa);for(var cs=(ks?Nn[ks-1]:be)=="L",Zs=(sa<jn?Nn[sa]:be)=="L",sl=cs==Zs?cs?"L":"R":be,Yu=ks;Yu<sa;++Yu)Nn[Yu]=sl;ks=sa-1}for(var ss=[],Mu,Ss=0;Ss<jn;)if(zt.test(Nn[Ss])){var Sf=Ss;for(++Ss;Ss<jn&&zt.test(Nn[Ss]);++Ss);ss.push(new Jt(0,Sf,Ss))}else{var mu=Ss,ru=ss.length,Yl=un=="rtl"?1:0;for(++Ss;Ss<jn&&Nn[Ss]!="L";++Ss);for(var Oa=mu;Oa<Ss;)if($t.test(Nn[Oa])){mu<Oa&&(ss.splice(ru,0,new Jt(1,mu,Oa)),ru+=Yl);var Ks=Oa;for(++Oa;Oa<Ss&&$t.test(Nn[Oa]);++Oa);ss.splice(ru,0,new Jt(2,Ks,Oa)),ru+=Yl,mu=Oa}else++Oa;mu<Ss&&ss.splice(ru,0,new Jt(1,mu,Ss))}return un=="ltr"&&(ss[0].level==1&&(Mu=pe.match(/^\s+/))&&(ss[0].from=Mu[0].length,ss.unshift(new Jt(0,0,Mu[0].length))),Ee(ss).level==1&&(Mu=pe.match(/\s+$/))&&(Ee(ss).to-=Mu[0].length,ss.push(new Jt(0,jn-Mu[0].length,jn)))),un=="rtl"?ss.reverse():ss}}();function Rt(it,at){var ct=it.order;return ct==null&&(ct=it.order=Mt(it.text,at)),ct}var Et=[],re=function(it,at,ct){if(it.addEventListener)it.addEventListener(at,ct,!1);else if(it.attachEvent)it.attachEvent("on"+at,ct);else{var dt=it._handlers||(it._handlers={});dt[at]=(dt[at]||Et).concat(ct)}};function Qe(it,at){return it._handlers&&it._handlers[at]||Et}function mn(it,at,ct){if(it.removeEventListener)it.removeEventListener(at,ct,!1);else if(it.detachEvent)it.detachEvent("on"+at,ct);else{var dt=it._handlers,pt=dt&&dt[at];if(pt){var At=Ce(pt,ct);At>-1&&(dt[at]=pt.slice(0,At).concat(pt.slice(At+1)))}}}function le(it,at){var ct=Qe(it,at);if(ct.length)for(var dt=Array.prototype.slice.call(arguments,2),pt=0;pt<ct.length;++pt)ct[pt].apply(null,dt)}function Ge(it,at,ct){return typeof at=="string"&&(at={type:at,preventDefault:function(){this.defaultPrevented=!0}}),le(it,ct||at.type,it,at),ri(at)||at.codemirrorIgnore}function cn(it){var at=it._handlers&&it._handlers.cursorActivity;if(at)for(var ct=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),dt=0;dt<at.length;++dt)Ce(ct,at[dt])==-1&&ct.push(at[dt])}function Mn(it,at){return Qe(it,at).length>0}function Zn(it){it.prototype.on=function(at,ct){re(this,at,ct)},it.prototype.off=function(at,ct){mn(this,at,ct)}}function _n(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function di(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function ri(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function Fi(it){_n(it),di(it)}function Zi(it){return it.target||it.srcElement}function Vi(it){var at=it.which;return at==null&&(it.button&1?at=1:it.button&2?at=3:it.button&4&&(at=2)),ht&&it.ctrlKey&&at==1&&(at=3),at}var ji=function(){if(Vt&&fe<9)return!1;var it=Ut("div");return"draggable"in it||"dragDrop"in it}(),qi;function wo(it){if(qi==null){var at=Ut("span","\u200B");Xt(it,Ut("span",[at,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(qi=at.offsetWidth<=1&&at.offsetHeight>2&&!(Vt&&fe<8))}var ct=qi?Ut("span","\u200B"):Ut("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ct.setAttribute("cm-text",""),ct}var Ei;function Po(it){if(Ei!=null)return Ei;var at=Xt(it,document.createTextNode("A\u062EA")),ct=Gt(at,0,1).getBoundingClientRect(),dt=Gt(at,1,2).getBoundingClientRect();return jt(it),!ct||ct.left==ct.right?!1:Ei=dt.right-ct.right<3}var ki=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var at=0,ct=[],dt=it.length;at<=dt;){var pt=it.indexOf(`
|
|
|
`,at);pt==-1&&(pt=it.length);var At=it.slice(at,it.charAt(pt-1)=="\r"?pt-1:pt),zt=At.indexOf("\r");zt!=-1?(ct.push(At.slice(0,zt)),at+=zt+1):(ct.push(At),at=pt+1)}return ct}:function(it){return it.split(/\r\n?|\n/)},Lt=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(at){return!1}}:function(it){var at;try{at=it.ownerDocument.selection.createRange()}catch(ct){}return!at||at.parentElement()!=it?!1:at.compareEndPoints("StartToEnd",at)!=0},Mo=function(){var it=Ut("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),$i=null;function En(it){if($i!=null)return $i;var at=Xt(it,Ut("span","x")),ct=at.getBoundingClientRect(),dt=Gt(at,0,1).getBoundingClientRect();return $i=Math.abs(ct.left-dt.left)>1}var hi={},gi={};function Pi(it,at){arguments.length>2&&(at.dependencies=Array.prototype.slice.call(arguments,2)),hi[it]=at}function Rn(it,at){gi[it]=at}function Le(it){if(typeof it=="string"&&gi.hasOwnProperty(it))it=gi[it];else if(it&&typeof it.name=="string"&&gi.hasOwnProperty(it.name)){var at=gi[it.name];typeof at=="string"&&(at={name:at}),it=ln(at,it),it.name=at.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return Le("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return Le("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function Fe(it,at){at=Le(at);var ct=hi[at.name];if(!ct)return Fe(it,"text/plain");var dt=ct(it,at);if(he.hasOwnProperty(at.name)){var pt=he[at.name];for(var At in pt)pt.hasOwnProperty(At)&&(dt.hasOwnProperty(At)&&(dt["_"+At]=dt[At]),dt[At]=pt[At])}if(dt.name=at.name,at.helperType&&(dt.helperType=at.helperType),at.modeProps)for(var zt in at.modeProps)dt[zt]=at.modeProps[zt];return dt}var he={};function _t(it,at){var ct=he.hasOwnProperty(it)?he[it]:he[it]={};hn(at,ct)}function Ze(it,at){if(at===!0)return at;if(it.copyState)return it.copyState(at);var ct={};for(var dt in at){var pt=at[dt];pt instanceof Array&&(pt=pt.concat([])),ct[dt]=pt}return ct}function tn(it,at){for(var ct;it.innerMode&&(ct=it.innerMode(at),!(!ct||ct.mode==it));)at=ct.state,it=ct.mode;return ct||{mode:it,state:at}}function Se(it,at,ct){return it.startState?it.startState(at,ct):!0}var Yt=function(it,at,ct){this.pos=this.start=0,this.string=it,this.tabSize=at||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ct};Yt.prototype.eol=function(){return this.pos>=this.string.length},Yt.prototype.sol=function(){return this.pos==this.lineStart},Yt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Yt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Yt.prototype.eat=function(it){var at=this.string.charAt(this.pos),ct;if(typeof it=="string"?ct=at==it:ct=at&&(it.test?it.test(at):it(at)),ct)return++this.pos,at},Yt.prototype.eatWhile=function(it){for(var at=this.pos;this.eat(it););return this.pos>at},Yt.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Yt.prototype.skipToEnd=function(){this.pos=this.string.length},Yt.prototype.skipTo=function(it){var at=this.string.indexOf(it,this.pos);if(at>-1)return this.pos=at,!0},Yt.prototype.backUp=function(it){this.pos-=it},Yt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},Yt.prototype.indentation=function(){return ge(this.string,null,this.tabSize)-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},Yt.prototype.match=function(it,at,ct){if(typeof it=="string"){var dt=function(zt){return ct?zt.toLowerCase():zt},pt=this.string.substr(this.pos,it.length);if(dt(pt)==dt(it))return at!==!1&&(this.pos+=it.length),!0}else{var At=this.string.slice(this.pos).match(it);return At&&At.index>0?null:(At&&at!==!1&&(this.pos+=At[0].length),At)}},Yt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Yt.prototype.hideFirstChars=function(it,at){this.lineStart+=it;try{return at()}finally{this.lineStart-=it}},Yt.prototype.lookAhead=function(it){var at=this.lineOracle;return at&&at.lookAhead(it)},Yt.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function $e(it,at){if(at-=it.first,at<0||at>=it.size)throw new Error("There is no line "+(at+it.first)+" in the document.");for(var ct=it;!ct.lines;)for(var dt=0;;++dt){var pt=ct.children[dt],At=pt.chunkSize();if(at<At){ct=pt;break}at-=At}return ct.lines[at]}function on(it,at,ct){var dt=[],pt=at.line;return it.iter(at.line,ct.line+1,function(At){var zt=At.text;pt==ct.line&&(zt=zt.slice(0,ct.ch)),pt==at.line&&(zt=zt.slice(at.ch)),dt.push(zt),++pt}),dt}function zn(it,at,ct){var dt=[];return it.iter(at,ct,function(pt){dt.push(pt.text)}),dt}function en(it,at){var ct=at-it.height;if(ct)for(var dt=it;dt;dt=dt.parent)dt.height+=ct}function xe(it){if(it.parent==null)return null;for(var at=it.parent,ct=Ce(at.lines,it),dt=at.parent;dt;at=dt,dt=dt.parent)for(var pt=0;dt.children[pt]!=at;++pt)ct+=dt.children[pt].chunkSize();return ct+at.first}function vn(it,at){var ct=it.first;t:do{for(var dt=0;dt<it.children.length;++dt){var pt=it.children[dt],At=pt.height;if(at<At){it=pt;continue t}at-=At,ct+=pt.chunkSize()}return ct}while(!it.lines);for(var zt=0;zt<it.lines.length;++zt){var $t=it.lines[zt],Jt=$t.height;if(at<Jt)break;at-=Jt}return ct+zt}function Wn(it,at){return at>=it.first&&at<it.first+it.size}function qn(it,at){return String(it.lineNumberFormatter(at+it.firstLineNumber))}function We(it,at,ct){if(ct===void 0&&(ct=null),!(this instanceof We))return new We(it,at,ct);this.line=it,this.ch=at,this.sticky=ct}function fn(it,at){return it.line-at.line||it.ch-at.ch}function Ie(it,at){return it.sticky==at.sticky&&fn(it,at)==0}function an(it){return We(it.line,it.ch)}function _e(it,at){return fn(it,at)<0?at:it}function rn(it,at){return fn(it,at)<0?it:at}function pn(it,at){return Math.max(it.first,Math.min(at,it.first+it.size-1))}function Cn(it,at){if(at.line<it.first)return We(it.first,0);var ct=it.first+it.size-1;return at.line>ct?We(ct,$e(it,ct).text.length):kn(at,$e(it,at.line).text.length)}function kn(it,at){var ct=it.ch;return ct==null||ct>at?We(it.line,at):ct<0?We(it.line,0):it}function In(it,at){for(var ct=[],dt=0;dt<at.length;dt++)ct[dt]=Cn(it,at[dt]);return ct}var wn=function(it,at){this.state=it,this.lookAhead=at},Kn=function(it,at,ct,dt){this.state=at,this.doc=it,this.line=ct,this.maxLookAhead=dt||0,this.baseTokens=null,this.baseTokenPos=1};Kn.prototype.lookAhead=function(it){var at=this.doc.getLine(this.line+it);return at!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),at},Kn.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var at=this.baseTokens[this.baseTokenPos+1];return{type:at&&at.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},Kn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Kn.fromSaved=function(it,at,ct){return at instanceof wn?new Kn(it,Ze(it.mode,at.state),ct,at.lookAhead):new Kn(it,Ze(it.mode,at),ct)},Kn.prototype.save=function(it){var at=it!==!1?Ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new wn(at,this.maxLookAhead):at};function Ci(it,at,ct,dt){var pt=[it.state.modeGen],At={};Ui(it,at.text,it.doc.mode,ct,function(pe,un){return pt.push(pe,un)},At,dt);for(var zt=ct.state,$t=function(pe){ct.baseTokens=pt;var un=it.state.overlays[pe],be=1,jn=0;ct.state=!0,Ui(it,at.text,un.mode,ct,function(Nn,pi){for(var wi=be;jn<Nn;){var Ri=pt[be];Ri>Nn&&pt.splice(be,1,Nn,pt[be+1],Ri),be+=2,jn=Math.min(Nn,Ri)}if(pi)if(un.opaque)pt.splice(wi,be-wi,Nn,"overlay "+pi),be=wi+2;else for(;wi<be;wi+=2){var so=pt[wi+1];pt[wi+1]=(so?so+" ":"")+"overlay "+pi}},At),ct.state=zt,ct.baseTokens=null,ct.baseTokenPos=1},Jt=0;Jt<it.state.overlays.length;++Jt)$t(Jt);return{styles:pt,classes:At.bgClass||At.textClass?At:null}}function Wi(it,at,ct){if(!at.styles||at.styles[0]!=it.state.modeGen){var dt=Li(it,xe(at)),pt=at.text.length>it.options.maxHighlightLength&&Ze(it.doc.mode,dt.state),At=Ci(it,at,dt);pt&&(dt.state=pt),at.stateAfter=dt.save(!pt),at.styles=At.styles,At.classes?at.styleClasses=At.classes:at.styleClasses&&(at.styleClasses=null),ct===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return at.styles}function Li(it,at,ct){var dt=it.doc,pt=it.display;if(!dt.mode.startState)return new Kn(dt,!0,at);var At=Ii(it,at,ct),zt=At>dt.first&&$e(dt,At-1).stateAfter,$t=zt?Kn.fromSaved(dt,zt,At):new Kn(dt,Se(dt.mode),At);return dt.iter(At,at,function(Jt){Be(it,Jt.text,$t);var pe=$t.line;Jt.stateAfter=pe==at-1||pe%5==0||pe>=pt.viewFrom&&pe<pt.viewTo?$t.save():null,$t.nextLine()}),ct&&(dt.modeFrontier=$t.line),$t}function Be(it,at,ct,dt){var pt=it.doc.mode,At=new Yt(at,it.options.tabSize,ct);for(At.start=At.pos=dt||0,at==""&&ei(pt,ct.state);!At.eol();)Si(pt,At,ct.state),At.start=At.pos}function ei(it,at){if(it.blankLine)return it.blankLine(at);if(it.innerMode){var ct=tn(it,at);if(ct.mode.blankLine)return ct.mode.blankLine(ct.state)}}function Si(it,at,ct,dt){for(var pt=0;pt<10;pt++){dt&&(dt[0]=tn(it,ct).mode);var At=it.token(at,ct);if(at.pos>at.start)return At}throw new Error("Mode "+it.name+" failed to advance stream.")}var ci=function(it,at,ct){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=at||null,this.state=ct};function Hi(it,at,ct,dt){var pt=it.doc,At=pt.mode,zt;at=Cn(pt,at);var $t=$e(pt,at.line),Jt=Li(it,at.line,ct),pe=new Yt($t.text,it.options.tabSize,Jt),un;for(dt&&(un=[]);(dt||pe.pos<at.ch)&&!pe.eol();)pe.start=pe.pos,zt=Si(At,pe,Jt.state),dt&&un.push(new ci(pe,zt,Ze(pt.mode,Jt.state)));return dt?un:new ci(pe,zt,Jt.state)}function Ni(it,at){if(it)for(;;){var ct=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ct)break;it=it.slice(0,ct.index)+it.slice(ct.index+ct[0].length);var dt=ct[1]?"bgClass":"textClass";at[dt]==null?at[dt]=ct[2]:new RegExp("(?:^|\\s)"+ct[2]+"(?:$|\\s)").test(at[dt])||(at[dt]+=" "+ct[2])}return it}function Ui(it,at,ct,dt,pt,At,zt){var $t=ct.flattenSpans;$t==null&&($t=it.options.flattenSpans);var Jt=0,pe=null,un=new Yt(at,it.options.tabSize,dt),be,jn=it.options.addModeClass&&[null];for(at==""&&Ni(ei(ct,dt.state),At);!un.eol();){if(un.pos>it.options.maxHighlightLength?($t=!1,zt&&Be(it,at,dt,un.pos),un.pos=at.length,be=null):be=Ni(Si(ct,un,dt.state,jn),At),jn){var Nn=jn[0].name;Nn&&(be="m-"+(be?Nn+" "+be:Nn))}if(!$t||pe!=be){for(;Jt<un.start;)Jt=Math.min(un.start,Jt+5e3),pt(Jt,pe);pe=be}un.start=un.pos}for(;Jt<un.pos;){var pi=Math.min(un.pos,Jt+5e3);pt(pi,pe),Jt=pi}}function Ii(it,at,ct){for(var dt,pt,At=it.doc,zt=ct?-1:at-(it.doc.mode.innerMode?1e3:100),$t=at;$t>zt;--$t){if($t<=At.first)return At.first;var Jt=$e(At,$t-1),pe=Jt.stateAfter;if(pe&&(!ct||$t+(pe instanceof wn?pe.lookAhead:0)<=At.modeFrontier))return $t;var un=ge(Jt.text,null,it.options.tabSize);(pt==null||dt>un)&&(pt=$t-1,dt=un)}return pt}function bi(it,at){if(it.modeFrontier=Math.min(it.modeFrontier,at),!(it.highlightFrontier<at-10)){for(var ct=it.first,dt=at-1;dt>ct;dt--){var pt=$e(it,dt).stateAfter;if(pt&&(!(pt instanceof wn)||dt+pt.lookAhead<at)){ct=dt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,ct)}}var eo=!1,xn=!1;function Fo(){eo=!0}function Ln(){xn=!0}function po(it,at,ct){this.marker=it,this.from=at,this.to=ct}function Go(it,at){if(it)for(var ct=0;ct<it.length;++ct){var dt=it[ct];if(dt.marker==at)return dt}}function Yi(it,at){for(var ct,dt=0;dt<it.length;++dt)it[dt]!=at&&(ct||(ct=[])).push(it[dt]);return ct}function nr(it,at){it.markedSpans=it.markedSpans?it.markedSpans.concat([at]):[at],at.marker.attachLine(it)}function Bo(it,at,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var At=it[pt],zt=At.marker,$t=At.from==null||(zt.inclusiveLeft?At.from<=at:At.from<at);if($t||At.from==at&&zt.type=="bookmark"&&(!ct||!At.marker.insertLeft)){var Jt=At.to==null||(zt.inclusiveRight?At.to>=at:At.to>at);(dt||(dt=[])).push(new po(zt,At.from,Jt?null:At.to))}}return dt}function Ti(it,at,ct){var dt;if(it)for(var pt=0;pt<it.length;++pt){var At=it[pt],zt=At.marker,$t=At.to==null||(zt.inclusiveRight?At.to>=at:At.to>at);if($t||At.from==at&&zt.type=="bookmark"&&(!ct||At.marker.insertLeft)){var Jt=At.from==null||(zt.inclusiveLeft?At.from<=at:At.from<at);(dt||(dt=[])).push(new po(zt,Jt?null:At.from-at,At.to==null?null:At.to-at))}}return dt}function Oi(it,at){if(at.full)return null;var ct=Wn(it,at.from.line)&&$e(it,at.from.line).markedSpans,dt=Wn(it,at.to.line)&&$e(it,at.to.line).markedSpans;if(!ct&&!dt)return null;var pt=at.from.ch,At=at.to.ch,zt=fn(at.from,at.to)==0,$t=Bo(ct,pt,zt),Jt=Ti(dt,At,zt),pe=at.text.length==1,un=Ee(at.text).length+(pe?pt:0);if($t)for(var be=0;be<$t.length;++be){var jn=$t[be];if(jn.to==null){var Nn=Go(Jt,jn.marker);Nn?pe&&(jn.to=Nn.to==null?null:Nn.to+un):jn.to=pt}}if(Jt)for(var pi=0;pi<Jt.length;++pi){var wi=Jt[pi];if(wi.to!=null&&(wi.to+=un),wi.from==null){var Ri=Go($t,wi.marker);Ri||(wi.from=un,pe&&($t||($t=[])).push(wi))}else wi.from+=un,pe&&($t||($t=[])).push(wi)}$t&&($t=bo($t)),Jt&&Jt!=$t&&(Jt=bo(Jt));var so=[$t];if(!pe){var ko=at.text.length-2,xo;if(ko>0&&$t)for(var Ho=0;Ho<$t.length;++Ho)$t[Ho].to==null&&(xo||(xo=[])).push(new po($t[Ho].marker,null,null));for(var vr=0;vr<ko;++vr)so.push(xo);so.push(Jt)}return so}function bo(it){for(var at=0;at<it.length;++at){var ct=it[at];ct.from!=null&&ct.from==ct.to&&ct.marker.clearWhenEmpty!==!1&&it.splice(at--,1)}return it.length?it:null}function Do(it,at,ct){var dt=null;if(it.iter(at.line,ct.line+1,function(Nn){if(Nn.markedSpans)for(var pi=0;pi<Nn.markedSpans.length;++pi){var wi=Nn.markedSpans[pi].marker;wi.readOnly&&(!dt||Ce(dt,wi)==-1)&&(dt||(dt=[])).push(wi)}}),!dt)return null;for(var pt=[{from:at,to:ct}],At=0;At<dt.length;++At)for(var zt=dt[At],$t=zt.find(0),Jt=0;Jt<pt.length;++Jt){var pe=pt[Jt];if(!(fn(pe.to,$t.from)<0||fn(pe.from,$t.to)>0)){var un=[Jt,1],be=fn(pe.from,$t.from),jn=fn(pe.to,$t.to);(be<0||!zt.inclusiveLeft&&!be)&&un.push({from:pe.from,to:$t.from}),(jn>0||!zt.inclusiveRight&&!jn)&&un.push({from:$t.to,to:pe.to}),pt.splice.apply(pt,un),Jt+=un.length-3}}return pt}function si(it){var at=it.markedSpans;if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.detachLine(it);it.markedSpans=null}}function Zt(it,at){if(at){for(var ct=0;ct<at.length;++ct)at[ct].marker.attachLine(it);it.markedSpans=at}}function Co(it){return it.inclusiveLeft?-1:0}function xr(it){return it.inclusiveRight?1:0}function yo(it,at){var ct=it.lines.length-at.lines.length;if(ct!=0)return ct;var dt=it.find(),pt=at.find(),At=fn(dt.from,pt.from)||Co(it)-Co(at);if(At)return-At;var zt=fn(dt.to,pt.to)||xr(it)-xr(at);return zt||at.id-it.id}function yr(it,at){var ct=xn&&it.markedSpans,dt;if(ct)for(var pt=void 0,At=0;At<ct.length;++At)pt=ct[At],pt.marker.collapsed&&(at?pt.from:pt.to)==null&&(!dt||yo(dt,pt.marker)<0)&&(dt=pt.marker);return dt}function _i(it){return yr(it,!0)}function Ji(it){return yr(it,!1)}function Zo(it,at){var ct=xn&&it.markedSpans,dt;if(ct)for(var pt=0;pt<ct.length;++pt){var At=ct[pt];At.marker.collapsed&&(At.from==null||At.from<at)&&(At.to==null||At.to>at)&&(!dt||yo(dt,At.marker)<0)&&(dt=At.marker)}return dt}function rr(it,at,ct,dt,pt){var At=$e(it,at),zt=xn&&At.markedSpans;if(zt)for(var $t=0;$t<zt.length;++$t){var Jt=zt[$t];if(Jt.marker.collapsed){var pe=Jt.marker.find(0),un=fn(pe.from,ct)||Co(Jt.marker)-Co(pt),be=fn(pe.to,dt)||xr(Jt.marker)-xr(pt);if(!(un>=0&&be<=0||un<=0&&be>=0)&&(un<=0&&(Jt.marker.inclusiveRight&&pt.inclusiveLeft?fn(pe.to,ct)>=0:fn(pe.to,ct)>0)||un>=0&&(Jt.marker.inclusiveRight&&pt.inclusiveLeft?fn(pe.from,dt)<=0:fn(pe.from,dt)<0)))return!0}}}function Ao(it){for(var at;at=_i(it);)it=at.find(-1,!0).line;return it}function kr(it){for(var at;at=Ji(it);)it=at.find(1,!0).line;return it}function Ki(it){for(var at,ct;at=Ji(it);)it=at.find(1,!0).line,(ct||(ct=[])).push(it);return ct}function zi(it,at){var ct=$e(it,at),dt=Ao(ct);return ct==dt?at:xe(dt)}function co(it,at){if(at>it.lastLine())return at;var ct=$e(it,at),dt;if(!Yn(it,ct))return at;for(;dt=Ji(ct);)ct=dt.find(1,!0).line;return xe(ct)+1}function Yn(it,at){var ct=xn&&at.markedSpans;if(ct){for(var dt=void 0,pt=0;pt<ct.length;++pt)if(dt=ct[pt],!!dt.marker.collapsed){if(dt.from==null)return!0;if(!dt.marker.widgetNode&&dt.from==0&&dt.marker.inclusiveLeft&&ar(it,at,dt))return!0}}}function ar(it,at,ct){if(ct.to==null){var dt=ct.marker.find(1,!0);return ar(it,dt.line,Go(dt.line.markedSpans,ct.marker))}if(ct.marker.inclusiveRight&&ct.to==at.text.length)return!0;for(var pt=void 0,At=0;At<at.markedSpans.length;++At)if(pt=at.markedSpans[At],pt.marker.collapsed&&!pt.marker.widgetNode&&pt.from==ct.to&&(pt.to==null||pt.to!=ct.from)&&(pt.marker.inclusiveLeft||ct.marker.inclusiveRight)&&ar(it,at,pt))return!0}function wr(it){it=Ao(it);for(var at=0,ct=it.parent,dt=0;dt<ct.lines.length;++dt){var pt=ct.lines[dt];if(pt==it)break;at+=pt.height}for(var At=ct.parent;At;ct=At,At=ct.parent)for(var zt=0;zt<At.children.length;++zt){var $t=At.children[zt];if($t==ct)break;at+=$t.height}return at}function ia(it){if(it.height==0)return 0;for(var at=it.text.length,ct,dt=it;ct=_i(dt);){var pt=ct.find(0,!0);dt=pt.from.line,at+=pt.from.ch-pt.to.ch}for(dt=it;ct=Ji(dt);){var At=ct.find(0,!0);at-=dt.text.length-At.from.ch,dt=At.to.line,at+=dt.text.length-At.to.ch}return at}function sr(it){var at=it.display,ct=it.doc;at.maxLine=$e(ct,ct.first),at.maxLineLength=ia(at.maxLine),at.maxLineChanged=!0,ct.iter(function(dt){var pt=ia(dt);pt>at.maxLineLength&&(at.maxLineLength=pt,at.maxLine=dt)})}var ir=function(it,at,ct){this.text=it,Zt(this,at),this.height=ct?ct(this):1};ir.prototype.lineNo=function(){return xe(this)},Zn(ir);function Fr(it,at,ct,dt){it.text=at,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),si(it),Zt(it,ct);var pt=dt?dt(it):1;pt!=it.height&&en(it,pt)}function Qr(it){it.parent=null,si(it)}var $r={},qa={};function Ea(it,at){if(!it||/^\s*$/.test(it))return null;var ct=at.addModeClass?qa:$r;return ct[it]||(ct[it]=it.replace(/\S+/g,"cm-$&"))}function gn(it,at){var ct=de("span",null,null,Ft?"padding-right: .1px":null),dt={pre:de("pre",[ct],"CodeMirror-line"),content:ct,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};at.measure={};for(var pt=0;pt<=(at.rest?at.rest.length:0);pt++){var At=pt?at.rest[pt-1]:at.line,zt=void 0;dt.pos=0,dt.addToken=tl,Po(it.display.measure)&&(zt=Rt(At,it.doc.direction))&&(dt.addToken=Qo(dt.addToken,zt)),dt.map=[];var $t=at!=it.display.externalMeasured&&xe(At);ha(At,dt,Wi(it,At,$t)),At.styleClasses&&(At.styleClasses.bgClass&&(dt.bgClass=qe(At.styleClasses.bgClass,dt.bgClass||"")),At.styleClasses.textClass&&(dt.textClass=qe(At.styleClasses.textClass,dt.textClass||""))),dt.map.length==0&&dt.map.push(0,0,dt.content.appendChild(wo(it.display.measure))),pt==0?(at.measure.map=dt.map,at.measure.cache={}):((at.measure.maps||(at.measure.maps=[])).push(dt.map),(at.measure.caches||(at.measure.caches=[])).push({}))}if(Ft){var Jt=dt.content.lastChild;(/\bcm-tab\b/.test(Jt.className)||Jt.querySelector&&Jt.querySelector(".cm-tab"))&&(dt.content.className="cm-tab-wrap-hack")}return le(it,"renderLine",it,at.line,dt.pre),dt.pre.className&&(dt.textClass=qe(dt.pre.className,dt.textClass||"")),dt}function La(it){var at=Ut("span","\u2022","cm-invalidchar");return at.title="\\u"+it.charCodeAt(0).toString(16),at.setAttribute("aria-label",at.title),at}function tl(it,at,ct,dt,pt,At,zt){if(at){var $t=it.splitSpaces?js(at,it.trailingSpace):at,Jt=it.cm.state.specialChars,pe=!1,un;if(!Jt.test(at))it.col+=at.length,un=document.createTextNode($t),it.map.push(it.pos,it.pos+at.length,un),Vt&&fe<9&&(pe=!0),it.pos+=at.length;else{un=document.createDocumentFragment();for(var be=0;;){Jt.lastIndex=be;var jn=Jt.exec(at),Nn=jn?jn.index-be:at.length-be;if(Nn){var pi=document.createTextNode($t.slice(be,be+Nn));Vt&&fe<9?un.appendChild(Ut("span",[pi])):un.appendChild(pi),it.map.push(it.pos,it.pos+Nn,pi),it.col+=Nn,it.pos+=Nn}if(!jn)break;be+=Nn+1;var wi=void 0;if(jn[0]==" "){var Ri=it.cm.options.tabSize,so=Ri-it.col%Ri;wi=un.appendChild(Ut("span",Gn(so),"cm-tab")),wi.setAttribute("role","presentation"),wi.setAttribute("cm-text"," "),it.col+=so}else jn[0]=="\r"||jn[0]==`
|
|
|
`?(wi=un.appendChild(Ut("span",jn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),wi.setAttribute("cm-text",jn[0]),it.col+=1):(wi=it.cm.options.specialCharPlaceholder(jn[0]),wi.setAttribute("cm-text",jn[0]),Vt&&fe<9?un.appendChild(Ut("span",[wi])):un.appendChild(wi),it.col+=1);it.map.push(it.pos,it.pos+1,wi),it.pos++}}if(it.trailingSpace=$t.charCodeAt(at.length-1)==32,ct||dt||pt||pe||At||zt){var ko=ct||"";dt&&(ko+=dt),pt&&(ko+=pt);var xo=Ut("span",[un],ko,At);if(zt)for(var Ho in zt)zt.hasOwnProperty(Ho)&&Ho!="style"&&Ho!="class"&&xo.setAttribute(Ho,zt[Ho]);return it.content.appendChild(xo)}it.content.appendChild(un)}}function js(it,at){if(it.length>1&&!/ /.test(it))return it;for(var ct=at,dt="",pt=0;pt<it.length;pt++){var At=it.charAt(pt);At==" "&&ct&&(pt==it.length-1||it.charCodeAt(pt+1)==32)&&(At="\xA0"),dt+=At,ct=At==" "}return dt}function Qo(it,at){return function(ct,dt,pt,At,zt,$t,Jt){pt=pt?pt+" cm-force-border":"cm-force-border";for(var pe=ct.pos,un=pe+dt.length;;){for(var be=void 0,jn=0;jn<at.length&&(be=at[jn],!(be.to>pe&&be.from<=pe));jn++);if(be.to>=un)return it(ct,dt,pt,At,zt,$t,Jt);it(ct,dt.slice(0,be.to-pe),pt,At,null,$t,Jt),At=null,dt=dt.slice(be.to-pe),pe=be.to}}}function Tr(it,at,ct,dt){var pt=!dt&&ct.widgetNode;pt&&it.map.push(it.pos,it.pos+at,pt),!dt&&it.cm.display.input.needsContentAttribute&&(pt||(pt=it.content.appendChild(document.createElement("span"))),pt.setAttribute("cm-marker",ct.id)),pt&&(it.cm.display.input.setUneditable(pt),it.content.appendChild(pt)),it.pos+=at,it.trailingSpace=!1}function ha(it,at,ct){var dt=it.markedSpans,pt=it.text,At=0;if(!dt){for(var zt=1;zt<ct.length;zt+=2)at.addToken(at,pt.slice(At,At=ct[zt]),Ea(ct[zt+1],at.cm.options));return}for(var $t=pt.length,Jt=0,pe=1,un="",be,jn,Nn=0,pi,wi,Ri,so,ko;;){if(Nn==Jt){pi=wi=Ri=jn="",ko=null,so=null,Nn=1/0;for(var xo=[],Ho=void 0,vr=0;vr<dt.length;++vr){var vo=dt[vr],Nr=vo.marker;if(Nr.type=="bookmark"&&vo.from==Jt&&Nr.widgetNode)xo.push(Nr);else if(vo.from<=Jt&&(vo.to==null||vo.to>Jt||Nr.collapsed&&vo.to==Jt&&vo.from==Jt)){if(vo.to!=null&&vo.to!=Jt&&Nn>vo.to&&(Nn=vo.to,wi=""),Nr.className&&(pi+=" "+Nr.className),Nr.css&&(jn=(jn?jn+";":"")+Nr.css),Nr.startStyle&&vo.from==Jt&&(Ri+=" "+Nr.startStyle),Nr.endStyle&&vo.to==Nn&&(Ho||(Ho=[])).push(Nr.endStyle,vo.to),Nr.title&&((ko||(ko={})).title=Nr.title),Nr.attributes)for(var _a in Nr.attributes)(ko||(ko={}))[_a]=Nr.attributes[_a];Nr.collapsed&&(!so||yo(so.marker,Nr)<0)&&(so=vo)}else vo.from>Jt&&Nn>vo.from&&(Nn=vo.from)}if(Ho)for(var Os=0;Os<Ho.length;Os+=2)Ho[Os+1]==Nn&&(wi+=" "+Ho[Os]);if(!so||so.from==Jt)for(var as=0;as<xo.length;++as)Tr(at,0,xo[as]);if(so&&(so.from||0)==Jt){if(Tr(at,(so.to==null?$t+1:so.to)-Jt,so.marker,so.from==null),so.to==null)return;so.to==Jt&&(so=!1)}}if(Jt>=$t)break;for(var Ul=Math.min($t,Nn);;){if(un){var vl=Jt+un.length;if(!so){var Fs=vl>Ul?un.slice(0,Ul-Jt):un;at.addToken(at,Fs,be?be+pi:pi,Ri,Jt+Fs.length==Nn?wi:"",jn,ko)}if(vl>=Ul){un=un.slice(Ul-Jt),Jt=Ul;break}Jt=vl,Ri=""}un=pt.slice(At,At=ct[pe++]),be=Ea(ct[pe++],at.cm.options)}}}function Cr(it,at,ct){this.line=at,this.rest=Ki(at),this.size=this.rest?xe(Ee(this.rest))-ct+1:1,this.node=this.text=null,this.hidden=Yn(it,at)}function or(it,at,ct){for(var dt=[],pt,At=at;At<ct;At=pt){var zt=new Cr(it.doc,$e(it.doc,At),At);pt=At+zt.size,dt.push(zt)}return dt}var Br=null;function Ua(it){Br?Br.ops.push(it):it.ownsGroup=Br={ops:[it],delayedCallbacks:[]}}function No(it){var at=it.delayedCallbacks,ct=0;do{for(;ct<at.length;ct++)at[ct].call(null);for(var dt=0;dt<it.ops.length;dt++){var pt=it.ops[dt];if(pt.cursorActivityHandlers)for(;pt.cursorActivityCalled<pt.cursorActivityHandlers.length;)pt.cursorActivityHandlers[pt.cursorActivityCalled++].call(null,pt.cm)}}while(ct<at.length)}function dr(it,at){var ct=it.ownsGroup;if(ct)try{No(ct)}finally{Br=null,at(ct)}}var ur=null;function Bi(it,at){var ct=Qe(it,at);if(ct.length){var dt=Array.prototype.slice.call(arguments,2),pt;Br?pt=Br.delayedCallbacks:ur?pt=ur:(pt=ur=[],setTimeout(za,0));for(var At=function($t){pt.push(function(){return ct[$t].apply(null,dt)})},zt=0;zt<ct.length;++zt)At(zt)}}function za(){var it=ur;ur=null;for(var at=0;at<it.length;++at)it[at]()}function ja(it,at,ct,dt){for(var pt=0;pt<at.changes.length;pt++){var At=at.changes[pt];At=="text"?yi(it,at):At=="gutter"?Ya(it,at,ct,dt):At=="class"?la(it,at):At=="widget"&&Cl(it,at,dt)}at.changes=null}function bs(it){return it.node==it.text&&(it.node=Ut("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),Vt&&fe<8&&(it.node.style.zIndex=2)),it.node}function Tl(it,at){var ct=at.bgClass?at.bgClass+" "+(at.line.bgClass||""):at.line.bgClass;if(ct&&(ct+=" CodeMirror-linebackground"),at.background)ct?at.background.className=ct:(at.background.parentNode.removeChild(at.background),at.background=null);else if(ct){var dt=bs(at);at.background=dt.insertBefore(Ut("div",null,ct),dt.firstChild),it.display.input.setUneditable(at.background)}}function $l(it,at){var ct=it.display.externalMeasured;return ct&&ct.line==at.line?(it.display.externalMeasured=null,at.measure=ct.measure,ct.built):gn(it,at)}function yi(it,at){var ct=at.text.className,dt=$l(it,at);at.text==at.node&&(at.node=dt.pre),at.text.parentNode.replaceChild(dt.pre,at.text),at.text=dt.pre,dt.bgClass!=at.bgClass||dt.textClass!=at.textClass?(at.bgClass=dt.bgClass,at.textClass=dt.textClass,la(it,at)):ct&&(at.text.className=ct)}function la(it,at){Tl(it,at),at.line.wrapClass?bs(at).className=at.line.wrapClass:at.node!=at.text&&(at.node.className="");var ct=at.textClass?at.textClass+" "+(at.line.textClass||""):at.line.textClass;at.text.className=ct||""}function Ya(it,at,ct,dt){if(at.gutter&&(at.node.removeChild(at.gutter),at.gutter=null),at.gutterBackground&&(at.node.removeChild(at.gutterBackground),at.gutterBackground=null),at.line.gutterClass){var pt=bs(at);at.gutterBackground=Ut("div",null,"CodeMirror-gutter-background "+at.line.gutterClass,"left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px; width: "+dt.gutterTotalWidth+"px"),it.display.input.setUneditable(at.gutterBackground),pt.insertBefore(at.gutterBackground,at.text)}var At=at.line.gutterMarkers;if(it.options.lineNumbers||At){var zt=bs(at),$t=at.gutter=Ut("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?dt.fixedPos:-dt.gutterTotalWidth)+"px");if(it.display.input.setUneditable($t),zt.insertBefore($t,at.text),at.line.gutterClass&&($t.className+=" "+at.line.gutterClass),it.options.lineNumbers&&(!At||!At["CodeMirror-linenumbers"])&&(at.lineNumber=$t.appendChild(Ut("div",qn(it.options,ct),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+dt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),At)for(var Jt=0;Jt<it.display.gutterSpecs.length;++Jt){var pe=it.display.gutterSpecs[Jt].className,un=At.hasOwnProperty(pe)&&At[pe];un&&$t.appendChild(Ut("div",[un],"CodeMirror-gutter-elt","left: "+dt.gutterLeft[pe]+"px; width: "+dt.gutterWidth[pe]+"px"))}}}function Cl(it,at,ct){at.alignable&&(at.alignable=null);for(var dt=kt("CodeMirror-linewidget"),pt=at.node.firstChild,At=void 0;pt;pt=At)At=pt.nextSibling,dt.test(pt.className)&&at.node.removeChild(pt);Il(it,at,ct)}function Ol(it,at,ct,dt){var pt=$l(it,at);return at.text=at.node=pt.pre,pt.bgClass&&(at.bgClass=pt.bgClass),pt.textClass&&(at.textClass=pt.textClass),la(it,at),Ya(it,at,ct,dt),Il(it,at,dt),at.node}function Il(it,at,ct){if(jo(it,at.line,at,ct,!0),at.rest)for(var dt=0;dt<at.rest.length;dt++)jo(it,at.rest[dt],at,ct,!1)}function jo(it,at,ct,dt,pt){if(at.widgets)for(var At=bs(ct),zt=0,$t=at.widgets;zt<$t.length;++zt){var Jt=$t[zt],pe=Ut("div",[Jt.node],"CodeMirror-linewidget"+(Jt.className?" "+Jt.className:""));Jt.handleMouseEvents||pe.setAttribute("cm-ignore-events","true"),ph(Jt,pe,ct,dt),it.display.input.setUneditable(pe),pt&&Jt.above?At.insertBefore(pe,ct.gutter||ct.text):At.appendChild(pe),Bi(Jt,"redraw")}}function ph(it,at,ct,dt){if(it.noHScroll){(ct.alignable||(ct.alignable=[])).push(at);var pt=dt.wrapperWidth;at.style.left=dt.fixedPos+"px",it.coverGutter||(pt-=dt.gutterTotalWidth,at.style.paddingLeft=dt.gutterTotalWidth+"px"),at.style.width=pt+"px"}it.coverGutter&&(at.style.zIndex=5,at.style.position="relative",it.noHScroll||(at.style.marginLeft=-dt.gutterTotalWidth+"px"))}function el(it){if(it.height!=null)return it.height;var at=it.doc.cm;if(!at)return 0;if(!Ve(document.body,it.node)){var ct="position: relative;";it.coverGutter&&(ct+="margin-left: -"+at.display.gutters.offsetWidth+"px;"),it.noHScroll&&(ct+="width: "+at.display.wrapper.clientWidth+"px;"),Xt(at.display.measure,Ut("div",[it.node],null,ct))}return it.height=it.node.parentNode.offsetHeight}function nl(it,at){for(var ct=Zi(at);ct!=it.wrapper;ct=ct.parentNode)if(!ct||ct.nodeType==1&&ct.getAttribute("cm-ignore-events")=="true"||ct.parentNode==it.sizer&&ct!=it.mover)return!0}function Ds(it){return it.lineSpace.offsetTop}function bu(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function Ru(it){if(it.cachedPaddingH)return it.cachedPaddingH;var at=Xt(it.measure,Ut("pre","x","CodeMirror-line-like")),ct=window.getComputedStyle?window.getComputedStyle(at):at.currentStyle,dt={left:parseInt(ct.paddingLeft),right:parseInt(ct.paddingRight)};return!isNaN(dt.left)&&!isNaN(dt.right)&&(it.cachedPaddingH=dt),dt}function Ws(it){return bn-it.display.nativeBarWidth}function cl(it){return it.display.scroller.clientWidth-Ws(it)-it.display.barWidth}function Wh(it){return it.display.scroller.clientHeight-Ws(it)-it.display.barHeight}function hd(it,at,ct){var dt=it.options.lineWrapping,pt=dt&&cl(it);if(!at.measure.heights||dt&&at.measure.width!=pt){var At=at.measure.heights=[];if(dt){at.measure.width=pt;for(var zt=at.text.firstChild.getClientRects(),$t=0;$t<zt.length-1;$t++){var Jt=zt[$t],pe=zt[$t+1];Math.abs(Jt.bottom-pe.bottom)>2&&At.push((Jt.bottom+pe.top)/2-ct.top)}}At.push(ct.bottom-ct.top)}}function Hh(it,at,ct){if(it.line==at)return{map:it.measure.map,cache:it.measure.cache};for(var dt=0;dt<it.rest.length;dt++)if(it.rest[dt]==at)return{map:it.measure.maps[dt],cache:it.measure.caches[dt]};for(var pt=0;pt<it.rest.length;pt++)if(xe(it.rest[pt])>ct)return{map:it.measure.maps[pt],cache:it.measure.caches[pt],before:!0}}function Gd(it,at){at=Ao(at);var ct=xe(at),dt=it.display.externalMeasured=new Cr(it.doc,at,ct);dt.lineN=ct;var pt=dt.built=gn(it,dt);return dt.text=pt.pre,Xt(it.display.lineMeasure,pt.pre),dt}function Gh(it,at,ct,dt){return Rl(it,zu(it,at),ct,dt)}function mh(it,at){if(at>=it.display.viewFrom&&at<it.display.viewTo)return it.display.view[Hs(it,at)];var ct=it.display.externalMeasured;if(ct&&at>=ct.lineN&&at<ct.lineN+ct.size)return ct}function zu(it,at){var ct=xe(at),dt=mh(it,ct);dt&&!dt.text?dt=null:dt&&dt.changes&&(ja(it,dt,ct,Cc(it)),it.curOp.forceUpdate=!0),dt||(dt=Gd(it,at));var pt=Hh(dt,at,ct);return{line:at,view:dt,rect:null,map:pt.map,cache:pt.cache,before:pt.before,hasHeights:!1}}function Rl(it,at,ct,dt,pt){at.before&&(ct=-1);var At=ct+(dt||""),zt;return at.cache.hasOwnProperty(At)?zt=at.cache[At]:(at.rect||(at.rect=at.view.text.getBoundingClientRect()),at.hasHeights||(hd(it,at.view,at.rect),at.hasHeights=!0),zt=lr(it,at,ct,dt),zt.bogus||(at.cache[At]=zt)),{left:zt.left,right:zt.right,top:pt?zt.rtop:zt.top,bottom:pt?zt.rbottom:zt.bottom}}var dd={left:0,right:0,top:0,bottom:0};function Zh(it,at,ct){for(var dt,pt,At,zt,$t,Jt,pe=0;pe<it.length;pe+=3)if($t=it[pe],Jt=it[pe+1],at<$t?(pt=0,At=1,zt="left"):at<Jt?(pt=at-$t,At=pt+1):(pe==it.length-3||at==Jt&&it[pe+3]>at)&&(At=Jt-$t,pt=At-1,at>=Jt&&(zt="right")),pt!=null){if(dt=it[pe+2],$t==Jt&&ct==(dt.insertLeft?"left":"right")&&(zt=ct),ct=="left"&&pt==0)for(;pe&&it[pe-2]==it[pe-3]&&it[pe-1].insertLeft;)dt=it[(pe-=3)+2],zt="left";if(ct=="right"&&pt==Jt-$t)for(;pe<it.length-3&&it[pe+3]==it[pe+4]&&!it[pe+5].insertLeft;)dt=it[(pe+=3)+2],zt="right";break}return{node:dt,start:pt,end:At,collapse:zt,coverStart:$t,coverEnd:Jt}}function vh(it,at){var ct=dd;if(at=="left")for(var dt=0;dt<it.length&&(ct=it[dt]).left==ct.right;dt++);else for(var pt=it.length-1;pt>=0&&(ct=it[pt]).left==ct.right;pt--);return ct}function lr(it,at,ct,dt){var pt=Zh(at.map,ct,dt),At=pt.node,zt=pt.start,$t=pt.end,Jt=pt.collapse,pe;if(At.nodeType==3){for(var un=0;un<4;un++){for(;zt&&ke(at.line.text.charAt(pt.coverStart+zt));)--zt;for(;pt.coverStart+$t<pt.coverEnd&&ke(at.line.text.charAt(pt.coverStart+$t));)++$t;if(Vt&&fe<9&&zt==0&&$t==pt.coverEnd-pt.coverStart?pe=At.parentNode.getBoundingClientRect():pe=vh(Gt(At,zt,$t).getClientRects(),dt),pe.left||pe.right||zt==0)break;$t=zt,zt=zt-1,Jt="right"}Vt&&fe<11&&(pe=Rr(it.display.measure,pe))}else{zt>0&&(Jt=dt="right");var be;it.options.lineWrapping&&(be=At.getClientRects()).length>1?pe=be[dt=="right"?be.length-1:0]:pe=At.getBoundingClientRect()}if(Vt&&fe<9&&!zt&&(!pe||!pe.left&&!pe.right)){var jn=At.parentNode.getClientRects()[0];jn?pe={left:jn.left,right:jn.left+ih(it.display),top:jn.top,bottom:jn.bottom}:pe=dd}for(var Nn=pe.top-at.rect.top,pi=pe.bottom-at.rect.top,wi=(Nn+pi)/2,Ri=at.view.measure.heights,so=0;so<Ri.length-1&&!(wi<Ri[so]);so++);var ko=so?Ri[so-1]:0,xo=Ri[so],Ho={left:(Jt=="right"?pe.right:pe.left)-at.rect.left,right:(Jt=="left"?pe.left:pe.right)-at.rect.left,top:ko,bottom:xo};return!pe.left&&!pe.right&&(Ho.bogus=!0),it.options.singleCursorHeightPerLine||(Ho.rtop=Nn,Ho.rbottom=pi),Ho}function Rr(it,at){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!En(it))return at;var ct=screen.logicalXDPI/screen.deviceXDPI,dt=screen.logicalYDPI/screen.deviceYDPI;return{left:at.left*ct,right:at.right*ct,top:at.top*dt,bottom:at.bottom*dt}}function Es(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var at=0;at<it.rest.length;at++)it.measure.caches[at]={}}function $a(it){it.display.externalMeasure=null,jt(it.display.lineMeasure);for(var at=0;at<it.display.view.length;at++)Es(it.display.view[at])}function Wa(it){$a(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function fa(){return we&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Aa(){return we&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Xa(it){var at=0;if(it.widgets)for(var ct=0;ct<it.widgets.length;++ct)it.widgets[ct].above&&(at+=el(it.widgets[ct]));return at}function Ha(it,at,ct,dt,pt){if(!pt){var At=Xa(at);ct.top+=At,ct.bottom+=At}if(dt=="line")return ct;dt||(dt="local");var zt=wr(at);if(dt=="local"?zt+=Ds(it.display):zt-=it.display.viewOffset,dt=="page"||dt=="window"){var $t=it.display.lineSpace.getBoundingClientRect();zt+=$t.top+(dt=="window"?0:Aa());var Jt=$t.left+(dt=="window"?0:fa());ct.left+=Jt,ct.right+=Jt}return ct.top+=zt,ct.bottom+=zt,ct}function ju(it,at,ct){if(ct=="div")return at;var dt=at.left,pt=at.top;if(ct=="page")dt-=fa(),pt-=Aa();else if(ct=="local"||!ct){var At=it.display.sizer.getBoundingClientRect();dt+=At.left,pt+=At.top}var zt=it.display.lineSpace.getBoundingClientRect();return{left:dt-zt.left,top:pt-zt.top}}function zl(it,at,ct,dt,pt){return dt||(dt=$e(it.doc,at.line)),Ha(it,dt,Gh(it,dt,at.ch,pt),ct)}function ka(it,at,ct,dt,pt,At){dt=dt||$e(it.doc,at.line),pt||(pt=zu(it,dt));function zt(pi,wi){var Ri=Rl(it,pt,pi,wi?"right":"left",At);return wi?Ri.left=Ri.right:Ri.right=Ri.left,Ha(it,dt,Ri,ct)}var $t=Rt(dt,it.doc.direction),Jt=at.ch,pe=at.sticky;if(Jt>=dt.text.length?(Jt=dt.text.length,pe="before"):Jt<=0&&(Jt=0,pe="after"),!$t)return zt(pe=="before"?Jt-1:Jt,pe=="before");function un(pi,wi,Ri){var so=$t[wi],ko=so.level==1;return zt(Ri?pi-1:pi,ko!=Ri)}var be=mt($t,Jt,pe),jn=xt,Nn=un(Jt,be,pe=="before");return jn!=null&&(Nn.other=un(Jt,jn,pe!="before")),Nn}function xc(it,at){var ct=0;at=Cn(it.doc,at),it.options.lineWrapping||(ct=ih(it.display)*at.ch);var dt=$e(it.doc,at.line),pt=wr(dt)+Ds(it.display);return{left:ct,right:ct,top:pt,bottom:pt+dt.height}}function wc(it,at,ct,dt,pt){var At=We(it,at,ct);return At.xRel=pt,dt&&(At.outside=dt),At}function Kh(it,at,ct){var dt=it.doc;if(ct+=it.display.viewOffset,ct<0)return wc(dt.first,0,null,-1,-1);var pt=vn(dt,ct),At=dt.first+dt.size-1;if(pt>At)return wc(dt.first+dt.size-1,$e(dt,At).text.length,null,1,1);at<0&&(at=0);for(var zt=$e(dt,pt);;){var $t=Qn(it,zt,pt,at,ct),Jt=Zo(zt,$t.ch+($t.xRel>0||$t.outside>0?1:0));if(!Jt)return $t;var pe=Jt.find(1);if(pe.line==pt)return pe;zt=$e(dt,pt=pe.line)}}function mo(it,at,ct,dt){dt-=Xa(at);var pt=at.text.length,At=qt(function(zt){return Rl(it,ct,zt-1).bottom<=dt},pt,0);return pt=qt(function(zt){return Rl(it,ct,zt).top>dt},At,pt),{begin:At,end:pt}}function cd(it,at,ct,dt){ct||(ct=zu(it,at));var pt=Ha(it,at,Rl(it,ct,dt),"line").top;return mo(it,at,ct,pt)}function De(it,at,ct,dt){return it.bottom<=ct?!1:it.top>ct?!0:(dt?it.left:it.right)>at}function Qn(it,at,ct,dt,pt){pt-=wr(at);var At=zu(it,at),zt=Xa(at),$t=0,Jt=at.text.length,pe=!0,un=Rt(at,it.doc.direction);if(un){var be=(it.options.lineWrapping?rf:Pc)(it,at,ct,At,un,dt,pt);pe=be.level!=1,$t=pe?be.from:be.to-1,Jt=pe?be.to:be.from-1}var jn=null,Nn=null,pi=qt(function(vr){var vo=Rl(it,At,vr);return vo.top+=zt,vo.bottom+=zt,De(vo,dt,pt,!1)?(vo.top<=pt&&vo.left<=dt&&(jn=vr,Nn=vo),!0):!1},$t,Jt),wi,Ri,so=!1;if(Nn){var ko=dt-Nn.left<Nn.right-dt,xo=ko==pe;pi=jn+(xo?0:1),Ri=xo?"after":"before",wi=ko?Nn.left:Nn.right}else{!pe&&(pi==Jt||pi==$t)&&pi++,Ri=pi==0?"after":pi==at.text.length?"before":Rl(it,At,pi-(pe?1:0)).bottom+zt<=pt==pe?"after":"before";var Ho=ka(it,We(ct,pi,Ri),"line",at,At);wi=Ho.left,so=pt<Ho.top?-1:pt>=Ho.bottom?1:0}return pi=te(at.text,pi,1),wc(ct,pi,Ri,so,dt-wi)}function Pc(it,at,ct,dt,pt,At,zt){var $t=qt(function(be){var jn=pt[be],Nn=jn.level!=1;return De(ka(it,We(ct,Nn?jn.to:jn.from,Nn?"before":"after"),"line",at,dt),At,zt,!0)},0,pt.length-1),Jt=pt[$t];if($t>0){var pe=Jt.level!=1,un=ka(it,We(ct,pe?Jt.from:Jt.to,pe?"after":"before"),"line",at,dt);De(un,At,zt,!0)&&un.top>zt&&(Jt=pt[$t-1])}return Jt}function rf(it,at,ct,dt,pt,At,zt){var $t=mo(it,at,dt,zt),Jt=$t.begin,pe=$t.end;/\s/.test(at.text.charAt(pe-1))&&pe--;for(var un=null,be=null,jn=0;jn<pt.length;jn++){var Nn=pt[jn];if(!(Nn.from>=pe||Nn.to<=Jt)){var pi=Nn.level!=1,wi=Rl(it,dt,pi?Math.min(pe,Nn.to)-1:Math.max(Jt,Nn.from)).right,Ri=wi<At?At-wi+1e9:wi-At;(!un||be>Ri)&&(un=Nn,be=Ri)}}return un||(un=pt[pt.length-1]),un.from<Jt&&(un={from:Jt,to:un.to,level:un.level}),un.to>pe&&(un={from:un.from,to:pe,level:un.level}),un}var Wu;function Hu(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(Wu==null){Wu=Ut("pre",null,"CodeMirror-line-like");for(var at=0;at<49;++at)Wu.appendChild(document.createTextNode("x")),Wu.appendChild(Ut("br"));Wu.appendChild(document.createTextNode("x"))}Xt(it.measure,Wu);var ct=Wu.offsetHeight/50;return ct>3&&(it.cachedTextHeight=ct),jt(it.measure),ct||1}function ih(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var at=Ut("span","xxxxxxxxxx"),ct=Ut("pre",[at],"CodeMirror-line-like");Xt(it.measure,ct);var dt=at.getBoundingClientRect(),pt=(dt.right-dt.left)/10;return pt>2&&(it.cachedCharWidth=pt),pt||10}function Cc(it){for(var at=it.display,ct={},dt={},pt=at.gutters.clientLeft,At=at.gutters.firstChild,zt=0;At;At=At.nextSibling,++zt){var $t=it.display.gutterSpecs[zt].className;ct[$t]=At.offsetLeft+At.clientLeft+pt,dt[$t]=At.clientWidth}return{fixedPos:fd(at),gutterTotalWidth:at.gutters.offsetWidth,gutterLeft:ct,gutterWidth:dt,wrapperWidth:at.wrapper.clientWidth}}function fd(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Ga(it){var at=Hu(it.display),ct=it.options.lineWrapping,dt=ct&&Math.max(5,it.display.scroller.clientWidth/ih(it.display)-3);return function(pt){if(Yn(it.doc,pt))return 0;var At=0;if(pt.widgets)for(var zt=0;zt<pt.widgets.length;zt++)pt.widgets[zt].height&&(At+=pt.widgets[zt].height);return ct?At+(Math.ceil(pt.text.length/dt)||1)*at:At+at}}function Uo(it){var at=it.doc,ct=Ga(it);at.iter(function(dt){var pt=ct(dt);pt!=dt.height&&en(dt,pt)})}function il(it,at,ct,dt){var pt=it.display;if(!ct&&Zi(at).getAttribute("cm-not-content")=="true")return null;var At,zt,$t=pt.lineSpace.getBoundingClientRect();try{At=at.clientX-$t.left,zt=at.clientY-$t.top}catch(be){return null}var Jt=Kh(it,At,zt),pe;if(dt&&Jt.xRel>0&&(pe=$e(it.doc,Jt.line).text).length==Jt.ch){var un=ge(pe,pe.length,it.options.tabSize)-pe.length;Jt=We(Jt.line,Math.max(0,Math.round((At-Ru(it.display).left)/ih(it.display))-un))}return Jt}function Hs(it,at){if(at>=it.display.viewTo||(at-=it.display.viewFrom,at<0))return null;for(var ct=it.display.view,dt=0;dt<ct.length;dt++)if(at-=ct[dt].size,at<0)return dt}function ya(it,at,ct,dt){at==null&&(at=it.doc.first),ct==null&&(ct=it.doc.first+it.doc.size),dt||(dt=0);var pt=it.display;if(dt&&ct<pt.viewTo&&(pt.updateLineNumbers==null||pt.updateLineNumbers>at)&&(pt.updateLineNumbers=at),it.curOp.viewChanged=!0,at>=pt.viewTo)xn&&zi(it.doc,at)<pt.viewTo&&ls(it);else if(ct<=pt.viewFrom)xn&&co(it.doc,ct+dt)>pt.viewFrom?ls(it):(pt.viewFrom+=dt,pt.viewTo+=dt);else if(at<=pt.viewFrom&&ct>=pt.viewTo)ls(it);else if(at<=pt.viewFrom){var At=bl(it,ct,ct+dt,1);At?(pt.view=pt.view.slice(At.index),pt.viewFrom=At.lineN,pt.viewTo+=dt):ls(it)}else if(ct>=pt.viewTo){var zt=bl(it,at,at,-1);zt?(pt.view=pt.view.slice(0,zt.index),pt.viewTo=zt.lineN):ls(it)}else{var $t=bl(it,at,at,-1),Jt=bl(it,ct,ct+dt,1);$t&&Jt?(pt.view=pt.view.slice(0,$t.index).concat(or(it,$t.lineN,Jt.lineN)).concat(pt.view.slice(Jt.index)),pt.viewTo+=dt):ls(it)}var pe=pt.externalMeasured;pe&&(ct<pe.lineN?pe.lineN+=dt:at<pe.lineN+pe.size&&(pt.externalMeasured=null))}function Er(it,at,ct){it.curOp.viewChanged=!0;var dt=it.display,pt=it.display.externalMeasured;if(pt&&at>=pt.lineN&&at<pt.lineN+pt.size&&(dt.externalMeasured=null),!(at<dt.viewFrom||at>=dt.viewTo)){var At=dt.view[Hs(it,at)];if(At.node!=null){var zt=At.changes||(At.changes=[]);Ce(zt,ct)==-1&&zt.push(ct)}}}function ls(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function bl(it,at,ct,dt){var pt=Hs(it,at),At,zt=it.display.view;if(!xn||ct==it.doc.first+it.doc.size)return{index:pt,lineN:ct};for(var $t=it.display.viewFrom,Jt=0;Jt<pt;Jt++)$t+=zt[Jt].size;if($t!=at){if(dt>0){if(pt==zt.length-1)return null;At=$t+zt[pt].size-at,pt++}else At=$t-at;at+=At,ct+=At}for(;zi(it.doc,ct)!=ct;){if(pt==(dt<0?0:zt.length-1))return null;ct+=dt*zt[pt-(dt<0?1:0)].size,pt+=dt}return{index:pt,lineN:ct}}function ga(it,at,ct){var dt=it.display,pt=dt.view;pt.length==0||at>=dt.viewTo||ct<=dt.viewFrom?(dt.view=or(it,at,ct),dt.viewFrom=at):(dt.viewFrom>at?dt.view=or(it,at,dt.viewFrom).concat(dt.view):dt.viewFrom<at&&(dt.view=dt.view.slice(Hs(it,at))),dt.viewFrom=at,dt.viewTo<ct?dt.view=dt.view.concat(or(it,dt.viewTo,ct)):dt.viewTo>ct&&(dt.view=dt.view.slice(0,Hs(it,ct)))),dt.viewTo=ct}function jl(it){for(var at=it.display.view,ct=0,dt=0;dt<at.length;dt++){var pt=at[dt];!pt.hidden&&(!pt.node||pt.changes)&&++ct}return ct}function ws(it){it.display.input.showSelection(it.display.input.prepareSelection())}function Vh(it,at){at===void 0&&(at=!0);for(var ct=it.doc,dt={},pt=dt.cursors=document.createDocumentFragment(),At=dt.selection=document.createDocumentFragment(),zt=0;zt<ct.sel.ranges.length;zt++)if(!(!at&&zt==ct.sel.primIndex)){var $t=ct.sel.ranges[zt];if(!($t.from().line>=it.display.viewTo||$t.to().line<it.display.viewFrom)){var Jt=$t.empty();(Jt||it.options.showCursorWhenSelecting)&&Gr(it,$t.head,pt),Jt||Zr(it,$t,At)}}return dt}function Gr(it,at,ct){var dt=ka(it,at,"div",null,null,!it.options.singleCursorHeightPerLine),pt=ct.appendChild(Ut("div","\xA0","CodeMirror-cursor"));if(pt.style.left=dt.left+"px",pt.style.top=dt.top+"px",pt.style.height=Math.max(0,dt.bottom-dt.top)*it.options.cursorHeight+"px",dt.other){var At=ct.appendChild(Ut("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));At.style.display="",At.style.left=dt.other.left+"px",At.style.top=dt.other.top+"px",At.style.height=(dt.other.bottom-dt.other.top)*.85+"px"}}function ol(it,at){return it.top-at.top||it.left-at.left}function Zr(it,at,ct){var dt=it.display,pt=it.doc,At=document.createDocumentFragment(),zt=Ru(it.display),$t=zt.left,Jt=Math.max(dt.sizerWidth,cl(it)-dt.sizer.offsetLeft)-zt.right,pe=pt.direction=="ltr";function un(xo,Ho,vr,vo){Ho<0&&(Ho=0),Ho=Math.round(Ho),vo=Math.round(vo),At.appendChild(Ut("div",null,"CodeMirror-selected","position: absolute; left: "+xo+`px;
|
|
|
top: `+Ho+"px; width: "+(vr==null?Jt-xo:vr)+`px;
|
|
|
height: `+(vo-Ho)+"px"))}function be(xo,Ho,vr){var vo=$e(pt,xo),Nr=vo.text.length,_a,Os;function as(Fs,ou){return zl(it,We(xo,Fs),"div",vo,ou)}function Ul(Fs,ou,al){var ks=cd(it,vo,null,Fs),sa=ou=="ltr"==(al=="after")?"left":"right",cs=al=="after"?ks.begin:ks.end-(/\s/.test(vo.text.charAt(ks.end-1))?2:1);return as(cs,sa)[sa]}var vl=Rt(vo,pt.direction);return Dt(vl,Ho||0,vr==null?Nr:vr,function(Fs,ou,al,ks){var sa=al=="ltr",cs=as(Fs,sa?"left":"right"),Zs=as(ou-1,sa?"right":"left"),sl=Ho==null&&Fs==0,Yu=vr==null&&ou==Nr,ss=ks==0,Mu=!vl||ks==vl.length-1;if(Zs.top-cs.top<=3){var Ss=(pe?sl:Yu)&&ss,Sf=(pe?Yu:sl)&&Mu,mu=Ss?$t:(sa?cs:Zs).left,ru=Sf?Jt:(sa?Zs:cs).right;un(mu,cs.top,ru-mu,cs.bottom)}else{var Yl,Oa,Ks,Lh;sa?(Yl=pe&&sl&&ss?$t:cs.left,Oa=pe?Jt:Ul(Fs,al,"before"),Ks=pe?$t:Ul(ou,al,"after"),Lh=pe&&Yu&&Mu?Jt:Zs.right):(Yl=pe?Ul(Fs,al,"before"):$t,Oa=!pe&&sl&&ss?Jt:cs.right,Ks=!pe&&Yu&&Mu?$t:Zs.left,Lh=pe?Ul(ou,al,"after"):Jt),un(Yl,cs.top,Oa-Yl,cs.bottom),cs.bottom<Zs.top&&un($t,cs.bottom,null,Zs.top),un(Ks,Zs.top,Lh-Ks,Zs.bottom)}(!_a||ol(cs,_a)<0)&&(_a=cs),ol(Zs,_a)<0&&(_a=Zs),(!Os||ol(cs,Os)<0)&&(Os=cs),ol(Zs,Os)<0&&(Os=Zs)}),{start:_a,end:Os}}var jn=at.from(),Nn=at.to();if(jn.line==Nn.line)be(jn.line,jn.ch,Nn.ch);else{var pi=$e(pt,jn.line),wi=$e(pt,Nn.line),Ri=Ao(pi)==Ao(wi),so=be(jn.line,jn.ch,Ri?pi.text.length+1:null).end,ko=be(Nn.line,Ri?0:null,Nn.ch).start;Ri&&(so.top<ko.top-2?(un(so.right,so.top,null,so.bottom),un($t,ko.top,ko.left,ko.bottom)):un(so.right,so.top,ko.left-so.right,so.bottom)),so.bottom<ko.top&&un($t,so.bottom,null,ko.top)}ct.appendChild(At)}function da(it){if(it.state.focused){var at=it.display;clearInterval(at.blinker);var ct=!0;at.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?at.blinker=setInterval(function(){it.hasFocus()||Uh(it),at.cursorDiv.style.visibility=(ct=!ct)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(at.cursorDiv.style.visibility="hidden")}}function Ba(it){it.state.focused||(it.display.input.focus(),Ur(it))}function Ja(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Uh(it))},100)}function Ur(it,at){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(le(it,"focus",it,at),it.state.focused=!0,sn(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),Ft&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),da(it))}function Uh(it,at){it.state.delayingBlurEvent||(it.state.focused&&(le(it,"blur",it,at),it.state.focused=!1,Ot(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function Ko(it){for(var at=it.display,ct=at.lineDiv.offsetTop,dt=0;dt<at.view.length;dt++){var pt=at.view[dt],At=it.options.lineWrapping,zt=void 0,$t=0;if(!pt.hidden){if(Vt&&fe<8){var Jt=pt.node.offsetTop+pt.node.offsetHeight;zt=Jt-ct,ct=Jt}else{var pe=pt.node.getBoundingClientRect();zt=pe.bottom-pe.top,!At&&pt.text.firstChild&&($t=pt.text.firstChild.getBoundingClientRect().right-pe.left-1)}var un=pt.line.height-zt;if((un>.005||un<-.005)&&(en(pt.line,zt),Gf(pt.line),pt.rest))for(var be=0;be<pt.rest.length;be++)Gf(pt.rest[be]);if($t>it.display.sizerWidth){var jn=Math.ceil($t/ih(it.display));jn>it.display.maxLineLength&&(it.display.maxLineLength=jn,it.display.maxLine=pt.line,it.display.maxLineChanged=!0)}}}}function Gf(it){if(it.widgets)for(var at=0;at<it.widgets.length;++at){var ct=it.widgets[at],dt=ct.node.parentNode;dt&&(ct.height=dt.offsetHeight)}}function zr(it,at,ct){var dt=ct&&ct.top!=null?Math.max(0,ct.top):it.scroller.scrollTop;dt=Math.floor(dt-Ds(it));var pt=ct&&ct.bottom!=null?ct.bottom:dt+it.wrapper.clientHeight,At=vn(at,dt),zt=vn(at,pt);if(ct&&ct.ensure){var $t=ct.ensure.from.line,Jt=ct.ensure.to.line;$t<At?(At=$t,zt=vn(at,wr($e(at,$t))+it.wrapper.clientHeight)):Math.min(Jt,at.lastLine())>=zt&&(At=vn(at,wr($e(at,Jt))-it.wrapper.clientHeight),zt=Jt)}return{from:At,to:Math.max(zt,At+1)}}function Zf(it,at){if(!Ge(it,"scrollCursorIntoView")){var ct=it.display,dt=ct.sizer.getBoundingClientRect(),pt=null;if(at.top+dt.top<0?pt=!0:at.bottom+dt.top>(window.innerHeight||document.documentElement.clientHeight)&&(pt=!1),pt!=null&&!Re){var At=Ut("div","\u200B",null,`position: absolute;
|
|
|
top: `+(at.top-ct.viewOffset-Ds(it.display))+`px;
|
|
|
height: `+(at.bottom-at.top+Ws(it)+ct.barHeight)+`px;
|
|
|
left: `+at.left+"px; width: "+Math.max(2,at.right-at.left)+"px;");it.display.lineSpace.appendChild(At),At.scrollIntoView(pt),it.display.lineSpace.removeChild(At)}}}function Zd(it,at,ct,dt){dt==null&&(dt=0);var pt;!it.options.lineWrapping&&at==ct&&(at=at.ch?We(at.line,at.sticky=="before"?at.ch-1:at.ch,"after"):at,ct=at.sticky=="before"?We(at.line,at.ch+1,"before"):at);for(var At=0;At<5;At++){var zt=!1,$t=ka(it,at),Jt=!ct||ct==at?$t:ka(it,ct);pt={left:Math.min($t.left,Jt.left),top:Math.min($t.top,Jt.top)-dt,right:Math.max($t.left,Jt.left),bottom:Math.max($t.bottom,Jt.bottom)+dt};var pe=Kf(it,pt),un=it.doc.scrollTop,be=it.doc.scrollLeft;if(pe.scrollTop!=null&&(Xh(it,pe.scrollTop),Math.abs(it.doc.scrollTop-un)>1&&(zt=!0)),pe.scrollLeft!=null&&(Zu(it,pe.scrollLeft),Math.abs(it.doc.scrollLeft-be)>1&&(zt=!0)),!zt)break}return pt}function Kd(it,at){var ct=Kf(it,at);ct.scrollTop!=null&&Xh(it,ct.scrollTop),ct.scrollLeft!=null&&Zu(it,ct.scrollLeft)}function Kf(it,at){var ct=it.display,dt=Hu(it.display);at.top<0&&(at.top=0);var pt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:ct.scroller.scrollTop,At=Wh(it),zt={};at.bottom-at.top>At&&(at.bottom=at.top+At);var $t=it.doc.height+bu(ct),Jt=at.top<dt,pe=at.bottom>$t-dt;if(at.top<pt)zt.scrollTop=Jt?0:at.top;else if(at.bottom>pt+At){var un=Math.min(at.top,(pe?$t:at.bottom)-At);un!=pt&&(zt.scrollTop=un)}var be=it.options.fixedGutter?0:ct.gutters.offsetWidth,jn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:ct.scroller.scrollLeft-be,Nn=cl(it)-ct.gutters.offsetWidth,pi=at.right-at.left>Nn;return pi&&(at.right=at.left+Nn),at.left<10?zt.scrollLeft=0:at.left<jn?zt.scrollLeft=Math.max(0,at.left+be-(pi?0:10)):at.right>Nn+jn-3&&(zt.scrollLeft=at.right+(pi?0:10)-Nn),zt}function bc(it,at){at!=null&&(Gu(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+at)}function yh(it){Gu(it);var at=it.getCursor();it.curOp.scrollToPos={from:at,to:at,margin:it.options.cursorScrollMargin}}function Yh(it,at,ct){(at!=null||ct!=null)&&Gu(it),at!=null&&(it.curOp.scrollLeft=at),ct!=null&&(it.curOp.scrollTop=ct)}function Yr(it,at){Gu(it),it.curOp.scrollToPos=at}function Gu(it){var at=it.curOp.scrollToPos;if(at){it.curOp.scrollToPos=null;var ct=xc(it,at.from),dt=xc(it,at.to);af(it,ct,dt,at.margin)}}function af(it,at,ct,dt){var pt=Kf(it,{left:Math.min(at.left,ct.left),top:Math.min(at.top,ct.top)-dt,right:Math.max(at.right,ct.right),bottom:Math.max(at.bottom,ct.bottom)+dt});Yh(it,pt.scrollLeft,pt.scrollTop)}function Xh(it,at){Math.abs(it.doc.scrollTop-at)<2||(Ct||to(it,{top:at}),Vf(it,at,!0),Ct&&to(it),$n(it,100))}function Vf(it,at,ct){at=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,at)),!(it.display.scroller.scrollTop==at&&!ct)&&(it.doc.scrollTop=at,it.display.scrollbars.setScrollTop(at),it.display.scroller.scrollTop!=at&&(it.display.scroller.scrollTop=at))}function Zu(it,at,ct,dt){at=Math.max(0,Math.min(at,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((ct?at==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-at)<2)&&!dt)&&(it.doc.scrollLeft=at,Yo(it),it.display.scroller.scrollLeft!=at&&(it.display.scroller.scrollLeft=at),it.display.scrollbars.setScrollLeft(at))}function fu(it){var at=it.display,ct=at.gutters.offsetWidth,dt=Math.round(it.doc.height+bu(it.display));return{clientHeight:at.scroller.clientHeight,viewHeight:at.wrapper.clientHeight,scrollWidth:at.scroller.scrollWidth,clientWidth:at.scroller.clientWidth,viewWidth:at.wrapper.clientWidth,barLeft:it.options.fixedGutter?ct:0,docHeight:dt,scrollHeight:dt+Ws(it)+at.barHeight,nativeBarWidth:at.nativeBarWidth,gutterWidth:ct}}var Sh=function(it,at,ct){this.cm=ct;var dt=this.vert=Ut("div",[Ut("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pt=this.horiz=Ut("div",[Ut("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");dt.tabIndex=pt.tabIndex=-1,it(dt),it(pt),re(dt,"scroll",function(){dt.clientHeight&&at(dt.scrollTop,"vertical")}),re(pt,"scroll",function(){pt.clientWidth&&at(pt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Vt&&fe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Sh.prototype.update=function(it){var at=it.scrollWidth>it.clientWidth+1,ct=it.scrollHeight>it.clientHeight+1,dt=it.nativeBarWidth;if(ct){this.vert.style.display="block",this.vert.style.bottom=at?dt+"px":"0";var pt=it.viewHeight-(at?dt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+pt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(at){this.horiz.style.display="block",this.horiz.style.right=ct?dt+"px":"0",this.horiz.style.left=it.barLeft+"px";var At=it.viewWidth-it.barLeft-(ct?dt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+At)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(dt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ct?dt:0,bottom:at?dt:0}},Sh.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Sh.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Sh.prototype.zeroWidthHack=function(){var it=ht&&!ye?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ht,this.disableVert=new Ht},Sh.prototype.enableZeroWidthBar=function(it,at,ct){it.style.pointerEvents="auto";function dt(){var pt=it.getBoundingClientRect(),At=ct=="vert"?document.elementFromPoint(pt.right-1,(pt.top+pt.bottom)/2):document.elementFromPoint((pt.right+pt.left)/2,pt.bottom-1);At!=it?it.style.pointerEvents="none":at.set(1e3,dt)}at.set(1e3,dt)},Sh.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Eu=function(){};Eu.prototype.update=function(){return{bottom:0,right:0}},Eu.prototype.setScrollLeft=function(){},Eu.prototype.setScrollTop=function(){},Eu.prototype.clear=function(){};function xh(it,at){at||(at=fu(it));var ct=it.display.barWidth,dt=it.display.barHeight;Ec(it,at);for(var pt=0;pt<4&&ct!=it.display.barWidth||dt!=it.display.barHeight;pt++)ct!=it.display.barWidth&&it.options.lineWrapping&&Ko(it),Ec(it,fu(it)),ct=it.display.barWidth,dt=it.display.barHeight}function Ec(it,at){var ct=it.display,dt=ct.scrollbars.update(at);ct.sizer.style.paddingRight=(ct.barWidth=dt.right)+"px",ct.sizer.style.paddingBottom=(ct.barHeight=dt.bottom)+"px",ct.heightForcer.style.borderBottom=dt.bottom+"px solid transparent",dt.right&&dt.bottom?(ct.scrollbarFiller.style.display="block",ct.scrollbarFiller.style.height=dt.bottom+"px",ct.scrollbarFiller.style.width=dt.right+"px"):ct.scrollbarFiller.style.display="",dt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(ct.gutterFiller.style.display="block",ct.gutterFiller.style.height=dt.bottom+"px",ct.gutterFiller.style.width=at.gutterWidth+"px"):ct.gutterFiller.style.display=""}var sf={native:Sh,null:Eu};function lf(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Ot(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new sf[it.options.scrollbarStyle](function(at){it.display.wrapper.insertBefore(at,it.display.scrollbarFiller),re(at,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),at.setAttribute("cm-not-content","true")},function(at,ct){ct=="horizontal"?Zu(it,at):Xh(it,at)},it),it.display.scrollbars.addClass&&sn(it.display.wrapper,it.display.scrollbars.addClass)}var Uf=0;function fl(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Uf},Ua(it.curOp)}function wh(it){var at=it.curOp;at&&dr(at,function(ct){for(var dt=0;dt<ct.ops.length;dt++)ct.ops[dt].cm.curOp=null;Kg(ct)})}function Kg(it){for(var at=it.ops,ct=0;ct<at.length;ct++)ne(at[ct]);for(var dt=0;dt<at.length;dt++)se(at[dt]);for(var pt=0;pt<at.length;pt++)He(at[pt]);for(var At=0;At<at.length;At++)Ke(at[At]);for(var zt=0;zt<at.length;zt++)dn(at[zt])}function ne(it){var at=it.cm,ct=at.display;Di(at),it.updateMaxLine&&sr(at),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<ct.viewFrom||it.scrollToPos.to.line>=ct.viewTo)||ct.maxLineChanged&&at.options.lineWrapping,it.update=it.mustUpdate&&new ni(at,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function se(it){it.updatedDisplay=it.mustUpdate&&io(it.cm,it.update)}function He(it){var at=it.cm,ct=at.display;it.updatedDisplay&&Ko(at),it.barMeasure=fu(at),ct.maxLineChanged&&!at.options.lineWrapping&&(it.adjustWidthTo=Gh(at,ct.maxLine,ct.maxLine.text.length).left+3,at.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(ct.scroller.clientWidth,ct.sizer.offsetLeft+it.adjustWidthTo+Ws(at)+at.display.barWidth),it.maxScrollLeft=Math.max(0,ct.sizer.offsetLeft+it.adjustWidthTo-cl(at))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=ct.input.prepareSelection())}function Ke(it){var at=it.cm;it.adjustWidthTo!=null&&(at.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<at.doc.scrollLeft&&Zu(at,Math.min(at.display.scroller.scrollLeft,it.maxScrollLeft),!0),at.display.maxLineChanged=!1);var ct=it.focus&&it.focus==me();it.preparedSelection&&at.display.input.showSelection(it.preparedSelection,ct),(it.updatedDisplay||it.startHeight!=at.doc.height)&&xh(at,it.barMeasure),it.updatedDisplay&&Oo(at,it.barMeasure),it.selectionChanged&&da(at),at.state.focused&&it.updateInput&&at.display.input.reset(it.typing),ct&&Ba(it.cm)}function dn(it){var at=it.cm,ct=at.display,dt=at.doc;if(it.updatedDisplay&&xi(at,it.update),ct.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(ct.wheelStartX=ct.wheelStartY=null),it.scrollTop!=null&&Vf(at,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&Zu(at,it.scrollLeft,!0,!0),it.scrollToPos){var pt=Zd(at,Cn(dt,it.scrollToPos.from),Cn(dt,it.scrollToPos.to),it.scrollToPos.margin);Zf(at,pt)}var At=it.maybeHiddenMarkers,zt=it.maybeUnhiddenMarkers;if(At)for(var $t=0;$t<At.length;++$t)At[$t].lines.length||le(At[$t],"hide");if(zt)for(var Jt=0;Jt<zt.length;++Jt)zt[Jt].lines.length&&le(zt[Jt],"unhide");ct.wrapper.offsetHeight&&(dt.scrollTop=at.display.scroller.scrollTop),it.changeObjs&&le(at,"changes",at,it.changeObjs),it.update&&it.update.finish()}function nn(it,at){if(it.curOp)return at();fl(it);try{return at()}finally{wh(it)}}function Tn(it,at){return function(){if(it.curOp)return at.apply(it,arguments);fl(it);try{return at.apply(it,arguments)}finally{wh(it)}}}function On(it){return function(){if(this.curOp)return it.apply(this,arguments);fl(this);try{return it.apply(this,arguments)}finally{wh(this)}}}function Bn(it){return function(){var at=this.cm;if(!at||at.curOp)return it.apply(this,arguments);fl(at);try{return it.apply(this,arguments)}finally{wh(at)}}}function $n(it,at){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(at,je(oi,it))}function oi(it){var at=it.doc;if(!(at.highlightFrontier>=it.display.viewTo)){var ct=+new Date+it.options.workTime,dt=Li(it,at.highlightFrontier),pt=[];at.iter(dt.line,Math.min(at.first+at.size,it.display.viewTo+500),function(At){if(dt.line>=it.display.viewFrom){var zt=At.styles,$t=At.text.length>it.options.maxHighlightLength?Ze(at.mode,dt.state):null,Jt=Ci(it,At,dt,!0);$t&&(dt.state=$t),At.styles=Jt.styles;var pe=At.styleClasses,un=Jt.classes;un?At.styleClasses=un:pe&&(At.styleClasses=null);for(var be=!zt||zt.length!=At.styles.length||pe!=un&&(!pe||!un||pe.bgClass!=un.bgClass||pe.textClass!=un.textClass),jn=0;!be&&jn<zt.length;++jn)be=zt[jn]!=At.styles[jn];be&&pt.push(dt.line),At.stateAfter=dt.save(),dt.nextLine()}else At.text.length<=it.options.maxHighlightLength&&Be(it,At.text,dt),At.stateAfter=dt.line%5==0?dt.save():null,dt.nextLine();if(+new Date>ct)return $n(it,it.options.workDelay),!0}),at.highlightFrontier=dt.line,at.modeFrontier=Math.max(at.modeFrontier,dt.line),pt.length&&nn(it,function(){for(var At=0;At<pt.length;At++)Er(it,pt[At],"text")})}}var ni=function(it,at,ct){var dt=it.display;this.viewport=at,this.visible=zr(dt,it.doc,at),this.editorIsHidden=!dt.wrapper.offsetWidth,this.wrapperHeight=dt.wrapper.clientHeight,this.wrapperWidth=dt.wrapper.clientWidth,this.oldDisplayWidth=cl(it),this.force=ct,this.dims=Cc(it),this.events=[]};ni.prototype.signal=function(it,at){Mn(it,at)&&this.events.push(arguments)},ni.prototype.finish=function(){for(var it=0;it<this.events.length;it++)le.apply(null,this.events[it])};function Di(it){var at=it.display;!at.scrollbarsClipped&&at.scroller.offsetWidth&&(at.nativeBarWidth=at.scroller.offsetWidth-at.scroller.clientWidth,at.heightForcer.style.height=Ws(it)+"px",at.sizer.style.marginBottom=-at.nativeBarWidth+"px",at.sizer.style.borderRightWidth=Ws(it)+"px",at.scrollbarsClipped=!0)}function Ai(it){if(it.hasFocus())return null;var at=me();if(!at||!Ve(it.display.lineDiv,at))return null;var ct={activeElt:at};if(window.getSelection){var dt=window.getSelection();dt.anchorNode&&dt.extend&&Ve(it.display.lineDiv,dt.anchorNode)&&(ct.anchorNode=dt.anchorNode,ct.anchorOffset=dt.anchorOffset,ct.focusNode=dt.focusNode,ct.focusOffset=dt.focusOffset)}return ct}function mi(it){if(!(!it||!it.activeElt||it.activeElt==me())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&Ve(document.body,it.anchorNode)&&Ve(document.body,it.focusNode))){var at=window.getSelection(),ct=document.createRange();ct.setEnd(it.anchorNode,it.anchorOffset),ct.collapse(!1),at.removeAllRanges(),at.addRange(ct),at.extend(it.focusNode,it.focusOffset)}}function io(it,at){var ct=it.display,dt=it.doc;if(at.editorIsHidden)return ls(it),!1;if(!at.force&&at.visible.from>=ct.viewFrom&&at.visible.to<=ct.viewTo&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo)&&ct.renderedView==ct.view&&jl(it)==0)return!1;ro(it)&&(ls(it),at.dims=Cc(it));var pt=dt.first+dt.size,At=Math.max(at.visible.from-it.options.viewportMargin,dt.first),zt=Math.min(pt,at.visible.to+it.options.viewportMargin);ct.viewFrom<At&&At-ct.viewFrom<20&&(At=Math.max(dt.first,ct.viewFrom)),ct.viewTo>zt&&ct.viewTo-zt<20&&(zt=Math.min(pt,ct.viewTo)),xn&&(At=zi(it.doc,At),zt=co(it.doc,zt));var $t=At!=ct.viewFrom||zt!=ct.viewTo||ct.lastWrapHeight!=at.wrapperHeight||ct.lastWrapWidth!=at.wrapperWidth;ga(it,At,zt),ct.viewOffset=wr($e(it.doc,ct.viewFrom)),it.display.mover.style.top=ct.viewOffset+"px";var Jt=jl(it);if(!$t&&Jt==0&&!at.force&&ct.renderedView==ct.view&&(ct.updateLineNumbers==null||ct.updateLineNumbers>=ct.viewTo))return!1;var pe=Ai(it);return Jt>4&&(ct.lineDiv.style.display="none"),Qi(it,ct.updateLineNumbers,at.dims),Jt>4&&(ct.lineDiv.style.display=""),ct.renderedView=ct.view,mi(pe),jt(ct.cursorDiv),jt(ct.selectionDiv),ct.gutters.style.height=ct.sizer.style.minHeight=0,$t&&(ct.lastWrapHeight=at.wrapperHeight,ct.lastWrapWidth=at.wrapperWidth,$n(it,400)),ct.updateLineNumbers=null,!0}function xi(it,at){for(var ct=at.viewport,dt=!0;;dt=!1){if(!dt||!it.options.lineWrapping||at.oldDisplayWidth==cl(it)){if(ct&&ct.top!=null&&(ct={top:Math.min(it.doc.height+bu(it.display)-Wh(it),ct.top)}),at.visible=zr(it.display,it.doc,ct),at.visible.from>=it.display.viewFrom&&at.visible.to<=it.display.viewTo)break}else dt&&(at.visible=zr(it.display,it.doc,ct));if(!io(it,at))break;Ko(it);var pt=fu(it);ws(it),xh(it,pt),Oo(it,pt),at.force=!1}at.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(at.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function to(it,at){var ct=new ni(it,at);if(io(it,ct)){Ko(it),xi(it,ct);var dt=fu(it);ws(it),xh(it,dt),Oo(it,dt),ct.finish()}}function Qi(it,at,ct){var dt=it.display,pt=it.options.lineNumbers,At=dt.lineDiv,zt=At.firstChild;function $t(pi){var wi=pi.nextSibling;return Ft&&ht&&it.display.currentWheelTarget==pi?pi.style.display="none":pi.parentNode.removeChild(pi),wi}for(var Jt=dt.view,pe=dt.viewFrom,un=0;un<Jt.length;un++){var be=Jt[un];if(!be.hidden)if(!be.node||be.node.parentNode!=At){var jn=Ol(it,be,pe,ct);At.insertBefore(jn,zt)}else{for(;zt!=be.node;)zt=$t(zt);var Nn=pt&&at!=null&&at<=pe&&be.lineNumber;be.changes&&(Ce(be.changes,"gutter")>-1&&(Nn=!1),ja(it,be,pe,ct)),Nn&&(jt(be.lineNumber),be.lineNumber.appendChild(document.createTextNode(qn(it.options,pe)))),zt=be.node.nextSibling}pe+=be.size}for(;zt;)zt=$t(zt)}function ho(it){var at=it.gutters.offsetWidth;it.sizer.style.marginLeft=at+"px"}function Oo(it,at){it.display.sizer.style.minHeight=at.docHeight+"px",it.display.heightForcer.style.top=at.docHeight+"px",it.display.gutters.style.height=at.docHeight+it.display.barHeight+Ws(it)+"px"}function Yo(it){var at=it.display,ct=at.view;if(!(!at.alignWidgets&&(!at.gutters.firstChild||!it.options.fixedGutter))){for(var dt=fd(at)-at.scroller.scrollLeft+it.doc.scrollLeft,pt=at.gutters.offsetWidth,At=dt+"px",zt=0;zt<ct.length;zt++)if(!ct[zt].hidden){it.options.fixedGutter&&(ct[zt].gutter&&(ct[zt].gutter.style.left=At),ct[zt].gutterBackground&&(ct[zt].gutterBackground.style.left=At));var $t=ct[zt].alignable;if($t)for(var Jt=0;Jt<$t.length;Jt++)$t[Jt].style.left=At}it.options.fixedGutter&&(at.gutters.style.left=dt+pt+"px")}}function ro(it){if(!it.options.lineNumbers)return!1;var at=it.doc,ct=qn(it.options,at.first+at.size-1),dt=it.display;if(ct.length!=dt.lineNumChars){var pt=dt.measure.appendChild(Ut("div",[Ut("div",ct)],"CodeMirror-linenumber CodeMirror-gutter-elt")),At=pt.firstChild.offsetWidth,zt=pt.offsetWidth-At;return dt.lineGutter.style.width="",dt.lineNumInnerWidth=Math.max(At,dt.lineGutter.offsetWidth-zt)+1,dt.lineNumWidth=dt.lineNumInnerWidth+zt,dt.lineNumChars=dt.lineNumInnerWidth?ct.length:-1,dt.lineGutter.style.width=dt.lineNumWidth+"px",ho(it.display),!0}return!1}function To(it,at){for(var ct=[],dt=!1,pt=0;pt<it.length;pt++){var At=it[pt],zt=null;if(typeof At!="string"&&(zt=At.style,At=At.className),At=="CodeMirror-linenumbers")if(at)dt=!0;else continue;ct.push({className:At,style:zt})}return at&&!dt&&ct.push({className:"CodeMirror-linenumbers",style:null}),ct}function gr(it){var at=it.gutters,ct=it.gutterSpecs;jt(at),it.lineGutter=null;for(var dt=0;dt<ct.length;++dt){var pt=ct[dt],At=pt.className,zt=pt.style,$t=at.appendChild(Ut("div",null,"CodeMirror-gutter "+At));zt&&($t.style.cssText=zt),At=="CodeMirror-linenumbers"&&(it.lineGutter=$t,$t.style.width=(it.lineNumWidth||1)+"px")}at.style.display=ct.length?"":"none",ho(it)}function uo(it){gr(it.display),ya(it),Yo(it)}function Eo(it,at,ct,dt){var pt=this;this.input=ct,pt.scrollbarFiller=Ut("div",null,"CodeMirror-scrollbar-filler"),pt.scrollbarFiller.setAttribute("cm-not-content","true"),pt.gutterFiller=Ut("div",null,"CodeMirror-gutter-filler"),pt.gutterFiller.setAttribute("cm-not-content","true"),pt.lineDiv=de("div",null,"CodeMirror-code"),pt.selectionDiv=Ut("div",null,null,"position: relative; z-index: 1"),pt.cursorDiv=Ut("div",null,"CodeMirror-cursors"),pt.measure=Ut("div",null,"CodeMirror-measure"),pt.lineMeasure=Ut("div",null,"CodeMirror-measure"),pt.lineSpace=de("div",[pt.measure,pt.lineMeasure,pt.selectionDiv,pt.cursorDiv,pt.lineDiv],null,"position: relative; outline: none");var At=de("div",[pt.lineSpace],"CodeMirror-lines");pt.mover=Ut("div",[At],null,"position: relative"),pt.sizer=Ut("div",[pt.mover],"CodeMirror-sizer"),pt.sizerWidth=null,pt.heightForcer=Ut("div",null,null,"position: absolute; height: "+bn+"px; width: 1px;"),pt.gutters=Ut("div",null,"CodeMirror-gutters"),pt.lineGutter=null,pt.scroller=Ut("div",[pt.sizer,pt.heightForcer,pt.gutters],"CodeMirror-scroll"),pt.scroller.setAttribute("tabIndex","-1"),pt.wrapper=Ut("div",[pt.scrollbarFiller,pt.gutterFiller,pt.scroller],"CodeMirror"),Vt&&fe<8&&(pt.gutters.style.zIndex=-1,pt.scroller.style.paddingRight=0),!Ft&&!(Ct&&nt)&&(pt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(pt.wrapper):it(pt.wrapper)),pt.viewFrom=pt.viewTo=at.first,pt.reportedViewFrom=pt.reportedViewTo=at.first,pt.view=[],pt.renderedView=null,pt.externalMeasured=null,pt.viewOffset=0,pt.lastWrapHeight=pt.lastWrapWidth=0,pt.updateLineNumbers=null,pt.nativeBarWidth=pt.barHeight=pt.barWidth=0,pt.scrollbarsClipped=!1,pt.lineNumWidth=pt.lineNumInnerWidth=pt.lineNumChars=null,pt.alignWidgets=!1,pt.cachedCharWidth=pt.cachedTextHeight=pt.cachedPaddingH=null,pt.maxLine=null,pt.maxLineLength=0,pt.maxLineChanged=!1,pt.wheelDX=pt.wheelDY=pt.wheelStartX=pt.wheelStartY=null,pt.shift=!1,pt.selForContextMenu=null,pt.activeTouch=null,pt.gutterSpecs=To(dt.gutters,dt.lineNumbers),gr(pt),ct.init(pt)}var lo=0,Gi=null;Vt?Gi=-.53:Ct?Gi=15:we?Gi=-.7:ve&&(Gi=-1/3);function So(it){var at=it.wheelDeltaX,ct=it.wheelDeltaY;return at==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(at=it.detail),ct==null&&it.detail&&it.axis==it.VERTICAL_AXIS?ct=it.detail:ct==null&&(ct=it.wheelDelta),{x:at,y:ct}}function Wo(it){var at=So(it);return at.x*=Gi,at.y*=Gi,at}function $o(it,at){var ct=So(at),dt=ct.x,pt=ct.y,At=it.display,zt=At.scroller,$t=zt.scrollWidth>zt.clientWidth,Jt=zt.scrollHeight>zt.clientHeight;if(dt&&$t||pt&&Jt){if(pt&&ht&&Ft){t:for(var pe=at.target,un=At.view;pe!=zt;pe=pe.parentNode)for(var be=0;be<un.length;be++)if(un[be].node==pe){it.display.currentWheelTarget=pe;break t}}if(dt&&!Ct&&!oe&&Gi!=null){pt&&Jt&&Xh(it,Math.max(0,zt.scrollTop+pt*Gi)),Zu(it,Math.max(0,zt.scrollLeft+dt*Gi)),(!pt||pt&&Jt)&&_n(at),At.wheelStartX=null;return}if(pt&&Gi!=null){var jn=pt*Gi,Nn=it.doc.scrollTop,pi=Nn+At.wrapper.clientHeight;jn<0?Nn=Math.max(0,Nn+jn-50):pi=Math.min(it.doc.height,pi+jn+50),to(it,{top:Nn,bottom:pi})}lo<20&&(At.wheelStartX==null?(At.wheelStartX=zt.scrollLeft,At.wheelStartY=zt.scrollTop,At.wheelDX=dt,At.wheelDY=pt,setTimeout(function(){if(At.wheelStartX!=null){var wi=zt.scrollLeft-At.wheelStartX,Ri=zt.scrollTop-At.wheelStartY,so=Ri&&At.wheelDY&&Ri/At.wheelDY||wi&&At.wheelDX&&wi/At.wheelDX;At.wheelStartX=At.wheelStartY=null,so&&(Gi=(Gi*lo+so)/(lo+1),++lo)}},200)):(At.wheelDX+=dt,At.wheelDY+=pt))}}var _o=function(it,at){this.ranges=it,this.primIndex=at};_o.prototype.primary=function(){return this.ranges[this.primIndex]},_o.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var at=0;at<this.ranges.length;at++){var ct=this.ranges[at],dt=it.ranges[at];if(!Ie(ct.anchor,dt.anchor)||!Ie(ct.head,dt.head))return!1}return!0},_o.prototype.deepCopy=function(){for(var it=[],at=0;at<this.ranges.length;at++)it[at]=new ao(an(this.ranges[at].anchor),an(this.ranges[at].head));return new _o(it,this.primIndex)},_o.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},_o.prototype.contains=function(it,at){at||(at=it);for(var ct=0;ct<this.ranges.length;ct++){var dt=this.ranges[ct];if(fn(at,dt.from())>=0&&fn(it,dt.to())<=0)return ct}return-1};var ao=function(it,at){this.anchor=it,this.head=at};ao.prototype.from=function(){return rn(this.anchor,this.head)},ao.prototype.to=function(){return _e(this.anchor,this.head)},ao.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function mr(it,at,ct){var dt=it&&it.options.selectionsMayTouch,pt=at[ct];at.sort(function(jn,Nn){return fn(jn.from(),Nn.from())}),ct=Ce(at,pt);for(var At=1;At<at.length;At++){var zt=at[At],$t=at[At-1],Jt=fn($t.to(),zt.from());if(dt&&!zt.empty()?Jt>0:Jt>=0){var pe=rn($t.from(),zt.from()),un=_e($t.to(),zt.to()),be=$t.empty()?zt.from()==zt.head:$t.from()==$t.head;At<=ct&&--ct,at.splice(--At,2,new ao(be?un:pe,be?pe:un))}}return new _o(at,ct)}function Pr(it,at){return new _o([new ao(it,at||it)],0)}function _r(it){return it.text?We(it.from.line+it.text.length-1,Ee(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Or(it,at){if(fn(it,at.from)<0)return it;if(fn(it,at.to)<=0)return _r(at);var ct=it.line+at.text.length-(at.to.line-at.from.line)-1,dt=it.ch;return it.line==at.to.line&&(dt+=_r(at).ch-at.to.ch),We(ct,dt)}function Da(it,at){for(var ct=[],dt=0;dt<it.sel.ranges.length;dt++){var pt=it.sel.ranges[dt];ct.push(new ao(Or(pt.anchor,at),Or(pt.head,at)))}return mr(it.cm,ct,it.sel.primIndex)}function Ma(it,at,ct){return it.line==at.line?We(ct.line,it.ch-at.ch+ct.ch):We(ct.line+(it.line-at.line),it.ch)}function Sr(it,at,ct){for(var dt=[],pt=We(it.first,0),At=pt,zt=0;zt<at.length;zt++){var $t=at[zt],Jt=Ma($t.from,pt,At),pe=Ma(_r($t),pt,At);if(pt=$t.to,At=pe,ct=="around"){var un=it.sel.ranges[zt],be=fn(un.head,un.anchor)<0;dt[zt]=new ao(be?pe:Jt,be?Jt:pe)}else dt[zt]=new ao(Jt,Jt)}return new _o(dt,it.sel.primIndex)}function Vo(it){it.doc.mode=Fe(it.options,it.doc.modeOption),Vr(it)}function Vr(it){it.doc.iter(function(at){at.stateAfter&&(at.stateAfter=null),at.styles&&(at.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,$n(it,100),it.state.modeGen++,it.curOp&&ya(it)}function Na(it,at){return at.from.ch==0&&at.to.ch==0&&Ee(at.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Sa(it,at,ct,dt){function pt(ko){return ct?ct[ko]:null}function At(ko,xo,Ho){Fr(ko,xo,Ho,dt),Bi(ko,"change",ko,at)}function zt(ko,xo){for(var Ho=[],vr=ko;vr<xo;++vr)Ho.push(new ir(pe[vr],pt(vr),dt));return Ho}var $t=at.from,Jt=at.to,pe=at.text,un=$e(it,$t.line),be=$e(it,Jt.line),jn=Ee(pe),Nn=pt(pe.length-1),pi=Jt.line-$t.line;if(at.full)it.insert(0,zt(0,pe.length)),it.remove(pe.length,it.size-pe.length);else if(Na(it,at)){var wi=zt(0,pe.length-1);At(be,be.text,Nn),pi&&it.remove($t.line,pi),wi.length&&it.insert($t.line,wi)}else if(un==be)if(pe.length==1)At(un,un.text.slice(0,$t.ch)+jn+un.text.slice(Jt.ch),Nn);else{var Ri=zt(1,pe.length-1);Ri.push(new ir(jn+un.text.slice(Jt.ch),Nn,dt)),At(un,un.text.slice(0,$t.ch)+pe[0],pt(0)),it.insert($t.line+1,Ri)}else if(pe.length==1)At(un,un.text.slice(0,$t.ch)+pe[0]+be.text.slice(Jt.ch),pt(0)),it.remove($t.line+1,pi);else{At(un,un.text.slice(0,$t.ch)+pe[0],pt(0)),At(be,jn+be.text.slice(Jt.ch),Nn);var so=zt(1,pe.length-1);pi>1&&it.remove($t.line+1,pi-1),it.insert($t.line+1,so)}Bi(it,"change",it,at)}function rs(it,at,ct){function dt(pt,At,zt){if(pt.linked)for(var $t=0;$t<pt.linked.length;++$t){var Jt=pt.linked[$t];if(Jt.doc!=At){var pe=zt&&Jt.sharedHist;ct&&!pe||(at(Jt.doc,pe),dt(Jt.doc,pt,pe))}}}dt(it,null,!0)}function tr(it,at){if(at.cm)throw new Error("This document is already in use.");it.doc=at,at.cm=it,Uo(it),Vo(it),Jo(it),it.options.lineWrapping||sr(it),it.options.mode=at.modeOption,ya(it)}function Jo(it){(it.doc.direction=="rtl"?sn:Ot)(it.display.lineDiv,"CodeMirror-rtl")}function er(it){nn(it,function(){Jo(it),ya(it)})}function Io(it){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=it||1}function Xr(it,at){var ct={from:an(at.from),to:_r(at),text:on(it,at.from,at.to)};return Gs(it,ct,at.from.line,at.to.line+1),rs(it,function(dt){return Gs(dt,ct,at.from.line,at.to.line+1)},!0),ct}function Ro(it){for(;it.length;){var at=Ee(it);if(at.ranges)it.pop();else break}}function pr(it,at){if(at)return Ro(it.done),Ee(it.done);if(it.done.length&&!Ee(it.done).ranges)return Ee(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Ee(it.done)}function jr(it,at,ct,dt){var pt=it.history;pt.undone.length=0;var At=+new Date,zt,$t;if((pt.lastOp==dt||pt.lastOrigin==at.origin&&at.origin&&(at.origin.charAt(0)=="+"&&pt.lastModTime>At-(it.cm?it.cm.options.historyEventDelay:500)||at.origin.charAt(0)=="*"))&&(zt=pr(pt,pt.lastOp==dt)))$t=Ee(zt.changes),fn(at.from,at.to)==0&&fn(at.from,$t.to)==0?$t.to=_r(at):zt.changes.push(Xr(it,at));else{var Jt=Ee(pt.done);for((!Jt||!Jt.ranges)&&us(it.sel,pt.done),zt={changes:[Xr(it,at)],generation:pt.generation},pt.done.push(zt);pt.done.length>pt.undoDepth;)pt.done.shift(),pt.done[0].ranges||pt.done.shift()}pt.done.push(ct),pt.generation=++pt.maxGeneration,pt.lastModTime=pt.lastSelTime=At,pt.lastOp=pt.lastSelOp=dt,pt.lastOrigin=pt.lastSelOrigin=at.origin,$t||le(it,"historyAdded")}function Wr(it,at,ct,dt){var pt=at.charAt(0);return pt=="*"||pt=="+"&&ct.ranges.length==dt.ranges.length&&ct.somethingSelected()==dt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function Ps(it,at,ct,dt){var pt=it.history,At=dt&&dt.origin;ct==pt.lastSelOp||At&&pt.lastSelOrigin==At&&(pt.lastModTime==pt.lastSelTime&&pt.lastOrigin==At||Wr(it,At,Ee(pt.done),at))?pt.done[pt.done.length-1]=at:us(at,pt.done),pt.lastSelTime=+new Date,pt.lastSelOrigin=At,pt.lastSelOp=ct,dt&&dt.clearRedo!==!1&&Ro(pt.undone)}function us(it,at){var ct=Ee(at);ct&&ct.ranges&&ct.equals(it)||at.push(it)}function Gs(it,at,ct,dt){var pt=at["spans_"+it.id],At=0;it.iter(Math.max(it.first,ct),Math.min(it.first+it.size,dt),function(zt){zt.markedSpans&&((pt||(pt=at["spans_"+it.id]={}))[At]=zt.markedSpans),++At})}function ta(it){if(!it)return null;for(var at,ct=0;ct<it.length;++ct)it[ct].marker.explicitlyCleared?at||(at=it.slice(0,ct)):at&&at.push(it[ct]);return at?at.length?at:null:it}function Cs(it,at){var ct=at["spans_"+it.id];if(!ct)return null;for(var dt=[],pt=0;pt<at.text.length;++pt)dt.push(ta(ct[pt]));return dt}function ns(it,at){var ct=Cs(it,at),dt=Oi(it,at);if(!ct)return dt;if(!dt)return ct;for(var pt=0;pt<ct.length;++pt){var At=ct[pt],zt=dt[pt];if(At&&zt)t:for(var $t=0;$t<zt.length;++$t){for(var Jt=zt[$t],pe=0;pe<At.length;++pe)if(At[pe].marker==Jt.marker)continue t;At.push(Jt)}else zt&&(ct[pt]=zt)}return ct}function ps(it,at,ct){for(var dt=[],pt=0;pt<it.length;++pt){var At=it[pt];if(At.ranges){dt.push(ct?_o.prototype.deepCopy.call(At):At);continue}var zt=At.changes,$t=[];dt.push({changes:$t});for(var Jt=0;Jt<zt.length;++Jt){var pe=zt[Jt],un=void 0;if($t.push({from:pe.from,to:pe.to,text:pe.text}),at)for(var be in pe)(un=be.match(/^spans_(\d+)$/))&&Ce(at,Number(un[1]))>-1&&(Ee($t)[be]=pe[be],delete pe[be])}}return dt}function Ku(it,at,ct,dt){if(dt){var pt=it.anchor;if(ct){var At=fn(at,pt)<0;At!=fn(ct,pt)<0?(pt=at,at=ct):At!=fn(at,ct)<0&&(at=ct)}return new ao(pt,at)}else return new ao(ct||at,at)}function ea(it,at,ct,dt,pt){pt==null&&(pt=it.cm&&(it.cm.display.shift||it.extend)),pa(it,new _o([Ku(it.sel.primary(),at,ct,pt)],0),dt)}function aa(it,at,ct){for(var dt=[],pt=it.cm&&(it.cm.display.shift||it.extend),At=0;At<it.sel.ranges.length;At++)dt[At]=Ku(it.sel.ranges[At],at[At],null,pt);var zt=mr(it.cm,dt,it.sel.primIndex);pa(it,zt,ct)}function ca(it,at,ct,dt){var pt=it.sel.ranges.slice(0);pt[at]=ct,pa(it,mr(it.cm,pt,it.sel.primIndex),dt)}function Qa(it,at,ct,dt){pa(it,Pr(at,ct),dt)}function ms(it,at,ct){var dt={ranges:at.ranges,update:function(pt){this.ranges=[];for(var At=0;At<pt.length;At++)this.ranges[At]=new ao(Cn(it,pt[At].anchor),Cn(it,pt[At].head))},origin:ct&&ct.origin};return le(it,"beforeSelectionChange",it,dt),it.cm&&le(it.cm,"beforeSelectionChange",it.cm,dt),dt.ranges!=at.ranges?mr(it.cm,dt.ranges,dt.ranges.length-1):at}function Dr(it,at,ct){var dt=it.history.done,pt=Ee(dt);pt&&pt.ranges?(dt[dt.length-1]=at,vs(it,at,ct)):pa(it,at,ct)}function pa(it,at,ct){vs(it,at,ct),Ps(it,it.sel,it.cm?it.cm.curOp.id:NaN,ct)}function vs(it,at,ct){(Mn(it,"beforeSelectionChange")||it.cm&&Mn(it.cm,"beforeSelectionChange"))&&(at=ms(it,at,ct));var dt=ct&&ct.bias||(fn(at.primary().head,it.sel.primary().head)<0?-1:1);gl(it,El(it,at,dt,!0)),!(ct&&ct.scroll===!1)&&it.cm&&yh(it.cm)}function gl(it,at){at.equals(it.sel)||(it.sel=at,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,cn(it.cm)),Bi(it,"cursorActivity",it))}function Wl(it){gl(it,El(it,it.sel,null,!1))}function El(it,at,ct,dt){for(var pt,At=0;At<at.ranges.length;At++){var zt=at.ranges[At],$t=at.ranges.length==it.sel.ranges.length&&it.sel.ranges[At],Jt=tu(it,zt.anchor,$t&&$t.anchor,ct,dt),pe=tu(it,zt.head,$t&&$t.head,ct,dt);(pt||Jt!=zt.anchor||pe!=zt.head)&&(pt||(pt=at.ranges.slice(0,At)),pt[At]=new ao(Jt,pe))}return pt?mr(it.cm,pt,at.primIndex):at}function _l(it,at,ct,dt,pt){var At=$e(it,at.line);if(At.markedSpans)for(var zt=0;zt<At.markedSpans.length;++zt){var $t=At.markedSpans[zt],Jt=$t.marker,pe="selectLeft"in Jt?!Jt.selectLeft:Jt.inclusiveLeft,un="selectRight"in Jt?!Jt.selectRight:Jt.inclusiveRight;if(($t.from==null||(pe?$t.from<=at.ch:$t.from<at.ch))&&($t.to==null||(un?$t.to>=at.ch:$t.to>at.ch))){if(pt&&(le(Jt,"beforeCursorEnter"),Jt.explicitlyCleared))if(At.markedSpans){--zt;continue}else break;if(!Jt.atomic)continue;if(ct){var be=Jt.find(dt<0?1:-1),jn=void 0;if((dt<0?un:pe)&&(be=Hl(it,be,-dt,be&&be.line==at.line?At:null)),be&&be.line==at.line&&(jn=fn(be,ct))&&(dt<0?jn<0:jn>0))return _l(it,be,at,dt,pt)}var Nn=Jt.find(dt<0?-1:1);return(dt<0?pe:un)&&(Nn=Hl(it,Nn,dt,Nn.line==at.line?At:null)),Nn?_l(it,Nn,at,dt,pt):null}}return at}function tu(it,at,ct,dt,pt){var At=dt||1,zt=_l(it,at,ct,At,pt)||!pt&&_l(it,at,ct,At,!0)||_l(it,at,ct,-At,pt)||!pt&&_l(it,at,ct,-At,!0);return zt||(it.cantEdit=!0,We(it.first,0))}function Hl(it,at,ct,dt){return ct<0&&at.ch==0?at.line>it.first?Cn(it,We(at.line-1)):null:ct>0&&at.ch==(dt||$e(it,at.line)).text.length?at.line<it.first+it.size-1?We(at.line+1,0):null:new We(at.line,at.ch+ct)}function oa(it){it.setSelection(We(it.firstLine(),0),We(it.lastLine()),Ae)}function Ls(it,at,ct){var dt={canceled:!1,from:at.from,to:at.to,text:at.text,origin:at.origin,cancel:function(){return dt.canceled=!0}};return ct&&(dt.update=function(pt,At,zt,$t){pt&&(dt.from=Cn(it,pt)),At&&(dt.to=Cn(it,At)),zt&&(dt.text=zt),$t!==void 0&&(dt.origin=$t)}),le(it,"beforeChange",it,dt),it.cm&&le(it.cm,"beforeChange",it.cm,dt),dt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:dt.from,to:dt.to,text:dt.text,origin:dt.origin}}function Za(it,at,ct){if(it.cm){if(!it.cm.curOp)return Tn(it.cm,Za)(it,at,ct);if(it.cm.state.suppressEdits)return}if(!((Mn(it,"beforeChange")||it.cm&&Mn(it.cm,"beforeChange"))&&(at=Ls(it,at,!0),!at))){var dt=eo&&!ct&&Do(it,at.from,at.to);if(dt)for(var pt=dt.length-1;pt>=0;--pt)ma(it,{from:dt[pt].from,to:dt[pt].to,text:pt?[""]:at.text,origin:at.origin});else ma(it,at)}}function ma(it,at){if(!(at.text.length==1&&at.text[0]==""&&fn(at.from,at.to)==0)){var ct=Da(it,at);jr(it,at,ct,it.cm?it.cm.curOp.id:NaN),eu(it,at,ct,Oi(it,at));var dt=[];rs(it,function(pt,At){!At&&Ce(dt,pt.history)==-1&&(xa(pt.history,at),dt.push(pt.history)),eu(pt,at,null,Oi(pt,at))})}}function Gl(it,at,ct){var dt=it.cm&&it.cm.state.suppressEdits;if(!(dt&&!ct)){for(var pt=it.history,At,zt=it.sel,$t=at=="undo"?pt.done:pt.undone,Jt=at=="undo"?pt.undone:pt.done,pe=0;pe<$t.length&&(At=$t[pe],!(ct?At.ranges&&!At.equals(it.sel):!At.ranges));pe++);if(pe!=$t.length){for(pt.lastOrigin=pt.lastSelOrigin=null;;)if(At=$t.pop(),At.ranges){if(us(At,Jt),ct&&!At.equals(it.sel)){pa(it,At,{clearRedo:!1});return}zt=At}else if(dt){$t.push(At);return}else break;var un=[];us(zt,Jt),Jt.push({changes:un,generation:pt.generation}),pt.generation=At.generation||++pt.maxGeneration;for(var be=Mn(it,"beforeChange")||it.cm&&Mn(it.cm,"beforeChange"),jn=function(wi){var Ri=At.changes[wi];if(Ri.origin=at,be&&!Ls(it,Ri,!1))return $t.length=0,{};un.push(Xr(it,Ri));var so=wi?Da(it,Ri):Ee($t);eu(it,Ri,so,ns(it,Ri)),!wi&&it.cm&&it.cm.scrollIntoView({from:Ri.from,to:_r(Ri)});var ko=[];rs(it,function(xo,Ho){!Ho&&Ce(ko,xo.history)==-1&&(xa(xo.history,Ri),ko.push(xo.history)),eu(xo,Ri,null,ns(xo,Ri))})},Nn=At.changes.length-1;Nn>=0;--Nn){var pi=jn(Nn);if(pi)return pi.v}}}}function oh(it,at){if(at!=0&&(it.first+=at,it.sel=new _o(Jn(it.sel.ranges,function(pt){return new ao(We(pt.anchor.line+at,pt.anchor.ch),We(pt.head.line+at,pt.head.ch))}),it.sel.primIndex),it.cm)){ya(it.cm,it.first,it.first-at,at);for(var ct=it.cm.display,dt=ct.viewFrom;dt<ct.viewTo;dt++)Er(it.cm,dt,"gutter")}}function eu(it,at,ct,dt){if(it.cm&&!it.cm.curOp)return Tn(it.cm,eu)(it,at,ct,dt);if(at.to.line<it.first){oh(it,at.text.length-1-(at.to.line-at.from.line));return}if(!(at.from.line>it.lastLine())){if(at.from.line<it.first){var pt=at.text.length-1-(it.first-at.from.line);oh(it,pt),at={from:We(it.first,0),to:We(at.to.line+pt,at.to.ch),text:[Ee(at.text)],origin:at.origin}}var At=it.lastLine();at.to.line>At&&(at={from:at.from,to:We(At,$e(it,At).text.length),text:[at.text[0]],origin:at.origin}),at.removed=on(it,at.from,at.to),ct||(ct=Da(it,at)),it.cm?Lu(it.cm,at,dt):Sa(it,at,dt),vs(it,ct,Ae),it.cantEdit&&tu(it,We(it.firstLine(),0))&&(it.cantEdit=!1)}}function Lu(it,at,ct){var dt=it.doc,pt=it.display,At=at.from,zt=at.to,$t=!1,Jt=At.line;it.options.lineWrapping||(Jt=xe(Ao($e(dt,At.line))),dt.iter(Jt,zt.line+1,function(Nn){if(Nn==pt.maxLine)return $t=!0,!0})),dt.sel.contains(at.from,at.to)>-1&&cn(it),Sa(dt,at,ct,Ga(it)),it.options.lineWrapping||(dt.iter(Jt,At.line+at.text.length,function(Nn){var pi=ia(Nn);pi>pt.maxLineLength&&(pt.maxLine=Nn,pt.maxLineLength=pi,pt.maxLineChanged=!0,$t=!1)}),$t&&(it.curOp.updateMaxLine=!0)),bi(dt,At.line),$n(it,400);var pe=at.text.length-(zt.line-At.line)-1;at.full?ya(it):At.line==zt.line&&at.text.length==1&&!Na(it.doc,at)?Er(it,At.line,"text"):ya(it,At.line,zt.line+1,pe);var un=Mn(it,"changes"),be=Mn(it,"change");if(be||un){var jn={from:At,to:zt,text:at.text,removed:at.removed,origin:at.origin};be&&Bi(it,"change",it,jn),un&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(jn)}it.display.selForContextMenu=null}function Vu(it,at,ct,dt,pt){var At;dt||(dt=ct),fn(dt,ct)<0&&(At=[dt,ct],ct=At[0],dt=At[1]),typeof at=="string"&&(at=it.splitLines(at)),Za(it,{from:ct,to:dt,text:at,origin:pt})}function Ll(it,at,ct,dt){ct<it.line?it.line+=dt:at<it.line&&(it.line=at,it.ch=0)}function Jr(it,at,ct,dt){for(var pt=0;pt<it.length;++pt){var At=it[pt],zt=!0;if(At.ranges){At.copied||(At=it[pt]=At.deepCopy(),At.copied=!0);for(var $t=0;$t<At.ranges.length;$t++)Ll(At.ranges[$t].anchor,at,ct,dt),Ll(At.ranges[$t].head,at,ct,dt);continue}for(var Jt=0;Jt<At.changes.length;++Jt){var pe=At.changes[Jt];if(ct<pe.from.line)pe.from=We(pe.from.line+dt,pe.from.ch),pe.to=We(pe.to.line+dt,pe.to.ch);else if(at<=pe.to.line){zt=!1;break}}zt||(it.splice(0,pt+1),pt=0)}}function xa(it,at){var ct=at.from.line,dt=at.to.line,pt=at.text.length-(dt-ct)-1;Jr(it.done,ct,dt,pt),Jr(it.undone,ct,dt,pt)}function hs(it,at,ct,dt){var pt=at,At=at;return typeof at=="number"?At=$e(it,pn(it,at)):pt=xe(at),pt==null?null:(dt(At,pt)&&it.cm&&Er(it.cm,pt,ct),At)}function wa(it){this.lines=it,this.parent=null;for(var at=0,ct=0;ct<it.length;++ct)it[ct].parent=this,at+=it[ct].height;this.height=at}wa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,at){for(var ct=it,dt=it+at;ct<dt;++ct){var pt=this.lines[ct];this.height-=pt.height,Qr(pt),Bi(pt,"delete")}this.lines.splice(it,at)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,at,ct){this.height+=ct,this.lines=this.lines.slice(0,it).concat(at).concat(this.lines.slice(it));for(var dt=0;dt<at.length;++dt)at[dt].parent=this},iterN:function(it,at,ct){for(var dt=it+at;it<dt;++it)if(ct(this.lines[it]))return!0}};function Kr(it){this.children=it;for(var at=0,ct=0,dt=0;dt<it.length;++dt){var pt=it[dt];at+=pt.chunkSize(),ct+=pt.height,pt.parent=this}this.size=at,this.height=ct,this.parent=null}Kr.prototype={chunkSize:function(){return this.size},removeInner:function(it,at){this.size-=at;for(var ct=0;ct<this.children.length;++ct){var dt=this.children[ct],pt=dt.chunkSize();if(it<pt){var At=Math.min(at,pt-it),zt=dt.height;if(dt.removeInner(it,At),this.height-=zt-dt.height,pt==At&&(this.children.splice(ct--,1),dt.parent=null),(at-=At)==0)break;it=0}else it-=pt}if(this.size-at<25&&(this.children.length>1||!(this.children[0]instanceof wa))){var $t=[];this.collapse($t),this.children=[new wa($t)],this.children[0].parent=this}},collapse:function(it){for(var at=0;at<this.children.length;++at)this.children[at].collapse(it)},insertInner:function(it,at,ct){this.size+=at.length,this.height+=ct;for(var dt=0;dt<this.children.length;++dt){var pt=this.children[dt],At=pt.chunkSize();if(it<=At){if(pt.insertInner(it,at,ct),pt.lines&&pt.lines.length>50){for(var zt=pt.lines.length%25+25,$t=zt;$t<pt.lines.length;){var Jt=new wa(pt.lines.slice($t,$t+=25));pt.height-=Jt.height,this.children.splice(++dt,0,Jt),Jt.parent=this}pt.lines=pt.lines.slice(0,zt),this.maybeSpill()}break}it-=At}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var at=it.children.splice(it.children.length-5,5),ct=new Kr(at);if(it.parent){it.size-=ct.size,it.height-=ct.height;var pt=Ce(it.parent.children,it);it.parent.children.splice(pt+1,0,ct)}else{var dt=new Kr(it.children);dt.parent=it,it.children=[dt,ct],it=dt}ct.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,at,ct){for(var dt=0;dt<this.children.length;++dt){var pt=this.children[dt],At=pt.chunkSize();if(it<At){var zt=Math.min(at,At-it);if(pt.iterN(it,zt,ct))return!0;if((at-=zt)==0)break;it=0}else it-=At}}};var ys=function(it,at,ct){if(ct)for(var dt in ct)ct.hasOwnProperty(dt)&&(this[dt]=ct[dt]);this.doc=it,this.node=at};ys.prototype.clear=function(){var it=this.doc.cm,at=this.line.widgets,ct=this.line,dt=xe(ct);if(!(dt==null||!at)){for(var pt=0;pt<at.length;++pt)at[pt]==this&&at.splice(pt--,1);at.length||(ct.widgets=null);var At=el(this);en(ct,Math.max(0,ct.height-At)),it&&(nn(it,function(){pl(it,ct,-At),Er(it,dt,"widget")}),Bi(it,"lineWidgetCleared",it,this,dt))}},ys.prototype.changed=function(){var it=this,at=this.height,ct=this.doc.cm,dt=this.line;this.height=null;var pt=el(this)-at;pt&&(Yn(this.doc,dt)||en(dt,dt.height+pt),ct&&nn(ct,function(){ct.curOp.forceUpdate=!0,pl(ct,dt,pt),Bi(ct,"lineWidgetChanged",ct,it,xe(dt))}))},Zn(ys);function pl(it,at,ct){wr(at)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&bc(it,ct)}function gu(it,at,ct,dt){var pt=new ys(it,ct,dt),At=it.cm;return At&&pt.noHScroll&&(At.display.alignWidgets=!0),hs(it,at,"widget",function(zt){var $t=zt.widgets||(zt.widgets=[]);if(pt.insertAt==null?$t.push(pt):$t.splice(Math.min($t.length-1,Math.max(0,pt.insertAt)),0,pt),pt.line=zt,At&&!Yn(it,zt)){var Jt=wr(zt)<it.scrollTop;en(zt,zt.height+el(pt)),Jt&&bc(At,pt.height),At.curOp.forceUpdate=!0}return!0}),At&&Bi(At,"lineWidgetAdded",At,pt,typeof at=="number"?at:xe(at)),pt}var uf=0,Xe=function(it,at){this.lines=[],this.type=at,this.doc=it,this.id=++uf};Xe.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,at=it&&!it.curOp;if(at&&fl(it),Mn(this,"clear")){var ct=this.find();ct&&Bi(this,"clear",ct.from,ct.to)}for(var dt=null,pt=null,At=0;At<this.lines.length;++At){var zt=this.lines[At],$t=Go(zt.markedSpans,this);it&&!this.collapsed?Er(it,xe(zt),"text"):it&&($t.to!=null&&(pt=xe(zt)),$t.from!=null&&(dt=xe(zt))),zt.markedSpans=Yi(zt.markedSpans,$t),$t.from==null&&this.collapsed&&!Yn(this.doc,zt)&&it&&en(zt,Hu(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Jt=0;Jt<this.lines.length;++Jt){var pe=Ao(this.lines[Jt]),un=ia(pe);un>it.display.maxLineLength&&(it.display.maxLine=pe,it.display.maxLineLength=un,it.display.maxLineChanged=!0)}dt!=null&&it&&this.collapsed&&ya(it,dt,pt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&Wl(it.doc)),it&&Bi(it,"markerCleared",it,this,dt,pt),at&&wh(it),this.parent&&this.parent.clear()}},Xe.prototype.find=function(it,at){it==null&&this.type=="bookmark"&&(it=1);for(var ct,dt,pt=0;pt<this.lines.length;++pt){var At=this.lines[pt],zt=Go(At.markedSpans,this);if(zt.from!=null&&(ct=We(at?At:xe(At),zt.from),it==-1))return ct;if(zt.to!=null&&(dt=We(at?At:xe(At),zt.to),it==1))return dt}return ct&&{from:ct,to:dt}},Xe.prototype.changed=function(){var it=this,at=this.find(-1,!0),ct=this,dt=this.doc.cm;!at||!dt||nn(dt,function(){var pt=at.line,At=xe(at.line),zt=mh(dt,At);if(zt&&(Es(zt),dt.curOp.selectionChanged=dt.curOp.forceUpdate=!0),dt.curOp.updateMaxLine=!0,!Yn(ct.doc,pt)&&ct.height!=null){var $t=ct.height;ct.height=null;var Jt=el(ct)-$t;Jt&&en(pt,pt.height+Jt)}Bi(dt,"markerChanged",dt,it)})},Xe.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(!at.maybeHiddenMarkers||Ce(at.maybeHiddenMarkers,this)==-1)&&(at.maybeUnhiddenMarkers||(at.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},Xe.prototype.detachLine=function(it){if(this.lines.splice(Ce(this.lines,it),1),!this.lines.length&&this.doc.cm){var at=this.doc.cm.curOp;(at.maybeHiddenMarkers||(at.maybeHiddenMarkers=[])).push(this)}},Zn(Xe);function Ph(it,at,ct,dt,pt){if(dt&&dt.shared)return hf(it,at,ct,dt,pt);if(it.cm&&!it.cm.curOp)return Tn(it.cm,Ph)(it,at,ct,dt,pt);var At=new Xe(it,pt),zt=fn(at,ct);if(dt&&hn(dt,At,!1),zt>0||zt==0&&At.clearWhenEmpty!==!1)return At;if(At.replacedWith&&(At.collapsed=!0,At.widgetNode=de("span",[At.replacedWith],"CodeMirror-widget"),dt.handleMouseEvents||At.widgetNode.setAttribute("cm-ignore-events","true"),dt.insertLeft&&(At.widgetNode.insertLeft=!0)),At.collapsed){if(rr(it,at.line,at,ct,At)||at.line!=ct.line&&rr(it,ct.line,at,ct,At))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ln()}At.addToHistory&&jr(it,{from:at,to:ct,origin:"markText"},it.sel,NaN);var $t=at.line,Jt=it.cm,pe;if(it.iter($t,ct.line+1,function(be){Jt&&At.collapsed&&!Jt.options.lineWrapping&&Ao(be)==Jt.display.maxLine&&(pe=!0),At.collapsed&&$t!=at.line&&en(be,0),nr(be,new po(At,$t==at.line?at.ch:null,$t==ct.line?ct.ch:null)),++$t}),At.collapsed&&it.iter(at.line,ct.line+1,function(be){Yn(it,be)&&en(be,0)}),At.clearOnEnter&&re(At,"beforeCursorEnter",function(){return At.clear()}),At.readOnly&&(Fo(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),At.collapsed&&(At.id=++uf,At.atomic=!0),Jt){if(pe&&(Jt.curOp.updateMaxLine=!0),At.collapsed)ya(Jt,at.line,ct.line+1);else if(At.className||At.startStyle||At.endStyle||At.css||At.attributes||At.title)for(var un=at.line;un<=ct.line;un++)Er(Jt,un,"text");At.atomic&&Wl(Jt.doc),Bi(Jt,"markerAdded",Jt,At)}return At}var Uu=function(it,at){this.markers=it,this.primary=at;for(var ct=0;ct<it.length;++ct)it[ct].parent=this};Uu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();Bi(this,"clear")}},Uu.prototype.find=function(it,at){return this.primary.find(it,at)},Zn(Uu);function hf(it,at,ct,dt,pt){dt=hn(dt),dt.shared=!1;var At=[Ph(it,at,ct,dt,pt)],zt=At[0],$t=dt.widgetNode;return rs(it,function(Jt){$t&&(dt.widgetNode=$t.cloneNode(!0)),At.push(Ph(Jt,Cn(Jt,at),Cn(Jt,ct),dt,pt));for(var pe=0;pe<Jt.linked.length;++pe)if(Jt.linked[pe].isParent)return;zt=Ee(At)}),new Uu(At,zt)}function gd(it){return it.findMarks(We(it.first,0),it.clipPos(We(it.lastLine())),function(at){return at.parent})}function Jh(it,at){for(var ct=0;ct<at.length;ct++){var dt=at[ct],pt=dt.find(),At=it.clipPos(pt.from),zt=it.clipPos(pt.to);if(fn(At,zt)){var $t=Ph(it,At,zt,dt.primary,dt.primary.type);dt.markers.push($t),$t.parent=dt}}}function Lc(it){for(var at=function(dt){var pt=it[dt],At=[pt.primary.doc];rs(pt.primary.doc,function(Jt){return At.push(Jt)});for(var zt=0;zt<pt.markers.length;zt++){var $t=pt.markers[zt];Ce(At,$t.doc)==-1&&($t.parent=null,pt.markers.splice(zt--,1))}},ct=0;ct<it.length;ct++)at(ct)}var Vg=0,As=function(it,at,ct,dt,pt){if(!(this instanceof As))return new As(it,at,ct,dt,pt);ct==null&&(ct=0),Kr.call(this,[new wa([new ir("",null)])]),this.first=ct,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ct;var At=We(ct,0);this.sel=Pr(At),this.history=new Io(null),this.id=++Vg,this.modeOption=at,this.lineSep=dt,this.direction=pt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Sa(this,{from:At,to:At,text:it}),pa(this,Pr(At),Ae)};As.prototype=ln(Kr.prototype,{constructor:As,iter:function(it,at,ct){ct?this.iterN(it-this.first,at-it,ct):this.iterN(this.first,this.first+this.size,it)},insert:function(it,at){for(var ct=0,dt=0;dt<at.length;++dt)ct+=at[dt].height;this.insertInner(it-this.first,at,ct)},remove:function(it,at){this.removeInner(it-this.first,at)},getValue:function(it){var at=zn(this,this.first,this.first+this.size);return it===!1?at:at.join(it||this.lineSeparator())},setValue:Bn(function(it){var at=We(this.first,0),ct=this.first+this.size-1;Za(this,{from:at,to:We(ct,$e(this,ct).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&Yh(this.cm,0,0),pa(this,Pr(at),Ae)}),replaceRange:function(it,at,ct,dt){at=Cn(this,at),ct=ct?Cn(this,ct):at,Vu(this,it,at,ct,dt)},getRange:function(it,at,ct){var dt=on(this,Cn(this,it),Cn(this,at));return ct===!1?dt:dt.join(ct||this.lineSeparator())},getLine:function(it){var at=this.getLineHandle(it);return at&&at.text},getLineHandle:function(it){if(Wn(this,it))return $e(this,it)},getLineNumber:function(it){return xe(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=$e(this,it)),Ao(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return Cn(this,it)},getCursor:function(it){var at=this.sel.primary(),ct;return it==null||it=="head"?ct=at.head:it=="anchor"?ct=at.anchor:it=="end"||it=="to"||it===!1?ct=at.to():ct=at.from(),ct},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Bn(function(it,at,ct){Qa(this,Cn(this,typeof it=="number"?We(it,at||0):it),null,ct)}),setSelection:Bn(function(it,at,ct){Qa(this,Cn(this,it),Cn(this,at||it),ct)}),extendSelection:Bn(function(it,at,ct){ea(this,Cn(this,it),at&&Cn(this,at),ct)}),extendSelections:Bn(function(it,at){aa(this,In(this,it),at)}),extendSelectionsBy:Bn(function(it,at){var ct=Jn(this.sel.ranges,it);aa(this,In(this,ct),at)}),setSelections:Bn(function(it,at,ct){if(it.length){for(var dt=[],pt=0;pt<it.length;pt++)dt[pt]=new ao(Cn(this,it[pt].anchor),Cn(this,it[pt].head));at==null&&(at=Math.min(it.length-1,this.sel.primIndex)),pa(this,mr(this.cm,dt,at),ct)}}),addSelection:Bn(function(it,at,ct){var dt=this.sel.ranges.slice(0);dt.push(new ao(Cn(this,it),Cn(this,at||it))),pa(this,mr(this.cm,dt,dt.length-1),ct)}),getSelection:function(it){for(var at=this.sel.ranges,ct,dt=0;dt<at.length;dt++){var pt=on(this,at[dt].from(),at[dt].to());ct=ct?ct.concat(pt):pt}return it===!1?ct:ct.join(it||this.lineSeparator())},getSelections:function(it){for(var at=[],ct=this.sel.ranges,dt=0;dt<ct.length;dt++){var pt=on(this,ct[dt].from(),ct[dt].to());it!==!1&&(pt=pt.join(it||this.lineSeparator())),at[dt]=pt}return at},replaceSelection:function(it,at,ct){for(var dt=[],pt=0;pt<this.sel.ranges.length;pt++)dt[pt]=it;this.replaceSelections(dt,at,ct||"+input")},replaceSelections:Bn(function(it,at,ct){for(var dt=[],pt=this.sel,At=0;At<pt.ranges.length;At++){var zt=pt.ranges[At];dt[At]={from:zt.from(),to:zt.to(),text:this.splitLines(it[At]),origin:ct}}for(var $t=at&&at!="end"&&Sr(this,dt,at),Jt=dt.length-1;Jt>=0;Jt--)Za(this,dt[Jt]);$t?Dr(this,$t):this.cm&&yh(this.cm)}),undo:Bn(function(){Gl(this,"undo")}),redo:Bn(function(){Gl(this,"redo")}),undoSelection:Bn(function(){Gl(this,"undo",!0)}),redoSelection:Bn(function(){Gl(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,at=0,ct=0,dt=0;dt<it.done.length;dt++)it.done[dt].ranges||++at;for(var pt=0;pt<it.undone.length;pt++)it.undone[pt].ranges||++ct;return{undo:at,redo:ct}},clearHistory:function(){var it=this;this.history=new Io(this.history.maxGeneration),rs(this,function(at){return at.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:ps(this.history.done),undone:ps(this.history.undone)}},setHistory:function(it){var at=this.history=new Io(this.history.maxGeneration);at.done=ps(it.done.slice(0),null,!0),at.undone=ps(it.undone.slice(0),null,!0)},setGutterMarker:Bn(function(it,at,ct){return hs(this,it,"gutter",function(dt){var pt=dt.gutterMarkers||(dt.gutterMarkers={});return pt[at]=ct,!ct&&Kt(pt)&&(dt.gutterMarkers=null),!0})}),clearGutter:Bn(function(it){var at=this;this.iter(function(ct){ct.gutterMarkers&&ct.gutterMarkers[it]&&hs(at,ct,"gutter",function(){return ct.gutterMarkers[it]=null,Kt(ct.gutterMarkers)&&(ct.gutterMarkers=null),!0})})}),lineInfo:function(it){var at;if(typeof it=="number"){if(!Wn(this,it)||(at=it,it=$e(this,it),!it))return null}else if(at=xe(it),at==null)return null;return{line:at,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:Bn(function(it,at,ct){return hs(this,it,at=="gutter"?"gutter":"class",function(dt){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass";if(!dt[pt])dt[pt]=ct;else{if(kt(ct).test(dt[pt]))return!1;dt[pt]+=" "+ct}return!0})}),removeLineClass:Bn(function(it,at,ct){return hs(this,it,at=="gutter"?"gutter":"class",function(dt){var pt=at=="text"?"textClass":at=="background"?"bgClass":at=="gutter"?"gutterClass":"wrapClass",At=dt[pt];if(At)if(ct==null)dt[pt]=null;else{var zt=At.match(kt(ct));if(!zt)return!1;var $t=zt.index+zt[0].length;dt[pt]=At.slice(0,zt.index)+(!zt.index||$t==At.length?"":" ")+At.slice($t)||null}else return!1;return!0})}),addLineWidget:Bn(function(it,at,ct){return gu(this,it,at,ct)}),removeLineWidget:function(it){it.clear()},markText:function(it,at,ct){return Ph(this,Cn(this,it),Cn(this,at),ct,ct&&ct.type||"range")},setBookmark:function(it,at){var ct={replacedWith:at&&(at.nodeType==null?at.widget:at),insertLeft:at&&at.insertLeft,clearWhenEmpty:!1,shared:at&&at.shared,handleMouseEvents:at&&at.handleMouseEvents};return it=Cn(this,it),Ph(this,it,it,ct,"bookmark")},findMarksAt:function(it){it=Cn(this,it);var at=[],ct=$e(this,it.line).markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt){var pt=ct[dt];(pt.from==null||pt.from<=it.ch)&&(pt.to==null||pt.to>=it.ch)&&at.push(pt.marker.parent||pt.marker)}return at},findMarks:function(it,at,ct){it=Cn(this,it),at=Cn(this,at);var dt=[],pt=it.line;return this.iter(it.line,at.line+1,function(At){var zt=At.markedSpans;if(zt)for(var $t=0;$t<zt.length;$t++){var Jt=zt[$t];!(Jt.to!=null&&pt==it.line&&it.ch>=Jt.to||Jt.from==null&&pt!=it.line||Jt.from!=null&&pt==at.line&&Jt.from>=at.ch)&&(!ct||ct(Jt.marker))&&dt.push(Jt.marker.parent||Jt.marker)}++pt}),dt},getAllMarks:function(){var it=[];return this.iter(function(at){var ct=at.markedSpans;if(ct)for(var dt=0;dt<ct.length;++dt)ct[dt].from!=null&&it.push(ct[dt].marker)}),it},posFromIndex:function(it){var at,ct=this.first,dt=this.lineSeparator().length;return this.iter(function(pt){var At=pt.text.length+dt;if(At>it)return at=it,!0;it-=At,++ct}),Cn(this,We(ct,at))},indexFromPos:function(it){it=Cn(this,it);var at=it.ch;if(it.line<this.first||it.ch<0)return 0;var ct=this.lineSeparator().length;return this.iter(this.first,it.line,function(dt){at+=dt.text.length+ct}),at},copy:function(it){var at=new As(zn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return at.scrollTop=this.scrollTop,at.scrollLeft=this.scrollLeft,at.sel=this.sel,at.extend=!1,it&&(at.history.undoDepth=this.history.undoDepth,at.setHistory(this.getHistory())),at},linkedDoc:function(it){it||(it={});var at=this.first,ct=this.first+this.size;it.from!=null&&it.from>at&&(at=it.from),it.to!=null&&it.to<ct&&(ct=it.to);var dt=new As(zn(this,at,ct),it.mode||this.modeOption,at,this.lineSep,this.direction);return it.sharedHist&&(dt.history=this.history),(this.linked||(this.linked=[])).push({doc:dt,sharedHist:it.sharedHist}),dt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Jh(dt,gd(this)),dt},unlinkDoc:function(it){if(it instanceof ra&&(it=it.doc),this.linked)for(var at=0;at<this.linked.length;++at){var ct=this.linked[at];if(ct.doc==it){this.linked.splice(at,1),it.unlinkDoc(this),Lc(gd(this));break}}if(it.history==this.history){var dt=[it.id];rs(it,function(pt){return dt.push(pt.id)},!0),it.history=new Io(null),it.history.done=ps(this.history.done,dt),it.history.undone=ps(this.history.undone,dt)}},iterLinkedDocs:function(it){rs(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):ki(it)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Bn(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(at){return at.order=null}),this.cm&&er(this.cm))})}),As.prototype.eachLine=As.prototype.iter;var Vd=0;function Ac(it){var at=this;if(Yf(at),!(Ge(at,it)||nl(at.display,it))){_n(it),Vt&&(Vd=+new Date);var ct=il(at,it,!0),dt=it.dataTransfer.files;if(!(!ct||at.isReadOnly()))if(dt&&dt.length&&window.FileReader&&window.File)for(var pt=dt.length,At=Array(pt),zt=0,$t=function(){++zt==pt&&Tn(at,function(){ct=Cn(at.doc,ct);var Nn={from:ct,to:ct,text:at.doc.splitLines(At.filter(function(pi){return pi!=null}).join(at.doc.lineSeparator())),origin:"paste"};Za(at.doc,Nn),Dr(at.doc,Pr(Cn(at.doc,ct),Cn(at.doc,_r(Nn))))})()},Jt=function(Nn,pi){if(at.options.allowDropFileTypes&&Ce(at.options.allowDropFileTypes,Nn.type)==-1){$t();return}var wi=new FileReader;wi.onerror=function(){return $t()},wi.onload=function(){var Ri=wi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ri)){$t();return}At[pi]=Ri,$t()},wi.readAsText(Nn)},pe=0;pe<dt.length;pe++)Jt(dt[pe],pe);else{if(at.state.draggingText&&at.doc.sel.contains(ct)>-1){at.state.draggingText(it),setTimeout(function(){return at.display.input.focus()},20);return}try{var un=it.dataTransfer.getData("Text");if(un){var be;if(at.state.draggingText&&!at.state.draggingText.copy&&(be=at.listSelections()),vs(at.doc,Pr(ct,ct)),be)for(var jn=0;jn<be.length;++jn)Vu(at.doc,"",be[jn].anchor,be[jn].head,"drag");at.replaceSelection(un,"around","paste"),at.display.input.focus()}}catch(Nn){}}}}function Ud(it,at){if(Vt&&(!it.state.draggingText||+new Date-Vd<100)){Fi(at);return}if(!(Ge(it,at)||nl(it.display,at))&&(at.dataTransfer.setData("Text",it.getSelection()),at.dataTransfer.effectAllowed="copyMove",at.dataTransfer.setDragImage&&!ve)){var ct=Ut("img",null,null,"position: fixed; left: 0; top: 0;");ct.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",oe&&(ct.width=ct.height=1,it.display.wrapper.appendChild(ct),ct._top=ct.offsetTop),at.dataTransfer.setDragImage(ct,0,0),oe&&ct.parentNode.removeChild(ct)}}function df(it,at){var ct=il(it,at);if(ct){var dt=document.createDocumentFragment();Gr(it,ct,dt),it.display.dragCursor||(it.display.dragCursor=Ut("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Xt(it.display.dragCursor,dt)}}function Yf(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function cf(it){if(document.getElementsByClassName){for(var at=document.getElementsByClassName("CodeMirror"),ct=[],dt=0;dt<at.length;dt++){var pt=at[dt].CodeMirror;pt&&ct.push(pt)}ct.length&&ct[0].operation(function(){for(var At=0;At<ct.length;At++)it(ct[At])})}}var Mc=!1;function Zl(){Mc||(pd(),Mc=!0)}function pd(){var it;re(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,cf(ff)},100))}),re(window,"blur",function(){return cf(Uh)})}function ff(it){var at=it.display;at.cachedCharWidth=at.cachedTextHeight=at.cachedPaddingH=null,at.scrollbarsClipped=!1,it.setSize()}for(var Au={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"},Ch=0;Ch<10;Ch++)Au[Ch+48]=Au[Ch+96]=String(Ch);for(var md=65;md<=90;md++)Au[md]=String.fromCharCode(md);for(var Qh=1;Qh<=12;Qh++)Au[Qh+111]=Au[Qh+63235]="F"+Qh;var ml={};ml.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"},ml.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"},ml.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"},ml.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"]},ml.default=ht?ml.macDefault:ml.pcDefault;function Fc(it){var at=it.split(/-(?!$)/);it=at[at.length-1];for(var ct,dt,pt,At,zt=0;zt<at.length-1;zt++){var $t=at[zt];if(/^(cmd|meta|m)$/i.test($t))At=!0;else if(/^a(lt)?$/i.test($t))ct=!0;else if(/^(c|ctrl|control)$/i.test($t))dt=!0;else if(/^s(hift)?$/i.test($t))pt=!0;else throw new Error("Unrecognized modifier name: "+$t)}return ct&&(it="Alt-"+it),dt&&(it="Ctrl-"+it),At&&(it="Cmd-"+it),pt&&(it="Shift-"+it),it}function kc(it){var at={};for(var ct in it)if(it.hasOwnProperty(ct)){var dt=it[ct];if(/^(name|fallthrough|(de|at)tach)$/.test(ct))continue;if(dt=="..."){delete it[ct];continue}for(var pt=Jn(ct.split(" "),Fc),At=0;At<pt.length;At++){var zt=void 0,$t=void 0;At==pt.length-1?($t=pt.join(" "),zt=dt):($t=pt.slice(0,At+1).join(" "),zt="...");var Jt=at[$t];if(!Jt)at[$t]=zt;else if(Jt!=zt)throw new Error("Inconsistent bindings for "+$t)}delete it[ct]}for(var pe in at)it[pe]=at[pe];return it}function Kl(it,at,ct,dt){at=bh(at);var pt=at.call?at.call(it,dt):at[it];if(pt===!1)return"nothing";if(pt==="...")return"multi";if(pt!=null&&ct(pt))return"handled";if(at.fallthrough){if(Object.prototype.toString.call(at.fallthrough)!="[object Array]")return Kl(it,at.fallthrough,ct,dt);for(var At=0;At<at.fallthrough.length;At++){var zt=Kl(it,at.fallthrough[At],ct,dt);if(zt)return zt}}}function vd(it){var at=typeof it=="string"?it:Au[it.keyCode];return at=="Ctrl"||at=="Alt"||at=="Shift"||at=="Mod"}function Bc(it,at,ct){var dt=it;return at.altKey&&dt!="Alt"&&(it="Alt-"+it),(wt?at.metaKey:at.ctrlKey)&&dt!="Ctrl"&&(it="Ctrl-"+it),(wt?at.ctrlKey:at.metaKey)&&dt!="Mod"&&(it="Cmd-"+it),!ct&&at.shiftKey&&dt!="Shift"&&(it="Shift-"+it),it}function Dc(it,at){if(oe&&it.keyCode==34&&it.char)return!1;var ct=Au[it.keyCode];return ct==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(ct=it.code),Bc(ct,it,at))}function bh(it){return typeof it=="string"?ml[it]:it}function rl(it,at){for(var ct=it.doc.sel.ranges,dt=[],pt=0;pt<ct.length;pt++){for(var At=at(ct[pt]);dt.length&&fn(At.from,Ee(dt).to)<=0;){var zt=dt.pop();if(fn(zt.from,At.from)<0){At.from=zt.from;break}}dt.push(At)}nn(it,function(){for(var $t=dt.length-1;$t>=0;$t--)Vu(it.doc,"",dt[$t].from,dt[$t].to,"+delete");yh(it)})}function Nc(it,at,ct){var dt=te(it.text,at+ct,ct);return dt<0||dt>it.text.length?null:dt}function ds(it,at,ct){var dt=Nc(it,at.ch,ct);return dt==null?null:new We(at.line,dt,ct<0?"after":"before")}function na(it,at,ct,dt,pt){if(it){at.doc.direction=="rtl"&&(pt=-pt);var At=Rt(ct,at.doc.direction);if(At){var zt=pt<0?Ee(At):At[0],$t=pt<0==(zt.level==1),Jt=$t?"after":"before",pe;if(zt.level>0||at.doc.direction=="rtl"){var un=zu(at,ct);pe=pt<0?ct.text.length-1:0;var be=Rl(at,un,pe).top;pe=qt(function(jn){return Rl(at,un,jn).top==be},pt<0==(zt.level==1)?zt.from:zt.to-1,pe),Jt=="before"&&(pe=Nc(ct,pe,1))}else pe=pt<0?zt.to:zt.from;return new We(dt,pe,Jt)}}return new We(dt,pt<0?ct.text.length:0,pt<0?"before":"after")}function Fa(it,at,ct,dt){var pt=Rt(at,it.doc.direction);if(!pt)return ds(at,ct,dt);ct.ch>=at.text.length?(ct.ch=at.text.length,ct.sticky="before"):ct.ch<=0&&(ct.ch=0,ct.sticky="after");var At=mt(pt,ct.ch,ct.sticky),zt=pt[At];if(it.doc.direction=="ltr"&&zt.level%2==0&&(dt>0?zt.to>ct.ch:zt.from<ct.ch))return ds(at,ct,dt);var $t=function(so,ko){return Nc(at,so instanceof We?so.ch:so,ko)},Jt,pe=function(so){return it.options.lineWrapping?(Jt=Jt||zu(it,at),cd(it,at,Jt,so)):{begin:0,end:at.text.length}},un=pe(ct.sticky=="before"?$t(ct,-1):ct.ch);if(it.doc.direction=="rtl"||zt.level==1){var be=zt.level==1==dt<0,jn=$t(ct,be?1:-1);if(jn!=null&&(be?jn<=zt.to&&jn<=un.end:jn>=zt.from&&jn>=un.begin)){var Nn=be?"before":"after";return new We(ct.line,jn,Nn)}}var pi=function(so,ko,xo){for(var Ho=function(_a,Os){return Os?new We(ct.line,$t(_a,1),"before"):new We(ct.line,_a,"after")};so>=0&&so<pt.length;so+=ko){var vr=pt[so],vo=ko>0==(vr.level!=1),Nr=vo?xo.begin:$t(xo.end,-1);if(vr.from<=Nr&&Nr<vr.to||(Nr=vo?vr.from:$t(vr.to,-1),xo.begin<=Nr&&Nr<xo.end))return Ho(Nr,vo)}},wi=pi(At+dt,dt,un);if(wi)return wi;var Ri=dt>0?un.end:$t(un.begin,-1);return Ri!=null&&!(dt>0&&Ri==at.text.length)&&(wi=pi(dt>0?0:pt.length-1,dt,pe(Ri)),wi)?wi:null}var Ns={selectAll:oa,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),Ae)},killLine:function(it){return rl(it,function(at){if(at.empty()){var ct=$e(it.doc,at.head.line).text.length;return at.head.ch==ct&&at.head.line<it.lastLine()?{from:at.head,to:We(at.head.line+1,0)}:{from:at.head,to:We(at.head.line,ct)}}else return{from:at.from(),to:at.to()}})},deleteLine:function(it){return rl(it,function(at){return{from:We(at.from().line,0),to:Cn(it.doc,We(at.to().line+1,0))}})},delLineLeft:function(it){return rl(it,function(at){return{from:We(at.from().line,0),to:at.from()}})},delWrappedLineLeft:function(it){return rl(it,function(at){var ct=it.charCoords(at.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return{from:dt,to:at.from()}})},delWrappedLineRight:function(it){return rl(it,function(at){var ct=it.charCoords(at.head,"div").top+5,dt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div");return{from:at.from(),to:dt}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(We(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(We(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(at){return nu(it,at.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(at){return Tc(it,at.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(at){return iu(it,at.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:ct},"div")},Sn)},goLineLeft:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5;return it.coordsChar({left:0,top:ct},"div")},Sn)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(at){var ct=it.cursorCoords(at.head,"div").top+5,dt=it.coordsChar({left:0,top:ct},"div");return dt.ch<it.getLine(dt.line).search(/\S/)?Tc(it,at.head):dt},Sn)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var at=[],ct=it.listSelections(),dt=it.options.tabSize,pt=0;pt<ct.length;pt++){var At=ct[pt].from(),zt=ge(it.getLine(At.line),At.ch,dt);at.push(Gn(dt-zt%dt))}it.replaceSelections(at)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return nn(it,function(){for(var at=it.listSelections(),ct=[],dt=0;dt<at.length;dt++)if(at[dt].empty()){var pt=at[dt].head,At=$e(it.doc,pt.line).text;if(At){if(pt.ch==At.length&&(pt=new We(pt.line,pt.ch-1)),pt.ch>0)pt=new We(pt.line,pt.ch+1),it.replaceRange(At.charAt(pt.ch-1)+At.charAt(pt.ch-2),We(pt.line,pt.ch-2),pt,"+transpose");else if(pt.line>it.doc.first){var zt=$e(it.doc,pt.line-1).text;zt&&(pt=new We(pt.line,1),it.replaceRange(At.charAt(0)+it.doc.lineSeparator()+zt.charAt(zt.length-1),We(pt.line-1,zt.length-1),pt,"+transpose"))}}ct.push(new ao(pt,pt))}it.setSelections(ct)})},newlineAndIndent:function(it){return nn(it,function(){for(var at=it.listSelections(),ct=at.length-1;ct>=0;ct--)it.replaceRange(it.doc.lineSeparator(),at[ct].anchor,at[ct].head,"+input");at=it.listSelections();for(var dt=0;dt<at.length;dt++)it.indentLine(at[dt].from().line,null,!0);yh(it)})},openLine:function(it){return it.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function nu(it,at){var ct=$e(it.doc,at),dt=Ao(ct);return dt!=ct&&(at=xe(dt)),na(!0,it,dt,at,1)}function iu(it,at){var ct=$e(it.doc,at),dt=kr(ct);return dt!=ct&&(at=xe(dt)),na(!0,it,ct,at,-1)}function Tc(it,at){var ct=nu(it,at.line),dt=$e(it.doc,ct.line),pt=Rt(dt,it.doc.direction);if(!pt||pt[0].level==0){var At=Math.max(ct.ch,dt.text.search(/\S/)),zt=at.line==ct.line&&at.ch<=At&&at.ch;return We(ct.line,zt?0:At,ct.sticky)}return ct}function Eh(it,at,ct){if(typeof at=="string"&&(at=Ns[at],!at))return!1;it.display.input.ensurePolled();var dt=it.display.shift,pt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),ct&&(it.display.shift=!1),pt=at(it)!=yn}finally{it.display.shift=dt,it.state.suppressEdits=!1}return pt}function Yd(it,at,ct){for(var dt=0;dt<it.state.keyMaps.length;dt++){var pt=Kl(at,it.state.keyMaps[dt],ct,it);if(pt)return pt}return it.options.extraKeys&&Kl(at,it.options.extraKeys,ct,it)||Kl(at,it.options.keyMap,ct,it)}var pu=new Ht;function rh(it,at,ct,dt){var pt=it.state.keySeq;if(pt){if(vd(at))return"handled";if(/\'$/.test(at)?it.state.keySeq=null:pu.set(50,function(){it.state.keySeq==pt&&(it.state.keySeq=null,it.display.input.reset())}),Xf(it,pt+" "+at,ct,dt))return!0}return Xf(it,at,ct,dt)}function Xf(it,at,ct,dt){var pt=Yd(it,at,dt);return pt=="multi"&&(it.state.keySeq=at),pt=="handled"&&Bi(it,"keyHandled",it,at,ct),(pt=="handled"||pt=="multi")&&(_n(ct),da(it)),!!pt}function Jf(it,at){var ct=Dc(at,!0);return ct?at.shiftKey&&!it.state.keySeq?rh(it,"Shift-"+ct,at,function(dt){return Eh(it,dt,!0)})||rh(it,ct,at,function(dt){if(typeof dt=="string"?/^go[A-Z]/.test(dt):dt.motion)return Eh(it,dt)}):rh(it,ct,at,function(dt){return Eh(it,dt)}):!1}function Qf(it,at,ct){return rh(it,"'"+ct+"'",at,function(dt){return Eh(it,dt,!0)})}var Xd=null;function Ug(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&(at.curOp.focus=me(),!Ge(at,it))){Vt&&fe<11&&it.keyCode==27&&(it.returnValue=!1);var ct=it.keyCode;at.display.shift=ct==16||it.shiftKey;var dt=Jf(at,it);oe&&(Xd=dt?ct:null,!dt&&ct==88&&!Mo&&(ht?it.metaKey:it.ctrlKey)&&at.replaceSelection("",null,"cut")),Ct&&!ht&&!dt&&ct==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),ct==18&&!/\bCodeMirror-crosshair\b/.test(at.display.lineDiv.className)&&Yg(at)}}function Yg(it){var at=it.display.lineDiv;sn(at,"CodeMirror-crosshair");function ct(dt){(dt.keyCode==18||!dt.altKey)&&(Ot(at,"CodeMirror-crosshair"),mn(document,"keyup",ct),mn(document,"mouseover",ct))}re(document,"keyup",ct),re(document,"mouseover",ct)}function Xg(it){it.keyCode==16&&(this.doc.sel.shift=!1),Ge(this,it)}function ah(it){var at=this;if(!(it.target&&it.target!=at.display.input.getField())&&!(nl(at.display,it)||Ge(at,it)||it.ctrlKey&&!it.altKey||ht&&it.metaKey)){var ct=it.keyCode,dt=it.charCode;if(oe&&ct==Xd){Xd=null,_n(it);return}if(!(oe&&(!it.which||it.which<10)&&Jf(at,it))){var pt=String.fromCharCode(dt==null?ct:dt);pt!="\b"&&(Qf(at,it,pt)||at.display.input.onKeyPress(it))}}}var om=400,Jg=function(it,at,ct){this.time=it,this.pos=at,this.button=ct};Jg.prototype.compare=function(it,at,ct){return this.time+om>it&&fn(at,this.pos)==0&&ct==this.button};var Oc,Jd;function Qg(it,at){var ct=+new Date;return Jd&&Jd.compare(ct,it,at)?(Oc=Jd=null,"triple"):Oc&&Oc.compare(ct,it,at)?(Jd=new Jg(ct,it,at),Oc=null,"double"):(Oc=new Jg(ct,it,at),Jd=null,"single")}function sh(it){var at=this,ct=at.display;if(!(Ge(at,it)||ct.activeTouch&&ct.input.supportsTouch())){if(ct.input.ensurePolled(),ct.shift=it.shiftKey,nl(ct,it)){Ft||(ct.scroller.draggable=!1,setTimeout(function(){return ct.scroller.draggable=!0},100));return}if(!_f(at,it)){var dt=il(at,it),pt=Vi(it),At=dt?Qg(dt,pt):"single";window.focus(),pt==1&&at.state.selectingText&&at.state.selectingText(it),!(dt&&qg(at,pt,dt,At,it))&&(pt==1?dt?rm(at,dt,At,it):Zi(it)==ct.scroller&&_n(it):pt==2?(dt&&ea(at.doc,dt),setTimeout(function(){return ct.input.focus()},20)):pt==3&&(Bt?at.display.input.onContextMenu(it):Ja(at)))}}}function qg(it,at,ct,dt,pt){var At="Click";return dt=="double"?At="Double"+At:dt=="triple"&&(At="Triple"+At),At=(at==1?"Left":at==2?"Middle":"Right")+At,rh(it,Bc(At,pt),pt,function(zt){if(typeof zt=="string"&&(zt=Ns[zt]),!zt)return!1;var $t=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),$t=zt(it,ct)!=yn}finally{it.state.suppressEdits=!1}return $t})}function qf(it,at,ct){var dt=it.getOption("configureMouse"),pt=dt?dt(it,at,ct):{};if(pt.unit==null){var At=st?ct.shiftKey&&ct.metaKey:ct.altKey;pt.unit=At?"rectangle":at=="single"?"char":at=="double"?"word":"line"}return(pt.extend==null||it.doc.extend)&&(pt.extend=it.doc.extend||ct.shiftKey),pt.addNew==null&&(pt.addNew=ht?ct.metaKey:ct.ctrlKey),pt.moveOnDrag==null&&(pt.moveOnDrag=!(ht?ct.altKey:ct.ctrlKey)),pt}function rm(it,at,ct,dt){Vt?setTimeout(je(Ba,it),0):it.curOp.focus=me();var pt=qf(it,ct,dt),At=it.doc.sel,zt;it.options.dragDrop&&ji&&!it.isReadOnly()&&ct=="single"&&(zt=At.contains(at))>-1&&(fn((zt=At.ranges[zt]).from(),at)<0||at.xRel>0)&&(fn(zt.to(),at)>0||at.xRel<0)?$g(it,dt,at,pt):ev(it,dt,at,pt)}function $g(it,at,ct,dt){var pt=it.display,At=!1,zt=Tn(it,function(pe){Ft&&(pt.scroller.draggable=!1),it.state.draggingText=!1,mn(pt.wrapper.ownerDocument,"mouseup",zt),mn(pt.wrapper.ownerDocument,"mousemove",$t),mn(pt.scroller,"dragstart",Jt),mn(pt.scroller,"drop",zt),At||(_n(pe),dt.addNew||ea(it.doc,ct,null,null,dt.extend),Ft&&!ve||Vt&&fe==9?setTimeout(function(){pt.wrapper.ownerDocument.body.focus({preventScroll:!0}),pt.input.focus()},20):pt.input.focus())}),$t=function(pe){At=At||Math.abs(at.clientX-pe.clientX)+Math.abs(at.clientY-pe.clientY)>=10},Jt=function(){return At=!0};Ft&&(pt.scroller.draggable=!0),it.state.draggingText=zt,zt.copy=!dt.moveOnDrag,pt.scroller.dragDrop&&pt.scroller.dragDrop(),re(pt.wrapper.ownerDocument,"mouseup",zt),re(pt.wrapper.ownerDocument,"mousemove",$t),re(pt.scroller,"dragstart",Jt),re(pt.scroller,"drop",zt),Ja(it),setTimeout(function(){return pt.input.focus()},20)}function _g(it,at,ct){if(ct=="char")return new ao(at,at);if(ct=="word")return it.findWordAt(at);if(ct=="line")return new ao(We(at.line,0),Cn(it.doc,We(at.line+1,0)));var dt=ct(it,at);return new ao(dt.from,dt.to)}function ev(it,at,ct,dt){var pt=it.display,At=it.doc;_n(at);var zt,$t,Jt=At.sel,pe=Jt.ranges;if(dt.addNew&&!dt.extend?($t=At.sel.contains(ct),$t>-1?zt=pe[$t]:zt=new ao(ct,ct)):(zt=At.sel.primary(),$t=At.sel.primIndex),dt.unit=="rectangle")dt.addNew||(zt=new ao(ct,ct)),ct=il(it,at,!0,!0),$t=-1;else{var un=_g(it,ct,dt.unit);dt.extend?zt=Ku(zt,un.anchor,un.head,dt.extend):zt=un}dt.addNew?$t==-1?($t=pe.length,pa(At,mr(it,pe.concat([zt]),$t),{scroll:!1,origin:"*mouse"})):pe.length>1&&pe[$t].empty()&&dt.unit=="char"&&!dt.extend?(pa(At,mr(it,pe.slice(0,$t).concat(pe.slice($t+1)),0),{scroll:!1,origin:"*mouse"}),Jt=At.sel):ca(At,$t,zt,Ue):($t=0,pa(At,new _o([zt],0),Ue),Jt=At.sel);var be=ct;function jn(xo){if(fn(be,xo)!=0)if(be=xo,dt.unit=="rectangle"){for(var Ho=[],vr=it.options.tabSize,vo=ge($e(At,ct.line).text,ct.ch,vr),Nr=ge($e(At,xo.line).text,xo.ch,vr),_a=Math.min(vo,Nr),Os=Math.max(vo,Nr),as=Math.min(ct.line,xo.line),Ul=Math.min(it.lastLine(),Math.max(ct.line,xo.line));as<=Ul;as++){var vl=$e(At,as).text,Fs=Xn(vl,_a,vr);_a==Os?Ho.push(new ao(We(as,Fs),We(as,Fs))):vl.length>Fs&&Ho.push(new ao(We(as,Fs),We(as,Xn(vl,Os,vr))))}Ho.length||Ho.push(new ao(ct,ct)),pa(At,mr(it,Jt.ranges.slice(0,$t).concat(Ho),$t),{origin:"*mouse",scroll:!1}),it.scrollIntoView(xo)}else{var ou=zt,al=_g(it,xo,dt.unit),ks=ou.anchor,sa;fn(al.anchor,ks)>0?(sa=al.head,ks=rn(ou.from(),al.anchor)):(sa=al.anchor,ks=_e(ou.to(),al.head));var cs=Jt.ranges.slice(0);cs[$t]=am(it,new ao(Cn(At,ks),sa)),pa(At,mr(it,cs,$t),Ue)}}var Nn=pt.wrapper.getBoundingClientRect(),pi=0;function wi(xo){var Ho=++pi,vr=il(it,xo,!0,dt.unit=="rectangle");if(vr)if(fn(vr,be)!=0){it.curOp.focus=me(),jn(vr);var vo=zr(pt,At);(vr.line>=vo.to||vr.line<vo.from)&&setTimeout(Tn(it,function(){pi==Ho&&wi(xo)}),150)}else{var Nr=xo.clientY<Nn.top?-20:xo.clientY>Nn.bottom?20:0;Nr&&setTimeout(Tn(it,function(){pi==Ho&&(pt.scroller.scrollTop+=Nr,wi(xo))}),50)}}function Ri(xo){it.state.selectingText=!1,pi=1/0,xo&&(_n(xo),pt.input.focus()),mn(pt.wrapper.ownerDocument,"mousemove",so),mn(pt.wrapper.ownerDocument,"mouseup",ko),At.history.lastSelOrigin=null}var so=Tn(it,function(xo){xo.buttons===0||!Vi(xo)?Ri(xo):wi(xo)}),ko=Tn(it,Ri);it.state.selectingText=ko,re(pt.wrapper.ownerDocument,"mousemove",so),re(pt.wrapper.ownerDocument,"mouseup",ko)}function am(it,at){var ct=at.anchor,dt=at.head,pt=$e(it.doc,ct.line);if(fn(ct,dt)==0&&ct.sticky==dt.sticky)return at;var At=Rt(pt);if(!At)return at;var zt=mt(At,ct.ch,ct.sticky),$t=At[zt];if($t.from!=ct.ch&&$t.to!=ct.ch)return at;var Jt=zt+($t.from==ct.ch==($t.level!=1)?0:1);if(Jt==0||Jt==At.length)return at;var pe;if(dt.line!=ct.line)pe=(dt.line-ct.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var un=mt(At,dt.ch,dt.sticky),be=un-zt||(dt.ch-ct.ch)*($t.level==1?-1:1);un==Jt-1||un==Jt?pe=be<0:pe=be>0}var jn=At[Jt+(pe?-1:0)],Nn=pe==(jn.level==1),pi=Nn?jn.from:jn.to,wi=Nn?"after":"before";return ct.ch==pi&&ct.sticky==wi?at:new ao(new We(ct.line,pi,wi),dt)}function $f(it,at,ct,dt){var pt,At;if(at.touches)pt=at.touches[0].clientX,At=at.touches[0].clientY;else try{pt=at.clientX,At=at.clientY}catch(jn){return!1}if(pt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;dt&&_n(at);var zt=it.display,$t=zt.lineDiv.getBoundingClientRect();if(At>$t.bottom||!Mn(it,ct))return ri(at);At-=$t.top-zt.viewOffset;for(var Jt=0;Jt<it.display.gutterSpecs.length;++Jt){var pe=zt.gutters.childNodes[Jt];if(pe&&pe.getBoundingClientRect().right>=pt){var un=vn(it.doc,At),be=it.display.gutterSpecs[Jt];return le(it,ct,it,un,be.className,at),ri(at)}}}function _f(it,at){return $f(it,at,"gutterClick",!0)}function tg(it,at){nl(it.display,at)||sm(it,at)||Ge(it,at,"contextmenu")||Bt||it.display.input.onContextMenu(at)}function sm(it,at){return Mn(it,"gutterContextMenu")?$f(it,at,"gutterContextMenu",!1):!1}function eg(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Wa(it)}var yd={toString:function(){return"CodeMirror.Init"}},tp={},gf={};function lm(it){var at=it.optionHandlers;function ct(dt,pt,At,zt){it.defaults[dt]=pt,At&&(at[dt]=zt?function($t,Jt,pe){pe!=yd&&At($t,Jt,pe)}:At)}it.defineOption=ct,it.Init=yd,ct("value","",function(dt,pt){return dt.setValue(pt)},!0),ct("mode",null,function(dt,pt){dt.doc.modeOption=pt,Vo(dt)},!0),ct("indentUnit",2,Vo,!0),ct("indentWithTabs",!1),ct("smartIndent",!0),ct("tabSize",4,function(dt){Vr(dt),Wa(dt),ya(dt)},!0),ct("lineSeparator",null,function(dt,pt){if(dt.doc.lineSep=pt,!!pt){var At=[],zt=dt.doc.first;dt.doc.iter(function(Jt){for(var pe=0;;){var un=Jt.text.indexOf(pt,pe);if(un==-1)break;pe=un+pt.length,At.push(We(zt,un))}zt++});for(var $t=At.length-1;$t>=0;$t--)Vu(dt.doc,pt,At[$t],We(At[$t].line,At[$t].ch+pt.length))}}),ct("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(dt,pt,At){dt.state.specialChars=new RegExp(pt.source+(pt.test(" ")?"":"| "),"g"),At!=yd&&dt.refresh()}),ct("specialCharPlaceholder",La,function(dt){return dt.refresh()},!0),ct("electricChars",!0),ct("inputStyle",nt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ct("spellcheck",!1,function(dt,pt){return dt.getInputField().spellcheck=pt},!0),ct("autocorrect",!1,function(dt,pt){return dt.getInputField().autocorrect=pt},!0),ct("autocapitalize",!1,function(dt,pt){return dt.getInputField().autocapitalize=pt},!0),ct("rtlMoveVisually",!gt),ct("wholeLineUpdateBefore",!0),ct("theme","default",function(dt){eg(dt),uo(dt)},!0),ct("keyMap","default",function(dt,pt,At){var zt=bh(pt),$t=At!=yd&&bh(At);$t&&$t.detach&&$t.detach(dt,zt),zt.attach&&zt.attach(dt,$t||null)}),ct("extraKeys",null),ct("configureMouse",null),ct("lineWrapping",!1,um,!0),ct("gutters",[],function(dt,pt){dt.display.gutterSpecs=To(pt,dt.options.lineNumbers),uo(dt)},!0),ct("fixedGutter",!0,function(dt,pt){dt.display.gutters.style.left=pt?fd(dt.display)+"px":"0",dt.refresh()},!0),ct("coverGutterNextToScrollbar",!1,function(dt){return xh(dt)},!0),ct("scrollbarStyle","native",function(dt){lf(dt),xh(dt),dt.display.scrollbars.setScrollTop(dt.doc.scrollTop),dt.display.scrollbars.setScrollLeft(dt.doc.scrollLeft)},!0),ct("lineNumbers",!1,function(dt,pt){dt.display.gutterSpecs=To(dt.options.gutters,pt),uo(dt)},!0),ct("firstLineNumber",1,uo,!0),ct("lineNumberFormatter",function(dt){return dt},uo,!0),ct("showCursorWhenSelecting",!1,ws,!0),ct("resetSelectionOnContextMenu",!0),ct("lineWiseCopyCut",!0),ct("pasteLinesPerSelection",!0),ct("selectionsMayTouch",!1),ct("readOnly",!1,function(dt,pt){pt=="nocursor"&&(Uh(dt),dt.display.input.blur()),dt.display.input.readOnlyChanged(pt)}),ct("screenReaderLabel",null,function(dt,pt){pt=pt===""?null:pt,dt.display.input.screenReaderLabelChanged(pt)}),ct("disableInput",!1,function(dt,pt){pt||dt.display.input.reset()},!0),ct("dragDrop",!0,ng),ct("allowDropFileTypes",null),ct("cursorBlinkRate",530),ct("cursorScrollMargin",0),ct("cursorHeight",1,ws,!0),ct("singleCursorHeightPerLine",!0,ws,!0),ct("workTime",100),ct("workDelay",100),ct("flattenSpans",!0,Vr,!0),ct("addModeClass",!1,Vr,!0),ct("pollInterval",100),ct("undoDepth",200,function(dt,pt){return dt.doc.history.undoDepth=pt}),ct("historyEventDelay",1250),ct("viewportMargin",10,function(dt){return dt.refresh()},!0),ct("maxHighlightLength",1e4,Vr,!0),ct("moveInputWithCursor",!0,function(dt,pt){pt||dt.display.input.resetPosition()}),ct("tabindex",null,function(dt,pt){return dt.display.input.getField().tabIndex=pt||""}),ct("autofocus",null),ct("direction","ltr",function(dt,pt){return dt.doc.setDirection(pt)},!0),ct("phrases",null)}function ng(it,at,ct){var dt=ct&&ct!=yd;if(!at!=!dt){var pt=it.display.dragFunctions,At=at?re:mn;At(it.display.scroller,"dragstart",pt.start),At(it.display.scroller,"dragenter",pt.enter),At(it.display.scroller,"dragover",pt.over),At(it.display.scroller,"dragleave",pt.leave),At(it.display.scroller,"drop",pt.drop)}}function um(it){it.options.lineWrapping?(sn(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Ot(it.display.wrapper,"CodeMirror-wrap"),sr(it)),Uo(it),ya(it),Wa(it),setTimeout(function(){return xh(it)},100)}function ra(it,at){var ct=this;if(!(this instanceof ra))return new ra(it,at);this.options=at=at?hn(at):{},hn(tp,at,!1);var dt=at.value;typeof dt=="string"?dt=new As(dt,at.mode,null,at.lineSeparator,at.direction):at.mode&&(dt.modeOption=at.mode),this.doc=dt;var pt=new ra.inputStyles[at.inputStyle](this),At=this.display=new Eo(it,dt,pt,at);At.wrapper.CodeMirror=this,eg(this),at.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),lf(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 Ht,keySeq:null,specialChars:null},at.autofocus&&!nt&&At.input.focus(),Vt&&fe<11&&setTimeout(function(){return ct.display.input.reset(!0)},20),Ic(this),Zl(),fl(this),this.curOp.forceUpdate=!0,tr(this,dt),at.autofocus&&!nt||this.hasFocus()?setTimeout(function(){ct.hasFocus()&&!ct.state.focused&&Ur(ct)},20):Uh(this);for(var zt in gf)gf.hasOwnProperty(zt)&&gf[zt](this,at[zt],yd);ro(this),at.finishInit&&at.finishInit(this);for(var $t=0;$t<Qd.length;++$t)Qd[$t](this);wh(this),Ft&&at.lineWrapping&&getComputedStyle(At.lineDiv).textRendering=="optimizelegibility"&&(At.lineDiv.style.textRendering="auto")}ra.defaults=tp,ra.optionHandlers=gf;function Ic(it){var at=it.display;re(at.scroller,"mousedown",Tn(it,sh)),Vt&&fe<11?re(at.scroller,"dblclick",Tn(it,function(Jt){if(!Ge(it,Jt)){var pe=il(it,Jt);if(!(!pe||_f(it,Jt)||nl(it.display,Jt))){_n(Jt);var un=it.findWordAt(pe);ea(it.doc,un.anchor,un.head)}}})):re(at.scroller,"dblclick",function(Jt){return Ge(it,Jt)||_n(Jt)}),re(at.scroller,"contextmenu",function(Jt){return tg(it,Jt)}),re(at.input.getField(),"contextmenu",function(Jt){at.scroller.contains(Jt.target)||tg(it,Jt)});var ct,dt={end:0};function pt(){at.activeTouch&&(ct=setTimeout(function(){return at.activeTouch=null},1e3),dt=at.activeTouch,dt.end=+new Date)}function At(Jt){if(Jt.touches.length!=1)return!1;var pe=Jt.touches[0];return pe.radiusX<=1&&pe.radiusY<=1}function zt(Jt,pe){if(pe.left==null)return!0;var un=pe.left-Jt.left,be=pe.top-Jt.top;return un*un+be*be>20*20}re(at.scroller,"touchstart",function(Jt){if(!Ge(it,Jt)&&!At(Jt)&&!_f(it,Jt)){at.input.ensurePolled(),clearTimeout(ct);var pe=+new Date;at.activeTouch={start:pe,moved:!1,prev:pe-dt.end<=300?dt:null},Jt.touches.length==1&&(at.activeTouch.left=Jt.touches[0].pageX,at.activeTouch.top=Jt.touches[0].pageY)}}),re(at.scroller,"touchmove",function(){at.activeTouch&&(at.activeTouch.moved=!0)}),re(at.scroller,"touchend",function(Jt){var pe=at.activeTouch;if(pe&&!nl(at,Jt)&&pe.left!=null&&!pe.moved&&new Date-pe.start<300){var un=it.coordsChar(at.activeTouch,"page"),be;!pe.prev||zt(pe,pe.prev)?be=new ao(un,un):!pe.prev.prev||zt(pe,pe.prev.prev)?be=it.findWordAt(un):be=new ao(We(un.line,0),Cn(it.doc,We(un.line+1,0))),it.setSelection(be.anchor,be.head),it.focus(),_n(Jt)}pt()}),re(at.scroller,"touchcancel",pt),re(at.scroller,"scroll",function(){at.scroller.clientHeight&&(Xh(it,at.scroller.scrollTop),Zu(it,at.scroller.scrollLeft,!0),le(it,"scroll",it))}),re(at.scroller,"mousewheel",function(Jt){return $o(it,Jt)}),re(at.scroller,"DOMMouseScroll",function(Jt){return $o(it,Jt)}),re(at.wrapper,"scroll",function(){return at.wrapper.scrollTop=at.wrapper.scrollLeft=0}),at.dragFunctions={enter:function(Jt){Ge(it,Jt)||Fi(Jt)},over:function(Jt){Ge(it,Jt)||(df(it,Jt),Fi(Jt))},start:function(Jt){return Ud(it,Jt)},drop:Tn(it,Ac),leave:function(Jt){Ge(it,Jt)||Yf(it)}};var $t=at.input.getField();re($t,"keyup",function(Jt){return Xg.call(it,Jt)}),re($t,"keydown",Tn(it,Ug)),re($t,"keypress",Tn(it,ah)),re($t,"focus",function(Jt){return Ur(it,Jt)}),re($t,"blur",function(Jt){return Uh(it,Jt)})}var Qd=[];ra.defineInitHook=function(it){return Qd.push(it)};function Ts(it,at,ct,dt){var pt=it.doc,At;ct==null&&(ct="add"),ct=="smart"&&(pt.mode.indent?At=Li(it,at).state:ct="prev");var zt=it.options.tabSize,$t=$e(pt,at),Jt=ge($t.text,null,zt);$t.stateAfter&&($t.stateAfter=null);var pe=$t.text.match(/^\s*/)[0],un;if(!dt&&!/\S/.test($t.text))un=0,ct="not";else if(ct=="smart"&&(un=pt.mode.indent(At,$t.text.slice(pe.length),$t.text),un==yn||un>150)){if(!dt)return;ct="prev"}ct=="prev"?at>pt.first?un=ge($e(pt,at-1).text,null,zt):un=0:ct=="add"?un=Jt+it.options.indentUnit:ct=="subtract"?un=Jt-it.options.indentUnit:typeof ct=="number"&&(un=Jt+ct),un=Math.max(0,un);var be="",jn=0;if(it.options.indentWithTabs)for(var Nn=Math.floor(un/zt);Nn;--Nn)jn+=zt,be+=" ";if(jn<un&&(be+=Gn(un-jn)),be!=pe)return Vu(pt,be,We(at,0),We(at,pe.length),"+input"),$t.stateAfter=null,!0;for(var pi=0;pi<pt.sel.ranges.length;pi++){var wi=pt.sel.ranges[pi];if(wi.head.line==at&&wi.head.ch<pe.length){var Ri=We(at,pe.length);ca(pt,pi,new ao(Ri,Ri));break}}}var Vl=null;function qd(it){Vl=it}function pf(it,at,ct,dt,pt){var At=it.doc;it.display.shift=!1,dt||(dt=At.sel);var zt=+new Date-200,$t=pt=="paste"||it.state.pasteIncoming>zt,Jt=ki(at),pe=null;if($t&&dt.ranges.length>1)if(Vl&&Vl.text.join(`
|
|
|
`)==at){if(dt.ranges.length%Vl.text.length==0){pe=[];for(var un=0;un<Vl.text.length;un++)pe.push(At.splitLines(Vl.text[un]))}}else Jt.length==dt.ranges.length&&it.options.pasteLinesPerSelection&&(pe=Jn(Jt,function(so){return[so]}));for(var be=it.curOp.updateInput,jn=dt.ranges.length-1;jn>=0;jn--){var Nn=dt.ranges[jn],pi=Nn.from(),wi=Nn.to();Nn.empty()&&(ct&&ct>0?pi=We(pi.line,pi.ch-ct):it.state.overwrite&&!$t?wi=We(wi.line,Math.min($e(At,wi.line).text.length,wi.ch+Ee(Jt).length)):$t&&Vl&&Vl.lineWise&&Vl.text.join(`
|
|
|
`)==Jt.join(`
|
|
|
`)&&(pi=wi=We(pi.line,0)));var Ri={from:pi,to:wi,text:pe?pe[jn%pe.length]:Jt,origin:pt||($t?"paste":it.state.cutIncoming>zt?"cut":"+input")};Za(it.doc,Ri),Bi(it,"inputRead",it,Ri)}at&&!$t&&np(it,at),yh(it),it.curOp.updateInput<2&&(it.curOp.updateInput=be),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function ep(it,at){var ct=it.clipboardData&&it.clipboardData.getData("Text");if(ct)return it.preventDefault(),!at.isReadOnly()&&!at.options.disableInput&&nn(at,function(){return pf(at,ct,0,null,"paste")}),!0}function np(it,at){if(!(!it.options.electricChars||!it.options.smartIndent))for(var ct=it.doc.sel,dt=ct.ranges.length-1;dt>=0;dt--){var pt=ct.ranges[dt];if(!(pt.head.ch>100||dt&&ct.ranges[dt-1].head.line==pt.head.line)){var At=it.getModeAt(pt.head),zt=!1;if(At.electricChars){for(var $t=0;$t<At.electricChars.length;$t++)if(at.indexOf(At.electricChars.charAt($t))>-1){zt=Ts(it,pt.head.line,"smart");break}}else At.electricInput&&At.electricInput.test($e(it.doc,pt.head.line).text.slice(0,pt.head.ch))&&(zt=Ts(it,pt.head.line,"smart"));zt&&Bi(it,"electricInput",it,pt.head.line)}}}function ip(it){for(var at=[],ct=[],dt=0;dt<it.doc.sel.ranges.length;dt++){var pt=it.doc.sel.ranges[dt].head.line,At={anchor:We(pt,0),head:We(pt+1,0)};ct.push(At),at.push(it.getRange(At.anchor,At.head))}return{text:at,ranges:ct}}function op(it,at,ct,dt){it.setAttribute("autocorrect",ct?"":"off"),it.setAttribute("autocapitalize",dt?"":"off"),it.setAttribute("spellcheck",!!at)}function rp(){var it=Ut("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),at=Ut("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ft?it.style.width="1000px":it.setAttribute("wrap","off"),Tt&&(it.style.border="1px solid black"),op(it),at}function Sd(it){var at=it.optionHandlers,ct=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(dt,pt){var At=this.options,zt=At[dt];At[dt]==pt&&dt!="mode"||(At[dt]=pt,at.hasOwnProperty(dt)&&Tn(this,at[dt])(this,pt,zt),le(this,"optionChange",this,dt))},getOption:function(dt){return this.options[dt]},getDoc:function(){return this.doc},addKeyMap:function(dt,pt){this.state.keyMaps[pt?"push":"unshift"](bh(dt))},removeKeyMap:function(dt){for(var pt=this.state.keyMaps,At=0;At<pt.length;++At)if(pt[At]==dt||pt[At].name==dt)return pt.splice(At,1),!0},addOverlay:On(function(dt,pt){var At=dt.token?dt:it.getMode(this.options,dt);if(At.startState)throw new Error("Overlays may not be stateful.");ai(this.state.overlays,{mode:At,modeSpec:dt,opaque:pt&&pt.opaque,priority:pt&&pt.priority||0},function(zt){return zt.priority}),this.state.modeGen++,ya(this)}),removeOverlay:On(function(dt){for(var pt=this.state.overlays,At=0;At<pt.length;++At){var zt=pt[At].modeSpec;if(zt==dt||typeof dt=="string"&&zt.name==dt){pt.splice(At,1),this.state.modeGen++,ya(this);return}}}),indentLine:On(function(dt,pt,At){typeof pt!="string"&&typeof pt!="number"&&(pt==null?pt=this.options.smartIndent?"smart":"prev":pt=pt?"add":"subtract"),Wn(this.doc,dt)&&Ts(this,dt,pt,At)}),indentSelection:On(function(dt){for(var pt=this.doc.sel.ranges,At=-1,zt=0;zt<pt.length;zt++){var $t=pt[zt];if($t.empty())$t.head.line>At&&(Ts(this,$t.head.line,dt,!0),At=$t.head.line,zt==this.doc.sel.primIndex&&yh(this));else{var Jt=$t.from(),pe=$t.to(),un=Math.max(At,Jt.line);At=Math.min(this.lastLine(),pe.line-(pe.ch?0:1))+1;for(var be=un;be<At;++be)Ts(this,be,dt);var jn=this.doc.sel.ranges;Jt.ch==0&&pt.length==jn.length&&jn[zt].from().ch>0&&ca(this.doc,zt,new ao(Jt,jn[zt].to()),Ae)}}}),getTokenAt:function(dt,pt){return Hi(this,dt,pt)},getLineTokens:function(dt,pt){return Hi(this,We(dt),pt,!0)},getTokenTypeAt:function(dt){dt=Cn(this.doc,dt);var pt=Wi(this,$e(this.doc,dt.line)),At=0,zt=(pt.length-1)/2,$t=dt.ch,Jt;if($t==0)Jt=pt[2];else for(;;){var pe=At+zt>>1;if((pe?pt[pe*2-1]:0)>=$t)zt=pe;else if(pt[pe*2+1]<$t)At=pe+1;else{Jt=pt[pe*2+2];break}}var un=Jt?Jt.indexOf("overlay "):-1;return un<0?Jt:un==0?null:Jt.slice(0,un-1)},getModeAt:function(dt){var pt=this.doc.mode;return pt.innerMode?it.innerMode(pt,this.getTokenAt(dt).state).mode:pt},getHelper:function(dt,pt){return this.getHelpers(dt,pt)[0]},getHelpers:function(dt,pt){var At=[];if(!ct.hasOwnProperty(pt))return At;var zt=ct[pt],$t=this.getModeAt(dt);if(typeof $t[pt]=="string")zt[$t[pt]]&&At.push(zt[$t[pt]]);else if($t[pt])for(var Jt=0;Jt<$t[pt].length;Jt++){var pe=zt[$t[pt][Jt]];pe&&At.push(pe)}else $t.helperType&&zt[$t.helperType]?At.push(zt[$t.helperType]):zt[$t.name]&&At.push(zt[$t.name]);for(var un=0;un<zt._global.length;un++){var be=zt._global[un];be.pred($t,this)&&Ce(At,be.val)==-1&&At.push(be.val)}return At},getStateAfter:function(dt,pt){var At=this.doc;return dt=pn(At,dt==null?At.first+At.size-1:dt),Li(this,dt+1,pt).state},cursorCoords:function(dt,pt){var At,zt=this.doc.sel.primary();return dt==null?At=zt.head:typeof dt=="object"?At=Cn(this.doc,dt):At=dt?zt.from():zt.to(),ka(this,At,pt||"page")},charCoords:function(dt,pt){return zl(this,Cn(this.doc,dt),pt||"page")},coordsChar:function(dt,pt){return dt=ju(this,dt,pt||"page"),Kh(this,dt.left,dt.top)},lineAtHeight:function(dt,pt){return dt=ju(this,{top:dt,left:0},pt||"page").top,vn(this.doc,dt+this.display.viewOffset)},heightAtLine:function(dt,pt,At){var zt=!1,$t;if(typeof dt=="number"){var Jt=this.doc.first+this.doc.size-1;dt<this.doc.first?dt=this.doc.first:dt>Jt&&(dt=Jt,zt=!0),$t=$e(this.doc,dt)}else $t=dt;return Ha(this,$t,{top:0,left:0},pt||"page",At||zt).top+(zt?this.doc.height-wr($t):0)},defaultTextHeight:function(){return Hu(this.display)},defaultCharWidth:function(){return ih(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(dt,pt,At,zt,$t){var Jt=this.display;dt=ka(this,Cn(this.doc,dt));var pe=dt.bottom,un=dt.left;if(pt.style.position="absolute",pt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pt),Jt.sizer.appendChild(pt),zt=="over")pe=dt.top;else if(zt=="above"||zt=="near"){var be=Math.max(Jt.wrapper.clientHeight,this.doc.height),jn=Math.max(Jt.sizer.clientWidth,Jt.lineSpace.clientWidth);(zt=="above"||dt.bottom+pt.offsetHeight>be)&&dt.top>pt.offsetHeight?pe=dt.top-pt.offsetHeight:dt.bottom+pt.offsetHeight<=be&&(pe=dt.bottom),un+pt.offsetWidth>jn&&(un=jn-pt.offsetWidth)}pt.style.top=pe+"px",pt.style.left=pt.style.right="",$t=="right"?(un=Jt.sizer.clientWidth-pt.offsetWidth,pt.style.right="0px"):($t=="left"?un=0:$t=="middle"&&(un=(Jt.sizer.clientWidth-pt.offsetWidth)/2),pt.style.left=un+"px"),At&&Kd(this,{left:un,top:pe,right:un+pt.offsetWidth,bottom:pe+pt.offsetHeight})},triggerOnKeyDown:On(Ug),triggerOnKeyPress:On(ah),triggerOnKeyUp:Xg,triggerOnMouseDown:On(sh),execCommand:function(dt){if(Ns.hasOwnProperty(dt))return Ns[dt].call(null,this)},triggerElectric:On(function(dt){np(this,dt)}),findPosH:function(dt,pt,At,zt){var $t=1;pt<0&&($t=-1,pt=-pt);for(var Jt=Cn(this.doc,dt),pe=0;pe<pt&&(Jt=mf(this.doc,Jt,$t,At,zt),!Jt.hitSide);++pe);return Jt},moveH:On(function(dt,pt){var At=this;this.extendSelectionsBy(function(zt){return At.display.shift||At.doc.extend||zt.empty()?mf(At.doc,zt.head,dt,pt,At.options.rtlMoveVisually):dt<0?zt.from():zt.to()},Sn)}),deleteH:On(function(dt,pt){var At=this.doc.sel,zt=this.doc;At.somethingSelected()?zt.replaceSelection("",null,"+delete"):rl(this,function($t){var Jt=mf(zt,$t.head,dt,pt,!1);return dt<0?{from:Jt,to:$t.head}:{from:$t.head,to:Jt}})}),findPosV:function(dt,pt,At,zt){var $t=1,Jt=zt;pt<0&&($t=-1,pt=-pt);for(var pe=Cn(this.doc,dt),un=0;un<pt;++un){var be=ka(this,pe,"div");if(Jt==null?Jt=be.left:be.left=Jt,pe=xd(this,be,$t,At),pe.hitSide)break}return pe},moveV:On(function(dt,pt){var At=this,zt=this.doc,$t=[],Jt=!this.display.shift&&!zt.extend&&zt.sel.somethingSelected();if(zt.extendSelectionsBy(function(un){if(Jt)return dt<0?un.from():un.to();var be=ka(At,un.head,"div");un.goalColumn!=null&&(be.left=un.goalColumn),$t.push(be.left);var jn=xd(At,be,dt,pt);return pt=="page"&&un==zt.sel.primary()&&bc(At,zl(At,jn,"div").top-be.top),jn},Sn),$t.length)for(var pe=0;pe<zt.sel.ranges.length;pe++)zt.sel.ranges[pe].goalColumn=$t[pe]}),findWordAt:function(dt){var pt=this.doc,At=$e(pt,dt.line).text,zt=dt.ch,$t=dt.ch;if(At){var Jt=this.getHelper(dt,"wordChars");(dt.sticky=="before"||$t==At.length)&&zt?--zt:++$t;for(var pe=At.charAt(zt),un=ie(pe,Jt)?function(be){return ie(be,Jt)}:/\s/.test(pe)?function(be){return/\s/.test(be)}:function(be){return!/\s/.test(be)&&!ie(be)};zt>0&&un(At.charAt(zt-1));)--zt;for(;$t<At.length&&un(At.charAt($t));)++$t}return new ao(We(dt.line,zt),We(dt.line,$t))},toggleOverwrite:function(dt){dt!=null&&dt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?sn(this.display.cursorDiv,"CodeMirror-overwrite"):Ot(this.display.cursorDiv,"CodeMirror-overwrite"),le(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==me()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:On(function(dt,pt){Yh(this,dt,pt)}),getScrollInfo:function(){var dt=this.display.scroller;return{left:dt.scrollLeft,top:dt.scrollTop,height:dt.scrollHeight-Ws(this)-this.display.barHeight,width:dt.scrollWidth-Ws(this)-this.display.barWidth,clientHeight:Wh(this),clientWidth:cl(this)}},scrollIntoView:On(function(dt,pt){dt==null?(dt={from:this.doc.sel.primary().head,to:null},pt==null&&(pt=this.options.cursorScrollMargin)):typeof dt=="number"?dt={from:We(dt,0),to:null}:dt.from==null&&(dt={from:dt,to:null}),dt.to||(dt.to=dt.from),dt.margin=pt||0,dt.from.line!=null?Yr(this,dt):af(this,dt.from,dt.to,dt.margin)}),setSize:On(function(dt,pt){var At=this,zt=function(Jt){return typeof Jt=="number"||/^\d+$/.test(String(Jt))?Jt+"px":Jt};dt!=null&&(this.display.wrapper.style.width=zt(dt)),pt!=null&&(this.display.wrapper.style.height=zt(pt)),this.options.lineWrapping&&$a(this);var $t=this.display.viewFrom;this.doc.iter($t,this.display.viewTo,function(Jt){if(Jt.widgets){for(var pe=0;pe<Jt.widgets.length;pe++)if(Jt.widgets[pe].noHScroll){Er(At,$t,"widget");break}}++$t}),this.curOp.forceUpdate=!0,le(this,"refresh",this)}),operation:function(dt){return nn(this,dt)},startOperation:function(){return fl(this)},endOperation:function(){return wh(this)},refresh:On(function(){var dt=this.display.cachedTextHeight;ya(this),this.curOp.forceUpdate=!0,Wa(this),Yh(this,this.doc.scrollLeft,this.doc.scrollTop),ho(this.display),(dt==null||Math.abs(dt-Hu(this.display))>.5||this.options.lineWrapping)&&Uo(this),le(this,"refresh",this)}),swapDoc:On(function(dt){var pt=this.doc;return pt.cm=null,this.state.selectingText&&this.state.selectingText(),tr(this,dt),Wa(this),this.display.input.reset(),Yh(this,dt.scrollLeft,dt.scrollTop),this.curOp.forceScroll=!0,Bi(this,"swapDoc",this,pt),pt}),phrase:function(dt){var pt=this.options.phrases;return pt&&Object.prototype.hasOwnProperty.call(pt,dt)?pt[dt]:dt},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}},Zn(it),it.registerHelper=function(dt,pt,At){ct.hasOwnProperty(dt)||(ct[dt]=it[dt]={_global:[]}),ct[dt][pt]=At},it.registerGlobalHelper=function(dt,pt,At,zt){it.registerHelper(dt,pt,zt),ct[dt]._global.push({pred:At,val:zt})}}function mf(it,at,ct,dt,pt){var At=at,zt=ct,$t=$e(it,at.line),Jt=pt&&it.direction=="rtl"?-ct:ct;function pe(){var ko=at.line+Jt;return ko<it.first||ko>=it.first+it.size?!1:(at=new We(ko,at.ch,at.sticky),$t=$e(it,ko))}function un(ko){var xo;if(dt=="codepoint"){var Ho=$t.text.charCodeAt(at.ch+(dt>0?0:-1));isNaN(Ho)?xo=null:xo=new We(at.line,Math.max(0,Math.min($t.text.length,at.ch+ct*(Ho>=55296&&Ho<56320?2:1))),-ct)}else pt?xo=Fa(it.cm,$t,at,ct):xo=ds($t,at,ct);if(xo==null)if(!ko&&pe())at=na(pt,it.cm,$t,at.line,Jt);else return!1;else at=xo;return!0}if(dt=="char"||dt=="codepoint")un();else if(dt=="column")un(!0);else if(dt=="word"||dt=="group")for(var be=null,jn=dt=="group",Nn=it.cm&&it.cm.getHelper(at,"wordChars"),pi=!0;!(ct<0&&!un(!pi));pi=!1){var wi=$t.text.charAt(at.ch)||`
|
|
|
`,Ri=ie(wi,Nn)?"w":jn&&wi==`
|
|
|
`?"n":!jn||/\s/.test(wi)?null:"p";if(jn&&!pi&&!Ri&&(Ri="s"),be&&be!=Ri){ct<0&&(ct=1,un(),at.sticky="after");break}if(Ri&&(be=Ri),ct>0&&!un(!pi))break}var so=tu(it,at,At,zt,!0);return Ie(At,so)&&(so.hitSide=!0),so}function xd(it,at,ct,dt){var pt=it.doc,At=at.left,zt;if(dt=="page"){var $t=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Jt=Math.max($t-.5*Hu(it.display),3);zt=(ct>0?at.bottom:at.top)+ct*Jt}else dt=="line"&&(zt=ct>0?at.bottom+3:at.top-3);for(var pe;pe=Kh(it,At,zt),!!pe.outside;){if(ct<0?zt<=0:zt>=pt.height){pe.hitSide=!0;break}zt+=ct*5}return pe}var Ta=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ht,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ta.prototype.init=function(it){var at=this,ct=this,dt=ct.cm,pt=ct.div=it.lineDiv;op(pt,dt.options.spellcheck,dt.options.autocorrect,dt.options.autocapitalize);function At($t){for(var Jt=$t.target;Jt;Jt=Jt.parentNode){if(Jt==pt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Jt.className))break}return!1}re(pt,"paste",function($t){!At($t)||Ge(dt,$t)||ep($t,dt)||fe<=11&&setTimeout(Tn(dt,function(){return at.updateFromDOM()}),20)}),re(pt,"compositionstart",function($t){at.composing={data:$t.data,done:!1}}),re(pt,"compositionupdate",function($t){at.composing||(at.composing={data:$t.data,done:!1})}),re(pt,"compositionend",function($t){at.composing&&($t.data!=at.composing.data&&at.readFromDOMSoon(),at.composing.done=!0)}),re(pt,"touchstart",function(){return ct.forceCompositionEnd()}),re(pt,"input",function(){at.composing||at.readFromDOMSoon()});function zt($t){if(!(!At($t)||Ge(dt,$t))){if(dt.somethingSelected())qd({lineWise:!1,text:dt.getSelections()}),$t.type=="cut"&&dt.replaceSelection("",null,"cut");else if(dt.options.lineWiseCopyCut){var Jt=ip(dt);qd({lineWise:!0,text:Jt.text}),$t.type=="cut"&&dt.operation(function(){dt.setSelections(Jt.ranges,0,Ae),dt.replaceSelection("",null,"cut")})}else return;if($t.clipboardData){$t.clipboardData.clearData();var pe=Vl.text.join(`
|
|
|
`);if($t.clipboardData.setData("Text",pe),$t.clipboardData.getData("Text")==pe){$t.preventDefault();return}}var un=rp(),be=un.firstChild;dt.display.lineSpace.insertBefore(un,dt.display.lineSpace.firstChild),be.value=Vl.text.join(`
|
|
|
`);var jn=document.activeElement;Ye(be),setTimeout(function(){dt.display.lineSpace.removeChild(un),jn.focus(),jn==pt&&ct.showPrimarySelection()},50)}}re(pt,"copy",zt),re(pt,"cut",zt)},Ta.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},Ta.prototype.prepareSelection=function(){var it=Vh(this.cm,!1);return it.focus=document.activeElement==this.div,it},Ta.prototype.showSelection=function(it,at){!it||!this.cm.display.view.length||((it.focus||at)&&this.showPrimarySelection(),this.showMultipleSelections(it))},Ta.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ta.prototype.showPrimarySelection=function(){var it=this.getSelection(),at=this.cm,ct=at.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(at.display.viewTo==at.display.viewFrom||dt.line>=at.display.viewTo||pt.line<at.display.viewFrom){it.removeAllRanges();return}var At=vf(at,it.anchorNode,it.anchorOffset),zt=vf(at,it.focusNode,it.focusOffset);if(!(At&&!At.bad&&zt&&!zt.bad&&fn(rn(At,zt),dt)==0&&fn(_e(At,zt),pt)==0)){var $t=at.display.view,Jt=dt.line>=at.display.viewFrom&&ig(at,dt)||{node:$t[0].measure.map[2],offset:0},pe=pt.line<at.display.viewTo&&ig(at,pt);if(!pe){var un=$t[$t.length-1].measure,be=un.maps?un.maps[un.maps.length-1]:un.map;pe={node:be[be.length-1],offset:be[be.length-2]-be[be.length-3]}}if(!Jt||!pe){it.removeAllRanges();return}var jn=it.rangeCount&&it.getRangeAt(0),Nn;try{Nn=Gt(Jt.node,Jt.offset,pe.offset,pe.node)}catch(pi){}Nn&&(!Ct&&at.state.focused?(it.collapse(Jt.node,Jt.offset),Nn.collapsed||(it.removeAllRanges(),it.addRange(Nn))):(it.removeAllRanges(),it.addRange(Nn)),jn&&it.anchorNode==null?it.addRange(jn):Ct&&this.startGracePeriod()),this.rememberSelection()}},Ta.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},Ta.prototype.showMultipleSelections=function(it){Xt(this.cm.display.cursorDiv,it.cursors),Xt(this.cm.display.selectionDiv,it.selection)},Ta.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},Ta.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var at=it.getRangeAt(0).commonAncestorContainer;return Ve(this.div,at)},Ta.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ta.prototype.blur=function(){this.div.blur()},Ta.prototype.getField=function(){return this.div},Ta.prototype.supportsTouch=function(){return!0},Ta.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():nn(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function at(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,at))}this.polling.set(this.cm.options.pollInterval,at)},Ta.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},Ta.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),at=this.cm;if(et&&we&&this.cm.display.gutterSpecs.length&&ap(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ct=vf(at,it.anchorNode,it.anchorOffset),dt=vf(at,it.focusNode,it.focusOffset);ct&&dt&&nn(at,function(){pa(at.doc,Pr(ct,dt),Ae),(ct.bad||dt.bad)&&(at.curOp.selectionChanged=!0)})}}},Ta.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,at=it.display,ct=it.doc.sel.primary(),dt=ct.from(),pt=ct.to();if(dt.ch==0&&dt.line>it.firstLine()&&(dt=We(dt.line-1,$e(it.doc,dt.line-1).length)),pt.ch==$e(it.doc,pt.line).text.length&&pt.line<it.lastLine()&&(pt=We(pt.line+1,0)),dt.line<at.viewFrom||pt.line>at.viewTo-1)return!1;var At,zt,$t;dt.line==at.viewFrom||(At=Hs(it,dt.line))==0?(zt=xe(at.view[0].line),$t=at.view[0].node):(zt=xe(at.view[At].line),$t=at.view[At-1].node.nextSibling);var Jt=Hs(it,pt.line),pe,un;if(Jt==at.view.length-1?(pe=at.viewTo-1,un=at.lineDiv.lastChild):(pe=xe(at.view[Jt+1].line)-1,un=at.view[Jt+1].node.previousSibling),!$t)return!1;for(var be=it.doc.splitLines(zc(it,$t,un,zt,pe)),jn=on(it.doc,We(zt,0),We(pe,$e(it.doc,pe).text.length));be.length>1&&jn.length>1;)if(Ee(be)==Ee(jn))be.pop(),jn.pop(),pe--;else if(be[0]==jn[0])be.shift(),jn.shift(),zt++;else break;for(var Nn=0,pi=0,wi=be[0],Ri=jn[0],so=Math.min(wi.length,Ri.length);Nn<so&&wi.charCodeAt(Nn)==Ri.charCodeAt(Nn);)++Nn;for(var ko=Ee(be),xo=Ee(jn),Ho=Math.min(ko.length-(be.length==1?Nn:0),xo.length-(jn.length==1?Nn:0));pi<Ho&&ko.charCodeAt(ko.length-pi-1)==xo.charCodeAt(xo.length-pi-1);)++pi;if(be.length==1&&jn.length==1&&zt==dt.line)for(;Nn&&Nn>dt.ch&&ko.charCodeAt(ko.length-pi-1)==xo.charCodeAt(xo.length-pi-1);)Nn--,pi++;be[be.length-1]=ko.slice(0,ko.length-pi).replace(/^\u200b+/,""),be[0]=be[0].slice(Nn).replace(/\u200b+$/,"");var vr=We(zt,Nn),vo=We(pe,jn.length?Ee(jn).length-pi:0);if(be.length>1||be[0]||fn(vr,vo))return Vu(it.doc,be,vr,vo,"+input"),!0},Ta.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ta.prototype.reset=function(){this.forceCompositionEnd()},Ta.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ta.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},Ta.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&nn(this.cm,function(){return ya(it.cm)})},Ta.prototype.setUneditable=function(it){it.contentEditable="false"},Ta.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||Tn(this.cm,pf)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},Ta.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},Ta.prototype.onContextMenu=function(){},Ta.prototype.resetPosition=function(){},Ta.prototype.needsContentAttribute=!0;function ig(it,at){var ct=mh(it,at.line);if(!ct||ct.hidden)return null;var dt=$e(it.doc,at.line),pt=Hh(ct,dt,at.line),At=Rt(dt,it.doc.direction),zt="left";if(At){var $t=mt(At,at.ch);zt=$t%2?"right":"left"}var Jt=Zh(pt.map,at.ch,zt);return Jt.offset=Jt.collapse=="right"?Jt.end:Jt.start,Jt}function ap(it){for(var at=it;at;at=at.parentNode)if(/CodeMirror-gutter-wrapper/.test(at.className))return!0;return!1}function Rc(it,at){return at&&(it.bad=!0),it}function zc(it,at,ct,dt,pt){var At="",zt=!1,$t=it.doc.lineSeparator(),Jt=!1;function pe(Nn){return function(pi){return pi.id==Nn}}function un(){zt&&(At+=$t,Jt&&(At+=$t),zt=Jt=!1)}function be(Nn){Nn&&(un(),At+=Nn)}function jn(Nn){if(Nn.nodeType==1){var pi=Nn.getAttribute("cm-text");if(pi){be(pi);return}var wi=Nn.getAttribute("cm-marker"),Ri;if(wi){var so=it.findMarks(We(dt,0),We(pt+1,0),pe(+wi));so.length&&(Ri=so[0].find(0))&&be(on(it.doc,Ri.from,Ri.to).join($t));return}if(Nn.getAttribute("contenteditable")=="false")return;var ko=/^(pre|div|p|li|table|br)$/i.test(Nn.nodeName);if(!/^br$/i.test(Nn.nodeName)&&Nn.textContent.length==0)return;ko&&un();for(var xo=0;xo<Nn.childNodes.length;xo++)jn(Nn.childNodes[xo]);/^(pre|p)$/i.test(Nn.nodeName)&&(Jt=!0),ko&&(zt=!0)}else Nn.nodeType==3&&be(Nn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;jn(at),at!=ct;)at=at.nextSibling,Jt=!1;return At}function vf(it,at,ct){var dt;if(at==it.display.lineDiv){if(dt=it.display.lineDiv.childNodes[ct],!dt)return Rc(it.clipPos(We(it.display.viewTo-1)),!0);at=null,ct=0}else for(dt=at;;dt=dt.parentNode){if(!dt||dt==it.display.lineDiv)return null;if(dt.parentNode&&dt.parentNode==it.display.lineDiv)break}for(var pt=0;pt<it.display.view.length;pt++){var At=it.display.view[pt];if(At.node==dt)return hm(At,at,ct)}}function hm(it,at,ct){var dt=it.text.firstChild,pt=!1;if(!at||!Ve(dt,at))return Rc(We(xe(it.line),0),!0);if(at==dt&&(pt=!0,at=dt.childNodes[ct],ct=0,!at)){var At=it.rest?Ee(it.rest):it.line;return Rc(We(xe(At),At.text.length),pt)}var zt=at.nodeType==3?at:null,$t=at;for(!zt&&at.childNodes.length==1&&at.firstChild.nodeType==3&&(zt=at.firstChild,ct&&(ct=zt.nodeValue.length));$t.parentNode!=dt;)$t=$t.parentNode;var Jt=it.measure,pe=Jt.maps;function un(Ri,so,ko){for(var xo=-1;xo<(pe?pe.length:0);xo++)for(var Ho=xo<0?Jt.map:pe[xo],vr=0;vr<Ho.length;vr+=3){var vo=Ho[vr+2];if(vo==Ri||vo==so){var Nr=xe(xo<0?it.line:it.rest[xo]),_a=Ho[vr]+ko;return(ko<0||vo!=Ri)&&(_a=Ho[vr+(ko?1:0)]),We(Nr,_a)}}}var be=un(zt,$t,ct);if(be)return Rc(be,pt);for(var jn=$t.nextSibling,Nn=zt?zt.nodeValue.length-ct:0;jn;jn=jn.nextSibling){if(be=un(jn,jn.firstChild,0),be)return Rc(We(be.line,be.ch-Nn),pt);Nn+=jn.textContent.length}for(var pi=$t.previousSibling,wi=ct;pi;pi=pi.previousSibling){if(be=un(pi,pi.firstChild,-1),be)return Rc(We(be.line,be.ch+wi),pt);wi+=pi.textContent.length}}var Ms=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Ht,this.hasSelection=!1,this.composing=null};Ms.prototype.init=function(it){var at=this,ct=this,dt=this.cm;this.createField(it);var pt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),Tt&&(pt.style.width="0px"),re(pt,"input",function(){Vt&&fe>=9&&at.hasSelection&&(at.hasSelection=null),ct.poll()}),re(pt,"paste",function(zt){Ge(dt,zt)||ep(zt,dt)||(dt.state.pasteIncoming=+new Date,ct.fastPoll())});function At(zt){if(!Ge(dt,zt)){if(dt.somethingSelected())qd({lineWise:!1,text:dt.getSelections()});else if(dt.options.lineWiseCopyCut){var $t=ip(dt);qd({lineWise:!0,text:$t.text}),zt.type=="cut"?dt.setSelections($t.ranges,null,Ae):(ct.prevInput="",pt.value=$t.text.join(`
|
|
|
`),Ye(pt))}else return;zt.type=="cut"&&(dt.state.cutIncoming=+new Date)}}re(pt,"cut",At),re(pt,"copy",At),re(it.scroller,"paste",function(zt){if(!(nl(it,zt)||Ge(dt,zt))){if(!pt.dispatchEvent){dt.state.pasteIncoming=+new Date,ct.focus();return}var $t=new Event("paste");$t.clipboardData=zt.clipboardData,pt.dispatchEvent($t)}}),re(it.lineSpace,"selectstart",function(zt){nl(it,zt)||_n(zt)}),re(pt,"compositionstart",function(){var zt=dt.getCursor("from");ct.composing&&ct.composing.range.clear(),ct.composing={start:zt,range:dt.markText(zt,dt.getCursor("to"),{className:"CodeMirror-composing"})}}),re(pt,"compositionend",function(){ct.composing&&(ct.poll(),ct.composing.range.clear(),ct.composing=null)})},Ms.prototype.createField=function(it){this.wrapper=rp(),this.textarea=this.wrapper.firstChild},Ms.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},Ms.prototype.prepareSelection=function(){var it=this.cm,at=it.display,ct=it.doc,dt=Vh(it);if(it.options.moveInputWithCursor){var pt=ka(it,ct.sel.primary().head,"div"),At=at.wrapper.getBoundingClientRect(),zt=at.lineDiv.getBoundingClientRect();dt.teTop=Math.max(0,Math.min(at.wrapper.clientHeight-10,pt.top+zt.top-At.top)),dt.teLeft=Math.max(0,Math.min(at.wrapper.clientWidth-10,pt.left+zt.left-At.left))}return dt},Ms.prototype.showSelection=function(it){var at=this.cm,ct=at.display;Xt(ct.cursorDiv,it.cursors),Xt(ct.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},Ms.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var at=this.cm;if(at.somethingSelected()){this.prevInput="";var ct=at.getSelection();this.textarea.value=ct,at.state.focused&&Ye(this.textarea),Vt&&fe>=9&&(this.hasSelection=ct)}else it||(this.prevInput=this.textarea.value="",Vt&&fe>=9&&(this.hasSelection=null))}},Ms.prototype.getField=function(){return this.textarea},Ms.prototype.supportsTouch=function(){return!1},Ms.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!nt||me()!=this.textarea))try{this.textarea.focus()}catch(it){}},Ms.prototype.blur=function(){this.textarea.blur()},Ms.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ms.prototype.receivedFocus=function(){this.slowPoll()},Ms.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},Ms.prototype.fastPoll=function(){var it=!1,at=this;at.pollingFast=!0;function ct(){var dt=at.poll();!dt&&!it?(it=!0,at.polling.set(60,ct)):(at.pollingFast=!1,at.slowPoll())}at.polling.set(20,ct)},Ms.prototype.poll=function(){var it=this,at=this.cm,ct=this.textarea,dt=this.prevInput;if(this.contextMenuPending||!at.state.focused||Lt(ct)&&!dt&&!this.composing||at.isReadOnly()||at.options.disableInput||at.state.keySeq)return!1;var pt=ct.value;if(pt==dt&&!at.somethingSelected())return!1;if(Vt&&fe>=9&&this.hasSelection===pt||ht&&/[\uf700-\uf7ff]/.test(pt))return at.display.input.reset(),!1;if(at.doc.sel==at.display.selForContextMenu){var At=pt.charCodeAt(0);if(At==8203&&!dt&&(dt="\u200B"),At==8666)return this.reset(),this.cm.execCommand("undo")}for(var zt=0,$t=Math.min(dt.length,pt.length);zt<$t&&dt.charCodeAt(zt)==pt.charCodeAt(zt);)++zt;return nn(at,function(){pf(at,pt.slice(zt),dt.length-zt,null,it.composing?"*compose":null),pt.length>1e3||pt.indexOf(`
|
|
|
`)>-1?ct.value=it.prevInput="":it.prevInput=pt,it.composing&&(it.composing.range.clear(),it.composing.range=at.markText(it.composing.start,at.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ms.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ms.prototype.onKeyPress=function(){Vt&&fe>=9&&(this.hasSelection=null),this.fastPoll()},Ms.prototype.onContextMenu=function(it){var at=this,ct=at.cm,dt=ct.display,pt=at.textarea;at.contextMenuPending&&at.contextMenuPending();var At=il(ct,it),zt=dt.scroller.scrollTop;if(!At||oe)return;var $t=ct.options.resetSelectionOnContextMenu;$t&&ct.doc.sel.contains(At)==-1&&Tn(ct,pa)(ct.doc,Pr(At),Ae);var Jt=pt.style.cssText,pe=at.wrapper.style.cssText,un=at.wrapper.offsetParent.getBoundingClientRect();at.wrapper.style.cssText="position: static",pt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(it.clientY-un.top-5)+"px; left: "+(it.clientX-un.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Vt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var be;Ft&&(be=window.scrollY),dt.input.focus(),Ft&&window.scrollTo(null,be),dt.input.reset(),ct.somethingSelected()||(pt.value=at.prevInput=" "),at.contextMenuPending=Nn,dt.selForContextMenu=ct.doc.sel,clearTimeout(dt.detectingSelectAll);function jn(){if(pt.selectionStart!=null){var wi=ct.somethingSelected(),Ri="\u200B"+(wi?pt.value:"");pt.value="\u21DA",pt.value=Ri,at.prevInput=wi?"":"\u200B",pt.selectionStart=1,pt.selectionEnd=Ri.length,dt.selForContextMenu=ct.doc.sel}}function Nn(){if(at.contextMenuPending==Nn&&(at.contextMenuPending=!1,at.wrapper.style.cssText=pe,pt.style.cssText=Jt,Vt&&fe<9&&dt.scrollbars.setScrollTop(dt.scroller.scrollTop=zt),pt.selectionStart!=null)){(!Vt||Vt&&fe<9)&&jn();var wi=0,Ri=function(){dt.selForContextMenu==ct.doc.sel&&pt.selectionStart==0&&pt.selectionEnd>0&&at.prevInput=="\u200B"?Tn(ct,oa)(ct):wi++<10?dt.detectingSelectAll=setTimeout(Ri,500):(dt.selForContextMenu=null,dt.input.reset())};dt.detectingSelectAll=setTimeout(Ri,200)}}if(Vt&&fe>=9&&jn(),Bt){Fi(it);var pi=function(){mn(window,"mouseup",pi),setTimeout(Nn,20)};re(window,"mouseup",pi)}else setTimeout(Nn,50)},Ms.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},Ms.prototype.setUneditable=function(){},Ms.prototype.needsContentAttribute=!1;function dm(it,at){if(at=at?hn(at):{},at.value=it.value,!at.tabindex&&it.tabIndex&&(at.tabindex=it.tabIndex),!at.placeholder&&it.placeholder&&(at.placeholder=it.placeholder),at.autofocus==null){var ct=me();at.autofocus=ct==it||it.getAttribute("autofocus")!=null&&ct==document.body}function dt(){it.value=$t.getValue()}var pt;if(it.form&&(re(it.form,"submit",dt),!at.leaveSubmitMethodAlone)){var At=it.form;pt=At.submit;try{var zt=At.submit=function(){dt(),At.submit=pt,At.submit(),At.submit=zt}}catch(Jt){}}at.finishInit=function(Jt){Jt.save=dt,Jt.getTextArea=function(){return it},Jt.toTextArea=function(){Jt.toTextArea=isNaN,dt(),it.parentNode.removeChild(Jt.getWrapperElement()),it.style.display="",it.form&&(mn(it.form,"submit",dt),!at.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=pt))}},it.style.display="none";var $t=ra(function(Jt){return it.parentNode.insertBefore(Jt,it.nextSibling)},at);return $t}function jc(it){it.off=mn,it.on=re,it.wheelEventPixels=Wo,it.Doc=As,it.splitLines=ki,it.countColumn=ge,it.findColumn=Xn,it.isWordChar=Me,it.Pass=yn,it.signal=le,it.Line=ir,it.changeEnd=_r,it.scrollbarModel=sf,it.Pos=We,it.cmpPos=fn,it.modes=hi,it.mimeModes=gi,it.resolveMode=Le,it.getMode=Fe,it.modeExtensions=he,it.extendMode=_t,it.copyState=Ze,it.startState=Se,it.innerMode=tn,it.commands=Ns,it.keyMap=ml,it.keyName=Dc,it.isModifierKey=vd,it.lookupKey=Kl,it.normalizeKeyMap=kc,it.StringStream=Yt,it.SharedTextMarker=Uu,it.TextMarker=Xe,it.LineWidget=ys,it.e_preventDefault=_n,it.e_stopPropagation=di,it.e_stop=Fi,it.addClass=sn,it.contains=Ve,it.rmClass=Ot,it.keyNames=Au}lm(ra),Sd(ra);var qh="iter insert remove copy getEditor constructor".split(" ");for(var yf in As.prototype)As.prototype.hasOwnProperty(yf)&&Ce(qh,yf)<0&&(ra.prototype[yf]=function(it){return function(){return it.apply(this.doc,arguments)}}(As.prototype[yf]));return Zn(As),ra.inputStyles={textarea:Ms,contenteditable:Ta},ra.defineMode=function(it){!ra.defaults.mode&&it!="null"&&(ra.defaults.mode=it),Pi.apply(this,arguments)},ra.defineMIME=Rn,ra.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),ra.defineMIME("text/plain","null"),ra.defineExtension=function(it,at){ra.prototype[it]=at},ra.defineDocExtension=function(it,at){As.prototype[it]=at},ra.fromTextArea=dm,jc(ra),ra.version="5.58.2",ra})},25419:function(Dn,An,St){(function(Ct){Ct(St(89780),St(15525),St(98101))})(function(Ct){"use strict";Ct.defineMode("markdown",function(It,ee){var Ne=Ct.getMode(It,"text/html"),Vt=Ne.name=="null";function fe(ge){if(Ct.findModeByName){var Ht=Ct.findModeByName(ge);Ht&&(ge=Ht.mime||Ht.mimes[0])}var Ce=Ct.getMode(It,ge);return Ce.name=="null"?null:Ce}ee.highlightFormatting===void 0&&(ee.highlightFormatting=!1),ee.maxBlockquoteDepth===void 0&&(ee.maxBlockquoteDepth=0),ee.taskLists===void 0&&(ee.taskLists=!1),ee.strikethrough===void 0&&(ee.strikethrough=!1),ee.emoji===void 0&&(ee.emoji=!1),ee.fencedCodeBlockHighlighting===void 0&&(ee.fencedCodeBlockHighlighting=!0),ee.fencedCodeBlockDefaultMode===void 0&&(ee.fencedCodeBlockDefaultMode="text/plain"),ee.xml===void 0&&(ee.xml=!0),ee.tokenTypeOverrides===void 0&&(ee.tokenTypeOverrides={});var Ft={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 ze in Ft)Ft.hasOwnProperty(ze)&&ee.tokenTypeOverrides[ze]&&(Ft[ze]=ee.tokenTypeOverrides[ze]);var we=/^([*\-_])(?:\s*\1){2,}\s*$/,oe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ve=/^\[(x| )\](?=\s)/i,ye=ee.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Re=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Tt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,nt=/^\s*\[[^\]]+?\]:.*$/,ht=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,st=" ";function gt(ge,Ht,Ce){return Ht.f=Ht.inline=Ce,Ce(ge,Ht)}function vt(ge,Ht,Ce){return Ht.f=Ht.block=Ce,Ce(ge,Ht)}function wt(ge){return!ge||!/\S/.test(ge.string)}function Bt(ge){if(ge.linkTitle=!1,ge.linkHref=!1,ge.linkText=!1,ge.em=!1,ge.strong=!1,ge.strikethrough=!1,ge.quote=0,ge.indentedCode=!1,ge.f==Ot){var Ht=Vt;if(!Ht){var Ce=Ct.innerMode(Ne,ge.htmlState);Ht=Ce.mode.name=="xml"&&Ce.state.tagStart===null&&!Ce.state.context&&Ce.state.tokenize.isInText}Ht&&(ge.f=de,ge.block=kt,ge.htmlState=null)}return ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,ge.prevLine=ge.thisLine,ge.thisLine={stream:null},null}function kt(ge,Ht){var Ce=ge.column()===Ht.indentation,bn=wt(Ht.prevLine.stream),yn=Ht.indentedCode,Ae=Ht.prevLine.hr,Ue=Ht.list!==!1,Sn=(Ht.listStack[Ht.listStack.length-1]||0)+3;Ht.indentedCode=!1;var Xn=Ht.indentation;if(Ht.indentationDiff===null&&(Ht.indentationDiff=Ht.indentation,Ue)){for(Ht.list=null;Xn<Ht.listStack[Ht.listStack.length-1];)Ht.listStack.pop(),Ht.listStack.length?Ht.indentation=Ht.listStack[Ht.listStack.length-1]:Ht.list=!1;Ht.list!==!1&&(Ht.indentationDiff=Xn-Ht.listStack[Ht.listStack.length-1])}var Pn=!bn&&!Ae&&!Ht.prevLine.header&&(!Ue||!yn)&&!Ht.prevLine.fencedCodeEnd,Gn=(Ht.list===!1||Ae||bn)&&Ht.indentation<=Sn&&ge.match(we),Ee=null;if(Ht.indentationDiff>=4&&(yn||Ht.prevLine.fencedCodeEnd||Ht.prevLine.header||bn))return ge.skipToEnd(),Ht.indentedCode=!0,Ft.code;if(ge.eatSpace())return null;if(Ce&&Ht.indentation<=Sn&&(Ee=ge.match(ye))&&Ee[1].length<=6)return Ht.quote=0,Ht.header=Ee[1].length,Ht.thisLine.header=!0,ee.highlightFormatting&&(Ht.formatting="header"),Ht.f=Ht.inline,Xt(Ht);if(Ht.indentation<=Sn&&ge.eat(">"))return Ht.quote=Ce?1:Ht.quote+1,ee.highlightFormatting&&(Ht.formatting="quote"),ge.eatSpace(),Xt(Ht);if(!Gn&&!Ht.setext&&Ce&&Ht.indentation<=Sn&&(Ee=ge.match(oe))){var Jn=Ee[1]?"ol":"ul";return Ht.indentation=Xn+ge.current().length,Ht.list=!0,Ht.quote=0,Ht.listStack.push(Ht.indentation),Ht.em=!1,Ht.strong=!1,Ht.code=!1,Ht.strikethrough=!1,ee.taskLists&&ge.match(ve,!1)&&(Ht.taskList=!0),Ht.f=Ht.inline,ee.highlightFormatting&&(Ht.formatting=["list","list-"+Jn]),Xt(Ht)}else{if(Ce&&Ht.indentation<=Sn&&(Ee=ge.match(et,!0)))return Ht.quote=0,Ht.fencedEndRE=new RegExp(Ee[1]+"+ *$"),Ht.localMode=ee.fencedCodeBlockHighlighting&&fe(Ee[2]||ee.fencedCodeBlockDefaultMode),Ht.localMode&&(Ht.localState=Ct.startState(Ht.localMode)),Ht.f=Ht.block=jt,ee.highlightFormatting&&(Ht.formatting="code-block"),Ht.code=-1,Xt(Ht);if(Ht.setext||(!Pn||!Ue)&&!Ht.quote&&Ht.list===!1&&!Ht.code&&!Gn&&!nt.test(ge.string)&&(Ee=ge.lookAhead(1))&&(Ee=Ee.match(Re)))return Ht.setext?(Ht.header=Ht.setext,Ht.setext=0,ge.skipToEnd(),ee.highlightFormatting&&(Ht.formatting="header")):(Ht.header=Ee[0].charAt(0)=="="?1:2,Ht.setext=Ht.header),Ht.thisLine.header=!0,Ht.f=Ht.inline,Xt(Ht);if(Gn)return ge.skipToEnd(),Ht.hr=!0,Ht.thisLine.hr=!0,Ft.hr;if(ge.peek()==="[")return gt(ge,Ht,qe)}return gt(ge,Ht,Ht.inline)}function Ot(ge,Ht){var Ce=Ne.token(ge,Ht.htmlState);if(!Vt){var bn=Ct.innerMode(Ne,Ht.htmlState);(bn.mode.name=="xml"&&bn.state.tagStart===null&&!bn.state.context&&bn.state.tokenize.isInText||Ht.md_inside&&ge.current().indexOf(">")>-1)&&(Ht.f=de,Ht.block=kt,Ht.htmlState=null)}return Ce}function jt(ge,Ht){var Ce=Ht.listStack[Ht.listStack.length-1]||0,bn=Ht.indentation<Ce,yn=Ce+3;if(Ht.fencedEndRE&&Ht.indentation<=yn&&(bn||ge.match(Ht.fencedEndRE))){ee.highlightFormatting&&(Ht.formatting="code-block");var Ae;return bn||(Ae=Xt(Ht)),Ht.localMode=Ht.localState=null,Ht.block=kt,Ht.f=de,Ht.fencedEndRE=null,Ht.code=0,Ht.thisLine.fencedCodeEnd=!0,bn?vt(ge,Ht,Ht.block):Ae}else return Ht.localMode?Ht.localMode.token(ge,Ht.localState):(ge.skipToEnd(),Ft.code)}function Xt(ge){var Ht=[];if(ge.formatting){Ht.push(Ft.formatting),typeof ge.formatting=="string"&&(ge.formatting=[ge.formatting]);for(var Ce=0;Ce<ge.formatting.length;Ce++)Ht.push(Ft.formatting+"-"+ge.formatting[Ce]),ge.formatting[Ce]==="header"&&Ht.push(Ft.formatting+"-"+ge.formatting[Ce]+"-"+ge.header),ge.formatting[Ce]==="quote"&&(!ee.maxBlockquoteDepth||ee.maxBlockquoteDepth>=ge.quote?Ht.push(Ft.formatting+"-"+ge.formatting[Ce]+"-"+ge.quote):Ht.push("error"))}if(ge.taskOpen)return Ht.push("meta"),Ht.length?Ht.join(" "):null;if(ge.taskClosed)return Ht.push("property"),Ht.length?Ht.join(" "):null;if(ge.linkHref?Ht.push(Ft.linkHref,"url"):(ge.strong&&Ht.push(Ft.strong),ge.em&&Ht.push(Ft.em),ge.strikethrough&&Ht.push(Ft.strikethrough),ge.emoji&&Ht.push(Ft.emoji),ge.linkText&&Ht.push(Ft.linkText),ge.code&&Ht.push(Ft.code),ge.image&&Ht.push(Ft.image),ge.imageAltText&&Ht.push(Ft.imageAltText,"link"),ge.imageMarker&&Ht.push(Ft.imageMarker)),ge.header&&Ht.push(Ft.header,Ft.header+"-"+ge.header),ge.quote&&(Ht.push(Ft.quote),!ee.maxBlockquoteDepth||ee.maxBlockquoteDepth>=ge.quote?Ht.push(Ft.quote+"-"+ge.quote):Ht.push(Ft.quote+"-"+ee.maxBlockquoteDepth)),ge.list!==!1){var bn=(ge.listStack.length-1)%3;bn?bn===1?Ht.push(Ft.list2):Ht.push(Ft.list3):Ht.push(Ft.list1)}return ge.trailingSpaceNewLine?Ht.push("trailing-space-new-line"):ge.trailingSpace&&Ht.push("trailing-space-"+(ge.trailingSpace%2?"a":"b")),Ht.length?Ht.join(" "):null}function Ut(ge,Ht){if(ge.match(Tt,!0))return Xt(Ht)}function de(ge,Ht){var Ce=Ht.text(ge,Ht);if(typeof Ce!="undefined")return Ce;if(Ht.list)return Ht.list=null,Xt(Ht);if(Ht.taskList){var bn=ge.match(ve,!0)[1]===" ";return bn?Ht.taskOpen=!0:Ht.taskClosed=!0,ee.highlightFormatting&&(Ht.formatting="task"),Ht.taskList=!1,Xt(Ht)}if(Ht.taskOpen=!1,Ht.taskClosed=!1,Ht.header&&ge.match(/^#+$/,!0))return ee.highlightFormatting&&(Ht.formatting="header"),Xt(Ht);var yn=ge.next();if(Ht.linkTitle){Ht.linkTitle=!1;var Ae=yn;yn==="("&&(Ae=")"),Ae=(Ae+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ue="^\\s*(?:[^"+Ae+"\\\\]+|\\\\\\\\|\\\\.)"+Ae;if(ge.match(new RegExp(Ue),!0))return Ft.linkHref}if(yn==="`"){var Sn=Ht.formatting;ee.highlightFormatting&&(Ht.formatting="code"),ge.eatWhile("`");var Xn=ge.current().length;if(Ht.code==0&&(!Ht.quote||Xn==1))return Ht.code=Xn,Xt(Ht);if(Xn==Ht.code){var Pn=Xt(Ht);return Ht.code=0,Pn}else return Ht.formatting=Sn,Xt(Ht)}else if(Ht.code)return Xt(Ht);if(yn==="\\"&&(ge.next(),ee.highlightFormatting)){var Gn=Xt(Ht),Ee=Ft.formatting+"-escape";return Gn?Gn+" "+Ee:Ee}if(yn==="!"&&ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ht.imageMarker=!0,Ht.image=!0,ee.highlightFormatting&&(Ht.formatting="image"),Xt(Ht);if(yn==="["&&Ht.imageMarker&&ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ht.imageMarker=!1,Ht.imageAltText=!0,ee.highlightFormatting&&(Ht.formatting="image"),Xt(Ht);if(yn==="]"&&Ht.imageAltText){ee.highlightFormatting&&(Ht.formatting="image");var Gn=Xt(Ht);return Ht.imageAltText=!1,Ht.image=!1,Ht.inline=Ht.f=Ve,Gn}if(yn==="["&&!Ht.image)return Ht.linkText&&ge.match(/^.*?\]/)||(Ht.linkText=!0,ee.highlightFormatting&&(Ht.formatting="link")),Xt(Ht);if(yn==="]"&&Ht.linkText){ee.highlightFormatting&&(Ht.formatting="link");var Gn=Xt(Ht);return Ht.linkText=!1,Ht.inline=Ht.f=ge.match(/\(.*?\)| ?\[.*?\]/,!1)?Ve:de,Gn}if(yn==="<"&&ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ht.f=Ht.inline=Gt,ee.highlightFormatting&&(Ht.formatting="link");var Gn=Xt(Ht);return Gn?Gn+=" ":Gn="",Gn+Ft.linkInline}if(yn==="<"&&ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ht.f=Ht.inline=Gt,ee.highlightFormatting&&(Ht.formatting="link");var Gn=Xt(Ht);return Gn?Gn+=" ":Gn="",Gn+Ft.linkEmail}if(ee.xml&&yn==="<"&&ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Jn=ge.string.indexOf(">",ge.pos);if(Jn!=-1){var ai=ge.string.substring(ge.start,Jn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ai)&&(Ht.md_inside=!0)}return ge.backUp(1),Ht.htmlState=Ct.startState(Ne),vt(ge,Ht,Ot)}if(ee.xml&&yn==="<"&&ge.match(/^\/\w*?>/))return Ht.md_inside=!1,"tag";if(yn==="*"||yn==="_"){for(var ui=1,ln=ge.pos==1?" ":ge.string.charAt(ge.pos-2);ui<3&&ge.eat(yn);)ui++;var Te=ge.peek()||" ",Me=!/\s/.test(Te)&&(!ht.test(Te)||/\s/.test(ln)||ht.test(ln)),ie=!/\s/.test(ln)&&(!ht.test(ln)||/\s/.test(Te)||ht.test(Te)),Kt=null,Oe=null;if(ui%2&&(!Ht.em&&Me&&(yn==="*"||!ie||ht.test(ln))?Kt=!0:Ht.em==yn&&ie&&(yn==="*"||!Me||ht.test(Te))&&(Kt=!1)),ui>1&&(!Ht.strong&&Me&&(yn==="*"||!ie||ht.test(ln))?Oe=!0:Ht.strong==yn&&ie&&(yn==="*"||!Me||ht.test(Te))&&(Oe=!1)),Oe!=null||Kt!=null){ee.highlightFormatting&&(Ht.formatting=Kt==null?"strong":Oe==null?"em":"strong em"),Kt===!0&&(Ht.em=yn),Oe===!0&&(Ht.strong=yn);var Pn=Xt(Ht);return Kt===!1&&(Ht.em=!1),Oe===!1&&(Ht.strong=!1),Pn}}else if(yn===" "&&(ge.eat("*")||ge.eat("_"))){if(ge.peek()===" ")return Xt(Ht);ge.backUp(1)}if(ee.strikethrough){if(yn==="~"&&ge.eatWhile(yn)){if(Ht.strikethrough){ee.highlightFormatting&&(Ht.formatting="strikethrough");var Pn=Xt(Ht);return Ht.strikethrough=!1,Pn}else if(ge.match(/^[^\s]/,!1))return Ht.strikethrough=!0,ee.highlightFormatting&&(Ht.formatting="strikethrough"),Xt(Ht)}else if(yn===" "&&ge.match(/^~~/,!0)){if(ge.peek()===" ")return Xt(Ht);ge.backUp(2)}}if(ee.emoji&&yn===":"&&ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ht.emoji=!0,ee.highlightFormatting&&(Ht.formatting="emoji");var ke=Xt(Ht);return Ht.emoji=!1,ke}return yn===" "&&(ge.match(/^ +$/,!1)?Ht.trailingSpace++:Ht.trailingSpace&&(Ht.trailingSpaceNewLine=!0)),Xt(Ht)}function Gt(ge,Ht){var Ce=ge.next();if(Ce===">"){Ht.f=Ht.inline=de,ee.highlightFormatting&&(Ht.formatting="link");var bn=Xt(Ht);return bn?bn+=" ":bn="",bn+Ft.linkInline}return ge.match(/^[^>]+/,!0),Ft.linkInline}function Ve(ge,Ht){if(ge.eatSpace())return null;var Ce=ge.next();return Ce==="("||Ce==="["?(Ht.f=Ht.inline=sn(Ce==="("?")":"]"),ee.highlightFormatting&&(Ht.formatting="link-string"),Ht.linkHref=!0,Xt(Ht)):"error"}var me={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function sn(ge){return function(Ht,Ce){var bn=Ht.next();if(bn===ge){Ce.f=Ce.inline=de,ee.highlightFormatting&&(Ce.formatting="link-string");var yn=Xt(Ce);return Ce.linkHref=!1,yn}return Ht.match(me[ge]),Ce.linkHref=!0,Xt(Ce)}}function qe(ge,Ht){return ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ht.f=Ye,ge.next(),ee.highlightFormatting&&(Ht.formatting="link"),Ht.linkText=!0,Xt(Ht)):gt(ge,Ht,de)}function Ye(ge,Ht){if(ge.match(/^\]:/,!0)){Ht.f=Ht.inline=je,ee.highlightFormatting&&(Ht.formatting="link");var Ce=Xt(Ht);return Ht.linkText=!1,Ce}return ge.match(/^([^\]\\]|\\.)+/,!0),Ft.linkText}function je(ge,Ht){return ge.eatSpace()?null:(ge.match(/^[^\s]+/,!0),ge.peek()===void 0?Ht.linkTitle=!0:ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ht.f=Ht.inline=de,Ft.linkHref+" url")}var hn={startState:function(){return{f:kt,prevLine:{stream:null},thisLine:{stream:null},block:kt,htmlState:null,indentation:0,inline:de,text:Ut,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(ge){return{f:ge.f,prevLine:ge.prevLine,thisLine:ge.thisLine,block:ge.block,htmlState:ge.htmlState&&Ct.copyState(Ne,ge.htmlState),indentation:ge.indentation,localMode:ge.localMode,localState:ge.localMode?Ct.copyState(ge.localMode,ge.localState):null,inline:ge.inline,text:ge.text,formatting:!1,linkText:ge.linkText,linkTitle:ge.linkTitle,linkHref:ge.linkHref,code:ge.code,em:ge.em,strong:ge.strong,strikethrough:ge.strikethrough,emoji:ge.emoji,header:ge.header,setext:ge.setext,hr:ge.hr,taskList:ge.taskList,list:ge.list,listStack:ge.listStack.slice(0),quote:ge.quote,indentedCode:ge.indentedCode,trailingSpace:ge.trailingSpace,trailingSpaceNewLine:ge.trailingSpaceNewLine,md_inside:ge.md_inside,fencedEndRE:ge.fencedEndRE}},token:function(ge,Ht){if(Ht.formatting=!1,ge!=Ht.thisLine.stream){if(Ht.header=0,Ht.hr=!1,ge.match(/^\s*$/,!0))return Bt(Ht),null;if(Ht.prevLine=Ht.thisLine,Ht.thisLine={stream:ge},Ht.taskList=!1,Ht.trailingSpace=0,Ht.trailingSpaceNewLine=!1,!Ht.localState&&(Ht.f=Ht.block,Ht.f!=Ot)){var Ce=ge.match(/^\s*/,!0)[0].replace(/\t/g,st).length;if(Ht.indentation=Ce,Ht.indentationDiff=null,Ce>0)return null}}return Ht.f(ge,Ht)},innerMode:function(ge){return ge.block==Ot?{state:ge.htmlState,mode:Ne}:ge.localState?{state:ge.localState,mode:ge.localMode}:{state:ge,mode:hn}},indent:function(ge,Ht,Ce){return ge.block==Ot&&Ne.indent?Ne.indent(ge.htmlState,Ht,Ce):ge.localState&&ge.localMode.indent?ge.localMode.indent(ge.localState,Ht,Ce):Ct.Pass},blankLine:Bt,getType:Xt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return hn},"xml"),Ct.defineMIME("text/markdown","markdown"),Ct.defineMIME("text/x-markdown","markdown")})},98101:function(Dn,An,St){(function(Ct){Ct(St(89780))})(function(Ct){"use strict";Ct.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 It=0;It<Ct.modeInfo.length;It++){var ee=Ct.modeInfo[It];ee.mimes&&(ee.mime=ee.mimes[0])}Ct.findModeByMIME=function(Ne){Ne=Ne.toLowerCase();for(var Vt=0;Vt<Ct.modeInfo.length;Vt++){var fe=Ct.modeInfo[Vt];if(fe.mime==Ne)return fe;if(fe.mimes){for(var Ft=0;Ft<fe.mimes.length;Ft++)if(fe.mimes[Ft]==Ne)return fe}}if(/\+xml$/.test(Ne))return Ct.findModeByMIME("application/xml");if(/\+json$/.test(Ne))return Ct.findModeByMIME("application/json")},Ct.findModeByExtension=function(Ne){Ne=Ne.toLowerCase();for(var Vt=0;Vt<Ct.modeInfo.length;Vt++){var fe=Ct.modeInfo[Vt];if(fe.ext){for(var Ft=0;Ft<fe.ext.length;Ft++)if(fe.ext[Ft]==Ne)return fe}}},Ct.findModeByFileName=function(Ne){for(var Vt=0;Vt<Ct.modeInfo.length;Vt++){var fe=Ct.modeInfo[Vt];if(fe.file&&fe.file.test(Ne))return fe}var Ft=Ne.lastIndexOf("."),ze=Ft>-1&&Ne.substring(Ft+1,Ne.length);if(ze)return Ct.findModeByExtension(ze)},Ct.findModeByName=function(Ne){Ne=Ne.toLowerCase();for(var Vt=0;Vt<Ct.modeInfo.length;Vt++){var fe=Ct.modeInfo[Vt];if(fe.name.toLowerCase()==Ne)return fe;if(fe.alias){for(var Ft=0;Ft<fe.alias.length;Ft++)if(fe.alias[Ft].toLowerCase()==Ne)return fe}}}})},67549:function(Dn,An,St){(function(Ct){Ct(St(89780))})(function(Ct){"use strict";Ct.defineMode("stex",function(It,ee){"use strict";function Ne(Tt,et){Tt.cmdState.push(et)}function Vt(Tt){return Tt.cmdState.length>0?Tt.cmdState[Tt.cmdState.length-1]:null}function fe(Tt){var et=Tt.cmdState.pop();et&&et.closeBracket()}function Ft(Tt){for(var et=Tt.cmdState,nt=et.length-1;nt>=0;nt--){var ht=et[nt];if(ht.name!="DEFAULT")return ht}return{styleIdentifier:function(){return null}}}function ze(Tt,et,nt){return function(){this.name=Tt,this.bracketNo=0,this.style=et,this.styles=nt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var we={};we.importmodule=ze("importmodule","tag",["string","builtin"]),we.documentclass=ze("documentclass","tag",["","atom"]),we.usepackage=ze("usepackage","tag",["atom"]),we.begin=ze("begin","tag",["atom"]),we.end=ze("end","tag",["atom"]),we.label=ze("label","tag",["atom"]),we.ref=ze("ref","tag",["atom"]),we.eqref=ze("eqref","tag",["atom"]),we.cite=ze("cite","tag",["atom"]),we.bibitem=ze("bibitem","tag",["atom"]),we.Bibitem=ze("Bibitem","tag",["atom"]),we.RBibitem=ze("RBibitem","tag",["atom"]),we.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function oe(Tt,et){Tt.f=et}function ve(Tt,et){var nt;if(Tt.match(/^\\[a-zA-Z@]+/)){var ht=Tt.current().slice(1);return nt=we.hasOwnProperty(ht)?we[ht]:we.DEFAULT,nt=new nt,Ne(et,nt),oe(et,Re),nt.style}if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/\\]/))return"tag";if(Tt.match("\\["))return oe(et,function(gt,vt){return ye(gt,vt,"\\]")}),"keyword";if(Tt.match("\\("))return oe(et,function(gt,vt){return ye(gt,vt,"\\)")}),"keyword";if(Tt.match("$$"))return oe(et,function(gt,vt){return ye(gt,vt,"$$")}),"keyword";if(Tt.match("$"))return oe(et,function(gt,vt){return ye(gt,vt,"$")}),"keyword";var st=Tt.next();if(st=="%")return Tt.skipToEnd(),"comment";if(st=="}"||st=="]"){if(nt=Vt(et),nt)nt.closeBracket(st),oe(et,Re);else return"error";return"bracket"}else return st=="{"||st=="["?(nt=we.DEFAULT,nt=new nt,Ne(et,nt),"bracket"):/\d/.test(st)?(Tt.eatWhile(/[\w.%]/),"atom"):(Tt.eatWhile(/[\w\-_]/),nt=Ft(et),nt.name=="begin"&&(nt.argument=Tt.current()),nt.styleIdentifier())}function ye(Tt,et,nt){if(Tt.eatSpace())return null;if(nt&&Tt.match(nt))return oe(et,ve),"keyword";if(Tt.match(/^\\[a-zA-Z@]+/))return"tag";if(Tt.match(/^[a-zA-Z]+/))return"variable-2";if(Tt.match(/^\\[$&%#{}_]/)||Tt.match(/^\\[,;!\/]/)||Tt.match(/^[\^_&]/))return"tag";if(Tt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Tt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ht=Tt.next();return ht=="{"||ht=="}"||ht=="["||ht=="]"||ht=="("||ht==")"?"bracket":ht=="%"?(Tt.skipToEnd(),"comment"):"error"}function Re(Tt,et){var nt=Tt.peek(),ht;return nt=="{"||nt=="["?(ht=Vt(et),ht.openBracket(nt),Tt.eat(nt),oe(et,ve),"bracket"):/[ \t\r]/.test(nt)?(Tt.eat(nt),null):(oe(et,ve),fe(et),ve(Tt,et))}return{startState:function(){var Tt=ee.inMathMode?function(et,nt){return ye(et,nt)}:ve;return{cmdState:[],f:Tt}},copyState:function(Tt){return{cmdState:Tt.cmdState.slice(),f:Tt.f}},token:function(Tt,et){return et.f(Tt,et)},blankLine:function(Tt){Tt.f=ve,Tt.cmdState.length=0},lineComment:"%"}}),Ct.defineMIME("text/x-stex","stex"),Ct.defineMIME("text/x-latex","stex")})},15525:function(Dn,An,St){(function(Ct){Ct(St(89780))})(function(Ct){"use strict";var It={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},ee={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ct.defineMode("xml",function(Ne,Vt){var fe=Ne.indentUnit,Ft={},ze=Vt.htmlMode?It:ee;for(var we in ze)Ft[we]=ze[we];for(var we in Vt)Ft[we]=Vt[we];var oe,ve;function ye(Gt,Ve){function me(Ye){return Ve.tokenize=Ye,Ye(Gt,Ve)}var sn=Gt.next();if(sn=="<")return Gt.eat("!")?Gt.eat("[")?Gt.match("CDATA[")?me(et("atom","]]>")):null:Gt.match("--")?me(et("comment","-->")):Gt.match("DOCTYPE",!0,!0)?(Gt.eatWhile(/[\w\._\-]/),me(nt(1))):null:Gt.eat("?")?(Gt.eatWhile(/[\w\._\-]/),Ve.tokenize=et("meta","?>"),"meta"):(oe=Gt.eat("/")?"closeTag":"openTag",Ve.tokenize=Re,"tag bracket");if(sn=="&"){var qe;return Gt.eat("#")?Gt.eat("x")?qe=Gt.eatWhile(/[a-fA-F\d]/)&&Gt.eat(";"):qe=Gt.eatWhile(/[\d]/)&&Gt.eat(";"):qe=Gt.eatWhile(/[\w\.\-:]/)&&Gt.eat(";"),qe?"atom":"error"}else return Gt.eatWhile(/[^&<]/),null}ye.isInText=!0;function Re(Gt,Ve){var me=Gt.next();if(me==">"||me=="/"&&Gt.eat(">"))return Ve.tokenize=ye,oe=me==">"?"endTag":"selfcloseTag","tag bracket";if(me=="=")return oe="equals",null;if(me=="<"){Ve.tokenize=ye,Ve.state=vt,Ve.tagName=Ve.tagStart=null;var sn=Ve.tokenize(Gt,Ve);return sn?sn+" tag error":"tag error"}else return/[\'\"]/.test(me)?(Ve.tokenize=Tt(me),Ve.stringStartCol=Gt.column(),Ve.tokenize(Gt,Ve)):(Gt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Tt(Gt){var Ve=function(me,sn){for(;!me.eol();)if(me.next()==Gt){sn.tokenize=Re;break}return"string"};return Ve.isInAttribute=!0,Ve}function et(Gt,Ve){return function(me,sn){for(;!me.eol();){if(me.match(Ve)){sn.tokenize=ye;break}me.next()}return Gt}}function nt(Gt){return function(Ve,me){for(var sn;(sn=Ve.next())!=null;){if(sn=="<")return me.tokenize=nt(Gt+1),me.tokenize(Ve,me);if(sn==">")if(Gt==1){me.tokenize=ye;break}else return me.tokenize=nt(Gt-1),me.tokenize(Ve,me)}return"meta"}}function ht(Gt,Ve,me){this.prev=Gt.context,this.tagName=Ve,this.indent=Gt.indented,this.startOfLine=me,(Ft.doNotIndent.hasOwnProperty(Ve)||Gt.context&&Gt.context.noIndent)&&(this.noIndent=!0)}function st(Gt){Gt.context&&(Gt.context=Gt.context.prev)}function gt(Gt,Ve){for(var me;;){if(!Gt.context||(me=Gt.context.tagName,!Ft.contextGrabbers.hasOwnProperty(me)||!Ft.contextGrabbers[me].hasOwnProperty(Ve)))return;st(Gt)}}function vt(Gt,Ve,me){return Gt=="openTag"?(me.tagStart=Ve.column(),wt):Gt=="closeTag"?Bt:vt}function wt(Gt,Ve,me){return Gt=="word"?(me.tagName=Ve.current(),ve="tag",jt):Ft.allowMissingTagName&&Gt=="endTag"?(ve="tag bracket",jt(Gt,Ve,me)):(ve="error",wt)}function Bt(Gt,Ve,me){if(Gt=="word"){var sn=Ve.current();return me.context&&me.context.tagName!=sn&&Ft.implicitlyClosed.hasOwnProperty(me.context.tagName)&&st(me),me.context&&me.context.tagName==sn||Ft.matchClosing===!1?(ve="tag",kt):(ve="tag error",Ot)}else return Ft.allowMissingTagName&&Gt=="endTag"?(ve="tag bracket",kt(Gt,Ve,me)):(ve="error",Ot)}function kt(Gt,Ve,me){return Gt!="endTag"?(ve="error",kt):(st(me),vt)}function Ot(Gt,Ve,me){return ve="error",kt(Gt,Ve,me)}function jt(Gt,Ve,me){if(Gt=="word")return ve="attribute",Xt;if(Gt=="endTag"||Gt=="selfcloseTag"){var sn=me.tagName,qe=me.tagStart;return me.tagName=me.tagStart=null,Gt=="selfcloseTag"||Ft.autoSelfClosers.hasOwnProperty(sn)?gt(me,sn):(gt(me,sn),me.context=new ht(me,sn,qe==me.indented)),vt}return ve="error",jt}function Xt(Gt,Ve,me){return Gt=="equals"?Ut:(Ft.allowMissing||(ve="error"),jt(Gt,Ve,me))}function Ut(Gt,Ve,me){return Gt=="string"?de:Gt=="word"&&Ft.allowUnquoted?(ve="string",jt):(ve="error",jt(Gt,Ve,me))}function de(Gt,Ve,me){return Gt=="string"?de:jt(Gt,Ve,me)}return{startState:function(Gt){var Ve={tokenize:ye,state:vt,indented:Gt||0,tagName:null,tagStart:null,context:null};return Gt!=null&&(Ve.baseIndent=Gt),Ve},token:function(Gt,Ve){if(!Ve.tagName&&Gt.sol()&&(Ve.indented=Gt.indentation()),Gt.eatSpace())return null;oe=null;var me=Ve.tokenize(Gt,Ve);return(me||oe)&&me!="comment"&&(ve=null,Ve.state=Ve.state(oe||me,Gt,Ve),ve&&(me=ve=="error"?me+" error":ve)),me},indent:function(Gt,Ve,me){var sn=Gt.context;if(Gt.tokenize.isInAttribute)return Gt.tagStart==Gt.indented?Gt.stringStartCol+1:Gt.indented+fe;if(sn&&sn.noIndent)return Ct.Pass;if(Gt.tokenize!=Re&&Gt.tokenize!=ye)return me?me.match(/^(\s*)/)[0].length:0;if(Gt.tagName)return Ft.multilineTagIndentPastTag!==!1?Gt.tagStart+Gt.tagName.length+2:Gt.tagStart+fe*(Ft.multilineTagIndentFactor||1);if(Ft.alignCDATA&&/<!\[CDATA\[/.test(Ve))return 0;var qe=Ve&&/^<(\/)?([\w_:\.-]*)/.exec(Ve);if(qe&&qe[1])for(;sn;)if(sn.tagName==qe[2]){sn=sn.prev;break}else if(Ft.implicitlyClosed.hasOwnProperty(sn.tagName))sn=sn.prev;else break;else if(qe)for(;sn;){var Ye=Ft.contextGrabbers[sn.tagName];if(Ye&&Ye.hasOwnProperty(qe[2]))sn=sn.prev;else break}for(;sn&&sn.prev&&!sn.startOfLine;)sn=sn.prev;return sn?sn.indent+fe:Gt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ft.htmlMode?"html":"xml",helperType:Ft.htmlMode?"html":"xml",skipAttribute:function(Gt){Gt.state==Ut&&(Gt.state=jt)},xmlCurrentTag:function(Gt){return Gt.tagName?{name:Gt.tagName,close:Gt.type=="closeTag"}:null},xmlCurrentContext:function(Gt){for(var Ve=[],me=Gt.context;me;me=me.prev)me.tagName&&Ve.push(me.tagName);return Ve.reverse()}}}),Ct.defineMIME("text/xml","xml"),Ct.defineMIME("application/xml","xml"),Ct.mimeModes.hasOwnProperty("text/html")||Ct.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Dn,An,St){"use strict";St.d(An,{$u:function(){return we},BD:function(){return ui},E9:function(){return ze},FF:function(){return qi},FJ:function(){return vt},Hn:function(){return gt},KX:function(){return Bt},NB:function(){return Dt},S0:function(){return Ee},UL:function(){return oe},Vk:function(){return st},Vm:function(){return mt},YI:function(){return Jn},ZA:function(){return ee},Zt:function(){return ve},al:function(){return Kt},bn:function(){return ie},bx:function(){return ln},g2:function(){return ai},h1:function(){return Ut},hD:function(){return Zn},l4:function(){return fe},rU:function(){return xt},s_:function(){return Te},uz:function(){return qt},z6:function(){return ye}}),Dn=St.hmd(Dn),function(){var Lt;function Mo(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function $i(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Mo(a)}}function En(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var hi=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},gi;if(typeof Object.setPrototypeOf=="function")gi=Object.setPrototypeOf;else{var Pi;t:{var Rn={a:!0},Le={};try{Le.__proto__=Rn,Pi=Le.a;break t}catch(a){}Pi=!1}gi=Pi?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var Fe=gi;function he(a,y){if(a.prototype=hi(y.prototype),a.prototype.constructor=a,Fe)Fe(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 _t=typeof St.g!="undefined"&&St.g!=null?St.g:self,Ze=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},tn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function Se(a,y){if(y){var x=_t;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&&tn(x,a,{writable:!0,value:y})}}Se("Object.assign",function(a){return a||Ze}),Se("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 Yt=typeof globalThis=="object"&&globalThis||typeof St.g=="object"&&St.g.global===St.g&&St.g||typeof self=="object"&&self.self===self&&self||{};Yt.requestAnimationFrame===void 0&&(Yt.setImmediate===void 0?Yt.requestAnimationFrame=function(a){Yt.setTimeout(a,0)}:Yt.requestAnimationFrame=Yt.setImmediate);function $e(){}function on(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Yt.clearTimeout(x),x=zn(function(){x=-1,a.apply(b,E)},y)}}function zn(a,y){return Yt.setTimeout(a,y)}function en(a){return Yt.document.createElement(a)}function xe(a){throw Error(a)}function vn(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),xe(a)}function Wn(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),xe(x+" is not in the range "+y+": "+a)}function qn(a){Yt.console&&Yt.console.log(a)}function We(a){return typeof a=="object"&&a!==null}function fn(a){return Array.isArray(a)||Yt.NodeList&&a instanceof Yt.NodeList||Yt.HTMLCollection&&a instanceof Yt.HTMLCollection}function Ie(a){return Array.prototype.slice.call(a)}function an(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):xe("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function _e(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):xe("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function rn(){var a=Li.pop();return a===void 0?[]:a}function pn(a){a.length=0,Li.push(a)}function Cn(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(We(a)&&a.constructor)return Cn(a.constructor);return typeof a}function kn(a){var y=a;return We(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 In(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 wn(a,y,x){Object.defineProperty(zr.prototype,a,{get:y,set:x})}function Kn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var b=0,E=0;E<a.length;E+=2)x[b++]=y[a.substr(E,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=b=0;256>x;x++)b=(b+y[x]+119)%256,E=y[x],y[x]=y[b],y[b]=E;b=x=0;for(var z="",tt=0;tt<a.length;tt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(tt)^y[(y[x]+y[b])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var Ci=Yt.navigator!==void 0&&0<Yt.navigator.userAgent.indexOf("Trident/7"),Wi=Yt.navigator!==void 0&&Yt.navigator.platform!==void 0&&Yt.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Li=[];Object.freeze([]),$e.className="Util",$e.Dx="32ab5ff3b26f42dc0ed90f21472913b5",$e.adym="gojs.net",$e.vfo="28e645fdb266",$e.className="Util";function Be(a,y,x){po(this),this.j=a,this.xa=y,this.o=x}Be.prototype.toString=function(){return"EnumValue."+this.xa};function ei(a,y){return y==null||y===""?null:a[y]}_t.Object.defineProperties(Be.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),Be.className="EnumValue";function Si(){this.ew=[]}Si.prototype.toString=function(){return this.ew.join("")},Si.prototype.add=function(a){a!==""&&this.ew.push(a)},Si.className="StringBuilder";function ci(){}ci.className="PropertyCollection";var Hi={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Yt.console&&Yt.console.log(a)},HA:function(a,y,x,b){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(b.left,b.top+20),a.lineTo(b.left,b.top),a.lineTo(b.left+20,b.top),a.moveTo(b.right,b.bottom-20),a.lineTo(b.right,b.bottom),a.lineTo(b.right-20,b.bottom),a.stroke(),a.fillText("DB: "+Math.round(b.x)+", "+Math.round(b.y)+", "+Math.round(b.width)+", "+Math.round(b.height),b.left,b.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var b=a[y.x];if(b.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(b.prototype);for(var E={Tj:0};E.Tj<y.Zl.length;E={Tj:E.Tj},E.Tj++){var z=Object.getOwnPropertyDescriptor(b.prototype,y.Zl[E.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(b.prototype,y.Zl[E.Tj],{set:function(tt,ot){return function(){throw Error("Property "+tt.Zl[ot.Tj]+" of "+tt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function Ni(){}Ni.prototype.reset=function(){},Ni.prototype.next=function(){return!1},Ni.prototype.Ad=function(){return!1},Ni.prototype.first=function(){return null},Ni.prototype.any=function(){return!1},Ni.prototype.all=function(){return!0},Ni.prototype.each=function(){return this},Ni.prototype.map=function(){return this},Ni.prototype.filter=function(){return this},Ni.prototype.de=function(){},Ni.prototype.toString=function(){return"EmptyIterator"},_t.Object.defineProperties(Ni.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Ni.prototype.first=Ni.prototype.first,Ni.prototype.hasNext=Ni.prototype.Ad,Ni.prototype.next=Ni.prototype.next,Ni.prototype.reset=Ni.prototype.reset;var Ui=null;Ni.className="EmptyIterator",Ui=new Ni;function Ii(a){this.key=-1,this.value=a}Ii.prototype.reset=function(){this.key=-1},Ii.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Ii.prototype.Ad=function(){return this.next()},Ii.prototype.first=function(){return this.key=0,this.value},Ii.prototype.any=function(a){return this.key=-1,a(this.value)},Ii.prototype.all=function(a){return this.key=-1,a(this.value)},Ii.prototype.each=function(a){return this.key=-1,a(this.value),this},Ii.prototype.map=function(a){return new Ii(a(this.value))},Ii.prototype.filter=function(a){return a(this.value)?new Ii(this.value):Ui},Ii.prototype.de=function(){this.value=null},Ii.prototype.toString=function(){return"SingletonIterator("+this.value+")"},_t.Object.defineProperties(Ii.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Ii.prototype.first=Ii.prototype.first,Ii.prototype.hasNext=Ii.prototype.Ad,Ii.prototype.next=Ii.prototype.next,Ii.prototype.reset=Ii.prototype.reset,Ii.className="SingletonIterator";function bi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}bi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},bi.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},bi.prototype.Ad=function(){return this.next()},bi.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},bi.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},bi.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},bi.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},bi.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&x.push(a(tt))}return a=new xn,a.s=x,a.xb(),a.iterator},bi.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var b=y.length,E=this.qf,z=0;z<b;z++){var tt=y[z];(E===null||E(tt))&&a(tt)&&x.push(tt)}return a=new xn,a.s=x,a.xb(),a.iterator},bi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},bi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},_t.Object.defineProperties(bi.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}}}),bi.prototype.first=bi.prototype.first,bi.prototype.hasNext=bi.prototype.Ad,bi.prototype.next=bi.prototype.next,bi.prototype.reset=bi.prototype.reset,bi.className="ListIterator";function eo(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}eo.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},eo.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)},eo.prototype.Ad=function(){return this.next()},eo.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},eo.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},eo.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},eo.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},eo.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 xn,a.s=x,a.xb(),a.iterator},eo.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 xn,a.s=x,a.xb(),a.iterator},eo.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},eo.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},_t.Object.defineProperties(eo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),eo.prototype.first=eo.prototype.first,eo.prototype.hasNext=eo.prototype.Ad,eo.prototype.next=eo.prototype.next,eo.prototype.reset=eo.prototype.reset,eo.className="ListIteratorBackwards";function xn(a){po(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&xe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=xn.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.toString=function(){return"List()#"+Yi(this)},Lt.add=function(a){return a===null?this:(this._isFrozen&&vn(this,a),this.s.push(a),this.xb(),this)},Lt.push=function(a){this.add(a)},Lt.addAll=function(a){if(a===null)return this;this._isFrozen&&vn(this);var y=this.s;if(fn(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},Lt.clear=function(){this._isFrozen&&vn(this),this.s.length=0,this.xb()},Lt.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Lt.has=function(a){return this.contains(a)},Lt.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Lt.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Wn(a,"0 <= i < length",xn,"elt:i"),y[a]},Lt.get=function(a){return this.M(a)},Lt.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Wn(a,"0 <= i < length",xn,"setElt:i"),this._isFrozen&&vn(this,a),x[a]=y},Lt.set=function(a,y){this.cd(a,y)},Lt.first=function(){var a=this.s;return a.length===0?null:a[0]},Lt.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Lt.pop=function(){this._isFrozen&&vn(this);var a=this.s;return 0<a.length?a.pop():null},xn.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},xn.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},xn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},xn.prototype.map=function(a){for(var y=new xn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},xn.prototype.filter=function(a){for(var y=new xn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var tt=b[z];a(tt)&&x.push(tt)}return y.s=x,y.xb(),y},Lt=xn.prototype,Lt.Gb=function(a,y){0>a&&Wn(a,">= 0",xn,"insertAt:i"),this._isFrozen&&vn(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&vn(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)},Lt.delete=function(a){return this.remove(a)},Lt.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Wn(a,"0 <= i < length",xn,"removeAt:i"),this._isFrozen&&vn(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Lt.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&&vn(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},xn.prototype.copy=function(){var a=new xn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Lt=xn.prototype,Lt.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},Lt.Iv=function(){for(var a=new Ln,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},Lt.sort=function(a){return this._isFrozen&&vn(this),this.s.sort(a),this.xb(),this},Lt.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&vn(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&Wn(y,"0 <= from < length",xn,"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},Lt.reverse=function(){return this._isFrozen&&vn(this),this.s.reverse(),this.xb(),this},_t.Object.defineProperties(xn.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 Ui;var a=this.Sa;return a!==null?(a.reset(),a):new bi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Ui;var a=this.Hg;return a!==null?(a.reset(),a):new eo(this)}}}),xn.prototype.reverse=xn.prototype.reverse,xn.prototype.sortRange=xn.prototype.zi,xn.prototype.sort=xn.prototype.sort,xn.prototype.toSet=xn.prototype.Iv,xn.prototype.toArray=xn.prototype.Fa,xn.prototype.removeRange=xn.prototype.removeRange,xn.prototype.removeAt=xn.prototype.mb,xn.prototype.delete=xn.prototype.delete,xn.prototype.remove=xn.prototype.remove,xn.prototype.insertAt=xn.prototype.Gb,xn.prototype.pop=xn.prototype.pop,xn.prototype.last=xn.prototype.jc,xn.prototype.first=xn.prototype.first,xn.prototype.set=xn.prototype.set,xn.prototype.setElt=xn.prototype.cd,xn.prototype.get=xn.prototype.get,xn.prototype.elt=xn.prototype.M,xn.prototype.indexOf=xn.prototype.indexOf,xn.prototype.has=xn.prototype.has,xn.prototype.contains=xn.prototype.contains,xn.prototype.clear=xn.prototype.clear,xn.prototype.addAll=xn.prototype.addAll,xn.prototype.push=xn.prototype.push,xn.prototype.add=xn.prototype.add,xn.prototype.thaw=xn.prototype.ka,xn.prototype.freeze=xn.prototype.freeze,xn.className="List";function Fo(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Fo.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},Fo.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)},Fo.prototype.Ad=function(){return this.next()},Fo.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},Fo.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},Fo.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},Fo.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},Fo.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new xn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Fo.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new xn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Fo.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Fo.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},_t.Object.defineProperties(Fo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Fo.prototype.first=Fo.prototype.first,Fo.prototype.hasNext=Fo.prototype.Ad,Fo.prototype.next=Fo.prototype.next,Fo.prototype.reset=Fo.prototype.reset,Fo.className="SetIterator";function Ln(a){po(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&xe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=Ln.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.toString=function(){return"Set()#"+Yi(this)},Lt.add=function(a){if(a===null)return this;this._isFrozen&&vn(this,a);var y=a;return We(a)&&(y=Go(a)),this.Tb[y]===void 0&&(this.Sb++,a=new bo(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},Lt.addAll=function(a){if(a===null)return this;if(this._isFrozen&&vn(this),fn(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},Lt.contains=function(a){if(a===null)return!1;var y=a;return We(a)&&(y=Yi(a),y===void 0)?!1:this.Tb[y]!==void 0},Lt.has=function(a){return this.contains(a)},Lt.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Lt.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Lt.first=function(){var a=this.ea;return a===null?null:a.value},Ln.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ln.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ln.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Ln.prototype.map=function(a){for(var y=new Ln,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Ln.prototype.filter=function(a){for(var y=new Ln,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},Lt=Ln.prototype,Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&vn(this,a);var y=a;if(We(a)&&(y=Yi(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},Lt.delete=function(a){return this.remove(a)},Lt.hp=function(a){if(a===null)return this;if(this._isFrozen&&vn(this),fn(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},Lt.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&vn(this);var y=new Ln;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},Lt.clear=function(){this._isFrozen&&vn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ln.prototype.copy=function(){var a=new Ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Ln.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Ln.prototype.Hv=function(){var a=new xn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function po(a){a.__gohashid=nr++}function Go(a){var y=a.__gohashid;return y===void 0&&(y=nr++,a.__gohashid=y),y}function Yi(a){return a.__gohashid}_t.Object.defineProperties(Ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Ui;var a=this.Sa;return a!==null?(a.reset(),a):new Fo(this)}}}),Ln.prototype.toList=Ln.prototype.Hv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.retainAll=Ln.prototype.pA,Ln.prototype.removeAll=Ln.prototype.hp,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.first=Ln.prototype.first,Ln.prototype.containsAny=Ln.prototype.Ty,Ln.prototype.containsAll=Ln.prototype.Sy,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze;var nr=1;Ln.className="Set",Ln.uniqueHash=po,Ln.hashIdUnique=Go,Ln.hashId=Yi;function Bo(a){this.ma=a,this.qa=a.Ja,this.sa=null}Bo.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Bo.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)},Bo.prototype.Ad=function(){return this.next()},Bo.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},Bo.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},Bo.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},Bo.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},Bo.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new xn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Bo.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new xn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},Bo.prototype.de=function(){this.value=this.key=null,this.qa=-1},Bo.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},_t.Object.defineProperties(Bo.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Bo.prototype.first=Bo.prototype.first,Bo.prototype.hasNext=Bo.prototype.Ad,Bo.prototype.next=Bo.prototype.next,Bo.prototype.reset=Bo.prototype.reset,Bo.className="MapKeySetIterator";function Ti(a){Ln.call(this),po(this),this._isFrozen=!0,this.ma=a}he(Ti,Ln),Lt=Ti.prototype,Lt.freeze=function(){return this},Lt.ka=function(){return this},Lt.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Lt.add=function(){xe("This Set is read-only: "+this.toString())},Lt.contains=function(a){return this.ma.contains(a)},Lt.has=function(a){return this.contains(a)},Lt.remove=function(){xe("This Set is read-only: "+this.toString())},Lt.delete=function(a){return this.remove(a)},Lt.clear=function(){xe("This Set is read-only: "+this.toString())},Lt.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Ti.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ti.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ti.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Ti.prototype.map=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Ti.prototype.filter=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Ti.prototype.copy=function(){return new Ti(this.ma)},Ti.prototype.Iv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ti.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},Ti.prototype.Hv=function(){var a=new xn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},_t.Object.defineProperties(Ti.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Ui:new Bo(this.ma)}}}),Ti.prototype.toList=Ti.prototype.Hv,Ti.prototype.toArray=Ti.prototype.Fa,Ti.prototype.toSet=Ti.prototype.Iv,Ti.prototype.first=Ti.prototype.first,Ti.prototype.clear=Ti.prototype.clear,Ti.prototype.delete=Ti.prototype.delete,Ti.prototype.remove=Ti.prototype.remove,Ti.prototype.has=Ti.prototype.has,Ti.prototype.contains=Ti.prototype.contains,Ti.prototype.add=Ti.prototype.add,Ti.prototype.thaw=Ti.prototype.ka,Ti.prototype.freeze=Ti.prototype.freeze,Ti.className="MapKeySet";function Oi(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}Oi.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},Oi.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)},Oi.prototype.Ad=function(){return this.next()},Oi.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},Oi.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},Oi.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},Oi.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},Oi.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new xn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},Oi.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new xn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},Oi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Oi.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},_t.Object.defineProperties(Oi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Oi.prototype.first=Oi.prototype.first,Oi.prototype.hasNext=Oi.prototype.Ad,Oi.prototype.next=Oi.prototype.next,Oi.prototype.reset=Oi.prototype.reset,Oi.className="MapValueSetIterator";function bo(a,y){this.key=a,this.value=y,this.ll=this.va=null}bo.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},bo.className="KeyValuePair";function Do(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Do.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Do.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)},Do.prototype.Ad=function(){return this.next()},Do.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},Do.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},Do.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},Do.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},Do.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new xn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Do.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new xn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Do.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Do.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},_t.Object.defineProperties(Do.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Do.prototype.first=Do.prototype.first,Do.prototype.hasNext=Do.prototype.Ad,Do.prototype.next=Do.prototype.next,Do.prototype.reset=Do.prototype.reset,Do.className="MapIterator";function si(a){po(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"&&xe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Lt=si.prototype,Lt.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.toString=function(){return"Map()#"+Yi(this)},Lt.add=function(a,y){this._isFrozen&&vn(this,a);var x=a;We(a)&&(x=Go(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new bo(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},Lt.set=function(a,y){return this.add(a,y)},Lt.addAll=function(a){if(a===null)return this;if(fn(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 si)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},Lt.first=function(){return this.ea},si.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},si.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},si.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},si.prototype.map=function(a){for(var y=new si,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},si.prototype.filter=function(a){for(var y=new si,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Lt=si.prototype,Lt.contains=function(a){var y=a;return We(a)&&(y=Yi(a),y===void 0)?!1:this.Tb[y]!==void 0},Lt.has=function(a){return this.contains(a)},Lt.I=function(a){var y=a;return We(a)&&(y=Yi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Lt.get=function(a){return this.I(a)},Lt.remove=function(a){if(a===null)return!1;this._isFrozen&&vn(this,a);var y=a;if(We(a)&&(y=Yi(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},Lt.delete=function(a){return this.remove(a)},Lt.clear=function(){this._isFrozen&&vn(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()},si.prototype.copy=function(){var a=new si,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},si.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 bo(E.key,E.value),x++}return y},si.prototype.Lf=function(){return new Ti(this)},_t.Object.defineProperties(si.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Ui;var a=this.Sa;return a!==null?(a.reset(),a):new Do(this)}},iteratorKeys:{get:function(){return 0>=this.count?Ui:new Bo(this)}},iteratorValues:{get:function(){if(0>=this.count)return Ui;var a=this.jf;return a!==null?(a.reset(),a):new Oi(this)}}}),si.prototype.toKeySet=si.prototype.Lf,si.prototype.toArray=si.prototype.Fa,si.prototype.clear=si.prototype.clear,si.prototype.delete=si.prototype.delete,si.prototype.remove=si.prototype.remove,si.prototype.get=si.prototype.get,si.prototype.getValue=si.prototype.I,si.prototype.has=si.prototype.has,si.prototype.contains=si.prototype.contains,si.prototype.first=si.prototype.first,si.prototype.addAll=si.prototype.addAll,si.prototype.set=si.prototype.set,si.prototype.add=si.prototype.add,si.prototype.thaw=si.prototype.ka,si.prototype.freeze=si.prototype.freeze,si.className="Map";function Zt(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):xe("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Co,xr,yo,yr,_i;Zt.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Zt.prototype.h=function(a,y){return this.x=a,this.y=y,this},Zt.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Zt.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Zt.prototype.copy=function(){var a=new Zt;return a.x=this.x,a.y=this.y,a},Lt=Zt.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&xe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ji(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 Zt(x,E)}return new Zt}function Zo(a){return a.x.toString()+" "+a.y.toString()}Lt.toString=function(){return"Point("+this.x+","+this.y+")"},Lt.D=function(a){return a instanceof Zt?this.x===a.x&&this.y===a.y:!1},Lt.hi=function(a,y){return this.x===a&&this.y===y},Lt.Xa=function(a){return De.B(this.x,a.x)&&De.B(this.y,a.y)},Lt.add=function(a){return this.x+=a.x,this.y+=a.y,this},Lt.re=function(a){return this.x-=a.x,this.y-=a.y,this},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Zt.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},Lt=Zt.prototype,Lt.scale=function(a,y){return this.x*=a,this.y*=y,this},Lt.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Lt.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Lt.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},Lt.ab=function(a){return rr(a.x-this.x,a.y-this.y)},Lt.direction=function(a,y){return rr(a-this.x,y-this.y)};function rr(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}Lt.Ry=function(a,y){return De.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Lt.fA=function(a,y,x,b){return De.qh(a,y,x,b,this.x,this.y,this),this},Lt.gA=function(a,y){return De.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Lt.uA=function(a,y,x,b){return De.No(this.x,this.y,a,y,x,b,this),this},Lt.vA=function(a,y){return De.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Lt.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},Lt.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},Lt.transform=function(a){return a.Ga(this),this};function Ao(a,y){return y.Cd(a),a}function kr(a,y,x,b,E,z){var tt=E-x,ot=z-b,rt=tt*tt+ot*ot;x-=a,b-=y;var lt=-x*tt-b*ot;return 0>=lt||lt>=rt?(tt=E-a,ot=z-y,Math.min(x*x+b*b,tt*tt+ot*ot)):(a=tt*b-ot*x,a*a/rt)}function Ki(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function zi(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)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)},Zt.alloc=function(){var a=co.pop();return a===void 0?new Zt:a},Zt.allocAt=function(a,y){var x=co.pop();return x===void 0?new Zt(a,y):(x.x=a,x.y=y,x)},Zt.free=function(a){co.push(a)},Zt.prototype.isReal=Zt.prototype.w,Zt.prototype.setSpot=Zt.prototype.yi,Zt.prototype.setRectSpot=Zt.prototype.xi,Zt.prototype.snapToGridPoint=Zt.prototype.vA,Zt.prototype.snapToGrid=Zt.prototype.uA,Zt.prototype.projectOntoLineSegmentPoint=Zt.prototype.gA,Zt.prototype.projectOntoLineSegment=Zt.prototype.fA,Zt.intersectingLineSegments=function(a,y,x,b,E,z,tt,ot){return De.Rl(a,y,x,b,E,z,tt,ot)},Zt.prototype.compareWithLineSegmentPoint=Zt.prototype.Ry,Zt.compareWithLineSegment=function(a,y,x,b,E,z){return De.Fl(a,y,x,b,E,z)},Zt.prototype.direction=Zt.prototype.direction,Zt.prototype.directionPoint=Zt.prototype.ab,Zt.prototype.normalize=Zt.prototype.normalize,Zt.prototype.distanceSquared=Zt.prototype.zd,Zt.prototype.distanceSquaredPoint=Zt.prototype.Bf,Zt.prototype.scale=Zt.prototype.scale,Zt.prototype.rotate=Zt.prototype.rotate,Zt.prototype.offset=Zt.prototype.offset,Zt.prototype.subtract=Zt.prototype.re,Zt.prototype.add=Zt.prototype.add,Zt.prototype.equalsApprox=Zt.prototype.Xa,Zt.prototype.equalTo=Zt.prototype.hi,Zt.prototype.equals=Zt.prototype.D,Zt.prototype.set=Zt.prototype.set,Zt.prototype.setTo=Zt.prototype.sg;var co=[];Zt.className="Point",Zt.parse=Ji,Zt.stringify=Zo,Zt.distanceLineSegmentSquared=kr,Zt.distanceSquared=Ki,Zt.direction=zi,Zt.Origin=Co=new Zt(0,0).ja(),Zt.InfiniteTopLeft=xr=new Zt(-1/0,-1/0).ja(),Zt.InfiniteBottomRight=yo=new Zt(1/0,1/0).ja(),Zt.SixPoint=yr=new Zt(6,6).ja(),Zt.NoPoint=_i=new Zt(NaN,NaN).ja(),Zt.parse=Ji,Zt.stringify=Zo,Zt.distanceLineSegmentSquared=kr,Zt.distanceSquared=Ki,Zt.direction=zi;function Yn(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):xe("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ar,wr,ia,sr,ir,Fr,Qr;Yn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Yn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Yn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Yn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Yn.prototype.copy=function(){var a=new Yn;return a.width=this.width,a.height=this.height,a},Lt=Yn.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&xe("cannot thaw constant: "+this),this._isFrozen=!1,this};function $r(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 Yn(x,E)}return new Yn}function qa(a){return a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Size("+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof Yn?this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y){return this.width===a&&this.height===y},Lt.Xa=function(a){return De.B(this.width,a.width)&&De.B(this.height,a.height)},Lt.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},Lt.w=function(){return isFinite(this.width)&&isFinite(this.height)},Yn.alloc=function(){var a=Ea.pop();return a===void 0?new Yn:a},Yn.free=function(a){Ea.push(a)},Yn.prototype.isReal=Yn.prototype.w,Yn.prototype.inflate=Yn.prototype.Bc,Yn.prototype.equalsApprox=Yn.prototype.Xa,Yn.prototype.equalTo=Yn.prototype.hi,Yn.prototype.equals=Yn.prototype.D,Yn.prototype.set=Yn.prototype.set,Yn.prototype.setTo=Yn.prototype.sg;var Ea=[];Yn.className="Size",Yn.parse=$r,Yn.stringify=qa,Yn.ZeroSize=ar=new Yn(0,0).ja(),Yn.OneSize=wr=new Yn(1,1).ja(),Yn.SixSize=ia=new Yn(6,6).ja(),Yn.EightSize=sr=new Yn(8,8).ja(),Yn.TenSize=ir=new Yn(10,10).ja(),Yn.InfiniteSize=Fr=new Yn(1/0,1/0).ja(),Yn.NoSize=Qr=new Yn(NaN,NaN).ja(),Yn.parse=$r,Yn.stringify=qa;function gn(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 Zt?(x=a.x,a=a.y,y instanceof Zt?(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 Yn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):xe("Incorrect second argument supplied to Rect constructor "+y)):xe("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Lt=gn.prototype,Lt.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function La(a,y,x){a.width=y,a.height=x}Lt.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},Lt.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Lt.dd=function(a){return this.x=a.x,this.y=a.y,this},Lt.tA=function(a){return this.width=a.width,this.height=a.height,this},gn.prototype.copy=function(){var a=new gn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Lt=gn.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&xe("cannot thaw constant: "+this),this._isFrozen=!1,this};function tl(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;(b=a[y++])&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;(b=a[y++])&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),new gn(x,E,z,tt)}return new gn}function js(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Lt.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Lt.D=function(a){return a instanceof gn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Lt.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},Lt.Xa=function(a){return De.B(this.x,a.x)&&De.B(this.y,a.y)&&De.B(this.width,a.width)&&De.B(this.height,a.height)};function Qo(a,y){return De.$(a.x,y.x)&&De.$(a.y,y.y)&&De.$(a.width,y.width)&&De.$(a.height,y.height)}Lt.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Lt.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},Lt.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},Lt.offset=function(a,y){return this.x+=a,this.y+=y,this},Lt.Bc=function(a,y){return Tr(this,y,a,y,a)},Lt.Co=function(a){return Tr(this,a.top,a.right,a.bottom,a.left)},Lt.Fv=function(a){return Tr(this,-a.top,-a.right,-a.bottom,-a.left)},Lt.Hz=function(a,y,x,b){return Tr(this,a,y,x,b)};function Tr(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}Lt.Ex=function(a){return ha(this,a.x,a.y,a.width,a.height)},Lt.Uu=function(a,y,x,b){return ha(this,a,y,x,b)};function ha(a,y,x,b,E){var z=Math.max(a.x,y),tt=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+b),x=Math.min(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-tt),a}Lt.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Lt.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 Cr(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))}Lt.Ye=function(a){return or(this,a.x,a.y,0,0)},Lt.ed=function(a){return or(this,a.x,a.y,a.width,a.height)},Lt.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),or(this,a,y,x,b)};function or(a,y,x,b,E){var z=Math.min(a.x,y),tt=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+b),x=Math.max(a.y+a.height,x+E),a.x=z,a.y=tt,a.width=y-z,a.height=x-tt,a}Lt.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 Br(a,y,x,b,E,z,tt,ot){return tt===void 0&&(tt=0),ot===void 0&&(ot=0),a<=E&&E+tt<=a+x&&y<=z&&z+ot<=y+b}function Ua(a,y,x,b,E,z,tt,ot){return a>tt+E||E>x+a?!1:!(y>ot+z||z>b+y)}Lt.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Lt.Mz=function(){return this.width===0&&this.height===0},gn.alloc=function(){var a=ur.pop();return a===void 0?new gn:a},gn.allocAt=function(a,y,x,b){var E=ur.pop();return E===void 0?new gn(a,y,x,b):E.h(a,y,x,b)},gn.free=function(a){ur.push(a)},_t.Object.defineProperties(gn.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 Zt(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Yn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Zt(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}}}),gn.prototype.isEmpty=gn.prototype.Mz,gn.prototype.isReal=gn.prototype.w,gn.intersectsLineSegment=function(a,y,x,b,E,z,tt,ot){return De.Fx(a,y,x,b,E,z,tt,ot)},gn.prototype.setSpot=gn.prototype.yi,gn.prototype.union=gn.prototype.Kv,gn.prototype.unionRect=gn.prototype.ed,gn.prototype.unionPoint=gn.prototype.Ye,gn.prototype.intersects=gn.prototype.Vu,gn.prototype.intersectsRect=gn.prototype.Yc,gn.prototype.intersect=gn.prototype.Uu,gn.prototype.intersectRect=gn.prototype.Ex,gn.prototype.grow=gn.prototype.Hz,gn.prototype.subtractMargin=gn.prototype.Fv,gn.prototype.addMargin=gn.prototype.Co,gn.prototype.inflate=gn.prototype.Bc,gn.prototype.offset=gn.prototype.offset,gn.prototype.contains=gn.prototype.contains,gn.prototype.containsRect=gn.prototype.Re,gn.prototype.containsPoint=gn.prototype.ca,gn.prototype.equalsApprox=gn.prototype.Xa,gn.prototype.equalTo=gn.prototype.hi,gn.prototype.equals=gn.prototype.D,gn.prototype.setSize=gn.prototype.tA,gn.prototype.setPoint=gn.prototype.dd,gn.prototype.set=gn.prototype.set,gn.prototype.setTo=gn.prototype.sg;var No=null,dr=null,ur=[];gn.className="Rect",gn.parse=tl,gn.stringify=js,gn.contains=Br,gn.intersects=Ua,gn.ZeroRect=No=new gn(0,0,0,0).ja(),gn.NoRect=dr=new gn(NaN,NaN,NaN,NaN).ja(),gn.parse=tl,gn.stringify=js,gn.contains=Br,gn.intersects=Ua;function Bi(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):xe("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}Bi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Bi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},Bi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Bi.prototype.copy=function(){var a=new Bi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Lt=Bi.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&xe("cannot thaw constant: "+this),this._isFrozen=!1,this};function za(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 Bi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new Bi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new Bi(x,E);for(var tt=NaN;a[y]==="";)y++;return(b=a[y++])&&(tt=parseFloat(b)),isNaN(tt)?new Bi(x,E):new Bi(x,E,z,tt)}return new Bi}function ja(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Lt.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Lt.D=function(a){return a instanceof Bi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Lt.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},Lt.Xa=function(a){return De.B(this.top,a.top)&&De.B(this.right,a.right)&&De.B(this.bottom,a.bottom)&&De.B(this.left,a.left)},Lt.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Bi.alloc=function(){var a=$l.pop();return a===void 0?new Bi:a},Bi.free=function(a){$l.push(a)},Bi.prototype.isReal=Bi.prototype.w,Bi.prototype.equalsApprox=Bi.prototype.Xa,Bi.prototype.equalTo=Bi.prototype.hi,Bi.prototype.equals=Bi.prototype.D,Bi.prototype.set=Bi.prototype.set,Bi.prototype.setTo=Bi.prototype.sg;var bs=null,Tl=null,$l=[];Bi.className="Margin",Bi.parse=za,Bi.stringify=ja,Bi.ZeroMargin=bs=new Bi(0,0,0,0).ja(),Bi.TwoMargin=Tl=new Bi(2,2,2,2).ja(),Bi.parse=za,Bi.stringify=ja;function yi(a,y,x,b){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),b===void 0&&(b=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=b),this._isFrozen=!1}var la,Ya,Cl,Ol,Il,jo,ph,el,nl,Ds,bu,Ru,Ws,cl,Wh,hd,Hh,Gd,Gh,mh,zu,Rl,dd,Zh,vh,lr,Rr,Es,$a,Wa,fa,Aa,Xa,Ha,ju,zl;yi.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},yi.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},yi.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},yi.prototype.copy=function(){var a=new yi;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Lt=yi.prototype,Lt.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Lt.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return Object.isFrozen(this)&&xe("cannot thaw constant: "+this),this._isFrozen=!1,this};function ka(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function xc(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return la;if(a==="TopLeft")return Ya;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Cl;if(a==="TopRight")return Ol;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Il;if(a==="Center")return jo;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ph;if(a==="BottomLeft")return el;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return nl;if(a==="BottomRight")return Ds;if(a==="TopSide")return bu;if(a==="LeftSide")return Ru;if(a==="RightSide")return Ws;if(a==="BottomSide")return cl;if(a==="TopBottomSides")return Wh;if(a==="LeftRightSides")return hd;if(a==="TopLeftSides")return Hh;if(a==="TopRightSides")return Gd;if(a==="BottomLeftSides")return Gh;if(a==="BottomRightSides")return mh;if(a==="NotTopSide")return zu;if(a==="NotLeftSide")return Rl;if(a==="NotRightSide")return dd;if(a==="NotBottomSide")return Zh;if(a==="AllSides")return vh;if(a==="Default")return lr;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b!==void 0&&0<b.length&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(E=parseFloat(b));for(var z=0;a[y]==="";)y++;b=a[y++],b!==void 0&&0<b.length&&(z=parseFloat(b));for(var tt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(tt=parseFloat(b)),new yi(x,E,z,tt)}return new yi}function wc(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Lt.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(la)?"None":this.D(Ya)?"TopLeft":this.D(Cl)?"Top":this.D(Ol)?"TopRight":this.D(Il)?"Left":this.D(jo)?"Center":this.D(ph)?"Right":this.D(el)?"BottomLeft":this.D(nl)?"Bottom":this.D(Ds)?"BottomRight":this.D(bu)?"TopSide":this.D(Ru)?"LeftSide":this.D(Ws)?"RightSide":this.D(cl)?"BottomSide":this.D(Wh)?"TopBottomSides":this.D(hd)?"LeftRightSides":this.D(Hh)?"TopLeftSides":this.D(Gd)?"TopRightSides":this.D(Gh)?"BottomLeftSides":this.D(mh)?"BottomRightSides":this.D(zu)?"NotTopSide":this.D(Rl)?"NotLeftSide":this.D(dd)?"NotRightSide":this.D(Zh)?"NotBottomSide":this.D(vh)?"AllSides":this.D(lr)?"Default":"None"},Lt.D=function(a){return a instanceof yi?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Lt.gv=function(){return new yi(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Lt.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Rr))a=Ru;else if(a.D(Es))a=Ws;else if(a.D($a))a=bu;else if(a.D(Wa))a=cl;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Lt.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Lt.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Lt.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Lt.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Lt.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},yi.alloc=function(){var a=Kh.pop();return a===void 0?new yi:a},yi.free=function(a){Kh.push(a)},yi.prototype.isDefault=yi.prototype.Xb,yi.prototype.isNone=yi.prototype.ys,yi.prototype.isSide=yi.prototype.$c,yi.prototype.isNoSpot=yi.prototype.Mc,yi.prototype.isSpot=yi.prototype.sb,yi.prototype.includesSide=yi.prototype.Hf,yi.prototype.opposite=yi.prototype.gv,yi.prototype.equals=yi.prototype.D,yi.prototype.set=yi.prototype.set,yi.prototype.setTo=yi.prototype.sg;var Kh=[];yi.className="Spot",yi.parse=xc,yi.stringify=wc,yi.None=la=ka(new yi(0,0,0,0),0).ja(),yi.Default=lr=ka(new yi(0,0,-1,0),-1).ja(),yi.TopLeft=Ya=new yi(0,0,0,0).ja(),yi.TopCenter=Cl=new yi(.5,0,0,0).ja(),yi.TopRight=Ol=new yi(1,0,0,0).ja(),yi.LeftCenter=Il=new yi(0,.5,0,0).ja(),yi.Center=jo=new yi(.5,.5,0,0).ja(),yi.RightCenter=ph=new yi(1,.5,0,0).ja(),yi.BottomLeft=el=new yi(0,1,0,0).ja(),yi.BottomCenter=nl=new yi(.5,1,0,0).ja(),yi.BottomRight=Ds=new yi(1,1,0,0).ja(),yi.MiddleTop=fa=Cl,yi.MiddleLeft=Aa=Il,yi.MiddleRight=Xa=ph,yi.MiddleBottom=Ha=nl,yi.Top=$a=Cl,yi.Left=Rr=Il,yi.Right=Es=ph,yi.Bottom=Wa=nl,yi.TopSide=bu=ka(new yi(0,0,1,1),1).ja(),yi.LeftSide=Ru=ka(new yi(0,0,1,2),1).ja(),yi.RightSide=Ws=ka(new yi(0,0,1,4),1).ja(),yi.BottomSide=cl=ka(new yi(0,0,1,8),1).ja(),yi.TopBottomSides=Wh=ka(new yi(0,0,1,9),1).ja(),yi.LeftRightSides=hd=ka(new yi(0,0,1,6),1).ja(),yi.TopLeftSides=Hh=ka(new yi(0,0,1,3),1).ja(),yi.TopRightSides=Gd=ka(new yi(0,0,1,5),1).ja(),yi.BottomLeftSides=Gh=ka(new yi(0,0,1,10),1).ja(),yi.BottomRightSides=mh=ka(new yi(0,0,1,12),1).ja(),yi.NotTopSide=zu=ka(new yi(0,0,1,14),1).ja(),yi.NotLeftSide=Rl=ka(new yi(0,0,1,13),1).ja(),yi.NotRightSide=dd=ka(new yi(0,0,1,11),1).ja(),yi.NotBottomSide=Zh=ka(new yi(0,0,1,7),1).ja(),yi.AllSides=vh=ka(new yi(0,0,1,15),1).ja(),ju=new yi(.156,.156).ja(),zl=new yi(.844,.844).ja(),yi.parse=xc,yi.stringify=wc;function mo(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}mo.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},mo.prototype.setTransform=function(a,y,x,b,E,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},mo.prototype.copy=function(){var a=new mo;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},mo.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},mo.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},mo.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},mo.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},mo.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,b=this.m11*a.m21+this.m21*a.m22,E=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},mo.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,b=-a.m12*y,E=-a.m21*y,z=a.m11*y,tt=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*b,x=this.m12*x+this.m22*b,b=this.m11*E+this.m21*z,E=this.m12*E+this.m22*z,this.dx=this.m11*tt+this.m21*a+this.dx,this.dy=this.m12*tt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},mo.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,b=this.m11*a,E=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=b,this.dx=E,this.dy=z,this},mo.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.m12*a+this.m22*b,z=this.m11*-b+this.m21*a,tt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=tt,this.translate(-y,-x),this},Lt=mo.prototype,Lt.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Lt.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Lt.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)},Lt.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))},Lt.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))},Lt.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,tt=this.m12,ot=this.m21,rt=this.m22,lt=this.dx,ut=this.dy,ft=y*z+x*ot+lt,yt=y*tt+x*rt+ut,Pt=b*z+x*ot+lt,bt=b*tt+x*rt+ut;return x=y*z+E*ot+lt,y=y*tt+E*rt+ut,z=b*z+E*ot+lt,b=b*tt+E*rt+ut,E=Math.min(ft,Pt),ft=Math.max(ft,Pt),Pt=Math.min(yt,bt),yt=Math.max(yt,bt),E=Math.min(E,x),ft=Math.max(ft,x),Pt=Math.min(Pt,y),yt=Math.max(yt,y),E=Math.min(E,z),ft=Math.max(ft,z),Pt=Math.min(Pt,b),yt=Math.max(yt,b),a.h(E,Pt,ft-E,yt-Pt),a},mo.alloc=function(){var a=cd.pop();return a===void 0?new mo:a},mo.free=function(a){cd.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 cd=[];mo.className="Transform",mo.xF="54a702f3e53909c447824c6706603faf4c";var De={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=De.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);De.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,b,E,z,tt){if(0>=E&&(E=1e-6),a<x)var ot=a,rt=x;else ot=x,rt=a;if(y<b)var lt=y,ut=b;else lt=b,ut=y;if(a===x)return lt<=tt&&tt<=ut&&a-E<=z&&z<=a+E;if(y===b)return ot<=z&&z<=rt&&y-E<=tt&&tt<=y+E;if(rt+=E,ot-=E,ot<=z&&z<=rt&&(ut+=E,lt-=E,lt<=tt&&tt<=ut))if(rt-ot>ut-lt)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=tt&&tt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(tt=(x-a)/(b-y)*(tt-y)+a,tt-E<=z&&z<=tt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,tt,ot,rt,lt,ut,ft){if(De.Yb(a,y,tt,ot,ft,x,b)&&De.Yb(a,y,tt,ot,ft,E,z))return De.Yb(a,y,tt,ot,ft,lt,ut);var yt=(a+x)/2,Pt=(y+b)/2,bt=(x+E)/2,Nt=(b+z)/2;E=(E+tt)/2,z=(z+ot)/2,b=(yt+bt)/2,x=(Pt+Nt)/2,bt=(bt+E)/2,Nt=(Nt+z)/2;var Qt=(b+bt)/2,Wt=(x+Nt)/2;return De.cs(a,y,yt,Pt,b,x,Qt,Wt,rt,lt,ut,ft)||De.cs(Qt,Wt,bt,Nt,E,z,tt,ot,rt,lt,ut,ft)},ax:function(a,y,x,b,E,z,tt,ot,rt){var lt=(x+E)/2,ut=(b+z)/2;return rt.h((((a+x)/2+lt)/2+(lt+(E+tt)/2)/2)/2,(((y+b)/2+ut)/2+(ut+(z+ot)/2)/2)/2),rt},My:function(a,y,x,b,E,z,tt,ot){var rt=(x+E)/2,lt=(b+z)/2;return zi(((a+x)/2+rt)/2,((y+b)/2+lt)/2,(rt+(E+tt)/2)/2,(lt+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,tt,ot,rt,lt){if(De.Yb(a,y,tt,ot,rt,x,b)&&De.Yb(a,y,tt,ot,rt,E,z))or(lt,a,y,0,0),or(lt,tt,ot,0,0);else{var ut=(a+x)/2,ft=(y+b)/2,yt=(x+E)/2,Pt=(b+z)/2;E=(E+tt)/2,z=(z+ot)/2,b=(ut+yt)/2,x=(ft+Pt)/2,yt=(yt+E)/2,Pt=(Pt+z)/2;var bt=(b+yt)/2,Nt=(x+Pt)/2;De.Dl(a,y,ut,ft,b,x,bt,Nt,rt,lt),De.Dl(bt,Nt,yt,Pt,E,z,tt,ot,rt,lt)}return lt},Qe:function(a,y,x,b,E,z,tt,ot,rt,lt){if(De.Yb(a,y,tt,ot,rt,x,b)&&De.Yb(a,y,tt,ot,rt,E,z))lt.length===0&&(lt.push(a),lt.push(y)),lt.push(tt),lt.push(ot);else{var ut=(a+x)/2,ft=(y+b)/2,yt=(x+E)/2,Pt=(b+z)/2;E=(E+tt)/2,z=(z+ot)/2,b=(ut+yt)/2,x=(ft+Pt)/2,yt=(yt+E)/2,Pt=(Pt+z)/2;var bt=(b+yt)/2,Nt=(x+Pt)/2;De.Qe(a,y,ut,ft,b,x,bt,Nt,rt,lt),De.Qe(bt,Nt,yt,Pt,E,z,tt,ot,rt,lt)}return lt},jv:function(a,y,x,b,E,z,tt,ot,rt,lt){if(De.Yb(a,y,E,z,lt,x,b))return De.Yb(a,y,E,z,lt,ot,rt);var ut=(a+x)/2,ft=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var yt=(ut+x)/2,Pt=(ft+b)/2;return De.jv(a,y,ut,ft,yt,Pt,tt,ot,rt,lt)||De.jv(yt,Pt,x,b,E,z,tt,ot,rt,lt)},OA:function(a,y,x,b,E,z,tt){return tt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),tt},iv:function(a,y,x,b,E,z,tt,ot){if(De.Yb(a,y,E,z,tt,x,b))or(ot,a,y,0,0),or(ot,E,z,0,0);else{var rt=(a+x)/2,lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ut=(rt+x)/2,ft=(lt+b)/2;De.iv(a,y,rt,lt,ut,ft,tt,ot),De.iv(ut,ft,x,b,E,z,tt,ot)}return ot},ep:function(a,y,x,b,E,z,tt,ot){if(De.Yb(a,y,E,z,tt,x,b))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(E),ot.push(z);else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(rt*ft-lt*ut))/yt,Nt=((a*ot-y*tt)*(lt-ft)-(y-ot)*(rt*ft-lt*ut))/yt;if(bt>=ut)return Pt;if((rt>ut?rt-ut:ut-rt)<(lt>ft?lt-ft:ft-lt)){if(y<ot?(rt=y,a=ot):(rt=ot,a=y),Nt<rt||Nt>a)return Pt}else if(a<tt?(rt=a,a=tt):rt=tt,bt<rt||bt>a)return Pt;0<yt?Pt++:0>yt&&Pt--}else{bt=(a+x)/2,Nt=(y+b)/2;var Qt=(x+E)/2,Wt=(b+z)/2;E=(E+tt)/2,z=(z+ot)/2,b=(bt+Qt)/2,x=(Nt+Wt)/2,Qt=(Qt+E)/2,Wt=(Wt+z)/2;var ae=(b+Qt)/2,ue=(x+Wt)/2;Pt+=De.Fo(a,y,bt,Nt,b,x,ae,ue,rt,lt,ut,ft,yt),Pt+=De.Fo(ae,ue,Qt,Wt,E,z,tt,ot,rt,lt,ut,ft,yt)}return Pt},qh:function(a,y,x,b,E,z,tt){return De.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(tt.h(a,x),!1):z>y?(tt.h(a,y),!1):(tt.h(a,z),!0)):De.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(tt.h(b,y),!1):E>a?(tt.h(a,y),!1):(tt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(tt.h(a,y),!1):1.000005<E?(tt.h(x,b),!1):(tt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,tt,ot,rt){return De.B(a,x)&&De.B(y,b)?(rt.h(a,y),!1):De.$(E,tt)?De.$(a,x)?(De.qh(a,y,x,b,E,z,rt),!1):De.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,rt):(ot=(ot-z)/(tt-E),De.$(a,x)?(x=ot*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(rt.h(a,E),!1):x>y?(rt.h(a,y),!1):(rt.h(a,x),!0)):(tt=(b-y)/(x-a),De.$(ot,tt)?(De.qh(a,y,x,b,E,z,rt),!1):(E=(tt*a-ot*E+z-y)/(tt-ot),De.$(tt,0)?(a<x?(b=a,a=x):b=x,E<b?(rt.h(b,y),!1):E>a?(rt.h(a,y),!1):(rt.h(E,y),!0)):De.qh(a,y,x,b,E,tt*(E-a)+y,rt))))},MA:function(a,y,x,b,E){return De.Ve(x.x,x.y,b.x,b.y,a.x,a.y,y.x,y.y,E)},KA:function(a,y,x,b,E,z,tt,ot,rt,lt){function ut(Qt,Wt){var ae=(Qt-a)*(Qt-a)+(Wt-y)*(Wt-y);ae<ft&&(ft=ae,rt.h(Qt,Wt))}var ft=1/0;ut(rt.x,rt.y);var yt=0,Pt=0,bt=0,Nt=0;if(E<tt?(yt=E,Pt=tt):(yt=tt,Pt=E),z<ot?(bt=E,Nt=tt):(bt=tt,Nt=E),yt=(Pt-yt)/2+lt,lt=(Nt-bt)/2+lt,E=(E+tt)/2,z=(z+ot)/2,yt===0||lt===0)return rt;if(.5>(x>a?x-a:a-x)){if(yt=1-(x-E)*(x-E)/(yt*yt),0>yt)return rt;yt=Math.sqrt(yt),b=-lt*yt+z,ut(x,lt*yt+z),ut(x,b)}else{if(x=(b-y)/(x-a),b=1/(yt*yt)+x*x/(lt*lt),ot=2*x*(y-x*a)/(lt*lt)-2*x*z/(lt*lt)-2*E/(yt*yt),yt=ot*ot-4*b*(2*x*a*z/(lt*lt)-2*y*z/(lt*lt)+z*z/(lt*lt)+E*E/(yt*yt)-1+(y-x*a)*(y-x*a)/(lt*lt)),0>yt)return rt;yt=Math.sqrt(yt),lt=(-ot+yt)/(2*b),ut(lt,x*lt-x*a+y),yt=(-ot-yt)/(2*b),ut(yt,x*yt-x*a+y)}return rt},Ff:function(a,y,x,b,E,z,tt,ot,rt){var lt=1e21,ut=a,ft=y;if(De.Ve(a,y,a,b,E,z,tt,ot,rt)){var yt=(rt.x-E)*(rt.x-E)+(rt.y-z)*(rt.y-z);yt<lt&&(lt=yt,ut=rt.x,ft=rt.y)}return De.Ve(x,y,x,b,E,z,tt,ot,rt)&&(yt=(rt.x-E)*(rt.x-E)+(rt.y-z)*(rt.y-z),yt<lt&&(lt=yt,ut=rt.x,ft=rt.y)),De.Ve(a,y,x,y,E,z,tt,ot,rt)&&(y=(rt.x-E)*(rt.x-E)+(rt.y-z)*(rt.y-z),y<lt&&(lt=y,ut=rt.x,ft=rt.y)),De.Ve(a,b,x,b,E,z,tt,ot,rt)&&(a=(rt.x-E)*(rt.x-E)+(rt.y-z)*(rt.y-z),a<lt&&(lt=a,ut=rt.x,ft=rt.y)),rt.h(ut,ft),1e21>lt},us:function(a,y,x){return De.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,b,E,z,tt,ot){var rt=a+x,lt=y+b;return E===tt?(z<ot?(tt=z,z=ot):tt=ot,a<=E&&E<=rt&&tt<=lt&&z>=y):z===ot?(E<tt?(ot=E,E=tt):ot=tt,y<=z&&z<=lt&&ot<=rt&&E>=a):!!(Br(a,y,x,b,E,z)||Br(a,y,x,b,tt,ot)||De.Rl(a,y,rt,y,E,z,tt,ot)||De.Rl(rt,y,rt,lt,E,z,tt,ot)||De.Rl(rt,lt,a,lt,E,z,tt,ot)||De.Rl(a,lt,a,y,E,z,tt,ot))},Rl:function(a,y,x,b,E,z,tt,ot){return a===x&&y===b&&E===tt&&z===ot?a===E&&y===z:0>=De.Fl(a,y,x,b,E,z)*De.Fl(a,y,x,b,tt,ot)&&0>=De.Fl(E,z,tt,ot,a,y)*De.Fl(E,z,tt,ot,x,b)},Fl:function(a,y,x,b,E,z){return x-=a,b-=y,a=E-a,y=z-y,z=a*b-y*x,z===0&&(z=a*x+y*b,0<z&&(z=(a-x)*x+(y-b)*b,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,b,E,z){var tt=Math.PI;z||(b*=tt/180,E*=tt/180);var ot=b>E?-1:1;z=[];var rt=tt/2,lt=b;if(b=Math.min(2*tt,Math.abs(E-b)),1e-5>b)return rt=lt+ot*Math.min(b,rt),ot=a+x*Math.cos(lt),lt=y+x*Math.sin(lt),a+=x*Math.cos(rt),y+=x*Math.sin(rt),x=(ot+a)/2,rt=(lt+y)/2,z.push([ot,lt,x,rt,x,rt,a,y]),z;for(;1e-5<b;)E=lt+ot*Math.min(b,rt),z.push(De.Vy(x,lt,E,a,y)),b-=Math.abs(E-lt),lt=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,tt=a*Math.cos(z),ot=a*Math.sin(z),rt=-ot,lt=tt*tt+rt*rt,ut=lt+tt*tt+rt*ot;return lt=4/3*(Math.sqrt(2*lt*ut)-ut)/(tt*ot-rt*tt),ot=tt-lt*rt,tt=rt+lt*tt,rt=-tt,lt=z+y,z=Math.cos(lt),lt=Math.sin(lt),[b+a*Math.cos(y),E+a*Math.sin(y),b+ot*z-tt*lt,E+ot*lt+tt*z,b+ot*z-rt*lt,E+ot*lt+rt*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,tt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var ot=x;return x+E-a<E/2&&(ot=x+E),a=b,b+z-y<z/2&&(a=b+z),tt.h(ot,a),tt},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var b;do y=x%a,x=b=a,a=y;while(0<y);return b},$y:function(a,y,x,b){var E=0>x,z=0>b;if(a<y)var tt=1,ot=0;else tt=0,ot=1;var rt=tt===0?a:y,lt=tt===0?x:b;return(tt===0?E:z)&&(lt=-lt),tt=ot,x=tt===0?x:b,(tt===0?E:z)&&(x=-x),De.az(rt,tt===0?a:y,lt,x,0,0)},az:function(a,y,x,b,E,z){if(0<b)if(0<x){E=a*a,z=y*y,a*=x;var tt=y*b,ot=-z+tt,rt=-z+Math.sqrt(a*a+tt*tt);y=ot;for(var lt=0;9999999999>lt&&(y=.5*(ot+rt),!(y===ot||y===rt));++lt){var ut=a/(y+E),ft=tt/(y+z);if(ut=ut*ut+ft*ft-1,0<ut)ot=y;else if(0>ut)rt=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 ci,um:new ci,Mf:new ci,Nf:0,vm:100};De.za=De.AA;function Qn(a){po(this),this.l=2,a===void 0&&(a=Qn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Qn.o?this.ee=new xn:(Qn.V===null&&(Qn.V=new xn().freeze()),this.ee=Qn.V),this.aq=this.ee.Ja,this.Ip=new gn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ya,this.gg=Ds,this.Rk=this.Sk=NaN,this.Uf=jn}Qn.prototype.copy=function(){var a=new Qn;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===Qn.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},Qn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Qn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Qn.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},Qn.prototype.ka=function(){if(Object.isFrozen(this)&&xe("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Qn.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},Qn.prototype.Xa=function(a){if(!(a instanceof Qn))return!1;if(this.type!==a.type)return this.type===Qn.j&&a.type===Qn.o?Pc(this,a):a.type===Qn.j&&this.type===Qn.o?Pc(a,this):!1;if(this.type===Qn.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 De.B(this.startX,a.startX)&&De.B(this.startY,a.startY)&&De.B(this.endX,a.endX)&&De.B(this.endY,a.endY)};function Pc(a,y){return a.type!==Qn.j||y.type!==Qn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&De.B(a.startX,y.startX)&&De.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===Er&&De.B(a.endX,y.endX)&&De.B(a.endY,y.endY))))}Qn.ia=function(a){return a.toString()},Qn.prototype.qb=function(a){a.classType===Qn&&(this.type=a)},Qn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Qn.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 Qn.u:var y=new gn(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 Qn.F:if(y=new gn(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 Qn.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()}},Qn.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},Qn.parse=function(a,y){function x(){return Nt>=ce-1?!0:lt[Nt+1].match(Pe)!==null}function b(){return Nt++,lt[Nt]}function E(no){var Xi=parseFloat(b()),qo=parseFloat(b());Qt===Qt.toLowerCase()&&(Xi=ue.x+Xi,qo=ue.y+qo),no.h(Xi,qo)}function z(){return E(ue),ue}function tt(){return E(ae),ae}function ot(){var no=Wt.toLowerCase();return no!=="c"&&no!=="s"&&no!=="q"&&no!=="t"?ue:new Zt(2*ue.x-ae.x,2*ue.y-ae.y)}y===void 0&&(y=!1);var rt=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(rt,"$1 $2"),a=a.replace(rt,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var lt=a.split(" ");for(a=0;a<lt.length;a++){var ut=lt[a];if(ut.match(/(\.[0-9]*)(\.)/gm)!==null){rt=rn();for(var ft="",yt=!1,Pt=0;Pt<ut.length;Pt++){var bt=ut[Pt];bt!=="."||yt?bt==="."?(rt.push(ft),ft="."):ft+=bt:(yt=!0,ft+=bt)}for(rt.push(ft),lt.splice(a,1),ut=0;ut<rt.length;ut++)lt.splice(a+ut,0,rt[ut]);a+=rt.length-1,pn(rt)}}var Nt=-1,Qt="",Wt="";rt=new Zt(0,0);var ae=new Zt(0,0),ue=new Zt(0,0),ce=lt.length;a=k1(null),yt=ft=ut=!1,Pt=!0,bt=null;for(var Pe=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Nt>=ce-1);)if(Wt=Qt,Qt=b(),Qt!=="")switch(Qt.toUpperCase()){case"X":Pt=!0,ft=ut=!1;break;case"M":for(bt=z(),a.mc===null||Pt===!0?(vg(a,bt.x,bt.y,ut,!ft,yt),Pt=!1):a.moveTo(bt.x,bt.y),rt.assign(ue);!x();)bt=z(),a.lineTo(bt.x,bt.y);break;case"L":for(;!x();)bt=z(),a.lineTo(bt.x,bt.y);break;case"H":for(;!x();)ue=new Zt((Qt===Qt.toLowerCase()?ue.x:0)+parseFloat(b()),ue.y),a.lineTo(ue.x,ue.y);break;case"V":for(;!x();)ue=new Zt(ue.x,(Qt===Qt.toLowerCase()?ue.y:0)+parseFloat(b())),a.lineTo(ue.x,ue.y);break;case"C":for(;!x();){bt=new Zt,E(bt);var Je=tt(),ti=z();bd(a,bt.x,bt.y,Je.x,Je.y,ti.x,ti.y)}break;case"S":for(;!x();)bt=ot(),Je=tt(),ti=z(),bd(a,bt.x,bt.y,Je.x,Je.y,ti.x,ti.y);break;case"Q":for(;!x();)bt=tt(),Je=z(),Hm(a,bt.x,bt.y,Je.x,Je.y);break;case"T":for(;!x();)ae=bt=ot(),Je=z(),Hm(a,bt.x,bt.y,Je.x,Je.y);break;case"B":for(;!x();){bt=parseFloat(b()),Je=parseFloat(b()),ti=parseFloat(b());var fi=parseFloat(b()),li=parseFloat(b()),Vn=li,Fn=!1;x()||(Vn=parseFloat(b()),x()||(Fn=parseFloat(b())!==0)),Qt===Qt.toLowerCase()&&(ti+=ue.x,fi+=ue.y),a.arcTo(bt,Je,ti,fi,li,Vn,Fn)}break;case"A":for(;!x();)bt=Math.abs(parseFloat(b())),Je=Math.abs(parseFloat(b())),ti=parseFloat(b()),li=fi=!1,Fn=Vn=0,Vn=b(),Vn.length===1?(fi=!!parseFloat(Vn),li=!!parseFloat(b()),Vn=parseFloat(b())):Vn.length===2?(fi=!!parseFloat(Vn[0]),li=!!parseFloat(Vn[1]),Vn=parseFloat(b())):(fi=!!parseFloat(Vn[0]),li=!!parseFloat(Vn[1]),Vn=parseFloat(Vn.slice(2))),Fn=parseFloat(b()),Qt===Qt.toLowerCase()&&(Vn=ue.x+Vn,Fn=ue.y+Fn),ue.h(Vn,Fn),Px(a,bt,Je,ti,fi,li,Vn,Fn);break;case"Z":wx(a),ue.assign(rt);break;case"F":for(bt="",Je=1;lt[Nt+Je];)if(lt[Nt+Je]==="0")yt=!0,Je++;else if(lt[Nt+Je].match(/[Uu]/)!==null)Je++;else if(lt[Nt+Je].match(Pe)===null)Je++;else{bt=lt[Nt+Je];break}bt.match(/[Mm]/)?ut=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(bt="",Je=1;lt[Nt+Je];)if(lt[Nt+Je].match(/[Ff]/)!==null)Je++;else if(lt[Nt+Je].match(Pe)===null)Je++;else{bt=lt[Nt+Je];break}bt.match(/[Mm]/)?ft=!0:a.mc.isShadowed=!1}if(rt=a.os,Gm=a,y)for(y=rt.figures.iterator;y.next();)y.value.isFilled=!0;return rt},Qn.Ha=function(a,y){for(var x=a.length,b=Zt.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}Zt.free(b)},Qn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Qn.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},Qn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Qn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var tt=b[z];tt._isInvalidBounds=!1,tt.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),rf(this,a,!1),or(a,0,0,0,0),a.freeze()},Qn.prototype.ix=function(){var a=new gn;return rf(this,a,!0),a};function rf(a,y,x){switch(a.type){case Qn.j:case Qn.u:case Qn.F:x?y.h(a.od,a.pd,0,0):or(y,a.od,a.pd,0,0),or(y,a.Dc,a.Ec,0,0);break;case Qn.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):or(y,z.startX,z.startY,0,0);for(var tt=z.segments.s,ot=tt.length,rt=z.startX,lt=z.startY,ut=0;ut<ot;ut++){var ft=tt[ut];switch(ft.type){case Er:case ya:rt=ft.endX,lt=ft.endY,or(y,rt,lt,0,0);break;case ls:De.Dl(rt,lt,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,y),rt=ft.endX,lt=ft.endY;break;case bl:De.iv(rt,lt,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,y),rt=ft.endX,lt=ft.endY;break;case ga:case jl:var yt=ft.type===ga?il(ft,z):Hs(ft,z,rt,lt),Pt=yt.length;if(Pt===0){rt=ft.type===ga?ft.centerX:ft.endX,lt=ft.type===ga?ft.centerY:ft.endY,or(y,rt,lt,0,0);break}ft=null;for(var bt=0;bt<Pt;bt++)ft=yt[bt],De.Dl(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.5,y);ft!==null&&(rt=ft[6],lt=ft[7]);break;default:xe("Unknown Segment type: "+ft.type)}}}break;default:xe("Unknown Geometry type: "+a.type)}}Qn.prototype.normalize=function(){this._isFrozen&&vn(this);var a=this.ix();return this.offset(-a.x,-a.y),new Zt(-a.x,-a.y)},Qn.prototype.offset=function(a,y){return this._isFrozen&&vn(this),this.transform(1,0,0,1,a,y),this},Qn.prototype.scale=function(a,y){return this._isFrozen&&vn(this),this.transform(a,0,0,y,0,0),this},Qn.prototype.rotate=function(a,y,x){this._isFrozen&&vn(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},Lt=Qn.prototype,Lt.transform=function(a,y,x,b,E,z){switch(this.type){case Qn.j:case Qn.u:case Qn.F:var tt=this.od,ot=this.pd;this.od=tt*a+ot*x+E,this.pd=tt*y+ot*b+z,tt=this.Dc,ot=this.Ec,this.Dc=tt*a+ot*x+E,this.Ec=tt*y+ot*b+z;break;case Qn.o:for(var rt=this.figures.s,lt=rt.length,ut=0;ut<lt;ut++){var ft=rt[ut];tt=ft.startX,ot=ft.startY,ft.startX=tt*a+ot*x+E,ft.startY=tt*y+ot*b+z,ft=ft.segments.s;for(var yt=ft.length,Pt=0;Pt<yt;Pt++){var bt=ft[Pt];switch(bt.type){case Er:case ya:tt=bt.endX,ot=bt.endY,bt.endX=tt*a+ot*x+E,bt.endY=tt*y+ot*b+z;break;case ls:tt=bt.point1X,ot=bt.point1Y,bt.point1X=tt*a+ot*x+E,bt.point1Y=tt*y+ot*b+z,tt=bt.point2X,ot=bt.point2Y,bt.point2X=tt*a+ot*x+E,bt.point2Y=tt*y+ot*b+z,tt=bt.endX,ot=bt.endY,bt.endX=tt*a+ot*x+E,bt.endY=tt*y+ot*b+z;break;case bl:tt=bt.point1X,ot=bt.point1Y,bt.point1X=tt*a+ot*x+E,bt.point1Y=tt*y+ot*b+z,tt=bt.endX,ot=bt.endY,bt.endX=tt*a+ot*x+E,bt.endY=tt*y+ot*b+z;break;case ga:tt=bt.centerX,ot=bt.centerY,bt.centerX=tt*a+ot*x+E,bt.centerY=tt*y+ot*b+z,y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),bt.startAngle+=tt),0>a&&(bt.startAngle=180-bt.startAngle,bt.sweepAngle=-bt.sweepAngle),0>b&&(bt.startAngle=-bt.startAngle,bt.sweepAngle=-bt.sweepAngle),bt.radiusX*=Math.sqrt(a*a+x*x),bt.radiusY!==void 0&&(bt.radiusY*=Math.sqrt(y*y+b*b));break;case jl:if(tt=bt.endX,ot=bt.endY,bt.endX=tt*a+ot*x+E,bt.endY=tt*y+ot*b+z,bt.radiusX===0||bt.radiusY===0)break;y!==0&&(tt=180*Math.atan2(y,a)/Math.PI,0>tt&&(tt+=360),bt.xAxisRotation+=tt),0>a&&(bt.xAxisRotation=180-bt.xAxisRotation,bt.isClockwiseArc=!bt.isClockwiseArc),0>b&&(bt.xAxisRotation=-bt.xAxisRotation,bt.isClockwiseArc=!bt.isClockwiseArc),bt.radiusX*=Math.sqrt(a*a+x*x),bt.radiusY*=Math.sqrt(y*y+b*b);break;default:xe("Unknown Segment type: "+bt.type)}}}}return this._isInvalidBounds=!0,this},Lt.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 Qn.j:return De.Yb(x,b,E,z,y,a.x,a.y);case Qn.u:var tt=gn.allocAt(Math.min(x,E)-y,Math.min(b,z)-y,Math.abs(E-x)+2*y,Math.abs(z-b)+2*y);return a=tt.ca(a),gn.free(tt),a;case Qn.F:tt=Math.min(x,E)-y;var ot=Math.min(b,z)-y;return x=(Math.abs(E-x)+2*y)/2,y=(Math.abs(z-b)+2*y)/2,0>=x||0>=y?!1:(tt=a.x-(tt+x),ot=a.y-(ot+y),1>=tt*tt/(x*x)+ot*ot/(y*y));case Qn.o:return Wu(this,a,y,!0,!1);default:return!1}};function Wu(a,y,x,b,E){var z=y.x;y=y.y;for(var tt=a.bounds.x-20,ot=0,rt,lt,ut,ft,yt=a.figures.s,Pt=yt.length,bt=0;bt<Pt;bt++){var Nt=yt[bt],Qt=!Nt.isEvenOdd;if(Nt.isFilled){if(b&&Nt.ca(z,y,x))return!0;var Wt=Nt.segments;rt=Nt.startX,lt=Nt.startY;for(var ae=rt,ue=lt,ce=Wt.s,Pe=0;Pe<=Wt.length;Pe++){var Je=void 0;if(Pe!==Wt.length){Je=ce[Pe];var ti=Je.type;a=Je.endX,ft=Je.endY}else ti=Er,a=ae,ft=ue;switch(ti){case ya:if(ae=Hu(z,y,tt,y,rt,lt,ae,ue),isNaN(ae))return!0;ot+=ae,ae=a,ue=ft;break;case Er:if(rt=Hu(z,y,tt,y,rt,lt,a,ft),isNaN(rt))return!0;ot+=rt;break;case ls:ut=De.Fo(rt,lt,Je.point1X,Je.point1Y,Je.point2X,Je.point2Y,a,ft,tt,y,z,y,.5),ot+=ut;break;case bl:ut=De.Fo(rt,lt,(rt+2*Je.point1X)/3,(lt+2*Je.point1Y)/3,(2*Je.point1X+a)/3,(2*Je.point1Y+ft)/3,a,ft,tt,y,z,y,.5),ot+=ut;break;case ga:case jl:ti=Je.type===ga?il(Je,Nt):Hs(Je,Nt,rt,lt);var fi=ti.length;if(fi===0){if(rt=Hu(z,y,tt,y,rt,lt,Je.type===ga?Je.centerX:Je.endX,Je.type===ga?Je.centerY:Je.endY),isNaN(rt))return!0;ot+=rt;break}Je=null;for(var li=0;li<fi;li++){if(Je=ti[li],li===0){if(ut=Hu(z,y,tt,y,rt,lt,Je[0],Je[1]),isNaN(ut))return!0;ot+=ut}ut=De.Fo(Je[0],Je[1],Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],tt,y,z,y,.5),ot+=ut}Je!==null&&(a=Je[6],ft=Je[7]);break;default:xe("Unknown Segment type: "+Je.type)}rt=a,lt=ft}if(Qt){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(Nt.ca(z,y,E?x:x+2))return!0}return!1}function Hu(a,y,x,b,E,z,tt,ot){if(De.Yb(E,z,tt,ot,.05,a,y))return NaN;var rt=(a-x)*(z-ot);if(rt===0)return 0;var lt=((a*b-y*x)*(E-tt)-(a-x)*(E*ot-z*tt))/rt;if(y=(a*b-y*x)*(z-ot)/rt,lt>=a)return 0;if((E>tt?E-tt:tt-E)<(z>ot?z-ot:ot-z)){if(z<ot){if(y<z||y>ot)return 0}else if(y<ot||y>z)return 0}else if(E<tt){if(lt<E||lt>tt)return 0}else if(lt<tt||lt>E)return 0;return 0<rt?1:-1}function ih(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}Lt.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Zt),this.type===Qn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,ot=0;ot<E;ot++){var rt=b[ot],lt=rt.length;for(a=0;a<lt;a++){var ut=rt[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,x=x[ot],ot=x[2*a],E=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*b,E+(x[2*a+3]-E)*b),y;tt+=ut}}return y},Lt.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Qn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,tt=0;tt<b;tt++){var ot=x[tt],rt=ot.length;for(a=0;a<rt;a++){var lt=ot[a];if(z+lt>=E)return E=y[tt],y=E[2*a],x=E[2*a+1],b=E[2*a+2],a=E[2*a+3],1>Math.abs(b-y)&&1>Math.abs(a-x)?0:1>Math.abs(b-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=b-y?0:180:180*Math.atan2(a-x,b-y)/Math.PI;z+=lt}}return NaN},Lt.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Qn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,tt=0,ot=0;ot<E;ot++){var rt=b[ot],lt=rt.length;for(a=0;a<lt;a++){var ut=rt[a];if(tt+ut>=z)return b=z-tt,b=ut===0?0:b/ut,ut=x[ot],x=ut[2*a],ot=ut[2*a+1],E=ut[2*a+2],a=ut[2*a+3],y[0]=x+(E-x)*b,y[1]=ot+(a-ot)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-ot)?0:1>Math.abs(E-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=E-x?0:180:180*Math.atan2(a-ot,E-x)/Math.PI,y;tt+=ut}}return y},Lt.xx=function(a){if(this.type===Qn.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var tt=x;b=E}else tt=E,b=x;return a<=tt?tt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-tt)}if(x===E)return y<b?tt=y:(tt=b,b=y),z<=tt?tt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-tt);tt=(b-y)*(b-y)+(E-x)*(E-x);var ot=Zt.alloc();return De.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,Zt.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/tt)}}else if(this.type===Qn.u){tt=this.startX,ot=this.startY;var rt=this.endX;if(E=this.endY,tt!==rt||ot!==E){y=rt-tt,x=E-ot,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,tt),rt),a=Math.min(Math.max(a,ot),E),tt=Math.abs(b-tt),rt=Math.abs(b-rt),ot=Math.abs(a-ot),E=Math.abs(a-E);var lt=Math.min(tt,rt,ot,E);if(lt===ot)return b/z;if(lt===rt)return(y+a)/z;if(lt===E)return(2*y+x-b)/z;if(lt===tt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Zt.alloc(),E=1/0,ot=tt=0,rt=y.length;for(var ut=lt=0,ft=0;ft<rt;ft++)for(var yt=y[ft],Pt=x[ft],bt=yt.length,Nt=0;Nt<bt;Nt+=2){var Qt=yt[Nt],Wt=yt[Nt+1];if(Nt!==0){De.qh(lt,ut,Qt,Wt,a.x,a.y,b);var ae=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);ae<E&&(E=ae,tt=ot,tt+=Math.sqrt((b.x-lt)*(b.x-lt)+(b.y-ut)*(b.y-ut))),ot+=Pt[(Nt-2)/2]}lt=Qt,ut=Wt}return Zt.free(b),a=tt/z,0>a?0:1<a?1:a}return 0};function Cc(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Qn.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===Qn.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===Qn.F){var z=new Ga;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var tt=new Uo(ga);if(tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(a.startX+a.endX)/2,tt.centerY=(a.startY+a.endY)/2,tt.radiusX=Math.abs(a.startX-a.endX)/2,tt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(tt),a=il(tt,z),E=a.length,E===0)b.push(tt.centerX),b.push(tt.centerY);else{tt=z.startX,z=z.startY;for(var ot=0;ot<E;ot++){var rt=a[ot];De.Qe(tt,z,rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],.5,b),tt=rt[6],z=rt[7]}}y.push(b),x.push(fd(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),tt=E.startX,z=E.startY,ot=tt,rt=z;for(var lt=E.segments.s,ut=lt.length,ft=0;ft<ut;ft++){var yt=lt[ft];switch(yt.type){case ya:4<=b.length&&(y.push(b),x.push(fd(b))),b=[],b.push(yt.endX),b.push(yt.endY),tt=yt.endX,z=yt.endY,ot=tt,rt=z;break;case Er:b.push(yt.endX),b.push(yt.endY),tt=yt.endX,z=yt.endY;break;case ls:De.Qe(tt,z,yt.point1X,yt.point1Y,yt.point2X,yt.point2Y,yt.endX,yt.endY,.5,b),tt=yt.endX,z=yt.endY;break;case bl:De.ep(tt,z,yt.point1X,yt.point1Y,yt.endX,yt.endY,.5,b),tt=yt.endX,z=yt.endY;break;case ga:var Pt=il(yt,E),bt=Pt.length;if(bt===0){b.push(yt.centerX),b.push(yt.centerY),tt=yt.centerX,z=yt.centerY;break}for(var Nt=0;Nt<bt;Nt++){var Qt=Pt[Nt];De.Qe(tt,z,Qt[2],Qt[3],Qt[4],Qt[5],Qt[6],Qt[7],.5,b),tt=Qt[6],z=Qt[7]}break;case jl:if(Pt=Hs(yt,E,tt,z),bt=Pt.length,Nt=yt.endX,Qt=yt.endY,bt===0){b.push(Nt),b.push(Qt),tt=Nt,z=Qt;break}for(Nt=0;Nt<bt;Nt++)Qt=Pt[Nt],De.Qe(tt,z,Qt[2],Qt[3],Qt[4],Qt[5],Qt[6],Qt[7],.5,b),tt=Qt[6],z=Qt[7];break;default:xe("Segment not of valid type: "+yt.type)}yt.isClosed&&(b.push(ot),b.push(rt))}4<=b.length&&(y.push(b),x.push(fd(b)))}}}function fd(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var tt=a[z],ot=a[z+1];z!==0&&y.push(Math.sqrt(Ki(x,b,tt,ot))),x=tt,b=ot}return y}Lt.add=function(a){return this.ee.add(a),this},Lt.pm=function(a,y,x,b,E,z,tt,ot){return this._isFrozen&&vn(this),this.fg=new yi(a,y,E,z).freeze(),this.gg=new yi(x,b,tt,ot).freeze(),this},_t.Object.defineProperties(Qn.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 Cc(this),this.tk}},flattenedLengths:{get:function(){return Cc(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Qn.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===Qn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,tt=0;tt<z;tt++)a+=E[tt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&vn(this,a),this.na=a,a===Qn.o?this.ee=new xn:(Qn.V===null&&(Qn.V=new xn().freeze()),this.ee=Qn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&vn(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&vn(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&vn(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&vn(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&vn(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&vn(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&vn(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&vn(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Qn.prototype.setSpots=Qn.prototype.pm,Qn.prototype.add=Qn.prototype.add,Qn.prototype.getFractionForPoint=Qn.prototype.xx,Qn.prototype.getPointAndAngleAlongPath=Qn.prototype.Qu,Qn.prototype.getAngleAlongPath=Qn.prototype.wx,Qn.prototype.getPointAlongPath=Qn.prototype.Pu,Qn.prototype.containsPoint=Qn.prototype.ca,Qn.prototype.transform=Qn.prototype.transform,Qn.prototype.rotate=Qn.prototype.rotate,Qn.prototype.scale=Qn.prototype.scale,Qn.prototype.offset=Qn.prototype.offset,Qn.prototype.normalize=Qn.prototype.normalize,Qn.prototype.computeBoundsWithoutOrigin=Qn.prototype.ix,Qn.prototype.equalsApprox=Qn.prototype.Xa,Qn.className="Geometry",Qn.j=new Be(Qn,"Line",0),Qn.u=new Be(Qn,"Rectangle",1),Qn.F=new Be(Qn,"Ellipse",2),Qn.o=new Be(Qn,"Path",3),Qn.V=null,Qn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Qn.className="Geometry",Qn.stringify=Qn.ia,Qn.fillPath=Qn.nb,Qn.parse=Qn.parse,Qn.Line=Qn.j,Qn.Rectangle=Qn.u,Qn.Ellipse=Qn.F,Qn.Path=Qn.o;function Ga(a,y,x,b,E){po(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 xn,this.sr=this.pl.Ja,this.fw=null}Ga.prototype.copy=function(){var a=new Ga;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},Lt=Ga.prototype,Lt.Xa=function(a){if(!(a instanceof Ga&&De.B(this.startX,a.startX)&&De.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},Lt.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},Lt.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},Lt.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},Lt.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},Lt.add=function(a){return this.pl.add(a),this},Lt.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,tt=E,ot=this.segments.s,rt=ot.length,lt=0;lt<rt;lt++){var ut=ot[lt];switch(ut.type){case ya:z=ut.endX,tt=ut.endY,b=ut.endX,E=ut.endY;break;case Er:if(De.Yb(b,E,ut.endX,ut.endY,x,a,y))return!0;b=ut.endX,E=ut.endY;break;case ls:if(De.cs(b,E,ut.point1X,ut.point1Y,ut.point2X,ut.point2Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case bl:if(De.jv(b,E,ut.point1X,ut.point1Y,ut.endX,ut.endY,.5,a,y,x))return!0;b=ut.endX,E=ut.endY;break;case ga:case jl:var ft=ut.type===ga?il(ut,this):Hs(ut,this,b,E),yt=ft.length,Pt=ut.type===ga?ut.centerX:ut.endX,bt=ut.type===ga?ut.centerY:ut.endY;if(yt===0){if(De.Yb(b,E,Pt,bt,x,a,y))return!0;b=Pt,E=bt;break}for(Pt=null,bt=0;bt<yt;bt++)if(Pt=ft[bt],bt===0&&De.Yb(b,E,Pt[0],Pt[1],x,a,y)||De.cs(Pt[0],Pt[1],Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7],.5,a,y,x))return!0;Pt!==null&&(b=Pt[6],E=Pt[7]);break;default:xe("Unknown Segment type: "+ut.type)}if(ut.isClosed&&(b!==z||E!==tt)&&De.Yb(b,E,z,tt,x,a,y))return!0}return!1},_t.Object.defineProperties(Ga.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&&vn(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&vn(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&vn(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&vn(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&vn(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&vn(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Ga.prototype.add=Ga.prototype.add,Ga.prototype.equalsApprox=Ga.prototype.Xa,Ga.className="PathFigure";function Uo(a,y,x,b,E,z,tt,ot){po(this),a===void 0&&(a=Er),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,b===void 0&&(b=0),E===void 0&&(E=0),z===void 0&&(z=0),tt===void 0&&(tt=0),a===jl?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(b,0),this.Pg=Math.max(E,0),typeof tt=="boolean"?tt&&(this.isLargeArc=!0):typeof tt=="number"&&tt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===ga&&(z=Math.max(z,0)),this.Wh=z,typeof tt=="number"?(a===ga&&(tt=Math.max(tt,0)),this.Pg=tt):this.Pg=0),this.ae=null}Uo.prototype.copy=function(){var a=new Uo;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},Lt=Uo.prototype,Lt.Xa=function(a){if(!(a instanceof Uo)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ya:case Er:return De.B(this.endX,a.endX)&&De.B(this.endY,a.endY);case ls:return De.B(this.endX,a.endX)&&De.B(this.endY,a.endY)&&De.B(this.point1X,a.point1X)&&De.B(this.point1Y,a.point1Y)&&De.B(this.point2X,a.point2X)&&De.B(this.point2Y,a.point2Y);case bl:return De.B(this.endX,a.endX)&&De.B(this.endY,a.endY)&&De.B(this.point1X,a.point1X)&&De.B(this.point1Y,a.point1Y);case ga:return De.B(this.startAngle,a.startAngle)&&De.B(this.sweepAngle,a.sweepAngle)&&De.B(this.centerX,a.centerX)&&De.B(this.centerY,a.centerY)&&De.B(this.radiusX,a.radiusX)&&De.B(this.radiusY,a.radiusY);case jl:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&De.B(this.xAxisRotation,a.xAxisRotation)&&De.B(this.endX,a.endX)&&De.B(this.endY,a.endY)&&De.B(this.radiusX,a.radiusX)&&De.B(this.radiusY,a.radiusY);default:return!1}},Lt.qb=function(a){a.classType===Uo&&(this.type=a)},Lt.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ya:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Er:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ls: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 bl: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 ga: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 jl: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":"")},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.close=function(){return this.isClosed=!0,this};function il(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=De.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var tt=mo.alloc();tt.reset(),x<b?tt.scale(1,b/x):tt.scale(x/b,1),Qn.Ha(z,tt),mo.free(tt)}for(x=z.length,b=0;b<x;b++)tt=z[b],tt[0]+=y,tt[1]+=E,tt[2]+=y,tt[3]+=E,tt[4]+=y,tt[5]+=E,tt[6]+=y,tt[7]+=E;return a.ae=z,a.ae}function Hs(a,y,x,b){function E(Nt,Qt,Wt,ae){return(Nt*ae<Qt*Wt?-1:1)*Math.acos((Nt*Wt+Qt*ae)/(Math.sqrt(Nt*Nt+Qt*Qt)*Math.sqrt(Wt*Wt+ae*ae)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var tt=Math.PI/180*a.Ne,ot=a.isLargeArc,rt=a.isClockwiseArc,lt=a.Dc,ut=a.Ec,ft=Math.cos(tt),yt=Math.sin(tt),Pt=ft*(x-lt)/2+yt*(b-ut)/2;tt=-yt*(x-lt)/2+ft*(b-ut)/2;var bt=Pt*Pt/(y*y)+tt*tt/(z*z);return 1<bt&&(y*=Math.sqrt(bt),z*=Math.sqrt(bt)),bt=(ot===rt?-1:1)*Math.sqrt((y*y*z*z-y*y*tt*tt-z*z*Pt*Pt)/(y*y*tt*tt+z*z*Pt*Pt)),isNaN(bt)&&(bt=0),ot=bt*y*tt/z,bt=bt*-z*Pt/y,isNaN(ot)&&(ot=0),isNaN(bt)&&(bt=0),x=(x+lt)/2+ft*ot-yt*bt,b=(b+ut)/2+yt*ot+ft*bt,ut=E(1,0,(Pt-ot)/y,(tt-bt)/z),ft=(Pt-ot)/y,lt=(tt-bt)/z,Pt=(-Pt-ot)/y,ot=(-tt-bt)/z,tt=E(ft,lt,Pt,ot),Pt=(ft*Pt+lt*ot)/(Math.sqrt(ft*ft+lt*lt)*Math.sqrt(Pt*Pt+ot*ot)),-1>=Pt?tt=Math.PI:1<=Pt&&(tt=0),!rt&&0<tt&&(tt-=2*Math.PI),rt&&0>tt&&(tt+=2*Math.PI),rt=y>z?1:y/z,Pt=y>z?z/y:1,y=De.jx(0,0,y>z?y:z,ut,ut+tt,!0),z=mo.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(rt,Pt),Qn.Ha(y,z),mo.free(z),a.ae=y,a.ae}_t.Object.defineProperties(Uo.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&&vn(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&vn(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&vn(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&vn(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&vn(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&vn(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&vn(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&vn(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&vn(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Wn(a,">= zero",Uo,"radiusX"),this._isFrozen&&vn(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Wn(a,">= zero",Uo,"radiusY"),this._isFrozen&&vn(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&vn(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&&vn(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&&vn(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&&vn(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&&vn(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),Uo.prototype.equalsApprox=Uo.prototype.Xa;var ya=new Be(Uo,"Move",0),Er=new Be(Uo,"Line",1),ls=new Be(Uo,"Bezier",2),bl=new Be(Uo,"QuadraticBezier",3),ga=new Be(Uo,"Arc",4),jl=new Be(Uo,"SvgArc",4);Uo.className="PathSegment",Uo.Move=ya,Uo.Line=Er,Uo.Bezier=ls,Uo.QuadraticBezier=bl,Uo.Arc=ga,Uo.SvgArc=jl;function ws(){this.H=null,this.xu=new Zt(0,0).freeze(),this.mt=new Zt(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}ws.prototype.copy=function(){var a=new ws;return this.clone(a)},ws.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},ws.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},ws.prototype.So=function(a,y){var x=this.diagram;return x===null||Bc(x,a,y),y},ws.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(Bc(x,a,y),y.assign(x.Ps(y))),y},_t.Object.defineProperties(ws.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}}}),ws.prototype.getMultiTouchDocumentPoint=ws.prototype.Bz,ws.prototype.getMultiTouchViewPoint=ws.prototype.So,ws.className="InputEvent";function Vh(){this.H=null,this.xa="",this.ar=this.Lr=null}Vh.prototype.copy=function(){var a=new Vh;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Vh.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},_t.Object.defineProperties(Vh.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}}}),Vh.className="DiagramEvent";function Gr(){this.Fm=Zr,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=We(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=We(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=We(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=We(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===ol?a+"* ":this.change===Zr?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===ol?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=kn(this.object)),this.oldValue!==null&&(a+=" old: "+kn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+kn(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))},_t.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===ol&&(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 ol=new Be(Gr,"Transaction",-1),Zr=new Be(Gr,"Property",0),da=new Be(Gr,"Insert",1),Ba=new Be(Gr,"Remove",2);Gr.className="ChangedEvent",Gr.Transaction=ol,Gr.Property=Zr,Gr.Insert=da,Gr.Remove=Ba;function Ja(){this.o=new xn().freeze(),this.xa="",this.j=!1}Ja.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},Ja.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()},Ja.prototype.canUndo=function(){return this.isComplete},Ja.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()}},Ja.prototype.canRedo=function(){return this.isComplete},Ja.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()}},Ja.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new si,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Zr&&b.object){var E=y.get(b.object);E||(E=new si,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()}},_t.Object.defineProperties(Ja.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}}}),Ja.prototype.optimize=Ja.prototype.ak,Ja.prototype.redo=Ja.prototype.redo,Ja.prototype.canRedo=Ja.prototype.canRedo,Ja.prototype.undo=Ja.prototype.undo,Ja.prototype.canUndo=Ja.prototype.canUndo,Ja.prototype.clear=Ja.prototype.clear,Ja.className="Transaction";function Ur(){this.Pt=new Ln,this.Jd=!1,this.u=new xn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new xn().freeze(),this.hl=new xn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Ur.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},Ur.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},Ur.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Lt=Ur.prototype,Lt.Xw=function(a){this.Pt.add(a)},Lt.Rx=function(a){this.Pt.remove(a)},Lt.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},Lt.eb=function(a){return a===void 0&&(a=""),Uh(this,!0,a)},Lt.Kf=function(){return Uh(this,!1,"")};function Uh(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&qn("Ending transaction without having started a transaction: "+x);var b=a.transactionLevel===1,E=a.currentTransaction;b&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,E));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var tt=a.Ie.count;0<tt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(tt-1),a.Ie.freeze()),tt=a.hl.count,0<tt&&(z=a.hl.M(tt-1),a.hl.mb(tt-1))}if(b){if(y)a.rq=!1,E===null&&x!==""&&(E=a.currentTransaction),a.isEnabled&&E!==null&&(E.isComplete||(E.isComplete=!0,E.name=x),a.lx(),y=a.history,y.ka(),b=a.maxHistoryLength,0<=b&&(b===0?y.clear():y.count>=b&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),b===0||y.count!==0&&y.get(y.count-1)===E||(y.add(E),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,E);else{a.Fe=!0;try{a.isEnabled&&E!==null&&(E.isComplete=!0,E.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,E),a.Fe=!1}E!==null&&E.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&E!==null){for(a=z,x=E.changes,E=x.count-1;E>=a;E--)y=x.M(E),y!==null&&y.undo(),x.ka(),x.mb(E);x.freeze()}return!1}Lt.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()}},Ur.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Ur.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){qn("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Ur.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Ur.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){qn("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Ur.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Gr;for(b.change=ol,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},Ur.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new Ja);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||qn("Change not within a transaction: "+x.toString()))}},Ur.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},_t.Object.defineProperties(Ur.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}}}),Ur.prototype.handleChanged=Ur.prototype.Tu,Ur.prototype.redo=Ur.prototype.redo,Ur.prototype.undo=Ur.prototype.undo,Ur.prototype.canUndo=Ur.prototype.canUndo,Ur.prototype.discardHistoryAfterIndex=Ur.prototype.lx,Ur.prototype.rollbackTransaction=Ur.prototype.Kf,Ur.prototype.commitTransaction=Ur.prototype.eb,Ur.prototype.startTransaction=Ur.prototype.Ea,Ur.prototype.removeModel=Ur.prototype.Rx,Ur.prototype.addModel=Ur.prototype.Xw,Ur.prototype.clear=Ur.prototype.clear,Ur.className="UndoManager";function Ko(){po(this),this.H=Uu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new ws,this.Zr=-1}Ko.prototype.toString=function(){return this.name!==""?this.name+" Tool":Cn(this.constructor)},Ko.prototype.updateAdornments=function(){},Ko.prototype.canStart=function(){return this.isEnabled},Ko.prototype.doStart=function(){},Ko.prototype.doActivate=function(){this.isActive=!0},Ko.prototype.doDeactivate=function(){this.isActive=!1},Ko.prototype.doStop=function(){},Ko.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},Ko.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},Ko.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},Ko.prototype.doMouseMove=function(){},Ko.prototype.doMouseUp=function(){this.stopTool()},Ko.prototype.doMouseWheel=function(){},Ko.prototype.canStartMultiTouch=function(){return!0},Ko.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Zt.allocAt(NaN,NaN)),b=y.So(1,Zt.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}Zt.free(x),Zt.free(b)},Ko.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Zt.allocAt(NaN,NaN)),b=y.So(1,Zt.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 Zt((Math.min(b.x,x.x)+Math.max(b.x,x.x))/2,(Math.min(b.y,x.y)+Math.max(b.y,x.y))/2),z*=a.Bw;var tt=a.commandHandler;if(z!==a.scale&&tt.canResetZoom(z)){var ot=a.zoomPoint;a.zoomPoint=E,tt.resetZoom(z),a.zoomPoint=ot}y.bubbles=!1}Zt.free(x),Zt.free(b)},Ko.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},Ko.prototype.doKeyUp=function(){},Ko.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},Ko.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},Ko.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Wi?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||(Wi?y.meta:y.control)||y.shift||a.clearSelection()}},Ko.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,Gf(a,b,x),b.handled};function Gf(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)}}}Ko.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var b=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(b=null),y.targetObject=b;var E=!1;if(b!==a.Ck){var z=a.Ck,tt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var ot=z.mouseLeave;if(ot!==null&&(b===z||b!==null&&b.rg(z)||(ot(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=tt,y.handled=!1;b!==null&&(tt=b.mouseEnter,!(tt!==null&&(z===b||z!==null&&z.rg(b)||(tt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,tt="";z!==null&&(tt=z.cursor,tt==="");)z=z.panel;for(a.currentCursor=tt,y.handled=!1,z=b;z!==null&&(b=z.mouseOver,!(b!==null&&(b(y,z),E=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),b=a.mouseOver,b!==null&&(b(y),E=!0);E&&a.$b(),a.skipsUndoManager=x}},Ko.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},Ko.prototype.doCurrentObjectChanged=function(){},Ko.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===Kd&&!y.shift||E===Zd&&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===Kd&&y.shift||E===Zd&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var tt=z.deltaX;z=z.deltaY;var ot="pixel";if(tt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(ot,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(ot,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:ot="pixel";break;case 1:ot="line";break;case 2:ot="page"}tt!==0&&a.allowHorizontalScroll&&(tt*=a.scrollHorizontalLineChange/16,a.scroll(ot,0<tt?"right":"left",Math.abs(tt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(ot,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},Ko.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},Ko.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=zn(function(){x.doWaitAfter(b)},a)},Ko.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Yt.clearTimeout(this.Zr),this.Zr=-1},Ko.prototype.doWaitAfter=function(){},Ko.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof Xo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},Ko.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},_t.Object.defineProperties(Ko.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof Xe&&(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}}}),Ko.prototype.startTransaction=Ko.prototype.Ea,Ko.className="Tool";function zr(){Ko.call(this),this.name="ToolManager",this.hb=new xn,this.ob=new xn,this.Hb=new xn,this.F=this.V=850,this.o=new Yn(2,2).ja(),this.Ha=5e3,this.ia=Zd,this.u=bc,this.Mp=this.j=null,this.zj=-1}he(zr,Ko),zr.prototype.initializeStandardTools=function(){},zr.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof Xo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},zr.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===yh&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Yh){y.bubbles=!0;return}if(this.gestureBehavior===yh)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===Zd?this.mouseWheelBehavior=Kd:this.mouseWheelBehavior===Kd&&(this.mouseWheelBehavior=Zd)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},zr.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Yh){y.bubbles=!0;return}if(this.gestureBehavior===yh)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}}Zf(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Zf(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}zr.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof Xo&&(y===a||y.rg(a))||this.hideToolTip()},zr.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()))},zr.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)},zr.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 Xo)||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()},zr.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof Xo){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 So&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Yt.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=zn(function(){E.hideToolTip()},a)}},zr.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}},zr.prototype.hideToolTip=function(){this.zj!==-1&&(Yt.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof Xo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof So&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},zr.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()},zr.prototype.doMouseWheel=function(){this.standardMouseWheel()},zr.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},zr.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},zr.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},zr.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},zr.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)},_t.Object.defineProperties(zr.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 Xo?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}}}),zr.prototype.replaceStandardTool=zr.prototype.gb;var Zd=new Be(zr,"WheelScroll",0),Kd=new Be(zr,"WheelZoom",1),Kf=new Be(zr,"WheelNone",2),bc=new Be(zr,"GestureZoom",3),yh=new Be(zr,"GestureCancel",4),Yh=new Be(zr,"GestureNone",5);zr.className="ToolManager",zr.WheelScroll=Zd,zr.WheelZoom=Kd,zr.WheelNone=Kf,zr.GestureZoom=bc,zr.GestureCancel=yh,zr.GestureNone=Yh;function Yr(){Ko.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 Zt(NaN,NaN),this.Fr=new Zt,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ln().freeze(),this.ia=new at,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Gu;he(Yr,Ko),Yr.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},Yr.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},Yr.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,(Wi?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Yr.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),Ke=null,this.isActive=!0,this.tl.set(a.position),af(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&&As(a),Qf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Ke=this,dn=this.diagram,this.doSimulatedDragOut()))};function af(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof Un?(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 mi,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Yr.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Yr.prototype.Pd=function(a){return a===void 0?new qh(Co):this.isGridSnapEnabled?new qh(new Zt(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new qh(a.copy())},Yr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),Xh(this),Xd(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Gu.count){for(var y=Gu,x=y.length,b=0;b<x;b++){var E=y.M(b);Sh(E),fu(E),Xh(E),E.diagram.ug()}y.clear()}Sh(this),this.tl.h(NaN,NaN),dn!==null&&(dn.currentCursor=""),Ke=dn=null,fu(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Vd(a,!0)},Yr.prototype.stopTransaction=function(){var a=this.diagram,y=Ko.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function Xh(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,sf(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Vf(){var a=Ke;fu(a),xh(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Yr.prototype.doCancel=function(){fu(this),xh(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Yr.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Yr.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function Zu(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")):xh(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 si,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 Un&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,af(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ad(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function fu(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 Un&&(x.value.point=new Zt(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Sh(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 Eu(a,y,x){var b=a.diagram,E=a.startPoint,z=Zt.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Zt.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(As(b),b.hk())}Yr.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&rh(b,a,y,this.dragOptions,x)};function xh(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 Un&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Ad(b,-E.x,-E.y)}y.bd()}}function Ec(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),fl(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,tt=!1;try{if(x.skipsUndoManager=!0,tt=sf(a,E,b),!a.isActive&&Ke===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof oo)){var rt=x.mouseDragOver;rt!==null&&(rt(E),tt=!0)}if(!a.isActive&&Ke===null||(a.doDragOver(y,b),!a.isActive&&Ke===null))return}finally{x.skipsUndoManager=z,tt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Yr.prototype.findDragOverObject=function(a){var y=this;return Au(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof Xo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Yr.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 sf(a,y,x){var b=!1,E=a.Cg.length,z=0<E?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var tt=0;tt<E;tt++){var ot=a.Cg[tt],rt=ot.mouseDragLeave;if(rt!==null&&(rt(y,ot,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Ke===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=lf(E);for(E=a.Cg.length,x=0;x<E&&(tt=a.Cg[x],ot=tt.mouseDragEnter,ot===null||(ot(y,tt,z),b=!0,!y.handled));x++);return b}function lf(a){var y=a.panel;return y!==null?y:a instanceof Mi&&!(a instanceof oo)&&(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(lt){return b.findValidLinkablePort(lt,x)});a=Zt.alloc();var z=1/0,tt=null;for(E=E.iterator;E.next();){var ot=E.value;if(ot.part!==null){var rt=ot.ga(jo,a);rt=y.Bf(rt),rt<z&&(tt=ot,z=rt)}}return Zt.free(a),tt}function fl(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var b=a.diagram;if(!b.isReadOnly){var E=a.Oe;if(E!==null){var z=null,tt=null;x.fromNode===null&&(z=Uf(a,x.i(0),!1),z!==null&&(tt=z.part));var ot=null,rt=null;x.toNode===null&&(ot=Uf(a,x.i(x.pointsCount-1),!0),ot!==null&&(rt=ot.part)),E.isValidLink(tt,z,rt,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=tt,z!==null&&(x.fromPortId=z.portId),x.toNode=rt,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):io(E,tt,z,rt,ot):io(E,null,null,null,null)}}}}Yr.prototype.doDragOver=function(){};function wh(a,y){var x=a.diagram;a.dragsLink&&fl(a,!0),Xh(a);var b=a.findDragOverObject(y),E=x.lastInput;if(E.targetObject=b,b!==null){E.handled=!1;for(var z=b;z!==null;){var tt=z.mouseDrop;if(tt!==null&&(tt(E,z),E.handled))break;Kg(a,E,z),z=lf(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Ke!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof ii&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Ke!==null){for(a=gn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof ii&&ne(x,b,a);gn.free(a)}}}function Kg(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof oo||(x=a.mouseDrop,x!==null&&x(y))}function ne(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 Un},!0,function(E){return E instanceof Un},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Yr.prototype.doDropOnto=function(){},Yr.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()?(Zu(this,!1),Qf(a,this.copiedParts),Eu(this,this.copiedParts,!1),Xd(a,this.copiedParts)):this.mayMove()?(fu(this),Eu(this,this.draggedParts,!0)):this.mayDragOut()?(Zu(this,!1),Eu(this,this.copiedParts,!1)):fu(this),Ec(this,a.lastInput.documentPoint))}},Yr.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?(fu(this),Zu(this,!0),Qf(a,this.copiedParts),Eu(this,this.copiedParts,!1),Xd(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,fu(this),this.mayMove()&&(Eu(this,this.draggedParts,!0),Ec(this,a.lastInput.documentPoint))),this.Ym=!0,wh(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&se(this),a.Ya(),Xd(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Yr.prototype.simulatedMouseMove=function(a,y,x){if(Ke===null)return!1;var b=Ke.diagram;x instanceof Xe||(x=null);var E=dn;return x!==E&&(E!==null&&E!==b&&(E.ug(),Ke.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),dn=x,x!==null&&x!==b&&(Vf(),E=x.toolManager.findTool("Dragging"),E!==null&&(Gu.contains(E)||Gu.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)},Yr.prototype.simulatedMouseUp=function(a,y,x){if(Ke===null)return!1;var b=dn,E=Ke.diagram;if(x===null)return Ke.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Ke.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;dn=x,b=x.toolManager.findTool("Dragging"),b!==null&&(Vf(),Gu.contains(b)||Gu.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 Zt),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=Ke,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function se(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof ii&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Yr.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Wi?!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())},Yr.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())},Yr.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())},Yr.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Yr.prototype.Az=function(){return Ke},Yr.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Ke;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Yr.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),rl(a),a.animationManager.Cc(),a=Ke,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Yr.prototype.doSimulatedDragLeave=function(){var a=Ke;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Yr.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Ke;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;He(this,y.draggedParts.Lf(),!1,a.firstInput),Eu(this,this.copiedParts,!1),Ec(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Yr.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Ke;if(y!==null){var x=y.diagram;if(y.Ym=!0,fu(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),He(this,y.draggedParts.Lf(),!0,a.lastInput),Eu(this,this.copiedParts,!1);var b=new Ln;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),wh(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 He(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=gn.alloc();E=b=1/0;for(var tt=-1/0,ot=-1/0,rt=y.iterator;rt.next();){var lt=rt.value;if(lt.isVisible()){var ut=lt.location;lt=ut.x,ut=ut.y,isNaN(lt)||isNaN(ut)||(lt<b&&(b=lt),ut<E&&(E=ut),lt>tt&&(tt=lt),ut>ot&&(ot=ut))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,tt-b,ot-E),b=z.x+z.width/2,E=z.y+z.height/2,gn.free(z),z=a.Fr,tt=new si,ot=Zt.alloc(),rt=y.iterator;rt.next();)lt=rt.value,lt instanceof Un&<.canCopy()&&(ut=x.I(lt),ut!==null&&(ut.points=lt.points,Ad(ut,z.x-b,z.y-E),ut.suspendsRouting=!0,tt.add(ut,a.Pd())));for(y=y.iterator;y.next();)lt=y.value,lt.Zc()&<.canCopy()&&(rt=x.I(lt),rt!==null&&(lt=lt.location,ot.h(z.x-(b-lt.x),z.y-(E-lt.y)),rt.location=ot,rt.Va(),tt.add(rt,a.Pd(ot))));Zt.free(ot),a.copiedParts=tt,af(a,tt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ad(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Yr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Yr.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Zt},_t.Object.defineProperties(Yr.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}}}),Yr.prototype.getDraggingSource=Yr.prototype.Az;var Ke=null,dn=null;Yr.className="DraggingTool",Gu=new xn,wn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),zr.prototype.doCancel=function(){Ke!==null&&Ke.doCancel(),Ko.prototype.doCancel.call(this)};function nn(){Ko.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Un,y=new fo;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new fo,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new ii,y=new fo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=wr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new ii,y=new fo,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=wr,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 si,this.Of=this.gj=this.Pf=null}he(nn,Ko),nn.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},nn.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),tt=Yn.alloc();tt.width=y.naturalBounds.width*z,tt.height=y.naturalBounds.height*z,b.desiredSize=tt,Yn.free(tt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=jo,z=Zt.alloc(),x.location=y.ga(jo,z),Zt.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},nn.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=wr,y.fromSpot=la,y.toSpot=la),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},nn.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},nn.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof ii){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)}},nn.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof ii))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof ii)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},nn.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(ft){return E.findValidLinkablePort(ft,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var tt=z.value,ot=tt.part;if(ot instanceof ii){var rt=tt.ga(jo,Zt.alloc()),lt=x.x-rt.x,ut=x.y-rt.y;Zt.free(rt),rt=lt*lt+ut*ut,rt<b&&(lt=this.validPortsCache.I(tt),lt!==null?lt&&(y=tt,b=rt):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ot,tt)||!a&&this.isValidLink(ot,tt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(tt,!0),y=tt,b=rt):this.validPortsCache.add(tt,!1))}}return y!==null&&(x=y.part,x instanceof ii&&(x.layer===null||x.layer.allowLink))?y:null},nn.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},nn.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},nn.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},nn.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof ii))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof ii))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},nn.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)},nn.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var b=new Ln;return b.add(a),Tn(this,x,y,b)};function Tn(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),Tn(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),Tn(a,y.labeledLink,x,b))))}nn.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!==pf){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!On(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!On(this,a,y,x,!0)}if(b===ep)return a===y?a=!0:(b=new Ln,b.add(y),a=Bn(this,b,a,y,x)),!a;if(b===np)return!On(this,a,y,x,!1);if(b===ip)return a===y?a=!0:(b=new Ln,b.add(y),a=$n(this,b,a,y,x)),!a}return!0};function On(a,y,x,b,E){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var tt=z.value;if(tt!==b&&(!E||tt.isTreeLink)&&tt.toNode===y&&(tt=tt.fromNode,tt!==y&&On(a,tt,x,b,E)))return!0}return!1}function Bn(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E&&tt.toNode===x&&(tt=tt.fromNode,tt!==x&&Bn(a,y,tt,b,E)))return!0}return!1}function $n(a,y,x,b,E){if(x===b)return!0;if(x===null||b===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var tt=z.value;if(tt!==E){var ot=tt.fromNode;if(tt=tt.toNode,ot=ot===x?tt:ot,ot!==x&&$n(a,y,ot,b,E))return!0}}return!1}_t.Object.defineProperties(nn.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}}}),nn.className="LinkingBaseTool";function oi(){nn.call(this),this.name="Linking",this.V={},this.F=null,this.K=ni,this.Xd=null}he(oi,nn),oi.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},oi.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 ii)))return null;var x=this.direction;if(x===ni||x===Di){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===ni||x===Ai)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},oi.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 ii&&(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 ii&&(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)},oi.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()},oi.prototype.doStop=function(){nn.prototype.doStop.call(this),this.startObject=null},oi.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var tt=this.targetPort=this.findTargetPort(this.isForwards);if(tt!==null){var ot=tt.part;ot instanceof ii&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ot,E=tt):(y=ot,x=tt,this.originalToNode!==null&&(b=this.originalToNode,E=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(b=this.originalToNode,E=this.originalToPort);y!==null||b!==null?(z=this.insertLink(y,x,b,E),z!==null?(tt===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,b,E)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},oi.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Un)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)},oi.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},oi.prototype.doNoLink=function(){},_t.Object.defineProperties(oi.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 ni=new Be(oi,"Either",0),Di=new Be(oi,"ForwardsOnly",0),Ai=new Be(oi,"BackwardsOnly",0);oi.className="LinkingTool",oi.Either=ni,oi.ForwardsOnly=Di,oi.BackwardsOnly=Ai;function mi(){nn.call(this),this.name="Relinking";var a=new fo;a.figure="Diamond",a.desiredSize=sr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new fo,a.figure="Diamond",a.desiredSize=sr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new gn}he(mi,nn),mi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Un){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)}},mi.prototype.makeAdornment=function(a,y){var x=new Xo;return x.type=Hn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},mi.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},mi.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 Xo&&x.adornedPart instanceof Un))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=ar),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ar),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},mi.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===Md)&&(x=Ys),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}},mi.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()},mi.prototype.doStop=function(){nn.prototype.doStop.call(this),this.handle=null},mi.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,b=this.originalToNode,E=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var tt=this.targetPort.part;tt instanceof ii&&(this.isForwards?(b=tt,E=this.targetPort):(y=tt,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?E=b=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?b:y,this.isForwards?E:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},mi.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},mi.prototype.doNoRelink=function(){};function io(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)}_t.Object.defineProperties(mi.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 Xo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),mi.className="RelinkingTool",wn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),wn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function xi(){Ko.call(this),this.name="LinkReshaping";var a=new fo;a.figure="Rectangle",a.desiredSize=ia,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new fo,a.figure="Diamond",a.desiredSize=sr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Zt,this.Yq=new xn}he(xi,Ko),xi.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:Qi},xi.prototype.om=function(a,y){a.reshapingBehavior=y},xi.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Un){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)}},xi.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new Xo,E.type=Hn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,tt=b?1:0;if(y.resegmentable&&y.computeCurve()!==Jl)for(var ot=x+tt;ot<z-tt;ot++){var rt=this.makeResegmentHandle(a,ot);rt!==null&&(rt.segmentIndex=ot,rt.segmentFraction=.5,rt.fromMaxLinks=999,E.add(rt))}for(tt=x+1;tt<z;tt++)if(ot=this.makeHandle(a,tt),ot!==null){if(ot.segmentIndex=tt,tt!==x)if(tt===x+1&&b){rt=y.i(x);var lt=y.i(x+1);De.B(rt.x,lt.x)&&De.B(rt.y,lt.y)&&(lt=y.i(x-1)),De.B(rt.x,lt.x)?(this.om(ot,Oo),ot.cursor="n-resize"):De.B(rt.y,lt.y)&&(this.om(ot,ho),ot.cursor="w-resize")}else tt===z-1&&b?(rt=y.i(z-1),lt=y.i(z),De.B(rt.x,lt.x)&&De.B(rt.y,lt.y)&&(rt=y.i(z+1)),De.B(rt.x,lt.x)?(this.om(ot,Oo),ot.cursor="n-resize"):De.B(rt.y,lt.y)&&(this.om(ot,ho),ot.cursor="w-resize")):tt!==z&&(this.om(ot,Yo),ot.cursor="move");E.add(ot)}E.adornedObject=a}return E},xi.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},xi.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},xi.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},xi.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 Un){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}}},xi.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},xi.prototype.stopTransaction=function(){var a=this.diagram,y=Ko.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},xi.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},xi.prototype.getResegmentingPoint=function(){return this.handle.ga(jo)},xi.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},xi.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var tt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(to(this,tt,b,E,z,!0)||to(this,tt,b,E,z,!1))){var ot=y.points.copy();to(this,tt,b,E,z,!0)?(ot.cd(x-2,new Zt(tt.x,(z.y+tt.y)/2)),ot.cd(x+1,new Zt(z.x,(z.y+tt.y)/2))):(ot.cd(x-2,new Zt((z.x+tt.x)/2,tt.y)),ot.cd(x+1,new Zt((z.x+tt.x)/2,z.y))),ot.mb(x),ot.mb(x-1),y.points=ot,y.Wb()}else tt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(to(this,b,E,z,tt,!0)||to(this,b,E,z,tt,!1))&&(ot=y.points.copy(),to(this,b,E,z,tt,!0)?(ot.cd(x-1,new Zt(b.x,(b.y+tt.y)/2)),ot.cd(x+2,new Zt(tt.x,(b.y+tt.y)/2))):(ot.cd(x-1,new Zt((b.x+tt.x)/2,b.y)),ot.cd(x+2,new Zt((b.x+tt.x)/2,tt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else tt=Zt.alloc(),De.qh(b.x,b.y,z.x,z.y,E.x,E.y,tt)&&tt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Zt.free(tt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function to(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}xi.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===Oo?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===ho&&(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===Oo?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===ho&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{b=x;var E=y.i(b),z=y.i(b-1),tt=y.i(b+1);De.B(z.x,E.x)&&De.B(E.y,tt.y)?(De.B(z.x,y.i(b-2).x)&&!De.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),De.B(tt.y,y.i(b+2).y)&&!De.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)):De.B(z.y,E.y)&&De.B(E.x,tt.x)?(De.B(z.y,y.i(b-2).y)&&!De.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),De.B(tt.x,y.i(b+2).x)&&!De.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):De.B(z.x,E.x)&&De.B(E.x,tt.x)?(De.B(z.x,y.i(b-2).x)&&!De.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),De.B(tt.x,y.i(b+2).x)&&!De.B(tt.y,y.i(b+2).y)?y.m(b+1,a.x,tt.y):y.L(b+1,a.x,tt.y)):De.B(z.y,E.y)&&De.B(E.y,tt.y)&&(De.B(z.y,y.i(b-2).y)&&!De.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),De.B(tt.y,y.i(b+2).y)&&!De.B(tt.x,y.i(b+2).x)?y.m(b+1,tt.x,a.y):y.L(b+1,tt.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),b=y.fromNode,E=y.fromPort,b!==null&&(z=b.findVisibleNode(),z!==null&&z!==b&&(b=z,E=b.port)),x===1&&y.computeSpot(!0,E).Mc()&&(z=E.ga(jo,Zt.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Zt.alloc()),y.L(0,b.x,b.y),Zt.free(z),Zt.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(jo,Zt.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Zt.alloc()),y.L(y.pointsCount-1,a.x,a.y),Zt.free(x),Zt.free(a));y.zf()},xi.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Yo:return a;case Oo:return new Zt(y.i(x).x,a.y);case ho:return new Zt(a.x,y.i(x).y);default:case Qi:return y.i(x)}},_t.Object.defineProperties(xi.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 Xo))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}}}),xi.prototype.setReshapingBehavior=xi.prototype.om,xi.prototype.getReshapingBehavior=xi.prototype.Ru;var Qi=new Be(xi,"None",0),ho=new Be(xi,"Horizontal",1),Oo=new Be(xi,"Vertical",2),Yo=new Be(xi,"All",3);xi.className="LinkReshapingTool",xi.None=Qi,xi.Horizontal=ho,xi.Vertical=Oo,xi.All=Yo,wn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function ro(){Ko.call(this),this.name="Resizing",this.o=new Yn(1,1).freeze(),this.j=new Yn(9999,9999).freeze(),this.yg=new Yn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new fo;a.alignmentFocus=jo,a.figure="Rectangle",a.desiredSize=ia,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Zt,this.Dw=new Yn,this.Tn=new Zt,this.rt=new Yn(0,0),this.qt=new Yn(1/0,1/0),this.pt=new Yn(1,1)}he(ro,Ko),ro.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Un)){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(),tc(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},ro.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new Xo,y.type=Hn.Spot,y.locationSpot=jo;var x=new Us;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ya)),y.add(this.makeHandle(a,Ol)),y.add(this.makeHandle(a,Ds)),y.add(this.makeHandle(a,el)),y.add(this.makeHandle(a,fa)),y.add(this.makeHandle(a,Xa)),y.add(this.makeHandle(a,Ha)),y.add(this.makeHandle(a,Aa))}else if(yu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},ro.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},ro.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=jo),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break t;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof Hn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},ro.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},ro.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))},ro.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},ro.prototype.stopTransaction=function(){var a=this.diagram,y=Ko.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},ro.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},ro.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,Zt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Zt.free(E)}},ro.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,Zt.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Zt.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},ro.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 oo){var b=new xn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new at;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()}},ro.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=jo);var tt=this.adornedObject.naturalBounds,ot=tt.x,rt=tt.y,lt=tt.x+tt.width,ut=tt.y+tt.height,ft=1;if(!z){ft=tt.width;var yt=tt.height;0>=ft&&(ft=1),0>=yt&&(yt=1),ft=yt/ft}return yt=Zt.alloc(),De.No(a.x,a.y,ot,rt,E.width,E.height,yt),a=tt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(yt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.y=Math.max(yt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=lt-a.width,a.y=ut-a.height)):1<=y.y?(a.x=Math.max(yt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=Math.max(lt-a.x,x.width),a.height=Math.max(Math.min(yt.y-rt,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.x=lt-a.width)):(a.x=Math.max(yt.x,lt-b.width),a.x=Math.min(a.x,lt-x.width),a.width=lt-a.x,z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=rt+.5*(ut-rt-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(yt.x-ot,b.width),x.width),a.y=Math.max(yt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=Math.max(ut-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width),a.y=ut-a.height)):1<=y.y?(a.width=Math.max(Math.min(yt.x-ot,b.width),x.width),a.height=Math.max(Math.min(yt.y-rt,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft):(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width))):(a.width=Math.max(Math.min(yt.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(ft*a.width,b.height),x.height),a.width=a.height/ft,a.y=rt+.5*(ut-rt-a.height))):0>=y.y?(a.y=Math.max(yt.y,ut-b.height),a.y=Math.min(a.y,ut-x.height),a.height=ut-a.y,z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=ot+.5*(lt-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(yt.y-rt,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/ft,b.width),x.width),a.height=ft*a.width,a.x=ot+.5*(lt-ot-a.width))),Zt.free(yt),a},ro.prototype.computeReshape=function(){var a=Nn;return this.adornedObject instanceof fo&&(a=bv(this.adornedObject)),!(a===pi||this.diagram.lastInput.shift)},ro.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},ro.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},ro.prototype.computeCellSize=function(){var a=new Yn(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},_t.Object.defineProperties(ro.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 Xo))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 Xo)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}}}),ro.className="ResizingTool",wn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function To(){Ko.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Zt,this.ue=null;var a=new fo;a.figure="Ellipse",a.desiredSize=sr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Zt(NaN,NaN),this.u=0,this.F=50}he(To,Ko),To.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)}},To.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new Xo,y.type=Hn.Position,y.locationSpot=jo;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(yu(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},To.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},To.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)},To.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(jo)},To.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)},To.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Zt(NaN,NaN),this.isActive=a.isMouseCaptured=!1},To.prototype.stopTransaction=function(){var a=this.diagram,y=Ko.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},To.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},To.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},To.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()},To.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()}},To.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},_t.Object.defineProperties(To.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 Xo))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 Xo)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}}}),To.className="RotatingTool",wn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function gr(){Ko.call(this),this.name="ClickSelecting"}he(gr,Ko),gr.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},gr.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},gr.className="ClickSelectingTool";function uo(){Ko.call(this),this.name="Action",this.pk=null}he(uo,Ko),uo.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},uo.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()},uo.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))}},uo.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()},uo.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())},uo.prototype.doStop=function(){this.pk=null},uo.className="ActionTool";function Eo(){Ko.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Zt(0,0)}he(Eo,Ko),Eo.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)},Eo.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Eo.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 Mi)x.Zc()&&(yu(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);We(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Zt.allocAt(a.x,a.y);this.isGridSnapEnabled&&Jf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Zt.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},_t.Object.defineProperties(Eo.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}}}),Eo.className="ClickCreatingTool";function lo(){Ko.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new Mi;a.layerName="Tool",a.selectable=!1;var y=new fo;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}he(lo,Ko),lo.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))},lo.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},lo.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},lo.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=Yn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Yn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},lo.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()},lo.prototype.computeBoxBounds=function(){var a=this.diagram;return new gn(a.firstInput.documentPoint,a.lastInput.documentPoint)},lo.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Wi?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 xn,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)}},_t.Object.defineProperties(lo.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}}}),lo.className="DragSelectingTool";function Gi(){Ko.call(this),this.name="Panning",this.Xt=new Zt,this.xy=new Zt,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Yt.document,"scroll",a.Kw,!1),a.stopTool()}}he(Gi,Ko),Gi.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())},Gi.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Yt.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},Gi.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},Gi.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},Gi.prototype.doMouseMove=function(){this.move()},Gi.prototype.doMouseUp=function(){this.move(),this.stopTool()},Gi.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)}},_t.Object.defineProperties(Gi.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),Gi.className="PanningTool",wn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),wn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),wn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),wn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),wn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function So(){this.F=this.u=this.j=this.o=null}_t.Object.defineProperties(So.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}}}),So.className="HTMLInfo";function Wo(a,y,x){this.text=a,this.hx=y,this.visible=x}Wo.className="ContextMenuButtonInfo";function $o(){Ko.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Zt,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}he($o,Ko);function _o(a){var y=new So;y.show=function(E,z,tt){tt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},Or=y,a.tu=function(){a.stopTool()},y=en("div");var x=en("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=en("style");Yt.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",ao,!1),b.addEventListener(y,"selectstart",ao,!1),b.addEventListener(x,"contextmenu",ao,!1)),y.className="goCXforeground",x.className="goCXbackground",Yt.document.body&&(Yt.document.body.appendChild(y),Yt.document.body.appendChild(x)),Sr=y,Ma=x,Da=!0}function ao(a){return a.preventDefault(),!1}$o.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)},$o.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},$o.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},$o.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof Xe||(a instanceof be?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},$o.prototype.doActivate=function(){},$o.prototype.doMouseDown=function(){if(Ko.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Xo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&mr(this)},$o.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Xo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}mr(this)};function mr(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof So||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(Pr(a,!0),a.isActive||a.stopTool())}$o.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function Pr(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=Or,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof be?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof Xo&&!a.currentContextMenu.visible&&a.stopTool()}}$o.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},$o.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof Xo){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 So&&a.show(y,x,this);this.currentContextMenu=a},$o.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}},$o.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof Xo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof So&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function _r(a){var y=new xn;return y.add(new Wo("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Wo("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Wo("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Wo("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Wo("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Wo("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Wo("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Wo("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Wo("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Wo("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Wo("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Wo("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Wo("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}$o.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=_r(this)),Sr.innerHTML="",Ma.addEventListener("pointerdown",this.tu,!1);var y=this,x=en("ul");x.className="goCXul",Sr.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=en("li"),z.className="goCXli";var tt=en("a");tt.className="goCXa",tt.href="#",tt.ky=E.hx,tt.addEventListener("pointerdown",function(ot){return this.ky(a),y.stopTool(),ot.preventDefault(),!1},!1),tt.textContent=E.text,z.appendChild(tt),x.appendChild(z)}}Sr.style.display="block",Ma.style.display="block"},$o.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Or){Sr.style.display="none",Ma.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Ma,"pointerdown",this.tu,!1),this.currentContextMenu=null}},_t.Object.defineProperties($o.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof Xo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Da===!1&&Or===null&&ra&&_o(this),Or},set:function(a){a===null&&(Da=!0),Or=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Or=null,Da=!1,Ma=null,Sr=null;$o.className="ContextMenuTool",wn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Vo(){Ko.call(this),this.name="TextEditing",this.Zh=new Lr,this.ia=null,this.V=Io,this.vj=null,this.qa=Ro,this.u=1,this.F=!0,this.o=null,this.j=new So,this.kt=null,Vr(this,this.j)}he(Vo,Ko);function Vr(a,y){if(ra){var x=en("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(Jo)):E==="Tab"?(a.acceptText(tr),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Ro){var b=a.kt;a.qa===pr&&(a.qa=jr),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Ro){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 Lr&&z instanceof Vo)if(z.state===Ps)x.style.border="3px solid red",x.focus();else{var tt=b.ga(jo),ot=E.position,rt=E.scale,lt=b.Df()*rt;lt<z.minimumEditorScale&&(lt=z.minimumEditorScale);var ut=b.naturalBounds.width*lt+6,ft=b.naturalBounds.height*lt+2,yt=(tt.x-ot.x)*rt;tt=(tt.y-ot.y)*rt,ot=b.verticalAlignment,rt=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*lt,ft=ot.y*ft-ot.y*rt+ot.offsetY-(.5*ft-.5*rt)-rt/2,x.value=b.text,E.div.style.font=b.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*lt+"%",x.style.lineHeight="normal",x.style.width=ut+"px",x.style.left=(yt-ut/2|0)-1+"px",x.style.top=(tt+ft|0)-1+"px",x.style.textAlign=b.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=b.lineCount,x.wA=lt,x.className="goTXarea",E.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(b){b.div.removeChild(x)}}}Vo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Gs&&Gs!==this&&(Gs.acceptText(rs),Gs&&Gs!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Lr&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Io&&!y.isSelected||this.starting===Xr&&2>a.lastInput.clickCount)):!1},Vo.prototype.doStart=function(){Gs=this,this.textBlock!==null&&this.doActivate()},Vo.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 Lr&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=pr;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new gn(this.textBlock.ga(Ya),this.textBlock.ga(Ds));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Vo.prototype.doCancel=function(){this.stopTool()},Vo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Vo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(rs)},Vo.prototype.acceptText=function(a){switch(a){case rs:this.qa===us?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===pr||this.qa===Ps||this.qa===jr)&&(this.qa=Wr,Na(this));break;case Sa:case Jo:case tr:(Jo!==a||this.textBlock.isMultiline!==!0)&&(this.qa===pr||this.qa===Ps||this.qa===jr)&&(this.qa=Wr,Na(this))}};function Na(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=us,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=Ps,a.doError(E,z))}}Vo.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)},Vo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Vo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Ro,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Vo.prototype.doStop=function(){Gs=null},Vo.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)))},Vo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},_t.Object.defineProperties(Vo.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)}}}),Vo.prototype.measureTemporaryTextBlock=Vo.prototype.Lx;var Sa=new Be(Vo,"LostFocus",0),rs=new Be(Vo,"MouseDown",1),tr=new Be(Vo,"Tab",2),Jo=new Be(Vo,"Enter",3),er=new Be(Vo,"SingleClick",0),Io=new Be(Vo,"SingleClickSelected",1),Xr=new Be(Vo,"DoubleClick",2),Ro=new Be(Vo,"StateNone",0),pr=new Be(Vo,"StateActive",1),jr=new Be(Vo,"StateEditing",2),Wr=new Be(Vo,"StateValidating",3),Ps=new Be(Vo,"StateInvalid",4),us=new Be(Vo,"StateValidated",5),Gs=null;Vo.className="TextEditingTool",Vo.LostFocus=Sa,Vo.MouseDown=rs,Vo.Tab=tr,Vo.Enter=Jo,Vo.SingleClick=er,Vo.SingleClickSelected=Io,Vo.DoubleClick=Xr,Vo.StateNone=Ro,Vo.StateActive=pr,Vo.StateEditing=jr,Vo.StateValidating=Wr,Vo.StateInvalid=Ps,Vo.StateValidated=us,wn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ta(a){El||(gl(),El=!0),this.H=Uu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=_l,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Ln,this.ce=new oa,this.ce.Yd=this,this.Ei=new Ln,this.pu=new Ln,this.Sr=new Ln,this.pr=new Ln,a&&Object.assign(this,a)}ta.prototype.Xe=function(a){this.H=a},ta.prototype.canStart=function(){return!0};function Cs(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ds(a.H),a.zb=!0)}function ns(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===_l?(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===Hl&&y.vc.clear(),a.Qw=!!(a.Pk===tu&&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(),Ls(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==Ts&&b!==null&&(delete b.start.scale,delete b.end.scale),Yt.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&As(x),Ac(x),a.zb=!1,y.start(),y.bc&&(ca(a),x.Ya(),oh(y,0),rl(x,!0),Qa(a),x.R("AnimationStarting",a)))}))}}function ps(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function Ku(a,y,x,b){a.isTicking||ps(a)||y instanceof Un&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}Lt=ta.prototype,Lt.fv=function(a){return this.ce.fv(a)},Lt.Xu=function(a){return this.ce.Xu(a)};function ea(a,y){function x(){if(0<E.Sr.count&&(b.addAll(E.Sr),E.Sr.clear(),E.bc=!0),E.bc!==!1&&b.count!==0){E.pu.addAll(b);for(var z=E.pu.iterator;z.next();){var tt=z.value;if(tt.bc!==!1){t:if(0<tt.yl.count)var ot=!0;else{for(ot=tt.vc.iterator;ot.next();){var rt=ot.key;if(rt instanceof be&&rt.diagram!==null||rt instanceof Xe){ot=!0;break t}}ot=!1}ot?Gl(tt,!1):tt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(ca(E),rl(E.H),Qa(E)),Yt.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Yt.requestAnimationFrame(function(){x()}))}function aa(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ca(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 Qa(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Lt.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(),Ls(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Ls(y,this.H)},Lt.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))},Lt.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),pa(this,a))},Lt.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Za(this.ce,y,"position",y.position,y.position),pa(this,a))};function ms(a,y,x){!a.zb||y.D(x)||ps(a)||(a.H.pi||(y=x.copy()),Za(a.ce,a.H,"position",y,x))}function Dr(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function pa(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function vs(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],tt=a[1],ot=a[2];a=a[3];var rt=y[0],lt=y[1],ut=y[2];return y=y[3],ot===0||ot===100?(z=rt,tt=lt):(ut===0||ut===100)&&(rt=z,lt=tt),180<Math.abs(rt-z)&&(rt>z?z+=360:rt+=360),z=E(x,z,rt-z,b)%360,tt=E(x,tt,lt-tt,b),ot=E(x,ot,ut-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+tt+"%, "+ot+"%, "+x+")"}function gl(){function a(x,b,E,z,tt,ot){x.position=new Zt(z(tt,b.x,E.x-b.x,ot),z(tt,b.y,E.y-b.y,ot))}var y=new si;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,tt,ot){tt<ot?x.mm(z(tt,b.x,E.x-b.x,ot),z(tt,b.y,E.y-b.y,ot),!1):x.position=new Zt(z(tt,b.x,E.x-b.x,ot),z(tt,b.y,E.y-b.y,ot))}),y.add("location",function(x,b,E,z,tt,ot){tt<ot?x.mm(z(tt,b.x,E.x-b.x,ot),z(tt,b.y,E.y-b.y,ot),!0):x.location=new Zt(z(tt,b.x,E.x-b.x,ot),z(tt,b.y,E.y-b.y,ot))}),y.add("position:placeholder",function(x,b,E,z,tt,ot){tt<ot?x.mm(z(tt,b.x,E.x-b.x,ot),z(tt,b.y,E.y-b.y,ot),!1):x.position=new Zt(z(tt,b.x,E.x-b.x,ot),z(tt,b.y,E.y-b.y,ot))}),y.add("position:nodeCollapse",function(x,b,E,z,tt,ot){var rt=x.actualBounds,lt=E.actualBounds;E=lt.x+lt.width/2-rt.width/2,rt=lt.y+lt.height/2-rt.height/2,tt<ot?x.mm(z(tt,b.x,E-b.x,ot),z(tt,b.y,rt-b.y,ot),!1):x.position=new Zt(z(tt,b.x,E-b.x,ot),z(tt,b.y,rt-b.y,ot))}),y.add("desiredSize",function(x,b,E,z,tt,ot){x.desiredSize=new gn(z(tt,b.width,E.width-b.width,ot),z(tt,b.height,E.height-b.height,ot))}),y.add("width",function(x,b,E,z,tt,ot){x.width=z(tt,b,E-b,ot)}),y.add("height",function(x,b,E,z,tt,ot){x.height=z(tt,b,E-b,ot)}),y.add("fill",function(x,b,E,z,tt,ot){x.fill=vs(b,E,tt,ot,z)}),y.add("stroke",function(x,b,E,z,tt,ot){x.stroke=vs(b,E,tt,ot,z)}),y.add("strokeWidth",function(x,b,E,z,tt,ot){x.strokeWidth=z(tt,b,E-b,ot)}),y.add("strokeDashOffset",function(x,b,E,z,tt,ot){x.strokeDashOffset=z(tt,b,E-b,ot)}),y.add("background",function(x,b,E,z,tt,ot){x.background=vs(b,E,tt,ot,z)}),y.add("areaBackground",function(x,b,E,z,tt,ot){x.areaBackground=vs(b,E,tt,ot,z)}),y.add("opacity",function(x,b,E,z,tt,ot){x.opacity=z(tt,b,E-b,ot)}),y.add("scale",function(x,b,E,z,tt,ot){x.scale=z(tt,b,E-b,ot)}),y.add("angle",function(x,b,E,z,tt,ot){x.angle=z(tt,b,E-b,ot)}),Wl=y}_t.Object.defineProperties(ta.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&&Wn(a,">= 1",ta,"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}}}),ta.prototype.stopAnimation=ta.prototype.Cc;var Wl=null,El=!1,_l=new Be(ta,"Default",1),tu=new Be(ta,"AnimateLocations",2),Hl=new Be(ta,"None",3);ta.className="AnimationManager",ta.defineAnimationEffect=function(a,y){El||(gl(),El=!0),Wl.add(a,y)},ta.Default=_l,ta.AnimateLocations=tu,ta.None=Hl;function oa(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=eu,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=Co,this.vc=new si,this.Tt=new si,this.yl=new Ln,this.Ut=new Ln,this.dw=Sd,a&&Object.assign(this,a)}oa.prototype.suspend=function(){this.Xk=!0},oa.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Gl(this,!0),ca(this.Yd),rl(this.H),Qa(this.Yd),this.H.redraw()};function Ls(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}Lt=oa.prototype,Lt.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 Xe?a=x:x instanceof be&&(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===_l&&this===y.defaultAnimation&&(this.Lp=Lu,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=mf),ca(y),this.yl.each(function(b){b.data=null,a.add(b)}),Qa(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ea(y,this),this)},Lt.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Lt.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof Xe?this.H=a:a instanceof be&&a.diagram!==null&&(this.H=a.diagram)),a instanceof Mi){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Za(this,a,y,x,b,E),this};function Za(a,y,x,b,E,z){var tt=a.vc;if(y instanceof Xe&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(_h(b),av(),b=[Xl.j,Xl.u,Xl.o,Xl.F],_h(E),av(),E=[Xl.j,Xl.u,Xl.o,Xl.F]),tt.contains(y)){var ot=tt.I(y),rt=ot.start,lt=ot.end;rt[x]===void 0&&(rt[x]=ma(b)),lt[x]=ma(E)}else rt={},lt={},rt[x]=ma(b),lt[x]=ma(E),ot=rt.position,y instanceof be&&ot instanceof Zt&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(lt.position),ot=new Vu(rt,lt,z),tt.add(y,ot);tt=rt[x],tt instanceof Zt&&!tt.w()&&tt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof Mi?ot.Ku.location=ma(y.location):z&&(ot.Ku[x]=ma(b))}function ma(a){return a instanceof Zt||a instanceof Yn?a.copy():a}Lt.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Lt.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Gl(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),ca(x),oh(a,E),rl(a.H,!0),Qa(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 oh(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof be&&z.diagram===null)){var tt=b.value,ot=E?tt.end:tt.start;tt=E?tt.start:tt.end;var rt=Wl,lt;for(lt in tt)lt==="position"&&(tt["position:placeholder"]||tt["position:nodeCollapse"])||rt.get(lt)===null||rt.get(lt)(z,ot[lt],tt[lt],a.Lp,y,x,a)}}}Lt.stop=function(){return this.bc?(this.Ml(!0),this):this},Lt.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,ca(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=Wl;b.next();){var tt=b.key,ot=b.value,rt=E?ot.end:ot.start,lt=E?ot.start:ot.end,ut=ot.Ku,ft;for(ft in lt)if(z.get(ft)!==null){var yt=ft;!ot.Hu||yt!=="position:nodeCollapse"&&yt!=="position:placeholder"||(yt="position"),z.get(yt)(tt,rt[ft],ut[ft]!==void 0?ut[ft]:ot.Hu?rt[ft]:lt[ft],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ut.location!==void 0&&tt instanceof Mi&&(tt.location=ut.location),ot.nv&&tt instanceof Mi&&tt.Zb(!1)}if(y.As.clear(),Vd(y,!1),y.Ya(),y.N(),rl(y,!0),x.defaultAnimation===this){for(ft=x.pr.iterator;ft.next();)E=ft.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}rl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Qa(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Ls(this,null),x.Ml(this),y.$b())}},Lt.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof oo&&(b=y.placeholder),b!==null?(x=b.ga(Ya),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Zt(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof oo)for(a=a.memberParts;a.next();)b=a.value,b instanceof ii&&this.Cj(b,y)},Lt.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof oo&&(x=y.placeholder),x!==null){var b=x.ga(Ya);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof oo)for(a=a.memberParts;a.next();)b=a.value,b instanceof ii&&this.Aj(b,y)}},Lt.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},_t.Object.defineProperties(oa.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Wn(a,">= 1",oa,"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:xe("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}}}),oa.prototype.getTemporaryState=oa.prototype.Ez,oa.prototype.stop=oa.prototype.stop,oa.prototype.add=oa.prototype.add,oa.prototype.addTemporaryPart=oa.prototype.Iy;function eu(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Lu(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}oa.className="Animation",oa.EaseLinear=function(a,y,x,b){return x*a/b+y},oa.EaseInOutQuad=eu,oa.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},oa.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},oa.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},oa.EaseOutExpo=Lu;function Vu(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Vu.className="AnimationState";function Ll(a,y,x){this.xd=null,this.rf=a,this.so=x||xa,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=hs))}Ll.prototype.copy=function(){var a=new Ll(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 Jr(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))}_t.Object.defineProperties(Ll.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 xa=new Be(Ll,"Default",1),hs=new Be(Ll,"Immediate",2),wa=new Be(Ll,"Bundled",3);Ll.className="AnimationTrigger",Ll.Default=xa,Ll.Immediate=hs,Ll.Bundled=wa;function Kr(a){po(this),this.H=null,this.Pa=new xn,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)}Lt=Kr.prototype,Lt.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,ks(x)}a.clear(),this.Zq.length=0},Lt.Xe=function(a){this.H=a},Lt.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,b=0,E=0,z=0,tt=0,ot=this.Pa.iterator;ot.next();){var rt=ot.value;rt instanceof oo?E++:rt instanceof ii?b++:rt instanceof Un?z++:rt instanceof Xo?tt++:x++}if(ot="",0<x&&(ot+=x+" Parts "),0<b&&(ot+=b+" Nodes "),0<E&&(ot+=E+" Groups "),0<z&&(ot+=z+" Links "),0<tt&&(ot+=tt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,ot+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&Yi(b)&&(ot+=" #"+Yi(b)),x instanceof ii?ot+=" "+kn(b):x instanceof Un&&(ot+=" "+kn(x.fromNode)+" "+kn(x.toNode));return y+" "+this.Pa.count+": "+ot},Lt.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=Zt.alloc(),z=this.Pa.s,tt=z.length;tt--;){var ot=z[tt];if((b!==!0||tc(ot)!==!1)&&ot.isVisible()&&(E.assign(a),Ao(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return Zt.free(E),ot}return Zt.free(E),null},Lt.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof xn||b instanceof Ln||(b=new Ln),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Zt.alloc(),tt=this.Pa.s,ot=tt.length;ot--;){var rt=tt[ot];if((E!==!0||tc(rt)!==!1)&&rt.isVisible()){z.assign(a),Ao(z,rt.oe);var lt=rt;rt.ji(z,y,x,b)&&(y!==null&&(lt=y(lt)),lt===null||x!==null&&!x(lt)||b.add(lt))}}return Zt.free(z),b},Lt.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 xn||E instanceof Ln||(E=new Ln),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var tt=this.Pa.s,ot=tt.length;ot--;){var rt=tt[ot];if((z!==!0||tc(rt)!==!1)&&rt.isVisible()){var lt=rt;rt.Cf(a,y,x,b,E)&&(y!==null&&(lt=y(lt)),lt===null||x!==null&&!x(lt)||E.add(lt))}}return E},Lt.Nu=function(a,y,x,b,E,z,tt){if(this.Uh===!1)return E;for(var ot=this.Pa.s,rt=ot.length;rt--;){var lt=ot[rt];if((tt!==!0||tc(lt)!==!1)&&z(lt)&<.isVisible()){var ut=lt;lt.Cf(a,y,x,b,E)&&(y!==null&&(ut=y(ut)),ut===null||x!==null&&!x(ut)||E.add(ut))}}return E},Lt.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 xn||E instanceof Ln)&&(z=E),E=!0),z instanceof xn||z instanceof Ln||(z=new Ln),this.Uh===!1)return z;var tt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(tt=!0);for(var ot=Zt.alloc(),rt=Zt.alloc(),lt=this.Pa.s,ut=lt.length;ut--;){var ft=lt[ut];if((tt!==!0||tc(ft)!==!1)&&ft.isVisible()){ot.assign(a),Ao(ot,ft.oe),rt.h(a.x+y,a.y),Ao(rt,ft.oe);var yt=ft;ft.og(ot,rt,x,b,E,z)&&(x!==null&&(yt=x(yt)),yt===null||b!==null&&!b(yt)||z.add(yt))}}return Zt.free(ot),Zt.free(rt),z},Lt.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=rn();for(var E=rn(),z=0;z<b;z++){var tt=x[z];if(tt.vw=z,tt instanceof Un){if(tt.fd===!1)continue}else if(tt instanceof Xo&&tt.adornedPart!==null)continue;var ot=tt.actualBounds;tt.isVisible()&&Cr(ot,y)?(tt.Fd(!0),a.push(tt)):(tt.Fd(!1),tt.adornments!==null&&0<tt.adornments.count&&E.push(tt))}for(y=0;y<a.length;y++)for(x=a[y],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]);pn(a),pn(E)}}};function ys(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Lt.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=ys(this,a);var z=this.Zq;z.length=0;for(var tt=y.scale,ot=gn.alloc(),rt=0;rt<b;rt++)this.Oj(a,x[rt],y,z,tt,ot,!0);if(gn.free(ot),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function pl(a,y,x,b,E){if(a.visible&&a.pb!==0&&(E||!a.isTemporary)){E=a.Pa.s;var z=E.length;if(z!==0){var tt=ys(a,y),ot=a.Zq;ot.length=0;for(var rt=x.scale,lt=gn.alloc(),ut=0;ut<z;ut++){var ft=E[ut];b.contains(ft)&&a.Oj(y,ft,x,ot,rt,lt,!1)}gn.free(lt),y.globalAlpha=tt}}}Lt.Oj=function(a,y,x,b,E,z,tt){if(tt&&!tc(y))a.Hs(y);else{if(b!==null&&y instanceof Un&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(tt=!1,b=y.containingGroup;b!==null;)tt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(tt=!0,z.assign(b.tb)),b=b.containingGroup;var ot=y.actualBounds;if(b=!1,tt&&y.isVisible()){if(!z.Yc(ot)){a.Hs(y);return}b=!z.Re(ot)}b&&(a.save(),a instanceof Al?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),ot.width*E>x.Oq||ot.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&&(sa(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&(sa(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),sa(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))}},Lt.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Zr,a,this,y,x,b,E)},Lt.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&ks(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)),gu(this,a,y),a},Lt.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,ks(y),a};function gu(a,y,x){if(y=uf(a,y,x),x instanceof oo&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,tt=0;tt<z;tt++){var ot=E[tt];if(ot===x&&(y=tt,0<=b)||0>b&&ot.containingGroup===x&&(b=tt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&gu(a,-1,y)}x.svg!==null&&x.svg.remove()}function uf(a,y,x){var b=x.zOrder;if(isNaN(b))return y;a=a.Pa;var E=a.count;if(1>=E)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,tt=NaN;0<=z&&(tt=a.M(z).zOrder,!!isNaN(tt));)z--;for(var ot=y+1,rt=NaN;ot<E&&(rt=a.M(ot).zOrder,!!isNaN(rt));)ot++;if(!isNaN(tt)&&tt>b)for(;;){if(z===-1||tt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(tt=NaN;0<=--z&&(tt=a.M(z).zOrder,isNaN(tt)););}else if(!isNaN(rt)&&rt<b)for(;;){if(ot===E||rt>=b){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(rt=NaN;++ot<E&&(rt=a.M(ot).zOrder,isNaN(rt)););}return y}_t.Object.defineProperties(Kr.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===""&&xe("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&xe("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)&&Wn(a,"0 <= value <= 1",Kr,"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))}}}),Kr.prototype.findObjectsNear=Kr.prototype.og,Kr.prototype.findObjectsIn=Kr.prototype.Cf,Kr.prototype.findObjectsAt=Kr.prototype.ji,Kr.prototype.findObjectAt=Kr.prototype.ic,Kr.className="Layer";function Xe(a,y){if(hm||(Ms(),hm=!0),po(this),Uu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ra){var x=this,b=function(){x.removeEventListener(Yt.document,"DOMContentLoaded",b,!1),x.setRTL()};Yt.document.body!==null?this.setRTL():x.addEventListener(Yt.document,"DOMContentLoaded",b,!1)}this.ol=null,ng.add("Model",cr);var E=this;return this.Hb=function(z){var tt=E.partManager;if(z.model===tt.diagram.model&&tt.diagram.aa){tt.diagram.aa=!1;try{var ot=z.change;z.modelChange===""&&ot===Zr&&tt.updateDataBindings(z.object,z.propertyName)}finally{tt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,hf(this),this.model=hy(),this.Wg=!0,Ud(this),this.layout=new Hr,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"||Yt.Element&&a instanceof Element?Lc(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var Ph,Uu;function hf(a){a.Yd=new ta,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new xn,a.pj=new si,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Zt(NaN,NaN).freeze(),a.du=new Zt(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Zt(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new mo,a.zu=new Zt(NaN,NaN).freeze(),a.ut=new gn(NaN,NaN,NaN,NaN).freeze(),a.rj=new Bi(0,0,0,0).freeze(),a.sj=Sd,a.nu=!1,a.Zt=null,a.fu=null,a.yh=Ts,a.zk=lr,a.Fg=Ts,a.pq=lr,a.yt=Ya,a.Bt=Ya,a.Fc=!0,a.pn=!1,a.De=new Ln,a.Eh=new si,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Bi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new ws,a.bq.diagram=a,a.Qg=new ws,a.Qg.diagram=a,a.cj=new ws,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,ev(a),a.ai=new Ln,a.Ht=!0,a.uu=xd,a.pw=!1,a.wu=pf,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 si,a.Xn=new xn,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 Bi(5).freeze(),a.Hw=new Ln().freeze(),a.Nt=999999999,a.nw=new Ln().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new Ln,a.ow=new Ln,a.Xh=null,a.aw=new Yn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Zt,bounds:new gn,Py:new Yn,bA:new Yn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new gn(NaN,NaN,NaN,NaN).freeze(),a.wo=new Yn(NaN,NaN).freeze(),a.Sp=new gn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new si;var y=new ii,x=new Lr;x.bind(new Pa("text","",kn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new ii,x=new Lr,x.stroke="brown",x.bind(new Pa("text","",kn)),y.add(x),a.Lg.add("Comment",y),y=new ii,y.selectable=!1,y.avoidable=!1,x=new fo,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Yn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new si,y=new oo,y.selectionObjectName="GROUPPANEL",y.type=Hn.Vertical,x=new Lr,x.font="bold 12pt sans-serif",x.bind(new Pa("text","",kn)),y.add(x),x=new Hn(Hn.Auto),x.name="GROUPPANEL";var b=new fo;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Us,b.padding=new Bi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new si,y=new Un,x=new fo,x.isPanelMain=!0,y.add(x),x=new fo,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Un,x=new fo,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new Xo,y.type=Hn.Auto,x=new fo,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Us,x.margin=new Bi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new Xo,y.type=Hn.Link,x=new fo,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 cr,a.toolManager=new zr,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new at,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Jh(),a.eq=null,a.fq=_i,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 Zt,a.zy=500,a.wp=new Zt,a.wq=!1}Xe.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Ic=null,Qd="",gd(this,!1),this.Xn.clear(),pg(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function gd(a,y){a.animationManager.Cc(!0),a.Hw=new Ln().freeze(),a.nw=new Ln().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var z=[],tt=a.Wa.length;if(y){for(y=0;y<tt;y++)for(var ot=a.Wa.s[y].parts;ot.next();){var rt=ot.value;rt!==E&&rt.data===null&&z.push(rt)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<tt;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),pg(),a.Og.clear(),Li=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Jh(){return null}Xe.prototype.reset=function(){this.clear(),this.vb=!0,hf(this),sh(this),this.Wg=!0,Ud(this),this.layout=new Hr,this.Wg=!1,this.model=hy(),this.model.undoManager=new Ur,this.vb=this.rn=!1,this.N()},Xe.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Yt.document.body);var y=en("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},Xe.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Yt.document.body);var y=0;if(ra){var x=um;y=Ph,x===null&&(x=um=en("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=Ph=en("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||Wi||(y=11)}this.Db=y,this.Gw=!0},Xe.prototype.qb=function(a){a.classType===Xe&&(this.autoScale=a)},Xe.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 Lc(a,y){if(ra){if(y!=null||xe("Diagram setup requires an argument DIV."),a.Ka!==null&&xe("Diagram has already completed setup."),typeof y=="string"?a.Ka=Yt.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:xe("No DIV or DIV id supplied: "+y),a.Ka===null&&xe("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&xe("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Yt.ResizeObserver){var x=on(function(){a.$b()},250);a.ol=new Yt.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Yt.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=Yt.go;var E=new vu(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Yt.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),Tc(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new vu(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,ra){E=en("div");var z=en("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=Yf,E.addEventListener("pointerdown",cf),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=on(function(){a.Yh=null,a.N()},300),a.Ov=on(function(){Ac(a)},250),a.preventDefault=function(tt){return tt.preventDefault(),!1},a.$j=function(tt){if(a.isEnabled){var ot=ml(a,tt,!0);ot.bubbles=!0;var rt=0,lt=0;ot.delta=0,tt.deltaX!==void 0?(tt.deltaX!==0&&(rt=0<tt.deltaX?1:-1),tt.deltaY!==0&&(lt=0<tt.deltaY?1:-1),ot.delta=Math.abs(tt.deltaX)>Math.abs(tt.deltaY)?-rt:-lt):tt.wheelDeltaX!==void 0?(tt.wheelDeltaX!==0&&(rt=0<tt.wheelDeltaX?-1:1),tt.wheelDeltaY!==0&&(lt=0<tt.wheelDeltaY?-1:1),ot.delta=Math.abs(tt.wheelDeltaX)>Math.abs(tt.wheelDeltaY)?-rt:-lt):tt.wheelDelta!==void 0&&tt.wheelDelta!==0&&(ot.delta=0<tt.wheelDelta?1:-1),a.doMouseWheel(),Kl(ot,tt)}},a.aA=function(tt){a.isEnabled&&(a.Vk=!1,ml(a,tt,!0),tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())},a.ui=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.Yt;ot[tt.pointerId]===void 0&&(ot[tt.pointerId]=tt),ot=a.oj;var rt=!1;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType)if(ot[1]!==null&&ot[1].pointerId===tt.pointerId)ot[1]=tt,rt=!0;else if(ot[0]===null)ot[0]=tt;else if(ot[1]===null)ot[1]=tt,rt=!0;else{tt.preventDefault();return}else ot[0]=tt;(ot=tt.pointerType==="touch"||tt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var lt=rt;rt=kc(a,tt,!0,!1,!0,lt),vd(a,tt,rt),rt.targetDiagram=Fc(tt,tt.target),rt.targetObject=null,lt||rt.clone(a.bq),lt=a.uw,ot=ot?25:10,tt.timeStamp-a.tw<a.zy&&!(Math.abs(lt.x-tt.screenX)>ot||Math.abs(lt.y-tt.screenY)>ot)?a.yq++:a.yq=1,rt.clickCount=a.yq,a.tw=tt.timeStamp,a.uw.sg(tt.screenX,tt.screenY),a.doMouseDown(),tt.button===1?tt.preventDefault():Kl(rt,tt)}},a.dk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==tt.pointerId&&ot[0].pointerType===tt.pointerType){if(ot[1]!==null&&ot[1].pointerId===tt.pointerId){ot[1]=tt;return}if(ot[0]===null)ot[0]=tt;else return}else ot[0]=tt;if(ot[0].pointerId===tt.pointerId){ot=kc(a,tt,!1,!1,!1,ot[1]!==null);var rt=Yt.document.elementFromPoint(tt.clientX,tt.clientY)||null;rt!==null&&rt.shadowRoot!==void 0&&rt.shadowRoot!==null&&(rt=rt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY));var lt=a,ut=tt;rt&&rt.H&&(ut=tt,lt=rt.H),ot.targetDiagram=lt,vd(a,ut,ot),ot.targetObject=null,a.doMouseMove(),Kl(ot,tt)}}},a.fk=function(tt){if(a.isEnabled){a.Vk=!0;var ot=tt.pointerType==="touch"||tt.pointerType==="pen",rt=a.Yt;if(ot&&a.qu)delete rt[tt.pointerId],tt.preventDefault();else if(rt=a.oj,rt[0]===null||rt[0].pointerId!==tt.pointerId&&rt[0].pointerType===tt.pointerType)rt[1]!==null&&rt[1].pointerId===tt.pointerId&&(rt[1]=null);else{rt[0]=null,rt=kc(a,tt,!1,!0,!0,!1);var lt=Yt.document.elementFromPoint(tt.clientX,tt.clientY)||null;lt!==null&<.shadowRoot!==void 0&<.shadowRoot!==null&&(lt=lt.shadowRoot.elementFromPoint(tt.clientX,tt.clientY)),lt!==null&<.H instanceof Xe&<.H!==a&&vd(lt.H,tt,rt),lt===null&&(lt=tt.target),vd(a,tt,rt),rt.clickCount=a.yq,rt.targetDiagram=Fc(tt,lt),rt.targetObject=null,a.doMouseUp(),Kl(rt,tt),ot&&(a.wq=!1)}}},a.ek=function(tt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[tt.pointerId]&&delete ot[tt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===tt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null),tt.pointerType!=="touch"&&tt.pointerType!=="pen"&&(tt=a.currentTool,tt.cancelWaitAfter(),tt.standardMouseOver())}},a.ck=function(tt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===tt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===tt.pointerId&&(ot[1]=null)},a.Vp=b.Z["d"+yf[1]+yf[2]+"wI"+zc.slice(1,5)]["b"+Dx.slice(1,y)](b.Z,vf,y,y),b.Vc(!0),Vg(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}Xe.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},Xe.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(Yt,"resize",a.Ov,!1)}function As(a){30<a.Sq&&(a.Yh=1)}function Vd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Hi&&Hi.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}Xe.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Yt.devicePixelRatio||1},Xe.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Xe.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Xe.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Xe.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Xe.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Xe.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Xe.prototype.doFocus=function(){this.focus()},Xe.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Yt.scrollX||Yt.pageXOffset,y=Yt.scrollY||Yt.pageYOffset;this.ta.focus(),Yt.scrollTo(a,y)}},Xe.prototype.Oy=function(){this.H.R("GainedFocus")},Xe.prototype.Ny=function(){this.H.R("LostFocus")};function Ac(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===Ts&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function Ud(a){var y=new Kr;y.name="Background",a.Al(y),y=new Kr,y.name="",a.Al(y),y=new Kr,y.name="Foreground",a.Al(y),y=new Kr,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Kr,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Kr,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function df(a){var y=new Hn(Hn.Grid);y.name="GRID";var x=new fo;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new fo,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new fo,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new fo,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new fo,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new fo,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Mi,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 Yf(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Eh(this.H)}function cf(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Eh(this.H)}Xe.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var b=this.documentBounds,E=this.viewportBounds,z=this.rj,tt=b.x-z.left,ot=b.y-z.top,rt=b.width+z.left+z.right,lt=b.height+z.top+z.bottom,ut=b.right+z.right;z=b.bottom+z.bottom;var ft=E.x;b=E.y;var yt=E.width,Pt=E.height,bt=E.right,Nt=E.bottom;E=this.scale;var Qt=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Qt=Qt+a.scrollWidth-a.clientWidth;break;case"reverse":Qt=a.scrollWidth-Qt-a.clientWidth}var Wt=Qt;yt<rt||Pt<lt?(Qt=Zt.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==Wt&&(Qt.x=Wt/E+tt,this.ju=Wt),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Qt.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=Qt,Zt.free(Qt),this.Ee=this.qr=!1):(Qt=Zt.alloc(),a.uy&&this.allowHorizontalScroll&&(tt<ft&&(this.position=Qt.h(Wt+tt,this.position.y)),ut>bt&&(this.position=Qt.h(-(y.scrollWidth-this.Aa)+Wt-this.Aa/E+ut,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=Qt.h(this.position.x,a.scrollTop+ot)),z>Nt&&(this.position=Qt.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Zt.free(Qt),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ut=b.right,bt=E.right,z=b.bottom,Nt=E.bottom,tt=b.x,ft=E.x,ot=b.y,b=E.y,yt>=rt&&tt>=ft&&ut<=bt&&(x.style.width="1px"),Pt>=lt&&ot>=b&&z<=Nt&&(x.style.height="1px"))}},Xe.prototype.computeBounds=function(a){return a===void 0&&(a=new gn),ds(this),Mc(this,a)};function Mc(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,b=a.Wa.s,E=b.length,z=0;z<E;z++){var tt=b[z];if(tt.visible&&tt.isInDocumentBounds){tt=tt.Pa.s;for(var ot=tt.length,rt=0;rt<ot;rt++){var lt=tt[rt];lt.isInDocumentBounds&<.isVisible()&&(lt=lt.actualBounds,lt.w()&&(x?(x=!1,y.assign(lt)):y.ed(lt)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}Xe.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(fn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Un||(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 Un||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new gn(NaN,NaN,0,0):x};function Zl(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=Zt.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=gn.allocAt(0,0,b.width,b.height);var E=Zt.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,gn.free(b),Zt.free(E),Zt.free(x)}x=a.yh,y&&a.Fg!==Ts&&(x=a.Fg);var z=x!==Ts?pd(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var tt=a.ya/z,ot=a.zk,rt=a.pq;y&&!ot.sb()&&(rt.sb()||rt.Xb())&&(ot=rt.Xb()?jo:rt),ff(a,a.documentBounds,E,tt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,De.B(z.x,x)&&De.B(z.y,b)&&De.B(z.width,E)&&De.B(z.height,tt)||a.onViewportBoundsChanged(new gn(x,b,E,tt),z,y,!1)}}function pd(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var b=a.documentBounds;if(!b.w())return x;var E=b.width;b=b.height;var z=a.Aa+(a.gf?a.Db:0),tt=a.ya+(a.Be?a.Db:0),ot=z/E,rt=tt/b;return y===Vl?(y=Math.min(rt,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===qd?(y=rt>ot?(tt-a.Db)/b:(z-a.Db)/E,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}Xe.prototype.zoomToFit=function(){var a=this.sj;this.sj=Sd,this.scale=pd(this,Vl),a!==Sd&&(Zl(this,!1),ff(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Lt=Xe.prototype,Lt.BA=function(a,y){y===void 0&&(y=Vl);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===Vl||y===qd)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===qd?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 Zt(a.x,a.y)}},Lt.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Zt(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))},Lt.zz=function(a){if(a instanceof be){this.eq=a;var y=Zt.alloc();this.fq=this.op(a.ga(Ya,y)),Zt.free(y)}else this.eq=null,this.fq=_i};function ff(a,y,x,b,E,z){var tt=Zt.allocAt(a.pa.x,a.pa.y),ot=tt.x,rt=tt.y;if(a.eq!==null){var lt=Zt.alloc();lt=a.eq.ga(Ya,lt),ot=lt.x-a.fq.x/a.scale,rt=lt.y-a.fq.y/a.scale,E=la,Zt.free(lt)}(z||a.scrollMode===Sd)&&(E.sb()&&(x>y.width&&(ot=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(rt=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?(ot=Math.min(ot+x/2,y.right+Math.max(z,E.right)-x/2),ot=Math.max(ot,y.left-Math.max(z,E.left)+x/2),ot-=x/2):ot>y.left?ot=y.left:ot<y.right-x&&(ot=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(rt=Math.min(rt+b/2,y.bottom+Math.max(x,E.bottom)-b/2),rt=Math.max(rt,y.top-Math.max(x,E.top)+b/2),rt-=b/2):rt>y.top?rt=y.top:rt<y.bottom-b&&(rt=y.bottom-b)),tt.x=isFinite(ot)?ot:-a.yb.left,tt.y=isFinite(rt)?rt:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,tt),tt.x=y.x,tt.y=y.y),ms(a.Yd,a.pa,tt),a.pa.h(tt.x,tt.y),sh(a),Zt.free(tt)}Lt.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Au(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof Mi)return a}else if(a=Au(this,a,function(x){return x.part}),a instanceof Mi)return a;return null},Lt.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),ds(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 Au(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),ds(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}Lt.lz=function(a,y,x){return y===void 0&&(y=!0),Ch(this,a,function(b){return b.part},y?function(b){return b instanceof Mi&&b.canSelect()}:null,x)};function Ch(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof xn||E instanceof Ln||(E=new Ln),ds(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}Lt.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof xn||b instanceof Ln||(b=new Ln),ds(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},Lt.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),md(this,a,function(E){return E instanceof Mi&&(!x||E.canSelect())},y,b)},Lt.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof xn||E instanceof Ln||(E=new Ln),ds(this);for(var z=this.Wa.iteratorBackwards;z.next();){var tt=z.value;tt.visible&&tt.Cf(a,y,x,b,E)}return E},Lt.Nu=function(a,y,x,b,E,z){var tt=new Ln;ds(this);for(var ot=this.Wa.iteratorBackwards;ot.next();){var rt=ot.value;rt.visible&&rt.Nu(a,y,x,b,tt,E,z)}return tt};function md(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 xn||E instanceof Ln||(E=new Ln),ds(a),a=a.Wa.iteratorBackwards;a.next();){var tt=a.value;tt.visible&&!tt.isTemporary&&tt.Cf(y,z,x,b,E)}return E}Lt.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),Qh(this,a,y,function(z){return z instanceof Mi&&(!b||z.canSelect())},x,E)},Lt.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 xn||E instanceof Ln)&&(z=E),E=!0),z instanceof xn||z instanceof Ln||(z=new Ln),ds(this);for(var tt=this.Wa.iteratorBackwards;tt.next();){var ot=tt.value;ot.visible&&ot.og(a,y,x,b,E,z)}return z};function Qh(a,y,x,b,E,z){var tt=null;for(tt===void 0&&(tt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof xn||E instanceof Ln)&&(z=E),E=!0),z instanceof xn||z instanceof Ln||(z=new Ln),ds(a),a=a.Wa.iteratorBackwards;a.next();){var ot=a.value;ot.visible&&!ot.isTemporary&&ot.og(y,x,tt,b,E,z)}return z}Xe.prototype.acceptEvent=function(a){return ml(this,a,a instanceof MouseEvent)};function ml(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?vd(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),Wi&&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=Fc(y,y.target),b.targetObject=null,b}function Fc(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 kc(a,y,x,b,E,z){var tt=a.Qg;return a.Qg=a.cj,a.cj=tt,tt.diagram=a,tt.clickCount=1,a=tt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),tt.modifiers=a,tt.event=y,tt.timestamp=y.timeStamp,tt.button=y.button,tt.buttons=y.buttons,Wi&&y.button===0&&y.ctrlKey&&(tt.button=2),tt.down=x,tt.up=b,tt.handled=!1,tt.bubbles=E,tt.isMultiTouch=z,tt}function Kl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}Xe.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=ml(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(),Kl(x,a)},Xe.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ml(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(),Kl(x,a)},Xe.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ml(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),Kl(x,a)},Xe.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=ml(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),Kl(x,a)},Xe.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Zt(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?Ao(new Zt(y,a),this.Ab):new Zt(y,a)};function vd(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,tt=0,ot=0;b!==null&&(b=b.getBoundingClientRect(),tt=y.clientX-E/b.width*b.left,ot=y.clientY-z/b.height*b.top),x.viewPoint.h(tt,ot),a.Ab!==null?(y=Zt.allocAt(tt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),Zt.free(y)):x.documentPoint.h(tt,ot)}function Bc(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))}}Xe.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Dc(a){a.ld||ds(a),a.Va()}Xe.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Lt=Xe.prototype,Lt.Pz=function(){return this.kg},Lt.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,rl(this),this.hf=!1,this.du=new Zt(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&zn(function(){b.ld=!1,Cs(y,"Model"),a(b)},1)},Lt.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Yt.requestAnimationFrame(function(){y.kg&&y.bd()})}},Lt.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),rl(this))};function bh(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Eh(a)||(y&&ds(a),x&&Zl(a,!1))}function rl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,b=a.Xn;if(!x.isAnimating&&b.length!==0){for(var E=b.s,z=E.length,tt=0;tt<z;tt++){var ot=E[tt];Oa(ot,!1),ot.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(rt){rt.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Ac(a),bh(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(ah(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),ds(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,ds(a),a.ou||Dc(a),bh(a,!0,!1),tt=!1,z?(x=gn.alloc(),x.assign(a.viewportBounds),a.hf||(tt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Nc(a)),a.R("LayoutCompleted"),bh(a,!0,!1),gn.free(x)):x.Ok&&x.Qw&&(a.Fg!==Ts?a.scale=pd(a,a.Fg):a.yh!==Ts?a.scale=pd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Zl(a,!0)),z&&tt&&a.eb("Initial Layout"),ds(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function Nc(a){if(a.Fg!==Ts)a.scale=pd(a,a.Fg);else if(a.yh!==Ts)a.scale=pd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Zl(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),ah(a)}function ds(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new Ln,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof oo&&b.U&65536&&(b.U=b.U^65536)})}}Lt.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof oo||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof oo&&x.isVisible()&&na(this,x);for(a.reset();a.next();)x=a.value,x instanceof Un&&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 Xo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function na(a,y){for(var x=rn(),b=rn(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof oo?(Yl(z)||Ks(z)||_d(z))&&na(a,z):z instanceof Un?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(pn(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();pn(b)}Lt.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},Lt.gc=function(a){if(this.Ka!==null){if(this.ta===null&&xe("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){iu(this);var x=this.Aa,b=this.ya;if(a.Gv.resize(x,b,x,b),x=this.Wa.s,b=x.length,this.Fd(x,b,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var E=this.Ca,z=Math.round(y.x*E)/E,tt=Math.round(y.y*E)/E,ot=this.Ab;for(ot.reset(),E!==1&&ot.scale(E),y.x===0&&y.y===0||ot.translate(-z,-tt),a.ti=null,Xy(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ns(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?jc(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(mo.prototype.Cd=mo.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,iu(this),this.Ka.style.opacity!=="0")){if(b=a!==this.ib,y=this.Wa.s,E=y.length,this.Fd(y,E,this,this.viewportBounds),b)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break t;z=this.Ab,z.reset(),tt=this.Mb,ot=this.pa;var rt=this.Ca,lt=Math.round(ot.x*rt)/rt,ut=Math.round(ot.y*rt)/rt;for(rt!==1&&z.scale(rt),ot.x===0&&ot.y===0||z.translate(-lt,-ut),a.setTransform(tt,0,0,tt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ns(this,a),ot=0;ot<E;ot++)a.setTransform(tt,0,0,tt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ot].gc(a,this);if(y=!1,this.Yf?jc(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=Hi&&Hi.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 Fa(a,y,x,b,E,z,tt,ot,rt,lt){if(a.Ka!==null){a.ta===null&&xe("No canvas specified"),tt===void 0&&(tt=null),ot===void 0&&(ot=null),rt===void 0&&(rt=!1),lt===void 0&&(lt=!1),iu(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ut=a.Ca;a.Ca=E;var ft=a.Wa.s,yt=ft.length;try{var Pt=new gn(z.x,z.y,b.width/E,b.height/E),bt=Pt.copy();bt.Co(x),ah(a,bt),ds(a),a.Fd(ft,yt,a,Pt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),ot!==null&&ot!==""&&(y.fillStyle=ot,y.ox(0,0,b.width,b.height));var Nt=a.Mb;y.scale(Nt,Nt);var Qt=mo.alloc();Qt.reset(),Qt.translate(x.left,x.top),Qt.scale(E),z.x===0&&z.y===0||Qt.translate(-z.x,-z.y),y.setTransform(Qt.m11,Qt.m12,Qt.m21,Qt.m22,Qt.dx,Qt.dy),y.yc(),y instanceof Al&&Xy(y,Qt.m11,Qt.m12,Qt.m21,Qt.m22,Qt.dx,Qt.dy),mo.free(Qt),Ns(a,y),y.globalAlpha=a.pb;var Wt=a.Qj("Grid");if(tt){var ae=new Ln,ue=tt.iterator;for(ue.reset();ue.next();){var ce=ue.value;ce instanceof Mi&&(lt||ce.layer!==Wt)&&(ce.Gj(),ae.add(ce))}for(lt=0;lt<yt;lt++)pl(ft[lt],y,a,ae,rt);ae.each(function(Je){return Je.Gj()})}else for(ae=0;ae<yt;ae++){var Pe=ft[ae];Pe===Wt?lt&&Pe.gc(y,a,!0):Pe.gc(y,a,rt)}a.$i=!1,a.Yf&&jc(a.Yf,a)&&a.Vp()}finally{a.Ca=ut,a.ib.Vc(!0),a.vd=!0,a.Fd(ft,yt,a,a.viewportBounds),ah(a),a.ib instanceof Al&&(a.ib.Nj.PA(),a.redraw())}}}Lt.Gf=function(a){return this.Rg[a]},Lt.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Lt.Tx=function(){this.Rg=new ci,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Wi||Ci),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ns(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Lt.Ql=function(a){return this.on[a]},Lt.sA=function(a,y){this.on[a]=y},Lt.Sx=function(){this.on=new ci,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Lt.set=function(a){return Object.assign(this,a),this},Lt.Du=function(a){return this.nm(a)},Lt.nm=function(a){return nu(this,a),this};function nu(a,y){var x=a instanceof Hn,b=a instanceof Xe,E;for(E in y){E===""&&xe("Setting properties requires non-empty property names");var z=a,tt=E;if(x||b){var ot=E.indexOf(".");if(0<ot){var rt=E.substring(0,ot);x?z=a.fb(rt):(z=a[rt],z==null&&(z=a.toolManager[rt])),We(z)?tt=E.substr(ot+1):xe("Unable to find object named: "+rt+" in "+a.toString()+" when trying to set property: "+E)}}if(tt[0]!=="_"&&!In(z,tt))if(b&&tt==="ModelChanged"){a.Yw(y[tt]);continue}else if(b&&tt==="Changed"){a.Pe(y[tt]);continue}else if(b&&In(a.toolManager,tt))z=a.toolManager;else if(b&&am(a,tt)){a.Bj(tt,y[tt]);continue}else if(a instanceof vi&&tt==="Changed"){a.Pe(y[tt]);continue}else xe('Trying to set undefined property "'+tt+'" on object: '+z.toString());z[tt]=y[E],tt[0]==="_"&&z instanceof be&&z.Vw(tt)}}Lt.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new si,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Lt.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")},Xe.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!==mf&&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=gn.alloc(),qg(this,this.computeBounds(b)),gn.free(b)),b=this.ta,b===null||b instanceof lh)))){var tt=this.Mb;E=this.Aa*tt;var ot=this.ya*tt,rt=this.scale*tt;z=Math.round(Math.round(y.x*rt)-Math.round(a.x*rt)),y=Math.round(Math.round(y.y*rt)-Math.round(a.y*rt)),rt=this.jw,a=this.oy,rt.width!==E&&(rt.width=E),rt.height!==ot&&(rt.height=ot),a.clearRect(0,0,E,ot),rt=190*tt;var lt=70*tt,ut=Math.max(z,0),ft=Math.max(y,0),yt=Math.floor(E-ut),Pt=Math.floor(ot-ft);a.drawImage(b.Oa,ut,ft,yt,Pt,0,0,yt,Pt),jc(this.Yf,this)&&a.clearRect(0,0,rt,lt),b=rn(),a=rn(),Pt=Math.abs(z),yt=Math.abs(y);var bt=ut===0?0:E-Pt;ut=Zt.allocAt(bt,0),Pt=Zt.allocAt(Pt+bt,ot),a.push(new gn(Math.min(ut.x,Pt.x),Math.min(ut.y,Pt.y),Math.abs(ut.x-Pt.x),Math.abs(ut.y-Pt.y)));var Nt=this.Ab;if(Nt.reset(),Nt.scale(tt,tt),this.Ca!==1&&Nt.scale(this.Ca),tt=this.pa,(tt.x!==0||tt.y!==0)&&isFinite(tt.x)&&isFinite(tt.y)&&Nt.translate(-tt.x,-tt.y),Ao(ut,Nt),Ao(Pt,Nt),b.push(new gn(Math.min(ut.x,Pt.x),Math.min(ut.y,Pt.y),Math.abs(ut.x-Pt.x),Math.abs(ut.y-Pt.y))),bt=ft===0?0:ot-yt,ut.h(0,bt),Pt.h(E,yt+bt),a.push(new gn(Math.min(ut.x,Pt.x),Math.min(ut.y,Pt.y),Math.abs(ut.x-Pt.x),Math.abs(ut.y-Pt.y))),Ao(ut,Nt),Ao(Pt,Nt),b.push(new gn(Math.min(ut.x,Pt.x),Math.min(ut.y,Pt.y),Math.abs(ut.x-Pt.x),Math.abs(ut.y-Pt.y))),jc(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,ut.h(E,ot),Pt.h(rt+E,lt+ot),a.push(new gn(Math.min(ut.x,Pt.x),Math.min(ut.y,Pt.y),Math.abs(ut.x-Pt.x),Math.abs(ut.y-Pt.y))),Ao(ut,Nt),Ao(Pt,Nt),b.push(new gn(Math.min(ut.x,Pt.x),Math.min(ut.y,Pt.y),Math.abs(ut.x-Pt.x),Math.abs(ut.y-Pt.y)))),Zt.free(ut),Zt.free(Pt),bh(this,!1,!0),this.Ka===null&&xe("No div specified"),this.ta===null&&xe("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(iu(this),ot=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*ot,this.ya*ot),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,tt=this.Ca,rt=Math.round(z.x*tt)/tt,lt=Math.round(z.y*tt)/tt,y=this.Ab,y.reset(),tt!==1&&y.scale(tt),z.x===0&&z.y===0||y.translate(-rt,-lt),E.save(),E.beginPath(),z=a.length,tt=0;tt<z;tt++)rt=a[tt],rt.width!==0&&rt.height!==0&&E.rect(Math.floor(rt.x),Math.floor(rt.y),Math.ceil(rt.width),Math.ceil(rt.height));for(E.clip(),E.setTransform(ot,0,0,ot,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),Ns(this,E),E.globalAlpha=this.pb,ot=0;ot<z;ot++)if(tt=y[ot],rt=b,tt.visible&&tt.pb!==0){lt=ys(tt,E),ft=tt.Zq,ft.length=0,ut=this.scale,yt=gn.alloc(),Pt=tt.Pa.s,Nt=Pt.length,bt=rt.length;for(var Qt=0;Qt<Nt;Qt++){var Wt=Pt[Qt],ae=Uc(Wt,Wt.actualBounds);t:{for(var ue=2/ut,ce=4/ut,Pe=0;Pe<bt;Pe++){var Je=rt[Pe];if(Je.width!==0&&Je.height!==0&&ae.Vu(Je.x-ue,Je.y-ue,Je.width+ce,Je.height+ce)){ae=!0;break t}}ae=!1}ae&&tt.Oj(E,Wt,this,ft,ut,yt,!0)}gn.free(yt),E.globalAlpha=lt}E.restore(),E.Vc(!0),this.Yf&&jc(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}pn(b),pn(a),this.ld=!1}}else this.bd();x&&(As(this),this.bd(),Vd(this,!0))}else x?(As(this),this.bd(),Vd(this,!0)):this.bd()}};function iu(a){a.pn!==!1&&(a.pn=!1,Tc(a,a.Aa,a.ya))}function Tc(a,y,x){sh(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Eh(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,b=a.ya,E=a.Ka,z=!1,tt=a.gf?a.Db:0,ot=a.Be?a.Db:0,rt=E.clientWidth||x+tt,lt=E.clientHeight||b+ot,ut=a.viewportBounds;E=ut.x;var ft=ut.y,yt=ut.width,Pt=ut.height;if((rt!==x+tt||lt!==b+ot)&&(a.gf=!1,a.Be=!1,ot=tt=0,a.Aa=rt,a.ya=lt,z=a.pn=!0,sh(a)),!a.hf||!a.viewportBounds.w())return!0;var bt=a.ku,Nt=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Qt=a.documentBounds,Wt=0,ae=0,ue=0,ce=0,Pe=ut.width,Je=ut.height,ti=a.rj;a.contentAlignment.sb()?(Qt.width>Pe&&(Wt=ti.left,ae=ti.right),Qt.height>Je&&(ue=ti.top,ce=ti.bottom)):(Wt=ti.left,ae=ti.right,ue=ti.top,ce=ti.bottom);var fi=Qt.width+Wt+ae,li=Qt.height+ue+ce;ti=a.scale;var Vn=fi>rt/ti,Fn=li>lt/ti;if(!(z||a.gf||a.Be||Vn||Fn))return!0;Wt=Qt.x-Wt,rt=ut.x,ae=Qt.right+ae,lt=ut.right+tt,ue=Qt.y-ue;var no=ut.y;Qt=Qt.bottom+ce,ut=ut.bottom+ot;var Xi="1px";if(ce="1px",a.scrollMode===Sd&&(Vn||Fn)&&(Vn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Vn=1,Wt+1<rt&&(Vn=Math.max((rt-Wt)*ti+a.Aa,Vn)),ae>lt+1&&(Vn=Math.max((ae-lt)*ti+a.Aa,Vn)),Pe+tt+1<fi&&(Vn=Math.max((fi-Pe)*ti+a.Aa,Vn)),Xi=Vn.toString()+"px"),Fn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Vn=1,ue+1<no&&(Vn=Math.max((no-ue)*ti+a.ya,Vn)),Qt>ut+1&&(Vn=Math.max((Qt-ut)*ti+a.ya,Vn)),Je+ot+1<li&&(Vn=Math.max((li-Je)*ti+a.ya,Vn)),ce=Vn.toString()+"px")),Vn=Xi!=="1px",Fn=ce!=="1px",Vn&&Fn||!Vn&&!Fn||(Fn&&(lt-=a.Db),Vn&&(ut-=a.Db),fi<Pe+tt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(tt=1,Wt+1<rt&&(tt=Math.max((rt-Wt)*ti+a.Aa,tt)),ae>lt+1&&(tt=Math.max((ae-lt)*ti+a.Aa,tt)),Pe+1<fi&&(tt=Math.max((fi-Pe)*ti+a.Aa,tt)),Xi=tt.toString()+"px"),Vn=Xi!=="1px",tt=a.ya,Vn!==a.Be&&(tt=Vn?a.ya-a.Db:a.ya+a.Db),li<Je+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,ue+1<no&&(ot=Math.max((no-ue)*ti+tt,ot)),Qt>ut+1&&(ot=Math.max((Qt-ut)*ti+tt,ot)),Je+1<li&&(ot=Math.max((li-Je)*ti+tt,ot)),ce=ot.toString()+"px"),Fn=ce!=="1px"),a.qr&&Vn===a.Be&&Fn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Vn!==a.Be&&(Xi==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Vn,Nt.style.width=Xi,Fn!==a.gf&&(ce==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=Zt.alloc(),Fn?(y.style.left=a.Db+"px",a.position=ot.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ot.h(a.pa.x-a.Db/a.scale,a.pa.y)),Zt.free(ot))),z&&sh(a),a.gf=Fn,Nt.style.height=ce,a.gu=!0,z&&(a.pn=!0),y=bt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Pe+1<fi?y=(a.position.x-Wt)*ti:Wt+1<rt?y=bt.scrollWidth-bt.clientWidth:ae>lt+1&&(y=a.position.x*ti)),a.tn)switch(a.bu){case"negative":y=-(bt.scrollWidth-y-bt.clientWidth);break;case"reverse":y=bt.scrollWidth-y-bt.clientWidth}return bt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Je+1<li?bt.scrollTop=(a.position.y-ue)*ti:ue+1<no?bt.scrollTop=bt.scrollHeight-bt.clientHeight:Qt>ut+1&&(bt.scrollTop=a.position.y*ti)),rt=a.Aa,lt=a.ya,bt.style.width=rt+(a.gf?a.Db:0)+"px",bt.style.height=lt+(a.Be?a.Db:0)+"px",x!==rt||b!==lt||a.animationManager.zb?(x=gn.allocAt(E,ft,yt,Pt),a.onViewportBoundsChanged(x,a.viewportBounds,ti,z),gn.free(x),!1):!0}Lt=Xe.prototype,Lt.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&xe("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&&xe('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(da,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Lt.oi=function(a){this.partManager.oi(a);var y=this;Zc(a,function(x){Oc(y,x)}),(a instanceof Xo||a instanceof oo&&a.placeholder!==null)&&a.v(),a.data!==null&&Zc(a,function(x){sy(y.partManager,x)}),Ks(a)!==!0&&_d(a)!==!0||this.De.add(a),R1(a,!0,this),j1(a)?(a.actualBounds.w()&&this.N(Uc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Uc(a,a.actualBounds)),this.$b()},Lt.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Zc(a,function(x){ly(y.partManager,x,y)}),this.De.remove(a),j1(a)?(a.actualBounds.w()&&this.N(Uc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Uc(a,a.actualBounds)),this.$b()},Lt.remove=function(a){Yd(this,a,!0)};function Yd(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(Ba,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}Lt.Is=function(a,y){if(y===void 0&&(y=!1),fn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Ln,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Lt.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},Xe.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=Xf(this)),this.toolManager!==null){var E=new si;if(a!==null)if(fn(a))for(var z=0;z<a.length;z++)pu(this,E,a[z],x,b);else for(a=a.iterator;a.next();)pu(this,E,a.value,x,b);else{for(a=this.parts;a.next();)pu(this,E,a.value,x,b);for(a=this.nodes;a.next();)pu(this,E,a.value,x,b);for(a=this.links;a.next();)pu(this,E,a.value,x,b)}rh(this,E,y,b,x)}};function pu(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=Xf(a)),x instanceof ii){if(y.add(x,a.Pd(E,x,x.location)),x instanceof oo&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)pu(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var tt=z.value;if(!y.contains(tt)){var ot=tt.fromNode,rt=tt.toNode;ot!==null&&y.contains(ot)&&rt!==null&&y.contains(rt)&&pu(a,y,tt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)pu(a,y,x.value,b,E)}else if(x instanceof Un)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)pu(a,y,x.value,b,E);else x instanceof Xo||y.add(x,a.Pd(E,x,x.location))}function rh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Zt.alloc(),tt=Zt.alloc();tt.assign(x),isNaN(tt.x)&&(tt.x=0),isNaN(tt.y)&&(tt.y=0),(x=a.Mr)||Qf(a,y);for(var ot=rn(),rt=rn(),lt=y.iterator,ut=Zt.alloc();lt.next();){var ft=lt.key,yt=lt.value;if(ft.Zc()){var Pt=Ug(a,ft,y);Pt!==null?ot.push(new it(ft,yt,Pt)):(!E||ft.canMove())&&(Pt=yt.point,z.assign(Pt),a.computeMove(ft,z.add(tt),b,ut),ft.location=ut,yt.shifted===void 0&&(yt.shifted=new Zt),yt.shifted.assign(ut.re(Pt)))}else lt.key instanceof Un&&rt.push(lt.sa)}for(Zt.free(ut),E=ot.length,lt=0;lt<E;lt++)ft=ot[lt],z.assign(ft.info.point),ft.Su.shifted===void 0&&(ft.Su.shifted=new Zt),ft.node.location=z.add(ft.Su.shifted);for(E=Zt.alloc(),lt=Zt.alloc(),ft=rt.length,yt=0;yt<ft;yt++){var bt=rt[yt];if(Pt=bt.key,Pt instanceof Un)if(Pt.suspendsRouting){Pt.Tg=null,ut=Pt.fromNode;var Nt=Pt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(Nt=bt.value.point,Pt.dragComputation===null)y.add(Pt,a.Pd(b,Pt,tt)),Ad(Pt,tt.x-Nt.x,tt.y-Nt.y);else{bt=Zt.allocAt(0,0),(ut=Pt.i(0))&&ut.w()&&bt.assign(ut);var Qt=ut=Zt.alloc().assign(bt).add(tt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Qt=Zt.alloc(),Jf(a,Pt,ut,Qt,b)),ut.assign(Pt.dragComputation(Pt,ut,Qt)).re(bt),y.add(Pt,a.Pd(b,Pt,ut)),Ad(Pt,ut.x-Nt.x,ut.y-Nt.y),Zt.free(bt),Zt.free(ut),Qt!==ut&&Zt.free(Qt)}else ut!==null&&(E.assign(ut.location),Qt=y.I(ut),Qt!==null&&E.re(Qt.point)),Nt!==null&&(lt.assign(Nt.location),Qt=y.I(Nt),Qt!==null&<.re(Qt.point)),ut!==null&&Nt!==null?E.Xa(lt)?(ut=bt.value.point,Nt=z,Nt.assign(E),Nt.re(ut),y.add(Pt,a.Pd(b,Pt,E)),Ad(Pt,Nt.x,Nt.y)):(Pt.suspendsRouting=!1,Pt.bb()):(bt=bt.value.point,ut=ut!==null?E:Nt!==null?lt:tt,y.add(Pt,a.Pd(b,Pt,ut)),Ad(Pt,ut.x-bt.x,ut.y-bt.y))}else(Pt.fromNode===null||Pt.toNode===null)&&(ut=bt.value.point,y.add(Pt,a.Pd(b,Pt,tt)),Ad(Pt,tt.x-ut.x,tt.y-ut.y))}Zt.free(z),Zt.free(tt),Zt.free(E),Zt.free(lt),pn(ot),pn(rt),x||(ds(a),Xd(a,y))}}Xe.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Zt),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Zt.alloc(),Jf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var tt=a.minLocation,ot=tt.x;isNaN(ot)&&(ot=z?Math.round(1e3*a.location.x)/1e3:a.location.x),tt=tt.y,isNaN(tt)&&(tt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var rt=a.maxLocation,lt=rt.x;return isNaN(lt)&&(lt=z?Math.round(1e3*a.location.x)/1e3:a.location.x),rt=rt.y,isNaN(rt)&&(rt=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(ot,Math.min(x.x,lt)),Math.max(tt,Math.min(x.y,rt))),E!==y&&Zt.free(E),b};function Xf(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=Xf(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var tt=E.gridSnapOrigin,ot=tt.x;if(tt=tt.y,E=E.gridSnapCellSpot,z!==null){var rt=z.gridCellSize;isNaN(a)&&(a=rt.width),isNaN(y)&&(y=rt.height),z=z.gridOrigin,isNaN(ot)&&(ot=z.x),isNaN(tt)&&(tt=z.y)}z=Zt.allocAt(0,0),z.yi(0,0,a,y,E),De.No(x.x,x.y,ot+z.x,tt+z.y,a,y,b),Zt.free(z)}}function Qf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Un&&(y.suspendsRouting=!0)}function Xd(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Un&&(x.suspendsRouting=!1,Yv(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}Lt=Xe.prototype,Lt.Pd=function(a,y,x){if(x===void 0)return new qh(Co);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new qh(new Zt(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new qh(x.copy())};function Yg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&xe("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&xe("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&xe("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&xe("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&&xe("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Lt.Al=function(a){Yg(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(da,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Lt.Ww=function(a,y){Yg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ba,"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(da,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},Lt.Cy=function(a,y){Yg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Ba,"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(da,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},Lt.kA=function(a){if(a.diagram!==this&&xe("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(Ba,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Lt.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Lt.Yw=function(a){return this.pf===null&&(this.pf=new xn),this.pf.add(a),this.model.Pe(a),this},Lt.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Lt.Pe=function(a){return this.zg===null&&(this.zg=new xn),this.zg.add(a),this},Lt.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Lt.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ol&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},Lt.cb=function(a,y,x,b,E,z,tt){z===void 0&&(z=null),tt===void 0&&(tt=null);var ot=new Gr;ot.diagram=this,ot.change=a,ot.propertyName=y,ot.object=x,ot.oldValue=b,ot.oldParam=z,ot.newValue=E,ot.newParam=tt,this.ds(ot)},Lt.g=function(a,y,x,b,E){this.cb(Zr,a,this,y,x,b,E)},Xe.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===Zr){var E=a.object;if(Ir(E,a.propertyName,a.I(y)),E instanceof be){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===da){var tt=a.object,ot=a.newParam,rt=a.newValue;if(tt instanceof Hn)if(typeof ot=="number"&&rt instanceof be){y?tt.pc(ot):tt.Gb(ot,rt);var lt=tt.part;lt!==null&<.Wb()}else typeof ot=="number"&&rt instanceof Ia&&(rt.isRow?h1(tt,ot,y?void 0:rt):d1(tt,ot,y?void 0:rt));else if(tt instanceof Kr){var ut=a.oldParam===!0;typeof ot=="number"&&rt instanceof Mi&&(y?(rt.isSelected=!1,rt.isHighlighted=!1,rt.Wb(),tt.pc(ut?ot:-1,rt,ut)):tt.oi(ot,rt,ut))}else tt instanceof Xe?typeof ot=="number"&&rt instanceof Kr&&(y?this.Wa.mb(ot):(rt.Xe(this),this.Wa.Gb(ot,rt))):xe("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Ba){var ft=a.object,yt=a.oldParam,Pt=a.oldValue;if(ft instanceof Hn)typeof yt=="number"&&Pt instanceof be?y?ft.Gb(yt,Pt):ft.pc(yt):typeof yt=="number"&&Pt instanceof Ia&&(Pt.isRow?h1(ft,yt,y?Pt:void 0):d1(ft,yt,y?Pt:void 0));else if(ft instanceof Kr){var bt=a.newParam===!0;typeof yt=="number"&&Pt instanceof Mi&&(y?0>ft.Pa.indexOf(Pt)&&ft.oi(yt,Pt,bt):(Pt.isSelected=!1,Pt.isHighlighted=!1,Pt.Wb(),ft.pc(bt?yt:-1,Pt,bt)))}else ft instanceof Xe?typeof yt=="number"&&Pt instanceof Kr&&(y?(Pt.Xe(this),this.Wa.Gb(yt,Pt)):this.Wa.mb(yt)):xe("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==ol&&xe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},Xe.prototype.Ea=function(a){return this.undoManager.Ea(a)},Xe.prototype.eb=function(a){return this.undoManager.eb(a)},Xe.prototype.Kf=function(){return this.undoManager.Kf()},Xe.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}},Xe.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},Xe.prototype.rp=function(){this.partManager.rp()};function Xg(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,sh(a),a.N(),a.Ee=!0,b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,sh(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,tt=a.ya,ot=a.zoomPoint.x,rt=a.zoomPoint.y,lt=a.contentAlignment;isNaN(ot)&&(lt.$c()?lt.Hf(Ru)?ot=0:lt.Hf(Ws)&&(ot=z-1):ot=lt.sb()?lt.x*(z-1):z/2),isNaN(rt)&&(lt.$c()?lt.Hf(bu)?rt=0:lt.Hf(cl)&&(rt=tt-1):rt=lt.sb()?lt.y*(tt-1):tt/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Zt.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+rt/y-rt/x),a.position=z,Zt.free(z),a.Ca=x,sh(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Zl(a,!1),b.zb&&(ps(b)||b.ce.add(b.H,"scale",y,a.Ca))}}Xe.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!==Ts||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof zr&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Zf(E,this)),this.vb||this.invalidateViewport(a,y),ah(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 ah(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Yn.alloc(),E=1,z=1,tt=x.O.s,ot=tt.length,rt=0;rt<ot;rt++){var lt=tt[rt],ut=Math.abs(lt.interval);2>ut||(pv(lt.figure)?z=z*ut/De.vx(z,ut):E=E*ut/De.vx(E,ut))}if(tt=x.gridCellSize,b.h(z*tt.width,E*tt.height),y!==void 0)E=y.width,z=y.height,a=y.x,tt=y.y;else{if(y=gn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){gn.free(y);return}E=y.width,z=y.height,a=y.x,tt=y.y,gn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Zt.alloc(),De.No(a,tt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Yn.free(b),x.part.location=y,Zt.free(y)}}Xe.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)}},Xe.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))},Xe.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),fn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof Mi||xe("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 Mi||xe("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},Xe.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()}},Lt=Xe.prototype,Lt.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Lt.Jz=function(a){a=new Ln().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof Mi||xe("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Lt.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Zt.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)),Zt.free(z);return}xe("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):xe("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Zt.free(z)},Lt.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)},Lt.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Lt.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)},Lt.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,tt=y.m11,ot=y.m12,rt=y.m21,lt=y.m22,ut=y.dx,ft=y.dy,yt=x*tt+b*rt+ut;y=x*ot+b*lt+ft;var Pt=E*tt+b*rt+ut;return a=E*ot+b*lt+ft,b=x*tt+z*rt+ut,x=x*ot+z*lt+ft,tt=E*tt+z*rt+ut,E=E*ot+z*lt+ft,z=Math.min(yt,Pt),yt=Math.max(yt,Pt),Pt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),yt=Math.max(yt,b),Pt=Math.min(Pt,x),y=Math.max(y,x),z=Math.min(z,tt),yt=Math.max(yt,tt),Pt=Math.min(Pt,E),y=Math.max(y,E),new gn(z,Pt,yt-z,y-Pt)},Lt.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),Ao(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 cr}Xe.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===ol&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(rt){return rt.diagram=E}),a.mouseMoveTools.each(function(rt){return rt.diagram=E}),a.mouseUpTools.each(function(rt){return rt.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===ol){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ds(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ns(z),b==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),b!=="CommittedTransaction"&&b!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var tt=a.isTransactionFinished;if(tt&&(om(this),this.As.clear(),aa(this.animationManager)),!this.Rt&&tt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;zn(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function Oc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Jd(a,y[b])}function Jd(a,y){if(y instanceof ul){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Ln&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function Qg(a,y){if(y instanceof ul){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var b=x.getAttribute("src")||"",E=a.Og.I(b);if(E!==null){for(var z=0;z<E.length;z++)if(E[z]===y){E.splice(z,1),E.length===0&&(a.Og.remove(b),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof Ln&&x.Bg.remove(a),pg(b));break}}}}}Xe.prototype.Wd=function(){this.partManager.Wd()},Xe.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},Xe.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},Xe.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},Xe.prototype.Vb=function(a){return this.partManager.Vb(a)},Xe.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Lt=Xe.prototype,Lt.Lc=function(a){return this.partManager.Lc(a)},Lt.ii=function(a){return this.partManager.ii(a)},Lt.Kc=function(a){return this.partManager.Kc(a)},Lt.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:En($i(y)))},Lt.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:En($i(y)))};function sh(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),Zl(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Lt.Va=function(){if(this.Zi){var a=gn.alloc();qg(this,this.computeBounds(a)),gn.free(a)}},Lt.rz=function(){for(var a=new Ln,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},Lt.qz=function(){return this.ai.iterator},Lt.Uz=function(a){ds(this),a&&qf(this,!0),this.ld?$g(this,!1):(this.Jk=!0,rl(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||Cs(z,"Layout")),a.xh=!1;for(var tt=a.ai.iterator;tt.next();)_g(a,tt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),ds(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||ns(z),a.aa=x}}}function _g(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)_g(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),na(a,y),E.isValidLayout=!0):a.xh=!0)}}Lt.yz=function(){for(var a=new xn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ev(a){function y(E){var z=E.toLowerCase(),tt=new xn;x.add(E,tt),x.add(z,tt),b.add(E,E),b.add(z,E)}var x=new si,b=new si;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;xe("Unknown DiagramEvent name: "+y)}Lt.Bj=function(a,y){return a=$f(this,a),a!==null&&a.add(y),this},Lt.am=function(a,y){a=$f(this,a),a!==null&&a.remove(y)},Lt.R=function(a,y,x){var b=$f(this,a),E=new Vh;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 _f(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Lt.Yj=function(a,y){return tg(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},Xe.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Mc(this,a):a.assign(this.documentBounds)};function tg(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new Mp(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=gn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var tt=z.value,ot=tt.layer;ot!==null&&ot.visible&&!ot.isTemporary&&eg(a,tt,b,y)}gn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=gn.alloc(),z=x.memberParts;z.next();)tt=z.value,tt instanceof ii&&eg(a,tt,b,y);gn.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 eg(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(Fd,x,y+1);else for(var tt=x;tt<=y;tt++)z[tt]=Fd}else if(y instanceof oo)for(y=y.memberParts;y.next();)E=y.value,E instanceof ii&&eg(a,E,x,b)}}function yd(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}Xe.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():tp(this)};function tp(a){a.vk===-1&&(a.vk=zn(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=gn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),qg(a,y),gn.free(y),a.Fc=!0,a.bd(),tp(a))}},a.vp))}Xe.prototype.ug=function(){this.vk!==-1&&(Yt.clearTimeout(this.vk),this.vk=-1)},Xe.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=gn.allocAt(0,0,b.width*E,b.height*E);var z=Zt.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var tt=Math.max(this.scrollHorizontalLineChange,1);tt|=0,z.x-=tt,a.x<b.x+x.left/2&&(z.x-=tt),a.x<b.x+x.left/4&&(z.x-=4*tt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(tt=Math.max(this.scrollHorizontalLineChange,1),tt|=0,z.x+=tt,a.x>b.x+b.width-x.right/2&&(z.x+=tt),a.x>b.x+b.width-x.right/4&&(z.x+=4*tt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y-=tt,a.y<b.y+x.top/2&&(z.y-=tt),a.y<b.y+x.top/4&&(z.y-=4*tt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(tt=Math.max(this.scrollVerticalLineChange,1),tt|=0,z.y+=tt,a.y>b.y+b.height-x.bottom/2&&(z.y+=tt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*tt)),z.Xa(Co)||(y=new Zt(y.x+z.x/E,y.y+z.y/E)),gn.free(b),Zt.free(z),y},Lt=Xe.prototype,Lt.Cs=function(){return null},Lt.av=function(){return null},Lt.bs=function(a,y){this.pj.add(a,y)},Lt.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof oo&&(y.$p=null)})};function gf(a,y,x){function b(){var ut=+new Date;for(z=!0,tt.reset();tt.next();)if(!tt.value[0].al){z=!1;break}z||ut-lt>rt?y(x,E,ot):Yt.requestAnimationFrame(b)}for(var E=x.callback,z=!0,tt=a.Og.iterator;tt.next();)if(!tt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var ot=a,rt=x.callbackTimeout||300,lt=+new Date;return Yt.requestAnimationFrame(function(){b()}),null}Lt.Wz=function(a){return ra?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Lt.Jx=function(a){return a===void 0&&(a={}),gf(this,this.Xz,a)},Lt.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 zc+"data":E=b.getImageData(0,0,x.width,x.height);break;case zc:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&xe('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"&&xe("properties argument must be an Object.");var E=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var tt=y.maxSize;y.maxSize===void 0&&(tt=x==="SVG"?new Yn(1/0,1/0):new Yn(2e3,2e3));var ot=y.position||null,rt=y.parts||null,lt=y.padding===void 0?1:y.padding,ut=y.background||null,ft=y.omitTemporary;ft===void 0&&(ft=!0);var yt=y.document||document,Pt=y.elementFinished||null,bt=y.showTemporary;bt===void 0&&(bt=!ft),y=y.showGrid,y===void 0&&(y=bt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof lt=="number"?lt=new Bi(lt):lt instanceof Bi||xe("MakeImage padding must be a Margin or a number."),lt.left=Math.max(lt.left,0),lt.right=Math.max(lt.right,0),lt.top=Math.max(lt.top,0),lt.bottom=Math.max(lt.bottom,0),a.ib.Vc(!0),ft=new vu(null,yt,void 0,!0);var Nt=ft.context;if(!(E||z||rt||ot))return ft.width=a.Aa+Math.ceil(lt.left+lt.right),ft.height=a.ya+Math.ceil(lt.top+lt.bottom),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=yt,b.hs=Pt,Fa(a,b.context,lt,new Yn(ft.width,ft.height),a.Ca,a.pa,rt,ut,bt,y),b.context):(a.Xm=!1,Fa(a,Nt,lt,new Yn(ft.width,ft.height),a.Ca,a.pa,rt,ut,bt,y),a.Xm=!0,ft.context);var Qt=a.Pp,Wt=a.documentBounds.copy();if(Wt.Fv(a.yb),bt)for(var ae=a.Wa.s,ue=ae.length,ce=0;ce<ue;ce++){var Pe=ae[ce];if(Pe.visible&&Pe.isTemporary){Pe=Pe.Pa.s;for(var Je=Pe.length,ti=0;ti<Je;ti++){var fi=Pe[ti];fi.isInDocumentBounds&&fi.isVisible()&&(fi=fi.actualBounds,fi.w()&&Wt.ed(fi))}}}if(ae=new Zt(Wt.x,Wt.y),rt!==null){for(ue=new gn(0,0,0,0),ce=!0,Pe=rt.iterator,Pe.reset();Pe.next();)Je=Pe.value,Je instanceof Mi&&(ti=Je.layer,ti!==null&&!ti.visible||ti!==null&&!bt&&ti.isTemporary||!Je.isVisible()||(Je=Je.actualBounds,Je.w()&&(ce?(ce=!1,ue.assign(Je)):ue.ed(Je))));Wt.width=ue.width,Wt.height=ue.height,ae.x=ue.x,ae.y=ue.y}return ot!==null&&ot.w()&&(ae=ot,z||(z=Qt)),ue=ot=0,lt!==null&&(ot=lt.left+lt.right,ue=lt.top+lt.bottom),ce=Pe=0,E!==null&&(Pe=E.width,ce=E.height,isFinite(Pe)&&(Pe=Math.max(0,Pe-ot)),isFinite(ce)&&(ce=Math.max(0,ce-ue))),E!==null&&z!==null?(z==="NaN"&&(z=Qt),E.w()?(E=Pe,Wt=ce):isNaN(ce)?(E=Pe,Wt=Wt.height*z):(E=Wt.width*z,Wt=ce)):E!==null?E.w()?(z=Math.min(Pe/Wt.width,ce/Wt.height),E=Pe,Wt=ce):isNaN(ce)?(z=Pe/Wt.width,E=Pe,Wt=Wt.height*z):(z=ce/Wt.height,E=Wt.width*z,Wt=ce):z!==null?z==="NaN"&&tt.w()?(z=Math.min((tt.width-ot)/Wt.width,(tt.height-ue)/Wt.height),z>Qt?(z=Qt,E=Wt.width,Wt=Wt.height):(E=tt.width,Wt=tt.height)):(E=Wt.width*z,Wt=Wt.height*z):(z=Qt,E=Wt.width,Wt=Wt.height),lt!==null?(E+=ot,Wt+=ue):lt=new Bi(0),tt!==null&&(Qt=tt.width,tt=tt.height,isNaN(Qt)&&(Qt=2e3),isNaN(tt)&&(tt=2e3),isFinite(Qt)&&(E=Math.min(E,Qt)),isFinite(tt)&&(Wt=Math.min(Wt,tt))),ft.width=Math.ceil(E),ft.height=Math.ceil(Wt),x==="SVG"?b===null?null:(b.resize(ft.width,ft.height,ft.width,ft.height),b.ownerDocument=yt,b.hs=Pt,Fa(a,b.context,lt,new Yn(Math.ceil(E),Math.ceil(Wt)),z,ae,rt,ut,bt,y),b.context):(a.Xm=!1,Fa(a,Nt,lt,new Yn(Math.ceil(E),Math.ceil(Wt)),z,ae,rt,ut,bt,y),a.Xm=!0,ft.context)}_t.Object.defineProperties(Xe.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pt||(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 lh(this,Yt.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 lh(this,Yt.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(Yt,"resize",this.Ov,!1),this.removeEventListener(Yt,"wheel",this.$j,!0),Uu===this&&(Uu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),Lc(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)&&Wn(a,"0 <= value <= 1",Xe,"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),Zl(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),Zl(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),Zl(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),Zl(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Wn(a,">= 0",Xe,"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&&Wn(a,">= 0",Xe,"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 Wn(a,">= 0",Xe,"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&&xe("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=gd(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,Cs(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(Yt,"pointermove",this.dk,!0),this.addEventListener(Yt,"pointerdown",this.ui,!0),this.addEventListener(Yt,"pointerup",this.fk,!0),this.addEventListener(Yt,"pointerout",this.ek,!0),this.addEventListener(Yt,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Yt,"wheel",this.$j,!0),this.addEventListener(Yt,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Yt,"pointermove",this.dk,!0),this.removeEventListener(Yt,"pointerdown",this.ui,!0),this.removeEventListener(Yt,"pointerup",this.fk,!0),this.removeEventListener(Yt,"pointerout",this.ek,!0),this.removeEventListener(Yt,"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(Yt,"wheel",this.$j,!0),this.removeEventListener(Yt,"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=Zt.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()?sh(this):(this.vb=!0,a=this.scale,ff(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)}Zt.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=df(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=df(this)),a.type!==Hn.Grid&&xe("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),ah(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),sh(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||xe("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 Bi(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===Sd&&Zl(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,Zl(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,Xg(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&&Xg(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!==Ts&&Zl(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()||xe("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()||xe("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)):Wn(a,"> 0",Xe,"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)):Wn(a,"> 0",Xe,"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),Zl(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 Bi(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&&xe("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!==xd&&a!==Ta&&a!==ig&&xe("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 Yn(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 Bi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),_t.Object.defineProperties(Xe,{licenseKey:{get:function(){return ap.jc()},set:function(a){ap.add(a.replace(/\s/g,""))}},version:{get:function(){return Rc}}}),Xe.prototype.makeImageData=Xe.prototype.Jx,Xe.prototype.makeImage=Xe.prototype.Wz,Xe.prototype.cacheGroupExternalLinks=Xe.prototype.Fu,Xe.prototype.addRenderer=Xe.prototype.bs,Xe.prototype.makeSVG=Xe.prototype.av,Xe.prototype.makeSvg=Xe.prototype.Cs,Xe.prototype.stopAutoScroll=Xe.prototype.ug,Xe.prototype.doAutoScroll=Xe.prototype.gs,Xe.prototype.isUnoccupied=Xe.prototype.Yj,Xe.prototype.raiseDiagramEvent=Xe.prototype.R,Xe.prototype.removeDiagramListener=Xe.prototype.am,Xe.prototype.addDiagramListener=Xe.prototype.Bj,Xe.prototype.findTreeRoots=Xe.prototype.yz,Xe.prototype.layoutDiagram=Xe.prototype.Uz,Xe.prototype.findTopLevelGroups=Xe.prototype.qz,Xe.prototype.findTopLevelNodesAndLinks=Xe.prototype.rz,Xe.prototype.ensureBounds=Xe.prototype.Va,Xe.prototype.findLinksByExample=Xe.prototype.ls,Xe.prototype.findNodesByExample=Xe.prototype.ms,Xe.prototype.findLinkForData=Xe.prototype.Kc,Xe.prototype.findNodeForData=Xe.prototype.ii,Xe.prototype.findPartForData=Xe.prototype.Lc,Xe.prototype.findLinkForKey=Xe.prototype.findLinkForKey,Xe.prototype.findNodeForKey=Xe.prototype.Vb,Xe.prototype.findPartForKey=Xe.prototype.findPartForKey,Xe.prototype.rebuildParts=Xe.prototype.Wd,Xe.prototype.transformViewToDoc=Xe.prototype.Ps,Xe.prototype.transformRectDocToView=Xe.prototype.zA,Xe.prototype.transformDocToView=Xe.prototype.op,Xe.prototype.centerRect=Xe.prototype.es,Xe.prototype.scrollToRect=Xe.prototype.tv,Xe.prototype.scroll=Xe.prototype.scroll,Xe.prototype.highlightCollection=Xe.prototype.Jz,Xe.prototype.highlight=Xe.prototype.Iz,Xe.prototype.selectCollection=Xe.prototype.rA,Xe.prototype.select=Xe.prototype.select,Xe.prototype.updateAllRelationshipsFromData=Xe.prototype.rp,Xe.prototype.updateAllTargetBindings=Xe.prototype.updateAllTargetBindings,Xe.prototype.commit=Xe.prototype.commit,Xe.prototype.rollbackTransaction=Xe.prototype.Kf,Xe.prototype.commitTransaction=Xe.prototype.eb,Xe.prototype.startTransaction=Xe.prototype.Ea,Xe.prototype.raiseChanged=Xe.prototype.g,Xe.prototype.raiseChangedEvent=Xe.prototype.cb,Xe.prototype.removeChangedListener=Xe.prototype.ik,Xe.prototype.addChangedListener=Xe.prototype.Pe,Xe.prototype.removeModelChangedListener=Xe.prototype.mA,Xe.prototype.addModelChangedListener=Xe.prototype.Yw,Xe.prototype.findLayer=Xe.prototype.Qj,Xe.prototype.removeLayer=Xe.prototype.kA,Xe.prototype.addLayerAfter=Xe.prototype.Cy,Xe.prototype.addLayerBefore=Xe.prototype.Ww,Xe.prototype.addLayer=Xe.prototype.Al,Xe.prototype.moveParts=Xe.prototype.moveParts,Xe.prototype.copyParts=Xe.prototype.Kj,Xe.prototype.removeParts=Xe.prototype.Is,Xe.prototype.remove=Xe.prototype.remove,Xe.prototype.add=Xe.prototype.add,Xe.prototype.clearDelayedGeometries=Xe.prototype.bx,Xe.prototype.setProperties=Xe.prototype.nm,Xe.prototype.attach=Xe.prototype.Du,Xe.prototype.set=Xe.prototype.set,Xe.prototype.resetInputOptions=Xe.prototype.Sx,Xe.prototype.setInputOption=Xe.prototype.sA,Xe.prototype.getInputOption=Xe.prototype.Ql,Xe.prototype.resetRenderingHints=Xe.prototype.Tx,Xe.prototype.setRenderingHint=Xe.prototype.Xx,Xe.prototype.getRenderingHint=Xe.prototype.Gf,Xe.prototype.maybeUpdate=Xe.prototype.bd,Xe.prototype.requestUpdate=Xe.prototype.$b,Xe.prototype.delayInitialization=Xe.prototype.Xy,Xe.prototype.isUpdateRequested=Xe.prototype.Pz,Xe.prototype.invalidateDocumentBounds=Xe.prototype.Ya,Xe.prototype.findObjectsNear=Xe.prototype.og,Xe.prototype.findPartsNear=Xe.prototype.mz,Xe.prototype.findObjectsIn=Xe.prototype.Cf,Xe.prototype.findPartsIn=Xe.prototype.ux,Xe.prototype.findObjectsAt=Xe.prototype.ji,Xe.prototype.findPartsAt=Xe.prototype.lz,Xe.prototype.findObjectAt=Xe.prototype.ic,Xe.prototype.findPartAt=Xe.prototype.Ol,Xe.prototype.focusObject=Xe.prototype.zz,Xe.prototype.alignDocument=Xe.prototype.Jy,Xe.prototype.zoomToRect=Xe.prototype.BA,Xe.prototype.zoomToFit=Xe.prototype.zoomToFit,Xe.prototype.diagramScroll=Xe.prototype.kx,Xe.prototype.focus=Xe.prototype.focus;var ng=new si,um=null,ra=Yt.document!==void 0,Ic=null,Qd="",Ts=new Be(Xe,"None",0),Vl=new Be(Xe,"Uniform",1),qd=new Be(Xe,"UniformToFill",2),pf=new Be(Xe,"CycleAll",10),ep=new Be(Xe,"CycleNotDirected",11),np=new Be(Xe,"CycleNotDirectedFast",12),ip=new Be(Xe,"CycleNotUndirected",13),op=new Be(Xe,"CycleDestinationTree",14),rp=new Be(Xe,"CycleSourceTree",15),Sd=new Be(Xe,"DocumentScroll",1),mf=new Be(Xe,"InfiniteScroll",2),xd=new Be(Xe,"TreeParentCollapsed",21),Ta=new Be(Xe,"AllParentsCollapsed",22),ig=new Be(Xe,"AnyParentsCollapsed",23),ap=new xn,Rc="2.3.10",zc="image",vf=null,hm=!1;function Ms(){if(ra){var a=Yt.document.createElement("canvas"),y=a.getContext("2d"),x=Kn("7ca11abfd022028846");y[x]=Kn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",$e.Dx+"4ae6247590da4bb21c324ba3a84e385776",mo.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",De.za],E=1;5>E;E++)y[Kn("7ca11abfd7330390")](Kn(b[E-1]),10,15*E);for(y[x]=Kn("39f046ebb36e4b"),x=1;5>x;x++)y[Kn("7ca11abfd7330390")](Kn(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(mo.prototype.Cd=mo.prototype.Eu),vf=a}}Xe.className="Diagram",Xe.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Yt.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof Xe?y.H:null},Xe.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},Xe.useDOM=function(a){ra=a?Yt.document!==void 0:!1},Xe.isUsingDOM=function(){return ra},Xe.None=Ts,Xe.Uniform=Vl,Xe.UniformToFill=qd,Xe.CycleAll=pf,Xe.CycleNotDirected=ep,Xe.CycleNotDirectedFast=np,Xe.CycleNotUndirected=ip,Xe.CycleDestinationTree=op,Xe.CycleSourceTree=rp,Xe.DocumentScroll=Sd,Xe.InfiniteScroll=mf,Xe.TreeParentCollapsed=xd,Xe.AllParentsCollapsed=Ta,Xe.AnyParentsCollapsed=ig;function dm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function jc(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Yt[Kn("76a715b2f73f148a")][Kn("72ba13b5")]||"";if(a.Rc=!0,ra){var b=Xe[Kn("76a115b6ed251eaf4692")];if(b)for(var E=ap.iterator;E.next()&&(b=E.value,b=Kn(b).split(Kn("39e9")),!(6>b.length));){var z=Kn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var tt=Kn($e[Kn("6cae19")]).split(".");if(z[0]>tt[0]||z[0]===tt[0]&&z[1]>=tt[1]){var ot=Yt[Kn("74a900bae4370f8b51")][Kn("6fbb13a1c2311e8a57")].toLowerCase();if(tt=ot[Kn("73a612b6fb191d")](Kn("3aad1ab6e022098b4dc4")),z=Kn(b[2]),-1<tt&&(ot=ot[Kn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<tt),!a.Rc))break;for(tt=x[Kn("76ad18b4f73e")],ot=x[Kn("73a612b6fb191d")](Kn("35e7"))+2;ot<tt;ot++)y+=x[ot];if(tt=y[Kn("73a612b6fb191d")](z),0>tt&&z!==Kn("7da71ca0ad381e90")&&(tt=y[Kn("73a612b6fb191d")](Kn("76a715b2ef3e149757"))),0>tt&&(tt=y[Kn("73a612b6fb191d")](Kn("76a715b2ef3e149757"))),0>tt&&(tt=y[Kn("73a612b6fb191d")](Kn("2bfa41fdb3784bca12"))),0>tt&&(tt=x[Kn("73a612b6fb191d")](Kn("7baa19a6f76c1988428554"))),a.Rc=!(0<=tt&&tt<y[Kn("73a612b6fb191d")](Kn("35"))||y[Kn("73a612b6fb191d")](Kn("35"))===-1),!a.Rc||x[Kn("73a612b6fb191d")](Kn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[Kn("73a612b6fb191d")](z)),!a.Rc)||(tt=Yt[Kn("76a715b2f73f148a")][Kn("69ad17a1e03e")],ot=tt[Kn("73a612b6fb191d")](Kn("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(tt[Kn("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){tt=Yt.document.createElement("div");for(var rt=b[0].replace(/[A-Za-z]/g,"");4>rt.length;)rt+="9";if(ot=rt,rt=rt.substr(rt.length-4),b="",b+=["gsh","gsf"][parseInt(rt.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(rt.substr(0,1),10)%4],tt[Kn("79a417a0f0181a8946")]=b,Yt.document[Kn("78a712aa")]){Yt.document[Kn("78a712aa")][Kn("7bb806b6ed32388c4a875b")](tt),rt=Yt.getComputedStyle(tt).getPropertyValue(Kn("78a704b7e62456904c9b12701b6532a8"));var lt=Yt.getComputedStyle(tt).getPropertyValue(Kn("75b817b0ea2202"));if(Yt.document[Kn("78a712aa")][Kn("68ad1bbcf533388c4a875b")](tt),rt){if(tt=Yt[Kn("77a902b0eb1b1e804a8a")],lt==="0."+parseInt(ot,10)%100||rt.indexOf(parseInt(z[1]+z[2],16))!==-1&&rt.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(tt&&tt(Kn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){tt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ut in tt)if(b===tt[ut].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ut=x[Kn("76ad18b4f73e")],E=x[Kn("73a612b6fb191d")](Kn("35e7"))+2;E<ut;E++)y+=x[E];x=y[Kn("73a612b6fb191d")](Kn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[Kn("73a612b6fb191d")](Kn("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function qh(a){this.j=a===void 0?new Zt:a,this.o=new Zt}_t.Object.defineProperties(qh.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 yf="DraggingInfo";qh.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function at(){this.reset()}at.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Yn(NaN,NaN).freeze(),this.gridSnapCellSpot=Ya,this.gridSnapOrigin=new Zt(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},at.className="DraggingOptions";function ct(a,y){if(typeof a=="string"||Yt.Element&&a instanceof Element)var x=Xe.call(this,a)||this;else x=Xe.call(this)||this,y=a;return dt(x),y&&x.nm(y),x}he(ct,Xe);function dt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Cl,a.layout=new fs}ct.prototype.reset=function(){Xe.prototype.reset.call(this),dt(this)},ct.className="Palette";function pt(a,y){if(typeof a=="string"||Yt.Element&&a instanceof Element)var x=Xe.call(this,a)||this;else x=Xe.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 Mi;var E=new fo;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 Bi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new $t,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var tt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new Zt(ot.x-tt.width/2,ot.y-tt.height/2)}},x.Pf=function(){b.Ya(),zt(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&&zt(b)},x.autoScale=Vl,x.vb=!1,y&&Object.assign(x,y),x}he(pt,Xe),pt.prototype.computePixelRatio=function(){return 1},pt.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(iu(this),this.ql===null){var x=new vu(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),At(this)}finally{this.ta=a,this.ib=y}}}Xe.prototype.redraw.call(this)},pt.prototype.gc=function(){if(this.Ka===null&&xe("No div specified"),this.ta===null&&xe("No canvas specified"),!(this.ta instanceof lh)&&(Ov(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){iu(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?At(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 At(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=gn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),ah(y,E),gn.free(E),ds(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),E=a.ib,E.scale(a.Mb,a.Mb),E.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),E.yc(),y=y.Wa.s,z=y.length;for(var tt=0;tt<z;tt++){var ot=y[tt],rt=a;if(ot.visible&&ot.opacity!==0){var lt=ot.diagram.grid.part;if(!x&&ot.isTemporary)b&<.layer===ot&&(ot=ys(ot,E),lt.gc(E,rt),E.globalAlpha=ot);else{for(var ut=ys(ot,E),ft=rt.scale,yt=gn.alloc(),Pt=ot.Pa.s,bt=Pt.length,Nt=0;Nt<bt;Nt++){var Qt=Pt[Nt];(b||Qt!==lt)&&ot.Oj(E,Qt,rt,null,ft,yt,!1)}gn.free(yt),E.globalAlpha=ut}}}}}function zt(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=Yn.alloc();E.h(x.width,x.height),b.desiredSize=E,Yn.free(E),a=2/a.scale,b instanceof fo&&(b.strokeWidth=a),y.location=new Zt(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return No;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),zt(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))},_t.Object.defineProperties(pt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pt&&xe("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),zt(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),zt(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)}}}),pt.className="Overview";function $t(){Yr.call(this),this.j=null}he($t,Yr),$t.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 Zt(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Zt(a.x-this.j.x,a.y-this.j.y)),!0)},$t.prototype.doActivate=function(){this.j=null,Yr.prototype.doActivate.call(this)},$t.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},$t.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 Zt(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Zt(a.x-this.j.x,a.y-this.j.y)}}},$t.className="OverviewDraggingTool";function Jt(){po(this),this.H=Uu,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}Jt.prototype.toString=function(){return"CommandHandler"},Jt.prototype.Xe=function(a){this.H=a},Jt.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Wi?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()},Jt.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Jt.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof zr&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Jt.prototype.canStopCommand=function(){return!0},Jt.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=""}},Jt.prototype.canSelectAll=function(){return this.diagram.allowSelect},Jt.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Ln,x=a.selection.iterator;x.next();)ec(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=""}},Jt.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Jt.prototype.copySelection=function(){var a=this.diagram,y=new Ln;for(a=a.selection.iterator;a.next();)ec(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},Jt.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Jt.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Jt.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Jt.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Ic=null,Qd="";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 xn,x.addAll(z),Ic=x,Qd=y.model.dataFormat}}y.R("ClipboardChanged",x)},Jt.prototype.pasteFromClipboard=function(){var a=new Ln,y=Ic;if(y===null)return a;var x=this.diagram;if(Qd!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,tt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),tt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=tt.iterator;y.next();)x=y.value,b=y.key,x.location.w()||(b.location.w()?x.location=b.location:!x.position.w()&&b.position.w()&&(x.position=b.position)),a.add(x)}return a},Jt.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);rh(y,z,new Zt(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=""}},Jt.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Ic===null||Ic.count===0||Qd!==a.model.dataFormat)},Jt.prototype.undo=function(){this.diagram.undoManager.undo()},Jt.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Jt.prototype.redo=function(){this.diagram.undoManager.redo()},Jt.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Jt.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===Ts&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Jt.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==Ts?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Jt.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===Ts&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},Jt.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==Ts?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},Jt.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Jt.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Jt.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;Cs(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()),ns(y)},Jt.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Jt.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(rt){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;Cs(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=pe(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 rt=E.pop();0<E.length&&rt instanceof ii&&rt.isTreeExpanded&&(!(rt instanceof oo)||rt.isSubGraphExpanded);)rt=E.pop();0<E.length?(rt instanceof Mi&&y.tv(rt.actualBounds),rt instanceof ii&&!rt.isTreeExpanded&&(rt.isTreeExpanded=!0),rt instanceof oo&&!rt.isSubGraphExpanded&&(rt.isSubGraphExpanded=!0)):(rt instanceof Mi&&y.es(rt.actualBounds),y.am("LayoutCompleted",tt)),y.eb("Scroll To Part")},tt=function(){zn(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",tt),z()}}else{var ot=y.position.copy();y.es(a.actualBounds),ot.Xa(y.position)&&x.Cc()}}};function pe(a,y,x){if(y.isVisible())return x;if(y instanceof Xo)pe(a,y.adornedPart,x);else if(y instanceof Un){var b=y.fromNode;b!==null&&pe(a,b,x),y=y.toNode,y!==null&&pe(a,y,x)}else y instanceof ii&&(b=y.labeledLink,b!==null&&pe(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),pe(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),pe(a,y,x));return x}Jt.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof Mi)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Jt.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Cs(y.animationManager,"Collapse Tree");var x=new xn;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 ii&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Jt.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ii&&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 ii&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Jt.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Cs(y.animationManager,"Expand Tree");var x=new xn;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 ii&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Jt.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof ii)||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 ii&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Jt.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 xn,z=a.selection.iterator;z.next();){var tt=z.value;tt.Zc()&&tt.canGroup()&&E.add(tt)}for(var ot=new xn,rt=E.iterator;rt.next();){var lt=rt.value;z=!1;for(var ut=E.iterator;ut.next();)if(lt.Td(ut.value)){z=!0;break}z||ot.add(lt)}if(0<ot.count){var ft=ot.first().containingGroup;if(ft!==null)for(;ft!==null;){E=!1;for(var yt=ot.iterator;yt.next();)if(!yt.value.Td(ft)){E=!0;break}if(E)ft=ft.containingGroup;else break}if(x instanceof oo)yu(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Pt=y.copyNodeData(x);We(Pt)&&(y.xf(Pt),b=a.ii(Pt))}if(b!==null){ft!==null&&this.isValidMember(ft,b)&&(b.containingGroup=ft);for(var bt=ot.iterator;bt.next();){var Nt=bt.value;this.isValidMember(b,Nt)&&(Nt.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Jt.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 un(a){var y=rn();for(a=a.iterator;a.next();){var x=a.value;x instanceof Un||y.push(x)}a=new Ln,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,tt=0;tt<x;tt++)if(E.Td(y[tt])){z=!1;break}z&&a.add(E)}return pn(y),a}Jt.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Un)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},Jt.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 xn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof oo&&z.canUngroup()&&b.add(z)}var tt=new xn;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var rt=ot.value;rt.expandSubGraph();var lt=rt.containingGroup,ut=lt!==null&<.data!==null?x.wa(lt.data):void 0;tt.addAll(rt.memberParts);for(var ft=tt.iterator;ft.next();){var yt=ft.value;if(yt.isSelected=!0,!(yt instanceof Un)){var Pt=yt.data;Pt!==null?x.mp(Pt,ut):yt.containingGroup=lt}}y.remove(rt)}}y.R("SelectionUngrouped",b,tt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Jt.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 oo))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof oo&&y.canUngroup())return!0;return!1},Jt.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=un(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Jt.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Cs(y.animationManager,"Collapse SubGraph");var x=new xn;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 oo&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Jt.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof oo&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof oo&&y.isSubGraphExpanded)return!0;return!1},Jt.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Cs(y.animationManager,"Expand SubGraph");var x=new xn;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 oo&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Jt.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof oo&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof oo&&!y.isSubGraphExpanded)return!0;return!1},Jt.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 Lr&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},Jt.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 Lr))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 Lr&&x.editable}),a!==null))return!0;return!1},Jt.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 be?E=a.ga(jo):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Zt(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,Pr(x,!1,a)}},Jt.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)},Jt.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 si,a===null)return b;for(var z=a.iterator;z.next();)pu(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 Un&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},_t.Object.defineProperties(Jt.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||xe("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}}}),Jt.className="CommandHandler",Jh=function(){return new Jt};function be(){po(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Zt(NaN,NaN).freeze(),this.jd=Qr,this.Ab=new mo,this.wh=new mo,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=bs,this.uc=new gn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new gn(NaN,NaN,NaN,NaN).freeze(),this.dc=new gn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=lr,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 jn,Nn,pi,wi,Ri,so,ko,xo,Ho,vr;be.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=Ie(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},be.prototype.Vw=function(a){var y=this.Dh;if(fn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},be.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},be.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},be.prototype.copy=function(){return this.clone()},Lt=be.prototype,Lt.qb=function(a){a.classType===Un?a.name.indexOf("Orient")===0?this.segmentOrientation=a:xe("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===be&&(this.stretch=a)},Lt.toString=function(){return Cn(this.constructor)+"#"+Yi(this)},Lt.th=function(){this.A!==null&&(this.A.nc=!0)};function vo(a){a.A===null?a.A=new xf:a.A.nc&&(a.A=a.A.copy())}Lt.Xc=function(){if(this.ba===null){var a=new sp;a.Xi=la,a.yj=la,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Lt.cb=function(a,y,x,b,E,z,tt){var ot=this.part;if(ot!==null&&(ot.gk(a,y,x,b,E,z,tt),x===this&&a===Zr&&Ss(this)&&Nr(this,ot,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 si),tt=z.undoManager.transactionLevel===0,a.startCondition===hs?tt=!0:a.startCondition===wa&&(tt=!1),tt?(z=new oa,Jr(a,z),tt=this.jo.get(a),tt!==null&&tt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(Cs(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Hn&&x===ot&&(ot.l&16777216)!==0&&ot.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)ot=x[E],ot instanceof Hn&&Zc(ot,function(rt){rt.data!==null&&rt.l&16777216&&rt.La(y)})};function Nr(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,tt=null;if(z.sourceName!==null){if(tt=LS(z,b,a),tt===null)continue;z.sp(a,tt,x,null)}else if(z.isToModel){var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,ot.model.modelData,x,b)}else{if(ot=b.data,ot===null)continue;var rt=y.diagram;rt===null||rt.skipsModelSourceBindings||z.sp(a,ot,x,b)}tt===a&&(ot=b.ks(z.Ai),ot!==null&&z.Mv(ot,tt,x))}}Lt.ks=function(a){return this.bindingId===a?this:null},Lt.g=function(a,y,x){this.cb(Zr,a,this,y,x)},Lt.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 _a(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}Lt.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?kr(a.x,a.y,0,0,0,b.height)<=y||kr(a.x,a.y,0,b.height,b.width,b.height)<=y||kr(a.x,a.y,b.width,b.height,b.width,0)<=y||kr(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},Lt.se=function(){return!0},Lt.ca=function(a){var y=Zt.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Zt.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),tt=z/2,ot=this.naturalBounds;b=this.Df()*b.scale;var rt=1/b;if(ot.width*b<E&&ot.height*b<E)return a=Br(x.x-tt*rt,x.y-tt*rt,x.width+z*rt,x.height+z*rt,y.x,y.y),Zt.free(y),a}return E=!1,(this instanceof Xo||this instanceof fo?Br(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)),Zt.free(y),E},Lt.gh=function(a){var y=this.naturalBounds;return Br(0,0,y.width,y.height,a.x,a.y)},Lt.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=gn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Zt.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)))),Zt.free(E),gn.free(y),b},Lt.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Zt.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)))),Zt.free(E),b},Lt.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Zt.allocAt(0,0),E=Zt.allocAt(0,x.height),z=Zt.allocAt(x.width,x.height),tt=Zt.allocAt(x.width,0),ot=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(tt)))ot=!0;else{x=gn.allocAt(0,0,x.width,x.height);var rt=Zt.allocAt(a.x,a.y);x.ca(y.Cd(rt))?ot=!0:(rt.h(a.x,a.bottom),x.ca(y.Cd(rt))?ot=!0:(rt.h(a.right,a.bottom),x.ca(y.Cd(rt))?ot=!0:(rt.h(a.right,a.y),x.ca(y.Cd(rt))&&(ot=!0)))),Zt.free(rt),gn.free(x),!ot&&(De.us(a,b,E)||De.us(a,E,z)||De.us(a,z,tt)||De.us(a,tt,b))&&(ot=!0)}return Zt.free(b),Zt.free(E),Zt.free(z),Zt.free(tt),ot},Lt.ga=function(a,y){if(y===void 0&&(y=new Zt),a instanceof yi){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Lt.mi=function(a){a===void 0&&(a=new gn);var y=this.naturalBounds,x=this.oe,b=Zt.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),or(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),or(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),or(a,b.x,b.y,0,0),Zt.free(b),a},Lt.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},Lt.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Lt.qs=function(a,y){return y===void 0&&(y=new Zt),y.assign(a),this.oe.Cd(y),y},Lt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Lt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),yt=tt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,De.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(tt=a*ot+y*lt+ft,a=a*rt+y*ut+yt,y=x*ot+b*lt+ft,x=x*rt+b*ut+yt,E.h(0,0),b=this.naturalBounds,x=De.Ff(0,0,b.width,b.height,tt,a,y,x,E),E.transform(z),x)},be.prototype.measure=function(a,y,x,b){if(Yl(this)!==!1){var E=this.Kg,z=E.right+E.left;E=E.top+E.bottom,a=Math.max(a-z,0),y=Math.max(y-E,0),x=Math.max((x||0)-z,0),b=Math.max((b||0)-E,0),z=this.angle,E=this.desiredSize;var tt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+tt:a,y=isFinite(E.width)?E.width+tt:y):(a=isFinite(E.width)?E.width+tt:a,y=isFinite(E.height)?E.height+tt:y),E=x||0,tt=b||0;var ot=this instanceof Hn;switch(sl(this,!0)){case Nn:tt=E=0,ot&&(y=a=1/0);break;case jn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(tt=y);break;case wi:isFinite(a)&&a>x&&(E=a),tt=0,ot&&(y=1/0);break;case Ri:isFinite(y)&&y>b&&(tt=y),E=0,ot&&(a=1/0)}ot=this.maxSize;var rt=this.minSize;E>ot.width&&rt.width<ot.width&&(E=ot.width),tt>ot.height&&rt.height<ot.height&&(tt=ot.height),x=Math.max(E,rt.width),b=Math.max(tt,rt.height),ot.width<x&&(x=Math.min(rt.width,x)),ot.height<b&&(b=Math.min(rt.height,b)),a=Math.min(ot.width,a),y=Math.min(ot.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()||xe("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Oa(this,!1)}},be.prototype.Wl=function(){},be.prototype.Dd=function(){return!1},be.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=gn.alloc();z.assign(this.Ib),this.Ib.ka(),Ks(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&&Cd(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 Lr&&(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()||xe("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Lh(this,!1),gn.free(z)},Lt=be.prototype,Lt.eh=function(){};function Os(a,y,x,b,E){if(a.Ib.h(y,x,b,E),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var tt=x.top+x.bottom;switch(x=z.width+y,z=z.height+tt,b+=y,E+=tt,y=sl(a,!0),x===b&&z===E&&(y=Nn),y){case Nn:(x>b||z>E)&&(Oa(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case jn:Oa(a,!0),a.measure(b,E,0,0);break;case wi:Oa(a,!0),a.measure(b,z,0,0);break;case Ri:Oa(a,!0),a.measure(x,E,0,0)}}}Lt.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||zv(x,!0),this.N(),Qo(a,y)||(x.oh(),this.Pn(x)))},Lt.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof ii&&Z1(a,this))},Lt.gc=function(a,y){if(!ou(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 Hn&&Cd(this),tt=this.Ib;if(z){var ot=this.Ib,rt=this.dc,lt=this.areaBackground,ut=this.Ma;lt===null&&ut===null||a.yc(),lt!==null&&(sa(this,a,lt,!0,!0,rt,ot),lt instanceof hr&<.type===su?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(lt)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),ut!==null&&(sa(this,a,ut,!0,!1,rt,ot),ut instanceof hr&&ut.type===su?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ut)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||tt.width!==0&&tt.height!==0&&!isNaN(tt.x)&&!isNaN(tt.y))){z=this.transform,ot=this.panel,this.l&4096&&cs(this),lt=this.part,rt=!1;var ft=0;lt&&y.Gf("drawShadows")&&(rt=lt.isShadowed)&&(ut=lt.shadowOffset,ft=Math.max(ut.y,ut.x)*y.scale*y.Mb),ut=this.Dd();var yt;if(!(yt=y.$i||!ut)){var Pt=this.naturalBounds;yt=this.wh;var bt=yt.m11,Nt=yt.m21,Qt=yt.dx,Wt=yt.m12,ae=yt.m22,ue=yt.dy,ce,Pe=ce=0;yt=ce*bt+Pe*Nt+Qt;var Je=ce*Wt+Pe*ae+ue;ce=Pt.width+ft,Pe=0;var ti=ce*bt+Pe*Nt+Qt;ce=ce*Wt+Pe*ae+ue,Pe=Math.min(yt,ti);var fi=Math.min(Je,ce),li=Math.max(yt+0,ti)-Pe,Vn=Math.max(Je+0,ce)-fi;yt=Pe,Je=fi,ce=Pt.width+ft,Pe=Pt.height+ft,ti=ce*bt+Pe*Nt+Qt,ce=ce*Wt+Pe*ae+ue,Pe=Math.min(yt,ti),fi=Math.min(Je,ce),li=Math.max(yt+li,ti)-Pe,Vn=Math.max(Je+Vn,ce)-fi,yt=Pe,Je=fi,ce=0,Pe=Pt.height+ft,ti=ce*bt+Pe*Nt+Qt,ce=ce*Wt+Pe*ae+ue,Pe=Math.min(yt,ti),fi=Math.min(Je,ce),li=Math.max(yt+li,ti)-Pe,Vn=Math.max(Je+Vn,ce)-fi,yt=Pe,Je=fi,ft=y.viewportBounds,Pt=ft.x,bt=ft.y,yt=!(yt>ft.width+Pt||Pt>li+yt||Je>ft.height+bt||bt>Vn+Je)}if(yt){if(yt=(this.l&256)!==0,a.clipInsteadOfFill&&(yt=!1),this instanceof Lr&&(a.font=this.font),yt){if(Je=ot.se()?ot.naturalBounds:ot.actualBounds,li=Math.max(tt.x,Je.x),Vn=Math.max(tt.y,Je.y),ft=Math.min(tt.right,Je.right)-li,Pt=Math.min(tt.bottom,Je.bottom)-Vn,bt=this.tb,bt!==null&&(li=bt.x,Vn=bt.y,ft=bt.width,Pt=bt.height),li>tt.width+tt.x||tt.x>Je.width+Je.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(li,Vn,ft,Pt),a.clip()}if(ut){if(!lt.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}rt&&(Je=lt.shadowOffset,a.Ev(Je.x*y.scale*this.scale*y.Mb,Je.y*y.scale*this.scale*y.Mb,lt.shadowBlur),$h(a),a.shadowColor=lt.shadowColor)}rt&&this.shadowVisible===!0?$h(a):rt&&this.shadowVisible===!1&&Ah(a),lt=this.naturalBounds,this.areaBackground!==null&&(a.yc(),Ul(this,a,lt,tt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),rt&&as(this,ot)&&this.shadowVisible===null&&Ah(a),this.Ma!==null&&(a.yc(),vl(this,a,lt,tt)),rt&&(this.Ma!==null||this.areaBackground!==null||as(this,ot))?(Mu(this,!0),this.shadowVisible===null&&Ah(a)):Mu(this,!1),this.hh(a,y),rt&&this.l&512&&$h(a),ut&&rt&&Ah(a),yt&&(a.restore(),a.Vc(this instanceof Hn)),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 as(a,y){return y===null?!1:(Cd(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Hn.Auto||y.type===Hn.Spot)&&y.Pb()!==a)}Lt.Dv=function(){};function Ul(a,y,x,b){sa(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof hr&&a.areaBackground.type===su?(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 vl(a,y,x,b){var E=a.kq(),z=x.x,tt=x.y,ot=x.width+E,rt=x.height+E;sa(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof hr&&a.Ma.type===su?(y.beginPath(),y.rect(z-E/2,tt-E/2,ot,rt),y.ng(a.Ma)):y.fillRect(z-E/2,tt-E/2,ot,rt)}function Fs(a,y,x){for(var b=y.O.s,E=b.length,z=-1,tt=0;tt<E;tt++)if(b[tt]===a){z=tt;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===Hn.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 ou(a,y,x){if(!(y instanceof Al))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&&Fs(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),$h(y),y.shadowColor=a.shadowColor}a instanceof Lr&&(y.font=a.font),y.yd=null;var tt=a.transform;z=a instanceof Hn;var ot=a instanceof Hn?Cd(a):!1;a.l&4096&&cs(a);var rt=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&ot?(lp(y,1,0,0,1,0,0),a.svg=y.ad):z?(lp(y,tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy),a.svg=y.ad):lp(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var lt=tt.copy().Vj();y.rb.ha=[lt.m11,lt.m12,lt.m21,lt.m22,lt.dx,lt.dy],Ul(a,y,E,rt),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),a.background!==null&&(z?(ot&&(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy]),vl(a,y,E,rt),ot&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],vl(a,y,E,rt)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),tt=y.yd,E=a.part,ot=!1,E&&x.Gf("drawShadows")&&(ot=E.isShadowed),y.clipInsteadOfFill&&(ot=!1),a.Dd()&&ot&&$h(y),ot&&a.shadowVisible===!0?$h(y):ot&&a.shadowVisible===!1&&Ah(y),E=a.panel,ot&&as(a,E)&&a.shadowVisible===null&&Ah(y),y.Il&&(lt=x.computePixelRatio(),lt="drop-shadow("+y.shadowOffsetX/lt+"px "+y.shadowOffsetY/lt+"px "+y.shadowBlur/lt/2+"px "+y.shadowColor+")",a.background!==null&&tt.Ma.setAttributeNS(null,"filter",lt),a.areaBackground!==null&&tt.gd.setAttributeNS(null,"filter",lt)),ot&&(a.Ma!==null||a.areaBackground!==null||as(a,E))?(Mu(a,!0),a.shadowVisible===null&&Ah(y)):Mu(a,!1),E=ot,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),tt=y.Gv.hs,ot=z?a.svg:y.yd,lt=a.svg,!z&<!==null&&ot!==lt&<.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,rt,ot),al(y,lt),!0):(a.svg=ot,tt!==null&&ot===null&&(fm(y),y.nh.pop()),ot===null||(a.$o(y,b,rt,ot),y.Il&&(x=x.computePixelRatio(),a.Dv(ot,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&$h(y),a.Dd()&&Ah(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&ot.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&ot.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ot):y.Nj.prepend(ot),y.ti=ot):b!==null&&Fs(a,b,ot),tt!==null&&tt(a,ot)),!0)}Lt.$o=function(a,y,x,b){var E=(this.l&256)!==0;if(a.clipInsteadOfFill&&(E=!1),E){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),E=Math.max(x.y,z.y);var tt=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-E,z=this.tb,z!==null&&(y=z.x,E=z.y,tt=z.width,x=z.height),z=b.getAttribute("clip-path");var ot=null;z!==null&&(ot=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ot===null?(z="CLIP"+nr++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:tt,height:x}),this instanceof Hn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),ot.appendChild(y),a.svg.appendChild(ot),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=ot.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",tt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),al(a,b)};function al(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function ks(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=$i(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()}}Lt.hh=function(){},Lt.lv=function(){this.Uc=!0},Lt.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 Hn?Cd(this):!1;if(!(this instanceof Hn&&E))if(this instanceof ul){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",Qy(a)):y.setAttributeNS(null,"transform",Qy(a))}else if(!x||this instanceof Hn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof fo){z=y.getElementsByTagName("path");for(var tt=0;tt<z.length;tt++)z[tt].setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(tt=b.copy().Vj(),a.rb.ha=[tt.m11,tt.m12,tt.m21,tt.m22,tt.dx,tt.dy],Ul(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(tt=y.gd.getAttribute("filter"),tt!==null&&a.ad.setAttribute("filter",tt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&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 Hn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),vl(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},Lt.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 sa(a,y,x,b,E,z,tt){if(x!==null){var ot=1,rt=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Pd)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var lt=a.kq();if(ot=z.width,rt=z.height,E?(ot=tt.width,rt=tt.height):b||(ot+=lt,rt+=lt),(z=y instanceof Gc)&&x.xe&&(x.type===hg||x.yk===ot&&x.ft===rt))var ut=x.xe;else{var ft=0,yt=0,Pt=0,bt=0,Nt=0,Qt=0;if(Qt=Nt=0,E?(Nt=tt.x,Qt=tt.y):b||(Nt-=lt/2,Qt-=lt/2),ft=x.start.x*ot+x.start.offsetX,yt=x.start.y*rt+x.start.offsetY,Pt=x.end.x*ot+x.end.offsetX,bt=x.end.y*rt+x.end.offsetY,ft+=Nt,Pt+=Nt,yt+=Qt,bt+=Qt,x.type===td)ut=y.createLinearGradient(ft,yt,Pt,bt);else if(x.type===su)Qt=isNaN(x.endRadius)?Math.max(ot,rt)/2:x.endRadius,isNaN(x.startRadius)?(Nt=0,Qt=Math.max(ot,rt)/2):Nt=x.startRadius,ut=y.createRadialGradient(ft,yt,Nt,Pt,bt,Qt);else if(x.type===hg)try{ut=y.createPattern(x.pattern,"repeat")}catch(ae){ut=null}if(x.type!==hg&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ut.addColorStop(E.key,E.value);if(z&&(x.xe=ut,ut!==null&&(x.yk=ot,x.ft=rt),ut===null&&x.type===hg&&x.yk!==-1)){x.yk=-1;var Wt=a.diagram;Wt!==null&&x.yk===-1&&zn(function(){Wt.redraw()},600)}}b?y.fillStyle=ut:y.strokeStyle=ut}}}Lt.rg=function(a){if(a instanceof Hn)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},Lt.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Lt.If=function(){for(var a=this instanceof Hn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function cs(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){mu(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)}mu(a,!1),ru(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,ru(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,ru(a,!1)))}Lt.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Zt.alloc();z.yi(y,x,b,E,jo),a.rotate(this.Kb,z.x,z.y),Zt.free(z)}},Lt.v=function(a){if(!Yl(this)){a===void 0&&(a=!1),Oa(this,!0),Lh(this,!0);var y=this.panel;y===null||a||y.v()}},Lt.Uj=function(){Yl(this)||(Oa(this,!0),Lh(this,!0))};function Zs(a){if(!Ks(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof ii&&a.Bd(),y.$b())),Lh(a,!0)}}Lt.Uk=function(){!(this.l&2048)&&(mu(this,!0),ru(this,!0))},Lt.Wu=function(){ru(this,!0)},Lt.N=function(){var a=this.part;a!==null&&a.N()};function sl(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Hn.Table?Yu(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Hn.Auto&&b.Pb()===a?ss(a,jn,y):x===so?b!==null?b.type===Hn.Spot&&b.Pb()===a?ss(a,jn,y):(x=b.defaultStretch,x===so?ss(a,Nn,y):ss(a,x,y)):ss(a,Nn,y):ss(a,x,y)}function Yu(a,y,x,b){var E=a.stretch;if(E!==so)return ss(a,E,b);var z=E=null;switch(y.stretch){case Ri:z=!0;break;case jn:z=!0}switch(x.stretch){case wi:E=!0;break;case jn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===wi||y===jn),z===null&&(z=y===Ri||y===jn),E===!0&&z===!0?ss(a,jn,b):E===!0?ss(a,wi,b):z===!0?ss(a,Ri,b):ss(a,Nn,b)}function ss(a,y,x){if(x)return y;if(y===Nn||(x=a.desiredSize,x.w()))return Nn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===wi)return Nn;if(y===jn)return Ri}else{if(y===Ri)return Nn;if(y===jn)return wi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Ri)return Nn;if(y===jn)return wi}else{if(y===wi)return Nn;if(y===jn)return Ri}return y}function Mu(a,y){a.l=y?a.l|512:a.l&-513}function Ss(a){return(a.l&1024)!==0}function Sf(a,y){a.l=y?a.l|1024:a.l&-1025}function mu(a,y){a.l=y?a.l|2048:a.l&-2049}function ru(a,y){a.l=y?a.l|4096:a.l&-4097}function Yl(a){return(a.l&8192)!==0}function Oa(a,y){a.l=y?a.l|8192:a.l&-8193}function Ks(a){return(a.l&16384)!==0}function Lh(a,y){a.l=y?a.l|16384:a.l&-16385}Lt.Gj=function(){this.svg=null},Lt.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Lt.Av=function(){},Lt.zv=function(a){return this.pa=a,Zs(this),!0},Lt.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Lt.kq=function(){return 0};function Wc(a){var y=a.part;if(y instanceof ii&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||Z1(y,a)}}function Yy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Hn?a instanceof ii?a.Bd():a.qm(a,function(x){Wc(x)}):Wc(a))}Lt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Pa(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&c1(a)&&xe("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new xn),this.localBindings.add(E),this},Lt.set=function(a){return Object.assign(this,a),this},Lt.Du=function(a){return nv(this,a),this},Lt.apply=function(a){return a(this),this},Lt.nm=function(a){return nu(this,a),this},Lt.pz=function(){return this.ih()},Lt.ih=function(){for(var a=this instanceof Hn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Lt.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new si),this.animationTriggers.add(a.propertyName,a),this};function au(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=Ie(arguments),b=z(x),We(b)||xe('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Yt.go[a]}if(b===null&&(E!=null&&E.constructor||xe("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 Xe&&1<x.length){z=b;var tt=x[1];(typeof tt=="string"||tt instanceof HTMLDivElement)&&(Lc(z,tt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?xe("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 Lr)a.text=y;else if(a instanceof fo)a.figure=y;else if(a instanceof ul)a.source=y;else if(a instanceof Hn)y=Fu.I(y),y!==null&&(a.type=y);else if(a instanceof hr){var x=ei(hr,y);x!==null?a.type=x:xe("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Qn?(y=ei(Qn,y),y!==null&&(a.type=y)):a instanceof Uo&&(y=ei(Uo,y),y!==null&&(a.type=y));else if(y instanceof be)a instanceof Hn||xe("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ia){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 Ia?km(b,y):xe("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof Be)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ka)a.type=y;else if(y instanceof Pa)a instanceof be||a instanceof Ia?a.bind(y):xe("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Ll)a instanceof be?a.Jv(y):xe("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Ga)a instanceof Qn&&a.type===Qn.o?a.figures.add(y):xe("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof Uo)a instanceof Ga?a.segments.add(y):xe("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Hr)a instanceof Xe||a instanceof oo?a.layout=y:xe("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 hr){x=new ci;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);nu(a,x)}else if(a instanceof Ia){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&xe("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)&&xe("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new ci;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);nu(a,E)}else nu(a,y);else xe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function wd(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}_t.Object.defineProperties(be.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new xf),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 xf),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 xf),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(vo(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&&(vo(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ys},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new $d),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ys&&(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 $d),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 $d),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:Co},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new $d),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:so},set:function(a){var y=this.stretch;y!==a&&(vo(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&&(vo(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)&&Wn(a,"0 <= value <= 1",be,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Uc(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(Uc(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(),Yy(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&&Pf(a,"GraphObject.areaBackground"),a instanceof hr&&a.freeze(),vo(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&&Pf(a,"GraphObject.background"),a instanceof hr&&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 Mi)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 Zt(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&&xe("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,Yy(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 fo&&this.qc(),this.g("desiredSize",b,a),Ss(this)&&(a=this.part,a!==null&&(Nr(this,a,"width"),Nr(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 Yn(a,this.jd.height).freeze(),this.v(),this instanceof fo&&this.qc(),this.g("desiredSize",y,a),Ss(this)&&(a=this.part,a!==null&&Nr(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 Yn(this.jd.width,a).freeze(),this.v(),this instanceof fo&&this.qc(),this.g("desiredSize",y,a),Ss(this)&&(a=this.part,a!==null&&Nr(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ar},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(),vo(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Fr},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(),vo(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 Bi(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&&cs(this),this.Ab}},oe:{get:function(){return this.l&4096&&cs(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(vo(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Nn},set:function(a){this.reshapingBehavior!==a&&(vo(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()&&xe("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Zs(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&&Wn(a,">= 0",be,"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&&Wn(a,">= 1",be,"columnSpan"),vo(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&&Wn(a,">= 0",be,"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&&Wn(a,">= 1",be,"rowSpan"),vo(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&&(vo(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 ii||xe("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:la},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Wc(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Wn(a,">= 0",be,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Wc(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),Wc(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&&Wn(a,">= 0",be,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:la},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Wc(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Wn(a,">= 0",be,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Wc(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),Wc(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&&Wn(a,">= 0",be,"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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(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&&(vo(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),be.prototype.trigger=be.prototype.Jv,be.prototype.findBindingPanel=be.prototype.ih,be.prototype.findTemplateBinder=be.prototype.pz,be.prototype.setProperties=be.prototype.nm,be.prototype.apply=be.prototype.apply,be.prototype.attach=be.prototype.Du,be.prototype.set=be.prototype.set,be.prototype.isEnabledObject=be.prototype.If,be.prototype.isVisibleObject=be.prototype.Ed,be.prototype.isContainedBy=be.prototype.rg,be.prototype.getNearestIntersectionPoint=be.prototype.rs,be.prototype.getLocalPoint=be.prototype.qs,be.prototype.getDocumentScale=be.prototype.Df,be.prototype.getDocumentAngle=be.prototype.li,be.prototype.getDocumentBounds=be.prototype.mi,be.prototype.getDocumentPoint=be.prototype.ga,be.prototype.intersectsRect=be.prototype.Yc,be.prototype.containedInRect=be.prototype.fh,be.prototype.containsRect=be.prototype.Re,be.prototype.containsPoint=be.prototype.ca,be.prototype.raiseChanged=be.prototype.g,be.prototype.raiseChangedEvent=be.prototype.cb,be.prototype.addCopyProperty=be.prototype.Vw;var og=null;be.className="GraphObject",og=new si,wd("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=au(Hn,Hn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Hn){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"},au(fo,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new yi(0,0,2.76142374915397,2.761423749153969),spot2:new yi(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,b){if(b.If()&&b instanceof Hn&&(x=b.fb("ButtonBorder"),x instanceof fo)){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 Hn&&(x=b.fb("ButtonBorder"),x instanceof fo&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Hn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof fo){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var tt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=tt,tt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=tt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Hn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof fo){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Hn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof fo){var z=x.diagram,tt=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,b)?(E.fill=b._buttonFillOver,E.stroke=b._buttonStrokeOver):(E.fill=b._buttonFillNormal,E.stroke=b._buttonStrokeNormal),z.skipsUndoManager=tt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Hn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof fo))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var tt=b._buttonFillPressed;x.fill!==tt&&(x.fill=tt),tt=b._buttonStrokePressed,x.stroke!==tt&&(x.stroke=tt),E.skipsUndoManager=z}}},y}),wd("TreeExpanderButton",function(){var a=au("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},au(fo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:sr},new Pa("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new Pa("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof Xo&&(x=x.adornedPart),x instanceof ii){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}),wd("SubGraphExpanderButton",function(){var a=au("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},au(fo,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:sr},new Pa("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 Xo&&(x=x.adornedPart),x instanceof oo){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}),wd("ToolTip",function(){return au(Xo,Hn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Zt(0,3),shadowBlur:5},au(fo,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new yi(0,0,4,6),spot2:new yi(1,1,-4,-4)}))}),wd("ContextMenu",function(){return au(Xo,Hn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Zt(0,3),shadowBlur:5},new Pa("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),wd("ContextMenuButton",function(){var a=au("Button");a.stretch=wi;var y=a.fb("ButtonBorder");return y instanceof fo&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new yi(0,0,2,3),y.spot2=new yi(1,1,-2,-2)),a}),wd("PanelExpanderButton",function(a){var y=cm(a,"COLLAPSIBLE"),x=au("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},au(fo,{name:"ButtonIcon",strokeWidth:2},new Pa("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof fo&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(b,E){var z=E.diagram;if(z!==null&&!z.isReadOnly){var tt=E.ih();tt===null&&(tt=E.part),tt!==null&&(E=tt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),wd("CheckBoxButton",function(a){var y=cm(a);return a=au("Button",{desiredSize:new Yn(14,14)},au(fo,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:jn,geometryStretch:pi,visible:!1},y!==""?new Pa("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Hn){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}),wd("CheckBox",function(a){a=cm(a),a=au("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Bi(0,1,0,0)});var y=au(Hn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Bi(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}),be.None=Nn=new Be(be,"None",0),be.Default=so=new Be(be,"Default",0),be.Vertical=Ri=new Be(be,"Vertical",4),be.Horizontal=wi=new Be(be,"Horizontal",5),be.Fill=jn=new Be(be,"Fill",3),be.Uniform=pi=new Be(be,"Uniform",1),be.UniformToFill=ko=new Be(be,"UniformToFill",2),be.FlipVertical=xo=new Be(be,"FlipVertical",1),be.FlipHorizontal=Ho=new Be(be,"FlipHorizontal",2),be.FlipBoth=vr=new Be(be,"FlipBoth",3),be.make=au,be.getBuilders=function(){var a=new si,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},be.defineBuilder=wd,be.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 be))return y&&b.set(y),b;xe('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},be.takeBuilderArgument=cm;function xf(){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=ar,this.o=Fr,this.hg=so,this.ob=this.Bi=1,this.Pf=Nn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}xf.prototype.copy=function(){var a=new xf;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 $d(){this.u=-1/0,this.o=0,this.F=Co,this.rr=Ys,this.j=this.V="None"}$d.prototype.copy=function(){var a=new $d;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},$d.className="LinkElementSettings";function sp(){this.yj=this.Xi=lr,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 Hc(){this.ha=[1,0,0,1,0,0]}Hc.prototype.copy=function(){var a=new Hc;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},Hc.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},Hc.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Hc.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var b=1}else a===180?(a=-1,b=0):a===270?(a=0,b=-1):(b=a*Math.PI/180,a=Math.cos(b),b=Math.sin(b));var E=this.ha[1]*a+this.ha[3]*b,z=this.ha[0]*-b+this.ha[2]*a,tt=this.ha[1]*-b+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*b,this.ha[1]=E,this.ha[2]=z,this.ha[3]=tt,this.translate(-y,-x)}},Hc.className="STransform";function wf(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}wf.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},wf.className="SGradient";function lh(a,y,x){this.ownerDocument=a=y===void 0?Yt.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 Al(this,x)}lh.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},lh.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),We(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},lh.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},lh.prototype.focus=function(){this.Oa.focus()},lh.prototype.mx=function(){this.ownerDocument=null},_t.Object.defineProperties(lh.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}}}),lh.className="SVGSurface";function Al(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 Hc,this.j=fm(this),this.Nj=fm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=nr++,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 Xy(a,y,x,b,E,z,tt){a.Nj===void 0?lp(a,y,x,b,E,z,tt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+tt+")")}Lt=Al.prototype,Lt.arc=function(a,y,x,b,E,z,tt,ot){var rt=2*Math.PI,lt=rt-1e-6,ut=x*Math.cos(b),ft=x*Math.sin(b),yt=a+ut,Pt=y+ft,bt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(tt-yt)||1e-6<Math.abs(ot-Pt))&&this.path.push(["L",yt,+Pt]),0>b&&(b=b%rt+rt),b>lt?(this.path.push(["A",x,x,0,1,bt,a-ut,y-ft]),this.path.push(["A",x,x,0,1,bt,yt,Pt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),bt,a+x*Math.cos(E),y+x*Math.sin(E)])},Lt.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Lt.Se=function(a){this.addPath(this.path,this.rb,a||0)},Lt.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},Lt.clearRect=function(){},Lt.clip=function(){this.Yl.clipPath=!0},Lt.closePath=function(){this.path.push(["z"])},Lt.createLinearGradient=function(a,y,x,b){var E=new wf("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},Lt.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"+nr++,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(zc,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},Lt.createRadialGradient=function(a,y,x,b,E,z){var tt=new wf("radial");return tt.x1=a,tt.y1=y,tt.r1=x,tt.x2=b,tt.y2=E,tt.r2=z,tt};function Jy(a,y,x,b,E,z,tt,ot,rt){b=ot/b,E=rt/E,z===0&&tt===0||a.rb.translate(z,tt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}Lt.drawImage=function(a,y,x,b,E,z,tt,ot,rt){var lt="";a instanceof HTMLCanvasElement&&(lt=a.toDataURL()),a instanceof HTMLImageElement&&(lt=a.getAttribute("src"));var ut=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,tt=x,ot=b=ut,rt=E=a),b=b||0,E=E||0,ot=ot||0,rt=rt||0,Jy(this,y,x,b,E,z||0,tt||0,ot,rt),z={x:0,y:0,width:ut||b,height:a||E,href:lt},De.$(b,ot)&&De.$(E,rt)?lt.toLowerCase().indexOf(".svg")===-1&<.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==ut||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),rg(this,zc,z,this.rb),this.addElement(zc,z)},Lt.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),iv(this,this.Yl)},Lt.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Lt.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)},Lt.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))},Lt.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])},Lt.lineTo=function(a,y){this.path.push(["L",a,y])},Lt.moveTo=function(a,y){this.path.push(["M",a,y])},Lt.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},Lt.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"])},Lt.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},Lt.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())},Lt.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 Qy(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Lt.scale=function(a,y){this.rb.scale(a,y)},Lt.translate=function(a,y){this.rb.translate(a,y)},Lt.transform=function(){},Lt.yc=function(){},Lt.stroke=function(){$y(this,this.Yl)},Lt.jk=function(){this.clipInsteadOfFill||this.stroke()},Lt.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Lt.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 wf?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 wf?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 wf)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"+nr++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:b,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:b});else throw Error("invalid gradient");var E=y.gx;y=E.length;for(var z=[],tt=0;tt<y;tt++){var ot=E[tt],rt=ot.color;ot={offset:ot.offset,"stop-color":rt},/^rgba\(/.test(rt)&&(rt=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(rt),ot["stop-color"]="rgb("+rt[1]+","+rt[2]+","+rt[3]+")",ot["stop-opacity"]=rt[4]),z.push(ot)}for(z.sort(function(lt,ut){return lt.offset>ut.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}Lt.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=Ie(a[E]),tt=[z.shift()];if(tt[0]==="A")tt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)tt.push(z.shift()+","+z.shift());b.push(tt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,rg(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ot in a)ot!=="transform"&&y.setAttributeNS(null,ot,a[ot]);else{ot=y.getElementsByTagName("path");for(var rt in a)rt!=="transform"&&ot[x].setAttributeNS(null,rt,a[rt])}else this.addElement("path",a)};function lp(a,y,x,b,E,z,tt){var ot=new Hc;ot.ha=[y,x,b,E,z,tt],y={},rg(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function fm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Lt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Ah(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function $h(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Lt.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Lt.fs=function(){this.Ct=!1},Lt.Vc=function(){},Lt.Wx=function(){},Al.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},Al.prototype.getImageData=function(){return null},Al.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()))}Al.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},Al.className="SVGContext",Xe.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new lh(this,Yt.document));var y=new lh(this,Yt.document,!0);a===void 0&&(a=new ci);var x=this;return gf(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)},Xe.prototype.makeSvg=Xe.prototype.Cs,Xe.prototype.av=function(a){return this.Cs(a)},Xe.prototype.makeSVG=Xe.prototype.av;function vu(a,y,x,b){this.ownerDocument=y=y===void 0?Yt.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Gc(y,x,b),y.H=a}vu.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},vu.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},vu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},vu.prototype.focus=function(){this.Oa.focus()},vu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},_t.Object.defineProperties(vu.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}}}),vu.className="CanvasSurface";function Gc(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&xe("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}Lt=Gc.prototype,Lt.Wx=function(a){this.Z.imageSmoothingEnabled=a},Lt.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},Lt.beginPath=function(){this.Z.beginPath()},Lt.Se=function(){},Lt.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},Lt.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},Lt.clip=function(){this.Z.clip()},Lt.closePath=function(){this.Z.closePath()},Lt.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},Lt.createPattern=function(a,y){return this.Z.createPattern(a,y)},Lt.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},Lt.drawImage=function(a,y,x,b,E,z,tt,ot,rt){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,tt,ot,rt)},Lt.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Lt.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Lt.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},Lt.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Lt.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},Lt.lineTo=function(a,y){this.Z.lineTo(a,y)},Lt.measureText=function(a){return this.Z.measureText(a)},Lt.moveTo=function(a,y){this.Z.moveTo(a,y)},Lt.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},Lt.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},Lt.restore=function(){this.Z.restore()},Lt.save=function(){this.yc(),this.Z.save()},Gc.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Lt=Gc.prototype,Lt.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},Lt.scale=function(a,y){this.El.scale(a,y)},Lt.translate=function(a,y){this.El.translate(a,y)},Lt.stroke=function(){this.Z.stroke()},Lt.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var tt=this.El,ot=tt.m11*a+tt.m21*y;a=tt.m12*a+tt.m22*y,y=tt.m11*x+tt.m21*b,x=tt.m12*x+tt.m22*b,tt.dx=tt.m11*E+tt.m21*z+tt.dx,tt.dy=tt.m12*E+tt.m22*z+tt.dy,tt.m11=ot,tt.m12=a,tt.m21=y,tt.m22=x}},Lt.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Lt.ng=function(a,y){if(a instanceof hr&&a.type===su){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)},Lt.jk=function(){this.Hm||this.stroke()},Lt.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Lt.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Lt.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(mx),a.lineDashOffset=0)},Lt.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Lt.Hs=function(){},_t.Object.defineProperties(Gc.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([]);Gc.className="CanvasSurfaceContext";function up(){this.F=this.o=this.u=this.j=0}up.className="ColorNumbers";function hr(a,y){ug||(hv(),ug=!0),po(this),this._isFrozen=!1,a===void 0?(this.na=Pd,this.xk="black"):typeof a=="string"?(this.na=Pd,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===td?(this.Qd=Cl,this.Lk=nl):this.Lk=a===su?this.Qd=jo:this.Qd=la,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}hr.prototype.copy=function(){var a=new hr;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},Lt=hr.prototype,Lt.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Lt.ka=function(){return Object.isFrozen(this)&&xe("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Lt.qb=function(a){a.classType===hr&&(this.type=a)},Lt.toString=function(){var a="Brush(";if(this.type===Pd)a+=this.color;else if(a=this.type===td?a+"Linear ":this.type===su?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+")"},Lt.addColorStop=function(a,y){return this._isFrozen&&vn(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Wn(a,"0 <= loc <= 1",hr,"addColorStop:loc"),this.we===null&&(this.we=new si),this.we.add(a,y),this.na===Pd&&(this.type=td),this.xe=null,this},Lt.Vz=function(a,y){if(this._isFrozen&&vn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dg:y,this.type===Pd)_h(this.color),this.color=sg(a,y);else if((this.type===td||this.type===su)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)_h(x.value),this.addColorStop(x.key,sg(a,y));return this};function _y(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dg:x,_h(a),sg(y,x)}Lt.Wy=function(a,y){if(this._isFrozen&&vn(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?dg:y,this.type===Pd)_h(this.color),this.color=sg(-a,y);else if((this.type===td||this.type===su)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)_h(x.value),this.addColorStop(x.key,sg(-a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?dg:x,_h(a),sg(-y,x)}function rv(a,y,x){_h(a),a=Mr.j;var b=Mr.u,E=Mr.o,z=Mr.F;return _h(y),x===void 0&&(x=.5),"rgba("+Math.round((Mr.j-a)*x+a)+", "+Math.round((Mr.u-b)*x+b)+", "+Math.round((Mr.o-E)*x+E)+", "+Math.round((Mr.F-z)*x+z)+")"}Lt.Gx=function(){if(this.type===Pd)return ag(this.color);if((this.type===td||this.type===su)&&this.colorStops!==null){var a=this.colorStops;if(this.type===su)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 tt=y.key,ot=Math.abs(.5-y.key);E>z&&ot<E?(x=tt,E=ot):z>=E&&ot<z&&(b=tt,z=ot)}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 hr?a.Gx():(_h(a),128>(299*Mr.j+587*Mr.u+114*Mr.o)/1e3):!1}function sg(a,y){switch(y){case dg:y=100*sv(Mr.j);var x=100*sv(Mr.u),b=100*sv(Mr.o);return Vs.j=.4124564*y+.3575761*x+.1804375*b,Vs.u=.2126729*y+.7151522*x+.072175*b,Vs.o=.0193339*y+.119192*x+.9503041*b,Vs.F=Mr.F,y=uv(Vs.j/lg[0]),x=uv(Vs.u/lg[1]),b=uv(Vs.o/lg[2]),Mh.j=116*x-16,Mh.u=500*(y-x),Mh.o=200*(x-b),Mh.F=Vs.F,Mh.j=Math.min(100,Math.max(0,Mh.j+100*a)),a=(Mh.j+16)/116,y=a-Mh.o/200,Vs.j=lg[0]*e1(Mh.u/500+a),Vs.u=lg[1]*(Mh.j>pm*dv?Math.pow(a,3):Mh.j/pm),Vs.o=lg[2]*e1(y),Vs.F=Mh.F,a=-.969266*Vs.j+1.8760108*Vs.u+.041556*Vs.o,y=.0556434*Vs.j+-.2040259*Vs.u+1.0572252*Vs.o,Mr.j=255*lv((3.2404542*Vs.j+-1.5371385*Vs.u+-.4985314*Vs.o)/100),Mr.u=255*lv(a/100),Mr.o=255*lv(y/100),Mr.F=Vs.F,Mr.j=Math.round(Mr.j),255<Mr.j?Mr.j=255:0>Mr.j&&(Mr.j=0),Mr.u=Math.round(Mr.u),255<Mr.u?Mr.u=255:0>Mr.u&&(Mr.u=0),Mr.o=Math.round(Mr.o),255<Mr.o?Mr.o=255:0>Mr.o&&(Mr.o=0),"rgba("+Mr.j+", "+Mr.u+", "+Mr.o+", "+Mr.F+")";case n1:return av(),Xl.o=Math.min(100,Math.max(0,Xl.o+100*a)),"hsla("+Xl.j+", "+Xl.u+"%, "+Xl.o+"%, "+Xl.F+")";default:xe("Unknown color space: "+y)}}function _h(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,Mr.j=a[0],Mr.u=a[1],Mr.o=a[2],Mr.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Mr.j=0,Mr.u=0,Mr.o=0,Mr.F=1)}}function av(){var a=Mr.j/255,y=Mr.u/255,x=Mr.o/255,b=Math.max(a,y,x),E=Math.min(a,y,x),z=b-E;if(E=(b+E)/2,z===0)var tt=a=0;else{switch(b){case a:tt=(y-x)/z%6;break;case y:tt=(x-a)/z+2;break;case x:tt=(a-y)/z+4}tt*=60,0>tt&&(tt+=360),a=z/(1-Math.abs(2*E-1))}Xl.j=Math.round(tt),Xl.u=Math.round(100*a),Xl.o=Math.round(100*E),Xl.F=Mr.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 e1(a){var y=a*a*a;return y>dv?y:(116*a-16)/pm}function Pf(a,y){typeof a!="string"&&(a instanceof hr||xe("Value for "+y+" must be a color string or a Brush, not "+a))}function hv(){cv=ra?new vu(null,void 0,{willReadFrequently:!0}).context:null}_t.Object.defineProperties(hr.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&vn(this,a),this.na=a,this.start.Mc()&&(a===td?this.start=Cl:a===su&&(this.start=jo)),this.end.Mc()&&(a===td?this.end=nl:a===su&&(this.end=jo)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&vn(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&vn(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&vn(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&vn(this,a),0>a&&Wn(a,">= zero",hr,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&vn(this,a),0>a&&Wn(a,">= zero",hr,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&vn(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&vn(this,a),this.cr=a,this.xe=null}}}),hr.prototype.isDark=hr.prototype.Gx,hr.prototype.darkenBy=hr.prototype.Wy,hr.prototype.lightenBy=hr.prototype.Vz,hr.prototype.addColorStop=hr.prototype.addColorStop;var dv=216/24389,pm=24389/27,lg=[95.047,100,108.883],cv=null,Mr=new up,Xl=new up,Vs=new up,Mh=new up,ug=!1;hr.className="Brush";var Pd;hr.Solid=Pd=new Be(hr,"Solid",0);var td;hr.Linear=td=new Be(hr,"Linear",1);var su;hr.Radial=su=new Be(hr,"Radial",2);var hg;hr.Pattern=hg=new Be(hr,"Pattern",4);var dg;hr.Lab=dg=new Be(hr,"Lab",5);var n1;hr.HSL=n1=new Be(hr,"HSL",6),hr.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},hr.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)},hr.lighten=function(a){return _y(a)},hr.lightenBy=_y,hr.darken=function(a){return t1(a)},hr.darkenBy=t1,hr.mix=rv,hr.isDark=ag;function Ka(){this.xa="Base"}Ka.prototype.measure=function(){},Ka.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Ka.prototype.arrange=function(){},Ka.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Ka.prototype.iA=function(a){a.Uj()},Ka.prototype.gc=function(){},_t.Object.defineProperties(Ka.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Hn}}}),Ka.prototype.remeasureObject=Ka.prototype.iA,Ka.prototype.arrangeElement=Ka.prototype.Ly,Ka.prototype.measureElement=Ka.prototype.Yz,Ka.className="PanelLayout";function mm(){this.xa="Base"}he(mm,Ka),mm.prototype.measure=function(a,y,x,b,E,z,tt){var ot=b.length;a=ed(a);for(var rt=0;rt<ot;rt++){var lt=b[rt];if(lt.visible||lt===a){var ut=lt.margin,ft=ut.right+ut.left;ut=ut.top+ut.bottom,lt.measure(y,x,z,tt);var yt=lt.measuredBounds;ft=Math.max(yt.width+ft,0),ut=Math.max(yt.height+ut,0),yt=lt.position.x;var Pt=lt.position.y;isFinite(yt)||(yt=0),isFinite(Pt)||(Pt=0),lt instanceof fo&<.isGeometryPositioned&&(lt=lt.strokeWidth/2,yt-=lt,Pt-=lt),or(E,yt,Pt,ft,ut)}}},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],tt=z.measuredBounds,ot=z.margin,rt=z.position.x,lt=z.position.y;if(rt=isNaN(rt)?-a:rt-a,lt=isNaN(lt)?-x:lt-x,z instanceof fo&&z.isGeometryPositioned){var ut=z.strokeWidth/2;rt-=ut,lt-=ut}z.visible&&z.arrange(rt+ot.left,lt+ot.top,tt.width,tt.height)}};function vm(){this.xa="Base"}he(vm,Ka),vm.prototype.measure=function(a,y,x,b,E,z,tt){var ot=b.length;y=rn(),z=ed(a);for(var rt=0;rt<ot;rt++){var lt=b[rt];if(lt.visible||lt===z){var ut=sl(lt,!1);if(ut!==Nn&&ut!==wi)y.push(lt);else{lt.measure(1/0,x,0,tt),ut=lt.margin,lt=lt.measuredBounds;var ft=Math.max(lt.height+ut.top+ut.bottom,0);E.width+=Math.max(lt.width+ut.right+ut.left,0),E.height=Math.max(E.height,ft)}}}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++)rt=y[a],(rt.visible||rt===z)&&(ut=rt.margin,ot=ut.right+ut.left,ut=ut.top+ut.bottom,rt.measure(1/0,x,0,tt),rt=rt.measuredBounds,ut=Math.max(rt.height+ut,0),E.width+=Math.max(rt.width+ot,0),E.height=Math.max(E.height,ut));pn(y)},vm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,tt=a.isOpposite,ot=tt?x.width:E.left,rt=0;rt<b;rt++){var lt=z,ut=y[rt];if(ut.visible){var ft=ut.measuredBounds,yt=ut.margin,Pt=yt.top+yt.bottom,bt=z+E.bottom,Nt=ft.height,Qt=sl(ut,!1);(isNaN(ut.desiredSize.height)&&Qt===jn||Qt===Ri)&&(Nt=Math.max(x.height-Pt-bt,0)),Pt=Nt+Pt+bt,bt=ut.alignment,bt.Xb()&&(bt=a.defaultAlignment),bt.sb()||(bt=jo),tt&&(ot-=ft.width+yt.left+yt.right),ut.arrange(ot+bt.offsetX+yt.left,lt+bt.offsetY+yt.top+(x.height*bt.y-Pt*bt.y),ft.width,Nt),tt||(ot+=ft.width+yt.left+yt.right)}}};function ym(){this.xa="Base"}he(ym,Ka),ym.prototype.measure=function(a,y,x,b,E,z){var tt=b.length;x=rn();for(var ot=ed(a),rt=0;rt<tt;rt++){var lt=b[rt];if(lt.visible||lt===ot){var ut=sl(lt,!1);if(ut!==Nn&&ut!==Ri)x.push(lt);else{var ft=lt.margin;ut=ft.right+ft.left,ft=ft.top+ft.bottom,lt.measure(y,1/0,z,0),lt=lt.measuredBounds,La(E,Math.max(E.width,Math.max(lt.width+ut,0)),E.height+Math.max(lt.height+ft,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++)rt=x[a],(rt.visible||rt===ot)&&(lt=rt.margin,tt=lt.right+lt.left,lt=lt.top+lt.bottom,rt.measure(y,1/0,z,0),rt=rt.measuredBounds,lt=Math.max(rt.height+lt,0),E.width=Math.max(E.width,Math.max(rt.width+tt,0)),E.height+=lt);pn(x)}},ym.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,tt=a.isOpposite,ot=tt?x.height:E.top,rt=0;rt<b;rt++){var lt=z,ut=y[rt];if(ut.visible){var ft=ut.measuredBounds,yt=ut.margin,Pt=yt.left+yt.right,bt=z+E.right,Nt=ft.width,Qt=sl(ut,!1);(isNaN(ut.desiredSize.width)&&Qt===jn||Qt===wi)&&(Nt=Math.max(x.width-Pt-bt,0)),Pt=Nt+Pt+bt,bt=ut.alignment,bt.Xb()&&(bt=a.defaultAlignment),bt.sb()||(bt=jo),tt&&(ot-=ft.height+yt.bottom+yt.top),ut.arrange(lt+bt.offsetX+yt.left+(x.width*bt.x-Pt*bt.x),ot+bt.offsetY+yt.top,Nt,ft.height),tt||(ot+=ft.height+yt.bottom+yt.top)}}};function Sm(){this.xa="Base"}he(Sm,Ka),Sm.prototype.measure=function(a,y,x,b,E,z,tt){var ot=b.length,rt=a.Pb(),lt=rt.margin,ut=lt.right+lt.left,ft=lt.top+lt.bottom;rt.measure(y,x,z,tt);var yt=rt.measuredBounds;z=yt.width,tt=yt.height;var Pt=Math.max(z+ut,0),bt=Math.max(tt+ft,0),Nt=a.isClipping,Qt=gn.allocAt(-lt.left,-lt.top,Pt,bt),Wt=gn.allocAt(0,0,z,tt);fv(rt,Wt,!0),z=Wt.width,tt=Wt.height;for(var ae=!0,ue=ed(a),ce=0;ce<ot;ce++){var Pe=b[ce];yt=y;var Je=x;if(Pe!==rt&&(Pe.visible||Pe===ue)){lt=Pe.margin;var ti=lt.left,fi=lt.top;switch(Pt=lt.right+lt.left,bt=lt.top+lt.bottom,lt=sl(Pe,!1),lt){case jn:yt=z,Je=tt,fi=ti=bt=Pt=0;break;case wi:yt=z,ti=Pt=0;break;case Ri:Je=tt,fi=bt=0}Pe.measure(yt,Je,0,0),yt=Pe.measuredBounds,Pt=Math.max(yt.width+Pt,0),bt=Math.max(yt.height+bt,0),lt=Pe.alignment,lt.Xb()&&(lt=a.defaultAlignment),lt.sb()||(lt=jo);var li=Pe.alignmentFocus;if(li.Xb()&&(li=jo),Je=null,Pe instanceof Hn&&Pe.$e!==""&&(Je=Pe.fb(Pe.$e),Je===Pe&&(Je=null)),ti=Wt.x-ti,fi=Wt.y-fi,Je!==null){for(Pe.arrange(0,0,yt.width,yt.height),yt=Je.actualBounds,yt=Zt.allocAt(yt.x+(li.x*yt.width-li.offsetX),yt.y+(li.y*yt.height-li.offsetY)),Je=Je.panel;Je!==Pe;)Je.transform.Ga(yt),Je=Je.panel;ti+=lt.x*z+lt.offsetX-yt.x,fi+=lt.y*tt+lt.offsetY-yt.y,Zt.free(yt)}else ti+=lt.x*z+lt.offsetX-(li.x*yt.width+li.offsetX),fi+=lt.y*tt+lt.offsetY-(li.y*yt.height+li.offsetY);ae?(ae=!1,E.h(ti,fi,Pt,bt)):or(E,ti,fi,Pt,bt)}}switch(ae?E.assign(Qt):Nt?E.Uu(Wt.x,Wt.y,Wt.width,Wt.height):or(E,Qt.x,Qt.y,Qt.width,Qt.height),gn.free(Qt),gn.free(Wt),lt=rt.stretch,lt===so&&(lt=sl(rt,!1)),lt){case Nn:return;case jn:if(!isFinite(y)&&!isFinite(x))return;break;case wi:if(!isFinite(y))return;break;case Ri:if(!isFinite(x))return}for(yt=rt.measuredBounds,z=yt.width,tt=yt.height,Pt=Math.max(z+ut,0),bt=Math.max(tt+ft,0),lt=rt.margin,Wt=gn.allocAt(-lt.left,-lt.top,Pt,bt),fv(rt,Wt,!0),z=Wt.width,tt=Wt.height,y=0;y<ot;y++)x=b[y],x===rt||!x.visible&&x!==ue||(lt=x.margin,Pt=lt.right+lt.left,bt=lt.top+lt.bottom,yt=x.measuredBounds,Pt=Math.max(yt.width+Pt,0),bt=Math.max(yt.height+bt,0),ut=x.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=jo),x=x.alignmentFocus,x.Xb()&&(x=jo),ae?(ae=!1,E.h(ut.x*z+ut.offsetX-(x.x*yt.width+x.offsetX)-lt.left,ut.y*tt+ut.offsetY-(x.y*yt.height+x.offsetY)-lt.top,Pt,bt)):or(E,ut.x*z+ut.offsetX-(x.x*yt.width+x.offsetX)-lt.left,ut.y*tt+ut.offsetY-(x.y*yt.height+x.offsetY)-lt.top,Pt,bt));ae?E.assign(Qt):Nt?E.Uu(Wt.x,Wt.y,Wt.width,Wt.height):or(E,Qt.x,Qt.y,Qt.width,Qt.height),gn.free(Wt)},Sm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,tt=z.width,ot=z.height,rt=a.padding;z=rt.left,rt=rt.top;var lt=z-x.x,ut=rt-x.y;for(E.arrange(lt,ut,tt,ot),tt=gn.allocAt(0,0,tt,ot),fv(E,tt,!1),ot=0;ot<b;ot++){var ft=y[ot];if(ft!==E){lt=ft.measuredBounds;var yt=lt.width,Pt=lt.height;ut=ft.alignment,ut.Xb()&&(ut=a.defaultAlignment),ut.sb()||(ut=jo);var bt=ft.alignmentFocus;if(bt.Xb()&&(bt=jo),lt=null,ft instanceof Hn&&ft.$e!==""&&(lt=ft.fb(ft.$e),lt===ft&&(lt=null)),lt!==null){var Nt=lt.actualBounds;for(bt=Zt.allocAt(Nt.x+(bt.x*Nt.width-bt.offsetX),Nt.y+(bt.y*Nt.height-bt.offsetY)),lt=lt.panel;lt!==ft;)lt.transform.Ga(bt),lt=lt.panel;lt=ut.x*tt.width+ut.offsetX-bt.x,ut=ut.y*tt.height+ut.offsetY-bt.y,Zt.free(bt)}else lt=ut.x*tt.width+ut.offsetX-(bt.x*yt+bt.offsetX),ut=ut.y*tt.height+ut.offsetY-(bt.y*Pt+bt.offsetY);lt+=tt.x-x.x,ut+=tt.y-x.y,ft.visible&&ft.arrange(z+lt,rt+ut,yt,Pt)}}gn.free(tt)};function fv(a,y,x){var b=null;if(a instanceof Hn&&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"}he(xm,Ka),xm.prototype.measure=function(a,y,x,b,E,z,tt){var ot=b.length,rt=a.Pb(),lt=rt.margin,ut=y,ft=x,yt=lt.right+lt.left,Pt=lt.top+lt.bottom;rt.measure(y,x,z,tt),lt=rt.measuredBounds;var bt=0,Nt=null;rt instanceof fo&&(Nt=rt,bt=Nt.strokeWidth*Nt.scale);var Qt=Math.max(lt.width+yt,0);lt=Math.max(lt.height+Pt,0);var Wt=vv(rt),ae=Wt.x*Qt+Wt.offsetX;Wt=Wt.y*lt+Wt.offsetY;var ue=yv(rt),ce=ue.x*Qt+ue.offsetX;for(ue=ue.y*lt+ue.offsetY,isFinite(y)&&(ut=Math.max(Math.abs(ae-ce)-bt,0)),isFinite(x)&&(ft=Math.max(Math.abs(Wt-ue)-bt,0)),bt=Yn.alloc(),bt.h(0,0),a=ed(a),ue=0;ue<ot;ue++)Wt=b[ue],Wt===rt||!Wt.visible&&Wt!==a||(lt=Wt.margin,Qt=lt.right+lt.left,ae=lt.top+lt.bottom,Wt.measure(ut,ft,0,0),lt=Wt.measuredBounds,Qt=Math.max(lt.width+Qt,0),lt=Math.max(lt.height+ae,0),bt.h(Math.max(Qt,bt.width),Math.max(lt,bt.height)));if(ot===1)E.width=Qt,E.height=lt,Yn.free(bt);else{switch(Wt=vv(rt),ue=yv(rt),ot=b=0,ue.x!==Wt.x&&ue.y!==Wt.y&&(b=bt.width/Math.abs(ue.x-Wt.x),ot=bt.height/Math.abs(ue.y-Wt.y)),Yn.free(bt),bt=0,Nt!==null&&(bt=Nt.strokeWidth*Nt.scale,bv(Nt)===pi&&(b=ot=Math.max(b,ot))),b+=Math.abs(Wt.offsetX)+Math.abs(ue.offsetX)+bt,ot+=Math.abs(Wt.offsetY)+Math.abs(ue.offsetY)+bt,Nt=rt.stretch,Nt===so&&(Nt=sl(rt,!1)),Nt){case Nn:tt=z=0;break;case jn:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case wi:isFinite(y)&&(b=y),tt=0;break;case Ri:z=0,isFinite(x)&&(ot=x)}rt.Uj(),rt.measure(b,ot,z,tt),E.width=rt.measuredBounds.width+yt,E.height=rt.measuredBounds.height+Pt}},xm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=gn.alloc();z.h(0,0,1,1);var tt=b.margin,ot=tt.left;tt=tt.top;var rt=a.padding,lt=rt.left;rt=rt.top,b.arrange(lt+ot,rt+tt,E.width,E.height);var ut=vv(b),ft=yv(b),yt=ut.y*E.height+ut.offsetY,Pt=ft.x*E.width+ft.offsetX;for(ft=ft.y*E.height+ft.offsetY,z.x=ut.x*E.width+ut.offsetX,z.y=yt,or(z,Pt,ft,0,0),z.x+=ot+lt,z.y+=tt+rt,E=0;E<x;E++)ot=y[E],ot!==b&&(lt=ot.measuredBounds,tt=ot.margin,rt=Math.max(lt.width+tt.right+tt.left,0),ut=Math.max(lt.height+tt.top+tt.bottom,0),yt=ot.alignment,yt.Xb()&&(yt=a.defaultAlignment),yt.sb()||(yt=jo),rt=z.width*yt.x+yt.offsetX-rt*yt.x+tt.left+z.x,tt=z.height*yt.y+yt.offsetY-ut*yt.y+tt.top+z.y,ot.visible&&(Br(z.x,z.y,z.width,z.height,rt,tt,lt.width,lt.height)?ot.arrange(rt,tt,lt.width,lt.height):ot.arrange(rt,tt,lt.width,lt.height,new gn(z.x,z.y,z.width,z.height))));gn.free(z)};function wm(){this.xa="Base",this.name="Table"}he(wm,Ka),wm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,tt=rn(),ot=rn(),rt=0;rt<z;rt++){var lt=b[rt],ut=lt instanceof Hn?lt:null;if(ut!==null&&Cd(ut)&<.visible){ot.push(ut);for(var ft=ut.O.s,yt=ft.length,Pt=0;Pt<yt;Pt++){var bt=ft[Pt];ut.type===Hn.TableRow?bt.row=lt.row:ut.type===Hn.TableColumn&&(bt.column=lt.column),tt.push(bt)}}else tt.push(lt)}z=tt.length,z===0&&(a.Fb(0),a.Eb(0));for(var Nt=[],Qt=0;Qt<z;Qt++){var Wt=tt[Qt];Wt.visible&&(Oa(Wt,!0),Lh(Wt,!0),Nt[Wt.row]||(Nt[Wt.row]=[]),Nt[Wt.row][Wt.column]||(Nt[Wt.row][Wt.column]=[]),Nt[Wt.row][Wt.column].push(Wt))}pn(tt);var ae=rn(),ue=rn(),ce=rn(),Pe={count:0},Je={count:0},ti=y,fi=x,li=a.rowDefs,Vn=a.colDefs,Fn=null;z=li.length;for(var no=0;no<z;no++)Fn=li[no],Fn!==void 0&&(Fn.actual=0);z=Vn.length;for(var Xi=0;Xi<z;Xi++)Fn=Vn[Xi],Fn!==void 0&&(Fn.actual=0);for(var qo=Nt.length,br=0,ts=0;ts<qo;ts++)Nt[ts]&&(br=Math.max(br,Nt[ts].length));var os=Math.min(a.topIndex,qo-1),Is=Math.min(a.leftIndex,br-1),es=0;qo=Nt.length;for(var Nd=ed(a),Ca=0;Ca<qo;Ca++)if(Nt[Ca]){br=Nt[Ca].length;var $u=a.Fb(Ca);$u.actual=0;for(var Rs=$u.oc=0;Rs<br;Rs++)if(Nt[Ca][Rs]){var Td=a.Eb(Rs);ae[Rs]===void 0&&(Td.actual=0,Td.oc=0,ae[Rs]=!0);for(var ql=Nt[Ca][Rs],wu=ql.length,kl=0;kl<wu;kl++){var Sl=ql[kl];if(Sl.visible||Sl===Nd){var cc=1<Sl.rowSpan||1<Sl.columnSpan;cc&&(Ca<os||Rs<Is||ue.push(Sl));var _u=Sl.margin,Tg=_u.right+_u.left,Bl=_u.top+_u.bottom,zs=Yu(Sl,$u,Td,!1),Qp=Sl.desiredSize,Tf=!isNaN(Qp.height),dh=!isNaN(Qp.width)&&Tf;if(cc||zs===Nn||dh||Ca<os||Rs<Is||(Pe[Rs]!==void 0||zs!==jn&&zs!==wi||(Pe[Rs]=-1,Pe.count++),Je[Ca]!==void 0||zs!==jn&&zs!==Ri||(Je[Ca]=-1,Je.count++),ce.push(Sl)),Sl.measure(1/0,1/0,0,0),!(Ca<os||Rs<Is)){var xl=Sl.measuredBounds,qc=Math.max(xl.width+Tg,0),Dl=Math.max(xl.height+Bl,0);if(Sl.rowSpan===1&&(zs===Nn||zs===wi)){Fn=a.Fb(Ca);var fc=Fn.Wc();es=Math.max(Dl-Fn.actual,0),es+fc>fi&&(es=Math.max(fi-fc,0));var K0=Fn.oa===0;Fn.oc=Fn.oc+es,Fn.actual=Fn.oa+es,fi=Math.max(fi-(es+(K0?fc:0)),0)}if(Sl.columnSpan===1&&(zs===Nn||zs===Ri)){Fn=a.Eb(Rs);var qp=Fn.Wc();es=Math.max(qc-Fn.actual,0),es+qp>ti&&(es=Math.max(ti-qp,0));var Wy=Fn.oa===0;Fn.oc=Fn.oc+es,Fn.actual=Fn.oa+es,ti=Math.max(ti-(es+(Wy?qp:0)),0)}cc&&Sl.Uj()}}}}}pn(ae);var Rh=0,od=0;z=a.columnCount;for(var Of=0;Of<z;Of++){var gc=Vn[Of];gc!==void 0&&(Rh+=isNaN(gc.Hc)?gc.oc:gc.Hc,gc.oc!==0&&(Rh+=gc.Wc()))}z=a.rowCount;for(var Og=0;Og<z;Og++){var pc=li[Og];pc!==void 0&&(od+=isNaN(pc.Hc)?pc.oc:pc.Hc,pc.oc!==0&&(od+=pc.Wc()))}ti=Math.max(y-Rh,0);var zh=fi=Math.max(x-od,0),Od=ti;z=ce.length;for(var wl=0;wl<z;wl++){var ch=ce[wl],V0=a.Fb(ch.row),rd=a.Eb(ch.column),Ig=ch.measuredBounds,th=ch.margin,$c=th.right+th.left,fh=th.top+th.bottom;Pe[ch.column]=rd.oc===0&&Pe[ch.column]!==void 0?Math.max(Ig.width+$c,Pe[ch.column]):null,Je[ch.row]=V0.oc===0&&Je[ch.row]!==void 0?Math.max(Ig.height+fh,Je[ch.row]):null}var If=0,Rg=0,Ou;for(Ou in Je)Ou!=="count"&&(If+=Je[Ou]);for(Ou in Pe)Ou!=="count"&&(Rg+=Pe[Ou]);for(var gs=Yn.alloc(),$p=0;$p<z;$p++){var $s=ce[$p];if($s.visible||$s===Nd){var ba=a.Fb($s.row),_s=a.Eb($s.column),ad=0;isFinite(_s.width)?ad=_s.width:(isFinite(ti)&&Pe[$s.column]!==null?Rg===0?ad=_s.actual+ti:ad=Pe[$s.column]/Rg*Od:Pe[$s.column]!==null?ad=ti:ad=_s.actual||ti,ad=Math.max(0,ad-_s.Wc()));var Id=0;switch(isFinite(ba.height)?Id=ba.height:(isFinite(fi)&&Je[$s.row]!==null?If===0?Id=ba.actual+fi:Id=Je[$s.row]/If*zh:Je[$s.row]!==null?Id=fi:Id=ba.actual||fi,Id=Math.max(0,Id-ba.Wc())),gs.h(Math.max(_s.minimum,Math.min(ad,_s.maximum)),Math.max(ba.minimum,Math.min(Id,ba.maximum))),zs=Yu($s,ba,_s,!1),zs){case wi:gs.height=Math.max(gs.height,ba.actual+fi);break;case Ri:gs.width=Math.max(gs.width,_s.actual+ti)}var _c=$s.margin,Hy=_c.right+_c.left,U0=_c.top+_c.bottom;$s.Uj(),$s.measure(gs.width,gs.height,_s.minimum,ba.minimum);var zg=$s.measuredBounds,tf=Math.max(zg.width+Hy,0),Rf=Math.max(zg.height+U0,0);isFinite(ti)&&(tf=Math.min(tf,gs.width)),isFinite(fi)&&(Rf=Math.min(Rf,gs.height));var Pl=0;Pl=ba.actual,ba.actual=Math.max(ba.actual,Rf),ba.oc=Math.max(ba.oc,Rf),es=ba.actual-Pl,fi=Math.max(fi-es,0),Je[$s.row]===null&&(zh=Math.max(zh-es,0)),Pl=_s.actual,_s.actual=Math.max(_s.actual,tf),_s.oc=Math.max(_s.oc,tf),es=_s.actual-Pl,ti=Math.max(ti-es,0),Pe[$s.column]===null&&(Od=Math.max(Od-es,0))}}pn(ce);var sd=Yn.alloc(),eh=rn(),cu=rn();if(z=ue.length,z!==0){for(var mc=0;mc<qo;mc++)if(Nt[mc]){br=Nt[mc].length;var jg=a.Fb(mc);eh[mc]=jg.actual;for(var vc=0;vc<br;vc++)if(Nt[mc][vc]){var Y0=a.Eb(vc);cu[vc]=Y0.actual}}}for(var Wg=0;Wg<z;Wg++){var ua=ue[Wg];if(ua.visible||ua===Nd){var Iu=a.Fb(ua.row),Pu=a.Eb(ua.column);switch(gs.h(Math.max(Pu.minimum,Math.min(y,Pu.maximum)),Math.max(Iu.minimum,Math.min(x,Iu.maximum))),zs=Yu(ua,Iu,Pu,!1),zs){case jn:cu[Pu.index]!==0&&(gs.width=Math.min(gs.width,cu[Pu.index])),eh[Iu.index]!==0&&(gs.height=Math.min(gs.height,eh[Iu.index]));break;case wi:cu[Pu.index]!==0&&(gs.width=Math.min(gs.width,cu[Pu.index]));break;case Ri:eh[Iu.index]!==0&&(gs.height=Math.min(gs.height,eh[Iu.index]))}isFinite(Pu.width)&&(gs.width=Pu.width),isFinite(Iu.height)&&(gs.height=Iu.height),sd.h(0,0);for(var X0=Pu.minimum,Nl=Iu.minimum,Rd=1;Rd<ua.rowSpan&&!(ua.row+Rd>=a.rowCount);Rd++)Fn=a.Fb(ua.row+Rd),es=0,es=zs===jn||zs===Ri?Math.max(Fn.minimum,eh[ua.row+Rd]===0?Fn.maximum:Math.min(eh[ua.row+Rd],Fn.maximum)):Math.max(Fn.minimum,isNaN(Fn.Hc)?Fn.maximum:Math.min(Fn.Hc,Fn.maximum)),sd.height+=es,Nl+=Fn.minimum;for(var Cu=1;Cu<ua.columnSpan&&!(ua.column+Cu>=a.columnCount);Cu++)Fn=a.Eb(ua.column+Cu),es=0,es=zs===jn||zs===wi?Math.max(Fn.minimum,cu[ua.column+Cu]===0?Fn.maximum:Math.min(cu[ua.column+Cu],Fn.maximum)):Math.max(Fn.minimum,isNaN(Fn.Hc)?Fn.maximum:Math.min(Fn.Hc,Fn.maximum)),sd.width+=es,X0+=Fn.minimum;gs.width+=sd.width,gs.height+=sd.height;var Hg=ua.margin,yc=Hg.right+Hg.left,_p=Hg.top+Hg.bottom;ua.measure(gs.width,gs.height,X0,Nl);for(var Gg=ua.measuredBounds,gh=Math.max(Gg.width+yc,0),ef=Math.max(Gg.height+_p,0),Sc=0,Zg=0;Zg<ua.rowSpan&&!(ua.row+Zg>=a.rowCount);Zg++)Fn=a.Fb(ua.row+Zg),Sc+=Fn.total||0;if(Sc<ef){var zd=ef-Sc,jh=ef-Sc;if(ua.spanAllocation!==null)for(var jd=ua.spanAllocation,ld=0;ld<ua.rowSpan&&!(0>=zd)&&!(ua.row+ld>=a.rowCount);ld++){Fn=a.Fb(ua.row+ld);var Wd=Fn.oa||0,nf=jd(ua,Fn,jh);Fn.actual=Math.min(Fn.maximum,Wd+nf),Fn.oa!==Wd&&(zd-=Fn.oa-Wd)}for(;0<zd;){var nh=Fn.oa||0;if(isNaN(Fn.height)&&Fn.maximum>nh&&(Fn.actual=Math.min(Fn.maximum,nh+zd),Fn.oa!==nh&&(zd-=Fn.oa-nh)),Fn.index===0)break;Fn=a.Fb(Fn.index-1)}}for(var zf=0,Hd=0;Hd<ua.columnSpan&&!(ua.column+Hd>=a.columnCount);Hd++)Fn=a.Eb(ua.column+Hd),zf+=Fn.total||0;if(zf<gh){var jf=gh-zf,Gy=gh-zf;if(ua.spanAllocation!==null)for(var ud=ua.spanAllocation,of=0;of<ua.columnSpan&&!(0>=jf)&&!(ua.column+of>=a.columnCount);of++){Fn=a.Eb(ua.column+of);var tm=Fn.oa||0,Zy=ud(ua,Fn,Gy);Fn.actual=Math.min(Fn.maximum,tm+Zy),Fn.oa!==tm&&(jf-=Fn.oa-tm)}for(;0<jf;){var J0=Fn.oa||0;if(isNaN(Fn.width)&&Fn.maximum>J0&&(Fn.actual=Math.min(Fn.maximum,J0+jf),Fn.oa!==J0&&(jf-=Fn.oa-J0)),Fn.index===0)break;Fn=a.Eb(Fn.index-1)}}}}pn(ue),Yn.free(sd),Yn.free(gs),eh!==void 0&&pn(eh),cu!==void 0&&pn(cu);var Wf=0,Hf=0,Q0=a.desiredSize,gx=a.maxSize;zs=sl(a,!0);var em=od=Rh=0,nm=0;z=a.columnCount;for(var q0=0;q0<z;q0++)Vn[q0]!==void 0&&(Fn=a.Eb(q0),isFinite(Fn.width)?(em+=Fn.width,em+=Fn.Wc()):Bm(Fn)===fp?(em+=Fn.oa,em+=Fn.Wc()):Fn.oa!==0&&(Rh+=Fn.oa,Rh+=Fn.Wc()));isFinite(Q0.width)?Wf=Math.min(Q0.width,gx.width):Wf=zs!==Nn&&isFinite(y)?y:Rh,Wf=Math.max(Wf,a.minSize.width),Wf=Math.max(Wf-em,0);for(var qx=Rh===0?1:Math.max(Wf/Rh,1),$0=0;$0<z;$0++)Vn[$0]!==void 0&&(Fn=a.Eb($0),isFinite(Fn.width)||Bm(Fn)===fp||(Fn.actual=Fn.oa*qx),Fn.position=E.width,Fn.oa!==0&&(E.width+=Fn.oa,E.width+=Fn.Wc()));z=a.rowCount;for(var _0=0;_0<z;_0++)li[_0]!==void 0&&(Fn=a.Fb(_0),isFinite(Fn.height)?(nm+=Fn.height,nm+=Fn.Wc()):Bm(Fn)===fp?(nm+=Fn.oa,nm+=Fn.Wc()):Fn.oa!==0&&(od+=Fn.oa,od+=Fn.Wc()));isFinite(Q0.height)?Hf=Math.min(Q0.height,gx.height):Hf=zs!==Nn&&isFinite(x)?x:od,Hf=Math.max(Hf,a.minSize.height),Hf=Math.max(Hf-nm,0);for(var $x=od===0?1:Math.max(Hf/od,1),tv=0;tv<z;tv++)li[tv]!==void 0&&(Fn=a.Fb(tv),isFinite(Fn.height)||Bm(Fn)===fp||(Fn.actual=Fn.oa*$x),Fn.position=E.height,Fn.oa!==0&&(E.height+=Fn.oa,E.height+=Fn.Wc()));z=ot.length;for(var Ky=0;Ky<z;Ky++){var im=ot[Ky],Vy=0,Uy=0;im.type===Hn.TableRow?(Vy=E.width,Fn=a.Fb(im.row),Uy=Fn.actual):(Fn=a.Eb(im.column),Vy=Fn.actual,Uy=E.height),im.measuredBounds.h(0,0,Vy,Uy),Oa(im,!1)}pn(ot),a.inRowsCols=Nt},wm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var tt=a.inRowsCols;if(tt!==null){for(var ot,rt,lt=tt.length,ut=0,ft=0;ft<lt;ft++)tt[ft]&&(ut=Math.max(ut,tt[ft].length));rt=a.rowDefs,ot=a.colDefs;var yt=ft=0,Pt=Math.min(a.topIndex,lt-1);if(0<rt.length){for(;Pt!==lt&&(rt[Pt]===void 0||rt[Pt].oa===0);)Pt++;Pt=Math.max(Math.min(Pt,lt-1),0),ft=-rt[Pt].position}var bt=Math.min(a.leftIndex,ut-1);if(0<ot.length){for(;bt!==ut&&(ot[bt]===void 0||ot[bt].oa===0);)bt++;bt=Math.max(Math.min(bt,ut-1),0),yt=-ot[bt].position}for(var Nt=0,Qt=0;Nt!==lt&&rt[Nt]===void 0;)Nt++;for(;Qt!==lt&&ot[Qt]===void 0;)Qt++;ut=a.part,a.Fb(Nt),a.Eb(Qt);for(var Wt=0;Wt<y.length;Wt++){var ae=y[Wt];if(ae instanceof Hn&&ae.visible&&Cd(ae)){if(ae.type===Hn.TableRow){ot=a.Fb(ae.row);var ue=a.Eb(Qt)}else ot=a.Fb(Nt),ue=a.Eb(ae.column);rt=ot.position+ft+E,ot.oa!==0&&(rt+=ot.Io(Math.max(Nt,Pt))),ot=ue.position+yt+z,ue.oa!==0&&(ot+=ue.Io(Math.max(Qt,bt))),ue=ae.measuredBounds,ae.Uk(),ae.actualBounds.ka();var ce=ae.actualBounds,Pe=gn.allocAt(ce.x,ce.y,ce.width,ce.height);ce.x=ae.type===Hn.TableRow?z:ot,ce.y=ae.type===Hn.TableColumn?E:rt,ce.width=ue.width,ce.height=ue.height,ae.actualBounds.freeze(),Lh(ae,!1),Qo(Pe,ce)||ut===null||(ut.oh(),ae.Pn(ut)),gn.free(Pe)}}for(Wt=Yn.alloc(),ae=0;ae<lt;ae++)if(tt[ae]){for(ut=tt[ae].length,ue=a.Fb(ae),rt=ue.position+ft+E,ue.oa!==0&&(rt+=ue.Io(Math.max(Nt,Pt))),ce=0;ce<ut;ce++)if(tt[ae][ce]){Pe=a.Eb(ce),ot=Pe.position+yt+z,Pe.oa!==0&&(ot+=Pe.Io(Math.max(Qt,bt)));for(var Je=tt[ae][ce],ti=Je.length,fi=0;fi<ti;fi++){var li=Je[fi],Vn=li.measuredBounds;Wt.h(0,0);for(var Fn=1;Fn<li.rowSpan&&!(ae+Fn>=a.rowCount);Fn++){var no=a.Fb(ae+Fn);no.oa!==0&&(Wt.height+=no.total)}for(Fn=1;Fn<li.columnSpan&&!(ce+Fn>=a.columnCount);Fn++)no=a.Eb(ce+Fn),no.oa!==0&&(Wt.width+=no.total);var Xi=Pe.oa+Wt.width,qo=ue.oa+Wt.height;Fn=ot,no=rt;var br=Xi,ts=qo,os=ot,Is=rt,es=Xi,Nd=qo;ot+Xi>x.width&&(es=Math.max(x.width-ot,0)),rt+qo>x.height&&(Nd=Math.max(x.height-rt,0));var Ca=li.alignment;if(Ca.Xb()){Ca=a.defaultAlignment,Ca.sb()||(Ca=jo);var $u=Ca.x,Rs=Ca.y,Td=Ca.offsetX;Ca=Ca.offsetY;var ql=Pe.alignment,wu=ue.alignment;ql.sb()&&($u=ql.x,Td=ql.offsetX),wu.sb()&&(Rs=wu.y,Ca=wu.offsetY)}else $u=Ca.x,Rs=Ca.y,Td=Ca.offsetX,Ca=Ca.offsetY;(isNaN($u)||isNaN(Rs))&&(Rs=$u=.5,Ca=Td=0),ql=Vn.width,wu=Vn.height;var kl=li.margin,Sl=kl.left+kl.right,cc=kl.top+kl.bottom,_u=Yu(li,ue,Pe,!1);!isNaN(li.desiredSize.width)||_u!==jn&&_u!==wi||(ql=Math.max(Xi-Sl,0)),!isNaN(li.desiredSize.height)||_u!==jn&&_u!==Ri||(wu=Math.max(qo-cc,0)),Xi=li.maxSize,qo=li.minSize,ql=Math.min(Xi.width,ql),wu=Math.min(Xi.height,wu),ql=Math.max(qo.width,ql),wu=Math.max(qo.height,wu),Xi=wu+cc,Fn+=br*$u-(ql+Sl)*$u+Td+kl.left,no+=ts*Rs-Xi*Rs+Ca+kl.top,li.visible&&(Br(os,Is,es,Nd,Fn,no,Vn.width,Vn.height)?li.arrange(Fn,no,ql,wu):li.arrange(Fn,no,ql,wu,new gn(os,Is,es,Nd)))}}}for(Yn.free(Wt),a=0;a<b;a++)x=y[a],z=x instanceof Hn?x:null,z!==null&&Cd(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Pm(){this.xa="Base"}he(Pm,Ka),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}he(Cm,Ka),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function bm(){this.xa="Base"}he(bm,Ka),bm.prototype.measure=function(a,y,x,b,E,z,tt){1<b.length&&xe("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,tt);var ot=b.measuredBounds,rt=b.margin,lt=rt.right+rt.left;if(rt=rt.top+rt.bottom,isFinite(y)||isFinite(x)){var ut=b.scale,ft=ot.width;ot=ot.height;var yt=Math.max(y-lt,0),Pt=Math.max(x-rt,0),bt=1;a.viewboxStretch===pi?ft!==0&&ot!==0&&(bt=Math.min(yt/ft,Pt/ot)):ft!==0&&ot!==0&&(bt=Math.max(yt/ft,Pt/ot)),bt===0&&(bt=1e-4),b.Ca*=bt,ut!==b.scale&&(Oa(b,!0),b.measure(1/0,1/0,z,tt))}ot=b.measuredBounds,E.width=isFinite(y)?y:Math.max(ot.width+lt,0),E.height=isFinite(x)?x:Math.max(ot.height+rt,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 tt=y.alignment;tt.Xb()&&(tt=a.defaultAlignment),tt.sb()||(tt=jo),y.arrange(x.width*tt.x-z*tt.x+tt.offsetX,x.height*tt.y-E*tt.y+tt.offsetY,b.width,b.height)};function hp(){this.xa="Base"}he(hp,Ka),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,tt=a.actualBounds,ot=z.width,rt=z.height,lt=Math.ceil(ot/E),ut=Math.ceil(rt/b),ft=a.gridOrigin,yt=ft.x;ft=ft.y,y.save(),y.beginPath(),y.rect(0,0,ot,rt),y.clip(),y.Se();for(var Pt=[],bt=a.O.s,Nt=bt.length,Qt=0;Qt<Nt;Qt++){var Wt=bt[Qt],ae=[];if(Pt.push(ae),Wt.visible){var ue=Wt.interval;if(!(0>ue)){Wt=pv(Wt.figure);for(var ce=0;ce<Nt;ce++)if(ce!==Qt){var Pe=bt[ce];Pe.visible&&pv(Pe.figure)===Wt&&(Pe=Pe.interval,Pe>ue&&ae.push(Pe))}}}}for(bt=a.O.s,Nt=bt.length,Qt=0;Qt<Nt;Qt++){var Je=bt[Qt];if(Je.visible&&(ae=Je.interval||1,Wt=Math.abs(ae),!(2>E*Wt*x))){if(ue=Je.segmentIndex,(!isFinite(ue)||isNaN(ue))&&(ue=0),0>ue&&(ue=Wt-Math.min(-ue,Wt)),ue=Math.round(ue%Wt),Wt=Je.opacity,ce=1,Wt!==1){if(Wt===0)continue;ce=y.globalAlpha,y.globalAlpha=ce*Wt}Pe=Pt[Qt];var ti=!1,fi=Je.strokeDashArray;if(fi!==null&&(ti=!0,y.js(fi,Je.strokeDashOffset)),Je.figure==="LineV"&&Je.stroke!==null&&0<Je.strokeWidth){for(y.lineWidth=Je.strokeWidth,sa(a,y,Je.stroke,!1,!1,z,tt),y.beginPath(),fi=Je=Math.floor((yt-E)/E);fi<=Je+lt;fi++){var li=fi*E+yt;0<=li&&li<=ot&&Em(fi,ae,ue,Pe)&&(y.moveTo(li,0),y.lineTo(li,rt))}y.stroke(),y.Se()}else if(Je.figure==="LineH"&&Je.stroke!==null&&0<Je.strokeWidth){for(y.lineWidth=Je.strokeWidth,sa(a,y,Je.stroke,!1,!1,z,tt),y.beginPath(),fi=Je=Math.floor((ft-b)/b);fi<=Je+ut;fi++)li=fi*b+ft,0<=li&&li<=rt&&Em(fi,ae,ue,Pe)&&(y.moveTo(0,li),y.lineTo(ot,li));y.stroke(),y.Se()}else if(Je.figure==="BarV"&&Je.fill!==null)for(sa(a,y,Je.fill,!0,!1,z,tt),Je=Je.width,isNaN(Je)&&(Je=E),li=fi=Math.floor((yt-E)/E);li<=fi+lt;li++){var Vn=li*E+yt;0<=Vn+Je&&Vn<=ot&&Em(li,ae,ue,Pe)&&y.fillRect(Vn,0,Je,rt)}else if(Je.figure==="BarH"&&Je.fill!==null)for(sa(a,y,Je.fill,!0,!1,z,tt),Je=Je.height,isNaN(Je)&&(Je=b),li=fi=Math.floor((ft-b)/b);li<=fi+ut;li++)Vn=li*b+ft,0<=Vn+Je&&Vn<=rt&&Em(li,ae,ue,Pe)&&y.fillRect(0,Vn,ot,Je);ti&&y.fs(),Wt!==1&&(y.globalAlpha=ce)}}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"}he(Lm,Ka),Lm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof Xo||a instanceof Un){var tt=null,ot=null;if(a instanceof Un&&(tt=a),a instanceof Xo&&(ot=a,tt=ot.adornedPart,a.j===null&&(a.j=[])),tt instanceof Un){var rt=tt;if(z===0)La(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var lt=a instanceof Xo?null:tt.path;y=tt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ut=rt.points,ft=tt.pointsCount;ot!==null?ot.Ul(!1):tt!==null&&tt.Ul(!1),ot=y.width;var yt=y.height,Pt=a.j;if(Pt.length=0,lt!==null){i1(a,ot,yt,lt);var bt=lt.measuredBounds;x.ed(bt),Pt.push(bt)}bt=mo.alloc();for(var Nt=Zt.alloc(),Qt=Zt.alloc(),Wt=0;Wt<z;Wt++){var ae=b[Wt];if(ae!==lt)if(ae.isPanelMain&&ae instanceof fo){i1(a,ot,yt,ae);var ue=ae.measuredBounds;x.ed(ue),Pt.push(ue)}else if(2>ft)ae.measure(1/0,1/0,0,0),ue=ae.measuredBounds,x.ed(ue),Pt.push(ue);else{var ce=ae.segmentIndex,Pe=ae.segmentFraction,Je=ae.alignmentFocus;Je.Mc()&&(Je=jo);var ti=ae.segmentOrientation,fi=ae.segmentOffset;if(isNaN(ce)){var li=rt.ua;ue=rn(),li.Qu(Pe,ue);var Vn=Zt.allocAt(ue[0],ue[1]);if(Vn.add(rt.i(0)),li.type===Qn.j?Vn.offset(-li.startX,-li.startY):(li=li.figures.first(),li!==null&&Vn.offset(-li.startX,-li.startY)),li=ue[2],ti!==Ys){var Fn=rt.computeAngle(ae,ti,li);ae.Kb=Fn}Fn=Vn.x-y.x;var no=Vn.y-y.y;Zt.free(Vn),pn(ue)}else if(ce<-ft||ce>=ft)ue=Zt.alloc(),rt.vg(),rt.computeMidPoint(ue),li=rt.midAngle,ti!==Ys&&(Fn=rt.computeAngle(ae,ti,li),ae.Kb=Fn),Fn=ue.x-y.x,no=ue.y-y.y,Zt.free(ue);else{if(Fn=0,0<=ce?(no=ut.M(ce),ue=ce<ft-1?ut.M(ce+1):no):(Fn=ft+ce,no=ut.M(Fn),ue=0<Fn?ut.M(Fn-1):no),no.Xa(ue)){0<=ce?(li=0<ce?ut.M(ce-1):no,Fn=ce<ft-2?ut.M(ce+2):ue):(li=Fn<ft-1?ut.M(Fn+1):no,Fn=1<Fn?ut.M(Fn-2):ue),Vn=li.Bf(no);var Xi=ue.Bf(Fn);li=Vn>Xi+10?0<=ce?li.ab(no):no.ab(li):Xi>Vn+10?0<=ce?ue.ab(Fn):Fn.ab(ue):0<=ce?li.ab(Fn):Fn.ab(li)}else li=0<=ce?no.ab(ue):ue.ab(no);ti!==Ys&&(Fn=rt.computeAngle(ae,ti,li),ae.Kb=Fn),Fn=no.x+(ue.x-no.x)*Pe-y.x,no=no.y+(ue.y-no.y)*Pe-y.y}ae.measure(1/0,1/0,0,0),ue=ae.measuredBounds,Vn=ae.naturalBounds;var qo=0;ae instanceof fo&&(qo=ae.strokeWidth),Xi=Vn.width+qo;var br=Vn.height+qo;bt.reset(),bt.translate(-ue.x,-ue.y),bt.scale(ae.scale,ae.scale),bt.rotate(ti===Ys?ae.angle:li,Xi/2,br/2),ti!==Cp&&ti!==Ep||bt.rotate(90,Xi/2,br/2),ti!==bp&&ti!==Lp||bt.rotate(-90,Xi/2,br/2),ti===n0&&(45<li&&135>li||225<li&&315>li)&&bt.rotate(-li,Xi/2,br/2),Vn=new gn(0,0,Xi,br),Nt.xi(Vn,Je),bt.Ga(Nt),Je=-Nt.x+qo/2*ae.scale,ae=-Nt.y+qo/2*ae.scale,Qt.assign(fi),qo=isNaN(fi.x);var ts=isNaN(fi.y);if(qo||ts){Xi=Xi/2+3,br=br/2+3;var os=45<=li&&135>=li,Is=225<=li&&315>=li;ti===Ys&&(os||Is)?(Qt.x=ts?Xi:fi.y,Qt.y=qo?br:fi.x,os?0<=ce||isNaN(ce)&&.5>Pe||!qo||(Qt.y=-br):Is&&((0<=ce||isNaN(ce)&&.5>Pe)&&qo&&(Qt.y=-br),ts&&(Qt.x=-Xi))):(qo&&(Qt.x=0<=ce||isNaN(ce)&&.5>Pe?Xi:-Xi),ts&&(Qt.y=-br),Qt.rotate(li))}else Qt.rotate(li);Fn+=Qt.x,no+=Qt.y,Vn.set(ue),Vn.h(Fn+Je,no+ae,ue.width,ue.height),Pt.push(Vn),x.ed(Vn)}}if(tt!==null)for(b=tt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),La(E,x.width||0,x.height||0),mo.free(bt),Zt.free(Nt),Zt.free(Qt)}}}},Lm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof Xo||a instanceof Un){var b=a,E=null;a instanceof Xo&&(E=a,b=E.adornedPart);var z=a instanceof Xo?null:b.path,tt=a.j;if(tt.length!==0){var ot=0;if(z!==null&&ot<tt.length){var rt=tt[ot];ot++,z.arrange(rt.x-a.jg.x,rt.y-a.jg.y,rt.width,rt.height)}for(rt=0;rt<x;rt++){var lt=y[rt];if(lt!==z&&ot<tt.length){var ut=tt[ot];ot++,lt.arrange(ut.x-a.jg.x,ut.y-a.jg.y,ut.width,ut.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Un)for(z=a.labelNodes;z.next();){var ft=a;tt=z.value,ot=tt.segmentIndex,rt=tt.segmentFraction;var yt=tt.alignmentFocus;if(lt=tt.segmentOrientation,ut=tt.segmentOffset,isNaN(ot)){var Pt=ft.ua,bt=rn();Pt.Qu(rt,bt);var Nt=Zt.allocAt(bt[0],bt[1]);Nt.add(ft.i(0)),Pt.type===Qn.j||(Pt=Pt.figures.first()),Nt.offset(-Pt.startX,-Pt.startY),Pt=bt[2],lt!==Ys&&(ft=ft.computeAngle(tt,lt,Pt),tt.angle=ft),ft=Nt.x;var Qt=Nt.y;Zt.free(Nt),pn(bt)}else if(ot<-x||ot>=x)bt=Zt.alloc(),Pt=ft,Qt=bt,Pt.vg(),Pt.computeMidPoint(Qt),Pt=ft.midAngle,lt!==Ys&&(ft=ft.computeAngle(tt,lt,Pt),tt.angle=ft),ft=bt.x,Qt=bt.y,Zt.free(bt);else{if(Nt=0,0<=ot?(bt=y.s[ot],Qt=ot<x-1?y.s[ot+1]:bt):(Nt=x+ot,bt=y.s[Nt],Qt=0<Nt?y.s[Nt-1]:bt),bt.Xa(Qt)){0<=ot?(Pt=0<ot?y.s[ot-1]:bt,Nt=ot<x-2?y.s[ot+2]:Qt):(Pt=Nt<x-1?y.s[Nt+1]:bt,Nt=1<Nt?y.s[Nt-2]:Qt);var Wt=Pt.Bf(bt),ae=Qt.Bf(Nt);Pt=Wt>ae+10?0<=ot?Pt.ab(bt):bt.ab(Pt):ae>Wt+10?0<=ot?Qt.ab(Nt):Nt.ab(Qt):0<=ot?Pt.ab(Nt):Nt.ab(Pt)}else Pt=0<=ot?bt.ab(Qt):Qt.ab(bt);lt!==Ys&&(ft=ft.computeAngle(tt,lt,Pt),tt.angle=ft),ft=bt.x+(Qt.x-bt.x)*rt,Qt=bt.y+(Qt.y-bt.y)*rt}if(yt.ys())tt.location=new Zt(ft,Qt);else{yt.Mc()&&(yt=jo),bt=mo.alloc(),bt.reset(),bt.scale(tt.scale,tt.scale),bt.rotate(tt.angle,0,0);var ue=tt.naturalBounds;Nt=gn.allocAt(0,0,ue.width,ue.height),Wt=Zt.alloc(),Wt.xi(Nt,yt),bt.Ga(Wt),yt=-Wt.x,ae=-Wt.y;var ce=ue.width,Pe=ue.height;ue=Zt.alloc(),ue.assign(ut);var Je=isNaN(ut.x),ti=isNaN(ut.y);if(Je||ti){ce=ce/2+3,Pe=Pe/2+3;var fi=45<=Pt&&135>=Pt,li=225<=Pt&&315>=Pt;lt===Ys&&(fi||li)?(ue.x=ti?ce:ut.y,ue.y=Je?Pe:ut.x,fi?0<=ot||isNaN(ot)&&.5>rt||!Je||(ue.y=-Pe):li&&((0<=ot||isNaN(ot)&&.5>rt)&&Je&&(ue.y=-Pe),ti&&(ue.x=-ce))):(Je&&(ue.x=0<=ot||isNaN(ot)&&.5>rt?ce:-ce),ti&&(ue.y=-Pe),ue.rotate(Pt))}else ue.rotate(Pt);ft+=ue.x,Qt+=ue.y,bt.pp(Nt),yt+=Nt.x,ae+=Nt.y,ot=Zt.allocAt(ft+yt,Qt+ae),tt.move(ot),Zt.free(ot),Zt.free(ue),Zt.free(Wt),gn.free(Nt),mo.free(bt)}}E!==null?E.Ul(!1):b.Ul(!1),b=D1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Zt.free(b)}};function i1(a,y,x,b){if(Yl(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof Xo&&a.type===Hn.Link&&a.adornedObject instanceof fo&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Un&&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 Xo&&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),Oa(b,!1)}}function dp(){this.xa="Base"}he(dp,Ka),dp.prototype.measure=function(a,y,x,b,E,z,tt){var ot=a.Pb();a.graduatedBounds=[];var rt=ot.margin,lt=rt.right+rt.left,ut=rt.top+rt.bottom;ot.measure(y,x,z,tt);var ft=ot.measuredBounds,yt=new gn(-rt.left,-rt.top,Math.max(ft.width+lt,0),Math.max(ft.height+ut,0));a.graduatedBounds.push(yt),E.assign(yt);for(var Pt=ot.geometry,bt=ot.strokeWidth,Nt=Pt.flattenedSegments,Qt=Pt.flattenedLengths,Wt=Pt.flattenedTotalLength,ae=Nt.length,ue=0,ce=0,Pe=rn(),Je=0;Je<ae;Je++){var ti=Nt[Je],fi=[];ce=ue=0;for(var li=ti.length,Vn=0;Vn<li;Vn+=2){var Fn=ti[Vn],no=ti[Vn+1];if(Vn!==0){var Xi=180*Math.atan2(no-ce,Fn-ue)/Math.PI;0>Xi&&(Xi+=360),fi.push(Xi)}ue=Fn,ce=no}Pe.push(fi)}if(a.graduatedIntervals===null){for(var qo=[],br=a.O.s,ts=br.length,os=0;os<ts;os++){var Is=br[os],es=[];if(qo.push(es),Is.visible){var Nd=Is.interval;if(!(0>Nd)){for(var Ca=0;Ca<ts;Ca++)if(Ca!==os){var $u=br[Ca];if($u.visible&&Is.constructor===$u.constructor){var Rs=$u.interval;Rs>Nd&&es.push(Rs)}}}}}a.graduatedIntervals=qo}var Td=a.graduatedIntervals,ql=a.O.s,wu=ql.length,kl=0,Sl=0,cc=Wt;a.graduatedMarks=[];for(var _u,Tg=0;Tg<wu;Tg++){var Bl=ql[Tg];if(_u=[],Bl.visible&&Bl!==ot){var zs=Math.abs(Bl.interval),Qp=a.graduatedTickUnit;if(!(2>Qp*zs*Wt/a.graduatedRange&&Bl.graduatedSkip===null)){var Tf=Qt[0][0],dh=0,xl=0;Sl=Wt*Bl.graduatedStart-1e-4,cc=Wt*Bl.graduatedEnd+1e-4;var qc=Qp*zs,Dl=a.graduatedTickBase;if(Dl<a.graduatedMin){var fc=(a.graduatedMin-Dl)/qc;fc=fc%1===0?fc:Math.floor(fc+1),Dl+=fc*qc}else Dl>a.graduatedMin+qc&&(Dl-=Math.floor((Dl-a.graduatedMin)/qc)*qc);for(var K0=Td[Tg],qp=Dl,Wy=1e-6*a.graduatedMax,Rh=1;Dl<=a.graduatedMax+Wy;Rh++){t:{for(var od=K0.length,Of=0;Of<od;Of++){var gc=(Dl-a.graduatedTickBase)%(K0[Of]*a.graduatedTickUnit),Og=1e-6*a.graduatedTickUnit;if(gc<Og&&gc>-Og){var pc=!1;break t}}pc=!0}if(pc&&(Dl>a.graduatedMax&&(Dl=a.graduatedMax),Bl.graduatedSkip===null||Bl instanceof Lr&&!Bl.graduatedSkip(Dl,Bl)||Bl instanceof fo&&!Bl.graduatedSkip(Dl,Bl))&&(kl=(Dl-a.graduatedMin)*Wt/a.graduatedRange,kl>Wt&&(kl=Wt),Sl<=kl&&kl<=cc)){for(var zh=Pe[dh][xl],Od=Qt[dh][xl];dh<Qt.length;){for(;kl>Tf&&xl<Qt[dh].length-1;)xl++,zh=Pe[dh][xl],Od=Qt[dh][xl],Tf+=Od;if(kl<=Tf)break;dh++,xl=0,zh=Pe[dh][xl],Od=Qt[dh][xl],Tf+=Od}var wl=Nt[dh],ch=wl[2*xl],V0=wl[2*xl+1],rd=(kl-(Tf-Od))/Od,Ig=new Zt(ch+(wl[2*xl+2]-ch)*rd+bt/2-Pt.bounds.x,V0+(wl[2*xl+3]-V0)*rd+bt/2-Pt.bounds.y);Ig.scale(ot.scale,ot.scale);t:{var th=zh,$c=Pe[dh];if(!(.5005>rd&&.4995<rd)){var fh=th;if(.5>rd?0<xl?fh=$c[xl-1]:De.$(wl[0],wl[wl.length-2])&&De.$(wl[1],wl[wl.length-1])&&(fh=$c[$c.length-1]):.5<rd&&(xl+1<$c.length?fh=$c[xl+1]:De.$(wl[0],wl[wl.length-2])&&De.$(wl[1],wl[wl.length-1])&&(fh=$c[0])),th!==fh){var If=Math.abs(th-fh);if(180<If&&(th<fh?th+=360:fh+=360,If=Math.abs(th-fh)),5e-4>rd||.9995<rd){zh=(th+fh)/2%360;break t}if(10>If){var Rg=1-Math.abs(.5-rd);zh=(th*Rg+fh*(1-Rg))%360;break t}}}zh=th}if(Bl instanceof Lr){var Ou="";Bl.graduatedFunction!==null?(Ou=Bl.graduatedFunction(Dl,Bl),Ou=Ou!=null?Ou.toString():""):Ou=(+Dl.toFixed(2)).toString(),Ou!==""&&_u.push({$l:Ig,angle:zh,text:Ou})}else _u.push({$l:Ig,angle:zh})}Dl=qp+Rh*qc}}}a.graduatedMarks.push(_u)}pn(Pe);var gs=a.graduatedMarks;if(gs!==null)for(var $p=b.length,$s=0;$s<$p;$s++){var ba=b[$s],_s=gs[$s];if(ba.visible&&ba!==ot&&_s.length!==0){if(ba instanceof fo){var ad=a,Id=E,_c=ba.alignmentFocus;_c.Mc()&&(_c=Cl);var Hy=ba.angle;ba.Kb=0,ba.measure(1/0,1/0,0,0),ba.Kb=Hy;var U0=ba.measuredBounds,zg=U0.width,tf=U0.height,Rf=gn.allocAt(0,0,zg,tf),Pl=Zt.alloc();Pl.xi(Rf,_c),gn.free(Rf);for(var sd=-Pl.x,eh=-Pl.y,cu=new gn,mc=_s.length,jg=0;jg<mc;jg++)for(var vc=_s[jg],Y0=vc.$l.x,Wg=vc.$l.y,ua=vc.angle,Iu=0;4>Iu;Iu++){switch(Iu){case 0:Pl.h(sd,eh);break;case 1:Pl.h(sd+zg,eh);break;case 2:Pl.h(sd,eh+tf);break;case 3:Pl.h(sd+zg,eh+tf)}Pl.rotate(ua+ba.angle),Pl.offset(Y0,Wg),jg===0&&Iu===0?cu.h(Pl.x,Pl.y,0,0):cu.Ye(Pl),Pl.offset(-Y0,-Wg),Pl.rotate(-ua-ba.angle)}Zt.free(Pl),ad.graduatedBounds!==null&&ad.graduatedBounds.push(cu),or(Id,cu.x,cu.y,cu.width,cu.height)}else if(ba instanceof Lr){var Pu=a,X0=E;Pu.temporaryTextBlock===null&&(Pu.temporaryTextBlock=new Lr);var Nl=Pu.temporaryTextBlock;y1(Nl,ba);var Rd=ba.alignmentFocus;Rd.Mc()&&(Rd=Cl);for(var Cu=ba.segmentOrientation,Hg=ba.segmentOffset,yc=new gn,_p=0,Gg=0,gh=0,ef=0,Sc=0,Zg=_s.length,zd=0;zd<Zg;zd++){var jh=_s[zd];_p=jh.$l.x,Gg=jh.$l.y,gh=jh.angle,Sc=ef=ba.angle,Cu!==Ys&&(Sc=Cu===Pp||Cu===e0?gh+ba.angle:gh,ef=Un.computeAngle(Cu,Sc)),Nl.Kb=ef,Nl.text=jh.text||"",Nl.measure(1/0,1/0,0,0);var jd=Nl.measuredBounds,ld=Nl.naturalBounds,Wd=ld.width,nf=ld.height,nh=mo.alloc();nh.reset(),nh.translate(-jd.x,-jd.y),nh.scale(Nl.scale,Nl.scale),nh.rotate(Sc,Wd/2,nf/2),Cu!==Cp&&Cu!==Ep||nh.rotate(90,Wd/2,nf/2),Cu!==bp&&Cu!==Lp||nh.rotate(-90,Wd/2,nf/2),Cu===n0&&(45<gh&&135>gh||225<gh&&315>gh)&&nh.rotate(-gh,Wd/2,nf/2);var zf=gn.allocAt(0,0,Wd,nf),Hd=Zt.alloc();Hd.xi(zf,Rd),nh.Ga(Hd);var jf=-Hd.x,Gy=-Hd.y,ud=Zt.alloc();ud.assign(Hg),isNaN(ud.x)&&(ud.x=Wd/2+3),isNaN(ud.y)&&(ud.y=-(nf/2+3)),ud.rotate(gh),_p+=ud.x+jf,Gg+=ud.y+Gy;var of=new gn(_p,Gg,jd.width,jd.height),tm=new gn(jd.x,jd.y,jd.width,jd.height),Zy=new gn(ld.x,ld.y,ld.width,ld.height);jh.Sz=ef,jh.lineCount=Nl.lineCount,jh.lines=[Nl.Cb,Nl.Ih,Nl.df,Nl.Le,Nl.Qc,Nl.Qb,Nl.ze],jh.actualBounds=of,jh.measuredBounds=tm,jh.naturalBounds=Zy,zd===0?yc.assign(of):yc.ed(of),Zt.free(ud),Zt.free(Hd),gn.free(zf),mo.free(nh)}Pu.graduatedBounds!==null&&Pu.graduatedBounds.push(yc),or(X0,yc.x,yc.y,yc.width,yc.height)}Oa(ba,!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,tt=0,ot=z[tt];tt++,b!==null&&b.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var rt=y.length,lt=0;lt<rt;lt++){var ut=y[lt];ot=E[lt],ut.visible&&ut!==b&&ot.length!==0&&(ot=z[tt],tt++,ut.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.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,tt=E.height;E=y instanceof Al,y.save(),y.beginPath(),y.rect(-1,-1,z+1,tt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),tt=a.Df()*x.scale,0>=tt&&(tt=1);for(var ot=z.actualBounds,rt=a.O.s,lt=a.graduatedMarks,ut=rt.length,ft=0;ft<ut;ft++){var yt=rt[ft],Pt=lt[ft],bt=Pt.length;if(yt.visible&&yt!==z&&Pt.length!==0){if(yt instanceof fo){if(!(2>a.graduatedTickUnit*yt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*tt&&yt.graduatedSkip===null)){var Nt=yt.measuredBounds,Qt=yt.strokeWidth*yt.scale,Wt=yt.alignmentFocus;Wt.Mc()&&(Wt=Cl);for(var ae=0;ae<bt;ae++){var ue=Pt[ae].$l,ce=Pt[ae].angle,Pe=Wt,Je=yt.Ab;Je.reset(),Je.translate(ue.x+ot.x,ue.y+ot.y),Je.rotate(ce+yt.angle,0,0),Je.translate(-Nt.width*Pe.x+Pe.offsetX+Qt/2,-Nt.height*Pe.y+Pe.offsetY+Qt/2),Je.scale(yt.scale,yt.scale),mu(yt,!1),yt.wh.set(yt.Ab),yt.Kk=yt.scale,ru(yt,!1),yt.gc(y,x),E&&(a.svg.appendChild(yt.svg),yt.svg=null),yt.Ab.reset()}}}else if(yt instanceof Lr)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Lr),Nt=a.temporaryTextBlock,y1(Nt,yt),Qt=0;Qt<bt;Qt++)Wt=Pt[Qt],Wt.actualBounds&&Wt.measuredBounds&&Wt.naturalBounds&&(Nt.ec=Wt.text||"",Nt.Kb=Wt.Sz||0,Nt.Gc=Wt.lineCount||0,ae=Wt.lines,ae!==void 0&&(Nt.Cb=ae[0],Nt.Ih=ae[1],Nt.df=ae[2],Nt.Le=ae[3],Nt.Qc=ae[4],Nt.Qb=ae[5],Nt.ze=ae[6]),Wt.naturalBounds&&(Nt.dc=Wt.naturalBounds),Wt.actualBounds&&(ae=Wt.actualBounds,Nt.arrange(ae.x,ae.y,ae.width,ae.height)),ae=Wt.actualBounds,Nt.arrange(ae.x,ae.y,ae.width,ae.height),ue=Wt.measuredBounds,Wt=Wt.naturalBounds,ce=Nt.Ab,ce.reset(),ce.translate(ae.x+ot.x,ae.y+ot.y),ce.translate(-ue.x,-ue.y),Nt.no(ce,Wt.x,Wt.y,Wt.width,Wt.height),mu(Nt,!1),Nt.wh.set(Nt.Ab),Nt.Kk=Nt.scale,ru(Nt,!1),Nt.Ng=yt.part,Nt.Me=yt.panel,Nt.gc(y,x),Nt.Me=null,Nt.Ng=null,E&&(a.svg.appendChild(Nt.svg),Nt.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Hn(a,y){if(be.call(this),this.na=null,a===void 0)this.na=Hn.Position;else if(typeof a=="string"){var x=Fu.I(a);x!==null&&(this.na=x)}else a instanceof Ka?this.na=a:a&&(this.na=Hn.Position,y=a);this.na===null&&xe("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Hn.Grid?1048576:0),this.O=new xn,this.yb=bs,this.Tm=lr,this.Uf=so,this.$g=null,this.$e="",this.jg=new gn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=pi,this.jn=ir,this.kn=Co,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}he(Hn,be),Hn.prototype.cloneProtected=function(a){be.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},Hn.prototype.Af=function(a){be.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},Hn.prototype.copy=function(){var a=be.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,b=0;b<x;b++){var E=y[b].copy();E.wi(a),E.Ng=null;var z=a.O,tt=z.count;if(z.Gb(tt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof ii&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(da,"elements",a,null,E,null,tt)}}return a}return null},Lt=Hn.prototype,Lt.toString=function(){return"Panel("+this.type.name+")#"+Yi(this)},Lt.Pn=function(a){be.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},Lt.hh=function(a,y){if(this.na===Hn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Hn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Hn.Table)if(a.yc(),a instanceof Al){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===Hn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,tt=0;tt<z;tt++){var ot=E[tt];x&&ot===b&&(a.clipInsteadOfFill=!0),ot.gc(a,y),x&&ot===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&&Am(a,y,!0,x,!0),b!==null&&Am(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&Am(a,y,!0,x,!1),b!==null&&Am(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,z=a.actualBounds,tt=a.naturalBounds,ot=!0,rt=0;rt<E;rt++){var lt=b[rt];if(lt!==void 0&<.actual!==0)if(ot)ot=!1;else{if(x){if(lt.position>tt.height)continue}else if(lt.position>tt.width)continue;var ut=lt.separatorStrokeWidth;isNaN(ut)&&(ut=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ft=lt.separatorStroke;if(ft===null&&(ft=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ut!==0&&ft!==null){sa(a,y,ft,!1,!1,tt,z),ft=!1;var yt=lt.separatorDashArray;yt===null&&(yt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),yt!==null&&(ft=!0,y.js(yt,0)),y.beginPath(),yt=lt.position+ut,x?yt>tt.height&&(ut-=yt-tt.height):yt>tt.width&&(ut-=yt-tt.width),lt=lt.position+ut/2,y.lineWidth=ut,ut=a.yb,x?(lt+=ut.top,yt=tt.width-ut.right,y.moveTo(ut.left,lt),y.lineTo(yt,lt)):(lt+=ut.left,yt=tt.height-ut.bottom,y.moveTo(lt,ut.top),y.lineTo(lt,yt)),y.stroke(),y.Se(),ft&&y.fs()}}}}function Am(a,y,x,b,E){for(var z=b.length,tt=a.actualBounds,ot=a.naturalBounds,rt=r1(a,!0),lt=r1(a,!1),ut=0;ut<z;ut++){var ft=b[ut];if(ft!==void 0&&ft.background!==null&&ft.coversSeparators!==E&&ft.actual!==0){var yt=x?tt.height:tt.width;if(!(ft.position>yt)){var Pt=ft.Wc(),bt=ft.separatorStrokeWidth;isNaN(bt)&&(bt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Nt=ft.separatorStroke;Nt===null&&(Nt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Nt===null||ft.index===(x?rt:lt))&&(bt=0),Pt-=bt,bt=ft.position+bt,Pt+=ft.actual,bt+Pt>yt&&(Pt=yt-bt),0>=Pt||(yt=a.yb,sa(a,y,ft.background,!0,!1,ot,tt),x?y.fillRect(yt.left,bt+yt.top,tt.width-(yt.left+yt.right),Pt):y.fillRect(bt+yt.left,yt.top,Pt,tt.height-(yt.top+yt.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"}Lt.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Lt.kk=function(a,y,x){if(!be.prototype.kk.call(this,a,y,x))return!1;if(this.type===Hn.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===Hn.Grid||this.na===Hn.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},Lt.nk=function(){return!0},Lt.$o=function(a,y,x,b){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var E=0,z=0,tt=0;tt<y.length;tt++)if(y[tt].Ed()){var ot=y[tt].actualBounds;E=tt===0?ot.x:Math.min(ot.x,E),z=tt===0?ot.y:Math.min(ot.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 be.prototype.$o.call(this,a,y,x,b)},Lt.Sj=function(a,y,x,b,E){var z=this.se(),tt=this.transform,ot=1/(tt.m11*tt.m22-tt.m12*tt.m21),rt=tt.m22*ot,lt=-tt.m12*ot,ut=-tt.m21*ot,ft=tt.m11*ot,yt=ot*(tt.m21*tt.dy-tt.m22*tt.dx),Pt=ot*(tt.m12*tt.dx-tt.m11*tt.dy);if(this.areaBackground!==null)return tt=this.actualBounds,De.Ff(tt.left,tt.top,tt.right,tt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*rt+y*ut+yt,ot=a*lt+y*ft+Pt,a=x*rt+b*ut+yt,rt=x*lt+b*ft+Pt,E.h(0,0),x=this.naturalBounds,z=De.Ff(0,0,x.width,x.height,z,ot,a,rt,E),E.transform(tt),z;z||(rt=1,ut=lt=0,ft=1,Pt=yt=0),ot=a*rt+y*ut+yt,a=a*lt+y*ft+Pt,rt=x*rt+b*ut+yt,x=x*lt+b*ft+Pt,E.h(rt,x),b=(rt-ot)*(rt-ot)+(x-a)*(x-a),lt=!1,ft=this.O.s,Pt=ft.length,ut=Zt.alloc(),yt=null,y=1/0;var bt=null,Nt=this.isClipping&&this.na===Hn.Spot;Nt&&(bt=Zt.alloc(),yt=this.Pb(),(lt=yt.Sj(ot,a,rt,x,bt))&&(y=(ot-bt.x)*(ot-bt.x)+(a-bt.y)*(a-bt.y)));for(var Qt=0;Qt<Pt;Qt++){var Wt=ft[Qt];Wt.visible&&Wt!==yt&&Wt.Sj(ot,a,rt,x,ut)&&(lt=!0,Wt=(ot-ut.x)*(ot-ut.x)+(a-ut.y)*(a-ut.y),Wt<b&&(b=Wt,E.set(ut)))}return Nt&&(y>b&&E.set(bt),Zt.free(bt)),Zt.free(ut),z&&E.transform(tt),lt},Lt.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();be.prototype.Gj.call(this)},Lt.v=function(a){if(!Yl(this)){be.prototype.v.call(this,a),a=null,(this.na===Hn.Auto||this.na===Hn.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=sl(E,!1);(E instanceof Us||E instanceof Hn||E instanceof Lr||z!==Nn)&&E.v(!0)}}}},Lt.Uj=function(){if(!Yl(this)){Oa(this,!0),Lh(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Lt.Uk=function(){if(!(this.l&2048)){mu(this,!0),ru(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Lt.Wu=function(){ru(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Lt.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,tt=this.minSize;x===void 0&&(x=tt.width,b=tt.height),x=Math.max(x,tt.width),b=Math.max(b,tt.height);var ot=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ot.width)),isNaN(z.height)||(y=Math.min(z.height,ot.height)),a=Math.max(x,a),y=Math.max(b,y);var rt=this.yb;a=Math.max(a-rt.left-rt.right,0),y=Math.max(y-rt.top-rt.bottom,0);var lt=this.O.s;lt.length!==0&&this.na.measure(this,a,y,lt,E,x,b),a=E.width+rt.left+rt.right,rt=E.height+rt.top+rt.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(rt=z.height),a=Math.min(ot.width,a),rt=Math.min(ot.height,rt),a=Math.max(tt.width,a),rt=Math.max(tt.height,rt),a=Math.max(x,a),rt=Math.max(b,rt),La(E,a,rt),La(this.naturalBounds,a,rt),this.Ge(0,0,a,rt)},Lt.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 ed(a){return a.part!==null?a.part.locationObject:null}Lt.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=sl(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var tt=this.Kg,ot=tt.left+tt.right;switch(tt=tt.top+tt.bottom,y===x&&z===b&&(a=Nn),a){case Nn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case jn:this.v(!0),this.measure(x+ot,b+tt,0,0);break;case wi:this.v(!0),this.measure(x+ot,z+tt,0,0);break;case Ri:this.v(!0),this.measure(y+ot,b+tt,0,0)}}this.na.arrange(this,E,this.jg)}},Lt.gh=function(a){var y=this.naturalBounds,x=ed(this);if(Br(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Zt.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Ao(E.set(a),z.transform),z.ca(E)))return Zt.free(E),!0}return Zt.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},Lt.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},Lt.qm=function(a,y){if(y(this,a),a instanceof Hn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Zc(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 Hn&&a1(a,z,x)}}function vx(a,y){s1(a,a,y)}function s1(a,y,x){if(x(y),y instanceof Hn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)s1(a,y[E],x)}}Lt.Nl=function(a){return l1(this,this,a)};function l1(a,y,x){if(x(y))return y;if(y instanceof Hn){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}Lt.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 Hn){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 Hn?x=Math.max(x,u1(E)):E instanceof fo&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}Lt.se=function(){return!(this.type===Hn.TableRow||this.type===Hn.TableColumn)};function Cd(a){return a.type===Hn.TableRow||a.type===Hn.TableColumn}Lt.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ks(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),tt=z?a:Ao(Zt.allocAt(a.x,a.y),this.transform),ot=this.diagram,rt=10,lt=5;if(ot!==null&&(rt=ot.Ql("extraTouchArea"),lt=rt/2),Br(-(lt*E),-(lt*E),b.width+rt*E,b.height+rt*E,tt.x,tt.y)){if(!this.isAtomic){E=this.O.s;var ut=E.length;if(ot=Zt.alloc(),lt=(rt=this.isClipping&&this.na===Hn.Spot)?this.Pb():null,rt&&(lt.se()?Ao(ot.set(a),lt.transform):ot.set(a),!lt.ca(ot)))return Zt.free(ot),z||Zt.free(tt),null;for(var ft=ed(this);ut--;){var yt=E[ut];if((yt.visible||yt===ft)&&(yt.se()?Ao(ot.set(a),yt.transform):ot.set(a),!rt||yt!==lt)){var Pt=null;if(yt instanceof Hn?Pt=yt.ic(ot,y,x):yt.pickable===!0&&yt.ca(ot)&&(Pt=yt),Pt!==null&&(y!==null&&(Pt=y(Pt)),Pt!==null&&(x===null||x(Pt))))return Zt.free(ot),z||Zt.free(tt),Pt}}Zt.free(ot)}return this.background===null&&this.areaBackground===null?(z||Zt.free(tt),null):(a=Br(0,0,b.width,b.height,tt.x,tt.y)?this:null,z||Zt.free(tt),a)}return z||Zt.free(tt),null},Lt.ji=function(a,y,x,b){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var E=this.naturalBounds,z=this.se(),tt=z?a:Ao(Zt.allocAt(a.x,a.y),this.transform);if(E=Br(0,0,E.width,E.height,tt.x,tt.y),Cd(this)||E){if(!this.isAtomic){for(var ot=this.O.s,rt=ot.length,lt=Zt.alloc(),ut=ed(this);rt--;){var ft=ot[rt];if(ft.visible||ft===ut){ft.se()?Ao(lt.set(a),ft.transform):lt.set(a);var yt=ft;ft=ft instanceof Hn?ft:null,(ft!==null?ft.ji(lt,y,x,b):yt.ca(lt))&&yt.pickable!==!1&&(y!==null&&(yt=y(yt)),yt===null||x!==null&&!x(yt)||b.add(yt))}}Zt.free(lt)}return z||Zt.free(tt),E&&(this.background!==null||this.areaBackground!==null)}return z||Zt.free(tt),!1},Lt.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=mo.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,E),z===void 0&&mo.free(tt),!0;if(this.Yc(a,tt)){if(!this.isAtomic)for(var ot=ed(this),rt=this.O.s,lt=rt.length;lt--;){var ut=rt[lt];if(ut.visible||ut===ot){var ft=ut.actualBounds,yt=this.naturalBounds;ft.x>yt.width||ft.y>yt.height||0>ft.x+ft.width||0>ft.y+ft.height||(ft=ut,ut=ut instanceof Hn?ut:null,yt=mo.alloc(),yt.set(tt),(ut!==null?ut.Cf(a,y,x,b,E,yt):_a(ft,a,b,yt))&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||E.add(ft)),mo.free(yt))}}return z===void 0&&mo.free(tt),b}return z===void 0&&mo.free(tt),!1};function mv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var tt=E[z];if(tt.visible){var ot=tt.actualBounds,rt=a.naturalBounds;ot.x>rt.width||ot.y>rt.height||0>ot.x+ot.width||0>ot.y+ot.height||(tt instanceof Hn&&mv(tt,y,x,b),y!==null&&(tt=y(tt)),tt===null||x!==null&&!x(tt)||b.add(tt))}}}Lt.og=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),b===void 0&&(b=null);var tt=this.naturalBounds,ot=this.se(),rt=ot?a:Ao(Zt.allocAt(a.x,a.y),this.transform),lt=ot?y:Ao(Zt.allocAt(y.x,y.y),this.transform),ut=rt.Bf(lt),ft=0<rt.x&&rt.x<tt.width&&0<rt.y&&rt.y<tt.height||kr(rt.x,rt.y,0,0,0,tt.height)<=ut||kr(rt.x,rt.y,0,tt.height,tt.width,tt.height)<=ut||kr(rt.x,rt.y,tt.width,tt.height,tt.width,0)<=ut||kr(rt.x,rt.y,tt.width,0,0,0)<=ut;if(tt=rt.zd(0,0)<=ut&&rt.zd(0,tt.height)<=ut&&rt.zd(tt.width,0)<=ut&&rt.zd(tt.width,tt.height)<=ut,ot||(Zt.free(rt),Zt.free(lt)),ft){if(!this.isAtomic){rt=Zt.alloc(),lt=Zt.alloc(),ut=ed(this);for(var yt=this.O.s,Pt=yt.length;Pt--;){var bt=yt[Pt];if(bt.visible||bt===ut){var Nt=bt.actualBounds,Qt=this.naturalBounds;(!ot||!(Nt.x>Qt.width||Nt.y>Qt.height||0>Nt.x+Nt.width||0>Nt.y+Nt.height))&&(bt.se()?(Nt=bt.transform,Ao(rt.set(a),Nt),Ao(lt.set(y),Nt)):(rt.set(a),lt.set(y)),Nt=bt,bt=bt instanceof Hn?bt:null,(bt!==null?bt.og(rt,lt,x,b,E,z):Nt.tx(rt,lt,E))&&(x!==null&&(Nt=x(Nt)),Nt===null||b!==null&&!b(Nt)||z.add(Nt)))}}Zt.free(rt),Zt.free(lt)}return E?ft:tt}return!1};function vv(a){var y=null;return a instanceof fo&&(y=a.spot1,y===lr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ya),y}function yv(a){var y=null;return a instanceof fo&&(y=a.spot2,y===lr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ds),y}Lt.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},Lt.M=function(a){return this.O.M(a)},Lt.Gb=function(a,y){y instanceof Mi&&xe("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&xe("Cannot make a Panel contain itself: "+this.toString()),xe("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&xe("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!==Hn.Grid||y instanceof fo||xe("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Hn.Graduated||y instanceof fo||y instanceof Lr||xe("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 si),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,tt=this.O.s,ot=tt.length,rt=0;rt<ot;rt++)if(tt[rt]===y){z=rt;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else xe("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),Yl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Hn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Fm(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof ii&&(x.Te=!0),x.Te&&x instanceof ii&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Ba,"elements",this,y,null,b,null),x.cb(da,"elements",this,null,y,null,a)))};function Sv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Lt.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)},Lt.mb=function(a){0<=a&&this.pc(a,!0)},Lt.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),Oa(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 ii&&(b instanceof Hn?b.qm(b,function(tt,ot){Gv(z,ot,y)}):Gv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Ba,"elements",this,b,null,a,null))},Lt.Fb=function(a){0>a&&Wn(a,">= 0",Hn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ia;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(da,"rowdefs",this,null,x,null,a)}return y[a]},Lt.oA=function(a){if(0>a&&Wn(a,">= 0",Hn,"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(Ba,"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 Ia?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Lt.Eb=function(a){0>a&&Wn(a,">= 0",Hn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ia;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(da,"coldefs",this,null,x,null,a)}return y[a]},Lt.jA=function(a){if(0>a&&Wn(a,">= 0",Hn,"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(Ba,"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 Ia?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}Lt.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},Lt.Hy=function(a,y){return(a=this.Fb(a))&&km(a,new Ia(y)),this},Lt.By=function(a,y){return(a=this.Eb(a))&&km(a,new Ia(y)),this},Lt.nz=function(a){if(0>a||this.type!==Hn.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},Lt.fz=function(a){if(0>a||this.type!==Hn.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},Lt.Fz=function(a,y){if(y===void 0&&(y=new Zt(NaN,NaN)),this.type!==Hn.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)},Lt.Gz=function(a){if(this.type!==Hn.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 yu(a){var y=a.allBindings;if(y===null)a.data!==null&&xe("Template cannot have .data be non-null: "+a),a.allBindings=y=new xn;else if(y._isFrozen)return;var x=new xn;Sv(a,!1),a.qm(a,function(lt,ut){ut.th();var ft=ut.localBindings;if(ft!==null)for(Sf(ut,!1),ft=ft.iterator;ft.next();){var yt=ft.value;yt.mode===Tp&&Sf(ut,!0);var Pt=yt.sourceName;Pt!==null&&(Pt==="/"&&Sv(lt,!0),Pt=LS(yt,lt,ut),Pt!==null&&(x.add(Pt),Pt.srcBindings===null&&(Pt.srcBindings=new xn),Pt.srcBindings.add(yt))),y.add(yt)}if(ut instanceof Hn&&ut.type===Hn.Table){if(0<ut.rowCount){for(lt=ut.rowDefs,ft=lt.length,yt=0;yt<ft;yt++)if(Pt=lt[yt],Pt!==void 0&&Pt.be!==null)for(var bt=Pt.be.iterator;bt.next();){var Nt=bt.value;Nt.xd=Pt,Nt.to=2,Nt.wl=Pt.index,y.add(Nt)}}if(0<ut.columnCount){for(ut=ut.colDefs,lt=ut.length,ft=0;ft<lt;ft++)if(yt=ut[ft],yt!==void 0&&yt.be!==null)for(Pt=yt.be.iterator;Pt.next();)bt=Pt.value,bt.xd=yt,bt.to=1,bt.wl=yt.index,y.add(bt)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){Sf(E,!0);for(var z=E.srcBindings.iterator;z.next();){var tt=z.value;E.localBindings===null&&(E.localBindings=new xn),E.localBindings.add(tt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var ot=E.targetProperty,rt=ot.indexOf(".");0<rt&&z instanceof Hn&&(tt=ot.substring(0,rt),ot=ot.substr(rt+1),rt=z.fb(tt),rt!==null?(z=rt,E.targetProperty=ot):qn('Warning: unable to find GraphObject named "'+tt+'" for Binding: '+E.toString())),z instanceof Ia?(tt=Yi(z.panel),E.Ai=tt===void 0?-1:tt,z.panel.bindingId=E.Ai):z instanceof be?(tt=Yi(z),E.Ai=tt===void 0?-1:tt,z.bindingId=E.Ai):xe("Unknown type of binding target: "+z)}y.freeze(),a instanceof Mi&&a.Zc()&&a.Va()}Lt.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return vx(y,function(x){x instanceof Hn&&(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&&yu(y),y},Lt.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,b=x.sourceProperty;if((a===""||b===""||b===a)&&(b=x.targetProperty,x.converter!==null||b!=="")){b=this.data;var E=x.sourceName;if(E!==null){if(E==="")b=this;else if(E==="/")b=this;else if(E===".")b=this;else if(E==="..")b=this;else if(b=this.fb(E),b===null)continue}else if(x.isToModel)if(b=this.diagram,b!==null)b=b.model.modelData;else continue;var z=this,tt=x.Ai;if(tt!==-1){if(z=this.ks(tt),z===null)continue}else x.xd!==null&&(z=x.xd);if(E==="/"?b=z.part:E==="."?b=z:E===".."&&(b=z.panel),E=x.to,E!==0){if(!(z instanceof Hn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},Lt.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 Hn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var tt=0;E<x&&tt<b;){if(z=a[E],!(z instanceof Hn)||z.data!==y[tt])return!0;E++,tt++}return!1}function cp(a){if(a.type===Hn.Spot||a.type===Hn.Auto)return Math.min(a.O.length,1);if(a.type===Hn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof fo&&b.isPanelMain))break}return x}return a.type===Hn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Hn&&Cd(a))?1:0}Lt.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++)Mm(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],tt=b<a.O.length?a.O.M(b):null;if(tt instanceof Hn){if(tt.data!==z){var ot=wv(a,tt.data),rt=wv(a,z),lt=rt!==ot;lt||(ot=Pv(a,ot),lt=Pv(a,rt)!==ot),lt?(a.pc(b,!1),Mm(a,z,E,!1)):tt.data=z}}else Mm(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,xv(a,x,0),Yl(a)||a.v(),a.graduatedIntervals=null,a.If()||Fm(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof ii&&(y.Te=!0),y.Te&&y instanceof ii&&(y.wc=null))}}function Mm(a,y,x,b){if(!(y==null||0>x)){var E=wv(a,y);if(E=Pv(a,E),E!==null){if(yu(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 si),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 Hn){var E=y,z=x;b.type===Hn.TableRow?b.row=E:b.type===Hn.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=va(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;xe("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,qn('No item template Panel found for category "'+y+'" on '+a),qn(" Using default item template."),a=new Hn,y=new Lr,y.bind(new Pa("text","",kn)),a.add(y),p1=a),b=p1)),b}function Fm(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Hn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Hn&&!z.isEnabled||Fm(a,z,x)}}}function uh(a,y){y.name=a,Fu.add(a,y)}_t.Object.defineProperties(Hn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Hn.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&&Wn(a,">= 0",Hn,"padding"),a=new Bi(a)):(0>a.left&&Wn(a.left,">= 0",Hn,"padding:value.left"),0>a.right&&Wn(a.right,">= 0",Hn,"padding:value.right"),0>a.top&&Wn(a.top,">= 0",Hn,"padding:value.top"),0>a.bottom&&Wn(a.bottom,">= 0",Hn,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:bs},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new lu),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 hr)&&(a instanceof hr&&a.freeze(),this.T===null&&(this.T=new lu),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 lu),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)||xe("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 lu),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 hr)&&(a instanceof hr&&a.freeze(),this.T===null&&(this.T=new lu),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 lu),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)||xe("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 lu),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 lu),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||xe("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&ah(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()||xe("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&ah(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 nd),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),Ss(this)&&(a=this.part,a!==null&&Nr(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 nd),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),Ss(this)&&(a=this.part,a!==null&&Nr(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 nd),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 nd),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 nd,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 nd,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 nd,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 nd,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 lu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new lu),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 lu),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 lu),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)&&xe("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new lu),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)&&xe("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new lu),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 Mi&&!(this instanceof Xo);yu(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Un?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof Mi&&(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 xf),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 si}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof Mi||a.isPanelMain)&&xe("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(););vo(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&&(vo(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 oo&&(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&&Fm(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))}}}),_t.Object.defineProperties(Hn,{Position:{get:function(){return Fu.I("Position")}},Horizontal:{get:function(){return Fu.I("Horizontal")}},Vertical:{get:function(){return Fu.I("Vertical")}},Spot:{get:function(){return Fu.I("Spot")}},Auto:{get:function(){return Fu.I("Auto")}},Table:{get:function(){return Fu.I("Table")}},Viewbox:{get:function(){return Fu.I("Viewbox")}},TableRow:{get:function(){return Fu.I("TableRow")}},TableColumn:{get:function(){return Fu.I("TableColumn")}},Link:{get:function(){return Fu.I("Link")}},Grid:{get:function(){return Fu.I("Grid")}},Graduated:{get:function(){return Fu.I("Graduated")}}}),Hn.prototype.rebuildItemElements=Hn.prototype.mv,Hn.prototype.findItemPanelForData=Hn.prototype.sx,Hn.prototype.updateTargetBindings=Hn.prototype.La,Hn.prototype.copyTemplate=Hn.prototype.Uy,Hn.prototype.graduatedValueForPoint=Hn.prototype.Gz,Hn.prototype.graduatedPointForValue=Hn.prototype.Fz,Hn.prototype.findColumnForLocalX=Hn.prototype.fz,Hn.prototype.findRowForLocalY=Hn.prototype.nz,Hn.prototype.addColumnDefinition=Hn.prototype.By,Hn.prototype.addRowDefinition=Hn.prototype.Hy,Hn.prototype.addRowColumnDefinition=Hn.prototype.Gy,Hn.prototype.removeColumnDefinition=Hn.prototype.jA,Hn.prototype.getColumnDefinition=Hn.prototype.Eb,Hn.prototype.removeRowDefinition=Hn.prototype.oA,Hn.prototype.getRowDefinition=Hn.prototype.Fb,Hn.prototype.removeAt=Hn.prototype.mb,Hn.prototype.remove=Hn.prototype.remove,Hn.prototype.insertAt=Hn.prototype.Gb,Hn.prototype.elt=Hn.prototype.M,Hn.prototype.add=Hn.prototype.add,Hn.prototype.findObject=Hn.prototype.fb,Hn.prototype.findInVisualTree=Hn.prototype.Nl,Hn.prototype.walkVisualTreeFrom=Hn.prototype.qm,Hn.prototype.findMainElement=Hn.prototype.Pb;var g1=!1,p1=null,Fu=new si;Hn.className="Panel",Hn.definePanelLayout=uh,uh("Position",new mm),uh("Vertical",new ym),uh("Auto",new xm),uh("Link",new Lm);function nd(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}nd.prototype.copy=function(){var a=new nd;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},nd.className="GradPanelSettings";function lu(){this.Pc=[],this.Oc=[],this.j=this.ob=Dm,this.hb=this.Hb=0,this.Qp=bs,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}lu.prototype.copy=function(a){for(var y=new lu,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var tt=x[z].copy();tt.wi(a),E[z]=tt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(tt=x[z].copy(),tt.wi(a),E[z]=tt);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},lu.className="TablePanelSettings";function Ia(a){po(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=lr,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=so,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))}Ia.prototype.copy=function(){var a=new Ia;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=Ie(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=Ie(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Lt=Ia.prototype,Lt.qb=function(a){a.classType===Ia&&(this.sizing=a)},Lt.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Yi(this)},Lt.wi=function(a){this.Me=a},Lt.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)},Lt.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Hn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var tt=b?y.rowDefs[z]:y.colDefs[z];if(tt!==void 0&&tt.oa!==0){x=tt.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=b?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=b?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),b=this.dg,b===null)if(y!==null)b=y.defaultSeparatorPadding;else return a;return a+(this.isRow?b.top+b.bottom:b.left+b.right)},Lt.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Zr,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 Bm(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Lt.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new Pa(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&c1(y)&&xe("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new xn),this.be.add(E),this},_t.Object.defineProperties(Ia.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&&Wn(a,">= 0",Ia,"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&&Wn(a,">= 0",Ia,"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))&&Wn(a,">= 0",Ia,"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&&Wn(a,">= 0",Ia,"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 Bi(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&&Pf(a,"RowColumnDefinition.separatorStroke"),a instanceof hr&&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)||xe("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&&Pf(a,"RowColumnDefinition.background"),a instanceof hr&&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}}}),Ia.prototype.computeEffectiveSpacing=Ia.prototype.Wc,Ia.prototype.computeEffectiveSpacingTop=Ia.prototype.Io;var Cv=new Be(Ia,"Default",0),fp=new Be(Ia,"None",1),Dm=new Be(Ia,"ProportionalExtra",2);Ia.className="RowColumnDefinition",Ia.Default=Cv,Ia.None=fp,Ia.ProportionalExtra=Dm;function fo(a,y){be.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)}he(fo,be),fo.prototype.cloneProtected=function(a){be.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=Ie(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 Kc(a){a.Na===null?a.Na=new Lv:a.Na.nc&&(a.Na=a.Na.copy())}Lt=fo.prototype,Lt.th=function(){be.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Lt.qb=function(a){a===Nn||a===pi||a===ko||a===so?this.geometryStretch=a:be.prototype.qb.call(this,a)},Lt.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Yi(this)};function cg(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,tt=Math.max(1,z.width);z=z.height;for(var ot=x[0],rt=x[1],lt,ut,ft,yt,Pt,bt,Nt=0,Qt=rn(),Wt=2;Wt<E;Wt+=2)lt=x[Wt],ut=x[Wt+1],ft=lt-ot,ot=ut-rt,ft===0&&(ft=.001),yt=ot/ft,Pt=Math.atan2(ot,ft),bt=Math.sqrt(ft*ft+ot*ot),Qt.push([ft,Pt,yt,bt]),Nt+=bt,ot=lt,rt=ut;ot=x[0],rt=x[1],ft=b.measuredBounds.width,b instanceof fo&&(ft-=b.strokeWidth),1>ft&&(ft=1),E=x=ft,lt=tt/2,ut=lt!==0,Wt=0,bt=Qt[Wt],ft=bt[0],Pt=bt[1],yt=bt[2],bt=bt[3];for(var ae=0;.1<=Nt;){if(ae===0&&(ut?(E=x,E-=lt,Nt-=lt,ut=!1):E=x,E===0&&(E=1)),E>Nt){pn(Qt);return}E>bt?(ae=E-bt,E=bt):ae=0;var ue=Math.sqrt(E*E/(1+yt*yt));if(0>ft&&(ue=-ue),ot+=ue,rt+=yt*ue,a.translate(ot,rt),a.rotate(Pt),a.translate(-(tt/2),-(z/2)),ae===0&&b.hh(a,y),a.translate(tt/2,z/2),a.rotate(-Pt),a.translate(-ot,-rt),Nt-=E,bt-=E,ae!==0){if(Wt++,Wt===Qt.length){pn(Qt);return}bt=Qt[Wt],ft=bt[0],Pt=bt[1],yt=bt[2],bt=bt[3],E=ae}}pn(Qt)}}Lt.hh=function(a,y){var x=this.xc,b=this.Ui;if(x!==null||b!==null){var E=this.ua;if(E!==null){a.yc();var z=this.actualBounds,tt=this.naturalBounds;b!==null&&sa(this,a,b,!0,!1,tt,z);var ot=this.part,rt=this.ig;if(x===null||rt!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(rt=ot.type===Hn.Link&&ot instanceof Xo&&ot.category==="Selection"&&ot.adornedObject instanceof fo&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),rt===0&&(x=null),x!==null&&rt!==0&&(sa(this,a,x,!1,!1,tt,z),a.lineWidth=rt,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||b!==null&&b!=="transparent"||(ot=!1),tt=!1,rt=this.strokeDashArray,rt!==null&&(tt=!0,a.js(rt,this.strokeDashOffset)),E.type===Qn.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===Qn.u){var lt=E.startX;rt=E.startY;var ut=E.endX,ft=E.endY;E=Math.min(lt,ut);var yt=Math.min(rt,ft);lt=Math.abs(ut-lt),rt=Math.abs(ft-rt),a.beginPath(),a.rect(E,yt,lt,rt),b!==null&&a.ng(b),x!==null&&(ot&&z&&Ah(a),a.jk(),ot&&z&&$h(a)),a.Se()}else if(E.type===Qn.F)lt=E.startX,rt=E.startY,ut=E.endX,ft=E.endY,E=Math.abs(ut-lt)/2,yt=Math.abs(ft-rt)/2,lt=Math.min(lt,ut)+E,rt=Math.min(rt,ft)+yt,a.beginPath(),a.moveTo(lt,rt-yt),a.bezierCurveTo(lt+De.wg*E,rt-yt,lt+E,rt-De.wg*yt,lt+E,rt),a.bezierCurveTo(lt+E,rt+De.wg*yt,lt+De.wg*E,rt+yt,lt,rt+yt),a.bezierCurveTo(lt-De.wg*E,rt+yt,lt-E,rt+De.wg*yt,lt-E,rt),a.bezierCurveTo(lt-E,rt-De.wg*yt,lt-De.wg*E,rt-yt,lt,rt-yt),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&Ah(a),a.jk(),ot&&z&&$h(a)),a.Se();else if(E.type===Qn.o)for(E=E.figures,rt=E.length,yt=0;yt<rt;yt++){lt=E.s[yt],a.beginPath(),a.moveTo(lt.startX,lt.startY),ut=lt.segments.s,ft=ut.length;for(var Pt=null,bt=0;bt<ft;bt++){var Nt=ut[bt];switch(Nt.type){case ya:a.moveTo(Nt.endX,Nt.endY);break;case Er:a.lineTo(Nt.endX,Nt.endY);break;case ls:a.bezierCurveTo(Nt.point1X,Nt.point1Y,Nt.point2X,Nt.point2Y,Nt.endX,Nt.endY);break;case bl:a.quadraticCurveTo(Nt.point1X,Nt.point1Y,Nt.endX,Nt.endY);break;case ga:if(Nt.radiusX===Nt.radiusY){var Qt=Math.PI/180;a.arc(Nt.point1X,Nt.point1Y,Nt.radiusX,Nt.startAngle*Qt,(Nt.startAngle+Nt.sweepAngle)*Qt,0>Nt.sweepAngle,Pt!==null?Pt.endX:lt.startX,Pt!==null?Pt.endY:lt.startY)}else if(Pt=il(Nt,lt),Qt=Pt.length,Qt===0)a.lineTo(Nt.centerX,Nt.centerY);else for(var Wt=0;Wt<Qt;Wt++){var ae=Pt[Wt];Wt===0&&a.lineTo(ae[0],ae[1]),a.bezierCurveTo(ae[2],ae[3],ae[4],ae[5],ae[6],ae[7])}break;case jl:if(Wt=Qt=0,Pt!==null&&Pt.type===ga){if(Pt=il(Pt,lt),ae=Pt.length,ae===0){a.lineTo(Nt.endX,Nt.endY);break}Pt=Pt[ae-1]||null,Pt!==null&&(Qt=Pt[6],Wt=Pt[7])}else Qt=Pt!==null?Pt.endX:lt.startX,Wt=Pt!==null?Pt.endY:lt.startY;if(Pt=Hs(Nt,lt,Qt,Wt),Qt=Pt.length,Qt===0){a.lineTo(Nt.endX,Nt.endY);break}for(Wt=0;Wt<Qt;Wt++)ae=Pt[Wt],a.bezierCurveTo(ae[2],ae[3],ae[4],ae[5],ae[6],ae[7]);break;default:xe("Segment not of valid type: "+Nt.type)}Nt.isClosed&&a.closePath(),Pt=Nt}ut=lt.isFilled,z?lt.isShadowed?(ut===!0&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&(ut&&ot&&Ah(a),a.jk(),ut&&ot&&$h(a))):(Ah(a),ut&&b!=="transparent"&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk(),$h(a)):(ut&&b!==null&&a.ng(b,lt.isEvenOdd),x!==null&&a.jk()),a.Se(yt)}if(tt&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),b=x.measuredBounds,x.arrange(0,0,b.width,b.height),z=this.geometry,a.save(),a.beginPath(),b=rn(),z.type===Qn.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===Qn.o)for(z=z.figures.iterator;z.next();){for(ot=z.value,b.length=0,b.push(ot.startX),b.push(ot.startY),tt=ot.startX,E=ot.startY,rt=tt,yt=E,lt=ot.segments.s,ut=lt.length,ft=0;ft<ut;ft++){switch(bt=lt[ft],bt.type){case ya:cg(a,y,b,x),b.length=0,b.push(bt.endX),b.push(bt.endY),tt=bt.endX,E=bt.endY,rt=tt,yt=E;break;case Er:b.push(bt.endX),b.push(bt.endY),tt=bt.endX,E=bt.endY;break;case ls:De.Qe(tt,E,bt.point1X,bt.point1Y,bt.point2X,bt.point2Y,bt.endX,bt.endY,.5,b),tt=bt.endX,E=bt.endY;break;case bl:De.ep(tt,E,bt.point1X,bt.point1Y,bt.endX,bt.endY,.5,b),tt=bt.endX,E=bt.endY;break;case ga:if(Nt=il(bt,ot),Pt=Nt.length,Pt===0){b.push(bt.centerX),b.push(bt.centerY),tt=bt.centerX,E=bt.centerY;break}for(Qt=0;Qt<Pt;Qt++)Wt=Nt[Qt],De.Qe(tt,E,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,b),tt=Wt[6],E=Wt[7];break;case jl:if(Nt=Hs(bt,ot,tt,E),Pt=Nt.length,Pt===0){b.push(bt.endX),b.push(bt.endY),tt=bt.endX,E=bt.endY;break}for(Qt=0;Qt<Pt;Qt++)Wt=Nt[Qt],De.Qe(tt,E,Wt[2],Wt[3],Wt[4],Wt[5],Wt[6],Wt[7],.5,b),tt=Wt[6],E=Wt[7];break;default:xe("Segment not of valid type: "+bt.type)}bt.isClosed&&(b.push(rt),b.push(yt),cg(a,y,b,x))}cg(a,y,b,x)}else if(z.type===Qn.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===Qn.F){if(E=new Ga,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,tt=new Uo(ga),tt.startAngle=0,tt.sweepAngle=360,tt.centerX=(z.startX+z.endX)/2,tt.centerY=(z.startY+z.endY)/2,tt.radiusX=Math.abs(z.startX-z.endX)/2,tt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(tt),z=il(tt,E),ot=z.length,ot===0)b.push(tt.centerX),b.push(tt.centerY);else for(tt=E.startX,E=E.startY,rt=0;rt<ot;rt++)yt=z[rt],De.Qe(tt,E,yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],.5,b),tt=yt[6],E=yt[7];cg(a,y,b,x)}pn(b),a.restore(),a.Vc(!1)}}}},Lt.kk=function(a,y,x){return!be.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)},Lt.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:be.prototype.nk.call(this,a)},Lt.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)}},Lt.ga=function(a,y){if(y===void 0&&(y=new Zt),a instanceof yi){a.Mc()&&xe("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},Lt.mi=function(a){a===void 0&&(a=new gn);var y=this.naturalBounds,x=this.oe;y=gn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Zt.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),or(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),or(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),or(a,b.x,b.y,0,0),gn.free(y),Zt.free(b),a},Lt.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!==Qn.j||y||(E+=2);var z=gn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return gn.free(z),!1;if(b=E+1e-4,x.type===Qn.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:(gn.free(z),De.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Qn.u){y=x.startX;var tt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(tt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-tt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return gn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),gn.free(z),a}if(x.type===Qn.F){tt=x.startX,E=x.startY,ot=x.endX;var rt=x.endY;if(x=Math.min(tt,ot),y=Math.min(E,rt),tt=Math.abs(ot-tt)/2,E=Math.abs(rt-E)/2,x=a.x-(x+tt),y=a.y-(y+E),this.fill===null){if(tt-=b,E-=b,0>=tt||0>=E||1>=x*x/(tt*tt)+y*y/(E*E))return gn.free(z),!1;tt+=b,E+=b}return this.stroke!==null&&(tt+=b,E+=b),gn.free(z),0>=tt||0>=E?!1:1>=x*x/(tt*tt)+y*y/(E*E)}if(x.type===Qn.o)return gn.free(z),this.fill===null?ih(x,a.x,a.y,E):Wu(x,a,E,1<this.strokeWidth,y);xe("Unknown Geometry type: "+x.type)},Lt.Wl=function(a,y,x,b){var E=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var tt=this.geometry.bounds;else{var ot=this.figure,rt=Ev[ot];if(rt===void 0){var lt=De.Ze[ot];typeof lt=="string"&&(lt=De.Ze[lt]),typeof lt=="function"?(rt=lt(null,100,100),Ev[ot]=rt):xe("Unsupported Figure: "+ot)}tt=rt.bounds}ot=tt.width,rt=tt.height,lt=tt.width;var ut=tt.height;switch(sl(this,!0)){case Nn:b=x=0;break;case jn:lt=Math.max(a-z,0),ut=Math.max(y-z,0);break;case wi:lt=Math.max(a-z,0),b=0;break;case Ri:x=0,ut=Math.max(y-z,0)}isFinite(E.width)&&(lt=E.width),isFinite(E.height)&&(ut=E.height);var ft=this.maxSize,yt=this.minSize;switch(x=Math.max(x-z,yt.width),b=Math.max(b-z,yt.height),lt=Math.min(ft.width,lt),ut=Math.min(ft.height,ut),lt=isFinite(lt)?Math.max(x,lt):Math.max(ot,x),ut=isFinite(ut)?Math.max(b,ut):Math.max(rt,b),x=bv(this),x){case Nn:break;case jn:ot=lt,rt=ut;break;case pi:x=Math.min(lt/ot,ut/rt),isFinite(x)||(x=1),ot*=x,rt*=x;break;default:xe(x+" is not a valid geometryStretch.")}this.Rd!==null?(ot===0&&(ot=.001),rt===0&&(rt=.001),x=this.Rd!==null?this.Rd:this.ua,tt=x.bounds,b=ot/tt.width,tt=rt/tt.height,isFinite(b)||(b=1),isFinite(tt)||(tt=1),this.ua=b===1&&tt===1?x:x.copy().scale(b,tt)):this.ua!==null&&De.$(this.ua.Sk,a-z)&&De.$(this.ua.Rk,y-z)||(this.ua=fo.makeGeometry(this,ot,rt)),tt=this.ua.bounds,a===1/0||y===1/0?this.Ge(tt.x-z/2,tt.y-z/2,a===0&&ot===0?0:tt.width+z,y===0&&rt===0?0:tt.height+z):this.Ge(-(z/2),-(z/2),lt+z,ut+z),E.w()?(lt=E.width,ut=E.height,lt=Math.min(ft.width,lt),ut=Math.min(ft.height,ut),lt=Math.max(yt.width,lt),ut=Math.max(yt.height,ut),this.dc.h(0,0,lt,ut)):this.dc.assign(tt)};function bv(a){var y=a.geometryStretch;return a.Rd!==null?y===so?jn:y:y===so?Ev[a.figure].defaultStretch:y}Lt.eh=function(a,y,x,b){Os(this,a,y,x,b)},Lt.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Lt.Sj=function(a,y,x,b,E){var z=this.transform,tt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*tt,rt=-z.m12*tt,lt=-z.m21*tt,ut=z.m11*tt,ft=tt*(z.m21*z.dy-z.m22*z.dx),yt=tt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*lt+ft,tt=a*rt+y*ut+yt,ot=x*ot+b*lt+ft,rt=x*rt+b*ut+yt,ft=this.ig/2,lt=this.ua,lt===null&&(this.measure(1/0,1/0),lt=this.ua);var Pt=lt.bounds;if(ut=!1,lt.type===Qn.j)if(1.5>=this.strokeWidth)ut=De.Ve(lt.startX,lt.startY,lt.endX,lt.endY,z,tt,ot,rt,E);else{if(lt.startX===lt.endX?(b=ft,ut=0):(y=(lt.endY-lt.startY)/(lt.endX-lt.startX),ut=ft/Math.sqrt(1+y*y),b=ut*y),y=rn(),a=new Zt,De.Ve(lt.startX+b,lt.startY+ut,lt.endX+b,lt.endY+ut,z,tt,ot,rt,a)&&y.push(a),a=new Zt,De.Ve(lt.startX-b,lt.startY-ut,lt.endX-b,lt.endY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Zt,De.Ve(lt.startX+b,lt.startY+ut,lt.startX-b,lt.startY-ut,z,tt,ot,rt,a)&&y.push(a),a=new Zt,De.Ve(lt.endX+b,lt.endY+ut,lt.endX-b,lt.endY-ut,z,tt,ot,rt,a)&&y.push(a),ot=y.length,ot===0)return pn(y),!1;for(ut=!0,rt=1/0,b=0;b<ot;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-tt)*(a.y-tt),x<rt&&(rt=x,E.x=a.x,E.y=a.y);pn(y)}else if(lt.type===Qn.u)ut=De.Ff(Pt.x-ft,Pt.y-ft,Pt.x+Pt.width+ft,Pt.y+Pt.height+ft,z,tt,ot,rt,E);else if(lt.type===Qn.F){y=gn.allocAt(Pt.x,Pt.y,Pt.width,Pt.height).Bc(ft,ft);t:if(y.width===0)ut=De.Ve(y.x,y.y,y.x,y.y+y.height,z,tt,ot,rt,E);else if(y.height===0)ut=De.Ve(y.x,y.y,y.x+y.width,y.y,z,tt,ot,rt,E);else{if(a=y.width/2,lt=y.height/2,b=y.x+a,ut=y.y+lt,x=9999,z!==ot&&(x=(tt-rt)/(z-ot)),9999>Math.abs(x)){if(rt=tt-ut-x*(z-b),0>a*a*x*x+lt*lt-rt*rt){E.x=NaN,E.y=NaN,ut=!1;break t}ft=Math.sqrt(a*a*x*x+lt*lt-rt*rt),ot=(-(a*a*x*rt)+a*lt*ft)/(lt*lt+a*a*x*x)+b,a=(-(a*a*x*rt)-a*lt*ft)/(lt*lt+a*a*x*x)+b,lt=x*(ot-b)+rt+ut,rt=x*(a-b)+rt+ut,Math.abs((z-ot)*(z-ot))+Math.abs((tt-lt)*(tt-lt))<Math.abs((z-a)*(z-a))+Math.abs((tt-rt)*(tt-rt))?(E.x=ot,E.y=lt):(E.x=a,E.y=rt)}else{if(ot=lt*lt,rt=z-b,ot-=ot/(a*a)*rt*rt,0>ot){E.x=NaN,E.y=NaN,ut=!1;break t}rt=Math.sqrt(ot),ot=ut+rt,rt=ut-rt,Math.abs(ot-tt)<Math.abs(rt-tt)?(E.x=z,E.y=ot):(E.x=z,E.y=rt)}ut=!0}gn.free(y)}else if(lt.type===Qn.o){yt=Zt.alloc();var bt=ot-z,Nt=rt-tt,Qt=bt*bt+Nt*Nt,Wt=z,ae=tt;if(0<Qt&&Pt.contains(Wt,ae)&&(yt.x=Wt,yt.y=ae,this.ca(yt)))for(bt!==0&&.5>Math.abs(bt)?(Nt*=.5/bt,bt=.5):Nt!==0&&.5>Math.abs(Nt)&&(bt*=.5/Nt,Nt=.5),Wt-=bt,ae-=Nt;Pt.contains(Wt,ae);)Wt-=bt,ae-=Nt;for(E.x=ot,E.y=rt,Nt=0;Nt<lt.figures.count;Nt++){var ue=lt.figures.s[Nt],ce=ue.isFilled?Wt:z,Pe=ue.isFilled?ae:tt,Je=ue.segments;Pt=ue.startX,bt=ue.startY;for(var ti=Pt,fi=bt,li=0;li<Je.count;li++){var Vn=Je.s[li],Fn=Vn.type,no=Vn.endX,Xi=Vn.endY,qo=!1;switch(Fn){case ya:ti=no,fi=Xi;break;case Er:qo=Tm(Pt,bt,no,Xi,ce,Pe,ot,rt,yt);break;case ls:qo=De.Eo(Pt,bt,Vn.point1X,Vn.point1Y,Vn.point2X,Vn.point2Y,no,Xi,ce,Pe,ot,rt,.6,yt);break;case bl:qo=De.Eo(Pt,bt,Pt+2/3*(Vn.point1X-Pt),bt+2/3*(Vn.point1Y-bt),no+2/3*(Vn.point1X-no),Xi+2/3*(Vn.point1Y-Xi),no,Xi,ce,Pe,ot,rt,.6,yt);break;case ga:case jl:Fn=Vn.type===ga?il(Vn,ue):Hs(Vn,ue,Pt,bt);var br=Fn.length;if(br===0){qo=Tm(Pt,bt,Vn.type===ga?Vn.centerX:Vn.endX,Vn.type===ga?Vn.centerY:Vn.endY,ce,Pe,ot,rt,yt);break}for(Xi=null,no=0;no<br;no++){if(Xi=Fn[no],no===0&&Tm(Pt,bt,Xi[0],Xi[1],ce,Pe,ot,rt,yt)){var ts=Nm(ce,Pe,yt,Qt,E);ts<Qt&&(Qt=ts,ut=!0)}De.Eo(Xi[0],Xi[1],Xi[2],Xi[3],Xi[4],Xi[5],Xi[6],Xi[7],ce,Pe,ot,rt,.6,yt)&&(ts=Nm(ce,Pe,yt,Qt,E),ts<Qt&&(Qt=ts,ut=!0))}no=Xi[6],Xi=Xi[7];break;default:xe("Unknown Segment type: "+Fn)}Pt=no,bt=Xi,qo&&(qo=Nm(ce,Pe,yt,Qt,E),qo<Qt&&(Qt=qo,ut=!0)),Vn.isClosed&&(no=ti,Xi=fi,Tm(Pt,bt,no,Xi,ce,Pe,ot,rt,yt)&&(Vn=Nm(ce,Pe,yt,Qt,E),Vn<Qt&&(Qt=Vn,ut=!0)))}}z=x-a,tt=b-y,ot=Math.sqrt(z*z+tt*tt),ot!==0&&(z/=ot,tt/=ot),E.x-=z*ft,E.y-=tt*ft,Zt.free(yt)}else xe("Unknown Geometry type: "+lt.type);return ut?(this.transform.Ga(E),!0):!1};function Nm(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,tt,ot,rt){if(De.$(a,x)&&De.$(y,b)||De.$(E,tt)&&De.$(z,ot))return!1;var lt=!1,ut=(E-tt)*(y-b)-(z-ot)*(a-x);return ut===0?!1:(rt.x=((E*ot-z*tt)*(a-x)-(E-tt)*(a*b-y*x))/ut,rt.y=((E*ot-z*tt)*(y-b)-(z-ot)*(a*b-y*x))/ut,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(rt.y>a||De.$(rt.y,a))&&(rt.y<y||De.$(rt.y,y))&&(lt=!0)):(y=a<x?a:x,a=a<x?x:a,(rt.x>y||De.$(rt.x,y))&&(rt.x<a||De.$(rt.x,a))&&(lt=!0)),lt)}Lt.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=Zt.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)))),Zt.free(z),E},Lt.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=mo.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var tt=Zt.alloc();if(tt.h(b,z),x.Ga(tt),this.gh(tt,!0)||(tt.h(E,z),x.Ga(tt),this.gh(tt,!0))||(tt.h(b,a),x.Ga(tt),this.gh(tt,!0))||(tt.h(E,a),x.Ga(tt),this.gh(tt,!0)))return Zt.free(tt),!0;var ot=Zt.alloc(),rt=Zt.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ot.x=E,ot.y=z,ot.transform(x),tt.x=b,tt.y=z,tt.transform(x),y=!1,Vc(this,tt,ot,rt)?y=!0:(tt.x=E,tt.y=a,tt.transform(x),Vc(this,tt,ot,rt)?y=!0:(ot.x=b,ot.y=a,ot.transform(x),Vc(this,tt,ot,rt)?y=!0:(tt.x=b,tt.y=z,tt.transform(x),Vc(this,tt,ot,rt)&&(y=!0)))),Zt.free(tt),mo.free(x),Zt.free(ot),Zt.free(rt),y};function Vc(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)}Lt.tx=function(a,y,x){function b(Qt,Wt){for(var ae=Qt.length,ue=0;ue<ae;ue+=2)if(Wt.zd(Qt[ue],Qt[ue+1])>E)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var E=a.Bf(y),z=E;if(1.5<this.strokeWidth&&(E=this.strokeWidth/2+Math.sqrt(E),E*=E),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var tt=y.bounds,ot=tt.x,rt=tt.y,lt=tt.x+tt.width;if(tt=tt.y+tt.height,Ki(a.x,a.y,ot,rt)<=E&&Ki(a.x,a.y,lt,rt)<=E&&Ki(a.x,a.y,ot,tt)<=E&&Ki(a.x,a.y,lt,tt)<=E)return!0}if(ot=y.startX,rt=y.startY,lt=y.endX,tt=y.endY,y.type===Qn.j){if(x=(ot-lt)*(a.x-lt)+(rt-tt)*(a.y-tt),kr(a.x,a.y,ot,rt,lt,tt)<=(0<=(lt-ot)*(a.x-ot)+(tt-rt)*(a.y-rt)&&0<=x?E:z))return!0}else{if(y.type===Qn.u)return y=!1,x&&(y=kr(a.x,a.y,ot,rt,ot,tt)<=E||kr(a.x,a.y,ot,rt,lt,rt)<=E||kr(a.x,a.y,lt,rt,lt,tt)<=E||kr(a.x,a.y,ot,tt,lt,tt)<=E),y;if(y.type===Qn.F){y=a.x-(ot+lt)/2,z=a.y-(rt+tt)/2;var ut=Math.abs(lt-ot)/2,ft=Math.abs(tt-rt)/2;if(ut===0||ft===0)return kr(a.x,a.y,ot,rt,lt,tt)<=E;if(x){if(a=De.$y(ut,ft,y,z),a*a<=E)return!0}else return!(Ki(y,z,-ut,0)>=E||Ki(y,z,0,-ft)>=E||Ki(y,z,0,ft)>=E||Ki(y,z,ut,0)>=E)}else if(y.type===Qn.o){if(lt=y.bounds,z=lt.x,ot=lt.y,rt=lt.x+lt.width,lt=lt.y+lt.height,a.x>rt&&a.x<z&&a.y>lt&&a.y<ot&&kr(a.x,a.y,z,ot,z,lt)>E&&kr(a.x,a.y,z,ot,rt,ot)>E&&kr(a.x,a.y,rt,lt,z,lt)>E&&kr(a.x,a.y,rt,lt,rt,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?ih(y,a.x,a.y,z):Wu(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],tt=z.startX,ut=z.startY,a.zd(tt,ut)>E)return!1;for(ot=z.segments.s,rt=ot.length,lt=0;lt<rt;lt++)switch(ft=ot[lt],ft.type){case ya:case Er:if(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E)return!1;break;case ls:var yt=rn();if(De.Qe(tt,ut,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.8,yt),tt=b(yt,a),pn(yt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case bl:if(yt=rn(),De.ep(tt,ut,ft.point1X,ft.point1Y,ft.endX,ft.endY,.8,yt),tt=b(yt,a),pn(yt),tt||(tt=ft.endX,ut=ft.endY,a.zd(tt,ut)>E))return!1;break;case ga:case jl:yt=ft.type===ga?il(ft,z):Hs(ft,z,tt,ut);var Pt=yt.length;if(Pt===0){if(tt=ft.type===ga?ft.centerX:ft.endX,ut=ft.type===ga?ft.centerY:ft.endY,a.zd(tt,ut)>E)return!1;break}ft=null;for(var bt=rn(),Nt=0;Nt<Pt;Nt++)if(ft=yt[Nt],bt.length=0,De.Qe(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],.8,bt),b(bt,a))return pn(bt),!1;pn(bt),ft!==null&&(tt=ft[6],ut=ft[7]);break;default:xe("Unknown Segment type: "+ft.type)}}return!0}}}return!1},Lt.qc=function(){this.ua=null},Lt.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=Xa):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new yi(1-Xa.x,Xa.y)))}fo.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Fh[a.toArrow];else a.fromArrow!=="None"?b=Fh[a.fromArrow]:(b=De.Ze[a.figure],typeof b=="string"&&(b=De.Ze[b]),b===void 0&&xe("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=De.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function v1(a){var y=Fh[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Fh[x],y===void 0){var b=null,E;for(E in De.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Qn.parse(De.um[b],!1),Fh[b]=a,x!==b&&(Fh[x]=b),b}}return typeof y=="string"?y:y instanceof Qn?a:null}_t.Object.defineProperties(fo.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),Ss(this)&&(a=this.part,a!==null&&Nr(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Qn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Zt.allocAt(-y.x,-y.y),Zt.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&&Pf(a,"Shape.fill"),a instanceof hr&&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&&Pf(a,"Shape.stroke"),a instanceof hr&&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 Wn(a,"value >= 0",fo,"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"?Wn(a,'"butt", "round", or "square"',fo,"strokeCap"):(Kc(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"?Wn(a,'"miter", "bevel", or "round"',fo,"strokeJoin"):(Kc(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){Kc(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)||xe("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&&(Kc(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=De.Ze[a];typeof x=="function"?x=a:(x=De.Ze[a.toLowerCase()])||xe("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?xe("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new $d),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?xe("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new $d),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:lr},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Kc(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:lr},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Kc(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&&(Kc(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:so},set:function(a){var y=this.geometryStretch;y!==a&&(Kc(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 kh),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&ah(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 kh),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 kh),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 kh),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),fo.prototype.intersectsRect=fo.prototype.Yc,fo.prototype.containedInRect=fo.prototype.fh,fo.prototype.getNearestIntersectionPoint=fo.prototype.rs,fo.prototype.getDocumentBounds=fo.prototype.mi,fo.prototype.getDocumentPoint=fo.prototype.ga;var Fh=new ci,Ev=new ci;fo.className="Shape",fo.getFigureGenerators=function(){var a=new si,y;for(y in De.Ze)y!==y.toLowerCase()&&a.add(y,De.Ze[y]);return a.freeze(),a},fo.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=De.Ze;b[a]=y,b[x]=a},fo.getArrowheadGeometries=function(){var a=new si;for(b in De.um)if(Fh[b]===void 0){var y=Qn.parse(De.um[b],!1);Fh[b]=y,y=b.toLowerCase(),y!==b&&(Fh[y]=b)}for(var x in Fh)if(x!==x.toLowerCase()){var b=Fh[x];b instanceof Qn&&a.add(x,b)}return a.freeze(),a},fo.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Qn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||xe("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Fh;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=so,this.gg=this.fg=lr}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 Lr(a,y){return be.call(this),jm||(ll=ra?new vu(null).context:null,jm=!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}he(Lr,be),Lr.prototype.cloneProtected=function(a){be.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 hh(a){a.da===null?a.da=new Nv:a.da.nc&&(a.da=a.da.copy())}Lt=Lr.prototype,Lt.th=function(){be.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}Lt.qb=function(a){a.classType===Lr?this.wrap=a:be.prototype.qb.call(this,a)},Lt.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Lt.v=function(){be.prototype.v.call(this)},Lt.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,b=this.actualBounds,E=x.width,z=x.height,tt=pp(this),ot=a.textAlign=this.textAlign,rt=y.tn;ot==="start"?ot=rt?"right":"left":ot==="end"&&(ot=rt?"left":"right"),rt=this.isUnderline;var lt=this.isStrikethrough;sa(this,a,this.xc,!0,!1,x,b),(rt||lt)&&sa(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var ut=this.oe,ft=ut.dx-(tt*ut.m21+ut.dx);ut=ut.dy-(tt*ut.m22+ut.dy);var yt=y.scale;switch(8>(ft*ft+ut*ut)*yt*yt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof Al&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,ft=this.spacingBelow,this.flip){case Ho:a.translate(E,0),a.scale(-1,1);break;case xo:a.translate(0,z),a.scale(1,-1);break;case vr:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ut=this.Gc,yt=(y+tt+ft)*ut,z>yt&&(b=this.verticalAlignment,b=b.y*z-b.y*yt+b.offsetY),ut===1&&this.ze!==null)ft=this.Cb,ft>E&&(ft=E),this.Oj(this.ze,a,0,b+y,E,tt,ft,x,ot,rt,lt);else if(this.Qc!==null&&this.Qb!==null)for(yt=0;yt<ut;yt++){var Pt=this.Qc[yt];Pt>E&&(Pt=E),b+=y,this.Oj(this.Qb[yt],a,0,b,E,tt,Pt,x,ot,rt,lt),b+=tt+ft}switch(this.flip){case Ho:a.scale(-1,1),a.translate(-E,0);break;case xo:a.scale(1,-1),a.translate(0,-z);break;case vr:a.scale(-1,-1),a.translate(-E,-z)}}},Lt.Oj=function(a,y,x,b,E,z,tt,ot,rt,lt,ut){var ft=0;if(ot)rt==="left"?ft=0:rt==="right"?ft=E-tt:rt==="center"&&(ft=(E-tt)/2),y.fillRect(x+ft,b+.25*z,tt,1);else{if(rt==="left"?ft=0:rt==="right"?ft=E:rt==="center"&&(ft=E/2),E=Om!==null?Om(this,z):.75*z,y.fillText(a,x+ft,b+E),a=z/20|0,a===0&&(a=1),rt==="right"?ft-=tt:rt==="center"&&(ft-=tt/2),lt){ot=Im!==null?Im(this,z):.8*z,rt=x+ft,lt=b+ot,E=x+ft+tt,ot=b+ot;var yt=a;y.beginPath(),y.lineWidth=yt,y.moveTo(rt,lt),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof Al&&y.ad.classList.add("gojs-td")}ut&&(ut=b+z-z/2.2|0,a%2!==0&&(ut+=.5),b=x+ft,z=ut,x=x+ft+tt,tt=ut,ft=a,y.beginPath(),y.lineWidth=ft,y.moveTo(b,z),y.lineTo(x,tt),y.stroke(),y.Se(),y instanceof Al&&y.ad.classList.add("gojs-td"))}},Lt.kk=function(a,y,x){if(!be.prototype.kk.call(this,a,y,x))return!1;if(sa(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},Lt.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:be.prototype.nk.call(this,a)},Lt.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)}},Lt.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;ll!==null&&E1!==z&&(E1=ll.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var tt;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var ot=tt=0,rt=!1;!rt;){var lt=z.indexOf(`
|
|
|
`,ot);lt===-1&&(lt=z.length,rt=!0),ot=z.substr(ot,lt-ot),this.formatting===mp&&(ot=ot.trim()),tt=Math.max(tt,ku(ot)),ot=lt+1}z=tt}else tt=z.indexOf(`
|
|
|
`,0),0<=tt&&(z=z.substr(0,tt)),z=ku(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),tt=x1(this,z),isNaN(this.desiredSize.height)?tt=Math.min(tt,y/this.scale):tt=this.desiredSize.height,rt=tt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Rm&&(y=this.Ae,y=this.overflow===Rm?S1(y):0,lt=this.spacingAbove+this.spacingBelow,lt=Math.max(0,pp(this)+lt),rt=Math.min(this.maxLines-1,Math.max(Math.floor(rt/lt+.01)-1,0)),!(rt+1>=this.Qb.length))){for(this.l|=16777216,lt=this.Qb[rt],y=Math.max(1,a-y);ku(lt)>y&&1<lt.length;)lt=lt.substr(0,lt.length-1);lt+=vp,y=ku(lt),this.Qb[rt]=lt,this.Qb=this.Qb.slice(0,rt+1),this.Qc[rt]=y,this.Qc=this.Qc.slice(0,rt+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),tt=Math.max(b,tt),La(this.dc,z,tt),this.Ge(0,0,z,tt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},Lt.eh=function(a,y,x,b){Os(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 Av(a,y,x,b){var E=a.formatting===mp;E&&(y=y.trim());var z=0,tt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,pp(a)+ot);var rt=a.overflow===Rm?S1(tt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(tt=y,a.wrap===Mv){a.Le=1;var lt=ku(y);if(rt===0||lt<=x)a.Cb=Math.max(a.Cb,lt),gp(a,y,a.Cb),b!==null&&b.h(lt,ot);else{for(z=fg(a,tt),tt=tt.substr(z.length),y=fg(a,tt),lt=ku(z+y);0<y.length&<<=x;)z+=y,tt=tt.substr(y.length),y=fg(a,tt),lt=z+y,E&&(lt=lt.trim()),lt=ku(lt);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-rt);ku(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=vp;var ut=ku(z);a.Cb=ut,gp(a,z,ut),b!==null&&b.h(ut,ot)}}else{for(rt=0,tt.length===0&&(rt=1,gp(a,tt,0));0<tt.length;){for(y=fg(a,tt),tt=tt.substr(y.length);ku(y)>x;){var ft=1;for(lt=ku(y.substr(0,ft)),ut=0;lt<=x;)ft++,ut=lt,lt=ku(y.substr(0,ft));if(ft===1){var yt=lt;z=Math.max(z,lt)}else yt=ut,z=Math.max(z,ut);if(ft--,1>ft&&(ft=1),gp(a,y.substr(0,ft),yt),rt++,y=y.substr(ft),a.Gc+rt>a.maxLines)break}for(ut=fg(a,tt),lt=ku(y+ut);0<ut.length&<<=x;)y+=ut,tt=tt.substr(ut.length),ut=fg(a,tt),lt=y+ut,E&&(lt=lt.trim()),lt=ku(lt);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ut.length===0?(ft=lt,z=Math.max(z,lt)):(ft=ut=ku(y),z=Math.max(z,ut)),gp(a,y,ft),rt++,a.Gc+rt>a.maxLines))break}a.Le=Math.min(a.maxLines,rt),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,ot*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 ku(a){return ll===null?8*a.length:ll.measureText(a).width}function pp(a){if(a.df!==null)return a.df;var y=a.Ae;if(ll===null){var x=16;return a.df=x}return Bv[y]!==void 0&&5e3>b1?x=Bv[y]:(x=1.3*ll.measureText("M").width,Bv[y]=x,b1++),a.df=x}function S1(a){if(ll===null)return 6;if(zm[a]!==void 0&&5e3>Dv)var y=zm[a];else y=ll.measureText(vp).width,zm[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,tt,ot=!1;!ot;){if(tt=x.indexOf(`
|
|
|
`,z),tt===-1&&(tt=x.length,ot=!0),z<=tt){if(z=x.substr(z,tt-z),a.wrap!==Mv){a.Le=0;var rt=Yn.alloc();Av(a,z,y,rt),E+=rt.height,Yn.free(rt),a.Gc+=a.Le}else Av(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=tt+1}return a.Lq=E}_t.Object.defineProperties(Lr.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"||(hh(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Nn},set:function(a){var y=this.flip;y!==a&&(hh(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:$a},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),hh(this),this.da.Yr=a,Zs(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Yn.alloc();Av(this,this.ec,999999,a);var y=a.width;Yn.free(a),a=x1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),La(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:Fv},set:function(a){var y=this.wrap;y!==a&&(hh(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&&(hh(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&&Pf(a,"TextBlock.stroke"),a instanceof hr&&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&&(hh(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&&(hh(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 kh),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 kh),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 kh),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 kh),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 kh),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&&(hh(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&&(hh(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&&(hh(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&&(hh(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&&(hh(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&&Wn(a,"> 0",Lr,"maxLines"),hh(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,Mv=new Be(Lr,"None",0),w1=new Be(Lr,"WrapFit",1),Fv=new Be(Lr,"WrapDesiredSize",2),P1=new Be(Lr,"WrapBreakAll",3),kv=new Be(Lr,"OverflowClip",0),Rm=new Be(Lr,"OverflowEllipsis",1),mp=new Be(Lr,"FormatTrim",0),C1=new Be(Lr,"FormatNone",0),Sx=/[ \u200b\u00ad]/,Bv=new ci,b1=0,zm=new ci,Dv=0,vp="...",E1="",ll=null,jm=!1;Lr.className="TextBlock";function Nv(){this.nc=!1,this.Hd=null,this.Xf=Nn,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=$a,this.$r=Fv}Nv.prototype.copy=function(){var a=new Nv;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},Lr.getEllipsis=function(){return vp},Lr.setEllipsis=function(a){vp=a,zm=new ci,Dv=0},Lr.getBaseline=function(){return Om},Lr.setBaseline=function(a){Om=a},Lr.getUnderline=function(){return Im},Lr.setUnderline=function(a){Im=a},Lr.isValidFont=function(a){if(jm||(ll=ra?new vu(null).context:null,jm=!0),ll===null)return!0;var y=ll.font;if(a===y||a==="10px sans-serif")return!0;ll.font="10px sans-serif",ll.font=a;var x=ll.font;if(x!=="10px sans-serif")return ll.font=y,!0;ll.font="19px serif";var b=ll.font;return ll.font=a,x=ll.font,ll.font=y,x!==b},Lr.FormatNone=C1,Lr.FormatTrim=mp,Lr.None=Mv,Lr.OverflowClip=kv,Lr.OverflowEllipsis=Rm,Lr.WrapBreakAll=P1,Lr.WrapDesiredSize=Fv,Lr.WrapFit=w1;function kh(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}kh.prototype.copy=function(){var a=new kh;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},kh.className="GradElementSettings";function ul(a,y){be.call(this),this.Eg=null,this.qo="",this.Xg=dr,this.Nk=jn,this.Zg=this.Hd=null,this.Mk=jo,this.Xf=Nn,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;he(ul,be),ul.prototype.cloneProtected=function(a){be.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},ul.prototype.qb=function(a){a===Nn||a===pi||a===ko?this.imageStretch=a:be.prototype.qb.call(this,a)},ul.prototype.toString=function(){return"Picture("+this.source+")#"+Yi(this)};function pg(a){a===void 0&&(a=""),a!==""?gg[a]&&(delete gg[a],Wm--):(gg=new ci,Wm=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")||"",tt=E.Og.I(z);if(tt!==null)for(var ot=tt.length,rt=0;rt<ot;rt++)z=tt[rt],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()||(Oa(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",tt=E.Og.I(z);if(tt!==null){E=tt.length,z=rn();for(var ot=0;ot<E;ot++)z.push(tt[ot]);if(y.hn)for(ot=0;ot<E;ot++)tt=z[ot],tt.Hd!==null&&tt.Hd(tt,x);pn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}ul.prototype.hA=function(){if(this.source!==""){pg(this.source);var a=this.source;this.source="",this.source=a}},ul.prototype.redraw=function(){this.N(),this.Uc=!0},ul.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 Gc)){var E=a instanceof Al;b=this.naturalBounds;var z=0,tt=0,ot=this.qn,rt=ot?+x.width:x.naturalWidth;if(ot=ot?+x.height:x.naturalHeight,rt===void 0&&x.videoWidth&&(rt=x.videoWidth),ot===void 0&&x.videoHeight&&(ot=x.videoHeight),rt=rt||b.width,ot=ot||b.height,rt!==0&&ot!==0){var lt=rt,ut=ot;this.sourceRect.w()&&(z=this.Xg.x,tt=this.Xg.y,rt=this.Xg.width,ot=this.Xg.height);var ft=rt,yt=ot,Pt=this.Nk,bt=this.Mk;switch(Pt){case Nn:if(this.sourceRect.w())break;ft>=b.width&&(z=z+bt.offsetX+(ft*bt.x-b.width*bt.x)),yt>=b.height&&(tt=tt+bt.offsetY+(yt*bt.y-b.height*bt.y)),rt=Math.min(b.width,ft),ot=Math.min(b.height,yt);break;case jn:ft=b.width,yt=b.height;break;case pi:case ko:Pt===pi?(Pt=Math.min(b.height/yt,b.width/ft),ft*=Pt,yt*=Pt):Pt===ko&&(Pt=Math.max(b.height/yt,b.width/ft),ft*=Pt,yt*=Pt,ft>=b.width&&(z=(z+bt.offsetX+(ft*bt.x-b.width*bt.x)/ft)*rt),yt>=b.height&&(tt=(tt+bt.offsetY+(yt*bt.y-b.height*bt.y)/yt)*ot),rt*=1/(ft/b.width),ot*=1/(yt/b.height),ft=b.width,yt=b.height)}Pt=this.Df()*y.scale;var Nt=ft*Pt*yt*Pt,Qt=rt*ot/Nt,Wt=x.__goCache;Pt=null;var ae=xx;if(!E){if(x.sq&&Wt!==void 0&&4<Nt&&Qt>ae*ae)for(Wt.gi===null&&(M1(Wt,4,lt,ut,x),M1(Wt,16,lt,ut,x)),E=Wt.gi,lt=E.length,ut=0;ut<lt&&E[ut].ratio*E[ut].ratio<Qt;ut++)Pt=E[ut];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new vu(null).context;try{E.drawImage(this.Eg,0,0)}catch(ue){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(ue){this.vl=!0}}if(this.vl)return}}switch(E=ft<b.width?bt.offsetX+(b.width*bt.x-ft*bt.x):0,bt=yt<b.height?bt.offsetY+(b.height*bt.y-yt*bt.y):0,this.flip){case Ho:a.translate(Math.min(b.width,ft),0),a.scale(-1,1);break;case xo:a.translate(0,Math.min(b.height,yt)),a.scale(1,-1);break;case vr:a.translate(Math.min(b.width,ft),Math.min(b.height,yt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&Wt!==void 0&&Pt!==null&&Pt.ratio!==1){a.save(),y=Pt.ratio;try{a.drawImage(Pt.source,z/y,tt/y,Math.min(Pt.source.width,rt/y),Math.min(Pt.source.height,ot/y),E,bt,Math.min(b.width,ft),Math.min(b.height,yt)),a instanceof Al&&(this.bt=[z/y,tt/y,Math.min(Pt.source.width,rt/y),Math.min(Pt.source.height,ot/y),E,bt,Math.min(b.width,ft),Math.min(b.height,yt)])}catch(ue){this.en=!1}a.restore()}else try{a.drawImage(x,z,tt,rt,ot,E,bt,Math.min(b.width,ft),Math.min(b.height,yt)),a instanceof Al&&(this.bt=[z,tt,rt,ot,E,bt,Math.min(b.width,ft),Math.min(b.height,yt)])}catch(ue){this.en=!1}switch(this.flip){case Ho:a.scale(-1,1),a.translate(-Math.min(b.width,ft),0);break;case xo:a.scale(1,-1),a.translate(0,-Math.min(b.height,yt));break;case vr:a.scale(-1,-1),a.translate(-Math.min(b.width,ft),-Math.min(b.height,yt))}}}}},ul.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=sl(this,!0),tt=this.Eg,ot=this.qn,rt=0,lt=0;(ot||!this.al&&tt&&tt.complete)&&(this.al=!0),tt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(rt=ot?+tt.width:tt.naturalWidth,lt=ot?+tt.height:tt.naturalHeight),isFinite(E.width)||z===jn||z===wi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:tt!==null&&(a=rt)),x=0):tt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:rt),isFinite(E.height)||z===jn||z===Ri?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:tt!==null&&(y=lt)),b=0):tt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:lt),isFinite(E.width)&&(a=E.width),isFinite(E.height)&&(y=E.height),E=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),b=Math.max(b||0,z.height),a=Math.min(E.width,a),y=Math.min(E.height,y),a=Math.max(x,a),y=Math.max(b,y),tt===null||tt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),La(this.dc,a,y),this.Ge(0,0,a,y)},ul.prototype.eh=function(a,y,x,b){Os(this,a,y,x,b)},_t.Object.defineProperties(ul.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||xe("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Qg(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new Ln),b!==null&&x&&Jd(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()||(Oa(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(ra){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Wm&&(pg(),x=gg),b=en("img"),b.hn=!0,L1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Wm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new A1),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}}}),ul.prototype.redraw=ul.prototype.redraw,ul.prototype.reloadSource=ul.prototype.hA;var Wm=0,xx=4;ul.className="Picture",gg=new ci,ul.clearCache=pg;function A1(){this.gi=null}function M1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new vu(null),tt=z.context,ot=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new F1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),tt.setTransform(ot*x,0,0,ot*x,0,0),tt.yc(),tt.drawImage(E,0,0),a.gi.push(y))}A1.className="PictureCacheArray";function F1(a,y){this.source=a,this.ratio=y}F1.className="PictureCacheInstance";function mg(){this.os=new Qn,this.mc=null}mg.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Qn,this.mc=null};function vg(a,y,x,b,E,z){a.mc=new Ga,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 Uo(ya);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 Uo(Er);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function bd(a,y,x,b,E,z,tt){var ot;ot===void 0&&(ot=!1);var rt=new Uo(ls);rt.point1X=y,rt.point1Y=x,rt.point2X=b,rt.point2Y=E,rt.endX=z,rt.endY=tt,ot&&rt.close(),a.mc.segments.add(rt)}function Hm(a,y,x,b,E){var z;z===void 0&&(z=!1);var tt=new Uo(bl);tt.point1X=y,tt.point1Y=x,tt.endX=b,tt.endY=E,z&&tt.close(),a.mc.segments.add(tt)}mg.prototype.arcTo=function(a,y,x,b,E,z,tt){z===void 0&&(z=0),tt===void 0&&(tt=!1);var ot=new Uo(ga);ot.startAngle=a,ot.sweepAngle=y,ot.centerX=x,ot.centerY=b,ot.radiusX=E,ot.radiusY=z!==0?z:E,tt&&ot.close(),this.mc.segments.add(ot)};function Px(a,y,x,b,E,z,tt,ot){var rt;rt===void 0&&(rt=!1),y=new Uo(jl,tt,ot,y,x,b,E,z),rt&&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 Bs(a,y){var x=a.toLowerCase(),b=De.Ze;b[a]=y,b[x]=a}Bs("Rectangle",function(a,y,x){a="r"+y+","+x;var b=De.Mf[a];return b!==void 0||(b=new Qn(Qn.u),b.endX=y,b.endY=x,De.Nf<De.vm&&(De.Mf[a]=b,De.Nf++)),b}),Bs("Square",function(a,y,x){a="s"+y+","+x;var b=De.Mf[a];return b!==void 0||(b=new Qn(Qn.u),b.endX=y,b.endY=x,b.defaultStretch=pi,De.Nf<De.vm&&(De.Mf[a]=b,De.Nf++)),b}),Bs("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=De.Mf[b];if(E!==void 0)return E;var z=a*De.wg;return E=new Qn().add(new Ga(a,0,!0).add(new Uo(Er,y-a,0)).add(new Uo(ls,y,a,y-z,0,y,z)).add(new Uo(Er,y,x-a)).add(new Uo(ls,y-a,x,y,x-z,y-z,x)).add(new Uo(Er,a,x)).add(new Uo(ls,0,x-a,z,x,0,x-z)).add(new Uo(Er,0,a)).add(new Uo(ls,a,0,0,z,z,0).close())),1<z&&(E.spot1=new yi(0,0,z,z),E.spot2=new yi(1,1,-z,-z)),De.Nf<De.vm&&(De.Mf[b]=E,De.Nf++),E}),Bs("Border","RoundedRectangle"),Bs("Ellipse",function(a,y,x){a="e"+y+","+x;var b=De.Mf[a];return b!==void 0||(b=new Qn(Qn.F),b.endX=y,b.endY=x,b.spot1=ju,b.spot2=zl,De.Nf<De.vm&&(De.Mf[a]=b,De.Nf++)),b}),Bs("Circle",function(a,y,x){a="c"+y+","+x;var b=De.Mf[a];return b!==void 0||(b=new Qn(Qn.F),b.endX=y,b.endY=x,b.spot1=ju,b.spot2=zl,b.defaultStretch=pi,De.Nf<De.vm&&(De.Mf[a]=b,De.Nf++)),b}),Bs("TriangleRight",function(a,y,x){return new Qn().add(new Ga(0,0).add(new Uo(Er,y,.5*x)).add(new Uo(Er,0,x).close())).pm(0,.25,.5,.75)}),Bs("TriangleDown",function(a,y,x){return new Qn().add(new Ga(0,0).add(new Uo(Er,y,0)).add(new Uo(Er,.5*y,x).close())).pm(.25,0,.75,.5)}),Bs("TriangleLeft",function(a,y,x){return new Qn().add(new Ga(y,x).add(new Uo(Er,0,.5*x)).add(new Uo(Er,y,0).close())).pm(.5,.25,1,.75)}),Bs("TriangleUp",function(a,y,x){return new Qn().add(new Ga(y,x).add(new Uo(Er,0,x)).add(new Uo(Er,.5*y,0).close())).pm(.25,.5,.75,1)}),Bs("Triangle","TriangleUp"),Bs("Diamond",function(a,y,x){return new Qn().add(new Ga(.5*y,0).add(new Uo(Er,0,.5*x)).add(new Uo(Er,.5*y,x)).add(new Uo(Er,y,.5*x).close())).pm(.25,.25,.75,.75)}),Bs("LineH",function(a,y,x){return a=new Qn(Qn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),Bs("LineV",function(a,y,x){return a=new Qn(Qn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),Bs("None","Rectangle"),Bs("BarH","Rectangle"),Bs("BarV","Rectangle"),Bs("MinusLine","LineH"),Bs("PlusLine",function(a,y,x){return new Qn().add(new Ga(0,x/2,!1).add(new Uo(Er,y,x/2)).add(new Uo(ya,y/2,0)).add(new Uo(Er,y/2,x)))}),Bs("XLine",function(a,y,x){return new Qn().add(new Ga(0,x,!1).add(new Uo(Er,y,0)).add(new Uo(ya,0,0)).add(new Uo(Er,y,x)))}),Bs("LineRight",function(a,y,x){return new Qn().add(new Ga(.25*y,0,!1).add(new Uo(Er,.75*y,.5*x)).add(new Uo(Er,.25*y,x)))}),Bs("LineDown",function(a,y,x){return new Qn().add(new Ga(0,.25*x,!1).add(new Uo(Er,.5*y,.75*x)).add(new Uo(Er,y,.25*x)))}),Bs("LineLeft",function(a,y,x){return new Qn().add(new Ga(.75*y,0,!1).add(new Uo(Er,.25*y,.5*x)).add(new Uo(Er,.75*y,x)))}),Bs("LineUp",function(a,y,x){return new Qn().add(new Ga(0,.75*x,!1).add(new Uo(Er,.5*y,.25*x)).add(new Uo(Er,y,.75*x)))}),De.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=Qr,this.ir=null,this.jr="",this.lr=lr,this.Gq="",this.Hq=Ya,this.Pq=xr,this.Kq=yo,this.Up=null,this.Cq=127,this.zr=yr,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 Mi(a,y){a===void 0||a instanceof Ka||typeof a=="string"?Hn.call(this,a):(Hn.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 Zt(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new gn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}he(Mi,Hn),Mi.prototype.cloneProtected=function(a){Hn.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},Lt=Mi.prototype,Lt.Af=function(a){Hn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Lt.toString=function(){var a=Cn(this.constructor)+"#"+Yi(this);return this.data!==null&&(a+="("+kn(this.data)+")"),a};function hl(a){a.P===null?a.P=new Tv:a.P.nc&&(a.P=a.P.copy())}Lt.th=function(){Hn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Lt.gk=function(a,y,x,b,E,z,tt){var ot=this.diagram;ot!==null&&(a===da&&y==="elements"?E instanceof Hn?Zc(E,function(rt){sy(ot.partManager,rt),Oc(ot,rt)}):Jd(ot,E):a===Ba&&y==="elements"&&(E instanceof Hn?Zc(E,function(rt){ly(ot.partManager,rt,ot)}):Qg(ot,E)),ot.cb(a,y,x,b,E,z,tt))},Lt.La=function(a){if(Hn.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 Hn&&Zc(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},Mi.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},Mi.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},Mi.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 si),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)))}}},Mi.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)}},Mi.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=rn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);pn(y)}},Mi.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof oo?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof Xo))break t;yu(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Hn.Link),x.adornedObject=y)}if(x!==null){x.type===Hn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},Mi.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 Zm(a){if(_d(a)===!1){Rv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function B1(a){if(a.G|=2097152,_d(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||T1(a,y,x),x=a.Ib;var b=gn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),gn.free(b),Rv(a,!1)}}Mi.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)},Mi.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=jo;this.locationSpot.sb()&&(z=this.locationSpot);var tt=Zt.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,tt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(tt),tt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(tt),tt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else tt.yi(y,x,b,E,z);a.rotate(this.Kb,tt.x,tt.y),Zt.free(tt)}},Mi.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},Mi.prototype.moveTo=function(a,y,x){a=Zt.allocAt(a,y),this.move(a,x),Zt.free(a)},Mi.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())},Mi.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())},Mi.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new si),y.I(a)!==null)return y.I(a);var x=Hn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Ed(a,y,x,b){b===void 0&&(b=new Zt),x=x.Mc()?jo: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}Mi.prototype.mi=function(a){return a===void 0&&(a=new gn),a.assign(this.actualBounds)},Mi.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function D1(a){var y=Zt.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof fo?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 Uc(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 tt=a.shadowBlur;return a=a.shadowOffset,z+=tt,y+=tt,b-=tt/2,E-=tt/2,0<a.x?z+=a.x:(b+=a.x,z-=a.x),0<a.y?y+=a.y:(E+=a.y,y-=a.y),x.h(b-1,E-1,z+2,y+2),x}Mi.prototype.arrange=function(){if(Ks(this)===!1)B1(this);else{Lh(this,!1);var a=this.Ib,y=gn.alloc();y.assign(a);var x=tc(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()||De.B(y.width,a.width)&&De.B(y.height,a.height)||0<=this.vw&&this.C(16),gn.free(y),Rv(this,!1)}},Lt=Mi.prototype,Lt.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=gn.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),gn.free(E)}!(this.G&65536)&&a.D(y)||R1(this,b,x),x.N(),!a.w()&&!y.w()||Qo(a,y)||(this instanceof ii&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Lt.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&N1(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 Zt(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),_d(this)===!1&&Ks(this)===!1&&(Zm(this),B1(this)),!0};function N1(a,y,x,b,E){y===null||a instanceof Xo||(y=y.animationManager,y.zb&&Ku(y,a,new Zt(b,E),x))}Lt.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;_d(this)||Ks(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)}Zm(this)},Lt.Av=function(){this.G&=-2097153,Zm(this)};function T1(a,y,x){var b=D1(a),E=a.diagram,z=x.w(),tt=y.w();z&&tt?a.G&2097152?O1(a,y,x,E,b):I1(a,y,x,E,b):z?O1(a,y,x,E,b):tt&&I1(a,y,x,E,b),a.G|=2097152,Zt.free(b),a.Uk()}function O1(a,y,x,b,E){var z=y.x,tt=y.y;y.h(x.x-E.x,x.y-E.y),b!==null&&(x=b.animationManager,(b=x.defaultAnimation.isAnimating)||!x.zb||a instanceof Xo||Ku(x,a,new Zt(z,tt),y),b||y.x===z&&y.y===tt||a.g("position",new Zt(z,tt),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){zv(a,!1),a instanceof ii&&yd(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?tc(a)?(Cr(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Lt.si=function(){return!0},Lt.Zc=function(){return!0},Lt.ph=function(){return!1},Lt.Dd=function(){return!0};function Iv(a,y,x,b){y.constructor===a.constructor||W1||(W1=!0,qn('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),qn(" Old class: "+Cn(a.constructor)+", new class: "+Cn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,tt=a.isHighlighted,ot=!0,rt=!0,lt=!1;a instanceof ii&&(ot=a.isTreeLeaf,rt=a.isTreeExpanded,lt=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=b,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,b=!0,y!==null&&(b=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=E,a.G=z?a.G|4096:a.G&-4097,a.G=tt?a.G|524288:a.G&-524289,a instanceof ii&&(a.U=ot?a.U|4:a.U&-5,a.U=rt?a.U|1:a.U&-2,a.U=lt?a.U|2:a.U&-3),E!==null&&a.La(),E=a.layerName,E!==x&&(a.Jg=x,a.layerName=E),y!==null&&(y.skipsUndoManager=b),a.Zc()&&a.C(64)}Mi.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},Mi.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},Mi.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},Mi.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},Mi.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},Mi.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},Mi.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},Mi.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},Mi.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 _d(a){return(a.G&32768)!==0}function Rv(a,y){a.G=y?a.G|32768:a.G&-32769}function zv(a,y){a.G=y?a.G|65536:a.G&-65537}function tc(a){return(a.G&131072)!==0}Lt=Mi.prototype,Lt.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Km(a,y){a.G=y?a.G|1048576:a.G&-1048577}Lt.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Lt.N=function(){var a=this.diagram;a!==null&&!Ks(this)&&!_d(this)&&this.isVisible()&&this.Ib.w()&&a.N(Uc(this,this.Ib))},Lt.v=function(){Hn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof ii&&this.labeledLink!==null&&Zs(this.labeledLink),a.$b(!0))},Lt.Vo=function(a){a||(a=this.Ah,a!==null&&Kv(a,this))},Lt.Wo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},Lt.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Lt.oz=function(){return jv(this,this)};function jv(a,y){var x=y.containingGroup;return x!==null?1+jv(a,x):y instanceof ii&&(y=y.labeledLink,y!==null)?jv(a,y):0}Lt.sz=function(){return z1(this,this)};function z1(a,y){var x=y.containingGroup;return x!==null||y instanceof ii&&(x=y.labeledLink,x!==null)?z1(a,x):y}Lt.Td=function(a){return a instanceof oo?Wv(this,this,a):!1};function Wv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Wv(a,b,x)?y instanceof ii&&(y=y.labeledLink,y!==null)?Wv(a,y,x):!1:!0}Lt.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof oo&&Km(y,!0),y instanceof ii){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 ii&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof oo&&Km(y,!1),y instanceof ii&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},Mi.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof ii&&this.isLinkLabel)},Mi.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 ii&&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 j1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function ec(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof Xo)){if(a.add(y),y instanceof ii){if(x&&y instanceof oo)for(var tt=y.memberParts;tt.next();)ec(a,tt.value,x,b,E,z);if(E!==!1)for(tt=y.linksConnected;tt.next();){var ot=tt.value;if(!a.contains(ot)){var rt=ot.fromNode,lt=ot.toNode;rt=rt===null||a.contains(rt),lt=lt===null||a.contains(lt),(E?rt&<:rt||lt)&&ec(a,ot,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)ec(a,y.value,x,b-1,E,z)}else if(y instanceof Un)for(y=y.labelNodes;y.next();)ec(a,y.value,x,b,E,z)}}_t.Object.defineProperties(Mi.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Ui: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(Ba,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(da,"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&&(hl(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&&gu(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 Xo?this.type!==Hn.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:xr},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),hl(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:yo},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),hl(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&&(hl(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Ya},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),hl(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,Ks(this)===!1&&(Zm(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)),N1(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 Xo)){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 Xo?this instanceof Xo&&(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&&(yu(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&&(yu(x),x=x.copy(),x===null||x instanceof Un||(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&&(hl(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&&(hl(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&&(hl(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 Un?(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&&(hl(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&&(hl(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&&(hl(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:Qr},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),hl(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&&(hl(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&&(hl(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:lr},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),hl(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&&xe("Cannot make a Group a member of itself: "+this.toString()),xe("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 oo&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Kv(a,this):this instanceof oo&&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 oo){for(x=new Ln,ec(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof ii)for(b=b.linksConnected;b.next();)yg(b.value)}if(this instanceof ii){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&&gu(y,-1,a))}}else xe("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&&(hl(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof ii&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(hl(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&&(hl(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:yr},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),hl(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&&(hl(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&&(hl(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),Mi.prototype.invalidateLayout=Mi.prototype.C,Mi.prototype.findCommonContainingGroup=Mi.prototype.px,Mi.prototype.isMemberOf=Mi.prototype.Td,Mi.prototype.findTopLevelPart=Mi.prototype.sz,Mi.prototype.findSubGraphLevel=Mi.prototype.oz,Mi.prototype.ensureBounds=Mi.prototype.Va,Mi.prototype.getDocumentBounds=Mi.prototype.mi,Mi.prototype.findObject=Mi.prototype.fb,Mi.prototype.moveTo=Mi.prototype.moveTo,Mi.prototype.invalidateAdornments=Mi.prototype.Wb,Mi.prototype.clearAdornments=Mi.prototype.Ej,Mi.prototype.removeAdornment=Mi.prototype.Jf,Mi.prototype.addAdornment=Mi.prototype.bh,Mi.prototype.findAdornment=Mi.prototype.Pj,Mi.prototype.updateTargetBindings=Mi.prototype.La;var W1=!1;Mi.className="Part",Mi.LayoutNone=0,Mi.LayoutAdded=1,Mi.LayoutRemoved=2,Mi.LayoutShown=4,Mi.LayoutHidden=8,Mi.LayoutNodeSized=16,Mi.LayoutGroupLayout=32,Mi.LayoutNodeReplaced=64,Mi.LayoutStandard=127,Mi.LayoutAll=16777215;function Xo(a,y){a===void 0||a instanceof Ka||typeof a=="string"?Mi.call(this,a):(Mi.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)}he(Xo,Mi),Xo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},Xo.prototype.updateRelationshipsFromData=function(){},Xo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Un&&y instanceof fo){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 fo&&(E.ua=a)}}},Xo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ks(a))},Xo.prototype.Zc=function(){return!1},Xo.prototype.gk=function(a,y,x,b,E,z,tt){if(a===da&&y==="elements"){if(E instanceof Us)this.$a===null&&(this.$a=E);else if(E instanceof Hn){var ot=E.Nl(function(rt){return rt instanceof Us});ot instanceof Us&&this.$a===null&&(this.$a=ot)}}else a===Ba&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Hn&&this.$a.rg(b)&&(this.$a=null));Mi.prototype.gk.call(this,a,y,x,b,E,z,tt)},Xo.prototype.updateAdornments=function(){},Xo.prototype.Lj=function(){},_t.Object.defineProperties(Xo.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}}}),Xo.className="Adornment";function Hv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Tl,this.er=Ym,this.Kr=this.ij=this.Nq=this.Mq=null}Hv.prototype.copy=function(){var a=new Hv;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 ii(a,y){a===void 0||a instanceof Ka||typeof a=="string"?Mi.call(this,a):(Mi.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new xn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}he(ii,Mi),ii.prototype.cloneProtected=function(a){Mi.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Lt=ii.prototype,Lt.Af=function(a){Mi.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Ld(a){a.Ba===null?a.Ba=new Hv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Lt.th=function(){Mi.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function H1(a,y){y!==null&&(a.af===null&&(a.af=new Ln),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}Lt.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=G1(this,a,y,x),a!==null&&a.Sl()},Lt.gk=function(a,y,x,b,E,z,tt){a===da&&y==="elements"?this.wc=null:a===Ba&&y==="elements"&&(this.wc=null),Mi.prototype.gk.call(this,a,y,x,b,E,z,tt)},Lt.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(Ml(x.fromPort),Ml(x.toPort),x.bb())}};function Z1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(Ml(x.fromPort),Ml(x.toPort),x.bb())}}function Ml(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||Ml(y.port)}}Lt.si=function(){return!0},ii.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},ii.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},ii.prototype.isVisible=function(){if(!Mi.prototype.isVisible.call(this))return!1;var a=!0,y=xd,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===xd){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Ta){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},ii.prototype.Zb=function(a){Mi.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)}},ii.prototype.qx=function(){var a=new Ln,y=new Ln;return K1(this,this,a,y),y.iterator};function K1(a,y,x,b){if(y!==null&&!x.has(y)){x.add(y);var E=!0,z=a.diagram;z!==null&&(E=z.isTreePathToChildren),y.linksConnected.each(function(tt){tt.isTreeLink?(E?tt.fromNode===y:tt.toNode===y)&&K1(a,E?tt.toNode:tt.fromNode,x,b):b.add(tt)})}}ii.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new bi(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},Lt=ii.prototype,Lt.Mo=function(a){a===void 0&&(a=null);var y=new bi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},Lt.Sd=function(a){a===void 0&&(a=null);var y=new bi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},Lt.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Ii(x):Ui},Lt.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Ii(x):Ui},Lt.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new Ii(x):Ui},Lt.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new bi(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},Lt.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new bi(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){Ml(x);var b=a.jb.contains(y);if(b||a.jb.add(y),!b||y.fromNode===y.toNode){var E=a.linkConnected;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,y,x),tt!==null&&(tt.aa=z)}}!b&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(b=!0,a=a.diagram,a!==null&&(b=a.isTreePathToChildren),E=b?y:x,z=b?x:y,E.ci||(E.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(b?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Um(a,y,x){Ml(x);var b=a.jb.remove(y),E=null;if(b||y.toNode===y.fromNode){var z=a.linkDisconnected;if(E=a.diagram,z!==null){var tt=!0;E!==null&&(tt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=tt)}}b&&y.isTreeLink&&(x=!0,E!==null&&(x=E.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,E!==null&&E.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):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}}}ii.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Lt=ii.prototype,Lt.Vo=function(a){Mi.prototype.Vo.call(this,a),a||(yp(this),a=this.Yk,a!==null&&_1(a,this))},Lt.Wo=function(a){Mi.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Lt.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,Mi.prototype.Lj.call(this)},Lt.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 si: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=rn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);pn(x)}}}Lt.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},Lt.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}},Lt.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Km(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;)Km(y,!1),y=y.pg();return x},Lt.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},Lt.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof ii)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},Lt.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Ln;return a(this,y),y},Lt.uz=function(){return Y1(this,this)};function Y1(a,y){return y=y.pg(),y===null?0:1+Y1(a,y)}Lt.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new bi(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},Lt.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 xn,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 xn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Ii(x):Ui},Lt.wz=function(a){a===void 0&&(a=1/0);var y=new Ln;return ec(y,this,!1,a,!0),y},ii.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ln;x.add(this),X1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===xd),y.Ue=!1}};function X1(a,y,x,b,E,z,tt){if(1<b)for(var ot=x?a.Mo():a.Sd();ot.next();){var rt=ot.value;rt.isTreeLink&&(rt=rt.To(a),rt===null||rt===a||y.contains(rt)||(y.add(rt),X1(rt,y,x,b-1,E,z,tt)))}else J1(a,y,x,E,z,tt)}function J1(a,y,x,b,E,z){for(var tt=E===a?!0:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),rt={};ot.next();){var lt=ot.value;if(lt.isTreeLink&&(lt=lt.To(a),lt!==null&<!==a)){var ut=y.contains(lt);if(ut||y.add(lt),tt){var ft=x?lt.Oo():lt.Po();rt.uv=a,ft.all(function(yt){return function(Pt){return Pt===yt.uv||!Pt.isTreeExpanded}}(rt))&&b.Aj(lt,E),lt.oh(),lt.Zb(!1)}lt.isTreeExpanded&&(lt.wasTreeExpanded=lt.isTreeExpanded,ut||J1(lt,y,x,b,E,z))}rt={uv:rt.uv}}a.isTreeExpanded=!1}ii.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ln;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===xd),y.Ue=!1}};function Q1(a,y,x,b,E,z,tt){for(var ot=z===a?!1:a.isTreeExpanded,rt=x?a.Mo():a.Sd(),lt={};rt.next();){var ut=rt.value;if(ut.isTreeLink&&(ot||ut.fd||ut.bb(),ut=ut.To(a),ut!==null&&ut!==a&&!y.contains(ut))){if(y.add(ut),!ot){ut.Zb(!0),ut.oh();var ft=x?ut.Oo():ut.Po();lt.vv=a,ft.all(function(yt){return function(Pt){return Pt===yt.vv||!Pt.isTreeExpanded}}(lt))&&E.Cj(ut,z)}(2<b||ut.wasTreeExpanded)&&(ut.wasTreeExpanded=!1,Q1(ut,y,x,b-1,E,z,tt))}lt={vv:lt.vv}}a.isTreeExpanded=!0}_t.Object.defineProperties(ii.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Ym},set:function(a){var y=this.portSpreading;y!==a&&(Ld(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&&yd(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Tl},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Ld(this),this.Ba.yp=a;var x=this.diagram;x!==null&&yd(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&&(Ld(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&&(Ld(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&&(Ld(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,b=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&b!==null&&!x.undoManager.isUndoingRedoing){var E=y.data,z=x.model;if(E!==null&&z.ri()){var tt=z.wa(b);tt!==void 0&&z.Qx(E,tt)}}this.containingGroup=null}this.Yk=a,a!==null&&(_1(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),Zs(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&&(Ld(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))}}}),ii.prototype.expandTree=ii.prototype.expandTree,ii.prototype.collapseTree=ii.prototype.collapseTree,ii.prototype.findTreeParts=ii.prototype.wz,ii.prototype.findTreeChildrenNodes=ii.prototype.Ou,ii.prototype.findTreeChildrenLinks=ii.prototype.Qo,ii.prototype.findTreeLevel=ii.prototype.uz,ii.prototype.findTreeParentChain=ii.prototype.vz,ii.prototype.findTreeParentNode=ii.prototype.pg,ii.prototype.findTreeParentLink=ii.prototype.kh,ii.prototype.findCommonTreeParent=ii.prototype.gz,ii.prototype.findTreeRoot=ii.prototype.xz,ii.prototype.isInTreeOf=ii.prototype.Nz,ii.prototype.findPort=ii.prototype.ns,ii.prototype.findLinksTo=ii.prototype.kz,ii.prototype.findLinksBetween=ii.prototype.jz,ii.prototype.findNodesInto=ii.prototype.Oo,ii.prototype.findNodesOutOf=ii.prototype.Po,ii.prototype.findNodesConnected=ii.prototype.Mu,ii.prototype.findLinksInto=ii.prototype.Sd,ii.prototype.findLinksOutOf=ii.prototype.Mo,ii.prototype.findExternalTreeLinksConnected=ii.prototype.qx,ii.prototype.invalidateConnectedLinks=ii.prototype.Bd,ii.prototype.invalidateLinkBundle=ii.prototype.Lz;var bx=new Be(ii,"SpreadingNone",10),Ym=new Be(ii,"SpreadingEvenly",11),Zv=new Be(ii,"SpreadingPacked",12);ii.className="Node",ii.SpreadingNone=bx,ii.SpreadingEvenly=Ym,ii.SpreadingPacked=Zv;function oo(a,y){a===void 0||a instanceof Ka||typeof a=="string"?ii.call(this,a):(ii.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Ln,this.$a=null,this.Sc=new Hr,this.Sc.group=this,this.gl=new Ln,this.tb=this.$p=null,y&&Object.assign(this,y)}he(oo,ii),oo.prototype.cloneProtected=function(a){ii.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Us});y instanceof Us?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())},Lt=oo.prototype,Lt.Af=function(a){ii.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 ii)x.Bd(y);else if(x instanceof Un)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Lt.gk=function(a,y,x,b,E,z,tt){if(a===da&&y==="elements"){if(E instanceof Us)this.$a===null?this.$a=E:this.$a!==E&&xe("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Hn){var ot=E.Nl(function(rt){return rt instanceof Us});ot instanceof Us&&(this.$a===null?this.$a=ot:this.$a!==ot&&xe("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Ba&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Hn&&this.$a.rg(b)&&(this.$a=null));ii.prototype.gk.call(this,a,y,x,b,E,z,tt)},Lt.Xl=function(a,y){ii.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Hn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Hn&&(a=a.Pb()),this.tb===null&&(this.tb=new gn),a.mi(this.tb),a instanceof fo&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Lt.eh=function(a,y,x,b){this.nf=this.$a,ii.prototype.eh.call(this,a,y,x,b)},Lt.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Un||y.Va()}),ii.prototype.Va.call(this)},Lt.si=function(){if(!ii.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof ii){if(y.isVisible()&&Ks(y))return!1}else if(y instanceof Un&&y.isVisible()&&Ks(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Kv(a,y){if(a.Gn.add(y)){y instanceof oo&&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 Un&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Vv(a,y){if(a.Gn.remove(y)){y instanceof oo&&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 Un&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Lt.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)}ii.prototype.Lj.call(this)},oo.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=un(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},oo.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=un(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},oo.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))},Lt=oo.prototype,Lt.Bd=function(a){var y=(this.U&65536)!==0;if(ii.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()?(Ml(x.fromPort),Ml(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(Ml(x.fromPort),Ml(x.toPort),x.bb()))}}},Lt.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new Ln,b=y.iterator;b.next();){var E=b.value;if(E instanceof ii)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Lt.iz=function(){var a=this.Rj();a.add(this);for(var y=new Ln,x=a.iterator;x.next();){var b=x.value;if(b instanceof ii)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},Lt.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ln;return a(this,y),y},Lt.Rj=function(){var a=new Ln;return ec(a,this,!0,0,!0),a.remove(this),a},Lt.Zb=function(a){ii.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},oo.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 oo&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,q1(z,y,x,b)),z instanceof ii)z.Bd(y),x.Aj(z,b);else if(z instanceof Un)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}oo.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 oo&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,$1(z,y,x,b)),z instanceof ii)z.Bd(y),x.Cj(z,b);else if(z instanceof Un)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}oo.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=Zt.alloc(),ii.prototype.move.call(this,a,y),a=new Ln,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Un&&(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 ii&&E.isLinkLabel)){var tt=E.position,ot=E.location;tt.w()?(z.x=tt.x+b,z.y=tt.y+x,E.position=z):ot.w()&&(z.x=ot.x+b,z.y=ot.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof Un&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(tt=E.position,z.x=tt.x+b,z.y=tt.y+x,z.w()?E.move(z):E.bb(),Yv(E)&&E.bb());Zt.free(z)}},_t.Object.defineProperties(oo.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&&xe("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&&(Ld(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&&(Ld(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&&(Ld(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&&(Ld(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)}}}),oo.prototype.expandSubGraph=oo.prototype.expandSubGraph,oo.prototype.collapseSubGraph=oo.prototype.collapseSubGraph,oo.prototype.findSubGraphParts=oo.prototype.Rj,oo.prototype.findContainingGroupChain=oo.prototype.hz,oo.prototype.findExternalNodesConnected=oo.prototype.iz,oo.prototype.findExternalLinksConnected=oo.prototype.Lu,oo.prototype.ensureBounds=oo.prototype.Va,oo.className="Group";function Us(a){be.call(this),this.yb=bs,this.ko=new gn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}he(Us,be),Us.prototype.cloneProtected=function(a){be.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Us.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Br(0,0,y.width,y.height,a.x,a.y)},Us.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof oo||a instanceof Xo)||xe("Placeholder is not inside a Group or Adornment."),a instanceof oo){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(La(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=Zt.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Zt.free(x))}else{y=this.dc,x=this.yb,b=x.left+x.right;var E=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var tt=0;z instanceof fo&&(tt=z.strokeWidth);var ot=z.Df(),rt=z.naturalBounds,lt=(rt.width+tt)*ot;tt=(rt.height+tt)*ot,a.type!==Hn.Link&&(ot=z.ga(a.category==="Selection"?Ya:a.locationSpot,Zt.alloc()),a.location=ot,Zt.free(ot)),isNaN(lt)||isNaN(tt)?(a=z.ga(Ya,Zt.alloc()),lt=gn.allocAt(a.x,a.y,0,0),lt.Ye(z.ga(Ds,a)),lt.Ye(z.ga(Ol,a)),lt.Ye(z.ga(el,a)),La(y,lt.width+b||0,lt.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Zt.free(a),gn.free(lt)):(La(y,lt+b||0,tt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Us.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Us.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof oo&&!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=gn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof oo&&!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)),gn.free(x),b&&y instanceof oo&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Us.prototype.computeMemberBounds=function(a){if(!(this.part instanceof oo))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,tt=y.memberParts;tt.next();){var ot=tt.value;if(ot.isVisible()){if(ot instanceof Un&&(!y.computesBoundsIncludingLinks||Yl(ot)||ot.fromNode===y||ot.toNode===y))continue;ot=ot.actualBounds,ot.left<x&&(x=ot.left),ot.top<b&&(b=ot.top),ot.right>E&&(E=ot.right),ot.bottom>z&&(z=ot.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},_t.Object.defineProperties(Us.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Bi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Us.className="Placeholder";function Un(a){Mi.call(this,Hn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ys,this.Om=0,this.Qm=Ys,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new xn().freeze(),this.Tg=this.Mg=null,this.ml=new gn,this.ua=new Qn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Zt,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}he(Un,Mi),Un.prototype.cloneProtected=function(a){Mi.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())},Lt=Un.prototype,Lt.Af=function(a){Mi.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&&Ml(y),a=a.toPort,a!==null&&Ml(a)},Lt.qb=function(a){a.classType===Un?(a.value&2)===2?this.routing=a:a===Jl||a===Md||a===xg?this.curve=a:a===wp||a===_m||a===t0?this.adjusting=a:a!==Qv&&a!==Ys&&xe("Unknown Link enum value for a Link property: "+a):Mi.prototype.qb.call(this,a)},Lt.Xc=function(){this.ba===null&&(this.ba=new sp)},Lt.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ks(a)||_d(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ks(a)||_d(a)))},Lt.zv=function(){return!1},Lt.Av=function(){},Lt.Zc=function(){return!1},Un.prototype.computeAngle=function(a,y,x){return Un.computeAngle(y,x)},Un.computeAngle=function(a,y){switch(a){default:case Ys: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 e0:a=De.bp(y),90<a&&270>a&&(a-=180);break;case Ep:a=De.bp(y+90),90<a&&270>a&&(a-=180);break;case Lp:a=De.bp(y-90),90<a&&270>a&&(a-=180);break;case n0:if(a=De.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return De.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&&Kv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,tt=a.diagram;tt!==null&&(z=tt.aa,tt.aa=!0),E(a,x,y),tt!==null&&(tt.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=b}Lt=Un.prototype,Lt.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&Mi.prototype.oh.call(this)},Lt.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Lt.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function _1(a,y){a.wd===null&&(a.wd=new Ln),a.wd.add(y),a.v()}Lt.Vo=function(a){if(Mi.prototype.Vo.call(this,a),Yc(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)}},Lt.Wo=function(a){if(Mi.prototype.Wo.call(this,a),Yc(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)}},Lt.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))},Un.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Un.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?Mi.prototype.move.call(this,a,!1):(a=Zt.allocAt(x.x+b,x.y+E),Mi.prototype.move.call(this,a,!1),Zt.free(a)),Ad(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},Un.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},Un.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},Un.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(_i),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()===Jl))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()===Jl){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return De.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),De.ax(b.x,b.y,E.x,E.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var tt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=tt[z],!(b+E>x/2));)b+=E,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-b)):a.h(y.x,y.y+(x/2-b)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-b),y.y):a.h(y.x+(x/2-b),y.y):(x=(x/2-b)/E,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},Un.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()===Jl))return this.ua.wx(.5);if(this.computeCurve()===Jl&&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),De.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)},Lt=Un.prototype,Lt.i=function(a){return this.Nb.s[a]},Lt.dd=function(a,y){this.Nb.cd(a,y)},Lt.L=function(a,y,x){this.Nb.cd(a,new Zt(y,x))},Lt.Kz=function(a,y){this.Nb.Gb(a,y)},Lt.m=function(a,y,x){this.Nb.Gb(a,new Zt(y,x))},Lt.ne=function(a){this.Nb.add(a)},Lt.yf=function(a,y){this.Nb.add(new Zt(a,y))},Lt.pv=function(a){this.Nb.mb(a)},Lt.Fj=function(){this.Nb.clear()};function Ad(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 xn,z=a.Nb.iterator;z.next();){var tt=z.value;E.add(new Zt(tt.x+y,tt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,tt=a.diagram,isNaN(y)||isNaN(x)||tt!==null&&tt.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),Zs(a)),b?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),tt!==null&&tt.animationManager.zb&&Dr(tt.animationManager,a,E),a.g("points",z,E)}}Lt.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Lt.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,b=1/0,E=a.s,z=E.length,tt=0;tt<z;tt++){var ot=E[tt];x=Math.min(ot.x,x),b=Math.min(ot.y,b)}ot=tt=1/0;for(var rt=y.s,lt=rt.length,ut=0;ut<lt;ut++){var ft=rt[ut];tt=Math.min(ft.x,tt),ot=Math.min(ft.y,ot),ft.freeze()}if(y.freeze(),lt===z){for(z=0;z<lt;z++)if(ut=E[z],ft=rt[z],ut.x-x!==ft.x-tt||ut.y-b!==ft.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Dr(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},Lt.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(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))}Lt.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())}},Lt.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()}}},Un.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Ef||(Ef=new ii,Ef.desiredSize=ar,Ef.Va()),this.defaultFromPoint&&(Ef.location=this.defaultFromPoint,Ef.Va(),y=a=Ef)):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?(Lf||(Lf=new ii,Lf.desiredSize=ar,Lf.Va()),this.defaultToPoint&&(Lf.location=this.defaultToPoint,Lf.Va(),E=b=Lf)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,tt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var ot=Sg(tt),rt=Sg(x),lt=y===E&&y!==null,ut=this.isOrthogonal,ft=this.curve===Jl;this.Wf=lt&&!ut?ft=!0:!1;var yt=this.computeAdjusting()===Ys||lt;if(!ut&&!lt&&ot&&rt){if(ot=!1,!yt&&3<=z&&(yt=this.getLinkPoint(a,y,tt,!0,!1,b,E),rt=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,yt,z-1,rt))&&(yt=this.getLinkPoint(a,y,tt,!0,!1,b,E),rt=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,yt,z-1,rt)),!ot)if(this.Fj(),ft){z=this.getLinkPoint(a,y,tt,!0,!1,b,E),yt=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=yt.x-z.x,rt=yt.y-z.y,lt=this.computeCurviness(),ft=ut=0;var Pt=z.x+ot/3,bt=z.y+rt/3,Nt=Pt,Qt=bt;De.B(rt,0)?Qt=0<ot?Qt-lt:Qt+lt:(ut=-ot/rt,ft=Math.sqrt(lt*lt/(ut*ut+1)),0>lt&&(ft=-ft),Nt=(0>rt?-1:1)*ft+Pt,Qt=ut*(Nt-Pt)+bt),Pt=z.x+2*ot/3,bt=z.y+2*rt/3;var Wt=Pt,ae=bt;De.B(rt,0)?ae=0<ot?ae-lt:ae+lt:(Wt=(0>rt?-1:1)*ft+Pt,ae=ut*(Wt-Pt)+bt),this.Fj(),this.ne(z),this.yf(Nt,Qt),this.yf(Wt,ae),this.ne(yt),this.dd(0,this.getLinkPoint(a,y,tt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,yt=E,b=this.getLinkPoint(a,y,tt,!0,!1,z,yt),E=this.getLinkPoint(z,yt,x,!1,!1,a,y),this.hasCurviness()?(yt=E.x-b.x,x=E.y-b.y,tt=this.computeCurviness(),a=b.x+yt/2,y=b.y+x/2,z=a,ot=y,De.B(x,0)?ot=0<yt?ot-tt:ot+tt:(yt=-yt/x,z=Math.sqrt(tt*tt/(yt*yt+1)),0>tt&&(z=-z),z=(0>x?-1:1)*z+a,ot=yt*(z-a)+y),this.ne(b),this.yf(z,ot),this.ne(E)):(this.ne(b),this.ne(E),ot=gn.alloc(),y.mi(ot),rt=ot.ca(E),yt.mi(ot),lt=ot.ca(b),(rt||lt)&&(tt=y.ga(Qm(tt),new Zt),this.dd(0,this.getLinkPointFromPoint(a,y,tt,E,!0,tt)),x=yt.ga(Qm(x),new Zt),this.dd(1,this.getLinkPointFromPoint(z,yt,x,b,!1,x))),gn.free(ot))}else{ft=this.isAvoiding,yt&&(ut&&ft||lt)&&this.Fj();var ue=lt?this.computeCurviness():0;ft=this.getLinkPoint(a,y,tt,!0,ut,b,E),Pt=Nt=bt=0,(ut||!ot||lt)&&(Qt=this.computeEndSegmentLength(a,y,tt,!0),Pt=this.getLinkDirection(a,y,ft,tt,!0,ut,b,E),lt&&(ot||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(Pt-=ut?90:30,0>ue&&(Pt-=180)),0>Pt?Pt+=360:360<=Pt&&(Pt-=360),lt&&(Qt+=Math.abs(ue)*(ut?1:2)),Pt===0?bt=Qt:Pt===90?Nt=Qt:Pt===180?bt=-Qt:Pt===270?Nt=-Qt:(bt=Qt*Math.cos(Pt*Math.PI/180),Nt=Qt*Math.sin(Pt*Math.PI/180)),tt.Mc()&<&&(Qt=y.ga(jo,Zt.alloc()),Wt=Zt.allocAt(Qt.x+1e3*bt,Qt.y+1e3*Nt),this.getLinkPointFromPoint(a,y,Qt,Wt,!0,ft),Zt.free(Qt),Zt.free(Wt))),Qt=this.getLinkPoint(b,E,x,!1,ut,a,y);var ce=ae=Wt=0;if(ut||!rt||lt){var Pe=this.computeEndSegmentLength(b,E,x,!1);ce=this.getLinkDirection(b,E,Qt,x,!1,ut,a,y),lt&&(rt||tt.D(x)||!ut&&tt.x+x.x===1&&tt.y+x.y===1)&&(ce+=ut?0:30,0>ue&&(ce+=180)),0>ce?ce+=360:360<=ce&&(ce-=360),lt&&(Pe+=Math.abs(ue)*(ut?1:2)),ce===0?Wt=Pe:ce===90?ae=Pe:ce===180?Wt=-Pe:ce===270?ae=-Pe:(Wt=Pe*Math.cos(ce*Math.PI/180),ae=Pe*Math.sin(ce*Math.PI/180)),x.Mc()&<&&(x=E.ga(jo,Zt.alloc()),tt=Zt.allocAt(x.x+1e3*Wt,x.y+1e3*ae),this.getLinkPointFromPoint(b,E,x,tt,!1,Qt),Zt.free(x),Zt.free(tt))}x=ft,(ut||!ot||lt)&&(x=new Zt(ft.x+bt,ft.y+Nt)),tt=Qt,(ut||!rt||lt)&&(tt=new Zt(Qt.x+Wt,Qt.y+ae)),!yt&&!ut&&ot&&3<z&&this.adjustPoints(0,ft,z-2,tt)?this.dd(z-1,Qt):!yt&&!ut&&rt&&3<z&&this.adjustPoints(1,x,z-1,Qt)?this.dd(0,ft):!yt&&(ut?6<=z:4<z)&&this.adjustPoints(1,x,z-2,tt)?(this.dd(0,ft),this.dd(z-1,Qt)):(this.Fj(),this.ne(ft),(ut||!ot||lt)&&this.ne(x),ut&&this.addOrthoPoints(x,Pt,tt,ce,a,b),(ut||!rt||lt)&&this.ne(tt),this.ne(Qt))}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}Un.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Zt),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(E=a.findVisibleNode(),E!==null&&E!==a&&(y=E.port)),a=null,E=y.panel,E===null||E.se()||(E=E.panel),E===null){E=b.x,b=b.y;var tt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),tt=a.m22*E;var ot=-a.m12*E,rt=-a.m21*E,lt=a.m11*E,ut=E*(a.m21*a.dy-a.m22*a.dx),ft=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*tt+b.y*rt+ut,b=b.x*ot+b.y*lt+ft,tt=x.x*tt+x.y*rt+ut,x=x.x*ot+x.y*lt+ft}return y.Sj(E,b,tt,x,z),a!==null&&z.transform(a),z};function Jm(a,y){var x=y.Zn;return x===null&&(x=new Af,x.port=y,x.node=y.part,y.Zn=x),sS(x,a)}Un.prototype.getLinkPoint=function(a,y,x,b,E,z,tt,ot){if(ot===void 0&&(ot=new Zt),x.sb()&&!Sg(x))return y.ga(x,ot),ot;if(x.$c()){var rt=Jm(this,y);if(rt!==null){if(ot.assign(rt.Zo),E&&this.routing===eS){var lt=Jm(this,tt);if(lt!==null&&rt.Gl<lt.Gl){rt=Zt.alloc(),lt=Zt.alloc();var ut=new gn(y.ga(Ya,rt),y.ga(Ds,lt)),ft=this.computeSpot(!b,tt);a=this.getLinkPoint(z,tt,ft,!b,E,a,y,lt),(x.Hf(Ru)||x.Hf(Ws))&&a.y>=ut.y&&a.y<=ut.y+ut.height?ot.y=a.y:(x.Hf(bu)||x.Hf(cl))&&a.x>=ut.x&&a.x<=ut.x+ut.width&&(ot.x=a.x),Zt.free(rt),Zt.free(lt)}}return ot}}return x=y.ga(Qm(x),Zt.alloc()),this.pointsCount>(E?6:2)?(tt=b?this.i(1):this.i(this.pointsCount-2),E&&(tt=Uv(x,tt.copy()))):(rt=this.computeSpot(!b,tt),z=Zt.alloc(),tt=tt.ga(Qm(rt),z),E&&(tt=Uv(x,tt)),Zt.free(z)),this.getLinkPointFromPoint(a,y,x,tt,b,ot),Zt.free(x),ot},Un.prototype.getLinkDirection=function(a,y,x,b,E,z,tt,ot){t:if(b.sb())var rt=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()&&(rt=Jm(this,y),rt!==null))switch(rt.Nc){case 1:rt=270;break t;case 2:rt=180;break t;default:case 4:rt=0;break t;case 8:rt=90;break t}rt=y.ga(jo,Zt.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Uv(rt,ot.copy()):x):(x=Zt.alloc(),ot=ot.ga(jo,x),Zt.free(x)),x=Math.abs(ot.x-rt.x)>Math.abs(ot.y-rt.y)?ot.x>=rt.x?0:180:ot.y>=rt.y?90:270,Zt.free(rt),rt=x}return b.Mc()&&tt.Td(a)&&(rt+=180,360<=rt&&(rt-=360)),Sg(b)||(a=y.li(),a===0)||(45<=a&&135>a?rt+=90:135<=a&&225>a?rt+=180:225<=a&&315>a&&(rt+=270),360<=rt&&(rt-=360)),rt},Un.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)},Un.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=jo:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===lr?la:y)):(a=y||this.toPort,a===null?a=jo:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===lr?la:y)),a};function Sg(a){return a===la||a.x===.5&&a.y===.5}function Qm(a){return a.x===.5&&a.y===.5?a:jo}Un.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ys&&4<this.pointsCount?this.computeMidPoint(new Zt):(a=y.Zn,a=a!==null?sS(a,this):null,a!==null?a.Zo:y.ga(jo))},Un.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},Un.prototype.Cf=function(a,y,x,b,E,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var tt=z;if(z===void 0&&(tt=mo.alloc(),tt.reset()),tt.multiply(this.transform),this.fh(a,tt))return mv(this,y,x,E),z===void 0&&mo.free(tt),!0;if(this.Yc(a,tt)){var ot=!1;if(!this.isAtomic)for(var rt=this.O.s,lt=rt.length;lt--;){var ut=rt[lt];if(ut.visible||ut===this.locationObject){var ft=ut.actualBounds,yt=this.naturalBounds;if(!(ft.x>yt.width||ft.y>yt.height||0>ft.x+ft.width||0>ft.y+ft.height)){if(ft=mo.alloc(),ft.set(tt),ut instanceof Hn)ot=ut.Cf(a,y,x,b,E,ft);else if(this.path===ut){if(ut instanceof fo)if(ot=a,yt=b,ut.pickable===!1)ot=!1;else if(ft.multiply(ut.transform),yt)t:{var Pt=ot,bt=ft;if(ut.fh(Pt,bt))ot=!0;else{if(bt===void 0&&(bt=ut.transform,Pt.Re(ut.actualBounds))){ot=!0;break t}ot=Pt.left,yt=Pt.right;var Nt=Pt.top;Pt=Pt.bottom;var Qt=Zt.alloc(),Wt=Zt.alloc(),ae=Zt.alloc(),ue=mo.alloc();ue.set(bt),ue.bv(ut.transform),ue.Vj(),Wt.x=yt,Wt.y=Nt,Wt.transform(ue),Qt.x=ot,Qt.y=Nt,Qt.transform(ue),bt=!1,Vc(ut,Qt,Wt,ae)?bt=!0:(Qt.x=yt,Qt.y=Pt,Qt.transform(ue),Vc(ut,Qt,Wt,ae)?bt=!0:(Wt.x=ot,Wt.y=Pt,Wt.transform(ue),Vc(ut,Qt,Wt,ae)?bt=!0:(Qt.x=ot,Qt.y=Nt,Qt.transform(ue),Vc(ut,Qt,Wt,ae)&&(bt=!0)))),mo.free(ue),Zt.free(Qt),Zt.free(Wt),Zt.free(ae),ot=bt}}else ot=ut.fh(ot,ft)}else ot=_a(ut,a,b,ft);ot&&(yt=ut,y!==null&&(yt=y(ut)),yt&&(x===null||x(yt))&&E.add(yt)),mo.free(ft)}}}return z===void 0&&mo.free(tt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&mo.free(tt),!1},Un.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?Jl:this.curve},Un.prototype.computeCorner=function(){if(this.curve===Jl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Un.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},Un.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,tt=isNaN(E.width)?30:E.width*b.scale+z.left+z.right;E=isNaN(E.height)?14:E.height*b.scale+z.top+z.bottom,b=b.segmentOrientation,b===Pp||b===e0||b===qv?a=Math.max(a,E):b===bp||b===Lp||b===Cp||b===Ep?a=Math.max(a,tt):(y=y.ga(jo).ab(x.ga(jo))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*tt)+Math.abs(Math.cos(y)*E)+1)),this.curve===Jl&&(a*=1.333)}}return a},Un.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ys&&x.bb()}},Un.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=nS;var y=this.Sf;if(y!==null){for(var x=rn(),b=0,E=y.links,z=0;z<E.length;z++){var tt=E[z].computeSpacing();x.push(tt),b+=tt}for(b=-b/2,z=0;z<E.length;z++){if(E[z]===this){a=b+x[z]/2;break}b+=x[z]}y.Ds===this.fromNode&&(a=-a),pn(x)}}return a},Un.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Un.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Un.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===_m)return!1;E===t0&&(E=wp)}switch(E){case _m:var z=this.i(a),tt=this.i(x);if(!z.Xa(y)||!tt.Xa(b)){E=z.x,z=z.y;var ot=tt.x-E,rt=tt.y-z,lt=Math.sqrt(ot*ot+rt*rt);if(!De.$(lt,0)){if(De.$(ot,0))var ut=0>rt?-Math.PI/2:Math.PI/2;else ut=Math.atan(rt/Math.abs(ot)),0>ot&&(ut=Math.PI-ut);tt=y.x;var ft=y.y;ot=b.x-tt;var yt=b.y-ft;for(rt=Math.sqrt(ot*ot+yt*yt),De.$(ot,0)?yt=0>yt?-Math.PI/2:Math.PI/2:(yt=Math.atan(yt/Math.abs(ot)),0>ot&&(yt=Math.PI-yt)),lt=rt/lt,ut=yt-ut,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ot=y.x-E,rt=y.y-z,y=Math.sqrt(ot*ot+rt*rt),De.$(y,0)||(De.$(ot,0)?rt=0>rt?-Math.PI/2:Math.PI/2:(rt=Math.atan(rt/Math.abs(ot)),0>ot&&(rt=Math.PI-rt)),ot=rt+ut,y*=lt,this.L(a,tt+y*Math.cos(ot),ft+y*Math.sin(ot)));this.dd(x,b)}}return!0;case t0:if(z=this.i(a),ft=this.i(x),!z.Xa(y)||!ft.Xa(b)){E=z.x,z=z.y,tt=ft.x,ft=ft.y,lt=(tt-E)*(tt-E)+(ft-z)*(ft-z),ot=y.x,ut=y.y,rt=b.x,yt=b.y;var Pt=1;if(rt-ot!==0){var bt=(yt-ut)/(rt-ot);Pt=Math.sqrt(1+1/(bt*bt))}else bt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Nt=y.x,Qt=y.y,Wt=.5;lt!==0&&(Wt=((E-Nt)*(E-tt)+(z-Qt)*(z-ft))/lt);var ae=E+Wt*(tt-E),ue=z+Wt*(ft-z);y=Math.sqrt((Nt-ae)*(Nt-ae)+(Qt-ue)*(Qt-ue)),Qt<bt*(Nt-ae)+ue&&(y=-y),0<bt&&(y=-y),Nt=ot+Wt*(rt-ot),Wt=ut+Wt*(yt-ut),bt!==0?(y=Nt+y/Pt,this.L(a,y,Wt-(y-Nt)/bt)):this.L(a,Nt,Wt+y)}this.dd(x,b)}return!0;case wp:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),tt=this.i(a+2),ot=z.x,ut=z.y,ft=ot,lt=ut,De.B(E.y,z.y)?De.B(z.x,tt.x)?ut=y.y:De.B(z.y,tt.y)&&(ot=y.x):De.B(E.x,z.x)&&(De.B(z.y,tt.y)?ot=y.x:De.B(z.x,tt.x)&&(ut=y.y)),this.L(a+1,ot,ut),E=this.i(x),z=this.i(x-1),tt=this.i(x-2),ot=z.x,ut=z.y,rt=ot,yt=ut,De.B(E.y,z.y)?De.B(z.x,tt.x)?ut=b.y:De.B(z.y,tt.y)&&(ot=b.x):De.B(E.x,z.x)&&(De.B(z.y,tt.y)?ot=b.x:De.B(z.x,tt.x)&&(ut=b.y)),this.L(x-1,ot,ut),Yv(this))){this.L(a+1,ft,lt),this.L(x-1,rt,yt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Un.prototype.addOrthoPoints=function(a,y,x,b,E,z){0>y?y+=360:360<=y&&(y-=360),0>b?b+=360:360<=b&&(b-=360);var tt=b;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,b=315<=b||45>b?0:45<=b&&135>b?90:135<=b&&225>b?180:270;var ot=E.actualBounds.copy(),rt=z.actualBounds.copy();if(ot.w()&&rt.w()){ot.Bc(Ap,Ap),rt.Bc(Ap,Ap),ot.Ye(a),rt.Ye(x);var lt=Zt.alloc(),ut=Zt.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&rt.right>a.x||b===90&&x.y>a.y&&rt.right>a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===180?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(lt.x=a.x<rt.left?this.computeMidOrthoPosition(a.x,a.y,rt.left,x.y,!1):a.x<rt.right&&(b===270&&a.y<rt.top||b===90&&a.y>rt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.right,ut.x=lt.x,ut.y=x.y):b===0&&a.x<rt.left&&a.y>rt.top&&a.y<rt.bottom&&(lt.x=a.x,lt.y=a.y<x.y?Math.min(x.y,rt.top):Math.max(x.y,rt.bottom),ut.y=lt.y)):(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===180&&(rt.ca(a)||ot.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?lt.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,rt.bottom),!0):x.y>a.y&&(b===180||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>ot.top&<.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=rt.right&&a.x>=x.x?(b===90||b===270)&&(lt.h(Math.max((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?ot.top:Math.min(ot.top,rt.top)):Math.max(x.y,b===0?ot.bottom:Math.max(ot.bottom,rt.bottom)),ut.x=x.x,ut.y=lt.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&rt.left<a.x||b===90&&x.y>a.y&&rt.left<a.x?(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),b===0?(lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ut.x=lt.x,ut.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(lt.x=a.x>rt.right?this.computeMidOrthoPosition(a.x,a.y,rt.right,x.y,!1):a.x>rt.left&&(b===270&&a.y<rt.top||b===90&&a.y>rt.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):rt.left,ut.x=lt.x,ut.y=x.y):b===180&&a.x>rt.right&&a.y>rt.top&&a.y<rt.bottom&&(lt.x=a.x,lt.y=a.y<x.y?Math.min(x.y,rt.top):Math.max(x.y,rt.bottom),ut.y=lt.y)):(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===0&&(rt.ca(a)||ot.ca(x))?lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?lt.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,rt.bottom),!0):x.y>a.y&&(b===0||b===270)&&(lt.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,rt.top),!0)),ut.x=x.x,ut.y=lt.y),lt.y>ot.top&<.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=rt.left&&a.x<=x.x?(b===90||b===270)&&(lt.h(Math.min((a.x+x.x)/2,a.x),a.y),ut.h(lt.x,x.y)):(lt.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?ot.top:Math.min(ot.top,rt.top)):Math.max(x.y,b===180?ot.bottom:Math.max(ot.bottom,rt.bottom)),ut.x=x.x,ut.y=lt.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&rt.bottom>a.y||b===0&&x.x>a.x&&rt.bottom>a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===270?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(lt.y=a.y<rt.top?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.top,!0):a.y<rt.bottom&&(b===180&&a.x<rt.left||b===0&&a.x>rt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.bottom,ut.x=x.x,ut.y=lt.y):b===90&&a.y<rt.top&&a.x>rt.left&&a.x<rt.right&&(lt.x=a.x<x.x?Math.min(x.x,rt.left):Math.max(x.x,rt.right),lt.y=a.y,ut.x=lt.x)):(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===270&&(rt.ca(a)||ot.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?lt.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,rt.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(lt.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>ot.left&<.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=rt.bottom&&a.y>=x.y?(b===0||b===180)&&(lt.h(a.x,Math.max((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?ot.left:Math.min(ot.left,rt.left)):Math.max(x.x,b===90?ot.right:Math.max(ot.right,rt.right)),ut.x=lt.x,ut.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&rt.top<a.y||b===0&&x.x>a.x&&rt.top<a.y?(lt.h(a.x,x.y),ut.h((a.x+x.x)/2,x.y),b===90?(lt.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ut.x=x.x,ut.y=lt.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(lt.y=a.y>rt.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,rt.bottom,!0):a.y>rt.top&&(b===180&&a.x<rt.left||b===0&&a.x>rt.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):rt.top,ut.x=x.x,ut.y=lt.y):b===270&&a.y>rt.bottom&&a.x>rt.left&&a.x<rt.right&&(lt.x=a.x<x.x?Math.min(x.x,rt.left):Math.max(x.x,rt.right),lt.y=a.y,ut.x=lt.x)):(lt.h(x.x,a.y),ut.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===90&&(rt.ca(a)||ot.ca(x))?lt.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?lt.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,rt.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(lt.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,rt.left),x.y,!1)),ut.x=lt.x,ut.y=x.y),lt.x>ot.left&<.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=rt.top&&a.y<=x.y?(b===0||b===180)&&(lt.h(a.x,Math.min((a.y+x.y)/2,a.y)),ut.h(x.x,lt.y)):(lt.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?ot.left:Math.min(ot.left,rt.left)):Math.max(x.x,b===270?ot.right:Math.max(ot.right,rt.right)),ut.x=lt.x,ut.y=x.y)));var ft=x;if(this.isAvoiding){var yt=this.diagram;if(yt===null||E===z||this.layer.isTemporary||!_f(yt)||ot.ca(ft)&&!z.Td(E)||rt.ca(a)&&!E.Td(z))y=!1;else{var Pt=tg(yt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Pt.Yj(Math.min(a.x,lt.x),Math.min(a.y,lt.y),Math.abs(a.x-lt.x),Math.abs(a.y-lt.y))&&Pt.Yj(Math.min(lt.x,ut.x),Math.min(lt.y,ut.y),Math.abs(lt.x-ut.x),Math.abs(lt.y-ut.y))&&Pt.Yj(Math.min(ut.x,ft.x),Math.min(ut.y,ft.y),Math.abs(ut.x-ft.x),Math.abs(ut.y-ft.y)))y=!1;else{E=a,z=ft;var bt=x=null;if(yt.isVirtualized){yt=Pt.bounds.copy(),yt.Bc(-Pt.Ho,-Pt.Go);var Nt=Zt.alloc();wg(Pt,a.x,a.y)||(De.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,a.x,a.y,lt.x,lt.y,Nt)?(x=a=Nt.copy(),y=Nt.ab(lt)):De.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,lt.x,lt.y,ut.x,ut.y,Nt)?(x=a=Nt.copy(),y=Nt.ab(ut)):De.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,ut.x,ut.y,ft.x,ft.y,Nt)&&(x=a=Nt.copy(),y=Nt.ab(ft))),wg(Pt,ft.x,ft.y)||(De.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,ft.x,ft.y,ut.x,ut.y,Nt)?(bt=ft=Nt.copy(),b=ut.ab(Nt)):De.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,ut.x,ut.y,lt.x,lt.y,Nt)?(bt=ft=Nt.copy(),b=lt.ab(Nt)):De.Ff(yt.x,yt.y,yt.x+yt.width,yt.y+yt.height,lt.x,lt.y,a.x,a.y,Nt)&&(bt=ft=Nt.copy(),b=a.ab(Nt))),Zt.free(Nt)}ot=ot.copy().ed(rt),ot.Bc(Pt.Ho*Pt.Os,Pt.Go*Pt.Os),rS(Pt,a,y,ft,b,ot,!0),rt=Bh(Pt,ft.x,ft.y),!Pt.abort&&rt>=Pg&&(oS(Pt),ot.Bc(Pt.Ho*Pt.Hx,Pt.Go*Pt.Ix),rS(Pt,a,y,ft,b,ot,!1),rt=Bh(Pt,ft.x,ft.y)),!Pt.abort&&rt<Pg&&Bh(Pt,ft.x,ft.y)!==Fd?(Xv(this,Pt,ft.x,ft.y,b,!0,tt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=ft.y):(ot.x=ft.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(tt=this.i(3),y===0||y===180?De.B(ot.x,tt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,tt.y)):De.B(ot.y,tt.y)?(Math.abs(a.y-ot.y)<=Pt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,tt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(De.B(ot.y,tt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,tt.x,ot)):De.B(ot.x,tt.x)?(Math.abs(a.x-ot.x)<=Pt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,tt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),tt=this.i(2),a.x!==tt.x&&a.y!==tt.y?y===0||y===180?this.m(2,a.x,tt.y):this.m(2,tt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),bt!==null&&(b===0||b===180?this.yf(z.x,bt.y):this.yf(bt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(lt.copy()),this.ne(ut.copy())),Zt.free(lt),Zt.free(ut)}},Un.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 Yv(a){if(a.diagram===null||!a.isAvoiding||!_f(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=tg(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 Xv(a,y,x,b,E,z,tt){var ot=y.Ho,rt=y.Go,lt=Bh(y,x,b),ut=x,ft=b;for(E===0?ut+=ot:E===90?ft+=rt:E===180?ut-=ot:ft-=rt,E!==tt&<>Xc&&Bh(y,ut,ft)!==lt-1&&(Bh(y,x-ot,b)===lt-1?(E=180,ut=x-ot,ft=b):Bh(y,x+ot,b)===lt-1?(E=0,ut=x+ot,ft=b):Bh(y,x,b-rt)===lt-1?(E=270,ut=x,ft=b-rt):Bh(y,x,b+rt)===lt-1&&(E=90,ut=x,ft=b+rt));lt>Xc&&Bh(y,ut,ft)===lt-1;)x=ut,b=ft,E===0?ut+=ot:E===90?ft+=rt:E===180?ut-=ot:ft-=rt,--lt;z?lt>Xc&&(E===180||E===0?x=Math.floor(x/ot)*ot+ot/2:(E===90||E===270)&&(b=Math.floor(b/rt)*rt+rt/2)):(x=Math.floor(x/ot)*ot+ot/2,b=Math.floor(b/rt)*rt+rt/2),lt>Xc&&(z=E,tt=x,ut=b,E===0?(z=90,ut+=rt):E===90?(z=180,tt-=ot):E===180?(z=270,ut-=rt):E===270&&(z=0,tt+=ot),Bh(y,tt,ut)===lt-1?Xv(a,y,tt,ut,z,!1,z):(tt=x,ut=b,E===0?(z=270,ut-=rt):E===90?(z=0,tt+=ot):E===180?(z=90,ut+=rt):E===270&&(z=180,tt-=ot),Bh(y,tt,ut)===lt-1&&Xv(a,y,tt,ut,z,!1,z))),a.yf(x,b)}Un.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=kr(y,a,x.x,x.y,b.x,b.y),z=0,tt=1;tt<this.pointsCount-1;tt++){x=this.i(tt+1);var ot=kr(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=tt,E=ot)}return z},Un.prototype.qc=function(){this.lk=!1,this.v()},Un.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 fo&&(E.ua=this.ua)}}},Un.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Yc(this)&&b.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(b.animationManager.isAnimating||b.currentTool!==b.toolManager)&&(x=!0);var E=this.i(0).copy(),z=E.copy();b=this.Nb.s;var tt=this.computeCurve();if(tt===Jl&&3<=y&&!De.$(this.smoothness,0))if(y===3){var ot=this.i(1);b=Math.min(E.x,ot.x);var rt=Math.min(E.y,ot.y);ot=this.i(2),b=Math.min(b,ot.x),rt=Math.min(rt,ot.y)}else{if(this.isOrthogonal)for(rt=0;rt<y;rt++)ot=b[rt],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),rt=this.i(b),z.x=Math.min(rt.x,z.x),z.y=Math.min(rt.y,z.y);b=z.x,rt=z.y}else{for(rt=0;rt<y;rt++)ot=b[rt],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,rt=z.y}if(b-=this.su.x,rt-=this.su.y,E.x-=b,E.y-=rt,y!==2||Yc(this)){if(a.type=Qn.o,ot=k1(a),this.computeShortLength(!0)!==0&&(E=Cf(this,E,!0,z)),vg(ot,E.x,E.y,!1),tt===Jl&&3<=y&&!De.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-rt,E=this.i(2).copy(),E.x-=b,E.y-=rt,this.computeShortLength(!1)!==0&&(E=Cf(this,E,!1,z)),bd(ot,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Zt.allocAt(b,rt),x=Zt.alloc(),x.assign(this.i(1)),z=Zt.allocAt(b,rt),E=Zt.allocAt(b,rt),tt=this.i(0);for(var lt,ut=this.smoothness/3,ft=1;ft<this.pointsCount-1;ft++){lt=this.i(ft);var yt=tt,Pt=lt,bt=this.i(Jv(this,lt,ft,!1));if((!De.$(yt.x,Pt.x)||!De.$(Pt.x,bt.x))&&(!De.$(yt.y,Pt.y)||!De.$(Pt.y,bt.y))){var Nt=ut;isNaN(Nt)&&(Nt=this.smoothness/3);var Qt=yt.x;yt=yt.y;var Wt=Pt.x;Pt=Pt.y;var ae=bt.x;bt=bt.y;var ue=Nt*qm(Qt,yt,Wt,Pt);Nt*=qm(Wt,Pt,ae,bt),De.$(yt,Pt)&&De.$(Wt,ae)&&(Wt>Qt?bt>Pt?(z.x=Wt-ue,z.y=Pt-ue,E.x=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),E.assign(z),tt=this.computeCorner(),ft=1,lt=0;ft<y;){if(ft=Jv(this,z,ft,1<ft),ut=this.i(ft),ft>=y-1){if(!z.D(ut))this.computeShortLength(!1)!==0&&(ut=Cf(this,ut.copy(),!1,Co)),bf(this,ot,-b,-rt,z,ut,x);else if(lt===0)for(ft=1;ft<y;)E.assign(z),ut=this.i(ft++),bf(this,ot,-b,-rt,z,ut,x),z.assign(ut);break}if(lt=Jv(this,ut,ft+1,ft<y-3),ft=-b,Qt=-rt,yt=ut,Wt=this.i(lt),Nt=x,De.B(z.y,yt.y)&&De.B(yt.x,Wt.x))if(bt=Math.min(tt,Math.abs(yt.x-E.x)/2),bt=ue=Math.min(bt,Math.abs(Wt.y-yt.y)/2),De.B(bt,0))bf(this,ot,ft,Qt,z,yt,Nt),z.assign(yt);else{var ce=yt.x,Pe=yt.y;Pt=ce,ae=Pe,yt.x>z.x?ce=yt.x-bt:ce=yt.x+bt,Wt.y>yt.y?ae=yt.y+ue:ae=yt.y-ue,Wt=Zt.allocAt(ce,Pe),bf(this,ot,ft,Qt,z,Wt,Nt),Zt.free(Wt),Hm(ot,yt.x+ft,yt.y+Qt,Pt+ft,ae+Qt),z.h(Pt,ae)}else De.B(z.x,yt.x)&&De.B(yt.y,Wt.y)?(bt=Math.min(tt,Math.abs(yt.y-E.y)/2),bt=ue=Math.min(bt,Math.abs(Wt.x-yt.x)/2),De.B(ue,0)?(bf(this,ot,ft,Qt,z,yt,Nt),z.assign(yt)):(ce=yt.x,Pe=yt.y,Pt=ce,ae=Pe,yt.y>z.y?Pe=yt.y-bt:Pe=yt.y+bt,Wt.x>yt.x?Pt=yt.x+ue:Pt=yt.x-ue,Wt=Zt.allocAt(ce,Pe),bf(this,ot,ft,Qt,z,Wt,Nt),Zt.free(Wt),Hm(ot,yt.x+ft,yt.y+Qt,Pt+ft,ae+Qt),z.h(Pt,ae))):(bf(this,ot,ft,Qt,z,yt,Nt),z.assign(yt));E.assign(ut),ft=lt}Zt.free(z)}Gm=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=rt,this.computeShortLength(!0)!==0&&(E=Cf(this,E,!0,z)),this.computeShortLength(!1)!==0&&(ot=Cf(this,ot,!1,z)),a.type=Qn.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.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),De.$(a,0)?y:De.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Cf(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;De.$(y.x,z.x)&&De.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!De.$(y.x,z.x)&&!De.$(y.y,z.y))return x-1;for(var tt=z;De.$(y.x,z.x)&&De.$(z.x,tt.x)&&(!b||(y.y>=z.y?z.y>=tt.y:z.y<=tt.y))||De.$(y.y,z.y)&&De.$(z.y,tt.y)&&(!b||(y.x>=z.x?z.x>=tt.x:z.x<=tt.x));){if(x>=E)return E-1;tt=a.i(x++)}return x-2}Un.prototype.computeJumpLength=function(){return 10};function bf(a,y,x,b,E,z,tt){if(!tt&&Yc(a)){tt=a.computeJumpLength();var ot=tt/2,rt=[],lt=0;if(a.isVisible()&&(lt=Ex(a,E,z,rt)),0<lt){if(De.B(E.y,z.y))if(E.x<z.x)for(var ut=0;ut<lt;){var ft=Math.max(E.x,Math.min(rt[ut++]-ot,z.x-tt));y.lineTo(ft+x,z.y+b);for(var yt=ft+x,Pt=Math.min(ft+tt,z.x);ut<lt&&(ft=rt[ut],ft<Pt+tt);)ut++,Pt=Math.min(ft+ot,z.x);ft=z.y-tt+b,Pt+=x;var bt=z.y+b;a.curve===Md?vg(y,Pt,bt,!1):bd(y,yt,ft,Pt,ft,Pt,bt)}else for(--lt;0<=lt;){for(ut=Math.min(E.x,Math.max(rt[lt--]+ot,z.x+tt)),y.lineTo(ut+x,z.y+b),yt=ut+x,ft=Math.max(ut-tt,z.x);0<=lt&&(ut=rt[lt],ut>ft-tt);)lt--,ft=Math.max(ut-ot,z.x);ut=z.y-tt+b,ft+=x,Pt=z.y+b,a.curve===Md?vg(y,ft,Pt,!1):bd(y,yt,ut,ft,ut,ft,Pt)}else if(De.B(E.x,z.x))if(E.y<z.y)for(ut=0;ut<lt;){for(ft=Math.max(E.y,Math.min(rt[ut++]-ot,z.y-tt)),y.lineTo(z.x+x,ft+b),yt=ft+b,ft=Math.min(ft+tt,z.y);ut<lt&&(Pt=rt[ut],Pt<ft+tt);)ut++,ft=Math.min(Pt+ot,z.y);Pt=z.x-tt+x,bt=z.x+x,ft+=b,a.curve===Md?vg(y,bt,ft,!1):bd(y,Pt,yt,Pt,ft,bt,ft)}else for(--lt;0<=lt;){for(ut=Math.min(E.y,Math.max(rt[lt--]+ot,z.y+tt)),y.lineTo(z.x+x,ut+b),yt=ut+b,ut=Math.max(ut-tt,z.y);0<=lt&&(ft=rt[lt],ft>ut-tt);)lt--,ut=Math.max(ft-ot,z.y);ft=z.x-tt+x,Pt=z.x+x,ut+=b,a.curve===Md?vg(y,Pt,ut,!1):bd(y,ft,yt,ft,ut,Pt,ut)}}}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 tt=z.length,ot=0;ot<tt;ot++){var rt=z[ot];if(rt instanceof Un){if(rt===a)return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length;if(rt.isVisible()&&Yc(rt)){var lt=rt.routeBounds;lt.w()&&a.routeBounds.Yc(lt)&&!a.usesSamePort(rt)&&(lt=rt.path,lt!==null&<.Ed()&&Lx(y,x,b,rt))}}}}}return 0<b.length&&b.sort(function(ut,ft){return ut-ft}),b.length}function Lx(a,y,x,b){for(var E=De.B(a.y,y.y),z=b.pointsCount,tt=b.i(0),ot=Zt.alloc(),rt=1;rt<z;rt++){var lt=b.i(rt);if(rt<z-1){var ut=b.i(rt+1);if(tt.y===lt.y&<.y===ut.y){if(lt.x>tt.x&&ut.x>=lt.x||lt.x<tt.x&&ut.x<=lt.x)continue}else if(tt.x===lt.x&<.x===ut.x&&(lt.y>tt.y&&ut.y>=lt.y||lt.y<tt.y&&ut.y<=lt.y))continue}t:{ut=a.x;var ft=a.y,yt=y.x,Pt=y.y,bt=tt.x;tt=tt.y;var Nt=lt.x,Qt=lt.y;if(De.B(ut,yt)){if(!De.B(ft,Pt)&&De.B(tt,Qt)&&Math.min(ft,Pt)<tt&&Math.max(ft,Pt)>tt&&Math.min(bt,Nt)<ut&&Math.max(bt,Nt)>ut&&!De.B(bt,Nt)){ot.x=ut,ot.y=tt,ut=!0;break t}}else if(De.B(ft,Pt)&&De.B(bt,Nt)&&Math.min(ut,yt)<bt&&Math.max(ut,yt)>bt&&Math.min(tt,Qt)<ft&&Math.max(tt,Qt)>ft&&!De.B(tt,Qt)){ot.x=bt,ot.y=ft,ut=!0;break t}ot.x=0,ot.y=0,ut=!1}ut&&(E?x.push(ot.x):x.push(ot.y)),tt=lt}Zt.free(ot)}function Yc(a){return a=a.curve,a===xg||a===Md}function $m(a,y){(y||Yc(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()))}Un.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var b=!1;for(x=x.layers;x.next();){var E=x.value;if(E.visible){if(E===y){b=!0;var z=!1;E=E.Pa.s;for(var tt=E.length,ot=0;ot<tt;ot++){var rt=E[ot];rt instanceof Un&&(rt===this?z=!0:z&&tS(this,rt,a))}}else if(b)for(z=E.Pa.s,E=z.length,tt=0;tt<E;tt++)ot=z[tt],ot instanceof Un&&tS(this,ot,a)}}}}};function tS(a,y,x){if(y!==null&&y.lk&&y.fd&&Yc(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}Un.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},Un.prototype.isVisible=function(){if(!Mi.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},Un.prototype.Zb=function(a){if(Mi.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)},Un.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,tt=y.jb.s,ot=tt.length,rt=0;rt<ot;rt++){var lt=tt[rt];(lt.ef===y&<.ff===b&<.uf===x&<.vf===E||lt.ef===x&<.ff===E&<.uf===y&<.vf===b)&&(z===null?z=lt:(a===null&&(a=[],a.push(z)),a.push(lt)))}if(a!==null){for(z=G1(y,x,b,E),z===null&&(z=new i0(y,b,x,E),H1(y,z),H1(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&&(_e(y.links,a),y.Sl()))}Un.prototype.ph=function(){return!0},_t.Object.defineProperties(Un.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 tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}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&&Ml(x),xp(this),this.ff=a;var b=this.fromPort;b!==null&&Ml(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),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 tt=!0;b!==null&&(tt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=tt)}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&&Ml(x),xp(this),this.vf=a;var b=this.toPort;b!==null&&Ml(b);var E=this.diagram;if(E!==null){var z=this.data,tt=E.model;z!==null&&tt.ri()&&tt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(tt=!0,E!==null&&(tt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=tt))),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:lr},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&&Ml(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&&Wn(a,">= 0",Un,"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:lr},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&&Ml(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&&Wn(a,">= 0",Un,"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?Ui: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 fo?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()===Jl&&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),De.Dl(E.x,E.y,b.x,b.y,b.x,b.y,z.x,z.y,.5,a)}else for(z=3;z<b;z+=3){var tt=this.i(z-2);z+3>=b&&(z=b-1);var ot=this.i(z-1),rt=this.i(z);De.Dl(E.x,E.y,tt.x,tt.y,ot.x,ot.y,rt.x,rt.y,.5,a),y=Math.min(rt.x,y),x=Math.min(rt.y,x),E=rt}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 Zt)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(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);De.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):De.$(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 xn,b=0;b<a.length/2;b++)E=new Zt(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(!We(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new xn,b=0;b<a.length;b++)E=a[b],x.add(new Zt(E.x,E.y).freeze())}}else if(a instanceof xn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else xe("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Dr(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===Md||y===xg||a===Md||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)}}}),Un.prototype.invalidateOtherJumpOvers=Un.prototype.Xo,Un.prototype.findClosestSegment=Un.prototype.ez,Un.prototype.updateRoute=Un.prototype.vg,Un.prototype.invalidateRoute=Un.prototype.bb,Un.prototype.rollbackRoute=Un.prototype.rv,Un.prototype.commitRoute=Un.prototype.zf,Un.prototype.startRoute=Un.prototype.uh,Un.prototype.clearPoints=Un.prototype.Fj,Un.prototype.removePoint=Un.prototype.pv,Un.prototype.addPointAt=Un.prototype.yf,Un.prototype.addPoint=Un.prototype.ne,Un.prototype.insertPointAt=Un.prototype.m,Un.prototype.insertPoint=Un.prototype.Kz,Un.prototype.setPointAt=Un.prototype.L,Un.prototype.setPoint=Un.prototype.dd,Un.prototype.getPoint=Un.prototype.i,Un.prototype.getOtherPort=Un.prototype.Cz,Un.prototype.getOtherNode=Un.prototype.To;var Ef=null,Lf=null,Qv=new Be(Un,"Normal",1),Ax=new Be(Un,"Orthogonal",2),Mx=new Be(Un,"AvoidsNodes",6),eS=new Be(Un,"AvoidsNodesStraight",7),Ys=new Be(Un,"None",0),Jl=new Be(Un,"Bezier",9),Md=new Be(Un,"JumpGap",10),xg=new Be(Un,"JumpOver",11),wp=new Be(Un,"End",17),_m=new Be(Un,"Scale",18),t0=new Be(Un,"Stretch",19),Pp=new Be(Un,"OrientAlong",21),Cp=new Be(Un,"OrientPlus90",22),bp=new Be(Un,"OrientMinus90",23),qv=new Be(Un,"OrientOpposite",24),e0=new Be(Un,"OrientUpright",25),Ep=new Be(Un,"OrientPlus90Upright",26),Lp=new Be(Un,"OrientMinus90Upright",27),n0=new Be(Un,"OrientUpright45",28),nS=16,iS=14,Ap=8;Un.className="Link",Un.Normal=Qv,Un.Orthogonal=Ax,Un.AvoidsNodes=Mx,Un.AvoidsNodesStraight=eS,Un.None=Ys,Un.Bezier=Jl,Un.JumpGap=Md,Un.JumpOver=xg,Un.End=wp,Un.Scale=_m,Un.Stretch=t0,Un.OrientAlong=Pp,Un.OrientPlus90=Cp,Un.OrientMinus90=bp,Un.OrientOpposite=qv,Un.OrientUpright=e0,Un.OrientPlus90Upright=Ep,Un.OrientMinus90Upright=Lp,Un.OrientUpright45=n0,Un.EndSegmentStep=8,Un.CurvinessStart=nS,Un.SpacingMin=iS,Un.OrthoShortCut=Ap;function i0(a,y,x,b){po(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 Mp(a){po(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}Mp.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 Bh(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]>=Xc&&(x[b]=$v)}Mp.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]===Fd)return!1}return!0};function Dh(a,y,x,b,E,z,tt,ot,rt){if(!(y<z||y>tt||x<ot||x>rt)){var lt=y|0,ut=x|0,ft=a.ac[lt][ut];if(ft>=Xc&&ft<Pg)for(E?ut+=b:lt+=b,ft+=1;z<=lt&<<=tt&&ot<=ut&&ut<=rt&&!(ft>=a.ac[lt][ut]);)a.ac[lt][ut]=ft,ft+=1,E?ut+=b:lt+=b;if(lt=E?ut:lt,E)if(0<b)for(x+=b;x<lt;x+=b)Dh(a,y,x,1,!E,z,tt,ot,rt),Dh(a,y,x,-1,!E,z,tt,ot,rt);else for(x+=b;x>lt;x+=b)Dh(a,y,x,1,!E,z,tt,ot,rt),Dh(a,y,x,-1,!E,z,tt,ot,rt);else if(0<b)for(y+=b;y<lt;y+=b)Dh(a,y,x,1,!E,z,tt,ot,rt),Dh(a,y,x,-1,!E,z,tt,ot,rt);else for(y+=b;y>lt;y+=b)Dh(a,y,x,1,!E,z,tt,ot,rt),Dh(a,y,x,-1,!E,z,tt,ot,rt)}}function o0(a,y,x,b,E,z,tt,ot,rt){y|=0,x|=0;var lt=Fd,ut=Xc;for(a.ac[y][x]=ut;lt===Fd&&y>z&&y<tt&&x>ot&&x<rt;)ut+=1,a.ac[y][x]=ut,E?x+=b:y+=b,lt=a.ac[y][x]}function r0(a,y,x,b,E,z,tt,ot,rt){y|=0,x|=0;var lt=Fd,ut=Pg;for(a.ac[y][x]=ut;lt===Fd&&y>z&&y<tt&&x>ot&&x<rt;)a.ac[y][x]=ut,E?x+=b:y+=b,lt=a.ac[y][x]}function rS(a,y,x,b,E,z,tt){if(a.ac!==null){a.abort=!1;var ot=y.x,rt=y.y;if(wg(a,ot,rt)){ot-=a.Nd,ot/=a.rc,rt-=a.Od,rt/=a.sc;var lt=b.x,ut=b.y;if(wg(a,lt,ut))if(lt-=a.Nd,lt/=a.rc,ut-=a.Od,ut/=a.sc,1>=Math.abs(ot-lt)&&1>=Math.abs(rt-ut))a.abort=!0;else{var ft=z.x;b=z.y,y=z.x+z.width;var yt=z.y+z.height;ft-=a.Nd,ft/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,yt-=a.Od,yt/=a.sc,z=Math.max(0,Math.min(a.di,ft|0)),y=Math.min(a.di,Math.max(0,y|0)),ft=Math.max(0,Math.min(a.ei,b|0)),yt=Math.min(a.ei,Math.max(0,yt|0)),b=a.ac,ot|=0,rt|=0,lt|=0,ut|=0;var Pt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][rt]===Fd?(o0(a,ot,rt,Pt,x,z,y,ft,yt),o0(a,ot,rt,1,!x,z,y,ft,yt),o0(a,ot,rt,-1,!x,z,y,ft,yt)):o0(a,ot,rt,Pt,x,ot,rt,ot,rt),b[lt][ut]===Fd?(r0(a,lt,ut,E===0||E===90?1:-1,E===90||E===270,z,y,ft,yt),r0(a,lt,ut,1,!(E===90||E===270),z,y,ft,yt),r0(a,lt,ut,-1,!(E===90||E===270),z,y,ft,yt)):r0(a,lt,ut,Pt,x,lt,ut,lt,ut),x=rn(),tt&&aS(a,lt,ut,E,ot,rt,x))for((x[0]!==lt||x[1]!==ut)&&(x.unshift(ut),x.unshift(lt)),(x[x.length-2]!==ot||x[x.length-1]!==rt)&&(x.push(ot),x.push(rt)),a=Xc,E=x[x.length-2],tt=x[x.length-1],b[E][tt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],tt=x[z+3],y=x[z],lt=x[z+1];y>E?E++:y<E?E--:lt>tt?tt++:lt<tt&&tt--,b[E][tt]=a++,E!==y||tt!==lt;);else Dh(a,ot,rt,1,!1,z,y,ft,yt),Dh(a,ot,rt,-1,!1,z,y,ft,yt),Dh(a,ot,rt,1,!0,z,y,ft,yt),Dh(a,ot,rt,-1,!0,z,y,ft,yt);pn(x)}}}}function aS(a,y,x,b,E,z,tt){for(var ot=a.ac,rt=y,lt=x;;){if(rt===E&<===z)return!0;var ut=rt,ft=lt;if(b===0)if(ut<E)ut++;else break;else if(b===90)if(ft<z)ft++;else break;else if(b===180)if(ut>E)ut--;else break;else if(ft>z)ft--;else break;var yt=ot[ut][ft];if(yt===0||yt===_v)break;rt=ut,lt=ft}for(;;){if(ut=b,ft=rt,yt=lt,b===0?yt<z?(ut=90,yt++):yt>z&&(ut=270,yt--):b===90?ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--):b===180?yt<z?(ut=90,yt++):yt>z&&(ut=270,yt--):ft<E?(ut=0,ft++):ft>E&&(ut=180,ft--),ft=ot[ft][yt],ut!==b&&ft!==0&&ft!==_v){if(tt.push(rt),tt.push(lt),aS(a,rt,lt,ut,E,z,tt))return!0;tt.pop(),tt.pop()}if(ot[rt][lt]=_v,b===0){if(rt===y)return!1;rt--}else if(b===90){if(lt===x)return!1;lt--}else if(b===180){if(rt===y)return!1;rt++}else{if(lt===x)return!1;lt++}}}_t.Object.defineProperties(Mp.prototype,{bounds:{get:function(){return new gn(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 Fd=0,Xc=1,Pg=999999,$v=Pg+1,_v=Pg+2;Mp.className="PositionArray";function Af(){po(this),this.port=this.node=null,this.pe=[],this.ap=!1}Af.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 Fx(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}Af.prototype.Sl=function(){this.pe.length=0};function sS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof oo?E:null;if(z===null||z.isSubGraphExpanded)var tt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,tt=b.Lu()}z=a.pe.length=0;var ot=a.port.ga(Ya,Zt.alloc()),rt=a.port.ga(Ds,Zt.alloc());for(E=gn.allocAt(ot.x,ot.y,0,0),E.Ye(rt),Zt.free(ot),Zt.free(rt),ot=Zt.allocAt(E.x+E.width/2,E.y+E.height/2),rt=a.port.li(),tt=tt.iterator;tt.next();){var lt=tt.value;if(lt.isVisible()&<.fromPort!==lt.toPort){var ut=lt.fromPort===a.port||lt.fromNode!==null&<.fromNode.Td(b),ft=lt.computeSpot(ut,a.port);if(ft.$c()&&(ut=ut?lt.toPort:lt.fromPort,ut!==null)){var yt=ut.part;if(yt!==null){var Pt=yt.findVisibleNode();Pt!==null&&Pt!==yt&&(yt=Pt,ut=yt.port),ut=lt.computeOtherPoint(yt,ut),yt=ot.ab(ut),yt-=rt,0>yt?yt+=360:360<=yt&&(yt-=360),ft=Fx(E,ft,yt,lt.isOrthogonal),ft===0?(ft=4,180<yt&&(yt-=360)):ft===90?(ft=8,270<yt&&(yt-=360)):ft===180?ft=2:(ft=1,90>yt&&(yt+=360)),Pt=a.pe[z],Pt===void 0?(Pt=new ty(lt,yt,ft),a.pe[z]=Pt):(Pt.link=lt,Pt.angle=yt,Pt.Nc=ft),Pt.hv.set(ut),z++}}}}for(Zt.free(ot),a.pe.sort(Af.prototype.j),rt=a.pe.length,b=-1,z=ot=0;z<rt;z++)tt=a.pe[z],tt!==void 0&&(tt.Nc!==b&&(b=tt.Nc,ot=0),tt.Uo=ot,ot++);for(b=-1,ot=0,z=rt-1;0<=z;z--)rt=a.pe[z],rt!==void 0&&(rt.Nc!==b&&(b=rt.Nc,ot=rt.Uo+1),rt.Gl=ot);if(z=a.pe,ft=a.port,b=a.node.portSpreading,ot=Zt.alloc(),rt=Zt.alloc(),tt=Zt.alloc(),lt=Zt.alloc(),ft.ga(Ya,ot),ft.ga(Ol,rt),ft.ga(Ds,tt),ft.ga(el,lt),Pt=yt=ut=ft=0,b===Zv)for(var bt=0;bt<z.length;bt++){var Nt=z[bt];if(Nt!==null){var Qt=Nt.link.computeThickness();switch(Nt.Nc){case 8:yt+=Qt;break;case 2:Pt+=Qt;break;case 1:ft+=Qt;break;default:case 4:ut+=Qt}}}var Wt=bt=0,ae=1,ue=Nt=0;for(Qt=0;Qt<z.length;Qt++){var ce=z[Qt];if(ce!==null){if(bt!==ce.Nc){switch(bt=ce.Nc,bt){case 8:var Pe=tt;Wt=lt;break;case 2:Pe=lt,Wt=ot;break;case 1:Pe=ot,Wt=rt;break;default:case 4:Pe=rt,Wt=tt}switch(Nt=Wt.x-Pe.x,ue=Wt.y-Pe.y,bt){case 8:yt>Math.abs(Nt)?(ae=Math.abs(Nt)/yt,yt=Math.abs(Nt)):ae=1;break;case 2:Pt>Math.abs(ue)?(ae=Math.abs(ue)/Pt,Pt=Math.abs(ue)):ae=1;break;case 1:ft>Math.abs(Nt)?(ae=Math.abs(Nt)/ft,ft=Math.abs(Nt)):ae=1;break;default:case 4:ut>Math.abs(ue)?(ae=Math.abs(ue)/ut,ut=Math.abs(ue)):ae=1}Wt=0}var Je=ce.Zo;if(b===Zv){switch(ce=ce.link.computeThickness(),ce*=ae,Je.set(Pe),bt){case 8:Je.x=Pe.x+Nt/2+yt/2-Wt-ce/2;break;case 2:Je.y=Pe.y+ue/2+Pt/2-Wt-ce/2;break;case 1:Je.x=Pe.x+Nt/2-ft/2+Wt+ce/2;break;default:case 4:Je.y=Pe.y+ue/2-ut/2+Wt+ce/2}Wt+=ce}else{var ti=.5;b===Ym&&(ti=(ce.Uo+1)/(ce.Gl+1)),Je.x=Pe.x+Nt*ti,Je.y=Pe.y+ue*ti}}}for(Zt.free(ot),Zt.free(rt),Zt.free(tt),Zt.free(lt),Pe=a.pe,z=0;z<Pe.length;z++)b=Pe[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,gn.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}Af.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},Af.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,la,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)},Af.className="Knot";function ty(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Zt,this.Gl=this.Uo=0,this.Zo=new Zt,this.Ju=0}ty.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()},ty.className="LinkInfo";function Hr(a){po(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Zt(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Hr.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},Hr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Hr.prototype.qb=function(){},Hr.prototype.toString=function(){var a=Cn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Hr.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())}}},Hr.prototype.createNetwork=function(){return new Ar(this)},Hr.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof Xe?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof oo?y.lg(a.memberParts):y.lg(a.iterator),y},Hr.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")}},Hr.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()}},Hr.prototype.doLayout=function(a){var y=new Ln;a instanceof Xe?(nc(this,y,a.nodes,!0,this.rh,!0,!1,!0),nc(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof oo?nc(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},Hr.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,b=x,E=this.arrangementOrigin.y,z=0,tt=0;for(a=a.iterator;a.next();){var ot=a.value;Fp(ot);var rt=ot.measuredBounds,lt=rt.width;rt=rt.height,ot.moveTo(b,E),ot instanceof oo&&(ot.rh=!1),b+=Math.max(lt,50)+20,tt=Math.max(tt,Math.max(rt,50)),z>=y-1?(z=0,b=x,E+=tt+20,tt=0):z++}},Hr.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,b=this.arrangementOrigin.y,E=0,z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value.node;if(!(ot===null||ot instanceof Un)&&(Fp(ot),this.rh(ot))){var rt=ot.measuredBounds,lt=rt.width;rt=rt.height,ot.moveTo(x,b),ot instanceof oo&&(ot.rh=!1),x+=Math.max(lt,50)+20,z=Math.max(z,Math.max(rt,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Hr.prototype.rh=function(a){return!!(!a.location.w()||a instanceof oo&&a.rh)};function nc(a,y,x,b,E,z,tt,ot){for(x=x.iterator;x.next();){var rt=x.value;b&&!rt.isTopLevel||E!==null&&!E(rt)||!rt.canLayout()||(z&&rt instanceof ii?rt.isLinkLabel||(rt instanceof oo&&rt.layout===null?nc(a,y,rt.memberParts,!1,E,z,tt,ot):(Fp(rt),y.add(rt))):tt&&rt instanceof Un?y.add(rt):!ot||!rt.Zc()||rt instanceof ii||(Fp(rt),y.add(rt)))}}function Fp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Hr.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new gn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Hr.prototype.ex=function(a){var y=new Ln;return a instanceof Xe?(nc(this,y,a.nodes,!0,null,!0,!0,!0),nc(this,y,a.links,!0,null,!0,!0,!0),nc(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof oo?nc(this,y,a.memberParts,!1,null,!0,!0,!0):nc(this,y,a.iterator,!1,null,!0,!0,!0),y},Hr.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Ya),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},_t.Object.defineProperties(Hr.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())}}}),Hr.prototype.collectParts=Hr.prototype.ex,Hr.prototype.getLayoutBounds=Hr.prototype.ni,Hr.prototype.invalidateLayout=Hr.prototype.C,Hr.className="Layout";function Ar(a){po(this),this.Sc=a,this.wf=new Ln,this.ye=new Ln,this.Es=new si,this.zs=new si}Ar.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new Ln,this.ye=new Ln,this.Es=new si,this.zs=new si},Ar.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},Ar.prototype.createVertex=function(){return new Va(this)},Ar.prototype.createEdge=function(){return new Fl(this)},Ar.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(tt){if(tt instanceof ii)return!tt.isLinkLabel;if(tt instanceof Un){var ot=tt.fromNode;return ot===null||ot.isLinkLabel?!1:(tt=tt.toNode,!(tt===null||tt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof ii&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof oo&&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 Un&&(!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))}}},Ar.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},Lt=Ar.prototype,Lt.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Lt.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},Lt.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}Lt.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Lt.ki=function(a){return a===null?null:this.Es.I(a)},Lt.Bo=function(a){if(a!==null){ey(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ey(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}}Lt.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},Lt.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))}Lt.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Lt.Lo=function(a){return a===null?null:this.zs.I(a)},Lt.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},Lt.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))}},Lt.Ko=function(){for(var a=rn(),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]);pn(a)},Ar.prototype.deleteArtificialVertexes=function(){for(var a=rn(),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=rn(),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]);pn(a),pn(y)};function kx(a){for(var y=rn(),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]);pn(y)}Ar.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),kx(this),this.Ko()),a=new xn;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),ey(y,E),iy(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(ny(a,x),ey(y,x),iy(a,y,x.toVertex))}}Ar.prototype.dz=function(){for(var a=new Ln,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},_t.Object.defineProperties(Ar.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}}}),Ar.prototype.findAllParts=Ar.prototype.dz,Ar.prototype.splitIntoSubNetworks=Ar.prototype.Zx,Ar.prototype.deleteSelfEdges=Ar.prototype.Ko,Ar.prototype.reverseEdge=Ar.prototype.gm,Ar.prototype.linkVertexes=Ar.prototype.Zj,Ar.prototype.findEdge=Ar.prototype.Lo,Ar.prototype.deleteLink=Ar.prototype.Yy,Ar.prototype.deleteEdge=Ar.prototype.Mj,Ar.prototype.addLink=Ar.prototype.Dy,Ar.prototype.addEdge=Ar.prototype.Bo,Ar.prototype.findVertex=Ar.prototype.ki,Ar.prototype.deleteNode=Ar.prototype.Zy,Ar.prototype.deleteVertex=Ar.prototype.Iu,Ar.prototype.addNode=Ar.prototype.Bl,Ar.prototype.addVertex=Ar.prototype.dh,Ar.prototype.addParts=Ar.prototype.lg,Ar.className="LayoutNetwork";function Va(a){po(this),this.ob=a,this.j=new gn(0,0,10,10).freeze(),this.o=new Zt(5,5).freeze(),this.Sh=this.ub=null,this.tg=new xn,this.mg=new xn}Va.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new xn,this.mg=new xn},Va.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Yi(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},Va.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;We(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 oo)){x=gn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(jo);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),gn.free(x);return}gn.free(x)}a.moveTo(y.x,y.y)}},Va.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Va.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Va.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Va.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}_t.Object.defineProperties(Va.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=gn.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),gn.free(x),!(a instanceof oo)&&(a=a.locationObject.ga(jo),a.w())){this.o.h(a.x-y,a.y-E);return}this.o.h(z/2,b/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ln,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new xn,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}}}),Va.prototype.deleteDestinationEdge=Va.prototype.Jl,Va.prototype.addDestinationEdge=Va.prototype.zl,Va.prototype.deleteSourceEdge=Va.prototype.Kl,Va.prototype.addSourceEdge=Va.prototype.Cl,Va.className="LayoutVertex",Va.standardComparer=oy,Va.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 Fl(a){po(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}Fl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},Fl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Yi(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},Fl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},Fl.prototype.commit=function(){},Fl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},_t.Object.defineProperties(Fl.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)}}}),Fl.prototype.getOtherVertex=Fl.prototype.Ax,Fl.className="LayoutEdge";function fs(a){Hr.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Yn(NaN,NaN).freeze(),this.tf=new Yn(10,10).freeze(),this.Jb=kp,this.Rb=s0,this.nd=Bp,this.hd=uS,a&&Object.assign(this,a)}he(fs,Hr),fs.prototype.cloneProtected=function(a){Hr.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},fs.prototype.qb=function(a){a.classType===fs?a===Bp||a===u0||a===ry||a===l0?this.sorting=a:a===s0||a===Xu?this.arrangement=a:a===kp||a===a0?this.alignment=a:xe("Unknown enum value: "+a):Hr.prototype.qb.call(this,a)},fs.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 oo)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 Bp:E.sort(this.comparer);break;case u0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var tt=this.wrappingWidth;switch(isNaN(tt)&&a!==null?(y=a.padding,tt=Math.max(a.viewportBounds.width-y.left-y.right,0)):tt=Math.max(this.wrappingWidth,0),0>=z&&0>=tt&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),b=[],this.alignment){case a0:var ot=y,rt=x,lt=gn.alloc(),ut=Math.max(this.cellSize.width,1);if(!isFinite(ut))for(var ft=ut=0;ft<E.length;ft++){var yt=this.ni(E[ft],lt);ut=Math.max(ut,yt.width)}if(ut=Math.max(ut+ot,1),ft=Math.max(this.cellSize.height,1),!isFinite(ft))for(yt=ft=0;yt<E.length;yt++){var Pt=this.ni(E[yt],lt);ft=Math.max(ft,Pt.height)}ft=Math.max(ft+rt,1),yt=this.arrangement;for(var bt=Pt=this.arrangementOrigin.x,Nt=this.arrangementOrigin.y,Qt=0,Wt=0,ae=0;ae<E.length;ae++){var ue=E[ae],ce=this.ni(ue,lt),Pe=Math.ceil((ce.width+ot)/ut)*ut,Je=Math.ceil((ce.height+rt)/ft)*ft;switch(yt){case Xu:var ti=Math.abs(bt-ce.width);break;default:ti=bt+ce.width}switch((0<z&&Qt>z-1||0<tt&&0<Qt&&ti-Pt>tt)&&(b.push(new gn(0,Nt,tt+ot,Wt)),Qt=0,bt=Pt,Nt+=Wt,Wt=0),Wt=Math.max(Wt,Je),yt){case Xu:ce=-ce.width;break;default:ce=0}switch(ue.moveTo(bt+ce,Nt),yt){case Xu:bt-=Pe;break;default:bt+=Pe}Qt++}b.push(new gn(0,Nt,tt+ot,Wt)),gn.free(lt);break;case kp:for(rt=tt,ut=z,ft=y,yt=x,tt=gn.alloc(),Pt=Math.max(this.cellSize.width,1),z=Nt=lt=0,ot=Zt.alloc(),bt=0;bt<E.length;bt++)Wt=E[bt],Qt=this.ni(Wt,tt),Wt=Ed(Wt,Wt.locationObject,Wt.locationSpot,ot),lt=Math.max(lt,Wt.x),Nt=Math.max(Nt,Qt.width-Wt.x),z=Math.max(z,Wt.y);switch(bt=this.arrangement,bt){case Xu:lt+=ft;break;default:Nt+=ft}Pt=isFinite(Pt)?Math.max(Pt+ft,1):Math.max(lt+Nt,1);var fi=Wt=this.arrangementOrigin.x;for(ae=this.arrangementOrigin.y,Nt=0,rt>=lt&&(rt-=lt),lt=ue=0,Pe=Math.max(this.cellSize.height,1),ce=z=0,Je=!0,Qt=Zt.alloc(),ti=0;ti<E.length;ti++){var li=E[ti],Vn=this.ni(li,tt),Fn=Ed(li,li.locationObject,li.locationSpot,ot);if(0<Nt)switch(bt){case Xu:fi=(fi-Wt-(Vn.width-Fn.x))/Pt,fi=De.$(Math.round(fi),fi)?Math.round(fi):Math.floor(fi),fi=fi*Pt+Wt;break;default:fi=(fi-Wt+Fn.x)/Pt,fi=De.$(Math.round(fi),fi)?Math.round(fi):Math.ceil(fi),fi=fi*Pt+Wt}else switch(bt){case Xu:ue=fi+Fn.x+Vn.width;break;default:ue=fi-Fn.x}switch(bt){case Xu:var no=-(fi+Fn.x)+ue;break;default:no=fi+Vn.width-Fn.x-ue}if(0<ut&&Nt>ut-1||0<rt&&0<Nt&&no>rt){for(b.push(new gn(0,Je?ae-z:ae,rt+ft,ce+z+yt)),fi=0;fi<Nt&&ti!==Nt;fi++){no=E[ti-Nt+fi];var Xi=Ed(no,no.locationObject,no.locationSpot,Qt);no.moveTo(no.position.x,no.position.y+z-Xi.y)}ce+=yt,ae=Je?ae+ce:ae+(ce+z),Nt=ce=z=0,fi=Wt,Je=!1}switch(fi===Wt&&(lt=bt===Xu?Math.max(lt,Vn.width-Fn.x):Math.min(lt,-Fn.x)),z=Math.max(z,Fn.y),ce=Math.max(ce,Vn.height-Fn.y),isFinite(Pe)&&(ce=Math.max(ce,Math.max(Vn.height,Pe)-Fn.y)),Je?li.moveTo(fi-Fn.x,ae-Fn.y):li.moveTo(fi-Fn.x,ae),bt){case Xu:fi-=Fn.x+ft;break;default:fi+=Vn.width-Fn.x+ft}Nt++}if(b.push(new gn(0,ae,rt+ft,(Je?ce:ce+z)+yt)),E.length!==Nt)for(rt=0;rt<Nt;rt++)ut=E[E.length-Nt+rt],ft=Ed(ut,ut.locationObject,ut.locationSpot,ot),ut.moveTo(ut.position.x,ut.position.y+z-ft.y);if(Zt.free(ot),Zt.free(Qt),bt===Xu)for(E=0;E<b.length;E++)z=b[E],z.width+=lt,z.x-=lt;else for(E=0;E<b.length;E++)z=b[E],z.x>lt&&(z.width+=z.x-lt,z.x=lt);gn.free(tt)}for(ot=z=tt=E=0;ot<b.length;ot++)rt=b[ot],E=Math.min(E,rt.x),tt=Math.min(tt,rt.y),z=Math.max(z,rt.x+rt.width);this.arrangement===Xu?this.commitLayers(b,new Zt(E+y/2-(z+E),tt-x/2)):this.commitLayers(b,new Zt(E-y/2,tt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},fs.prototype.commitLayers=function(){};function uS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}_t.Object.defineProperties(fs.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!==Xu||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==ry&&a!==l0&&a!==Bp&&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 Be(fs,"Position",0),kp=new Be(fs,"Location",1),s0=new Be(fs,"LeftToRight",2),Xu=new Be(fs,"RightToLeft",3),ry=new Be(fs,"Forward",4),l0=new Be(fs,"Reverse",5),Bp=new Be(fs,"Ascending",6),u0=new Be(fs,"Descending",7);fs.className="GridLayout",fs.standardComparer=uS,fs.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},fs.Position=a0,fs.Location=kp,fs.LeftToRight=s0,fs.RightToLeft=Xu,fs.Forward=ry,fs.Reverse=l0,fs.Ascending=Bp,fs.Descending=u0;function cr(){this.On=new Ln,this.Dn=new Ln,this.Pa=new Ln,this.cf=new si,this.bf=new si,this.aj=new si,this.H=null,this.tp=!1}Lt=cr.prototype,Lt.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Lt.Xe=function(a){this.H=a},Lt.oi=function(a){if(a instanceof ii){if(this.On.add(a),a instanceof oo){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 Un?this.Dn.add(a):a instanceof Xo||this.Pa.add(a);y=a.data,y===null||a instanceof Xo||(a instanceof Un?this.bf.add(y,a):this.cf.add(y,a))},Lt.pc=function(a){if(a.Ej(),a instanceof ii){if(this.On.remove(a),a instanceof oo){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 Un?this.Dn.remove(a):a instanceof Xo||this.Pa.remove(a);y=a.data,y===null||a instanceof Xo||(a instanceof Un?this.bf.remove(y):this.cf.remove(y))},Lt.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 oo)&&xe('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 oo||xe('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 Un||xe('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=rn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=rn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=rn(),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]);pn(y),pn(x),pn(a)}},cr.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},cr.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);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=dS(a,y,b);if(E!==null&&(yu(E),E=E.copy(),E!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=b,E.ub=y,a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=z,b=E;break t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}cr.prototype.insertLink=function(){return null},cr.prototype.resolveReferencesForData=function(){},cr.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,qn('No Group template found for category "'+x+'"'),qn(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(fS||(fS=!0,qn('No Node template found for category "'+x+'"'),qn(" Using default node template")),y=a.ny))),y}cr.prototype.getLinkCategoryForData=function(){return""},cr.prototype.setLinkCategoryForData=function(){},cr.prototype.setFromNodeForLink=function(){},cr.prototype.setToNodeForLink=function(){},cr.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,qn('No Link template found for category "'+a+'"'),qn(" Using default link template")),x=y.my)),x},cr.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},cr.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},cr.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Yd(this.diagram,a,!1),this.unresolveReferencesForPart(a))},cr.prototype.unresolveReferencesForPart=function(){},cr.prototype.removeDataForLink=function(){},cr.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},cr.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof ii?a:null)},cr.prototype.findLinkForKey=function(){return null},Lt=cr.prototype,Lt.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Lt.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof ii?a:null)},Lt.Kc=function(a){return a===null?null:this.bf.I(a)},Lt.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(We(tt)&&ay(this,E,tt)){y.add(b);break}}}return y.iterator},Lt.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var tt=arguments[z];if(We(tt)&&ay(this,E,tt)){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(fn(z)){if(!fn(E)||E.length<z.length)return!1;for(var tt=0;tt<E.length;tt++){var ot=z[tt];if(ot!==void 0&&!cS(a,E[tt],ot))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(We(y)&&We(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}cr.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===Zr){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===da){var tt=a.newValue;b==="nodeDataArray"&&We(tt)&&hS(this,tt),y.isModified=!0}else if(x===Ba){var ot=a.oldValue;b==="nodeDataArray"&&We(ot)&&this.ip(ot),y.isModified=!0}else x===ol&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Zr){var rt=a.propertyName,lt=a.object;lt===y.model?(rt==="nodeKeyProperty"||rt==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(lt,rt),y.isModified=!0}else if(x===da||x===Ba){var ut=a.change===da,ft=ut?a.newParam:a.oldParam,yt=ut?a.newValue:a.oldValue,Pt=this.aj.I(a.object);if(Array.isArray(Pt))for(a=0;a<Pt.length;a++){var bt=Pt[a];if(ut)Mm(bt,yt,ft,!0);else if(!(0>ft)){var Nt=ft+cp(bt);bt.pc(Nt,!0),xv(bt,Nt,ft)}}y.isModified=!0}}finally{y.aa=!0}}}}},cr.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)},cr.prototype.rp=function(){for(var a=this.H.model,y=new Ln,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),this.parts.each(function(tt){tt.data===null||y.contains(tt.data)||E.push(tt.data)}),E.forEach(function(tt){bS(a,tt,!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()},cr.prototype.refreshDataBoundLinks=function(){},cr.prototype.updateRelationshipsFromData=function(){},cr.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var b=this.aj.iterator;b.next();){for(var E=b.value,z=0;z<E.length;z++){var tt=E[z].sx(a);tt!==null&&(x===null&&(x=rn()),x.push(tt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);pn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function sy(a,y){var x=y.Hh;if(fn(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){Zc(y,function(tt){tt=tt.O.s;for(var ot=tt.length,rt=0;rt<ot;rt++)Qg(x,tt[rt])});var b=y.Hh;if(fn(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}}}}cr.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new si;if(fn(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 Ln;for(var z=new si,tt=b.iterator;tt.next();){var ot=tt.value;if(ot instanceof Un)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof ii&&ot.data!==null&&x.Tl()){var rt=ot;ot=tt.key;var lt=ot.pg();lt!==null&&(lt=b.I(lt),lt!==null?(x.qe(rt.data,x.wa(lt.data)),rt=y.Kc(rt.data),ot=ot.kh(),ot!==null&&rt!==null&&z.add(ot,rt)):x.qe(rt.data,void 0))}}if(0<E.count&&y.Is(E,!1),0<z.count)for(x=z.iterator;x.next();)b.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ut=new si;b.each(function(ft){ft.key.data!==null&&ut.add(ft.key.data,ft.value.data)}),x(ut,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 Mi))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof ii){for(var tt=y.linksConnected;tt.next();){var ot=tt.value;if(ot.fromNode===y){var rt=b.I(ot);rt!==null&&(rt.fromNode=z)}ot.toNode===y&&(ot=b.I(ot),ot!==null&&(ot.toNode=z))}if(y instanceof oo&&z instanceof oo)for(y=y.memberParts;y.next();)tt=h0(a,y.value,x,b,E),tt instanceof Un||tt===null||(tt.containingGroup=z)}else if(y instanceof Un&&z instanceof Un)for(tt=y.fromNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.fromNode=tt)),tt=y.toNode,tt!==null&&(tt=b.I(tt),tt!==null&&(z.toNode=tt)),y=y.labelNodes;y.next();)tt=h0(a,y.value,x,b,E),tt!==null&&tt instanceof ii&&(tt.labeledLink=z);return z}cr.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Un||(b=E.copyNodeData(b),We(b)&&(E.xf(b),x=y.Lc(b)))}else yu(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 Un||(E=y.copyNodeData(b)),We(E)&&(x.data=E)));return x},_t.Object.defineProperties(cr.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}}}),cr.prototype.updateAllRelationshipsFromData=cr.prototype.rp,cr.prototype.findLinksByExample=cr.prototype.ls,cr.prototype.findNodesByExample=cr.prototype.ms,cr.prototype.findLinkForData=cr.prototype.Kc,cr.prototype.findNodeForData=cr.prototype.ii,cr.prototype.findPartForData=cr.prototype.Lc,cr.prototype.findNodeForKey=cr.prototype.Vb,cr.prototype.removeModeledPart=cr.prototype.ip,cr.prototype.removeModeledParts=cr.prototype.Gs,cr.prototype.rebuildParts=cr.prototype.Wd;var fS=!1,gS=!1,pS=!1;cr.className="PartManager";function is(a){cr.apply(this,arguments)}he(is,cr),is.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),mS(this,a.linkDataArray)},is.prototype.addModeledParts=function(a){for(cr.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){yu(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=Ql(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof ii&&(E.fromNode=z)),z=g0(x,y,!1),z!==""&&(E.toPortId=z),z=Ql(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof ii&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(tt){tt=a.Vb(tt),tt!==null&&(tt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}is.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)})}is.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},is.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},is.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},is.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},is.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},is.prototype.findPartForKey=function(a){var y=cr.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},is.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},is.prototype.doModelChanged=function(a){var y=this;if(cr.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===Zr){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var tt=this.Vb(a.newValue);z.fromNode=tt}}else if(E==="linkToKey"){var ot=this.Kc(a.object);if(ot!==null){var rt=this.Vb(a.newValue);ot.toNode=rt}}else if(E==="linkFromPortId"){var lt=this.Kc(a.object);if(lt!==null){var ut=a.newValue;typeof ut=="string"&&(lt.fromPortId=ut)}}else if(E==="linkToPortId"){var ft=this.Kc(a.object);if(ft!==null){var yt=a.newValue;typeof yt=="string"&&(ft.toPortId=yt)}}else if(E==="nodeGroupKey"){var Pt=this.Lc(a.object);if(Pt!==null){var bt=a.newValue;if(bt!==void 0){var Nt=this.Vb(bt);Nt instanceof oo?Pt.containingGroup=Nt:Pt.containingGroup=null}else Pt.containingGroup=null}}else if(E==="linkLabelKeys"){var Qt=this.Kc(a.object);if(Qt!==null){var Wt=a.oldValue,ae=a.newValue;Array.isArray(Wt)&&Wt.forEach(function(Fn){0<=ae.indexOf(Fn)||(Fn=y.Vb(Fn),Fn!==null&&(Fn.labeledLink=null))}),Array.isArray(ae)&&ae.forEach(function(Fn){Fn=y.Vb(Fn),Fn!==null&&(Fn.labeledLink=Qt)})}}else if(E==="linkCategory"){var ue=this.Kc(a.object),ce=a.newValue;ue!==null&&typeof ce=="string"&&(ue.category=ce)}else E==="linkDataArray"&&(yS(this,a.oldValue),mS(this,a.newValue));x.isModified=!0}else if(b===da){var Pe=a.newValue;if(E==="linkDataArray"&&typeof Pe=="object"&&Pe!==null)vS(this,Pe);else if(E==="linkLabelKeys"&&oc(Pe)){var Je=this.Kc(a.object),ti=this.Vb(Pe);Je!==null&&ti!==null&&(ti.labeledLink=Je)}x.isModified=!0}else if(b===Ba){var fi=a.oldValue;if(E==="linkDataArray"&&typeof fi=="object"&&fi!==null)this.ip(fi);else if(E==="linkLabelKeys"&&oc(fi)){var li=this.Vb(fi);li!==null&&(li.labeledLink=null)}x.isModified=!0}}else if(b===Zr){var Vn=a.propertyName;a.object!==x.model||Vn!=="linkFromKeyProperty"&&Vn!=="linkToKeyProperty"&&Vn!=="linkFromPortIdProperty"&&Vn!=="linkToPortIdProperty"&&Vn!=="linkLabelKeysProperty"&&Vn!=="nodeIsGroupProperty"&&Vn!=="nodeGroupKeyProperty"&&Vn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},is.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Ln,b=y.linkDataArray;b.forEach(function(z){x.add(z)});var E=[];this.links.each(function(z){z.data===null||x.contains(z.data)||E.push(z.data)}),E.forEach(function(z){kS(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&FS(y,z,!1)})},is.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 Un){var E=Ql(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Ql(b,y,!1),E=x.Vb(E),a.toNode=E,y=b.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){E=y[0];var z=a.labelNodes.first();if(b.wa(z.data)===E)return}E=new Ln().addAll(y);var tt=new Ln;a.labelNodes.each(function(ot){ot.data!==null&&(ot=b.wa(ot.data),ot!==void 0&&tt.add(ot))}),y=tt.copy(),y.hp(E),E=E.copy(),E.hp(tt),(0<y.count||0<E.count)&&(y.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink===a&&(ot.labeledLink=null)}),E.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink!==a&&(ot.labeledLink=a)}))}}else!(a instanceof Xo)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof oo)&&(a.containingGroup=y)}}},is.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 tt=b.value;y.lb(tt)?E instanceof oo&&y.lh(tt)===x&&(tt=this.Lc(tt),tt!==null&&(tt.containingGroup=E)):(z.link=this.Kc(tt),z.link!==null&&E instanceof ii&&(Ql(y,tt,!0)===x&&(z.link.fromNode=E),Ql(y,tt,!1)===x&&(z.link.toNode=E),tt=y.Ef(tt),Array.isArray(tt)&&tt.some(function(ot){return function(rt){return rt===x?(E.labeledLink=ot.link,!0):!1}}(z)))),z={link:z.link}}Qu(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof oo&&(E.containingGroup=a))}},is.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ii){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)Ju(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&Ju(y,x,b.data)),a instanceof oo)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&Ju(y,x,b)}}},is.prototype.copyPartData=function(a,y){var x=cr.prototype.copyPartData.call(this,a,y);if(a instanceof Un)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},is.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,tt=E.toolManager.findTool("Linking"),ot="";if(a!==null&&(y===null&&(y=a),ot=y.portId,ot===null&&(ot="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=tt.archetypeLinkData,b instanceof Un){if(yu(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=ot,z.toNode=x,z.toPortId=y,E.add(z),a=tt.archetypeLabelNodeData,a instanceof ii&&(yu(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,ot,!0),x!==null&&bg(z,b,z.wa(x.data),!1),Eg(z,b,y,!1),z.fi(b),a=tt.archetypeLabelNodeData,a===null||a instanceof ii||(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},is.prototype.findLinkForKey=is.prototype.findLinkForKey,is.prototype.findPartForKey=is.prototype.findPartForKey,is.prototype.removeAllModeledParts=is.prototype.removeAllModeledParts,is.prototype.addModeledParts=is.prototype.addModeledParts,is.prototype.addAllModeledParts=is.prototype.addAllModeledParts,is.className="GraphLinksPartManager";function uu(){cr.apply(this,arguments),this.Sg=null}he(uu,cr);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||!On(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(yu(b),b=b.copy(),b!==null))){var tt=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=y,b.ub=x.data,b.fromNode=E,b.toNode=z,a.diagram.add(b),b.ub=null,b.data=x.data,a.diagram.skipsModelSourceBindings=tt}}}uu.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},uu.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},uu.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}},uu.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))},uu.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},uu.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},uu.prototype.doModelChanged=function(a){if(cr.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===Zr){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),tt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(tt!==null){var ot=tt.kh();ot!==null?z===null?y.remove(ot):y.isTreePathToChildren?ot.fromNode=z:ot.toNode=z:d0(this,z,tt)}}else if(b==="parentLinkCategory"){var rt=this.ii(a.object),lt=a.newValue;if(rt!==null&&typeof lt=="string"){var ut=rt.kh();ut!==null&&(ut.category=lt)}}y.isModified=!0}}else if(x===Zr){var ft=a.propertyName;a.object===y.model&&ft==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},uu.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof ii&&(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&&Yd(x,b,!1)))}}},uu.prototype.updateDataBindings=function(a,y){cr.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},uu.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 ii&&y.mh(z)===x&&d0(this,E,this.ii(z))}Qu(y,x)}a=y.mh(a),a!==void 0&&E instanceof ii&&(a=this.Vb(a),d0(this,a,E))}},uu.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof ii){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(Ba,"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)&&Ju(y,x,E)}},uu.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},uu.prototype.findLinkForKey=uu.prototype.findLinkForKey,uu.className="TreePartManager";function vi(a,y){this.kl=new Ln,this.il=new Ln,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,po(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new si,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 si,this.Lt=new xn,this.Wg=!1,this.o=null,this.undoManager=new Ur,a!==void 0&&(fn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}vi.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},vi.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},vi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},vi.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)+":"+kn(E)}}return y},vi.prototype.xA=function(a){a.change!==ol&&xe("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof Ja?(xS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},vi.prototype.Qv=function(a,y){var x=this,b=!1,E=new Ln,z=new Ln,tt=new Ln,ot=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===da?E.add(ft.newValue):ft.change===Ba&&tt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==Zr||x.modelData!==ft.object&&ft.propertyName!=="modelData"?ft.object!==null&&(ot&&ot.contains(ft.object)?ot.get(ft.object).each(function(yt){x.lb(yt)&&z.add(yt)}):ft.object instanceof vi||x.ri()&&x.Jc(ft.object)||wS(x,ft.object).each(function(yt){z.add(yt)})):b=!0)});var rt=this.il;rt.clear(),E.each(function(ft){rt.add(x.wa(ft)),y||z.add(ft)});var lt=this.kl;lt.clear(),tt.each(function(ft){lt.add(x.wa(ft)),y&&z.add(ft)}),a=x.cloneDeep(z.Fa());var ut=null;return b&&(ut===null&&(ut={}),ut.modelData=this.cloneDeep(this.modelData)),0<rt.count&&(ut===null&&(ut={}),y?ut.removedNodeKeys=rt.Fa():ut.insertedNodeKeys=rt.Fa()),0<a.length&&(ut===null&&(ut={}),ut.modifiedNodeData=a),0<lt.count&&(ut===null&&(ut={}),y?ut.insertedNodeKeys=lt.Fa():ut.removedNodeKeys=lt.Fa()),lt.clear(),rt.clear(),ut},vi.prototype.cloneDeep=function(a){return Cg(this,a,!0)};function Cg(a,y,x,b,E,z){function tt(ft,yt){ot?(ft.__gohashid===void 0&&z.push(ft),b.set(ft,yt)):(ft=nr++,b.set(ft,yt),E.set(ft,y))}if(!We(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new si),ot){var rt=b.get(y);if(rt)return rt}else for(E||(E=new si),rt=E.iterator;rt.next();){var lt=rt.key;if(rt.value===y&&(lt=b.get(lt)))return lt}if(Array.isArray(y)){rt=[],tt(y,rt);for(var ut=0;ut<y.length;ut++)rt.push(Cg(a,y[ut],!1,b,E,z))}else if(y instanceof Zt||y instanceof Yn||y instanceof gn||y instanceof Bi||y instanceof yi)rt=y.copy(),tt(y,rt);else{if(y instanceof hr||y instanceof Qn||y instanceof Be)return y;if(y instanceof xn)rt=new xn().addAll(Cg(a,y.Fa(),!1,b,E,z)),tt(y,rt);else if(y instanceof Ln)rt=new Ln().addAll(Cg(a,y.Fa(),!1,b,E,z)),tt(y,rt);else if(y instanceof si)rt=new si().addAll(Cg(a,y.Fa(),!1,b,E,z)),tt(y,rt);else if(y instanceof Date)rt=new Date(y.getTime()),tt(y,rt);else if(y instanceof RegExp)rt=new RegExp(y),tt(y,rt),rt.lastIndex=y.lastIndex;else if(typeof y.copy=="function")rt=y.copy(),tt(y,rt);else for(ut in rt={},tt(y,rt),y)ut!=="__gohashid"&&(rt[ut]=Cg(a,y[ut],!1,b,E,z))}return x&&z.forEach(function(ft){delete ft.__gohashid}),rt}Lt=vi.prototype,Lt.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Lt.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},Lt.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,We(y)&&(a.dm(y),a.modelData=y)}Lt.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": `+ic(this,this.nodeDataArray,!0)},Lt.kv=function(a){SS(this,a),a=a.nodeDataArray,fn(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 tt=b.get(E);tt===null?(tt=new Ln,tt.add(z),b.add(E,tt)):tt.add(z)}}var b=a.vh;b===null&&(b=new si,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Zr?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===da||z===Ba)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function wS(a,y){for(var x=new Ln,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 tt=x[z];if(tt===y)return E.add(b),!0;if(c0(a,y,tt,b,E))return!0}else if(We(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(tt=x[z],tt===y)return E.add(b),!0;if(c0(a,y,tt,b,E))return!0}return!1}Lt.Pv=function(a,y){var x=this,b=!1,E=new Ln,z=new Ln,tt=new Ln,ot=this.vh;a.changes.each(function(ut){ut.model===x&&(ut.modelChange==="nodeDataArray"?ut.change===da?E.add(ut.newValue):ut.change===Ba&&tt.add(ut.oldValue):x.lb(ut.object)?z.add(ut.object):ut.change!==Zr||x.modelData!==ut.object&&ut.propertyName!=="modelData"?ut.object!==null&&(ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(ft){x.lb(ft)&&z.add(ft)}):ut.object instanceof vi||x.ri()&&x.Jc(ut.object)||wS(x,ut.object).each(function(ft){z.add(ft)})):b=!0)});var rt=this.il;rt.clear(),E.each(function(ut){rt.add(x.wa(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(x.wa(ut)),y&&z.add(ut)}),a="",b&&(a+=`,
|
|
|
"modelData": `+uy(this,this.modelData)),0<rt.count&&(a+=(y?this.Yv:this.Wv)+ic(this,rt.Fa(),!0)),0<z.count&&(a+=this.jy+ic(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Wv:this.Yv)+ic(this,lt.Fa(),!0)),lt.clear(),rt.clear(),a},Lt.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)&&xe("applyIncrementalJson cannot change Model properties"),SS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new si;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],tt=this.wa(z);tt!=null&&b.set(tt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){tt=y[z];var ot=this.hc(tt);ot===null&&(ot=(ot=b.get(tt))?ot:this.copyNodeData({}),this.km(ot,tt),this.xf(ot))}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 rt in E)rt==="__gohashid"||rt===this.nodeKeyProperty||this.Wj()&&rt===this.nodeIsGroupProperty||this.setDataProperty(z,rt,E[rt]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,rt=0;rt<x;rt++)y=this.hc(a[rt]),y!==null&&this.cm(y)},Lt.$x=function(a,y){a.change!==ol&&xe("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof Ja?(y===void 0&&(y=Np(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 }'},Lt.yA=function(a,y){return this.$x(a,y)},Lt.np=function(a){return a===void 0&&(a=Np(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Lt.toJSON=function(a){return this.np(a)},Lt.Zw=function(a){var y=null;if(typeof a=="string")try{y=Yt.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:xe("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&xe("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Lt.Ky=function(a){return this.Zw(a)},vi.constructGraphLinksModel=function(){return new vi},Lt=vi.prototype,Lt.dm=function(a){if(fn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(We(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:xe("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(We(a)){for(y in a)if(x=a[y],We(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 xn,b=0;b<x.length/2;b++)E.add(new Zt(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Bx(a)}return a},Lt.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()):fn(a)?ic(this,a):We(a)?uy(this,a):typeof a=="function"?"null":a.toString()};function ic(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Si;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var z=0;z<b;z++){var tt=y[z];tt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(tt)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function PS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Xs(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function uy(a,y){var x=y;if(x instanceof Zt)y={class:"go.Point",x:Xs(x.x),y:Xs(x.y)};else if(x instanceof Yn)y={class:"go.Size",width:Xs(x.width),height:Xs(x.height)};else if(x instanceof gn)y={class:"go.Rect",x:Xs(x.x),y:Xs(x.y),width:Xs(x.width),height:Xs(x.height)};else if(x instanceof Bi)y={class:"go.Margin",top:Xs(x.top),right:Xs(x.right),bottom:Xs(x.bottom),left:Xs(x.left)};else if(x instanceof yi)x.sb()?y={class:"go.Spot",x:Xs(x.x),y:Xs(x.y),offsetX:Xs(x.offsetX),offsetY:Xs(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof hr){if(y={class:"go.Brush",type:x.type.name},x.type===Pd?y.color=x.color:(x.type===td||x.type===su)&&(y.start=x.start,y.end=x.end,x.type===su&&(x.startRadius!==0&&(y.startRadius=Xs(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Xs(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 Qn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Xs(x.startX)),x.startY!==0&&(y.startY=Xs(x.startY)),x.endX!==0&&(y.endX=Xs(x.endX)),x.endY!==0&&(y.endY=Xs(x.endY)),x.spot1.D(Ya)||(y.spot1=x.spot1),x.spot2.D(Ds)||(y.spot2=x.spot2),x.type===Qn.o&&(y.path=Qn.ia(x))):x instanceof Be&&(y={class:"go.EnumValue",classType:Np(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=va(y,E);if(!PS(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof xn){var tt="[";for(z=z.iterator;z.next();){var ot=z.value;1<tt.length&&(tt+=","),tt+=a.sm(ot.x),tt+=",",tt+=a.sm(ot.y)}tt+="]",b+=tt}else b+=a.sm(z)}return b+"}"}function Js(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Bx(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 Zt(Js(a.x),Js(a.y));else if(y==="Size")x=new Yn(Js(a.width),Js(a.height));else if(y==="Rect")x=new gn(Js(a.x),Js(a.y),Js(a.width),Js(a.height));else if(y==="Margin")x=new Bi(Js(a.top),Js(a.right),Js(a.bottom),Js(a.left));else if(y==="Spot")typeof a.enum=="string"?x=xc(a.enum):x=new yi(Js(a.x),Js(a.y),Js(a.offsetX),Js(a.offsetY));else if(y==="Brush"){if(x=new hr,x.type=ei(hr,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof yi&&(x.start=a.start),a.end instanceof yi&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Js(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Js(a.endRadius)),a=a.colorStops,We(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Qn.parse(a.path):x=new Qn,x.type=ei(Qn,a.type),typeof a.startX=="number"&&(x.startX=Js(a.startX)),typeof a.startY=="number"&&(x.startY=Js(a.startY)),typeof a.endX=="number"&&(x.endX=Js(a.endX)),typeof a.endY=="number"&&(x.endY=Js(a.endY)),a.spot1 instanceof yi&&(x.spot1=a.spot1),a.spot2 instanceof yi&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=ei(b,a.name)));return x}Lt.Pe=function(a){return this.Lt.add(a),this},Lt.ik=function(a){this.Lt.remove(a)},Lt.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)},Lt.cb=function(a,y,x,b,E,z,tt){Ra(this,"",a,y,x,b,E,z,tt)},Lt.g=function(a,y,x,b,E){Ra(this,"",Zr,a,this,y,x,b,E)},Lt.Fs=function(a,y,x,b,E,z){Ra(this,"",Zr,y,a,x,b,E,z)};function Ra(a,y,x,b,E,z,tt,ot,rt){ot===void 0&&(ot=null),rt===void 0&&(rt=null);var lt=new Gr;lt.model=a,lt.change=x,lt.modelChange=y,lt.propertyName=b,lt.object=E,lt.oldValue=z,lt.oldParam=ot,lt.newValue=tt,lt.newParam=rt,a.ds(lt)}vi.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Zr){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)),Ir(x,b,E)}else a.change===da?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,We(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&_e(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&an(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!fn(b)&&a.propertyName&&(b=va(a.object,a.propertyName)),fn(b)&&typeof x=="number"&&(a=a.newValue,y?_e(b,x):an(b,x,a))):xe("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Ba?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,We(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&an(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&_e(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!fn(b)&&a.propertyName&&(b=va(a.object,a.propertyName)),fn(b)&&typeof x=="number"&&(a=a.oldValue,y?an(b,x,a):_e(b,x))):xe("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ol&&xe("unknown ChangedEvent: "+a.toString())},vi.prototype.Ea=function(a){return this.undoManager.Ea(a)},vi.prototype.eb=function(a){return this.undoManager.eb(a)},vi.prototype.Kf=function(){return this.undoManager.Kf()},vi.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}},Lt=vi.prototype,Lt.La=function(a,y){y===void 0&&(y=""),Ra(this,"SourceChanged",ol,y,a,null,null)},Lt.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=va(a,y),y!==void 0)){if(oc(y))return y;xe("Key value for node data "+a+" is not a number or a string: "+y)}}},Lt.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=va(a,x);b!==y&&this.hc(y)===null&&(Ir(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Ra(this,"nodeKey",Zr,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Ir(a,x,y)}};function oc(a){return typeof a=="number"||typeof a=="string"}Lt.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Lt.hc=function(a){return a===null&&xe("Model.findNodeDataForKey:key must not be null"),a!==void 0&&oc(a)?this.kb.I(a):null},Lt.$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))){Ir(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ir(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ir(a,y,x)}}}}},Lt.xf=function(a){a!==null&&(Go(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&&xe("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,an(a.Tc,b,y)),Ra(a,"nodeDataArray",da,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}Lt.Fy=function(a){if(fn(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)},Lt.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){t:if(x=a.Tc,Array.isArray(x))b=x.indexOf(y);else{b=x.length;for(var E=0;E<b;E++)if(x[E]===y){b=E;break t}b=-1}if(0>b)return;_e(a.Tc,b)}Ra(a,"nodeDataArray",Ba,"nodeDataArray",a,y,null,b,null),a.qp(y)}Lt.nA=function(a){if(fn(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)},Lt.$z=function(a){if(a!==this.nodeDataArray&&fn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],tt=this.wa(z);if(tt!==void 0){x.add(tt);var ot=this.hc(tt);ot!==z&&(ot!==null?(this.Do(ot,z),this.lm(z,ot)):(z=this.cloneDeep(z),this.km(z,tt),this.xf(z)))}else tt=this.cloneDeep(z),this.xf(tt),x.add(this.wa(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},Lt.jp=function(a,y){y!==void 0&&(a=Dp(this,a),a instanceof Ln&&this.Vf.add(y,a))},Lt.Lv=function(){},Lt.fm=function(){},Lt.em=function(){},Lt.qp=function(){};function Ju(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Ln,a.Vf.add(y,b)),b.add(x)}}function Qu(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Ln&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function Dp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Ln?a:null)}Lt.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},vi.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):f0(this,a,!0),We(a)&&po(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 po(b),b}if(x&&We(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=va(y,b),tt=Np(a,z);tt==="GraphObject"||tt==="Diagram"||tt==="Layer"||tt==="RowColumnDefinition"||tt==="AnimationManager"||tt==="Tool"||tt==="CommandHandler"||tt==="Layout"||tt==="InputEvent"||tt==="DiagramEvent"||z instanceof vi||z instanceof Ur||z instanceof Ja||z instanceof Gr||(z=f0(a,z,!1)),Ir(x,b,z)}return po(x),x}return y instanceof Zt||y instanceof Yn||y instanceof gn||y instanceof yi||y instanceof Bi?y.copy():y}vi.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 be&&(ES=!0,qn('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),qn(" Is that really your intent?"));var b=va(a,y);b!==x&&(Ir(a,y,x),this.Fs(a,y,b,x))},Lt=vi.prototype,Lt.set=function(a,y,x){this.setDataProperty(a,y,x)},Lt.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])}},Lt.Ay=function(a,y){this.ts(a,-1,y)},Lt.ts=function(a,y,x){0>y&&(y=a.length),an(a,y,x),Ra(this,"",da,"",a,null,x,null,y)},Lt.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&xe("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];_e(a,y),Ra(this,"",Ba,"",a,x,null,y,null)},Lt.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=va(a,y),y===void 0))return"";if(typeof y=="string")return y;xe("getCategoryForNodeData found a non-string category for "+a+": "+y)},Lt.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=va(a,x);b===void 0&&(b=""),b!==y&&(Ir(a,x,y),Ra(this,"nodeCategory",Zr,x,a,b,y))}else Ir(a,x,y)}},Lt.lm=function(a,y){this.jm(y,this.Ro(a))},Lt.Tl=function(){return!1},Lt.Wj=function(){return!1},Lt.ri=function(){return!1},Lt.xs=function(){return!1},Lt.Xj=function(){return!1};function hy(){return new vi}function Np(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 Np(a,y.constructor);return typeof y}function dy(a){return Bu[a]?Bu[a]:Yt.go!==void 0&&Yt.go[a]?Yt.go[a]:null}function va(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 Ir(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){}}_t.Object.defineProperties(vi.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===""&&xe("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&xe("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];We(E)||xe("Model.nodeDataArray must only contain Objects, not: "+E),Go(E)}for(this.Tc=a,b=new xn,E=0;E<x;E++){var z=a[E],tt=this.wa(z);tt===void 0||this.kb.I(tt)!==null?b.add(z):this.kb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.$u(E),z=this.wa(E),z!==void 0&&this.kb.add(z,E);for(Ra(this,"nodeDataArray",Zr,"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"}}}),vi.prototype.setCategoryForNodeData=vi.prototype.jm,vi.prototype.getCategoryForNodeData=vi.prototype.Ro,vi.prototype.removeArrayItem=vi.prototype.ov,vi.prototype.insertArrayItem=vi.prototype.ts,vi.prototype.addArrayItem=vi.prototype.Ay,vi.prototype.assignAllDataProperties=vi.prototype.Do,vi.prototype.set=vi.prototype.set,vi.prototype.clearUnresolvedReferences=vi.prototype.Qy,vi.prototype.mergeNodeDataArray=vi.prototype.$z,vi.prototype.removeNodeDataCollection=vi.prototype.nA,vi.prototype.removeNodeData=vi.prototype.cm,vi.prototype.addNodeDataCollection=vi.prototype.Fy,vi.prototype.addNodeData=vi.prototype.xf,vi.prototype.makeNodeDataKeyUnique=vi.prototype.$u,vi.prototype.findNodeDataForKey=vi.prototype.hc,vi.prototype.containsNodeData=vi.prototype.lb,vi.prototype.setKeyForNodeData=vi.prototype.km,vi.prototype.getKeyForNodeData=vi.prototype.wa,vi.prototype.updateTargetBindings=vi.prototype.La,vi.prototype.commit=vi.prototype.commit,vi.prototype.rollbackTransaction=vi.prototype.Kf,vi.prototype.commitTransaction=vi.prototype.eb,vi.prototype.startTransaction=vi.prototype.Ea,vi.prototype.raiseDataChanged=vi.prototype.Fs,vi.prototype.raiseChanged=vi.prototype.g,vi.prototype.raiseChangedEvent=vi.prototype.cb,vi.prototype.removeChangedListener=vi.prototype.ik,vi.prototype.addChangedListener=vi.prototype.Pe,vi.prototype.writeJsonValue=vi.prototype.sm,vi.prototype.replaceJsonObjects=vi.prototype.dm,vi.prototype.applyIncrementalJSON=vi.prototype.Ky,vi.prototype.applyIncrementalJson=vi.prototype.Zw,vi.prototype.toJSON=vi.prototype.toJSON,vi.prototype.toJson=vi.prototype.np,vi.prototype.toIncrementalJSON=vi.prototype.yA,vi.prototype.toIncrementalJson=vi.prototype.$x,vi.prototype.toIncrementalData=vi.prototype.xA,vi.prototype.clear=vi.prototype.clear;var ES=!1,Bu={};vi.className="Model",vi.fromJSON=vi.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Yt.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:xe("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=Yt[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof vi?y=a:xe("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=vi.constructGraphLinksModel()),y.gp(x),y.kv(x),y},vi.safePropertyValue=va,vi.safePropertySet=Ir,Bu.Brush=hr,Bu.ChangedEvent=Gr,Bu.Geometry=Qn,Bu.Margin=Bi,Bu.Panel=Hn,Bu.Point=Zt,Bu.Rect=gn,Bu.Size=Yn,Bu.Spot=yi,Bu.Transaction=Ja,Bu.UndoManager=Ur;function Pa(a,y,x,b){po(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=AS,this.wk=null):(this.el=Tp,this.wk=b),this.st=new Ln}Pa.prototype.copy=function(){var a=new Pa;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},Lt=Pa.prototype,Lt.qb=function(a){a.classType===Pa&&(this.mode=a)},Lt.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Lt.freeze=function(){return this._isFrozen=!0,this},Lt.ka=function(){return this._isFrozen=!1,this},Lt.Kx=function(a){return a===void 0&&(a=null),this.mode=Tp,this.backConverter=a,this},Lt.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Lt.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)}Lt.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==="")qn("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=va(y,b)),z!==void 0)if(E===null)x!==""&&Ir(a,x,z);else try{if(x!==""){var tt=E(z,a);Ir(a,x,tt)}else E(z,a)}catch(ot){}}}},Lt.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,tt=a;if(E!==""&&(tt=va(a,E)),tt!==void 0&&!this.st.contains(a))try{this.st.add(a);var ot=b!==null?b.diagram:null,rt=ot!==null?ot.model:null;if(z===null){if(x!=="")rt!==null?rt.setDataProperty(y,x,tt):Ir(y,x,tt);else if(rt!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var lt=b.itemIndex,ut=b.panel.itemArray;rt.ov(ut,lt),rt.ts(ut,lt,tt)}}else try{if(x!==""){var ft=z(tt,y,rt);rt!==null?rt.setDataProperty(y,x,ft):Ir(y,x,ft)}else{var yt=z(tt,y,rt);if(yt!==void 0&&rt!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Pt=b.itemIndex,bt=b.panel.itemArray;rt.ov(bt,Pt),rt.ts(bt,Pt,yt)}}}catch(Nt){}}finally{this.st.remove(a)}}}},_t.Object.defineProperties(Pa.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&vn(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&vn(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&vn(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&vn(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&vn(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&vn(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&vn(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&vn(this),this.el=a}}}),Pa.prototype.updateSource=Pa.prototype.sp,Pa.prototype.updateTarget=Pa.prototype.Mv,Pa.prototype.ofModel=Pa.prototype.dA,Pa.prototype.ofObject=Pa.prototype.cp,Pa.prototype.makeTwoWay=Pa.prototype.Kx;var Dx="Binding",AS=new Be(Pa,"OneWay",1),Tp=new Be(Pa,"TwoWay",2);Pa.className="Binding",Pa.parseEnum=function(a,y){return function(x){return x=ei(a,x),x===null?y:x}},Pa.toString=kn,Pa.OneWay=AS,Pa.TwoWay=Tp;function zo(a,y,x){vi.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Ln,this.wb=new si,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&&(fn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}he(zo,vi),zo.constructGraphLinksModel=vi.constructGraphLinksModel,zo.prototype.cloneProtected=function(a){vi.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},Lt=zo.prototype,Lt.clear=function(){vi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Lt.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)+":"+kn(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Ql(this,E,!0)+"-->"+Ql(this,E,!1)}return y},Lt.Qv=function(a,y){this.linkKeyProperty===""&&xe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=vi.prototype.Qv.call(this,a,y),b=this,E=new Ln,z=new Ln,tt=new Ln,ot=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===da?E.add(ut.newValue):ut.change===Ba&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(ft){b.Jc(ft)&&z.add(ft)}):ut.object instanceof vi||b.lb(ut.object)||MS(b,ut.object).each(function(ft){z.add(ft)})))});var rt=this.il;rt.clear(),E.each(function(ut){rt.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=b.cloneDeep(z.Fa()),0<rt.count&&(x===null&&(x={}),y?x.removedLinkKeys=rt.Fa():x.insertedLinkKeys=rt.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<lt.count&&(x===null&&(x={}),y?x.insertedLinkKeys=lt.Fa():x.removedLinkKeys=lt.Fa()),lt.clear(),rt.clear(),x},Lt.rm=function(){var a=vi.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},Lt.gp=function(a){vi.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)},Lt.Rv=function(){var a=vi.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+ic(this,this.linkDataArray,!0);return a+y},Lt.kv=function(a){vi.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function MS(a,y){for(var x=new Ln,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];c0(a,y,E,E,x)}return x}Lt.Pv=function(a,y){this.linkKeyProperty===""&&xe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=vi.prototype.Pv.call(this,a,y),b=this,E=new Ln,z=new Ln,tt=new Ln,ot=this.vh;a.changes.each(function(ut){ut.model===b&&(ut.modelChange==="linkDataArray"?ut.change===da?E.add(ut.newValue):ut.change===Ba&&tt.add(ut.oldValue):b.Jc(ut.object)?z.add(ut.object):ut.object!==null&&(ut.object!==null&&ot&&ot.contains(ut.object)?ot.get(ut.object).each(function(ft){b.Jc(ft)&&z.add(ft)}):ut.object instanceof vi||b.lb(ut.object)||MS(b,ut.object).each(function(ft){z.add(ft)})))});var rt=this.il;rt.clear(),E.each(function(ut){rt.add(b.Ac(ut)),y||z.add(ut)});var lt=this.kl;return lt.clear(),tt.each(function(ut){lt.add(b.Ac(ut)),y&&z.add(ut)}),a=x,0<rt.count&&(a+=(y?this.Xv:this.Vv)+ic(this,rt.Fa(),!0)),0<z.count&&(a+=this.iy+ic(this,z.Fa(),!0)),0<lt.count&&(a+=(y?this.Vv:this.Xv)+ic(this,lt.Fa(),!0)),lt.clear(),rt.clear(),a},Lt.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)&&xe("applyIncrementalJson cannot change Model properties"),vi.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,b=0;b<x;b++){var E=y[b],z=this.jh(E);z===null&&(z=this.Jo({}),this.Ks(z,E),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,b=0;b<x;b++)if(E=y[b],z=this.Ac(E),z=this.jh(z),z!==null){for(var tt in E)tt!=="__gohashid"&&tt!==this.linkKeyProperty&&this.setDataProperty(z,tt,E[tt]);BS(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(tt=a.length,y=0;y<tt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},zo.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Zr){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),Ir(x,b,E);return}}else if(a.change===da){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,We(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===Ba){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,We(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}}vi.prototype.changeState.call(this,a,y)}},Lt=zo.prototype,Lt.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),Ir(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Lt.yx=function(a){return Ql(this,a,!0)},Lt.wv=function(a,y){bg(this,a,y,!0)},Lt.Bx=function(a){return Ql(this,a,!1)},Lt.Bv=function(a,y){bg(this,a,y,!1)};function Ql(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=va(y,a),a!==void 0))){if(oc(a))return a;xe((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=va(y,E);z!==x&&(Qu(a,z,y),Ir(y,E,x),a.hc(x)===null&&Ju(a,x,y),Ra(a,b?"linkFromKey":"linkToKey",Zr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ir(y,E,x)}}Lt.zx=function(a){return g0(this,a,!0)},Lt.xv=function(a,y){Eg(this,a,y,!0)},Lt.Cx=function(a){return g0(this,a,!1)},Lt.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=va(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=va(y,E);z===void 0&&(z=""),z!==x&&(Ir(y,E,x),Ra(a,b?"linkFromPortId":"linkToPortId",Zr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ir(y,E,x)}}Lt.Ef=function(a){if(a===null)return p0;var y=this.je;return y===""?p0:(a=va(a,y),a===void 0?p0:a)},Lt.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=va(a,x);if(b===void 0&&(b=p0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)Qu(this,b[z],a);for(Ir(a,x,y),E=y.length,z=0;z<E;z++){var tt=y[z];this.hc(tt)===null&&Ju(this,tt,a)}Ra(this,"linkLabelKeys",Zr,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Ir(a,x,y)}},Lt.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=va(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&&Ju(this,y,a),Ra(this,"linkLabelKeys",da,x,a,null,y,null,E)))}else xe(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Lt.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=va(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(Qu(this,y,a),Ra(this,"linkLabelKeys",Ba,x,a,y,null,E,null)))}else b!==void 0&&xe(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Lt.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=va(a,y),y!==void 0)){if(oc(y))return y;xe("Key value for link data "+a+" is not a number or a string: "+y)}}},Lt.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=va(a,x);b!==y&&this.jh(y)===null&&(Ir(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Ra(this,"linkKey",Zr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ir(a,x,y)}},Lt.jh=function(a){return a===null&&xe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&oc(a)?this.wb.I(a):null},Lt.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))){Ir(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ir(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ir(a,y,x)}}}}},Lt.Jc=function(a){return a===null?!1:this.$f.contains(a)},Lt.fi=function(a){a!==null&&(Go(a),this.Jc(a)||FS(this,a,!0))};function FS(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&&xe("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)),Ra(a,"linkDataArray",da,"linkDataArray",a,null,y,null,b),cy(a,y)}Lt.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)},Lt.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(Ra(a,"linkDataArray",Ba,"linkDataArray",a,y,null,b,null),x=Ql(a,y,!0),Qu(a,x,y),x=Ql(a,y,!1),Qu(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],Qu(a,x,y)}Lt.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)},Lt.Zz=function(a){if(this.linkKeyProperty===""&&xe("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&fn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var b=a.length,E=0;E<b;E++){var z=a[E],tt=this.Ac(z);if(tt!==void 0){x.add(tt);var ot=this.jh(tt);ot!==z&&(ot!==null?(this.Do(ot,z),BS(this,z,ot)):(z=this.cloneDeep(z),this.Ks(z,tt),this.fi(z)))}else tt=this.cloneDeep(z),this.fi(tt),x.add(this.Ac(tt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function cy(a,y){var x=Ql(a,y,!0);x=a.Vl(x),a.hc(x)===null&&Ju(a,x,y),x=Ql(a,y,!1),x=a.Vl(x),a.hc(x)===null&&Ju(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&&Ju(a,x,y)}Lt.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):f0(this,a,!0),We(a)&&(po(a),this.lf!==""&&Ir(a,this.lf,void 0),this.mf!==""&&Ir(a,this.mf,void 0),this.je!==""&&Ir(a,this.je,[])),a},Lt.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!va(a,y)},Lt.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=va(a,y),y!==void 0)){if(oc(y))return y;xe("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Lt.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=va(a,x);b!==y&&(Qu(this,b,a),Ir(a,x,y),this.hc(y)===null&&Ju(this,y,a),Ra(this,"nodeGroupKey",Zr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ir(a,x,y)}},zo.prototype.copyNodeData=function(a){return a===null?null:(a=vi.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||va(a,this.Je)===void 0||Ir(a,this.Je,void 0),a)},zo.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=va(a,y);b!==x&&(Ir(a,y,x),this.Fs(a,y,b,x))},Lt=zo.prototype,Lt.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&&va(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},Lt.jp=function(a,y){vi.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(Ql(this,b,!0)===E){var tt=this.lf;Ir(b,tt,z),Ra(this,"linkFromKey",Zr,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)}if(Ql(this,b,!1)===E&&(tt=this.mf,Ir(b,tt,z),Ra(this,"linkToKey",Zr,tt,b,E,z),typeof tt=="string"&&this.La(b,tt)),tt=this.Ef(b),Array.isArray(tt))for(var ot=tt.length,rt=this.je,lt=0;lt<ot;lt++)tt[lt]===E&&(tt[lt]=z,Ra(this,"linkLabelKeys",da,rt,b,E,z,lt,lt))}},Lt.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ir(a,b,x),Ra(this,"nodeGroupKey",Zr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Lt.Lv=function(){vi.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)cy(this,a[x])},Lt.fm=function(a){vi.prototype.fm.call(this,a),a=this.wa(a);var y=Dp(this,a);if(y!==null){var x=rn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Ra(this,"nodeGroupKey",Zr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Ql(this,b,!0)===a&&(E=this.lf,Ra(this,"linkFromKey",Zr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Ql(this,b,!1)===a&&(E=this.mf,Ra(this,"linkToKey",Zr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),E=this.Ef(b),Array.isArray(E))for(var z=E.length,tt=this.je,ot=0;ot<z;ot++)E[ot]===a&&(Ra(this,"linkLabelKeys",da,tt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)Qu(this,a,x[y]);pn(x)}},Lt.em=function(a){vi.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&Ju(this,y,a)},Lt.qp=function(a){vi.prototype.qp.call(this,a);var y=this.lh(a);Qu(this,y,a)},Lt.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=va(a,y),y===void 0))return"";if(typeof y=="string")return y;xe("getCategoryForLinkData found a non-string category for "+a+": "+y)},zo.prototype.getLinkCategoryForData=function(a){return this.ps(a)},zo.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=va(a,x);b===void 0&&(b=""),b!==y&&(Ir(a,x,y),Ra(this,"linkCategory",Zr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ir(a,x,y)}},zo.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Lt=zo.prototype,Lt.lm=function(a,y){vi.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function BS(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))}Lt.Wj=function(){return!0},Lt.ri=function(){return!0},Lt.xs=function(){return!0},Lt.Xj=function(){return!0},_t.Object.defineProperties(zo.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];We(E)||xe("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),Go(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new xn,E=0;E<x;E++){var z=a[E],tt=this.Ac(z);tt===void 0||this.wb.I(tt)!==null?b.add(z):this.wb.add(tt,z)}for(b=b.iterator;b.next();)E=b.value,this.Bs(E),z=this.Ac(E),z!==void 0&&this.wb.add(z,E)}for(b=new Ln,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Ra(this,"linkDataArray",Zr,"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"}}}),zo.prototype.setCategoryForLinkData=zo.prototype.lp,zo.prototype.getCategoryForLinkData=zo.prototype.ps,zo.prototype.assignAllDataProperties=zo.prototype.Do,zo.prototype.setGroupKeyForNodeData=zo.prototype.mp,zo.prototype.getGroupKeyForNodeData=zo.prototype.lh,zo.prototype.isGroupForNodeData=zo.prototype.Yu,zo.prototype.copyLinkData=zo.prototype.Jo,zo.prototype.mergeLinkDataArray=zo.prototype.Zz,zo.prototype.removeLinkDataCollection=zo.prototype.lA,zo.prototype.removeLinkData=zo.prototype.bm,zo.prototype.addLinkDataCollection=zo.prototype.Ey,zo.prototype.addLinkData=zo.prototype.fi,zo.prototype.containsLinkData=zo.prototype.Jc,zo.prototype.makeLinkDataKeyUnique=zo.prototype.Bs,zo.prototype.findLinkDataForKey=zo.prototype.jh,zo.prototype.setKeyForLinkData=zo.prototype.Ks,zo.prototype.getKeyForLinkData=zo.prototype.Ac,zo.prototype.removeLabelKeyForLinkData=zo.prototype.Qx,zo.prototype.addLabelKeyForLinkData=zo.prototype.Bu,zo.prototype.setLabelKeysForLinkData=zo.prototype.Ls,zo.prototype.getLabelKeysForLinkData=zo.prototype.Ef,zo.prototype.setToPortIdForLinkData=zo.prototype.Cv,zo.prototype.getToPortIdForLinkData=zo.prototype.Cx,zo.prototype.setFromPortIdForLinkData=zo.prototype.xv,zo.prototype.getFromPortIdForLinkData=zo.prototype.zx,zo.prototype.setToKeyForLinkData=zo.prototype.Bv,zo.prototype.getToKeyForLinkData=zo.prototype.Bx,zo.prototype.setFromKeyForLinkData=zo.prototype.wv,zo.prototype.getFromKeyForLinkData=zo.prototype.yx,zo.prototype.clear=zo.prototype.clear;var p0=Object.freeze([]);zo.className="GraphLinksModel",Bu.GraphLinksModel=zo,vi.constructGraphLinksModel=vi.constructGraphLinksModel=function(){return new zo},vi.initDiagramModel=hy=function(){return new zo};function Qs(a,y){vi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(fn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}he(Qs,vi),Qs.constructGraphLinksModel=vi.constructGraphLinksModel,Qs.prototype.cloneProtected=function(a){vi.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Lt=Qs.prototype,Lt.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)+":"+kn(E)}}return y},Lt.rm=function(){var a=vi.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Lt.gp=function(a){vi.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Lt.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&xe("applyIncrementalJson cannot change Model properties"),vi.prototype.fp.call(this,a)},Lt.Vl=function(a){return a},Lt.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=va(a,y),y!==void 0)){if(oc(y))return y;xe("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Lt.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=va(a,x);b!==y&&(Qu(this,b,a),Ir(a,x,y),this.hc(y)===null&&Ju(this,y,a),Ra(this,"nodeParentKey",Zr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ir(a,x,y)}},Lt.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=va(a,y),y===void 0)?"":typeof y=="string"?y:(xe("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Qs.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Qs.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=va(a,x);b===void 0&&(b=""),b!==y&&(Ir(a,x,y),Ra(this,"parentLinkCategory",Zr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ir(a,x,y)}},Qs.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Qs.prototype.copyNodeData=function(a){return a===null?null:(a=vi.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||va(a,this.Ke)===void 0||Ir(a,this.Ke,void 0),a)},Qs.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=va(a,y);b!==x&&(Ir(a,y,x),this.Fs(a,y,b,x))},Lt=Qs.prototype,Lt.jp=function(a,y){vi.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Lt.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ir(a,b,x),Ra(this,"nodeParentKey",Zr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},Lt.fm=function(a){vi.prototype.fm.call(this,a),a=this.wa(a);var y=Dp(this,a);if(y!==null){var x=rn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Ra(this,"nodeParentKey",Zr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)Qu(this,a,x[y]);pn(x)}},Lt.em=function(a){vi.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&Ju(this,y,a)},Lt.qp=function(a){vi.prototype.qp.call(this,a);var y=this.mh(a);Qu(this,y,a)},Lt.lm=function(a,y){vi.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Lt.Tl=function(){return!0},Lt.xs=function(){return!0},_t.Object.defineProperties(Qs.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"}}}),Qs.prototype.setParentLinkCategoryForNodeData=Qs.prototype.Ms,Qs.prototype.getParentLinkCategoryForNodeData=Qs.prototype.ss,Qs.prototype.setParentKeyForNodeData=Qs.prototype.qe,Qs.prototype.getParentKeyForNodeData=Qs.prototype.mh,Qs.className="TreeModel",Bu.TreeModel=Qs;function qr(a){Hr.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=Du,this.Ti=0,this.Zv=new Zt,this.Jp=this.me=0,this.Xr=new zp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=Du,this.K=qs,this.nd=Ag,this.hd=oy,this.tf=6,this.Nn=P0,a&&Object.assign(this,a)}he(qr,Hr),qr.prototype.cloneProtected=function(a){Hr.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},qr.prototype.qb=function(a){a.classType===qr?a===x0||a===w0||a===y0||a===S0||a===Ag?this.sorting=a:a===Jc||a===Lg||a===qs||a===ac?this.direction=a:a===kd||a===rc||a===Du||a===Nu?this.arrangement=a:(a===Mf||a===P0)&&(this.nodeDiameterFormula=a):Hr.prototype.qb.call(this,a)},qr.prototype.createNetwork=function(){return new Mg(this)},qr.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 xn;y.addAll(a.iterator),a=new xn;var x=new xn,b=this.sort(y),E,z,tt=this.Jp,ot=this.arrangement,rt=this.nodeDiameterFormula,lt=this.radius;(!isFinite(lt)||0>=lt)&&(lt=NaN);var ut=this.aspectRatio;(!isFinite(ut)||0>=ut)&&(ut=1);var ft=this.startAngle;isFinite(ft)||(ft=0);var yt=this.sweepAngle;if((!isFinite(yt)||360<yt||1>yt)&&(yt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===Nu&&rt===Mf?ot=Du:ot===Nu&&rt!==Mf&&(ot=this.arrangement),(this.direction===Jc||this.direction===Lg)&&this.sorting!==Ag){for(rt=0;!(rt>=b.length)&&(a.add(b.M(rt)),!(rt+1>=b.length));rt+=2)x.add(b.M(rt+1));this.direction===Jc?(this.arrangement===Nu&&a.reverse(),b=new xn,b.addAll(a),b.addAll(x)):(this.arrangement===Nu&&x.reverse(),b=new xn,b.addAll(x),b.addAll(a))}rt=b.length;for(var Pt=z=E=0;Pt<b.length;Pt++){var bt=ft+yt*z*(this.direction===qs?1:-1)/rt,Nt=b.M(Pt).diameter;isNaN(Nt)&&(Nt=sc(b.M(Pt),bt)),360>yt&&(Pt===0||Pt===b.length-1)&&(Nt/=2),E+=Nt,z++}if(isNaN(lt)||ot===Nu){if(isNaN(y)&&(y=6),ot!==Du&&ot!==Nu){for(z=-1/0,tt=0;tt<rt;tt++)Pt=b.M(tt),E=b.M(tt===rt-1?0:tt+1),isNaN(Pt.diameter)&&sc(Pt,0),isNaN(E.diameter)&&sc(E,0),z=Math.max(z,(Pt.diameter+E.diameter)/2);tt=z+y,ot===kd?lt=(z+y)/(2*Math.PI/rt):lt=m0(this,tt*(360<=yt?rt:rt-1),ut,ft*Math.PI/180,yt*Math.PI/180)}else lt=m0(this,E+(360<=yt?rt:rt-1)*(ot!==Nu?y:1.6*y),ut,ft*Math.PI/180,yt*Math.PI/180);z=lt*ut}else if(z=lt*ut,Pt=fy(this,lt,z,ft*Math.PI/180,yt*Math.PI/180),isNaN(y))(ot===Du||ot===Nu)&&(y=(Pt-E)/(360<=yt?rt:rt-1));else if(ot===Du||ot===Nu)Pt=(Pt-E)/(360<=yt?rt:rt-1),Pt<y?(lt=m0(this,E+y*(360<=yt?rt:rt-1),ut,ft*Math.PI/180,yt*Math.PI/180),z=lt*ut):y=Pt;else{for(tt=-1/0,E=0;E<rt;E++)bt=b.M(E),Nt=b.M(E===rt-1?0:E+1),isNaN(bt.diameter)&&sc(bt,0),isNaN(Nt.diameter)&&sc(Nt,0),tt=Math.max(tt,(bt.diameter+Nt.diameter)/2);tt+=y,E=m0(this,tt*(360<=yt?rt:rt-1),ut,ft*Math.PI/180,yt*Math.PI/180),E>lt?(lt=E,z=lt*ut):tt=Pt/(360<=yt?rt:rt-1)}if(this.kw=ot,this.lc=lt,this.Zm=ut,this.lw=ft,this.Wp=yt,this.Ti=y,this.me=z,this.Jp=tt,y=b,b=this.kw,ot=this.lc,lt=this.lw,ut=this.Wp,ft=this.Ti,yt=this.me,rt=this.Jp,this.direction!==Jc&&this.direction!==Lg||b!==Nu)if(this.direction===Jc||this.direction===Lg){switch(tt=0,b){case rc:tt=180*v0(this,ot,yt,lt,rt)/Math.PI;break;case Du:rt=y=0,tt=a.first(),tt!==null&&(y=sc(tt,Math.PI/2)),tt=x.first(),tt!==null&&(rt=sc(tt,Math.PI/2)),tt=180*v0(this,ot,yt,lt,ft+(y+rt)/2)/Math.PI;break;case kd:tt=ut/y.length}if(this.direction===Jc){switch(b){case rc:Rp(this,a,lt,ac);break;case Du:Ip(this,a,lt,ac);break;case kd:Op(this,a,ut/2,lt,ac)}switch(b){case rc:Rp(this,x,lt+tt,qs);break;case Du:Ip(this,x,lt+tt,qs);break;case kd:Op(this,x,ut/2,lt+tt,qs)}}else{switch(b){case rc:Rp(this,x,lt,ac);break;case Du:Ip(this,x,lt,ac);break;case kd:Op(this,x,ut/2,lt,ac)}switch(b){case rc:Rp(this,a,lt+tt,qs);break;case Du:Ip(this,a,lt+tt,qs);break;case kd:Op(this,a,ut/2,lt+tt,qs)}}}else switch(b){case rc:Rp(this,y,lt,this.direction);break;case Du:Ip(this,y,lt,this.direction);break;case kd:Op(this,y,ut,lt,this.direction);break;case Nu:DS(this,y,ut,lt,this.direction)}else DS(this,y,ut,lt-ut/2,qs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function Op(a,y,x,b,E){var z=a.Wp,tt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,rt=0;rt<ot;rt++){var lt=b+(E===qs?rt*x/(360<=z?ot:ot-1):-(rt*x)/ot),ut=y.M(rt),ft=tt*Math.tan(lt)/a;ft=Math.sqrt((tt*tt+a*a*ft*ft)/(1+ft*ft)),ut.centerX=ft*Math.cos(lt),ut.centerY=ft*Math.sin(lt),ut.actualAngle=180*lt/Math.PI}}function Ip(a,y,x,b){var E=a.lc,z=a.me,tt=a.Ti;x=x*Math.PI/180;for(var ot=y.length,rt=0;rt<ot;rt++){var lt=y.M(rt),ut=y.M(rt===ot-1?0:rt+1),ft=z*Math.sin(x);lt.centerX=E*Math.cos(x),lt.centerY=ft,lt.actualAngle=180*x/Math.PI,isNaN(lt.diameter)&&sc(lt,0),isNaN(ut.diameter)&&sc(ut,0),lt=v0(a,E,z,b===qs?x:-x,(lt.diameter+ut.diameter)/2+tt),x+=b===qs?lt:-lt}}function Rp(a,y,x,b){var E=a.lc,z=a.me,tt=a.Jp;x=x*Math.PI/180;for(var ot=y.length,rt=0;rt<ot;rt++){var lt=y.M(rt);lt.centerX=E*Math.cos(x),lt.centerY=z*Math.sin(x),lt.actualAngle=180*x/Math.PI,lt=v0(a,E,z,b===qs?x:-x,tt),x+=b===qs?lt:-lt}}function DS(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new zp,360>x){for(z=b+(E===qs?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 NS(a,y,x,b,E);a.Xr.commit(y)}function NS(a,y,x,b,E){var z=a.lc,tt=a.Ti,ot=a.Zm,rt=z*Math.cos(b*Math.PI/180),lt=a.me*Math.sin(b*Math.PI/180),ut=y.Fa();if(ut.length===3)ut[0].centerX=z,ut[0].centerY=0,ut[1].centerX=ut[0].centerX-ut[0].width/2-ut[1].width/2-tt,ut[1].y=ut[0].y,ut[2].centerX=(ut[0].centerX+ut[1].centerX)/2,ut[2].y=ut[0].y-ut[2].height-tt;else if(ut.length===4)ut[0].centerX=z,ut[0].centerY=0,ut[2].centerX=-ut[0].centerX,ut[2].centerY=ut[0].centerY,ut[1].centerX=0,ut[1].y=Math.min(ut[0].y,ut[2].y)-ut[1].height-tt,ut[3].centerX=0,ut[3].y=Math.max(ut[0].y+ut[0].height+tt,ut[2].y+ut[2].height+tt);else{z=Zt.alloc();for(var ft=0;ft<ut.length&&(ut[ft].centerX=rt,ut[ft].centerY=lt,!(ft>=ut.length-1));ft++)OS(a,rt,lt,ut,ft,E,z)||IS(a,rt,lt,ut,ft,E,z),rt=z.x,lt=z.y;if(Zt.free(z),a.mj++,!(23<a.mj)){rt=ut[0].centerX,lt=ut[0].centerY,z=ut[ut.length-1].centerX,ft=ut[ut.length-1].centerY;var yt=Math.abs(rt-z)-((ut[0].width+ut[ut.length-1].width)/2+tt),Pt=Math.abs(lt-ft)-((ut[0].height+ut[ut.length-1].height)/2+tt);tt=0,1>Math.abs(Pt)?Math.abs(rt-z)<(ut[0].width+ut[ut.length-1].width)/2&&(tt=0):tt=0<Pt?Pt:1>Math.abs(yt)?0:yt,rt=Math.abs(z)>Math.abs(ft)?0<z!=lt>ft:0<ft!=rt<z,(rt=E===qs?rt:!rt)&&(tt=-Math.abs(tt),tt=Math.min(tt,-ut[ut.length-1].width),tt=Math.min(tt,-ut[ut.length-1].height)),a.Xr.compare(tt,ut),1<Math.abs(tt)&&(a.lc=8>a.mj?a.lc-tt/(2*Math.PI):5>ut.length&&10<tt?a.lc/2:a.lc-(0<tt?1.7:-2.3),a.me=a.lc*ot,NS(a,y,x,b,E))}}}function TS(a,y,x,b,E){for(var z=a.lc,tt=a.me,ot=a.Zm,rt=z*Math.cos(b*Math.PI/180),lt=tt*Math.sin(b*Math.PI/180),ut=Zt.alloc(),ft=y.Fa(),yt=0;yt<ft.length&&(ft[yt].centerX=rt,ft[yt].centerY=lt,!(yt>=ft.length-1));yt++)OS(a,rt,lt,ft,yt,E,ut)||IS(a,rt,lt,ft,yt,E,ut),rt=ut.x,lt=ut.y;if(Zt.free(ut),a.mj++,!(23<a.mj)){if(rt=Math.atan2(lt,rt),rt=E===qs?a.gt-rt:rt-a.gt,rt=Math.abs(rt)<Math.abs(rt-2*Math.PI)?rt:rt-2*Math.PI,z=rt*(z+tt)/2,tt=a.Xr,Math.abs(z)<Math.abs(tt.Pl))for(tt.Pl=z,tt.mk=[],tt.tm=[],rt=0;rt<ft.length;rt++)tt.mk[rt]=ft[rt].bounds.x,tt.tm[rt]=ft[rt].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*ot,TS(a,y,x,b,E))}}function OS(a,y,x,b,E,z,tt){var ot=a.lc,rt=a.me,lt=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var ut=!1;if(0<=x!=(z===qs)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return tt.x=z,tt.y=lt,!1;ut=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return tt.x=z,tt.y=lt,!1;ut=!0}return lt=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*rt,0>x!==ut&&(lt=-lt),Math.abs(x-lt)>(b[E].height+b[E+1].height)/2?(tt.x=z,tt.y=lt,!1):(tt.x=z,tt.y=lt,!0)}function IS(a,y,x,b,E,z,tt){var ot=a.lc,rt=a.me,lt=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===qs)){if(z=x-a,z<-rt){if(z=x+a,z>rt){tt.x=lt,tt.y=z;return}b=!0}}else if(z=x+a,z>rt){if(z=x-a,z<-rt){tt.x=lt,tt.y=z;return}b=!0}lt=Math.sqrt(1-Math.min(1,z*z/(rt*rt)))*ot,0>y!==b&&(lt=-lt),tt.x=lt,tt.y=z}qr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},qr.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 Zt(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))},qr.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 tt=0,ot=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),rt=0,lt=0;lt<=z;lt++){b!==void 0&&E!==void 0?rt=b+lt*E/z:rt=lt*Math.PI/(2*z);var ut=Math.sin(rt);tt+=Math.sqrt(1-a*a*ut*ut)*ot}return b!==void 0&&E!==void 0?(y>x?y:x)*tt:4*(y>x?y:x)*tt}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,tt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ot=0;;ot++){var rt=Math.sin(b+ot*a);if(tt+=(y>x?y:x)*Math.sqrt(1-z*z*rt*rt)*a,tt>=E)return ot*a}}qr.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 Ag:return this.ak(Nx(a));default:xe("Invalid sorting type.")}return a};function Nx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new xn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var tt=0;tt<a.length;tt++){var ot=a.M(tt).edgesCount;ot>E&&(E=ot,z=tt)}else for(tt=0;tt<a.length;tt++)ot=y[tt],ot>E&&(E=ot,z=tt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),tt=z.sourceEdges;tt.next();)E=a.indexOf(tt.value.fromVertex),0>E||0<=y[E]&&y[E]++;for(z=z.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),0>E||0<=y[E]&&y[E]++}return x}qr.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var b=a.M(x);y[x]=[];for(var E,z=b.destinationEdges;z.next();)E=a.indexOf(z.value.toVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E);for(b=b.sourceEdges;b.next();)E=a.indexOf(b.value.fromVertex),E!==x&&0>y[x].indexOf(E)&&y[x].push(E)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var tt=[],ot=[];b=[],E=new xn;for(var rt=0,lt=0;lt<y.length;lt++){var ut=y[lt].length;if(ut===1)b.push(lt);else if(ut===0)E.add(a.M(lt));else{if(rt===0)x.push(lt);else{for(var ft=ut=1/0,yt=-1,Pt=[],bt=0;bt<x.length;bt++)0>y[x[bt]].indexOf(x[bt===x.length-1?0:bt+1])&&Pt.push(bt===x.length-1?0:bt+1);if(Pt.length===0)for(bt=0;bt<x.length;bt++)Pt.push(bt);for(bt=0;bt<Pt.length;bt++){for(var Nt=Pt[bt],Qt=y[lt],Wt=0,ae=0;ae<tt.length;ae++){var ue=z[tt[ae]],ce=z[ot[ae]];if(ue<ce){var Pe=ue;ue=ce}else Pe=ce;if(Pe<Nt&&Nt<=ue)for(ce=0;ce<Qt.length;ce++){var Je=Qt[ce];0>x.indexOf(Je)||Pe<z[Je]&&z[Je]<ue||Pe===z[Je]||ue===z[Je]||Wt++}else for(ce=0;ce<Qt.length;ce++)Je=Qt[ce],0>x.indexOf(Je)||Pe<z[Je]&&z[Je]<ue&&Pe!==z[Je]&&ue!==z[Je]&&Wt++}for(Qt=Wt,ae=Wt=0;ae<y[lt].length;ae++)Pe=x.indexOf(y[lt][ae]),0<=Pe&&(Pe=Math.abs(Nt-(Pe>=Nt?Pe+1:Pe)),Wt+=Pe<x.length+1-Pe?Pe:x.length+1-Pe);for(ae=0;ae<tt.length;ae++)Pe=z[tt[ae]],ue=z[ot[ae]],Pe>=Nt&&Pe++,ue>=Nt&&ue++,Pe>ue&&(ce=ue,ue=Pe,Pe=ce),ue-Pe<(x.length+2)/2==(Pe<Nt&&Nt<=ue)&&Wt++;(Qt<ut||Qt===ut&&Wt<ft)&&(ut=Qt,ft=Wt,yt=Nt)}for(x.splice(yt,0,lt),ut=0;ut<x.length;ut++)z[x[ut]]=ut;for(ut=0;ut<y[lt].length;ut++)ft=y[lt][ut],0<=x.indexOf(ft)&&(tt.push(lt),ot.push(ft))}rt++}}for(tt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(rt=b[ot],lt=y[rt][0],ut=x.indexOf(lt),0<=ut){for(yt=ft=0;yt<y[lt].length;yt++)Pt=x.indexOf(y[lt][yt]),0>Pt||Pt===ut||(bt=Pt>ut?Pt-ut:ut-Pt,ft+=Pt<ut!=bt>tt-bt?1:-1);x.splice(0>ft?ut:ut+1,0,rt),b.splice(ot,1),ot--}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},_t.Object.defineProperties(qr.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!==Nu&&a!==Du&&a!==rc&&a!==kd||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==qs&&a!==ac&&a!==Jc&&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!==Ag||(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!==Mf||(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 Du=new Be(qr,"ConstantSpacing",0),rc=new Be(qr,"ConstantDistance",1),kd=new Be(qr,"ConstantAngle",2),Nu=new Be(qr,"Packed",3),qs=new Be(qr,"Clockwise",4),ac=new Be(qr,"Counterclockwise",5),Jc=new Be(qr,"BidirectionalLeft",6),Lg=new Be(qr,"BidirectionalRight",7),y0=new Be(qr,"Forwards",8),S0=new Be(qr,"Reverse",9),x0=new Be(qr,"Ascending",10),w0=new Be(qr,"Descending",11),Ag=new Be(qr,"Optimized",12),P0=new Be(qr,"Pythagorean",13),Mf=new Be(qr,"Circular",14);qr.className="CircularLayout",qr.ConstantSpacing=Du,qr.ConstantDistance=rc,qr.ConstantAngle=kd,qr.Packed=Nu,qr.Clockwise=qs,qr.Counterclockwise=ac,qr.BidirectionalLeft=Jc,qr.BidirectionalRight=Lg,qr.Forwards=y0,qr.Reverse=S0,qr.Ascending=x0,qr.Descending=w0,qr.Optimized=Ag,qr.Pythagorean=P0,qr.Circular=Mf;function zp(){this.Pl=-1/0,this.tm=this.mk=null}zp.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},zp.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]}},zp.className="VertexArrangement";function Mg(a){Ar.call(this,a)}he(Mg,Ar),Mg.prototype.createVertex=function(){return new jp(this)},Mg.prototype.createEdge=function(){return new C0(this)},Mg.className="CircularNetwork";function jp(a){Va.call(this,a),this.u=this.Si=NaN}he(jp,Va);function sc(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===Nu)if(x.nodeDiameterFormula===Mf)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===Mf?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}_t.Object.defineProperties(jp.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)}}}),jp.className="CircularVertex";function C0(a){Fl.call(this,a)}he(C0,Fl),C0.className="CircularEdge";function xs(a){Hr.call(this),this.ah=null,this.An=0,this.$d=new Yn(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)}he(xs,Hr),xs.prototype.cloneProtected=function(a){Hr.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},xs.prototype.createNetwork=function(){return new Ff(this)},xs.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 tt=b=x.iterator;b=this.arrangementSpacing;var ot=tt.count,rt=!0;z=E=0;for(var lt=rn(),ut=0;ut<ot+y.vertexes.count+2;ut++)lt[ut]=null;ot=0,tt.reset();for(var ft=gn.alloc();tt.next();)if(ut=tt.value,this.computeBounds(ut,ft),rt)rt=!1,E=ft.x+ft.width/2,z=ft.y+ft.height/2,lt[0]=new Zt(ft.x+ft.width+b.width,ft.y),lt[1]=new Zt(ft.x,ft.y+ft.height+b.height),ot=2;else{var yt=zS(lt,ot,E,z,ft.width,ft.height,b),Pt=lt[yt],bt=new Zt(Pt.x+ft.width+b.width,Pt.y),Nt=new Zt(Pt.x,Pt.y+ft.height+b.height);for(yt+1<ot&<.splice(yt+1,0,null),lt[yt]=bt,lt[yt+1]=Nt,ot++,yt=Pt.x-ft.x,Pt=Pt.y-ft.y,ut=ut.vertexes.iterator;ut.next();)bt=ut.value,bt.centerX+=yt,bt.centerY+=Pt}for(gn.free(ft),ut=y.vertexes.iterator;ut.next();)tt=ut.value,yt=tt.bounds,2>ot?(E=yt.x+yt.width/2,z=yt.y+yt.height/2,lt[0]=new Zt(yt.x+yt.width+b.width,yt.y),lt[1]=new Zt(yt.x,yt.y+yt.height+b.height),ot=2):(rt=zS(lt,ot,E,z,yt.width,yt.height,b),ft=lt[rt],Pt=new Zt(ft.x+yt.width+b.width,ft.y),yt=new Zt(ft.x,ft.y+yt.height+b.height),rt+1<ot&<.splice(rt+1,0,null),lt[rt]=Pt,lt[rt+1]=yt,ot++,tt.centerX=ft.x+tt.width/2,tt.centerY=ft.y+tt.height/2);for(pn(lt),b=x.iterator;b.next();){for(x=b.value,E=x.vertexes.iterator;E.next();)y.dh(E.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}WS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},xs.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},xs.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),WS(a,z),Ix(a,E),y=E.vertexes.Fa(),y.sort(function(tt,ot){return tt===null||ot===null||tt===ot?0:ot.Vd-tt.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 Ff(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var tt=new HS;tt.Rs=z.Vd,tt.Ss=z.width,tt.Qs=z.height,tt.Sv=z.focus.x,tt.Tv=z.focus.y,z.We===null&&(z.We=new xn),z.We.add(tt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var ot=z.value;E=ot.fromVertex,tt=ot.toVertex,E.network===b&&tt.network===b?b.Bo(ot):E.network===b?(ot=E.Hj,ot===null&&(ot=new xn,E.Hj=ot),ot.add(tt),E.Vd--,E.sh+=tt.sh):tt.network===b&&(ot=tt.Hj,ot===null&&(ot=new xn,tt.Hj=ot),ot.add(E),tt.Vd--,tt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,De.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var rt=E.Hj;if(rt!==null&&0<rt.count&&(tt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=tt))){for(var lt=ot=0,ut=rt.count-tt;ut<rt.count;ut++){var ft=rt.M(ut),yt=null;for(z=ft.edges.iterator;z.next();){var Pt=z.value;if(Pt.Ax(ft)===E){yt=Pt;break}}yt!==null&&(lt+=yt.length,ot+=ft.width*ft.height)}z=E.centerX,rt=E.centerY,ut=E.width,ft=E.height,yt=E.focus,Pt=ut*ft,1>Pt&&(Pt=1),ot=De.sqrt((ot+Pt+lt*lt*4/(tt*tt))/Pt),tt=(ot-1)*ut/2,ot=(ot-1)*ft/2,E.bounds=new gn(z-yt.x-tt,rt-yt.y-ot,ut+2*tt,ft+2*ot),E.focus=new Zt(yt.x+tt,yt.y+ot)}}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,tt=E.Tv;b.bounds=new gn(b.centerX-z,b.centerY-tt,E.Ss,E.Qs),b.focus=new Zt(z,tt),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,tt=y.height;y.We!==null&&0<y.We.count&&(tt=y.We.M(0),z=tt.Ss,tt=tt.Qs),z=De.sqrt(z*z+tt*tt)/2;for(var ot=!1,rt=tt=0,lt=0,ut=y.vertexes.iterator;ut.next();){var ft=ut.value;1>=ft.Vd?rt++:(ot=!0,lt++,tt+=Math.atan2(y.centerY-ft.centerY,y.centerX-ft.centerX))}if(rt!==0){for(0<lt&&(tt/=lt),lt=y=0,y=ot?2*Math.PI/(rt+1):2*Math.PI/rt,rt%2===0&&(lt=y/2),1<x.count&&x.sort(function(Pt,bt){return Pt===null||bt===null||Pt===bt?0:bt.width*bt.height-Pt.width*Pt.height}),ot=rt%2===0?0:1,x=x.iterator;x.next();)if(rt=x.value,!(1<rt.Vd||a.isFixed(rt))){for(ut=null,ft=rt.edges.iterator;ft.next();){ut=ft.value;break}ft=rt.width;var yt=rt.height;ft=De.sqrt(ft*ft+yt*yt)/2,ut=z+ut.length+ft,ft=tt+(y*(ot/2>>1)+lt)*(ot%2===0?1:-1),rt.centerX=b+ut*Math.cos(ft),rt.centerY=E+ut*Math.sin(ft),ot++}}}}function zS(a,y,x,b,E,z,tt){var ot=9e19,rt=-1,lt=0;t:for(;lt<y;lt++){var ut=a[lt],ft=ut.x-x,yt=ut.y-b;if(ft=ft*ft+yt*yt,ft<ot){for(yt=lt-1;0<=yt;yt--)if(a[yt].y>ut.y&&a[yt].x-ut.x<E+tt.width)continue t;for(yt=lt+1;yt<y;yt++)if(a[yt].x>ut.x&&a[yt].y-ut.y<z+tt.height)continue t;rt=lt,ot=ft}}return rt}xs.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},xs.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 jS(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,tt=z.x;y=z.y;var ot=z.width;return z=z.height,b+E<tt?a>y+z?(x=b+E-tt,a=a-y-z,De.sqrt(x*x+a*a)):a+x<y?(b=b+E-tt,a=a+x-y,De.sqrt(b*b+a*a)):tt-(b+E):b>tt+ot?a>y+z?(x=b-tt-ot,a=a-y-z,De.sqrt(x*x+a*a)):a+x<y?(b=b-tt-ot,a=a+x-y,De.sqrt(b*b+a*a)):b-(tt+ot):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function WS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,zx(a)););a.ah=null}function zx(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var b=x.centerX,E=b,z=x=x.centerY,tt=1;tt<y.length;tt++){var ot=y[tt];ot.forceX=0,ot.forceY=0;var rt=ot.centerX;ot=ot.centerY,b=Math.min(b,rt),E=Math.max(E,rt),x=Math.min(x,ot),z=Math.max(z,ot)}(E=E-b>z-x)?y.sort(function(Nt,Qt){return Nt===null||Qt===null||Nt===Qt?0:Nt.centerX-Qt.centerX}):y.sort(function(Nt,Qt){return Nt===null||Qt===null||Nt===Qt?0:Nt.centerY-Qt.centerY}),x=a.Zf;var lt=b=ot=0;for(z=0;z<y.length;z++){tt=y[z],b=tt.bounds,ot=tt.focus,rt=b.x+ot.x;var ut=b.y+ot.y;b=tt.charge*a.electricalFieldX(rt,ut),lt=tt.charge*a.electricalFieldY(rt,ut),b+=tt.mass*a.gravitationalFieldX(rt,ut),lt+=tt.mass*a.gravitationalFieldY(rt,ut),tt.forceX+=b,tt.forceY+=lt;for(var ft=z+1;ft<y.length;ft++){var yt=y[ft];if(yt!==tt){b=yt.bounds,ot=yt.focus,lt=b.x+ot.x;var Pt=b.y+ot.y;if(rt-lt>x||lt-rt>x){if(E)break}else if(ut-Pt>x||Pt-ut>x){if(!E)break}else{var bt=jS(tt,yt);1>bt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new b0),bt=b.random(),ot=b.random(),rt>lt?(b=Math.abs(yt.bounds.right-tt.bounds.x),b=(1+b)*bt):rt<lt?(b=Math.abs(yt.bounds.x-tt.bounds.right),b=-(1+b)*bt):(b=Math.max(yt.width,tt.width),b=(1+b)*bt-b/2),ut>Pt?(lt=Math.abs(yt.bounds.bottom-tt.bounds.y),lt=(1+lt)*ot):rt<lt?(lt=Math.abs(yt.bounds.y-tt.bounds.bottom),lt=-(1+lt)*ot):(lt=Math.max(yt.height,tt.height),lt=(1+lt)*ot-lt/2)):(ot=-(tt.charge*yt.charge)/(bt*bt),b=(lt-rt)/bt*ot,lt=(Pt-ut)/bt*ot),tt.forceX+=b,tt.forceY+=lt,yt.forceX-=b,yt.forceY-=lt}}}}for(E=a.network.edges.iterator;E.next();)ot=E.value,x=ot.fromVertex,z=ot.toVertex,tt=x.bounds,rt=x.focus,b=tt.x+rt.x,tt=tt.y+rt.y,ut=z.bounds,ft=z.focus,rt=ut.x+ft.x,ut=ut.y+ft.y,ft=jS(x,z),1>ft?(ft=a.randomNumberGenerator,ft===null&&(a.randomNumberGenerator=ft=new b0),ot=ft.random(),ft=ft.random(),b=(b>rt?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,lt=(tt>ut?1:-1)*(1+(z.height>x.height?z.height:x.height))*ft):(ot=ot.stiffness*(ft-ot.length),b=(rt-b)/ft*ot,lt=(ut-tt)/ft*ot),x.forceX+=b,x.forceY+=lt,z.forceX-=b,z.forceY-=lt;for(E=b=0;E<y.length;E++)x=y[E],a.isFixed(x)?a.moveFixedVertex(x):b=Math.max(b,a.moveVertex(x)||0);return b>a.epsilonDistance*a.epsilonDistance}xs.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},xs.prototype.moveFixedVertex=function(){},xs.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},xs.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=lr,y.toSpot=lr)}},xs.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=gn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,gn.free(x)}x=gn.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()}gn.free(x)},xs.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},xs.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},xs.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},xs.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},xs.prototype.electricalFieldX=function(){return 0},xs.prototype.electricalFieldY=function(){return 0},xs.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},xs.prototype.gravitationalFieldX=function(){return 0},xs.prototype.gravitationalFieldY=function(){return 0},xs.prototype.isFixed=function(a){return a.isFixed},_t.Object.defineProperties(xs.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"&&xe('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())}}}),xs.className="ForceDirectedLayout";function HS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}HS.className="ForceDirectedSubnet";function Ff(a){Ar.call(this,a)}he(Ff,Ar),Ff.prototype.createVertex=function(){return new Wp(this)},Ff.prototype.createEdge=function(){return new Hp(this)},Ff.className="ForceDirectedNetwork";function Wp(a){Va.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}he(Wp,Va),_t.Object.defineProperties(Wp.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)}}}),Wp.className="ForceDirectedVertex";function Hp(a){Fl.call(this,a),this.j=this.o=NaN}he(Hp,Fl),_t.Object.defineProperties(Hp.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)}}}),Hp.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 fr(a){Hr.call(this),this.kc=this.ie=25,this.K=0,this.Dk=F0,this.Zk=k0,this.Qk=B0,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 Zt,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}he(fr,Hr),fr.prototype.cloneProtected=function(a){Hr.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},fr.prototype.qb=function(a){a.classType===fr?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:xe("Unknown enum value: "+a):Hr.prototype.qb.call(this,a)},fr.prototype.createNetwork=function(){return new kg(this)},fr.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!==Zp&&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===Zp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var b=x.value;b.valid=!1,y.push(b)}for(x=0;x<y.length;x++){b=y[x];var E=b.fromVertex,z=b.toVertex;if(!(b.valid||(E.node===null&&E.data===null||z.node===null&&z.data===null)&&E.layer===z.layer)){var tt=0,ot=0,rt=0,lt=0;if(b.link!==null){if(ot=b.link,ot===null)continue;var ut=E.node;if(tt=z.node,ut===null||tt===null)continue;var ft=ot.fromNode;rt=ot.toNode;for(var yt=ot.fromPort;yt!==null&&!yt.Ed();)yt=yt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){lt=ft;var Pt=yt;ft=rt,yt=ot,rt=lt,ot=Pt}var bt=E.focus;lt=z.focus;var Nt=b.rev?z.bounds:E.bounds;Pt=Zt.alloc(),ut!==ft?Nt.w()&&ft.isVisible()?ft.actualBounds.w()?(Ed(ft,yt,jo,Pt),Pt.x+=ft.actualBounds.x-Nt.x,Pt.y+=ft.actualBounds.y-Nt.y):(Ed(ft,yt,jo,Pt),Pt.w()||Pt.assign(bt)):Pt.assign(bt):Nt.w()?(Ed(ft,yt,jo,Pt),Pt.w()||Pt.assign(bt)):Pt.assign(bt),ft=b.rev?E.bounds:z.bounds,ut=Zt.alloc(),tt!==rt?ft.w()&&rt.isVisible()?rt.actualBounds.w()?(Ed(rt,ot,jo,ut),ut.x+=rt.actualBounds.x-ft.x,ut.y+=rt.actualBounds.y-ft.y):(Ed(rt,ot,jo,ut),ut.w()||ut.assign(lt)):ut.assign(lt):ft.w()?(Ed(rt,ot,jo,ut),ut.w()||ut.assign(lt)):ut.assign(lt),this.K===90||this.K===270?(tt=Math.round((Pt.x-bt.x)/this.kc),rt=Pt.x,ot=Math.round((ut.x-lt.x)/this.kc),lt=ut.x):(tt=Math.round((Pt.y-bt.y)/this.kc),rt=Pt.y,ot=Math.round((ut.y-lt.y)/this.kc),lt=ut.y),Zt.free(Pt),Zt.free(ut),b.portFromColOffset=tt,b.portFromPos=rt,b.portToColOffset=ot,b.portToPos=lt}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Pt=E.layer,ut=z.layer,ft=0,Nt=b.link,Nt!==null){var Qt=Nt.fromPort,Wt=Nt.toPort;if(Qt!==null&&Wt!==null){var ae=Nt.fromNode;if(yt=Nt.toNode,ae!==null&&yt!==null){var ue=M0(this,!0),ce=M0(this,!1),Pe=this.setsPortSpots?ue:Nt.computeSpot(!0,Qt);bt=this.setsPortSpots?ce:Nt.computeSpot(!1,Wt);var Je=Nt.isOrthogonal;Pe.$c()&&Pe.Hf(ce)&&bt.$c()&&bt.Hf(ue)?ft=0:(ue=Nt.getLinkPoint(ae,Qt,Pe,!0,Je,yt,Wt,Zt.alloc()),ce=Nt.getLinkDirection(ae,Qt,ue,Pe,!0,Je,yt,Wt),Zt.free(ue),Pe.ys()||ce!==QS(this,b,!0)?this.setsPortSpots&&ae!==null&&ae.ports.count===1&&b.rev&&(ft+=1):ft+=1,Pe=Nt.getLinkPoint(yt,Wt,bt,!1,Je,ae,Qt,Zt.alloc()),Nt=Nt.getLinkDirection(yt,Wt,Pe,bt,!1,Je,ae,Qt),Zt.free(Pe),bt.ys()||Nt!==QS(this,b,!1)?this.setsPortSpots&&yt!==null&&yt.ports.count===1&&b.rev&&(ft+=2):ft+=2)}}}if(yt=ft,ft=yt===1||yt===3,(yt=yt===2||yt===3)&&(bt=a.createVertex(),bt.node=null,bt.Dj=1,bt.layer=Pt,bt.near=E,a.dh(bt),E=a.Zj(E,bt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=tt,E.portToColOffset=0,E.portFromPos=rt,E.portToPos=0,E=bt),Nt=1,ft&&Nt--,Pt-ut>Nt&&0<Pt){for(b.valid=!1,bt=a.createVertex(),bt.node=null,bt.Dj=2,bt.layer=Pt-1,a.dh(bt),E=a.Zj(E,bt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=yt?0:tt,E.portToColOffset=0,E.portFromPos=yt?0:rt,E.portToPos=0,E=bt,Pt--;Pt-ut>Nt&&0<Pt;)bt=a.createVertex(),bt.node=null,bt.Dj=3,bt.layer=Pt-1,a.dh(bt),E=a.Zj(E,bt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=bt,Pt--;E=a.Zj(bt,z,b.link),E.valid=!ft,ft&&(bt.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=ot,E.portFromPos=0,E.portToPos=lt}else b.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=lc(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),uc(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},fr.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}fr.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},fr.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 dl(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 hu(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=lc(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,tt=0;tt<E;tt++){var ot=0,rt=b[tt],lt=rt.near;if(lt!==null&<.layer===rt.layer)if(rt=lt.index,rt>tt)for(var ut=tt+1;ut<rt;ut++){var ft=b[ut];ft.near===lt&&ft.Dj===lt.Dj||ot++}else for(ut=tt-1;ut>rt;ut--)ft=b[ut],ft.near===lt&&ft.Dj===lt.Dj||ot++;var yt;if(0<=x)for(rt=b[tt].sourceEdgesArrayAccess,lt=0;lt<rt.length;lt++){var Pt=rt[lt];if(Pt.valid&&Pt.fromVertex.layer!==y)for(ft=Pt.fromVertex.index,ut=Pt.portToPos,Pt=Pt.portFromPos,yt=lt+1;yt<rt.length;yt++){var bt=rt[yt];if(bt.valid&&bt.fromVertex.layer!==y){var Nt=bt.fromVertex.index,Qt=bt.portToPos;bt=bt.portFromPos,ut<Qt&&(ft>Nt||ft===Nt&&Pt>bt)&&ot++,Qt<ut&&(Nt>ft||Nt===ft&&bt>Pt)&&ot++}}}if(0>=x){for(rt=b[tt].destinationEdgesArrayAccess,lt=0;lt<rt.length;lt++)if(Pt=rt[lt],Pt.valid&&Pt.toVertex.layer!==y)for(ft=Pt.toVertex.index,ut=Pt.portToPos,Pt=Pt.portFromPos,yt=lt+1;yt<rt.length;yt++)bt=rt[yt],bt.valid&&bt.toVertex.layer!==y&&(Nt=bt.toVertex.index,Qt=bt.portToPos,bt=bt.portFromPos,Pt<bt&&(ft>Nt||ft===Nt&&ut>Qt)&&ot++,bt<Pt&&(Nt>ft||Nt===ft&&Qt>ut)&&ot++)}for(z[tt*E+tt]=ot,rt=tt+1;rt<E;rt++){var Wt=0,ae=0;if(0<=x){ot=b[tt].sourceEdgesArrayAccess;var ue=b[rt].sourceEdgesArrayAccess;for(lt=0;lt<ot.length;lt++)if(Pt=ot[lt],Pt.valid&&Pt.fromVertex.layer!==y)for(ft=Pt.fromVertex.index,Pt=Pt.portFromPos,yt=0;yt<ue.length;yt++)bt=ue[yt],bt.valid&&bt.fromVertex.layer!==y&&(Nt=bt.fromVertex.index,bt=bt.portFromPos,(ft<Nt||ft===Nt&&Pt<bt)&&ae++,(Nt<ft||Nt===ft&&bt<Pt)&&Wt++)}if(0>=x){for(ot=b[tt].destinationEdgesArrayAccess,ue=b[rt].destinationEdgesArrayAccess,lt=0;lt<ot.length;lt++)if(Pt=ot[lt],Pt.valid&&Pt.toVertex.layer!==y)for(ft=Pt.toVertex.index,ut=Pt.portToPos,yt=0;yt<ue.length;yt++)bt=ue[yt],bt.valid&&bt.toVertex.layer!==y&&(Nt=bt.toVertex.index,Qt=bt.portToPos,(ft<Nt||ft===Nt&&ut<Qt)&&ae++,(Nt<ft||Nt===ft&&Qt<ut)&&Wt++)}z[tt*E+rt]=Wt,z[rt*E+tt]=ae}}return uc(a,y,b),z}fr.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=lc(b,E),tt=b.tc[E],ot=0,rt=0;rt<tt;rt++){var lt=z[rt].destinationEdgesArrayAccess;if(lt!==null)for(var ut=0;ut<lt.length;ut++){var ft=lt[ut];if(ft.valid&&ft.toVertex.layer!==E){var yt=ft.fromVertex.column+ft.portFromColOffset,Pt=ft.toVertex.column+ft.portToColOffset;ot+=(Math.abs(yt-Pt)+1)*gy(ft)}}}uc(b,E,z),y+=ot}return y}fr.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=lc(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var ot=b[tt],rt=null;0>=x&&(rt=ot.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=ot.destinationEdgesArrayAccess);var ut=0,ft=0,yt=ot.near;if(yt!==null&&yt.layer===ot.layer&&(ut+=yt.column-1,ft++),rt!==null)for(yt=0;yt<rt.length;yt++){ot=rt[yt];var Pt=ot.fromVertex;ot.valid&&!ot.rev&&Pt.layer!==y&&(ut+=Pt.column,ft++)}if(lt!==null)for(rt=0;rt<lt.length;rt++)ot=lt[rt],yt=ot.toVertex,ot.valid&&!ot.rev&&yt.layer!==y&&(ut+=yt.column,ft++);z[tt]=ft===0?-1:ut/ft}return uc(a,y,b),z}function ZS(a,y,x){for(var b=lc(a,y),E=a.tc[y],z=[],tt=0;tt<E;tt++){var ot=b[tt],rt=null;0>=x&&(rt=ot.sourceEdgesArrayAccess);var lt=null;0<=x&&(lt=ot.destinationEdgesArrayAccess);var ut=0,ft=[],yt=ot.near;if(yt!==null&&yt.layer===ot.layer&&(ft[ut]=yt.column-1,ut++),ot=void 0,rt!==null)for(yt=0;yt<rt.length;yt++){ot=rt[yt];var Pt=ot.fromVertex;ot.valid&&!ot.rev&&Pt.layer!==y&&(ft[ut]=Pt.column+ot.portFromColOffset,ut++)}if(lt!==null)for(rt=0;rt<lt.length;rt++)ot=lt[rt],yt=ot.toVertex,ot.valid&&!ot.rev&&yt.layer!==y&&(ft[ut]=yt.column+ot.portToColOffset,ut++);ut===0?z[tt]=-1:(ft.sort(function(bt,Nt){return bt-Nt}),lt=ut>>1,z[tt]=ut&1?ft[lt]:ft[lt-1]+ft[lt]>>1)}return uc(a,y,b),z}function Gp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();){var ot=tt.value,rt=ot.toVertex,lt=y.layer-rt.layer;ot=a.linkMinLength(ot),lt===ot&&Gp(a,rt,x,b,E,z)}if(z)for(tt=y.sourceEdges;tt.next();)ot=tt.value,rt=ot.fromVertex,lt=rt.layer-y.layer,ot=a.linkMinLength(ot),lt===ot&&Gp(a,rt,x,b,E,z)}}function my(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var tt=y.destinationEdges;tt.next();)my(a,tt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)my(a,y.value.fromVertex,x,b,E,z)}}fr.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(;jx(a)!==null;){for(E=KS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=KS(a);for(E=VS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=VS(a);E=null;for(var z=0,tt=this.network.vertexes.iterator;tt.next();){var ot=tt.value;if(ot.valid){for(var rt=0,lt=ot.destinationEdges;lt.next();)lt.value.toVertex.valid&&rt++;lt=0;for(var ut=ot.sourceEdges;ut.next();)ut.value.fromVertex.valid&<++;(E===null||z<rt-lt)&&(E=ot,z=rt-lt)}}E!==null&&(b[y]=E,y++,E.valid=!1)}for(y=0;y<a.vertexes.count;y++)b[y].index=y;for(b=a.edges.iterator;b.next();)y=b.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case F0: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 Zp: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 jx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function KS(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++}fr.prototype.assignLayers=function(){switch(this.Zk){case xy:US(this);break;case wy:for(var a,y=this.network.vertexes.iterator;y.next();)a=XS(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=YS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function YS(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,YS(a,z)+E)}y.layer=x}else x=y.layer;return x}function XS(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,XS(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 tt=b[z],ot=tt.fromVertex,rt=tt.toVertex;tt=a.linkMinLength(tt),ot.layer-rt.layer>tt&&Gp(a,ot,0,-1,!0,!1)}for(Gp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,ot=0,rt=null,tt=a.network.vertexes.iterator;tt.next();){var lt=tt.value;if(lt.component===1){var ut=0,ft=!1,yt=lt.sourceEdgesArrayAccess;E=yt.length;for(var Pt=0;Pt<E;Pt++){var bt=yt[Pt],Nt=bt.fromVertex;ut+=1,Nt.component!==1&&(z+=1,Nt=Nt.layer-lt.layer,bt=a.linkMinLength(bt),b=Math.min(b,Nt-bt))}for(yt=lt.destinationEdgesArrayAccess,E=yt.length,Pt=0;Pt<E;Pt++)bt=yt[Pt].toVertex,--ut,bt.component!==1?--z:ft=!0;(rt===null||ut<ot)&&!ft&&(rt=lt,ot=ut)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else rt.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,ot=null,rt=a.network.vertexes.iterator;rt.next();)if(tt=rt.value,tt.component===1){for(lt=0,ut=!1,yt=tt.sourceEdgesArrayAccess,ft=yt.length,Pt=0;Pt<ft;Pt++)bt=yt[Pt].fromVertex,lt+=1,bt.component!==1?b+=1:ut=!0;for(yt=tt.destinationEdgesArrayAccess,ft=yt.length,Pt=0;Pt<ft;Pt++)bt=yt[Pt],Nt=bt.toVertex,--lt,Nt.component!==1&&(--b,Nt=tt.layer-Nt.layer,bt=a.linkMinLength(bt),E=Math.min(E,Nt-bt));(ot===null||lt>z)&&!ut&&(ot=tt,z=lt)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else ot.component=0}}}function QS(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}fr.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 B0: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))}fr.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=dl(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)L0(this,b,1),Su(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=dl(this)),b=this.Ia;0<=b;b--)L0(this,b,-1),Su(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=dl(this))}for(hu(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)L0(this,b,0),Su(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=dl(this)),b=this.Ia;0<=b;b--)L0(this,b,0),Su(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=dl(this))}hu(this,y);var z,tt,ot;switch(this.rk){case by:break;case Ey:for(ot=a+1;(b=this.countCrossings())<ot;)for(ot=b,x=this.Ia;0<=x;x--)for(tt=0;tt<=x;tt++){for(z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=Su(this,b,-1)||z;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=Su(this,b,1)||z;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=Su(this,b,1)||z;for(E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=Su(this,b,-1)||z;for(E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=Su(this,b,0)||z;for(E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=Su(this,b,0)||z;E>=a?hu(this,y):(a=E,y=dl(this))}break;default:case D0:for(x=this.Ia,tt=0,ot=a+1;(b=this.countCrossings())<ot;){for(ot=b,z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=Su(this,b,-1)||z;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=Su(this,b,1)||z;for(E=this.countCrossings(),E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=Su(this,b,1)||z;for(E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=Su(this,b,-1)||z;for(E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=x;b>=tt;b--)z=Su(this,b,0)||z;for(E>=a?hu(this,y):(a=E,y=dl(this)),z=!0;z;)for(z=!1,b=tt;b<=x;b++)z=Su(this,b,0)||z;E>=a?hu(this,y):(a=E,y=dl(this))}}hu(this,y)};function L0(a,y,x){var b=lc(a,y),E=a.tc[y],z=ZS(a,y,x),tt=py(a,y,x);for(x=0;x<E;x++)tt[x]===-1&&(tt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var ot=!0,rt;ot;)for(ot=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&tt[x+1]<tt[x])&&(ot=!0,rt=z[x],z[x]=z[x+1],z[x+1]=rt,rt=tt[x],tt[x]=tt[x+1],tt[x+1]=rt,rt=b[x],b[x]=b[x+1],b[x+1]=rt);for(x=z=0;x<E;x++)rt=b[x],rt.index=x,z+=a.nodeMinColumnSpace(rt,!0),rt.column=z,z+=1,z+=a.nodeMinColumnSpace(rt,!1);uc(a,y,b)}function Su(a,y,x){var b=lc(a,y),E=a.tc[y];x=GS(a,y,x);var z,tt=[];for(z=0;z<E;z++)tt[z]=-1;var ot=[];for(z=0;z<E;z++)ot[z]=-1;for(var rt=!1,lt=!0;lt;)for(lt=!1,z=0;z<E-1;z++){var ut=x[b[z].index*E+b[z+1].index],ft=x[b[z+1].index*E+b[z].index],yt=0,Pt=0,bt=b[z].column,Nt=b[z+1].column,Qt=a.nodeMinColumnSpace(b[z],!0),Wt=a.nodeMinColumnSpace(b[z],!1),ae=a.nodeMinColumnSpace(b[z+1],!0),ue=a.nodeMinColumnSpace(b[z+1],!1);Qt=bt-Qt+ae,Wt=Nt-Wt+ue;var ce=b[z].sourceEdges.iterator;for(ce.reset();ce.next();)if(ae=ce.value,ue=ae.fromVertex,ae.valid&&ue.layer===y){for(ae=0;b[ae]!==ue;)ae++;ae<z&&(yt+=2*(z-ae),Pt+=2*(z+1-ae)),ae===z+1&&(yt+=1),ae>z+1&&(yt+=4*(ae-z),Pt+=4*(ae-(z+1)))}for(ce=b[z].destinationEdges.iterator,ce.reset();ce.next();)if(ae=ce.value,ue=ae.toVertex,ae.valid&&ue.layer===y){for(ae=0;b[ae]!==ue;)ae++;ae===z+1&&(Pt+=1)}for(ce=b[z+1].sourceEdges.iterator,ce.reset();ce.next();)if(ae=ce.value,ue=ae.fromVertex,ae.valid&&ue.layer===y){for(ae=0;b[ae]!==ue;)ae++;ae<z&&(yt+=2*(z+1-ae),Pt+=2*(z-ae)),ae===z&&(Pt+=1),ae>z+1&&(yt+=4*(ae-(z+1)),Pt+=4*(ae-z))}for(ce=b[z+1].destinationEdges.iterator,ce.reset();ce.next();)if(ae=ce.value,ue=ae.toVertex,ae.valid&&ue.layer===y){for(ae=0;b[ae]!==ue;)ae++;ae===z&&(yt+=1)}ae=ue=0,ce=tt[b[z].index];var Pe=ot[b[z].index],Je=tt[b[z+1].index],ti=ot[b[z+1].index];ce!==-1&&(ue+=Math.abs(ce-bt),ae+=Math.abs(ce-Wt)),Pe!==-1&&(ue+=Math.abs(Pe-bt),ae+=Math.abs(Pe-Wt)),Je!==-1&&(ue+=Math.abs(Je-Nt),ae+=Math.abs(Je-Qt)),ti!==-1&&(ue+=Math.abs(ti-Nt),ae+=Math.abs(ti-Qt)),(Pt<yt-.5||Pt===yt&&ft<ut-.5||Pt===yt&&ft===ut&&ae<ue-.5)&&(lt=rt=!0,b[z].column=Wt,b[z+1].column=Qt,ut=b[z],b[z]=b[z+1],b[z+1]=ut)}for(z=0;z<E;z++)b[z].index=z;return uc(a,y,b),rt}fr.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Yx)!==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=Fg(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Fg(this,y,-1)||x;x=Fg(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&&(_S(this,-1),_S(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Fg(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Fg(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Fg(this,y,0)||x}}else Zx(this)};function Fg(a,y,x){for(var b=!1;Wx(a,y,x);)b=!0;return b}function Wx(a,y,x){var b,E=lc(a,y),z=a.tc[y],tt=py(a,y,-1);if(0<x)for(b=0;b<z;b++)tt[b]=-1;var ot=py(a,y,1);if(0>x)for(b=0;b<z;b++)ot[b]=-1;for(var rt=!1,lt=!0;lt;)for(lt=!1,b=0;b<z;b++){var ut=E[b].column,ft=a.nodeMinColumnSpace(E[b],!0),yt=a.nodeMinColumnSpace(E[b],!1),Pt=0;0>b-1||ut-E[b-1].column-1>ft+a.nodeMinColumnSpace(E[b-1],!1)?Pt=ut-1:Pt=ut,ft=b+1>=z||E[b+1].column-ut-1>yt+a.nodeMinColumnSpace(E[b+1],!0)?ut+1:ut;var bt=yt=0,Nt=0;if(0>=x)for(var Qt=E[b].sourceEdges.iterator;Qt.next();){var Wt=Qt.value,ae=Wt.fromVertex;if(Wt.valid&&ae.layer!==y){var ue=gy(Wt),ce=Wt.portFromColOffset;Wt=Wt.portToColOffset,ae=ae.column,yt+=(Math.abs(ut+Wt-(ae+ce))+1)*ue,bt+=(Math.abs(Pt+Wt-(ae+ce))+1)*ue,Nt+=(Math.abs(ft+Wt-(ae+ce))+1)*ue}}if(0<=x)for(Qt=E[b].destinationEdges.iterator;Qt.next();)Wt=Qt.value,ae=Wt.toVertex,Wt.valid&&ae.layer!==y&&(ue=gy(Wt),ce=Wt.portFromColOffset,Wt=Wt.portToColOffset,ae=ae.column,yt+=(Math.abs(ut+ce-(ae+Wt))+1)*ue,bt+=(Math.abs(Pt+ce-(ae+Wt))+1)*ue,Nt+=(Math.abs(ft+ce-(ae+Wt))+1)*ue);Wt=ce=ue=0,Qt=tt[E[b].index],ae=ot[E[b].index],Qt!==-1&&(ue+=Math.abs(Qt-ut),ce+=Math.abs(Qt-Pt),Wt+=Math.abs(Qt-ft)),ae!==-1&&(ue+=Math.abs(ae-ut),ce+=Math.abs(ae-Pt),Wt+=Math.abs(ae-ft)),bt<yt||bt===yt&&ce<ue?(lt=rt=!0,E[b].column=Pt):(Nt<yt||Nt===yt&&Wt<ue)&&(lt=rt=!0,E[b].column=ft)}return uc(a,y,E),a.normalize(),rt}function yy(a,y,x){var b=lc(a,y),E=a.tc[y],z=ZS(a,y,x),tt=[];for(x=0;x<E;x++)tt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var ot=b[x].column,rt=a.nodeMinColumnSpace(b[x],!0),lt=a.nodeMinColumnSpace(b[x],!1),ut=0;if(tt[x]===-1)if(x===0&&x===E-1)ut=ot;else if(x===0){var ft=b[x+1].column;ft-ot===lt+a.nodeMinColumnSpace(b[x+1],!0)?ut=ot-1:ut=ot}else x===E-1?(ft=b[x-1].column,ut=ot-ft===rt+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(ft=b[x-1].column,rt=ft+a.nodeMinColumnSpace(b[x-1],!1)+rt+1,ft=b[x+1].column,lt=ft-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ut=(rt+lt)/2|0);else x===0&&x===E-1?ut=tt[x]:x===0?(ft=b[x+1].column,lt=ft-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,ut=Math.min(tt[x],lt)):x===E-1?(ft=b[x-1].column,rt=ft+a.nodeMinColumnSpace(b[x-1],!1)+rt+1,ut=Math.max(tt[x],rt)):(ft=b[x-1].column,rt=ft+a.nodeMinColumnSpace(b[x-1],!1)+rt+1,ft=b[x+1].column,lt=ft-a.nodeMinColumnSpace(b[x+1],!0)-lt-1,rt<tt[x]&&tt[x]<lt?ut=tt[x]:rt>=tt[x]?ut=rt:lt<=tt[x]&&(ut=lt));ut!==ot&&(z=!0,b[x].column=ut)}uc(a,y,b),a.normalize()}function Hx(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),tt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+tt>=y){x=!1;break}}if(a=!1,x)for(b.reset();b.next();)x=b.value,x.column>y&&(--x.column,a=!0);return a}function 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 tt=a.network.vertexes.iterator;tt.next();){b=tt.value;var ot=b.column-a.nodeMinColumnSpace(b,!0),rt=b.column+a.nodeMinColumnSpace(b,!1);ot<=y&&rt>=y&&(E[b.layer]=!0),ot<=x&&rt>=x&&(z[b.layer]=!0)}for(ot=!0,x=!1,b=0;b<=a.Ia;b++)ot=ot&&!(E[b]&&z[b]);if(ot)for(tt.reset();tt.next();)a=tt.value,a.column>y&&(--a.column,x=!0);return x}function _S(a,y){for(var x=0;x<=a.Ra;x++)for(;Hx(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=dl(a),z=E0(a);for(b=z+1;z<b;){b=z,tx(a,x,1);var tt=E0(a);tt>z?hu(a,E):tt<z&&(z=tt,E=dl(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=dl(a),z=E0(a),b=z+1;z<b;)b=z,tx(a,x,-1),tt=E0(a),tt>z?hu(a,E):tt<z&&(z=tt,E=dl(a));a.normalize()}function tx(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 tt=z.layer,ot=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),rt=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));ot<=rt;ot++)E[tt*(a.Ra+1)+ot]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(tt=0;tt<a.Ra;tt++)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt+1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt+1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt+1]]=!0);if(0>x)for(tt=a.Ra;0<tt;tt--)E[z*(a.Ra+1)+tt]!==-1&&E[z*(a.Ra+1)+tt-1]!==-1&&E[z*(a.Ra+1)+tt]!==E[z*(a.Ra+1)+tt-1]&&(y[E[z*(a.Ra+1)+tt]*a.le+E[z*(a.Ra+1)+tt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(tt=[],tt.push(0);tt.length!==0;)if(rt=tt[tt.length-1],tt.pop(),E[rt])for(E[rt]=!1,z=0;z<a.le;z++)y[rt*a.le+z]&&tt.splice(0,0,z);if(0<x)for(b.reset();b.next();)a=b.value,E[a.component]&&--a.column;if(0>x)for(b.reset();b.next();)x=b.value,E[x.component]&&(x.column+=1)}function Zx(a){for(var y=rn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Ln,Kx(y,x);var z=null,tt=null,ot=null,rt=null,lt=(a.ve&1)!==0,ut=(a.ve&2)!==0,ft=(a.ve&4)!==0,yt=(a.ve&8)!==0;for(lt&&(a.verticalAlignment(y,x,!0),z=A0(a,y,!0,!1)),y.reverse(),ft&&(a.verticalAlignment(y,x,!1),ot=A0(a,y,!1,!1)),b=$i(y),E=b.next();!E.done;E=b.next())E.value.reverse();yt&&(a.verticalAlignment(y,x,!1),rt=A0(a,y,!1,!0)),y.reverse(),ut&&(a.verticalAlignment(y,x,!0),tt=A0(a,y,!0,!0)),pn(y),a.u(z,tt,ot,rt),a.network.vertexes.each(function(Pt){var bt=rn();lt&&bt.push(z.get(Pt)),ut&&bt.push(tt.get(Pt)),ft&&bt.push(ot.get(Pt)),yt&&bt.push(rt.get(Pt)),bt.sort(function(Qt,Wt){return Qt-Wt});var Nt=bt.length;Nt=(bt[Math.floor((Nt-1)/2)]+bt[Math.ceil((Nt-1)/2)])/2,pn(bt),Pt.zc=Nt})}function Kx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,tt=a[b],ot=a[b+1],rt=0;z<ot.length;rt++){var lt=ot[rt];t:{if(lt.node===null){var ut=Ly(lt);if(0<ut.length){ut=ut[0].node===null;break t}}ut=!1}var ft=ut;if(rt===ot.length-1||ft){for(ut=tt.length-1,ft&&(ut=Ly(lt)[0].index);z<=rt;){if(lt=ot[z],!lt.bo){ft=[];for(var yt=$i(lt.sourceEdgesArrayAccess),Pt=yt.next();!Pt.done;Pt=yt.next())Pt=Pt.value,Pt.valid&&ft.push(Pt);lt.bo=ft}for(lt=$i(lt.bo),ft=lt.next();!ft.done;ft=lt.next())ft=ft.value,yt=ft.fromVertex.index,(yt<E||yt>ut)&&y.add(ft);z++}E=ut}}}fr.prototype.verticalAlignment=function(a,y,x){Vx(a),a=$i(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=$i(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var tt=x?Ly(z):Xx(z),ot=tt.length;if(0<ot){tt.sort(function(ft,yt){return ft.vi-yt.vi});var rt=(ot-1)/2;for(ot=Math.floor(rt),rt=Math.ceil(rt);ot<=rt;ot++)if(z.align===z){var lt=tt[ot],ut=void 0;ut=x?N0(lt,z):N0(z,lt),!y.contains(ut)&&E<lt.vi&&(lt.align=z,z.root=lt.root,z.align=lt.root,E=lt.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 A0(a,y,x,b){for(var E=a.K===90||a.K===270,z=$i(y),tt=z.next();!tt.done;tt=z.next()){var ot=$i(tt.value);for(tt=ot.next();!tt.done;tt=ot.next())tt=tt.value,tt.sd=tt,tt.shift=1/0,tt.zc=NaN,tt.qg=0}for(tt=a.K===90||a.K===270,z=$i(y),ot=z.next();!ot.done;ot=z.next()){ot=$i(ot.value);for(var rt=ot.next();!rt.done;rt=ot.next())if(rt=rt.value,rt.root===rt){for(var lt=0,ut=rt;ut.align!==rt;){var ft=ut.align,yt=tt?ut.width:ut.height,Pt=tt?ft.width:ft.height;if(x){var bt=N0(ut,ft),Nt=bt.portFromPos,Qt=bt.portToPos;bt.link!==null&&(ut.node&&ut.node!==bt.link.fromNode&&(Nt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==bt.link.toNode&&(Qt=tt?ft.focusX:ft.focusY))}else bt=N0(ft,ut),Nt=bt.portToPos,Qt=bt.portFromPos,bt.link!==null&&(ut.node&&ut.node!==bt.link.toNode&&(Nt=tt?ut.focusX:ut.focusY),ft.node&&ft.node!==bt.link.fromNode&&(Qt=tt?ft.focusX:ft.focusY));yt=b?ut.qg+(yt-Nt)-(Pt-Qt):ut.qg+Nt-Qt,ft.qg=yt,lt=Math.min(lt,yt),ut=ut.align}ut=rt;do ut.qg=ut.qg-lt,ut=ut.align;while(ut!==rt)}}for(x=$i(y),tt=x.next();!tt.done;tt=x.next())for(z=$i(tt.value),tt=z.next();!tt.done;tt=z.next())tt=tt.value,tt.root===tt&&ex(a,tt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(tt=y[x][0],tt.sd===tt)){tt.sd.shift===1/0&&(tt.sd.shift=0),tt=x,ot=0;do{for(z=y[tt][ot];z.align!==z.root;)z=z.align,tt++,0<z.vi&&(ot=nx(z,y),ot.sd.shift=Math.min(ot.sd.shift,z.sd.shift+z.zc+z.qg-(ot.zc+ot.qg+(E?ot.width:ot.height)+a.columnSpacing)));ot=z.vi+1}while(tt<y.length&&ot<y[tt].length&&z.sd===y[tt][ot].sd)}for(a=new si,y=$i(y),tt=y.next();!tt.done;tt=y.next())for(x=$i(tt.value),tt=x.next();!tt.done;tt=x.next())tt=tt.value,tt.zc=tt.zc+tt.sd.shift+tt.qg,z=E?tt.width:tt.height,a.add(tt,b?-tt.zc-z:tt.zc);return a}function ex(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;ex(a,z,x),y.sd===y&&(y.sd=z.sd);var tt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+tt-b.qg+a.columnSpacing))}b=b.align}while(b!==y);for(;b.align!==y;)b=b.align,b.zc=y.zc,b.sd=y.sd}}function nx(a,y){var x=a.Tz;return a=a.vi,1>a&&xe("Could not determine previous vertex in layer"),y[x][a-1]}fr.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=rn(),E=rn(),z=1/0,tt=0;4>tt;tt++)if(y[tt]){var ot=Ux(this,y[tt],b,E,tt);ot<z&&(x=tt,z=ot)}for(z={},tt=0;4>tt;z={delta:z.delta},tt++)y[tt]&&(z.delta=tt===0||tt===2?b[x]-b[tt]:E[x]-E[tt],z.delta!==0&&y[tt].each(function(rt){return function(lt){lt.value+=rt.delta}}(z)));pn(b),pn(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,tt=-1/0;return y.each(function(ot){var rt=ot.key;ot=ot.value,rt=a.K===90||a.K===270?rt.width:rt.height,ot<z&&(z=ot),ot+rt>tt&&(tt=ot+rt)}),x[E]=z,b[E]=tt,tt-z}fr.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=M0(this,!0),y=M0(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 M0(a,y){return a.K===270?y?fa:Ha:a.K===90?y?Ha:fa:a.K===180?y?Aa:Xa:y?Xa:Aa}fr.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var b=0;b<=this.Ia;b++){var E=x;0>=this.he[b]+this.Ld[b]&&(E=0),0<b&&(y+=E/2),this.K===90||this.K===0?(y+=this.Ld[b],this.Kd[b]=y,y+=this.he[b]):(y+=this.he[b],this.Kd[b]=y,y+=this.Ld[b]),b<this.Ia&&(y+=E/2),this.Ta[b]=y}for(x=y,y=this.arrangementOrigin,b=0;b<=this.Ia;b++)this.K===270?this.Kd[b]=y.y+this.Kd[b]:this.K===90?(this.Kd[b]=y.y+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]):this.K===180?this.Kd[b]=y.x+this.Kd[b]:(this.Kd[b]=y.x+x-this.Kd[b],this.Ta[b]=x-this.Ta[b]);x=this.ve!==0,a.reset(),b=this.K===270||this.K===90;for(var z=1/0,tt=E=1/0,ot=-1/0;a.next();){var rt=a.value,lt=rt.layer,ut=rt.column|0;b?(tt=y.x+this.kc*ut,lt=this.Kd[lt]):(tt=this.Kd[lt],lt=y.y+this.kc*ut),rt.centerX=tt,rt.centerY=lt,x&&isFinite(rt.zc)&&(b?rt.node?rt.x=y.x+rt.zc:rt.centerX=y.x+rt.zc:rt.node?rt.y=y.y+rt.zc:rt.centerY=y.y+rt.zc),z=Math.min(rt.x,z),E=Math.min(rt.y,E),b?(tt=z,ot=Math.max(ot,rt.bounds.right)):(tt=E,ot=Math.max(ot,rt.bounds.bottom))}for(this.xw=ot-tt,z=y.x-z,y=y.y-E,this.Rf=new Zt(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},fr.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 gn(0,0,x,Math.abs(this.Ta[0]))):y.push(new gn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new gn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new gn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new gn(0,0,Math.abs(this.Ta[0]),x)):y.push(new gn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new gn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new gn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},fr.prototype.commitLayers=function(){},fr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var b=y,E=b.fromNode,z=b.toNode,tt=b.fromPort,ot=b.toPort;if(E!==null){var rt=E.findVisibleNode();rt!==null&&rt!==E&&(E=rt,tt=rt.port)}z!==null&&(rt=z.findVisibleNode(),rt!==null&&rt!==z&&(z=rt,ot=rt.port));var lt=y.computeSpot(!0,tt);rt=y.computeSpot(!1,ot);var ut=x.fromVertex,ft=x.toVertex;if(x.valid)y.curve===Jl&&y.pointsCount===4&&(ut.column===ft.column&&this.alignOption===0?(x=y.getLinkPoint(E,tt,lt,!0,!1,z,ot),ot=y.getLinkPoint(z,ot,rt,!1,!1,E,tt),x.w()||x.set(E.actualBounds.center),ot.w()||ot.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+ot.x)/3,(2*x.y+ot.y)/3),y.yf((x.x+2*ot.x)/3,(x.y+2*ot.y)/3),y.yf(ot.x,ot.y)):(x=b=!1,tt!==null&<===la&&(b=!0),ot!==null&&rt===la&&(x=!0),(b||x)&&(rt=null,b&&(rt=y.getLinkPointFromPoint(E,tt,tt.ga(jo),y.i(3),!0),rt.w()||rt.set(E.actualBounds.center),y.L(0,rt.x,rt.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,ot,ot.ga(jo),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),rt&&(z=y.i(2),y.L(1,(2*rt.x+z.x)/3,(2*rt.y+z.y)/3)),E&&(z=y.i(1),y.L(2,(2*E.x+z.x)/3,(2*E.y+z.y)/3))))),y.zf();else if(ut.layer===ft.layer)y.zf();else{var yt=!1,Pt=!1,bt=this.ie,Nt=y.firstPickIndex+1;if(y.isOrthogonal){Pt=!0;var Qt=y.pointsCount;4<Qt&&y.points.removeRange(2,Qt-3)}else if(y.curve===Jl)yt=!0,Qt=y.pointsCount,4<Qt&&y.points.removeRange(2,Qt-3),Qt===4&&(Nt=2);else{Qt=y.pointsCount;var Wt=lt===la,ae=rt===la;2<Qt&&Wt&&ae?y.points.removeRange(1,Qt-2):3<Qt&&Wt&&!ae?y.points.removeRange(1,Qt-3):3<Qt&&!Wt&&ae?y.points.removeRange(2,Qt-2):4<Qt&&!Wt&&!ae&&y.points.removeRange(2,Qt-3)}if(x.rev){for(;ft!==null&&ut!==ft;){var ue=Qt=null;for(Wt=ft.sourceEdges.iterator;Wt.next()&&(ae=Wt.value,ae.link!==x.link||(Qt=ae.fromVertex,ue=ae.toVertex,Qt.node!==null)););if(Qt===null)break;if(Qt!==ut){Wt=y.i(Nt-1).x,ae=y.i(Nt-1).y;var ce=Qt.centerX,Pe=Qt.centerY;if(Pt)this.K===180||this.K===0?Nt===y.firstPickIndex+1?(y.m(Nt++,Wt,ae),y.m(Nt++,Wt,Pe)):(ue!==null?ue.centerY:ae)!==Pe&&(ue=this.Ta[Qt.layer-1]+this.Rf.x,y.m(Nt++,ue,ae),y.m(Nt++,ue,Pe)):Nt===y.firstPickIndex+1?(y.m(Nt++,Wt,ae),y.m(Nt++,ce,ae)):(ue!==null?ue.centerX:Wt)!==ce&&(ue=this.Ta[Qt.layer-1]+this.Rf.y,y.m(Nt++,Wt,ue),y.m(Nt++,ce,ue));else if(Nt===y.firstPickIndex+1){ue=Math.max(10,this.he[ft.layer]);var Je=Math.max(10,this.Ld[ft.layer]);if(yt)this.K===180?ce<=ft.bounds.x?(ft=ft.bounds.x,y.m(Nt++,ft-ue,Pe),y.m(Nt++,ft,Pe),y.m(Nt++,ft+Je,Pe)):(y.m(Nt++,ce-ue,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce+Je,Pe)):this.K===90?Pe>=ft.bounds.bottom?(ft=ft.bounds.y+ft.bounds.height,y.m(Nt++,ce,ft+Je),y.m(Nt++,ce,ft),y.m(Nt++,ce,ft-ue)):(y.m(Nt++,ce,Pe+Je),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe-ue)):this.K===270?Pe<=ft.bounds.y?(ft=ft.bounds.y,y.m(Nt++,ce,ft-ue),y.m(Nt++,ce,ft),y.m(Nt++,ce,ft+Je)):(y.m(Nt++,ce,Pe-ue),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe+Je)):this.K===0&&(ce>=ft.bounds.right?(ft=ft.bounds.x+ft.bounds.width,y.m(Nt++,ft+Je,Pe),y.m(Nt++,ft,Pe),y.m(Nt++,ft-ue,Pe)):(y.m(Nt++,ce+Je,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce-ue,Pe)));else{y.m(Nt++,Wt,ae);var ti=0;this.K===180||this.K===0?((this.K===180?ce>=ft.bounds.right:ce<=ft.bounds.x)&&(ti=(this.K===0?-ue:Je)/2),y.m(Nt++,Wt+ti,Pe)):((this.K===270?Pe>=ft.bounds.bottom:Pe<=ft.bounds.y)&&(ti=(this.K===90?-ue:Je)/2),y.m(Nt++,ce,ae+ti)),y.m(Nt++,ce,Pe)}}else ue=Math.max(10,this.he[Qt.layer]),Je=Math.max(10,this.Ld[Qt.layer]),yt?this.K===180?(y.m(Nt++,ce-ue-bt,Pe),y.m(Nt++,Math.min(ce-ue+bt/2,ce),Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,Math.max(ce+Je-bt/2,ce),Pe),y.m(Nt++,ce+Je+bt,Pe)):this.K===90?(y.m(Nt++,ce,Pe+Je+bt),y.m(Nt++,ce,Math.max(Pe+Je-bt/2,Pe)),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Math.min(Pe-ue+bt/2,Pe)),y.m(Nt++,ce,Pe-ue-bt)):this.K===270?(y.m(Nt++,ce,Pe-ue-bt),y.m(Nt++,ce,Math.min(Pe-ue+bt/2,Pe)),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Math.max(Pe+Je-bt/2,Pe)),y.m(Nt++,ce,Pe+Je+bt)):(y.m(Nt++,ce+Je+bt,Pe),y.m(Nt++,Math.max(ce+Je-bt/2,ce),Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,Math.min(ce-ue+bt/2,ce),Pe),y.m(Nt++,ce-ue-bt,Pe)):y.m(Nt++,ce,Pe)}ft=Qt}(ot===null||lt!==la||Pt)&&(Wt=y.i(Nt-1).x,ae=y.i(Nt-1).y,ce=y.i(Nt).x,Pe=y.i(Nt).y,Pt?(bt=this.Ld[ut.layer],this.K===180||this.K===0?(Pt=ae,Pt>=ut.bounds.y&&Pt<=ut.bounds.bottom&&(this.K===180?ce>=ut.bounds.x:ce<=ut.bounds.right)&&(ft=ut.centerX+(this.K===180?-bt:bt),Pt<ut.bounds.y+ut.bounds.height/2?Pt=ut.bounds.y-this.kc/2:Pt=ut.bounds.bottom+this.kc/2,y.m(Nt++,ft,ae),y.m(Nt++,ft,Pt)),y.m(Nt++,ce,Pt)):(Pt=Wt,Pt>=ut.bounds.x&&Pt<=ut.bounds.right&&(this.K===270?Pe>=ut.bounds.y:Pe<=ut.bounds.bottom)&&(ft=ut.centerY+(this.K===270?-bt:bt),Pt<ut.bounds.x+ut.bounds.width/2?Pt=ut.bounds.x-this.kc/2:Pt=ut.bounds.right+this.kc/2,y.m(Nt++,Wt,ft),y.m(Nt++,Pt,ft)),y.m(Nt++,Pt,Pe)),y.m(Nt++,ce,Pe)):yt?(ue=Math.max(10,this.he[ut.layer]),Je=Math.max(10,this.Ld[ut.layer]),this.K===180&&ce>=ut.bounds.x?(ft=ut.bounds.x+ut.bounds.width,y.L(Nt-2,ft,ae),y.L(Nt-1,ft+Je,ae)):this.K===90&&Pe<=ut.bounds.bottom?(ft=ut.bounds.y,y.L(Nt-2,Wt,ft),y.L(Nt-1,Wt,ft-ue)):this.K===270&&Pe>=ut.bounds.y?(ft=ut.bounds.y+ut.bounds.height,y.L(Nt-2,Wt,ft),y.L(Nt-1,Wt,ft+Je)):this.K===0&&ce<=ut.bounds.right&&(ft=ut.bounds.x,y.L(Nt-2,ft,ae),y.L(Nt-1,ft-ue,ae))):(ue=Math.max(10,this.he[ut.layer]),Je=Math.max(10,this.Ld[ut.layer]),Pt=0,this.K===180||this.K===0?((this.K===180?ce<=ut.bounds.x:ce>=ut.bounds.right)&&(Pt=(this.K===0?Je:-ue)/2),y.m(Nt++,ce+Pt,ae)):((this.K===270?Pe<=ut.bounds.y:Pe>=ut.bounds.bottom)&&(Pt=(this.K===90?Je:-ue)/2),y.m(Nt++,Wt,Pe+Pt)),y.m(Nt++,ce,Pe)))}else{for(;ut!==null&&ut!==ft;){for(ue=Qt=null,ut=ut.destinationEdges.iterator;ut.next()&&(Wt=ut.value,Wt.link!==x.link||(Qt=Wt.toVertex,ue=Wt.fromVertex,ue.node!==null&&(ue=null),Qt.node!==null)););if(Qt===null)break;Qt!==ft&&(Wt=y.i(Nt-1).x,ae=y.i(Nt-1).y,ce=Qt.centerX,Pe=Qt.centerY,Pt?this.K===180||this.K===0?(ue!==null?ue.centerY:ae)!==Pe&&(ue=this.Ta[Qt.layer]+this.Rf.x,Nt===y.firstPickIndex+1&&(ue=this.K===0?Math.max(ue,Wt):Math.min(ue,Wt)),y.m(Nt++,ue,ae),y.m(Nt++,ue,Pe)):(ue!==null?ue.centerX:Wt)!==ce&&(ue=this.Ta[Qt.layer]+this.Rf.y,Nt===y.firstPickIndex+1&&(ue=this.K===90?Math.max(ue,ae):Math.min(ue,ae)),y.m(Nt++,Wt,ue),y.m(Nt++,ce,ue)):(ue=Math.max(10,this.he[Qt.layer]),Je=Math.max(10,this.Ld[Qt.layer]),yt?this.K===180?(y.m(Nt++,ce+Je+bt,Pe),y.m(Nt++,Math.max(ce+Je-bt/2,ce),Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,Math.min(ce-ue+bt/2,ce),Pe),y.m(Nt++,ce-ue-bt,Pe)):this.K===90?(y.m(Nt++,ce,Pe-ue-bt),y.m(Nt++,ce,Math.min(Pe-ue+bt/2,Pe)),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Math.max(Pe+Je-bt/2,Pe)),y.m(Nt++,ce,Pe+Je+bt)):this.K===270?(y.m(Nt++,ce,Pe+Je+bt),y.m(Nt++,ce,Math.max(Pe+Je-bt/2,Pe)),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Math.min(Pe-ue+bt/2,Pe)),y.m(Nt++,ce,Pe-ue-bt)):(y.m(Nt++,ce-ue-bt,Pe),y.m(Nt++,Math.min(ce-ue+bt/2,ce),Pe),y.m(Nt++,ce,Pe),y.m(Nt++,ce,Pe),y.m(Nt++,Math.max(ce+Je-bt/2,ce),Pe),y.m(Nt++,ce+Je+bt,Pe)):this.K===180?(y.m(Nt++,ce+Je,Pe),y.m(Nt++,ce-ue,Pe)):this.K===90?(y.m(Nt++,ce,Pe-ue),y.m(Nt++,ce,Pe+Je)):this.K===270?(y.m(Nt++,ce,Pe+Je),y.m(Nt++,ce,Pe-ue)):(y.m(Nt++,ce-ue,Pe),y.m(Nt++,ce+Je,Pe)))),ut=Qt}Pt&&(Wt=y.i(Nt-1).x,ae=y.i(Nt-1).y,ce=y.i(Nt).x,Pe=y.i(Nt).y,this.K===180||this.K===0?ae!==Pe&&(ue=this.K===0?Math.min(Math.max((ce+Wt)/2,this.Ta[ft.layer]+this.Rf.x),ce):Math.max(Math.min((ce+Wt)/2,this.Ta[ft.layer]+this.Rf.x),ce),y.m(Nt++,ue,ae),y.m(Nt++,ue,Pe)):Wt!==ce&&(ue=this.K===90?Math.min(Math.max((Pe+ae)/2,this.Ta[ft.layer]+this.Rf.y),Pe):Math.max(Math.min((Pe+ae)/2,this.Ta[ft.layer]+this.Rf.y),Pe),y.m(Nt++,Wt,ue),y.m(Nt++,ce,ue)))}b!==null&&yt&&4<=y.pointsCount&&(tt!==null&&(tt=lt===la?y.getLinkPointFromPoint(E,tt,tt.ga(jo),y.i(3),!0):y.i(0),lt===la&&(lt=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(tt.x+lt.x)/2,lt.y),y.L(2,b.x,(lt.y+b.y)/2)):(y.L(1,lt.x,(tt.y+lt.y)/2),y.L(2,(lt.x+b.x)/2,b.y))),tt.w()||tt.set(E.actualBounds.center),y.L(0,tt.x,tt.y)),ot!==null&&(E=rt===la?y.getLinkPointFromPoint(z,ot,ot.ga(jo),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),rt===la&&(ot=y.i(y.pointsCount-3),rt=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,rt.x,(ot.y+rt.y)/2)):(y.L(y.pointsCount-2,ot.x,(E.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+rt.x)/2,rt.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},fr.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new xn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var b=a.value;if(b!==null&&b.isOrthogonal)for(var E=2;E<b.pointsCount-3;E++){var z=b.i(E),tt=b.i(E+1);if(this.B(z.y,tt.y)&&!this.B(z.x,tt.x)){var ot=new hc;ot.layer=Math.floor(z.y/2);var rt=b.i(0),lt=b.i(b.pointsCount-1);if(ot.first=rt.x*rt.x+rt.y,ot.jc=lt.x*lt.x+lt.y,ot.rd=Math.min(z.x,tt.x),ot.Ic=Math.max(z.x,tt.x),ot.index=E,ot.link=b,E+2<b.pointsCount){rt=b.i(E-1),lt=b.i(E+2);var ut=0;rt.y<z.y?ut=lt.y<z.y?3:z.x<tt.x?2:1:rt.y>z.y&&(ut=lt.y>z.y?0:tt.x<z.x?2:1),ot.j=ut}x.push(ot)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,ot=x[z].jc,rt=z;rt<E;rt++)lt=x[rt],lt.jc!==ot&&(ut++,ot=lt.jc);this.zi(x,this.Ux,z,z+tt);var ft=1;for(ot=x[z].first,rt=z;rt<E;rt++)lt=x[rt],lt.first!==ot&&(ft++,ot=lt.first);for(rt=!0,lt=ft,ut<ft?(rt=!1,lt=ut,ot=x[z].jc,this.zi(x,this.Js,z,z+tt)):ot=x[z].first,ut=0,ft=z;ft<E;ft++){var yt=x[ft];(rt?yt.first:yt.jc)!==ot&&(ut++,ot=rt?yt.first:yt.jc);var Pt=yt.link;z=Pt.i(yt.index),tt=Pt.i(yt.index+1);var bt=this.linkSpacing*(ut-(lt-1)/2);y++,Pt.uh(),Pt.L(yt.index,z.x,z.y+bt),Pt.L(yt.index+1,tt.x,tt.y+bt),Pt.zf()}}z=E}a=b}}else{for(y=0,x=[],a=a.iterator;a.next();)if(b=a.value,b!==null&&b.isOrthogonal)for(E=2;E<b.pointsCount-3;E++)z=b.i(E),tt=b.i(E+1),this.B(z.x,tt.x)&&!this.B(z.y,tt.y)&&(ot=new hc,ot.layer=Math.floor(z.x/2),rt=b.i(0),lt=b.i(b.pointsCount-1),ot.first=rt.x+rt.y*rt.y,ot.jc=lt.x+lt.y*lt.y,ot.rd=Math.min(z.y,tt.y),ot.Ic=Math.max(z.y,tt.y),ot.index=E,ot.link=b,E+2<b.pointsCount&&(rt=b.i(E-1),lt=b.i(E+2),ut=0,rt.x<z.x?ut=lt.x<z.x?3:z.y<tt.y?2:1:rt.x>z.x&&(ut=lt.x>z.x?0:tt.y<z.y?2:1),ot.j=ut),x.push(ot));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,b=a+1;b<x.length&&x[b].layer===z;)b++;if(1<b-a)for(z=a;z<b;){for(tt=x[z].Ic,E=a+1;E<b&&x[E].rd<tt;)tt=Math.max(tt,x[E].Ic),E++;if(tt=E-z,1<tt){for(this.zi(x,this.Js,z,z+tt),ut=1,ot=x[z].jc,rt=z;rt<E;rt++)lt=x[rt],lt.jc!==ot&&(ut++,ot=lt.jc);for(this.zi(x,this.Ux,z,z+tt),ft=1,ot=x[z].first,rt=z;rt<E;rt++)lt=x[rt],lt.first!==ot&&(ft++,ot=lt.first);for(rt=!0,lt=ft,ut<ft?(rt=!1,lt=ut,ot=x[z].jc,this.zi(x,this.Js,z,z+tt)):ot=x[z].first,ut=0,ft=z;ft<E;ft++)yt=x[ft],(rt?yt.first:yt.jc)!==ot&&(ut++,ot=rt?yt.first:yt.jc),Pt=yt.link,z=Pt.i(yt.index),tt=Pt.i(yt.index+1),bt=this.linkSpacing*(ut-(lt-1)/2),y++,Pt.uh(),Pt.L(yt.index,z.x+bt,z.y),Pt.L(yt.index+1,tt.x+bt,tt.y),Pt.zf()}z=E}a=b}}}},Lt=fr.prototype,Lt.Vx=function(a,y){return a instanceof hc&&y instanceof hc&&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},Lt.Ux=function(a,y){return a instanceof hc&&y instanceof hc&&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},Lt.Js=function(a,y){return a instanceof hc&&y instanceof hc&&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},Lt.B=function(a,y){return a-=y,-1<a&&1>a},Lt.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&xe("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 lc(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 uc(a,y,x){a.He[a.tc[y]]=x}_t.Object.defineProperties(fr.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()):xe("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Sy&&a!==F0&&a!==Zp||(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!==B0&&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 F0=new Be(fr,"CycleDepthFirst",0),Sy=new Be(fr,"CycleGreedy",1),Zp=new Be(fr,"CycleFromLayers",2),k0=new Be(fr,"LayerOptimalLinkLength",0),xy=new Be(fr,"LayerLongestPathSink",1),wy=new Be(fr,"LayerLongestPathSource",2),B0=new Be(fr,"InitDepthFirstOut",0),Py=new Be(fr,"InitDepthFirstIn",1),Cy=new Be(fr,"InitNaive",2),by=new Be(fr,"AggressiveNone",0),D0=new Be(fr,"AggressiveLess",1),Ey=new Be(fr,"AggressiveMore",2),Yx=8;fr.className="LayeredDigraphLayout",fr.CycleDepthFirst=F0,fr.CycleGreedy=Sy,fr.CycleFromLayers=Zp,fr.LayerOptimalLinkLength=k0,fr.LayerLongestPathSink=xy,fr.LayerLongestPathSource=wy,fr.InitDepthFirstOut=B0,fr.InitDepthFirstIn=Py,fr.InitNaive=Cy,fr.AggressiveNone=by,fr.AggressiveLess=D0,fr.AggressiveMore=Ey,fr.PackNone=0,fr.PackExpand=1,fr.PackStraighten=2,fr.PackMedian=4,fr.PackAll=15,fr.AlignNone=0,fr.AlignUpperLeft=1,fr.AlignUpperRight=2,fr.AlignLowerLeft=4,fr.AlignLowerRight=8,fr.AlignAll=15;function hc(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}hc.className="SegInfo";function kg(a){Ar.call(this,a)}he(kg,Ar),kg.prototype.createVertex=function(){return new du(this)},kg.prototype.createEdge=function(){return new Kp(this)},kg.className="LayeredDigraphNetwork";function du(a){Va.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}he(du,Va);function ix(a,y){return a.index-y.index}function N0(a,y){if(!a.$n){for(var x=[],b=$i(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=$i(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;xe("Unable to find destination edge to given vertex")}function Ly(a){if(!a.co){for(var y=[],x=$i(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 Xx(a){if(!a.ao){for(var y=[],x=$i(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}du.prototype.Cl=function(a){Va.prototype.Cl.call(this,a),this.bo=this.co=null},du.prototype.Kl=function(a){Va.prototype.Kl.call(this,a),this.bo=this.co=null},du.prototype.zl=function(a){Va.prototype.zl.call(this,a),this.$n=this.ao=null},du.prototype.Jl=function(a){Va.prototype.Jl.call(this,a),this.$n=this.ao=null},_t.Object.defineProperties(du.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)}}}),du.prototype.deleteDestinationEdge=du.prototype.Jl,du.prototype.addDestinationEdge=du.prototype.zl,du.prototype.deleteSourceEdge=du.prototype.Kl,du.prototype.addSourceEdge=du.prototype.Cl,du.className="LayeredDigraphVertex";function Kp(a){Fl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}he(Kp,Fl),_t.Object.defineProperties(Kp.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)}}}),Kp.className="LayeredDigraphEdge";function Lo(a){Hr.call(this),this.Ub=new Ln,this.Wn=R0,this.ud=Nh,this.vo=j0,this.Bq=Ry,this.$v=[],this.td=!0,this.Rb=W0,this.$d=new Yn(10,10).freeze();var y=new Nf(this);this.W=new xu(y),this.Y=new xu(y),this.ru=[],a&&Object.assign(this,a)}he(Lo,Hr),Lo.prototype.cloneProtected=function(a){Hr.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)},Lo.prototype.qb=function(a){a.classType===Lo?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:xe("Unknown enum value: "+a):Hr.prototype.qb.call(this,a)},Lo.prototype.createNetwork=function(){return new Nf(this)},Lo.prototype.makeNetwork=function(a){function y(b){if(b instanceof ii)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Un){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 Xe?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof oo?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Lo.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==H0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof Xe&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?Nh:Bf:this.ud=this.path===R0?Nh:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new Ln,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof ii?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof xu&&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,Ay(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,Ay(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&sx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&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===zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,b=-1,E=0;E<y.children.length;E++){var z=y.children[E];b=Math.max(b,x?z.width:z.height)}if(0<=b)for(E=0;E<y.children.length;E++)z=y.children[E],x?(y.angle===180&&(z.focusX+=b-z.width),z.width=b):(y.angle===270&&(z.focusY+=b-z.height),z.height=b)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof xu&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Ln,this.isValidLayout=!0};function Jx(a){var y=new Ln;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Lo.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Nh:x.sourceEdges.count===0&&this.Ub.add(x);break;case Bf:x.destinationEdges.count===0&&this.Ub.add(x);break;default:xe("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 Nh: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:xe("Unhandled path value "+a.ud.toString())}}return b}function Ay(a,y){if(y!==null){switch(a.ud){case Nh:if(0<y.destinationEdges.count){for(var x=new xn,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 xn,b=y.sourceVertexes;b.next();)E=b.value,rx(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:xe("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++)Ay(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}Lo.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===Ih&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,tt=z.length,ot=0;ot<tt;ot++){var rt=z[ot];ax(a,rt),x+=rt.descendantCount+1,b=Math.max(b,rt.maxChildrenCount),E=Math.max(E,rt.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Qx(a,y){switch(a.vo){default:case j0: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 Ny: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}}Lo.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===Ih){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])}}Lo.prototype.assignTreeVertexValues=function(){};function lx(a,y){if(y!==null){y.alignment!==Ih&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Lo.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case Bg:break;case Up:a.children.reverse();break;case Yp:a.children.sort(a.comparer);break;case Xp:a.children.sort(a.comparer),a.children.reverse();break;default:xe("Unhandled sorting value "+a.sorting.toString())}},Lo.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Lo.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=dc(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,tt=0,ot=0,rt=a.commentSpacing;if(a.node!==null)for(var lt=a.node.Mu();lt.next();){var ut=lt.value;ut.category==="Comment"&&ut.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ut),ut.Va(),ut=ut.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ut.width),tt+=ut.height+Math.abs(ot)):(z+=ut.width+Math.abs(ot),tt=Math.max(tt,ut.height)),ot=rt)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),tt=Math.max(0,tt-a.height)):(tt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=gn.allocAt(0,0,a.bounds.width+z,a.bounds.height+tt),a.bounds=E,gn.free(E))};function dc(a){return a===Bd||a===Ih||a===Dd||a===id}function Vp(a){return a===Bd||a===Ih}function My(a){var y=a.parent;if(y!==null){var x=y.alignment;if(dc(x)){if(Vp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===Dd)return!0}}return!1}Lo.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=dc(z)),b=b===90||b===270,x=E===90||E===270;for(var tt=a.childrenCount===0,ot=My(a),rt=0,lt=a.comments,ut=lt.length,ft=Zt.alloc(),yt=0;yt<ut;yt++){var Pt=lt[yt],bt=Pt.measuredBounds;if(b&&!tt||!z&&!x&&tt||z&&x&&tt){if(135<E&&!z||x&&ot)if(0<=a.commentMargin)for(ft.h(a.bounds.x-a.commentMargin-bt.width,a.bounds.y+rt),Pt.move(ft),Pt=Pt.Sd();Pt.next();){var Nt=Pt.value;Nt.fromSpot=Aa,Nt.toSpot=Xa}else for(ft.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+rt),Pt.move(ft),Pt=Pt.Sd();Pt.next();)Nt=Pt.value,Nt.fromSpot=Xa,Nt.toSpot=Aa;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+rt),Pt.move(ft),Pt=Pt.Sd();Pt.next();)Nt=Pt.value,Nt.fromSpot=Xa,Nt.toSpot=Aa;else for(ft.h(a.bounds.x+a.commentMargin-bt.width,a.bounds.y+rt),Pt.move(ft),Pt=Pt.Sd();Pt.next();)Nt=Pt.value,Nt.fromSpot=Aa,Nt.toSpot=Xa;rt=0<=a.commentSpacing?rt+(bt.height+a.commentSpacing):rt+(a.commentSpacing-bt.height)}else{if(135<E&&!z||!x&&ot)if(0<=a.commentMargin)for(ft.h(a.bounds.x+rt,a.bounds.y-a.commentMargin-bt.height),Pt.move(ft),Pt=Pt.Sd();Pt.next();)Nt=Pt.value,Nt.fromSpot=fa,Nt.toSpot=Ha;else for(ft.h(a.bounds.x+rt,a.bounds.y+2*a.focus.y-a.commentMargin),Pt.move(ft),Pt=Pt.Sd();Pt.next();)Nt=Pt.value,Nt.fromSpot=Ha,Nt.toSpot=fa;else if(0<=a.commentMargin)for(ft.h(a.bounds.x+rt,a.bounds.y+2*a.focus.y+a.commentMargin),Pt.move(ft),Pt=Pt.Sd();Pt.next();)Nt=Pt.value,Nt.fromSpot=Ha,Nt.toSpot=fa;else for(ft.h(a.bounds.x+rt,a.bounds.y+a.commentMargin-bt.height),Pt.move(ft),Pt=Pt.Sd();Pt.next();)Nt=Pt.value,Nt.fromSpot=fa,Nt.toSpot=Ha;rt=0<=a.commentSpacing?rt+(bt.width+a.commentSpacing):rt+(a.commentSpacing-bt.width)}}if(Zt.free(ft),y=rt-a.commentSpacing-(b?y.height:y.width),this.ud===Nh)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)}},Lo.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 z0:ux(this,a);break;case Jp:if(a.alignment===Ih)ux(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=dc(x)),b=My(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=Tu(a);y=E===90||E===270;var z=0,tt=a.children,ot=tt.length;for(x=0;x<ot;x++)b=tt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var rt=a.alignment;b=rt===Th;var lt=rt===Oh,ut=dc(rt),ft=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var yt=a.nodeSpacing,Pt=this.computeNodeIndent(a),bt=a.rowSpacing,Nt=0;(b||lt||a.hm||a.im&&a.maxGenerationCount===1)&&(Nt=Math.max(0,a.rowIndent)),b=a.width;var Qt=a.height,Wt=0,ae=0,ue=0,ce=null,Pe=null,Je=0,ti=0,fi=0,li=0,Vn=0,Fn=0,no=0,Xi=0;if(ut&&!Vp(rt)&&135<E&&tt.reverse(),Vp(rt))if(1<ot)for(var qo=0;qo<ot;qo++)qo%2===0&&qo!==ot-1&&(Xi=Math.max(Xi,y?tt[qo].Da.width:tt[qo].Da.height));else ot===1&&(Xi=y?tt[0].Da.width:tt[0].Da.height);if(ut){switch(rt){case Bd:ae=135>E?hx(this,a,tt,Xi,Wt,ae):dx(this,a,tt,Xi,Wt,ae),Xi=ae.x,Wt=ae.width,ae=ae.height;break;case Dd:for(ce=0;ce<ot;ce++)Pe=tt[ce],ft=Pe.Da,ue=Fn===0?0:bt,y?(Pe.S.h(z-ft.width,li+ue),Wt=Math.max(Wt,ft.width),ae=Math.max(ae,li+ue+ft.height),li+=ue+ft.height):(Pe.S.h(fi+ue,z-ft.height),Wt=Math.max(Wt,fi+ue+ft.width),ae=Math.max(ae,ft.height),fi+=ue+ft.width),Fn++;break;case id:for(ce=0;ce<ot;ce++)Pe=tt[ce],z=Pe.Da,ft=Fn===0?0:bt,y?(Pe.S.h(yt/2+a.focus.x,li+ft),Wt=Math.max(Wt,z.width),ae=Math.max(ae,li+ft+z.height),li+=ft+z.height):(Pe.S.h(fi+ft,yt/2+a.focus.y),Wt=Math.max(Wt,fi+ft+z.width),ae=Math.max(ae,z.height),fi+=ft+z.width),Fn++}ce=yl(this,2),Pe=yl(this,2),y?(ce[0].h(0,0),ce[1].h(0,ae),Pe[0].h(Wt,0)):(ce[0].h(0,0),ce[1].h(Wt,0),Pe[0].h(0,ae)),Pe[1].h(Wt,ae)}else for(qo=0;qo<ot;qo++){var br=tt[qo],ts=br.Da;if(y){0<ft&&0<Fn&&fi+yt+ts.width>ft&&(fi<z&&Qc(a,rt,z-fi,0,no,qo-1),Vn++,Fn=0,no=qo,ue=ae,fi=0,li=135<E?-ae-bt:ae+bt),O0(this,br,0,li);var os=0;if(Fn===0)ce=br.Yo,Pe=br.kp,Je=ts.width,ti=ts.height,(ce===null||Pe===null||E!==Tu(br))&&(ce=yl(this,2),Pe=yl(this,2),ce[0].h(0,0),ce[1].h(0,ti),Pe[0].h(Je,0),Pe[1].h(Je,ti));else{var Is=rn();ti=cx(this,a,br,ce,Pe,Je,ti,Is),os=ti.x,ce=Is[0],Pe=Is[1],Je=ti.width,ti=ti.height,pn(Is),fi<ts.width&&0>os&&(kf(a,-os,0,no,qo-1),I0(ce,-os,0),I0(Pe,-os,0),os=0)}br.S.h(os,li),Wt=Math.max(Wt,Je),ae=Math.max(ae,ue+(Vn===0?0:bt)+ts.height),fi=Je}else 0<ft&&0<Fn&&li+yt+ts.height>ft&&(li<z&&Qc(a,rt,0,z-li,no,qo-1),Vn++,Fn=0,no=qo,ue=Wt,li=0,fi=135<E?-Wt-bt:Wt+bt),O0(this,br,fi,0),os=0,Fn===0?(ce=br.Yo,Pe=br.kp,Je=ts.width,ti=ts.height,(ce===null||Pe===null||E!==Tu(br))&&(ce=yl(this,2),Pe=yl(this,2),ce[0].h(0,0),ce[1].h(Je,0),Pe[0].h(0,ti),Pe[1].h(Je,ti))):(Is=rn(),ti=cx(this,a,br,ce,Pe,Je,ti,Is),os=ti.x,ce=Is[0],Pe=Is[1],Je=ti.width,ti=ti.height,pn(Is),li<ts.height&&0>os&&(kf(a,0,-os,no,qo-1),I0(ce,0,-os),I0(Pe,0,-os),os=0)),br.S.h(fi,os),ae=Math.max(ae,ti),Wt=Math.max(Wt,ue+(Vn===0?0:bt)+ts.width),li=ti;Fn++}switch(0<Vn&&(y?(ae+=Math.max(0,x),fi<Wt&&Qc(a,rt,Wt-fi,0,no,ot-1),0<Nt&&(lt||kf(a,Nt,0,0,ot-1),Wt+=Nt)):(Wt+=Math.max(0,x),li<ae&&Qc(a,rt,0,ae-li,no,ot-1),0<Nt&&(lt||kf(a,0,Nt,0,ot-1),ae+=Nt))),Nt=lt=0,rt){case Dg:y?lt+=Wt/2-a.focus.x-Pt/2:Nt+=ae/2-a.focus.y-Pt/2;break;case Df:0<Vn?y?lt+=Wt/2-a.focus.x-Pt/2:Nt+=ae/2-a.focus.y-Pt/2:y?(Xi=tt[0].S.x+tt[0].la.x,lt+=Xi+(tt[ot-1].S.x+tt[ot-1].la.x+2*tt[ot-1].focus.x-Xi)/2-a.focus.x-Pt/2):(Xi=tt[0].S.y+tt[0].la.y,Nt+=Xi+(tt[ot-1].S.y+tt[ot-1].la.y+2*tt[ot-1].focus.y-Xi)/2-a.focus.y-Pt/2);break;case Th:y?(lt-=Pt,Wt+=Pt):(Nt-=Pt,ae+=Pt);break;case Oh:y?(lt+=Wt-a.width+Pt,Wt+=Pt):(Nt+=ae-a.height+Pt,ae+=Pt);break;case Bd:y?1<ot?lt+=Xi+yt/2-a.focus.x:lt+=tt[0].focus.x-a.focus.x+tt[0].la.x:1<ot?Nt+=Xi+yt/2-a.focus.y:Nt+=tt[0].focus.y-a.focus.y+tt[0].la.y;break;case Dd:y?lt+=Wt+yt/2-a.focus.x:Nt+=ae+yt/2-a.focus.y;break;case id:break;default:ae=this.customAlignment(a,lt,Nt,Wt,ae),lt=ae[0],Nt=ae[1],Wt=ae[2],ae=ae[3]}for(Pt=0;Pt<ot;Pt++)Xi=tt[Pt],y?Xi.S.h(Xi.S.x+Xi.la.x-lt,Xi.S.y+(135<E?(ut?-ae:-Xi.Da.height)+Xi.la.y-x:Qt+x+Xi.la.y)):Xi.S.h(Xi.S.x+(135<E?(ut?-Wt:-Xi.Da.width)+Xi.la.x-x:b+x+Xi.la.x),Xi.S.y+Xi.la.y-Nt);if(ot=tt=0,ut?y?(Wt=Fy(a,Wt,lt),0>lt&&(lt=0),135<E&&(Nt+=ae+x),ae+=Qt+x,rt===id&&(tt+=yt/2+a.focus.x),ot+=Qt+x):(135<E&&(lt+=Wt+x),Wt+=b+x,ae=ky(a,ae,Nt),0>Nt&&(Nt=0),rt===id&&(ot+=yt/2+a.focus.y),tt+=b+x):y?(a.comments===null?b>Wt&&(Wt=By(rt,b-Wt,0),tt=Wt.x,ot=Wt.y,Wt=b,lt=0):Wt=Fy(a,Wt,lt),0>lt&&(tt-=lt,lt=0),135<E&&(Nt+=ae+x),ae=Math.max(Math.max(ae,Qt),ae+Qt+x),ot+=Qt+x):(135<E&&(lt+=Wt+x),Wt=Math.max(Math.max(Wt,b),Wt+b+x),a.comments===null?Qt>ae&&(ae=By(rt,0,Qt-ae),tt=ae.x,ot=ae.y,ae=Qt,Nt=0):ae=ky(a,ae,Nt),0>Nt&&(ot-=Nt,Nt=0),tt+=b+x),0<Vn)E=yl(this,4),Vn=yl(this,4),y?(E[2].h(0,Qt+x),E[3].h(E[2].x,ae),Vn[2].h(Wt,E[2].y),Vn[3].h(Vn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(Wt,E[2].y),Vn[2].h(E[2].x,ae),Vn[3].h(E[3].x,Vn[2].y));else{for(E=yl(this,ce.length+2),Vn=yl(this,Pe.length+2),rt=0;rt<ce.length;rt++)ut=ce[rt],E[rt+2].h(ut.x+tt,ut.y+ot);for(rt=0;rt<Pe.length;rt++)ut=Pe[rt],Vn[rt+2].h(ut.x+tt,ut.y+ot)}y?(E[0].h(lt,0),E[1].h(E[0].x,Qt),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])),Vn[0].h(lt+b,0),Vn[1].h(Vn[0].x,Qt),Vn[2].y<Vn[1].y&&(Vn[2].x<Vn[0].x?Vn[2].assign(Vn[1]):Vn[1].assign(Vn[2])),Vn[3].y<Vn[2].y&&(Vn[3].x<Vn[0].x?Vn[3].assign(Vn[2]):Vn[2].assign(Vn[3])),E[2].y-=x/2,Vn[2].y-=x/2):(E[0].h(0,Nt),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])),Vn[0].h(0,Nt+Qt),Vn[1].h(b,Vn[0].y),Vn[2].x<Vn[1].x&&(Vn[2].y<Vn[0].y?Vn[2].assign(Vn[1]):Vn[1].assign(Vn[2])),Vn[3].x<Vn[2].x&&(Vn[3].y<Vn[0].y?Vn[3].assign(Vn[2]):Vn[2].assign(Vn[3])),E[2].x-=x/2,Vn[2].x-=x/2),qu(this,ce),qu(this,Pe),a.Yo=E,a.kp=Vn,a.la.h(lt,Nt),a.Da.h(Wt,ae)}break;default:xe("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=dc(x));var E=My(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=Tu(y),x=b===90||b===270;var z=0;E=y.children;for(var tt=E.length,ot=0;ot<tt;ot++){var rt=E[ot];z=Math.max(z,x?rt.Da.width:rt.Da.height)}var lt=y.alignment,ut=lt===Th,ft=lt===Oh;ot=dc(lt);var yt=Math.max(0,y.breadthLimit);rt=a.computeLayerSpacing(y);var Pt=y.nodeSpacing,bt=a.computeNodeIndent(y),Nt=ut||ft?0:bt/2,Qt=y.rowSpacing,Wt=0;(ut||ft||y.hm||y.im&&y.maxGenerationCount===1)&&(Wt=Math.max(0,y.rowIndent)),ut=y.width;var ae=y.height,ue=0,ce=0,Pe=0,Je=0,ti=0,fi=0,li=0,Vn=0,Fn=0,no=0;if(ot&&!Vp(lt)&&135<b&&E.reverse(),Vp(lt))if(1<tt)for(var Xi=0;Xi<tt;Xi++){var qo=E[Xi],br=qo.Da;Xi%2===0&&Xi!==tt-1?Fn=Math.max(Fn,(x?br.width:br.height)+a.computeBusNodeSpacing(qo)-Pt):Xi%2!==0&&(no=Math.max(no,(x?br.width:br.height)+a.computeBusNodeSpacing(qo)-Pt))}else tt===1&&(Fn=x?E[0].Da.width:E[0].Da.height);if(ot)switch(lt){case Bd:case Ih:ce=135>b?hx(a,y,E,Fn,ue,ce):dx(a,y,E,Fn,ue,ce),Fn=ce.x,ue=ce.width,ce=ce.height;break;case Dd:for(yt=0;yt<tt;yt++)Nt=E[yt],Pe=Nt.Da,no=li===0?0:Qt,x?(Nt.S.h(z-Pe.width,ti+no),ue=Math.max(ue,Pe.width),ce=Math.max(ce,ti+no+Pe.height),ti+=no+Pe.height):(Nt.S.h(Je+no,z-Pe.height),ue=Math.max(ue,Je+no+Pe.width),ce=Math.max(ce,Pe.height),Je+=no+Pe.width),li++;break;case id:for(z=0;z<tt;z++)yt=E[z],Nt=yt.Da,Pe=li===0?0:Qt,x?(yt.S.h(Pt/2+y.focus.x,ti+Pe),ue=Math.max(ue,Nt.width),ce=Math.max(ce,ti+Pe+Nt.height),ti+=Pe+Nt.height):(yt.S.h(Je+Pe,Pt/2+y.focus.y),ue=Math.max(ue,Je+Pe+Nt.width),ce=Math.max(ce,Nt.height),Je+=Pe+Nt.width),li++}else for(no=0;no<tt;no++)Xi=E[no],qo=Xi.Da,x?(0<yt&&0<li&&Je+Pt+qo.width>yt&&(Je<z&&Qc(y,lt,z-Je,0,Vn,no-1),fi++,li=0,Vn=no,Pe=ce,Je=0,ti=135<b?-ce-Qt:ce+Qt),br=li===0?Nt:Pt,O0(a,Xi,0,ti),Xi.S.h(Je+br,ti),ue=Math.max(ue,Je+br+qo.width),ce=Math.max(ce,Pe+(fi===0?0:Qt)+qo.height),Je+=br+qo.width):(0<yt&&0<li&&ti+Pt+qo.height>yt&&(ti<z&&Qc(y,lt,0,z-ti,Vn,no-1),fi++,li=0,Vn=no,Pe=ue,ti=0,Je=135<b?-ue-Qt:ue+Qt),br=li===0?Nt:Pt,O0(a,Xi,Je,0),Xi.S.h(Je,ti+br),ce=Math.max(ce,ti+br+qo.height),ue=Math.max(ue,Pe+(fi===0?0:Qt)+qo.width),ti+=br+qo.height),li++;switch(0<fi&&(x?(ce+=Math.max(0,rt),Je<ue&&Qc(y,lt,ue-Je,0,Vn,tt-1),0<Wt&&(ft||kf(y,Wt,0,0,tt-1),ue+=Wt)):(ue+=Math.max(0,rt),ti<ce&&Qc(y,lt,0,ce-ti,Vn,tt-1),0<Wt&&(ft||kf(y,0,Wt,0,tt-1),ce+=Wt))),Wt=ft=0,lt){case Dg:x?ft+=ue/2-y.focus.x-bt/2:Wt+=ce/2-y.focus.y-bt/2;break;case Df:0<fi?x?ft+=ue/2-y.focus.x-bt/2:Wt+=ce/2-y.focus.y-bt/2:x?(a=E[0].S.x+E[0].la.x,ft+=a+(E[tt-1].S.x+E[tt-1].la.x+2*E[tt-1].focus.x-a)/2-y.focus.x-bt/2):(a=E[0].S.y+E[0].la.y,Wt+=a+(E[tt-1].S.y+E[tt-1].la.y+2*E[tt-1].focus.y-a)/2-y.focus.y-bt/2);break;case Th:x?(ft-=bt,ue+=bt):(Wt-=bt,ce+=bt);break;case Oh:x?(ft+=ue-y.width+bt,ue+=bt):(Wt+=ce-y.height+bt,ce+=bt);break;case Bd:case Ih:x?1<tt?ft+=Fn+Pt/2-y.focus.x:ft+=E[0].focus.x-y.focus.x+E[0].la.x:1<tt?Wt+=Fn+Pt/2-y.focus.y:Wt+=E[0].focus.y-y.focus.y+E[0].la.y;break;case Dd:x?ft+=ue+Pt/2-y.focus.x:Wt+=ce+Pt/2-y.focus.y;break;case id:break;default:a=a.customAlignment(y,ft,Wt,ue,ce),ft=a[0],Wt=a[1],ue=a[2],ce=a[3]}for(a=0;a<tt;a++)bt=E[a],x?bt.S.h(bt.S.x+bt.la.x-ft,bt.S.y+(135<b?(ot?-ce:-bt.Da.height)+bt.la.y-rt:ae+rt+bt.la.y)):bt.S.h(bt.S.x+(135<b?(ot?-ue:-bt.Da.width)+bt.la.x-rt:ut+rt+bt.la.x),bt.S.y+bt.la.y-Wt);x?(ue=Fy(y,ue,ft),0>ft&&(ft=0),135<b&&(Wt+=ce+rt),ce=Math.max(Math.max(ce,ae),ce+ae+rt)):(135<b&&(ft+=ue+rt),ue=Math.max(Math.max(ue,ut),ue+ut+rt),ce=ky(y,ce,Wt),0>Wt&&(Wt=0)),y.la.h(ft,Wt),y.Da.h(ue,ce)}}Lo.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function hx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new gn(b,0,E,z);if(tt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new gn(b,0,E,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,lt=Tu(y)===90,ut=0,ft=0,yt=0,Pt=0;Pt<tt;Pt++)if(!(Pt%2!==0||1<tt&&Pt===tt-1)){var bt=x[Pt],Nt=bt.Da,Qt=ut===0?0:rt;if(lt){var Wt=a.computeBusNodeSpacing(bt)-ot;bt.S.h(b-(Nt.width+Wt),yt+Qt),E=Math.max(E,Nt.width+Wt),z=Math.max(z,yt+Qt+Nt.height),yt+=Qt+Nt.height}else Wt=a.computeBusNodeSpacing(bt)-ot,bt.S.h(ft+Qt,b-(Nt.height+Wt)),z=Math.max(z,Nt.height+Wt),E=Math.max(E,ft+Qt+Nt.width),ft+=Qt+Nt.width;ut++}for(ut=0,bt=ft,Pt=yt,lt?(ft=b+ot,yt=0):(ft=0,yt=b+ot),Nt=0;Nt<tt;Nt++)if(Nt%2!==0){Qt=x[Nt],Wt=Qt.Da;var ae=ut===0?0:rt;if(lt){var ue=a.computeBusNodeSpacing(Qt)-ot;Qt.S.h(ft+ue,yt+ae),E=Math.max(E,ft+Wt.width+ue),z=Math.max(z,yt+ae+Wt.height),yt+=ae+Wt.height}else ue=a.computeBusNodeSpacing(Qt)-ot,Qt.S.h(ft+ae,yt+ue),E=Math.max(E,ft+ae+Wt.width),z=Math.max(z,yt+Wt.height+ue),ft+=ae+Wt.width;ut++}return 1<tt&&tt%2===1&&(x=x[tt-1],tt=x.Da,a=a.computeBusLastRowSpacing(x,lt?Math.max(Math.abs(Pt),Math.abs(yt)):Math.max(Math.abs(bt),Math.abs(ft))),lt?(x.S.h(b+ot/2-x.focus.x-x.la.x,z+a),lt=b+ot/2-x.focus.x-x.la.x,E=Math.max(E,lt+tt.width),0>lt&&(E-=lt),z=Math.max(z,Math.max(Pt,yt)+a+tt.height),0>x.S.x&&(b=T0(y,x.S.x,!1,b,ot))):(x.S.h(E+a,b+ot/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(bt,ft)+a+tt.width),yt=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,yt+tt.height),0>yt&&(z-=yt),0>x.S.y&&(b=T0(y,x.S.y,!0,b,ot)))),new gn(b,0,E,z)}function dx(a,y,x,b,E,z){var tt=x.length;if(tt===0)return new gn(b,0,E,z);if(tt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new gn(b,0,E,z);for(var ot=y.nodeSpacing,rt=y.rowSpacing,lt=Tu(y)===270,ut=0,ft=0,yt=0,Pt=0;Pt<tt;Pt++)if(!(Pt%2!==0||1<tt&&Pt===tt-1)){var bt=x[Pt],Nt=bt.Da,Qt=ut===0?0:rt;if(lt){var Wt=a.computeBusNodeSpacing(bt)-ot;yt-=Qt+Nt.height,bt.S.h(b-(Nt.width+Wt),yt),E=Math.max(E,Nt.width+Wt),z=Math.max(z,Math.abs(yt))}else Wt=a.computeBusNodeSpacing(bt)-ot,ft-=Qt+Nt.width,bt.S.h(ft,b-(Nt.height+Wt)),z=Math.max(z,Nt.height+Wt),E=Math.max(E,Math.abs(ft));ut++}for(ut=0,bt=ft,Pt=yt,lt?(ft=b+ot,yt=0):(ft=0,yt=b+ot),Nt=0;Nt<tt;Nt++)if(Nt%2!==0){Qt=x[Nt],Wt=Qt.Da;var ae=ut===0?0:rt;if(lt){var ue=a.computeBusNodeSpacing(Qt)-ot;yt-=ae+Wt.height,Qt.S.h(ft+ue,yt),E=Math.max(E,ft+Wt.width+ue),z=Math.max(z,Math.abs(yt))}else ue=a.computeBusNodeSpacing(Qt)-ot,ft-=ae+Wt.width,Qt.S.h(ft,yt+ue),z=Math.max(z,yt+Wt.height+ue),E=Math.max(E,Math.abs(ft));ut++}for(1<tt&&tt%2===1&&(rt=x[tt-1],ut=rt.Da,a=a.computeBusLastRowSpacing(rt,lt?Math.max(Math.abs(Pt),Math.abs(yt)):Math.max(Math.abs(bt),Math.abs(ft))),lt?(rt.S.h(b+ot/2-rt.focus.x-rt.la.x,-z-ut.height-a),ft=b+ot/2-rt.focus.x-rt.la.x,E=Math.max(E,ft+ut.width),0>ft&&(E-=ft),z=Math.max(z,Math.abs(Math.min(Pt,yt))+a+ut.height),0>rt.S.x&&(b=T0(y,rt.S.x,!1,b,ot))):(rt.S.h(-E-ut.width-a,b+ot/2-rt.focus.y-rt.la.y),E=Math.max(E,Math.abs(Math.min(bt,ft))+a+ut.width),yt=b+ot/2-rt.focus.y-rt.la.y,z=Math.max(z,yt+ut.height),0>yt&&(z-=yt),0>rt.S.y&&(b=T0(y,rt.S.y,!0,b,ot)))),y=0;y<tt;y++)ot=x[y],lt?ot.S.h(ot.S.x,ot.S.y+z):ot.S.h(ot.S.x+E,ot.S.y);return new gn(b,0,E,z)}Lo.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Lo.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,tt=0;tt<z;tt++)x?a[tt].S.h(a[tt].S.x,a[tt].S.y-y):a[tt].S.h(a[tt].S.x-y,a[tt].S.y);return y=a[z-1],Math.max(b,x?y.la.y+y.focus.y-E/2:y.la.x+y.focus.x-E/2)}function Fy(a,y,x){switch(a.alignment){case Df:case Dg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Th:return a.width>y?a.width:y;case Oh:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Bd:case Ih:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case Dd:return a.width-a.focus.x+a.nodeSpacing/2+y;case id:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function ky(a,y,x){switch(a.alignment){case Df:case Dg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Th:return a.height>y?a.height:y;case Oh:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Bd:case Ih:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case Dd:return a.height-a.focus.y+a.nodeSpacing/2+y;case id:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function By(a,y,x){switch(a){case Dg:y/=2,x/=2;break;case Df:y/=2,x/=2;break;case Th:x=y=0;break;case Oh:break;default:xe("Unhandled alignment value "+a.toString())}return new Zt(y,x)}function Qc(a,y,x,b,E,z){y=By(y,x,b),kf(a,y.x,y.y,E,z)}function kf(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 Nh: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:xe("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,tt,ot){var rt=Tu(y),lt=rt===90||rt===270,ut=y.nodeSpacing;y=b;var ft=E;b=z;var yt=tt,Pt=x.Yo,bt=x.kp;tt=x.Da;var Nt=lt?Math.max(yt,tt.height):Math.max(b,tt.width);if((Pt===null||rt!==Tu(x))&&(Pt=yl(a,2),bt=yl(a,2),lt?(Pt[0].h(0,0),Pt[1].h(0,tt.height),bt[0].h(tt.width,0),bt[1].h(bt[0].x,Pt[1].y)):(Pt[0].h(0,0),Pt[1].h(tt.width,0),bt[0].h(0,tt.height),bt[1].h(Pt[1].x,bt[0].y))),lt){if(yt=9999999,!(ft===null||2>ft.length||Pt===null||2>Pt.length))for(E=x=0;x<ft.length&&E<Pt.length;){z=ft[x];var Qt=Pt[E];rt=Qt.x,lt=Qt.y,rt+=b;var Wt=z;x+1<ft.length&&(Wt=ft[x+1]);var ae=Qt;Qt=ae.x,ae=ae.y,E+1<Pt.length&&(ae=Pt[E+1],Qt=ae.x,ae=ae.y,Qt+=b);var ue=yt;z.y===lt?ue=rt-z.x:z.y>lt&&z.y<ae?ue=rt+(z.y-lt)/(ae-lt)*(Qt-rt)-z.x:lt>z.y&<<Wt.y&&(ue=rt-(z.x+(lt-z.y)/(Wt.y-z.y)*(Wt.x-z.x))),ue<yt&&(yt=ue),Wt.y<=z.y?x++:ae<=lt?E++:(Wt.y<=ae&&x++,ae<=Wt.y&&E++)}if(yt=b-yt,yt+=ut,x=Pt,E=yt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=yl(a,y.length+x.length),b=z=rt=0;z<x.length&&x[z].y<y[0].y;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(;rt<y.length;)lt=y[rt++],ut[b++].h(lt.x,lt.y);for(rt=y[y.length-1].y;z<x.length&&x[z].y<=rt;)z++;for(;z<x.length&&x[z].y>rt;)lt=x[z++],ut[b++].h(lt.x+E,lt.y);for(x=yl(a,b),rt=0;rt<b;rt++)x[rt].assign(ut[rt]);qu(a,ut),b=x}if(z=bt,rt=yt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=yl(a,ft.length+z.length),E=lt=x=0;x<ft.length&&ft[x].y<z[0].y;)Wt=ft[x++],ut[E++].h(Wt.x,Wt.y);for(;lt<z.length;)Wt=z[lt++],ut[E++].h(Wt.x+rt,Wt.y);for(z=z[z.length-1].y;x<ft.length&&ft[x].y<=z;)x++;for(;x<ft.length&&ft[x].y>z;)rt=ft[x++],ut[E++].h(rt.x,rt.y);for(z=yl(a,E),x=0;x<E;x++)z[x].assign(ut[x]);qu(a,ut),E=z}return z=Math.max(0,yt)+tt.width,tt=Nt,qu(a,y),qu(a,Pt),qu(a,ft),qu(a,bt),ot[0]=b,ot[1]=E,new gn(yt,0,z,tt)}if(b=9999999,!(ft===null||2>ft.length||Pt===null||2>Pt.length))for(E=x=0;x<ft.length&&E<Pt.length;)z=ft[x],Qt=Pt[E],rt=Qt.x,lt=Qt.y,lt+=yt,Wt=z,x+1<ft.length&&(Wt=ft[x+1]),ae=Qt,Qt=ae.x,ae=ae.y,E+1<Pt.length&&(ae=Pt[E+1],Qt=ae.x,ae=ae.y,ae+=yt),ue=b,z.x===rt?ue=lt-z.y:z.x>rt&&z.x<Qt?ue=lt+(z.x-rt)/(Qt-rt)*(ae-lt)-z.y:rt>z.x&&rt<Wt.x&&(ue=lt-(z.y+(rt-z.x)/(Wt.x-z.x)*(Wt.y-z.y))),ue<b&&(b=ue),Wt.x<=z.x?x++:Qt<=rt?E++:(Wt.x<=Qt&&x++,Qt<=Wt.x&&E++);if(yt-=b,yt+=ut,x=Pt,E=yt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ut=yl(a,y.length+x.length),b=z=rt=0;z<x.length&&x[z].x<y[0].x;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(;rt<y.length;)lt=y[rt++],ut[b++].h(lt.x,lt.y);for(rt=y[y.length-1].x;z<x.length&&x[z].x<=rt;)z++;for(;z<x.length&&x[z].x>rt;)lt=x[z++],ut[b++].h(lt.x,lt.y+E);for(x=yl(a,b),rt=0;rt<b;rt++)x[rt].assign(ut[rt]);qu(a,ut),b=x}if(z=bt,rt=yt,ft===null||2>ft.length||z===null||2>z.length)E=null;else{for(ut=yl(a,ft.length+z.length),E=lt=x=0;x<ft.length&&ft[x].x<z[0].x;)Wt=ft[x++],ut[E++].h(Wt.x,Wt.y);for(;lt<z.length;)Wt=z[lt++],ut[E++].h(Wt.x,Wt.y+rt);for(z=z[z.length-1].x;x<ft.length&&ft[x].x<=z;)x++;for(;x<ft.length&&ft[x].x>z;)rt=ft[x++],ut[E++].h(rt.x,rt.y);for(z=yl(a,E),x=0;x<E;x++)z[x].assign(ut[x]);qu(a,ut),E=z}return z=Nt,tt=Math.max(0,yt)+tt.height,qu(a,y),qu(a,Pt),qu(a,ft),qu(a,bt),ot[0]=b,ot[1]=E,new gn(yt,0,z,tt)}function yl(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 Zt;return a}function qu(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Lo.prototype.arrangeTrees=function(){if(this.Rb===H0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof xu){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 xu&&a.push(x);switch(this.sorting){case Bg:break;case Up:a.reverse();break;case Yp:a.sort(this.comparer);break;case Xp:a.sort(this.comparer),a.reverse();break;default:xe("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 W0:x+=E.Da.height+this.$d.height;break;case Iy:y+=E.Da.width+this.$d.width;break;default:xe("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 tt=y[z];Dy(a,tt,x+tt.S.x,b+tt.S.y)}}}Lo.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Lo.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Lo.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 Zt(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Zt(-this.layerSpacing/2,-this.nodeSpacing/2)),E=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var tt=0;tt<a.length;tt++)z+=a[tt]+y[tt];for(tt=0;tt<a.length;tt++){var ot=a[tt]+y[tt];this.angle===270?(z-=ot,E.push(new gn(0,z,x,ot))):this.angle===90?(E.push(new gn(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,E.push(new gn(z,0,ot,x))):(E.push(new gn(z,0,ot,x)),z+=ot)}this.commitLayers(E,b)}},Lo.prototype.commitLayers=function(){},Lo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Lo.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof xu&&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])}}Lo.prototype.setPortSpots=function(a){var y=a.alignment;if(dc(y)){var x=this.ud===Nh,b=Tu(a);switch(b){case 0:var E=Xa;break;case 90:E=Ha;break;case 180:E=Aa;break;default:E=fa}var z=a.children,tt=z.length;switch(y){case Bd:case Ih:for(y=0;y<tt;y++){var ot=z[y];if(ot=(x?ot.sourceEdges:ot.destinationEdges).first(),ot!==null&&(ot=ot.link,ot!==null)){var rt=b===90||b===270?Aa:fa;if(tt===1||y===tt-1&&tt%2===1)switch(b){case 0:rt=Aa;break;case 90:rt=fa;break;case 180:rt=Xa;break;default:rt=Ha}else y%2===0&&(rt=b===90||b===270?Xa:Ha);x?(a.setsPortSpot&&(ot.fromSpot=E),a.setsChildPortSpot&&(ot.toSpot=rt)):(a.setsPortSpot&&(ot.fromSpot=rt),a.setsChildPortSpot&&(ot.toSpot=E))}}break;case Dd:for(b=b===90||b===270?Xa:Ha,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)));break;case id:for(b=b===90||b===270?Aa:fa,z=x?a.destinationEdges:a.sourceEdges;z.next();)tt=z.value.link,tt!==null&&(x?(a.setsPortSpot&&(tt.fromSpot=E),a.setsChildPortSpot&&(tt.toSpot=b)):(a.setsPortSpot&&(tt.fromSpot=b),a.setsChildPortSpot&&(tt.toSpot=E)))}}else if(x=Tu(a),this.ud===Nh){for(E=a.destinationEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.fromSpot=Xa;break;case 90:b.fromSpot=Ha;break;case 180:b.fromSpot=Aa;break;default:b.fromSpot=fa}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Aa;break;case 90:b.toSpot=fa;break;case 180:b.toSpot=Xa;break;default:b.toSpot=Ha}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Xa;break;case 90:b.toSpot=Ha;break;case 180:b.toSpot=Aa;break;default:b.toSpot=fa}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Aa;break;case 90:b.fromSpot=fa;break;case 180:b.fromSpot=Xa;break;default:b.fromSpot=Ha}else b.fromSpot=a.childPortSpot}};function Tu(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Lo.prototype.computeLayerSpacing=function(a){var y=Tu(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},Lo.prototype.computeNodeIndent=function(a){var y=Tu(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)},_t.Object.defineProperties(Lo.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!==j0&&a!==Ty&&a!==Ny&&a!==Oy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Ry&&a!==zy&&a!==G0||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==W0&&a!==Iy&&a!==H0||(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!==Bg&&a!==Up&&a!==Yp&&!Xp||(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()):xe("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!==z0&&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!==Bg&&a!==Up&&a!==Yp&&!Xp||(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!==z0&&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 Be(Lo,"PathDefault",-1),Nh=new Be(Lo,"PathDestination",0),Bf=new Be(Lo,"PathSource",1),Bg=new Be(Lo,"SortingForwards",10),Up=new Be(Lo,"SortingReverse",11),Yp=new Be(Lo,"SortingAscending",12),Xp=new Be(Lo,"SortingDescending",13),Dg=new Be(Lo,"AlignmentCenterSubtrees",20),Df=new Be(Lo,"AlignmentCenterChildren",21),Th=new Be(Lo,"AlignmentStart",22),Oh=new Be(Lo,"AlignmentEnd",23),Bd=new Be(Lo,"AlignmentBus",24),Ih=new Be(Lo,"AlignmentBusBranching",25),Dd=new Be(Lo,"AlignmentTopLeftBus",26),id=new Be(Lo,"AlignmentBottomRightBus",27),z0=new Be(Lo,"CompactionNone",30),Jp=new Be(Lo,"CompactionBlock",31),j0=new Be(Lo,"StyleLayered",40),Ny=new Be(Lo,"StyleLastParents",41),Ty=new Be(Lo,"StyleAlternating",42),Oy=new Be(Lo,"StyleRootOnly",43),W0=new Be(Lo,"ArrangementVertical",50),Iy=new Be(Lo,"ArrangementHorizontal",51),H0=new Be(Lo,"ArrangementFixedRoots",52),Ry=new Be(Lo,"LayerIndividual",60),zy=new Be(Lo,"LayerSiblings",61),G0=new Be(Lo,"LayerUniform",62);Lo.className="TreeLayout",Lo.PathDefault=R0,Lo.PathDestination=Nh,Lo.PathSource=Bf,Lo.SortingForwards=Bg,Lo.SortingReverse=Up,Lo.SortingAscending=Yp,Lo.SortingDescending=Xp,Lo.AlignmentCenterSubtrees=Dg,Lo.AlignmentCenterChildren=Df,Lo.AlignmentStart=Th,Lo.AlignmentEnd=Oh,Lo.AlignmentBus=Bd,Lo.AlignmentBusBranching=Ih,Lo.AlignmentTopLeftBus=Dd,Lo.AlignmentBottomRightBus=id,Lo.CompactionNone=z0,Lo.CompactionBlock=Jp,Lo.StyleLayered=j0,Lo.StyleLastParents=Ny,Lo.StyleAlternating=Ty,Lo.StyleRootOnly=Oy,Lo.ArrangementVertical=W0,Lo.ArrangementHorizontal=Iy,Lo.ArrangementFixedRoots=H0,Lo.LayerIndividual=Ry,Lo.LayerSiblings=zy,Lo.LayerUniform=G0;function Nf(a){Ar.call(this,a)}he(Nf,Ar),Nf.prototype.createVertex=function(){return new xu(this)},Nf.prototype.createEdge=function(){return new Ng(this)},Nf.className="TreeNetwork";function xu(a){Va.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 Zt(0,0),this.Da=new Yn(0,0),this.la=new Zt(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=Bg,this.hd=oy,this.Kb=0,this.Jb=Df,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=lr,this.wr=!0,this.Dp=lr}he(xu,Va),xu.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)},_t.Object.defineProperties(xu.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)}}}),xu.className="TreeVertex";function Ng(a){Fl.call(this,a),this.$t=new Zt(0,0)}he(Ng,Fl),Ng.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 Nh:x=this.fromVertex,b=this.toVertex;break;case Bf:x=this.toVertex,b=this.fromVertex;break;default:xe("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=Tu(x),tt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var rt=a.curve===Jl,lt=a.isOrthogonal,ut;if(a.uh(),lt||rt){for(ut=2;4<a.pointsCount;)a.pv(2);var ft=a.i(1),yt=a.i(2)}else{for(ut=1;3<a.pointsCount;)a.pv(1);ft=a.i(0),yt=a.i(a.pointsCount-1)}var Pt=a.i(a.pointsCount-1);z===0?(x.alignment===Oh?(z=b.bottom+E.y,E.y===0&&ft.y>Pt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Th?(z=b.top+E.y,E.y===0&&ft.y<Pt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.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,rt?(a.m(ut,ft.x,z),ut++,a.m(ut,b.right+tt,z),ut++,a.m(ut,b.right+tt+(E.x-ot)/3,z),ut++,a.m(ut,b.right+tt+2*(E.x-ot)/3,z),ut++,a.m(ut,b.right+tt+(E.x-ot),z),ut++,a.m(ut,yt.x,z)):(lt&&(a.m(ut,b.right+tt/2,ft.y),ut++),a.m(ut,b.right+tt/2,z),ut++,a.m(ut,b.right+tt+E.x-(lt?ot/2:ot),z),ut++,lt&&a.m(ut,a.i(ut-1).x,yt.y))):z===90?(x.alignment===Oh?(z=b.right+E.x,E.x===0&&ft.x>Pt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Th?(z=b.left+E.x,E.x===0&&ft.x<Pt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.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,rt?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.bottom+tt),ut++,a.m(ut,z,b.bottom+tt+(E.y-ot)/3),ut++,a.m(ut,z,b.bottom+tt+2*(E.y-ot)/3),ut++,a.m(ut,z,b.bottom+tt+(E.y-ot)),ut++,a.m(ut,z,yt.y)):(lt&&(a.m(ut,ft.x,b.bottom+tt/2),ut++),a.m(ut,z,b.bottom+tt/2),ut++,a.m(ut,z,b.bottom+tt+E.y-(lt?ot/2:ot)),ut++,lt&&a.m(ut,yt.x,a.i(ut-1).y))):z===180?(x.alignment===Oh?(z=b.bottom+E.y,E.y===0&&ft.y>Pt.y+x.rowIndent&&(z=Math.min(z,Math.max(ft.y,z-y.computeNodeIndent(x))))):x.alignment===Th?(z=b.top+E.y,E.y===0&&ft.y<Pt.y-x.rowIndent&&(z=Math.max(z,Math.min(ft.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,rt?(a.m(ut,ft.x,z),ut++,a.m(ut,b.left-tt,z),ut++,a.m(ut,b.left-tt+(E.x+ot)/3,z),ut++,a.m(ut,b.left-tt+2*(E.x+ot)/3,z),ut++,a.m(ut,b.left-tt+(E.x+ot),z),ut++,a.m(ut,yt.x,z)):(lt&&(a.m(ut,b.left-tt/2,ft.y),ut++),a.m(ut,b.left-tt/2,z),ut++,a.m(ut,b.left-tt+E.x+(lt?ot/2:ot),z),ut++,lt&&a.m(ut,a.i(ut-1).x,yt.y))):z===270?(x.alignment===Oh?(z=b.right+E.x,E.x===0&&ft.x>Pt.x+x.rowIndent&&(z=Math.min(z,Math.max(ft.x,z-y.computeNodeIndent(x))))):x.alignment===Th?(z=b.left+E.x,E.x===0&&ft.x<Pt.x-x.rowIndent&&(z=Math.max(z,Math.min(ft.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,rt?(a.m(ut,z,ft.y),ut++,a.m(ut,z,b.top-tt),ut++,a.m(ut,z,b.top-tt+(E.y+ot)/3),ut++,a.m(ut,z,b.top-tt+2*(E.y+ot)/3),ut++,a.m(ut,z,b.top-tt+(E.y+ot)),ut++,a.m(ut,z,yt.y)):(lt&&(a.m(ut,ft.x,b.top-tt/2),ut++),a.m(ut,z,b.top-tt/2),ut++,a.m(ut,z,b.top-tt+E.y+(lt?ot/2:ot)),ut++,lt&&a.m(ut,yt.x,a.i(ut-1).y))):xe("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=Tu(x),y!==Tu(E)&&(tt=b.computeLayerSpacing(x),ot=x.bounds,x=E.bounds,y===0&&x.left-ot.right<tt+1||y===90&&x.top-ot.bottom<tt+1||y===180&&ot.left-x.right<tt+1||y===270&&ot.top-x.bottom<tt+1||(a.vg(),x=a.curve===Jl,E=a.isOrthogonal,b=dc(this.fromVertex.alignment),a.uh(),y===0?(y=ot.right+tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=ot.bottom+tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=ot.left-tt/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=ot.top-tt/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):E?b?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},_t.Object.defineProperties(Ng.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)}}}),Ng.className="TreeEdge",zr.prototype.initializeStandardTools=function(){this.gb("Action",new uo,this.mouseDownTools),this.gb("Relinking",new mi,this.mouseDownTools),this.gb("LinkReshaping",new xi,this.mouseDownTools),this.gb("Rotating",new To,this.mouseDownTools),this.gb("Resizing",new ro,this.mouseDownTools),this.gb("Linking",new oi,this.mouseMoveTools),this.gb("Dragging",new Yr,this.mouseMoveTools),this.gb("DragSelecting",new lo,this.mouseMoveTools),this.gb("Panning",new Gi,this.mouseMoveTools),this.gb("ContextMenu",new $o,this.mouseUpTools),this.gb("TextEditing",new Vo,this.mouseUpTools),this.gb("ClickCreating",new Eo,this.mouseUpTools),this.gb("ClickSelecting",new gr,this.mouseUpTools)},uh("Horizontal",new vm),uh("Spot",new Sm),uh("Table",new wm),uh("Viewbox",new bm),uh("TableRow",new Pm),uh("TableColumn",new Cm),uh("Graduated",new dp),uh("Grid",new hp),ng.add("GraphLinksModel",is),ng.add("TreeModel",uu);var Z0=Yt.go,jy={get licenseKey(){return Xe.licenseKey},set licenseKey(a){Xe.licenseKey=a},get version(){return Xe.version},Group:oo,EnumValue:Be,List:xn,Set:Ln,Map:si,Point:Zt,Size:Yn,Rect:gn,Margin:Bi,Spot:yi,Geometry:Qn,PathFigure:Ga,PathSegment:Uo,InputEvent:ws,DiagramEvent:Vh,ChangedEvent:Gr,Model:vi,GraphLinksModel:zo,TreeModel:Qs,Binding:Pa,Transaction:Ja,UndoManager:Ur,CommandHandler:Jt,Tool:Ko,DraggingTool:Yr,DraggingInfo:qh,DraggingOptions:at,LinkingBaseTool:nn,LinkingTool:oi,RelinkingTool:mi,LinkReshapingTool:xi,ResizingTool:ro,RotatingTool:To,ClickSelectingTool:gr,ActionTool:uo,ClickCreatingTool:Eo,HTMLInfo:So,ContextMenuTool:$o,DragSelectingTool:lo,PanningTool:Gi,TextEditingTool:Vo,ToolManager:zr,Animation:oa,AnimationManager:ta,AnimationTrigger:Ll,Layer:Kr,Diagram:Xe,Palette:ct,Overview:pt,Brush:hr,GraphObject:be,Panel:Hn,RowColumnDefinition:Ia,Shape:fo,TextBlock:Lr,Picture:ul,Part:Mi,Adornment:Xo,Node:ii,Link:Un,Placeholder:Us,Layout:Hr,LayoutNetwork:Ar,LayoutVertex:Va,LayoutEdge:Fl,GridLayout:fs,PanelLayout:Ka,CircularLayout:qr,CircularNetwork:Mg,CircularVertex:jp,CircularEdge:C0,ForceDirectedLayout:xs,ForceDirectedNetwork:Ff,ForceDirectedVertex:Wp,ForceDirectedEdge:Hp,LayeredDigraphLayout:fr,LayeredDigraphNetwork:kg,LayeredDigraphVertex:du,LayeredDigraphEdge:Kp,TreeLayout:Lo,TreeNetwork:Nf,TreeVertex:xu,TreeEdge:Ng};typeof Z0=="object"&&Z0.version&&qn("WARNING: a `go` object on the root object is already defined. "+("Debug"in Z0?"debug ":"")+"version: "+Z0.version+", replaced with version: "+jy.version),Xe.prototype.go=jy,Yt.go=jy,typeof Dn.exports=="object"&&(Dn.exports=typeof St.g!="undefined"?St.g.go:self.go)}();var Ct=typeof St.g!="undefined"?St.g.go:self.go;const It=typeof St.g!="undefined"?St.g.go:self.go,ee=It.Group,Ne=It.EnumValue,Vt=It.List,fe=It.Set,Ft=It.Map,ze=It.Point,we=It.Size,oe=It.Rect,ve=It.Margin,ye=It.Spot,Re=It.Geometry,Tt=It.PathFigure,et=It.PathSegment,nt=It.InputEvent,ht=It.DiagramEvent,st=It.ChangedEvent,gt=It.Model,vt=It.GraphLinksModel,wt=It.TreeModel,Bt=It.Binding,kt=It.Transaction,Ot=It.UndoManager,jt=It.CommandHandler,Xt=It.Tool,Ut=It.DraggingTool,de=It.DraggingInfo,Gt=It.LinkingBaseTool,Ve=It.LinkingTool,me=It.RelinkingTool,sn=It.LinkReshapingTool,qe=It.ResizingTool,Ye=It.RotatingTool,je=It.ClickSelectingTool,hn=It.ActionTool,ge=It.ClickCreatingTool,Ht=It.HTMLInfo,Ce=It.ContextMenuTool,bn=It.DragSelectingTool,yn=It.PanningTool,Ae=It.TextEditingTool,Ue=It.ToolManager,Sn=It.Animation,Xn=It.AnimationManager,Pn=It.AnimationTrigger,Gn=It.Layer,Ee=It.Diagram,Jn=It.Palette,ai=It.Overview,ui=It.Brush,ln=It.GraphObject,Te=It.Panel,Me=It.RowColumnDefinition,ie=It.Shape,Kt=It.TextBlock,Oe=It.TextBlockMetrics,ke=It.Picture,te=It.Part,qt=It.Adornment,Dt=It.Node,xt=It.Link,mt=It.Placeholder,Mt=It.Layout,Rt=It.LayoutNetwork,Et=It.LayoutVertex,re=It.LayoutEdge,Qe=It.GridLayout,mn=It.PanelLayout,le=It.CircularLayout,Ge=It.CircularNetwork,cn=It.CircularVertex,Mn=It.CircularEdge,Zn=It.ForceDirectedLayout,_n=It.ForceDirectedNetwork,di=It.ForceDirectedVertex,ri=It.ForceDirectedEdge,Fi=It.LayeredDigraphLayout,Zi=It.LayeredDigraphNetwork,Vi=It.LayeredDigraphVertex,ji=It.LayeredDigraphEdge,qi=It.TreeLayout,wo=It.TreeNetwork,Ei=It.TreeVertex,Po=It.TreeEdge,ki=It.version},17115:function(Dn,An,St){"use strict";St.d(An,{ZP:function(){return Ft}});var Ct=St(29043),It=St(59301),ee=St(87746),Ne=0,Vt=(0,ee.Z)();function fe(){var ze;return Vt?(ze=Ne,Ne+=1):ze="TEST_OR_SSR",ze}function Ft(ze){var we=It.useState(),oe=(0,Ct.Z)(we,2),ve=oe[0],ye=oe[1];return It.useEffect(function(){ye("rc_select_".concat(fe()))},[]),ze||ve}},77861:function(Dn,An,St){"use strict";St.d(An,{Ac:function(){return Mt},Xo:function(){return ri},Wx:function(){return Zi},ZP:function(){return tn},lk:function(){return wt}});var Ct=St(5891),It=St(26390),ee=St(80962),Ne=St(57259),Vt=St(29043),fe=St(19149),Ft=St(80665),ze=St(35788),we=St(51395),oe=St(59301),ve=St(92310),ye=St.n(ve),Re=St(28800),Tt=St(93144),et=St(85108),nt=St(20475),ht=function(Yt){var $e=Yt.className,on=Yt.customizeIcon,zn=Yt.customizeIconProps,en=Yt.onMouseDown,xe=Yt.onClick,vn=Yt.children,Wn;return typeof on=="function"?Wn=on(zn):Wn=on,oe.createElement("span",{className:$e,onMouseDown:function(We){We.preventDefault(),en&&en(We)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:xe,"aria-hidden":!0},Wn!==void 0?Wn:oe.createElement("span",{className:ye()($e.split(/\s+/).map(function(qn){return"".concat(qn,"-icon")}))},vn))},st=ht;function gt(Se,Yt,$e,on,zn){var en=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,xe=arguments.length>6?arguments[6]:void 0,vn=arguments.length>7?arguments[7]:void 0,Wn=oe.useMemo(function(){if((0,Ft.Z)(on)==="object")return on.clearIcon;if(zn)return zn},[on,zn]),qn=oe.useMemo(function(){return!!(!en&&on&&($e.length||xe)&&!(vn==="combobox"&&xe===""))},[on,en,$e.length,xe,vn]);return{allowClear:qn,clearIcon:oe.createElement(st,{className:"".concat(Se,"-clear"),onMouseDown:Yt,customizeIcon:Wn},"\xD7")}}var vt=oe.createContext(null);function wt(){return oe.useContext(vt)}function Bt(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Yt=oe.useState(!1),$e=(0,Vt.Z)(Yt,2),on=$e[0],zn=$e[1],en=oe.useRef(null),xe=function(){window.clearTimeout(en.current)};oe.useEffect(function(){return xe},[]);var vn=function(qn,We){xe(),en.current=window.setTimeout(function(){zn(qn),We&&We()},Se)};return[on,vn,xe]}function kt(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Yt=oe.useRef(null),$e=oe.useRef(null);oe.useEffect(function(){return function(){window.clearTimeout($e.current)}},[]);function on(zn){(zn||Yt.current===null)&&(Yt.current=zn),window.clearTimeout($e.current),$e.current=window.setTimeout(function(){Yt.current=null},Se)}return[function(){return Yt.current},on]}function Ot(Se,Yt,$e,on){var zn=oe.useRef(null);zn.current={open:Yt,triggerOpen:$e,customizedTrigger:on},oe.useEffect(function(){function en(xe){var vn;if(!((vn=zn.current)!==null&&vn!==void 0&&vn.customizedTrigger)){var Wn=xe.target;Wn.shadowRoot&&xe.composed&&(Wn=xe.composedPath()[0]||Wn),zn.current.open&&Se().filter(function(qn){return qn}).every(function(qn){return!qn.contains(Wn)&&qn!==Wn})&&zn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",en),function(){return window.removeEventListener("mousedown",en)}},[])}var jt=St(36994),Xt=St(11780),Ut=function(Yt,$e){var on,zn,en=Yt.prefixCls,xe=Yt.id,vn=Yt.inputElement,Wn=Yt.disabled,qn=Yt.tabIndex,We=Yt.autoFocus,fn=Yt.autoComplete,Ie=Yt.editable,an=Yt.activeDescendantId,_e=Yt.value,rn=Yt.maxLength,pn=Yt.onKeyDown,Cn=Yt.onMouseDown,kn=Yt.onChange,In=Yt.onPaste,wn=Yt.onCompositionStart,Kn=Yt.onCompositionEnd,Ci=Yt.open,Wi=Yt.attrs,Li=vn||oe.createElement("input",null),Be=Li,ei=Be.ref,Si=Be.props,ci=Si.onKeyDown,Hi=Si.onChange,Ni=Si.onMouseDown,Ui=Si.onCompositionStart,Ii=Si.onCompositionEnd,bi=Si.style;return(0,we.Kp)(!("maxLength"in Li.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Li=oe.cloneElement(Li,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({type:"search"},Si),{},{id:xe,ref:(0,nt.sQ)($e,ei),disabled:Wn,tabIndex:qn,autoComplete:fn||"off",autoFocus:We,className:ye()("".concat(en,"-selection-search-input"),(on=Li)===null||on===void 0||(zn=on.props)===null||zn===void 0?void 0:zn.className),role:"combobox","aria-label":"Search","aria-expanded":Ci||!1,"aria-haspopup":"listbox","aria-owns":"".concat(xe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(xe,"_list"),"aria-activedescendant":Ci?an:void 0},Wi),{},{value:Ie?_e:"",maxLength:rn,readOnly:!Ie,unselectable:Ie?null:"on",style:(0,Ne.Z)((0,Ne.Z)({},bi),{},{opacity:Ie?null:0}),onKeyDown:function(xn){pn(xn),ci&&ci(xn)},onMouseDown:function(xn){Cn(xn),Ni&&Ni(xn)},onChange:function(xn){kn(xn),Hi&&Hi(xn)},onCompositionStart:function(xn){wn(xn),Ui&&Ui(xn)},onCompositionEnd:function(xn){Kn(xn),Ii&&Ii(xn)},onPaste:In})),Li},de=oe.forwardRef(Ut);de.displayName="Input";var Gt=de;function Ve(Se){return Array.isArray(Se)?Se:Se!==void 0?[Se]:[]}var me=typeof window!="undefined"&&window.document&&window.document.documentElement,sn=me;function qe(Se){return Se!=null}function Ye(Se){return!Se&&Se!==0}function je(Se){return["string","number"].includes((0,Ft.Z)(Se))}function hn(Se){var Yt=void 0;return Se&&(je(Se.title)?Yt=Se.title.toString():je(Se.label)&&(Yt=Se.label.toString())),Yt}function ge(Se,Yt){sn?oe.useLayoutEffect(Se,Yt):oe.useEffect(Se,Yt)}function Ht(Se){var Yt;return(Yt=Se.key)!==null&&Yt!==void 0?Yt:Se.value}var Ce=function(Yt){Yt.preventDefault(),Yt.stopPropagation()},bn=function(Yt){var $e=Yt.id,on=Yt.prefixCls,zn=Yt.values,en=Yt.open,xe=Yt.searchValue,vn=Yt.autoClearSearchValue,Wn=Yt.inputRef,qn=Yt.placeholder,We=Yt.disabled,fn=Yt.mode,Ie=Yt.showSearch,an=Yt.autoFocus,_e=Yt.autoComplete,rn=Yt.activeDescendantId,pn=Yt.tabIndex,Cn=Yt.removeIcon,kn=Yt.maxTagCount,In=Yt.maxTagTextLength,wn=Yt.maxTagPlaceholder,Kn=wn===void 0?function(Co){return"+ ".concat(Co.length," ...")}:wn,Ci=Yt.tagRender,Wi=Yt.onToggleOpen,Li=Yt.onRemove,Be=Yt.onInputChange,ei=Yt.onInputPaste,Si=Yt.onInputKeyDown,ci=Yt.onInputMouseDown,Hi=Yt.onInputCompositionStart,Ni=Yt.onInputCompositionEnd,Ui=oe.useRef(null),Ii=(0,oe.useState)(0),bi=(0,Vt.Z)(Ii,2),eo=bi[0],xn=bi[1],Fo=(0,oe.useState)(!1),Ln=(0,Vt.Z)(Fo,2),po=Ln[0],Go=Ln[1],Yi="".concat(on,"-selection"),nr=en||fn==="multiple"&&vn===!1||fn==="tags"?xe:"",Bo=fn==="tags"||fn==="multiple"&&vn===!1||Ie&&(en||po);ge(function(){xn(Ui.current.scrollWidth)},[nr]);function Ti(Co,xr,yo,yr,_i){return oe.createElement("span",{className:ye()("".concat(Yi,"-item"),(0,ee.Z)({},"".concat(Yi,"-item-disabled"),yo)),title:hn(Co)},oe.createElement("span",{className:"".concat(Yi,"-item-content")},xr),yr&&oe.createElement(st,{className:"".concat(Yi,"-item-remove"),onMouseDown:Ce,onClick:_i,customizeIcon:Cn},"\xD7"))}function Oi(Co,xr,yo,yr,_i){var Ji=function(rr){Ce(rr),Wi(!en)};return oe.createElement("span",{onMouseDown:Ji},Ci({label:xr,value:Co,disabled:yo,closable:yr,onClose:_i}))}function bo(Co){var xr=Co.disabled,yo=Co.label,yr=Co.value,_i=!We&&!xr,Ji=yo;if(typeof In=="number"&&(typeof yo=="string"||typeof yo=="number")){var Zo=String(Ji);Zo.length>In&&(Ji="".concat(Zo.slice(0,In),"..."))}var rr=function(kr){kr&&kr.stopPropagation(),Li(Co)};return typeof Ci=="function"?Oi(yr,Ji,xr,_i,rr):Ti(Co,Ji,xr,_i,rr)}function Do(Co){var xr=typeof Kn=="function"?Kn(Co):Kn;return Ti({title:xr},xr,!1)}var si=oe.createElement("div",{className:"".concat(Yi,"-search"),style:{width:eo},onFocus:function(){Go(!0)},onBlur:function(){Go(!1)}},oe.createElement(Gt,{ref:Wn,open:en,prefixCls:on,id:$e,inputElement:null,disabled:We,autoFocus:an,autoComplete:_e,editable:Bo,activeDescendantId:rn,value:nr,onKeyDown:Si,onMouseDown:ci,onChange:Be,onPaste:ei,onCompositionStart:Hi,onCompositionEnd:Ni,tabIndex:pn,attrs:(0,jt.Z)(Yt,!0)}),oe.createElement("span",{ref:Ui,className:"".concat(Yi,"-search-mirror"),"aria-hidden":!0},nr,"\xA0")),Zt=oe.createElement(Xt.Z,{prefixCls:"".concat(Yi,"-overflow"),data:zn,renderItem:bo,renderRest:Do,suffix:si,itemKey:Ht,maxCount:kn});return oe.createElement(oe.Fragment,null,Zt,!zn.length&&!nr&&oe.createElement("span",{className:"".concat(Yi,"-placeholder")},qn))},yn=bn,Ae=function(Yt){var $e=Yt.inputElement,on=Yt.prefixCls,zn=Yt.id,en=Yt.inputRef,xe=Yt.disabled,vn=Yt.autoFocus,Wn=Yt.autoComplete,qn=Yt.activeDescendantId,We=Yt.mode,fn=Yt.open,Ie=Yt.values,an=Yt.placeholder,_e=Yt.tabIndex,rn=Yt.showSearch,pn=Yt.searchValue,Cn=Yt.activeValue,kn=Yt.maxLength,In=Yt.onInputKeyDown,wn=Yt.onInputMouseDown,Kn=Yt.onInputChange,Ci=Yt.onInputPaste,Wi=Yt.onInputCompositionStart,Li=Yt.onInputCompositionEnd,Be=Yt.title,ei=oe.useState(!1),Si=(0,Vt.Z)(ei,2),ci=Si[0],Hi=Si[1],Ni=We==="combobox",Ui=Ni||rn,Ii=Ie[0],bi=pn||"";Ni&&Cn&&!ci&&(bi=Cn),oe.useEffect(function(){Ni&&Hi(!1)},[Ni,Cn]);var eo=We!=="combobox"&&!fn&&!rn?!1:!!bi,xn=Be===void 0?hn(Ii):Be,Fo=function(){if(Ii)return null;var po=eo?{visibility:"hidden"}:void 0;return oe.createElement("span",{className:"".concat(on,"-selection-placeholder"),style:po},an)};return oe.createElement(oe.Fragment,null,oe.createElement("span",{className:"".concat(on,"-selection-search")},oe.createElement(Gt,{ref:en,prefixCls:on,id:zn,open:fn,inputElement:$e,disabled:xe,autoFocus:vn,autoComplete:Wn,editable:Ui,activeDescendantId:qn,value:bi,onKeyDown:In,onMouseDown:wn,onChange:function(po){Hi(!0),Kn(po)},onPaste:Ci,onCompositionStart:Wi,onCompositionEnd:Li,tabIndex:_e,attrs:(0,jt.Z)(Yt,!0),maxLength:Ni?kn:void 0})),!Ni&&Ii?oe.createElement("span",{className:"".concat(on,"-selection-item"),title:xn,style:eo?{visibility:"hidden"}:void 0},Ii.label):null,Fo())},Ue=Ae;function Sn(Se){return![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(Se)}var Xn=function(Yt,$e){var on=(0,oe.useRef)(null),zn=(0,oe.useRef)(!1),en=Yt.prefixCls,xe=Yt.open,vn=Yt.mode,Wn=Yt.showSearch,qn=Yt.tokenWithEnter,We=Yt.autoClearSearchValue,fn=Yt.onSearch,Ie=Yt.onSearchSubmit,an=Yt.onToggleOpen,_e=Yt.onInputKeyDown,rn=Yt.domRef;oe.useImperativeHandle($e,function(){return{focus:function(){on.current.focus()},blur:function(){on.current.blur()}}});var pn=kt(0),Cn=(0,Vt.Z)(pn,2),kn=Cn[0],In=Cn[1],wn=function(bi){var eo=bi.which;(eo===et.Z.UP||eo===et.Z.DOWN)&&bi.preventDefault(),_e&&_e(bi),eo===et.Z.ENTER&&vn==="tags"&&!zn.current&&!xe&&(Ie==null||Ie(bi.target.value)),Sn(eo)&&an(!0)},Kn=function(){In(!0)},Ci=(0,oe.useRef)(null),Wi=function(bi){fn(bi,!0,zn.current)!==!1&&an(!0)},Li=function(){zn.current=!0},Be=function(bi){zn.current=!1,vn!=="combobox"&&Wi(bi.target.value)},ei=function(bi){var eo=bi.target.value;if(qn&&Ci.current&&/[\r\n]/.test(Ci.current)){var xn=Ci.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");eo=eo.replace(xn,Ci.current)}Ci.current=null,Wi(eo)},Si=function(bi){var eo=bi.clipboardData,xn=eo.getData("text");Ci.current=xn},ci=function(bi){var eo=bi.target;if(eo!==on.current){var xn=document.body.style.msTouchAction!==void 0;xn?setTimeout(function(){on.current.focus()}):on.current.focus()}},Hi=function(bi){var eo=kn();bi.target!==on.current&&!eo&&vn!=="combobox"&&bi.preventDefault(),(vn!=="combobox"&&(!Wn||!eo)||!xe)&&(xe&&We!==!1&&fn("",!0,!1),an())},Ni={inputRef:on,onInputKeyDown:wn,onInputMouseDown:Kn,onInputChange:ei,onInputPaste:Si,onInputCompositionStart:Li,onInputCompositionEnd:Be},Ui=vn==="multiple"||vn==="tags"?oe.createElement(yn,(0,Ct.Z)({},Yt,Ni)):oe.createElement(Ue,(0,Ct.Z)({},Yt,Ni));return oe.createElement("div",{ref:rn,className:"".concat(en,"-selector"),onClick:ci,onMouseDown:Hi},Ui)},Pn=oe.forwardRef(Xn);Pn.displayName="Selector";var Gn=Pn,Ee=St(35593),Jn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ai=function(Yt){var $e=Yt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:$e,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:$e,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:$e,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:$e,adjustY:1},htmlRegion:"scroll"}}},ui=function(Yt,$e){var on=Yt.prefixCls,zn=Yt.disabled,en=Yt.visible,xe=Yt.children,vn=Yt.popupElement,Wn=Yt.animation,qn=Yt.transitionName,We=Yt.dropdownStyle,fn=Yt.dropdownClassName,Ie=Yt.direction,an=Ie===void 0?"ltr":Ie,_e=Yt.placement,rn=Yt.builtinPlacements,pn=Yt.dropdownMatchSelectWidth,Cn=Yt.dropdownRender,kn=Yt.dropdownAlign,In=Yt.getPopupContainer,wn=Yt.empty,Kn=Yt.getTriggerDOMNode,Ci=Yt.onPopupVisibleChange,Wi=Yt.onPopupMouseEnter,Li=(0,fe.Z)(Yt,Jn),Be="".concat(on,"-dropdown"),ei=vn;Cn&&(ei=Cn(vn));var Si=oe.useMemo(function(){return rn||ai(pn)},[rn,pn]),ci=Wn?"".concat(Be,"-").concat(Wn):qn,Hi=typeof pn=="number",Ni=oe.useMemo(function(){return Hi?null:pn===!1?"minWidth":"width"},[pn,Hi]),Ui=We;Hi&&(Ui=(0,Ne.Z)((0,Ne.Z)({},Ui),{},{width:pn}));var Ii=oe.useRef(null);return oe.useImperativeHandle($e,function(){return{getPopupElement:function(){return Ii.current}}}),oe.createElement(Ee.Z,(0,Ct.Z)({},Li,{showAction:Ci?["click"]:[],hideAction:Ci?["click"]:[],popupPlacement:_e||(an==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Si,prefixCls:Be,popupTransitionName:ci,popup:oe.createElement("div",{ref:Ii,onMouseEnter:Wi},ei),stretch:Ni,popupAlign:kn,popupVisible:en,getPopupContainer:In,popupClassName:ye()(fn,(0,ee.Z)({},"".concat(Be,"-empty"),wn)),popupStyle:Ui,getTriggerDOMNode:Kn,onPopupVisibleChange:Ci}),xe)},ln=oe.forwardRef(ui);ln.displayName="SelectTrigger";var Te=ln,Me=St(17953);function ie(Se,Yt){var $e=Se.key,on;return"value"in Se&&(on=Se.value),$e!=null?$e:on!==void 0?on:"rc-index-key-".concat(Yt)}function Kt(Se,Yt){var $e=Se||{},on=$e.label,zn=$e.value,en=$e.options,xe=$e.groupLabel,vn=on||(Yt?"children":"label");return{label:vn,value:zn||"value",options:en||"options",groupLabel:xe||vn}}function Oe(Se){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$e=Yt.fieldNames,on=Yt.childrenAsData,zn=[],en=Kt($e,!1),xe=en.label,vn=en.value,Wn=en.options,qn=en.groupLabel;function We(fn,Ie){fn.forEach(function(an){if(Ie||!(Wn in an)){var _e=an[vn];zn.push({key:ie(an,zn.length),groupOption:Ie,data:an,label:an[xe],value:_e})}else{var rn=an[qn];rn===void 0&&on&&(rn=an.label),zn.push({key:ie(an,zn.length),group:!0,data:an,label:rn}),We(an[Wn],!0)}})}return We(Se,!1),zn}function ke(Se){var Yt=(0,Ne.Z)({},Se);return"props"in Yt||Object.defineProperty(Yt,"props",{get:function(){return(0,we.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Yt}}),Yt}function te(Se,Yt){if(!Yt||!Yt.length)return null;var $e=!1;function on(en,xe){var vn=(0,Me.Z)(xe),Wn=vn[0],qn=vn.slice(1);if(!Wn)return[en];var We=en.split(Wn);return $e=$e||We.length>1,We.reduce(function(fn,Ie){return[].concat((0,It.Z)(fn),(0,It.Z)(on(Ie,qn)))},[]).filter(function(fn){return fn})}var zn=on(Se,Yt);return $e?zn:null}var qt=["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"],Dt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xt(Se){return Se==="tags"||Se==="multiple"}var mt=oe.forwardRef(function(Se,Yt){var $e,on,zn=Se.id,en=Se.prefixCls,xe=Se.className,vn=Se.showSearch,Wn=Se.tagRender,qn=Se.direction,We=Se.omitDomProps,fn=Se.displayValues,Ie=Se.onDisplayValuesChange,an=Se.emptyOptions,_e=Se.notFoundContent,rn=_e===void 0?"Not Found":_e,pn=Se.onClear,Cn=Se.mode,kn=Se.disabled,In=Se.loading,wn=Se.getInputElement,Kn=Se.getRawInputElement,Ci=Se.open,Wi=Se.defaultOpen,Li=Se.onDropdownVisibleChange,Be=Se.activeValue,ei=Se.onActiveValueChange,Si=Se.activeDescendantId,ci=Se.searchValue,Hi=Se.autoClearSearchValue,Ni=Se.onSearch,Ui=Se.onSearchSplit,Ii=Se.tokenSeparators,bi=Se.allowClear,eo=Se.suffixIcon,xn=Se.clearIcon,Fo=Se.OptionList,Ln=Se.animation,po=Se.transitionName,Go=Se.dropdownStyle,Yi=Se.dropdownClassName,nr=Se.dropdownMatchSelectWidth,Bo=Se.dropdownRender,Ti=Se.dropdownAlign,Oi=Se.placement,bo=Se.builtinPlacements,Do=Se.getPopupContainer,si=Se.showAction,Zt=si===void 0?[]:si,Co=Se.onFocus,xr=Se.onBlur,yo=Se.onKeyUp,yr=Se.onKeyDown,_i=Se.onMouseDown,Ji=(0,fe.Z)(Se,qt),Zo=xt(Cn),rr=(vn!==void 0?vn:Zo)||Cn==="combobox",Ao=(0,Ne.Z)({},Ji);Dt.forEach(function(lr){delete Ao[lr]}),We==null||We.forEach(function(lr){delete Ao[lr]});var kr=oe.useState(!1),Ki=(0,Vt.Z)(kr,2),zi=Ki[0],co=Ki[1];oe.useEffect(function(){co((0,Tt.Z)())},[]);var Yn=oe.useRef(null),ar=oe.useRef(null),wr=oe.useRef(null),ia=oe.useRef(null),sr=oe.useRef(null),ir=Bt(),Fr=(0,Vt.Z)(ir,3),Qr=Fr[0],$r=Fr[1],qa=Fr[2];oe.useImperativeHandle(Yt,function(){var lr,Rr;return{focus:(lr=ia.current)===null||lr===void 0?void 0:lr.focus,blur:(Rr=ia.current)===null||Rr===void 0?void 0:Rr.blur,scrollTo:function($a){var Wa;return(Wa=sr.current)===null||Wa===void 0?void 0:Wa.scrollTo($a)}}});var Ea=oe.useMemo(function(){var lr;if(Cn!=="combobox")return ci;var Rr=(lr=fn[0])===null||lr===void 0?void 0:lr.value;return typeof Rr=="string"||typeof Rr=="number"?String(Rr):""},[ci,Cn,fn]),gn=Cn==="combobox"&&typeof wn=="function"&&wn()||null,La=typeof Kn=="function"&&Kn(),tl=(0,nt.x1)(ar,La==null||($e=La.props)===null||$e===void 0?void 0:$e.ref),js=oe.useState(!1),Qo=(0,Vt.Z)(js,2),Tr=Qo[0],ha=Qo[1];(0,Re.Z)(function(){ha(!0)},[]);var Cr=(0,ze.Z)(!1,{defaultValue:Wi,value:Ci}),or=(0,Vt.Z)(Cr,2),Br=or[0],Ua=or[1],No=Tr?Br:!1,dr=!rn&&an;(kn||dr&&No&&Cn==="combobox")&&(No=!1);var ur=dr?!1:No,Bi=oe.useCallback(function(lr){var Rr=lr!==void 0?lr:!No;kn||(Ua(Rr),No!==Rr&&(Li==null||Li(Rr)))},[kn,No,Ua,Li]),za=oe.useMemo(function(){return(Ii||[]).some(function(lr){return[`
|
|
|
`,`\r
|
|
|
`].includes(lr)})},[Ii]),ja=function(Rr,Es,$a){var Wa=!0,fa=Rr;ei==null||ei(null);var Aa=$a?null:te(Rr,Ii);return Cn!=="combobox"&&Aa&&(fa="",Ui==null||Ui(Aa),Bi(!1),Wa=!1),Ni&&Ea!==fa&&Ni(fa,{source:Es?"typing":"effect"}),Wa},bs=function(Rr){!Rr||!Rr.trim()||Ni(Rr,{source:"submit"})};oe.useEffect(function(){!No&&!Zo&&Cn!=="combobox"&&ja("",!1,!1)},[No]),oe.useEffect(function(){Br&&kn&&Ua(!1),kn&&$r(!1)},[kn]);var Tl=kt(),$l=(0,Vt.Z)(Tl,2),yi=$l[0],la=$l[1],Ya=function(Rr){var Es=yi(),$a=Rr.which;if($a===et.Z.ENTER&&(Cn!=="combobox"&&Rr.preventDefault(),No||Bi(!0)),la(!!Ea),$a===et.Z.BACKSPACE&&!Es&&Zo&&!Ea&&fn.length){for(var Wa=(0,It.Z)(fn),fa=null,Aa=Wa.length-1;Aa>=0;Aa-=1){var Xa=Wa[Aa];if(!Xa.disabled){Wa.splice(Aa,1),fa=Xa;break}}fa&&Ie(Wa,{type:"remove",values:[fa]})}for(var Ha=arguments.length,ju=new Array(Ha>1?Ha-1:0),zl=1;zl<Ha;zl++)ju[zl-1]=arguments[zl];if(No&&sr.current){var ka;(ka=sr.current).onKeyDown.apply(ka,[Rr].concat(ju))}yr==null||yr.apply(void 0,[Rr].concat(ju))},Cl=function(Rr){for(var Es=arguments.length,$a=new Array(Es>1?Es-1:0),Wa=1;Wa<Es;Wa++)$a[Wa-1]=arguments[Wa];if(No&&sr.current){var fa;(fa=sr.current).onKeyUp.apply(fa,[Rr].concat($a))}yo==null||yo.apply(void 0,[Rr].concat($a))},Ol=function(Rr){var Es=fn.filter(function($a){return $a!==Rr});Ie(Es,{type:"remove",values:[Rr]})},Il=oe.useRef(!1),jo=function(){$r(!0),kn||(Co&&!Il.current&&Co.apply(void 0,arguments),Zt.includes("focus")&&Bi(!0)),Il.current=!0},ph=function(){$r(!1,function(){Il.current=!1,Bi(!1)}),!kn&&(Ea&&(Cn==="tags"?Ni(Ea,{source:"submit"}):Cn==="multiple"&&Ni("",{source:"blur"})),xr&&xr.apply(void 0,arguments))},el=[];oe.useEffect(function(){return function(){el.forEach(function(lr){return clearTimeout(lr)}),el.splice(0,el.length)}},[]);var nl=function(Rr){var Es,$a=Rr.target,Wa=(Es=wr.current)===null||Es===void 0?void 0:Es.getPopupElement();if(Wa&&Wa.contains($a)){var fa=setTimeout(function(){var ju=el.indexOf(fa);if(ju!==-1&&el.splice(ju,1),qa(),!zi&&!Wa.contains(document.activeElement)){var zl;(zl=ia.current)===null||zl===void 0||zl.focus()}});el.push(fa)}for(var Aa=arguments.length,Xa=new Array(Aa>1?Aa-1:0),Ha=1;Ha<Aa;Ha++)Xa[Ha-1]=arguments[Ha];_i==null||_i.apply(void 0,[Rr].concat(Xa))},Ds=oe.useState({}),bu=(0,Vt.Z)(Ds,2),Ru=bu[1];function Ws(){Ru({})}var cl;La&&(cl=function(Rr){Bi(Rr)}),Ot(function(){var lr;return[Yn.current,(lr=wr.current)===null||lr===void 0?void 0:lr.getPopupElement()]},ur,Bi,!!La);var Wh=oe.useMemo(function(){return(0,Ne.Z)((0,Ne.Z)({},Se),{},{notFoundContent:rn,open:No,triggerOpen:ur,id:zn,showSearch:rr,multiple:Zo,toggleOpen:Bi})},[Se,rn,ur,No,zn,rr,Zo,Bi]),hd=!!eo||In,Hh;hd&&(Hh=oe.createElement(st,{className:ye()("".concat(en,"-arrow"),(0,ee.Z)({},"".concat(en,"-arrow-loading"),In)),customizeIcon:eo,customizeIconProps:{loading:In,searchValue:Ea,open:No,focused:Qr,showSearch:rr}}));var Gd=function(){var Rr;pn==null||pn(),(Rr=ia.current)===null||Rr===void 0||Rr.focus(),Ie([],{type:"clear",values:fn}),ja("",!1,!1)},Gh=gt(en,Gd,fn,bi,xn,kn,Ea,Cn),mh=Gh.allowClear,zu=Gh.clearIcon,Rl=oe.createElement(Fo,{ref:sr}),dd=ye()(en,xe,(on={},(0,ee.Z)(on,"".concat(en,"-focused"),Qr),(0,ee.Z)(on,"".concat(en,"-multiple"),Zo),(0,ee.Z)(on,"".concat(en,"-single"),!Zo),(0,ee.Z)(on,"".concat(en,"-allow-clear"),bi),(0,ee.Z)(on,"".concat(en,"-show-arrow"),hd),(0,ee.Z)(on,"".concat(en,"-disabled"),kn),(0,ee.Z)(on,"".concat(en,"-loading"),In),(0,ee.Z)(on,"".concat(en,"-open"),No),(0,ee.Z)(on,"".concat(en,"-customize-input"),gn),(0,ee.Z)(on,"".concat(en,"-show-search"),rr),on)),Zh=oe.createElement(Te,{ref:wr,disabled:kn,prefixCls:en,visible:ur,popupElement:Rl,animation:Ln,transitionName:po,dropdownStyle:Go,dropdownClassName:Yi,direction:qn,dropdownMatchSelectWidth:nr,dropdownRender:Bo,dropdownAlign:Ti,placement:Oi,builtinPlacements:bo,getPopupContainer:Do,empty:an,getTriggerDOMNode:function(){return ar.current},onPopupVisibleChange:cl,onPopupMouseEnter:Ws},La?oe.cloneElement(La,{ref:tl}):oe.createElement(Gn,(0,Ct.Z)({},Se,{domRef:ar,prefixCls:en,inputElement:gn,ref:ia,id:zn,showSearch:rr,autoClearSearchValue:Hi,mode:Cn,activeDescendantId:Si,tagRender:Wn,values:fn,open:No,onToggleOpen:Bi,activeValue:Be,searchValue:Ea,onSearch:ja,onSearchSubmit:bs,onRemove:Ol,tokenWithEnter:za}))),vh;return La?vh=Zh:vh=oe.createElement("div",(0,Ct.Z)({className:dd},Ao,{ref:Yn,onMouseDown:nl,onKeyDown:Ya,onKeyUp:Cl,onFocus:jo,onBlur:ph}),Qr&&!No&&oe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(fn.map(function(lr){var Rr=lr.label,Es=lr.value;return["number","string"].includes((0,Ft.Z)(Rr))?Rr:Es}).join(", "))),Zh,Hh,mh&&zu),oe.createElement(vt.Provider,{value:Wh},vh)}),Mt=mt,Rt=function(Se,Yt){var $e=oe.useRef({values:new Map,options:new Map}),on=oe.useMemo(function(){var en=$e.current,xe=en.values,vn=en.options,Wn=Se.map(function(fn){if(fn.label===void 0){var Ie;return(0,Ne.Z)((0,Ne.Z)({},fn),{},{label:(Ie=xe.get(fn.value))===null||Ie===void 0?void 0:Ie.label})}return fn}),qn=new Map,We=new Map;return Wn.forEach(function(fn){qn.set(fn.value,fn),We.set(fn.value,Yt.get(fn.value)||vn.get(fn.value))}),$e.current.values=qn,$e.current.options=We,Wn},[Se,Yt]),zn=oe.useCallback(function(en){return Yt.get(en)||$e.current.options.get(en)},[Yt]);return[on,zn]};function Et(Se,Yt){return Ve(Se).join("").toUpperCase().includes(Yt)}var re=function(Se,Yt,$e,on,zn){return oe.useMemo(function(){if(!$e||on===!1)return Se;var en=Yt.options,xe=Yt.label,vn=Yt.value,Wn=[],qn=typeof on=="function",We=$e.toUpperCase(),fn=qn?on:function(an,_e){return zn?Et(_e[zn],We):_e[en]?Et(_e[xe!=="children"?xe:"label"],We):Et(_e[vn],We)},Ie=qn?function(an){return ke(an)}:function(an){return an};return Se.forEach(function(an){if(an[en]){var _e=fn($e,Ie(an));if(_e)Wn.push(an);else{var rn=an[en].filter(function(pn){return fn($e,Ie(pn))});rn.length&&Wn.push((0,Ne.Z)((0,Ne.Z)({},an),{},(0,ee.Z)({},en,rn)))}return}fn($e,Ie(an))&&Wn.push(an)}),Wn},[Se,on,zn,$e,Yt])},Qe=St(17115),mn=St(38298),le=["children","value"],Ge=["children"];function cn(Se){var Yt=Se,$e=Yt.key,on=Yt.props,zn=on.children,en=on.value,xe=(0,fe.Z)(on,le);return(0,Ne.Z)({key:$e,value:en!==void 0?en:$e,children:zn},xe)}function Mn(Se){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,mn.Z)(Se).map(function($e,on){if(!oe.isValidElement($e)||!$e.type)return null;var zn=$e,en=zn.type.isSelectOptGroup,xe=zn.key,vn=zn.props,Wn=vn.children,qn=(0,fe.Z)(vn,Ge);return Yt||!en?cn($e):(0,Ne.Z)((0,Ne.Z)({key:"__RC_SELECT_GRP__".concat(xe===null?on:xe,"__"),label:xe},qn),{},{options:Mn(Wn)})}).filter(function($e){return $e})}function Zn(Se,Yt,$e,on,zn){return oe.useMemo(function(){var en=Se,xe=!Se;xe&&(en=Mn(Yt));var vn=new Map,Wn=new Map,qn=function(Ie,an,_e){_e&&typeof _e=="string"&&Ie.set(an[_e],an)};function We(fn){for(var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,an=0;an<fn.length;an+=1){var _e=fn[an];!_e[$e.options]||Ie?(vn.set(_e[$e.value],_e),qn(Wn,_e,$e.label),qn(Wn,_e,on),qn(Wn,_e,zn)):We(_e[$e.options],!0)}}return We(en),{options:en,valueOptions:vn,labelOptions:Wn}},[Se,Yt,$e,on,zn])}function _n(Se){var Yt=oe.useRef();Yt.current=Se;var $e=oe.useCallback(function(){return Yt.current.apply(Yt,arguments)},[]);return $e}var di=function(){return null};di.isSelectOptGroup=!0;var ri=di,Fi=function(){return null};Fi.isSelectOption=!0;var Zi=Fi,Vi=St(79722),ji=St(64002),qi=St(21881),wo=oe.createContext(null),Ei=wo;function Po(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ki=["disabled","title","children","style","className"];function Lt(Se){return typeof Se=="string"||typeof Se=="number"}var Mo=function(Yt,$e){var on=wt(),zn=on.prefixCls,en=on.id,xe=on.open,vn=on.multiple,Wn=on.mode,qn=on.searchValue,We=on.toggleOpen,fn=on.notFoundContent,Ie=on.onPopupScroll,an=oe.useContext(Ei),_e=an.flattenOptions,rn=an.onActiveValue,pn=an.defaultActiveFirstOption,Cn=an.onSelect,kn=an.menuItemSelectedIcon,In=an.rawValues,wn=an.fieldNames,Kn=an.virtual,Ci=an.direction,Wi=an.listHeight,Li=an.listItemHeight,Be="".concat(zn,"-item"),ei=(0,Vi.Z)(function(){return _e},[xe,_e],function(Ti,Oi){return Oi[0]&&Ti[1]!==Oi[1]}),Si=oe.useRef(null),ci=function(Oi){Oi.preventDefault()},Hi=function(Oi){Si.current&&Si.current.scrollTo(typeof Oi=="number"?{index:Oi}:Oi)},Ni=function(Oi){for(var bo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Do=ei.length,si=0;si<Do;si+=1){var Zt=(Oi+si*bo+Do)%Do,Co=ei[Zt],xr=Co.group,yo=Co.data;if(!xr&&!yo.disabled)return Zt}return-1},Ui=oe.useState(function(){return Ni(0)}),Ii=(0,Vt.Z)(Ui,2),bi=Ii[0],eo=Ii[1],xn=function(Oi){var bo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;eo(Oi);var Do={source:bo?"keyboard":"mouse"},si=ei[Oi];if(!si){rn(null,-1,Do);return}rn(si.value,Oi,Do)};(0,oe.useEffect)(function(){xn(pn!==!1?Ni(0):-1)},[ei.length,qn]);var Fo=oe.useCallback(function(Ti){return In.has(Ti)&&Wn!=="combobox"},[Wn,(0,It.Z)(In).toString(),In.size]);(0,oe.useEffect)(function(){var Ti=setTimeout(function(){if(!vn&&xe&&In.size===1){var bo=Array.from(In)[0],Do=ei.findIndex(function(si){var Zt=si.data;return Zt.value===bo});Do!==-1&&(xn(Do),Hi(Do))}});if(xe){var Oi;(Oi=Si.current)===null||Oi===void 0||Oi.scrollTo(void 0)}return function(){return clearTimeout(Ti)}},[xe,qn,_e.length]);var Ln=function(Oi){Oi!==void 0&&Cn(Oi,{selected:!In.has(Oi)}),vn||We(!1)};if(oe.useImperativeHandle($e,function(){return{onKeyDown:function(Oi){var bo=Oi.which,Do=Oi.ctrlKey;switch(bo){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var si=0;if(bo===et.Z.UP?si=-1:bo===et.Z.DOWN?si=1:Po()&&Do&&(bo===et.Z.N?si=1:bo===et.Z.P&&(si=-1)),si!==0){var Zt=Ni(bi+si,si);Hi(Zt),xn(Zt,!0)}break}case et.Z.ENTER:{var Co=ei[bi];Co&&!Co.data.disabled?Ln(Co.value):Ln(void 0),xe&&Oi.preventDefault();break}case et.Z.ESC:We(!1),xe&&Oi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Oi){Hi(Oi)}}}),ei.length===0)return oe.createElement("div",{role:"listbox",id:"".concat(en,"_list"),className:"".concat(Be,"-empty"),onMouseDown:ci},fn);var po=Object.keys(wn).map(function(Ti){return wn[Ti]}),Go=function(Oi){return Oi.label};function Yi(Ti,Oi){var bo=Ti.group;return{role:bo?"presentation":"option",id:"".concat(en,"_list_").concat(Oi)}}var nr=function(Oi){var bo=ei[Oi];if(!bo)return null;var Do=bo.data||{},si=Do.value,Zt=bo.group,Co=(0,jt.Z)(Do,!0),xr=Go(bo);return bo?oe.createElement("div",(0,Ct.Z)({"aria-label":typeof xr=="string"&&!Zt?xr:null},Co,{key:Oi},Yi(bo,Oi),{"aria-selected":Fo(si)}),si):null},Bo={role:"listbox",id:"".concat(en,"_list")};return oe.createElement(oe.Fragment,null,Kn&&oe.createElement("div",(0,Ct.Z)({},Bo,{style:{height:0,width:0,overflow:"hidden"}}),nr(bi-1),nr(bi),nr(bi+1)),oe.createElement(qi.Z,{itemKey:"key",ref:Si,data:ei,height:Wi,itemHeight:Li,fullHeight:!1,onMouseDown:ci,onScroll:Ie,virtual:Kn,direction:Ci,innerProps:Kn?null:Bo},function(Ti,Oi){var bo,Do=Ti.group,si=Ti.groupOption,Zt=Ti.data,Co=Ti.label,xr=Ti.value,yo=Zt.key;if(Do){var yr,_i=(yr=Zt.title)!==null&&yr!==void 0?yr:Lt(Co)?Co.toString():void 0;return oe.createElement("div",{className:ye()(Be,"".concat(Be,"-group")),title:_i},Co!==void 0?Co:yo)}var Ji=Zt.disabled,Zo=Zt.title,rr=Zt.children,Ao=Zt.style,kr=Zt.className,Ki=(0,fe.Z)(Zt,ki),zi=(0,ji.Z)(Ki,po),co=Fo(xr),Yn="".concat(Be,"-option"),ar=ye()(Be,Yn,kr,(bo={},(0,ee.Z)(bo,"".concat(Yn,"-grouped"),si),(0,ee.Z)(bo,"".concat(Yn,"-active"),bi===Oi&&!Ji),(0,ee.Z)(bo,"".concat(Yn,"-disabled"),Ji),(0,ee.Z)(bo,"".concat(Yn,"-selected"),co),bo)),wr=Go(Ti),ia=!kn||typeof kn=="function"||co,sr=typeof wr=="number"?wr:wr||xr,ir=Lt(sr)?sr.toString():void 0;return Zo!==void 0&&(ir=Zo),oe.createElement("div",(0,Ct.Z)({},(0,jt.Z)(zi),Kn?{}:Yi(Ti,Oi),{"aria-selected":co,className:ar,title:ir,onMouseMove:function(){bi===Oi||Ji||xn(Oi)},onClick:function(){Ji||Ln(xr)},style:Ao}),oe.createElement("div",{className:"".concat(Yn,"-content")},sr),oe.isValidElement(kn)||co,ia&&oe.createElement(st,{className:"".concat(Be,"-option-state"),customizeIcon:kn,customizeIconProps:{isSelected:co}},co?"\u2713":null))}))},$i=oe.forwardRef(Mo);$i.displayName="OptionList";var En=$i;function hi(Se){var Yt=Se.mode,$e=Se.options,on=Se.children,zn=Se.backfill,en=Se.allowClear,xe=Se.placeholder,vn=Se.getInputElement,Wn=Se.showSearch,qn=Se.onSearch,We=Se.defaultOpen,fn=Se.autoFocus,Ie=Se.labelInValue,an=Se.value,_e=Se.inputValue,rn=Se.optionLabelProp,pn=isMultiple(Yt),Cn=Wn!==void 0?Wn:pn||Yt==="combobox",kn=$e||convertChildrenToData(on);if(warning(Yt!=="tags"||kn.every(function(Ci){return!Ci.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Yt==="tags"||Yt==="combobox"){var In=kn.some(function(Ci){return Ci.options?Ci.options.some(function(Wi){return typeof("value"in Wi?Wi.value:Wi.key)=="number"}):typeof("value"in Ci?Ci.value:Ci.key)=="number"});warning(!In,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Yt!=="combobox"||!rn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Yt==="combobox"||!zn,"`backfill` only works with `combobox` mode."),warning(Yt==="combobox"||!vn,"`getInputElement` only work with `combobox` mode."),noteOnce(Yt!=="combobox"||!vn||!en||!xe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),qn&&!Cn&&Yt!=="combobox"&&Yt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!We||fn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),an!=null){var wn=toArray(an);warning(!Ie||wn.every(function(Ci){return _typeof(Ci)==="object"&&("key"in Ci||"value"in Ci)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!pn||Array.isArray(an),"`value` should be array when `mode` is `multiple` or `tags`")}if(on){var Kn=null;toNodeArray(on).some(function(Ci){if(!React.isValidElement(Ci)||!Ci.type)return!1;var Wi=Ci,Li=Wi.type;if(Li.isSelectOption)return!1;if(Li.isSelectOptGroup){var Be=toNodeArray(Ci.props.children).every(function(ei){return!React.isValidElement(ei)||!Ci.type||ei.type.isSelectOption?!0:(Kn=ei.type,!1)});return!Be}return Kn=Li,!0}),Kn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Kn.displayName||Kn.name||Kn,"`.")),warning(_e===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function gi(Se,Yt){if(Se){var $e=function on(zn){for(var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=0;xe<zn.length;xe++){var vn=zn[xe];if(vn[Yt==null?void 0:Yt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!en&&Array.isArray(vn[Yt==null?void 0:Yt.options])&&on(vn[Yt==null?void 0:Yt.options],!0))break}};$e(Se)}}var Pi=null,Rn=["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"],Le=["inputValue"];function Fe(Se){return!Se||(0,Ft.Z)(Se)!=="object"}var he=oe.forwardRef(function(Se,Yt){var $e=Se.id,on=Se.mode,zn=Se.prefixCls,en=zn===void 0?"rc-select":zn,xe=Se.backfill,vn=Se.fieldNames,Wn=Se.inputValue,qn=Se.searchValue,We=Se.onSearch,fn=Se.autoClearSearchValue,Ie=fn===void 0?!0:fn,an=Se.onSelect,_e=Se.onDeselect,rn=Se.dropdownMatchSelectWidth,pn=rn===void 0?!0:rn,Cn=Se.filterOption,kn=Se.filterSort,In=Se.optionFilterProp,wn=Se.optionLabelProp,Kn=Se.options,Ci=Se.children,Wi=Se.defaultActiveFirstOption,Li=Se.menuItemSelectedIcon,Be=Se.virtual,ei=Se.direction,Si=Se.listHeight,ci=Si===void 0?200:Si,Hi=Se.listItemHeight,Ni=Hi===void 0?20:Hi,Ui=Se.value,Ii=Se.defaultValue,bi=Se.labelInValue,eo=Se.onChange,xn=(0,fe.Z)(Se,Rn),Fo=(0,Qe.ZP)($e),Ln=xt(on),po=!!(!Kn&&Ci),Go=oe.useMemo(function(){return Cn===void 0&&on==="combobox"?!1:Cn},[Cn,on]),Yi=oe.useMemo(function(){return Kt(vn,po)},[JSON.stringify(vn),po]),nr=(0,ze.Z)("",{value:qn!==void 0?qn:Wn,postState:function(dr){return dr||""}}),Bo=(0,Vt.Z)(nr,2),Ti=Bo[0],Oi=Bo[1],bo=Zn(Kn,Ci,Yi,In,wn),Do=bo.valueOptions,si=bo.labelOptions,Zt=bo.options,Co=oe.useCallback(function(No){var dr=Ve(No);return dr.map(function(ur){var Bi,za,ja,bs,Tl;if(Fe(ur))Bi=ur;else{var $l;ja=ur.key,za=ur.label,Bi=($l=ur.value)!==null&&$l!==void 0?$l:ja}var yi=Do.get(Bi);if(yi){var la;if(za===void 0&&(za=yi==null?void 0:yi[wn||Yi.label]),ja===void 0&&(ja=(la=yi==null?void 0:yi.key)!==null&&la!==void 0?la:Bi),bs=yi==null?void 0:yi.disabled,Tl=yi==null?void 0:yi.title,0)var Ya}return{label:za,value:Bi,key:ja,disabled:bs,title:Tl}})},[Yi,wn,Do]),xr=(0,ze.Z)(Ii,{value:Ui}),yo=(0,Vt.Z)(xr,2),yr=yo[0],_i=yo[1],Ji=oe.useMemo(function(){var No,dr=Co(yr);return on==="combobox"&&Ye((No=dr[0])===null||No===void 0?void 0:No.value)?[]:dr},[yr,Co,on]),Zo=Rt(Ji,Do),rr=(0,Vt.Z)(Zo,2),Ao=rr[0],kr=rr[1],Ki=oe.useMemo(function(){if(!on&&Ao.length===1){var No=Ao[0];if(No.value===null&&(No.label===null||No.label===void 0))return[]}return Ao.map(function(dr){var ur;return(0,Ne.Z)((0,Ne.Z)({},dr),{},{label:(ur=dr.label)!==null&&ur!==void 0?ur:dr.value})})},[on,Ao]),zi=oe.useMemo(function(){return new Set(Ao.map(function(No){return No.value}))},[Ao]);oe.useEffect(function(){if(on==="combobox"){var No,dr=(No=Ao[0])===null||No===void 0?void 0:No.value;Oi(qe(dr)?String(dr):"")}},[Ao]);var co=_n(function(No,dr){var ur,Bi=dr!=null?dr:No;return ur={},(0,ee.Z)(ur,Yi.value,No),(0,ee.Z)(ur,Yi.label,Bi),ur}),Yn=oe.useMemo(function(){if(on!=="tags")return Zt;var No=(0,It.Z)(Zt),dr=function(Bi){return Do.has(Bi)};return(0,It.Z)(Ao).sort(function(ur,Bi){return ur.value<Bi.value?-1:1}).forEach(function(ur){var Bi=ur.value;dr(Bi)||No.push(co(Bi,ur.label))}),No},[co,Zt,Do,Ao,on]),ar=re(Yn,Yi,Ti,Go,In),wr=oe.useMemo(function(){return on!=="tags"||!Ti||ar.some(function(No){return No[In||"value"]===Ti})||ar.some(function(No){return No[Yi.value]===Ti})?ar:[co(Ti)].concat((0,It.Z)(ar))},[co,In,on,ar,Ti,Yi]),ia=oe.useMemo(function(){return kn?(0,It.Z)(wr).sort(function(No,dr){return kn(No,dr)}):wr},[wr,kn]),sr=oe.useMemo(function(){return Oe(ia,{fieldNames:Yi,childrenAsData:po})},[ia,Yi,po]),ir=function(dr){var ur=Co(dr);if(_i(ur),eo&&(ur.length!==Ao.length||ur.some(function(ja,bs){var Tl;return((Tl=Ao[bs])===null||Tl===void 0?void 0:Tl.value)!==(ja==null?void 0:ja.value)}))){var Bi=bi?ur:ur.map(function(ja){return ja.value}),za=ur.map(function(ja){return ke(kr(ja.value))});eo(Ln?Bi:Bi[0],Ln?za:za[0])}},Fr=oe.useState(null),Qr=(0,Vt.Z)(Fr,2),$r=Qr[0],qa=Qr[1],Ea=oe.useState(0),gn=(0,Vt.Z)(Ea,2),La=gn[0],tl=gn[1],js=Wi!==void 0?Wi:on!=="combobox",Qo=oe.useCallback(function(No,dr){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Bi=ur.source,za=Bi===void 0?"keyboard":Bi;tl(dr),xe&&on==="combobox"&&No!==null&&za==="keyboard"&&qa(String(No))},[xe,on]),Tr=function(dr,ur,Bi){var za=function(){var Il,jo=kr(dr);return[bi?{label:jo==null?void 0:jo[Yi.label],value:dr,key:(Il=jo==null?void 0:jo.key)!==null&&Il!==void 0?Il:dr}:dr,ke(jo)]};if(ur&&an){var ja=za(),bs=(0,Vt.Z)(ja,2),Tl=bs[0],$l=bs[1];an(Tl,$l)}else if(!ur&&_e&&Bi!=="clear"){var yi=za(),la=(0,Vt.Z)(yi,2),Ya=la[0],Cl=la[1];_e(Ya,Cl)}},ha=_n(function(No,dr){var ur,Bi=Ln?dr.selected:!0;Bi?ur=Ln?[].concat((0,It.Z)(Ao),[No]):[No]:ur=Ao.filter(function(za){return za.value!==No}),ir(ur),Tr(No,Bi),on==="combobox"?qa(""):(!xt||Ie)&&(Oi(""),qa(""))}),Cr=function(dr,ur){ir(dr);var Bi=ur.type,za=ur.values;(Bi==="remove"||Bi==="clear")&&za.forEach(function(ja){Tr(ja.value,!1,Bi)})},or=function(dr,ur){if(Oi(dr),qa(null),ur.source==="submit"){var Bi=(dr||"").trim();if(Bi){var za=Array.from(new Set([].concat((0,It.Z)(zi),[Bi])));ir(za),Tr(Bi,!0),Oi("")}return}ur.source!=="blur"&&(on==="combobox"&&ir(dr),We==null||We(dr))},Br=function(dr){var ur=dr;on!=="tags"&&(ur=dr.map(function(za){var ja=si.get(za);return ja==null?void 0:ja.value}).filter(function(za){return za!==void 0}));var Bi=Array.from(new Set([].concat((0,It.Z)(zi),(0,It.Z)(ur))));ir(Bi),Bi.forEach(function(za){Tr(za,!0)})},Ua=oe.useMemo(function(){var No=Be!==!1&&pn!==!1;return(0,Ne.Z)((0,Ne.Z)({},bo),{},{flattenOptions:sr,onActiveValue:Qo,defaultActiveFirstOption:js,onSelect:ha,menuItemSelectedIcon:Li,rawValues:zi,fieldNames:Yi,virtual:No,direction:ei,listHeight:ci,listItemHeight:Ni,childrenAsData:po})},[bo,sr,Qo,js,ha,Li,zi,Yi,Be,pn,ci,Ni,po]);return oe.createElement(Ei.Provider,{value:Ua},oe.createElement(Mt,(0,Ct.Z)({},xn,{id:Fo,prefixCls:en,ref:Yt,omitDomProps:Le,mode:on,displayValues:Ki,onDisplayValuesChange:Cr,direction:ei,searchValue:Ti,onSearch:or,autoClearSearchValue:Ie,onSearchSplit:Br,dropdownMatchSelectWidth:pn,OptionList:En,emptyOptions:!sr.length,activeValue:$r,activeDescendantId:"".concat(Fo,"_list_").concat(La)})))}),_t=he;_t.Option=Zi,_t.OptGroup=ri;var Ze=_t,tn=Ze},9296:function(Dn,An,St){"use strict";St.r(An),St.d(An,{ResizableTextArea:function(){return de},default:function(){return Ye}});var Ct=St(5891),It=St(57259),ee=St(80962),Ne=St(80665),Vt=St(29043),fe=St(19149),Ft=St(26390),ze=St(92310),we=St.n(ze),oe=St(93681),ve=St(5643),ye=St(35788),Re=St(59301),Tt=St(29301),et=St(28800),nt=St(23073),ht=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,st=["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"],gt={},vt;function wt(je){var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ge=je.getAttribute("id")||je.getAttribute("data-reactid")||je.getAttribute("name");if(hn&>[ge])return gt[ge];var Ht=window.getComputedStyle(je),Ce=Ht.getPropertyValue("box-sizing")||Ht.getPropertyValue("-moz-box-sizing")||Ht.getPropertyValue("-webkit-box-sizing"),bn=parseFloat(Ht.getPropertyValue("padding-bottom"))+parseFloat(Ht.getPropertyValue("padding-top")),yn=parseFloat(Ht.getPropertyValue("border-bottom-width"))+parseFloat(Ht.getPropertyValue("border-top-width")),Ae=st.map(function(Sn){return"".concat(Sn,":").concat(Ht.getPropertyValue(Sn))}).join(";"),Ue={sizingStyle:Ae,paddingSize:bn,borderSize:yn,boxSizing:Ce};return hn&&ge&&(gt[ge]=Ue),Ue}function Bt(je){var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;vt||(vt=document.createElement("textarea"),vt.setAttribute("tab-index","-1"),vt.setAttribute("aria-hidden","true"),document.body.appendChild(vt)),je.getAttribute("wrap")?vt.setAttribute("wrap",je.getAttribute("wrap")):vt.removeAttribute("wrap");var Ce=wt(je,hn),bn=Ce.paddingSize,yn=Ce.borderSize,Ae=Ce.boxSizing,Ue=Ce.sizingStyle;vt.setAttribute("style","".concat(Ue,";").concat(ht)),vt.value=je.value||je.placeholder||"";var Sn=void 0,Xn=void 0,Pn,Gn=vt.scrollHeight;if(Ae==="border-box"?Gn+=yn:Ae==="content-box"&&(Gn-=bn),ge!==null||Ht!==null){vt.value=" ";var Ee=vt.scrollHeight-bn;ge!==null&&(Sn=Ee*ge,Ae==="border-box"&&(Sn=Sn+bn+yn),Gn=Math.max(Sn,Gn)),Ht!==null&&(Xn=Ee*Ht,Ae==="border-box"&&(Xn=Xn+bn+yn),Pn=Gn>Xn?"":"hidden",Gn=Math.min(Xn,Gn))}var Jn={height:Gn,overflowY:Pn,resize:"none"};return Sn&&(Jn.minHeight=Sn),Xn&&(Jn.maxHeight=Xn),Jn}var kt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ot=0,jt=1,Xt=2,Ut=Re.forwardRef(function(je,hn){var ge=je,Ht=ge.prefixCls,Ce=ge.onPressEnter,bn=ge.defaultValue,yn=ge.value,Ae=ge.autoSize,Ue=ge.onResize,Sn=ge.className,Xn=ge.style,Pn=ge.disabled,Gn=ge.onChange,Ee=ge.onInternalAutoSize,Jn=(0,fe.Z)(ge,kt),ai=(0,ye.Z)(bn,{value:yn,postState:function(ri){return ri!=null?ri:""}}),ui=(0,Vt.Z)(ai,2),ln=ui[0],Te=ui[1],Me=function(ri){Te(ri.target.value),Gn==null||Gn(ri)},ie=Re.useRef();Re.useImperativeHandle(hn,function(){return{textArea:ie.current}});var Kt=Re.useMemo(function(){return Ae&&(0,Ne.Z)(Ae)==="object"?[Ae.minRows,Ae.maxRows]:[]},[Ae]),Oe=(0,Vt.Z)(Kt,2),ke=Oe[0],te=Oe[1],qt=!!Ae,Dt=function(){try{if(document.activeElement===ie.current){var ri=ie.current,Fi=ri.selectionStart,Zi=ri.selectionEnd,Vi=ri.scrollTop;ie.current.setSelectionRange(Fi,Zi),ie.current.scrollTop=Vi}}catch(ji){}},xt=Re.useState(Xt),mt=(0,Vt.Z)(xt,2),Mt=mt[0],Rt=mt[1],Et=Re.useState(),re=(0,Vt.Z)(Et,2),Qe=re[0],mn=re[1],le=function(){Rt(Ot)};(0,et.Z)(function(){qt&&le()},[yn,ke,te,qt]),(0,et.Z)(function(){if(Mt===Ot)Rt(jt);else if(Mt===jt){var di=Bt(ie.current,!1,ke,te);Rt(Xt),mn(di)}else Dt()},[Mt]);var Ge=Re.useRef(),cn=function(){nt.Z.cancel(Ge.current)},Mn=function(ri){Mt===Xt&&(Ue==null||Ue(ri),Ae&&(cn(),Ge.current=(0,nt.Z)(function(){le()})))};Re.useEffect(function(){return cn},[]);var Zn=qt?Qe:null,_n=(0,It.Z)((0,It.Z)({},Xn),Zn);return(Mt===Ot||Mt===jt)&&(_n.overflowY="hidden",_n.overflowX="hidden"),Re.createElement(Tt.Z,{onResize:Mn,disabled:!(Ae||Ue)},Re.createElement("textarea",(0,Ct.Z)({},Jn,{ref:ie,style:_n,className:we()(Ht,Sn,(0,ee.Z)({},"".concat(Ht,"-disabled"),Pn)),disabled:Pn,value:ln,onChange:Me})))}),de=Ut,Gt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ve(je,hn){return(0,Ft.Z)(je||"").slice(0,hn).join("")}function me(je,hn,ge,Ht){var Ce=ge;return je?Ce=Ve(ge,Ht):(0,Ft.Z)(hn||"").length<ge.length&&(0,Ft.Z)(ge||"").length>Ht&&(Ce=hn),Ce}var sn=Re.forwardRef(function(je,hn){var ge,Ht=je.defaultValue,Ce=je.value,bn=je.onFocus,yn=je.onBlur,Ae=je.onChange,Ue=je.allowClear,Sn=je.maxLength,Xn=je.onCompositionStart,Pn=je.onCompositionEnd,Gn=je.suffix,Ee=je.prefixCls,Jn=Ee===void 0?"rc-textarea":Ee,ai=je.classes,ui=je.showCount,ln=je.className,Te=je.style,Me=je.disabled,ie=je.hidden,Kt=je.classNames,Oe=je.styles,ke=je.onResize,te=(0,fe.Z)(je,Gt),qt=(0,ye.Z)(Ht,{value:Ce,defaultValue:Ht}),Dt=(0,Vt.Z)(qt,2),xt=Dt[0],mt=Dt[1],Mt=(0,Re.useRef)(null),Rt=Re.useState(!1),Et=(0,Vt.Z)(Rt,2),re=Et[0],Qe=Et[1],mn=Re.useState(!1),le=(0,Vt.Z)(mn,2),Ge=le[0],cn=le[1],Mn=Re.useRef(),Zn=Re.useRef(0),_n=Re.useState(null),di=(0,Vt.Z)(_n,2),ri=di[0],Fi=di[1],Zi=function(){var Fe;(Fe=Mt.current)===null||Fe===void 0||Fe.textArea.focus()};(0,Re.useImperativeHandle)(hn,function(){return{resizableTextArea:Mt.current,focus:Zi,blur:function(){var Fe;(Fe=Mt.current)===null||Fe===void 0||Fe.textArea.blur()}}}),(0,Re.useEffect)(function(){Qe(function(Le){return!Me&&Le})},[Me]);var Vi=Number(Sn)>0,ji=function(Fe){cn(!0),Mn.current=xt,Zn.current=Fe.currentTarget.selectionStart,Xn==null||Xn(Fe)},qi=function(Fe){cn(!1);var he=Fe.currentTarget.value;if(Vi){var _t,Ze=Zn.current>=Sn+1||Zn.current===((_t=Mn.current)===null||_t===void 0?void 0:_t.length);he=me(Ze,Mn.current,he,Sn)}he!==xt&&(mt(he),(0,ve.rJ)(Fe.currentTarget,Fe,Ae,he)),Pn==null||Pn(Fe)},wo=function(Fe){var he=Fe.target.value;if(!Ge&&Vi){var _t=Fe.target.selectionStart>=Sn+1||Fe.target.selectionStart===he.length||!Fe.target.selectionStart;he=me(_t,xt,he,Sn)}mt(he),(0,ve.rJ)(Fe.currentTarget,Fe,Ae,he)},Ei=function(Fe){var he=te.onPressEnter,_t=te.onKeyDown;Fe.key==="Enter"&&he&&he(Fe),_t==null||_t(Fe)},Po=function(Fe){Qe(!0),bn==null||bn(Fe)},ki=function(Fe){Qe(!1),yn==null||yn(Fe)},Lt=function(Fe){var he;mt(""),Zi(),(0,ve.rJ)((he=Mt.current)===null||he===void 0?void 0:he.textArea,Fe,Ae)},Mo=(0,ve.D7)(xt);!Ge&&Vi&&Ce==null&&(Mo=Ve(Mo,Sn));var $i=Gn,En;if(ui){var hi=(0,Ft.Z)(Mo).length;(0,Ne.Z)(ui)==="object"?En=ui.formatter({value:Mo,count:hi,maxLength:Sn}):En="".concat(hi).concat(Vi?" / ".concat(Sn):""),$i=Re.createElement(Re.Fragment,null,$i,Re.createElement("span",{className:we()("".concat(Jn,"-data-count"),Kt==null?void 0:Kt.count),style:Oe==null?void 0:Oe.count},En))}var gi=function(Fe){var he;ke==null||ke(Fe),(he=Mt.current)!==null&&he!==void 0&&he.textArea.style.height&&Fi(!0)},Pi=!te.autoSize&&!ui&&!Ue,Rn=Re.createElement(oe.BaseInput,{value:Mo,allowClear:Ue,handleReset:Lt,suffix:$i,prefixCls:Jn,classes:{affixWrapper:we()(ai==null?void 0:ai.affixWrapper,(ge={},(0,ee.Z)(ge,"".concat(Jn,"-show-count"),ui),(0,ee.Z)(ge,"".concat(Jn,"-textarea-allow-clear"),Ue),ge))},disabled:Me,focused:re,className:ln,style:(0,It.Z)((0,It.Z)({},Te),ri&&!Pi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof En=="string"?En:void 0}},hidden:ie,inputElement:Re.createElement(de,(0,Ct.Z)({},te,{onKeyDown:Ei,onChange:wo,onFocus:Po,onBlur:ki,onCompositionStart:ji,onCompositionEnd:qi,className:Kt==null?void 0:Kt.textarea,style:(0,It.Z)((0,It.Z)({},Oe==null?void 0:Oe.textarea),{},{resize:Te==null?void 0:Te.resize}),disabled:Me,prefixCls:Jn,onResize:gi,ref:Mt}))});return Rn}),qe=sn,Ye=qe},39417:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return jt}});var Ct=St(5891),It=St(80962),ee=St(19149),Ne=St(57259),Vt=St(79545),fe=St(68550),Ft=St(21882),ze=St(17928),we=St(7711),oe=St(92310),ve=St.n(oe),ye=St(36994),Re=St(59301),Tt=St(39378),et=function(Ut){for(var de=Ut.prefixCls,Gt=Ut.level,Ve=Ut.isStart,me=Ut.isEnd,sn="".concat(de,"-indent-unit"),qe=[],Ye=0;Ye<Gt;Ye+=1){var je;qe.push(Re.createElement("span",{key:Ye,className:ve()(sn,(je={},(0,It.Z)(je,"".concat(sn,"-start"),Ve[Ye]),(0,It.Z)(je,"".concat(sn,"-end"),me[Ye]),je))}))}return Re.createElement("span",{"aria-hidden":"true",className:"".concat(de,"-indent")},qe)},nt=Re.memo(et),ht=St(67841),st=St(71430),gt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],vt="open",wt="close",Bt="---",kt=function(Xt){(0,ze.Z)(de,Xt);var Ut=(0,we.Z)(de);function de(){var Gt;(0,Vt.Z)(this,de);for(var Ve=arguments.length,me=new Array(Ve),sn=0;sn<Ve;sn++)me[sn]=arguments[sn];return Gt=Ut.call.apply(Ut,[this].concat(me)),Gt.state={dragNodeHighlight:!1},Gt.selectHandle=void 0,Gt.cacheIndent=void 0,Gt.onSelectorClick=function(qe){var Ye=Gt.props.context.onNodeClick;Ye(qe,(0,st.F)(Gt.props)),Gt.isSelectable()?Gt.onSelect(qe):Gt.onCheck(qe)},Gt.onSelectorDoubleClick=function(qe){var Ye=Gt.props.context.onNodeDoubleClick;Ye(qe,(0,st.F)(Gt.props))},Gt.onSelect=function(qe){if(!Gt.isDisabled()){var Ye=Gt.props.context.onNodeSelect;Ye(qe,(0,st.F)(Gt.props))}},Gt.onCheck=function(qe){if(!Gt.isDisabled()){var Ye=Gt.props,je=Ye.disableCheckbox,hn=Ye.checked,ge=Gt.props.context.onNodeCheck;if(!(!Gt.isCheckable()||je)){var Ht=!hn;ge(qe,(0,st.F)(Gt.props),Ht)}}},Gt.onMouseEnter=function(qe){var Ye=Gt.props.context.onNodeMouseEnter;Ye(qe,(0,st.F)(Gt.props))},Gt.onMouseLeave=function(qe){var Ye=Gt.props.context.onNodeMouseLeave;Ye(qe,(0,st.F)(Gt.props))},Gt.onContextMenu=function(qe){var Ye=Gt.props.context.onNodeContextMenu;Ye(qe,(0,st.F)(Gt.props))},Gt.onDragStart=function(qe){var Ye=Gt.props.context.onNodeDragStart;qe.stopPropagation(),Gt.setState({dragNodeHighlight:!0}),Ye(qe,(0,Ft.Z)(Gt));try{qe.dataTransfer.setData("text/plain","")}catch(je){}},Gt.onDragEnter=function(qe){var Ye=Gt.props.context.onNodeDragEnter;qe.preventDefault(),qe.stopPropagation(),Ye(qe,(0,Ft.Z)(Gt))},Gt.onDragOver=function(qe){var Ye=Gt.props.context.onNodeDragOver;qe.preventDefault(),qe.stopPropagation(),Ye(qe,(0,Ft.Z)(Gt))},Gt.onDragLeave=function(qe){var Ye=Gt.props.context.onNodeDragLeave;qe.stopPropagation(),Ye(qe,(0,Ft.Z)(Gt))},Gt.onDragEnd=function(qe){var Ye=Gt.props.context.onNodeDragEnd;qe.stopPropagation(),Gt.setState({dragNodeHighlight:!1}),Ye(qe,(0,Ft.Z)(Gt))},Gt.onDrop=function(qe){var Ye=Gt.props.context.onNodeDrop;qe.preventDefault(),qe.stopPropagation(),Gt.setState({dragNodeHighlight:!1}),Ye(qe,(0,Ft.Z)(Gt))},Gt.onExpand=function(qe){var Ye=Gt.props,je=Ye.loading,hn=Ye.context.onNodeExpand;je||hn(qe,(0,st.F)(Gt.props))},Gt.setSelectHandle=function(qe){Gt.selectHandle=qe},Gt.getNodeState=function(){var qe=Gt.props.expanded;return Gt.isLeaf()?null:qe?vt:wt},Gt.hasChildren=function(){var qe=Gt.props.eventKey,Ye=Gt.props.context.keyEntities,je=(0,ht.Z)(Ye,qe)||{},hn=je.children;return!!(hn||[]).length},Gt.isLeaf=function(){var qe=Gt.props,Ye=qe.isLeaf,je=qe.loaded,hn=Gt.props.context.loadData,ge=Gt.hasChildren();return Ye===!1?!1:Ye||!hn&&!ge||hn&&je&&!ge},Gt.isDisabled=function(){var qe=Gt.props.disabled,Ye=Gt.props.context.disabled;return!!(Ye||qe)},Gt.isCheckable=function(){var qe=Gt.props.checkable,Ye=Gt.props.context.checkable;return!Ye||qe===!1?!1:Ye},Gt.syncLoadData=function(qe){var Ye=qe.expanded,je=qe.loading,hn=qe.loaded,ge=Gt.props.context,Ht=ge.loadData,Ce=ge.onNodeLoad;je||Ht&&Ye&&!Gt.isLeaf()&&!Gt.hasChildren()&&!hn&&Ce((0,st.F)(Gt.props))},Gt.isDraggable=function(){var qe=Gt.props,Ye=qe.data,je=qe.context.draggable;return!!(je&&(!je.nodeDraggable||je.nodeDraggable(Ye)))},Gt.renderDragHandler=function(){var qe=Gt.props.context,Ye=qe.draggable,je=qe.prefixCls;return Ye!=null&&Ye.icon?Re.createElement("span",{className:"".concat(je,"-draggable-icon")},Ye.icon):null},Gt.renderSwitcherIconDom=function(qe){var Ye=Gt.props.switcherIcon,je=Gt.props.context.switcherIcon,hn=Ye||je;return typeof hn=="function"?hn((0,Ne.Z)((0,Ne.Z)({},Gt.props),{},{isLeaf:qe})):hn},Gt.renderSwitcher=function(){var qe=Gt.props.expanded,Ye=Gt.props.context.prefixCls;if(Gt.isLeaf()){var je=Gt.renderSwitcherIconDom(!0);return je!==!1?Re.createElement("span",{className:ve()("".concat(Ye,"-switcher"),"".concat(Ye,"-switcher-noop"))},je):null}var hn=ve()("".concat(Ye,"-switcher"),"".concat(Ye,"-switcher_").concat(qe?vt:wt)),ge=Gt.renderSwitcherIconDom(!1);return ge!==!1?Re.createElement("span",{onClick:Gt.onExpand,className:hn},ge):null},Gt.renderCheckbox=function(){var qe=Gt.props,Ye=qe.checked,je=qe.halfChecked,hn=qe.disableCheckbox,ge=Gt.props.context.prefixCls,Ht=Gt.isDisabled(),Ce=Gt.isCheckable();if(!Ce)return null;var bn=typeof Ce!="boolean"?Ce:null;return Re.createElement("span",{className:ve()("".concat(ge,"-checkbox"),Ye&&"".concat(ge,"-checkbox-checked"),!Ye&&je&&"".concat(ge,"-checkbox-indeterminate"),(Ht||hn)&&"".concat(ge,"-checkbox-disabled")),onClick:Gt.onCheck},bn)},Gt.renderIcon=function(){var qe=Gt.props.loading,Ye=Gt.props.context.prefixCls;return Re.createElement("span",{className:ve()("".concat(Ye,"-iconEle"),"".concat(Ye,"-icon__").concat(Gt.getNodeState()||"docu"),qe&&"".concat(Ye,"-icon_loading"))})},Gt.renderSelector=function(){var qe=Gt.state.dragNodeHighlight,Ye=Gt.props,je=Ye.title,hn=je===void 0?Bt:je,ge=Ye.selected,Ht=Ye.icon,Ce=Ye.loading,bn=Ye.data,yn=Gt.props.context,Ae=yn.prefixCls,Ue=yn.showIcon,Sn=yn.icon,Xn=yn.loadData,Pn=yn.titleRender,Gn=Gt.isDisabled(),Ee="".concat(Ae,"-node-content-wrapper"),Jn;if(Ue){var ai=Ht||Sn;Jn=ai?Re.createElement("span",{className:ve()("".concat(Ae,"-iconEle"),"".concat(Ae,"-icon__customize"))},typeof ai=="function"?ai(Gt.props):ai):Gt.renderIcon()}else Xn&&Ce&&(Jn=Gt.renderIcon());var ui;typeof hn=="function"?ui=hn(bn):Pn?ui=Pn(bn):ui=hn;var ln=Re.createElement("span",{className:"".concat(Ae,"-title")},ui);return Re.createElement("span",{ref:Gt.setSelectHandle,title:typeof hn=="string"?hn:"",className:ve()("".concat(Ee),"".concat(Ee,"-").concat(Gt.getNodeState()||"normal"),!Gn&&(ge||qe)&&"".concat(Ae,"-node-selected")),onMouseEnter:Gt.onMouseEnter,onMouseLeave:Gt.onMouseLeave,onContextMenu:Gt.onContextMenu,onClick:Gt.onSelectorClick,onDoubleClick:Gt.onSelectorDoubleClick},Jn,ln,Gt.renderDropIndicator())},Gt.renderDropIndicator=function(){var qe=Gt.props,Ye=qe.disabled,je=qe.eventKey,hn=Gt.props.context,ge=hn.draggable,Ht=hn.dropLevelOffset,Ce=hn.dropPosition,bn=hn.prefixCls,yn=hn.indent,Ae=hn.dropIndicatorRender,Ue=hn.dragOverNodeKey,Sn=hn.direction,Xn=!!ge,Pn=!Ye&&Xn&&Ue===je,Gn=yn!=null?yn:Gt.cacheIndent;return Gt.cacheIndent=yn,Pn?Ae({dropPosition:Ce,dropLevelOffset:Ht,indent:Gn,prefixCls:bn,direction:Sn}):null},Gt}return(0,fe.Z)(de,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ve=this.props.selectable,me=this.props.context.selectable;return typeof Ve=="boolean"?Ve:me}},{key:"render",value:function(){var Ve,me=this.props,sn=me.eventKey,qe=me.className,Ye=me.style,je=me.dragOver,hn=me.dragOverGapTop,ge=me.dragOverGapBottom,Ht=me.isLeaf,Ce=me.isStart,bn=me.isEnd,yn=me.expanded,Ae=me.selected,Ue=me.checked,Sn=me.halfChecked,Xn=me.loading,Pn=me.domRef,Gn=me.active,Ee=me.data,Jn=me.onMouseMove,ai=me.selectable,ui=(0,ee.Z)(me,gt),ln=this.props.context,Te=ln.prefixCls,Me=ln.filterTreeNode,ie=ln.keyEntities,Kt=ln.dropContainerKey,Oe=ln.dropTargetKey,ke=ln.draggingNodeKey,te=this.isDisabled(),qt=(0,ye.Z)(ui,{aria:!0,data:!0}),Dt=(0,ht.Z)(ie,sn)||{},xt=Dt.level,mt=bn[bn.length-1],Mt=this.isDraggable(),Rt=!te&&Mt,Et=ke===sn,re=ai!==void 0?{"aria-selected":!!ai}:void 0;return Re.createElement("div",(0,Ct.Z)({ref:Pn,className:ve()(qe,"".concat(Te,"-treenode"),(Ve={},(0,It.Z)(Ve,"".concat(Te,"-treenode-disabled"),te),(0,It.Z)(Ve,"".concat(Te,"-treenode-switcher-").concat(yn?"open":"close"),!Ht),(0,It.Z)(Ve,"".concat(Te,"-treenode-checkbox-checked"),Ue),(0,It.Z)(Ve,"".concat(Te,"-treenode-checkbox-indeterminate"),Sn),(0,It.Z)(Ve,"".concat(Te,"-treenode-selected"),Ae),(0,It.Z)(Ve,"".concat(Te,"-treenode-loading"),Xn),(0,It.Z)(Ve,"".concat(Te,"-treenode-active"),Gn),(0,It.Z)(Ve,"".concat(Te,"-treenode-leaf-last"),mt),(0,It.Z)(Ve,"".concat(Te,"-treenode-draggable"),Mt),(0,It.Z)(Ve,"dragging",Et),(0,It.Z)(Ve,"drop-target",Oe===sn),(0,It.Z)(Ve,"drop-container",Kt===sn),(0,It.Z)(Ve,"drag-over",!te&&je),(0,It.Z)(Ve,"drag-over-gap-top",!te&&hn),(0,It.Z)(Ve,"drag-over-gap-bottom",!te&&ge),(0,It.Z)(Ve,"filter-node",Me&&Me((0,st.F)(this.props))),Ve)),style:Ye,draggable:Rt,"aria-grabbed":Et,onDragStart:Rt?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:Jn},re,qt),Re.createElement(nt,{prefixCls:Te,level:xt,isStart:Ce,isEnd:bn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),de}(Re.Component),Ot=function(Ut){return Re.createElement(Tt.k.Consumer,null,function(de){return Re.createElement(kt,(0,Ct.Z)({},Ut,{context:de}))})};Ot.displayName="TreeNode",Ot.isTreeNode=1;var jt=Ot},39378:function(Dn,An,St){"use strict";St.d(An,{k:function(){return It}});var Ct=St(59301),It=Ct.createContext(null)},99581:function(Dn,An,St){"use strict";St.d(An,{O:function(){return jt.Z},Z:function(){return ln}});var Ct=St(5891),It=St(80962),ee=St(80665),Ne=St(57259),Vt=St(26390),fe=St(79545),Ft=St(68550),ze=St(21882),we=St(17928),oe=St(7711),ve=St(92310),ye=St.n(ve),Re=St(85108),Tt=St(36994),et=St(51395),nt=St(59301),ht=St(39378);function st(Te){var Me=Te.dropPosition,ie=Te.dropLevelOffset,Kt=Te.indent,Oe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Me){case-1:Oe.top=0,Oe.left=-ie*Kt;break;case 1:Oe.bottom=0,Oe.left=-ie*Kt;break;case 0:Oe.bottom=0,Oe.left=Kt;break}return nt.createElement("div",{style:Oe})}function gt(Te){if(Te==null)throw new TypeError("Cannot destructure "+Te)}var vt=St(29043),wt=St(19149),Bt=St(28800),kt=St(21881),Ot=St(43469),jt=St(39417);function Xt(Te,Me){var ie=nt.useState(!1),Kt=(0,vt.Z)(ie,2),Oe=Kt[0],ke=Kt[1];nt.useLayoutEffect(function(){if(Oe)return Te(),function(){Me()}},[Oe]),nt.useLayoutEffect(function(){return ke(!0),function(){ke(!1)}},[])}var Ut=St(71430),de=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Gt=function(Me,ie){var Kt=Me.className,Oe=Me.style,ke=Me.motion,te=Me.motionNodes,qt=Me.motionType,Dt=Me.onMotionStart,xt=Me.onMotionEnd,mt=Me.active,Mt=Me.treeNodeRequiredProps,Rt=(0,wt.Z)(Me,de),Et=nt.useState(!0),re=(0,vt.Z)(Et,2),Qe=re[0],mn=re[1],le=nt.useContext(ht.k),Ge=le.prefixCls,cn=te&&qt!=="hide";(0,Bt.Z)(function(){te&&cn!==Qe&&mn(cn)},[te]);var Mn=function(){te&&Dt()},Zn=nt.useRef(!1),_n=function(){te&&!Zn.current&&(Zn.current=!0,xt())};Xt(Mn,_n);var di=function(Fi){cn===Fi&&_n()};return te?nt.createElement(Ot.default,(0,Ct.Z)({ref:ie,visible:Qe},ke,{motionAppear:qt==="show",onVisibleChanged:di}),function(ri,Fi){var Zi=ri.className,Vi=ri.style;return nt.createElement("div",{ref:Fi,className:ye()("".concat(Ge,"-treenode-motion"),Zi),style:Vi},te.map(function(ji){var qi=(0,Ct.Z)({},(gt(ji.data),ji.data)),wo=ji.title,Ei=ji.key,Po=ji.isStart,ki=ji.isEnd;delete qi.children;var Lt=(0,Ut.H8)(Ei,Mt);return nt.createElement(jt.Z,(0,Ct.Z)({},qi,Lt,{title:wo,active:mt,data:ji.data,key:Ei,isStart:Po,isEnd:ki}))}))}):nt.createElement(jt.Z,(0,Ct.Z)({domRef:ie,className:Kt,style:Oe},Rt,{active:mt}))};Gt.displayName="MotionTreeNode";var Ve=nt.forwardRef(Gt),me=Ve;function sn(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=Te.length,Kt=Me.length;if(Math.abs(ie-Kt)!==1)return{add:!1,key:null};function Oe(ke,te){var qt=new Map;ke.forEach(function(xt){qt.set(xt,!0)});var Dt=te.filter(function(xt){return!qt.has(xt)});return Dt.length===1?Dt[0]:null}return ie<Kt?{add:!0,key:Oe(Te,Me)}:{add:!1,key:Oe(Me,Te)}}function qe(Te,Me,ie){var Kt=Te.findIndex(function(qt){return qt.key===ie}),Oe=Te[Kt+1],ke=Me.findIndex(function(qt){return qt.key===ie});if(Oe){var te=Me.findIndex(function(qt){return qt.key===Oe.key});return Me.slice(ke+1,te)}return Me.slice(ke+1)}var Ye=["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"],je={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},hn=function(){},ge="RC_TREE_MOTION_".concat(Math.random()),Ht={key:ge},Ce={key:ge,level:0,index:0,pos:"0",node:Ht,nodes:[Ht]},bn={parent:null,children:[],pos:Ce.pos,data:Ht,title:null,key:ge,isStart:[],isEnd:[]};function yn(Te,Me,ie,Kt){return Me===!1||!ie?Te:Te.slice(0,Math.ceil(ie/Kt)+1)}function Ae(Te){var Me=Te.key,ie=Te.pos;return(0,Ut.km)(Me,ie)}function Ue(Te){for(var Me=String(Te.data.key),ie=Te;ie.parent;)ie=ie.parent,Me="".concat(ie.data.key," > ").concat(Me);return Me}var Sn=nt.forwardRef(function(Te,Me){var ie=Te.prefixCls,Kt=Te.data,Oe=Te.selectable,ke=Te.checkable,te=Te.expandedKeys,qt=Te.selectedKeys,Dt=Te.checkedKeys,xt=Te.loadedKeys,mt=Te.loadingKeys,Mt=Te.halfCheckedKeys,Rt=Te.keyEntities,Et=Te.disabled,re=Te.dragging,Qe=Te.dragOverNodeKey,mn=Te.dropPosition,le=Te.motion,Ge=Te.height,cn=Te.itemHeight,Mn=Te.virtual,Zn=Te.focusable,_n=Te.activeItem,di=Te.focused,ri=Te.tabIndex,Fi=Te.onKeyDown,Zi=Te.onFocus,Vi=Te.onBlur,ji=Te.onActiveChange,qi=Te.onListChangeStart,wo=Te.onListChangeEnd,Ei=(0,wt.Z)(Te,Ye),Po=nt.useRef(null),ki=nt.useRef(null);nt.useImperativeHandle(Me,function(){return{scrollTo:function(fn){Po.current.scrollTo(fn)},getIndentWidth:function(){return ki.current.offsetWidth}}});var Lt=nt.useState(te),Mo=(0,vt.Z)(Lt,2),$i=Mo[0],En=Mo[1],hi=nt.useState(Kt),gi=(0,vt.Z)(hi,2),Pi=gi[0],Rn=gi[1],Le=nt.useState(Kt),Fe=(0,vt.Z)(Le,2),he=Fe[0],_t=Fe[1],Ze=nt.useState([]),tn=(0,vt.Z)(Ze,2),Se=tn[0],Yt=tn[1],$e=nt.useState(null),on=(0,vt.Z)($e,2),zn=on[0],en=on[1],xe=nt.useRef(Kt);xe.current=Kt;function vn(){var We=xe.current;Rn(We),_t(We),Yt([]),en(null),wo()}(0,Bt.Z)(function(){En(te);var We=sn($i,te);if(We.key!==null)if(We.add){var fn=Pi.findIndex(function(Cn){var kn=Cn.key;return kn===We.key}),Ie=yn(qe(Pi,Kt,We.key),Mn,Ge,cn),an=Pi.slice();an.splice(fn+1,0,bn),_t(an),Yt(Ie),en("show")}else{var _e=Kt.findIndex(function(Cn){var kn=Cn.key;return kn===We.key}),rn=yn(qe(Kt,Pi,We.key),Mn,Ge,cn),pn=Kt.slice();pn.splice(_e+1,0,bn),_t(pn),Yt(rn),en("hide")}else Pi!==Kt&&(Rn(Kt),_t(Kt))},[te,Kt]),nt.useEffect(function(){re||vn()},[re]);var Wn=le?he:Kt,qn={expandedKeys:te,selectedKeys:qt,loadedKeys:xt,loadingKeys:mt,checkedKeys:Dt,halfCheckedKeys:Mt,dragOverNodeKey:Qe,dropPosition:mn,keyEntities:Rt};return nt.createElement(nt.Fragment,null,di&&_n&&nt.createElement("span",{style:je,"aria-live":"assertive"},Ue(_n)),nt.createElement("div",null,nt.createElement("input",{style:je,disabled:Zn===!1||Et,tabIndex:Zn!==!1?ri:null,onKeyDown:Fi,onFocus:Zi,onBlur:Vi,value:"",onChange:hn,"aria-label":"for screen reader"})),nt.createElement("div",{className:"".concat(ie,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},nt.createElement("div",{className:"".concat(ie,"-indent")},nt.createElement("div",{ref:ki,className:"".concat(ie,"-indent-unit")}))),nt.createElement(kt.Z,(0,Ct.Z)({},Ei,{data:Wn,itemKey:Ae,height:Ge,fullHeight:!1,virtual:Mn,itemHeight:cn,prefixCls:"".concat(ie,"-list"),ref:Po,onVisibleChange:function(fn,Ie){var an=new Set(fn),_e=Ie.filter(function(rn){return!an.has(rn)});_e.some(function(rn){return Ae(rn)===ge})&&vn()}}),function(We){var fn=We.pos,Ie=(0,Ct.Z)({},(gt(We.data),We.data)),an=We.title,_e=We.key,rn=We.isStart,pn=We.isEnd,Cn=(0,Ut.km)(_e,fn);delete Ie.key,delete Ie.children;var kn=(0,Ut.H8)(Cn,qn);return nt.createElement(me,(0,Ct.Z)({},Ie,kn,{title:an,active:!!_n&&_e===_n.key,pos:fn,data:We.data,isStart:rn,isEnd:pn,motion:le,motionNodes:_e===ge?Se:null,motionType:zn,onMotionStart:qi,onMotionEnd:vn,treeNodeRequiredProps:qn,onMouseMove:function(){ji(null)}}))}))});Sn.displayName="NodeList";var Xn=Sn,Pn=St(35654),Gn=St(90782),Ee=St(67841),Jn=10,ai=function(Te){(0,we.Z)(ie,Te);var Me=(0,oe.Z)(ie);function ie(){var Kt;(0,fe.Z)(this,ie);for(var Oe=arguments.length,ke=new Array(Oe),te=0;te<Oe;te++)ke[te]=arguments[te];return Kt=Me.call.apply(Me,[this].concat(ke)),Kt.destroyed=!1,Kt.delayedDragEnterLogic=void 0,Kt.loadingRetryTimes={},Kt.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,Ut.w$)()},Kt.dragStartMousePosition=null,Kt.dragNode=void 0,Kt.currentMouseOverDroppableNodeKey=null,Kt.listRef=nt.createRef(),Kt.onNodeDragStart=function(qt,Dt){var xt=Kt.state,mt=xt.expandedKeys,Mt=xt.keyEntities,Rt=Kt.props.onDragStart,Et=Dt.props.eventKey;Kt.dragNode=Dt,Kt.dragStartMousePosition={x:qt.clientX,y:qt.clientY};var re=(0,Pn._5)(mt,Et);Kt.setState({draggingNodeKey:Et,dragChildrenKeys:(0,Pn.wA)(Et,Mt),indent:Kt.listRef.current.getIndentWidth()}),Kt.setExpandedKeys(re),window.addEventListener("dragend",Kt.onWindowDragEnd),Rt==null||Rt({event:qt,node:(0,Ut.F)(Dt.props)})},Kt.onNodeDragEnter=function(qt,Dt){var xt=Kt.state,mt=xt.expandedKeys,Mt=xt.keyEntities,Rt=xt.dragChildrenKeys,Et=xt.flattenNodes,re=xt.indent,Qe=Kt.props,mn=Qe.onDragEnter,le=Qe.onExpand,Ge=Qe.allowDrop,cn=Qe.direction,Mn=Dt.props,Zn=Mn.pos,_n=Mn.eventKey,di=(0,ze.Z)(Kt),ri=di.dragNode;if(Kt.currentMouseOverDroppableNodeKey!==_n&&(Kt.currentMouseOverDroppableNodeKey=_n),!ri){Kt.resetDragState();return}var Fi=(0,Pn.OM)(qt,ri,Dt,re,Kt.dragStartMousePosition,Ge,Et,Mt,mt,cn),Zi=Fi.dropPosition,Vi=Fi.dropLevelOffset,ji=Fi.dropTargetKey,qi=Fi.dropContainerKey,wo=Fi.dropTargetPos,Ei=Fi.dropAllowed,Po=Fi.dragOverNodeKey;if(Rt.indexOf(ji)!==-1||!Ei){Kt.resetDragState();return}if(Kt.delayedDragEnterLogic||(Kt.delayedDragEnterLogic={}),Object.keys(Kt.delayedDragEnterLogic).forEach(function(ki){clearTimeout(Kt.delayedDragEnterLogic[ki])}),ri.props.eventKey!==Dt.props.eventKey&&(qt.persist(),Kt.delayedDragEnterLogic[Zn]=window.setTimeout(function(){if(Kt.state.draggingNodeKey!==null){var ki=(0,Vt.Z)(mt),Lt=(0,Ee.Z)(Mt,Dt.props.eventKey);Lt&&(Lt.children||[]).length&&(ki=(0,Pn.L0)(mt,Dt.props.eventKey)),"expandedKeys"in Kt.props||Kt.setExpandedKeys(ki),le==null||le(ki,{node:(0,Ut.F)(Dt.props),expanded:!0,nativeEvent:qt.nativeEvent})}},800)),ri.props.eventKey===ji&&Vi===0){Kt.resetDragState();return}Kt.setState({dragOverNodeKey:Po,dropPosition:Zi,dropLevelOffset:Vi,dropTargetKey:ji,dropContainerKey:qi,dropTargetPos:wo,dropAllowed:Ei}),mn==null||mn({event:qt,node:(0,Ut.F)(Dt.props),expandedKeys:mt})},Kt.onNodeDragOver=function(qt,Dt){var xt=Kt.state,mt=xt.dragChildrenKeys,Mt=xt.flattenNodes,Rt=xt.keyEntities,Et=xt.expandedKeys,re=xt.indent,Qe=Kt.props,mn=Qe.onDragOver,le=Qe.allowDrop,Ge=Qe.direction,cn=(0,ze.Z)(Kt),Mn=cn.dragNode;if(Mn){var Zn=(0,Pn.OM)(qt,Mn,Dt,re,Kt.dragStartMousePosition,le,Mt,Rt,Et,Ge),_n=Zn.dropPosition,di=Zn.dropLevelOffset,ri=Zn.dropTargetKey,Fi=Zn.dropContainerKey,Zi=Zn.dropAllowed,Vi=Zn.dropTargetPos,ji=Zn.dragOverNodeKey;mt.indexOf(ri)!==-1||!Zi||(Mn.props.eventKey===ri&&di===0?Kt.state.dropPosition===null&&Kt.state.dropLevelOffset===null&&Kt.state.dropTargetKey===null&&Kt.state.dropContainerKey===null&&Kt.state.dropTargetPos===null&&Kt.state.dropAllowed===!1&&Kt.state.dragOverNodeKey===null||Kt.resetDragState():_n===Kt.state.dropPosition&&di===Kt.state.dropLevelOffset&&ri===Kt.state.dropTargetKey&&Fi===Kt.state.dropContainerKey&&Vi===Kt.state.dropTargetPos&&Zi===Kt.state.dropAllowed&&ji===Kt.state.dragOverNodeKey||Kt.setState({dropPosition:_n,dropLevelOffset:di,dropTargetKey:ri,dropContainerKey:Fi,dropTargetPos:Vi,dropAllowed:Zi,dragOverNodeKey:ji}),mn==null||mn({event:qt,node:(0,Ut.F)(Dt.props)}))}},Kt.onNodeDragLeave=function(qt,Dt){Kt.currentMouseOverDroppableNodeKey===Dt.props.eventKey&&!qt.currentTarget.contains(qt.relatedTarget)&&(Kt.resetDragState(),Kt.currentMouseOverDroppableNodeKey=null);var xt=Kt.props.onDragLeave;xt==null||xt({event:qt,node:(0,Ut.F)(Dt.props)})},Kt.onWindowDragEnd=function(qt){Kt.onNodeDragEnd(qt,null,!0),window.removeEventListener("dragend",Kt.onWindowDragEnd)},Kt.onNodeDragEnd=function(qt,Dt){var xt=Kt.props.onDragEnd;Kt.setState({dragOverNodeKey:null}),Kt.cleanDragState(),xt==null||xt({event:qt,node:(0,Ut.F)(Dt.props)}),Kt.dragNode=null,window.removeEventListener("dragend",Kt.onWindowDragEnd)},Kt.onNodeDrop=function(qt,Dt){var xt,mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Mt=Kt.state,Rt=Mt.dragChildrenKeys,Et=Mt.dropPosition,re=Mt.dropTargetKey,Qe=Mt.dropTargetPos,mn=Mt.dropAllowed;if(mn){var le=Kt.props.onDrop;if(Kt.setState({dragOverNodeKey:null}),Kt.cleanDragState(),re!==null){var Ge=(0,Ne.Z)((0,Ne.Z)({},(0,Ut.H8)(re,Kt.getTreeNodeRequiredProps())),{},{active:((xt=Kt.getActiveItem())===null||xt===void 0?void 0:xt.key)===re,data:(0,Ee.Z)(Kt.state.keyEntities,re).node}),cn=Rt.indexOf(re)!==-1;(0,et.ZP)(!cn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Mn=(0,Pn.yx)(Qe),Zn={event:qt,node:(0,Ut.F)(Ge),dragNode:Kt.dragNode?(0,Ut.F)(Kt.dragNode.props):null,dragNodesKeys:[Kt.dragNode.props.eventKey].concat(Rt),dropToGap:Et!==0,dropPosition:Et+Number(Mn[Mn.length-1])};mt||le==null||le(Zn),Kt.dragNode=null}}},Kt.cleanDragState=function(){var qt=Kt.state.draggingNodeKey;qt!==null&&Kt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Kt.dragStartMousePosition=null,Kt.currentMouseOverDroppableNodeKey=null},Kt.triggerExpandActionExpand=function(qt,Dt){var xt=Kt.state,mt=xt.expandedKeys,Mt=xt.flattenNodes,Rt=Dt.expanded,Et=Dt.key,re=Dt.isLeaf;if(!(re||qt.shiftKey||qt.metaKey||qt.ctrlKey)){var Qe=Mt.filter(function(le){return le.key===Et})[0],mn=(0,Ut.F)((0,Ne.Z)((0,Ne.Z)({},(0,Ut.H8)(Et,Kt.getTreeNodeRequiredProps())),{},{data:Qe.data}));Kt.setExpandedKeys(Rt?(0,Pn._5)(mt,Et):(0,Pn.L0)(mt,Et)),Kt.onNodeExpand(qt,mn)}},Kt.onNodeClick=function(qt,Dt){var xt=Kt.props,mt=xt.onClick,Mt=xt.expandAction;Mt==="click"&&Kt.triggerExpandActionExpand(qt,Dt),mt==null||mt(qt,Dt)},Kt.onNodeDoubleClick=function(qt,Dt){var xt=Kt.props,mt=xt.onDoubleClick,Mt=xt.expandAction;Mt==="doubleClick"&&Kt.triggerExpandActionExpand(qt,Dt),mt==null||mt(qt,Dt)},Kt.onNodeSelect=function(qt,Dt){var xt=Kt.state.selectedKeys,mt=Kt.state,Mt=mt.keyEntities,Rt=mt.fieldNames,Et=Kt.props,re=Et.onSelect,Qe=Et.multiple,mn=Dt.selected,le=Dt[Rt.key],Ge=!mn;Ge?Qe?xt=(0,Pn.L0)(xt,le):xt=[le]:xt=(0,Pn._5)(xt,le);var cn=xt.map(function(Mn){var Zn=(0,Ee.Z)(Mt,Mn);return Zn?Zn.node:null}).filter(function(Mn){return Mn});Kt.setUncontrolledState({selectedKeys:xt}),re==null||re(xt,{event:"select",selected:Ge,node:Dt,selectedNodes:cn,nativeEvent:qt.nativeEvent})},Kt.onNodeCheck=function(qt,Dt,xt){var mt=Kt.state,Mt=mt.keyEntities,Rt=mt.checkedKeys,Et=mt.halfCheckedKeys,re=Kt.props,Qe=re.checkStrictly,mn=re.onCheck,le=Dt.key,Ge,cn={event:"check",node:Dt,checked:xt,nativeEvent:qt.nativeEvent};if(Qe){var Mn=xt?(0,Pn.L0)(Rt,le):(0,Pn._5)(Rt,le),Zn=(0,Pn._5)(Et,le);Ge={checked:Mn,halfChecked:Zn},cn.checkedNodes=Mn.map(function(Vi){return(0,Ee.Z)(Mt,Vi)}).filter(function(Vi){return Vi}).map(function(Vi){return Vi.node}),Kt.setUncontrolledState({checkedKeys:Mn})}else{var _n=(0,Gn.S)([].concat((0,Vt.Z)(Rt),[le]),!0,Mt),di=_n.checkedKeys,ri=_n.halfCheckedKeys;if(!xt){var Fi=new Set(di);Fi.delete(le);var Zi=(0,Gn.S)(Array.from(Fi),{checked:!1,halfCheckedKeys:ri},Mt);di=Zi.checkedKeys,ri=Zi.halfCheckedKeys}Ge=di,cn.checkedNodes=[],cn.checkedNodesPositions=[],cn.halfCheckedKeys=ri,di.forEach(function(Vi){var ji=(0,Ee.Z)(Mt,Vi);if(ji){var qi=ji.node,wo=ji.pos;cn.checkedNodes.push(qi),cn.checkedNodesPositions.push({node:qi,pos:wo})}}),Kt.setUncontrolledState({checkedKeys:di},!1,{halfCheckedKeys:ri})}mn==null||mn(Ge,cn)},Kt.onNodeLoad=function(qt){var Dt=qt.key,xt=new Promise(function(mt,Mt){Kt.setState(function(Rt){var Et=Rt.loadedKeys,re=Et===void 0?[]:Et,Qe=Rt.loadingKeys,mn=Qe===void 0?[]:Qe,le=Kt.props,Ge=le.loadData,cn=le.onLoad;if(!Ge||re.indexOf(Dt)!==-1||mn.indexOf(Dt)!==-1)return null;var Mn=Ge(qt);return Mn.then(function(){var Zn=Kt.state.loadedKeys,_n=(0,Pn.L0)(Zn,Dt);cn==null||cn(_n,{event:"load",node:qt}),Kt.setUncontrolledState({loadedKeys:_n}),Kt.setState(function(di){return{loadingKeys:(0,Pn._5)(di.loadingKeys,Dt)}}),mt()}).catch(function(Zn){if(Kt.setState(function(di){return{loadingKeys:(0,Pn._5)(di.loadingKeys,Dt)}}),Kt.loadingRetryTimes[Dt]=(Kt.loadingRetryTimes[Dt]||0)+1,Kt.loadingRetryTimes[Dt]>=Jn){var _n=Kt.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Kt.setUncontrolledState({loadedKeys:(0,Pn.L0)(_n,Dt)}),mt()}Mt(Zn)}),{loadingKeys:(0,Pn.L0)(mn,Dt)}})});return xt.catch(function(){}),xt},Kt.onNodeMouseEnter=function(qt,Dt){var xt=Kt.props.onMouseEnter;xt==null||xt({event:qt,node:Dt})},Kt.onNodeMouseLeave=function(qt,Dt){var xt=Kt.props.onMouseLeave;xt==null||xt({event:qt,node:Dt})},Kt.onNodeContextMenu=function(qt,Dt){var xt=Kt.props.onRightClick;xt&&(qt.preventDefault(),xt({event:qt,node:Dt}))},Kt.onFocus=function(){var qt=Kt.props.onFocus;Kt.setState({focused:!0});for(var Dt=arguments.length,xt=new Array(Dt),mt=0;mt<Dt;mt++)xt[mt]=arguments[mt];qt==null||qt.apply(void 0,xt)},Kt.onBlur=function(){var qt=Kt.props.onBlur;Kt.setState({focused:!1}),Kt.onActiveChange(null);for(var Dt=arguments.length,xt=new Array(Dt),mt=0;mt<Dt;mt++)xt[mt]=arguments[mt];qt==null||qt.apply(void 0,xt)},Kt.getTreeNodeRequiredProps=function(){var qt=Kt.state,Dt=qt.expandedKeys,xt=qt.selectedKeys,mt=qt.loadedKeys,Mt=qt.loadingKeys,Rt=qt.checkedKeys,Et=qt.halfCheckedKeys,re=qt.dragOverNodeKey,Qe=qt.dropPosition,mn=qt.keyEntities;return{expandedKeys:Dt||[],selectedKeys:xt||[],loadedKeys:mt||[],loadingKeys:Mt||[],checkedKeys:Rt||[],halfCheckedKeys:Et||[],dragOverNodeKey:re,dropPosition:Qe,keyEntities:mn}},Kt.setExpandedKeys=function(qt){var Dt=Kt.state,xt=Dt.treeData,mt=Dt.fieldNames,Mt=(0,Ut.oH)(xt,qt,mt);Kt.setUncontrolledState({expandedKeys:qt,flattenNodes:Mt},!0)},Kt.onNodeExpand=function(qt,Dt){var xt=Kt.state.expandedKeys,mt=Kt.state,Mt=mt.listChanging,Rt=mt.fieldNames,Et=Kt.props,re=Et.onExpand,Qe=Et.loadData,mn=Dt.expanded,le=Dt[Rt.key];if(!Mt){var Ge=xt.indexOf(le),cn=!mn;if((0,et.ZP)(mn&&Ge!==-1||!mn&&Ge===-1,"Expand state not sync with index check"),cn?xt=(0,Pn.L0)(xt,le):xt=(0,Pn._5)(xt,le),Kt.setExpandedKeys(xt),re==null||re(xt,{node:Dt,expanded:cn,nativeEvent:qt.nativeEvent}),cn&&Qe){var Mn=Kt.onNodeLoad(Dt);Mn&&Mn.then(function(){var Zn=(0,Ut.oH)(Kt.state.treeData,xt,Rt);Kt.setUncontrolledState({flattenNodes:Zn})}).catch(function(){var Zn=Kt.state.expandedKeys,_n=(0,Pn._5)(Zn,le);Kt.setExpandedKeys(_n)})}}},Kt.onListChangeStart=function(){Kt.setUncontrolledState({listChanging:!0})},Kt.onListChangeEnd=function(){setTimeout(function(){Kt.setUncontrolledState({listChanging:!1})})},Kt.onActiveChange=function(qt){var Dt=Kt.state.activeKey,xt=Kt.props.onActiveChange;Dt!==qt&&(Kt.setState({activeKey:qt}),qt!==null&&Kt.scrollTo({key:qt}),xt==null||xt(qt))},Kt.getActiveItem=function(){var qt=Kt.state,Dt=qt.activeKey,xt=qt.flattenNodes;return Dt===null?null:xt.find(function(mt){var Mt=mt.key;return Mt===Dt})||null},Kt.offsetActiveKey=function(qt){var Dt=Kt.state,xt=Dt.flattenNodes,mt=Dt.activeKey,Mt=xt.findIndex(function(re){var Qe=re.key;return Qe===mt});Mt===-1&&qt<0&&(Mt=xt.length),Mt=(Mt+qt+xt.length)%xt.length;var Rt=xt[Mt];if(Rt){var Et=Rt.key;Kt.onActiveChange(Et)}else Kt.onActiveChange(null)},Kt.onKeyDown=function(qt){var Dt=Kt.state,xt=Dt.activeKey,mt=Dt.expandedKeys,Mt=Dt.checkedKeys,Rt=Dt.fieldNames,Et=Kt.props,re=Et.onKeyDown,Qe=Et.checkable,mn=Et.selectable;switch(qt.which){case Re.Z.UP:{Kt.offsetActiveKey(-1),qt.preventDefault();break}case Re.Z.DOWN:{Kt.offsetActiveKey(1),qt.preventDefault();break}}var le=Kt.getActiveItem();if(le&&le.data){var Ge=Kt.getTreeNodeRequiredProps(),cn=le.data.isLeaf===!1||!!(le.data[Rt.children]||[]).length,Mn=(0,Ut.F)((0,Ne.Z)((0,Ne.Z)({},(0,Ut.H8)(xt,Ge)),{},{data:le.data,active:!0}));switch(qt.which){case Re.Z.LEFT:{cn&&mt.includes(xt)?Kt.onNodeExpand({},Mn):le.parent&&Kt.onActiveChange(le.parent.key),qt.preventDefault();break}case Re.Z.RIGHT:{cn&&!mt.includes(xt)?Kt.onNodeExpand({},Mn):le.children&&le.children.length&&Kt.onActiveChange(le.children[0].key),qt.preventDefault();break}case Re.Z.ENTER:case Re.Z.SPACE:{Qe&&!Mn.disabled&&Mn.checkable!==!1&&!Mn.disableCheckbox?Kt.onNodeCheck({},Mn,!Mt.includes(xt)):!Qe&&mn&&!Mn.disabled&&Mn.selectable!==!1&&Kt.onNodeSelect({},Mn);break}}}re==null||re(qt)},Kt.setUncontrolledState=function(qt){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Kt.destroyed){var mt=!1,Mt=!0,Rt={};Object.keys(qt).forEach(function(Et){if(Et in Kt.props){Mt=!1;return}mt=!0,Rt[Et]=qt[Et]}),mt&&(!Dt||Mt)&&Kt.setState((0,Ne.Z)((0,Ne.Z)({},Rt),xt))}},Kt.scrollTo=function(qt){Kt.listRef.current.scrollTo(qt)},Kt}return(0,Ft.Z)(ie,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Oe=this.props.activeKey;Oe!==void 0&&Oe!==this.state.activeKey&&(this.setState({activeKey:Oe}),Oe!==null&&this.scrollTo({key:Oe}))}},{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 Oe,ke=this.state,te=ke.focused,qt=ke.flattenNodes,Dt=ke.keyEntities,xt=ke.draggingNodeKey,mt=ke.activeKey,Mt=ke.dropLevelOffset,Rt=ke.dropContainerKey,Et=ke.dropTargetKey,re=ke.dropPosition,Qe=ke.dragOverNodeKey,mn=ke.indent,le=this.props,Ge=le.prefixCls,cn=le.className,Mn=le.style,Zn=le.showLine,_n=le.focusable,di=le.tabIndex,ri=di===void 0?0:di,Fi=le.selectable,Zi=le.showIcon,Vi=le.icon,ji=le.switcherIcon,qi=le.draggable,wo=le.checkable,Ei=le.checkStrictly,Po=le.disabled,ki=le.motion,Lt=le.loadData,Mo=le.filterTreeNode,$i=le.height,En=le.itemHeight,hi=le.virtual,gi=le.titleRender,Pi=le.dropIndicatorRender,Rn=le.onContextMenu,Le=le.onScroll,Fe=le.direction,he=le.rootClassName,_t=le.rootStyle,Ze=(0,Tt.Z)(this.props,{aria:!0,data:!0}),tn;return qi&&((0,ee.Z)(qi)==="object"?tn=qi:typeof qi=="function"?tn={nodeDraggable:qi}:tn={}),nt.createElement(ht.k.Provider,{value:{prefixCls:Ge,selectable:Fi,showIcon:Zi,icon:Vi,switcherIcon:ji,draggable:tn,draggingNodeKey:xt,checkable:wo,checkStrictly:Ei,disabled:Po,keyEntities:Dt,dropLevelOffset:Mt,dropContainerKey:Rt,dropTargetKey:Et,dropPosition:re,dragOverNodeKey:Qe,indent:mn,direction:Fe,dropIndicatorRender:Pi,loadData:Lt,filterTreeNode:Mo,titleRender:gi,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}},nt.createElement("div",{role:"tree",className:ye()(Ge,cn,he,(Oe={},(0,It.Z)(Oe,"".concat(Ge,"-show-line"),Zn),(0,It.Z)(Oe,"".concat(Ge,"-focused"),te),(0,It.Z)(Oe,"".concat(Ge,"-active-focused"),mt!==null),Oe)),style:_t},nt.createElement(Xn,(0,Ct.Z)({ref:this.listRef,prefixCls:Ge,style:Mn,data:qt,disabled:Po,selectable:Fi,checkable:!!wo,motion:ki,dragging:xt!==null,height:$i,itemHeight:En,virtual:hi,focusable:_n,focused:te,tabIndex:ri,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Rn,onScroll:Le},this.getTreeNodeRequiredProps(),Ze))))}}],[{key:"getDerivedStateFromProps",value:function(Oe,ke){var te=ke.prevProps,qt={prevProps:Oe};function Dt(_n){return!te&&_n in Oe||te&&te[_n]!==Oe[_n]}var xt,mt=ke.fieldNames;if(Dt("fieldNames")&&(mt=(0,Ut.w$)(Oe.fieldNames),qt.fieldNames=mt),Dt("treeData")?xt=Oe.treeData:Dt("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xt=(0,Ut.zn)(Oe.children)),xt){qt.treeData=xt;var Mt=(0,Ut.I8)(xt,{fieldNames:mt});qt.keyEntities=(0,Ne.Z)((0,It.Z)({},ge,Ce),Mt.keyEntities)}var Rt=qt.keyEntities||ke.keyEntities;if(Dt("expandedKeys")||te&&Dt("autoExpandParent"))qt.expandedKeys=Oe.autoExpandParent||!te&&Oe.defaultExpandParent?(0,Pn.r7)(Oe.expandedKeys,Rt):Oe.expandedKeys;else if(!te&&Oe.defaultExpandAll){var Et=(0,Ne.Z)({},Rt);delete Et[ge],qt.expandedKeys=Object.keys(Et).map(function(_n){return Et[_n].key})}else!te&&Oe.defaultExpandedKeys&&(qt.expandedKeys=Oe.autoExpandParent||Oe.defaultExpandParent?(0,Pn.r7)(Oe.defaultExpandedKeys,Rt):Oe.defaultExpandedKeys);if(qt.expandedKeys||delete qt.expandedKeys,xt||qt.expandedKeys){var re=(0,Ut.oH)(xt||ke.treeData,qt.expandedKeys||ke.expandedKeys,mt);qt.flattenNodes=re}if(Oe.selectable&&(Dt("selectedKeys")?qt.selectedKeys=(0,Pn.BT)(Oe.selectedKeys,Oe):!te&&Oe.defaultSelectedKeys&&(qt.selectedKeys=(0,Pn.BT)(Oe.defaultSelectedKeys,Oe))),Oe.checkable){var Qe;if(Dt("checkedKeys")?Qe=(0,Pn.E6)(Oe.checkedKeys)||{}:!te&&Oe.defaultCheckedKeys?Qe=(0,Pn.E6)(Oe.defaultCheckedKeys)||{}:xt&&(Qe=(0,Pn.E6)(Oe.checkedKeys)||{checkedKeys:ke.checkedKeys,halfCheckedKeys:ke.halfCheckedKeys}),Qe){var mn=Qe,le=mn.checkedKeys,Ge=le===void 0?[]:le,cn=mn.halfCheckedKeys,Mn=cn===void 0?[]:cn;if(!Oe.checkStrictly){var Zn=(0,Gn.S)(Ge,!0,Rt);Ge=Zn.checkedKeys,Mn=Zn.halfCheckedKeys}qt.checkedKeys=Ge,qt.halfCheckedKeys=Mn}}return Dt("loadedKeys")&&(qt.loadedKeys=Oe.loadedKeys),qt}}]),ie}(nt.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:st,allowDrop:function(){return!0},expandAction:!1},ai.TreeNode=jt.Z;var ui=ai,ln=ui},35654:function(Dn,An,St){"use strict";St.d(An,{BT:function(){return nt},E6:function(){return gt},L0:function(){return oe},OM:function(){return et},_5:function(){return we},r7:function(){return vt},wA:function(){return ye},yx:function(){return ve}});var Ct=St(26390),It=St(80665),ee=St(51395),Ne=St(59301),Vt=St(39417),fe=St(67841),Ft=St(71430),ze=null;function we(wt,Bt){if(!wt)return[];var kt=wt.slice(),Ot=kt.indexOf(Bt);return Ot>=0&&kt.splice(Ot,1),kt}function oe(wt,Bt){var kt=(wt||[]).slice();return kt.indexOf(Bt)===-1&&kt.push(Bt),kt}function ve(wt){return wt.split("-")}function ye(wt,Bt){var kt=[],Ot=(0,fe.Z)(Bt,wt);function jt(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Xt.forEach(function(Ut){var de=Ut.key,Gt=Ut.children;kt.push(de),jt(Gt)})}return jt(Ot.children),kt}function Re(wt){if(wt.parent){var Bt=ve(wt.pos);return Number(Bt[Bt.length-1])===wt.parent.children.length-1}return!1}function Tt(wt){var Bt=ve(wt.pos);return Number(Bt[Bt.length-1])===0}function et(wt,Bt,kt,Ot,jt,Xt,Ut,de,Gt,Ve){var me,sn=wt.clientX,qe=wt.clientY,Ye=wt.target.getBoundingClientRect(),je=Ye.top,hn=Ye.height,ge=(Ve==="rtl"?-1:1)*(((jt==null?void 0:jt.x)||0)-sn),Ht=(ge-12)/Ot,Ce=(0,fe.Z)(de,kt.props.eventKey);if(qe<je+hn/2){var bn=Ut.findIndex(function(ln){return ln.key===Ce.key}),yn=bn<=0?0:bn-1,Ae=Ut[yn].key;Ce=(0,fe.Z)(de,Ae)}var Ue=Ce.key,Sn=Ce,Xn=Ce.key,Pn=0,Gn=0;if(!Gt.includes(Ue))for(var Ee=0;Ee<Ht&&Re(Ce);Ee+=1)Ce=Ce.parent,Gn+=1;var Jn=Bt.props.data,ai=Ce.node,ui=!0;return Tt(Ce)&&Ce.level===0&&qe<je+hn/2&&Xt({dragNode:Jn,dropNode:ai,dropPosition:-1})&&Ce.key===kt.props.eventKey?Pn=-1:(Sn.children||[]).length&&Gt.includes(Xn)?Xt({dragNode:Jn,dropNode:ai,dropPosition:0})?Pn=0:ui=!1:Gn===0?Ht>-1.5?Xt({dragNode:Jn,dropNode:ai,dropPosition:1})?Pn=1:ui=!1:Xt({dragNode:Jn,dropNode:ai,dropPosition:0})?Pn=0:Xt({dragNode:Jn,dropNode:ai,dropPosition:1})?Pn=1:ui=!1:Xt({dragNode:Jn,dropNode:ai,dropPosition:1})?Pn=1:ui=!1,{dropPosition:Pn,dropLevelOffset:Gn,dropTargetKey:Ce.key,dropTargetPos:Ce.pos,dragOverNodeKey:Xn,dropContainerKey:Pn===0?null:((me=Ce.parent)===null||me===void 0?void 0:me.key)||null,dropAllowed:ui}}function nt(wt,Bt){if(wt){var kt=Bt.multiple;return kt?wt.slice():wt.length?[wt[0]]:wt}}var ht=function(Bt){return Bt};function st(wt,Bt){if(!wt)return[];var kt=Bt||{},Ot=kt.processProps,jt=Ot===void 0?ht:Ot,Xt=Array.isArray(wt)?wt:[wt];return Xt.map(function(Ut){var de=Ut.children,Gt=_objectWithoutProperties(Ut,ze),Ve=st(de,Bt);return React.createElement(TreeNode,_extends({key:Gt.key},jt(Gt)),Ve)})}function gt(wt){if(!wt)return null;var Bt;if(Array.isArray(wt))Bt={checkedKeys:wt,halfCheckedKeys:void 0};else if((0,It.Z)(wt)==="object")Bt={checkedKeys:wt.checked||void 0,halfCheckedKeys:wt.halfChecked||void 0};else return(0,ee.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Bt}function vt(wt,Bt){var kt=new Set;function Ot(jt){if(!kt.has(jt)){var Xt=(0,fe.Z)(Bt,jt);if(Xt){kt.add(jt);var Ut=Xt.parent,de=Xt.node;de.disabled||Ut&&Ot(Ut.key)}}}return(wt||[]).forEach(function(jt){Ot(jt)}),(0,Ct.Z)(kt)}},90782:function(Dn,An,St){"use strict";St.d(An,{S:function(){return Ft}});var Ct=St(51395),It=St(67841);function ee(ze,we){var oe=new Set;return ze.forEach(function(ve){we.has(ve)||oe.add(ve)}),oe}function Ne(ze){var we=ze||{},oe=we.disabled,ve=we.disableCheckbox,ye=we.checkable;return!!(oe||ve)||ye===!1}function Vt(ze,we,oe,ve){for(var ye=new Set(ze),Re=new Set,Tt=0;Tt<=oe;Tt+=1){var et=we.get(Tt)||new Set;et.forEach(function(gt){var vt=gt.key,wt=gt.node,Bt=gt.children,kt=Bt===void 0?[]:Bt;ye.has(vt)&&!ve(wt)&&kt.filter(function(Ot){return!ve(Ot.node)}).forEach(function(Ot){ye.add(Ot.key)})})}for(var nt=new Set,ht=oe;ht>=0;ht-=1){var st=we.get(ht)||new Set;st.forEach(function(gt){var vt=gt.parent,wt=gt.node;if(!(ve(wt)||!gt.parent||nt.has(gt.parent.key))){if(ve(gt.parent.node)){nt.add(vt.key);return}var Bt=!0,kt=!1;(vt.children||[]).filter(function(Ot){return!ve(Ot.node)}).forEach(function(Ot){var jt=Ot.key,Xt=ye.has(jt);Bt&&!Xt&&(Bt=!1),!kt&&(Xt||Re.has(jt))&&(kt=!0)}),Bt&&ye.add(vt.key),kt&&Re.add(vt.key),nt.add(vt.key)}})}return{checkedKeys:Array.from(ye),halfCheckedKeys:Array.from(ee(Re,ye))}}function fe(ze,we,oe,ve,ye){for(var Re=new Set(ze),Tt=new Set(we),et=0;et<=ve;et+=1){var nt=oe.get(et)||new Set;nt.forEach(function(vt){var wt=vt.key,Bt=vt.node,kt=vt.children,Ot=kt===void 0?[]:kt;!Re.has(wt)&&!Tt.has(wt)&&!ye(Bt)&&Ot.filter(function(jt){return!ye(jt.node)}).forEach(function(jt){Re.delete(jt.key)})})}Tt=new Set;for(var ht=new Set,st=ve;st>=0;st-=1){var gt=oe.get(st)||new Set;gt.forEach(function(vt){var wt=vt.parent,Bt=vt.node;if(!(ye(Bt)||!vt.parent||ht.has(vt.parent.key))){if(ye(vt.parent.node)){ht.add(wt.key);return}var kt=!0,Ot=!1;(wt.children||[]).filter(function(jt){return!ye(jt.node)}).forEach(function(jt){var Xt=jt.key,Ut=Re.has(Xt);kt&&!Ut&&(kt=!1),!Ot&&(Ut||Tt.has(Xt))&&(Ot=!0)}),kt||Re.delete(wt.key),Ot&&Tt.add(wt.key),ht.add(wt.key)}})}return{checkedKeys:Array.from(Re),halfCheckedKeys:Array.from(ee(Tt,Re))}}function Ft(ze,we,oe,ve){var ye=[],Re;ve?Re=ve:Re=Ne;var Tt=new Set(ze.filter(function(st){var gt=!!(0,It.Z)(oe,st);return gt||ye.push(st),gt})),et=new Map,nt=0;Object.keys(oe).forEach(function(st){var gt=oe[st],vt=gt.level,wt=et.get(vt);wt||(wt=new Set,et.set(vt,wt)),wt.add(gt),nt=Math.max(nt,vt)}),(0,Ct.ZP)(!ye.length,"Tree missing follow keys: ".concat(ye.slice(0,100).map(function(st){return"'".concat(st,"'")}).join(", ")));var ht;return we===!0?ht=Vt(Tt,et,nt,Re):ht=fe(Tt,we.halfCheckedKeys,et,nt,Re),ht}},67841:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return Ct}});function Ct(It,ee){return It[ee]}},71430:function(Dn,An,St){"use strict";St.d(An,{F:function(){return vt},H8:function(){return gt},I8:function(){return st},km:function(){return ye},oH:function(){return nt},w$:function(){return Re},zn:function(){return et}});var Ct=St(80665),It=St(26390),ee=St(57259),Ne=St(19149),Vt=St(38298),fe=St(64002),Ft=St(51395),ze=St(67841),we=["children"];function oe(wt,Bt){return"".concat(wt,"-").concat(Bt)}function ve(wt){return wt&&wt.type&&wt.type.isTreeNode}function ye(wt,Bt){return wt!=null?wt:Bt}function Re(wt){var Bt=wt||{},kt=Bt.title,Ot=Bt._title,jt=Bt.key,Xt=Bt.children,Ut=kt||"title";return{title:Ut,_title:Ot||[Ut],key:jt||"key",children:Xt||"children"}}function Tt(wt,Bt){var kt=new Map;function Ot(jt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(jt||[]).forEach(function(Ut){var de=Ut[Bt.key],Gt=Ut[Bt.children];warning(de!=null,"Tree node must have a certain key: [".concat(Xt).concat(de,"]"));var Ve=String(de);warning(!kt.has(Ve)||de===null||de===void 0,"Same 'key' exist in the Tree: ".concat(Ve)),kt.set(Ve,!0),Ot(Gt,"".concat(Xt).concat(Ve," > "))})}Ot(wt)}function et(wt){function Bt(kt){var Ot=(0,Vt.Z)(kt);return Ot.map(function(jt){if(!ve(jt))return(0,Ft.ZP)(!jt,"Tree/TreeNode can only accept TreeNode as children."),null;var Xt=jt.key,Ut=jt.props,de=Ut.children,Gt=(0,Ne.Z)(Ut,we),Ve=(0,ee.Z)({key:Xt},Gt),me=Bt(de);return me.length&&(Ve.children=me),Ve}).filter(function(jt){return jt})}return Bt(wt)}function nt(wt,Bt,kt){var Ot=Re(kt),jt=Ot._title,Xt=Ot.key,Ut=Ot.children,de=new Set(Bt===!0?[]:Bt),Gt=[];function Ve(me){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return me.map(function(qe,Ye){for(var je=oe(sn?sn.pos:"0",Ye),hn=ye(qe[Xt],je),ge,Ht=0;Ht<jt.length;Ht+=1){var Ce=jt[Ht];if(qe[Ce]!==void 0){ge=qe[Ce];break}}var bn=(0,ee.Z)((0,ee.Z)({},(0,fe.Z)(qe,[].concat((0,It.Z)(jt),[Xt,Ut]))),{},{title:ge,key:hn,parent:sn,pos:je,children:null,data:qe,isStart:[].concat((0,It.Z)(sn?sn.isStart:[]),[Ye===0]),isEnd:[].concat((0,It.Z)(sn?sn.isEnd:[]),[Ye===me.length-1])});return Gt.push(bn),Bt===!0||de.has(hn)?bn.children=Ve(qe[Ut]||[],bn):bn.children=[],bn})}return Ve(wt),Gt}function ht(wt,Bt,kt){var Ot={};(0,Ct.Z)(kt)==="object"?Ot=kt:Ot={externalGetKey:kt},Ot=Ot||{};var jt=Ot,Xt=jt.childrenPropName,Ut=jt.externalGetKey,de=jt.fieldNames,Gt=Re(de),Ve=Gt.key,me=Gt.children,sn=Xt||me,qe;Ut?typeof Ut=="string"?qe=function(hn){return hn[Ut]}:typeof Ut=="function"&&(qe=function(hn){return Ut(hn)}):qe=function(hn,ge){return ye(hn[Ve],ge)};function Ye(je,hn,ge,Ht){var Ce=je?je[sn]:wt,bn=je?oe(ge.pos,hn):"0",yn=je?[].concat((0,It.Z)(Ht),[je]):[];if(je){var Ae=qe(je,bn),Ue={node:je,index:hn,pos:bn,key:Ae,parentPos:ge.node?ge.pos:null,level:ge.level+1,nodes:yn};Bt(Ue)}Ce&&Ce.forEach(function(Sn,Xn){Ye(Sn,Xn,{node:je,pos:bn,level:ge?ge.level+1:-1},yn)})}Ye(null)}function st(wt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},kt=Bt.initWrapper,Ot=Bt.processEntity,jt=Bt.onProcessFinished,Xt=Bt.externalGetKey,Ut=Bt.childrenPropName,de=Bt.fieldNames,Gt=arguments.length>2?arguments[2]:void 0,Ve=Xt||Gt,me={},sn={},qe={posEntities:me,keyEntities:sn};return kt&&(qe=kt(qe)||qe),ht(wt,function(Ye){var je=Ye.node,hn=Ye.index,ge=Ye.pos,Ht=Ye.key,Ce=Ye.parentPos,bn=Ye.level,yn=Ye.nodes,Ae={node:je,nodes:yn,index:hn,key:Ht,pos:ge,level:bn},Ue=ye(Ht,ge);me[ge]=Ae,sn[Ue]=Ae,Ae.parent=me[Ce],Ae.parent&&(Ae.parent.children=Ae.parent.children||[],Ae.parent.children.push(Ae)),Ot&&Ot(Ae,qe)},{externalGetKey:Ve,childrenPropName:Ut,fieldNames:de}),jt&&jt(qe),qe}function gt(wt,Bt){var kt=Bt.expandedKeys,Ot=Bt.selectedKeys,jt=Bt.loadedKeys,Xt=Bt.loadingKeys,Ut=Bt.checkedKeys,de=Bt.halfCheckedKeys,Gt=Bt.dragOverNodeKey,Ve=Bt.dropPosition,me=Bt.keyEntities,sn=(0,ze.Z)(me,wt),qe={eventKey:wt,expanded:kt.indexOf(wt)!==-1,selected:Ot.indexOf(wt)!==-1,loaded:jt.indexOf(wt)!==-1,loading:Xt.indexOf(wt)!==-1,checked:Ut.indexOf(wt)!==-1,halfChecked:de.indexOf(wt)!==-1,pos:String(sn?sn.pos:""),dragOver:Gt===wt&&Ve===0,dragOverGapTop:Gt===wt&&Ve===-1,dragOverGapBottom:Gt===wt&&Ve===1};return qe}function vt(wt){var Bt=wt.data,kt=wt.expanded,Ot=wt.selected,jt=wt.checked,Xt=wt.loaded,Ut=wt.loading,de=wt.halfChecked,Gt=wt.dragOver,Ve=wt.dragOverGapTop,me=wt.dragOverGapBottom,sn=wt.pos,qe=wt.active,Ye=wt.eventKey,je=(0,ee.Z)((0,ee.Z)({},Bt),{},{expanded:kt,selected:Ot,checked:jt,loaded:Xt,loading:Ut,halfChecked:de,dragOver:Gt,dragOverGapTop:Ve,dragOverGapBottom:me,pos:sn,active:qe,key:Ye});return"props"in je||Object.defineProperty(je,"props",{get:function(){return(0,Ft.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),wt}}),je}},8178:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return It}});var Ct=St(4676);function It(ee,Ne,Vt,fe){var Ft=Ct.unstable_batchedUpdates?function(we){Ct.unstable_batchedUpdates(Vt,we)}:Vt;return ee!=null&&ee.addEventListener&&ee.addEventListener(Ne,Ft,fe),{remove:function(){ee!=null&&ee.removeEventListener&&ee.removeEventListener(Ne,Ft,fe)}}}},21783:function(Dn,An,St){"use strict";St.d(An,{g1:function(){return ve},os:function(){return Re}});var Ct=/margin|padding|width|height|max|min|offset/,It={left:!0,top:!0},ee={cssFloat:1,styleFloat:1,float:1};function Ne(Tt){return Tt.nodeType===1?Tt.ownerDocument.defaultView.getComputedStyle(Tt,null):{}}function Vt(Tt,et,nt){if(et=et.toLowerCase(),nt==="auto"){if(et==="height")return Tt.offsetHeight;if(et==="width")return Tt.offsetWidth}return et in It||(It[et]=Ct.test(et)),It[et]?parseFloat(nt)||0:nt}function fe(Tt,et){var nt=arguments.length,ht=Ne(Tt);return et=ee[et]?"cssFloat"in Tt.style?"cssFloat":"styleFloat":et,nt===1?ht:Vt(Tt,et,ht[et]||Tt.style[et])}function Ft(Tt,et,nt){var ht=arguments.length;if(et=ee[et]?"cssFloat"in Tt.style?"cssFloat":"styleFloat":et,ht===3)return typeof nt=="number"&&Ct.test(et)&&(nt="".concat(nt,"px")),Tt.style[et]=nt,nt;for(var st in et)et.hasOwnProperty(st)&&Ft(Tt,st,et[st]);return Ne(Tt)}function ze(Tt){return Tt===document.body?document.documentElement.clientWidth:Tt.offsetWidth}function we(Tt){return Tt===document.body?window.innerHeight||document.documentElement.clientHeight:Tt.offsetHeight}function oe(){var Tt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Tt,height:et}}function ve(){var Tt=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:Tt,height:et}}function ye(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Re(Tt){var et=Tt.getBoundingClientRect(),nt=document.documentElement;return{left:et.left+(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||nt.scrollTop)-(nt.clientTop||document.body.clientTop||0)}}},24387:function(Dn,An,St){"use strict";St.d(An,{G:function(){return Ne}});var Ct=St(87746),It=function(fe){if((0,Ct.Z)()&&window.document.documentElement){var Ft=Array.isArray(fe)?fe:[fe],ze=window.document.documentElement;return Ft.some(function(we){return we in ze.style})}return!1},ee=function(fe,Ft){if(!It(fe))return!1;var ze=document.createElement("div"),we=ze.style[fe];return ze.style[fe]=Ft,ze.style[fe]!==we};function Ne(Vt,fe){return!Array.isArray(Vt)&&fe!==void 0?ee(Vt,fe):It(Vt)}},21881:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ui}});var Ct=St(5891),It=St(80665),ee=St(57259),Ne=St(80962),Vt=St(29043),fe=St(19149),Ft=St(92310),ze=St.n(Ft),we=St(29301),oe=St(80764),ve=St(28800),ye=St(59301),Re=St(4676),Tt=ye.forwardRef(function(ln,Te){var Me=ln.height,ie=ln.offsetY,Kt=ln.offsetX,Oe=ln.children,ke=ln.prefixCls,te=ln.onInnerResize,qt=ln.innerProps,Dt=ln.rtl,xt=ln.extra,mt={},Mt={display:"flex",flexDirection:"column"};return ie!==void 0&&(mt={height:Me,position:"relative",overflow:"hidden"},Mt=(0,ee.Z)((0,ee.Z)({},Mt),{},(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({transform:"translateY(".concat(ie,"px)")},Dt?"marginRight":"marginLeft",-Kt),"position","absolute"),"left",0),"right",0),"top",0))),ye.createElement("div",{style:mt},ye.createElement(we.Z,{onResize:function(Et){var re=Et.offsetHeight;re&&te&&te()}},ye.createElement("div",(0,Ct.Z)({style:Mt,className:ze()((0,Ne.Z)({},"".concat(ke,"-holder-inner"),ke)),ref:Te},qt),Oe,xt)))});Tt.displayName="Filler";var et=Tt;function nt(ln){var Te=ln.children,Me=ln.setRef,ie=ye.useCallback(function(Kt){Me(Kt)},[]);return ye.cloneElement(Te,{ref:ie})}function ht(ln,Te,Me,ie,Kt,Oe,ke,te){var qt=te.getKey;return ln.slice(Te,Me+1).map(function(Dt,xt){var mt=Te+xt,Mt=ke(Dt,mt,{style:{width:ie},offsetX:Kt}),Rt=qt(Dt);return ye.createElement(nt,{key:Rt,setRef:function(re){return Oe(Dt,re)}},Mt)})}function st(ln,Te,Me,ie){var Kt=Me-ln,Oe=Te-Me,ke=Math.min(Kt,Oe)*2;if(ie<=ke){var te=Math.floor(ie/2);return ie%2?Me+te+1:Me-te}return Kt>Oe?Me-(ie-Oe):Me+(ie-Kt)}function gt(ln,Te,Me){var ie=ln.length,Kt=Te.length,Oe,ke;if(ie===0&&Kt===0)return null;ie<Kt?(Oe=ln,ke=Te):(Oe=Te,ke=ln);var te={__EMPTY_ITEM__:!0};function qt(Et){return Et!==void 0?Me(Et):te}for(var Dt=null,xt=Math.abs(ie-Kt)!==1,mt=0;mt<ke.length;mt+=1){var Mt=qt(Oe[mt]),Rt=qt(ke[mt]);if(Mt!==Rt){Dt=mt,xt=xt||Mt!==qt(ke[mt+1]);break}}return Dt===null?null:{index:Dt,multiple:xt}}function vt(ln,Te,Me){var ie=ye.useState(ln),Kt=(0,Vt.Z)(ie,2),Oe=Kt[0],ke=Kt[1],te=ye.useState(null),qt=(0,Vt.Z)(te,2),Dt=qt[0],xt=qt[1];return ye.useEffect(function(){var mt=gt(Oe||[],ln||[],Te);(mt==null?void 0:mt.index)!==void 0&&(Me==null||Me(mt.index),xt(ln[mt.index])),ke(ln)},[ln]),[Dt]}var wt=St(23073),Bt=(typeof navigator=="undefined"?"undefined":(0,It.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),kt=Bt,Ot=function(ln,Te,Me,ie){var Kt=(0,ye.useRef)(!1),Oe=(0,ye.useRef)(null);function ke(){clearTimeout(Oe.current),Kt.current=!0,Oe.current=setTimeout(function(){Kt.current=!1},50)}var te=(0,ye.useRef)({top:ln,bottom:Te,left:Me,right:ie});return te.current.top=ln,te.current.bottom=Te,te.current.left=Me,te.current.right=ie,function(qt,Dt){var xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,mt=qt?Dt<0&&te.current.left||Dt>0&&te.current.right:Dt<0&&te.current.top||Dt>0&&te.current.bottom;return xt&&mt?(clearTimeout(Oe.current),Kt.current=!1):(!mt||Kt.current)&&ke(),!Kt.current&&mt}};function jt(ln,Te,Me,ie,Kt,Oe,ke){var te=(0,ye.useRef)(0),qt=(0,ye.useRef)(null),Dt=(0,ye.useRef)(null),xt=(0,ye.useRef)(!1),mt=Ot(Te,Me,ie,Kt);function Mt(le,Ge){if(wt.Z.cancel(qt.current),!mt(!1,Ge)){var cn=le;if(!cn._virtualHandled)cn._virtualHandled=!0;else return;te.current+=Ge,Dt.current=Ge,kt||cn.preventDefault(),qt.current=(0,wt.Z)(function(){var Mn=xt.current?10:1;ke(te.current*Mn,!1),te.current=0})}}function Rt(le,Ge){ke(Ge,!0),kt||le.preventDefault()}var Et=(0,ye.useRef)(null),re=(0,ye.useRef)(null);function Qe(le){if(ln){wt.Z.cancel(re.current),re.current=(0,wt.Z)(function(){Et.current=null},2);var Ge=le.deltaX,cn=le.deltaY,Mn=le.shiftKey,Zn=Ge,_n=cn;(Et.current==="sx"||!Et.current&&Mn&&cn&&!Ge)&&(Zn=cn,_n=0,Et.current="sx");var di=Math.abs(Zn),ri=Math.abs(_n);Et.current===null&&(Et.current=Oe&&di>ri?"x":"y"),Et.current==="y"?Mt(le,_n):Rt(le,Zn)}}function mn(le){ln&&(xt.current=le.detail===Dt.current)}return[Qe,mn]}function Xt(ln,Te,Me,ie){var Kt=ye.useMemo(function(){return[new Map,[]]},[ln,Me.id,ie]),Oe=(0,Vt.Z)(Kt,2),ke=Oe[0],te=Oe[1],qt=function(xt){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xt,Mt=ke.get(xt),Rt=ke.get(mt);if(Mt===void 0||Rt===void 0)for(var Et=ln.length,re=te.length;re<Et;re+=1){var Qe,mn=ln[re],le=Te(mn);ke.set(le,re);var Ge=(Qe=Me.get(le))!==null&&Qe!==void 0?Qe:ie;if(te[re]=(te[re-1]||0)+Ge,le===xt&&(Mt=re),le===mt&&(Rt=re),Mt!==void 0&&Rt!==void 0)break}return{top:te[Mt-1]||0,bottom:te[Rt]}};return qt}var Ut=St(85899),de=St(79545),Gt=St(68550),Ve=function(){function ln(){(0,de.Z)(this,ln),(0,Ne.Z)(this,"maps",void 0),(0,Ne.Z)(this,"id",0),(0,Ne.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Gt.Z)(ln,[{key:"set",value:function(Me,ie){this.maps[Me]=ie,this.id+=1,this.diffKeys.add(Me)}},{key:"get",value:function(Me){return this.maps[Me]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),ln}(),me=Ve;function sn(ln){var Te=parseFloat(ln);return isNaN(Te)?0:Te}function qe(ln,Te,Me){var ie=ye.useState(0),Kt=(0,Vt.Z)(ie,2),Oe=Kt[0],ke=Kt[1],te=(0,ye.useRef)(new Map),qt=(0,ye.useRef)(new me),Dt=(0,ye.useRef)(0);function xt(){Dt.current+=1}function mt(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;xt();var Et=function(){var mn=!1;te.current.forEach(function(le,Ge){if(le&&le.offsetParent){var cn=(0,Ut.ZP)(le),Mn=cn.offsetHeight,Zn=getComputedStyle(cn),_n=Zn.marginTop,di=Zn.marginBottom,ri=sn(_n),Fi=sn(di),Zi=Mn+ri+Fi;qt.current.get(Ge)!==Zi&&(qt.current.set(Ge,Zi),mn=!0)}}),mn&&ke(function(le){return le+1})};if(Rt)Et();else{Dt.current+=1;var re=Dt.current;Promise.resolve().then(function(){re===Dt.current&&Et()})}}function Mt(Rt,Et){var re=ln(Rt),Qe=te.current.get(re);Et?(te.current.set(re,Et),mt()):te.current.delete(re),!Qe!=!Et&&(Et?Te==null||Te(Rt):Me==null||Me(Rt))}return(0,ye.useEffect)(function(){return xt},[]),[Mt,mt,qt.current,Oe]}var Ye=14/15;function je(ln,Te,Me){var ie=(0,ye.useRef)(!1),Kt=(0,ye.useRef)(0),Oe=(0,ye.useRef)(0),ke=(0,ye.useRef)(null),te=(0,ye.useRef)(null),qt,Dt=function(Rt){if(ie.current){var Et=Math.ceil(Rt.touches[0].pageX),re=Math.ceil(Rt.touches[0].pageY),Qe=Kt.current-Et,mn=Oe.current-re,le=Math.abs(Qe)>Math.abs(mn);le?Kt.current=Et:Oe.current=re;var Ge=Me(le,le?Qe:mn,!1,Rt);Ge&&Rt.preventDefault(),clearInterval(te.current),Ge&&(te.current=setInterval(function(){le?Qe*=Ye:mn*=Ye;var cn=Math.floor(le?Qe:mn);(!Me(le,cn,!0)||Math.abs(cn)<=.1)&&clearInterval(te.current)},16))}},xt=function(){ie.current=!1,qt()},mt=function(Rt){qt(),Rt.touches.length===1&&!ie.current&&(ie.current=!0,Kt.current=Math.ceil(Rt.touches[0].pageX),Oe.current=Math.ceil(Rt.touches[0].pageY),ke.current=Rt.target,ke.current.addEventListener("touchmove",Dt,{passive:!1}),ke.current.addEventListener("touchend",xt,{passive:!0}))};qt=function(){ke.current&&(ke.current.removeEventListener("touchmove",Dt),ke.current.removeEventListener("touchend",xt))},(0,ve.Z)(function(){return ln&&Te.current.addEventListener("touchstart",mt,{passive:!0}),function(){var Mt;(Mt=Te.current)===null||Mt===void 0||Mt.removeEventListener("touchstart",mt),qt(),clearInterval(te.current)}},[ln])}function hn(ln){return Math.floor(Math.pow(ln,.5))}function ge(ln,Te){var Me="touches"in ln?ln.touches[0]:ln;return Me[Te?"pageX":"pageY"]-window[Te?"scrollX":"scrollY"]}function Ht(ln,Te,Me){ye.useEffect(function(){var ie=Te.current;if(ln&&ie){var Kt=!1,Oe,ke,te=function(){wt.Z.cancel(Oe)},qt=function Mt(){te(),Oe=(0,wt.Z)(function(){Me(ke),Mt()})},Dt=function(Rt){var Et=Rt;Et._virtualHandled||(Et._virtualHandled=!0,Kt=!0)},xt=function(){Kt=!1,te()},mt=function(Rt){if(Kt){var Et=ge(Rt,!1),re=ie.getBoundingClientRect(),Qe=re.top,mn=re.bottom;if(Et<=Qe){var le=Qe-Et;ke=-hn(le),qt()}else if(Et>=mn){var Ge=Et-mn;ke=hn(Ge),qt()}else te()}};return ie.addEventListener("mousedown",Dt),ie.ownerDocument.addEventListener("mouseup",xt),ie.ownerDocument.addEventListener("mousemove",mt),function(){ie.removeEventListener("mousedown",Dt),ie.ownerDocument.removeEventListener("mouseup",xt),ie.ownerDocument.removeEventListener("mousemove",mt),te()}}},[ln])}var Ce=10;function bn(ln,Te,Me,ie,Kt,Oe,ke,te){var qt=ye.useRef(),Dt=ye.useState(null),xt=(0,Vt.Z)(Dt,2),mt=xt[0],Mt=xt[1];return(0,ve.Z)(function(){if(mt&&mt.times<Ce){if(!ln.current){Mt(function(Lt){return(0,ee.Z)({},Lt)});return}Oe();var Rt=mt.targetAlign,Et=mt.originAlign,re=mt.index,Qe=mt.offset,mn=ln.current.clientHeight,le=!1,Ge=Rt,cn=null;if(mn){for(var Mn=Rt||Et,Zn=0,_n=0,di=0,ri=Math.min(Te.length-1,re),Fi=0;Fi<=ri;Fi+=1){var Zi=Kt(Te[Fi]);_n=Zn;var Vi=Me.get(Zi);di=_n+(Vi===void 0?ie:Vi),Zn=di}for(var ji=Mn==="top"?Qe:mn-Qe,qi=ri;qi>=0;qi-=1){var wo=Kt(Te[qi]),Ei=Me.get(wo);if(Ei===void 0){le=!0;break}if(ji-=Ei,ji<=0)break}switch(Mn){case"top":cn=_n-Qe;break;case"bottom":cn=di-mn+Qe;break;default:{var Po=ln.current.scrollTop,ki=Po+mn;_n<Po?Ge="top":di>ki&&(Ge="bottom")}}cn!==null&&ke(cn),cn!==mt.lastTop&&(le=!0)}le&&Mt((0,ee.Z)((0,ee.Z)({},mt),{},{times:mt.times+1,targetAlign:Ge,lastTop:cn}))}},[mt,ln.current]),function(Rt){if(Rt==null){te();return}if(wt.Z.cancel(qt.current),typeof Rt=="number")ke(Rt);else if(Rt&&(0,It.Z)(Rt)==="object"){var Et,re=Rt.align;"index"in Rt?Et=Rt.index:Et=Te.findIndex(function(le){return Kt(le)===Rt.key});var Qe=Rt.offset,mn=Qe===void 0?0:Qe;Mt({times:0,index:Et,offset:mn,originAlign:re})}}}var yn=ye.forwardRef(function(ln,Te){var Me=ln.prefixCls,ie=ln.rtl,Kt=ln.scrollOffset,Oe=ln.scrollRange,ke=ln.onStartMove,te=ln.onStopMove,qt=ln.onScroll,Dt=ln.horizontal,xt=ln.spinSize,mt=ln.containerSize,Mt=ln.style,Rt=ln.thumbStyle,Et=ye.useState(!1),re=(0,Vt.Z)(Et,2),Qe=re[0],mn=re[1],le=ye.useState(null),Ge=(0,Vt.Z)(le,2),cn=Ge[0],Mn=Ge[1],Zn=ye.useState(null),_n=(0,Vt.Z)(Zn,2),di=_n[0],ri=_n[1],Fi=!ie,Zi=ye.useRef(),Vi=ye.useRef(),ji=ye.useState(!1),qi=(0,Vt.Z)(ji,2),wo=qi[0],Ei=qi[1],Po=ye.useRef(),ki=function(){clearTimeout(Po.current),Ei(!0),Po.current=setTimeout(function(){Ei(!1)},3e3)},Lt=Oe-mt||0,Mo=mt-xt||0,$i=ye.useMemo(function(){if(Kt===0||Lt===0)return 0;var _t=Kt/Lt;return _t*Mo},[Kt,Lt,Mo]),En=function(Ze){Ze.stopPropagation(),Ze.preventDefault()},hi=ye.useRef({top:$i,dragging:Qe,pageY:cn,startTop:di});hi.current={top:$i,dragging:Qe,pageY:cn,startTop:di};var gi=function(Ze){mn(!0),Mn(ge(Ze,Dt)),ri(hi.current.top),ke(),Ze.stopPropagation(),Ze.preventDefault()};ye.useEffect(function(){var _t=function(Yt){Yt.preventDefault()},Ze=Zi.current,tn=Vi.current;return Ze.addEventListener("touchstart",_t,{passive:!1}),tn.addEventListener("touchstart",gi,{passive:!1}),function(){Ze.removeEventListener("touchstart",_t),tn.removeEventListener("touchstart",gi)}},[]);var Pi=ye.useRef();Pi.current=Lt;var Rn=ye.useRef();Rn.current=Mo,ye.useEffect(function(){if(Qe){var _t,Ze=function(Yt){var $e=hi.current,on=$e.dragging,zn=$e.pageY,en=$e.startTop;wt.Z.cancel(_t);var xe=Zi.current.getBoundingClientRect(),vn=mt/(Dt?xe.width:xe.height);if(on){var Wn=(ge(Yt,Dt)-zn)*vn,qn=en;!Fi&&Dt?qn-=Wn:qn+=Wn;var We=Pi.current,fn=Rn.current,Ie=fn?qn/fn:0,an=Math.ceil(Ie*We);an=Math.max(an,0),an=Math.min(an,We),_t=(0,wt.Z)(function(){qt(an,Dt)})}},tn=function(){mn(!1),te()};return window.addEventListener("mousemove",Ze,{passive:!0}),window.addEventListener("touchmove",Ze,{passive:!0}),window.addEventListener("mouseup",tn,{passive:!0}),window.addEventListener("touchend",tn,{passive:!0}),function(){window.removeEventListener("mousemove",Ze),window.removeEventListener("touchmove",Ze),window.removeEventListener("mouseup",tn),window.removeEventListener("touchend",tn),wt.Z.cancel(_t)}}},[Qe]),ye.useEffect(function(){return ki(),function(){clearTimeout(Po.current)}},[Kt]),ye.useImperativeHandle(Te,function(){return{delayHidden:ki}});var Le="".concat(Me,"-scrollbar"),Fe={position:"absolute",visibility:wo?null:"hidden"},he={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Dt?(Fe.height=8,Fe.left=0,Fe.right=0,Fe.bottom=0,he.height="100%",he.width=xt,Fi?he.left=$i:he.right=$i):(Fe.width=8,Fe.top=0,Fe.bottom=0,Fi?Fe.right=0:Fe.left=0,he.width="100%",he.height=xt,he.top=$i),ye.createElement("div",{ref:Zi,className:ze()(Le,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(Le,"-horizontal"),Dt),"".concat(Le,"-vertical"),!Dt),"".concat(Le,"-visible"),wo)),style:(0,ee.Z)((0,ee.Z)({},Fe),Mt),onMouseDown:En,onMouseMove:ki},ye.createElement("div",{ref:Vi,className:ze()("".concat(Le,"-thumb"),(0,Ne.Z)({},"".concat(Le,"-thumb-moving"),Qe)),style:(0,ee.Z)((0,ee.Z)({},he),Rt),onMouseDown:gi}))}),Ae=yn,Ue=20;function Sn(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Me=ln/Te*ln;return isNaN(Me)&&(Me=0),Me=Math.max(Me,Ue),Math.floor(Me)}var Xn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Pn=[],Gn={overflowY:"auto",overflowAnchor:"none"};function Ee(ln,Te){var Me=ln.prefixCls,ie=Me===void 0?"rc-virtual-list":Me,Kt=ln.className,Oe=ln.height,ke=ln.itemHeight,te=ln.fullHeight,qt=te===void 0?!0:te,Dt=ln.style,xt=ln.data,mt=ln.children,Mt=ln.itemKey,Rt=ln.virtual,Et=ln.direction,re=ln.scrollWidth,Qe=ln.component,mn=Qe===void 0?"div":Qe,le=ln.onScroll,Ge=ln.onVirtualScroll,cn=ln.onVisibleChange,Mn=ln.innerProps,Zn=ln.extraRender,_n=ln.styles,di=(0,fe.Z)(ln,Xn),ri=ye.useCallback(function(_i){return typeof Mt=="function"?Mt(_i):_i==null?void 0:_i[Mt]},[Mt]),Fi=qe(ri,null,null),Zi=(0,Vt.Z)(Fi,4),Vi=Zi[0],ji=Zi[1],qi=Zi[2],wo=Zi[3],Ei=!!(Rt!==!1&&Oe&&ke),Po=ye.useMemo(function(){return Object.values(qi.maps).reduce(function(_i,Ji){return _i+Ji},0)},[qi.id,qi.maps]),ki=Ei&&xt&&(Math.max(ke*xt.length,Po)>Oe||!!re),Lt=Et==="rtl",Mo=ze()(ie,(0,Ne.Z)({},"".concat(ie,"-rtl"),Lt),Kt),$i=xt||Pn,En=(0,ye.useRef)(),hi=(0,ye.useRef)(),gi=(0,ye.useRef)(),Pi=(0,ye.useState)(0),Rn=(0,Vt.Z)(Pi,2),Le=Rn[0],Fe=Rn[1],he=(0,ye.useState)(0),_t=(0,Vt.Z)(he,2),Ze=_t[0],tn=_t[1],Se=(0,ye.useState)(!1),Yt=(0,Vt.Z)(Se,2),$e=Yt[0],on=Yt[1],zn=function(){on(!0)},en=function(){on(!1)},xe={getKey:ri};function vn(_i){Fe(function(Ji){var Zo;typeof _i=="function"?Zo=_i(Ji):Zo=_i;var rr=Hi(Zo);return En.current.scrollTop=rr,rr})}var Wn=(0,ye.useRef)({start:0,end:$i.length}),qn=(0,ye.useRef)(),We=vt($i,ri),fn=(0,Vt.Z)(We,1),Ie=fn[0];qn.current=Ie;var an=ye.useMemo(function(){if(!Ei)return{scrollHeight:void 0,start:0,end:$i.length-1,offset:void 0};if(!ki){var _i;return{scrollHeight:((_i=hi.current)===null||_i===void 0?void 0:_i.offsetHeight)||0,start:0,end:$i.length-1,offset:void 0}}for(var Ji=0,Zo,rr,Ao,kr=$i.length,Ki=0;Ki<kr;Ki+=1){var zi=$i[Ki],co=ri(zi),Yn=qi.get(co),ar=Ji+(Yn===void 0?ke:Yn);ar>=Le&&Zo===void 0&&(Zo=Ki,rr=Ji),ar>Le+Oe&&Ao===void 0&&(Ao=Ki),Ji=ar}return Zo===void 0&&(Zo=0,rr=0,Ao=Math.ceil(Oe/ke)),Ao===void 0&&(Ao=$i.length-1),Ao=Math.min(Ao+1,$i.length-1),{scrollHeight:Ji,start:Zo,end:Ao,offset:rr}},[ki,Ei,Le,$i,wo,Oe]),_e=an.scrollHeight,rn=an.start,pn=an.end,Cn=an.offset;Wn.current.start=rn,Wn.current.end=pn,ye.useLayoutEffect(function(){var _i=qi.getRecord();if(_i.size===1){var Ji=Array.from(_i)[0],Zo=ri($i[rn]);if(Zo===Ji){var rr=qi.get(Ji),Ao=rr-ke;vn(function(kr){return kr+Ao})}}qi.resetRecord()},[_e]);var kn=ye.useState({width:0,height:Oe}),In=(0,Vt.Z)(kn,2),wn=In[0],Kn=In[1],Ci=function(Ji){Kn({width:Ji.offsetWidth,height:Ji.offsetHeight})},Wi=(0,ye.useRef)(),Li=(0,ye.useRef)(),Be=ye.useMemo(function(){return Sn(wn.width,re)},[wn.width,re]),ei=ye.useMemo(function(){return Sn(wn.height,_e)},[wn.height,_e]),Si=_e-Oe,ci=(0,ye.useRef)(Si);ci.current=Si;function Hi(_i){var Ji=_i;return Number.isNaN(ci.current)||(Ji=Math.min(Ji,ci.current)),Ji=Math.max(Ji,0),Ji}var Ni=Le<=0,Ui=Le>=Si,Ii=Ze<=0,bi=Ze>=re,eo=Ot(Ni,Ui,Ii,bi),xn=function(){return{x:Lt?-Ze:Ze,y:Le}},Fo=(0,ye.useRef)(xn()),Ln=(0,oe.useEvent)(function(_i){if(Ge){var Ji=(0,ee.Z)((0,ee.Z)({},xn()),_i);(Fo.current.x!==Ji.x||Fo.current.y!==Ji.y)&&(Ge(Ji),Fo.current=Ji)}});function po(_i,Ji){var Zo=_i;Ji?((0,Re.flushSync)(function(){tn(Zo)}),Ln()):vn(Zo)}function Go(_i){var Ji=_i.currentTarget.scrollTop;Ji!==Le&&vn(Ji),le==null||le(_i),Ln()}var Yi=function(Ji){var Zo=Ji,rr=re?re-wn.width:0;return Zo=Math.max(Zo,0),Zo=Math.min(Zo,rr),Zo},nr=(0,oe.useEvent)(function(_i,Ji){Ji?((0,Re.flushSync)(function(){tn(function(Zo){var rr=Zo+(Lt?-_i:_i);return Yi(rr)})}),Ln()):vn(function(Zo){var rr=Zo+_i;return rr})}),Bo=jt(Ei,Ni,Ui,Ii,bi,!!re,nr),Ti=(0,Vt.Z)(Bo,2),Oi=Ti[0],bo=Ti[1];je(Ei,En,function(_i,Ji,Zo,rr){var Ao=rr;return eo(_i,Ji,Zo)?!1:!Ao||!Ao._virtualHandled?(Ao&&(Ao._virtualHandled=!0),Oi({preventDefault:function(){},deltaX:_i?Ji:0,deltaY:_i?0:Ji}),!0):!1}),Ht(ki,En,function(_i){vn(function(Ji){return Ji+_i})}),(0,ve.Z)(function(){function _i(Zo){var rr=Ni&&Zo.detail<0,Ao=Ui&&Zo.detail>0;Ei&&!rr&&!Ao&&Zo.preventDefault()}var Ji=En.current;return Ji.addEventListener("wheel",Oi,{passive:!1}),Ji.addEventListener("DOMMouseScroll",bo,{passive:!0}),Ji.addEventListener("MozMousePixelScroll",_i,{passive:!1}),function(){Ji.removeEventListener("wheel",Oi),Ji.removeEventListener("DOMMouseScroll",bo),Ji.removeEventListener("MozMousePixelScroll",_i)}},[Ei,Ni,Ui]),(0,ve.Z)(function(){if(re){var _i=Yi(Ze);tn(_i),Ln({x:_i})}},[wn.width,re]);var Do=function(){var Ji,Zo;(Ji=Wi.current)===null||Ji===void 0||Ji.delayHidden(),(Zo=Li.current)===null||Zo===void 0||Zo.delayHidden()},si=bn(En,$i,qi,ke,ri,function(){return ji(!0)},vn,Do);ye.useImperativeHandle(Te,function(){return{nativeElement:gi.current,getScrollInfo:xn,scrollTo:function(Ji){function Zo(rr){return rr&&(0,It.Z)(rr)==="object"&&("left"in rr||"top"in rr)}Zo(Ji)?(Ji.left!==void 0&&tn(Yi(Ji.left)),si(Ji.top)):si(Ji)}}}),(0,ve.Z)(function(){if(cn){var _i=$i.slice(rn,pn+1);cn(_i,$i)}},[rn,pn,$i]);var Zt=Xt($i,ri,qi,ke),Co=Zn==null?void 0:Zn({start:rn,end:pn,virtual:ki,offsetX:Ze,offsetY:Cn,rtl:Lt,getSize:Zt}),xr=ht($i,rn,pn,re,Ze,Vi,mt,xe),yo=null;Oe&&(yo=(0,ee.Z)((0,Ne.Z)({},qt?"height":"maxHeight",Oe),Gn),Ei&&(yo.overflowY="hidden",re&&(yo.overflowX="hidden"),$e&&(yo.pointerEvents="none")));var yr={};return Lt&&(yr.dir="rtl"),ye.createElement("div",(0,Ct.Z)({ref:gi,style:(0,ee.Z)((0,ee.Z)({},Dt),{},{position:"relative"}),className:Mo},yr,di),ye.createElement(we.Z,{onResize:Ci},ye.createElement(mn,{className:"".concat(ie,"-holder"),style:yo,ref:En,onScroll:Go,onMouseEnter:Do},ye.createElement(et,{prefixCls:ie,height:_e,offsetX:Ze,offsetY:Cn,scrollWidth:re,onInnerResize:ji,ref:hi,innerProps:Mn,rtl:Lt,extra:Co},xr))),ki&&_e>Oe&&ye.createElement(Ae,{ref:Wi,prefixCls:ie,scrollOffset:Le,scrollRange:_e,rtl:Lt,onScroll:po,onStartMove:zn,onStopMove:en,spinSize:ei,containerSize:wn.height,style:_n==null?void 0:_n.verticalScrollBar,thumbStyle:_n==null?void 0:_n.verticalScrollBarThumb}),ki&&re>wn.width&&ye.createElement(Ae,{ref:Li,prefixCls:ie,scrollOffset:Ze,scrollRange:re,rtl:Lt,onScroll:po,onStartMove:zn,onStopMove:en,spinSize:Be,containerSize:wn.width,horizontal:!0,style:_n==null?void 0:_n.horizontalScrollBar,thumbStyle:_n==null?void 0:_n.horizontalScrollBarThumb}))}var Jn=ye.forwardRef(Ee);Jn.displayName="List";var ai=Jn,ui=ai},25510:function(Dn){"use strict";Dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQYCdTIADLTuZe9D0oEBQICgQFggJ7hAIBWPYIo2OYQYGgQFAgKBAU2MkUCMCyk7kXf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+bOC5YO3FOvvPyy/ebMM+zggw6y5595zsaMHm2LTppgL7/wYtiQvOOu/2jv/cAH7P27vc/m2Ov2u4vOtyuuuNyO+eY3bez4Cbbi8svbqy/PtJf+9oLNnTXbRsydZ8d+81u21VZb2wpvfasdcMD+dtIpPwoxLJMmTwrbp595/Anb7O1vt2223Mq+9pWv2siJE+33l15iJ//0p/brs39jy660oj14/73hbKQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+quutUsvuMiuue5aW2T8Inbu+efZVltvHbZG33LrLfaRj3zEXnvtVVtnnbXt9F/+0iZMnBjcUQR7H3HEkbbV5pvZT37ykwBifnDiD0KW1n9+3wfsC1/6oq215po2ZpGxfUGsNrtvU01I+DbK5r4+x8aMGGUv/O0Fm3H3Pfbv/7a3PXD/X23XXXe19ddfzzbb5G12wcUX2+k//6W99tosW3+99e1XZ54Z3DCf+PQn7eprrrannn/aPvjB3e0D73+/PfPUU3brLX+y478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiNHj7RzLrzYbrjyGpsy+S22z3982j7x8U/aH2/6g/3gRyfZz375c3vLkovbTTfdbMtNmdJ3oGJIudJ34GII8OGMGfH8/DOaOCuJq1hYioWlXXFYAEs+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9dtvbFz//haDAcVPMsXk2dvy4cA4QwGPqUkvZ9/7ve/a9737PXnv1VfvAbrvZccceGzLG/u3F5+z2O2+zbbZ5hy2x5FT7xS9+YVtsvkVwdtzyp1tst/d/MOQq2XD6dPvZz061iePH2zVXX2OXX3G5HXHkkbbV1lvZD086yW67/TY75eST7de//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3Hjxtn4CRPt5ptvtQsvvMj++7+/attsu7Udc8yxtu5664YTnIl1OeHbJ9hpp/3S7pvxF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jYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Dn,An,St){"use strict";Dn.exports=St.p+"static/AssistantCode3.a8740efb.jpeg"},51941:function(Dn){"use strict";Dn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJUAAABtCAYAAACoYyM7AAAgAElEQVR4Xmy9aY+dZ5Ildu5+35s7k0tmcifFRRtLovYqlbYqVVVX9/R0owEb408GZgD/AP8EfzI8gA1/M+AP88GAYbQNT89MV6lLJVWV9l2iSIrimjuXZO6Zd9+McyLizSvBrCJEMu99l+eJJ5YTJyIyLz977NR/+2//3W//7h/+q/9m377JJ3qdbr7b6yKTyaCfyaLf7yGDLjL9DPrZLIA+MugD4J8zAHpAv49+n3/uA9ksMvoZ/9qzj/Ab/b4+l8ny2/bzDL+rz2XBr+u6/Z7uYPfP6DvodoFsBplszu7T4zP19B0+R9afq9/r68l03V6f/7f78bvps3aRzeTQz+SAflfPleF76ud9XVsPnc37u/L9uqjt1tFutZHP5ZDL5XTdfCGPTD6nz+t/vBcfgNfJ2JPYb7sP/5jpZwHe25/HPsYfxBrZOtga2Xf0Ulowrgefx9ctm/M7+0e0hhn7CN8ow33xNdKNtFv+Ky4aT8m7akHtOflZ7RnX2vaI381m7b103X4H2Sw/nN24c+f2//t//If//X/7H/7H/3Al87/8+//+3//X/+a/e/PQ1NHzvVa92O93/eXtgSRgvFy2C24aX4ybqEXSbSgA3KCsvVmGQpXRulEQ9SL9Hnpdex1+l9fk9/K5LDrdLnq9HrLZnD+gLQrXj4IkQaSs5nhBoNVqA90+cvkcuv0uup0uSqWyrt3ptJHNcHOz+ioXpdfj4obA95HNmFDZd9t6Hgprj4LLjeznKEN270wW+Zy9Q3W3ik7brp/L5ZEr5vUMEplOD5lcTgLX7XX0zJJzrpytvn7ze3bgMnou/muOz5rjembQbbdNyLP8eU/rTcHlNUz4uTZcKxNWvqf+y3tkM/bumQw6Ha5pF5lcFr1OR9f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HANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Dn,An,St){"use strict";St.d(An,{Z:function(){return ze}});const Ct=we=>typeof we=="object"&&we!=null&&we.nodeType===1,It=(we,oe)=>(!oe||we!=="hidden")&&we!=="visible"&&we!=="clip",ee=(we,oe)=>{if(we.clientHeight<we.scrollHeight||we.clientWidth<we.scrollWidth){const ve=getComputedStyle(we,null);return It(ve.overflowY,oe)||It(ve.overflowX,oe)||(ye=>{const Re=(Tt=>{if(!Tt.ownerDocument||!Tt.ownerDocument.defaultView)return null;try{return Tt.ownerDocument.defaultView.frameElement}catch(et){return null}})(ye);return!!Re&&(Re.clientHeight<ye.scrollHeight||Re.clientWidth<ye.scrollWidth)})(we)}return!1},Ne=(we,oe,ve,ye,Re,Tt,et,nt)=>Tt<we&&et>oe||Tt>we&&et<oe?0:Tt<=we&&nt<=ve||et>=oe&&nt>=ve?Tt-we-ye:et>oe&&nt<ve||Tt<we&&nt>ve?et-oe+Re:0,Vt=we=>{const oe=we.parentElement;return oe==null?we.getRootNode().host||null:oe},fe=(we,oe)=>{var ve,ye,Re,Tt;if(typeof document=="undefined")return[];const{scrollMode:et,block:nt,inline:ht,boundary:st,skipOverflowHiddenElements:gt}=oe,vt=typeof st=="function"?st:yn=>yn!==st;if(!Ct(we))throw new TypeError("Invalid target");const wt=document.scrollingElement||document.documentElement,Bt=[];let kt=we;for(;Ct(kt)&&vt(kt);){if(kt=Vt(kt),kt===wt){Bt.push(kt);break}kt!=null&&kt===document.body&&ee(kt)&&!ee(document.documentElement)||kt!=null&&ee(kt,gt)&&Bt.push(kt)}const Ot=(ye=(ve=window.visualViewport)==null?void 0:ve.width)!=null?ye:innerWidth,jt=(Tt=(Re=window.visualViewport)==null?void 0:Re.height)!=null?Tt:innerHeight,{scrollX:Xt,scrollY:Ut}=window,{height:de,width:Gt,top:Ve,right:me,bottom:sn,left:qe}=we.getBoundingClientRect(),{top:Ye,right:je,bottom:hn,left:ge}=(yn=>{const Ae=window.getComputedStyle(yn);return{top:parseFloat(Ae.scrollMarginTop)||0,right:parseFloat(Ae.scrollMarginRight)||0,bottom:parseFloat(Ae.scrollMarginBottom)||0,left:parseFloat(Ae.scrollMarginLeft)||0}})(we);let Ht=nt==="start"||nt==="nearest"?Ve-Ye:nt==="end"?sn+hn:Ve+de/2-Ye+hn,Ce=ht==="center"?qe+Gt/2-ge+je:ht==="end"?me+je:qe-ge;const bn=[];for(let yn=0;yn<Bt.length;yn++){const Ae=Bt[yn],{height:Ue,width:Sn,top:Xn,right:Pn,bottom:Gn,left:Ee}=Ae.getBoundingClientRect();if(et==="if-needed"&&Ve>=0&&qe>=0&&sn<=jt&&me<=Ot&&(Ae===wt&&!ee(Ae)||Ve>=Xn&&sn<=Gn&&qe>=Ee&&me<=Pn))return bn;const Jn=getComputedStyle(Ae),ai=parseInt(Jn.borderLeftWidth,10),ui=parseInt(Jn.borderTopWidth,10),ln=parseInt(Jn.borderRightWidth,10),Te=parseInt(Jn.borderBottomWidth,10);let Me=0,ie=0;const Kt="offsetWidth"in Ae?Ae.offsetWidth-Ae.clientWidth-ai-ln:0,Oe="offsetHeight"in Ae?Ae.offsetHeight-Ae.clientHeight-ui-Te:0,ke="offsetWidth"in Ae?Ae.offsetWidth===0?0:Sn/Ae.offsetWidth:0,te="offsetHeight"in Ae?Ae.offsetHeight===0?0:Ue/Ae.offsetHeight:0;if(wt===Ae)Me=nt==="start"?Ht:nt==="end"?Ht-jt:nt==="nearest"?Ne(Ut,Ut+jt,jt,ui,Te,Ut+Ht,Ut+Ht+de,de):Ht-jt/2,ie=ht==="start"?Ce:ht==="center"?Ce-Ot/2:ht==="end"?Ce-Ot:Ne(Xt,Xt+Ot,Ot,ai,ln,Xt+Ce,Xt+Ce+Gt,Gt),Me=Math.max(0,Me+Ut),ie=Math.max(0,ie+Xt);else{Me=nt==="start"?Ht-Xn-ui:nt==="end"?Ht-Gn+Te+Oe:nt==="nearest"?Ne(Xn,Gn,Ue,ui,Te+Oe,Ht,Ht+de,de):Ht-(Xn+Ue/2)+Oe/2,ie=ht==="start"?Ce-Ee-ai:ht==="center"?Ce-(Ee+Sn/2)+Kt/2:ht==="end"?Ce-Pn+ln+Kt:Ne(Ee,Pn,Sn,ai,ln+Kt,Ce,Ce+Gt,Gt);const{scrollLeft:qt,scrollTop:Dt}=Ae;Me=te===0?0:Math.max(0,Math.min(Dt+Me/te,Ae.scrollHeight-Ue/te+Oe)),ie=ke===0?0:Math.max(0,Math.min(qt+ie/ke,Ae.scrollWidth-Sn/ke+Kt)),Ht+=Dt-Me,Ce+=qt-ie}bn.push({el:Ae,top:Me,left:ie})}return bn},Ft=we=>we===!1?{block:"end",inline:"nearest"}:(oe=>oe===Object(oe)&&Object.keys(oe).length!==0)(we)?we:{block:"start",inline:"nearest"};function ze(we,oe){if(!we.isConnected||!(Re=>{let Tt=Re;for(;Tt&&Tt.parentNode;){if(Tt.parentNode===document)return!0;Tt=Tt.parentNode instanceof ShadowRoot?Tt.parentNode.host:Tt.parentNode}return!1})(we))return;const ve=(Re=>{const Tt=window.getComputedStyle(Re);return{top:parseFloat(Tt.scrollMarginTop)||0,right:parseFloat(Tt.scrollMarginRight)||0,bottom:parseFloat(Tt.scrollMarginBottom)||0,left:parseFloat(Tt.scrollMarginLeft)||0}})(we);if((Re=>typeof Re=="object"&&typeof Re.behavior=="function")(oe))return oe.behavior(fe(we,oe));const ye=typeof oe=="boolean"||oe==null?void 0:oe.behavior;for(const{el:Re,top:Tt,left:et}of fe(we,Ft(oe))){const nt=Tt-ve.top+ve.bottom,ht=et-ve.left+ve.right;Re.scroll({top:nt,left:ht,behavior:ye})}}}}]);
|