(self.webpackChunk=self.webpackChunk||[]).push([[6913],{89489:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},59477:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},40001:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},65363:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},26227:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},49198:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},41464:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},73331:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},15277:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},52671:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},8657:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},56082:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},33853:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},15075:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},43531:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},76618:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},61485:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},38819:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},47472:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Pe}});var rt=Ge(96663),vt=Ge(59301),ie={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"},_e=ie,Ie=Ge(7657),ge=function(ye,Me){return vt.createElement(Ie.Z,(0,rt.Z)({},ye,{ref:Me,icon:_e}))},ce=vt.forwardRef(ge),Pe=ce},37036:function(){"use strict"},95625:function(){"use strict"},88010:function(bn,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"}},38476:function(){"use strict"},74413:function(){"use strict";function bn(fe,z,ee,ae){ee===void 0&&(ee=0),ae===void 0&&(ae=1/0),this._name=fe,this._defaultValue=z,this._minimum=ee,this._maximum=ae}Object.defineProperty(bn.prototype,"name",{get:function(){return this._name},set:function(fe){if(typeof fe!="string"||fe==="")throw new Error("Shape name must be a valid string.");this._name=fe}}),Object.defineProperty(bn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("The default value must be a real number, not: "+fe);this._defaultValue=fe}}),Object.defineProperty(bn.prototype,"minimum",{get:function(){return this._minimum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Minimum must be a real number, not: "+fe);this._minimum=fe}}),Object.defineProperty(bn.prototype,"maximum",{get:function(){return this._maximum},set:function(fe){if(typeof fe!="number"||isNaN(fe))throw new Error("Maximum must be a real number, not: "+fe);this._maximum=fe}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(fe,z){var ee=go.Shape._FigureParameters[fe];return ee?ee[z]:null},go.Shape.setFigureParameter=function(fe,z,ee){if(!(ee instanceof bn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+ee);if(ee.defaultValueee.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+ee.defaultValue);var ae=go.Shape._FigureParameters[fe];ae||(ae=[],go.Shape._FigureParameters[fe]=ae),ae[z]=ee};var an=[];function Ge(fe,z){var ee=an.pop();return ee===void 0?new go.Point(fe,z):(ee.x=fe,ee.y=z,ee)}function rt(){var fe=an.pop();return fe===void 0?new go.Point:fe}function vt(fe){an.push(fe)}function ie(fe,z,ee,ae,re,le,ue,pe,Te){Te||(Te=new go.Point);var Ce=fe-ee,Fe=re-ue,Ae=NaN,je=NaN;if(Ce===0)if(Fe===0)fe===ee&&(Ae=fe,je=z);else{var Ne=(le-pe)/Fe,Be=le-Ne*re;Ae=fe,je=Ne*Ae+Be}else if(Fe===0){var ze=(z-ae)/Ce,Qe=z-ze*fe;Ae=re,je=ze*Ae+Qe}else{var ze=(z-ae)/Ce,Ne=(le-pe)/Fe,Qe=z-ze*fe,Be=le-Ne*re;Ae=(Be-Qe)/(ze-Ne),je=ze*Ae+Qe}return Te.x=Ae,Te.y=je,Te}function _e(fe,z,ee,ae,re,le,ue,pe,Te,Ce,Fe,Ae,je,Ne){var Be=1-Te,ze=Te,Qe=fe*Be+ee*ze,$e=z*Be+ae*ze,Ye=ee*Be+re*ze,at=ae*Be+le*ze,ut=re*Be+ue*ze,ht=le*Be+pe*ze,Ct=Qe*Be+Ye*ze,et=$e*Be+at*ze,it=Ye*Be+ut*ze,St=at*Be+ht*ze,bt=Ct*Be+it*ze,Pt=et*Be+St*ze;Ce.x=Qe,Ce.y=$e,Fe.x=Ct,Fe.y=et,Ae.x=bt,Ae.y=Pt,je.x=it,je.y=St,Ne.x=ut,Ne.y=ht}var Ie=new go.Spot(.156,.156),ge=new go.Spot(.844,.844),ce=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new bn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=5),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,le=new go.Geometry().add(new go.PathFigure(ae,0,!0).add(new go.PathSegment(go.PathSegment.Line,z-ae,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)).add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)).add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,ee-re,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,ae,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,re,ee,0,ee-re)).add(new go.PathSegment(go.PathSegment.Line,0,ae)).add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()));return re>1&&(le.spot1=new go.Spot(0,0,re,re),le.spot2=new go.Spot(1,1,-re,-re)),le}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,ee).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=ee/2,ae.endX=z,ae.endY=ee/2,ae}),go.Shape.defineFigureGenerator("LineV",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z/2,ae.startY=0,ae.endX=z/2,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee/2,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("XLine",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LineRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.25*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)))}),go.Shape.defineFigureGenerator("LineDown",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.25*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)))}),go.Shape.defineFigureGenerator("LineLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.75*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)))}),go.Shape.defineFigureGenerator("LineUp",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.75*ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(fe,z,ee){var ae=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(ae*z,(1-ae)*ee,!1).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee/2)).add(new go.PathSegment(go.PathSegment.Line,z,ee/2)).add(new go.PathSegment(go.PathSegment.Move,z/2,0)).add(new go.PathSegment(go.PathSegment.Line,z/2,ee)))}),go.Shape.defineFigureGenerator("CircleLine",function(fe,z,ee){var ae=z/2,re=new go.Geometry().add(new go.PathFigure(z,z/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,ae,ae,ae,ae).close()));return re.spot1=Ie,re.spot2=ge,re.defaultStretch=go.GraphObject.Uniform,re}),go.Shape.defineFigureGenerator("Line1",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=0,ae.startY=0,ae.endX=z,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Line2",function(fe,z,ee){var ae=new go.Geometry(go.Geometry.Line);return ae.startX=z,ae.startY=0,ae.endX=0,ae.endY=ee,ae}),go.Shape.defineFigureGenerator("Curve1",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,ce*z,0,z,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("Curve2",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,z,ee,0,ce*ee,(1-ce)*z,ee)))}),go.Shape.defineFigureGenerator("Curve3",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,ce*ee,ce*z,ee)))}),go.Shape.defineFigureGenerator("Curve4",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,(1-ce)*z,0,0,(1-ce)*ee)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(z,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new bn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)?ae=.1:ae<-1?ae=-1:ae>1&&(ae=1);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),rez&&(ae=z);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),re.5&&(ae=.5);var re=Math.abs(ae)*z;if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),rez&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())):le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())),rez&&(ae=z/2);var re=Math.abs(ae);if(ae===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=z,le.endY=ee,le}else{var le=new go.Geometry;return ae>0?le.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z-re,ee)).add(new go.PathSegment(go.PathSegment.Line,re,ee).close())):le.add(new go.PathFigure(re,0).add(new go.PathSegment(go.PathSegment.Line,z-re,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close())),re0&&(ue.add(new go.PathSegment(go.PathSegment.Move,z/2+pe,z/2)),ue.add(new go.PathSegment(go.PathSegment.Arc,0,-360,re,re,pe,pe).close())),le.spot1=Ie,le.spot2=ge,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Cloud",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.08034461*z,.1944299*ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*z,.05349299*ee,-.09239631*z,.07836421*ee,.1406031*z,-.0542823*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*z,.074219*ee,.2450511*z,-.00697547*ee,.3776197*z,-.01112067*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*z,.07004196*ee,.4539471*z,0,.6066018*z,-.02526587*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*z,.08370865*ee,.6914277*z,-.01904177*ee,.8921095*z,-.01220843*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*z,.3194596*ee,1.036446*z,.04105738*ee,1.020377*z,.3022052*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*z,.562044*ee,1.04448*z,.360238*ee,.992256*z,.5219009*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*z,.8217117*ee,1.032337*z,.5771781*ee,1.018411*z,.8120651*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*z,.9156953*ee,1.028411*z,.9571472*ee,.8556702*z,1.052487*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*z,.9310455*ee,.7431877*z,1.009325*ee,.5624123*z,1.021761*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*z,.9344623*ee,.4820677*z,1.031761*ee,.3030112*z,1.002796*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.870098*ee,.2329994*z,1.01518*ee,.03213784*z,1.01518*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*z,.6545475*ee,-.02812061*z,.9032597*ee,-.01205169*z,.6835638*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*z,.4265613*ee,-.01812061*z,.6089503*ee,-.00606892*z,.4555777*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*z,.1944299*ee,-.01606892*z,.3892545*ee,-.01205169*z,.1944299*ee))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(fe,z,ee){var ae=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(ae*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close())).setSpots(ae/2,ae/2,1-ae/2,1-ae/2)}),go.Shape.setFigureParameter("Pie",0,new bn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new bn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(fe,z,ee){var ae=fe?fe.parameter1:NaN,re=fe?fe.parameter2:NaN;isNaN(ae)&&(ae=0),isNaN(re)&&(re=315);var le=ae%360;le<0&&(le+=360);var ue=re%360,pe=Math.min(z,ee)/2;return new go.Geometry().add(new go.PathFigure(pe,pe).add(new go.PathSegment(go.PathSegment.Arc,le,ue,pe,pe,pe,pe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(fe,z,ee){var ae=ce/Math.SQRT2*.5,re=Math.SQRT2/2,le=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,re*z,le*ee,z,(1-ae)*ee,(re+ae)*z,(le+ae)*ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()))}),go.Shape.setFigureParameter("ThickCross",0,new bn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThinCross",0,new bn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=Math.min(ae,z)/2,le=z/2,ue=ee/2;return new go.Geometry().add(new go.PathFigure(le-re,0,!0).add(new go.PathSegment(go.PathSegment.Line,le+re,0)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue-re)).add(new go.PathSegment(go.PathSegment.Line,z,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,le+re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ee)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue+re)).add(new go.PathSegment(go.PathSegment.Line,0,ue-re)).add(new go.PathSegment(go.PathSegment.Line,le-re,ue-re).close()))}),go.Shape.setFigureParameter("ThickX",0,new bn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;if((isNaN(ae)||ae<0)&&(ae=30),z===0||ee===0){var re=new go.Geometry(go.Geometry.Rectangle);return re.startX=0,re.startY=0,re.endX=z,re.endY=ee,re}else{var le=z/2,ue=ee/2,pe=Math.atan2(ee,z),Te=ae-Math.min(Math.cos(pe)*ae/2,le),Ce=ae-Math.min(Math.sin(pe)*ae/2,ue),re=new go.Geometry,Fe=new go.PathFigure(Te,0,!0);return re.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.2*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-Te,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.8*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,z,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,z-Te,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,le,.8*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,Te,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee-Ce)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,Ce).close()),re}}),go.Shape.setFigureParameter("ThinX",0,new bn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=10);var re=new go.Geometry,le=new go.PathFigure(.1*z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee).close()),re}),go.Shape.setFigureParameter("SquareIBeam",0,new bn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5+ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,(1-ae)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(.5-ae/2)*z,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee).close()),re}),go.Shape.setFigureParameter("RoundedIBeam",0,new bn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.5);var re=new go.Geometry,le=new go.PathFigure(0,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,Math.abs(1-ae)*z,.25*ee,Math.abs(1-ae)*z,.75*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re}),go.Shape.defineFigureGenerator("HalfEllipse",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,ce*z,0,z,(.5-ce/2)*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,(.5+ce/2)*ee,ce*z,ee).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,ee,z,0,z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*z,.75*ee,.5*z,.25*ee).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,.1*z,.8*ee,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,0,0,.45*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.55*z,0,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.5*ee,.9*z,.8*ee).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*z,.01*ee)).add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.6*z,.2*ee,z,.25*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.7*ee,z,.8*ee,.6*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,.5*z,.75*ee,.55*z,.95*ee)).add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)).add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.7*ee,.45*z,.95*ee,.5*z,.75*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.4*z,.8*ee,0,.8*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.49*z,.01*ee,0,.25*ee,.4*z,.2*ee).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.4*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.15*z,ee,.5*z,.75*ee,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.6*ee,.55*z,.95*ee,.5*z,.75*ee));var le=.2,ue=.3,pe=0,Te=le*ce;return re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Te+pe)*ee,(.5-Te+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Te+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Te+pe)*ee,(.5+Te+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.65*z,.36771243*ee,(.5-Te+ue)*z,(.5-le+pe)*ee,(.5-le+ue+.05)*z,(.5-Te+pe-.02)*ee)),le=.2,ue=0,pe=-.3,Te=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ue)*z,(.5+pe)*ee,(.5+Te+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue)*z,(.5-Te+pe)*ee,(.5+Te+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Te+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-Te+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Te+pe)*ee,(.5-Te+ue)*z,(.5+le+pe)*ee)),le=.2,ue=-.3,pe=0,Te=le*ce,re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5-le+pe)*ee,(1-.5+le+ue-.05)*z,(.5-Te+pe-.02)*ee,(.5+Te+ue)*z,(.5-le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ue)*z,(.5+pe)*ee,(.5-Te+ue)*z,(.5-le+pe)*ee,(.5-le+ue)*z,(.5-Te+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ue)*z,(.5+le+pe)*ee,(.5-le+ue)*z,(.5+Te+pe)*ee,(.5-Te+ue)*z,(.5+le+pe)*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.6*ee,(.5+Te+ue)*z,(.5+le+pe)*ee,(.5+le+ue)*z,(.5+Te+pe)*ee).close()),ae.setSpots(.06,.33,.93,.68),ae}),go.Shape.defineFigureGenerator("YinYang",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*.5,z*.5,z*.5,z*.5)),re.add(new go.PathSegment(go.PathSegment.Arc,90,-180,z*.5,z*.75,z*.25,z*.25)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,z*.5,z*.25,z*.25,z*.25));var le=.1,ue=.5,pe=.25;return re.add(new go.PathSegment(go.PathSegment.Move,(ue+le)*z,pe*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,0,-360,z*ue,ee*pe,le*z,le*z).close()),re=new go.PathFigure(z*.5,0,!1),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*.5,z*.5,z*.5,z*.5)),pe=.75,re=new go.PathFigure((ue+le)*z,pe*ee,!0),ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,0,360,z*ue,ee*pe,le*z,le*z).close()),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Peace",function(fe,z,ee){var ae=.8535533905932737,re=.5*z,le=.5*ee;return new go.Geometry().add(new go.PathFigure(re,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,re,le,re,le)).add(new go.PathSegment(go.PathSegment.Line,re,ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Move,re,le)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ae*ee)))}),go.Shape.defineFigureGenerator("NotAllowed",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,Te=new go.PathFigure(ue*z,(pe-le)*ee);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),le=.4,re=ce*.4;var Ce=rt(),Fe=rt(),Ae=rt(),je=rt();_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.42,Ce,Fe,Ae,je,je);var Ne=rt(),Be=rt(),ze=rt();_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.58,je,je,ze,Ne,Be);var Qe=rt(),$e=rt(),Ye=rt();_e(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.42,Qe,$e,Ye,je,je);var at=rt(),ut=rt(),ht=rt();return _e(ue,pe+le,ue-re,pe+le,ue-le,pe+re,ue-le,pe,.58,je,je,ht,at,ut),Te.add(new go.PathSegment(go.PathSegment.Move,ht.x*z,ht.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,at.x*z,at.y*ee,ut.x*z,ut.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ae.x*z,Ae.y*ee,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,ht.x*z,ht.y*ee).close()),Te.add(new go.PathSegment(go.PathSegment.Move,Ye.x*z,Ye.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,ze.x*z,ze.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Ne.x*z,Ne.y*ee,Be.x*z,Be.y*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,Ye.x*z,Ye.y*ee,Qe.x*z,Qe.y*ee,$e.x*z,$e.y*ee).close()),vt(Ce),vt(Fe),vt(Ae),vt(je),vt(Ne),vt(Be),vt(ze),vt(Qe),vt($e),vt(Ye),vt(at),vt(ut),vt(ht),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("Fragile",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*z,0)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.29*z,.33*ee)).add(new go.PathSegment(go.PathSegment.Line,.35*z,.25*ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.15*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.5*ee,z,.25*ee,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.5*ee,0,.25*ee).close()))}),go.Shape.setFigureParameter("HourGlass",0,new bn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=30),ae>z&&(ae=z);var re=(z-ae)/2,le=re+ae;return new go.Geometry().add(new go.PathFigure(le,.5*ee).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)).add(new go.PathSegment(go.PathSegment.Line,re,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,z,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,.55*ee).add(new go.PathSegment(go.PathSegment.Line,.6*z,0)).add(new go.PathSegment(go.PathSegment.Line,.3*z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.45*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.55*ee).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,Te=rt(),Ce=rt(),Fe=rt(),Ae=rt(),je=new go.PathFigure((ue-le)*z,pe*ee,!1);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.44,Fe,Ae,Ce,Te,Te),je.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee));var Ne=Ge(Ce.x,Ce.y);_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.56,Te,Te,Ce,Fe,Ae);var Be=Ge(Ce.x,Ce.y);je.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.95*.9)*z,Ne.y*.1*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,Ne.y*.1*ee)),je.add(new go.PathSegment(go.PathSegment.Line,.85*z,0)),je.add(new go.PathSegment(go.PathSegment.Line,z,0)),je.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),je.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,.15*ee)),je.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*z,(Be.y*.1+.05*.9)*ee)),je.add(new go.PathSegment(go.PathSegment.Line,Be.x*z,Be.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),le=.35,re=ce*.35;var ze=new go.PathFigure(ue*z,(pe-le)*ee,!1);ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),ze.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee));var Qe=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Qe),vt(Te),vt(Ce),vt(Fe),vt(Ae),vt(Ne),vt(Be),ae.spot1=new go.Spot(.202,.257),ae.spot2=new go.Spot(.792,.739),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("GenderFemale",function(fe,z,ee){var ae=new go.Geometry,re=.375,le=0,ue=-.125,pe=re*ce,Te=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.475*z,.85*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.425*z,.85*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.425*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.475*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.475*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.525*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.525*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.575*z,.9*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.575*z,.85*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee).close()),re=.325,le=0,ue=-.125,pe=re*ce;var Te=new go.PathFigure((1-.5+re+le)*z,(.5+ue)*ee,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5+re+ue)*ee,(.5+re+le)*z,(.5+pe+ue)*ee,(.5+pe+le)*z,(.5+re+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5+re+ue)*ee,(.5-re+le)*z,(.5+pe+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+re+le)*z,(.5+ue)*ee,(.5+pe+le)*z,(.5-re+ue)*ee,(1-.5+re+le)*z,(.5-pe+ue)*ee));var Te=new go.PathFigure((.525+le)*z,(.5+re+ue)*ee,!1);return ae.add(Te),ae.spot1=new go.Spot(.232,.136),ae.spot2=new go.Spot(.682,.611),ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicImplies",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;return isNaN(ae)&&(ae=.2),new go.Geometry().add(new go.PathFigure((1-ae)*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,(1-ae)*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,ae*z,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,ae*z,ee))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)))}),go.Shape.defineFigureGenerator("LogicAnd",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(fe,z,ee){var ae=new go.Geometry().add(new go.PathFigure(.5*z,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*z,.5*ee,.5*z,.5*ee)));return ae.defaultStretch=go.GraphObject.Uniform,ae}),go.Shape.defineFigureGenerator("LogicTruth",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.5*z,0)).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee)))}),go.Shape.defineFigureGenerator("LogicForAll",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)).add(new go.PathSegment(go.PathSegment.Move,0,ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(fe,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(0,ee,!1).add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,180,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,z,ee))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(fe,z,ee){var ae=.5;return new go.Geometry().add(new go.PathFigure(z,0,!1).add(new go.PathSegment(go.PathSegment.Line,z,ae*ee)).add(new go.PathSegment(go.PathSegment.Arc,0,180,ae*z,ae*ee,ae*z,ae*ee)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new bn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new bn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=.3);var le=(1-ae)*z,ue=(.5-re/2)*ee,pe=(.5+re/2)*ee,Te=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);Te.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Te.spot1=new go.Spot(0,ue/ee);var Fe=ie(0,pe/ee,1,pe/ee,le/z,1,1,.5,rt());return Te.spot2=new go.Spot(Fe.x,Fe.y),vt(Fe),Te}),go.Shape.setFigureParameter("Arrow2",0,new bn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new bn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=30),ae>z&&(ae=z);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=30),re=Math.min(re,ee/2);var le=z-ae,ue=(ee-re)/2,pe=ue+re,Te=new go.Geometry,Ce=new go.PathFigure(0,ue,!0);Te.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ue)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,0)),Ce.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,le,pe)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,pe).close()),Te.spot1=new go.Spot(0,ue/ee);var Fe=ie(0,pe/ee,1,pe/ee,le/z,1,1,.5,rt());return Te.spot2=new go.Spot(Fe.x,Fe.y),vt(Fe),Te}),go.Shape.defineFigureGenerator("Chevron",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("DoubleArrow",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.214*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.786*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,1*ee).close()),ae}),go.Shape.setFigureParameter("DoubleEndArrow",0,new bn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close());var Te=ie(0,.5,.3,0,0,re/ee,.1,re/ee,rt());return ue.spot1=new go.Spot(Te.x,Te.y),Te=ie(.7,1,1,.5,0,le/ee,1,le/ee,Te),ue.spot2=new go.Spot(Te.x,Te.y),vt(Te),ue}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new bn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new bn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Te=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Te=ee):(le=0,ue=ee,pe=0,Te=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.3*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close());var Ae=ie(0,.5,.3,pe/ee,0,le/ee,1,le/ee,rt());return Ce.spot1=new go.Spot(Ae.x,Ae.y),Ae=ie(.7,Te/ee,1,.5,0,ue/ee,1,ue/ee,Ae),Ce.spot2=new go.Spot(Ae.x,Ae.y),vt(Ae),Ce}),go.Shape.setFigureParameter("IBeamArrow",0,new bn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(0,re/ee);var Te=ie(.7,1,1,.5,0,le/ee,1,le/ee,rt());return ue.spot2=new go.Spot(Te.x,Te.y),vt(Te),ue}),go.Shape.setFigureParameter("IBeamArrow2",0,new bn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new bn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=40);var re=fe?fe.parameter2:NaN;isNaN(re)&&(re=100);var le=(ee-ae)/2,ue=le+ae,pe=(ee-re)/2,Te=pe+re;(ae>ee||re>ee)&&(re>ae?(ae=ae*ee/re,le=(ee-ae)/2,ue=le+ae,pe=0,Te=ee):(le=0,ue=ee,pe=0,Te=ee));var Ce=new go.Geometry,Fe=new go.PathFigure(z,.5*ee,!0);Ce.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,ue)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,Te)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,pe)),Fe.add(new go.PathSegment(go.PathSegment.Line,.2*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),Fe.add(new go.PathSegment(go.PathSegment.Line,.7*z,pe).close()),Ce.spot1=new go.Spot(0,le/ee);var Ae=ie(.7,Te/ee,1,.5,0,ue/ee,1,ue/ee,rt());return Ce.spot2=new go.Spot(Ae.x,Ae.y),vt(Ae),Ce}),go.Shape.setFigureParameter("Pointer",0,new bn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.1);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),re.spot1=new go.Spot(ae,.35);var ue=ie(.2,.65,1,.65,0,1,1,.5,rt());return re.spot2=new go.Spot(ue.x,ue.y),vt(ue),re}),go.Shape.setFigureParameter("RoundedPointer",0,new bn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.3);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,ae*z,.75*ee,ae*z,.25*ee).close()),re.spot1=new go.Spot(ae,.35);var ue=ie(0,.65,1,.65,0,1,1,.5,rt());return re.spot2=new go.Spot(ue.x,ue.y),vt(ue),re}),go.Shape.setFigureParameter("SplitEndArrow",0,new bn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.4);var re=(.5-ae/2)*ee,le=(.5+ae/2)*ee,ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,.3);var Te=ie(.7,1,1,.5,0,le/ee,1,le/ee,rt());return ue.spot2=new go.Spot(Te.x,Te.y),vt(Te),ue}),go.Shape.setFigureParameter("SplitEndArrow2",0,new bn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=50);var re=(ee-ae)/2,le=re+ae;ae>ee&&(re=0,le=ee);var ue=new go.Geometry,pe=new go.PathFigure(z,.5*ee,!0);ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,le)),pe.add(new go.PathSegment(go.PathSegment.Line,0,le)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*z,0).close()),ue.spot1=new go.Spot(.2,re/ee);var Te=ie(.7,1,1,.5,0,le/ee,1,le/ee,rt());return ue.spot2=new go.Spot(Te.x,Te.y),vt(Te),ue}),go.Shape.setFigureParameter("SquareArrow",0,new bn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.7);var re=new go.Geometry,le=new go.PathFigure(z,.5*ee,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=go.Spot.TopLeft,re.spot2=new go.Spot(ae,1),re}),go.Shape.defineFigureGenerator("Cone1",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(0,.9*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee).close()),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.97),ae}),go.Shape.defineFigureGenerator("Cone2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.9*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,ee,.85/.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.9*ee).close());var le=new go.PathFigure(0,.9*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.9*ee,(1-.85/.9)*z,.8*ee,.85/.9*z,.8*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.82),ae}),go.Shape.defineFigureGenerator("Cube1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.5,.85),ae}),go.Shape.defineFigureGenerator("Cube2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.3*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0).close());var le=new go.PathFigure(0,.3*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,.7*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(.7,1),ae}),go.Shape.defineFigureGenerator("Cylinder1",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(0,ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,1*z,ae,(.5+le)*z,0,1*z,ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,1*ee,1*z,ee-ce*ae,(.5+le)*z,1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,1*ee,0,ee-ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae));var pe=new go.PathFigure(z,ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,2*ae,1*z,2*ae-ce*ae,(.5+le)*z,2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,ae,(.5-le)*z,2*ae,0,2*ae-ce*ae)),re.spot1=new go.Spot(0,0,0,2*ae),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder2",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,ee/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(0,ee-ae,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,ce*ae,(.5-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,(.5+le)*z,0,z,ce*ae)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-ae)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,ee-ce*ae,(.5+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-ae,(.5-le)*z,ee,0,ee-ce*ae));var pe=new go.PathFigure(0,ee-ae,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee-2*ae,0,ee-ae-ce*ae,(.5-le)*z,ee-2*ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ee-ae,(.5+le)*z,ee-2*ae,z,ee-ae-ce*ae)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,0,-2*ae),re}),go.Shape.defineFigureGenerator("Cylinder3",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*ae,0));var pe=new go.PathFigure(ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,2*ae,.5*ee,ae+ce*ae,0,2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,ee,2*ae,(.5+le)*ee,ae+ce*ae,ee)),re.spot1=new go.Spot(0,0,2*ae,0),re.spot2=new go.Spot(1,1),re}),go.Shape.defineFigureGenerator("Cylinder4",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=5),ae=Math.min(ae,z/3);var re=new go.Geometry,le=ce*.5,ue=new go.PathFigure(z-ae,0,!0);re.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,z-ce*ae,0,z,(.5-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z,(.5+le)*ee,z-ce*ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,ae,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,ce*ae,ee,0,(.5+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,(.5-le)*ee,ce*ae,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z-ae,0));var pe=new go.PathFigure(z-ae,0,!1);return re.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-2*ae,.5*ee,z-ae-ce*ae,0,z-2*ae,(.5-le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,ee,z-2*ae,(.5+le)*ee,z-ae-ce*ae,ee)),re.spot1=new go.Spot(0,0),re.spot2=new go.Spot(1,1,-2*ae,0),re}),go.Shape.defineFigureGenerator("Prism1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.25*z,.25*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.408,.172),ae.spot2=new go.Spot(.833,.662),ae}),go.Shape.defineFigureGenerator("Prism2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.25*z,.5*ee)),ae.spot1=new go.Spot(.25,.5),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("Pyramid1",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Pyramid2",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee).close());var le=new go.PathFigure(.5*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),ae.spot1=new go.Spot(.25,.367),ae.spot2=new go.Spot(.75,.875),ae}),go.Shape.defineFigureGenerator("Actor",function(fe,z,ee){var ae=new go.Geometry,re=.2,le=.1,ue=ce*re,pe=ce*le,Te=.5,Ce=.1,Fe=new go.PathFigure(Te*z,(Ce+le)*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-re)*z,Ce*ee,(Te-ue)*z,(Ce+le)*ee,(Te-re)*z,(Ce+pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-le)*ee,(Te-re)*z,(Ce-pe)*ee,(Te-ue)*z,(Ce-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+re)*z,Ce*ee,(Te+ue)*z,(Ce-le)*ee,(Te+re)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+le)*ee,(Te+re)*z,(Ce+pe)*ee,(Te+ue)*z,(Ce+le)*ee));var Ae=.05,je=ce*Ae;Te=.05,Ce=.25;var Ne=new go.PathFigure(.5*z,.2*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.95*z,.2*ee)),Te=.95,Ce=.25,Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te+Ae)*z,Ce*ee,(Te+je)*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.85*z,.35*ee)),Ae=.025,je=ce*Ae,Te=.825,Ce=.35,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee,(Te+je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ae)*z,Ce*ee,(Te-je)*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee)),Ae=.05,je=ce*Ae,Te=.5,Ce=.7,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee,(Te+je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ae)*z,Ce*ee,(Te-je)*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.45*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.2*z,.35*ee)),Ae=.025,je=ce*Ae,Te=.175,Ce=.35,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te+Ae)*z,(Ce-je)*ee,(Te+je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-Ae)*z,Ce*ee,(Te-je)*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),Ae=.05,je=ce*Ae,Te=.05,Ce=.25,Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-Ae)*ee,(Te-Ae)*z,(Ce-je)*ee,(Te-je)*z,(Ce-Ae)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),ae.spot1=new go.Spot(.2,.2),ae.spot2=new go.Spot(.8,.65),ae}),go.Shape.setFigureParameter("Card",0,new bn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;isNaN(ae)&&(ae=.2);var re=new go.Geometry,le=new go.PathFigure(z,0,!0);return re.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ae*ee)),le.add(new go.PathSegment(go.PathSegment.Line,ae*z,0).close()),re.spot1=new go.Spot(0,ae),re.spot2=go.Spot.BottomRight,re}),go.Shape.defineFigureGenerator("Collate",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee));var le=new go.PathFigure(.5*z,.5*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,.25),ae}),go.Shape.defineFigureGenerator("CreateRequest",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("Database",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.4*ee,z,(.3+le)*ee,(.5+re)*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*ee,(.5-re)*z,.4*ee,0,(.3+le)*ee)),ae.spot1=new go.Spot(0,.4),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("DataStorage",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.9*ee,.25*z,.1*ee).close()),ae.spot1=new go.Spot(.226,0),ae.spot2=new go.Spot(.81,1),ae}),go.Shape.defineFigureGenerator("DiskStorage",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.1,ue=new go.PathFigure(z,.1*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.9+le)*ee,(.5+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,(.5-re)*z,ee,0,(.9+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,(.1-le)*ee,(.5-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,(.5+re)*z,0,z,(.1-le)*ee));var pe=new go.PathFigure(z,.1*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,z,(.1+le)*ee,(.5+re)*z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*ee,(.5-re)*z,.2*ee,0,(.1+le)*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,.2*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.3*ee,z,(.2+le)*ee,(.5+re)*z,.3*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*ee,(.5-re)*z,.3*ee,0,(.2+le)*ee)),ae.spot1=new go.Spot(0,.3),ae.spot2=new go.Spot(1,.9),ae}),go.Shape.defineFigureGenerator("Display",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,ee,z,0,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close()),ae.spot1=new go.Spot(.25,0),ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("DividedEvent",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)?re=.2:re<.15&&(re=.15);var le=ce*.2,ue=new go.PathFigure(0,.2*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,0,(.2-le)*ee,(.2-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.2*ee,(.8+le)*z,0,z,(.2-le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,ee,z,(.8+le)*ee,(.8+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*ee,(.2-le)*z,ee,0,(.8+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee));var pe=new go.PathFigure(0,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("DividedProcess",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;(isNaN(re)||re<.1)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(0,re*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,re*ee)),ae}),go.Shape.defineFigureGenerator("Document",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("ExternalOrganization",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;(isNaN(re)||re<.2)&&(re=.2);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Move,0,(1-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,(1-re)*ee)),ae}),go.Shape.defineFigureGenerator("ExternalProcess",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(.1*z,.4*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.9*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.6*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.4*z,.9*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.9*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("File",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(.75*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Interrupt",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee));var le=new go.PathFigure(z,.5*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,ee));var ue=new go.PathFigure(z,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("InternalStorage",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.1);var ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,le*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee)),ae}),go.Shape.defineFigureGenerator("Junction",function(fe,z,ee){var ae=new go.Geometry,re=1/Math.SQRT2,le=(1-1/Math.SQRT2)/2,ue=ce*.5,pe=.5,Te=new go.PathFigure(z,pe*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,ee,z,(pe+ue)*ee,(pe+ue)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,pe*ee,(pe-ue)*z,ee,0,(pe+ue)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,0,0,(pe-ue)*ee,(pe-ue)*z,0)),Te.add(new go.PathSegment(go.PathSegment.Bezier,z,pe*ee,(pe+ue)*z,0,z,(pe-ue)*ee));var Ce=new go.PathFigure((le+re)*z,(le+re)*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,le*z,le*ee)),Ce.add(new go.PathSegment(go.PathSegment.Move,le*z,(le+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,(le+re)*z,le*ee)),ae}),go.Shape.defineFigureGenerator("LinedDocument",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close());var le=new go.PathFigure(.1*z,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.75*ee)),ae.spot1=new go.Spot(.1,0),ae.spot2=new go.Spot(1,.6),ae}),go.Shape.defineFigureGenerator("LoopLimit",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MagneticTape",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(.5*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(le+.1)*z,.9*ee,z,(le+re)*ee,(le+re)*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),ae.spot1=new go.Spot(.15,.15),ae.spot2=new go.Spot(.85,.8),ae}),go.Shape.defineFigureGenerator("ManualInput",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("MessageFromUser",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.7);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,re*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("MicroformProcessing",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,re*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("MicroformRecording",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("MultiDocument",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.44*ee,.96*z,.47*ee,.93*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.54*ee,.86*z,.57*ee,.83*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.4*z,.4*ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0).close());var le=new go.PathFigure(.1*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.44*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.8,.77),ae}),go.Shape.defineFigureGenerator("MultiProcess",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.1*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close());var le=new go.PathFigure(.2*z,.1*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.1*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.1*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.9*ee)),ae.spot1=new go.Spot(0,.2),ae.spot2=new go.Spot(.8,1),ae}),go.Shape.defineFigureGenerator("OfflineStorage",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=1-re,ue=new go.PathFigure(0,0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close());var pe=new go.PathFigure(.5*re*z,re*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*re)*z,re*ee)),ae}),go.Shape.defineFigureGenerator("OffPageConnector",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.75,1),ae}),go.Shape.defineFigureGenerator("Or",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ae}),go.Shape.defineFigureGenerator("PaperTape",function(fe,z,ee){var ae=new go.Geometry;ee=ee/.8;var re=new go.PathFigure(0,.7*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.3*ee,.5*z,.6*ee,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*ee,.5*z,.4*ee,.5*z,ee).close()),ae.spot1=new go.Spot(0,.49),ae.spot2=new go.Spot(1,.75),ae}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN,le=fe?fe.parameter2:NaN;isNaN(re)&&(re=.1),isNaN(le)&&(le=.3);var ue=new go.PathFigure(0,0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Procedure",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure((1-re)*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,re*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae}),go.Shape.defineFigureGenerator("Process",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ae.spot2=go.Spot.BottomRight,ae}),go.Shape.defineFigureGenerator("Sort",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee).close());var le=new go.PathFigure(0,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),ae.spot1=new go.Spot(.25,.25),ae.spot2=new go.Spot(.75,.5),ae}),go.Shape.defineFigureGenerator("Start",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.25);var le=new go.PathFigure(re*z,0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee));var ue=new go.PathFigure(re*z,0,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,re*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Move,(1-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-re)*z,ee)),ae.spot1=new go.Spot(re,0),ae.spot2=new go.Spot(1-re,1),ae}),go.Shape.defineFigureGenerator("Terminator",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.25*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*z,.5*ee,.25*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*z,.5*ee,.25*z,.5*ee)),ae.spot1=new go.Spot(.23,0),ae.spot2=new go.Spot(.77,1),ae}),go.Shape.defineFigureGenerator("TransmittalTape",function(fe,z,ee){var ae=new go.Geometry,re=fe?fe.parameter1:NaN;isNaN(re)&&(re=.1);var le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,(1-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,(1-re)*ee).close()),ae.spot1=go.Spot.TopLeft,ae}),go.Shape.defineFigureGenerator("AndGate",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=new go.PathFigure(0,0,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(.5+re)*z,0,z,(.5-re)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,(.5+re)*ee,(.5+re)*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=go.Spot.TopLeft,ae.spot2=new go.Spot(.55,1),ae}),go.Shape.defineFigureGenerator("Buffer",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Clock",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=new go.PathFigure(z,le*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,ee,z,(le+re)*ee,(le+re)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,le*ee,(le-re)*z,ee,0,(le+re)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,le*z,0,0,(le-re)*ee,(le-re)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,le*ee,(le+re)*z,0,z,(le-re)*ee));var pe=new go.PathFigure(z,le*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,le*ee));var Te=new go.PathFigure(.8*z,.75*ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,.8*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.6*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.6*z,.75*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.4*z,.75*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.4*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,.2*z,.75*ee)),ae}),go.Shape.defineFigureGenerator("Ground",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.3*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),ae}),go.Shape.defineFigureGenerator("Inverter",function(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.9,pe=.5,Te=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Te.add(new go.PathSegment(go.PathSegment.Line,0,0)),Te.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee));var Ce=new go.PathFigure((ue+le)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.4,.75),ae}),go.Shape.defineFigureGenerator("NandGate",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=ce*.4,ue=ce*.1,pe=.1,Te=.9,Ce=.5,Fe=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,.8*z,(.5+le)*ee,(.4+re)*z,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),Fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Fe.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(.4+re)*z,0,.8*z,(.5-le)*ee));var Ae=new go.PathFigure((Te+pe)*z,Ce*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+pe)*ee,(Te+pe)*z,(Ce+ue)*ee,(Te+ue)*z,(Ce+pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z,Ce*ee,(Te-ue)*z,(Ce+pe)*ee,(Te-pe)*z,(Ce+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-pe)*ee,(Te-pe)*z,(Ce-ue)*ee,(Te-ue)*z,(Ce-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z,Ce*ee,(Te+ue)*z,(Ce-pe)*ee,(Te+pe)*z,(Ce-ue)*ee)),ae.spot1=new go.Spot(0,.05),ae.spot2=new go.Spot(.55,.95),ae}),go.Shape.defineFigureGenerator("NorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,Te=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=ce*.1,ue=.9,pe=.5;var Ce=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.6,.75),ae}),go.Shape.defineFigureGenerator("OrGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=0,pe=.5,Te=new go.PathFigure(0,0,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le+le)*z,(pe-re)*ee,.8*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.8*z,(pe+le)*ee,(ue+le+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*z,.75*ee,.25*z,.25*ee).close()),ae.spot1=new go.Spot(.2,.25),ae.spot2=new go.Spot(.75,.75),ae}),go.Shape.defineFigureGenerator("XnorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,Te=new go.PathFigure(.1*z,0,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.8*z,.5*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.7*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.5*ee,(ue+le)*z,(pe-re)*ee,.7*z,(pe-le)*ee)),re=.1,le=ce*.1,ue=.9,pe=.5;var Fe=new go.PathFigure((ue-re)*z,pe*ee,!0);return ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.65,.75),ae}),go.Shape.defineFigureGenerator("XorGate",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*re,ue=.2,pe=.5,Te=new go.PathFigure(.1*z,0,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,ee,.35*z,.25*ee,.35*z,.75*ee));var Ce=new go.PathFigure(.2*z,0,!0);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,(ue+le)*z,(pe-re)*ee,.9*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,ee,.9*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*z,0,.45*z,.75*ee,.45*z,.25*ee).close()),ae.spot1=new go.Spot(.4,.25),ae.spot2=new go.Spot(.8,.75),ae}),go.Shape.defineFigureGenerator("Capacitor",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Resistor",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Inductor",function(fe,z,ee){var ae=new go.Geometry,re=ce*.1,le=.1,ue=.1,pe=.5,Te=new go.PathFigure((ue-re*.5)*z,ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.3,Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.5,Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.7,Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,0,(ue-re)*z,ee,(ue-le)*z,0)),ue=.9,Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re*.5)*z,ee,(ue+le)*z,0,(ue+re)*z,ee)),ae}),go.Shape.defineFigureGenerator("ACvoltageSource",function(fe,z,ee){var ae=new go.Geometry,re=ce*.5,le=.5,ue=.5,pe=.5,Te=new go.PathFigure((ue-le)*z,pe*ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe-le)*ee,(ue+le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Move,(ue-le+.1)*z,pe*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le-.1)*z,pe*ee,ue*z,(pe-le)*ee,ue*z,(pe+le)*ee)),ae}),go.Shape.defineFigureGenerator("DCvoltageSource",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("Diode",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae.spot1=new go.Spot(0,.25),ae.spot2=new go.Spot(.5,.75),ae}),go.Shape.defineFigureGenerator("Wifi",function(fe,z,ee){var ae=new go.Geometry,re=z,le=ee;z=z*.38,ee=ee*.6;var ue=ce*.8,pe=.8,Te=0,Ce=.5,Fe=(re-z)/2,Ae=(le-ee)/2,je=new go.PathFigure(Te*z+Fe,(Ce+pe)*ee+Ae,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z+Fe,Ce*ee+Ae,(Te-ue)*z+Fe,(Ce+pe)*ee+Ae,(Te-pe)*z+Fe,(Ce+ue)*ee+Ae)),je.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe)*z+Fe,(Ce-ue)*ee+Ae,(Te-ue)*z+Fe,(Ce-pe)*ee+Ae)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe+ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce-ue)*ee+Ae)),je.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce+ue)*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae).close()),ue=ce*.4,pe=.4,Te=.2,Ce=.5;var Ne=new go.PathFigure(Te*z+Fe,(Ce+pe)*ee+Ae,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z+Fe,Ce*ee+Ae,(Te-ue)*z+Fe,(Ce+pe)*ee+Ae,(Te-pe)*z+Fe,(Ce+ue)*ee+Ae)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe)*z+Fe,(Ce-ue)*ee+Ae,(Te-ue)*z+Fe,(Ce-pe)*ee+Ae)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe+ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce-ue)*ee+Ae)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te-pe+ue*.5)*z+Fe,(Ce+ue)*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae).close()),ue=ce*.2,pe=.2,Te=.5,Ce=.5;var Be=new go.PathFigure((Te-pe)*z+Fe,Ce*ee+Ae,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te-pe)*z+Fe,(Ce-ue)*ee+Ae,(Te-ue)*z+Fe,(Ce-pe)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z+Fe,Ce*ee+Ae,(Te+ue)*z+Fe,(Ce-pe)*ee+Ae,(Te+pe)*z+Fe,(Ce-ue)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe)*z+Fe,(Ce+ue)*ee+Ae,(Te+ue)*z+Fe,(Ce+pe)*ee+Ae)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(Te-pe)*z+Fe,Ce*ee+Ae,(Te-ue)*z+Fe,(Ce+pe)*ee+Ae,(Te-pe)*z+Fe,(Ce+ue)*ee+Ae)),ue=ce*.4,pe=.4,Te=.8,Ce=.5;var ze=new go.PathFigure(Te*z+Fe,(Ce-pe)*ee+Ae,!0);ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z+Fe,Ce*ee+Ae,(Te+ue)*z+Fe,(Ce-pe)*ee+Ae,(Te+pe)*z+Fe,(Ce-ue)*ee+Ae)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe)*z+Fe,(Ce+ue)*ee+Ae,(Te+ue)*z+Fe,(Ce+pe)*ee+Ae)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe-ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce+ue)*ee+Ae)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce-ue)*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae).close()),ue=ce*.8,pe=.8,Te=1,Ce=.5;var Qe=new go.PathFigure(Te*z+Fe,(Ce-pe)*ee+Ae,!0);return ae.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe)*z+Fe,Ce*ee+Ae,(Te+ue)*z+Fe,(Ce-pe)*ee+Ae,(Te+pe)*z+Fe,(Ce-ue)*ee+Ae)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe)*z+Fe,(Ce+ue)*ee+Ae,(Te+ue)*z+Fe,(Ce+pe)*ee+Ae)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+pe-ue*.5)*z+Fe,Ce*ee+Ae,Te*z+Fe,(Ce+pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce+ue)*ee+Ae)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z+Fe,(Ce-pe)*ee+Ae,(Te+pe-ue*.5)*z+Fe,(Ce-ue)*ee+Ae,Te*z+Fe,(Ce-pe)*ee+Ae).close()),ae}),go.Shape.defineFigureGenerator("Email",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,0,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Move,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Ethernet",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.35*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,0).close());var le=new go.PathFigure(.1*z,ee,!0,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var ue=new go.PathFigure(.6*z,ee,!0,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*z,ee).close());var pe=new go.PathFigure(0,.5*ee,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.5*z,.4*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.75*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.75*z,.6*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,.25*z,.5*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.25*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Power",function(fe,z,ee){var ae=new go.Geometry,re=ce*.4,le=.4,ue=.5,pe=.5,Te=rt(),Ce=rt(),Fe=rt(),Ae=rt();_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Te,Te,Ce,Fe,Ae);var je=Ge(Ce.x,Ce.y),Ne=new go.PathFigure(Ce.x*z,Ce.y*ee,!0);ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,(ue-re)*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee)),_e(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,Ae,Ce,Te,Te),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Fe.x*z,Fe.y*ee,Ae.x*z,Ae.y*ee)),re=ce*.3,le=.3,_e(ue-le,pe,ue-le,pe-re,ue-re,pe-le,ue,pe-le,.5,Fe,Ae,Ce,Te,Te),Ne.add(new go.PathSegment(go.PathSegment.Line,Ce.x*z,Ce.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue-le)*z,pe*ee,Ae.x*z,Ae.y*ee,Fe.x*z,Fe.y*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+le)*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ue+le)*z,pe*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),_e(ue,pe-le,ue+re,pe-le,ue+le,pe-re,ue+le,pe,.5,Te,Te,Ce,Fe,Ae),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Ce.x*z,Ce.y*ee,Ae.x*z,Ae.y*ee,Fe.x*z,Fe.y*ee).close());var Ne=new go.PathFigure(.45*z,0,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Line,.45*z,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,.5*ee)),Ne.add(new go.PathSegment(go.PathSegment.Line,.55*z,0).close()),vt(Te),vt(Ce),vt(Fe),vt(Ae),vt(je),ae.spot1=new go.Spot(.25,.45),ae.spot2=new go.Spot(.75,.8),ae}),go.Shape.defineFigureGenerator("Fallout",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee/2,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,180,360,z/2,ee/2,z/2,ee/2));function le(ue,pe,Te){ue.add(new go.PathSegment(go.PathSegment.Move,(.3+pe)*z,(.8+Te)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.5+pe)*z,(.5+Te)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.1+pe)*z,(.5+Te)*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,(.3+pe)*z,(.8+Te)*ee).close())}return le(re,0,0),le(re,.4,0),le(re,.2,-.3),ae}),go.Shape.defineFigureGenerator("IrritationHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close()),ae.spot1=new go.Spot(.3,.3),ae.spot2=new go.Spot(.7,.7),ae}),go.Shape.defineFigureGenerator("ElectricalHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.37*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.11*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.04*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.49*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.37*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.63*z,.86*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.77*z,.91*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.34*z,.78*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.44*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.56*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee).close()),ae}),go.Shape.defineFigureGenerator("FireHazard",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.29*z,0,-.25*z,.63*ee,.45*z,.44*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.51*z,.42*ee,.48*z,.17*ee,.54*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.59*z,.18*ee,.59*z,.29*ee,.58*z,.28*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.75*z,.6*ee,.8*z,.34*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.88*z,.31*ee,.87*z,.48*ee,.88*z,.43*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,1.17*z,.76*ee,.82*z,.8*ee).close()),ae.spot1=new go.Spot(.07,.445),ae.spot2=new go.Spot(.884,.958),ae}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=0,ue=0,pe=re*ce,Te=.4*Math.SQRT2/2+.5,Ce=.5-.5*Math.SQRT2/2,Fe=1,Ae=.5,je=.5,Ne=0,Be=new go.PathFigure(Te*z,(1-Ce)*ee,!1);return ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,Ae*ee,Fe*z,.7*ee,Fe*z,Ae*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(je+le)*z,(Ne+le)*ee,(.5+re+le)*z,(.5-pe+le)*ee,(.5+pe+le)*z,(.5-re+le)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-re+le)*z,(.5+ue)*ee,(.5-pe+le)*z,(.5-re+ue)*ee,(.5-re+le)*z,(.5-pe+ue)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+le)*z,.9*ee,(.5-re+le)*z,(.5+pe+ue)*ee,(.5-pe+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+le)*z,.8*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+le)*z,.9*ee)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+le)*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.2*z,.35*ee,.3*z,.35*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.7*z,.65*ee,.8*z,.65*ee)),ae}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee).close());var re=new go.PathFigure(0,.2*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.7*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,0,.6*z,.5*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,ee,.4*z,.5*ee,z,.5*ee).close());var le=new go.PathFigure(.45*z,.73*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.7*z,.73*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.38*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.63*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.31*z,.27*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.56*z,.27*ee)),ae}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(.335*z,(1-.555)*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,z,.68*ee,(1-.12)*z,.46*ee,(1-.02)*z,.54*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.335*z,(1-.555)*ee,.02*z,.54*ee,.12*z,.46*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.365*z,(1-.595)*ee));var ue=.5-.285,pe=.5,Te=ue,Ce=Math.PI/4,Fe=4*(1-Math.cos(Ce))/(3*Math.sin(Ce)),Ae=Fe*.5,je=ue,Ne=ue,Be=Fe*je,ze=Fe*Ne;le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-je)*z,Te*ee,(pe-(Be+je)/2)*z,(Te+(Ne+ze)/2)*ee,(pe-je)*z,(Te+ze)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,pe*z,(Te-Ne)*ee,(pe-je)*z,(Te-ze)*ee,(pe-Be)*z,(Te-Ne)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+je)*z,Te*ee,(pe+Be)*z,(Te-Ne)*ee,(pe+je)*z,(Te-ze)*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*z,(1-.595)*ee,(pe+je)*z,(Te+ze)*ee,(pe+(Be+je)/2)*z,(Te+(Ne+ze)/2)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*z,(1-.595)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.555)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*z,(1-.405)*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.335*z,(1-.405)*ee));var Qe=new go.PathFigure(.2*z,ee,!1);ae.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.2*z,.8*ee));var $e=new go.PathFigure(.8*z,ee,!1);return ae.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,ee).close());var le=new go.PathFigure(.2*z,.2*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventError",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re);var le=new go.PathFigure(z,ee,!1);ae.add(le);var ue=new go.PathFigure(.1*z,ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Caution",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.05*z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.8*ee,0,ee,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.55*z,.1*ee,.5*z,0,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.95*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,ee,z,ee,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,ee));var le=.05;return re.add(new go.PathSegment(go.PathSegment.Move,(.5-le)*z,.875*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*z,.875*ee,le*z,le*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.325*ee,.575*z,.725*ee,.625*z,.375*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.75*ee,.375*z,.375*ee,.425*z,.725*ee)),ae}),go.Shape.defineFigureGenerator("Recycle",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.45*z,.95*ee,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.185*z,.85*ee,.17*z,.95*ee,.15*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.235*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*z,.625*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.275*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.05*z,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.1875*z,.95*ee,0,.675*ee,0,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.45*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.775*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.22*z,.775*ee));var le=new go.PathFigure(.475*z,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.225*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.275*z,.175*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.325*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,.05*ee,.35*z,0,.375*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.575*z,.375*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.525*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.75*z,.475*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.315*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.32*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.05*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,0,.65*z,.05*ee,.625*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.38*z,.0105*ee));var ue=new go.PathFigure(.675*z,.575*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.875*z,.525*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.85*z,.95*ee,z,.8*ee,z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.95*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.85*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.725*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.65*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.7*z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,z,.775*ee)),ue.add(new go.PathSegment(go.PathSegment.Move,.675*z,.575*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.775*z,.775*ee)),ae}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=new go.PathFigure(z,re*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,ee,z,(re+le)*ee,(re+le)*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,re*ee,(re-le)*z,ee,0,(re+le)*ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re*z,0,0,(re-le)*ee,(re-le)*z,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z,re*ee,(re+le)*z,0,z,(re-le)*ee));var pe=new go.PathFigure(re*z,0,!1);return ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.15*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,re*z,.85*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,0,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.15*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.85*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.58*z,.1*ee)),pe.add(new go.PathSegment(go.PathSegment.Move,re*z,re*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.78*z,.54*ee)),ae}),go.Shape.defineFigureGenerator("Package",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.15*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close());var le=new go.PathFigure(0,.15*ee,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*z,.15*ee).close()),ae.spot1=new go.Spot(0,.1),ae.spot2=new go.Spot(1,1),ae}),go.Shape.defineFigureGenerator("Class",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(0,.5*ee,!1);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee).close()),ae}),go.Shape.defineFigureGenerator("Component",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close());var le=new go.PathFigure(0,.2*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.2*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*ee).close());var ue=new go.PathFigure(0,.6*ee,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.6*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.45*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee).close()),ae}),go.Shape.defineFigureGenerator("Boat Shipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.15*z,.6*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.6*ee));var le=new go.PathFigure(.15*z,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.85*z,.6*ee)),ae}),go.Shape.defineFigureGenerator("Customer/Supplier",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.66*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.33*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Workcell",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.65*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.35*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Supermarket",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.33*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Move,z,.66*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae}),go.Shape.defineFigureGenerator("TruckShipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(z,.8*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.6*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee).close());var ue=.1,pe=ce*.1,Te=.2,Ce=.9,Fe=new go.PathFigure((Te-ue)*z,Ce*ee,!0);ae.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-ue)*ee,(Te-ue)*z,(Ce-pe)*ee,(Te-pe)*z,(Ce-ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te+ue)*z,Ce*ee,(Te+pe)*z,(Ce-ue)*ee,(Te+ue)*z,(Ce-pe)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+ue)*ee,(Te+ue)*z,(Ce+pe)*ee,(Te+pe)*z,(Ce+ue)*ee)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Te-ue)*z,Ce*ee,(Te-pe)*z,(Ce+ue)*ee,(Te-ue)*z,(Ce+pe)*ee).close()),ue=.1,pe=ce*.1,Te=.8,Ce=.9;var Ae=new go.PathFigure((Te-ue)*z,Ce*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce-ue)*ee,(Te-ue)*z,(Ce-pe)*ee,(Te-pe)*z,(Ce-ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te+ue)*z,Ce*ee,(Te+pe)*z,(Ce-ue)*ee,(Te+ue)*z,(Ce-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Te*z,(Ce+ue)*ee,(Te+ue)*z,(Ce+pe)*ee,(Te+pe)*z,(Ce+ue)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Te-ue)*z,Ce*ee,(Te-pe)*z,(Ce+ue)*ee,(Te-ue)*z,(Ce+pe)*ee).close()),ae}),go.Shape.defineFigureGenerator("KanbanPost",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.2*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,0)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,ee)),ae}),go.Shape.defineFigureGenerator("Forklift",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0));var le=new go.PathFigure(0,.5*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var ue=new go.PathFigure(.5*z,.8*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.1*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.8*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*z,.8*ee));var pe=new go.PathFigure(.5*z,.7*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z,.7*ee));var Te=.1,Ce=ce*.1,Fe=.1,Ae=.9,je=new go.PathFigure((Fe-Te)*z,Ae*ee,!0);ae.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae-Te)*ee,(Fe-Te)*z,(Ae-Ce)*ee,(Fe-Ce)*z,(Ae-Te)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Te)*z,Ae*ee,(Fe+Ce)*z,(Ae-Te)*ee,(Fe+Te)*z,(Ae-Ce)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae+Te)*ee,(Fe+Te)*z,(Ae+Ce)*ee,(Fe+Ce)*z,(Ae+Te)*ee)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Te)*z,Ae*ee,(Fe-Ce)*z,(Ae+Te)*ee,(Fe-Te)*z,(Ae+Ce)*ee)),Te=.1,Ce=ce*.1,Fe=.4,Ae=.9;var Ne=new go.PathFigure((Fe-Te)*z,Ae*ee,!0);return ae.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae-Te)*ee,(Fe-Te)*z,(Ae-Ce)*ee,(Fe-Ce)*z,(Ae-Te)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Fe+Te)*z,Ae*ee,(Fe+Ce)*z,(Ae-Te)*ee,(Fe+Te)*z,(Ae-Ce)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Fe*z,(Ae+Te)*ee,(Fe+Te)*z,(Ae+Ce)*ee,(Fe+Ce)*z,(Ae+Te)*ee)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Fe-Te)*z,Ae*ee,(Fe-Ce)*z,(Ae+Te)*ee,(Fe-Te)*z,(Ae+Ce)*ee)),ae}),go.Shape.defineFigureGenerator("RailShipment",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.1*z,.4*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.45*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.4*ee).close());var le=new go.PathFigure(.45*z,.7*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.55*z,.7*ee));var ue=new go.PathFigure(.55*z,.4*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.9*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.9*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.55*z,.4*ee).close());var Fe=.05,Ae=ce*.05,je=.175,Ne=.95,pe=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee));var Fe=.05,Ae=ce*.05,je=.375,Ne=.95,Te=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee));var Fe=.05,Ae=ce*.05,je=.625,Ne=.95,Ce=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee));var Fe=.05,Ae=ce*.05,je=.825,Ne=.95,Be=new go.PathFigure((je-Fe)*z,Ne*ee,!0);ae.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne-Fe)*ee,(je-Fe)*z,(Ne-Ae)*ee,(je-Ae)*z,(Ne-Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(je+Fe)*z,Ne*ee,(je+Ae)*z,(Ne-Fe)*ee,(je+Fe)*z,(Ne-Ae)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,je*z,(Ne+Fe)*ee,(je+Fe)*z,(Ne+Ae)*ee,(je+Ae)*z,(Ne+Fe)*ee)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(je-Fe)*z,Ne*ee,(je-Ae)*z,(Ne+Fe)*ee,(je-Fe)*z,(Ne+Ae)*ee).close());var ze=new go.PathFigure(0,ee,!1);return ae.add(ze),ze.add(new go.PathSegment(go.PathSegment.Line,z,ee).close()),ae}),go.Shape.defineFigureGenerator("Warehouse",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var le=new go.PathFigure(0,.2*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee).close());var ue=new go.PathFigure(.15*z,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,.5*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*z,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.15*z,ee).close());var pe=.05,Te=ce*.05,Ce=.35,Fe=.775,Ae=new go.PathFigure((Ce-pe)*z,Fe*ee,!0);return ae.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe-pe)*ee,(Ce-pe)*z,(Fe-Te)*ee,(Ce-Te)*z,(Fe-pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ce+pe)*z,Fe*ee,(Ce+Te)*z,(Fe-pe)*ee,(Ce+pe)*z,(Fe-Te)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,Ce*z,(Fe+pe)*ee,(Ce+pe)*z,(Fe+Te)*ee,(Ce+Te)*z,(Fe+pe)*ee)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(Ce-pe)*z,Fe*ee,(Ce-Te)*z,(Fe+pe)*ee,(Ce-pe)*z,(Fe+Te)*ee).close()),ae}),go.Shape.defineFigureGenerator("ControlCenter",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee).close()),ae}),go.Shape.defineFigureGenerator("Bluetooth",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.75*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.25*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Bookmark",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.2*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.8*z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Globe",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.5*ee,.75*z,0,z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,z,.75*ee,.75*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.25*z,ee,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,0,.25*ee,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,ee,.15*z,.25*ee,.15*z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.85*z,.75*ee,.85*z,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.15*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.15*ee,.35*z,.3*ee,.65*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.1675*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8325*z,.85*ee,.35*z,.7*ee,.65*z,.7*ee)),ae}),go.Shape.defineFigureGenerator("Wave",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.25*ee,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.25*ee,.1*z,0,.2*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.25*ee,.425*z,.5*ee,.575*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.25*ee,.8*z,0,.9*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.25*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.75*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.75*ee,.1*z,.5*ee,.2*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.7*z,.75*ee,.425*z,ee,.575*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.75*ee,.8*z,.5*ee,.9*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Operator",function(fe,z,ee){var ae=new go.Geometry,re=.3,le=ce*.3,ue=.5,pe=.7,Te=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Ce=new go.PathFigure(0,.7*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,z,.7*ee,0,0,z,0)),ae}),go.Shape.defineFigureGenerator("TripleFanBlades",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.5*z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.65*z,.3*ee,.65*z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.35*z,.5*ee,.35*z,.3*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,ee,.3*z,.6*ee,.1*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.2*z,ee,.35*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,ee,.7*z,.6*ee,.9*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.65*ee,.8*z,ee,.65*z,.95*ee)),ae}),go.Shape.defineFigureGenerator("CentrifugalPump",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z,0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,0,.075*ee,0,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*z,ee,0,ee,.4*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.4*ee,.8*z,ee,.85*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,0)),ae}),go.Shape.defineFigureGenerator("Battery",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.4*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.1*ee));var le=new go.PathFigure(0,.6*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,0,.4*ee)),le.add(new go.PathSegment(go.PathSegment.Line,z,.4*ee)),ae}),go.Shape.defineFigureGenerator("Delete",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,Te=new go.PathFigure((ue-re)*z,pe*ee,!0);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee));var Ce=new go.PathFigure(.15*z,.5*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*z,.5*ee)),ae}),go.Shape.defineFigureGenerator("Flag",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.1*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Move,0,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.1*ee,.15*z,0,.35*z,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,z,.1*ee,.65*z,.2*ee,.85*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.5*ee,.85*z,.6*ee,.65*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*ee,.35*z,.4*ee,.15*z,.4*ee).close()),ae}),go.Shape.defineFigureGenerator("Help",function(fe,z,ee){var ae=new go.Geometry,re=.5,le=ce*.5,ue=.5,pe=.5,Te=new go.PathFigure((ue-re)*z,pe*ee,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),re=.05,le=ce*.05,ue=.5,pe=.8;var Ce=new go.PathFigure((ue-re)*z,pe*ee,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe-re)*ee,(ue-re)*z,(pe-le)*ee,(ue-le)*z,(pe-re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue+re)*z,pe*ee,(ue+le)*z,(pe-re)*ee,(ue+re)*z,(pe-le)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue*z,(pe+re)*ee,(ue+re)*z,(pe+le)*ee,(ue+le)*z,(pe+re)*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ue-re)*z,pe*ee,(ue-le)*z,(pe+re)*ee,(ue-re)*z,(pe+le)*ee).close()),Ce.add(new go.PathSegment(go.PathSegment.Move,.5*z,.7*ee)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*z,.5*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*z,.2*ee,.75*z,.475*ee,.75*z,.225*ee)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.35*ee,.4*z,.2*ee,.3*z,.25*ee)),ae}),go.Shape.defineFigureGenerator("Location",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.5*z,ee,!0).add(new go.PathSegment(go.PathSegment.Line,.75*z,.5*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5*z,0,.975*z,.025*ee,.5*z,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*z,.5*ee,.5*z,0,.025*z,.025*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*z,.3*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Lock",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.3*ee)),ae}),go.Shape.defineFigureGenerator("Unlocked",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,.5*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*ee));var le=new go.PathFigure(.2*z,.5*ee,!1);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Move,.2*z,.5*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.2*z,.3*ee)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*z,.3*ee,.25*z,0,.75*z,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*z,.35*ee)),ae}),go.Shape.defineFigureGenerator("Gear",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(.9375*z,.56246875*ee,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.80621875*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.763*z,.3316875*ee,.79840625*z,.39915625*ee,.7834375*z,.3635*ee)).add(new go.PathSegment(go.PathSegment.Line,.8566875*z,.23796875*ee)).add(new go.PathSegment(go.PathSegment.Line,.76825*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.67596875*z,.24184375*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*z,.19378125*ee,.64228125*z,.2188125*ee,.603875*z,.2021875*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.0625*ee)).add(new go.PathSegment(go.PathSegment.Line,.4375*z,.19378125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*z,.239375*ee,.39759375*z,.20190625*ee,.36053125*z,.2176875*ee)).add(new go.PathSegment(go.PathSegment.Line,.2379375*z,.14959375*ee)).add(new go.PathSegment(go.PathSegment.Line,.14953125*z,.2379375*ee)).add(new go.PathSegment(go.PathSegment.Line,.23934375*z,.3278125*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*z,.4375*ee,.21765625*z,.36059375*ee,.201875*z,.397625*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.4375*ee)).add(new go.PathSegment(go.PathSegment.Line,.0625*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Line,.1938125*z,.5625*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*z,.67596875*ee,.20221875*z,.603875*ee,.21884375*z,.64228125*ee)).add(new go.PathSegment(go.PathSegment.Line,.1495625*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.238*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.3316875*z,.76296875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*z,.80621875*ee,.36353125*z,.78340625*ee,.3991875*z,.79840625*ee)).add(new go.PathSegment(go.PathSegment.Line,.43753125*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.9375*ee)).add(new go.PathSegment(go.PathSegment.Line,.5625*z,.80621875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*z,.760625*ee,.602375*z,.79809375*ee,.63946875*z,.78234375*ee)).add(new go.PathSegment(go.PathSegment.Line,.76828125*z,.8566875*ee)).add(new go.PathSegment(go.PathSegment.Line,.85671875*z,.76825*ee)).add(new go.PathSegment(go.PathSegment.Line,.76065625*z,.67221875*ee)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*z,.56246875*ee,.78234375*z,.63940625*ee,.798125*z,.602375*ee)).add(new go.PathSegment(go.PathSegment.Line,.9375*z,.56246875*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.5*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*z,.5*ee,.1*z,.1*ee).close()))}),go.Shape.defineFigureGenerator("Hand",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.5*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.1*z,.3*ee,0,.375*ee,.05*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.45*z,.075*ee,.3*z,.225*ee,.4*z,.175*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.525*z,.075*ee,.46*z,.05*ee,.525*z,.05*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*z,.4*ee,.525*z,.275*ee,.475*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.55*ee,z,.4*ee,z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.425*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.6*z,.7*ee,.675*z,.55*ee,.675*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.575*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.575*z,.85*ee,.65*z,.7*ee,.65*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.525*z,.85*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.535*z,ee,.61*z,.85*ee,.61*z,ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*ee,.435*z,ee,0,ee).close()),ae}),go.Shape.defineFigureGenerator("Map",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,.2*ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.25*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.25*z,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Move,.5*z,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee)),re.add(new go.PathSegment(go.PathSegment.Move,.75*z,0)),re.add(new go.PathSegment(go.PathSegment.Line,.75*z,.8*ee)),ae}),go.Shape.defineFigureGenerator("Eject",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z,ee)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.7)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.7).close());var le=new go.PathFigure(0,ee*.6,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,.6*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.5*z,0).close()),ae}),go.Shape.defineFigureGenerator("Pencil",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.2*ee).close()))}),go.Shape.defineFigureGenerator("Building",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.046*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.3)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*z,ee*.85)),re.add(new go.PathSegment(go.PathSegment.Line,z,ee*.85).close());var le=new go.PathFigure(.126*z,.85*ee,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.126*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.45*ee)),le.add(new go.PathSegment(go.PathSegment.Line,.322*z,.85*ee).close());var ue=new go.PathFigure(.402*z,.85*ee,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.402*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.45*ee)),ue.add(new go.PathSegment(go.PathSegment.Line,.598*z,.85*ee).close());var pe=new go.PathFigure(.678*z,.85*ee,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.678*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.45*ee)),pe.add(new go.PathSegment(go.PathSegment.Line,.874*z,.85*ee).close());var Te=new go.PathFigure(.5*z,.1*ee,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*z,.3*ee)),Te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*z,.3*ee).close()),ae}),go.Shape.defineFigureGenerator("Staircase",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.8)),re.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.6)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.4)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.2)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.15)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*.95).close()),ae}),go.Shape.defineFigureGenerator("5Bars",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,ee*1,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.184,ee*(1-.184)).close());var le=new go.PathFigure(z*.204,ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.204,ee*(1-.184))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*(1-.184*2))),le.add(new go.PathSegment(go.PathSegment.Line,z*.388,ee*1).close());var ue=new go.PathFigure(z*.408,ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.408,ee*(1-.184*2))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*(1-.184*3))),ue.add(new go.PathSegment(go.PathSegment.Line,z*.592,ee*1).close());var pe=new go.PathFigure(z*.612,ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.612,ee*(1-.184*3))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*(1-.184*4))),pe.add(new go.PathSegment(go.PathSegment.Line,z*.796,ee*1).close());var Te=new go.PathFigure(z*.816,ee,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*.816,ee*(1-.184*4))),Te.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-.184*5))),Te.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1).close()),ae}),go.Shape.defineFigureGenerator("PC",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,0).close());var le=new go.PathFigure(z*.055,.07*ee,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.07)),le.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.1).close());var ue=new go.PathFigure(z*.055,.13*ee,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.13)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.16)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.16).close());var pe=new go.PathFigure(z*.055,.18*ee,!0);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.18)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.245,ee*.21)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.055,ee*.21).close());var Te=new go.PathFigure(z*1,0,!0);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*.4,0)),Te.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.65)),Te.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.65).close()),ae}),go.Shape.defineFigureGenerator("Plane",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(.55*z,ee,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.7*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.1*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.35*z,.525*ee,0,.4*ee,.225*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.4*z,.475*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.15*z,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.325*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.85*z,.1*ee)),re.add(new go.PathSegment(go.PathSegment.Bezier,.9*z,.2*ee,.975*z,0,z,.08*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.7*z,.45*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.6*z,.95*ee)),re.add(new go.PathSegment(go.PathSegment.Line,.55*z,ee).close()),ae}),go.Shape.defineFigureGenerator("Key",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*1,ee*.5,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.4*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.2*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.35*ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.15,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,.8*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.65*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,.55*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,.6*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,.575*ee)),re.add(new go.PathSegment(go.PathSegment.Line,z*.9,.6*ee).close()),re.add(new go.PathSegment(go.PathSegment.Move,.17*z,.425*ee)),re.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*z,.5*ee,.075*z,.075*ee).close()),ae}),go.Shape.defineFigureGenerator("FilmTape",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(0,0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Arc,270,180,z*0,z*.3,z*.055)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.08,ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*1),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*2),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*3),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*4),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*5),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*6),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*7),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*8),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*9),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*10),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*11),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*12),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*13),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*14),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*.95)),re.add(new go.PathSegment(go.PathSegment.Line,z*(.08+.056*15),ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var le=new go.PathFigure(0,0,!1);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*0)),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,z*1,z*.3,z*.055)),le.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1));var ue=new go.PathFigure(z*.11,ee*.1,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*0),ee*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.11,ee*.8).close());var pe=new go.PathFigure(z*(.11+.24133333*1+.028*1),ee*.1,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.1)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*1),ee*.8)),pe.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*1+.028*1),ee*.8).close());var Te=new go.PathFigure(z*(.11+.24133333*2+.028*2),ee*.1,!1);return ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.1)),Te.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*3+.028*2),ee*.8)),Te.add(new go.PathSegment(go.PathSegment.Line,z*(.11+.24133333*2+.028*2),ee*.8).close()),ae}),go.Shape.defineFigureGenerator("FloppyDisk",function(fe,z,ee){var ae=new go.Geometry,re=8,le=re*ce,ue=new go.PathFigure(re,0,!1);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.86,0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.14)),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,0,re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,re,0,0,le,le,0).close());var pe=new go.PathFigure(z*.83,0,!1);ae.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.3)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*0).close());var Te=new go.PathFigure(z*.83,ee*1,!1);ae.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,z*.83,ee*.5)),Te.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*.5)),Te.add(new go.PathSegment(go.PathSegment.Line,z*.17,ee*1).close());var Ce=new go.PathFigure(z*.78,ee*.05,!1);return ae.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.05)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.25)),Ce.add(new go.PathSegment(go.PathSegment.Line,z*.78,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("SpeechBubble",function(fe,z,ee){var ae=fe?fe.parameter1:NaN;(isNaN(ae)||ae<0)&&(ae=15),ae=Math.min(ae,z/3),ae=Math.min(ae,ee/3);var re=ae*ce,le=ee*.8,ue=new go.Geometry,pe=new go.PathFigure(ae,0,!0);return ue.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,z-ae,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z,ae,z-re,0,z,re)),pe.add(new go.PathSegment(go.PathSegment.Line,z,le-ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z-ae,le,z,le-re,z-re,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,le)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee)),pe.add(new go.PathSegment(go.PathSegment.Line,z*.55,le)),pe.add(new go.PathSegment(go.PathSegment.Line,ae,le)),pe.add(new go.PathSegment(go.PathSegment.Bezier,0,le-ae,re,le,0,le-re)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ae)),pe.add(new go.PathSegment(go.PathSegment.Bezier,ae,0,0,re,re,0).close()),re>1?(ue.spot1=new go.Spot(0,0,re,re),ue.spot2=new go.Spot(1,.8,-re,-re)):(ue.spot1=go.Spot.TopLeft,ue.spot2=new go.Spot(1,.8)),ue}),go.Shape.defineFigureGenerator("Repeat",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.45,!0);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.2,ee*.45).close());var le=new go.PathFigure(z*1,ee*.55,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.55)),le.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.1)),le.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),le.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*.55).close()),ae}),go.Shape.defineFigureGenerator("Windows",function(fe,z,ee){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,z,0)).add(new go.PathSegment(go.PathSegment.Line,z,ee)).add(new go.PathSegment(go.PathSegment.Line,0,ee).close()).add(new go.PathSegment(go.PathSegment.Move,.4*z,.4*ee)).add(new go.PathSegment(go.PathSegment.Line,.4*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.8*ee)).add(new go.PathSegment(go.PathSegment.Line,.9*z,.4*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.2*z,.1*ee)).add(new go.PathSegment(go.PathSegment.Line,.2*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.7*z,.1*ee).close()).add(new go.PathSegment(go.PathSegment.Move,.1*z,.6*ee)).add(new go.PathSegment(go.PathSegment.Line,.1*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.9*ee)).add(new go.PathSegment(go.PathSegment.Line,.5*z,.6*ee).close()))}),go.Shape.defineFigureGenerator("Terminal",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*.1,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.9)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.9).close());var le=new go.PathFigure(z*.1,ee*.2,!0);ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.25)),le.add(new go.PathSegment(go.PathSegment.Line,z*.22,ee*.285)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.1,ee*.37)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.32)),le.add(new go.PathSegment(go.PathSegment.Line,z*.275,ee*.25).close());var ue=new go.PathFigure(z*.28,ee*.37,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.37)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.41)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.28,ee*.41).close()),ae}),go.Shape.defineFigureGenerator("Beaker",function(fe,z,ee){var ae=new go.Geometry,re=15,le=re*ce,ue=new go.PathFigure(z*.62,ee*.475,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z,ee-re)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z-re,ee,z,ee-le,z-le,ee)),ue.add(new go.PathSegment(go.PathSegment.Line,re,ee)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,ee-re,le,ee,0,ee-le)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.475)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.38,ee*.03)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*0)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.62,ee*.03).close()),le>1?(ae.spot1=new go.Spot(0,0,le,le),ae.spot2=new go.Spot(1,1,-le,-le)):(ae.spot1=go.Spot.TopLeft,ae.spot2=go.Spot.BottomRight),ae}),go.Shape.defineFigureGenerator("Download",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.4,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.66)),ue.add(new go.PathSegment(go.PathSegment.Line,z*(1-.26),ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.44)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*0).close()),ae}),go.Shape.defineFigureGenerator("Bin",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;return re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close()),ae}),go.Shape.defineFigureGenerator("Upload",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*0,ee*1,!0);ae.add(re);var le=.1/.3;re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.8,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.66,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.755,ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*.93,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.64,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.61,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.39,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.36,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*.07,ee*(1-le))),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.755),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*.055)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.66),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*(1-.8),ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*(1-le)).close());var ue=new go.PathFigure(z*.5,ee*0,!0);return ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,z*.26,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.4,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.63)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.6,ee*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,z*.74,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("EmptyDrink",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close()),ae}),go.Shape.defineFigureGenerator("Drink",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.15,ee*0,!1);ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.85,ee*0)),re.add(new go.PathSegment(go.PathSegment.Line,z*.7,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.3,ee*1).close());var le=new go.PathFigure(z*.235,ee*.28,!0);return ae.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*.765,ee*.28)),le.add(new go.PathSegment(go.PathSegment.Line,z*.655,ee*.97)),le.add(new go.PathSegment(go.PathSegment.Line,z*.345,ee*.97).close()),ae}),go.Shape.defineFigureGenerator("4Arrows",function(fe,z,ee){var ae=new go.Geometry,re=new go.PathFigure(z*.5,ee*0,!0);return ae.add(re),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*1,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*.75,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.55,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.65,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.5,ee*1)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.75)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.55)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.65)),re.add(new go.PathSegment(go.PathSegment.Line,z*0,ee*.5)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.35)),re.add(new go.PathSegment(go.PathSegment.Line,z*.25,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.45)),re.add(new go.PathSegment(go.PathSegment.Line,z*.45,ee*.25)),re.add(new go.PathSegment(go.PathSegment.Line,z*.35,ee*.25).close()),ae}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var bn={},an="5.0",Ge={},rt=null,vt=!1,ie=!1,_e=null,Ie=!1,ge=null,ce=null,Pe=0;Pe4?parseFloat(gt):5};bn.setHTML5Codebase=function(gt,dt){ce=gt,St(gt,dt)},bn.setJavaCodebase=bn.setJavaCodebaseVersion=bn.isCompiledInstalled=bn.setPreCompiledScriptPath=bn.setPreCompiledResourcePath=function(){},bn.setHTML5CodebaseVersion=function(gt,dt){var mt=parseFloat(gt);if(mt!==NaN&&mt<5){console.log("The GeoGebra HTML5 codebase version "+mt+" is deprecated. Using version latest instead.");return}ge=gt,it(gt,dt)},bn.getHTML5CodebaseVersion=function(){return fe},bn.getParameters=function(){return Ge},bn.setFontsCSSURL=function(gt){ue=gt},bn.setGiacJSURL=function(gt){},bn.setJNLPFile=function(gt){ye=gt},bn.setJNLPBaseDir=function(gt){},bn.inject=function(){function gt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var dt="auto",mt=Ge.id,kt,Et=!1,Ut=0;Ut=5)return!0;var gt=bn.getAppletObject();return gt&&typeof gt.recalculateEnvironments=="function"?(gt.recalculateEnvironments(),!0):!1},bn.startAnimation=function(){var gt=bn.getAppletObject();return gt&&typeof gt.startAnimation=="function"?(gt.startAnimation(),!0):!1},bn.stopAnimation=function(){var gt=bn.getAppletObject();return gt&&typeof gt.stopAnimation=="function"?(gt.stopAnimation(),!0):!1},bn.getAppletObject=function(){var gt=Ge.id!==void 0?Ge.id:"ggbApplet";return window[gt]},bn.resize=function(){};var Be=function(gt,dt,mt){var kt=document.createElement("param");kt.setAttribute("name",dt),kt.setAttribute("value",mt),gt.appendChild(kt)},ze=function(gt){return gt&>!=="false"},Qe=function(gt,dt,mt){Te(fe)<=4.2&&(mt=!0);var kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==fe||ggbHTML5LoadedCodebaseIsWebSimple&&!ee)&&(kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var Ut=dt.width,wt=dt.height;if(dt.disableAutoScale=dt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():dt.disableAutoScale,dt.width!==void 0)if(Te(fe)<=4.4)ze(dt.showToolBar)&&(dt.height-=7),ze(dt.showAlgebraInput)&&(dt.height-=37),dt.width<605&&ze(dt.showToolBar)&&(dt.width=605,Ut=605);else{var pt=100;(ze(dt.showToolBar)||ze(dt.showMenuBar))&&(dt.hasOwnProperty("customToolBar")&&(dt.customToolbar=dt.customToolBar),pt=ze(dt.showMenuBar)?245:155),Ut=5?(dt.appletOnLoad=function(ft){var Mt=gt.querySelector(".ggb_preview");Mt&&Mt.parentNode.removeChild(Mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(we),window.GGBT_wsf_view&&$(window).trigger("resize"),Ze(ft)},be||we.appendChild(Ke)):Et.appendChild(Ke),we.appendChild(Et),be||gt.appendChild(we),setTimeout(function(){bn.resize()},1)}else{var Xe=document.createElement("div");Xe.className="applet_scaler",Xe.style.position="relative",Xe.style.display="block",Xe.appendChild(Et),gt.appendChild(Xe),dt.appletOnLoad=function(ft){bn.resize(),Ze(ft)}}function Oe(ft,Mt){Mt&&typeof Mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ft,Mt.appletOnLoad):renderGGBElement(ft),bt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Mt)}function Ue(ft,Mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ft,params:Mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Jt){Oe(Jt.article,Jt.params)}),html5AppletsToProcess=null)},Te(fe)<5&&(ft.className+=" geogebraweb")):Oe(ft,Mt)}if(kt){scriptLoadStarted=!0;for(var He=0;He0?(tt.remove(),we.attr("id","fullscreencontent").show(),jQuery(Ze).append(we),window.dispatchEvent(new Event("resize"))):Qe(tt,dt,!1),window.GGBT_wsf_view.launchFullScreen(Ze)}else xe=kt,Qe(gt,dt,!1);if(!window.GGBT_wsf_view)for(wt=0;wtgt/4*3&&(tt=gt/4*3),Ze=tt/5.8,pt.setAttribute("src",re),pt.setAttribute("width",tt),pt.setAttribute("height",Ze);var we=(gt-tt)/2,be=(dt-Ze)/2;pt.style.left=we+"px",pt.style.top=be+"px",Et.appendChild(pt)}}return Et.appendChild(wt),Et},Ct=function(gt){return gt=gt.toLowerCase(),gt==="html5"||gt==="screenshot"?gt:"html5"},et=["web","webSimple","web3d","tablet","tablet3d","phone"],it=function(gt,dt){if(fe=gt,dt){St(fe,!0);return}var mt=!vt;if(mt){var kt=Te(fe);!isNaN(kt)&&kt<4.4&&(mt=!1)}var Et,Ut;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var wt=fe.indexOf("//");wt>0?Ut=fe:wt===0?Ut=Et+fe:Ut="https://www.geogebra.org/apps/5.2.814.0/";for(var pt in et)if(fe.slice(et[pt].length*-1)===et[pt]||fe.slice((et[pt].length+1)*-1)===et[pt]+"/"){St(Ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&mt&&!rt.is3D&&!rt.AV&&!rt.SV&&!rt.CV&&!rt.EV2&&!rt.CP&&!rt.PC&&!rt.DA&&!rt.FI&&!rt.PV&&!ze(Ge.showToolBar)&&!ze(Ge.showMenuBar)&&!ze(Ge.showAlgebraInput)&&!ze(Ge.enableRightClick)&&(!Ge.appName||Ge.appName=="classic")?Ut+="webSimple/":Ut+="web3d/",St(Ut,!1)},St=function(gt,dt){if(gt.requirejs){Me=gt;return}gt.slice(-1)!=="/"&&(gt+="/"),Me=gt,dt===null&&(dt=gt.indexOf("http")===-1),ve=dt,z="web.nocache.js",ee=!1;var mt=Me.split("/");mt.length>1&&(!dt&&mt[mt.length-2]==="webSimple"?(z="webSimple.nocache.js",ee=!0):et.indexOf(mt[mt.length-2])>=0&&(z=mt[mt.length-2]+".nocache.js")),mt=gt.split("/"),fe=mt[mt.length-3],fe.substr(0,4)==="test"?fe=fe.substr(4,1)+"."+fe.substr(5,1):(fe.substr(0,3)==="war"||fe.substr(0,4)==="beta")&&(fe="5.0");var kt=parseFloat(fe);kt!==NaN&&kt<5&>.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+kt+" is deprecated. Using version latest instead."),it("5.0",dt))},bt=function(gt,dt){window.console&&window.console.log&&(!dt||typeof dt.showLogging=="undefined"||dt.showLogging&&dt.showLogging!=="false")&&console.log(gt)};Ge.material_id!==void 0?Ae(Pt):Pt();function Pt(){var gt=an;ge!==null?gt=ge:parseFloat(gt)<5&&(gt="5.0"),it(gt,!1),ce!==null&&St(ce,ve),Ie=!0}return bn},GGBAppletUtils=function(){"use strict";function bn(){return window.GGBT_wsf_edit!==void 0}function an(Ie,ge){ge!=1?(Ie.style.transformOrigin="0% 0% 0px",Ie.style.webkitTransformOrigin="0% 0% 0px",Ie.style.transform="scale("+ge+","+ge+")",Ie.style.webkitTransform="scale("+ge+","+ge+")",Ie.style.maxWidth="initial",Ie.querySelector(".ggb_preview")!==null&&(Ie.querySelector(".ggb_preview").style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ie.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ie.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ie.style.transform="none",Ie.style.webkitTransform="none")}function Ge(Ie,ge,ce,Pe,Ee,ye){var Me=null;if(ye!=null&&ye!="")for(var ve=Ie.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+ye+" ")>-1){Me=ve;break}else ve=ve.parentNode;var xe=0,fe=0,z=0,ee=0,ae=0,re=0,le=0;if(Me)xe=Me.offsetWidth,fe=Math.max(Pe?Me.offsetWidth:0,Me.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xe=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),z=xe):(xe=window.innerWidth,fe=window.innerHeight,z=window.innerWidth),Ie){var ue=Ie.getBoundingClientRect();ue.left>0&&ue.left<=xe&&(Ee===void 0||!Ee)&&(document.dir==="rtl"?(ae=xe-ue.width-ue.left,re=z<=480?10:30):(re=ue.left,ae=z<=480?10:30),ee=re+ae)}if(Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=Ie.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ee=40,le=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee=0,le=40)}}return Ie&&((ce===void 0||!ce)&&ge>0&&ge+ee1&&(ye=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ye=!0),!(Ie.hasOwnProperty("disableAutoScale")&&Ie.disableAutoScale))Ee=rt(Ie,ge,ye,ce,Ie.scaleContainerClass);else return Pe;return ye&&(!Ie.hasOwnProperty("scale")||Pe===1)?Ee:Math.min(Pe,Ee)}function ie(Ie){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),Pe=Ie.getBoundingClientRect(),Ee=(ge-Pe.width)/2,ye=(ce-Pe.height)/2;ye<0&&(ye=0),Ie.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?Ie.style.left="40px":Ie.style.left=Ee+"px",Ie.style.top=ye+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ye<40?Ie.style.top="40px":Ie.style.top=ye+"px",Ie.style.left=Ee+"px")}function _e(Ie,ge){var ce=Ie.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ie)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var Pe=vt(ge,Ie);bn()&&ce.setAttribute("data-param-scale",Pe);for(var Ee=null,ye=0;ye=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(bn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(bn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(bn){var an=c[bn];return an==null?null:an},r=d,webModule.__errFn=e}function B(){function bn(Ie){var ge=Ie.lastIndexOf(rb);ge==-1&&(ge=Ie.length);var ce=Ie.indexOf(sb);ce==-1&&(ce=Ie.length);var Pe=Ie.lastIndexOf(tb,Math.min(ce,ge));return Pe>=O?Ie.substring(O,Pe+P):W}function an(Ie){if(!Ie.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=Ie+vb,Ie=bn(ge.src)}return Ie}function Ge(){var Ie=__gwt_getMetaProperty(wb);return Ie!=null?Ie:W}function rt(){for(var Ie=o.getElementsByTagName(_),ge=O;geO?Ie[Ie.length-P].href:W}function ie(){var Ie=o.location;return Ie.href==Ie.protocol+zb+Ie.host+Ie.pathname+Ie.search+Ie.hash}var _e=Ge();return _e==W&&(_e=rt()),_e==W&&(_e=vt()),_e==W&&ie()&&(_e=bn(o.location.href)),_e=an(_e),_e}function C(bn){return bn.match(/^\//)||bn.match(/^[a-zA-Z]+:\/\//)?bn:webModule.__moduleBase+bn}function D(){var bn=[],an=O,Ge=[],rt=[];function vt(Ie){var ge=rt[Ie](),ce=Ge[Ie];if(ge in ce)return ge;var Pe=[];for(var Ee in ce)Pe[ce[Ee]]=Ee;throw r&&r(Ie,Pe,ge),null}if(__gwt_isKnownPropertyValue=function(Ie,ge){return ge in Ge[Ie]},webModule.__getPropMap=function(){var Ie={};for(var ge in Ge)Ge.hasOwnProperty(ge)&&(Ie[ge]=vt(ge));return Ie},webModule.__computePropValue=vt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ie;try{ie=Cb;var _e=ie.indexOf(Db);_e!=-1&&(an=parseInt(ie.substring(_e+P),$),ie=ie.substring(O,_e))}catch(Ie){}return webModule.__softPermutationId=an,C(ie+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(bn,an,Ge){"use strict";Ge.d(an,{Ax:function(){return _e},Ds:function(){return Ie},KI:function(){return ce},SI:function(){return ie},f1:function(){return vt}});var rt=Ge(3294);function vt(Pe){let Ee=!0;if(Pe.length>0){for(let ye=0;yenew Promise((z,ee)=>{var ae=ue=>{try{le(fe.next(ue))}catch(pe){ee(pe)}},re=ue=>{try{le(fe.throw(ue))}catch(pe){ee(pe)}},le=ue=>ue.done?z(ue.value):Promise.resolve(ue.value).then(ae,re);le((fe=fe.apply(ve,xe)).next())}),Me=({data:ve,className:xe,fullWidth:fe,style:z={},onClose:ee,onOk:ae,showFullTools:re,noAssociationId:le})=>{const ue=(0,rt.useRef)(null),pe=(0,rt.useRef)(null),Te=(0,rt.useRef)(null),Ce=(0,rt.useRef)(null),[Fe,Ae]=(0,rt.useState)(!1),[je,Ne]=(0,rt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,rt.useEffect)(()=>(Te.current||(Te.current=document.createElement("style"),document.head.appendChild(Te.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),Te.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&Be()):(document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)),()=>{document.body.removeAttribute("data-custom"),Te.current&&(document.head.removeChild(Te.current),Te.current=null)}),[ve==null?void 0:ve.visible]);const Be=()=>Ee(void 0,null,function*(){Ae(!0),Ne("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ye=yield(0,Pe.ZJ)(ve==null?void 0:ve.src);ue.current.src="",ue.current.src=Ye,ue.current.onload=function(){$e()},Ae(!1),Ne("")}),ze=Ye=>Ee(void 0,null,function*(){Ae(!0),Ne("\u6B63\u5728\u4FDD\u5B58\u4E2D");const at=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:Ye.dataUrl}});at!=null&&at.id&&!le?(yield(0,ce.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:at==null?void 0:at.id,settings:JSON.stringify(Ye.state)}})).status===0&&ae():at!=null&&at.id&&ae(at),Ae(!1),Ne("")}),Qe=()=>{const Ye=document.querySelector('a[href="https://markerjs.com/"]');Ye&&Ye.parentNode&&(Ye.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(ut=>{const ht=document.querySelector(ut.name);ht&&ht.setAttribute("title",ut.title)})},$e=()=>{pe.current=new ge.hP(ue.current),pe.current.targetRoot=Ce.current,pe.current.addEventListener("render",ze),pe.current.addEventListener("beforeclose",ee),re&&(pe.current.availableMarkerTypes=pe.current.ALL_MARKER_TYPES,pe.current.uiStyleSettings.redoButtonVisible=!0,pe.current.uiStyleSettings.notesButtonVisible=!0,pe.current.uiStyleSettings.zoomButtonVisible=!0,pe.current.uiStyleSettings.zoomOutButtonVisible=!0,pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pe.current.uiStyleSettings,pe.current.show(),ve!=null&&ve.snapshotData&&pe.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Qe()},300)};return rt.createElement(rt.Fragment,null,(ve==null?void 0:ve.visible)&&rt.createElement(Ie.Z,{spinning:Fe,tip:je,style:{position:"absolute",width:"100vw"}},rt.createElement("div",{ref:Ce,className:_e()(vt.imageDimensions,xe,fe?vt.fullWidth:""),style:z},rt.createElement("img",{className:vt.img,ref:ue}))))}},41588:function(bn,an,Ge){"use strict";var rt=Ge(59301),vt=Ge(95237),ie=Ge(43604),_e=Ge(99313),Ie=Ge(3113),ge=Ge(85149),ce=Ge(88010),Pe=Ge(48136),Ee=Ge(59301);const ye=(0,rt.forwardRef)(({callback:Me,showSaveButton:ve,value:xe=""},fe)=>{const z=(0,rt.useRef)(),ee=[{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 "}]}]}],ae=[{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}`}]}]}],re=pe=>{z.current.setValue(z.current.getValue()+" "+pe.value+" ")},le=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ee.createElement(vt.Z,{className:ce.Z.lists,gutter:[10,10]},ee.map((pe,Te)=>Ee.createElement(ie.Z,{flex:"110px",className:ce.Z.item},Ee.createElement("div",null,Ee.createElement(ge.Z,{value:`$$${pe.value}$$`}),pe.name),Ee.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Fe)=>Ee.createElement("div",{key:Fe},Ee.createElement("h1",null,Ce.name),Ee.createElement(vt.Z,{gutter:[10,10]},Ce.data.map((Ae,je)=>Ee.createElement(ie.Z,{key:je,onClick:()=>re(Ae),className:ce.Z.diamond},Ee.createElement(ge.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(vt.Z,{className:ce.Z.lists,gutter:[10,10]},ae.map((pe,Te)=>Ee.createElement(ie.Z,{flex:"110px",className:ce.Z.item},Ee.createElement("div",null,Ee.createElement(ge.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),Ee.createElement("div",{className:ce.Z.children},pe.children.map((Ce,Fe)=>Ee.createElement("div",{key:Fe},Ce.name&&Ee.createElement("h1",null,Ce.name),Ee.createElement(vt.Z,{gutter:[10,10]},Ce.data.map((Ae,je)=>Ee.createElement(ie.Z,{key:je,onClick:()=>re(Ae),className:ce.Z.diamond},Ee.createElement(ge.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],ue=()=>{var pe=document.createElement("div");pe.innerHTML=z.current.getValue();var Te=pe.innerText;return Me&&Me(Te),Te};return(0,rt.useImperativeHandle)(fe,()=>({getData:ue})),Ee.createElement("div",{className:ce.Z.mathWrap},Ee.createElement(_e.default,{defaultActiveKey:"1",items:le}),Ee.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:z,style:{width:800,marginTop:30,fontSize:18}},xe||""),ve&&Ee.createElement("div",{className:ce.Z.button},Ee.createElement(Ie.ZP,{size:"large",onClick:ue,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});an.Z=ye},8797:function(bn,an,Ge){"use strict";var rt=Ge(59301),vt=Ge(93314),ie=Ge(3113),_e=Object.defineProperty,Ie=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ye=(fe,z,ee)=>z in fe?_e(fe,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):fe[z]=ee,Me=(fe,z)=>{for(var ee in z||(z={}))Pe.call(z,ee)&&ye(fe,ee,z[ee]);if(ce)for(var ee of ce(z))Ee.call(z,ee)&&ye(fe,ee,z[ee]);return fe},ve=(fe,z)=>Ie(fe,ge(z));const xe=({img:fe,buttonProps:z={},styles:ee={},customText:ae,ButtonText:re,ButtonClick:le,Buttonclass:ue,ButtonTwo:pe,imgStyles:Te,loading:Ce=!1})=>rt.createElement("section",{className:"tc animated fadeIn",style:Me(Me({},{color:"#999",margin:"100px auto",visibility:Ce?"hidden":"visible"}),ee)},rt.createElement("img",{src:fe||vt,style:ve(Me({},Te),{pointerEvents:"none",userSelect:"none"})}),rt.createElement("p",{className:"mt20 font14"},ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),re&&rt.createElement(ie.ZP,Me({className:ue,onClick:le},z),re),pe&&pe);an.Z=xe},23210:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ue}});var rt=Ge(59301),vt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ie=Ge(3113),_e=Ge(70557),Ie=Ge(23954),ge=Ge(6848),ce=Ge(955),Pe=Ge(94941),Ee=Ge(8797),ye=Ge(3294),Me=Ge(19381),ve=Ge(59301),xe=Object.defineProperty,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(pe,Te,Ce)=>Te in pe?xe(pe,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):pe[Te]=Ce,re=(pe,Te)=>{for(var Ce in Te||(Te={}))z.call(Te,Ce)&&ae(pe,Ce,Te[Ce]);if(fe)for(var Ce of fe(Te))ee.call(Te,Ce)&&ae(pe,Ce,Te[Ce]);return pe},le=(pe,Te,Ce)=>new Promise((Fe,Ae)=>{var je=ze=>{try{Be(Ce.next(ze))}catch(Qe){Ae(Qe)}},Ne=ze=>{try{Be(Ce.throw(ze))}catch(Qe){Ae(Qe)}},Be=ze=>ze.done?Fe(ze.value):Promise.resolve(ze.value).then(je,Ne);Be((Ce=Ce.apply(pe,Te)).next())}),ue=({editOffice:pe="view",data:Te,theme:Ce,type:Fe,filename:Ae,monacoEditor:je,className:Ne,style:Be,close:ze,onClose:Qe,hasMask:$e,disabledDownload:Ye,onImgDimensions:at,showNodata:ut,recordInfo:ht})=>{const[Ct,et]=(0,rt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[it,St]=(0,rt.useState)(""),[bt,Pt]=(0,rt.useState)(),gt=window.ENV==="build"?"/react/build":"",dt=location.host.startsWith("localhost")?ye.Z.PROXY_SERVER:ye.Z.API_SERVER,kt=10*(1024*1024),Et=(0,rt.useRef)();Te!=null&&Te.startsWith("/api")&&Fe!=="txt"&&(Te=ye.Z.API_SERVER+Te);const Ut=Ze=>Ze.substring(Ze.lastIndexOf("/")+1).split(".").pop();Ae&&je&&(je.filename=Ae),(0,rt.useEffect)(()=>{var Ze,we;const be=(we=(Ze=document.cookie)==null?void 0:Ze.replace(/\s/g,""))==null?void 0:we.split(";");be==null||be.map(Ke=>{let Xe=Ke.split("=");Xe[0]==="_educoder_session"&&St(Xe[1])})},[]),(0,rt.useEffect)(()=>{Fe==="office"&&(Te.indexOf("bigfilescdn.")>-1||Te.indexOf("bigfiles1")>-1?Pt({url:Te,fileType:Ut(Te),model:Te.indexOf("model=edit")?"edit":"view"}):wt())},[Fe,Te]);const wt=()=>le(void 0,null,function*(){console.log("data:",Te);let Ze=Te;Te.startsWith("http")||(Ze=location.origin+Ze);let we=new URL(Ze).pathname.split("/").pop();const be=yield(0,Pe.gJ)({attachment_id:we});be.url=dt+be.url,Pt(be)}),pt=()=>{if(Te.startsWith("http")||Te.startsWith("blob:")){tt();return}(0,ce.Sv)(Ae||"educoder",Te,Ae)},tt=()=>{ht&&(0,Me.fc)({id:ht==null?void 0:ht.id,watch_type:1,course_id:ht==null?void 0:ht.course_id}),(0,ce.Nd)(Ae||"educoder",decodeURIComponent(Te))};return ve.createElement("div",{style:re({},Be||{}),className:`${$e&&vt.bgBlack} ${Fe?vt.wrp:"hide"}`},ze&&ve.createElement("div",{className:vt.close,ref:Et},!!at&&ve.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Et.current},ve.createElement("span",{onClick:()=>{Qe(),at()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!Ye&&ve.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Et.current},ve.createElement("span",{onClick:tt},ve.createElement("i",{className:"icon-quxiaozhiding"}))),ve.createElement(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Et.current},ve.createElement("span",{className:"",onClick:Qe},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${vt[Ne]} ${Ne} ${vt.monaco} ${Fe==="txt"?"show":"hide"}`},Fe==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(Ie.ZP,re({},je)))),Fe==="audio"&&ve.createElement("audio",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Te}`,autoPlay:!0}),Fe==="video"&&ve.createElement(ve.Fragment,null,(Te==null?void 0:Te.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${Te}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Te}`,autoPlay:!0})),Fe==="office"&&bt&&ve.createElement("iframe",{src:`${gt}/office.html?key=${bt.key}&url=${btoa(bt.url)}&callbackUrl=${dt+(bt.callbackUrl||"")}&fileType=${bt.fileType}&title=${bt.title||""}&model=${pe}&officeServer=${ye.Z.ONLYOFFICE}&disabledDownload=${!!Ye}`}),Fe==="html"&&ve.createElement("iframe",{src:Te+"&disposition=inline"}),Fe==="pdf"&&ve.createElement("iframe",{src:`${gt}/js/pdfview/index.html?filename=${Ae||"educoder.pdf"}&url=${encodeURIComponent(Te)}&disabledDownload=${!!Ye}`}),Fe==="image"&&ve.createElement("img",{src:`${(Te==null?void 0:Te.indexOf("http://"))>-1||(Te==null?void 0:Te.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Te}`}),(Fe==="other"||Fe==="download")&&ve.createElement(ve.Fragment,null,ut?ve.createElement(Ee.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(ie.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:pt,disabled:Ye},"\u4E0B\u8F7D")}):ve.createElement(ie.ZP,{type:"primary",size:"middle",onClick:pt,disabled:Ye},ve.createElement(_e.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(bn,an,Ge){"use strict";Ge.d(an,{z:function(){return Fe},Z:function(){return Ae}});var rt=Ge(59301),vt=Ge(50304),ie=Ge(24768),_e=Ge(64018),Ie=Ge(40846),ge=Ge(3294),ce=Ge(955),Pe=Ge(15342),Ee=Ge(1012),ye=Ge(23210),Me=Ge(59301),xe=({html:je})=>{const Ne=(0,rt.useRef)(null),Be=(0,rt.useRef)(null),ze=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 36px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,rt.useEffect)(()=>{const Qe=Ne.current.attachShadow({mode:"open"});Be.current=document.createElement("div"),Be.current.className="markdown-body",Be.current.innerHTML=je,Qe.appendChild(Be.current);const $e=document.createElement("style");return $e.textContent=ze,Qe.appendChild($e),()=>{Qe.innerHTML=""}},[]),(0,rt.useEffect)(()=>{Be.current&&(Be.current.innerHTML=je)},[je]),Me.createElement("div",{ref:Ne})},fe=Object.defineProperty,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,re=(je,Ne,Be)=>Ne in je?fe(je,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[Ne]=Be,le=(je,Ne)=>{for(var Be in Ne||(Ne={}))ee.call(Ne,Be)&&re(je,Be,Ne[Be]);if(z)for(var Be of z(Ne))ae.call(Ne,Be)&&re(je,Be,Ne[Be]);return je};const ue="@\u2581\u2581@",pe="@\u2581@",Te=/]*>/g;function Ce(je){let Ne=document.createElement("div");return Ne.innerHTML=je,Ne.childNodes.length===0?"":Ne.childNodes[0].nodeValue}const Fe=(je,Ne)=>{je=je||"";const Be=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ne?je.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Be,(Ye,at,ut,ht,Ct,et,it)=>{const St=at||ht||et,bt=ut||Ct||it||"?";return ge.Z.API_SERVER+"/api/attachments/"+St+bt+"&t="+(0,ce.Jn)(St,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(je=je.replace($e,(Ye,at,ut,ht,Ct,et,it)=>{const St=at||ht||et,bt=ut||Ct||it||"?";return ge.Z.API_SERVER+"/attachments/download/"+St+bt+"&t="+(0,ce.Jn)(St,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replace(Be,(Ye,at,ut,ht,Ct,et,it)=>{const St=at||ht||et,bt=ut||Ct||it||"?";return ge.Z.API_SERVER+"/api/attachments/"+St+bt+"&t="+(0,ce.Jn)(St,Date.now())+(Ye.indexOf(")")>-1?")":"&")}).replace(ze,(Ye,at,ut,ht,Ct)=>{const et=at||ht,it=ut||Ct||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+et+it+et+it+"&t="+(0,ce.Jn)(et,Date.now())}).replace(Qe,(Ye,at,ut,ht,Ct)=>{const et=at||ht,it=ut||Ct||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+et+it+et+it+"&t="+(0,ce.Jn)(et,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,` `),je)};var Ae=({value:je="",className:Ne,showTextOnly:Be,showLines:ze,style:Qe={},stylesPrev:$e={},highlightKeywords:Ye,showProgramFill:at,isProgramFill:ut,disabledFill:ht=!1,programFillValue:Ct,onFillChange:et=bt=>{},onFillBlur:it=()=>{},onFillFocus:St=()=>{}})=>{let bt=String(je);const[Pt,gt]=(0,rt.useState)(""),[dt,mt]=(0,rt.useState)("office"),[kt,Et]=(0,rt.useState)([]),Ut=(0,rt.useRef)("a"+(0,Ee.Z)()),wt={},pt=(ct,yt,ft)=>{const Mt=document.createElement(ct===pe?"input":"textarea");Mt.style.width="100%",Mt.style.height=ct===pe?"40px":"151px",Mt.rows=5,Mt.spellcheck=!1,Mt.name="edu-program-fill",Mt.placeholder="\u8BF7\u8F93\u5165",Mt.dataset.id=yt;const Jt=Object.keys(wt).length;return wt[Jt]=Mt,`${Mt.outerHTML}`};function tt(ct){return ct=ct.replace(/!\[.*?\]\(.*?\)/g,""),ct=ct.replace(/\[.*?\]\(.*?\)/g,""),ct=ct.replace(new RegExp("","gs"),""),ct=ct.replace(//g,""),ct=ct.replace(//g,""),ct=ct.replace(new RegExp(".*?<\\/video>","gs"),""),ct=ct.replace(new RegExp(".*?<\\/audio>","gs"),""),ct=ct.replace(new RegExp(".*?<\\/style>","gs"),""),ct=ct.replace(new RegExp(".*?<\\/script>","gs"),""),ct}const Ze=ct=>ct.replace(/([\s\S]+?)<\/style>/gim,function(yt,ft){let Mt=ft.replace(/(\n|\r)/g,"").split("}"),Jt=[];return Mt.map(Vt=>{Vt!=""&&Jt.push(`.${Ut.current} ${Vt}`)}),``}),we=(0,rt.useMemo)(()=>{try{const Mt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Jt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Vt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Kt=/\(\/attachments\/download\//g;bt=bt.replace(Kt,"("+ge.Z.API_SERVER+"/attachments/download/").replace(Mt,"("+ge.Z.API_SERVER+"/api/attachments/").replace(Jt,'"'+ge.Z.API_SERVER+"/api/attachments/").replace(Vt,'"'+ge.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(at){let Mt=-1;return bt=bt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Jt,Vt,Kt){var Ht;return++Mt,pt(Jt,Mt,(Ht=Ct==null?void 0:Ct[Mt])==null?void 0:Ht.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Ze(bt||"")}
`}let ct=Ze(bt);ct=(0,ie.ZP)(ct);const yt=(0,ie.ez)();bt.match(/\[TOC\]/)&&(ct=ct.replace("

[TOC]

",(0,ie.Qv)()),(0,ie.Iy)()),ct=ct.replace(/(__special_katext_id_\d+__)/g,(Mt,Jt)=>{const{type:Vt,expression:Kt}=yt[Jt];return(0,Pe.renderToString)(Ce(Kt)||"",{displayMode:Vt==="block",throwOnError:!1,output:"html"})}),ct=ct.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ie.AL)();const ft=document.createElement("div");if(ft.innerHTML=ct,Be)return ft.innerText;if(Ye){const Mt=Ye.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Oe(ft,Mt),ft.innerHTML}return setTimeout(()=>Ve(),500),ft.innerHTML},[bt,Ye]);(0,rt.useEffect)(()=>{Ue.current&&Ue.current.querySelectorAll(["input","textarea"]).forEach(yt=>{yt.oninput=be,yt.onblur=Ke,yt.onfocus=Xe})},[kt]),(0,rt.useEffect)(()=>{var ct,yt,ft,Mt,Jt;if(Ct!=null&&Ct.length)try{const Vt=Ue.current.querySelectorAll(".edu-program-fill-score"),Kt=Ue.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ht,tn]of Kt.entries())tn.value=((ct=Ct==null?void 0:Ct[Ht])==null?void 0:ct.value)||"",((yt=Ct==null?void 0:Ct[Ht])==null?void 0:yt.type)==="warning"?tn.className="program-fill-warning":((ft=Ct==null?void 0:Ct[Ht])==null?void 0:ft.type)==="success"?tn.className="program-fill-success":tn.className="";for(const[Ht,tn]of Vt.entries())tn.innerHTML=(Mt=Ct==null?void 0:Ct[Ht])!=null&&Mt.score?`${(Jt=Ct==null?void 0:Ct[Ht])==null?void 0:Jt.score}\u5206`:"";Et(Ct)}catch(Vt){console.log(Vt,"error")}},[Ct]);const be=ct=>{kt[ct.target.dataset.id]=kt[ct.target.dataset.id]||{},kt[ct.target.dataset.id].value=ct.target.value,Et([...kt]),et(kt,ct.target.dataset.id)},Ke=ct=>{kt[ct.target.dataset.id]=kt[ct.target.dataset.id]||{},kt[ct.target.dataset.id].value=ct.target.value,Et([...kt]),it(kt,ct.target.dataset.id)},Xe=ct=>{kt[ct.target.dataset.id]=kt[ct.target.dataset.id]||{},kt[ct.target.dataset.id].value=ct.target.value,Et([...kt]),St(kt,ct.target.dataset.id)};function Oe(ct,yt){return ct.childNodes.forEach(ft=>{var Mt;if(ft.childNodes.length>0)Oe(ft,yt);else if(ft.nodeName!=="IMG")if(ft.innerHTML)ft.innerHTML=(Mt=ft.innerHTML)==null?void 0:Mt.replace(new RegExp(yt,"gi"),'$&');else{const Jt=document.createElement("span");Jt.innerHTML=ft.textContent.replace(new RegExp(yt,"gi"),'$&'),ft.replaceWith(Jt)}})}const Ue=(0,rt.useRef)();ie.jb.WebkitLineClamp=ze,ze&&(Qe=le(le({},Qe),ie.jb));function He(ct){let yt=ct.target;if(yt.tagName.toUpperCase()==="A"){let ft=yt.getAttribute("href");if(ft.indexOf("office")>-1)ct.preventDefault(),gt(ft),mt("office");else if(ft.indexOf("application/pdf")>-1)ct.preventDefault(),gt(ft),mt("pdf");else if(ft.indexOf("text/html")>-1)ct.preventDefault(),gt(ft),mt("html");else if(ft.startsWith("#")){ct.preventDefault();let Mt=document.getElementById(ft.replace("#",""));Mt&&Mt.scrollIntoView(!0)}}}const Ve=()=>{var ct;const yt=(ct=Ue.current)==null?void 0:ct.querySelectorAll("video");yt==null||yt.forEach(ft=>{if(ft.oncontextmenu=()=>!1,ft.src.indexOf(".m3u8")>-1&&!ft.canPlayType("application/vnd.apple.mpegurl")){if(Ie.ZP.isSupported()){var Mt=new Ie.ZP;Mt.loadSource(ft.src),Mt.attachMedia(ft)}}})};(0,rt.useEffect)(()=>{if(Ue.current&&we&&we.match(Te)&&window.PR.prettyPrint(),Ue.current)return Ue.current.addEventListener("click",He),()=>{var ct;(ct=Ue.current)==null||ct.removeEventListener("click",He),(0,ie.AL)(),(0,ie.Iy)()}},[we,Ue.current,He]),(0,rt.useEffect)(()=>{var ct;const yt=ft=>{ft.preventDefault(),ft.clipboardData.setData("text",window.getSelection().toString())};return(ct=Ue.current)==null||ct.addEventListener("copy",yt),()=>{var ft;(ft=Ue.current)==null||ft.removeEventListener("copy",yt)}},[Ue.current]);const Je=ct=>//i.test(ct||"");return rt.createElement(rt.Fragment,null,Be&&rt.createElement("div",{ref:Ue},we),!Be&&!Je(we)&&rt.createElement("div",{ref:Ue,style:le({},Qe),className:`${Ne||""} ${ht?"disabled-fill":""} markdown-body ${Ut.current}`,dangerouslySetInnerHTML:{__html:we}}),!Be&&Je(we)&&rt.createElement(xe,{html:we}),rt.createElement(ye.Z,{close:!0,data:Pt,type:Pt!=null&&Pt.length?dt:"",style:le({},$e),onClose:()=>gt("")}))}},17064:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return _e}});var rt=Ge(59301),vt=Ge(34604),ie=Ge(59301),_e=({defaultX:Ie="40%",leftChild:ge,rightChild:ce,className:Pe,hideResize:Ee=!1})=>{const[ye,Me]=(0,rt.useState)(Ie),ve=(0,rt.useRef)();function xe(){ve.current=!0}(0,rt.useEffect)(()=>{function ee(re){ve.current&&(vt.Z.publish("resize-move-bar",re),Me(re.pageX))}function ae(){ve.current=!1}return window.addEventListener("mousemove",ee),window.addEventListener("mouseup",ae),()=>{window.removeEventListener("mousemove",ee),window.removeEventListener("mouseup",ae)}},[]);const fe=typeof ye=="number"&&ye!==.01?`${ye}px`:Ie,z=`calc(100% - ${Ee?"0px":"4px"} - ${fe})`;return ie.createElement("div",{className:`split-panel-container ${Pe}`},ie.createElement("section",{style:{width:fe,display:ye===.01?"none":""}},ge),ie.createElement("section",{className:"resize-x-bar",onMouseDown:xe},ie.createElement("a",{className:"btn-resize"},ie.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},ie.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),ie.createElement("section",{style:{width:z}},ce))}},81939:function(bn,an,Ge){"use strict";Ge.d(an,{cT:function(){return je},pe:function(){return Ce}});var rt=Ge(59301),vt=Ge(54580),ie=Ge(8591),_e=Ge(99064),Ie=Ge(28209),ge=Ge.n(Ie),ce=Ge(1012),Pe=Ge(89070),Ee=Ge(47257),ye=Ge.n(Ee),Me=Object.defineProperty,ve=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ae=(Be,ze,Qe)=>ze in Be?Me(Be,ze,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Be[ze]=Qe,re=(Be,ze)=>{for(var Qe in ze||(ze={}))z.call(ze,Qe)&&ae(Be,Qe,ze[Qe]);if(fe)for(var Qe of fe(ze))ee.call(ze,Qe)&&ae(Be,Qe,ze[Qe]);return Be},le=(Be,ze)=>ve(Be,xe(ze)),ue=(Be,ze)=>{var Qe={};for(var $e in Be)z.call(Be,$e)&&ze.indexOf($e)<0&&(Qe[$e]=Be[$e]);if(Be!=null&&fe)for(var $e of fe(Be))ze.indexOf($e)<0&&ee.call(Be,$e)&&(Qe[$e]=Be[$e]);return Qe},pe=(Be,ze,Qe)=>new Promise(($e,Ye)=>{var at=Ct=>{try{ht(Qe.next(Ct))}catch(et){Ye(et)}},ut=Ct=>{try{ht(Qe.throw(Ct))}catch(et){Ye(et)}},ht=Ct=>Ct.done?$e(Ct.value):Promise.resolve(Ct.value).then(at,ut);ht((Qe=Qe.apply(Be,ze)).next())});const{Dragger:Te}=vt.default,Ce=Be=>{const ze="bf3c199c2470cb477d907b1e0917c17b",Qe="5183666c72eec9e4";var $e=ge().enc.Utf8.parse(ze);let Ye=ge().enc.Utf8.parse(Qe);var at=ge().AES.decrypt(Be,$e,{iv:Ye,mode:ge().mode.CBC});return at.toString(ge().enc.Utf8)};let Fe;const Ae=Be=>pe(void 0,[Be],function*({identifier:ze,oldFilename:Qe,newFilename:$e}){var Ye,at,ut,ht,Ct,et;const it=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});it.data=JSON.parse(Ce(it.data));const St=new OSS({endpoint:(Ye=it==null?void 0:it.data)==null?void 0:Ye.end_point,region:(at=it==null?void 0:it.data)==null?void 0:at.region,accessKeyId:(ut=it==null?void 0:it.data)==null?void 0:ut.access_key_id,accessKeySecret:(ht=it==null?void 0:it.data)==null?void 0:ht.access_key_secret,bucket:(Ct=it==null?void 0:it.data)==null?void 0:Ct.bucket,stsToken:(et=it==null?void 0:it.data)==null?void 0:et.security_token});return new Promise((bt,Pt)=>{console.log(11111,`${ze}/${Qe}`,`${ze}/${$e}`,it.data),St.copy(`/${ze}/${Qe}`,`/${ze}/${$e}`).then(gt=>{console.log("\u62F7\u8D1D\u6210\u529F",gt)}).catch(gt=>{console.log(gt)})})}),je=(Be,ze,Qe)=>pe(void 0,null,function*(){var $e,Ye,at,ut,ht,Ct;ze.file_name=Be.name;const et=yield(0,_e.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Ce(et.data)),et.data=JSON.parse(Ce(et.data));const it=Be.name.split(".");it.pop();const St=ze.realFileName?it.join(""):(0,ce.Z)(),bt=new(ye())({endpoint:($e=et==null?void 0:et.data)==null?void 0:$e.end_point,region:(Ye=et==null?void 0:et.data)==null?void 0:Ye.region,accessKeyId:(at=et==null?void 0:et.data)==null?void 0:at.access_key_id,accessKeySecret:(ut=et==null?void 0:et.data)==null?void 0:ut.access_key_secret,bucket:(ht=et==null?void 0:et.data)==null?void 0:ht.bucket,stsToken:(Ct=et==null?void 0:et.data)==null?void 0:Ct.security_token});return new Promise((Pt,gt)=>{var dt;bt.multipartUpload(`${St}`,new Blob([Be],{type:Be.type}),le(re({timeout:200*1e3,partSize:102400},Qe),{callback:{url:(dt=et==null?void 0:et.data)==null?void 0:dt.callback_url,host:et==null?void 0:et.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,_e.rz)(ze)}})).then(function(mt){var kt;Be.response=(kt=mt.data)==null?void 0:kt.data,Pt(mt==null?void 0:mt.data)}).catch(function(mt){gt(mt),console.log("err:",mt)})})}),Ne=Be=>{var ze=Be,{user:Qe,cancelUpload:$e}=ze,Ye=ue(ze,["user","cancelUpload"]);const[at,ut]=(0,rt.useState)([]);let[ht,Ct]=(0,rt.useState)();const et={onRemove:St=>{ut([...at.filter(bt=>bt.name!==St.name)]),Ye.onChange(at.filter(bt=>bt.name!==St.name))},disabled:Ye.disabled,multiple:!0,fileList:at==null?void 0:at.map(St=>St.file),customRequest:()=>{},beforeUpload:St=>pe(void 0,null,function*(){let bt=Ye.maxSize||1073741824;if(at.filter(Pt=>Pt.name===St.name).length){ie.ZP.info(`${St.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(St==null?void 0:St.size)>bt?(ie.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${bt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(at.push({name:St.name,file:St}),ut([...at]),Ye.onChange(at),!1)})},it=(St,bt)=>pe(void 0,null,function*(){var Pt,gt,dt,mt,kt,Et;bt.file_name=St.name;const Ut=St.name,wt=yield(0,_e.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(wt.data=JSON.parse(Ce(wt.data)),(wt==null?void 0:wt.status)!==0){at[at.findIndex(Ze=>Ze.name===Ut)].status="error",at[at.findIndex(Ze=>Ze.name===Ut)].file.status="error",Ye.onChange(at),ie.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}ht=new(ye())({endpoint:(Pt=wt==null?void 0:wt.data)==null?void 0:Pt.end_point,region:(gt=wt==null?void 0:wt.data)==null?void 0:gt.region,accessKeyId:(dt=wt==null?void 0:wt.data)==null?void 0:dt.access_key_id,accessKeySecret:(mt=wt==null?void 0:wt.data)==null?void 0:mt.access_key_secret,bucket:(kt=wt==null?void 0:wt.data)==null?void 0:kt.bucket,stsToken:(Et=wt==null?void 0:wt.data)==null?void 0:Et.security_token}),console.log(St,"file"),Ct(ht);const pt=St.name.split(".");pt.pop();const tt=Ut.indexOf(".")>-1?bt.realFileName?pt.join("."):(0,ce.Z)():Ut;return new Promise((Ze,we)=>{var be;try{ht.multipartUpload(`${Ye.identifier}/${tt}${Ut.indexOf(".")>-1?"."+Ut.split(".").pop():""}`,new Blob([St.file],{type:St.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ke,Xe,Oe)=>{try{console.log("\u8FDB\u5EA6",Ke,Xe,Oe);const Ue=at.findIndex(He=>He.name===Ut);at[Ue].file.percent=Ke*100,at[Ue].tempCheckpoint=Xe,ut([...at])}catch(Ue){}},checkpoint:at[at.findIndex(Ke=>Ke.name===Ut)].tempCheckpoint,callback:{customValue:{id:Ut+""},url:(be=wt==null?void 0:wt.data)==null?void 0:be.callback_url,host:wt==null?void 0:wt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,_e.rz)(bt)}}).then(function(Ke){var Xe,Oe,Ue;const He=at.findIndex(Je=>Je.name===Ut);let Ve="done";if(((Xe=Ke.data)==null?void 0:Xe.status)===0){St.response=(Oe=Ke.data)==null?void 0:Oe.data;const Je=at.findIndex(ct=>ct.name===Ut);at[Je].status="done",at[Je].file.status="done"}else ie.ZP.warning((Ue=Ke.data)==null?void 0:Ue.message),Ve="error";at[He].status=Ve,at[He].file.status=Ve,Ye.onChange(at),Ze(Ke==null?void 0:Ke.data)}).catch(function(Ke){at[at.findIndex(Xe=>Xe.name===Ut)].status="error",at[at.findIndex(Xe=>Xe.name===Ut)].file.status="error",ie.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),ut([...at]),Ye.onChange(at),we(Ke),console.log("err:",Ke)})}catch(Ke){}})});return(0,rt.useEffect)(()=>{at.every(St=>St==="done"||St==="error")&&Ye.onComplete(at)},[at]),(0,rt.useEffect)(()=>{$e&&(ht==null||ht.cancel())},[$e]),(0,rt.useEffect)(()=>{Ye.uploading&&at.map(St=>pe(void 0,null,function*(){var bt;if((!St.status||St.status==="error")&&!$e){St.status="uploading",St.file.status="uploading";const Pt=yield it(St,{login:(bt=Qe==null?void 0:Qe.userInfo)==null?void 0:bt.login,container_type:Ye.container_type,container_id:Ye.container_id,description:Ye.description,realFileName:Ye.realFileName})}}))},[Ye.uploading]),rt.createElement(Te,le(re({},et),{height:Ye.height,className:Ye.className}),rt.createElement("p",{className:"ant-upload-hint"},Ye.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};an.ZP=(0,Pe.connect)(({loading:Be,globalSetting:ze,user:Qe})=>({globalSetting:ze,loading:Be.models.competitions,user:Qe}))(Ne)},97692:function(bn,an,Ge){"use strict";Ge.d(an,{h:function(){return pe}});var rt=Ge(59301),vt=Ge(57809),ie=Ge(78241),_e=Ge(3113),Ie=Ge(89780),ge=Ge.n(Ie),ce=Ge(37036),Pe=Ge(95625),Ee=Object.defineProperty,ye=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,z=(Te,Ce,Fe)=>Ce in Te?Ee(Te,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Te[Ce]=Fe,ee=(Te,Ce)=>{for(var Fe in Ce||(Ce={}))xe.call(Ce,Fe)&&z(Te,Fe,Ce[Fe]);if(ve)for(var Fe of ve(Ce))fe.call(Ce,Fe)&&z(Te,Fe,Ce[Fe]);return Te},ae=(Te,Ce)=>ye(Te,Me(Ce));const re=vt.default.Option,le={labelCol:{span:4},wrapperCol:{span:20}},ue={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"]};an.Z=({callback:Te,onCancel:Ce})=>{const[Fe,Ae]=(0,rt.useState)("python");function je(Be){Ae(ue[Be][1])}function Ne(Be){Te(Be)}return rt.createElement(ie.default,ae(ee({},le),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ne,style:{width:500}}),rt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},rt.createElement(vt.default,{getPopupContainer:Be=>Be.parentNode,onChange:je},Object.keys(ue).map(Be=>rt.createElement(re,{key:Be,value:Be},ue[Be][0])))),rt.createElement(ie.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},rt.createElement(pe,{mode:Fe})),rt.createElement("div",{className:"flex-container flex-end"},rt.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),rt.createElement(_e.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function pe({value:Te,onChange:Ce,mode:Fe,options:Ae={}}){const je=(0,rt.useRef)(),[Ne,Be]=(0,rt.useState)();return(0,rt.useEffect)(()=>{if(Ne){let ze=function(Qe){const $e=Qe.getValue();Ce&&Ce($e)};return Ne.on("change",ze),()=>{Ne.off("change",ze)}}},[Ne,Ce]),(0,rt.useEffect)(()=>{Ne&&Ne.setOption("mode",Fe)},[Ne,Fe]),(0,rt.useEffect)(()=>{Ne&&(Te!==Ne.getValue()||Te==="")&&setTimeout(()=>{Ne.setValue(Te||"")},300)},[Ne,Te]),(0,rt.useEffect)(()=>{if(je.current&&!Ne){const ze=ge().fromTextArea(je.current,ee({mode:Fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Be(ze)}},[je.current,Ne]),rt.createElement("div",{className:"my-codemirror-container"},rt.createElement("textarea",{ref:je}))}},12290:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return Nr}});var rt=Ge(59301),vt=Ge(89780),ie=Ge.n(vt),_e=Ge(76374),Ie=Ge(37036),ge=Ge(6313),ce=Ge(25717),Pe=Ge(99498),Ee=Ge(25419),ye=Ge(67549),Me=Ge(85149),ve=({value:hn="",className:cn,showTextOnly:Ot,showLines:gn,style:Nn={}})=>{const Xt=(0,rt.useMemo)(()=>"",[hn]);return rt.createElement(rt.Fragment,null,rt.createElement("div",{dangerouslySetInnerHTML:{__html:Xt}}))},xe=Ge(59301),fe=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ue=(hn,cn,Ot)=>cn in hn?fe(hn,cn,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):hn[cn]=Ot,pe=(hn,cn)=>{for(var Ot in cn||(cn={}))re.call(cn,Ot)&&ue(hn,Ot,cn[Ot]);if(ae)for(var Ot of ae(cn))le.call(cn,Ot)&&ue(hn,Ot,cn[Ot]);return hn},Te=(hn,cn)=>z(hn,ee(cn));let Ce=[{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 Fe({onActionCallback:hn,title:cn,icon:Ot,actionName:gn,className:Nn="",children:Xt}){function zt(){hn(gn)}return xe.createElement("a",{title:cn,className:Nn,onClick:zt},xe.createElement("i",{className:`${Ot}`}),Xt)}var Ae=({watch:hn,showNullButton:cn,showNullProgramButton:Ot,onActionCallback:gn,fullScreen:Nn,insertTemp:Xt,hidetoolBar:zt,extraUse:Pn})=>{const _n=[...Ce,{title:`${hn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${hn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return xe.createElement("ul",{className:"markdown-toolbar-container"},!zt&&_n.map((qn,Yn)=>xe.createElement("li",{key:Yn},qn.actionName?xe.createElement(Fe,Te(pe({},qn),{onActionCallback:gn})):xe.createElement("span",{className:"v-line"}))),cn?xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:gn},xe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ot?xe.createElement(xe.Fragment,null,xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:gn},xe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:gn},xe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Xt&&xe.createElement("li",null,xe.createElement(Fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Xt}`,onActionCallback:gn},xe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Pn&&xe.createElement("li",null,Pn),xe.createElement("li",{className:"btn-full-screen"},xe.createElement(Fe,{icon:`${Nn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Nn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:gn})))},je=Ge(79346),Ne=Ge(78241),Be=Ge(92832),ze=Ge(3113),Qe=Object.defineProperty,$e=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Ct=(hn,cn,Ot)=>cn in hn?Qe(hn,cn,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):hn[cn]=Ot,et=(hn,cn)=>{for(var Ot in cn||(cn={}))ut.call(cn,Ot)&&Ct(hn,Ot,cn[Ot]);if(at)for(var Ot of at(cn))ht.call(cn,Ot)&&Ct(hn,Ot,cn[Ot]);return hn},it=(hn,cn)=>$e(hn,Ye(cn));const St={labelCol:{span:4},wrapperCol:{span:20}};var bt=({callback:hn,onCancel:cn})=>{function Ot(gn){hn(gn)}return rt.createElement(Ne.default,it(et({},St),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ot,style:{width:500}}),rt.createElement(Ne.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},rt.createElement(Be.default,null)),rt.createElement(Ne.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},rt.createElement(Be.default,null)),rt.createElement("div",{className:"flex-container flex-end"},rt.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),rt.createElement(ze.ZP,{type:"ghost",onClick:cn},"\u53D6\u6D88")))},Pt=Ge(97692),gt=Ge(28451),dt=Ge(43418),mt=Ge(95237),kt=Ge(73524),Et=Ge(59301),Ut=({callback:hn,onCancel:cn})=>{const Ot=document.createElement("canvas"),gn=Ot.getContext("2d");Ot.width=1e3,Ot.height=800,gn.fillStyle="#ffffff",gn.fillRect(0,0,Ot.width,Ot.height);const Nn=Ot.toDataURL("image/png");return Et.createElement(dt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(mt.Z,{style:{height:"100vh"}},Et.createElement(kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Nn,visible:!0,title:String(Date.now())},onOk:Xt=>{hn({src:Xt.url})},onClose:cn})))},wt=Ge(12378);function pt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(pt,go.CommandHandler),pt.prototype.canAlignSelection=function(){var hn=this.diagram;return!(hn===null||hn.isReadOnly||hn.isModelReadOnly||hn.selection.count<2)},pt.prototype.alignLeft=function(){var hn=this.diagram;hn.startTransaction("aligning left");var cn=1/0;hn.selection.each(function(Ot){Ot instanceof go.Link||(cn=Math.min(Ot.position.x,cn))}),hn.selection.each(function(Ot){Ot instanceof go.Link||Ot.move(new go.Point(cn,Ot.position.y))}),hn.commitTransaction("aligning left")},pt.prototype.alignRight=function(){var hn=this.diagram;hn.startTransaction("aligning right");var cn=-1/0;hn.selection.each(function(Ot){if(!(Ot instanceof go.Link)){var gn=Ot.actualBounds.x+Ot.actualBounds.width;cn=Math.max(gn,cn)}}),hn.selection.each(function(Ot){Ot instanceof go.Link||Ot.move(new go.Point(cn-Ot.actualBounds.width,Ot.position.y))}),hn.commitTransaction("aligning right")},pt.prototype.alignTop=function(){var hn=this.diagram;hn.startTransaction("alignTop");var cn=1/0;hn.selection.each(function(Ot){Ot instanceof go.Link||(cn=Math.min(Ot.position.y,cn))}),hn.selection.each(function(Ot){Ot instanceof go.Link||Ot.move(new go.Point(Ot.position.x,cn))}),hn.commitTransaction("alignTop")},pt.prototype.alignBottom=function(){var hn=this.diagram;hn.startTransaction("aligning bottom");var cn=-1/0;hn.selection.each(function(Ot){if(!(Ot instanceof go.Link)){var gn=Ot.actualBounds.y+Ot.actualBounds.height;cn=Math.max(gn,cn)}}),hn.selection.each(function(Ot){Ot instanceof go.Link||Ot.move(new go.Point(Ot.actualBounds.x,cn-Ot.actualBounds.height))}),hn.commitTransaction("aligning bottom")},pt.prototype.alignCenterX=function(){var hn=this.diagram,cn=hn.selection.first();if(cn){hn.startTransaction("aligning Center X");var Ot=cn.actualBounds.x+cn.actualBounds.width/2;hn.selection.each(function(gn){gn instanceof go.Link||gn.move(new go.Point(Ot-gn.actualBounds.width/2,gn.actualBounds.y))}),hn.commitTransaction("aligning Center X")}},pt.prototype.alignCenterY=function(){var hn=this.diagram,cn=hn.selection.first();if(cn){hn.startTransaction("aligning Center Y");var Ot=cn.actualBounds.y+cn.actualBounds.height/2;hn.selection.each(function(gn){gn instanceof go.Link||gn.move(new go.Point(gn.actualBounds.x,Ot-gn.actualBounds.height/2))}),hn.commitTransaction("aligning Center Y")}},pt.prototype.alignColumn=function(hn){var cn=this.diagram;cn.startTransaction("align Column"),hn===void 0&&(hn=0),hn=parseFloat(hn);var Ot=new Array;cn.selection.each(function(Pn){Pn instanceof go.Link||Ot.push(Pn)});for(var gn=0;gn0){for(var Pn=Xt.elt(zt-1);Pn!==null&&Pn.isTreeExpanded&&!Pn.isTreeLeaf;){var _n=this._sortTreeChildrenByY(Pn);Pn=_n.last()}Pn!==null&&hn.select(Pn)}else hn.select(Nn)}}else if(Ot.key==="Down")if(cn.isTreeExpanded&&!cn.isTreeLeaf){var gn=this._sortTreeChildrenByY(cn).first();gn!==null&&hn.select(gn)}else for(;cn!==null;){var Nn=cn.findTreeParentNode();if(Nn===null)break;var Xt=this._sortTreeChildrenByY(Nn),zt=Xt.indexOf(cn);if(ztXt.y?1:Nn.xXt.x?1:0}),cn},pt.prototype.copyToClipboard=function(hn){go.CommandHandler.prototype.copyToClipboard.call(this,hn),this._lastPasteOffset.set(this.pasteOffset)},pt.prototype.pasteFromClipboard=function(){var hn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(hn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),hn},Object.defineProperty(pt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(hn){if(hn!=="move"&&hn!=="select"&&hn!=="scroll"&&hn!=="tree"&&hn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+hn);this._arrowKeyBehavior=hn}}),Object.defineProperty(pt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(hn){if(!(hn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+hn);this._pasteOffset.set(hn)}});var tt=pt,Ze=Ge(74413),we=Ge(43604),be=Ge(99064),Ke={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Xe=Ge(24065),Oe=Ge(59301),Ue=(hn,cn,Ot)=>new Promise((gn,Nn)=>{var Xt=_n=>{try{Pn(Ot.next(_n))}catch(qn){Nn(qn)}},zt=_n=>{try{Pn(Ot.throw(_n))}catch(qn){Nn(qn)}},Pn=_n=>_n.done?gn(_n.value):Promise.resolve(_n.value).then(Xt,zt);Pn((Ot=Ot.apply(hn,cn)).next())});function He({onCancel:hn,callback:cn}){let Ot=(0,rt.useRef)(),gn=(0,rt.useRef)(),Nn=(0,rt.useRef)(),Xt=(0,rt.useRef)(!1);const zt=(0,rt.useRef)(!1),[Pn,_n]=(0,rt.useState)(0);function qn(){const $t=wt.bx.make,jn={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"};Ot.current=new wt.S0(gn.current,{padding:20,grid:$t(wt.s_,"Grid",$t(wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$t(wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Jn=>{var lr=Jn.diagram.commandHandler.addTopLevelParts(Jn.diagram.selection,!0);lr||Jn.diagram.currentTool.doCancel()},commandHandler:$t(tt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Jn=>{var lr=Jn.subject;lr.location=lr.location.copy().snapToGridPoint(Jn.diagram.grid.gridOrigin,Jn.diagram.grid.gridCellSize),setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Jn=>{var lr=Jn.subject;setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Jn=>{var lr=Jn.parameter.part;lr.invalidateConnectedLinks();var vr=Jn.subject;Jn.diagram.toolManager.linkingTool.isForwards?vr.toNode.invalidateConnectedLinks():vr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ot.current.nodeTemplate=$t(wt.NB,"Auto",{locationSpot:wt.z6.Center,locationObjectName:"SHAPE",desiredSize:new wt.$u(120,60),minSize:new wt.$u(40,40),resizable:!0,resizeCellSize:new wt.$u(10,10),rotatable:!0},new wt.KX("location","loc",wt.E9.parse).makeTwoWay(wt.E9.stringify),new wt.KX("desiredSize","size",wt.$u.parse).makeTwoWay(wt.$u.stringify),$t(wt.bn,{name:"SHAPE",fill:jn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:wt.z6.AllSides,toSpot:wt.z6.AllSides},new wt.KX("figure"),new wt.KX("fill"),new wt.KX("stroke","borderColor"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),$t(wt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),$t(wt.al,{margin:1,textAlign:"center",overflow:wt.al.OverflowEllipsis,editable:!0},new wt.KX("text").makeTwoWay(),new wt.KX("stroke","color"))),Ot.current.nodeTemplate.toolTip=$t("ToolTip",$t(wt.s_,"Vertical",{maxSize:new wt.$u(200,NaN)},$t(wt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new wt.KX("text")),$t(wt.al,{font:"10pt sans-serif",textAlign:"center"},new wt.KX("text","details"))));function Wn(Jn,lr){var vr=(Sr,Kr)=>{Sr.handled=!0,Sr.diagram.model.commit(ai=>{var Br=Kr.part.adornedPart,br=new wt.E9().setRectSpot(Br.actualBounds,Jn);br.subtract(Br.location),br.scale(2,2),br.x+=Math.sign(br.x)*130,br.y+=Math.sign(br.y)*130,br.add(Br.location),br.snapToGridPoint(Sr.diagram.grid.gridOrigin,Sr.diagram.grid.gridCellSize);var si=ai.copyNodeData(Br.data);ai.setGroupKeyForNodeData(si,ai.getGroupKeyForNodeData(Br.data)),ai.addNodeData(si);var Tn={from:Br.key,to:ai.getKeyForNodeData(si)};ai.addLinkData(Tn);var Ri=Sr.diagram.findNodeForData(si);Ri.location=br,Sr.diagram.select(Ri),setTimeout(()=>{Sr.diagram.commandHandler.editTextBlock()},20)})};return $t(wt.bn,{figure:lr,alignment:Jn,alignmentFocus:Jn.opposite(),width:Jn.equals(wt.z6.Top)||Jn.equals(wt.z6.Bottom)?25:18,height:Jn.equals(wt.z6.Top)||Jn.equals(wt.z6.Bottom)?18:25,fill:"orange",stroke:jn.white,strokeWidth:4,mouseEnter:(Sr,Kr)=>Kr.fill="dodgerblue",mouseLeave:(Sr,Kr)=>Kr.fill="orange",isActionable:!0,click:vr,contextClick:vr})}function or(Jn){return $t(wt.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:(lr,vr)=>vr.fill="dodgerblue",mouseLeave:(lr,vr)=>vr.fill="orange",click:(lr,vr)=>{lr.diagram.commandHandler.showContextMenu(vr.part.adornedPart)}},Jn||{})}Ot.current.nodeTemplate.selectionAdornmentTemplate=$t(wt.uz,"Spot",$t(wt.Vm,{padding:10}),Wn(wt.z6.Top,"TriangleUp"),Wn(wt.z6.Left,"TriangleLeft"),Wn(wt.z6.Right,"TriangleRight"),Wn(wt.z6.Bottom,"TriangleDown"),or({alignment:new wt.z6(.75,0)}));function nn(Jn,lr){return(vr,Sr)=>{vr.handled=!0,vr.diagram.model.commit(Kr=>{Kr.set(Sr.part.adornedPart.data,Jn,lr)})}}function Cn(Jn,lr){return lr||(lr="color"),$t(wt.bn,{width:16,height:16,stroke:"lightgray",fill:Jn,margin:1,background:"transparent",mouseEnter:(vr,Sr)=>Sr.stroke="dodgerblue",mouseLeave:(vr,Sr)=>Sr.stroke="lightgray",click:nn(lr,Jn),contextClick:nn(lr,Jn)})}function rn(){return[$t("ContextMenuButton",$t(wt.s_,"Horizontal",Cn(jn.white,"fill"),Cn(jn.beige,"fill"),Cn(jn.extralightblue,"fill"),Cn(jn.extralightred,"fill"))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Cn(jn.lightgray,"fill"),Cn(jn.lightgreen,"fill"),Cn(jn.lightblue,"fill"),Cn(jn.lightred,"fill")))]}function mn(){return[$t("ContextMenuButton",$t(wt.s_,"Horizontal",Cn(jn.black),Cn(jn.green),Cn(jn.blue),Cn(jn.red))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Cn(jn.white),Cn(jn.magenta),Cn(jn.purple),Cn(jn.orange)))]}function En(Jn,lr){return lr||(lr="thickness"),$t(wt.bn,"LineH",{width:16,height:16,strokeWidth:Jn,margin:1,background:"transparent",mouseEnter:(vr,Sr)=>Sr.background="dodgerblue",mouseLeave:(vr,Sr)=>Sr.background="transparent",click:nn(lr,Jn),contextClick:nn(lr,Jn)})}function pn(Jn,lr){return lr||(lr="dash"),$t(wt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Jn,margin:1,background:"transparent",mouseEnter:(vr,Sr)=>Sr.background="dodgerblue",mouseLeave:(vr,Sr)=>Sr.background="transparent",click:nn(lr,Jn),contextClick:nn(lr,Jn)})}function kn(){return[$t("ContextMenuButton",$t(wt.s_,"Horizontal",En(1),En(2),En(3),En(4))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",pn(null),pn([2,4]),pn([4,4])))]}function Mn(Jn,lr){return lr||(lr="figure"),$t(wt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Jn,margin:1,background:"transparent",mouseEnter:(vr,Sr)=>Sr.fill="dodgerblue",mouseLeave:(vr,Sr)=>Sr.fill="lightgray",click:nn(lr,Jn),contextClick:nn(lr,Jn)})}Ot.current.nodeTemplate.contextMenu=$t("ContextMenu",$t("ContextMenuButton",$t(wt.s_,"Horizontal",Mn("Rectangle"),Mn("RoundedRectangle"),Mn("Ellipse"),Mn("Diamond"))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Mn("Parallelogram2"),Mn("ManualOperation"),Mn("Procedure"),Mn("Cylinder1"))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Mn("Terminator"),Mn("CreateRequest"),Mn("Document"),Mn("TriangleDown"))),rn(),mn(),kn()),Ot.current.groupTemplate=$t(wt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:wt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Jn,lr)=>{var vr=lr.addMembers(lr.diagram.selection,!0);vr||lr.diagram.currentTool.doCancel()},avoidable:!1},new wt.KX("location","loc",wt.E9.parse).makeTwoWay(wt.E9.stringify),$t(wt.s_,"Auto",{name:"BODY"},$t(wt.bn,{parameter1:10,fill:jn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:wt.z6.AllSides,toSpot:wt.z6.AllSides},new wt.KX("fill"),new wt.KX("stroke","color"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),$t(wt.Vm,{background:"transparent",margin:20})),$t(wt.al,{alignment:wt.z6.Top,alignmentFocus:wt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new wt.KX("text"),new wt.KX("stroke","color"))),Ot.current.groupTemplate.selectionAdornmentTemplate=$t(wt.uz,"Spot",$t(wt.s_,"Auto",$t(wt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),$t(wt.Vm,{margin:1.5})),or({alignment:wt.z6.TopRight,alignmentFocus:wt.z6.BottomRight})),Ot.current.groupTemplate.contextMenu=$t("ContextMenu",rn(),mn(),kn()),Ot.current.linkTemplate=$t(wt.rU,{layerName:"Foreground",routing:wt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new wt.KX("fromSpot","fromSpot",wt.z6.parse),new wt.KX("toSpot","toSpot",wt.z6.parse),new wt.KX("fromShortLength","dir",Jn=>Jn>=1?10:0),new wt.KX("toShortLength","dir",Jn=>Jn>=1?10:0),new wt.KX("points").makeTwoWay(),$t(wt.bn,{strokeWidth:2},new wt.KX("stroke","color"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),$t(wt.bn,{segmentIndex:0,segmentOffset:new wt.E9(15,0),segmentOrientation:wt.rU.OrientAlong,alignmentFocus:wt.z6.Right,figure:"circle",width:10,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Jn=>Jn===1)),$t(wt.bn,{segmentIndex:-1,segmentOffset:new wt.E9(-10,6),segmentOrientation:wt.rU.OrientPlus90,alignmentFocus:wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Jn=>Jn>=1),new wt.KX("width","thickness",Jn=>7+3*Jn),new wt.KX("height","thickness",Jn=>7+3*Jn),new wt.KX("segmentOffset","thickness",Jn=>new wt.E9(-15,4+1.5*Jn))),$t(wt.bn,{segmentIndex:0,segmentOffset:new wt.E9(15,-6),segmentOrientation:wt.rU.OrientMinus90,alignmentFocus:wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Jn=>Jn===2),new wt.KX("width","thickness",Jn=>7+3*Jn),new wt.KX("height","thickness",Jn=>7+3*Jn),new wt.KX("segmentOffset","thickness",Jn=>new wt.E9(-15,4+1.5*Jn))),$t(wt.al,{alignmentFocus:new wt.z6(0,1,-4,0),editable:!0},new wt.KX("text").makeTwoWay(),new wt.KX("stroke","color"))),Ot.current.linkTemplate.selectionAdornmentTemplate=$t(wt.uz,$t(wt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:zn(2)},new wt.KX("pathPattern","thickness",zn)),or({alignmentFocus:new wt.z6(0,0,-6,-4)}));function zn(Jn){return $t(wt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Jn+4).toString()+" H3"})}function Dn(Jn){var lr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Jn===0?lr="M0 0 M16 16 M0 8 L16 8":Jn===2&&(lr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),$t(wt.bn,{geometryString:lr,margin:2,background:"transparent",mouseEnter:(vr,Sr)=>Sr.background="dodgerblue",mouseLeave:(vr,Sr)=>Sr.background="transparent",click:nn("dir",Jn),contextClick:nn("dir",Jn)})}function ar(Jn){var lr=(vr,Sr)=>{vr.handled=!0,vr.diagram.model.commit(Kr=>{var ai=Sr.part.adornedPart;Kr.set(ai.data,Jn?"toSpot":"fromSpot",wt.z6.stringify(wt.z6.AllSides)),(Jn?ai.toNode:ai.fromNode).invalidateConnectedLinks()})};return $t(wt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(vr,Sr)=>Sr.background="dodgerblue",mouseLeave:(vr,Sr)=>Sr.background="transparent",click:lr,contextClick:lr})}function dn(Jn,lr){var vr=0,Sr=wt.z6.RightSide;Jn.equals(wt.z6.Top)?(vr=270,Sr=wt.z6.TopSide):Jn.equals(wt.z6.Left)?(vr=180,Sr=wt.z6.LeftSide):Jn.equals(wt.z6.Bottom)&&(vr=90,Sr=wt.z6.BottomSide),lr||(vr-=180);var Kr=(ai,Br)=>{ai.handled=!0,ai.diagram.model.commit(br=>{var si=Br.part.adornedPart;br.set(si.data,lr?"toSpot":"fromSpot",wt.z6.stringify(Sr)),(lr?si.toNode:si.fromNode).invalidateConnectedLinks()})};return $t(wt.bn,{alignment:Jn,alignmentFocus:Jn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:vr,background:"transparent",mouseEnter:(ai,Br)=>Br.background="dodgerblue",mouseLeave:(ai,Br)=>Br.background="transparent",click:Kr,contextClick:Kr})}Ot.current.linkTemplate.contextMenu=$t("ContextMenu",mn(),kn(),$t("ContextMenuButton",$t(wt.s_,"Horizontal",Dn(0),Dn(1),Dn(2))),$t("ContextMenuButton",$t(wt.s_,"Horizontal",$t(wt.s_,"Spot",ar(!1),dn(wt.z6.Top,!1),dn(wt.z6.Left,!1),dn(wt.z6.Right,!1),dn(wt.z6.Bottom,!1)),$t(wt.s_,"Spot",{margin:new wt.Zt(0,0,0,2)},ar(!0),dn(wt.z6.Top,!0),dn(wt.z6.Left,!0),dn(wt.z6.Right,!0),dn(wt.z6.Bottom,!0)))));const Or=`{ "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 Jr=["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 Rr(Jn){return console.log("shapeName:",Jn),Jr.indexOf(Jn)>=0}var vn=new wt.YI(Nn.current,{maxSelectionCount:1,linkTemplate:$t(wt.rU,{locationSpot:wt.z6.Center,selectionAdornmentTemplate:$t(wt.uz,"Link",{locationSpot:wt.z6.Center},$t(wt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),$t(wt.bn,{toArrow:"Standard",stroke:null}))},{routing:wt.rU.AvoidsNodes,curve:wt.rU.JumpOver,corner:5,toShortLength:4},new wt.KX("points"),$t(wt.bn,{isPanelMain:!0,strokeWidth:2}),$t(wt.bn,{toArrow:"Standard",stroke:null})),model:new wt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...wt.bn.getFigureGenerators().toArray().map(Jn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Jn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ot.current.addDiagramListener("TextEdited",function(Jn){var lr;const vr=Jn.subject.part;var Sr=(lr=document.activeElement)==null?void 0:lr.value;typeof Sr=="string"&&Sr.trim()===""&&Ot.current.model.commit(function(Kr){Kr.set(vr.data,"text","\u672A\u547D\u540D"),Ot.current.commandHandler.stopCommand()},"increment")}),vn.nodeTemplate=$t(wt.NB,"Auto",{locationSpot:wt.z6.Center},new wt.KX("location","location",wt.E9.parse).makeTwoWay(wt.E9.stringify),$t(wt.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 wt.KX("stroke").makeTwoWay(),new wt.KX("fill").makeTwoWay(),new wt.KX("figure")),$t(wt.al,{margin:new wt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new wt.$u(16,16),maxSize:new wt.$u(10,NaN),textAlign:"center",editable:!0},new wt.KX("key").makeTwoWay())),setTimeout(()=>{Ot.current.grid=$t(wt.s_,"Grid",$t(wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$t(wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ot.current.grid.visible=!0,Ot.current.grid.gridCellStroke="darkgray",Ot.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ot.current,Ot.current}const Yn=()=>Ue(this,null,function*(){var $t,jn=Ot.current.makeImage();const Wn=yield(0,be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:jn.src,file_data:JSON.stringify({login:($t=(0,Xe.eY)())==null?void 0:$t.login,data:JSON.parse(Ot.current.model.toJson())})}});cn({src:Wn.url})});return(0,rt.useEffect)(()=>(setTimeout(()=>{qn()},500),_n(Pn+1),()=>{Ot.current=null}),[]),Oe.createElement("div",{ref:zt,className:Xt.current?`${Ke.maxH60} body-overflow-initial`:"body-overflow-initial"},Oe.createElement(dt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Pn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Oe.createElement(mt.Z,null,Oe.createElement(we.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Oe.createElement(we.Z,{onClick:()=>{var $t,jn,Wn=Ot.current.selection.first();if(Xt.current=!Xt.current,document.activeElement&&Wn){let or=(jn=($t=document.activeElement)==null?void 0:$t.value)==null?void 0:jn.trim();typeof or=="string"&&Ot.current.model.commit(function(nn){nn.set(Wn.data,"text",or||"\u672A\u547D\u540D"),Ot.current.commandHandler.stopCommand()},"increment")}_n(Pn+1)}},Oe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:hn},Oe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ke.flowChartWrp},Oe.createElement("div",{style:{display:"flex",height:"100%"}},Oe.createElement("div",{style:{width:"300px",height:"100%"}},Oe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Oe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ke.myPaletteDiv,ref:Nn})),Oe.createElement("div",{style:{flex:1,position:"relative"}},Oe.createElement("div",{ref:gn,style:{height:"80vh"}}))),Oe.createElement("div",{className:"tr"},Oe.createElement(ze.ZP,{size:"large",onClick:Yn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ve=He,Je=Ge(5112),ct=Ge(5871);const yt=Je.ZP.Group,ft={margin:"0 8px"};var Mt=({callback:hn,onCancel:cn})=>{function Ot(gn){hn(gn)}return rt.createElement(Ne.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ot},rt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},rt.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),rt.createElement("span",{style:ft},"\u884C\u6570"),rt.createElement(Ne.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},rt.createElement(ct.Z,null)),rt.createElement("span",{style:ft},"\u5217\u6570"),rt.createElement(Ne.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},rt.createElement(ct.Z,null))),rt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},rt.createElement("span",{style:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),rt.createElement(Ne.default.Item,{name:"align"},rt.createElement(yt,null,rt.createElement(Je.ZP,{value:"default"},rt.createElement("i",{className:"fa fa-align-justify"})),rt.createElement(Je.ZP,{value:"left"},rt.createElement("i",{className:"fa fa-align-left"})),rt.createElement(Je.ZP,{value:"center"},rt.createElement("i",{className:"fa fa-align-center"})),rt.createElement(Je.ZP,{value:"right"},rt.createElement("i",{className:"fa fa-align-right"}))))),rt.createElement("div",{className:"flex-container flex-end"},rt.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),rt.createElement(ze.ZP,{type:"ghost",onClick:cn},"\u53D6\u6D88")))},Jt=Ge(78673),Vt=Ge(80727),Kt=Ge.n(Vt),tn=(0,rt.forwardRef)(({use3d:hn,width:cn,height:Ot,callback:gn,showSaveButton:Nn},Xt)=>{const zt=(0,rt.useRef)(),Pn=(0,rt.useRef)(),[_n,qn]=(0,rt.useState)(!1),Yn=(0,rt.useRef)({id:zt,appName:"graphing",width:cn||1e3,height:Ot||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,rt.useEffect)(()=>{Pn.current=new(Kt())(Yn.current,!0),window.onload=function(){Pn.current.inject("applet_container")}},[]);const $t=()=>{var jn=window.ggbApplet.getPNGBase64(1,!0,72);return gn&&gn(jn),jn};return(0,rt.useEffect)(()=>{Yn.current.appName=_n?"3D":"graphing",Pn.current.inject("applet_container")},[_n]),(0,rt.useEffect)(()=>{qn(hn)},[hn]),(0,rt.useImperativeHandle)(Xt,()=>({getImgData:$t})),rt.createElement(rt.Fragment,null,rt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:zt}),rt.createElement(mt.Z,{align:"middle"},rt.createElement(we.Z,{flex:1},rt.createElement(Jt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:_n,onChange:jn=>qn(jn)})),rt.createElement(we.Z,null,rt.createElement(ze.ZP,{size:"large",onClick:$t,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),It=Ge(41588),Dt=Ge(8591);const qt="link",sn="upload-image",xn="add-flowchart",Ln="draw-image",Zn="add-flowchart",Xn="code-block",dr="add-table",fr="------------",pr={default:fr,left:`:${fr}`,center:`:${fr}:`,right:`${fr}:`};var Cr=Ge(58856);function Yr(){}let ii=0;const jr=1e4,fi="\u2581",Lr="@\u2581\u2581@",ot="@\u2581@",oi=` **\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`,yi=["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 Pi(hn){return/^\d+$/.test(hn)?`${hn}px`:hn}const Ar=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Fr={[Ar+"-B"]:"bold",[Ar+"-I"]:"italic"},Si={[qt]:"\u6DFB\u52A0\u94FE\u63A5",[Xn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[sn]:"\u6DFB\u52A0\u56FE\u7247",[Ln]:"\u6DFB\u52A0\u753B\u56FE",[xn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[dr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Nr=({defaultValue:hn="",onChange:cn,width:Ot="100%",height:gn=400,miniToolbar:Nn=!1,isFocus:Xt=!1,watch:zt,insertTemp:Pn,mode:_n="markdown",id:qn="markdown-editor-id",showResizeBar:Yn=!1,noStorage:$t=!1,showNullButton:jn=!1,showNullProgramButton:Wn=!1,hidetoolBar:or=!1,fullScreen:nn=!1,onBlur:Cn,onCMBeforeChange:rn,onFullScreen:mn,className:En="",disablePaste:pn=!1,disabled:kn=!1,disabledFill:Mn=!1,placeholder:zn="",values:Dn="",extraUse:ar})=>{const[dn,Or]=(0,rt.useState)(null),[Jr,Rr]=(0,rt.useState)(hn),[vn,Jn]=(0,rt.useState)(zt),[lr,vr]=(0,rt.useState)(nn),[Sr,Kr]=(0,rt.useState)(""),[ai,Br]=(0,rt.useState)(0),[br,si]=(0,rt.useState)(gn),[Tn,Ri]=(0,rt.useState)(!1),[On,pi]=(0,rt.useState)(0),[xo,zi]=(0,rt.useState)(0),Lo=(0,rt.useRef)(),yo=(0,rt.useRef)(),Ur=(0,rt.useRef)(),Gr=(0,rt.useRef)();(0,rt.useEffect)(()=>{const Hr=window.scrollY||window.pageYOffset;Rr(Dn),dn==null||dn.setValue(Dn),window.scrollTo(0,Hr)},[Dn]),(0,rt.useEffect)(()=>{mn==null||mn(lr)},[lr]),(0,rt.useEffect)(()=>{if(Lo.current){let Hr=function(Kn,li){var Qi;if(pn){li.preventDefault();return}const zo=li.clipboardData;if(zo){const Mo=zo.types.toString(),Uo=zo.items;if(Mo==="Files"||zo.types.indexOf("Files")>-1){if(li.preventDefault(),_n=="stex")return;try{let ca=Uo[1];((Qi=Uo[0])==null?void 0:Qi.kind)==="file"&&(ca=Uo[0]);const Jo=ca.getAsFile(),qa=Jo.name.split(".").pop();(0,gt.I)(Jo,La=>{var es,wn,ma;La.id?((es=Jo==null?void 0:Jo.type)==null?void 0:es.indexOf("image"))>-1?Er.replaceSelection(``):((wn=Jo==null?void 0:Jo.type)==null?void 0:wn.indexOf("video"))>-1?Er.replaceSelection(``):((ma=Jo==null?void 0:Jo.type)==null?void 0:ma.indexOf("pdf"))>-1?Er.replaceSelection(`${Jo.name}`):yi.includes(qa)?Er.replaceSelection(`${Jo.name}`):Er.replaceSelection(`[${Jo.name}](/api/attachments/${La.id}?type=${La.content_type})`):(La==null?void 0:La.status)===401&&(document.location.href="/user/login")})}catch(ca){Dt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Er=ie().fromTextArea(Lo.current,{mode:_n,lineNumbers:!Nn,lineWrapping:!0,value:hn,autoCloseTags:!0,autoCloseBrackets:!0});return Er.on("keyup",function(Kn,li){li.keyCode===8&&(Kn.getValue()==""?Er.setOption("placeholder",zn):Er.setOption("placeholder",null))}),Er.on("keydown",function(Kn,li){if(li.keyCode===8){var Qi=Hi(Kn);Qi&&li.preventDefault()}}),Xt&&Er.focus(),Er.on("paste",Hr),kn&&Er.on("beforeChange",function(Kn,li){(li.origin==="paste"||li.origin==="+input")&&li.cancel()}),Or(Er),()=>{Er.off("paste",Hr)}}},[]);const Mi=(0,rt.useCallback)(()=>{if(yo.current)try{}catch(Hr){console.log(Hr,"---- to set md editor body height")}},[br,yo,lr]);(0,rt.useEffect)(()=>{function Hr(){let Er=new _e.Z(Kn=>{for(let li of Kn)(li.target.offsetHeight>0||li.target.offsetWidth>0)&&(Mi(),dn.setSize("100%","100%"),dn.refresh())});return Er.observe(Lo.current.parentElement),Er}if(dn){const Er=Hr();return()=>{var Kn,li;(Kn=Lo.current)!=null&&Kn.parentElement&&Er.unobserve((li=Lo.current)==null?void 0:li.parentElement)}}},[dn,Mi]),(0,rt.useEffect)(()=>{if(dn){let Hr=[];for(const[Er,Kn]of Object.entries(Fr)){let li={[Er]:()=>{cr(Kn)}};Hr.push(li),dn.addKeyMap(li)}return()=>{for(let Er of Hr)dn.removeKeyMap(Er)}}},[dn]),(0,rt.useEffect)(()=>{nn!==lr&&vr(nn)},[nn]),(0,Cr.Z)(()=>{if(!$t&&ai>0){let Hr=new Date().getTime(),Er=window.sessionStorage.getItem(qn);Hr>=ai+jr&&(!Er||Er!==Jr)&&(window.sessionStorage.setItem(qn,Jr),Ri(!0))}},jr),(0,rt.useEffect)(()=>{Jn(zt)},[dn,zt]),(0,rt.useEffect)(()=>{dn&&Xt&&dn.focus()},[dn,Xt]),(0,rt.useEffect)(()=>{if(vn&&dn){let Hr=function(Kn){let li=Kn.target;if(Gr.current){let Qi=li.scrollTop/li.scrollHeight;Gr.current.scrollTop=Gr.current.scrollHeight*Qi}};const Er=dn.getScrollerElement();return Er.addEventListener("scroll",Hr),()=>{Er.removeEventListener("scroll",Hr)}}},[dn,vn]),(0,rt.useEffect)(()=>{if(dn&&rn){let Hr=function(Er,Kn){rn(Er,Kn)};return dn.on("beforeChange",Hr),()=>{dn.off("beforeChange",Hr)}}},[dn,rn]),(0,rt.useEffect)(()=>{if(dn&&Cn){let Hr=function(){Cn(dn.getValue())};return dn.on("blur",Hr),()=>{dn.off("blur",Hr)}}},[dn,Cn]);function Hi(Hr,Er){var Kn=Hr.getDoc(),li=Kn.getCursor(),Qi=Kn.getLine(li.line),zo=Qi.charAt(li.ch-1),Mo=Qi.lastIndexOf("@\u2581@",li.ch),Uo=Qi.lastIndexOf("@\u2581\u2581@",li.ch),ca=Mo>Uo?Mo:Uo,Jo=Mo>Uo?3:4;if(Lr.indexOf(zo)===-1)return null;if(console.log("change1:",Er,Hr,Qi,li,ca,Mo,Uo,zo),ca>=0&&li.ch-ca<5){var qa=ca+Jo;return Kn.replaceRange("",{line:li.line,ch:ca},{line:li.line,ch:qa}),{line:li.line,ch:qa}}return null}(0,rt.useEffect)(()=>{if(dn){let Hr=function(Er,Kn){const li=Er.getValue();Rr(li),Br(new Date().getTime()),Er.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),cn&&(Wn?cn(li,Vr(li)):cn(li))};return dn.on("change",Hr),()=>{dn.off("change",Hr)}}},[dn,cn]),(0,rt.useEffect)(()=>{if(dn)if(hn==null)dn.setValue(""),Rr("");else{const Hr=window.scrollY||window.pageYOffset;hn!==dn.getValue()&&(dn.setValue(hn),Rr(hn),dn.setCursor(kn?1:dn.lineCount(),0),window.scrollTo(0,Hr))}},[dn,hn]);const cr=(0,rt.useCallback)(Hr=>{const Er=dn.getCursor(),Kn=dn.getSelection();let li=Kn.split(` `);switch(Hr){case"bold":return dn.replaceSelection("**"+Kn+"**"),Kn===""&&dn.setCursor(Er.line,Er.ch+2),dn.focus();case"italic":return dn.replaceSelection("*"+Kn+"*"),Kn===""&&dn.setCursor(Er.line,Er.ch+1),dn.focus();case"code":return dn.replaceSelection("`"+Kn+"`"),Kn===""&&dn.setCursor(Er.line,Er.ch+1),dn.focus();case"inline-latex":return Kr("inline-latex"),dn.focus();case"latex":return dn.replaceSelection("```latex\n"+Kn+"\n```"),dn.setCursor(Er.line+1,Kn.length+1),dn.focus();case"line-break":return dn.replaceSelection(`
`),dn.focus();case"list-ul":return Kn===""?dn.replaceSelection("- "+Kn):dn.replaceSelection(li.map(Qi=>Qi===""?"":`- ${Qi}`).join(` `)),dn.focus();case"list-ol":return Kn===""?dn.replaceSelection("1. "+Kn):dn.replaceSelection(li.map((Qi,zo)=>Qi===""?"":`${zo+1}. ${Qi}`).join(` `)),dn.focus();case"add-null-ch":return Kn===""&&dn.setCursor(Er.line,Er.ch),dn.replaceSelection(fi),dn.focus();case"add-signal":return Kn===""&&dn.setCursor(Er.line,Er.ch),dn.replaceSelection(ot),dn.focus();case"add-multiple":return Kn===""&&dn.setCursor(Er.line,Er.ch),dn.replaceSelection(Lr),dn.focus();case"inster-template-1":return Kn===""&&dn.setCursor(Er.line,Er.ch),dn.replaceSelection(oi),dn.focus();case"eraser":return dn.setValue(""),dn.focus();case"trigger-watch":return Jn(!vn),dn.focus();case"trigger-full-screen":return vr(!lr),dn.focus();case qt:Kr(qt);return;case Xn:Kr(Xn);return;case sn:Kr(sn);return;case Ln:Kr(Ln);return;case"maths-latex":Kr("maths-latex");return;case xn:Kr(xn);return;case dr:Kr(dr);return;default:throw new Error}},[dn,vn,lr]),Lt=(0,rt.useCallback)((Hr,Er)=>{var Kn,li,Qi,zo,Mo,Uo;switch(Kr(""),Sr){case qt:const{title:es,link:wn}=Hr;return dn.replaceSelection(`[${es}](${wn})`),dn.focus();case Xn:const{language:ma,content:Ql}=Hr;return dn.replaceSelection(["```"+ma,Ql,"```"].join(` `)),dn.focus();case"maths-latex":for(var ca=atob(Hr),Jo=new Uint8Array(ca.length),qa=0;qa{bi.id?dn.replaceSelection(`![,](/api/attachments/${bi.id}?type=${bi.content_type})`):(bi==null?void 0:bi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":dn.replaceSelection("`$$"+Hr+"$$`");break;case sn:case Ln:case Zn:const{src:el,alt:So}=Hr,ro=Er,va=(Qi=(li=(Kn=ro==null?void 0:ro.name)==null?void 0:Kn.split("."))==null?void 0:li.pop)==null?void 0:Qi.call(li);return((zo=ro==null?void 0:ro.type)==null?void 0:zo.indexOf("image"))>-1||!(ro!=null&&ro.type)?ro!=null&&ro.align||ro!=null&&ro.width?dn.replaceSelection(`

${So||

`):dn.replaceSelection(`${So||`):((Mo=ro==null?void 0:ro.type)==null?void 0:Mo.indexOf("video"))>-1?dn.replaceSelection(``):((Uo=ro==null?void 0:ro.type)==null?void 0:Uo.indexOf("pdf"))>-1?dn.replaceSelection(`${ro.name}`):yi.includes(va)?dn.replaceSelection(`${ro.name}`):dn.replaceSelection(`[${ro.name}](${el})`),dn.focus();case dr:const{row:Io,col:qi,align:No}=Hr;let xs=` `;for(let bi=0;bi{switch(Sr){case qt:return rt.createElement(bt,{callback:Lt,onCancel:_r});case Xn:return rt.createElement(Pt.Z,{callback:Lt,onCancel:_r});case sn:return rt.createElement(gt.Z,{callback:Lt,onCancel:_r});case xn:return rt.createElement(Ve,{callback:Lt,onCancel:_r});case dr:return rt.createElement(Mt,{callback:Lt,onCancel:_r});case"maths-latex":return rt.createElement(tn,{showSaveButton:!0,callback:Lt});case"inline-latex":return rt.createElement(It.Z,{showSaveButton:!0,callback:Lt});default:return null}},[Sr]);function _r(){Kr("")}(0,rt.useEffect)(()=>{if(Ur.current){let Hr=function(Mo){Qi=!0,zo=Mo.pageY},Er=function(){Qi=!1},Kn=function(Mo){if(Qi){let Uo=Mo.pageY-zo;Uo<0&&(Uo=0),Uo>300&&(Uo=300);let ca=gn+Uo+"px";si(ca)}},li=Ur.current,Qi=!1,zo=0;return li.addEventListener("mousedown",Hr),document.addEventListener("mousemove",Kn),document.addEventListener("mouseup",Er),()=>{li.removeEventListener("mousedown",Hr),document.removeEventListener("mousemove",Kn),document.removeEventListener("mouseup",Er)}}},[dn,Ur]),(0,rt.useEffect)(()=>{si(gn)},[gn]);const Ir=Pi(Ot),_i=Pi(br),Ji={width:Ir,height:_i},zr=(0,rt.useMemo)(()=>{if(ai){let Hr=new Date(ai),Er=Hr.getHours(),Kn=Hr.getMinutes(),li=Hr.getSeconds();return Er=Er<10?"0"+Er:Er,Kn=Kn<10?"0"+Kn:Kn,li=li<10?"0"+li:li,`${Er}:${Kn}:${li}`}return 0},[ai]),Vr=Hr=>{const Er=[];if(Wn){let Kn=-1;Hr=Hr.replace(/(@▁▁@|@▁@)/g,function(li,Qi,zo){Er.push({multiLine:li!==ot})})}return Er};function Ci(){window.sessionStorage.removeItem(qn),Ri(!1),Br(0)}function mi(){Ri(!1),Br(0),dn.setValue(window.sessionStorage.getItem(qn))}(0,rt.useEffect)(()=>{Si[Sr]&&Sr!==Ln&&Sr!==xn&&setTimeout(()=>{const Hr=document.getElementsByClassName("markdown-popup-form")[0],Er=window.innerWidth/2-Hr.offsetWidth/2,Kn=window.innerHeight/2-Hr.offsetHeight/2;pi(Er),zi(Kn)},0)},[Sr]);const Vi=Hr=>{Hr.preventDefault();const Er=Hr.clientX-On,Kn=Hr.clientY-xo;document.body.onmousemove=li=>{let Qi=li.clientX-Er,zo=li.clientY-Kn;const Mo=document.getElementsByClassName("markdown-popup-form")[0],Uo=window.innerWidth-Mo.offsetWidth,ca=window.innerHeight-Mo.offsetHeight;Qi=Math.max(0,Math.min(Qi,Uo)),zo=Math.max(0,Math.min(zo,ca)),io(li.clientX,li.clientY,Er,Kn)&&(pi(Qi),zi(zo))},document.body.onmouseup=function(){document.body.onmousemove=null}},io=(Hr,Er,Kn,li)=>{const Qi=document.body.clientHeight,zo=document.body.clientWidth;return Hr<20&&Kn>Hr||Hr>zo-20&&KnEr||Er>Qi-20&&liNe in je?Me(je,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):je[Ne]=Be,re=(je,Ne)=>{for(var Be in Ne||(Ne={}))z.call(Ne,Be)&&ae(je,Be,Ne[Be]);if(fe)for(var Be of fe(Ne))ee.call(Ne,Be)&&ae(je,Be,Ne[Be]);return je},le=(je,Ne)=>ve(je,xe(Ne));const{useForm:ue}=rt.default,pe={width:280,marginRight:10},Te={labelCol:{span:5},wrapperCol:{span:19}};var Ce=({callback:je,onCancel:Ne})=>{const[Be]=ue();let ze=(0,Ee.useRef)();function Qe(at){ze.current.width=Be.getFieldValue("width"),ze.current.align=Be.getFieldValue("align"),je(at,ze.current)}function $e(at,ut){if(at.status===-1){vt.ZP.error(at.message);return}Be.setFieldsValue({src:`/api/attachments/${at.id}`,type:ut.type})}function Ye(at){let ut=at.target.files[0];ze.current=ut,Ae(ut,$e)}return ye.createElement(rt.default,le(re({form:Be},Te),{className:"upload-image-panel",onFinish:Qe,style:{width:470,overflow:"hidden"}}),ye.createElement(rt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ye.createElement("div",{className:"flex-container"},ye.createElement(rt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ye.createElement(ie.default,{style:pe})),ye.createElement(Fe,{onFileChange:Ye}))),ye.createElement(rt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ye.createElement(ie.default,{style:{width:264}})),ye.createElement(rt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ye.createElement(_e.Z,null,ye.createElement(rt.default.Item,{name:"width",style:{margin:0}},ye.createElement(Ie.Z,{style:{width:264}})),ye.createElement("span",{className:"ml8"},"%"))),ye.createElement(rt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ye.createElement(ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ye.createElement("aside",null,ye.createElement(rt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ye.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(ce.ZP,{type:"default",onClick:Ne},"\u53D6\u6D88"))))};function Fe({onFileChange:je}){return ye.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ye.createElement("input",{type:"file",onChange:je}))}function Ae(je,Ne){if(!je)throw new String("\u6CA1\u6709\u6587\u4EF6");let Be=new FormData;Be.append("editormd-image-file",je),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var ze=new window.XMLHttpRequest;ze.withCredentials=!0,ze.addEventListener("load",function(Qe){Ne(JSON.parse(Qe.target.responseText),je)},!1),ze.addEventListener("error",function(Qe){console.error(Qe)},!1),ze.open("POST",`${Pe.KI}/api/attachments.json`),ze.send(Be)}},79346:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return ie}});var rt=Ge(59301),vt=Ge(4676);class ie extends rt.Component{constructor(Ie){super(Ie);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:Ie}=this.props;return(0,vt.createPortal)(Ie,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(bn,an,Ge){"use strict";Ge.d(an,{SV:function(){return Ue},ZP:function(){return Oe}});var rt=Ge(59301),vt=Ge(76374);const ie={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"]},_e={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"]},Ie={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},ge={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(` `)}]},ce={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 Pe=Ge(53184),Ee=Ge.n(Pe),ye=Object.defineProperty,Me=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(He,Ve,Je)=>Ve in He?ye(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Je}):He[Ve]=Je,ae=(He,Ve)=>{for(var Je in Ve||(Ve={}))fe.call(Ve,Je)&&ee(He,Je,Ve[Je]);if(xe)for(var Je of xe(Ve))z.call(Ve,Je)&&ee(He,Je,Ve[Je]);return He},re=(He,Ve)=>Me(He,ve(Ve)),le=(He,Ve,Je)=>new Promise((ct,yt)=>{var ft=Vt=>{try{Jt(Je.next(Vt))}catch(Kt){yt(Kt)}},Mt=Vt=>{try{Jt(Je.throw(Vt))}catch(Kt){yt(Kt)}},Jt=Vt=>Vt.done?ct(Vt.value):Promise.resolve(Vt.value).then(ft,Mt);Jt((Je=Je.apply(He,Ve)).next())});const ue={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"]}},pe=(He,Ve)=>Ve.map(Je=>({label:Je,kind:He.languages.CompletionItemKind.Keyword,insertText:Je})),Te=He=>Object.keys(ue.tables).map(Ve=>({label:Ve,kind:He.languages.CompletionItemKind.Variable,insertText:Ve})),Ce=(He,Ve)=>{const Je=ue.tables[He];return Je?Je.map(ct=>({label:ct,kind:Ve.languages.CompletionItemKind.Field,insertText:ct})):[]};function Fe(He,Ve,Je,ct,yt){let ft=Ve.getWordUntilPosition(Je),Mt={startLineNumber:Je.lineNumber,endLineNumber:Je.lineNumber,startColumn:ft.startColumn,endColumn:ft.endColumn},Jt=ct.map(Vt=>({label:Vt,kind:He.languages.CompletionItemKind.Keyword,insertText:Vt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Mt}));return yt.map(Vt=>{Jt.push(re(ae({},Vt),{range:Mt}))}),Jt}var Ae=He=>{ue.languages.map(yt=>(He.languages.registerDocumentFormattingEditProvider(yt,{provideDocumentFormattingEdits(ft,Mt,Jt){return le(this,null,function*(){const Vt=Ee()(ft.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:ft.getFullModelRange(),text:Vt}]})}}),yt));const Ve=Ie.quickKey.map(yt=>({label:yt.label,kind:He.languages.CompletionItemKind.Method,insertText:yt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Je=ge.quickKey.map(yt=>({label:yt.label,kind:He.languages.CompletionItemKind.Method,insertText:yt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ct=_e.quickKey.map(yt=>({label:yt.label,kind:He.languages.CompletionItemKind.Method,insertText:yt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet}));He.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Vt=yt.getLineContent(ft.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...Ie.keywords.map(Kt=>({label:Kt,kind:He.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt})),...Ie.quickKey.map(Kt=>({label:Kt.label,kind:He.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}}),He.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn};return{suggestions:[...ie.keywords.map(Vt=>({label:Vt,kind:He.languages.CompletionItemKind.Function,documentation:Vt,insertText:Vt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}}),He.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Vt=yt.getLineContent(ft.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[..._e.keywords.map(Kt=>({label:Kt,kind:He.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt})),..._e.quickKey.map(Kt=>({label:Kt.label,kind:He.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}}),He.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Vt=yt.getLineContent(ft.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...ce.keywords.map(Kt=>({label:Kt,kind:He.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt})),...ce.quickKey.map(Kt=>({label:Kt.label,kind:He.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}}),He.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(yt,ft){var Mt=yt.getWordUntilPosition(ft),Jt={startLineNumber:ft.lineNumber,endLineNumber:ft.lineNumber,startColumn:Mt.startColumn,endColumn:Mt.endColumn},Vt=yt.getLineContent(ft.lineNumber).substring(Mt.startColumn-2,Mt.endColumn);return{suggestions:[...ge.keywords.map(Kt=>({label:Kt,kind:He.languages.CompletionItemKind.Function,documentation:Kt,insertText:Kt,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt})),...ge.quickKey.map(Kt=>({label:Kt.label,kind:He.languages.CompletionItemKind.Function,documentation:Kt.content,insertText:Vt.startsWith("#")?Kt.content.replace(/#/,""):Kt.content,insertTextRules:He.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Jt}))]}}})};const je="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ne=Object.defineProperty,Be=(He,Ve,Je)=>Ve in He?Ne(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Je}):He[Ve]=Je,ze=(He,Ve,Je)=>Be(He,typeof Ve!="symbol"?Ve+"":Ve,Je);const Qe=class mx{constructor(Ve,Je,ct){this.placeholder=Ve,this.editor=Je,this.monaco=ct,Je.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};ze(Qe,"ID","editor.widget.placeholderHint");var Ye=Qe,at=Ge(96236),ut=Ge(8591),ht=Ge(6848),Ct=Ge(89392),et=Ge(34604),it=Ge(56102),St=Object.defineProperty,bt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,kt=(He,Ve,Je)=>Ve in He?St(He,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Je}):He[Ve]=Je,Et=(He,Ve)=>{for(var Je in Ve||(Ve={}))dt.call(Ve,Je)&&kt(He,Je,Ve[Je]);if(gt)for(var Je of gt(Ve))mt.call(Ve,Je)&&kt(He,Je,Ve[Je]);return He},Ut=(He,Ve)=>bt(He,Pt(Ve)),wt=(He,Ve)=>{var Je={};for(var ct in He)dt.call(He,ct)&&Ve.indexOf(ct)<0&&(Je[ct]=He[ct]);if(He!=null&>)for(var ct of gt(He))Ve.indexOf(ct)<0&&mt.call(He,ct)&&(Je[ct]=He[ct]);return Je},pt=(He,Ve,Je)=>new Promise((ct,yt)=>{var ft=Vt=>{try{Jt(Je.next(Vt))}catch(Kt){yt(Kt)}},Mt=Vt=>{try{Jt(Je.throw(Vt))}catch(Kt){yt(Kt)}},Jt=Vt=>Vt.done?ct(Vt.value):Promise.resolve(Vt.value).then(ft,Mt);Jt((Je=Je.apply(He,Ve)).next())});function tt(He){return/^\d+$/.test(He)?`${He}px`:He}function Ze(){}let we=!1;const be={"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 Ke(He=[]){let Ve=He;if(Array.isArray(He)){for(let Je=0;Je{var Ve=He,{width:Je="100%",height:ct="100%",value:yt,language:ft="javascript",style:Mt={},options:Jt={},overrideServices:Vt={},theme:Kt="vs-dark",onEditBlur:Ht,isCopy:tn=!1,onSave:It,autoHeight:Dt=!1,forbidCopy:qt=!1,onChange:sn=Ze,editorDidMount:xn=Ze,onFocus:Ln=Ze,onBreakPoint:Zn=Ze,breakPointValue:Xn=[],filename:dr="educoder.txt",errorLine:fr,errorContent:pr="",highlightLine:Cr,openBreakPoint:Yr=!1,placeholder:ii=""}=Ve,jr=wt(Ve,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const fi=(0,rt.useRef)(),Lr=(0,rt.useRef)({}),ot=(0,rt.useRef)(),oi=(0,rt.useRef)(),yi=(0,rt.useRef)([]),Pi=(0,rt.useRef)(!1),sr=(0,rt.useRef)(),Ar=(0,rt.useRef)(),Fr=(0,rt.useRef)(!1),[Si,Nr]=(0,rt.useState)(!1);function hn(){let nn;return fi.current&&(nn=new vt.Z(Cn=>{for(let rn of Cn)(rn.target.offsetHeight>0||rn.target.offsetWidth>0)&&Lr.current.instance.layout()}),nn.observe(fi.current)),nn}function cn(){ut.ZP.warning({content:decodeURIComponent(je),key:"monaco-editor-tip"})}const Ot=()=>{let nn=Lr.current.instance;if(yt!=null&&nn&&Si){const Cn=nn.getModel();Cn&&yt!==Cn.getValue()&&(we=!0,Cn.setValue(yt),nn.layout(),we=!1)}};(0,rt.useEffect)(()=>{const nn=et.Z.subscribe("formatDocument",Cn=>{var rn;let mn=Lr.current.instance;(rn=mn==null?void 0:mn.getAction)==null||rn.call(mn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{sn(Cn)},nn},[]),(0,rt.useEffect)(()=>{var nn;let Cn=Lr.current.instance;oi.current&&clearTimeout(oi.current),oi.current=setTimeout(()=>{Ot()},500),yt&&(yt!=null&&yt.length)&&((nn=Cn==null?void 0:Cn.updateOptions)==null||nn.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(yt.split(/\r\n|\r|\n/g).length))+3,5)}))},[yt,Si,Lr.current]),(0,rt.useEffect)(()=>{if(fr&&Lr.current&&Lr.current.instance){let Cn=Lr.current.instance;Cn.changeViewZones(function(rn){var mn=document.createElement("div");mn.style.padding="10px 20px",mn.style.width="calc(100% - 20px)",mn.className="my-error-line-wrp",mn.innerHTML=pr,rn.addZone({afterLineNumber:fr||11,heightInLines:3,domNode:mn})});var nn={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}};Cn.addOverlayWidget(nn),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[fr,Lr.current,Si]);const gn=(nn="",Cn)=>{if(!nn||nn.trim()==="")return!0;const mn=Lr.current.instance.getModel().getLineTokens(Cn);let En=!1;for(let pn=0;pn<2;pn++)mn.getStandardTokenType(pn)===1&&(En=!0);return En};(0,rt.useEffect)(()=>{var nn;const Cn=(nn=Lr.current)==null?void 0:nn.instance;if(Cn&&Si&&qt){const rn=Cn.onDidBlurEditorWidget(()=>{Fr.current=!1}),mn=Cn.onDidFocusEditorText(()=>{Fr.current=!0});return()=>{rn.dispose(),mn.dispose()}}},[Lr.current,Si,qt]),(0,rt.useEffect)(()=>{var nn;if((nn=Lr.current)!=null&&nn.instance&&Si&&Yr){let Cn=Lr.current.instance,rn=Cn.getModel();if(!rn)return;(()=>{var Rr;let vn=[],Jn=[];const lr=rn.getAllDecorations();for(let Sr of lr)Sr.options.className==="highlighted-line"&&(vn.push((Rr=Sr==null?void 0:Sr.range)==null?void 0:Rr.startLineNumber),Jn.push(Sr==null?void 0:Sr.id));if(Cr===vn[0])return;rn.deltaDecorations(Jn,[]);const vr=rn.getLineCount();Cr&&Cr<=vr&&(Cn.deltaDecorations([],[{range:new Xe.Range(Cr,1,Cr,rn.getLineMaxColumn(Cr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(Cr))})();const En=(Rr=!1)=>{var vn;let Jn=[],lr=[];const vr=rn.getAllDecorations();for(let Sr of vr)Sr.options.linesDecorationsClassName==="breakpoints-select"&&(Jn.push((vn=Sr==null?void 0:Sr.range)==null?void 0:vn.startLineNumber),lr.push(Sr==null?void 0:Sr.id));if(Rr)return{lines:Jn,ids:lr};Zn(Jn)},pn=Rr=>pt(void 0,null,function*(){let vn={range:new Xe.Range(Rr,1,Rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield rn.deltaDecorations([],[vn]),En()}),kn=Rr=>pt(void 0,null,function*(){let vn=[];const Jn=Cn.getLineDecorations(Rr);for(let lr of Jn)lr.options.linesDecorationsClassName==="breakpoints-select"&&vn.push(lr.id);yield rn.deltaDecorations(vn,[]),En()}),Mn=Rr=>{let vn=Cn.getLineDecorations(Rr);for(let Jn of vn)if(Jn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ct.isEqual)(Xn,En(!0).lines)){rn.deltaDecorations(En(!0).ids,[]);const Rr=Xn.map(vn=>({range:new Xe.Range(vn,1,vn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));rn.deltaDecorations([],Rr)}const zn=Cn.onDidChangeModelContent(Rr=>{let vn=Cn.getPosition();if(vn){let Jn=vn.lineNumber;clearTimeout(Ar.current),Ar.current=setTimeout(()=>{gn(rn.getLineContent(Jn),Jn)?kn(Jn):Mn(Jn)?(kn(Jn),pn(Jn)):En()},100)}}),Dn=Cn.onMouseDown(Rr=>{var vn,Jn,lr;if(Rr.target.detail&&((lr=(Jn=(vn=Rr.target)==null?void 0:vn.element)==null?void 0:Jn.className)!=null&&lr.includes("line-numbers"))){let vr=Rr.target.position.lineNumber;if(gn(rn.getLineContent(vr),vr))return;Mn(vr)?kn(vr):pn(vr)}}),ar=Rr=>{let vn={range:new Xe.Range(Rr,1,Rr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};yi.current=Cn.deltaDecorations(yi.current,[vn])},dn=()=>{yi.current=Cn.deltaDecorations(yi.current,[])},Or=Cn.onMouseMove(Rr=>{var vn,Jn,lr;if(dn(),Rr.target.detail&&((lr=(Jn=(vn=Rr.target)==null?void 0:vn.element)==null?void 0:Jn.className)!=null&&lr.includes("line-numbers"))){let vr=Rr.target.position.lineNumber;if(gn(rn.getLineContent(vr),vr))return;ar(vr)}}),Jr=Cn.onMouseLeave(()=>{dn()});return()=>{zn.dispose(),Dn.dispose(),Or.dispose(),Jr.dispose()}}},[Lr.current,Si,Xn,Cr,Yr,ft]),(0,rt.useEffect)(()=>{var nn;(nn=Lr.current)!=null&&nn.instance&&Yr&&Lr.current.instance.setPosition({lineNumber:0,column:0})},[Cr]);function Nn(){let nn=Lr.current.instance;if(nn){const Cn=nn.getSelection(),rn=Lr.current.pastePos||{},mn=new Xe.Range(rn.startLineNumber||Cn.endLineNumber,rn.startColumn||Cn.endColumn,rn.endLineNumber||Cn.endLineNumber,rn.endColumn||Cn.endColumn);setTimeout(()=>{nn.executeEdits("",[{range:mn,text:""}])},300)}}function Xt(nn){(window.navigator.platform.match("Mac")?nn.metaKey:nn.ctrlKey)&&nn.keyCode==83&&(nn.preventDefault(),It())}const zt=()=>{if(Dt&&Lr.current.instance){const nn=Lr.current.instance.getContentHeight();Wn(nn{if(!Fr.current)return;const{keyCode:Cn,ctrlKey:rn,metaKey:mn,target:En,type:pn}=nn;return(pn==="paste"||(Cn===67||Cn===86)&&(mn||rn))&&En.nodeName==="TEXTAREA"&&(cn(),nn.preventDefault()),!1};function qn(nn,Cn){var rn=window.URL||window.webkitURL||window,mn=new Blob([Cn]),En=document.createElementNS("http://www.w3.org/1999/xhtml","a");En.href=rn.createObjectURL(mn),En.download=nn,Pn(En)}(0,rt.useEffect)(()=>{zt()},[zt]),(0,rt.useEffect)(()=>{fi.current&&!Si&&Promise.all([Ge.e(8909),Ge.e(3267)]).then(Ge.bind(Ge,71448)).then(nn=>{try{Xe=nn,Lr.current.instance=Xe.editor.create(fi.current,{value:yt,language:Ke(ft),theme:Kt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Vt);const Cn=Lr.current.instance;let En=[...at.BH._menuItems].find(zn=>zn[0]._debugName=="EditorContext")[1],pn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],kn=(zn,Dn)=>{var ar,dn;let Or=zn._first;do Dn.includes((dn=(ar=Or.element)==null?void 0:ar.command)==null?void 0:dn.id)&&zn._remove(Or);while(Or=Or.next)};if(xn(Cn,Xe),setTimeout(()=>{zt(),Lr.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{qn(dr||"educoder.txt",Cn.getValue())}})},500),Lr.current.subscription=Cn.onDidChangeModelContent(zn=>{Pi.current?clearTimeout(sr.current):(zt(),sn(Cn.getValue(),zn)),sr.current=setTimeout(()=>{Pi.current=!1},500)}),window.Monaco||Ae(Xe,Ke(ft)),qt&&(kn(En,pn),fi.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",_n),window.removeEventListener("paste",_n),window.addEventListener("keydown",_n),window.addEventListener("paste",_n)),window.Monaco=Xe,Ht&&Cn.onDidBlurEditorWidget(()=>{Ht(Cn.getValue())}),Ln&&Cn.onDidFocusEditorText(()=>{Ln(Cn.getValue())}),qt)try{Cn.onDidPaste(zn=>{const Dn=Cn.getSelection(),ar=Lr.current.pastePos||{},dn=new Xe.Range(ar.startLineNumber||Dn.endLineNumber,ar.startColumn||Dn.endColumn,ar.endLineNumber||Dn.endLineNumber,ar.endColumn||Dn.endColumn);Cn.executeEdits("",[{range:zn.range,text:""}])})}catch(zn){}let Mn=hn();return ii&&typeof ii=="string"&&new Ye(ii,Cn,Xe),Nr(!0),()=>{const zn=Lr.current.instance;zn.dispose();const Dn=zn.getModel();Dn&&Dn.dispose(),Lr.current.subscription&&Lr.current.subscription.dispose(),Mn.unobserve(fi.current)}}catch(Cn){}})},[]),(0,rt.useEffect)(()=>{if(Lr.current.instance&&Si)return document.addEventListener("keydown",Xt,!1),()=>{document.removeEventListener("keydown",Xt)}},[It,Si]),(0,rt.useEffect)(()=>{let nn=Lr.current.instance;if(nn&&Si){let Cn=Ke(ft);Xe.editor.setModelLanguage(nn.getModel(),Cn)}},[ft,Si]),(0,rt.useEffect)(()=>{Lr.current.instance&&Si&&Xe.editor.setTheme(Kt)},[Kt,Si]),(0,rt.useEffect)(()=>{let nn=Lr.current.instance;ot.current=Jt,nn&&Si&&(nn.updateOptions(Et({},Jt)),setTimeout(()=>{nn.getModel().updateOptions(Et({},Jt))},200))},[JSON.stringify(Jt),Si]),(0,rt.useEffect)(()=>{let nn=Lr.current.instance;nn&&Si&&nn.layout()},[Je,ct,Si]);const[Yn,$t]=(0,rt.useState)(tt(Je)),[jn,Wn]=(0,rt.useState)(tt(ct)),or=Ut(Et({},Mt),{width:Yn,height:jn,position:"relative"});return rt.createElement("div",{className:"my-monaco-editor",ref:fi,style:or},tn&&rt.createElement(it.CopyToClipboard,{text:yt,onCopy:()=>ut.ZP.success("\u590D\u5236\u6210\u529F")},rt.createElement(ht.Z,{title:"\u590D\u5236\u4EE3\u7801"},rt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},rt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ue({width:He="100%",height:Ve="100%",original:Je,modified:ct,language:yt,options:ft={}}){const Mt=(0,rt.useRef)(),[Jt,Vt]=(0,rt.useState)(null);function Kt(Dt){let qt;return Mt.current&&(qt=new vt.Z(sn=>{for(let xn of sn)(xn.target.offsetHeight>0||xn.target.offsetWidth>0)&&Dt.layout()}),qt.observe(Mt.current)),qt}(0,rt.useEffect)(()=>(Mt.current&&Promise.all([Ge.e(8909),Ge.e(9404)]).then(Ge.bind(Ge,2550)).then(Dt=>{Xe=Dt;const qt=Xe.editor.createDiffEditor(Mt.current,Ut(Et({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},ft),{wordWrap:!0}));Vt(qt);let sn=Kt(qt);return()=>{qt.dispose();const xn=qt.getModel();xn&&xn.dispose(),sn.unobserve(Mt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,rt.useEffect)(()=>{Jt&&Jt.setModel({original:Xe.editor.createModel(Je,yt),modified:Xe.editor.createModel(ct,yt)})},[Je,ct,yt,Jt]);const Ht=tt(He),tn=tt(Ve),It={width:Ht,height:tn};return rt.createElement("div",{className:"my-diff-editor",ref:Mt,style:It})}},16869:function(bn,an,Ge){"use strict";var rt=Ge(38476),vt=Ge(57809),ie=Ge(78673),_e=Ge(59301);const Ie=vt.default.Option;an.Z=({isTheoretical:ge,onFontSizeChange:ce,cmFontSize:Pe,cmCodeMode:Ee,autoFormat:ye,onCodeModeChange:Me,onTabToSpace:ve,onAutoFormat:xe,formatDocument:fe,className:z="",tabToSpace:ee,children:ae,code_editor:re,challenge:le})=>{const ue={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return _e.createElement("div",{className:`tpi-code-setting ${z}`},_e.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),_e.createElement("section",null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),_e.createElement(vt.default,{bordered:!1,size:"small",value:Ee,onChange:Me},_e.createElement(Ie,{value:"vs"},"\u767D\u8272\u80CC\u666F"),_e.createElement(Ie,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ge&&_e.createElement(_e.Fragment,null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),_e.createElement(vt.default,{bordered:!1,size:"small",value:Pe,onChange:ce},_e.createElement(Ie,{value:12},"12px"),_e.createElement(Ie,{value:14},"14px"),_e.createElement(Ie,{value:16},"16px"),_e.createElement(Ie,{value:18},"18px"),_e.createElement(Ie,{value:20},"20px"),_e.createElement(Ie,{value:22},"22px"))),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"Tab\u8F6C\u6362"),_e.createElement(ie.Z,{checked:ee,onChange:ve})),_e.createElement("div",{className:"file-item",onClick:fe},_e.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ge&&_e.createElement(_e.Fragment,null,_e.createElement("h3",null,"\u5FEB\u6377\u952E"),_e.createElement("section",null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),_e.createElement("span",null,"Ctrl + S")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),_e.createElement("span",null,"F1 / Alt + F1")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),_e.createElement("span",null,"Ctrl + ]/[")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),_e.createElement("span",null,"Ctrl + Shift + \\")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),_e.createElement("span",null,"Home")),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),_e.createElement("span",null,"End"))),ae),!ge&&_e.createElement(_e.Fragment,null,_e.createElement("h3",null,"\u5FEB\u6377\u952E"),_e.createElement("section",null,_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),_e.createElement("span",null,ue[le==null?void 0:le.difficulty])),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),_e.createElement("span",null,re==null?void 0:re.name)),_e.createElement("div",{className:"file-item"},_e.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),_e.createElement("span",null,re!=null&&re.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},58856:function(bn,an,Ge){"use strict";Ge.d(an,{Z:function(){return vt}});var rt=Ge(59301);function vt(ie,_e){const Ie=(0,rt.useRef)();(0,rt.useEffect)(()=>{Ie.current=ie}),(0,rt.useEffect)(()=>{function ge(){Ie.current()}if(_e!==null){let ce=setInterval(ge,_e);return()=>clearInterval(ce)}},[_e])}},95480:function(bn,an,Ge){"use strict";Ge.r(an),Ge.d(an,{Types:function(){return Lr},default:function(){return yi}});var rt=Ge(59301),vt={header:"header___N_IdR",field:"field___XG_dh","oj-form-container":"oj-form-container___syYzK","oj-left-panel":"oj-left-panel___L082x","oj-form-info":"oj-form-info___q0IU5",footer:"footer___pGCM2",result:"result___LM9Ms",passText:"passText___nUoL4",noPassText:"noPassText___ECHHG",pass:"pass___tDubp",noPass:"noPass___ilYvg","test-case-name":"test-case-name___MI_KD","btn-remove-case":"btn-remove-case___OiaTQ","icon-tag":"icon-tag___D86WO",btn_back:"btn_back___FyaSY",testJi:"testJi___NDviK",upBtn:"upBtn___FiZX4","oj-problems":"oj-problems___xb70g",row:"row___v036E",a:"a___yRaYH",b:"b___gWQyu",inputTwo:"inputTwo___IZ9og",inputOne:"inputOne____NmcT",cusModal:"cusModal___fJ5gm","oj-custom-large-spin":"oj-custom-large-spin___Aar0g",MdEditor:"MdEditor___hgoes"},ie=Ge(92832),_e=Ge(43418),Ie=Ge(36381),ge=Ge(78241),ce=Ge(8591),Pe=Ge(95237),Ee=Ge(43604),ye=Ge(71418),Me=Ge(3113),ve=Ge(1710),xe=Ge(57809),fe=Ge(5871),z=Ge(5112),ee=Ge(24905),ae=Ge(81327),re=Ge(14478),le=Ge(59301);const{Option:ue}=xe.default;var pe=(sr=>(sr[sr.language=0]="language",sr[sr.difficulty=1]="difficulty",sr[sr.category=2]="category",sr[sr.openOrNot=3]="openOrNot",sr))(pe||{});const Te={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u9002\u4E2D",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function Ce(sr){return Te[sr].map(Ar=>le.createElement(ue,{key:Ar.title,value:Ar.key}," ",Ar.title," "))}function Fe(sr,Ar){sr.map(Fr=>{const{id:Si,name:Nr,sub_disciplines:hn}=Fr;let cn={value:Si,label:Nr};Ar.push(cn),hn&&hn.length>0&&(cn.children=[],Fe(hn,cn.children))})}function Ae(sr,Ar){var Fr;let Si=[];for(let Nr=0;Nr0){Si[0]=hn.id;for(let cn=0;cnAr in sr?kt(sr,Ar,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):sr[Ar]=Fr,we=(sr,Ar)=>{for(var Fr in Ar||(Ar={}))pt.call(Ar,Fr)&&Ze(sr,Fr,Ar[Fr]);if(wt)for(var Fr of wt(Ar))tt.call(Ar,Fr)&&Ze(sr,Fr,Ar[Fr]);return sr},be=(sr,Ar)=>Et(sr,Ut(Ar));const Ke={theme:(0,dt.G)("cmCodeMode","vs-dark"),fontSize:(0,dt.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,dt.G)("cmTabToSpace",!0)};var Xe=(sr=>(sr[sr.set_font_size=0]="set_font_size",sr[sr.set_theme=1]="set_theme",sr[sr.on_tab_to_space=2]="on_tab_to_space",sr[sr.set_show_editor_setting=3]="set_show_editor_setting",sr))(Xe||{});function Oe(sr,Ar){switch(Ar.type){case 3:return be(we({},sr),{showEditorSetting:Ar.payload});case 1:return be(we({},sr),{theme:Ar.payload});case 0:return be(we({},sr),{fontSize:Ar.payload});case 2:return be(we({},sr),{tabToSpace:Ar.payload});default:throw new Error}}var Ue=({value:sr,onChange:Ar,language:Fr,onLanguage:Si,languageItems:Nr,ActionBarRender:hn=cn=>rt.createElement(He,{languageItems:Nr,onLanguage:Si,language:Fr,onShowCodeSetting:cn})})=>{const[cn,Ot]=(0,rt.useReducer)(Oe,Ke),{theme:gn,fontSize:Nn,showEditorSetting:Xt,tabToSpace:zt}=cn;console.log(sr,Fr,"value");const Pn={onFontSizeChange:$t=>{Ot({type:0,payload:$t}),(0,dt.t)("cmFontSize",$t)},tabToSpace:zt,cmFontSize:Nn,className:"oj",cmCodeMode:gn,onTabToSpace:$t=>{Ot({type:2,payload:$t}),(0,dt.t)("cmTabToSpace",$t)},onCodeModeChange:$t=>{Ot({type:1,payload:$t}),(0,dt.t)("cmCodeMode",$t)}};function _n(){Ot({type:3,payload:!1})}function qn(){Ot({type:3,payload:!0})}const Yn={value:sr,language:Fr,onChange:Ar,theme:gn,height:"calc(100% - 56px)",options:{fontSize:Nn,insertSpaces:zt}};return rt.createElement(rt.Fragment,null,rt.createElement("div",{className:mt["code-panel-container"]},hn(qn),rt.createElement(bt.ZP,we({key:Fr},Yn))),rt.createElement(gt.Z,null,rt.createElement(St.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Xt,onClose:_n},rt.createElement(Pt.Z,we({},Pn)))))};function He({languageItems:sr,language:Ar,onShowCodeSetting:Fr,onLanguage:Si}){return rt.createElement("div",{className:mt["action-oj-bar"]},sr==null?void 0:sr.map(Nr=>rt.createElement("div",{className:Ar===(Nr==null?void 0:Nr.language)?mt.active:"",onClick:()=>Si(Nr==null?void 0:Nr.language),key:Nr==null?void 0:Nr.language},Nr==null?void 0:Nr.language)),rt.createElement("a",{onClick:Fr},rt.createElement("i",{className:"iconfont icon-shezhi"})))}var Ve=Ge(99313),Je={flex_box_center:"flex_box_center___4yAaY",flex_space_between:"flex_space_between___YaUgM",flex_box_vertical_center:"flex_box_vertical_center___zR3dp",flex_box_center_end:"flex_box_center_end___rwgS5",flex_box_column:"flex_box_column___LhFeP",wrap:"wrap___xTL91",in:"in___eSY86",btns:"btns___UdEGI",customModal:"customModal___CL0OL"},ct=(sr,Ar,Fr)=>new Promise((Si,Nr)=>{var hn=gn=>{try{Ot(Fr.next(gn))}catch(Nn){Nr(Nn)}},cn=gn=>{try{Ot(Fr.throw(gn))}catch(Nn){Nr(Nn)}},Ot=gn=>gn.done?Si(gn.value):Promise.resolve(gn.value).then(hn,cn);Ot((Fr=Fr.apply(sr,Ar)).next())}),ft=({visible:sr,onOK:Ar,onCancel:Fr})=>{const[Si,Nr]=(0,rt.useState)(!1),[hn,cn]=(0,rt.useState)(!1),[Ot,gn]=(0,rt.useState)("1"),[Nn,Xt]=(0,rt.useState)(""),[zt,Pn]=(0,rt.useState)([]),_n=()=>ct(void 0,null,function*(){if(!Nn){ce.ZP.warning(`\u9898\u76EE${Wn}\u4E0D\u80FD\u4E3A\u7A7A`);return}cn(!0);const or=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:sr,name:Nn}});if((or==null?void 0:or.status)===0){Ar();return}cn(!1)}),qn=(or="")=>ct(void 0,null,function*(){Nr(!0);let nn=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:sr,search:or}});Pn(nn.tag_disciplines||[]),Nr(!1)}),Yn=or=>{let nn=or.name;_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u91CD\u547D\u540D",content:rt.createElement("div",null,rt.createElement(ie.default,{defaultValue:nn,placeholder:`\u8BF7\u8F93\u5165${Wn}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20,onChange:Cn=>{nn=Cn.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>ct(void 0,null,function*(){if(!nn)return ce.ZP.warning(`\u9898\u76EE${Wn}\u4E0D\u80FD\u4E3A\u7A7A`),Promise.reject();const Cn=yield(0,$e.ZP)(`/api/tag_disciplines/${or.id}/rename.json`,{method:"post",body:{id:or.id,name:nn}});(Cn==null?void 0:Cn.status)===0&&qn()})})},$t=or=>{_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:570,title:"\u5220\u9664",content:sr==="practice"?rt.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u6765\u6E90\u201C",rt.createElement("span",{className:"c-light-primary"},or.name),"\u201D\u5220\u9664\u5417\uFF1F",rt.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u6765\u6E90\u8FDB\u884C\u6E05\u9664\u3002"):rt.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u77E5\u8BC6\u70B9\u201C",rt.createElement("span",{className:"c-light-primary"},or.name),"\u201D\u5220\u9664\u5417\uFF1F",rt.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u77E5\u8BC6\u70B9\u8FDB\u884C\u6E05\u9664\u3002"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>ct(void 0,null,function*(){const nn=yield(0,$e.ZP)(`/api/tag_disciplines/${or.id}.json`,{method:"delete",body:{id:or.id}});(nn==null?void 0:nn.status)===0&&qn()})})},jn=or=>{qn(or)},Wn=sr==="practice"?"\u77E5\u8BC6\u70B9":"\u6765\u6E90";return rt.createElement(_e.default,{afterClose:()=>{cn(!1),Nr(!1),Xt(""),gn("1"),Pn([])},centered:!0,keyboard:!1,width:600,title:`${Wn}\u7BA1\u7406`,open:!!sr,className:Je.customModal,footer:null,onCancel:Fr},rt.createElement("section",{className:Je.wrap},rt.createElement(Ve.default,{activeKey:Ot,onChange:or=>{Xt(""),gn(or),qn()}},rt.createElement(Ve.default.TabPane,{tab:`\u65B0\u589E${Wn}`,key:"1"},rt.createElement(ie.default,{value:Nn,onChange:or=>Xt(or.target.value),className:Je.in,placeholder:`\u8F93\u5165${Wn}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20}),rt.createElement("div",{className:Je.btns},rt.createElement(Me.ZP,{onClick:Fr,className:"mr20"},"\u53D6\u6D88 "),rt.createElement(Me.ZP,{loading:hn,onClick:_n,type:"primary"},"\u786E\u8BA4\u65B0\u5EFA"))),rt.createElement(Ve.default.TabPane,{tab:`\u5DF2\u6709${Wn}`,key:"2"},rt.createElement(ie.default.Search,{allowClear:!0,onSearch:jn,value:Nn,onChange:or=>Xt(or.target.value),className:Je.in,placeholder:`\u8F93\u5165${Wn}\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2`}),rt.createElement(ve.default,{dataSource:zt,bordered:!1,loading:Si,scroll:zt.length>7?{y:300}:{},style:{padding:"0 0px 20px 0px"},columns:[{title:`${Wn}\u540D\u79F0`,dataIndex:"name",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"action",width:120,render:(or,nn)=>rt.createElement("span",null,rt.createElement("span",{onClick:()=>Yn(nn),className:"current mr10 c-light-primary"},"\u91CD\u547D\u540D"),rt.createElement("span",{onClick:()=>$t(nn),className:"current c-grey-666"},"\u5220\u9664"))}],pagination:!1})))))},Mt=Ge(3294),Jt=Ge(72161),Vt=Ge(61186),Kt=Ge.n(Vt),Ht=Ge(955),tn=Ge(85149),It=Ge(24065),Dt=Ge(59301),qt=Object.defineProperty,sn=Object.defineProperties,xn=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,dr=(sr,Ar,Fr)=>Ar in sr?qt(sr,Ar,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):sr[Ar]=Fr,fr=(sr,Ar)=>{for(var Fr in Ar||(Ar={}))Zn.call(Ar,Fr)&&dr(sr,Fr,Ar[Fr]);if(Ln)for(var Fr of Ln(Ar))Xn.call(Ar,Fr)&&dr(sr,Fr,Ar[Fr]);return sr},pr=(sr,Ar)=>sn(sr,xn(Ar)),Cr=(sr,Ar,Fr)=>new Promise((Si,Nr)=>{var hn=gn=>{try{Ot(Fr.next(gn))}catch(Nn){Nr(Nn)}},cn=gn=>{try{Ot(Fr.throw(gn))}catch(Nn){Nr(Nn)}},Ot=gn=>gn.done?Si(gn.value):Promise.resolve(gn.value).then(hn,cn);Ot((Fr=Fr.apply(sr,Ar)).next())});const{TextArea:Yr}=ie.default,{confirm:ii}=_e.default,{Panel:jr}=Ie.default,fi={loading:!0,user:null,status:0,data:void 0,lastedUpdateTime:0};var Lr=(sr=>(sr[sr.SET_INITAL_DATA=0]="SET_INITAL_DATA",sr[sr.SET_LOADING=1]="SET_LOADING",sr[sr.SET_STATUS=2]="SET_STATUS",sr))(Lr||{});const ot="#### \u9898\u76EE\u63CF\u8FF0\n\u73B0\u6709\u4E00\u4E2A\u6574\u578B\u6570\u7EC4 `nums`\uFF0C\u8BF7\u7F16\u5199\u7A0B\u5E8F\u5C06\u6570\u7EC4 `nums` \u4E2D\u7684\u6240\u6709 `$$0$$` \u79FB\u52A8\u5230\u6570\u7EC4\u7684\u672B\u5C3E\uFF0C\u4F46\u4E0D\u6539\u53D8\u975E\u96F6\u5143\u7D20\u5728\u6570\u7EC4\u4E2D\u7684\u76F8\u5BF9\u4F4D\u7F6E\u3002\u8BF7\u5728\u539F\u6570\u7EC4 `nums` \u4E0A\u8FDB\u884C\u64CD\u4F5C\u3002\n#### \u8F93\u5165\u8F93\u51FA\u683C\u5F0F\n**\u8F93\u5165\u683C\u5F0F**\n\u7B2C\u4E00\u884C\u6709\u4E00\u4E2A\u6574\u6570 `numsSize`\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u5927\u5C0F\uFF1B\n\u7B2C\u4E8C\u884C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n**\u8F93\u51FA\u683C\u5F0F**\n\u4E00\u884C\u8F93\u51FA\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B1\n**\u8F93\u5165**\n`4`\n`0 1 2 3`\n**\u8F93\u51FA**\n`1 2 3 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B2\n**\u8F93\u5165**\n`5`\n`1 1 0 1 0`\n**\u8F93\u51FA**\n`1 1 1 0 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8BF4\u660E\u63D0\u793A\n-`1\u2264n\u2264100`";function oi(sr,Ar){switch(Ar.type){case 0:return fr(fr({},sr),Ar.payload);case 1:return pr(fr({},sr),{loading:Ar.payload});case 2:return pr(fr({},sr),{status:Ar.payload});default:throw new Error}}var yi=()=>{var sr,Ar,Fr;const Si=(0,je.useLocation)(),{id:Nr}=(0,je.useParams)(),[hn]=ge.default.useForm(),[cn,Ot]=(0,rt.useState)(),[gn,Nn]=(0,rt.useState)(!1),[Xt,zt]=(0,rt.useState)([]),[Pn,_n]=(0,rt.useState)([]),[qn,Yn]=(0,rt.useState)([]),[$t,jn]=(0,rt.useState)([]),[Wn,or]=(0,rt.useState)([]),[nn,Cn]=(0,rt.useState)("C"),[rn,mn]=(0,rt.useReducer)(oi,fi),{loading:En,data:pn,user:kn,status:Mn}=rn,zn=pn==null?void 0:pn.hack_sets,Dn=(sr=pn==null?void 0:pn.hack)==null?void 0:sr.test_set_average,[ar,dn]=(0,rt.useState)(!1),Or=(0,rt.useRef)([]),[Jr,Rr]=(0,rt.useState)(!1),[vn,Jn]=(0,rt.useState)(!1),lr=(0,rt.useRef)(!0),[vr,Sr]=(0,rt.useState)({});(0,rt.useEffect)(()=>((0,je.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,je.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,je.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,je.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,rt.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)});const Kr=()=>Cr(void 0,null,function*(){const _r=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice"}}),Ir=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source"}});_n(_r.tag_disciplines||[]),Yn(Ir.tag_disciplines||[])});var ai=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}];const Br=(0,rt.useCallback)(()=>Cr(void 0,null,function*(){if(mn({type:1,payload:!0}),Nr){const _r=yield ut(Nr),{user:Ir,language:_i,practice_sets:Ji,practice_codes:zr,description:Vr,difficulty:Ci,name:mi,open_or_not:Vi,time_limit:io,test_set_average:Hr,test_set_score:Er,status:Kn,tag_discipline_ids:li,source_discipline_ids:Qi,item_banks_group_id:zo,is_file:Mo=!1,hide_actual_output:Uo,review_privilege:ca,review_description:Jo,submit_rule:qa}=_r;Sr({review_privilege:ca,status:Kn,review_description:Jo,name:mi}),dn(Uo);const es=Mo?[{input:"",output:"",score:100,position:1}]:Ji;Mo?(zt(Ji),hn.setFieldsValue({hack_sets:es})):zt([]),mn({type:0,payload:{loading:!0,user:Ir,status:Kn,data:{hack:{difficulty:Ci,name:mi,description:Vr,open_or_not:Vi,time_limit:io,test_set_average:Hr,test_set_score:Er,tag_discipline_ids:li,source_discipline_ids:Qi,is_file:Mo,submit_rule:qa},hack_sets:es}}}),Ot({hack:{difficulty:Ci,name:mi,description:Vr,open_or_not:Vi,time_limit:io,test_set_average:Hr,test_set_score:Er,tag_discipline_ids:li,source_discipline_ids:Qi,is_file:Mo}});const ma=zr==null?void 0:zr.map(Ql=>pr(fr({},Ql),{code:Ne.Base64.decode(Ql==null?void 0:Ql.code)}));or(ma),Or.current=ma}else{const{user:_r}=yield at();mn({type:0,payload:{loading:!0,status:0,user:_r,data:{hack:{difficulty:"",time_limit:3,description:ot,test_set_score:!0,test_set_average:!0,open_or_not:!0,name:"",is_file:!1,submit_rule:1},hack_sets:[{input:"",output:"",score:100,position:1}]}}}),Ot({hack:{difficulty:"",time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",is_file:!1}}),or(ai),Or.current=ai}mn({type:1,payload:!1})}),[Nr]);(0,rt.useEffect)(()=>{try{Br(),Kr()}catch(_r){console.log(_r,"----")}},[]);function br(_r,Ir){return Cr(this,null,function*(){var _i;const{hack_sets:Ji,hack:zr}=fr({},_r);zr.hide_actual_output=ar;let Vr=[],Ci=[],mi=0;const Vi=zr!=null&&zr.is_file?Xt.map((Er,Kn)=>pr(fr({},Er),{position:Kn+1})):Ji.map(Er=>pr(fr({},Er),{is_file:!1}));for(let Er of Vi)mi+=Er.score,Er.id&&Er.id>=0?Vr.push(Er):Ci.push(Er);if(!(Vi!=null&&Vi.length)){ce.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(mi!==100&&!zr.test_set_score){ce.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(Vi!=null&&Vi.some(Er=>!Er.output)){ce.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}lr.current?Rr(!0):Jn(!0);let io;const Hr=Wn==null?void 0:Wn.map(Er=>pr(fr({},Er),{code:Ne.Base64.encode(Er==null?void 0:Er.code)}));if(Nr?io=yield ht(Nr,{practice:zr,practice_codes:Hr,practice_sets:Ci,update_practice_sets:Vr}):io=yield Ye({practice:zr,practice_codes:Hr,practice_sets:Vi,publish:!lr.current}),Rr(!1),Jn(!1),(io==null?void 0:io.status)===0){if((_i=io==null?void 0:io.similar_practice)!=null&&_i.length){Nn(!0),jn(io==null?void 0:io.similar_practice);return}if(Nr){if(ce.ZP.success("\u4FDD\u5B58\u6210\u529F"),!lr.current){const Er=yield(0,$e.ZP)(`/api/practices/${Nr}/start`,{method:"get"});(Er==null?void 0:Er.status)===0&&je.history.push(`/problems/${Er==null?void 0:Er.identifier}/oj/${Nr}`)}}else ce.ZP.success("\u65B0\u5EFA\u6210\u529F"),je.history.replace(`/problems/${io==null?void 0:io.identifier}/ojedit`)}})}function si(){je.history.replace("/problems")}const Tn=_r=>{const Ir=Math.floor(100/_r.length),_i=Ir+100%_r.length;_r=_r.map((Ji,zr)=>zr===_r.length-1?pr(fr({},Ji),{score:_i}):pr(fr({},Ji),{score:Ir})),zt(_r)};function Ri(_r){_r.target.value||Tn(Xt),mn({type:0,payload:{data:pr(fr({},pn),{hack:pr(fr({},pn.hack),{test_set_score:_r.target.value})})}})}function On(_r){mn({type:0,payload:{data:pr(fr({},pn),{hack:pr(fr({},pn.hack),{is_file:_r.target.value})})}})}function pi(_r){dn(_r.target.checked)}function xo(_r){const Ir=_r.target.value;Ir&&Tn(Xt),mn({type:0,payload:{data:pr(fr({},pn),{hack:pr(fr({},pn.hack),{test_set_average:Ir})})}})}function zi(){let _r=hn.getFieldValue("hack_sets");const Ir=_r.length+1,_i=Math.floor(100/Ir),Ji=100%Ir;_r.map((zr,Vr)=>(Dn&&(zr.score=_i),zr.position=Vr+1,zr)),_r.push({input:"",output:"",position:Ir,score:Dn?_i+Ji:0}),hn.setFieldsValue({hack_sets:_r}),mn({type:0,payload:{data:pr(fr({},pn),{hack_sets:_r})}})}(0,rt.useEffect)(()=>{if(Dn){const _r=zn==null?void 0:zn.length,Ir=Math.floor(100/_r),_i=100%_r;zn==null||zn.map((Ji,zr)=>(Ji.score=Ir,Ji.position=zr+1,zr===_r-1&&(Ji.score=Ir+_i),Ji)),mn({type:0,payload:{data:pr(fr({},pn),{hack_sets:zn})}}),hn.setFieldsValue({hack_sets:zn})}},[Dn]);function Lo(_r){let Ir=hn.getFieldValue("hack_sets");const _i=(Ir==null?void 0:Ir.length)-1,Ji=Math.ceil(100/_i),zr=100%_i;Ir.splice(_r,1),Ir==null||Ir.map((Vr,Ci)=>(Dn&&(Vr.score=Ji,Ci===_i-1&&(Vr.score=Ji+zr)),Vr.position=Ci+1,Vr)),mn({type:0,payload:{data:pr(fr({},pn),{hack_sets:Ir})}}),hn.setFieldsValue({hack_sets:Ir})}function yo(_r){Cn(_r)}const Ur=_r=>{var Ir;const _i=(Ir=Or.current)==null?void 0:Ir.findIndex(Ji=>Ji.language===nn);Or.current[_i].code=_r,or(Or.current)},Gr=_r=>{Ot(fr({},hn.getFieldsValue()))},Mi=_r=>Cr(void 0,null,function*(){const Ir=yield(0,$e.ZP)(`/api/practices/${_r}/start`,{method:"get"});(Ir==null?void 0:Ir.status)===0&&(0,Ht.xg)(`/problems/${Ir==null?void 0:Ir.identifier}/oj/${_r}`)}),Hi=()=>Cr(void 0,null,function*(){const _r=yield ut(Nr),{name:Ir,status:_i,review_privilege:Ji,review_description:zr}=_r;Sr({review_privilege:Ji,status:_i,review_description:zr,name:Ir})}),cr=()=>{let _r="";_e.default.confirm({icon:null,width:700,className:"custom-modal-divider",centered:!0,title:"\u4E0D\u901A\u8FC7\u539F\u56E0",content:Dt.createElement("div",{className:"mt20"},Dt.createElement(Qe.Z,{className:vt.MdEditor,defaultValue:_r,onChange:Ir=>{_r=Ir}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Cr(void 0,null,function*(){if(!_r)return ce.ZP.warning("\u4E0D\u901A\u8FC7\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Ir=yield(0,$e.ZP)(`/api/practices/${Nr}/review.json`,{method:"post",body:{op:"fail",description:_r}});(Ir==null?void 0:Ir.status)===0&&(ce.ZP.success("\u63D0\u4EA4\u6210\u529F"),Hi())})})},Lt=()=>Cr(void 0,null,function*(){_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u63D0\u793A",content:`\u786E\u8BA4\u5C06\u9898\u76EE\u300A${vr==null?void 0:vr.name}\u300B\u7684\u5BA1\u6838\u901A\u8FC7\u5417\uFF1F`,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Cr(void 0,null,function*(){const _r=yield(0,$e.ZP)(`/api/practices/${Nr}/review.json`,{method:"post",body:{op:"pass"}});(_r==null?void 0:_r.status)===0&&(ce.ZP.success("\u63D0\u4EA4\u6210\u529F"),Hi())})})}),Ii=()=>{const _r=_e.default.confirm({icon:null,width:700,className:`${vt.cusModal} custom-modal-divider`,centered:!0,title:Dt.createElement(Pe.Z,null,Dt.createElement(Ee.Z,{flex:"1"},"\u4E0D\u901A\u8FC7\u539F\u56E0"),Dt.createElement(Ee.Z,null,Dt.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>_r.destroy()}))),content:Dt.createElement("div",null,Dt.createElement(tn.Z,{className:"mt20",value:(vr==null?void 0:vr.review_description)||""}))})};return Dt.createElement(ye.Z,{spinning:En,size:"large",className:vt["oj-custom-large-spin"]},pn?Dt.createElement(rt.Fragment,null,Dt.createElement("header",{className:vt.header},Dt.createElement("div",null,Dt.createElement("img",{src:`${Mt.Z.IMG_SERVER}/images/${kn==null?void 0:kn.image_url}`,alt:"user",width:30}),Dt.createElement("span",null,kn==null?void 0:kn.name)),Dt.createElement("h2",null," ",(Ar=pn==null?void 0:pn.hack)==null?void 0:Ar.name," "),Nr?Dt.createElement("a",{className:vt.btn_back,onClick:si}," ",Dt.createElement(Be.Z,null),"\u9000\u51FA"):null),Dt.createElement(ge.default,{form:hn,initialValues:pn,layout:"vertical",className:vt["oj-form-container"],onValuesChange:Gr,onFinish:br},Dt.createElement(it.Z,{hideResize:!0,className:vt["oj-problems"],leftChild:Dt.createElement(Pi,{formValue:cn,onRemoveTestCase:Lo,onAddTestCase:zi,hack:pn.hack,onChangeScore:Ri,onChangehide:pi,onChangeAverage:xo,onChangeFile:On,uploadData:Xt,setUploadData:zt,handleUploadRatio:Tn,ischecked:ar,pointData:Pn,sourceData:qn,getPointData:Kr}),rightChild:Dt.createElement(Ue,{value:(Fr=Wn==null?void 0:Wn.find(_r=>_r.language===nn))==null?void 0:Fr.code,onChange:Ur,onLanguage:yo,languageItems:Wn,language:nn})}),Dt.createElement("div",{className:vt.footer},!!Nr&&Dt.createElement("div",{className:vt.result},Dt.createElement("span",null,"\u5BA1\u6838\u7ED3\u679C:"),vr!=null&&vr.review_privilege?Dt.createElement(Dt.Fragment,null,Dt.createElement("div",{onClick:Lt,className:vt.pass},"\u901A\u8FC7"),Dt.createElement("div",{onClick:cr,className:vt.noPass},"\u4E0D\u901A\u8FC7")):Dt.createElement(Dt.Fragment,null,(vr==null?void 0:vr.status)===0&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u53D1\u5E03"),(vr==null?void 0:vr.status)===1&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5DF2\u516C\u5F00"),(vr==null?void 0:vr.status)===2&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u5BA1\u6279"),(vr==null?void 0:vr.status)===3&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u4E2D"),(vr==null?void 0:vr.status)===4&&Dt.createElement("div",{className:vt.passText},Dt.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u5B8C\u6210\u5F85\u516C\u5F00"),(vr==null?void 0:vr.status)===5&&Dt.createElement("div",{className:vt.noPassText},Dt.createElement("i",{className:"iconfont icon-weitongguo1"}),"\u5BA1\u6838\u4E0D\u901A\u8FC7",Dt.createElement("span",{onClick:Ii},"\u67E5\u770B\u539F\u56E0")))),Dt.createElement(Me.ZP,{type:"primary",ghost:!0,onClick:si},"\u9000\u51FA\u7F16\u8F91"),Dt.createElement(Me.ZP,{disabled:vn,loading:Jr,type:"primary",onClick:()=>{lr.current=!0,hn.submit()}},"\u4FDD\u5B58 "),Nr?Dt.createElement(Me.ZP,{disabled:Jr,loading:vn,style:{background:"#2FC25B",border:0},type:"primary",onClick:()=>{lr.current=!1,hn.submit()}},"\u7ACB\u5373\u4F53\u9A8C"):Dt.createElement(Me.ZP,{disabled:Jr,loading:vn,type:"primary",onClick:()=>{lr.current=!1,hn.submit()}},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u5BA1\u6838")))):null,Dt.createElement(_e.default,{centered:!0,destroyOnClose:!0,footer:null,open:gn,onCancel:()=>Nn(!1),title:"\u76F8\u4F3C\u6027\u68C0\u6D4B",width:"600px"},Dt.createElement("div",null,Dt.createElement("p",{className:"font14"},"\u7ECF\u7CFB\u7EDF\u68C0\u6D4B\u53D1\u73B0\uFF0C\u672C\u9898\u76EE\u4E0E\u7CFB\u7EDF\u4E2D\u5DF2\u521B\u5EFA\u7684\u9898\u76EE\u9AD8\u5EA6\u96F7\u540C\uFF0C\u8BF7\u8C03\u6574\u9898\u76EE\u540E\u518D\u8FDB\u884C\u4FDD\u5B58"),Dt.createElement(ve.default,{dataSource:$t,bordered:!1,scroll:$t.length>7?{y:300}:{},columns:[{title:"\u76F8\u4F3C\u9898\u9898\u76EE",dataIndex:"name",ellipsis:!0,render:(_r,Ir)=>Dt.createElement("span",{onClick:()=>Mi(Ir==null?void 0:Ir.identifier),style:{textDecorationLine:"underline"},className:"current c-light-primary"},_r)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"create_time",width:170,render:_r=>{var Ir;return(Ir=Kt()(_r))==null?void 0:Ir.format("YYYY-MM-DD HH:mm")}}],pagination:!1}))))};function Pi({ischecked:sr,formValue:Ar,hack:Fr,onChangeAverage:Si,onChangeScore:Nr,onChangehide:hn,onChangeFile:cn,onAddTestCase:Ot,onRemoveTestCase:gn,uploadData:Nn,setUploadData:Xt,handleUploadRatio:zt,pointData:Pn,sourceData:_n,getPointData:qn}){var Yn,$t;const{test_set_average:jn,test_set_score:Wn}=Fr,[or,nn]=(0,rt.useState)(!1),[Cn,rn]=(0,rt.useState)(!1),mn=(Dn,ar)=>{const dn=[...Nn];dn.splice(ar,1),jn?zt(dn):Xt(dn)},En=(Dn,ar)=>{console.log(Dn,ar);const dn=Nn.map((Or,Jr)=>Jr===ar?pr(fr({},Or),{score:Dn.target.value?Number(Dn.target.value):0}):Or);Xt(dn)},pn=Dn=>{const ar=Nn.concat(Dn);Fr.test_set_average?zt(ar):Xt(ar)};function kn(Dn){Dn.stopPropagation()}function Mn(){if((0,It.Ny)()){rn("practice");return}let Dn="";_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",content:Dt.createElement("div",null,Dt.createElement(ie.default,{placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:ar=>{Dn=ar.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Cr(this,null,function*(){const ar=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice",name:Dn}});(ar==null?void 0:ar.status)===0&&qn()})})}function zn(){if((0,It.Ny)()){rn("practice_source");return}let Dn="";_e.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u6765\u6E90",content:Dt.createElement("div",null,Dt.createElement(ie.default,{placeholder:"\u8BF7\u8F93\u5165\u6765\u6E90\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:ar=>{Dn=ar.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Cr(this,null,function*(){const ar=yield(0,$e.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice_source",name:Dn}});(ar==null?void 0:ar.status)===0&&qn()})})}return Dt.createElement("div",{className:vt["oj-left-panel"]},Dt.createElement("div",{className:vt["oj-form-info"]},Dt.createElement(ge.default.Item,{label:"\u9898\u76EE\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0"}],className:vt.inputOne},Dt.createElement(ie.default,{bordered:!1,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0",suffix:Dt.createElement("span",null,(($t=(Yn=Ar==null?void 0:Ar.hack)==null?void 0:Yn.name)==null?void 0:$t.length)||0,"/",Dt.createElement("span",{className:"c-grey-999"},"60"))})),Dt.createElement(ge.default.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},Dt.createElement(Qe.Z,{placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u63CF\u8FF0\u2026",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),Dt.createElement("div",{className:vt.row},Dt.createElement("div",{className:vt.a},Dt.createElement(ge.default.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficulty"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},Dt.createElement(xe.default,null,Ce(pe.difficulty)))),Dt.createElement("div",{className:vt.b},Dt.createElement(ge.default.Item,{label:"\u9898\u76EE\u6765\u6E90",name:["hack","source_discipline_ids"]},Dt.createElement(xe.default,{placeholder:"\u9009\u62E9\u9898\u76EE\u6765\u6E90",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:Dn=>Dn.parentNode},_n.map(Dn=>Dt.createElement(xe.default.Option,{key:Dn.id,value:Dn.id},Dn.name)))),Dt.createElement(Me.ZP,{style:{padding:"0 18px"},type:"primary",ghost:!0,onClick:()=>zn()},(0,It.Ny)()?"\u6765\u6E90\u7BA1\u7406":"\u65B0\u5EFA\u6765\u6E90"))),Dt.createElement("div",{className:vt.row},Dt.createElement("div",{className:vt.b,style:{width:"100%",marginLeft:0}},Dt.createElement(ge.default.Item,{label:"\u77E5\u8BC6\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"}],name:["hack","tag_discipline_ids"]},Dt.createElement(xe.default,{placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:Dn=>Dn.parentNode},Pn.map(Dn=>Dt.createElement(xe.default.Option,{key:Dn.id,value:Dn.id},Dn.name)))),Dt.createElement(Me.ZP,{type:"primary",ghost:!0,onClick:()=>Mn()},(0,It.Ny)()?"\u77E5\u8BC6\u70B9\u7BA1\u7406":"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))),Dt.createElement("div",{className:vt.field},Dt.createElement(ge.default.Item,{label:"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236",name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:1,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F1\u79D2"}],className:vt.inputTwo,extra:Dt.createElement("span",{style:{position:"absolute",left:200,top:11,color:"#333"}},"\u79D2",Dt.createElement("span",{className:"ml5 c-grey-999"},"(\u4EE3\u7801\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F)"))},Dt.createElement(fe.Z,{style:{width:185},min:1}))),Dt.createElement("div",{className:"tst-case-info"},Dt.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," ","\u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!Fr.is_file&&Dt.createElement(Me.ZP,{style:{height:40},type:"primary",ghost:!0,onClick:Ot},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),Dt.createElement(ge.default.Item,{name:["hack","test_set_score"]},Dt.createElement(z.ZP.Group,{onChange:Nr},Dt.createElement(z.ZP,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",Dt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),Dt.createElement(z.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",Dt.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),Dt.createElement(ee.default,{style:{marginBottom:"5px"},checked:sr,onChange:hn},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA \uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u5B66\u751F\u505A\u9898\u8FC7\u7A0B\u4E2D\u65E0\u6CD5\u770B\u5230\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u662F\u5426\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7\uFF09"),Dt.createElement(ge.default.Item,{className:vt.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},Dt.createElement(z.ZP.Group,{onChange:cn},Dt.createElement(ae.Z,{direction:"horizontal"},Dt.createElement(z.ZP,{value:!1},"\u6587\u672C"),Dt.createElement(z.ZP,{value:!0},"\u6587\u4EF6")))),Dt.createElement(ge.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},Dt.createElement(z.ZP.Group,null,Dt.createElement(z.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Dt.createElement(z.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Dt.createElement(z.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),!Fr.test_set_score&&Dt.createElement(ge.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},Dt.createElement(z.ZP.Group,{onChange:Si},Dt.createElement(z.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),Dt.createElement(z.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),Fr.is_file&&Dt.createElement("div",{className:vt.upBtn},Dt.createElement(Me.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:()=>nn(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),Dt.createElement(Jt.Y2,{disabled:Fr==null?void 0:Fr.test_set_average,inputChange:En,showScore:!Fr.test_set_score,data:Nn,onRemove:mn})),!Fr.is_file&&Dt.createElement(ge.default.List,{name:"hack_sets"},(Dn,{})=>Dt.createElement(Ie.default,{accordion:!0},Dn.map((ar,dn)=>Dt.createElement(jr,{key:`${ar.key}--${dn}`,header:Dt.createElement("a",{className:vt["test-case-name"]},Dt.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",dn+1),Wn?null:Dt.createElement(Dt.Fragment,null,Dt.createElement(ge.default.Item,{name:[ar.name,"score"],fieldKey:[ar.fieldKey,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${dn+1}\u8BC4\u5206`}]},Dt.createElement(fe.Z,{onClick:kn,min:0,max:100,disabled:jn})),Dt.createElement("span",null,"%"))),extra:dn>0?Dt.createElement("div",{onClick:kn},Dt.createElement(re.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6\b"+(dn+1),onConfirm:()=>{gn(dn)}},Dt.createElement(ze.Z,{className:vt["btn-remove-case"]}))):null},Dt.createElement(ge.default.Item,{label:"\u8F93\u5165",name:[ar.name,"input"],fieldKey:[ar.fieldKey,"input"]},Dt.createElement(Yr,null)),Dt.createElement(ge.default.Item,{label:"\u8F93\u51FA",name:[ar.name,"output"],fieldKey:[ar.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Dt.createElement(Yr,null)))))))),Dt.createElement(Jt.ZP,{rootIdentifier:null,visible:or,onClose:()=>nn(!1),onOK:pn}),Dt.createElement(ft,{visible:Cn,onCancel:()=>{rn(!1),qn()},onOK:()=>{rn(!1),qn()}}))}},72161:function(bn,an,Ge){"use strict";Ge.d(an,{Y2:function(){return ut},ZP:function(){return ht}});var rt=Ge(59301),vt=Ge(54580),ie=Ge(8591),_e=Ge(43418),Ie=Ge(95237),ge=Ge(5112),ce=Ge(3113),Pe=Ge(24905),Ee=Ge(6848),ye=Ge(92832),Me={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",xe=Ge(47257),fe=Ge.n(xe),z=Ge(81939),ee=Ge(99064),ae=Ge(1012),re=Ge(955),le=Ge(23210),ue=Ge(59301),pe=Object.defineProperty,Te=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ne=(Ct,et,it)=>et in Ct?pe(Ct,et,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ct[et]=it,Be=(Ct,et)=>{for(var it in et||(et={}))Ae.call(et,it)&&Ne(Ct,it,et[it]);if(Fe)for(var it of Fe(et))je.call(et,it)&&Ne(Ct,it,et[it]);return Ct},ze=(Ct,et)=>Te(Ct,Ce(et)),Qe=(Ct,et,it)=>new Promise((St,bt)=>{var Pt=mt=>{try{dt(it.next(mt))}catch(kt){bt(kt)}},gt=mt=>{try{dt(it.throw(mt))}catch(kt){bt(kt)}},dt=mt=>mt.done?St(mt.value):Promise.resolve(mt.value).then(Pt,gt);dt((it=it.apply(Ct,et)).next())});const{Dragger:$e}=vt.default,Ye=Ct=>{const et=kt=>kt&&kt.substring(0,kt.lastIndexOf("."));for(var it=[...Ct],St=0,bt=[],Pt=0;Pt{if(kt.forEach(Et=>{let Ut=Et.name.split(/\.(?=[^\.]+$)/);Et.name=`${Ut[0]}.${Ut[1].toLowerCase()}`}),kt[0].name.includes(".in"))return kt.length===2?kt:[kt[0],{}];if(kt[0].name.includes(".out"))return kt.length===2?kt.reverse():[{},kt[0]]})},at=({onClose:Ct,onOK:et,visible:it,wrapClassName:St,rootIdentifier:bt,multiple:Pt=!1,defaultMultipleValue:gt=!0})=>{const[dt,mt]=(0,rt.useState)([]),[kt,Et]=(0,rt.useState)({}),[Ut,wt]=(0,rt.useState)(!1),[pt,tt]=(0,rt.useState)(!0),Ze=(0,rt.useRef)([]),we=(0,rt.useRef)(0),be=()=>{Ct()};(0,rt.useEffect)(()=>{Ke()},[]),(0,rt.useEffect)(()=>{it&&(Ze.current=[],we.current=0,mt([]),tt(gt))},[it]);const Ke=()=>Qe(void 0,null,function*(){try{const yt=yield(0,ee.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),ft=JSON.parse((0,z.pe)(yt.data));Et(ft)}catch(yt){}}),Xe=yt=>yt&&yt.substring(0,yt.lastIndexOf(".")),Oe=yt=>{var ft,Mt;const Jt=Xe((ft=yt[0])==null?void 0:ft.name)||Xe((Mt=yt[1])==null?void 0:Mt.name),Vt=dt.filter(Kt=>Xe(Kt.name)!==Jt);Ze.current=[...Vt],mt([...Vt])},Ue=yt=>{if(!pt){const Ht=new FormData;Ht.append("file",yt.file),(0,ee.ZP)("/api/attachments/get_file_content.json",{method:"post",body:Ht},!0).then(It=>{if(It.status===0){we.current=we.current+1;const Dt=Ze.current.map(qt=>{var sn;if(qt.name===yt.name){const xn=Be({},qt);return(sn=yt==null?void 0:yt.name)!=null&&sn.includes(".in")?xn.input=It==null?void 0:It.content:xn.output=It==null?void 0:It.content,xn}return qt});if(Ze.current=[...Dt],mt([...Dt]),we.current>0&&we.current===dt.length){wt(!1);let qt=Ye(Dt);qt=qt.filter(sn=>{var xn,Ln;return!!((xn=sn[0])!=null&&xn.name&&((Ln=sn[1])!=null&&Ln.name))}),qt=qt.map(sn=>ze(Be(Be({},sn[0]),sn[1]),{is_file:!1})),et(qt),Ct()}}else wt(!1),Ct()});return}const ft=new(fe())({endpoint:kt.end_point,region:kt.region,accessKeyId:kt.access_key_id,accessKeySecret:kt.access_key_secret,bucket:kt.bucket,stsToken:kt.security_token}),Mt=yt.name,Jt={container_type:"TestSet",file_name:Mt},Vt=(0,ae.Z)();let Kt=`testsets/${bt}/${Vt}${Mt.indexOf(".")>-1?"."+Mt.split(".").pop():""}`;bt===null&&(Kt=`testsets/${Vt}${Mt.indexOf(".")>-1?"."+Mt.split(".").pop():""}`),ft.multipartUpload(Kt,new Blob([yt.file],{type:yt.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Mt+""},url:kt==null?void 0:kt.callback_url,host:kt==null?void 0:kt.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ee.rz)(Jt)}}).then(function(Ht){if(Ht.data.status===0){we.current=we.current+1;const tn=Ze.current.map(It=>{var Dt,qt,sn,xn,Ln,Zn,Xn,dr,fr,pr,Cr,Yr,ii,jr,fi,Lr,ot;if(It.name===((qt=(Dt=Ht.data)==null?void 0:Dt.data)==null?void 0:qt.file_name)){const oi=Be({},It);return(Ln=(xn=(sn=Ht.data)==null?void 0:sn.data)==null?void 0:xn.file_name)!=null&&Ln.includes(".in")?(oi.in_object_key=(Xn=(Zn=Ht.data)==null?void 0:Zn.data)==null?void 0:Xn.object,oi.in_object_size=(fr=(dr=Ht.data)==null?void 0:dr.data)==null?void 0:fr.size,oi.input=(Cr=(pr=Ht.data)==null?void 0:pr.data)==null?void 0:Cr.file_name,oi.in_file=yt):(oi.out_object_key=(ii=(Yr=Ht.data)==null?void 0:Yr.data)==null?void 0:ii.object,oi.out_object_size=(fi=(jr=Ht.data)==null?void 0:jr.data)==null?void 0:fi.size,oi.output=(ot=(Lr=Ht.data)==null?void 0:Lr.data)==null?void 0:ot.file_name,oi.out_file=yt),oi}return It});if(Ze.current=[...tn],mt([...tn]),we.current>0&&we.current===dt.length){wt(!1);let It=Ye(tn);It=It.filter(Dt=>{var qt,sn;return!!((qt=Dt[0])!=null&&qt.name&&((sn=Dt[1])!=null&&sn.name))}),It=It.map(Dt=>ze(Be(Be({},Dt[0]),Dt[1]),{is_file:!0})),et(It),Ct()}}})},He=yt=>new Promise((ft,Mt)=>{let Jt=0,Vt=[];for(let Kt=0;Kt{Jt++,Jt===yt.length&&(Vt.length?(ie.ZP.warning(`${Vt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Mt()):ft(yt))}).catch(Ht=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",Ht),Jt++,Vt.push(yt[Kt].name),Jt===yt.length&&(Vt.length?(ie.ZP.warning(`${Vt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Mt()):ft(yt))})}),Ve=()=>Qe(void 0,null,function*(){if(dt.length===0){ie.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield He(dt),wt(!0),Ye(dt).some(ft=>{var Mt,Jt;return!((Mt=ft[0])!=null&&Mt.name&&((Jt=ft[1])!=null&&Jt.name))})){_e.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Qe(void 0,null,function*(){dt.map(ft=>Qe(void 0,null,function*(){Ue(ft)}))}),onCancel:()=>{wt(!1)}});return}dt.map(ft=>Qe(void 0,null,function*(){Ue(ft)}))}),Je={name:"file",fileList:dt,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:yt=>{if(dt!=null&&dt.some(Mt=>Mt.name===yt.name))return ie.ZP.info(`${yt.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(yt.size/1024/1024>100)return ie.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(yt.name))return ie.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const ft={name:yt.name,uid:yt.uid,file:yt,percent:0};return dt.push(ft),Ze.current=[...dt],mt([...dt]),!1}},ct=Ye(dt);return console.log(dt,ct,"fileList"),ue.createElement(_e.default,{open:it,wrapClassName:St,onOk:Ve,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:Ut},onCancel:be,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ue.createElement("div",{className:Me.wrap},dt.length?ue.createElement("div",null,ue.createElement(Ie.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ue.createElement("div",{style:{visibility:Pt?"visible":"hidden"}},ue.createElement("span",{className:Me.greyText},"\u7528\u4F8B\u7C7B\u578B"),ue.createElement(ge.ZP.Group,{className:`ml20 ${Me.testCaseRadio}`,optionType:"button",value:pt,onChange:yt=>tt(yt.target.value)},ue.createElement(ge.ZP,{value:!1},"\u6587\u672C"),ue.createElement(ge.ZP,{value:!0},"\u6587\u4EF6"))),ue.createElement(vt.default,Be({},Je),ue.createElement(ce.ZP,{type:"primary",className:Me.btnS},ue.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ue.createElement(ut,{data:ct,onRemove:Oe})):ue.createElement("div",{className:`${Me.noData} mb30`},ue.createElement(vt.default.Dragger,ze(Be({},Je),{className:Me.dragger}),ue.createElement("img",{src:ve,alt:"",className:"mb20"}),ue.createElement("div",null,ue.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),ue.createElement("span",{className:Me.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ue.createElement("div",{className:Me.text},ue.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),ue.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",ue.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",ue.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",ue.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",ue.createElement("br",null))))},ut=({data:Ct=[],onRemove:et,width:it="auto",showScore:St=!1,disabled:bt=!1,inputChange:Pt,onEvaluatingChange:gt,onSelectAll:dt,checkAll1:mt,checkAll2:kt,checkAll3:Et,checkAll4:Ut,checkAll5:wt,showEvaluatingSetting:pt=!1,className:tt="",isProgramHomework:Ze=!1})=>{const we={value:"",filename:"",dataUrl:""},[be,Ke]=(0,rt.useState)(Be({},we)),Xe=He=>{let Ve=document.createElement("a");document.body.appendChild(Ve);let Je=URL.createObjectURL(He.file);Ve.href=Je,Ve.download=He.name,Ve.click(),URL.revokeObjectURL(Je),document.body.removeChild(Ve)},Oe=(He,Ve)=>{(0,re.LR)(He,Ve)},Ue=(He,Ve)=>{_e.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ue.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{et(He,Ve)},onCancel:()=>{}})};return Ct.length?ue.createElement("div",{className:tt,style:{width:it}},ue.createElement("div",{className:`${Ze?Me.headProgram:Me.head}`},pt&&ue.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:mt,onChange:He=>{dt(He.target.checked,"hidden")}}),ue.createElement(Ee.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{style:{width:Ze?"25%":"15%"}},"\u7528\u4F8B"),ue.createElement("div",{style:{width:St?Ze?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ue.createElement("div",{style:{width:St?Ze?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),St&&ue.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),pt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Ut,onChange:He=>{dt(He.target.checked,"input_visible")}}),ue.createElement(Ee.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),pt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:kt,onChange:He=>{dt(He.target.checked,"is_invisible")}}),ue.createElement(Ee.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),pt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:wt,onChange:He=>{dt(He.target.checked,"actual_output_visible")}}),ue.createElement(Ee.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),pt&&ue.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ue.createElement(Pe.default,{checked:Et,onChange:He=>{dt(He.target.checked,"last_match_rule")}}),ue.createElement(Ee.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},ue.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),ue.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ue.createElement("div",{className:Me.operation,style:Ze?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ue.createElement("div",{className:Me.listWrapper,style:{boxShadow:Ze?"0px 2px 4px 0px #EAEEF4":"unset"}},Ct.map((He,Ve)=>{var Je,ct,yt,ft;return ue.createElement("div",{key:Ve,className:Me.list,style:Ze?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},pt&&ue.createElement("div",{style:{width:"15%"}},ue.createElement(Pe.default,{checked:!!He.hidden,onChange:Mt=>{gt(Mt.target.checked,Ve,"hidden")}})),ue.createElement("div",{style:{width:Ze?"25%":"15%",paddingLeft:Ze?"5px":"0px",paddingRight:Ze?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",Ve+1),ue.createElement("div",{className:Me.info,style:{width:St?Ze?"20%":"15%":"25%"}},ue.createElement("span",{title:He.input||((Je=He[0])==null?void 0:Je.name),onClick:()=>Qe(void 0,null,function*(){let Mt;He.input?He.input_file_url?Mt=He.input_file_url:Mt=He.in_file:Mt=He[0];let Jt;typeof Mt=="string"?(Jt=yield fetch(Mt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ke({value:yield Jt.text(),filename:"",dataUrl:Mt})):(Jt=yield(0,re.db)(Mt.file),Ke({value:Jt.text,filename:Mt.name,dataUrl:Jt.link}))})},He.input||((ct=He[0])==null?void 0:ct.name))),ue.createElement("div",{className:Me.info,style:{width:St?Ze?"20%":"15%":"25%"}},ue.createElement("span",{title:He.output||((yt=He[1])==null?void 0:yt.name),onClick:()=>Qe(void 0,null,function*(){let Mt;He.input?He.output_file_url?Mt=He.output_file_url:Mt=He.out_file:Mt=He[1];let Jt;typeof Mt=="string"?(Jt=yield fetch(Mt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ke({value:yield Jt.text(),filename:"",dataUrl:Mt})):(Jt=yield(0,re.db)(Mt.file),Ke({value:Jt.text,filename:Mt.name,dataUrl:Jt.link}))})},He.output||((ft=He[1])==null?void 0:ft.name))),St&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(ye.default,{size:"large",addonAfter:Ze?"%":null,disabled:bt,style:{width:"80%"},onChange:Mt=>Pt(Mt,Ve),value:He.score}),!Ze&&ue.createElement("span",null,"\xA0%")),pt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.input_visible||!1,onChange:Mt=>{gt(Mt.target.checked,Ve,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),pt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.is_invisible||!1,onChange:Mt=>{gt(Mt.target.checked,Ve,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),pt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.actual_output_visible||!1,onChange:Mt=>{gt(Mt.target.checked,Ve,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),pt&&ue.createElement("div",{style:{width:"20%"}},ue.createElement(Pe.default,{checked:He.last_match_rule||!1,onChange:Mt=>{gt(Mt.target.checked,Ve,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ue.createElement("div",{onClick:()=>Ue(He,Ve),style:Ze?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ue.createElement("span",{className:Me.del},"\u5220\u9664")))})),ue.createElement(le.Z,{close:!0,data:be.dataUrl,filename:be.filename,type:be.dataUrl.length?"txt":"",onClose:()=>Ke(Be({},we)),monacoEditor:{value:be.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ue.createElement(ue.Fragment,null)};var ht=at},24768:function(bn,an,Ge){"use strict";Ge.d(an,{AL:function(){return pe},Iy:function(){return Me},Qv:function(){return fe},ez:function(){return ue},jb:function(){return ve}});var rt=Ge(32834),vt=Ge.n(rt),ie=Ge(11690),_e=Ge.n(ie);let Ie=1;function ge(je,Ne){const Be=je.match(/^(\s+)(?:```)/);if(Be===null)return Ne;const ze=Be[1];return Ne.split(` `).map(Qe=>{const $e=Qe.match(/^\s+/);if($e===null)return Qe;const[Ye]=$e;return Ye.length>=ze.length?Qe.slice(ze.length):Qe}).join(` `)}let ce=[],Pe=["