(self.webpackChunk=self.webpackChunk||[]).push([[6076],{10402:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},72295:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},93343:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},24566:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},80205:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},61441:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},30631:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},43971:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},58358:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},52249:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},44757:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},76298:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},16537:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},77042:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},5527:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},86902:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},53878:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},21970:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},96830:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},79906:function(){"use strict"},93938:function(Nn,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"}},37404:function(){"use strict";function Nn(vt,et,tt,st){tt===void 0&&(tt=0),st===void 0&&(st=1/0),this._name=vt,this._defaultValue=et,this._minimum=tt,this._maximum=st}Object.defineProperty(Nn.prototype,"name",{get:function(){return this._name},set:function(vt){if(typeof vt!="string"||vt==="")throw new Error("Shape name must be a valid string.");this._name=vt}}),Object.defineProperty(Nn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(vt){if(typeof vt!="number"||isNaN(vt))throw new Error("The default value must be a real number, not: "+vt);this._defaultValue=vt}}),Object.defineProperty(Nn.prototype,"minimum",{get:function(){return this._minimum},set:function(vt){if(typeof vt!="number"||isNaN(vt))throw new Error("Minimum must be a real number, not: "+vt);this._minimum=vt}}),Object.defineProperty(Nn.prototype,"maximum",{get:function(){return this._maximum},set:function(vt){if(typeof vt!="number"||isNaN(vt))throw new Error("Maximum must be a real number, not: "+vt);this._maximum=vt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(vt,et){var tt=go.Shape._FigureParameters[vt];return tt?tt[et]:null},go.Shape.setFigureParameter=function(vt,et,tt){if(!(tt instanceof Nn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValuett.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var st=go.Shape._FigureParameters[vt];st||(st=[],go.Shape._FigureParameters[vt]=st),st[et]=tt};var An=[];function Gt(vt,et){var tt=An.pop();return tt===void 0?new go.Point(vt,et):(tt.x=vt,tt.y=et,tt)}function Rt(){var vt=An.pop();return vt===void 0?new go.Point:vt}function yt(vt){An.push(vt)}function Vt(vt,et,tt,st,rt,ut,ct,pt,mt){mt||(mt=new go.Point);var Ct=vt-tt,Dt=rt-ct,Ut=NaN,Ft=NaN;if(Ct===0)if(Dt===0)vt===tt&&(Ut=vt,Ft=et);else{var Qt=(ut-pt)/Dt,$t=ut-Qt*rt;Ut=vt,Ft=Qt*Ut+$t}else if(Dt===0){var Kt=(et-st)/Ct,ue=et-Kt*vt;Ut=rt,Ft=Kt*Ut+ue}else{var Kt=(et-st)/Ct,Qt=(ut-pt)/Dt,ue=et-Kt*vt,$t=ut-Qt*rt;Ut=($t-ue)/(Kt-Qt),Ft=Kt*Ut+ue}return mt.x=Ut,mt.y=Ft,mt}function Yt(vt,et,tt,st,rt,ut,ct,pt,mt,Ct,Dt,Ut,Ft,Qt){var $t=1-mt,Kt=mt,ue=vt*$t+tt*Kt,oe=et*$t+st*Kt,we=tt*$t+rt*Kt,Se=st*$t+ut*Kt,Ne=rt*$t+ct*Kt,pe=ut*$t+pt*Kt,Ue=ue*$t+we*Kt,de=oe*$t+Se*Kt,Jt=we*$t+Ne*Kt,ee=Se*$t+pe*Kt,ae=Ue*$t+Jt*Kt,fe=de*$t+ee*Kt;Ct.x=ue,Ct.y=oe,Dt.x=Ue,Dt.y=de,Ut.x=ae,Ut.y=fe,Ft.x=Jt,Ft.y=ee,Qt.x=Ne,Qt.y=pe}var Nt=new go.Spot(.156,.156),Wt=new go.Spot(.844,.844),xt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Nn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=5),st=Math.min(st,et/3),st=Math.min(st,tt/3);var rt=st*xt,ut=new go.Geometry().add(new go.PathFigure(st,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,st,et-rt,0,et,rt)).add(new go.PathSegment(go.PathSegment.Line,et,tt-st)).add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,tt-rt,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,st,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,rt,tt,0,tt-rt)).add(new go.PathSegment(go.PathSegment.Line,0,st)).add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,rt,rt,0).close()));return rt>1&&(ut.spot1=new go.Spot(0,0,rt,rt),ut.spot2=new go.Spot(1,1,-rt,-rt)),ut}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(vt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=0,st.startY=tt/2,st.endX=et,st.endY=tt/2,st}),go.Shape.defineFigureGenerator("LineV",function(vt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=et/2,st.startY=0,st.endX=et/2,st.endY=tt,st}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(vt,et,tt){var st=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(st*et,(1-st)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,st*tt)).add(new go.PathSegment(go.PathSegment.Move,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(vt,et,tt){var st=et/2,rt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,st,st,st,st).close()));return rt.spot1=Nt,rt.spot2=Wt,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(vt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=0,st.startY=0,st.endX=et,st.endY=tt,st}),go.Shape.defineFigureGenerator("Line2",function(vt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=et,st.startY=0,st.endX=0,st.endY=tt,st}),go.Shape.defineFigureGenerator("Curve1",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,xt*et,0,et,(1-xt)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,xt*tt,(1-xt)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,xt*tt,xt*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-xt)*et,0,0,(1-xt)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Nn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)?st=.1:st<-1?st=-1:st>1&&(st=1);var rt=Math.abs(st)*et;if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rtet&&(st=et);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt.5&&(st=.5);var rt=Math.abs(st)*et;if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rtet&&(st=et/2);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rtet&&(st=et/2);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())):ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),rt0&&(ct.add(new go.PathSegment(go.PathSegment.Move,et/2+pt,et/2)),ct.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,pt,pt).close())),ut.spot1=Nt,ut.spot2=Wt,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Cloud",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*tt,-.09239631*et,.07836421*tt,.1406031*et,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*tt,.2450511*et,-.00697547*tt,.3776197*et,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*tt,.4539471*et,0,.6066018*et,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*tt,.6914277*et,-.01904177*tt,.8921095*et,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*tt,1.036446*et,.04105738*tt,1.020377*et,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*tt,1.04448*et,.360238*tt,.992256*et,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*tt,1.032337*et,.5771781*tt,1.018411*et,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*tt,1.028411*et,.9571472*tt,.8556702*et,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*tt,.7431877*et,1.009325*tt,.5624123*et,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*tt,.4820677*et,1.031761*tt,.3030112*et,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*tt,.2329994*et,1.01518*tt,.03213784*et,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*tt,-.02812061*et,.9032597*tt,-.01205169*et,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*tt,-.01812061*et,.6089503*tt,-.00606892*et,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*tt,-.01606892*et,.3892545*tt,-.01205169*et,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(vt,et,tt){var st=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(st*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Line,st*et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,st*tt).close())).setSpots(st/2,st/2,1-st/2,1-st/2)}),go.Shape.setFigureParameter("Pie",0,new Nn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Nn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(vt,et,tt){var st=vt?vt.parameter1:NaN,rt=vt?vt.parameter2:NaN;isNaN(st)&&(st=0),isNaN(rt)&&(rt=315);var ut=st%360;ut<0&&(ut+=360);var ct=rt%360,pt=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(pt,pt).add(new go.PathSegment(go.PathSegment.Arc,ut,ct,pt,pt,pt,pt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(vt,et,tt){var st=xt/Math.SQRT2*.5,rt=Math.SQRT2/2,ut=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ut*tt,et,(1-st)*tt,(rt+st)*et,(ut+st)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Nn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=30);var rt=Math.min(st,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Nn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=10);var rt=Math.min(st,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new Nn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(vt,et,tt){var st=vt?vt.parameter1:NaN;if((isNaN(st)||st<0)&&(st=30),et===0||tt===0){var rt=new go.Geometry(go.Geometry.Rectangle);return rt.startX=0,rt.startY=0,rt.endX=et,rt.endY=tt,rt}else{var ut=et/2,ct=tt/2,pt=Math.atan2(tt,et),mt=st-Math.min(Math.cos(pt)*st/2,ut),Ct=st-Math.min(Math.sin(pt)*st/2,ct),rt=new go.Geometry,Dt=new go.PathFigure(mt,0,!0);return rt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,ut,.2*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,et-mt,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,Ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-Ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,et-mt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,mt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt-Ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,Ct).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new Nn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=10);var rt=new go.Geometry,ut=new go.PathFigure(.1*et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new Nn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.2);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+st/2)*et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+st/2)*et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-st/2)*et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-st/2)*et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,st*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new Nn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.5);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-st)*et,.25*tt,Math.abs(1-st)*et,.75*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,st*et,.75*tt,st*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,xt*et,0,et,(.5-xt/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+xt/2)*tt,xt*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,0,et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*tt,.5*et,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*et,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.5*tt,.9*et,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.6*et,.2*tt,et,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*tt,et,.8*tt,.6*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,.5*et,.75*tt,.55*et,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*tt,.45*et,.95*tt,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*et,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*tt,0,.25*tt,.4*et,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.4*et,.6*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,tt,.5*et,.75*tt,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*tt,.55*et,.95*tt,.5*et,.75*tt));var ut=.2,ct=.3,pt=0,mt=ut*xt;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+pt)*tt,(.5-ut+ct)*et,(.5+mt+pt)*tt,(.5-mt+ct)*et,(.5+ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+pt)*tt,(.5+mt+ct)*et,(.5+ut+pt)*tt,(.5+ut+ct)*et,(.5+mt+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+pt)*tt,(1-.5+ut+ct)*et,(.5-mt+pt)*tt,(.5+mt+ct)*et,(.5-ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-mt+ct)*et,(.5-ut+pt)*tt,(.5-ut+ct+.05)*et,(.5-mt+pt-.02)*tt)),ut=.2,ct=0,pt=-.3,mt=ut*xt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+pt)*tt,(.5+mt+ct)*et,(.5+ut+pt)*tt,(.5+ut+ct)*et,(.5+mt+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+pt)*tt,(1-.5+ut+ct)*et,(.5-mt+pt)*tt,(.5+mt+ct)*et,(.5-ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+pt)*tt,(.5-mt+ct)*et,(.5-ut+pt)*tt,(.5-ut+ct)*et,(.5-mt+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-mt+ct)*et,(.5+ut+pt)*tt,(.5-ut+ct)*et,(.5+mt+pt)*tt,(.5-mt+ct)*et,(.5+ut+pt)*tt)),ut=.2,ct=-.3,pt=0,mt=ut*xt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+pt)*tt,(1-.5+ut+ct-.05)*et,(.5-mt+pt-.02)*tt,(.5+mt+ct)*et,(.5-ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+pt)*tt,(.5-mt+ct)*et,(.5-ut+pt)*tt,(.5-ut+ct)*et,(.5-mt+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+pt)*tt,(.5-ut+ct)*et,(.5+mt+pt)*tt,(.5-mt+ct)*et,(.5+ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+mt+ct)*et,(.5+ut+pt)*tt,(.5+ut+ct)*et,(.5+mt+pt)*tt).close()),st.setSpots(.06,.33,.93,.68),st}),go.Shape.defineFigureGenerator("YinYang",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.5,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ut=.1,ct=.5,pt=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(ct+ut)*et,pt*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*ct,tt*pt,ut*et,ut*et).close()),rt=new go.PathFigure(et*.5,0,!1),st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),pt=.75,rt=new go.PathFigure((ct+ut)*et,pt*tt,!0),st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*ct,tt*pt,ut*et,ut*et).close()),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Peace",function(vt,et,tt){var st=.8535533905932737,rt=.5*et,ut=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ut,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,st*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,st*et,st*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=.5,pt=.5,mt=new go.PathFigure(ct*et,(pt-ut)*tt);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),ut=.4,rt=xt*.4;var Ct=Rt(),Dt=Rt(),Ut=Rt(),Ft=Rt();Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.42,Ct,Dt,Ut,Ft,Ft);var Qt=Rt(),$t=Rt(),Kt=Rt();Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.58,Ft,Ft,Kt,Qt,$t);var ue=Rt(),oe=Rt(),we=Rt();Yt(ct,pt+ut,ct-rt,pt+ut,ct-ut,pt+rt,ct-ut,pt,.42,ue,oe,we,Ft,Ft);var Se=Rt(),Ne=Rt(),pe=Rt();return Yt(ct,pt+ut,ct-rt,pt+ut,ct-ut,pt+rt,ct-ut,pt,.58,Ft,Ft,pe,Se,Ne),mt.add(new go.PathSegment(go.PathSegment.Move,pe.x*et,pe.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,Se.x*et,Se.y*tt,Ne.x*et,Ne.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,Ct.x*et,Ct.y*tt,Dt.x*et,Dt.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,pe.x*et,pe.y*tt).close()),mt.add(new go.PathSegment(go.PathSegment.Move,we.x*et,we.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,Kt.x*et,Kt.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,Qt.x*et,Qt.y*tt,$t.x*et,$t.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,we.x*et,we.y*tt,ue.x*et,ue.y*tt,oe.x*et,oe.y*tt).close()),yt(Ct),yt(Dt),yt(Ut),yt(Ft),yt(Qt),yt($t),yt(Kt),yt(ue),yt(oe),yt(we),yt(Se),yt(Ne),yt(pe),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Fragile",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*tt,et,.25*tt,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Nn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=30),st>et&&(st=et);var rt=(et-st)/2,ut=rt+st;return new go.Geometry().add(new go.PathFigure(ut,.5*tt).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(vt,et,tt){var st=new go.Geometry,rt=xt*.4,ut=.4,ct=.5,pt=.5,mt=Rt(),Ct=Rt(),Dt=Rt(),Ut=Rt(),Ft=new go.PathFigure((ct-ut)*et,pt*tt,!1);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.44,Dt,Ut,Ct,mt,mt),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Ct.x*et,Ct.y*tt,Dt.x*et,Dt.y*tt,Ut.x*et,Ut.y*tt));var Qt=Gt(Ct.x,Ct.y);Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.56,mt,mt,Ct,Dt,Ut);var $t=Gt(Ct.x,Ct.y);Ft.add(new go.PathSegment(go.PathSegment.Line,(Qt.x*.1+.95*.9)*et,Qt.y*.1*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,Qt.y*.1*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,($t.x*.1+.9)*et,.15*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,($t.x*.1+.9)*et,($t.y*.1+.05*.9)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,$t.x*et,$t.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,Dt.x*et,Dt.y*tt,Ut.x*et,Ut.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),ut=.35,rt=xt*.35;var Kt=new go.PathFigure(ct*et,(pt-ut)*tt,!1);st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt));var ue=new go.PathFigure((ct-ut)*et,pt*tt,!1);return st.add(ue),yt(mt),yt(Ct),yt(Dt),yt(Ut),yt(Qt),yt($t),st.spot1=new go.Spot(.202,.257),st.spot2=new go.Spot(.792,.739),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("GenderFemale",function(vt,et,tt){var st=new go.Geometry,rt=.375,ut=0,ct=-.125,pt=rt*xt,mt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+pt+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+pt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-pt+ct)*tt,(.5+pt+ut)*et,(.5-rt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-pt+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-pt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+pt+ct)*tt,(.5-pt+ut)*et,(.5+rt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ut=0,ct=-.125,pt=rt*xt;var mt=new go.PathFigure((1-.5+rt+ut)*et,(.5+ct)*tt,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+pt+ct)*tt,(.5+pt+ut)*et,(.5+rt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-pt+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+pt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-pt+ct)*tt,(.5-pt+ut)*et,(.5-rt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+pt+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-pt+ct)*tt));var mt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);return st.add(mt),st.spot1=new go.Spot(.232,.136),st.spot2=new go.Spot(.682,.611),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("LogicImplies",function(vt,et,tt){var st=vt?vt.parameter1:NaN;return isNaN(st)&&(st=.2),new go.Geometry().add(new go.PathFigure((1-st)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(vt,et,tt){var st=vt?vt.parameter1:NaN;return isNaN(st)&&(st=.2),new go.Geometry().add(new go.PathFigure((1-st)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,st*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,st*et,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(vt,et,tt){var st=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*tt,.5*et,.5*tt)));return st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("LogicTruth",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(vt,et,tt){var st=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,st*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,st*et,st*tt,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(vt,et,tt){var st=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,st*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,st*et,st*tt,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Nn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Nn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=.3);var ut=(1-st)*et,ct=(.5-rt/2)*tt,pt=(.5+rt/2)*tt,mt=new go.Geometry,Ct=new go.PathFigure(0,ct,!0);mt.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,pt)),Ct.add(new go.PathSegment(go.PathSegment.Line,0,pt).close()),mt.spot1=new go.Spot(0,ct/tt);var Dt=Vt(0,pt/tt,1,pt/tt,ut/et,1,1,.5,Rt());return mt.spot2=new go.Spot(Dt.x,Dt.y),yt(Dt),mt}),go.Shape.setFigureParameter("Arrow2",0,new Nn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Nn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=30),st>et&&(st=et);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ut=et-st,ct=(tt-rt)/2,pt=ct+rt,mt=new go.Geometry,Ct=new go.PathFigure(0,ct,!0);mt.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,pt)),Ct.add(new go.PathSegment(go.PathSegment.Line,0,pt).close()),mt.spot1=new go.Spot(0,ct/tt);var Dt=Vt(0,pt/tt,1,pt/tt,ut/et,1,1,.5,Rt());return mt.spot2=new go.Spot(Dt.x,Dt.y),yt(Dt),mt}),go.Shape.defineFigureGenerator("Chevron",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("DoubleArrow",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),st}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Nn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var mt=Vt(0,.5,.3,0,0,rt/tt,.1,rt/tt,Rt());return ct.spot1=new go.Spot(mt.x,mt.y),mt=Vt(.7,1,1,.5,0,ut/tt,1,ut/tt,mt),ct.spot2=new go.Spot(mt.x,mt.y),yt(mt),ct}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Nn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Nn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=40);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,pt=(tt-rt)/2,mt=pt+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,pt=0,mt=tt):(ut=0,ct=tt,pt=0,mt=tt));var Ct=new go.Geometry,Dt=new go.PathFigure(et,.5*tt,!0);Ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt).close());var Ut=Vt(0,.5,.3,pt/tt,0,ut/tt,1,ut/tt,Rt());return Ct.spot1=new go.Spot(Ut.x,Ut.y),Ut=Vt(.7,mt/tt,1,.5,0,ct/tt,1,ct/tt,Ut),Ct.spot2=new go.Spot(Ut.x,Ut.y),yt(Ut),Ct}),go.Shape.setFigureParameter("IBeamArrow",0,new Nn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(0,rt/tt);var mt=Vt(.7,1,1,.5,0,ut/tt,1,ut/tt,Rt());return ct.spot2=new go.Spot(mt.x,mt.y),yt(mt),ct}),go.Shape.setFigureParameter("IBeamArrow2",0,new Nn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Nn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=40);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,pt=(tt-rt)/2,mt=pt+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,pt=0,mt=tt):(ut=0,ct=tt,pt=0,mt=tt));var Ct=new go.Geometry,Dt=new go.PathFigure(et,.5*tt,!0);Ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt).close()),Ct.spot1=new go.Spot(0,ut/tt);var Ut=Vt(.7,mt/tt,1,.5,0,ct/tt,1,ct/tt,Rt());return Ct.spot2=new go.Spot(Ut.x,Ut.y),yt(Ut),Ct}),go.Shape.setFigureParameter("Pointer",0,new Nn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.1);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(st,.35);var ct=Vt(.2,.65,1,.65,0,1,1,.5,Rt());return rt.spot2=new go.Spot(ct.x,ct.y),yt(ct),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new Nn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,st*et,.75*tt,st*et,.25*tt).close()),rt.spot1=new go.Spot(st,.35);var ct=Vt(0,.65,1,.65,0,1,1,.5,Rt());return rt.spot2=new go.Spot(ct.x,ct.y),yt(ct),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Nn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.4);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,.3);var mt=Vt(.7,1,1,.5,0,ut/tt,1,ut/tt,Rt());return ct.spot2=new go.Spot(mt.x,mt.y),yt(mt),ct}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Nn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=50);var rt=(tt-st)/2,ut=rt+st;st>tt&&(rt=0,ut=tt);var ct=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,rt/tt);var mt=Vt(.7,1,1,.5,0,ut/tt,1,ut/tt,Rt());return ct.spot2=new go.Spot(mt.x,mt.y),yt(mt),ct}),go.Shape.setFigureParameter("SquareArrow",0,new Nn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.7);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,0).close()),rt.spot1=go.Spot.TopLeft,rt.spot2=new go.Spot(st,1),rt}),go.Shape.defineFigureGenerator("Cone1",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.1,ct=new go.PathFigure(0,.9*tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt).close()),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.97),st}),go.Shape.defineFigureGenerator("Cone2",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.9*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,tt,.85/.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var ut=new go.PathFigure(0,.9*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.82),st}),go.Shape.defineFigureGenerator("Cube1",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(.5,.85),st}),go.Shape.defineFigureGenerator("Cube2",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.3*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ut=new go.PathFigure(0,.3*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(.7,1),st}),go.Shape.defineFigureGenerator("Cylinder1",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,tt/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(0,st,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,xt*st,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,1*et,st,(.5+ut)*et,0,1*et,xt*st)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-xt*st,(.5+ut)*et,1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,(.5-ut)*et,1*tt,0,tt-xt*st)),ct.add(new go.PathSegment(go.PathSegment.Line,0,st));var pt=new go.PathFigure(et,st,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*st,1*et,2*st-xt*st,(.5+ut)*et,2*st)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,st,(.5-ut)*et,2*st,0,2*st-xt*st)),rt.spot1=new go.Spot(0,0,0,2*st),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,tt/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(0,tt-st,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,xt*st,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,st,(.5+ut)*et,0,et,xt*st)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-xt*st,(.5+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,(.5-ut)*et,tt,0,tt-xt*st));var pt=new go.PathFigure(0,tt-st,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*st,0,tt-st-xt*st,(.5-ut)*et,tt-2*st)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-st,(.5+ut)*et,tt-2*st,et,tt-st-xt*st)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,0,-2*st),rt}),go.Shape.defineFigureGenerator("Cylinder3",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,et/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(st,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-xt*st,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,(.5+ut)*tt,et-xt*st,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,xt*st,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,(.5-ut)*tt,xt*st,0));var pt=new go.PathFigure(st,0,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,2*st,.5*tt,st+xt*st,0,2*st,(.5-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,st,tt,2*st,(.5+ut)*tt,st+xt*st,tt)),rt.spot1=new go.Spot(0,0,2*st,0),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder4",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,et/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(et-st,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-xt*st,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,(.5+ut)*tt,et-xt*st,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,xt*st,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,(.5-ut)*tt,xt*st,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,0));var pt=new go.PathFigure(et-st,0,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*st,.5*tt,et-st-xt*st,0,et-2*st,(.5-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et-2*st,(.5+ut)*tt,et-st-xt*st,tt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,-2*st,0),rt}),go.Shape.defineFigureGenerator("Prism1",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,.25*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.25*et,.25*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.408,.172),st.spot2=new go.Spot(.833,.662),st}),go.Shape.defineFigureGenerator("Prism2",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("Pyramid1",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.25,.367),st.spot2=new go.Spot(.75,.875),st}),go.Shape.defineFigureGenerator("Pyramid2",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),st.spot1=new go.Spot(.25,.367),st.spot2=new go.Spot(.75,.875),st}),go.Shape.defineFigureGenerator("Actor",function(vt,et,tt){var st=new go.Geometry,rt=.2,ut=.1,ct=xt*rt,pt=xt*ut,mt=.5,Ct=.1,Dt=new go.PathFigure(mt*et,(Ct+ut)*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-rt)*et,Ct*tt,(mt-ct)*et,(Ct+ut)*tt,(mt-rt)*et,(Ct+pt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-ut)*tt,(mt-rt)*et,(Ct-pt)*tt,(mt-ct)*et,(Ct-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+rt)*et,Ct*tt,(mt+ct)*et,(Ct-ut)*tt,(mt+rt)*et,(Ct-pt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct+ut)*tt,(mt+rt)*et,(Ct+pt)*tt,(mt+ct)*et,(Ct+ut)*tt));var Ut=.05,Ft=xt*Ut;mt=.05,Ct=.25;var Qt=new go.PathFigure(.5*et,.2*tt,!0);return st.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),mt=.95,Ct=.25,Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+Ut)*et,Ct*tt,(mt+Ft)*et,(Ct-Ut)*tt,(mt+Ut)*et,(Ct-Ft)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),Ut=.025,Ft=xt*Ut,mt=.825,Ct=.35,Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-Ut)*tt,(mt+Ut)*et,(Ct-Ft)*tt,(mt+Ft)*et,(Ct-Ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-Ut)*et,Ct*tt,(mt-Ft)*et,(Ct-Ut)*tt,(mt-Ut)*et,(Ct-Ft)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),Ut=.05,Ft=xt*Ut,mt=.5,Ct=.7,Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-Ut)*tt,(mt+Ut)*et,(Ct-Ft)*tt,(mt+Ft)*et,(Ct-Ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-Ut)*et,Ct*tt,(mt-Ft)*et,(Ct-Ut)*tt,(mt-Ut)*et,(Ct-Ft)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),Ut=.025,Ft=xt*Ut,mt=.175,Ct=.35,Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-Ut)*tt,(mt+Ut)*et,(Ct-Ft)*tt,(mt+Ft)*et,(Ct-Ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-Ut)*et,Ct*tt,(mt-Ft)*et,(Ct-Ut)*tt,(mt-Ut)*et,(Ct-Ft)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),Ut=.05,Ft=xt*Ut,mt=.05,Ct=.25,Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-Ut)*tt,(mt-Ut)*et,(Ct-Ft)*tt,(mt-Ft)*et,(Ct-Ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),st.spot1=new go.Spot(.2,.2),st.spot2=new go.Spot(.8,.65),st}),go.Shape.setFigureParameter("Card",0,new Nn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.2);var rt=new go.Geometry,ut=new go.PathFigure(et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,0).close()),rt.spot1=new go.Spot(0,st),rt.spot2=go.Spot.BottomRight,rt}),go.Shape.defineFigureGenerator("Collate",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt));var ut=new go.PathFigure(.5*et,.5*tt,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),st.spot1=new go.Spot(.25,0),st.spot2=new go.Spot(.75,.25),st}),go.Shape.defineFigureGenerator("CreateRequest",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),st}),go.Shape.defineFigureGenerator("Database",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.1,ct=new go.PathFigure(et,.1*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var pt=new go.PathFigure(et,.1*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ut)*tt,(.5+rt)*et,.4*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ut)*tt)),st.spot1=new go.Spot(0,.4),st.spot2=new go.Spot(1,.9),st}),go.Shape.defineFigureGenerator("DataStorage",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*tt,.25*et,.1*tt).close()),st.spot1=new go.Spot(.226,0),st.spot2=new go.Spot(.81,1),st}),go.Shape.defineFigureGenerator("DiskStorage",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.1,ct=new go.PathFigure(et,.1*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var pt=new go.PathFigure(et,.1*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(1,.9),st}),go.Shape.defineFigureGenerator("Display",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),st.spot1=new go.Spot(.25,0),st.spot2=new go.Spot(.75,1),st}),go.Shape.defineFigureGenerator("DividedEvent",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)?rt=.2:rt<.15&&(rt=.15);var ut=xt*.2,ct=new go.PathFigure(0,.2*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ut)*tt,(.2-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ut)*et,0,et,(.2-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ut)*tt,(.8+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ut)*et,tt,0,(.8+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var pt=new go.PathFigure(0,rt*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),st}),go.Shape.defineFigureGenerator("DividedProcess",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;(isNaN(rt)||rt<.1)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),st}),go.Shape.defineFigureGenerator("Document",function(vt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(1,.6),st}),go.Shape.defineFigureGenerator("ExternalOrganization",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;(isNaN(rt)||rt<.2)&&(rt=.2);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),st}),go.Shape.defineFigureGenerator("ExternalProcess",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(.1*et,.4*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("File",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.75*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Interrupt",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt));var ut=new go.PathFigure(et,.5*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt));var ct=new go.PathFigure(et,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("InternalStorage",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN,ut=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.1);var ct=new go.PathFigure(0,0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var pt=new go.PathFigure(rt*et,0,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,ut*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt)),st}),go.Shape.defineFigureGenerator("Junction",function(vt,et,tt){var st=new go.Geometry,rt=1/Math.SQRT2,ut=(1-1/Math.SQRT2)/2,ct=xt*.5,pt=.5,mt=new go.PathFigure(et,pt*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,tt,et,(pt+ct)*tt,(pt+ct)*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*tt,(pt-ct)*et,tt,0,(pt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-ct)*tt,(pt-ct)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*tt,(pt+ct)*et,0,et,(pt-ct)*tt));var Ct=new go.PathFigure((ut+rt)*et,(ut+rt)*tt,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),Ct.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,(ut+rt)*et,ut*tt)),st}),go.Shape.defineFigureGenerator("LinedDocument",function(vt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close());var ut=new go.PathFigure(.1*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),st.spot1=new go.Spot(.1,0),st.spot2=new go.Spot(1,.6),st}),go.Shape.defineFigureGenerator("LoopLimit",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("MagneticTape",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=new go.PathFigure(.5*et,tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ut+.1)*et,.9*tt,et,(ut+rt)*tt,(ut+rt)*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.15,.15),st.spot2=new go.Spot(.85,.8),st}),go.Shape.defineFigureGenerator("ManualInput",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("MessageFromUser",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.7);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st}),go.Shape.defineFigureGenerator("MicroformProcessing",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("MicroformRecording",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(1,.75),st}),go.Shape.defineFigureGenerator("MultiDocument",function(vt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*tt,.96*et,.47*tt,.93*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*tt,.86*et,.57*tt,.83*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*et,.4*tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ut=new go.PathFigure(.1*et,.2*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.8,.77),st}),go.Shape.defineFigureGenerator("MultiProcess",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,.1*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close());var ut=new go.PathFigure(.2*et,.1*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),st.spot1=new go.Spot(0,.2),st.spot2=new go.Spot(.8,1),st}),go.Shape.defineFigureGenerator("OfflineStorage",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=1-rt,ct=new go.PathFigure(0,0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var pt=new go.PathFigure(.5*rt*et,rt*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),st}),go.Shape.defineFigureGenerator("OffPageConnector",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(.75,1),st}),go.Shape.defineFigureGenerator("Or",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var pt=new go.PathFigure(et,.5*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st}),go.Shape.defineFigureGenerator("PaperTape",function(vt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.5*et,.6*tt,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),st.spot1=new go.Spot(0,.49),st.spot2=new go.Spot(1,.75),st}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN,ut=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN,ut=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("Procedure",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure((1-rt)*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,rt*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),st}),go.Shape.defineFigureGenerator("Process",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Sort",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(0,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.5),st}),go.Shape.defineFigureGenerator("Start",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(rt*et,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),st.spot1=new go.Spot(rt,0),st.spot2=new go.Spot(1-rt,1),st}),go.Shape.defineFigureGenerator("Terminator",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt)),st.spot1=new go.Spot(.23,0),st.spot2=new go.Spot(.77,1),st}),go.Shape.defineFigureGenerator("TransmittalTape",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),st.spot1=go.Spot.TopLeft,st}),go.Shape.defineFigureGenerator("AndGate",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(.55,1),st}),go.Shape.defineFigureGenerator("Buffer",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("Clock",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var pt=new go.PathFigure(et,ut*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt));var mt=new go.PathFigure(.8*et,.75*tt,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),st}),go.Shape.defineFigureGenerator("Ground",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),st}),go.Shape.defineFigureGenerator("Inverter",function(vt,et,tt){var st=new go.Geometry,rt=xt*.1,ut=.1,ct=.9,pt=.5,mt=new go.PathFigure(.8*et,.5*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var Ct=new go.PathFigure((ct+ut)*et,pt*tt,!0);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt-ut)*tt,(ct+ut)*et,(pt-rt)*tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.4,.75),st}),go.Shape.defineFigureGenerator("NandGate",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.4,ct=xt*.1,pt=.1,mt=.9,Ct=.5,Dt=new go.PathFigure(.8*et,.5*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ut)*tt,(.4+rt)*et,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ut)*tt));var Ut=new go.PathFigure((mt+pt)*et,Ct*tt,!0);return st.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct+pt)*tt,(mt+pt)*et,(Ct+ct)*tt,(mt+ct)*et,(Ct+pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et,Ct*tt,(mt-ct)*et,(Ct+pt)*tt,(mt-pt)*et,(Ct+ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-pt)*tt,(mt-pt)*et,(Ct-ct)*tt,(mt-ct)*et,(Ct-pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et,Ct*tt,(mt+ct)*et,(Ct-pt)*tt,(mt+pt)*et,(Ct-ct)*tt)),st.spot1=new go.Spot(0,.05),st.spot2=new go.Spot(.55,.95),st}),go.Shape.defineFigureGenerator("NorGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=0,pt=.5,mt=new go.PathFigure(.8*et,.5*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(pt-rt)*tt,.7*et,(pt-ut)*tt)),rt=.1,ut=xt*.1,ct=.9,pt=.5;var Ct=new go.PathFigure((ct-rt)*et,pt*tt,!0);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),st.spot1=new go.Spot(.2,.25),st.spot2=new go.Spot(.6,.75),st}),go.Shape.defineFigureGenerator("OrGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=0,pt=.5,mt=new go.PathFigure(0,0,!0);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut+ut)*et,(pt-rt)*tt,.8*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(pt+ut)*tt,(ct+ut+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt).close()),st.spot1=new go.Spot(.2,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("XnorGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=.2,pt=.5,mt=new go.PathFigure(.1*et,0,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Ct=new go.PathFigure(.8*et,.5*tt,!0);st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(pt-rt)*tt,.7*et,(pt-ut)*tt)),rt=.1,ut=xt*.1,ct=.9,pt=.5;var Dt=new go.PathFigure((ct-rt)*et,pt*tt,!0);return st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),st.spot1=new go.Spot(.4,.25),st.spot2=new go.Spot(.65,.75),st}),go.Shape.defineFigureGenerator("XorGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=.2,pt=.5,mt=new go.PathFigure(.1*et,0,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Ct=new go.PathFigure(.2*et,0,!0);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut)*et,(pt-rt)*tt,.9*et,(pt-ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt).close()),st.spot1=new go.Spot(.4,.25),st.spot2=new go.Spot(.8,.75),st}),go.Shape.defineFigureGenerator("Capacitor",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("Resistor",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Inductor",function(vt,et,tt){var st=new go.Geometry,rt=xt*.1,ut=.1,ct=.1,pt=.5,mt=new go.PathFigure((ct-rt*.5)*et,tt,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.3,mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.5,mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.7,mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.9,mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt*.5)*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),st}),go.Shape.defineFigureGenerator("ACvoltageSource",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=.5,pt=.5,mt=new go.PathFigure((ct-ut)*et,pt*tt,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt-ut)*tt,(ct+ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Move,(ct-ut+.1)*et,pt*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut-.1)*et,pt*tt,ct*et,(pt-ut)*tt,ct*et,(pt+ut)*tt)),st}),go.Shape.defineFigureGenerator("DCvoltageSource",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("Diode",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("Wifi",function(vt,et,tt){var st=new go.Geometry,rt=et,ut=tt;et=et*.38,tt=tt*.6;var ct=xt*.8,pt=.8,mt=0,Ct=.5,Dt=(rt-et)/2,Ut=(ut-tt)/2,Ft=new go.PathFigure(mt*et+Dt,(Ct+pt)*tt+Ut,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et+Dt,Ct*tt+Ut,(mt-ct)*et+Dt,(Ct+pt)*tt+Ut,(mt-pt)*et+Dt,(Ct+ct)*tt+Ut)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt)*et+Dt,(Ct-ct)*tt+Ut,(mt-ct)*et+Dt,(Ct-pt)*tt+Ut)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt+ct*.5)*et+Dt,Ct*tt+Ut,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt+ct*.5)*et+Dt,(Ct-ct)*tt+Ut)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt-pt+ct*.5)*et+Dt,(Ct+ct)*tt+Ut,mt*et+Dt,(Ct+pt)*tt+Ut).close()),ct=xt*.4,pt=.4,mt=.2,Ct=.5;var Qt=new go.PathFigure(mt*et+Dt,(Ct+pt)*tt+Ut,!0);st.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et+Dt,Ct*tt+Ut,(mt-ct)*et+Dt,(Ct+pt)*tt+Ut,(mt-pt)*et+Dt,(Ct+ct)*tt+Ut)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt)*et+Dt,(Ct-ct)*tt+Ut,(mt-ct)*et+Dt,(Ct-pt)*tt+Ut)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt+ct*.5)*et+Dt,Ct*tt+Ut,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt+ct*.5)*et+Dt,(Ct-ct)*tt+Ut)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt-pt+ct*.5)*et+Dt,(Ct+ct)*tt+Ut,mt*et+Dt,(Ct+pt)*tt+Ut).close()),ct=xt*.2,pt=.2,mt=.5,Ct=.5;var $t=new go.PathFigure((mt-pt)*et+Dt,Ct*tt+Ut,!0);st.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt)*et+Dt,(Ct-ct)*tt+Ut,(mt-ct)*et+Dt,(Ct-pt)*tt+Ut)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et+Dt,Ct*tt+Ut,(mt+ct)*et+Dt,(Ct-pt)*tt+Ut,(mt+pt)*et+Dt,(Ct-ct)*tt+Ut)),$t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt)*et+Dt,(Ct+ct)*tt+Ut,(mt+ct)*et+Dt,(Ct+pt)*tt+Ut)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et+Dt,Ct*tt+Ut,(mt-ct)*et+Dt,(Ct+pt)*tt+Ut,(mt-pt)*et+Dt,(Ct+ct)*tt+Ut)),ct=xt*.4,pt=.4,mt=.8,Ct=.5;var Kt=new go.PathFigure(mt*et+Dt,(Ct-pt)*tt+Ut,!0);st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et+Dt,Ct*tt+Ut,(mt+ct)*et+Dt,(Ct-pt)*tt+Ut,(mt+pt)*et+Dt,(Ct-ct)*tt+Ut)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt)*et+Dt,(Ct+ct)*tt+Ut,(mt+ct)*et+Dt,(Ct+pt)*tt+Ut)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt-ct*.5)*et+Dt,Ct*tt+Ut,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt-ct*.5)*et+Dt,(Ct+ct)*tt+Ut)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt+pt-ct*.5)*et+Dt,(Ct-ct)*tt+Ut,mt*et+Dt,(Ct-pt)*tt+Ut).close()),ct=xt*.8,pt=.8,mt=1,Ct=.5;var ue=new go.PathFigure(mt*et+Dt,(Ct-pt)*tt+Ut,!0);return st.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et+Dt,Ct*tt+Ut,(mt+ct)*et+Dt,(Ct-pt)*tt+Ut,(mt+pt)*et+Dt,(Ct-ct)*tt+Ut)),ue.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt)*et+Dt,(Ct+ct)*tt+Ut,(mt+ct)*et+Dt,(Ct+pt)*tt+Ut)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt-ct*.5)*et+Dt,Ct*tt+Ut,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt-ct*.5)*et+Dt,(Ct+ct)*tt+Ut)),ue.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt+pt-ct*.5)*et+Dt,(Ct-ct)*tt+Ut,mt*et+Dt,(Ct-pt)*tt+Ut).close()),st}),go.Shape.defineFigureGenerator("Email",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),st}),go.Shape.defineFigureGenerator("Ethernet",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.35*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ut=new go.PathFigure(.1*et,tt,!0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ct=new go.PathFigure(.6*et,tt,!0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var pt=new go.PathFigure(0,.5*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),st}),go.Shape.defineFigureGenerator("Power",function(vt,et,tt){var st=new go.Geometry,rt=xt*.4,ut=.4,ct=.5,pt=.5,mt=Rt(),Ct=Rt(),Dt=Rt(),Ut=Rt();Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.5,mt,mt,Ct,Dt,Ut);var Ft=Gt(Ct.x,Ct.y),Qt=new go.PathFigure(Ct.x*et,Ct.y*tt,!0);st.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,Dt.x*et,Dt.y*tt,Ut.x*et,Ut.y*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),Yt(ct-ut,pt,ct-ut,pt-rt,ct-rt,pt-ut,ct,pt-ut,.5,Dt,Ut,Ct,mt,mt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Ct.x*et,Ct.y*tt,Dt.x*et,Dt.y*tt,Ut.x*et,Ut.y*tt)),rt=xt*.3,ut=.3,Yt(ct-ut,pt,ct-ut,pt-rt,ct-rt,pt-ut,ct,pt-ut,.5,Dt,Ut,Ct,mt,mt),Qt.add(new go.PathSegment(go.PathSegment.Line,Ct.x*et,Ct.y*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,Ut.x*et,Ut.y*tt,Dt.x*et,Dt.y*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.5,mt,mt,Ct,Dt,Ut),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Ct.x*et,Ct.y*tt,Ut.x*et,Ut.y*tt,Dt.x*et,Dt.y*tt).close());var Qt=new go.PathFigure(.45*et,0,!0);return st.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),Qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),yt(mt),yt(Ct),yt(Dt),yt(Ut),yt(Ft),st.spot1=new go.Spot(.25,.45),st.spot2=new go.Spot(.75,.8),st}),go.Shape.defineFigureGenerator("Fallout",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt/2,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,tt/2,et/2,tt/2));function ut(ct,pt,mt){ct.add(new go.PathSegment(go.PathSegment.Move,(.3+pt)*et,(.8+mt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.5+pt)*et,(.5+mt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.1+pt)*et,(.5+mt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.3+pt)*et,(.8+mt)*tt).close())}return ut(rt,0,0),ut(rt,.4,0),ut(rt,.2,-.3),st}),go.Shape.defineFigureGenerator("IrritationHazard",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.2*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),st.spot1=new go.Spot(.3,.3),st.spot2=new go.Spot(.7,.7),st}),go.Shape.defineFigureGenerator("ElectricalHazard",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.37*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.37*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),st}),go.Shape.defineFigureGenerator("FireHazard",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*tt,.45*et,.44*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*tt,.48*et,.17*tt,.54*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*tt,.59*et,.29*tt,.58*et,.28*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*tt,.8*et,.34*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*tt,.87*et,.48*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,1.17*et,.76*tt,.82*et,.8*tt).close()),st.spot1=new go.Spot(.07,.445),st.spot2=new go.Spot(.884,.958),st}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=0,ct=0,pt=rt*xt,mt=.4*Math.SQRT2/2+.5,Ct=.5-.5*Math.SQRT2/2,Dt=1,Ut=.5,Ft=.5,Qt=0,$t=new go.PathFigure(mt*et,(1-Ct)*tt,!1);return st.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,Ut*tt,Dt*et,.7*tt,Dt*et,Ut*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+ut)*et,(Qt+ut)*tt,(.5+rt+ut)*et,(.5-pt+ut)*tt,(.5+pt+ut)*et,(.5-rt+ut)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-pt+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-pt+ct)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ut)*et,.9*tt,(.5-rt+ut)*et,(.5+pt+ct)*tt,(.5-pt+ut)*et,.9*tt)),$t.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),$t.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),$t.add(new go.PathSegment(go.PathSegment.Line,(.2+ut)*et,.95*tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(et,tt,!1);st.add(ut);var ct=new go.PathFigure(0,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close()),st}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var rt=new go.PathFigure(0,.2*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),st}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.7*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,tt,.4*et,.5*tt,et,.5*tt).close());var ut=new go.PathFigure(.45*et,.73*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),st}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(.335*et,(1-.555)*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var ct=.5-.285,pt=.5,mt=ct,Ct=Math.PI/4,Dt=4*(1-Math.cos(Ct))/(3*Math.sin(Ct)),Ut=Dt*.5,Ft=ct,Qt=ct,$t=Dt*Ft,Kt=Dt*Qt;ut.add(new go.PathSegment(go.PathSegment.Bezier,(pt-Ft)*et,mt*tt,(pt-($t+Ft)/2)*et,(mt+(Qt+Kt)/2)*tt,(pt-Ft)*et,(mt+Kt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(mt-Qt)*tt,(pt-Ft)*et,(mt-Kt)*tt,(pt-$t)*et,(mt-Qt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(pt+Ft)*et,mt*tt,(pt+$t)*et,(mt-Qt)*tt,(pt+Ft)*et,(mt-Kt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(pt+Ft)*et,(mt+Kt)*tt,(pt+($t+Ft)/2)*et,(mt+(Qt+Kt)/2)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var ue=new go.PathFigure(.2*et,tt,!1);st.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var oe=new go.PathFigure(.8*et,tt,!1);return st.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ut=new go.PathFigure(.2*et,.2*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventError",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(et,tt,!1);st.add(ut);var ct=new go.PathFigure(.1*et,tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("Caution",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.05*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*tt,0,tt,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*tt,.5*et,0,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,et,tt,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,tt));var ut=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ut)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ut*et,ut*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*tt,.575*et,.725*tt,.625*et,.375*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*tt,.375*et,.375*tt,.425*et,.725*tt)),st}),go.Shape.defineFigureGenerator("Recycle",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.45*et,.95*tt,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*tt,.17*et,.95*tt,.15*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*tt,0,.675*tt,0,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*tt));var ut=new go.PathFigure(.475*et,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var ct=new go.PathFigure(.675*et,.575*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=new go.PathFigure(et,rt*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,tt,et,(rt+ut)*tt,(rt+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ut)*et,tt,0,(rt+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ut)*tt,(rt-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ut)*et,0,et,(rt-ut)*tt));var pt=new go.PathFigure(rt*et,0,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),st}),go.Shape.defineFigureGenerator("Package",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.15*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,.15*tt,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),st.spot1=new go.Spot(0,.1),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Class",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(0,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("Component",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close());var ut=new go.PathFigure(0,.2*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var ct=new go.PathFigure(0,.6*tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),st}),go.Shape.defineFigureGenerator("Boat Shipment",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.15*et,.6*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt));var ut=new go.PathFigure(.15*et,.6*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),st}),go.Shape.defineFigureGenerator("Customer/Supplier",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st}),go.Shape.defineFigureGenerator("Workcell",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("Supermarket",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),st}),go.Shape.defineFigureGenerator("TruckShipment",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(et,.8*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var ct=.1,pt=xt*.1,mt=.2,Ct=.9,Dt=new go.PathFigure((mt-ct)*et,Ct*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-ct)*tt,(mt-ct)*et,(Ct-pt)*tt,(mt-pt)*et,(Ct-ct)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ct)*et,Ct*tt,(mt+pt)*et,(Ct-ct)*tt,(mt+ct)*et,(Ct-pt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct+ct)*tt,(mt+ct)*et,(Ct+pt)*tt,(mt+pt)*et,(Ct+ct)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ct)*et,Ct*tt,(mt-pt)*et,(Ct+ct)*tt,(mt-ct)*et,(Ct+pt)*tt).close()),ct=.1,pt=xt*.1,mt=.8,Ct=.9;var Ut=new go.PathFigure((mt-ct)*et,Ct*tt,!0);return st.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-ct)*tt,(mt-ct)*et,(Ct-pt)*tt,(mt-pt)*et,(Ct-ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ct)*et,Ct*tt,(mt+pt)*et,(Ct-ct)*tt,(mt+ct)*et,(Ct-pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct+ct)*tt,(mt+ct)*et,(Ct+pt)*tt,(mt+pt)*et,(Ct+ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ct)*et,Ct*tt,(mt-pt)*et,(Ct+ct)*tt,(mt-ct)*et,(Ct+pt)*tt).close()),st}),go.Shape.defineFigureGenerator("KanbanPost",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.2*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),st}),go.Shape.defineFigureGenerator("Forklift",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0));var ut=new go.PathFigure(0,.5*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ct=new go.PathFigure(.5*et,.8*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var pt=new go.PathFigure(.5*et,.7*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var mt=.1,Ct=xt*.1,Dt=.1,Ut=.9,Ft=new go.PathFigure((Dt-mt)*et,Ut*tt,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-mt)*tt,(Dt-mt)*et,(Ut-Ct)*tt,(Dt-Ct)*et,(Ut-mt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+mt)*et,Ut*tt,(Dt+Ct)*et,(Ut-mt)*tt,(Dt+mt)*et,(Ut-Ct)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut+mt)*tt,(Dt+mt)*et,(Ut+Ct)*tt,(Dt+Ct)*et,(Ut+mt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-mt)*et,Ut*tt,(Dt-Ct)*et,(Ut+mt)*tt,(Dt-mt)*et,(Ut+Ct)*tt)),mt=.1,Ct=xt*.1,Dt=.4,Ut=.9;var Qt=new go.PathFigure((Dt-mt)*et,Ut*tt,!0);return st.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-mt)*tt,(Dt-mt)*et,(Ut-Ct)*tt,(Dt-Ct)*et,(Ut-mt)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+mt)*et,Ut*tt,(Dt+Ct)*et,(Ut-mt)*tt,(Dt+mt)*et,(Ut-Ct)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut+mt)*tt,(Dt+mt)*et,(Ut+Ct)*tt,(Dt+Ct)*et,(Ut+mt)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-mt)*et,Ut*tt,(Dt-Ct)*et,(Ut+mt)*tt,(Dt-mt)*et,(Ut+Ct)*tt)),st}),go.Shape.defineFigureGenerator("RailShipment",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,.4*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*tt).close());var ut=new go.PathFigure(.45*et,.7*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var ct=new go.PathFigure(.55*et,.4*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var Dt=.05,Ut=xt*.05,Ft=.175,Qt=.95,pt=new go.PathFigure((Ft-Dt)*et,Qt*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt-Dt)*tt,(Ft-Dt)*et,(Qt-Ut)*tt,(Ft-Ut)*et,(Qt-Dt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,Qt*tt,(Ft+Ut)*et,(Qt-Dt)*tt,(Ft+Dt)*et,(Qt-Ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt+Dt)*tt,(Ft+Dt)*et,(Qt+Ut)*tt,(Ft+Ut)*et,(Qt+Dt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,Qt*tt,(Ft-Ut)*et,(Qt+Dt)*tt,(Ft-Dt)*et,(Qt+Ut)*tt));var Dt=.05,Ut=xt*.05,Ft=.375,Qt=.95,mt=new go.PathFigure((Ft-Dt)*et,Qt*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt-Dt)*tt,(Ft-Dt)*et,(Qt-Ut)*tt,(Ft-Ut)*et,(Qt-Dt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,Qt*tt,(Ft+Ut)*et,(Qt-Dt)*tt,(Ft+Dt)*et,(Qt-Ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt+Dt)*tt,(Ft+Dt)*et,(Qt+Ut)*tt,(Ft+Ut)*et,(Qt+Dt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,Qt*tt,(Ft-Ut)*et,(Qt+Dt)*tt,(Ft-Dt)*et,(Qt+Ut)*tt));var Dt=.05,Ut=xt*.05,Ft=.625,Qt=.95,Ct=new go.PathFigure((Ft-Dt)*et,Qt*tt,!0);st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt-Dt)*tt,(Ft-Dt)*et,(Qt-Ut)*tt,(Ft-Ut)*et,(Qt-Dt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,Qt*tt,(Ft+Ut)*et,(Qt-Dt)*tt,(Ft+Dt)*et,(Qt-Ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt+Dt)*tt,(Ft+Dt)*et,(Qt+Ut)*tt,(Ft+Ut)*et,(Qt+Dt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,Qt*tt,(Ft-Ut)*et,(Qt+Dt)*tt,(Ft-Dt)*et,(Qt+Ut)*tt));var Dt=.05,Ut=xt*.05,Ft=.825,Qt=.95,$t=new go.PathFigure((Ft-Dt)*et,Qt*tt,!0);st.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt-Dt)*tt,(Ft-Dt)*et,(Qt-Ut)*tt,(Ft-Ut)*et,(Qt-Dt)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,Qt*tt,(Ft+Ut)*et,(Qt-Dt)*tt,(Ft+Dt)*et,(Qt-Ut)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt+Dt)*tt,(Ft+Dt)*et,(Qt+Ut)*tt,(Ft+Ut)*et,(Qt+Dt)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,Qt*tt,(Ft-Ut)*et,(Qt+Dt)*tt,(Ft-Dt)*et,(Qt+Ut)*tt).close());var Kt=new go.PathFigure(0,tt,!1);return st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st}),go.Shape.defineFigureGenerator("Warehouse",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(.15*et,tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var pt=.05,mt=xt*.05,Ct=.35,Dt=.775,Ut=new go.PathFigure((Ct-pt)*et,Dt*tt,!0);return st.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ct*et,(Dt-pt)*tt,(Ct-pt)*et,(Dt-mt)*tt,(Ct-mt)*et,(Dt-pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ct+pt)*et,Dt*tt,(Ct+mt)*et,(Dt-pt)*tt,(Ct+pt)*et,(Dt-mt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ct*et,(Dt+pt)*tt,(Ct+pt)*et,(Dt+mt)*tt,(Ct+mt)*et,(Dt+pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ct-pt)*et,Dt*tt,(Ct-mt)*et,(Dt+pt)*tt,(Ct-pt)*et,(Dt+mt)*tt).close()),st}),go.Shape.defineFigureGenerator("ControlCenter",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt).close()),st}),go.Shape.defineFigureGenerator("Bluetooth",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),st}),go.Shape.defineFigureGenerator("Bookmark",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),st}),go.Shape.defineFigureGenerator("Bookmark",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),st}),go.Shape.defineFigureGenerator("Globe",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.75*et,0,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.75*tt,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*et,tt,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*tt,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,.15*et,.25*tt,.15*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*tt,.85*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*tt,.35*et,.3*tt,.65*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*tt,.35*et,.7*tt,.65*et,.7*tt)),st}),go.Shape.defineFigureGenerator("Wave",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*tt,.1*et,0,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*tt,.425*et,.5*tt,.575*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*tt,.8*et,0,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*tt,.1*et,.5*tt,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*tt,.425*et,tt,.575*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*tt,.8*et,.5*tt,.9*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Operator",function(vt,et,tt){var st=new go.Geometry,rt=.3,ut=xt*.3,ct=.5,pt=.7,mt=new go.PathFigure((ct-rt)*et,pt*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt));var Ct=new go.PathFigure(0,.7*tt,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),st}),go.Shape.defineFigureGenerator("TripleFanBlades",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.65*et,.3*tt,.65*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*tt,.35*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*et,.6*tt,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.2*et,tt,.35*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,.7*et,.6*tt,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.8*et,tt,.65*et,.95*tt)),st}),go.Shape.defineFigureGenerator("CentrifugalPump",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,0,tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*tt,.8*et,tt,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),st}),go.Shape.defineFigureGenerator("Battery",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*tt));var ut=new go.PathFigure(0,.6*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),st}),go.Shape.defineFigureGenerator("Delete",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=.5,pt=.5,mt=new go.PathFigure((ct-rt)*et,pt*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt));var Ct=new go.PathFigure(.15*et,.5*tt,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Flag",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.1*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*tt,.15*et,0,.35*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,.65*et,.2*tt,.85*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.85*et,.6*tt,.65*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*et,.4*tt,.15*et,.4*tt).close()),st}),go.Shape.defineFigureGenerator("Help",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=.5,pt=.5,mt=new go.PathFigure((ct-rt)*et,pt*tt,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt).close()),rt=.05,ut=xt*.05,ct=.5,pt=.8;var Ct=new go.PathFigure((ct-rt)*et,pt*tt,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt).close()),Ct.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*tt,.4*et,.2*tt,.3*et,.25*tt)),st}),go.Shape.defineFigureGenerator("Location",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*tt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*tt,.5*et,0,.025*et,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),st}),go.Shape.defineFigureGenerator("Unlocked",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),st}),go.Shape.defineFigureGenerator("Gear",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*tt,.79840625*et,.39915625*tt,.7834375*et,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*tt,.64228125*et,.2188125*tt,.603875*et,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*tt,.39759375*et,.20190625*tt,.36053125*et,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*tt,.21765625*et,.36059375*tt,.201875*et,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*tt,.20221875*et,.603875*tt,.21884375*et,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*tt,.36353125*et,.78340625*tt,.3991875*et,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*tt,.602375*et,.79809375*tt,.63946875*et,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*tt,.78234375*et,.63940625*tt,.798125*et,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*tt,0,.375*tt,.05*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*tt,.3*et,.225*tt,.4*et,.175*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*tt,.46*et,.05*tt,.525*et,.05*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*tt,.525*et,.275*tt,.475*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*tt,et,.4*tt,et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*tt,.675*et,.55*tt,.675*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*tt,.65*et,.7*tt,.65*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,tt,.61*et,.85*tt,.61*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*et,tt,0,tt).close()),st}),go.Shape.defineFigureGenerator("Map",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),st}),go.Shape.defineFigureGenerator("Eject",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.7)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var ut=new go.PathFigure(0,tt*.6,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),st}),go.Shape.defineFigureGenerator("Pencil",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*1,tt*1,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.85).close());var ut=new go.PathFigure(.126*et,.85*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var ct=new go.PathFigure(.402*et,.85*tt,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var pt=new go.PathFigure(.678*et,.85*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var mt=new go.PathFigure(.5*et,.1*tt,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),st}),go.Shape.defineFigureGenerator("Staircase",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),st}),go.Shape.defineFigureGenerator("5Bars",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*(1-.184)).close());var ut=new go.PathFigure(et*.204,tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var ct=new go.PathFigure(et*.408,tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var pt=new go.PathFigure(et*.612,tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var mt=new go.PathFigure(et*.816,tt,!0);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),mt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),mt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),st}),go.Shape.defineFigureGenerator("PC",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ut=new go.PathFigure(et*.055,.07*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var ct=new go.PathFigure(et*.055,.13*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var pt=new go.PathFigure(et*.055,.18*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var mt=new go.PathFigure(et*1,0,!0);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),mt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),st}),go.Shape.defineFigureGenerator("Plane",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.55*et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*tt,0,.4*tt,.225*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*tt,.975*et,0,et,.08*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt).close()),st}),go.Shape.defineFigureGenerator("Key",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*1,tt*.5,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*tt,.075*et,.075*tt).close()),st}),go.Shape.defineFigureGenerator("FilmTape",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ut=new go.PathFigure(0,0,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ct=new go.PathFigure(et*.11,tt*.1,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var pt=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var mt=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),st}),go.Shape.defineFigureGenerator("FloppyDisk",function(vt,et,tt){var st=new go.Geometry,rt=8,ut=rt*xt,ct=new go.PathFigure(rt,0,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ut,ut,0).close());var pt=new go.PathFigure(et*.83,0,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var mt=new go.PathFigure(et*.83,tt*1,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var Ct=new go.PathFigure(et*.78,tt*.05,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Ct.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Ct.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),st}),go.Shape.defineFigureGenerator("SpeechBubble",function(vt,et,tt){var st=vt?vt.parameter1:NaN;(isNaN(st)||st<0)&&(st=15),st=Math.min(st,et/3),st=Math.min(st,tt/3);var rt=st*xt,ut=tt*.8,ct=new go.Geometry,pt=new go.PathFigure(st,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et-st,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,st,et-rt,0,et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,ut-st)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,ut,et,ut-rt,et-rt,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,st,ut)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ut-st,rt,ut,0,ut-rt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,st)),pt.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,rt,rt,0).close()),rt>1?(ct.spot1=new go.Spot(0,0,rt,rt),ct.spot2=new go.Spot(1,.8,-rt,-rt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.8)),ct}),go.Shape.defineFigureGenerator("Repeat",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*.45,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.45).close());var ut=new go.PathFigure(et*1,tt*.55,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),st}),go.Shape.defineFigureGenerator("Windows",function(vt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*.1,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.9).close());var ut=new go.PathFigure(et*.1,tt*.2,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var ct=new go.PathFigure(et*.28,tt*.37,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),st}),go.Shape.defineFigureGenerator("Beaker",function(vt,et,tt){var st=new go.Geometry,rt=15,ut=rt*xt,ct=new go.PathFigure(et*.62,tt*.475,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ut>1?(st.spot1=new go.Spot(0,0,ut,ut),st.spot2=new go.Spot(1,1,-ut,-ut)):(st.spot1=go.Spot.TopLeft,st.spot2=go.Spot.BottomRight),st}),go.Shape.defineFigureGenerator("Download",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.4,tt*0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),st}),go.Shape.defineFigureGenerator("Bin",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;return rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close()),st}),go.Shape.defineFigureGenerator("Upload",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.5,tt*0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),st}),go.Shape.defineFigureGenerator("EmptyDrink",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close()),st}),go.Shape.defineFigureGenerator("Drink",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close());var ut=new go.PathFigure(et*.235,tt*.28,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),st}),go.Shape.defineFigureGenerator("4Arrows",function(vt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.5,tt*0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.25).close()),st}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Nn={},An="5.0",Gt={},Rt=null,yt=!1,Vt=!1,Yt=null,Nt=!1,Wt=null,xt=null,Ot=0;Ot4?parseFloat(se):5};Nn.setHTML5Codebase=function(se,De){xt=se,ee(se,De)},Nn.setJavaCodebase=Nn.setJavaCodebaseVersion=Nn.isCompiledInstalled=Nn.setPreCompiledScriptPath=Nn.setPreCompiledResourcePath=function(){},Nn.setHTML5CodebaseVersion=function(se,De){var Oe=parseFloat(se);if(Oe!==NaN&&Oe<5){console.log("The GeoGebra HTML5 codebase version "+Oe+" is deprecated. Using version latest instead.");return}Wt=se,Jt(se,De)},Nn.getHTML5CodebaseVersion=function(){return vt},Nn.getParameters=function(){return Gt},Nn.setFontsCSSURL=function(se){ct=se},Nn.setGiacJSURL=function(se){},Nn.setJNLPFile=function(se){At=se},Nn.setJNLPBaseDir=function(se){},Nn.inject=function(){function se(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var De="auto",Oe=Gt.id,en,We=!1,rn=0;rn=5)return!0;var se=Nn.getAppletObject();return se&&typeof se.recalculateEnvironments=="function"?(se.recalculateEnvironments(),!0):!1},Nn.startAnimation=function(){var se=Nn.getAppletObject();return se&&typeof se.startAnimation=="function"?(se.startAnimation(),!0):!1},Nn.stopAnimation=function(){var se=Nn.getAppletObject();return se&&typeof se.stopAnimation=="function"?(se.stopAnimation(),!0):!1},Nn.getAppletObject=function(){var se=Gt.id!==void 0?Gt.id:"ggbApplet";return window[se]},Nn.resize=function(){};var $t=function(se,De,Oe){var en=document.createElement("param");en.setAttribute("name",De),en.setAttribute("value",Oe),se.appendChild(en)},Kt=function(se){return se&&se!=="false"},ue=function(se,De,Oe){mt(vt)<=4.2&&(Oe=!0);var en=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==vt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(en=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var We=document.createElement("div");We.classList.add("appletParameters","notranslate");var rn=De.width,ke=De.height;if(De.disableAutoScale=De.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():De.disableAutoScale,De.width!==void 0)if(mt(vt)<=4.4)Kt(De.showToolBar)&&(De.height-=7),Kt(De.showAlgebraInput)&&(De.height-=37),De.width<605&&Kt(De.showToolBar)&&(De.width=605,rn=605);else{var Ie=100;(Kt(De.showToolBar)||Kt(De.showMenuBar))&&(De.hasOwnProperty("customToolBar")&&(De.customToolbar=De.customToolBar),Ie=Kt(De.showMenuBar)?245:155),rn=5?(De.appletOnLoad=function(gt){var zt=se.querySelector(".ggb_preview");zt&&zt.parentNode.removeChild(zt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(me),window.GGBT_wsf_view&&$(window).trigger("resize"),$e(gt)},le||me.appendChild(Ee)):We.appendChild(Ee),me.appendChild(We),le||se.appendChild(me),setTimeout(function(){Nn.resize()},1)}else{var ce=document.createElement("div");ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.appendChild(We),se.appendChild(ce),De.appletOnLoad=function(gt){Nn.resize(),$e(gt)}}function he(gt,zt){zt&&typeof zt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(gt,zt.appletOnLoad):renderGGBElement(gt),ae("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",zt)}function _t(gt,zt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:gt,params:zt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(re){he(re.article,re.params)}),html5AppletsToProcess=null)},mt(vt)<5&&(gt.className+=" geogebraweb")):he(gt,zt)}if(en){scriptLoadStarted=!0;for(var Mt=0;Mt0?(je.remove(),me.attr("id","fullscreencontent").show(),jQuery($e).append(me),window.dispatchEvent(new Event("resize"))):ue(je,De,!1),window.GGBT_wsf_view.launchFullScreen($e)}else It=en,ue(se,De,!1);if(!window.GGBT_wsf_view)for(ke=0;kese/4*3&&(je=se/4*3),$e=je/5.8,Ie.setAttribute("src",rt),Ie.setAttribute("width",je),Ie.setAttribute("height",$e);var me=(se-je)/2,le=(De-$e)/2;Ie.style.left=me+"px",Ie.style.top=le+"px",We.appendChild(Ie)}}return We.appendChild(ke),We},Ue=function(se){return se=se.toLowerCase(),se==="html5"||se==="screenshot"?se:"html5"},de=["web","webSimple","web3d","tablet","tablet3d","phone"],Jt=function(se,De){if(vt=se,De){ee(vt,!0);return}var Oe=!yt;if(Oe){var en=mt(vt);!isNaN(en)&&en<4.4&&(Oe=!1)}var We,rn;window.location.protocol.substr(0,4)==="http"?We=window.location.protocol:We="http:";var ke=vt.indexOf("//");ke>0?rn=vt:ke===0?rn=We+vt:rn="https://www.geogebra.org/apps/5.2.814.0/";for(var Ie in de)if(vt.slice(de[Ie].length*-1)===de[Ie]||vt.slice((de[Ie].length+1)*-1)===de[Ie]+"/"){ee(rn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Oe&&!Rt.is3D&&!Rt.AV&&!Rt.SV&&!Rt.CV&&!Rt.EV2&&!Rt.CP&&!Rt.PC&&!Rt.DA&&!Rt.FI&&!Rt.PV&&!Kt(Gt.showToolBar)&&!Kt(Gt.showMenuBar)&&!Kt(Gt.showAlgebraInput)&&!Kt(Gt.enableRightClick)&&(!Gt.appName||Gt.appName=="classic")?rn+="webSimple/":rn+="web3d/",ee(rn,!1)},ee=function(se,De){if(se.requirejs){bt=se;return}se.slice(-1)!=="/"&&(se+="/"),bt=se,De===null&&(De=se.indexOf("http")===-1),Tt=De,et="web.nocache.js",tt=!1;var Oe=bt.split("/");Oe.length>1&&(!De&&Oe[Oe.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):de.indexOf(Oe[Oe.length-2])>=0&&(et=Oe[Oe.length-2]+".nocache.js")),Oe=se.split("/"),vt=Oe[Oe.length-3],vt.substr(0,4)==="test"?vt=vt.substr(4,1)+"."+vt.substr(5,1):(vt.substr(0,3)==="war"||vt.substr(0,4)==="beta")&&(vt="5.0");var en=parseFloat(vt);en!==NaN&&en<5&&se.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+en+" is deprecated. Using version latest instead."),Jt("5.0",De))},ae=function(se,De){window.console&&window.console.log&&(!De||typeof De.showLogging=="undefined"||De.showLogging&&De.showLogging!=="false")&&console.log(se)};Gt.material_id!==void 0?Ut(fe):fe();function fe(){var se=An;Wt!==null?se=Wt:parseFloat(se)<5&&(se="5.0"),Jt(se,!1),xt!==null&&ee(xt,Tt),Nt=!0}return Nn},GGBAppletUtils=function(){"use strict";function Nn(){return window.GGBT_wsf_edit!==void 0}function An(Nt,Wt){Wt!=1?(Nt.style.transformOrigin="0% 0% 0px",Nt.style.webkitTransformOrigin="0% 0% 0px",Nt.style.transform="scale("+Wt+","+Wt+")",Nt.style.webkitTransform="scale("+Wt+","+Wt+")",Nt.style.maxWidth="initial",Nt.querySelector(".ggb_preview")!==null&&(Nt.querySelector(".ggb_preview").style.maxWidth="initial"),Nt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Nt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Nt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Nt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Nt.style.transform="none",Nt.style.webkitTransform="none")}function Gt(Nt,Wt,xt,Ot,Bt,At){var bt=null;if(At!=null&&At!="")for(var Tt=Nt.parentNode;Tt!=null;)if((" "+Tt.className+" ").indexOf(" "+At+" ")>-1){bt=Tt;break}else Tt=Tt.parentNode;var It=0,vt=0,et=0,tt=0,st=0,rt=0,ut=0;if(bt)It=bt.offsetWidth,vt=Math.max(Ot?bt.offsetWidth:0,bt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(It=Math.min(window.innerWidth,document.documentElement.clientWidth),vt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=It):(It=window.innerWidth,vt=window.innerHeight,et=window.innerWidth),Nt){var ct=Nt.getBoundingClientRect();ct.left>0&&ct.left<=It&&(Bt===void 0||!Bt)&&(document.dir==="rtl"?(st=It-ct.width-ct.left,rt=et<=480?10:30):(rt=ct.left,st=et<=480?10:30),tt=rt+st)}if(Nt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pt=Nt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return Nt&&((xt===void 0||!xt)&&Wt>0&&Wt+tt1&&(At=!0)),Wt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(At=!0),!(Nt.hasOwnProperty("disableAutoScale")&&Nt.disableAutoScale))Bt=Rt(Nt,Wt,At,xt,Nt.scaleContainerClass);else return Ot;return At&&(!Nt.hasOwnProperty("scale")||Ot===1)?Bt:Math.min(Ot,Bt)}function Vt(Nt){var Wt=Math.min(window.innerWidth,document.documentElement.clientWidth),xt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ot=Nt.getBoundingClientRect(),Bt=(Wt-Ot.width)/2,At=(xt-Ot.height)/2;At<0&&(At=0),Nt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Bt<40?Nt.style.left="40px":Nt.style.left=Bt+"px",Nt.style.top=At+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(At<40?Nt.style.top="40px":Nt.style.top=At+"px",Nt.style.left=Bt+"px")}function Yt(Nt,Wt){var xt=Nt.querySelector(".appletParameters");if(xt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Wt.id!==xt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Nt)}if(xt.parentElement&&/fullscreen/.test(xt.parentElement.className))return;var Ot=yt(Wt,Nt);Nn()&&xt.setAttribute("data-param-scale",Ot);for(var Bt=null,At=0;At=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(Nn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Nn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Nn){var An=c[Nn];return An==null?null:An},r=d,webModule.__errFn=e}function B(){function Nn(Nt){var Wt=Nt.lastIndexOf(rb);Wt==-1&&(Wt=Nt.length);var xt=Nt.indexOf(sb);xt==-1&&(xt=Nt.length);var Ot=Nt.lastIndexOf(tb,Math.min(xt,Wt));return Ot>=O?Nt.substring(O,Ot+P):W}function An(Nt){if(!Nt.match(/^\w+:\/\//)){var Wt=o.createElement(ub);Wt.src=Nt+vb,Nt=Nn(Wt.src)}return Nt}function Gt(){var Nt=__gwt_getMetaProperty(wb);return Nt!=null?Nt:W}function Rt(){for(var Nt=o.getElementsByTagName(_),Wt=O;WtO?Nt[Nt.length-P].href:W}function Vt(){var Nt=o.location;return Nt.href==Nt.protocol+zb+Nt.host+Nt.pathname+Nt.search+Nt.hash}var Yt=Gt();return Yt==W&&(Yt=Rt()),Yt==W&&(Yt=yt()),Yt==W&&Vt()&&(Yt=Nn(o.location.href)),Yt=An(Yt),Yt}function C(Nn){return Nn.match(/^\//)||Nn.match(/^[a-zA-Z]+:\/\//)?Nn:webModule.__moduleBase+Nn}function D(){var Nn=[],An=O,Gt=[],Rt=[];function yt(Nt){var Wt=Rt[Nt](),xt=Gt[Nt];if(Wt in xt)return Wt;var Ot=[];for(var Bt in xt)Ot[xt[Bt]]=Bt;throw r&&r(Nt,Ot,Wt),null}if(__gwt_isKnownPropertyValue=function(Nt,Wt){return Wt in Gt[Nt]},webModule.__getPropMap=function(){var Nt={};for(var Wt in Gt)Gt.hasOwnProperty(Wt)&&(Nt[Wt]=yt(Wt));return Nt},webModule.__computePropValue=yt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Vt;try{Vt=Cb;var Yt=Vt.indexOf(Db);Yt!=-1&&(An=parseInt(Vt.substring(Yt+P),$),Vt=Vt.substring(O,Yt))}catch(Nt){}return webModule.__softPermutationId=An,C(Vt+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})()},92699:function(Nn,An,Gt){"use strict";Gt.d(An,{$Y:function(){return rn},A0:function(){return De},EP:function(){return Nt},F_:function(){return Ot},Fk:function(){return he},G9:function(){return xt},GB:function(){return ee},GR:function(){return rt},GW:function(){return en},Hh:function(){return _t},Hp:function(){return It},Ir:function(){return yt},N$:function(){return ae},NZ:function(){return we},Nv:function(){return ce},OA:function(){return me},OJ:function(){return pe},QF:function(){return zt},RS:function(){return Ct},RY:function(){return dt},Rj:function(){return Se},SX:function(){return Ft},Tp:function(){return ke},Ui:function(){return se},V1:function(){return de},Vn:function(){return Ut},dL:function(){return Ee},fo:function(){return $t},gG:function(){return Kt},gK:function(){return st},hK:function(){return vt},i3:function(){return At},ib:function(){return et},lS:function(){return tt},m5:function(){return Wt},n4:function(){return Rt},n_:function(){return bt},oP:function(){return Ie},p2:function(){return Oe},pl:function(){return oe},rM:function(){return pt},sM:function(){return Tt},t2:function(){return Dt},tD:function(){return ut},u8:function(){return ct},um:function(){return gt},vm:function(){return le},wQ:function(){return Bt},wj:function(){return Ue},wt:function(){return ue},yS:function(){return mt},yi:function(){return Vt},ym:function(){return Ne},z2:function(){return Yt}});const Rt="FETCH_TASK_START",yt="FETCH_TASK_FAILURE",Vt="FETCH_TASK_SUCCESS",Yt="UPDATE_TASK_DATA",Nt="HIDE_EVALUATE_RESULT",Wt="SHOW_EVALUATE_RESULT",xt="UPDATE_TIMESTRAP",Ot="MOVE_X",Bt="MOVE_Y",At="TRIGGER_RIGHT_PANEL_MASK ",bt="SET_ACTIVE_INDEX",Tt="GET_TASK_LIST",It="SHOW_TASK_LIST",vt="HIDE_TASK_LIST",et="SET_TASK_STAR",tt="TRIGGER_ENLARGE_UNITY3D ",st="TRIGGER_TAB_FIXED ",rt="GET_DISCUSSES",ut="SHOW_DISCUSSES_LOADING",ct="TOP_OR_DOWN_DISCUSS",pt="PLUS_DISCUSS",mt="SET_ACTION_TYPE",Ct="SHOW_REWARD_DIALOG",Dt="CANCEL_REWARD_DIALOG",Ut="SET_REWARD",Ft="ACTIVE_DISCUSS_INDEX",Qt="CREATE_DISCUSS",$t="DISABLE_DISCUSS",Kt="CHANGE_PAGE",ue="SHOW_ANSWER_LOADING",oe="FETCH_ANSWER_INFO",we="HIGH_TIP_MODAL",Se="SHOW_TIP_MODAL",Ne="SELECT_UNLOCK_ANSWER",pe="SET_CHOOSE_ANSWERS",Ue="EVAL_CHOOSE_START",de="EVAL_CHOOSE_END",Jt="SHOW_REP_loading",ee="FETCH_REP_CONTENT",ae="EDIT_REP_CONTENT",fe="SET_REP_PATH",se="SHOW_EVALUATE_LOADING",De="HIDE_EVALUATE_LOADING",Oe="SET_EVALUATE_MESSAGE",en="SET_SHOW_DIR",We="SET_EDITOR_SETTING",rn="SET_EDITOR_THEME",ke="SET_EDITOR_FONTSIZE",Ie="SET_REPOS",je="SHOW_PATH_LIST",$e="HIDE_PATH_LIST",me="HIDE_PICTURE_VIEW",le="SHOW_PICTURE_VIEW",Ee="SHOW_NOTICE",ce="HIDE_NOTICE",he="SHOW_CASE_NOTICE",_t="HIDE_CASE_NOTICE",Mt="SET_TAB_INDEX",Et="SET_SSH_TABS",Ht="SET_SSH_CONFIGDATA",Pt="SET_SSH_CONFIGDATAARR",dt="SET_VNC_LOADING ",gt="ON_TAB_TO_SPACE ",zt="ON_AUTO_FORMAT "},58788:function(Nn,An,Gt){"use strict";Gt.d(An,{Ax:function(){return Yt},Ds:function(){return Nt},KI:function(){return xt},SI:function(){return Vt},f1:function(){return yt}});var Rt=Gt(10148);function yt(Ot){let Bt=!0;if(Ot.length>0){for(let At=0;Attt in et?Vt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:st}):et[tt]=st,At=(et,tt)=>{for(var st in tt||(tt={}))xt.call(tt,st)&&Bt(et,st,tt[st]);if(Wt)for(var st of Wt(tt))Ot.call(tt,st)&&Bt(et,st,tt[st]);return et},bt=(et,tt)=>Yt(et,Nt(tt)),Tt=(et,tt)=>{var st={};for(var rt in et)xt.call(et,rt)&&tt.indexOf(rt)<0&&(st[rt]=et[rt]);if(et!=null&&Wt)for(var rt of Wt(et))tt.indexOf(rt)<0&&Ot.call(et,rt)&&(st[rt]=et[rt]);return st},It=(et,tt,st)=>new Promise((rt,ut)=>{var ct=Ct=>{try{mt(st.next(Ct))}catch(Dt){ut(Dt)}},pt=Ct=>{try{mt(st.throw(Ct))}catch(Dt){ut(Dt)}},mt=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(ct,pt);mt((st=st.apply(et,tt)).next())});const vt=et=>{var tt=et,{children:st}=tt,rt=Tt(tt,["children"]);const[ut,ct]=(0,yt.useState)(!1);return yt.createElement(Rt.ZP,bt(At({},rt),{loading:ut,onClick:pt=>It(void 0,null,function*(){try{ct(!0),yield rt.onClick(pt),ct(!1)}catch(mt){console.error(mt),ct(!1)}})}),st)}},64286:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return At}});var Rt=Gt(59301),yt=Gt(3113),Vt=Gt(8591),Yt=Gt(24645),Nt=Gt(96830),Wt=Gt(33130),xt=Gt(10148),Ot={img:"img___BgL9D"},At=({value:bt,onChange:Tt,getFileProgress:It})=>{const[vt,et]=(0,Rt.useState)(!1),tt=Rt.createElement(yt.ZP,{loading:vt,icon:Rt.createElement(Nt.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),st=()=>Rt.createElement("div",{className:Ot.img},Rt.createElement("img",{src:xt.Z.API_SERVER+"/api/attachments/"+bt,alt:"avatar",style:{width:288}}),Rt.createElement("div",null,Rt.createElement(Wt.Z,{onClick:()=>Tt(""),style:{fontSize:"16px",color:"red"}}))),rt=ut=>{var ct,pt,mt,Ct,Dt,Ut;if(It&&It(ut),ut.file.status==="uploading"){et(!0);return}if(ut.file.status==="done"){if(et(!1),ut.file.status==="done"&&((pt=(ct=ut.file)==null?void 0:ct.response)==null?void 0:pt.status)===-1){Vt.ZP.error((Ct=(mt=ut.file)==null?void 0:mt.response)==null?void 0:Ct.message);return}Tt((Ut=(Dt=ut==null?void 0:ut.file)==null?void 0:Dt.response)==null?void 0:Ut.id)}};return Rt.createElement(Rt.Fragment,null,bt?st():Rt.createElement("div",null,Rt.createElement(Yt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${xt.Z.API_SERVER}/api/attachments.json`,onChange:rt,accept:"image/*"},tt),Rt.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),Rt.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))}},65983:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ht}});var Rt=Gt(59301),yt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Vt=Gt(92310),Yt=Gt.n(Vt),Nt=Gt(71418);var Wt=function(Pt,dt){return(Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,zt){gt.__proto__=zt}||function(gt,zt){for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&(gt[re]=zt[re])})(Pt,dt)};function xt(Pt,dt){function gt(){this.constructor=Pt}Wt(Pt,dt),Pt.prototype=dt===null?Object.create(dt):(gt.prototype=dt.prototype,new gt)}function Ot(Pt,dt,gt,zt){return new(gt||(gt=Promise))(function(re,Zt){function ye(Le){try{sn(zt.next(Le))}catch(Re){Zt(Re)}}function Ye(Le){try{sn(zt.throw(Le))}catch(Re){Zt(Re)}}function sn(Le){var Re;Le.done?re(Le.value):(Re=Le.value,Re instanceof gt?Re:new gt(function(hn){hn(Re)})).then(ye,Ye)}sn((zt=zt.apply(Pt,dt||[])).next())})}function Bt(Pt,dt){var gt,zt,re,Zt,ye={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return Zt={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(Zt[Symbol.iterator]=function(){return this}),Zt;function Ye(sn){return function(Le){return function(Re){if(gt)throw new TypeError("Generator is already executing.");for(;ye;)try{if(gt=1,zt&&(re=2&Re[0]?zt.return:Re[0]?zt.throw||((re=zt.return)&&re.call(zt),0):zt.next)&&!(re=re.call(zt,Re[1])).done)return re;switch(zt=0,re&&(Re=[2&Re[0],re.value]),Re[0]){case 0:case 1:re=Re;break;case 4:return ye.label++,{value:Re[1],done:!1};case 5:ye.label++,zt=Re[1],Re=[0];continue;case 7:Re=ye.ops.pop(),ye.trys.pop();continue;default:if(re=ye.trys,!((re=re.length>0&&re[re.length-1])||Re[0]!==6&&Re[0]!==2)){ye=0;continue}if(Re[0]===3&&(!re||Re[1]>re[0]&&Re[1]',"select"),this.addActionButton(zt,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(zt,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(zt,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(zt,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(zt,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(zt,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(zt,'',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Zt){var ye=document.createElement("div");ye.className=""+gt.toolbarButtonStyleClass.name,ye.setAttribute("data-type-name",Zt.typeName),ye.innerHTML=Zt.icon,ye.addEventListener("click",function(){gt.markerToolbarButtonClicked(ye,Zt)}),gt.buttons.push(ye),gt.markerButtons.push(ye)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var re=document.createElement("div");re.className=this.toolbarBlockStyleClass.name,re.style.whiteSpace="nowrap",re.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(re),this.addActionButton(re,'',"render"),this.addActionButton(re,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Pt.prototype.addButtonClickListener=function(dt){this.buttonClickListeners.push(dt)},Pt.prototype.removeButtonClickListener=function(dt){this.buttonClickListeners.indexOf(dt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(dt),1)},Pt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Pt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var dt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var gt=0;gt0&&this.buttonClickListeners.forEach(function(zt){return zt("marker",gt)}),this.markerButtonOverflowBlock.style.display="none"},Pt.prototype.actionToolbarButtonClicked=function(dt,gt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(zt){return zt("action",gt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Pt.prototype.setActiveButton=function(dt){this.resetButtonStyles(),dt.className=dt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),dt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Pt.prototype.setActiveMarkerButton=function(dt){var gt=this.markerButtons.find(function(zt){return zt.getAttribute("data-type-name")===dt});gt&&this.setActiveButton(gt)},Pt.prototype.setCurrentMarker=function(dt){var gt=this;this.currentMarker=dt,this.buttons.filter(function(zt){return/delete|notes/.test(zt.getAttribute("data-action"))}).forEach(function(zt){gt.currentMarker===void 0?(zt.style.fillOpacity="0.4",zt.style.pointerEvents="none"):(zt.style.fillOpacity="1",zt.style.pointerEvents="all")})},Pt}(),ut=function(){function Pt(dt,gt,zt,re){this.panels=[],this.panelButtons=[],this.markerjsContainer=dt,this.displayMode=gt,this.uiStyleSettings=zt,this.styles=re,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Pt.prototype.addStyles=function(){var dt;this.toolboxStyleClass=this.styles.addClass(new st("toolbox",` width: 100%; flex-shrink: 0; display: flex; flex-direction: column; font-family: sans-serif; `+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+` box-sizing: content-box; `+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+` `+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` `+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` overflow: hidden; `)),this.toolboxStyleColorsClass=this.styles.addClass(new st("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var gt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new st("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new st("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new st("toolbox-panel-row",` display: flex; `+(this.displayMode==="inline"?"position: absolute;":"")+` `+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+` cursor: default; height: `+1.5*this.uiStyleSettings.toolbarHeight+`px; `+(this.displayMode==="inline"?"width: 100%;":"")+` box-sizing: content-box; `)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new st("toolbox-panel-row_colors",` background-color: `+((dt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&dt!==void 0?dt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new st("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*gt)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*gt)+`px; padding: `+gt+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new st("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new st("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new tt("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new tt("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},Pt.prototype.show=function(dt){var gt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=dt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((gt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&>!==void 0?gt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Pt.prototype.setPanelButtons=function(dt){var gt,zt,re=this;this.panels=dt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((gt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&>!==void 0?gt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((zt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&zt!==void 0?zt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Zt){var ye;Zt.uiStyleSettings=re.uiStyleSettings;var Ye=document.createElement("div");Ye.className=re.toolboxButtonStyleClass.name+" "+((ye=re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ye!==void 0?ye:re.toolboxButtonStyleColorsClass.name),Ye.innerHTML=Zt.icon,Ye.title=Zt.title,Ye.addEventListener("click",function(){re.panelButtonClick(Zt)}),re.panelButtons.push(Ye),re.buttonRow.appendChild(Ye)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Pt.prototype.panelButtonClick=function(dt){var gt=this,zt=-1;if(dt!==this.activePanel){zt=this.panels.indexOf(dt),this.panelRow.innerHTML="";var re=dt.getUi();re.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(re),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=dt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){gt.displayMode==="inline"?gt.panelRow.style.display="none":gt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Zt,ye){var Ye,sn;Zt.className=gt.toolboxButtonStyleClass.name+" "+(ye===zt?""+((Ye=gt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ye!==void 0?Ye:gt.toolboxActiveButtonStyleColorsClass.name):""+((sn=gt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&sn!==void 0?sn:gt.toolboxButtonStyleColorsClass.name))})},Pt}(),ct=function(Pt,dt){this.title=Pt,this.icon=dt},pt=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'')||this;return ye.colors=[],ye.addTransparent=!1,ye.colorBoxes=[],ye.colors=zt,ye.currentColor=re,ye.setCurrentColor=ye.setCurrentColor.bind(ye),ye.getColorBox=ye.getColorBox.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.overflow="hidden",zt.style.whiteSpace="nowrap",this.colors.forEach(function(re){var Zt=gt.getColorBox(re);zt.appendChild(Zt),gt.colorBoxes.push(Zt)}),zt},dt.prototype.getColorBox=function(gt){var zt=this,re=this.uiStyleSettings.toolbarHeight/4,Zt=this.uiStyleSettings.toolbarHeight-re,ye=document.createElement("div");ye.style.display="inline-block",ye.style.boxSizing="content-box",ye.style.width=Zt-2+"px",ye.style.height=Zt-2+"px",ye.style.padding="1px",ye.style.marginRight="2px",ye.style.marginBottom="2px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.borderRadius=(Zt+2)/2+"px",ye.style.borderColor=gt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){zt.setCurrentColor(gt,ye)});var Ye=document.createElement("div");return Ye.style.display="inline-block",Ye.style.width=Zt-2+"px",Ye.style.height=Zt-2+"px",Ye.style.backgroundColor=gt,Ye.style.borderRadius=Zt/2+"px",gt==="transparent"&&(Ye.style.fill=this.uiStyleSettings.toolboxAccentColor,Ye.innerHTML=` `),ye.appendChild(Ye),ye},dt.prototype.setCurrentColor=function(gt,zt){var re=this;this.currentColor=gt,this.colorBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(gt)},dt}(ct),mt=function(){function Pt(dt,gt,zt){this._state="new",this._isSelected=!1,this._container=dt,this._overlayContainer=gt,this.globalSettings=zt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Pt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Pt.prototype.ownsTarget=function(dt){return!1},Object.defineProperty(Pt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Pt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Pt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Pt.prototype.pointerDown=function(dt,gt){},Pt.prototype.dblClick=function(dt,gt){},Pt.prototype.manipulate=function(dt){},Pt.prototype.pointerUp=function(dt){this.stateChanged()},Pt.prototype.dispose=function(){},Pt.prototype.addMarkerVisualToContainer=function(dt){this.container.childNodes.length>0?this.container.insertBefore(dt,this.container.childNodes[0]):this.container.appendChild(dt)},Pt.prototype.getState=function(){return{typeName:Pt.typeName,state:this.state,notes:this.notes}},Pt.prototype.restoreState=function(dt){this._state=dt.state,this.notes=dt.notes},Pt.prototype.scale=function(dt,gt){},Pt.prototype.colorChanged=function(dt){this.onColorChanged&&this.onColorChanged(dt),this.stateChanged()},Pt.prototype.fillColorChanged=function(dt){this.onFillColorChanged&&this.onFillColorChanged(dt),this.stateChanged()},Pt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var dt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),dt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(dt)&&this.onStateChanged(this)}},Pt.typeName="MarkerBase",Pt}(),Ct=function(){function Pt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Pt.prototype.findGripByVisual=function(dt){return this.topLeft.ownsTarget(dt)?this.topLeft:this.topCenter.ownsTarget(dt)?this.topCenter:this.topRight.ownsTarget(dt)?this.topRight:this.centerLeft.ownsTarget(dt)?this.centerLeft:this.centerRight.ownsTarget(dt)?this.centerRight:this.bottomLeft.ownsTarget(dt)?this.bottomLeft:this.bottomCenter.ownsTarget(dt)?this.bottomCenter:this.bottomRight.ownsTarget(dt)?this.bottomRight:void 0},Pt}(),Dt=function(){function Pt(){this.GRIP_SIZE=10,this.visual=bt.createGroup(),this.visual.appendChild(bt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(bt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Pt.prototype.ownsTarget=function(dt){return dt===this.visual||dt===this.visual.childNodes[0]||dt===this.visual.childNodes[1]},Pt}(),Ut=function(){function Pt(){}return Pt.toITransformMatrix=function(dt){return{a:dt.a,b:dt.b,c:dt.c,d:dt.d,e:dt.e,f:dt.f}},Pt.toSVGMatrix=function(dt,gt){return dt.a=gt.a,dt.b=gt.b,dt.c=gt.c,dt.d=gt.d,dt.e=gt.e,dt.f=gt.f,dt},Pt}(),Ft=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.left=0,Zt.top=0,Zt.width=0,Zt.height=0,Zt.defaultSize={x:50,y:20},Zt.offsetX=0,Zt.offsetY=0,Zt.rotationAngle=0,Zt.CB_DISTANCE=10,Zt._suppressMarkerCreateEvent=!1,Zt.container.transform.baseVal.appendItem(bt.createTransform()),Zt.setupControlBox(),Zt}return xt(dt,Pt),Object.defineProperty(dt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(dt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(dt.prototype,"visual",{get:function(){return this._visual},set:function(gt){this._visual=gt;var zt=bt.createTransform();this._visual.transform.baseVal.appendItem(zt)},enumerable:!1,configurable:!0}),dt.prototype.ownsTarget=function(gt){return!!Pt.prototype.ownsTarget.call(this,gt)||!!(this.controlGrips.findGripByVisual(gt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(gt))},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="new"&&(this.left=gt.x,this.top=gt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var re=this.unrotatePoint(gt);if(this.manipulationStartX=re.x,this.manipulationStartY=re.y,this.offsetX=re.x-this.left,this.offsetY=re.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(zt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(zt)){this.activeGrip=this.rotatorGrip;var Zt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Zt.x-this.width/2,this.top=Zt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ye=this.container.transform.baseVal.getItem(0);ye.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ye,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},dt.prototype.pointerUp=function(gt){var zt=this.state;Pt.prototype.pointerUp.call(this,gt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(gt),this._state="select",zt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},dt.prototype.moveVisual=function(gt){this.visual.style.transform="translate("+gt.x+"px, "+gt.y+"px)"},dt.prototype.manipulate=function(gt){var zt=this.unrotatePoint(gt);this.state==="creating"?this.resize(gt):this.state==="move"?(this.left=this.manipulationStartLeft+(zt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(zt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(zt):this.state==="rotate"&&this.rotate(gt)},dt.prototype.resize=function(gt){var zt=this.manipulationStartLeft,re=this.manipulationStartWidth,Zt=this.manipulationStartTop,ye=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:zt=this.manipulationStartLeft+gt.x-this.manipulationStartX,re=this.manipulationStartWidth+this.manipulationStartLeft-zt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:re=this.manipulationStartWidth+gt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Zt=this.manipulationStartTop+gt.y-this.manipulationStartY,ye=this.manipulationStartHeight+this.manipulationStartTop-Zt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ye=this.manipulationStartHeight+gt.y-this.manipulationStartY}re>=0?(this.left=zt,this.width=re):(this.left=zt+re,this.width=-re),ye>=0?(this.top=Zt,this.height=ye):(this.top=Zt+ye,this.height=-ye),this.setSize()},dt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},dt.prototype.rotate=function(gt){if(Math.abs(gt.x-this.centerX)>.1){var zt=Math.sign(gt.x-this.centerX);this.rotationAngle=180*Math.atan((gt.y-this.centerY)/(gt.x-this.centerX))/Math.PI+90*zt,this.applyRotation()}},dt.prototype.applyRotation=function(){var gt=this.container.transform.baseVal.getItem(0);gt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(gt,0)},dt.prototype.rotatePoint=function(gt){if(this.rotationAngle===0)return gt;var zt=this.container.getCTM(),re=bt.createPoint(gt.x,gt.y);return{x:(re=re.matrixTransform(zt)).x,y:re.y}},dt.prototype.unrotatePoint=function(gt){if(this.rotationAngle===0)return gt;var zt=this.container.getCTM();zt=zt.inverse();var re=bt.createPoint(gt.x,gt.y);return{x:(re=re.matrixTransform(zt)).x,y:re.y}},dt.prototype.select=function(){Pt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},dt.prototype.deselect=function(){Pt.prototype.deselect.call(this),this.controlBox.style.display="none"},dt.prototype.setupControlBox=function(){this.controlBox=bt.createGroup();var gt=bt.createTransform();gt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(gt),this.container.appendChild(this.controlBox),this.controlRect=bt.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=bt.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ct,this.addControlGrips(),this.controlBox.style.display="none"},dt.prototype.adjustControlBox=function(){var gt=this.controlBox.transform.baseVal.getItem(0);gt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(gt,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},dt.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},dt.prototype.createGrip=function(){var gt=new Dt;return gt.visual.transform.baseVal.appendItem(bt.createTransform()),this.controlBox.appendChild(gt.visual),gt},dt.prototype.positionGrips=function(){var gt=this.controlGrips.topLeft.GRIP_SIZE,zt=-gt/2,re=zt,Zt=(this.width+this.CB_DISTANCE)/2-gt/2,ye=(this.height+this.CB_DISTANCE)/2-gt/2,Ye=this.height+this.CB_DISTANCE-gt/2,sn=this.width+this.CB_DISTANCE-gt/2;this.positionGrip(this.controlGrips.topLeft.visual,zt,re),this.positionGrip(this.controlGrips.topCenter.visual,Zt,re),this.positionGrip(this.controlGrips.topRight.visual,sn,re),this.positionGrip(this.controlGrips.centerLeft.visual,zt,ye),this.positionGrip(this.controlGrips.centerRight.visual,sn,ye),this.positionGrip(this.controlGrips.bottomLeft.visual,zt,Ye),this.positionGrip(this.controlGrips.bottomCenter.visual,Zt,Ye),this.positionGrip(this.controlGrips.bottomRight.visual,sn,Ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Zt,re-3*this.CB_DISTANCE)},dt.prototype.positionGrip=function(gt,zt,re){var Zt=gt.transform.baseVal.getItem(0);Zt.setTranslate(zt,re),gt.transform.baseVal.replaceItem(Zt,0)},dt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},dt.prototype.showControlBox=function(){this.controlBox.style.display=""},dt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ut.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ut.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Pt.prototype.getState.call(this))},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.left=zt.left,this.top=zt.top,this.width=zt.width,this.height=zt.height,this.rotationAngle=zt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ut.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,zt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ut.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,zt.containerTransformMatrix))},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt);var re=this.rotatePoint({x:this.left,y:this.top}),Zt=this.unrotatePoint({x:re.x*gt,y:re.y*zt});this.left=Zt.x,this.top=Zt.y,this.width=this.width*gt,this.height=this.height*zt,this.adjustControlBox()},dt}(mt),Qt=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.fillColor="transparent",Zt.strokeColor="transparent",Zt.strokeWidth=0,Zt.strokeDasharray="",Zt.opacity=1,Zt.setStrokeColor=Zt.setStrokeColor.bind(Zt),Zt.setFillColor=Zt.setFillColor.bind(Zt),Zt.setStrokeWidth=Zt.setStrokeWidth.bind(Zt),Zt.setStrokeDasharray=Zt.setStrokeDasharray.bind(Zt),Zt.createVisual=Zt.createVisual.bind(Zt),Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual)},dt.prototype.createVisual=function(){this.visual=bt.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="new"&&(this.createVisual(),this.moveVisual(gt),this._state="creating")},dt.prototype.manipulate=function(gt){Pt.prototype.manipulate.call(this,gt)},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),this.setSize()},dt.prototype.setSize=function(){Pt.prototype.setSize.call(this),bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},dt.prototype.pointerUp=function(gt){Pt.prototype.pointerUp.call(this,gt),this.setSize()},dt.prototype.setStrokeColor=function(gt){this.strokeColor=gt,this.visual&&bt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(gt),this.stateChanged()},dt.prototype.setFillColor=function(gt){this.fillColor=gt,this.visual&&bt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},dt.prototype.setStrokeWidth=function(gt){this.strokeWidth=gt,this.visual&&bt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},dt.prototype.setStrokeDasharray=function(gt){this.strokeDasharray=gt,this.visual&&bt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},dt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Pt.prototype.getState.call(this))},dt.prototype.restoreState=function(gt){var zt=gt;this.fillColor=zt.fillColor,this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.opacity=zt.opacity,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.setSize()},dt.title="Rectangle marker",dt}(Ft),$t=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'')||this;return ye.widths=[],ye.widthBoxes=[],ye.widths=zt,ye.currentWidth=re,ye.setCurrentWidth=ye.setCurrentWidth.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2",this.widths.forEach(function(re){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.flexGrow="2",Zt.style.alignItems="center",Zt.style.justifyContent="space-between",Zt.style.padding="5px",Zt.style.borderWidth="2px",Zt.style.borderStyle="solid",Zt.style.borderColor=re===gt.currentWidth?gt.uiStyleSettings.toolboxAccentColor:"transparent",Zt.addEventListener("click",function(){gt.setCurrentWidth(re,Zt)}),zt.appendChild(Zt);var ye=document.createElement("div");ye.innerText=re.toString(),ye.style.marginRight="5px",Zt.appendChild(ye);var Ye=document.createElement("div");Ye.style.minHeight="20px",Ye.style.flexGrow="2",Ye.style.display="flex",Ye.style.alignItems="center";var sn=document.createElement("hr");sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop=re+"px solid "+gt.uiStyleSettings.toolboxColor,sn.style.flexGrow="2",Ye.appendChild(sn),Zt.appendChild(Ye),gt.widthBoxes.push(Zt)}),zt},dt.prototype.setCurrentWidth=function(gt,zt){var re=this;this.currentWidth=gt,this.widthBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},dt}(ct),Kt=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'')||this;return ye.styles=[],ye.styleBoxes=[],ye.styles=zt,ye.currentStyle=re,ye.setCurrentStyle=ye.setCurrentStyle.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2",this.styles.forEach(function(re){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.justifyContent="space-between",Zt.style.padding="5px",Zt.style.borderWidth="2px",Zt.style.borderStyle="solid",Zt.style.overflow="hidden",Zt.style.maxWidth=100/gt.styles.length-5+"%",Zt.style.borderColor=re===gt.currentStyle?gt.uiStyleSettings.toolboxAccentColor:"transparent",Zt.addEventListener("click",function(){gt.setCurrentStyle(re,Zt)}),zt.appendChild(Zt);var ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.overflow="hidden";var Ye=` `;ye.innerHTML=Ye,Zt.appendChild(ye),gt.styleBoxes.push(Zt)}),zt},dt.prototype.setCurrentStyle=function(gt,zt){var re=this;this.currentStyle=gt,this.styleBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},dt}(ct),ue=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.strokeColor=re.defaultColor,Zt.strokeWidth=re.defaultStrokeWidth,Zt.strokeDasharray=re.defaultStrokeDasharray,Zt.strokePanel=new pt("Line color",re.defaultColorSet,re.defaultColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.strokeWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Kt("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt}return xt(dt,Pt),Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.typeName="FrameMarker",dt.title="Frame marker",dt.icon='',dt}(Qt),oe=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},we=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.x1=0,Zt.y1=0,Zt.x2=0,Zt.y2=0,Zt.defaultLength=50,Zt.manipulationStartX=0,Zt.manipulationStartY=0,Zt.manipulationStartX1=0,Zt.manipulationStartY1=0,Zt.manipulationStartX2=0,Zt.manipulationStartY2=0,Zt.setupControlBox(),Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!!Pt.prototype.ownsTarget.call(this,gt)||!(!this.grip1.ownsTarget(gt)&&!this.grip2.ownsTarget(gt))},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.manipulationStartX=gt.x,this.manipulationStartY=gt.y,this.state==="new"&&(this.x1=gt.x,this.y1=gt.y,this.x2=gt.x,this.y2=gt.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(zt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(zt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},dt.prototype.pointerUp=function(gt){var zt=this.state;Pt.prototype.pointerUp.call(this,gt),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(gt),this._state="select",zt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},dt.prototype.adjustVisual=function(){},dt.prototype.manipulate=function(gt){this.state==="creating"?this.resize(gt):this.state==="move"?(this.x1=this.manipulationStartX1+gt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+gt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+gt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+gt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(gt)},dt.prototype.resize=function(gt){switch(this.activeGrip){case this.grip1:this.x1=gt.x,this.y1=gt.y;break;case this.grip2:case void 0:this.x2=gt.x,this.y2=gt.y}this.adjustVisual(),this.adjustControlBox()},dt.prototype.select=function(){Pt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},dt.prototype.deselect=function(){Pt.prototype.deselect.call(this),this.controlBox.style.display="none"},dt.prototype.setupControlBox=function(){this.controlBox=bt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},dt.prototype.adjustControlBox=function(){this.positionGrips()},dt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},dt.prototype.createGrip=function(){var gt=new Dt;return gt.visual.transform.baseVal.appendItem(bt.createTransform()),this.controlBox.appendChild(gt.visual),gt},dt.prototype.positionGrips=function(){var gt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-gt/2,this.y1-gt/2),this.positionGrip(this.grip2.visual,this.x2-gt/2,this.y2-gt/2)},dt.prototype.positionGrip=function(gt,zt,re){var Zt=gt.transform.baseVal.getItem(0);Zt.setTranslate(zt,re),gt.transform.baseVal.replaceItem(Zt,0)},dt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Pt.prototype.getState.call(this))},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.x1=zt.x1,this.y1=zt.y1,this.x2=zt.x2,this.y2=zt.y2},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.x1=this.x1*gt,this.y1=this.y1*zt,this.x2=this.x2*gt,this.y2=this.y2*zt,this.adjustVisual(),this.adjustControlBox()},dt}(mt),Se=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.strokeColor="transparent",Zt.strokeWidth=0,Zt.strokeDasharray="",Zt.setStrokeColor=Zt.setStrokeColor.bind(Zt),Zt.setStrokeWidth=Zt.setStrokeWidth.bind(Zt),Zt.setStrokeDasharray=Zt.setStrokeDasharray.bind(Zt),Zt.strokeColor=re.defaultColor,Zt.strokeWidth=re.defaultStrokeWidth,Zt.strokeDasharray=re.defaultStrokeDasharray,Zt.strokePanel=new pt("Line color",re.defaultColorSet,re.defaultColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.strokeWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Kt("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual&>!==this.selectorLine&>!==this.visibleLine)},dt.prototype.createVisual=function(){this.visual=bt.createGroup(),this.selectorLine=bt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=bt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},dt.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),bt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),bt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),bt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},dt.prototype.setStrokeColor=function(gt){this.strokeColor=gt,this.adjustVisual(),this.colorChanged(gt)},dt.prototype.setStrokeWidth=function(gt){this.strokeWidth=gt,this.adjustVisual()},dt.prototype.setStrokeDasharray=function(gt){this.strokeDasharray=gt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.createVisual(),this.adjustVisual()},dt.typeName="LineMarker",dt.title="Line marker",dt.icon='',dt}(we),Ne=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'')||this;return ye.fonts=[],ye.fontBoxes=[],ye.fonts=zt,ye.currentFont=re,ye.setCurrentFont=ye.setCurrentFont.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.overflow="hidden",zt.style.flexGrow="2",this.fonts.forEach(function(re){var Zt=document.createElement("div");Zt.style.display="inline-block",Zt.style.alignItems="center",Zt.style.justifyContent="space-between",Zt.style.padding="5px",Zt.style.borderWidth="2px",Zt.style.borderStyle="solid",Zt.style.overflow="hidden",Zt.style.maxWidth=100/gt.fonts.length-5+"%",Zt.style.borderColor=re===gt.currentFont?gt.uiStyleSettings.toolboxAccentColor:"transparent",Zt.addEventListener("click",function(){gt.setCurrentFont(re,Zt)}),zt.appendChild(Zt);var ye=document.createElement("div");ye.style.display="flex",ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.fontFamily=re,ye.style.overflow="hidden";var Ye=document.createElement("div");Ye.style.whiteSpace="nowrap",Ye.style.overflow="hidden",Ye.style.textOverflow="ellipsis",Ye.innerHTML="The quick brown fox jumps over the lazy dog",ye.appendChild(Ye),Zt.appendChild(ye),gt.fontBoxes.push(Zt)}),zt},dt.prototype.setCurrentFont=function(gt,zt){var re=this;this.currentFont=gt,this.fontBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},dt}(ct),pe=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.color="transparent",Zt.padding=5,Zt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Zt.text=Zt.DEFAULT_TEXT,Zt.isMoved=!1,Zt.color=re.defaultColor,Zt.fontFamily=re.defaultFontFamily,Zt.defaultSize={x:100,y:30},Zt.setColor=Zt.setColor.bind(Zt),Zt.setFont=Zt.setFont.bind(Zt),Zt.renderText=Zt.renderText.bind(Zt),Zt.sizeText=Zt.sizeText.bind(Zt),Zt.textEditDivClicked=Zt.textEditDivClicked.bind(Zt),Zt.showTextEditor=Zt.showTextEditor.bind(Zt),Zt.setSize=Zt.setSize.bind(Zt),Zt.positionTextEditor=Zt.positionTextEditor.bind(Zt),Zt.colorPanel=new pt("Color",re.defaultColorSet,re.defaultColor),Zt.colorPanel.onColorChanged=Zt.setColor,Zt.fontFamilyPanel=new Ne("Font",re.defaultFontFamilies,re.defaultFontFamily),Zt.fontFamilyPanel.onFontChanged=Zt.setFont,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){if(Pt.prototype.ownsTarget.call(this,gt)||gt===this.visual||gt===this.textElement||gt===this.bgRectangle)return!0;var zt=!1;return this.textElement.childNodes.forEach(function(re){re===gt&&(zt=!0)}),zt},dt.prototype.createVisual=function(){this.visual=bt.createGroup(),this.bgRectangle=bt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=bt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(bt.createTransform()),this.textElement.transform.baseVal.appendItem(bt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.isMoved=!1,this.pointerDownPoint=gt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(gt),this._state="creating")},dt.prototype.renderText=function(){var gt=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(zt){gt.textElement.appendChild(bt.createTSpan(zt.trim()===""?" ":zt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},dt.prototype.getTextScale=function(){var gt=this.textElement.getBBox(),zt=1;if(gt.width>0&>.height>0){var re=(1*this.width-this.width*this.padding*2/100)/gt.width,Zt=(1*this.height-this.height*this.padding*2/100)/gt.height;zt=Math.min(re,Zt)}return zt},dt.prototype.getTextPosition=function(gt){var zt=this.textElement.getBBox(),re=0,Zt=0;return zt.width>0&&zt.height>0&&(re=(this.width-zt.width*gt)/2,Zt=this.height/2-zt.height*gt/2),{x:re,y:Zt}},dt.prototype.sizeText=function(){var gt=this.textElement.getBBox(),zt=this.getTextScale(),re=this.getTextPosition(zt);re.y-=gt.y*zt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+re.x+"px, "+re.y+"px) scale("+zt+", "+zt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(re.x,re.y),this.textElement.transform.baseVal.getItem(1).setScale(zt,zt))},dt.prototype.manipulate=function(gt){Pt.prototype.manipulate.call(this,gt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(gt.x-this.pointerDownPoint.x)>5||Math.abs(gt.y-this.pointerDownPoint.y)>5)},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),this.isMoved=!0,this.setSize(),this.sizeText()},dt.prototype.setSize=function(){Pt.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),bt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},dt.prototype.pointerUp=function(gt){var zt=this.state;zt==="creating"&&(this._suppressMarkerCreateEvent=!0),Pt.prototype.pointerUp.call(this,gt),this.setSize(),(zt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},dt.prototype.showTextEditor=function(){var gt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(zt){zt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var zt=Number.parseFloat(gt.textEditor.style.fontSize);gt.textEditor.clientWidth>=Number.parseInt(gt.textEditor.style.maxWidth)&&zt>.9;)zt-=.1,gt.textEditor.style.fontSize=Math.max(zt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(zt){zt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(zt){if(zt.clipboardData){var re=zt.clipboardData.getData("text"),Zt=window.getSelection();if(!Zt.rangeCount)return!1;Zt.deleteFromDocument(),Zt.getRangeAt(0).insertNode(document.createTextNode(re)),zt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){gt.textEditDivClicked(gt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},dt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var gt=this.getTextScale(),zt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),re=this.textElement.getBBox(),Zt={x:re.width*gt,y:re.height*gt};zt.x-=Zt.x/2,zt.y-=Zt.y/2,this.textEditor.style.top=zt.y+"px",this.textEditor.style.left=zt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-zt.x+"px",this.textEditor.style.fontSize=Math.max(16*gt,12)+"px",this.textElement.style.display="none"}},dt.prototype.textEditDivClicked=function(gt){this.text=gt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},dt.prototype.select=function(){Pt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},dt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Pt.prototype.deselect.call(this)},dt.prototype.dblClick=function(gt,zt){Pt.prototype.dblClick.call(this,gt,zt),this.showTextEditor()},dt.prototype.setColor=function(gt){this.textElement&&bt.setAttributes(this.textElement,[["fill",gt]]),this.color=gt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(gt)},dt.prototype.setFont=function(gt){this.textElement&&bt.setAttributes(this.textElement,[["font-family",gt]]),this.fontFamily=gt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},dt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},dt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){var zt=gt;this.color=zt.color,this.fontFamily=zt.fontFamily,this.padding=zt.padding,this.text=zt.text,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.setSize(),this.sizeText(),this.positionTextEditor()},dt.typeName="TextMarker",dt.title="Text marker",dt.icon='',dt}(Ft),Ue=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.color="transparent",Zt.lineWidth=3,Zt.drawing=!1,Zt.pixelRatio=1,Zt.color=re.defaultColor,Zt.lineWidth=re.defaultStrokeWidth,Zt.pixelRatio=re.freehandPixelRatio,Zt.setColor=Zt.setColor.bind(Zt),Zt.addCanvas=Zt.addCanvas.bind(Zt),Zt.finishCreation=Zt.finishCreation.bind(Zt),Zt.setLineWidth=Zt.setLineWidth.bind(Zt),Zt.colorPanel=new pt("Color",re.defaultColorSet,re.defaultColor),Zt.colorPanel.onColorChanged=Zt.setColor,Zt.lineWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.lineWidthPanel.onWidthChanged=Zt.setLineWidth,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual&>!==this.drawingImage)},dt.prototype.createVisual=function(){this.visual=bt.createGroup(),this.drawingImage=bt.createImage(),this.visual.appendChild(this.drawingImage);var gt=bt.createTransform();this.visual.transform.baseVal.appendItem(gt),this.addMarkerVisualToContainer(this.visual)},dt.prototype.pointerDown=function(gt,zt){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(gt.x,gt.y),this.drawing=!0):Pt.prototype.pointerDown.call(this,gt,zt)},dt.prototype.manipulate=function(gt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(gt.x,gt.y),this.canvasContext.stroke()):Pt.prototype.manipulate.call(this,gt)},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),bt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},dt.prototype.pointerUp=function(gt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Pt.prototype.pointerUp.call(this,gt)},dt.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},dt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Pt.prototype.select.call(this)},dt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Pt.prototype.deselect.call(this)},dt.prototype.finishCreation=function(){for(var gt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),zt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],re=zt[0],Zt=zt[1],ye=zt[2],Ye=zt[3],sn=!1,Le=0;Le0&&(sn=!0,LeYe&&(Ye=Le),Re>ye&&(ye=Re));if(sn){this.left=re/this.pixelRatio,this.top=Zt/this.pixelRatio,this.width=(ye-re)/this.pixelRatio,this.height=(Ye-Zt)/this.pixelRatio;var hn=document.createElement("canvas");hn.width=ye-re,hn.height=Ye-Zt,hn.getContext("2d").putImageData(this.canvasContext.getImageData(re,Zt,ye-re,Ye-Zt),0,0),this.drawingImgUrl=hn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},dt.prototype.setDrawingImage=function(){bt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),bt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},dt.prototype.setColor=function(gt){this.color=gt,this.colorChanged(gt)},dt.prototype.setLineWidth=function(gt){this.lineWidth=gt},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({drawingImgUrl:this.drawingImgUrl},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.drawingImgUrl=gt.drawingImgUrl,this.setDrawingImage()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.setDrawingImage()},dt.typeName="FreehandMarker",dt.title="Freehand marker",dt.icon='',dt}(Ft),de=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,re||'')||this;return Zt.typeBoxes=[],Zt.currentType=zt,Zt.setCurrentType=Zt.setCurrentType.bind(Zt),Zt}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2";for(var re=function(Ye){var sn="both";switch(Ye){case 0:sn="both";break;case 1:sn="start";break;case 2:sn="end";break;case 3:sn="none"}var Le=document.createElement("div");if(Le.style.display="flex",Le.style.flexGrow="2",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=sn===Zt.currentType?Zt.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){gt.setCurrentType(sn,Le)}),zt.appendChild(Le),sn==="both"||sn==="start"){var Re=document.createElement("div");Re.style.display="flex",Re.style.alignItems="center",Re.style.minHeight="20px",Re.innerHTML=` `,Re.style.marginLeft="5px",Le.appendChild(Re)}var hn=document.createElement("div");hn.style.display="flex",hn.style.alignItems="center",hn.style.minHeight="20px",hn.style.flexGrow="2";var wn=document.createElement("hr");if(wn.style.minWidth="20px",wn.style.border="0px",wn.style.borderTop="3px solid "+(Zt.uiStyleSettings!==void 0?Zt.uiStyleSettings.toolboxColor:"#eeeeee"),wn.style.flexGrow="2",hn.appendChild(wn),Le.appendChild(hn),sn==="both"||sn==="end"){var kn=document.createElement("div");kn.style.display="flex",kn.style.alignItems="center",kn.style.minHeight="20px",kn.innerHTML=` `,kn.style.marginRight="5px",Le.appendChild(kn)}Zt.typeBoxes.push(Le)},Zt=this,ye=0;ye<4;ye++)re(ye);return zt},dt.prototype.setCurrentType=function(gt,zt){var re=this;this.currentType=gt,this.typeBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},dt}(ct),Jt=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.arrowType="end",Zt.arrowBaseHeight=10,Zt.arrowBaseWidth=10,Zt.getArrowPoints=Zt.getArrowPoints.bind(Zt),Zt.setArrowType=Zt.setArrowType.bind(Zt),Zt.arrowTypePanel=new de("Arrow type","end"),Zt.arrowTypePanel.onArrowTypeChanged=Zt.setArrowType,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.arrow1&>!==this.arrow2)},dt.prototype.getArrowPoints=function(gt,zt){var re=this.arrowBaseWidth+2*this.strokeWidth,Zt=this.arrowBaseHeight+2*this.strokeWidth;return gt-re/2+","+(zt+Zt/2)+" "+gt+","+(zt-Zt/2)+" "+(gt+re/2)+","+(zt+Zt/2)},dt.prototype.createTips=function(){this.arrow1=bt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(bt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=bt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(bt.createTransform()),this.visual.appendChild(this.arrow2)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="creating"&&this.createTips()},dt.prototype.adjustVisual=function(){if(Pt.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",bt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),bt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var gt=0;Math.abs(this.x1-this.x2)>.1&&(gt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var zt=this.arrow1.transform.baseVal.getItem(0);zt.setRotate(gt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(zt,0);var re=this.arrow2.transform.baseVal.getItem(0);re.setRotate(gt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(re,0)}},dt.prototype.setArrowType=function(gt){this.arrowType=gt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({arrowType:this.arrowType},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.arrowType=zt.arrowType,this.createTips(),this.adjustVisual()},dt.typeName="ArrowMarker",dt.title="Arrow marker",dt.icon='',dt}(Se),ee=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.fillColor=re.defaultFillColor,Zt.strokeWidth=0,Zt.fillPanel=new pt("Color",re.defaultColorSet,re.defaultFillColor),Zt.fillPanel.onColorChanged=Zt.setFillColor,Zt}return xt(dt,Pt),Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.typeName="CoverMarker",dt.title="Cover marker",dt.icon='',dt}(Qt),ae=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'')||this;return ye.opacities=[],ye.opacityBoxes=[],ye.opacities=zt,ye.currentOpacity=re,ye.setCurrentOpacity=ye.setCurrentOpacity.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2",zt.style.justifyContent="space-between",this.opacities.forEach(function(re){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.justifyContent="center",Zt.style.padding="5px",Zt.style.borderWidth="2px",Zt.style.borderStyle="solid",Zt.style.borderColor=re===gt.currentOpacity?gt.uiStyleSettings.toolboxAccentColor:"transparent",Zt.addEventListener("click",function(){gt.setCurrentOpacity(re,Zt)}),zt.appendChild(Zt);var ye=document.createElement("div");ye.innerText=100*re+"%",Zt.appendChild(ye),gt.opacityBoxes.push(Zt)}),zt},dt.prototype.setCurrentOpacity=function(gt,zt){var re=this;this.currentOpacity=gt,this.opacityBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},dt}(ct),fe=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.setOpacity=Zt.setOpacity.bind(Zt),Zt.fillColor=re.defaultHighlightColor,Zt.strokeWidth=0,Zt.opacity=re.defaultHighlightOpacity,Zt.fillPanel=new pt("Color",re.defaultColorSet,Zt.fillColor),Zt.fillPanel.onColorChanged=Zt.setFillColor,Zt.opacityPanel=new ae("Opacity",re.defaultOpacitySteps,Zt.opacity),Zt.opacityPanel.onOpacityChanged=Zt.setOpacity,Zt}return xt(dt,Pt),dt.prototype.setOpacity=function(gt){this.opacity=gt,this.visual&&bt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.typeName="HighlightMarker",dt.title="Highlight marker",dt.icon='',dt}(ee),se='',De='',Oe=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.bgColor="transparent",Zt.tipPosition={x:0,y:0},Zt.tipBase1Position={x:0,y:0},Zt.tipBase2Position={x:0,y:0},Zt.tipMoving=!1,Zt.color=re.defaultStrokeColor,Zt.bgColor=re.defaultFillColor,Zt.fontFamily=re.defaultFontFamily,Zt.defaultSize={x:100,y:30},Zt.setBgColor=Zt.setBgColor.bind(Zt),Zt.getTipPoints=Zt.getTipPoints.bind(Zt),Zt.positionTip=Zt.positionTip.bind(Zt),Zt.setTipPoints=Zt.setTipPoints.bind(Zt),Zt.colorPanel=new pt("Text color",re.defaultColorSet,Zt.color,se),Zt.colorPanel.onColorChanged=Zt.setColor,Zt.bgColorPanel=new pt("Fill color",re.defaultColorSet,Zt.bgColor,De),Zt.bgColorPanel.onColorChanged=Zt.setBgColor,Zt.fontFamilyPanel=new Ne("Font",re.defaultFontFamilies,re.defaultFontFamily),Zt.fontFamilyPanel.onFontChanged=Zt.setFont,Zt.tipGrip=new Dt,Zt.tipGrip.visual.transform.baseVal.appendItem(bt.createTransform()),Zt.controlBox.appendChild(Zt.tipGrip.visual),Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return Pt.prototype.ownsTarget.call(this,gt)||this.tipGrip.ownsTarget(gt)||this.tip===gt},dt.prototype.createTip=function(){bt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=bt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},dt.prototype.pointerDown=function(gt,zt){this.state==="new"&&Pt.prototype.pointerDown.call(this,gt,zt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(zt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Pt.prototype.pointerDown.call(this,gt,zt)},dt.prototype.pointerUp=function(gt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Pt.prototype.pointerUp.call(this,gt);else{var zt=this.state==="creating";Pt.prototype.pointerUp.call(this,gt),this.setTipPoints(zt),this.positionTip()}},dt.prototype.manipulate=function(gt){if(this.tipMoving){var zt=this.unrotatePoint(gt);this.tipPosition={x:zt.x-this.manipulationStartLeft,y:zt.y-this.manipulationStartTop},this.positionTip()}else Pt.prototype.manipulate.call(this,gt)},dt.prototype.setBgColor=function(gt){this.bgRectangle&&this.tip&&(bt.setAttributes(this.bgRectangle,[["fill",gt]]),bt.setAttributes(this.tip,[["fill",gt]])),this.bgColor=gt,this.fillColorChanged(gt)},dt.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},dt.prototype.setTipPoints=function(gt){gt===void 0&&(gt=!1);var zt=Math.min(this.height/2,15),re=this.height/5;gt&&(this.tipPosition={x:zt+re/2,y:this.height+20});var Zt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?Zt.1)){var gt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),zt=this.tip1.transform.baseVal.getItem(0);zt.setRotate(gt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(zt,0);var re=this.tip2.transform.baseVal.getItem(0);re.setRotate(gt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(re,0)}},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt),this.createTips(),this.adjustVisual()},dt.typeName="MeasurementMarker",dt.title="Measurement marker",dt.icon='',dt}(Se),rn=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.strokePanel.colors=re.defaultColorSet,Zt.fillColor="transparent",Zt}return xt(dt,Pt),Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.typeName="EllipseFrameMarker",dt.title="Ellipse frame marker",dt.icon='',dt}(en),ke=function(){function Pt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Pt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Pt.prototype.addUndoStep=function(dt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(dt)||(this.undoStack.push(dt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(dt)&&this.redoStack.splice(0,this.redoStack.length))},Pt.prototype.replaceLastUndoStep=function(dt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=dt)},Pt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Pt.prototype.undo=function(){if(this.undoStack.length>1){var dt=this.undoStack.pop();return dt!==void 0&&this.redoStack.push(dt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Pt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Pt}(),Ie=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.strokeColor="transparent",Zt.strokeWidth=0,Zt.strokeDasharray="",Zt.curveX=0,Zt.curveY=0,Zt.manipulationStartCurveX=0,Zt.manipulationStartCurveY=0,Zt.setStrokeColor=Zt.setStrokeColor.bind(Zt),Zt.setStrokeWidth=Zt.setStrokeWidth.bind(Zt),Zt.setStrokeDasharray=Zt.setStrokeDasharray.bind(Zt),Zt.positionGrips=Zt.positionGrips.bind(Zt),Zt.addControlGrips=Zt.addControlGrips.bind(Zt),Zt.adjustVisual=Zt.adjustVisual.bind(Zt),Zt.setupControlBox=Zt.setupControlBox.bind(Zt),Zt.resize=Zt.resize.bind(Zt),Zt.strokeColor=re.defaultColor,Zt.strokeWidth=re.defaultStrokeWidth,Zt.strokeDasharray=re.defaultStrokeDasharray,Zt.strokePanel=new pt("Line color",re.defaultColorSet,re.defaultColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.strokeWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Kt("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual&>!==this.selectorCurve&>!==this.visibleCurve&&!this.curveGrip.ownsTarget(gt))},dt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},dt.prototype.createVisual=function(){this.visual=bt.createGroup(),this.selectorCurve=bt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=bt.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=gt.x,this.curveY=gt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(zt)&&(this.activeGrip=this.curveGrip,this._state="resize")},dt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),bt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),bt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),bt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},dt.prototype.setupControlBox=function(){Pt.prototype.setupControlBox.call(this),this.curveControlLine1=bt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=bt.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},dt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Pt.prototype.addControlGrips.call(this)},dt.prototype.positionGrips=function(){Pt.prototype.positionGrips.call(this);var gt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-gt/2,this.curveY-gt/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},dt.prototype.manipulate=function(gt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+gt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+gt.y-this.manipulationStartY),Pt.prototype.manipulate.call(this,gt)},dt.prototype.resize=function(gt){this.activeGrip===this.curveGrip&&(this.curveX=gt.x,this.curveY=gt.y),Pt.prototype.resize.call(this,gt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},dt.prototype.setStrokeColor=function(gt){this.strokeColor=gt,this.adjustVisual(),this.colorChanged(gt)},dt.prototype.setStrokeWidth=function(gt){this.strokeWidth=gt,this.adjustVisual()},dt.prototype.setStrokeDasharray=function(gt){this.strokeDasharray=gt,this.adjustVisual()},dt.prototype.scale=function(gt,zt){this.curveX=this.curveX*gt,this.curveY=this.curveY*zt,Pt.prototype.scale.call(this,gt,zt)},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.curveX=zt.curveX,this.curveY=zt.curveY,this.createVisual(),this.adjustVisual()},dt.typeName="CurveMarker",dt.title="Curve marker",dt.icon='',dt}(we),je=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.fillColor="transparent",Zt.strokeColor="transparent",Zt.strokeWidth=0,Zt.strokeDasharray="",Zt.textColor="transparent",Zt.fontSize="1rem",Zt.isMoved=!1,Zt.captionText="Caption",Zt.PADDING=5,Zt.captionBoxWidth=0,Zt.captionBoxHeight=0,Zt.strokeColor=re.defaultColor,Zt.strokeWidth=re.defaultStrokeWidth,Zt.strokeDasharray=re.defaultStrokeDasharray,Zt.fillColor=re.defaultFillColor,Zt.textColor=re.defaultStrokeColor,Zt.fontFamily=re.defaultFontFamily,Zt.fontSize=re.defaultCaptionFontSize,Zt.captionText=re.defaultCaptionText,Zt.setStrokeColor=Zt.setStrokeColor.bind(Zt),Zt.setFillColor=Zt.setFillColor.bind(Zt),Zt.setStrokeWidth=Zt.setStrokeWidth.bind(Zt),Zt.setStrokeDasharray=Zt.setStrokeDasharray.bind(Zt),Zt.createVisual=Zt.createVisual.bind(Zt),Zt.sizeCaption=Zt.sizeCaption.bind(Zt),Zt.setCaptionText=Zt.setCaptionText.bind(Zt),Zt.showTextEditor=Zt.showTextEditor.bind(Zt),Zt.positionTextEditor=Zt.positionTextEditor.bind(Zt),Zt.finishTextEditing=Zt.finishTextEditing.bind(Zt),Zt.setFont=Zt.setFont.bind(Zt),Zt.setTextColor=Zt.setTextColor.bind(Zt),Zt.strokePanel=new pt("Line color",At(re.defaultColorSet,["transparent"]),Zt.strokeColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.fillPanel=new pt("Fill color",At(re.defaultColorSet,["transparent"]),Zt.fillColor,De),Zt.fillPanel.onColorChanged=Zt.setFillColor,Zt.strokeWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Kt("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt.fontFamilyPanel=new Ne("Font",re.defaultFontFamilies,re.defaultFontFamily),Zt.fontFamilyPanel.onFontChanged=Zt.setFont,Zt.textColorPanel=new pt("Text color",re.defaultColorSet,Zt.textColor,se),Zt.textColorPanel.onColorChanged=Zt.setTextColor,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual&>!==this.frame&>!==this.captionBg&>!==this.captionElement)},dt.prototype.createVisual=function(){this.visual=bt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=bt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=bt.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=bt.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},dt.prototype.setCaptionText=function(gt){this.captionText=gt,this.captionElement.textContent=this.captionText,this.sizeCaption()},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.isMoved=!1,this.pointerDownPoint=gt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(gt),this._state="creating")},dt.prototype.manipulate=function(gt){Pt.prototype.manipulate.call(this,gt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(gt.x-this.pointerDownPoint.x)>5||Math.abs(gt.y-this.pointerDownPoint.y)>5)},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),this.setSize()},dt.prototype.sizeCaption=function(){var gt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=gt.width+2*this.PADDING,this.captionBoxHeight=gt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),bt.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),bt.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},dt.prototype.showTextEditor=function(){var gt=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(zt){zt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(zt){zt.key==="Enter"&>.finishTextEditing(gt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(zt){zt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){gt.finishTextEditing(gt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){gt.finishTextEditing(gt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},dt.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},dt.prototype.finishTextEditing=function(gt){this.setCaptionText(gt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},dt.prototype.setFont=function(gt){this.captionElement&&bt.setAttributes(this.captionElement,[["font-family",gt]]),this.fontFamily=gt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},dt.prototype.setTextColor=function(gt){this.captionElement&&bt.setAttributes(this.captionElement,[["fill",gt]]),this.textColor=gt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},dt.prototype.setSize=function(){Pt.prototype.setSize.call(this),bt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},dt.prototype.pointerUp=function(gt){Pt.prototype.pointerUp.call(this,gt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},dt.prototype.dblClick=function(gt,zt){Pt.prototype.dblClick.call(this,gt,zt),this.showTextEditor()},dt.prototype.setStrokeColor=function(gt){this.strokeColor=gt,this.frame&&bt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(gt),this.stateChanged()},dt.prototype.setFillColor=function(gt){this.fillColor=gt,this.captionBg&&bt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(gt),this.stateChanged()},dt.prototype.setStrokeWidth=function(gt){this.strokeWidth=gt,this.frame&&bt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},dt.prototype.setStrokeDasharray=function(gt){this.strokeDasharray=gt,this.frame&&bt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Pt.prototype.getState.call(this));return gt.typeName=this.typeName,gt},dt.prototype.restoreState=function(gt){var zt=gt;this.fillColor=zt.fillColor,this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.textColor=zt.textColor,this.fontFamily=zt.fontFamily,this.captionText=zt.captionText,this.fontSize=zt.fontSize,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.setSize()},dt.typeName="CaptionFrameMarker",dt.title="Caption frame marker",dt.icon='',dt}(Ft),$e=function(){function Pt(dt,gt){gt===void 0&&(gt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=dt,this.cancelable=gt}return Object.defineProperty(Pt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Pt.prototype.preventDefault=function(){this._defaultPrevented=!0},Pt}(),me=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,!1)||this;return Zt.dataUrl=zt,Zt.state=re,Zt}return xt(dt,Pt),dt}($e),le=function(Pt){function dt(gt,zt,re){re===void 0&&(re=!1);var Zt=Pt.call(this,gt,re)||this;return Zt.marker=zt,Zt}return xt(dt,Pt),dt}($e),Ee=function(){function Pt(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Pt.prototype.addEventListener=function(dt,gt){this[dt].push(gt)},Pt.prototype.removeEventListener=function(dt,gt){var zt=this[dt].indexOf(gt);zt>-1&&this[dt].splice(zt,1)},Pt}(),ce=function(){function Pt(dt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new oe,this._isOpen=!1,this.undoRedoManager=new ke,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Ee,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Pt.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=dt,this.targetRoot=document.body,this.width=dt.clientWidth,this.height=dt.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Pt.prototype,"ALL_MARKER_TYPES",{get:function(){return[ue,Ue,Jt,pe,rn,en,fe,Oe,We,ee,Se,Ie,je]},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ue,Ue,Jt,pe,en,fe,Oe]},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ue,Ue,Jt,pe,fe]},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(dt){var gt=this;this._availableMarkerTypes.splice(0),dt.forEach(function(zt){if(typeof zt=="string"){var re=gt.ALL_MARKER_TYPES.find(function(Zt){return Zt.typeName===zt});re!==void 0&>._availableMarkerTypes.push(re)}else gt._availableMarkerTypes.push(zt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(dt){this._zoomLevel=dt,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Pt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Tt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Pt.prototype.show=function(){var dt=this;this.styles.styleSheetRoot===void 0&&vt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=vt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(gt){return gt(new $e(dt))})},Pt.prototype.render=function(){return Ot(this,void 0,void 0,function(){var dt;return Bt(this,function(gt){switch(gt.label){case 0:return this.setCurrentMarker(),(dt=new It).naturalSize=this.renderAtNaturalSize,dt.imageType=this.renderImageType,dt.imageQuality=this.renderImageQuality,dt.markersOnly=this.renderMarkersOnly,dt.width=this.renderWidth,dt.height=this.renderHeight,[4,dt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return gt.sent(),[4,dt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,gt.sent()]}})})},Pt.prototype.close=function(dt){var gt=this;if(dt===void 0&&(dt=!1),this.isOpen){var zt=!1;dt||this.eventListeners.beforeclose.forEach(function(re){var Zt=new $e(gt,!0);re(Zt),Zt.defaultPrevented&&(zt=!0)}),zt||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(re){return re(new $e(gt))}),this.detachEvents(),this._isOpen=!1)}},Pt.prototype.addMarkersToToolbar=function(){for(var dt,gt=[],zt=0;ztthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*dt:this.editorCanvas.clientWidth,zt=gt',dt.title="Powered by marker.js",dt.style.display="grid",dt.style.alignItems="center",dt.style.justifyItems="center",dt.style.padding="3px",dt.style.width="20px",dt.style.height="20px",this.logoUI.appendChild(dt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Pt.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Pt.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Pt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Pt.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var dt=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=dt+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new rt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(dt),1),dt.dispose()},Pt.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Pt.prototype.toolbarButtonClicked=function(dt,gt){if(dt==="marker"&>!==void 0)this.createNewMarker(gt);else if(dt==="action")switch(gt){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Pt.prototype.deleteSelectedMarker=function(){var dt=this;if(this._currentMarker!==void 0){var gt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(re){var Zt=new le(dt,dt._currentMarker,!0);re(Zt),Zt.defaultPrevented&&(gt=!0)}),!gt){var zt=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(re){return re(new le(dt,zt))})}}},Pt.prototype.clear=function(){var dt=this,gt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ye){var Ye=new le(dt,void 0,!0);ye(Ye),Ye.defaultPrevented&&(gt=!0)}),!gt)){this.setCurrentMarker();for(var zt=function(ye){var Ye=re.markers[ye];re.setCurrentMarker(re.markers[ye]),re._currentMarker.dispose(),re.markerImage.removeChild(re._currentMarker.container),re.markers.splice(re.markers.indexOf(re._currentMarker),1),re.eventListeners.markerdelete.forEach(function(sn){return sn(new le(dt,Ye))})},re=this,Zt=this.markers.length-1;Zt>=0;Zt--)zt(Zt);this.addUndoStep()}},Object.defineProperty(Pt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Pt.prototype.showNotesEditor=function(){var dt;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(dt=this._currentMarker.notes)!==null&&dt!==void 0?dt:"",this.overlayContainer.appendChild(this.notesArea))},Pt.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Pt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Pt.prototype.addUndoStep=function(){var dt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var gt=this.getState(),zt=this.undoRedoManager.getLastUndoStep();if(!zt||zt.width===gt.width&&zt.height===gt.height){var re=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(gt),re1&&this.panTo({x:dt.clientX,y:dt.clientY}))},Pt.prototype.onPointerUp=function(dt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(dt.clientX,dt.clientY)),this.isDragging=!1,this.addUndoStep()},Pt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Pt.prototype.onKeyUp=function(dt){this._currentMarker===void 0||this.notesArea!==void 0||dt.key!=="Delete"&&dt.key!=="Backspace"||this.deleteSelectedMarker()},Pt.prototype.clientToLocalCoordinates=function(dt,gt){var zt=this.markerImage.getBoundingClientRect();return{x:(dt-zt.left)/this.zoomLevel,y:(gt-zt.top)/this.zoomLevel}},Pt.prototype.onWindowResize=function(){this.positionUI()},Pt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var dt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=dt+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Pt.prototype.addLicenseKey=function(dt){Tt.addKey(dt)},Pt.prototype.addEventListener=function(dt,gt){this.eventListeners.addEventListener(dt,gt)},Pt.prototype.removeEventListener=function(dt,gt){this.eventListeners.removeEventListener(dt,gt)},Pt.prototype.renderState=function(dt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(dt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Pt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Pt.prototype.focus=function(){var dt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(gt){return gt(new $e(dt))}))},Pt.prototype.blur=function(){var dt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(gt){return gt(new $e(dt))}))},Pt.instanceCounter=0,Pt}(),he=Gt(70635),_t=Gt(58130),Mt=(Pt,dt,gt)=>new Promise((zt,re)=>{var Zt=sn=>{try{Ye(gt.next(sn))}catch(Le){re(Le)}},ye=sn=>{try{Ye(gt.throw(sn))}catch(Le){re(Le)}},Ye=sn=>sn.done?zt(sn.value):Promise.resolve(sn.value).then(Zt,ye);Ye((gt=gt.apply(Pt,dt)).next())}),Ht=({data:Pt,className:dt,fullWidth:gt,style:zt={},onClose:re,onOk:Zt,showFullTools:ye,noAssociationId:Ye})=>{const sn=(0,Rt.useRef)(null),Le=(0,Rt.useRef)(null),Re=(0,Rt.useRef)(null),hn=(0,Rt.useRef)(null),[wn,kn]=(0,Rt.useState)(!1),[Rn,Yn]=(0,Rt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Rt.useEffect)(()=>{Re.current||(Re.current=document.createElement("style"),document.head.appendChild(Re.current)),Pt!=null&&Pt.visible?(document.body.setAttribute("data-custom","y-hidden"),Re.current.innerHTML=" html { overflow-y: hidden; }",Pt!=null&&Pt.src&&Kn()):(document.body.removeAttribute("data-custom"),Re.current&&(document.head.removeChild(Re.current),Re.current=null))},[Pt==null?void 0:Pt.visible]);const Kn=()=>Mt(void 0,null,function*(){kn(!0),Yn("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Pi=yield(0,_t.ZJ)(Pt==null?void 0:Pt.src);sn.current.src="",sn.current.src=Pi,sn.current.onload=function(){yi()},kn(!1),Yn("")}),li=Pi=>Mt(void 0,null,function*(){kn(!0),Yn("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Mi=yield(0,he.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Pt.title,file:Pi.dataUrl}});Mi!=null&&Mi.id&&!Ye?(yield(0,he.ZP)(`/api/attachments/${Pt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Mi==null?void 0:Mi.id,settings:JSON.stringify(Pi.state)}})).status===0&&Zt():Mi!=null&&Mi.id&&Zt(Mi),kn(!1),Yn("")}),mi=()=>{const Pi=document.querySelector('a[href="https://markerjs.com/"]');Pi&&Pi.parentNode&&(Pi.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(Gi=>{const bi=document.querySelector(Gi.name);bi&&bi.setAttribute("title",Gi.title)})},yi=()=>{Le.current=new ce(sn.current),Le.current.targetRoot=hn.current,Le.current.addEventListener("render",li),Le.current.addEventListener("beforeclose",re),ye&&(Le.current.availableMarkerTypes=Le.current.ALL_MARKER_TYPES,Le.current.uiStyleSettings.redoButtonVisible=!0,Le.current.uiStyleSettings.notesButtonVisible=!0,Le.current.uiStyleSettings.zoomButtonVisible=!0,Le.current.uiStyleSettings.zoomOutButtonVisible=!0,Le.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Le.current.uiStyleSettings,Le.current.show(),Pt!=null&&Pt.snapshotData&&Le.current.restoreState(Pt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),mi()},300)};return Rt.createElement(Rt.Fragment,null,(Pt==null?void 0:Pt.visible)&&Rt.createElement(Nt.Z,{spinning:wn,tip:Rn,style:{position:"absolute"}},Rt.createElement("div",{ref:hn,className:Yt()(yt.imageDimensions,dt,gt?yt.fullWidth:""),style:zt},Rt.createElement("img",{className:yt.img,ref:sn}))))}},75890:function(Nn,An,Gt){"use strict";var Rt=Gt(59301),yt=Gt(95237),Vt=Gt(43604),Yt=Gt(99313),Nt=Gt(3113),Wt=Gt(25711),xt=Gt(93938),Ot=Gt(48136),Bt=Gt(59301);const At=(0,Rt.forwardRef)(({callback:bt,showSaveButton:Tt,value:It=""},vt)=>{const et=(0,Rt.useRef)(),tt=[{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 "}]}]}],st=[{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}`}]}]}],rt=pt=>{et.current.setValue(et.current.getValue()+" "+pt.value+" ")},ut=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Bt.createElement(yt.Z,{className:xt.Z.lists,gutter:[10,10]},tt.map((pt,mt)=>Bt.createElement(Vt.Z,{flex:"110px",className:xt.Z.item},Bt.createElement("div",null,Bt.createElement(Wt.Z,{value:`$$${pt.value}$$`}),pt.name),Bt.createElement("div",{className:xt.Z.children},pt.children.map((Ct,Dt)=>Bt.createElement("div",{key:Dt},Bt.createElement("h1",null,Ct.name),Bt.createElement(yt.Z,{gutter:[10,10]},Ct.data.map((Ut,Ft)=>Bt.createElement(Vt.Z,{key:Ft,onClick:()=>rt(Ut),className:xt.Z.diamond},Bt.createElement(Wt.Z,{value:"`$$"+Ut.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Bt.createElement(yt.Z,{className:xt.Z.lists,gutter:[10,10]},st.map((pt,mt)=>Bt.createElement(Vt.Z,{flex:"110px",className:xt.Z.item},Bt.createElement("div",null,Bt.createElement(Wt.Z,{value:"`$$"+pt.value+"$$`"}),pt.name),Bt.createElement("div",{className:xt.Z.children},pt.children.map((Ct,Dt)=>Bt.createElement("div",{key:Dt},Ct.name&&Bt.createElement("h1",null,Ct.name),Bt.createElement(yt.Z,{gutter:[10,10]},Ct.data.map((Ut,Ft)=>Bt.createElement(Vt.Z,{key:Ft,onClick:()=>rt(Ut),className:xt.Z.diamond},Bt.createElement(Wt.Z,{value:"`$$"+Ut.value+"$$`"}))))))))))}],ct=()=>{var pt=document.createElement("div");pt.innerHTML=et.current.getValue();var mt=pt.innerText;return bt&&bt(mt),mt};return(0,Rt.useImperativeHandle)(vt,()=>({getData:ct})),Bt.createElement("div",{className:xt.Z.mathWrap},Bt.createElement(Yt.default,{defaultActiveKey:"1",items:ut}),Bt.createElement("math-field",{locale:"zh_cn",className:xt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},It||""),Tt&&Bt.createElement("div",{className:xt.Z.button},Bt.createElement(Nt.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});An.Z=At},57203:function(Nn,An,Gt){"use strict";Gt.d(An,{z:function(){return Ue},Z:function(){return de}});var Rt=Gt(59301),yt=Gt(24645),Vt=Gt(8591),Yt=Gt(43418),Nt=Gt(3113),Wt=Gt(10148),xt=Gt(76904),Ot=Object.defineProperty,Bt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Tt=(Jt,ee,ae)=>ee in Jt?Ot(Jt,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Jt[ee]=ae,It=(Jt,ee)=>{for(var ae in ee||(ee={}))At.call(ee,ae)&&Tt(Jt,ae,ee[ae]);if(Bt)for(var ae of Bt(ee))bt.call(ee,ae)&&Tt(Jt,ae,ee[ae]);return Jt},vt=(Jt,ee,ae)=>new Promise((fe,se)=>{var De=We=>{try{en(ae.next(We))}catch(rn){se(rn)}},Oe=We=>{try{en(ae.throw(We))}catch(rn){se(rn)}},en=We=>We.done?fe(We.value):Promise.resolve(We.value).then(De,Oe);en((ae=ae.apply(Jt,ee)).next())});const et="\u3000\u3000";function tt(Jt){var ee=["Bytes","KB","MB","GB","TB"];if(Jt==0)return"0 Byte";var ae=parseInt(""+Math.floor(Math.log(Jt)/Math.log(1024)),10);return(Jt/Math.pow(1024,ae)).toFixed(1)+" "+ee[ae]}var st=({value:Jt=[],action:ee,onChange:ae,className:fe,maxSize:se=150,title:De="\u6587\u4EF6\u4E0A\u4F20",accept:Oe=null})=>{const en={multiple:!1,fileList:Jt,accept:Oe,withCredentials:!0,beforeUpload:rn=>rn.size/1024/1024(le.name.indexOf(et)===-1&&(le.name=`${le.name}${et}${tt(le.size)}`),It({},le))),rn.file.status==="done"&&((Ie=(ke=rn.file)==null?void 0:ke.response)==null?void 0:Ie.status)===-1){message.error(($e=(je=rn.file)==null?void 0:je.response)==null?void 0:$e.message),ae([]);return}ae(me)},onRemove:rn=>vt(void 0,null,function*(){const ke=rn.size/1024/1024;return rn.status==="uploading"?!0:ke0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Jt.length>0,ghost:!0},De),React.createElement("span",{onClick:We,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",se,"M)"," ")))},rt=Gt(76298),ut=Gt(89392),ct=Object.defineProperty,pt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Dt=(Jt,ee,ae)=>ee in Jt?ct(Jt,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Jt[ee]=ae,Ut=(Jt,ee)=>{for(var ae in ee||(ee={}))mt.call(ee,ae)&&Dt(Jt,ae,ee[ae]);if(pt)for(var ae of pt(ee))Ct.call(ee,ae)&&Dt(Jt,ae,ee[ae]);return Jt};const Ft=Jt=>React.createElement("svg",Ut({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Jt),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var Qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",$t=Object.defineProperty,Kt=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,we=(Jt,ee,ae)=>ee in Jt?$t(Jt,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Jt[ee]=ae,Se=(Jt,ee)=>{for(var ae in ee||(ee={}))ue.call(ee,ae)&&we(Jt,ae,ee[ae]);if(Kt)for(var ae of Kt(ee))oe.call(ee,ae)&&we(Jt,ae,ee[ae]);return Jt},Ne=(Jt,ee,ae)=>new Promise((fe,se)=>{var De=We=>{try{en(ae.next(We))}catch(rn){se(rn)}},Oe=We=>{try{en(ae.throw(We))}catch(rn){se(rn)}},en=We=>We.done?fe(We.value):Promise.resolve(We.value).then(De,Oe);en((ae=ae.apply(Jt,ee)).next())});const{Dragger:pe}=yt.default;function Ue(Jt){let ee=[];return Jt&&Jt.length>0&&(ee=Jt.map(ae=>({uid:ae.id,id:ae.id,name:ae.title+et+ae.filesize,url:ae.url,filesize:ae.filesize,status:"done",response:{id:ae.id}}))),ee}var de=({value:Jt,onChange:ee,action:ae,data:fe,className:se,maxSize:De=150,title:Oe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:en=!1,accept:We="",additionalText:rn,isDragger:ke,number:Ie=1e3,aloneClear:je=!1,realTimeRemove:$e=!0,uploadText:me,setFileProgress:le,showFileProgress:Ee})=>{const[ce,he]=(0,Rt.useState)(!1);let[_t,Mt]=(0,Rt.useState)(Jt||[]),[Et,Ht]=(0,Rt.useState)(1);(0,Rt.useEffect)(()=>{Jt&&(Et===1&&Mt([...Jt]),Ht(2),Ie===(Jt==null?void 0:Jt.length)&&he(!0))},[Jt]);const Pt=()=>{setTimeout(()=>{_t.pop(),Mt([..._t])},500)};Ee&&le(_t.some(zt=>zt.status==="uploading"));const dt={multiple:!0,disabled:ce,accept:We,withCredentials:!0,fileList:_t,beforeUpload:(zt,re)=>{const Zt=zt.size/1024/1024;return _t.concat(re).length>Ie?(_t.pop(),Mt([..._t]),Vt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Ie}\u4E2A\u6587\u4EF6`),je?Promise.reject():(Pt(),!1)):Zt=Ie?he(!0):he(!1),Mt([..._t]),_t=_t.map(sn=>{var Le,Re;return(Le=sn==null?void 0:sn.response)!=null&&Le.id&&(sn.url=(Re=sn==null?void 0:sn.response)==null?void 0:Re.url),sn.name.indexOf(et)===-1&&(sn.name=`${sn.name}${et}${tt(sn.size)}`),Se({},sn)}),console.log("info:",zt,_t),ee(_t)},onRemove:zt=>Ne(void 0,null,function*(){if(!$e)return!0;const re=()=>Ne(void 0,null,function*(){if(zt.response?zt.response.id:zt.id){let ye=yield(0,xt.JZ)(zt.response?zt.response.id:zt.uid);return Promise.resolve(ye)}else return!0});return en?new Promise((Zt,ye)=>{Yt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Rt.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ne(void 0,null,function*(){const Ye=yield re();Vt.ZP.success("\u5220\u9664\u6210\u529F"),Zt(!0)}),onCancel:()=>Zt(!1)})}):yield re()})};function gt(zt){zt.preventDefault(),zt.stopPropagation()}return Rt.createElement("div",{className:`multi-upload ${se||""}`},ke&&Rt.createElement(pe,Se({},dt),Rt.createElement("p",{className:"ant-upload-drag-icon"},Rt.createElement(rt.Z,null)),Rt.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",Rt.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",De,"MB)"," "),rn),!ke&&Rt.createElement(yt.default,Se({},dt),Rt.createElement(Nt.ZP,{disabled:ce,className:"upload_button"},Rt.createElement("img",{className:"aBtn_img",src:Qt}),Oe),Rt.createElement("span",{onClick:gt,className:"upload_text"},me||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${De}MB)`)))}},97267:function(Nn,An,Gt){"use strict";var Rt=Gt(59301),yt=Gt(93314),Vt=Gt(3113),Yt=Object.defineProperty,Nt=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,At=(vt,et,tt)=>et in vt?Yt(vt,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):vt[et]=tt,bt=(vt,et)=>{for(var tt in et||(et={}))Ot.call(et,tt)&&At(vt,tt,et[tt]);if(xt)for(var tt of xt(et))Bt.call(et,tt)&&At(vt,tt,et[tt]);return vt},Tt=(vt,et)=>Nt(vt,Wt(et));const It=({img:vt,buttonProps:et={},styles:tt={},customText:st,ButtonText:rt,ButtonClick:ut,Buttonclass:ct,ButtonTwo:pt,imgStyles:mt,loading:Ct=!1})=>Rt.createElement("section",{className:"tc animated fadeIn",style:bt(bt({},{color:"#999",margin:"100px auto",visibility:Ct?"hidden":"visible"}),tt)},Rt.createElement("img",{src:vt||yt,style:Tt(bt({},mt),{pointerEvents:"none",userSelect:"none"})}),Rt.createElement("p",{className:"mt20 font14"},st||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&Rt.createElement(Vt.ZP,bt({className:ct,onClick:ut},et),rt),pt&&pt);An.Z=It},79646:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return ct}});var Rt=Gt(59301),yt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Vt=Gt(3113),Yt=Gt(63093),Nt=Gt(48551),Wt=Gt(6848),xt=Gt(58130),Ot=Gt(79124),Bt=Gt(97267),At=Gt(10148),bt=Gt(63486),Tt=Gt(59301),It=Object.defineProperty,vt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,st=(pt,mt,Ct)=>mt in pt?It(pt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):pt[mt]=Ct,rt=(pt,mt)=>{for(var Ct in mt||(mt={}))et.call(mt,Ct)&&st(pt,Ct,mt[Ct]);if(vt)for(var Ct of vt(mt))tt.call(mt,Ct)&&st(pt,Ct,mt[Ct]);return pt},ut=(pt,mt,Ct)=>new Promise((Dt,Ut)=>{var Ft=Kt=>{try{$t(Ct.next(Kt))}catch(ue){Ut(ue)}},Qt=Kt=>{try{$t(Ct.throw(Kt))}catch(ue){Ut(ue)}},$t=Kt=>Kt.done?Dt(Kt.value):Promise.resolve(Kt.value).then(Ft,Qt);$t((Ct=Ct.apply(pt,mt)).next())}),ct=({editOffice:pt="view",data:mt,theme:Ct,type:Dt,filename:Ut,monacoEditor:Ft,className:Qt,style:$t,close:Kt,onClose:ue,hasMask:oe,disabledDownload:we,onImgDimensions:Se,showNodata:Ne,recordInfo:pe})=>{const[Ue,de]=(0,Rt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Jt,ee]=(0,Rt.useState)(""),[ae,fe]=(0,Rt.useState)(),se=window.ENV==="build"?"/react/build":"",De=location.host.startsWith("localhost")?At.Z.PROXY_SERVER:At.Z.API_SERVER,en=10*(1024*1024),We=(0,Rt.useRef)();mt!=null&&mt.startsWith("/api")&&Dt!=="txt"&&(mt=At.Z.API_SERVER+mt);const rn=$e=>$e.substring($e.lastIndexOf("/")+1).split(".").pop();Ut&&Ft&&(Ft.filename=Ut),(0,Rt.useEffect)(()=>{var $e,me;const le=(me=($e=document.cookie)==null?void 0:$e.replace(/\s/g,""))==null?void 0:me.split(";");le==null||le.map(Ee=>{let ce=Ee.split("=");ce[0]==="_educoder_session"&&ee(ce[1])})},[]),(0,Rt.useEffect)(()=>{Dt==="office"&&(mt.indexOf("bigfilescdn.")>-1||mt.indexOf("bigfiles1")>-1?fe({url:mt,fileType:rn(mt),model:mt.indexOf("model=edit")?"edit":"view"}):ke())},[Dt,mt]);const ke=()=>ut(void 0,null,function*(){console.log("data:",mt);let $e=mt;mt.startsWith("http")||($e=location.origin+$e);let me=new URL($e).pathname.split("/").pop();const le=yield(0,Ot.gJ)({attachment_id:me});le.url=De+le.url,fe(le)}),Ie=()=>{if(mt.startsWith("http")||mt.startsWith("blob:")){je();return}(0,xt.Sv)(Ut||"educoder",mt,Ut)},je=()=>{pe&&(0,bt.fc)({id:pe==null?void 0:pe.id,watch_type:1,course_id:pe==null?void 0:pe.course_id}),(0,xt.Nd)(Ut||"educoder",decodeURIComponent(mt))};return Tt.createElement("div",{style:rt({},$t||{}),className:`${oe&&yt.bgBlack} ${Dt?yt.wrp:"hide"}`},Kt&&Tt.createElement("div",{className:yt.close,ref:We},!!Se&&Tt.createElement(Wt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>We.current},Tt.createElement("span",{onClick:()=>{ue(),Se()}},Tt.createElement("i",{className:"icon-yulanpizhu"}))),!we&&Tt.createElement(Wt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>We.current},Tt.createElement("span",{onClick:je},Tt.createElement("i",{className:"icon-quxiaozhiding"}))),Tt.createElement(Wt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>We.current},Tt.createElement("span",{className:"",onClick:ue},Tt.createElement("i",{className:"icon-guanbi1"})))),Tt.createElement("div",{className:`${yt[Qt]} ${Qt} ${yt.monaco} ${Dt==="txt"?"show":"hide"}`},Dt==="txt"&&Tt.createElement(Tt.Fragment,null,Tt.createElement(Nt.ZP,rt({},Ft)))),Dt==="audio"&&Tt.createElement("audio",{src:`${(mt==null?void 0:mt.indexOf("http://"))>-1||(mt==null?void 0:mt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${mt}`,autoPlay:!0}),Dt==="video"&&Tt.createElement(Tt.Fragment,null,(mt==null?void 0:mt.indexOf("http"))>-1?Tt.createElement("video",{controls:!0,src:`${mt}`,autoPlay:!0}):Tt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${mt}`,autoPlay:!0})),Dt==="office"&&ae&&Tt.createElement("iframe",{src:`${se}/office.html?key=${ae.key}&url=${btoa(ae.url)}&callbackUrl=${De+(ae.callbackUrl||"")}&fileType=${ae.fileType}&title=${ae.title||""}&model=${pt}&officeServer=${At.Z.ONLYOFFICE}&disabledDownload=${!!we}`}),Dt==="html"&&Tt.createElement("iframe",{src:mt+"&disposition=inline"}),Dt==="pdf"&&Tt.createElement("iframe",{src:`${se}/js/pdfview/index.html?filename=${Ut||"educoder.pdf"}&url=${encodeURIComponent(mt)}&disabledDownload=${!!we}`}),Dt==="image"&&Tt.createElement("img",{src:`${(mt==null?void 0:mt.indexOf("http://"))>-1||(mt==null?void 0:mt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${mt}`}),(Dt==="other"||Dt==="download")&&Tt.createElement(Tt.Fragment,null,Ne?Tt.createElement(Bt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Tt.createElement(Vt.ZP,{icon:Tt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ie,disabled:we},"\u4E0B\u8F7D")}):Tt.createElement(Vt.ZP,{type:"primary",size:"middle",onClick:Ie,disabled:we},Tt.createElement(Yt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(Nn,An,Gt){"use strict";Gt.d(An,{z:function(){return Dt},Z:function(){return Ut}});var Rt=Gt(59301),yt=Gt(1751),Vt=Gt(31087),Yt=Gt(64018),Nt=Gt(37312),Wt=Gt(10148),xt=Gt(58130),Ot=Gt(15342),Bt=Gt(1012),At=Gt(79646),bt=Gt(59301),It=({html:Ft})=>{const Qt=(0,Rt.useRef)(null),$t=(0,Rt.useRef)(null),Kt=`.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 ue=Qt.current.attachShadow({mode:"open"});$t.current=document.createElement("div"),$t.current.className="markdown-body",$t.current.innerHTML=Ft,ue.appendChild($t.current);const oe=document.createElement("style");return oe.textContent=Kt,ue.appendChild(oe),()=>{ue.innerHTML=""}},[]),(0,Rt.useEffect)(()=>{$t.current&&($t.current.innerHTML=Ft)},[Ft]),bt.createElement("div",{ref:Qt})},vt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Ft,Qt,$t)=>Qt in Ft?vt(Ft,Qt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ft[Qt]=$t,ut=(Ft,Qt)=>{for(var $t in Qt||(Qt={}))tt.call(Qt,$t)&&rt(Ft,$t,Qt[$t]);if(et)for(var $t of et(Qt))st.call(Qt,$t)&&rt(Ft,$t,Qt[$t]);return Ft};const ct="@\u2581\u2581@",pt="@\u2581@",mt=/]*>/g;function Ct(Ft){let Qt=document.createElement("div");return Qt.innerHTML=Ft,Qt.childNodes.length===0?"":Qt.childNodes[0].nodeValue}const Dt=(Ft,Qt)=>{Ft=Ft||"";const $t=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Kt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ue=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,oe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Qt?Ft.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace($t,(we,Se,Ne,pe,Ue,de,Jt)=>{const ee=Se||pe||de,ae=Ne||Ue||Jt||"?";return Wt.Z.API_SERVER+"/api/attachments/"+ee+ae+"&t="+(0,xt.Jn)(ee,Date.now())+(we.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ft=Ft.replace(oe,(we,Se,Ne,pe,Ue,de,Jt)=>{const ee=Se||pe||de,ae=Ne||Ue||Jt||"?";return Wt.Z.API_SERVER+"/attachments/download/"+ee+ae+"&t="+(0,xt.Jn)(ee,Date.now())+(we.indexOf(")")>-1?")":"&")}).replace($t,(we,Se,Ne,pe,Ue,de,Jt)=>{const ee=Se||pe||de,ae=Ne||Ue||Jt||"?";return Wt.Z.API_SERVER+"/api/attachments/"+ee+ae+"&t="+(0,xt.Jn)(ee,Date.now())+(we.indexOf(")")>-1?")":"&")}).replace(Kt,(we,Se,Ne,pe,Ue)=>{const de=Se||pe,Jt=Ne||Ue||"";return'"'+Wt.Z.API_SERVER+"/api/attachments/"+de+Jt+de+Jt+"&t="+(0,xt.Jn)(de,Date.now())}).replace(ue,(we,Se,Ne,pe,Ue)=>{const de=Se||pe,Jt=Ne||Ue||"";return"("+Wt.Z.API_SERVER+"/files/uploads/"+de+Jt+de+Jt+"&t="+(0,xt.Jn)(de,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,` `),Ft)};var Ut=({value:Ft="",className:Qt,showTextOnly:$t,showLines:Kt,style:ue={},stylesPrev:oe={},highlightKeywords:we,showProgramFill:Se,isProgramFill:Ne,disabledFill:pe=!1,programFillValue:Ue,onFillChange:de=ae=>{},onFillBlur:Jt=()=>{},onFillFocus:ee=()=>{}})=>{let ae=String(Ft);const[fe,se]=(0,Rt.useState)(""),[De,Oe]=(0,Rt.useState)("office"),[en,We]=(0,Rt.useState)([]),rn=(0,Rt.useRef)("a"+(0,Bt.Z)()),ke={},Ie=(Pt,dt,gt)=>{const zt=document.createElement(Pt===pt?"input":"textarea");zt.style.width="100%",zt.style.height=Pt===pt?"40px":"151px",zt.rows=5,zt.spellcheck=!1,zt.name="edu-program-fill",zt.placeholder="\u8BF7\u8F93\u5165",zt.dataset.id=dt;const re=Object.keys(ke).length;return ke[re]=zt,`${zt.outerHTML}`};function je(Pt){return Pt=Pt.replace(/!\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(/\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(new RegExp("","gs"),""),Pt=Pt.replace(//g,""),Pt=Pt.replace(//g,""),Pt=Pt.replace(new RegExp(".*?<\\/video>","gs"),""),Pt=Pt.replace(new RegExp(".*?<\\/audio>","gs"),""),Pt=Pt.replace(new RegExp(".*?<\\/style>","gs"),""),Pt=Pt.replace(new RegExp(".*?<\\/script>","gs"),""),Pt}const $e=Pt=>Pt.replace(/([\s\S]+?)<\/style>/gim,function(dt,gt){let zt=gt.replace(/(\n|\r)/g,"").split("}"),re=[];return zt.map(Zt=>{Zt!=""&&re.push(`.${rn.current} ${Zt}`)}),``}),me=(0,Rt.useMemo)(()=>{try{const zt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,re=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Zt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,ye=/\(\/attachments\/download\//g;ae=ae.replace(ye,"("+Wt.Z.API_SERVER+"/attachments/download/").replace(zt,"("+Wt.Z.API_SERVER+"/api/attachments/").replace(re,'"'+Wt.Z.API_SERVER+"/api/attachments/").replace(Zt,'"'+Wt.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(zt){}if(Se){let zt=-1;return ae=ae.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(re,Zt,ye){var Ye;return++zt,Ie(re,zt,(Ye=Ue==null?void 0:Ue[zt])==null?void 0:Ye.value.replaceAll("<","<").replaceAll(">",">"))}),`
${$e(ae||"")}
`}let Pt=$e(ae);Pt=(0,Vt.ZP)(Pt);const dt=(0,Vt.ez)();ae.match(/\[TOC\]/)&&(Pt=Pt.replace("

[TOC]

",(0,Vt.Qv)()),(0,Vt.Iy)()),Pt=Pt.replace(/(__special_katext_id_\d+__)/g,(zt,re)=>{const{type:Zt,expression:ye}=dt[re];return(0,Ot.renderToString)(Ct(ye)||"",{displayMode:Zt==="block",throwOnError:!1,output:"html"})}),Pt=Pt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Vt.AL)();const gt=document.createElement("div");if(gt.innerHTML=Pt,$t)return gt.innerText;if(we){const zt=we.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return he(gt,zt),gt.innerHTML}return setTimeout(()=>Et(),500),gt.innerHTML},[ae,we]);(0,Rt.useEffect)(()=>{_t.current&&_t.current.querySelectorAll(["input","textarea"]).forEach(dt=>{dt.oninput=le,dt.onblur=Ee,dt.onfocus=ce})},[en]),(0,Rt.useEffect)(()=>{var Pt,dt,gt,zt,re;if(Ue!=null&&Ue.length)try{const Zt=_t.current.querySelectorAll(".edu-program-fill-score"),ye=_t.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ye,sn]of ye.entries())sn.value=((Pt=Ue==null?void 0:Ue[Ye])==null?void 0:Pt.value)||"",((dt=Ue==null?void 0:Ue[Ye])==null?void 0:dt.type)==="warning"?sn.className="program-fill-warning":((gt=Ue==null?void 0:Ue[Ye])==null?void 0:gt.type)==="success"?sn.className="program-fill-success":sn.className="";for(const[Ye,sn]of Zt.entries())sn.innerHTML=(zt=Ue==null?void 0:Ue[Ye])!=null&&zt.score?`${(re=Ue==null?void 0:Ue[Ye])==null?void 0:re.score}\u5206`:"";We(Ue)}catch(Zt){console.log(Zt,"error")}},[Ue]);const le=Pt=>{en[Pt.target.dataset.id]=en[Pt.target.dataset.id]||{},en[Pt.target.dataset.id].value=Pt.target.value,We([...en]),de(en,Pt.target.dataset.id)},Ee=Pt=>{en[Pt.target.dataset.id]=en[Pt.target.dataset.id]||{},en[Pt.target.dataset.id].value=Pt.target.value,We([...en]),Jt(en,Pt.target.dataset.id)},ce=Pt=>{en[Pt.target.dataset.id]=en[Pt.target.dataset.id]||{},en[Pt.target.dataset.id].value=Pt.target.value,We([...en]),ee(en,Pt.target.dataset.id)};function he(Pt,dt){return Pt.childNodes.forEach(gt=>{var zt;if(gt.childNodes.length>0)he(gt,dt);else if(gt.nodeName!=="IMG")if(gt.innerHTML)gt.innerHTML=(zt=gt.innerHTML)==null?void 0:zt.replace(new RegExp(dt,"gi"),'$&');else{const re=document.createElement("span");re.innerHTML=gt.textContent.replace(new RegExp(dt,"gi"),'$&'),gt.replaceWith(re)}})}const _t=(0,Rt.useRef)();Vt.jb.WebkitLineClamp=Kt,Kt&&(ue=ut(ut({},ue),Vt.jb));function Mt(Pt){let dt=Pt.target;if(dt.tagName.toUpperCase()==="A"){let gt=dt.getAttribute("href");if(gt.indexOf("office")>-1)Pt.preventDefault(),se(gt),Oe("office");else if(gt.indexOf("application/pdf")>-1)Pt.preventDefault(),se(gt),Oe("pdf");else if(gt.indexOf("text/html")>-1)Pt.preventDefault(),se(gt),Oe("html");else if(gt.startsWith("#")){Pt.preventDefault();let zt=document.getElementById(gt.replace("#",""));zt&&zt.scrollIntoView(!0)}}}const Et=()=>{var Pt;const dt=(Pt=_t.current)==null?void 0:Pt.querySelectorAll("video");dt==null||dt.forEach(gt=>{if(gt.oncontextmenu=()=>!1,gt.src.indexOf(".m3u8")>-1&&!gt.canPlayType("application/vnd.apple.mpegurl")){if(Nt.ZP.isSupported()){var zt=new Nt.ZP;zt.loadSource(gt.src),zt.attachMedia(gt)}}})};(0,Rt.useEffect)(()=>{if(_t.current&&me&&me.match(mt)&&window.PR.prettyPrint(),_t.current)return _t.current.addEventListener("click",Mt),()=>{var Pt;(Pt=_t.current)==null||Pt.removeEventListener("click",Mt),(0,Vt.AL)(),(0,Vt.Iy)()}},[me,_t.current,Mt]),(0,Rt.useEffect)(()=>{var Pt;const dt=gt=>{gt.preventDefault(),gt.clipboardData.setData("text",window.getSelection().toString())};return(Pt=_t.current)==null||Pt.addEventListener("copy",dt),()=>{var gt;(gt=_t.current)==null||gt.removeEventListener("copy",dt)}},[_t.current]);const Ht=Pt=>//i.test(Pt||"");return Rt.createElement(Rt.Fragment,null,$t&&Rt.createElement("div",{ref:_t},me),!$t&&!Ht(me)&&Rt.createElement("div",{ref:_t,style:ut({},ue),className:`${Qt||""} ${pe?"disabled-fill":""} markdown-body ${rn.current}`,dangerouslySetInnerHTML:{__html:me}}),!$t&&Ht(me)&&Rt.createElement(It,{html:me}),Rt.createElement(At.Z,{close:!0,data:fe,type:fe!=null&&fe.length?De:"",style:ut({},oe),onClose:()=>se("")}))}},2307:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return mn}});var Rt=Gt(59301),yt=Gt(86766),Vt=Gt(30631),Yt=Gt(92310),Nt=Gt.n(Yt),Wt=Gt(5891),xt=Gt(57259),Ot=Gt(80962),Bt=Gt(29043),At=Gt(80665),bt=Gt(19149),Tt=Gt(21783),It=Gt(35788),vt=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],et=Rt.createContext(null),tt=0;function st(Me,Ge){var fn=Rt.useState(function(){return tt+=1,String(tt)}),In=(0,Bt.Z)(fn,1),Ke=In[0],cn=Rt.useContext(et),_e={data:Ge,canPreview:Me};return Rt.useEffect(function(){if(cn)return cn.register(Ke,_e)},[]),Rt.useEffect(function(){cn&&cn.register(Ke,_e)},[Me,Ge]),Ke}function rt(Me){return new Promise(function(Ge){var fn=document.createElement("img");fn.onerror=function(){return Ge(!1)},fn.onload=function(){return Ge(!0)},fn.src=Me})}function ut(Me){var Ge=Me.src,fn=Me.isCustomPlaceholder,In=Me.fallback,Ke=(0,Rt.useState)(fn?"loading":"normal"),cn=(0,Bt.Z)(Ke,2),_e=cn[0],on=cn[1],dn=(0,Rt.useRef)(!1),ln=_e==="error";(0,Rt.useEffect)(function(){rt(Ge).then(function(On){On||on("error")})},[Ge]),(0,Rt.useEffect)(function(){fn&&!dn.current?on("loading"):ln&&on("normal")},[Ge]);var xn=function(){on("normal")},yn=function(En){dn.current=!1,_e==="loading"&&En!=null&&En.complete&&(En.naturalWidth||En.naturalHeight)&&(dn.current=!0,xn())},Mn=ln&&In?{src:In}:{onLoad:xn,src:Ge};return[yn,Mn,_e]}var ct=Gt(86923),pt=Gt(8178),mt=Gt(85108),Ct=Gt(51395);function Dt(Me,Ge,fn,In){var Ke=Ge+fn,cn=(fn-In)/2;if(fn>In){if(Ge>0)return(0,Ot.Z)({},Me,cn);if(Ge<0&&KeIn)return(0,Ot.Z)({},Me,Ge<0?cn:-cn);return{}}function Ut(Me,Ge,fn,In){var Ke=(0,Tt.g1)(),cn=Ke.width,_e=Ke.height,on=null;return Me<=cn&&Ge<=_e?on={x:0,y:0}:(Me>cn||Ge>_e)&&(on=(0,xt.Z)((0,xt.Z)({},Dt("x",fn,Me,cn)),Dt("y",In,Ge,_e))),on}var Ft=Gt(51346),Qt=Gt(23073),$t={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Kt(Me,Ge,fn,In){var Ke=(0,Rt.useRef)(null),cn=(0,Rt.useRef)([]),_e=(0,Rt.useState)($t),on=(0,Bt.Z)(_e,2),dn=on[0],ln=on[1],xn=function(En){ln($t),In&&!(0,Ft.Z)($t,dn)&&In({transform:$t,action:En})},yn=function(En,jn){Ke.current===null&&(cn.current=[],Ke.current=(0,Qt.Z)(function(){ln(function(ei){var pi=ei;return cn.current.forEach(function(ii){pi=(0,xt.Z)((0,xt.Z)({},pi),ii)}),Ke.current=null,In==null||In({transform:pi,action:jn}),pi})})),cn.current.push((0,xt.Z)((0,xt.Z)({},dn),En))},Mn=function(En,jn,ei,pi){var ii=Me.current,qe=ii.width,Xn=ii.height,ti=ii.offsetWidth,Qn=ii.offsetHeight,Li=ii.offsetLeft,fi=ii.offsetTop,ki=En,gi=dn.scale*En;gi>fn?(ki=fn/dn.scale,gi=fn):gi1,Ar=xe&&ii>=1,zi=Kt(pr,Li,ki,wr),ir=zi.transform,Oi=zi.resetTransform,Ci=zi.updateTransform,tr=zi.dispatchZoomChange,yr=(0,Rt.useState)(!0),_i=(0,Bt.Z)(yr,2),Mr=_i[0],xi=_i[1],di=ir.rotate,Ai=ir.scale,zn=ir.x,hr=ir.y,Tr=Nt()((0,Ot.Z)({},"".concat(fn,"-moving"),Zi));(0,Rt.useEffect)(function(){Mr||xi(!0)},[Mr]);var Qr=function(){Oi("close")},kr=function(){tr(Ne+ti,"zoomIn")},Xr=function(){tr(Ne/(Ne+ti),"zoomOut")},io=function(){Ci({rotate:di+90},"rotateRight")},Wo=function(){Ci({rotate:di-90},"rotateLeft")},vo=function(){Ci({flipX:!ir.flipX},"flipX")},Uo=function(){Ci({flipY:!ir.flipY},"flipY")},To=function(Ji){Ji==null||Ji.preventDefault(),Ji==null||Ji.stopPropagation(),ei>0&&(xi(!1),Oi("prev"),Hi==null||Hi(ei-1,ei))},Sn=function(Ji){Ji==null||Ji.preventDefault(),Ji==null||Ji.stopPropagation(),ei0&&(cr=Ne/cr),tr(cr,"wheel",Ji.clientX,Ji.clientY)}},Wr=function(Ji){!ln||!Ri||(Ji.keyCode===mt.Z.LEFT?To():Ji.keyCode===mt.Z.RIGHT&&Sn())},so=function(Ji){ln&&(Ai!==1?Ci({x:0,y:0,scale:1},"doubleClick"):tr(Ne+ti,"doubleClick",Ji.clientX,Ji.clientY))};(0,Rt.useEffect)(function(){var qi,Ji,ao,$i;if(on){ao=(0,pt.Z)(window,"mouseup",yo,!1),$i=(0,pt.Z)(window,"mousemove",_s,!1);try{window.top!==window.self&&(qi=(0,pt.Z)(window.top,"mouseup",yo,!1),Ji=(0,pt.Z)(window.top,"mousemove",_s,!1))}catch(cr){(0,Ct.Kp)(!1,"[rc-image] ".concat(cr))}}return function(){var cr,fr,hi,no;(cr=ao)===null||cr===void 0||cr.remove(),(fr=$i)===null||fr===void 0||fr.remove(),(hi=qi)===null||hi===void 0||hi.remove(),(no=Ji)===null||no===void 0||no.remove()}},[ln,Zi,zn,hr,di,on]),(0,Rt.useEffect)(function(){var qi=(0,pt.Z)(window,"keydown",Wr,!1);return function(){qi.remove()}},[ln,Ri,ei]);var zr=Rt.createElement(Jt,(0,Wt.Z)({},Ln,{width:Ge.width,height:Ge.height,imgRef:pr,className:"".concat(fn,"-img"),alt:Ke,style:{transform:"translate3d(".concat(ir.x,"px, ").concat(ir.y,"px, 0) scale3d(").concat(ir.flipX?"-":"").concat(Ai,", ").concat(ir.flipY?"-":"").concat(Ai,", 1) rotate(").concat(di,"deg)"),transitionDuration:!Mr&&"0s"},fallback:cn,src:In,onWheel:mr,onMouseDown:da,onDoubleClick:so}));return Rt.createElement(Rt.Fragment,null,Rt.createElement(ct.Z,(0,Wt.Z)({transitionName:oi,maskTransitionName:Cn,closable:!1,keyboard:!0,prefixCls:fn,onClose:dn,visible:ln,wrapClassName:Tr,rootClassName:Mn,getContainer:En},Or,{afterClose:Qr}),Rt.createElement("div",{className:"".concat(fn,"-img-wrapper")},nr?nr(zr,(0,xt.Z)({transform:ir},xe?{current:ei}:{})):zr)),Rt.createElement(Se,{visible:ln,transform:ir,maskTransitionName:Cn,closeIcon:On,getContainer:En,prefixCls:fn,rootClassName:Mn,icons:yn,countRender:qe,showSwitch:Ri,showProgress:Ar,current:ei,count:ii,scale:Ai,minScale:Li,maxScale:ki,toolbarRender:Bi,onSwitchLeft:To,onSwitchRight:Sn,onZoomIn:kr,onZoomOut:Xr,onRotateRight:io,onRotateLeft:Wo,onFlipX:vo,onFlipY:Uo,onClose:dn}))},ae=ee,fe=Gt(26390);function se(Me){var Ge=Rt.useState({}),fn=(0,Bt.Z)(Ge,2),In=fn[0],Ke=fn[1],cn=Rt.useCallback(function(on,dn){return Ke(function(ln){return(0,xt.Z)((0,xt.Z)({},ln),{},(0,Ot.Z)({},on,dn))}),function(){Ke(function(ln){var xn=(0,xt.Z)({},ln);return delete xn[on],xn})}},[]),_e=Rt.useMemo(function(){return Me?Me.map(function(on){if(typeof on=="string")return{data:{src:on}};var dn={};return Object.keys(on).forEach(function(ln){["src"].concat((0,fe.Z)(vt)).includes(ln)&&(dn[ln]=on[ln])}),{data:dn}}):Object.keys(In).reduce(function(on,dn){var ln=In[dn],xn=ln.canPreview,yn=ln.data;return xn&&on.push({data:yn,id:dn}),on},[])},[Me,In]);return[_e,cn]}var De=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Oe=["src"],en=function(Ge){var fn,In=Ge.previewPrefixCls,Ke=In===void 0?"rc-image-preview":In,cn=Ge.children,_e=Ge.icons,on=_e===void 0?{}:_e,dn=Ge.items,ln=Ge.preview,xn=Ge.fallback,yn=(0,At.Z)(ln)==="object"?ln:{},Mn=yn.visible,On=yn.onVisibleChange,En=yn.getContainer,jn=yn.current,ei=yn.movable,pi=yn.minScale,ii=yn.maxScale,qe=yn.countRender,Xn=yn.closeIcon,ti=yn.onChange,Qn=yn.onTransform,Li=yn.toolbarRender,fi=yn.imageRender,ki=(0,bt.Z)(yn,De),gi=se(dn),oi=(0,Bt.Z)(gi,2),Fi=oi[0],Cn=oi[1],nr=(0,It.Z)(0,{value:jn}),Ln=(0,Bt.Z)(nr,2),Bi=Ln[0],wr=Ln[1],Hi=(0,Rt.useState)(!1),Or=(0,Bt.Z)(Hi,2),pr=Or[0],Si=Or[1],vi=((fn=Fi[Bi])===null||fn===void 0?void 0:fn.data)||{},Xi=vi.src,Zi=(0,bt.Z)(vi,Oe),Jn=(0,It.Z)(!!Mn,{value:Mn,onChange:function(di,Ai){On==null||On(di,Ai,Bi)}}),xe=(0,Bt.Z)(Jn,2),Ri=xe[0],Ar=xe[1],zi=(0,Rt.useState)(null),ir=(0,Bt.Z)(zi,2),Oi=ir[0],Ci=ir[1],tr=Rt.useCallback(function(xi,di,Ai){var zn=Fi.findIndex(function(hr){return hr.id===xi});Ar(!0),Ci({x:di,y:Ai}),wr(zn<0?0:zn),Si(!0)},[Fi]);Rt.useEffect(function(){Ri?pr||wr(0):Si(!1)},[Ri]);var yr=function(di,Ai){wr(di),ti==null||ti(di,Ai)},_i=function(){Ar(!1),Ci(null)},Mr=Rt.useMemo(function(){return{register:Cn,onPreview:tr}},[Cn,tr]);return Rt.createElement(et.Provider,{value:Mr},cn,Rt.createElement(ae,(0,Wt.Z)({"aria-hidden":!Ri,movable:ei,visible:Ri,prefixCls:Ke,closeIcon:Xn,onClose:_i,mousePosition:Oi,imgCommonProps:Zi,src:Xi,fallback:xn,icons:on,minScale:pi,maxScale:ii,getContainer:En,current:Bi,count:Fi.length,countRender:qe,onTransform:Qn,toolbarRender:Li,imageRender:fi,onChange:yr},ki)))},We=en,rn=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ke=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Ie=function(Ge){var fn=Ge.src,In=Ge.alt,Ke=Ge.onPreviewClose,cn=Ge.prefixCls,_e=cn===void 0?"rc-image":cn,on=Ge.previewPrefixCls,dn=on===void 0?"".concat(_e,"-preview"):on,ln=Ge.placeholder,xn=Ge.fallback,yn=Ge.width,Mn=Ge.height,On=Ge.style,En=Ge.preview,jn=En===void 0?!0:En,ei=Ge.className,pi=Ge.onClick,ii=Ge.onError,qe=Ge.wrapperClassName,Xn=Ge.wrapperStyle,ti=Ge.rootClassName,Qn=(0,bt.Z)(Ge,rn),Li=ln&&ln!==!0,fi=(0,At.Z)(jn)==="object"?jn:{},ki=fi.src,gi=fi.visible,oi=gi===void 0?void 0:gi,Fi=fi.onVisibleChange,Cn=Fi===void 0?Ke:Fi,nr=fi.getContainer,Ln=nr===void 0?void 0:nr,Bi=fi.mask,wr=fi.maskClassName,Hi=fi.movable,Or=fi.icons,pr=fi.scaleStep,Si=fi.minScale,vi=fi.maxScale,Xi=fi.imageRender,Zi=fi.toolbarRender,Jn=(0,bt.Z)(fi,ke),xe=ki!=null?ki:fn,Ri=(0,It.Z)(!!oi,{value:oi,onChange:Cn}),Ar=(0,Bt.Z)(Ri,2),zi=Ar[0],ir=Ar[1],Oi=ut({src:fn,isCustomPlaceholder:Li,fallback:xn}),Ci=(0,Bt.Z)(Oi,3),tr=Ci[0],yr=Ci[1],_i=Ci[2],Mr=(0,Rt.useState)(null),xi=(0,Bt.Z)(Mr,2),di=xi[0],Ai=xi[1],zn=(0,Rt.useContext)(et),hr=!!jn,Tr=function(){ir(!1),Ai(null)},Qr=Nt()(_e,qe,ti,(0,Ot.Z)({},"".concat(_e,"-error"),_i==="error")),kr=(0,Rt.useMemo)(function(){var vo={};return vt.forEach(function(Uo){Ge[Uo]!==void 0&&(vo[Uo]=Ge[Uo])}),vo},vt.map(function(vo){return Ge[vo]})),Xr=(0,Rt.useMemo)(function(){return(0,xt.Z)((0,xt.Z)({},kr),{},{src:xe})},[xe,kr]),io=st(hr,Xr),Wo=function(Uo){var To=(0,Tt.os)(Uo.target),Sn=To.left,yo=To.top;zn?zn.onPreview(io,Sn,yo):(Ai({x:Sn,y:yo}),ir(!0)),pi==null||pi(Uo)};return Rt.createElement(Rt.Fragment,null,Rt.createElement("div",(0,Wt.Z)({},Qn,{className:Qr,onClick:hr?Wo:pi,style:(0,xt.Z)({width:yn,height:Mn},Xn)}),Rt.createElement("img",(0,Wt.Z)({},kr,{className:Nt()("".concat(_e,"-img"),(0,Ot.Z)({},"".concat(_e,"-img-placeholder"),ln===!0),ei),style:(0,xt.Z)({height:Mn},On),ref:tr},yr,{width:yn,height:Mn,onError:ii})),_i==="loading"&&Rt.createElement("div",{"aria-hidden":"true",className:"".concat(_e,"-placeholder")},ln),Bi&&hr&&Rt.createElement("div",{className:Nt()("".concat(_e,"-mask"),wr),style:{display:(On==null?void 0:On.display)==="none"?"none":void 0}},Bi)),!zn&&hr&&Rt.createElement(ae,(0,Wt.Z)({"aria-hidden":!zi,visible:zi,prefixCls:dn,onClose:Tr,mousePosition:di,src:xe,alt:In,fallback:xn,getContainer:Ln,icons:Or,movable:Hi,scaleStep:pr,minScale:Si,maxScale:vi,rootClassName:ti,imageRender:Xi,imgCommonProps:kr,toolbarRender:Zi},Jn)))};Ie.PreviewGroup=We,Ie.displayName="Image";var je=Ie,$e=je,me=Gt(62892),le=Gt(36355),Ee=Gt(31724),ce=Gt(72119),he=Gt(16537),_t=Gt(53878),Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Et=Mt,Ht=Gt(88853),Pt=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:Et}))},dt=Rt.forwardRef(Pt),gt=dt,zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},re=zt,Zt=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:re}))},ye=Rt.forwardRef(Zt),Ye=ye,sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Le=sn,Re=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:Le}))},hn=Rt.forwardRef(Re),wn=hn,kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Rn=kn,Yn=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:Rn}))},Kn=Rt.forwardRef(Yn),li=Kn,mi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},yi=mi,Pi=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:yi}))},Mi=Rt.forwardRef(Pi),Gi=Mi,bi=Gt(64993),Ki=Gt(73819),ui=Gt(17313),te=Gt(29878),Yi=Gt(1950),Ti=Gt(83116),or=Gt(37613);const Sr=Me=>({position:Me||"absolute",inset:0}),Er=Me=>{const{iconCls:Ge,motionDurationSlow:fn,paddingXXS:In,marginXXS:Ke,prefixCls:cn,colorTextLightSolid:_e}=Me;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:_e,background:new bi.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${fn}`,[`.${cn}-mask-info`]:Object.assign(Object.assign({},ui.vS),{padding:`0 ${In}px`,[Ge]:{marginInlineEnd:Ke,svg:{verticalAlign:"baseline"}}})}},vr=Me=>{const{previewCls:Ge,modalMaskBg:fn,paddingSM:In,marginXL:Ke,margin:cn,paddingLG:_e,previewOperationColorDisabled:on,previewOperationHoverColor:dn,motionDurationSlow:ln,iconCls:xn,colorTextLightSolid:yn}=Me,Mn=new bi.C(fn).setAlpha(.1),On=Mn.clone().setAlpha(.2);return{[`${Ge}-footer`]:{position:"fixed",bottom:Ke,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Me.previewOperationColor},[`${Ge}-progress`]:{marginBottom:cn},[`${Ge}-close`]:{position:"fixed",top:Ke,right:{_skip_check_:!0,value:Ke},display:"flex",color:yn,backgroundColor:Mn.toRgbString(),borderRadius:"50%",padding:In,outline:0,border:0,cursor:"pointer",transition:`all ${ln}`,"&:hover":{backgroundColor:On.toRgbString()},[`& > ${xn}`]:{fontSize:Me.previewOperationSize}},[`${Ge}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${_e}px`,backgroundColor:Mn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:In,padding:In,cursor:"pointer",transition:`all ${ln}`,userSelect:"none",[`&:not(${Ge}-operations-operation-disabled):hover > ${xn}`]:{color:dn},"&-disabled":{color:on,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${xn}`]:{fontSize:Me.previewOperationSize}}}}},qn=Me=>{const{modalMaskBg:Ge,iconCls:fn,previewOperationColorDisabled:In,previewCls:Ke,zIndexPopup:cn,motionDurationSlow:_e}=Me,on=new bi.C(Ge).setAlpha(.1),dn=on.clone().setAlpha(.2);return{[`${Ke}-switch-left, ${Ke}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:cn+1,display:"flex",alignItems:"center",justifyContent:"center",width:Me.imagePreviewSwitchSize,height:Me.imagePreviewSwitchSize,marginTop:-Me.imagePreviewSwitchSize/2,color:Me.previewOperationColor,background:on.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${_e}`,userSelect:"none","&:hover":{background:dn.toRgbString()},"&-disabled":{"&, &:hover":{color:In,background:"transparent",cursor:"not-allowed",[`> ${fn}`]:{cursor:"not-allowed"}}},[`> ${fn}`]:{fontSize:Me.previewOperationSize}},[`${Ke}-switch-left`]:{insetInlineStart:Me.marginSM},[`${Ke}-switch-right`]:{insetInlineEnd:Me.marginSM}}},tn=Me=>{const{motionEaseOut:Ge,previewCls:fn,motionDurationSlow:In,componentCls:Ke}=Me;return[{[`${Ke}-preview-root`]:{[fn]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${fn}-body`]:Object.assign(Object.assign({},Sr()),{overflow:"hidden"}),[`${fn}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${In} ${Ge} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Sr()),{transition:`transform ${In} ${Ge} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${fn}-moving`]:{[`${fn}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ke}-preview-root`]:{[`${fn}-wrap`]:{zIndex:Me.zIndexPopup}}},{[`${Ke}-preview-operations-wrapper`]:{position:"fixed",zIndex:Me.zIndexPopup+1},"&":[vr(Me),qn(Me)]}]},nn=Me=>{const{componentCls:Ge}=Me;return{[Ge]:{position:"relative",display:"inline-block",[`${Ge}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Ge}-img-placeholder`]:{backgroundColor:Me.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Ge}-mask`]:Object.assign({},Er(Me)),[`${Ge}-mask:hover`]:{opacity:1},[`${Ge}-placeholder`]:Object.assign({},Sr())}}},Qe=Me=>{const{previewCls:Ge}=Me;return{[`${Ge}-root`]:(0,te._y)(Me,"zoom"),"&":(0,Yi.J$)(Me,!0)}};var Fe=(0,Ti.Z)("Image",Me=>{const Ge=`${Me.componentCls}-preview`,fn=(0,or.TS)(Me,{previewCls:Ge,modalMaskBg:new bi.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Me.controlHeightLG});return[nn(fn),tn(fn),(0,Ki.QA)((0,or.TS)(fn,{componentCls:Ge})),Qe(fn)]},Me=>({zIndexPopup:Me.zIndexPopupBase+80,previewOperationColor:new bi.C(Me.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new bi.C(Me.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new bi.C(Me.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Me.fontSizeIcon*1.5})),vn=function(Me,Ge){var fn={};for(var In in Me)Object.prototype.hasOwnProperty.call(Me,In)&&Ge.indexOf(In)<0&&(fn[In]=Me[In]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,In=Object.getOwnPropertySymbols(Me);Ke{var{previewPrefixCls:Ge,preview:fn}=Me,In=vn(Me,["previewPrefixCls","preview"]);const{getPrefixCls:Ke}=Rt.useContext(le.E_),cn=Ke("image",Ge),_e=`${cn}-preview`,on=Ke(),[dn,ln]=Fe(cn),xn=Rt.useMemo(()=>{var yn;if(fn===!1)return fn;const Mn=typeof fn=="object"?fn:{},On=Nt()(ln,(yn=Mn.rootClassName)!==null&&yn!==void 0?yn:"");return Object.assign(Object.assign({},Mn),{transitionName:(0,me.m)(on,"zoom",Mn.transitionName),maskTransitionName:(0,me.m)(on,"fade",Mn.maskTransitionName),rootClassName:On})},[fn]);return dn(Rt.createElement($e.PreviewGroup,Object.assign({preview:xn,previewPrefixCls:_e,icons:bn},In)))},gn=function(Me,Ge){var fn={};for(var In in Me)Object.prototype.hasOwnProperty.call(Me,In)&&Ge.indexOf(In)<0&&(fn[In]=Me[In]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,In=Object.getOwnPropertySymbols(Me);Ke{const{prefixCls:Ge,preview:fn,className:In,rootClassName:Ke,style:cn}=Me,_e=gn(Me,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:on,locale:dn=Ee.Z,getPopupContainer:ln,image:xn}=Rt.useContext(le.E_),yn=on("image",Ge),Mn=on(),On=dn.Image||Ee.Z.Image,[En,jn]=Fe(yn),ei=Nt()(Ke,jn),pi=Nt()(In,jn,xn==null?void 0:xn.className),ii=Rt.useMemo(()=>{if(fn===!1)return fn;const Xn=typeof fn=="object"?fn:{},{getContainer:ti}=Xn,Qn=gn(Xn,["getContainer"]);return Object.assign(Object.assign({mask:Rt.createElement("div",{className:`${yn}-mask-info`},Rt.createElement(Vt.Z,null),On==null?void 0:On.preview),icons:bn},Qn),{getContainer:ti||ln,transitionName:(0,me.m)(Mn,"zoom",Xn.transitionName),maskTransitionName:(0,me.m)(Mn,"fade",Xn.maskTransitionName)})},[fn,On]),qe=Object.assign(Object.assign({},xn==null?void 0:xn.style),cn);return En(Rt.createElement($e,Object.assign({prefixCls:yn,preview:ii,rootClassName:ei,className:pi,style:qe},_e)))};Pn.PreviewGroup=Ae;var Un=Pn,mn=()=>{const[Me,Ge]=(0,Rt.useState)(""),[fn,In]=(0,Rt.useState)(0);let[Ke,cn]=(0,Rt.useState)(),[_e,on]=(0,Rt.useState)();const[dn,ln]=(0,Rt.useState)(!1),xn=(0,Rt.useRef)("");(0,Rt.useEffect)(()=>yt.Z.subscribe("preview-image",ti=>{Ge(ti),console.log(ii.current),document.body.style.overflow="hidden"}),[]),(0,Rt.useEffect)(()=>(document.addEventListener("keydown",yn),()=>{document.removeEventListener("keydown",yn)}),[]),(0,Rt.useEffect)(()=>{xn.current=Me},[Me]);function yn(Xn){Xn.keyCode==27&&xn.current&&Mn()}function Mn(){document.body.style.overflow="auto",cn(void 0),on(void 0),In(0),Ge("")}function On(){In(fn+90)}function En(){Ke=ii.current.width*1.1,_e=ii.current.height*1.1,on(_e),cn(Ke)}function jn(){Ke=ii.current.width/1.1,_e=ii.current.height/1.1,on(_e),cn(Ke)}const ei=(0,Rt.useRef)(),pi=(0,Rt.useRef)(),ii=(0,Rt.useRef)(),qe=Xn=>{(Xn.nativeEvent.target===ei.current||Xn.nativeEvent.target===pi.current)&&Mn()};return Rt.createElement(Rt.Fragment,null,Me?Rt.createElement("div",null,Rt.createElement("div",{className:"preview-wrp-group",ref:pi},Rt.createElement(Un,{className:"image-preview",src:Me,style:{display:"none"},preview:{visible:!0,src:Me,movable:!1,onVisibleChange:Xn=>{Ge("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},36866:function(Nn,An,Gt){"use strict";Gt.d(An,{h:function(){return pt},Z:function(){return ct}});var Rt=Gt(59301),yt=Gt(57809),Vt=Gt(78241),Yt=Gt(3113),Nt=Gt(89780),Wt=Gt.n(Nt),xt=Gt(79906),Ot=Object.defineProperty,Bt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,vt=(mt,Ct,Dt)=>Ct in mt?Ot(mt,Ct,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):mt[Ct]=Dt,et=(mt,Ct)=>{for(var Dt in Ct||(Ct={}))Tt.call(Ct,Dt)&&vt(mt,Dt,Ct[Dt]);if(bt)for(var Dt of bt(Ct))It.call(Ct,Dt)&&vt(mt,Dt,Ct[Dt]);return mt},tt=(mt,Ct)=>Bt(mt,At(Ct));const st=yt.default.Option,rt={labelCol:{span:4},wrapperCol:{span:20}},ut={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var ct=({callback:mt,onCancel:Ct})=>{const[Dt,Ut]=(0,Rt.useState)("python");function Ft($t){Ut(ut[$t][1])}function Qt($t){mt($t)}return Rt.createElement(Vt.default,tt(et({},rt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Qt,style:{width:500}}),Rt.createElement(Vt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Rt.createElement(yt.default,{getPopupContainer:$t=>$t.parentNode,onChange:Ft},Object.keys(ut).map($t=>Rt.createElement(st,{key:$t,value:$t},ut[$t][0])))),Rt.createElement(Vt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Rt.createElement(pt,{mode:Dt})),Rt.createElement("div",{className:"flex-container flex-end"},Rt.createElement(Yt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Rt.createElement(Yt.ZP,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))};function pt({value:mt,onChange:Ct,mode:Dt,options:Ut={}}){const Ft=(0,Rt.useRef)(),[Qt,$t]=(0,Rt.useState)();return(0,Rt.useEffect)(()=>{if(Qt){let Kt=function(ue){const oe=ue.getValue();Ct&&Ct(oe)};return Qt.on("change",Kt),()=>{Qt.off("change",Kt)}}},[Qt,Ct]),(0,Rt.useEffect)(()=>{Qt&&Qt.setOption("mode",Dt)},[Qt,Dt]),(0,Rt.useEffect)(()=>{Qt&&(mt!==Qt.getValue()||mt==="")&&setTimeout(()=>{Qt.setValue(mt||"")},300)},[Qt,mt]),(0,Rt.useEffect)(()=>{if(Ft.current&&!Qt){const Kt=Wt().fromTextArea(Ft.current,et({mode:Dt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ut));$t(Kt)}},[Ft.current,Qt]),Rt.createElement("div",{className:"my-codemirror-container"},Rt.createElement("textarea",{ref:Ft}))}},23469:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return qn}});var Rt=Gt(59301),yt=Gt(89780),Vt=Gt.n(yt),Yt=Gt(76374),Nt=Gt(79906),Wt=Gt(6313),xt=Gt(25717),Ot=Gt(99498),Bt=Gt(25419),At=Gt(67549),bt=Gt(25711),Tt=({value:tn="",className:nn,showTextOnly:Qe,showLines:Fe,style:vn={}})=>{const bn=(0,Rt.useMemo)(()=>"",[tn]);return Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{dangerouslySetInnerHTML:{__html:bn}}))},It=Gt(59301),vt=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ct=(tn,nn,Qe)=>nn in tn?vt(tn,nn,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):tn[nn]=Qe,pt=(tn,nn)=>{for(var Qe in nn||(nn={}))rt.call(nn,Qe)&&ct(tn,Qe,nn[Qe]);if(st)for(var Qe of st(nn))ut.call(nn,Qe)&&ct(tn,Qe,nn[Qe]);return tn},mt=(tn,nn)=>et(tn,tt(nn));let Ct=[{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 Dt({onActionCallback:tn,title:nn,icon:Qe,actionName:Fe,className:vn="",children:bn}){function Ze(){tn(Fe)}return It.createElement("a",{title:nn,className:vn,onClick:Ze},It.createElement("i",{className:`${Qe}`}),bn)}var Ut=({watch:tn,showNullButton:nn,showNullProgramButton:Qe,onActionCallback:Fe,fullScreen:vn,insertTemp:bn,hidetoolBar:Ze,extraUse:Ae})=>{const gn=[...Ct,{title:`${tn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${tn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return It.createElement("ul",{className:"markdown-toolbar-container"},!Ze&&gn.map((Pn,Un)=>It.createElement("li",{key:Un},Pn.actionName?It.createElement(Dt,mt(pt({},Pn),{onActionCallback:Fe})):It.createElement("span",{className:"v-line"}))),nn?It.createElement("li",null,It.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Fe},It.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Qe?It.createElement(It.Fragment,null,It.createElement("li",null,It.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Fe},It.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),It.createElement("li",null,It.createElement(Dt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Fe},It.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,bn&&It.createElement("li",null,It.createElement(Dt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${bn}`,onActionCallback:Fe},It.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ae&&It.createElement("li",null,Ae),It.createElement("li",{className:"btn-full-screen"},It.createElement(Dt,{icon:`${vn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:vn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Fe})))},Ft=Gt(50474),Qt=Gt(78241),$t=Gt(92832),Kt=Gt(3113),ue=Object.defineProperty,oe=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Ue=(tn,nn,Qe)=>nn in tn?ue(tn,nn,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):tn[nn]=Qe,de=(tn,nn)=>{for(var Qe in nn||(nn={}))Ne.call(nn,Qe)&&Ue(tn,Qe,nn[Qe]);if(Se)for(var Qe of Se(nn))pe.call(nn,Qe)&&Ue(tn,Qe,nn[Qe]);return tn},Jt=(tn,nn)=>oe(tn,we(nn));const ee={labelCol:{span:4},wrapperCol:{span:20}};var ae=({callback:tn,onCancel:nn})=>{function Qe(Fe){tn(Fe)}return Rt.createElement(Qt.default,Jt(de({},ee),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Qe,style:{width:500}}),Rt.createElement(Qt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Rt.createElement($t.default,null)),Rt.createElement(Qt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Rt.createElement($t.default,null)),Rt.createElement("div",{className:"flex-container flex-end"},Rt.createElement(Kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Rt.createElement(Kt.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},fe=Gt(36866),se=Gt(56701),De=Gt(43418),Oe=Gt(95237),en=Gt(65983),We=Gt(59301),rn=({callback:tn,onCancel:nn})=>{const Qe=document.createElement("canvas"),Fe=Qe.getContext("2d");Qe.width=1e3,Qe.height=800,Fe.fillStyle="#ffffff",Fe.fillRect(0,0,Qe.width,Qe.height);const vn=Qe.toDataURL("image/png");return We.createElement(De.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},We.createElement(Oe.Z,{style:{height:"100vh"}},We.createElement(en.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:vn,visible:!0,title:String(Date.now())},onOk:bn=>{tn({src:bn.url})},onClose:nn})))},ke=Gt(12378);function Ie(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ie,go.CommandHandler),Ie.prototype.canAlignSelection=function(){var tn=this.diagram;return!(tn===null||tn.isReadOnly||tn.isModelReadOnly||tn.selection.count<2)},Ie.prototype.alignLeft=function(){var tn=this.diagram;tn.startTransaction("aligning left");var nn=1/0;tn.selection.each(function(Qe){Qe instanceof go.Link||(nn=Math.min(Qe.position.x,nn))}),tn.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(nn,Qe.position.y))}),tn.commitTransaction("aligning left")},Ie.prototype.alignRight=function(){var tn=this.diagram;tn.startTransaction("aligning right");var nn=-1/0;tn.selection.each(function(Qe){if(!(Qe instanceof go.Link)){var Fe=Qe.actualBounds.x+Qe.actualBounds.width;nn=Math.max(Fe,nn)}}),tn.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(nn-Qe.actualBounds.width,Qe.position.y))}),tn.commitTransaction("aligning right")},Ie.prototype.alignTop=function(){var tn=this.diagram;tn.startTransaction("alignTop");var nn=1/0;tn.selection.each(function(Qe){Qe instanceof go.Link||(nn=Math.min(Qe.position.y,nn))}),tn.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Qe.position.x,nn))}),tn.commitTransaction("alignTop")},Ie.prototype.alignBottom=function(){var tn=this.diagram;tn.startTransaction("aligning bottom");var nn=-1/0;tn.selection.each(function(Qe){if(!(Qe instanceof go.Link)){var Fe=Qe.actualBounds.y+Qe.actualBounds.height;nn=Math.max(Fe,nn)}}),tn.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Qe.actualBounds.x,nn-Qe.actualBounds.height))}),tn.commitTransaction("aligning bottom")},Ie.prototype.alignCenterX=function(){var tn=this.diagram,nn=tn.selection.first();if(nn){tn.startTransaction("aligning Center X");var Qe=nn.actualBounds.x+nn.actualBounds.width/2;tn.selection.each(function(Fe){Fe instanceof go.Link||Fe.move(new go.Point(Qe-Fe.actualBounds.width/2,Fe.actualBounds.y))}),tn.commitTransaction("aligning Center X")}},Ie.prototype.alignCenterY=function(){var tn=this.diagram,nn=tn.selection.first();if(nn){tn.startTransaction("aligning Center Y");var Qe=nn.actualBounds.y+nn.actualBounds.height/2;tn.selection.each(function(Fe){Fe instanceof go.Link||Fe.move(new go.Point(Fe.actualBounds.x,Qe-Fe.actualBounds.height/2))}),tn.commitTransaction("aligning Center Y")}},Ie.prototype.alignColumn=function(tn){var nn=this.diagram;nn.startTransaction("align Column"),tn===void 0&&(tn=0),tn=parseFloat(tn);var Qe=new Array;nn.selection.each(function(Ae){Ae instanceof go.Link||Qe.push(Ae)});for(var Fe=0;Fe0){for(var Ae=bn.elt(Ze-1);Ae!==null&&Ae.isTreeExpanded&&!Ae.isTreeLeaf;){var gn=this._sortTreeChildrenByY(Ae);Ae=gn.last()}Ae!==null&&tn.select(Ae)}else tn.select(vn)}}else if(Qe.key==="Down")if(nn.isTreeExpanded&&!nn.isTreeLeaf){var Fe=this._sortTreeChildrenByY(nn).first();Fe!==null&&tn.select(Fe)}else for(;nn!==null;){var vn=nn.findTreeParentNode();if(vn===null)break;var bn=this._sortTreeChildrenByY(vn),Ze=bn.indexOf(nn);if(Zebn.y?1:vn.xbn.x?1:0}),nn},Ie.prototype.copyToClipboard=function(tn){go.CommandHandler.prototype.copyToClipboard.call(this,tn),this._lastPasteOffset.set(this.pasteOffset)},Ie.prototype.pasteFromClipboard=function(){var tn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(tn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),tn},Object.defineProperty(Ie.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(tn){if(tn!=="move"&&tn!=="select"&&tn!=="scroll"&&tn!=="tree"&&tn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+tn);this._arrowKeyBehavior=tn}}),Object.defineProperty(Ie.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(tn){if(!(tn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+tn);this._pasteOffset.set(tn)}});var je=Ie,$e=Gt(37404),me=Gt(43604),le=Gt(70635),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ce=Gt(59301),he=(tn,nn,Qe)=>new Promise((Fe,vn)=>{var bn=gn=>{try{Ae(Qe.next(gn))}catch(Pn){vn(Pn)}},Ze=gn=>{try{Ae(Qe.throw(gn))}catch(Pn){vn(Pn)}},Ae=gn=>gn.done?Fe(gn.value):Promise.resolve(gn.value).then(bn,Ze);Ae((Qe=Qe.apply(tn,nn)).next())});function _t({onCancel:tn,callback:nn}){let Qe=(0,Rt.useRef)(),Fe=(0,Rt.useRef)(),vn=(0,Rt.useRef)(),bn=(0,Rt.useRef)(!1);const Ze=(0,Rt.useRef)(!1),[Ae,gn]=(0,Rt.useState)(0);function Pn(){const mn=ke.bx.make,Me={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"};Qe.current=new ke.S0(Fe.current,{padding:20,grid:mn(ke.s_,"Grid",mn(ke.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mn(ke.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:qe=>{var Xn=qe.diagram.commandHandler.addTopLevelParts(qe.diagram.selection,!0);Xn||qe.diagram.currentTool.doCancel()},commandHandler:mn(je),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:qe=>{var Xn=qe.subject;Xn.location=Xn.location.copy().snapToGridPoint(qe.diagram.grid.gridOrigin,qe.diagram.grid.gridCellSize),setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:qe=>{var Xn=qe.subject;setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()})},LinkRelinked:qe=>{var Xn=qe.parameter.part;Xn.invalidateConnectedLinks();var ti=qe.subject;qe.diagram.toolManager.linkingTool.isForwards?ti.toNode.invalidateConnectedLinks():ti.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Qe.current.nodeTemplate=mn(ke.NB,"Auto",{locationSpot:ke.z6.Center,locationObjectName:"SHAPE",desiredSize:new ke.$u(120,60),minSize:new ke.$u(40,40),resizable:!0,resizeCellSize:new ke.$u(10,10),rotatable:!0},new ke.KX("location","loc",ke.E9.parse).makeTwoWay(ke.E9.stringify),new ke.KX("desiredSize","size",ke.$u.parse).makeTwoWay(ke.$u.stringify),mn(ke.bn,{name:"SHAPE",fill:Me.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ke.z6.AllSides,toSpot:ke.z6.AllSides},new ke.KX("figure"),new ke.KX("fill"),new ke.KX("stroke","borderColor"),new ke.KX("strokeWidth","thickness"),new ke.KX("strokeDashArray","dash")),mn(ke.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),mn(ke.al,{margin:1,textAlign:"center",overflow:ke.al.OverflowEllipsis,editable:!0},new ke.KX("text").makeTwoWay(),new ke.KX("stroke","color"))),Qe.current.nodeTemplate.toolTip=mn("ToolTip",mn(ke.s_,"Vertical",{maxSize:new ke.$u(200,NaN)},mn(ke.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ke.KX("text")),mn(ke.al,{font:"10pt sans-serif",textAlign:"center"},new ke.KX("text","details"))));function Ge(qe,Xn){var ti=(Qn,Li)=>{Qn.handled=!0,Qn.diagram.model.commit(fi=>{var ki=Li.part.adornedPart,gi=new ke.E9().setRectSpot(ki.actualBounds,qe);gi.subtract(ki.location),gi.scale(2,2),gi.x+=Math.sign(gi.x)*130,gi.y+=Math.sign(gi.y)*130,gi.add(ki.location),gi.snapToGridPoint(Qn.diagram.grid.gridOrigin,Qn.diagram.grid.gridCellSize);var oi=fi.copyNodeData(ki.data);fi.setGroupKeyForNodeData(oi,fi.getGroupKeyForNodeData(ki.data)),fi.addNodeData(oi);var Fi={from:ki.key,to:fi.getKeyForNodeData(oi)};fi.addLinkData(Fi);var Cn=Qn.diagram.findNodeForData(oi);Cn.location=gi,Qn.diagram.select(Cn),setTimeout(()=>{Qn.diagram.commandHandler.editTextBlock()},20)})};return mn(ke.bn,{figure:Xn,alignment:qe,alignmentFocus:qe.opposite(),width:qe.equals(ke.z6.Top)||qe.equals(ke.z6.Bottom)?25:18,height:qe.equals(ke.z6.Top)||qe.equals(ke.z6.Bottom)?18:25,fill:"orange",stroke:Me.white,strokeWidth:4,mouseEnter:(Qn,Li)=>Li.fill="dodgerblue",mouseLeave:(Qn,Li)=>Li.fill="orange",isActionable:!0,click:ti,contextClick:ti})}function fn(qe){return mn(ke.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:(Xn,ti)=>ti.fill="dodgerblue",mouseLeave:(Xn,ti)=>ti.fill="orange",click:(Xn,ti)=>{Xn.diagram.commandHandler.showContextMenu(ti.part.adornedPart)}},qe||{})}Qe.current.nodeTemplate.selectionAdornmentTemplate=mn(ke.uz,"Spot",mn(ke.Vm,{padding:10}),Ge(ke.z6.Top,"TriangleUp"),Ge(ke.z6.Left,"TriangleLeft"),Ge(ke.z6.Right,"TriangleRight"),Ge(ke.z6.Bottom,"TriangleDown"),fn({alignment:new ke.z6(.75,0)}));function In(qe,Xn){return(ti,Qn)=>{ti.handled=!0,ti.diagram.model.commit(Li=>{Li.set(Qn.part.adornedPart.data,qe,Xn)})}}function Ke(qe,Xn){return Xn||(Xn="color"),mn(ke.bn,{width:16,height:16,stroke:"lightgray",fill:qe,margin:1,background:"transparent",mouseEnter:(ti,Qn)=>Qn.stroke="dodgerblue",mouseLeave:(ti,Qn)=>Qn.stroke="lightgray",click:In(Xn,qe),contextClick:In(Xn,qe)})}function cn(){return[mn("ContextMenuButton",mn(ke.s_,"Horizontal",Ke(Me.white,"fill"),Ke(Me.beige,"fill"),Ke(Me.extralightblue,"fill"),Ke(Me.extralightred,"fill"))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",Ke(Me.lightgray,"fill"),Ke(Me.lightgreen,"fill"),Ke(Me.lightblue,"fill"),Ke(Me.lightred,"fill")))]}function _e(){return[mn("ContextMenuButton",mn(ke.s_,"Horizontal",Ke(Me.black),Ke(Me.green),Ke(Me.blue),Ke(Me.red))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",Ke(Me.white),Ke(Me.magenta),Ke(Me.purple),Ke(Me.orange)))]}function on(qe,Xn){return Xn||(Xn="thickness"),mn(ke.bn,"LineH",{width:16,height:16,strokeWidth:qe,margin:1,background:"transparent",mouseEnter:(ti,Qn)=>Qn.background="dodgerblue",mouseLeave:(ti,Qn)=>Qn.background="transparent",click:In(Xn,qe),contextClick:In(Xn,qe)})}function dn(qe,Xn){return Xn||(Xn="dash"),mn(ke.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:qe,margin:1,background:"transparent",mouseEnter:(ti,Qn)=>Qn.background="dodgerblue",mouseLeave:(ti,Qn)=>Qn.background="transparent",click:In(Xn,qe),contextClick:In(Xn,qe)})}function ln(){return[mn("ContextMenuButton",mn(ke.s_,"Horizontal",on(1),on(2),on(3),on(4))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",dn(null),dn([2,4]),dn([4,4])))]}function xn(qe,Xn){return Xn||(Xn="figure"),mn(ke.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:qe,margin:1,background:"transparent",mouseEnter:(ti,Qn)=>Qn.fill="dodgerblue",mouseLeave:(ti,Qn)=>Qn.fill="lightgray",click:In(Xn,qe),contextClick:In(Xn,qe)})}Qe.current.nodeTemplate.contextMenu=mn("ContextMenu",mn("ContextMenuButton",mn(ke.s_,"Horizontal",xn("Rectangle"),xn("RoundedRectangle"),xn("Ellipse"),xn("Diamond"))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",xn("Parallelogram2"),xn("ManualOperation"),xn("Procedure"),xn("Cylinder1"))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",xn("Terminator"),xn("CreateRequest"),xn("Document"),xn("TriangleDown"))),cn(),_e(),ln()),Qe.current.groupTemplate=mn(ke.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ke.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(qe,Xn)=>{var ti=Xn.addMembers(Xn.diagram.selection,!0);ti||Xn.diagram.currentTool.doCancel()},avoidable:!1},new ke.KX("location","loc",ke.E9.parse).makeTwoWay(ke.E9.stringify),mn(ke.s_,"Auto",{name:"BODY"},mn(ke.bn,{parameter1:10,fill:Me.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ke.z6.AllSides,toSpot:ke.z6.AllSides},new ke.KX("fill"),new ke.KX("stroke","color"),new ke.KX("strokeWidth","thickness"),new ke.KX("strokeDashArray","dash")),mn(ke.Vm,{background:"transparent",margin:20})),mn(ke.al,{alignment:ke.z6.Top,alignmentFocus:ke.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ke.KX("text"),new ke.KX("stroke","color"))),Qe.current.groupTemplate.selectionAdornmentTemplate=mn(ke.uz,"Spot",mn(ke.s_,"Auto",mn(ke.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),mn(ke.Vm,{margin:1.5})),fn({alignment:ke.z6.TopRight,alignmentFocus:ke.z6.BottomRight})),Qe.current.groupTemplate.contextMenu=mn("ContextMenu",cn(),_e(),ln()),Qe.current.linkTemplate=mn(ke.rU,{layerName:"Foreground",routing:ke.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ke.KX("fromSpot","fromSpot",ke.z6.parse),new ke.KX("toSpot","toSpot",ke.z6.parse),new ke.KX("fromShortLength","dir",qe=>qe>=1?10:0),new ke.KX("toShortLength","dir",qe=>qe>=1?10:0),new ke.KX("points").makeTwoWay(),mn(ke.bn,{strokeWidth:2},new ke.KX("stroke","color"),new ke.KX("strokeWidth","thickness"),new ke.KX("strokeDashArray","dash")),mn(ke.bn,{segmentIndex:0,segmentOffset:new ke.E9(15,0),segmentOrientation:ke.rU.OrientAlong,alignmentFocus:ke.z6.Right,figure:"circle",width:10,strokeWidth:0},new ke.KX("fill","color"),new ke.KX("visible","dir",qe=>qe===1)),mn(ke.bn,{segmentIndex:-1,segmentOffset:new ke.E9(-10,6),segmentOrientation:ke.rU.OrientPlus90,alignmentFocus:ke.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ke.KX("fill","color"),new ke.KX("visible","dir",qe=>qe>=1),new ke.KX("width","thickness",qe=>7+3*qe),new ke.KX("height","thickness",qe=>7+3*qe),new ke.KX("segmentOffset","thickness",qe=>new ke.E9(-15,4+1.5*qe))),mn(ke.bn,{segmentIndex:0,segmentOffset:new ke.E9(15,-6),segmentOrientation:ke.rU.OrientMinus90,alignmentFocus:ke.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ke.KX("fill","color"),new ke.KX("visible","dir",qe=>qe===2),new ke.KX("width","thickness",qe=>7+3*qe),new ke.KX("height","thickness",qe=>7+3*qe),new ke.KX("segmentOffset","thickness",qe=>new ke.E9(-15,4+1.5*qe))),mn(ke.al,{alignmentFocus:new ke.z6(0,1,-4,0),editable:!0},new ke.KX("text").makeTwoWay(),new ke.KX("stroke","color"))),Qe.current.linkTemplate.selectionAdornmentTemplate=mn(ke.uz,mn(ke.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:yn(2)},new ke.KX("pathPattern","thickness",yn)),fn({alignmentFocus:new ke.z6(0,0,-6,-4)}));function yn(qe){return mn(ke.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(qe+4).toString()+" H3"})}function Mn(qe){var Xn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return qe===0?Xn="M0 0 M16 16 M0 8 L16 8":qe===2&&(Xn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),mn(ke.bn,{geometryString:Xn,margin:2,background:"transparent",mouseEnter:(ti,Qn)=>Qn.background="dodgerblue",mouseLeave:(ti,Qn)=>Qn.background="transparent",click:In("dir",qe),contextClick:In("dir",qe)})}function On(qe){var Xn=(ti,Qn)=>{ti.handled=!0,ti.diagram.model.commit(Li=>{var fi=Qn.part.adornedPart;Li.set(fi.data,qe?"toSpot":"fromSpot",ke.z6.stringify(ke.z6.AllSides)),(qe?fi.toNode:fi.fromNode).invalidateConnectedLinks()})};return mn(ke.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ti,Qn)=>Qn.background="dodgerblue",mouseLeave:(ti,Qn)=>Qn.background="transparent",click:Xn,contextClick:Xn})}function En(qe,Xn){var ti=0,Qn=ke.z6.RightSide;qe.equals(ke.z6.Top)?(ti=270,Qn=ke.z6.TopSide):qe.equals(ke.z6.Left)?(ti=180,Qn=ke.z6.LeftSide):qe.equals(ke.z6.Bottom)&&(ti=90,Qn=ke.z6.BottomSide),Xn||(ti-=180);var Li=(fi,ki)=>{fi.handled=!0,fi.diagram.model.commit(gi=>{var oi=ki.part.adornedPart;gi.set(oi.data,Xn?"toSpot":"fromSpot",ke.z6.stringify(Qn)),(Xn?oi.toNode:oi.fromNode).invalidateConnectedLinks()})};return mn(ke.bn,{alignment:qe,alignmentFocus:qe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ti,background:"transparent",mouseEnter:(fi,ki)=>ki.background="dodgerblue",mouseLeave:(fi,ki)=>ki.background="transparent",click:Li,contextClick:Li})}Qe.current.linkTemplate.contextMenu=mn("ContextMenu",_e(),ln(),mn("ContextMenuButton",mn(ke.s_,"Horizontal",Mn(0),Mn(1),Mn(2))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",mn(ke.s_,"Spot",On(!1),En(ke.z6.Top,!1),En(ke.z6.Left,!1),En(ke.z6.Right,!1),En(ke.z6.Bottom,!1)),mn(ke.s_,"Spot",{margin:new ke.Zt(0,0,0,2)},On(!0),En(ke.z6.Top,!0),En(ke.z6.Left,!0),En(ke.z6.Right,!0),En(ke.z6.Bottom,!0)))));const jn=`{ "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 ei=["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 pi(qe){return console.log("shapeName:",qe),ei.indexOf(qe)>=0}var ii=new ke.YI(vn.current,{maxSelectionCount:1,linkTemplate:mn(ke.rU,{locationSpot:ke.z6.Center,selectionAdornmentTemplate:mn(ke.uz,"Link",{locationSpot:ke.z6.Center},mn(ke.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),mn(ke.bn,{toArrow:"Standard",stroke:null}))},{routing:ke.rU.AvoidsNodes,curve:ke.rU.JumpOver,corner:5,toShortLength:4},new ke.KX("points"),mn(ke.bn,{isPanelMain:!0,strokeWidth:2}),mn(ke.bn,{toArrow:"Standard",stroke:null})),model:new ke.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ke.bn.getFigureGenerators().toArray().map(qe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:qe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Qe.current.addDiagramListener("TextEdited",function(qe){var Xn;const ti=qe.subject.part;var Qn=(Xn=document.activeElement)==null?void 0:Xn.value;typeof Qn=="string"&&Qn.trim()===""&&Qe.current.model.commit(function(Li){Li.set(ti.data,"text","\u672A\u547D\u540D"),Qe.current.commandHandler.stopCommand()},"increment")}),ii.nodeTemplate=mn(ke.NB,"Auto",{locationSpot:ke.z6.Center},new ke.KX("location","location",ke.E9.parse).makeTwoWay(ke.E9.stringify),mn(ke.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 ke.KX("stroke").makeTwoWay(),new ke.KX("fill").makeTwoWay(),new ke.KX("figure")),mn(ke.al,{margin:new ke.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ke.$u(16,16),maxSize:new ke.$u(10,NaN),textAlign:"center",editable:!0},new ke.KX("key").makeTwoWay())),setTimeout(()=>{Qe.current.grid=mn(ke.s_,"Grid",mn(ke.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mn(ke.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Qe.current.grid.visible=!0,Qe.current.grid.gridCellStroke="darkgray",Qe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Qe.current,Qe.current}const Un=()=>he(this,null,function*(){var mn=Qe.current.makeImage();const Me=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:mn.src}});nn({src:Me.url})});return(0,Rt.useEffect)(()=>(setTimeout(()=>{Pn()},500),gn(Ae+1),()=>{Qe.current=null}),[]),ce.createElement("div",{ref:Ze,className:bn.current?`${Ee.maxH60} body-overflow-initial`:"body-overflow-initial"},ce.createElement(De.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ae,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ce.createElement(Oe.Z,null,ce.createElement(me.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ce.createElement(me.Z,{onClick:()=>{var mn,Me,Ge=Qe.current.selection.first();if(bn.current=!bn.current,document.activeElement&&Ge){let fn=(Me=(mn=document.activeElement)==null?void 0:mn.value)==null?void 0:Me.trim();typeof fn=="string"&&Qe.current.model.commit(function(In){In.set(Ge.data,"text",fn||"\u672A\u547D\u540D"),Qe.current.commandHandler.stopCommand()},"increment")}gn(Ae+1)}},ce.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:tn},ce.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ee.flowChartWrp},ce.createElement("div",{style:{display:"flex",height:"100%"}},ce.createElement("div",{style:{width:"300px",height:"100%"}},ce.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ce.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ee.myPaletteDiv,ref:vn})),ce.createElement("div",{style:{flex:1,position:"relative"}},ce.createElement("div",{ref:Fe,style:{height:"80vh"}}))),ce.createElement("div",{className:"tr"},ce.createElement(Kt.ZP,{size:"large",onClick:Un,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Mt=_t,Et=Gt(5112),Ht=Gt(88897);const Pt=Et.ZP.Group,dt={margin:"0 8px"};var gt=({callback:tn,onCancel:nn})=>{function Qe(Fe){tn(Fe)}return Rt.createElement(Qt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Qe},Rt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Rt.createElement("span",{style:dt},"\u5355\u5143\u683C\u6570\uFF1A"),Rt.createElement("span",{style:dt},"\u884C\u6570"),Rt.createElement(Qt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Rt.createElement(Ht.Z,null)),Rt.createElement("span",{style:dt},"\u5217\u6570"),Rt.createElement(Qt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Rt.createElement(Ht.Z,null))),Rt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Rt.createElement("span",{style:dt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Rt.createElement(Qt.default.Item,{name:"align"},Rt.createElement(Pt,null,Rt.createElement(Et.ZP,{value:"default"},Rt.createElement("i",{className:"fa fa-align-justify"})),Rt.createElement(Et.ZP,{value:"left"},Rt.createElement("i",{className:"fa fa-align-left"})),Rt.createElement(Et.ZP,{value:"center"},Rt.createElement("i",{className:"fa fa-align-center"})),Rt.createElement(Et.ZP,{value:"right"},Rt.createElement("i",{className:"fa fa-align-right"}))))),Rt.createElement("div",{className:"flex-container flex-end"},Rt.createElement(Kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Rt.createElement(Kt.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},zt=Gt(78673),re=Gt(98598),Zt=Gt.n(re),Ye=(0,Rt.forwardRef)(({use3d:tn,width:nn,height:Qe,callback:Fe,showSaveButton:vn},bn)=>{const Ze=(0,Rt.useRef)(),Ae=(0,Rt.useRef)(),[gn,Pn]=(0,Rt.useState)(!1),Un=(0,Rt.useRef)({id:Ze,appName:"graphing",width:nn||1e3,height:Qe||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)(()=>{Ae.current=new(Zt())(Un.current,!0),window.onload=function(){Ae.current.inject("applet_container")}},[]);const mn=()=>{var Me=window.ggbApplet.getPNGBase64(1,!0,72);return Fe&&Fe(Me),Me};return(0,Rt.useEffect)(()=>{Un.current.appName=gn?"3D":"graphing",Ae.current.inject("applet_container")},[gn]),(0,Rt.useEffect)(()=>{Pn(tn)},[tn]),(0,Rt.useImperativeHandle)(bn,()=>({getImgData:mn})),Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ze}),Rt.createElement(Oe.Z,{align:"middle"},Rt.createElement(me.Z,{flex:1},Rt.createElement(zt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:gn,onChange:Me=>Pn(Me)})),Rt.createElement(me.Z,null,Rt.createElement(Kt.ZP,{size:"large",onClick:mn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),sn=Gt(75890),Le=Gt(8591);const Re="link",hn="upload-image",wn="add-flowchart",kn="draw-image",Rn="add-flowchart",Yn="code-block",Kn="add-table",li="------------",mi={default:li,left:`:${li}`,center:`:${li}:`,right:`${li}:`};var yi=Gt(91300);function Pi(){}let Mi=0;const Gi=1e4,bi="\u2581",Ki="@\u2581\u2581@",ui="@\u2581@",te=` **\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 Ti(tn){return/^\d+$/.test(tn)?`${tn}px`:tn}const Sr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Er={[Sr+"-B"]:"bold",[Sr+"-I"]:"italic"},vr={[Re]:"\u6DFB\u52A0\u94FE\u63A5",[Yn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[hn]:"\u6DFB\u52A0\u56FE\u7247",[kn]:"\u6DFB\u52A0\u753B\u56FE",[wn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var qn=({defaultValue:tn="",onChange:nn,width:Qe="100%",height:Fe=400,miniToolbar:vn=!1,isFocus:bn=!1,watch:Ze,insertTemp:Ae,mode:gn="markdown",id:Pn="markdown-editor-id",showResizeBar:Un=!1,noStorage:mn=!1,showNullButton:Me=!1,showNullProgramButton:Ge=!1,hidetoolBar:fn=!1,fullScreen:In=!1,onBlur:Ke,onCMBeforeChange:cn,onFullScreen:_e,className:on="",disablePaste:dn=!1,disabled:ln=!1,disabledFill:xn=!1,placeholder:yn="",values:Mn="",extraUse:On})=>{const[En,jn]=(0,Rt.useState)(null),[ei,pi]=(0,Rt.useState)(tn),[ii,qe]=(0,Rt.useState)(Ze),[Xn,ti]=(0,Rt.useState)(In),[Qn,Li]=(0,Rt.useState)(""),[fi,ki]=(0,Rt.useState)(0),[gi,oi]=(0,Rt.useState)(Fe),[Fi,Cn]=(0,Rt.useState)(!1),[nr,Ln]=(0,Rt.useState)(0),[Bi,wr]=(0,Rt.useState)(0),Hi=(0,Rt.useRef)(),Or=(0,Rt.useRef)(),pr=(0,Rt.useRef)(),Si=(0,Rt.useRef)();(0,Rt.useEffect)(()=>{const xi=window.scrollY||window.pageYOffset;pi(Mn),En==null||En.setValue(Mn),window.scrollTo(0,xi)},[Mn]),(0,Rt.useEffect)(()=>{_e==null||_e(Xn)},[Xn]),(0,Rt.useEffect)(()=>{if(Hi.current){let xi=function(Ai,zn){var hr;if(dn){zn.preventDefault();return}const Tr=zn.clipboardData;if(Tr){const Qr=Tr.types.toString(),kr=Tr.items;if(Qr==="Files"||Tr.types.indexOf("Files")>-1){if(zn.preventDefault(),gn=="stex")return;try{let Xr=kr[1];((hr=kr[0])==null?void 0:hr.kind)==="file"&&(Xr=kr[0]);const io=Xr.getAsFile(),Wo=io.name.split(".").pop();(0,se.I)(io,vo=>{var Uo,To,Sn;vo.id?((Uo=io==null?void 0:io.type)==null?void 0:Uo.indexOf("image"))>-1?di.replaceSelection(`![,](/api/attachments/${vo.id}?type=${vo.content_type})`):((To=io==null?void 0:io.type)==null?void 0:To.indexOf("video"))>-1?di.replaceSelection(``):((Sn=io==null?void 0:io.type)==null?void 0:Sn.indexOf("pdf"))>-1?di.replaceSelection(`${io.name}`):Yi.includes(Wo)?di.replaceSelection(`${io.name}`):di.replaceSelection(`[${io.name}](/api/attachments/${vo.id}?type=${vo.content_type})`):(vo==null?void 0:vo.status)===401&&(document.location.href="/user/login")})}catch(Xr){Le.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const di=Vt().fromTextArea(Hi.current,{mode:gn,lineNumbers:!vn,lineWrapping:!0,value:tn,autoCloseTags:!0,autoCloseBrackets:!0});return di.on("keyup",function(Ai,zn){zn.keyCode===8&&(Ai.getValue()==""?di.setOption("placeholder",yn):di.setOption("placeholder",null))}),di.on("keydown",function(Ai,zn){if(zn.keyCode===8){var hr=Xi(Ai);hr&&zn.preventDefault()}}),bn&&di.focus(),di.on("paste",xi),ln&&di.on("beforeChange",function(Ai,zn){(zn.origin==="paste"||zn.origin==="+input")&&zn.cancel()}),jn(di),()=>{di.off("paste",xi)}}},[]);const vi=(0,Rt.useCallback)(()=>{if(Or.current)try{}catch(xi){console.log(xi,"---- to set md editor body height")}},[gi,Or,Xn]);(0,Rt.useEffect)(()=>{function xi(){let di=new Yt.Z(Ai=>{for(let zn of Ai)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&(vi(),En.setSize("100%","100%"),En.refresh())});return di.observe(Hi.current.parentElement),di}if(En){const di=xi();return()=>{var Ai,zn;(Ai=Hi.current)!=null&&Ai.parentElement&&di.unobserve((zn=Hi.current)==null?void 0:zn.parentElement)}}},[En,vi]),(0,Rt.useEffect)(()=>{if(En){let xi=[];for(const[di,Ai]of Object.entries(Er)){let zn={[di]:()=>{Zi(Ai)}};xi.push(zn),En.addKeyMap(zn)}return()=>{for(let di of xi)En.removeKeyMap(di)}}},[En]),(0,Rt.useEffect)(()=>{In!==Xn&&ti(In)},[In]),(0,yi.Z)(()=>{if(!mn&&fi>0){let xi=new Date().getTime(),di=window.sessionStorage.getItem(Pn);xi>=fi+Gi&&(!di||di!==ei)&&(window.sessionStorage.setItem(Pn,ei),Cn(!0))}},Gi),(0,Rt.useEffect)(()=>{qe(Ze)},[En,Ze]),(0,Rt.useEffect)(()=>{En&&bn&&En.focus()},[En,bn]),(0,Rt.useEffect)(()=>{if(ii&&En){let xi=function(Ai){let zn=Ai.target;if(Si.current){let hr=zn.scrollTop/zn.scrollHeight;Si.current.scrollTop=Si.current.scrollHeight*hr}};const di=En.getScrollerElement();return di.addEventListener("scroll",xi),()=>{di.removeEventListener("scroll",xi)}}},[En,ii]),(0,Rt.useEffect)(()=>{if(En&&cn){let xi=function(di,Ai){cn(di,Ai)};return En.on("beforeChange",xi),()=>{En.off("beforeChange",xi)}}},[En,cn]),(0,Rt.useEffect)(()=>{if(En&&Ke){let xi=function(){Ke(En.getValue())};return En.on("blur",xi),()=>{En.off("blur",xi)}}},[En,Ke]);function Xi(xi,di){var Ai=xi.getDoc(),zn=Ai.getCursor(),hr=Ai.getLine(zn.line),Tr=hr.charAt(zn.ch-1),Qr=hr.lastIndexOf("@\u2581@",zn.ch),kr=hr.lastIndexOf("@\u2581\u2581@",zn.ch),Xr=Qr>kr?Qr:kr,io=Qr>kr?3:4;if(Ki.indexOf(Tr)===-1)return null;if(console.log("change1:",di,xi,hr,zn,Xr,Qr,kr,Tr),Xr>=0&&zn.ch-Xr<5){var Wo=Xr+io;return Ai.replaceRange("",{line:zn.line,ch:Xr},{line:zn.line,ch:Wo}),{line:zn.line,ch:Wo}}return null}(0,Rt.useEffect)(()=>{if(En){let xi=function(di,Ai){const zn=di.getValue();pi(zn),ki(new Date().getTime()),di.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nn&&(Ge?nn(zn,Ci(zn)):nn(zn))};return En.on("change",xi),()=>{En.off("change",xi)}}},[En,nn]),(0,Rt.useEffect)(()=>{if(En)if(tn==null)En.setValue(""),pi("");else{const xi=window.scrollY||window.pageYOffset;tn!==En.getValue()&&(En.setValue(tn),pi(tn),En.setCursor(ln?1:En.lineCount(),0),window.scrollTo(0,xi))}},[En,tn]);const Zi=(0,Rt.useCallback)(xi=>{const di=En.getCursor(),Ai=En.getSelection();let zn=Ai.split(` `);switch(xi){case"bold":return En.replaceSelection("**"+Ai+"**"),Ai===""&&En.setCursor(di.line,di.ch+2),En.focus();case"italic":return En.replaceSelection("*"+Ai+"*"),Ai===""&&En.setCursor(di.line,di.ch+1),En.focus();case"code":return En.replaceSelection("`"+Ai+"`"),Ai===""&&En.setCursor(di.line,di.ch+1),En.focus();case"inline-latex":return Li("inline-latex"),En.focus();case"latex":return En.replaceSelection("```latex\n"+Ai+"\n```"),En.setCursor(di.line+1,Ai.length+1),En.focus();case"line-break":return En.replaceSelection(`
`),En.focus();case"list-ul":return Ai===""?En.replaceSelection("- "+Ai):En.replaceSelection(zn.map(hr=>hr===""?"":`- ${hr}`).join(` `)),En.focus();case"list-ol":return Ai===""?En.replaceSelection("1. "+Ai):En.replaceSelection(zn.map((hr,Tr)=>hr===""?"":`${Tr+1}. ${hr}`).join(` `)),En.focus();case"add-null-ch":return Ai===""&&En.setCursor(di.line,di.ch),En.replaceSelection(bi),En.focus();case"add-signal":return Ai===""&&En.setCursor(di.line,di.ch),En.replaceSelection(ui),En.focus();case"add-multiple":return Ai===""&&En.setCursor(di.line,di.ch),En.replaceSelection(Ki),En.focus();case"inster-template-1":return Ai===""&&En.setCursor(di.line,di.ch),En.replaceSelection(te),En.focus();case"eraser":return En.setValue(""),En.focus();case"trigger-watch":return qe(!ii),En.focus();case"trigger-full-screen":return ti(!Xn),En.focus();case Re:Li(Re);return;case Yn:Li(Yn);return;case hn:Li(hn);return;case kn:Li(kn);return;case"maths-latex":Li("maths-latex");return;case wn:Li(wn);return;case Kn:Li(Kn);return;default:throw new Error}},[En,ii,Xn]),Jn=(0,Rt.useCallback)((xi,di)=>{var Ai,zn,hr,Tr,Qr,kr;switch(Li(""),Qn){case Re:const{title:Uo,link:To}=xi;return En.replaceSelection(`[${Uo}](${To})`),En.focus();case Yn:const{language:Sn,content:yo}=xi;return En.replaceSelection(["```"+Sn,yo,"```"].join(` `)),En.focus();case"maths-latex":for(var Xr=atob(xi),io=new Uint8Array(Xr.length),Wo=0;Wo{ao.id?En.replaceSelection(`![,](/api/attachments/${ao.id}?type=${ao.content_type})`):(ao==null?void 0:ao.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":En.replaceSelection("`$$"+xi+"$$`");break;case hn:case kn:case Rn:const{src:da,alt:_s}=xi,mr=di,Wr=(hr=(zn=(Ai=mr==null?void 0:mr.name)==null?void 0:Ai.split("."))==null?void 0:zn.pop)==null?void 0:hr.call(zn);return((Tr=mr==null?void 0:mr.type)==null?void 0:Tr.indexOf("image"))>-1||!(mr!=null&&mr.type)?_s?En.replaceSelection(`![ ${_s} ]( ${da} "${_s}" )`):En.replaceSelection(`![,](${da})`):((Qr=mr==null?void 0:mr.type)==null?void 0:Qr.indexOf("video"))>-1?En.replaceSelection(``):((kr=mr==null?void 0:mr.type)==null?void 0:kr.indexOf("pdf"))>-1?En.replaceSelection(`${mr.name}`):Yi.includes(Wr)?En.replaceSelection(`${mr.name}`):En.replaceSelection(`[${mr.name}](${da})`),En.focus();case Kn:const{row:so,col:zr,align:qi}=xi;let Ji=` `;for(let ao=0;ao{switch(Qn){case Re:return Rt.createElement(ae,{callback:Jn,onCancel:Ri});case Yn:return Rt.createElement(fe.Z,{callback:Jn,onCancel:Ri});case hn:return Rt.createElement(se.Z,{callback:Jn,onCancel:Ri});case wn:return Rt.createElement(Mt,{callback:Jn,onCancel:Ri});case Kn:return Rt.createElement(gt,{callback:Jn,onCancel:Ri});case"maths-latex":return Rt.createElement(Ye,{showSaveButton:!0,callback:Jn});case"inline-latex":return Rt.createElement(sn.Z,{showSaveButton:!0,callback:Jn});default:return null}},[Qn]);function Ri(){Li("")}(0,Rt.useEffect)(()=>{if(pr.current){let xi=function(Qr){hr=!0,Tr=Qr.pageY},di=function(){hr=!1},Ai=function(Qr){if(hr){let kr=Qr.pageY-Tr;kr<0&&(kr=0),kr>300&&(kr=300);let Xr=Fe+kr+"px";oi(Xr)}},zn=pr.current,hr=!1,Tr=0;return zn.addEventListener("mousedown",xi),document.addEventListener("mousemove",Ai),document.addEventListener("mouseup",di),()=>{zn.removeEventListener("mousedown",xi),document.removeEventListener("mousemove",Ai),document.removeEventListener("mouseup",di)}}},[En,pr]),(0,Rt.useEffect)(()=>{oi(Fe)},[Fe]);const Ar=Ti(Qe),zi=Ti(gi),ir={width:Ar,height:zi},Oi=(0,Rt.useMemo)(()=>{if(fi){let xi=new Date(fi),di=xi.getHours(),Ai=xi.getMinutes(),zn=xi.getSeconds();return di=di<10?"0"+di:di,Ai=Ai<10?"0"+Ai:Ai,zn=zn<10?"0"+zn:zn,`${di}:${Ai}:${zn}`}return 0},[fi]),Ci=xi=>{const di=[];if(Ge){let Ai=-1;xi=xi.replace(/(@▁▁@|@▁@)/g,function(zn,hr,Tr){di.push({multiLine:zn!==ui})})}return di};function tr(){window.sessionStorage.removeItem(Pn),Cn(!1),ki(0)}function yr(){Cn(!1),ki(0),En.setValue(window.sessionStorage.getItem(Pn))}(0,Rt.useEffect)(()=>{vr[Qn]&&Qn!==kn&&Qn!==wn&&setTimeout(()=>{const xi=document.getElementsByClassName("markdown-popup-form")[0],di=window.innerWidth/2-xi.offsetWidth/2,Ai=window.innerHeight/2-xi.offsetHeight/2;Ln(di),wr(Ai)},0)},[Qn]);const _i=xi=>{xi.preventDefault();const di=xi.clientX-nr,Ai=xi.clientY-Bi;document.body.onmousemove=zn=>{let hr=zn.clientX-di,Tr=zn.clientY-Ai;const Qr=document.getElementsByClassName("markdown-popup-form")[0],kr=window.innerWidth-Qr.offsetWidth,Xr=window.innerHeight-Qr.offsetHeight;hr=Math.max(0,Math.min(hr,kr)),Tr=Math.max(0,Math.min(Tr,Xr)),Mr(zn.clientX,zn.clientY,di,Ai)&&(Ln(hr),wr(Tr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Mr=(xi,di,Ai,zn)=>{const hr=document.body.clientHeight,Tr=document.body.clientWidth;return xi<20&&Ai>xi||xi>Tr-20&&Aidi||di>hr-20&&znDt in Ct?Ot(Ct,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ct[Dt]=Ut,et=(Ct,Dt)=>{for(var Ut in Dt||(Dt={}))Tt.call(Dt,Ut)&&vt(Ct,Ut,Dt[Ut]);if(bt)for(var Ut of bt(Dt))It.call(Dt,Ut)&&vt(Ct,Ut,Dt[Ut]);return Ct},tt=(Ct,Dt)=>Bt(Ct,At(Dt));const{useForm:st}=Rt.default,rt={width:280,marginRight:10},ut={labelCol:{span:5},wrapperCol:{span:19}};var ct=({callback:Ct,onCancel:Dt})=>{const[Ut]=st();let Ft=(0,Wt.useRef)();function Qt(ue){Ct(ue,Ft.current)}function $t(ue,oe){if(ue.status===-1){yt.ZP.error(ue.message);return}Ut.setFieldsValue({src:`/api/attachments/${ue.id}`,type:oe.type})}function Kt(ue){let oe=ue.target.files[0];Ft.current=oe,mt(oe,$t)}return xt.createElement(Rt.default,tt(et({form:Ut},ut),{className:"upload-image-panel",onFinish:Qt,style:{width:470,overflow:"hidden"}}),xt.createElement(Rt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},xt.createElement("div",{className:"flex-container"},xt.createElement(Rt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},xt.createElement(Vt.default,{style:rt})),xt.createElement(pt,{onFileChange:Kt}))),xt.createElement(Rt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},xt.createElement(Vt.default,{style:{width:264}})),xt.createElement(Rt.default.Item,{style:{textAlign:"right"}},xt.createElement(Yt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),xt.createElement(Yt.ZP,{type:"default",onClick:Dt},"\u53D6\u6D88")))};function pt({onFileChange:Ct}){return xt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",xt.createElement("input",{type:"file",onChange:Ct}))}function mt(Ct,Dt){if(!Ct)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ut=new FormData;Ut.append("editormd-image-file",Ct),Ut.append("file_param_name","editormd-image-file"),Ut.append("byxhr","true");var Ft=new window.XMLHttpRequest;Ft.withCredentials=!0,Ft.addEventListener("load",function(Qt){Dt(JSON.parse(Qt.target.responseText),Ct)},!1),Ft.addEventListener("error",function(Qt){console.error(Qt)},!1),Ft.open("POST",`${Nt.KI}/api/attachments.json`),Ft.send(Ut)}},50474:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Vt}});var Rt=Gt(59301),yt=Gt(4676);class Vt extends Rt.Component{constructor(Nt){super(Nt);const Wt=window.document;this.node=Wt.createElement("div"),Wt.body.appendChild(this.node)}render(){const{children:Nt}=this.props;return(0,yt.createPortal)(Nt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(Nn,An,Gt){"use strict";Gt.d(An,{SV:function(){return _t},ZP:function(){return he}});var Rt=Gt(59301),yt=Gt(76374);const Vt={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"]},Yt={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"]},Nt={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(` `)}]},Wt={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(` `)}]},xt={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Ot=Gt(86061),Bt=Gt.n(Ot),At=Object.defineProperty,bt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(Mt,Et,Ht)=>Et in Mt?At(Mt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[Et]=Ht,st=(Mt,Et)=>{for(var Ht in Et||(Et={}))vt.call(Et,Ht)&&tt(Mt,Ht,Et[Ht]);if(It)for(var Ht of It(Et))et.call(Et,Ht)&&tt(Mt,Ht,Et[Ht]);return Mt},rt=(Mt,Et)=>bt(Mt,Tt(Et)),ut=(Mt,Et,Ht)=>new Promise((Pt,dt)=>{var gt=Zt=>{try{re(Ht.next(Zt))}catch(ye){dt(ye)}},zt=Zt=>{try{re(Ht.throw(Zt))}catch(ye){dt(ye)}},re=Zt=>Zt.done?Pt(Zt.value):Promise.resolve(Zt.value).then(gt,zt);re((Ht=Ht.apply(Mt,Et)).next())});const ct={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"]}},pt=(Mt,Et)=>Et.map(Ht=>({label:Ht,kind:Mt.languages.CompletionItemKind.Keyword,insertText:Ht})),mt=Mt=>Object.keys(ct.tables).map(Et=>({label:Et,kind:Mt.languages.CompletionItemKind.Variable,insertText:Et})),Ct=(Mt,Et)=>{const Ht=ct.tables[Mt];return Ht?Ht.map(Pt=>({label:Pt,kind:Et.languages.CompletionItemKind.Field,insertText:Pt})):[]};function Dt(Mt,Et,Ht,Pt,dt){let gt=Et.getWordUntilPosition(Ht),zt={startLineNumber:Ht.lineNumber,endLineNumber:Ht.lineNumber,startColumn:gt.startColumn,endColumn:gt.endColumn},re=Pt.map(Zt=>({label:Zt,kind:Mt.languages.CompletionItemKind.Keyword,insertText:Zt,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:zt}));return dt.map(Zt=>{re.push(rt(st({},Zt),{range:zt}))}),re}var Ut=Mt=>{ct.languages.map(dt=>(Mt.languages.registerDocumentFormattingEditProvider(dt,{provideDocumentFormattingEdits(gt,zt,re){return ut(this,null,function*(){const Zt=Bt()(gt.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:gt.getFullModelRange(),text:Zt}]})}}),dt));const Et=Nt.quickKey.map(dt=>({label:dt.label,kind:Mt.languages.CompletionItemKind.Method,insertText:dt.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ht=Wt.quickKey.map(dt=>({label:dt.label,kind:Mt.languages.CompletionItemKind.Method,insertText:dt.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Pt=Yt.quickKey.map(dt=>({label:dt.label,kind:Mt.languages.CompletionItemKind.Method,insertText:dt.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Mt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(zt.startColumn-2,zt.endColumn);return{suggestions:[...Nt.keywords.map(ye=>({label:ye,kind:Mt.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...Nt.quickKey.map(ye=>({label:ye.label,kind:Mt.languages.CompletionItemKind.Function,documentation:ye.content,insertText:Zt.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn};return{suggestions:[...Vt.keywords.map(Zt=>({label:Zt,kind:Mt.languages.CompletionItemKind.Function,documentation:Zt,insertText:Zt,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(zt.startColumn-2,zt.endColumn);return{suggestions:[...Yt.keywords.map(ye=>({label:ye,kind:Mt.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...Yt.quickKey.map(ye=>({label:ye.label,kind:Mt.languages.CompletionItemKind.Function,documentation:ye.content,insertText:Zt.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(zt.startColumn-2,zt.endColumn);return{suggestions:[...xt.keywords.map(ye=>({label:ye,kind:Mt.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...xt.quickKey.map(ye=>({label:ye.label,kind:Mt.languages.CompletionItemKind.Function,documentation:ye.content,insertText:Zt.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(zt.startColumn-2,zt.endColumn);return{suggestions:[...Wt.keywords.map(ye=>({label:ye,kind:Mt.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...Wt.quickKey.map(ye=>({label:ye.label,kind:Mt.languages.CompletionItemKind.Function,documentation:ye.content,insertText:Zt.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}})};const Ft="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Qt=Object.defineProperty,$t=(Mt,Et,Ht)=>Et in Mt?Qt(Mt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[Et]=Ht,Kt=(Mt,Et,Ht)=>$t(Mt,typeof Et!="symbol"?Et+"":Et,Ht);const ue=class mx{constructor(Et,Ht,Pt){this.placeholder=Et,this.editor=Ht,this.monaco=Pt,Ht.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)}};Kt(ue,"ID","editor.widget.placeholderHint");var we=ue,Se=Gt(96236),Ne=Gt(8591),pe=Gt(6848),Ue=Gt(89392),de=Gt(86766),Jt=Gt(56102),ee=Object.defineProperty,ae=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,en=(Mt,Et,Ht)=>Et in Mt?ee(Mt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[Et]=Ht,We=(Mt,Et)=>{for(var Ht in Et||(Et={}))De.call(Et,Ht)&&en(Mt,Ht,Et[Ht]);if(se)for(var Ht of se(Et))Oe.call(Et,Ht)&&en(Mt,Ht,Et[Ht]);return Mt},rn=(Mt,Et)=>ae(Mt,fe(Et)),ke=(Mt,Et)=>{var Ht={};for(var Pt in Mt)De.call(Mt,Pt)&&Et.indexOf(Pt)<0&&(Ht[Pt]=Mt[Pt]);if(Mt!=null&&se)for(var Pt of se(Mt))Et.indexOf(Pt)<0&&Oe.call(Mt,Pt)&&(Ht[Pt]=Mt[Pt]);return Ht},Ie=(Mt,Et,Ht)=>new Promise((Pt,dt)=>{var gt=Zt=>{try{re(Ht.next(Zt))}catch(ye){dt(ye)}},zt=Zt=>{try{re(Ht.throw(Zt))}catch(ye){dt(ye)}},re=Zt=>Zt.done?Pt(Zt.value):Promise.resolve(Zt.value).then(gt,zt);re((Ht=Ht.apply(Mt,Et)).next())});function je(Mt){return/^\d+$/.test(Mt)?`${Mt}px`:Mt}function $e(){}let me=!1;const le={"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 Ee(Mt=[]){let Et=Mt;if(Array.isArray(Mt)){for(let Ht=0;Ht{var Et=Mt,{width:Ht="100%",height:Pt="100%",value:dt,language:gt="javascript",style:zt={},options:re={},overrideServices:Zt={},theme:ye="vs-dark",onEditBlur:Ye,isCopy:sn=!1,onSave:Le,autoHeight:Re=!1,forbidCopy:hn=!1,onChange:wn=$e,editorDidMount:kn=$e,onFocus:Rn=$e,onBreakPoint:Yn=$e,breakPointValue:Kn=[],filename:li="educoder.txt",errorLine:mi,errorContent:yi="",highlightLine:Pi,openBreakPoint:Mi=!1,placeholder:Gi=""}=Et,bi=ke(Et,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const Ki=(0,Rt.useRef)(),ui=(0,Rt.useRef)({}),te=(0,Rt.useRef)(),Yi=(0,Rt.useRef)(),Ti=(0,Rt.useRef)([]),or=(0,Rt.useRef)(!1),Sr=(0,Rt.useRef)(),Er=(0,Rt.useRef)(),vr=(0,Rt.useRef)(!1),[qn,tn]=(0,Rt.useState)(!1);function nn(){let Ke;return Ki.current&&(Ke=new yt.Z(cn=>{for(let _e of cn)(_e.target.offsetHeight>0||_e.target.offsetWidth>0)&&ui.current.instance.layout()}),Ke.observe(Ki.current)),Ke}function Qe(){Ne.ZP.warning({content:decodeURIComponent(Ft),key:"monaco-editor-tip"})}const Fe=()=>{let Ke=ui.current.instance;if(dt!=null&&Ke&&qn){const cn=Ke.getModel();cn&&dt!==cn.getValue()&&(me=!0,cn.setValue(dt),Ke.layout(),me=!1)}};(0,Rt.useEffect)(()=>{const Ke=de.Z.subscribe("formatDocument",cn=>{var _e;let on=ui.current.instance;(_e=on==null?void 0:on.getAction)==null||_e.call(on,"editor.action.formatDocument").run()});return window.updateMonacoValue=cn=>{wn(cn)},Ke},[]),(0,Rt.useEffect)(()=>{var Ke;let cn=ui.current.instance;Yi.current&&clearTimeout(Yi.current),Yi.current=setTimeout(()=>{Fe()},500),dt&&(dt!=null&&dt.length)&&((Ke=cn==null?void 0:cn.updateOptions)==null||Ke.call(cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(dt.split(/\r\n|\r|\n/g).length))+3,5)}))},[dt,qn,ui.current]),(0,Rt.useEffect)(()=>{if(mi&&ui.current&&ui.current.instance){let cn=ui.current.instance;cn.changeViewZones(function(_e){var on=document.createElement("div");on.style.padding="10px 20px",on.style.width="calc(100% - 20px)",on.className="my-error-line-wrp",on.innerHTML=yi,_e.addZone({afterLineNumber:mi||11,heightInLines:3,domNode:on})});var Ke={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(Ke),cn.revealPositionInCenter({lineNumber:20,column:1})}},[mi,ui.current,qn]);const vn=(Ke="",cn)=>{if(!Ke||Ke.trim()==="")return!0;const on=ui.current.instance.getModel().getLineTokens(cn);let dn=!1;for(let ln=0;ln<2;ln++)on.getStandardTokenType(ln)===1&&(dn=!0);return dn};(0,Rt.useEffect)(()=>{var Ke;const cn=(Ke=ui.current)==null?void 0:Ke.instance;if(cn&&qn&&hn){const _e=cn.onDidBlurEditorWidget(()=>{vr.current=!1}),on=cn.onDidFocusEditorText(()=>{vr.current=!0});return()=>{_e.dispose(),on.dispose()}}},[ui.current,qn,hn]),(0,Rt.useEffect)(()=>{var Ke;if((Ke=ui.current)!=null&&Ke.instance&&qn&&Mi){let cn=ui.current.instance,_e=cn.getModel();if(!_e)return;(()=>{var ii;let qe=[],Xn=[];const ti=_e.getAllDecorations();for(let Li of ti)Li.options.className==="highlighted-line"&&(qe.push((ii=Li==null?void 0:Li.range)==null?void 0:ii.startLineNumber),Xn.push(Li==null?void 0:Li.id));if(Pi===qe[0])return;_e.deltaDecorations(Xn,[]);const Qn=_e.getLineCount();Pi&&Pi<=Qn&&(cn.deltaDecorations([],[{range:new ce.Range(Pi,1,Pi,_e.getLineMaxColumn(Pi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),cn.revealLineInCenter(Pi))})();const dn=(ii=!1)=>{var qe;let Xn=[],ti=[];const Qn=_e.getAllDecorations();for(let Li of Qn)Li.options.linesDecorationsClassName==="breakpoints-select"&&(Xn.push((qe=Li==null?void 0:Li.range)==null?void 0:qe.startLineNumber),ti.push(Li==null?void 0:Li.id));if(ii)return{lines:Xn,ids:ti};Yn(Xn)},ln=ii=>Ie(void 0,null,function*(){let qe={range:new ce.Range(ii,1,ii,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield _e.deltaDecorations([],[qe]),dn()}),xn=ii=>Ie(void 0,null,function*(){let qe=[];const Xn=cn.getLineDecorations(ii);for(let ti of Xn)ti.options.linesDecorationsClassName==="breakpoints-select"&&qe.push(ti.id);yield _e.deltaDecorations(qe,[]),dn()}),yn=ii=>{let qe=cn.getLineDecorations(ii);for(let Xn of qe)if(Xn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ue.isEqual)(Kn,dn(!0).lines)){_e.deltaDecorations(dn(!0).ids,[]);const ii=Kn.map(qe=>({range:new ce.Range(qe,1,qe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));_e.deltaDecorations([],ii)}const Mn=cn.onDidChangeModelContent(ii=>{let qe=cn.getPosition();if(qe){let Xn=qe.lineNumber;clearTimeout(Er.current),Er.current=setTimeout(()=>{vn(_e.getLineContent(Xn),Xn)?xn(Xn):yn(Xn)?(xn(Xn),ln(Xn)):dn()},100)}}),On=cn.onMouseDown(ii=>{var qe,Xn,ti;if(ii.target.detail&&((ti=(Xn=(qe=ii.target)==null?void 0:qe.element)==null?void 0:Xn.className)!=null&&ti.includes("line-numbers"))){let Qn=ii.target.position.lineNumber;if(vn(_e.getLineContent(Qn),Qn))return;yn(Qn)?xn(Qn):ln(Qn)}}),En=ii=>{let qe={range:new ce.Range(ii,1,ii,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ti.current=cn.deltaDecorations(Ti.current,[qe])},jn=()=>{Ti.current=cn.deltaDecorations(Ti.current,[])},ei=cn.onMouseMove(ii=>{var qe,Xn,ti;if(jn(),ii.target.detail&&((ti=(Xn=(qe=ii.target)==null?void 0:qe.element)==null?void 0:Xn.className)!=null&&ti.includes("line-numbers"))){let Qn=ii.target.position.lineNumber;if(vn(_e.getLineContent(Qn),Qn))return;En(Qn)}}),pi=cn.onMouseLeave(()=>{jn()});return()=>{Mn.dispose(),On.dispose(),ei.dispose(),pi.dispose()}}},[ui.current,qn,Kn,Pi,Mi,gt]),(0,Rt.useEffect)(()=>{var Ke;(Ke=ui.current)!=null&&Ke.instance&&Mi&&ui.current.instance.setPosition({lineNumber:0,column:0})},[Pi]);function bn(){let Ke=ui.current.instance;if(Ke){const cn=Ke.getSelection(),_e=ui.current.pastePos||{},on=new ce.Range(_e.startLineNumber||cn.endLineNumber,_e.startColumn||cn.endColumn,_e.endLineNumber||cn.endLineNumber,_e.endColumn||cn.endColumn);setTimeout(()=>{Ke.executeEdits("",[{range:on,text:""}])},300)}}function Ze(Ke){(window.navigator.platform.match("Mac")?Ke.metaKey:Ke.ctrlKey)&&Ke.keyCode==83&&(Ke.preventDefault(),Le())}const Ae=()=>{if(Re&&ui.current.instance){const Ke=ui.current.instance.getContentHeight();fn(Ke{if(!vr.current)return;const{keyCode:cn,ctrlKey:_e,metaKey:on,target:dn,type:ln}=Ke;return(ln==="paste"||(cn===67||cn===86)&&(on||_e))&&dn.nodeName==="TEXTAREA"&&(Qe(),Ke.preventDefault()),!1};function Un(Ke,cn){var _e=window.URL||window.webkitURL||window,on=new Blob([cn]),dn=document.createElementNS("http://www.w3.org/1999/xhtml","a");dn.href=_e.createObjectURL(on),dn.download=Ke,gn(dn)}(0,Rt.useEffect)(()=>{Ae()},[Ae]),(0,Rt.useEffect)(()=>{Ki.current&&!qn&&Promise.all([Gt.e(8909),Gt.e(1810)]).then(Gt.bind(Gt,71448)).then(Ke=>{try{ce=Ke,ui.current.instance=ce.editor.create(Ki.current,{value:dt,language:Ee(gt),theme:ye,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Zt);const cn=ui.current.instance;let dn=[...Se.BH._menuItems].find(Mn=>Mn[0]._debugName=="EditorContext")[1],ln=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xn=(Mn,On)=>{var En,jn;let ei=Mn._first;do On.includes((jn=(En=ei.element)==null?void 0:En.command)==null?void 0:jn.id)&&Mn._remove(ei);while(ei=ei.next)};if(kn(cn,ce),setTimeout(()=>{Ae(),ui.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Un(li||"educoder.txt",cn.getValue())}})},500),ui.current.subscription=cn.onDidChangeModelContent(Mn=>{or.current?clearTimeout(Sr.current):(Ae(),wn(cn.getValue(),Mn)),Sr.current=setTimeout(()=>{or.current=!1},500)}),window.Monaco||Ut(ce,Ee(gt)),hn&&(xn(dn,ln),Ki.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Pn),window.removeEventListener("paste",Pn),window.addEventListener("keydown",Pn),window.addEventListener("paste",Pn)),window.Monaco=ce,Ye&&cn.onDidBlurEditorWidget(()=>{Ye(cn.getValue())}),Rn&&cn.onDidFocusEditorText(()=>{Rn(cn.getValue())}),hn)try{cn.onDidPaste(Mn=>{const On=cn.getSelection(),En=ui.current.pastePos||{},jn=new ce.Range(En.startLineNumber||On.endLineNumber,En.startColumn||On.endColumn,En.endLineNumber||On.endLineNumber,En.endColumn||On.endColumn);cn.executeEdits("",[{range:Mn.range,text:""}])})}catch(Mn){}let yn=nn();return Gi&&typeof Gi=="string"&&new we(Gi,cn,ce),tn(!0),()=>{const Mn=ui.current.instance;Mn.dispose();const On=Mn.getModel();On&&On.dispose(),ui.current.subscription&&ui.current.subscription.dispose(),yn.unobserve(Ki.current)}}catch(cn){}})},[]),(0,Rt.useEffect)(()=>{if(ui.current.instance&&qn)return document.addEventListener("keydown",Ze,!1),()=>{document.removeEventListener("keydown",Ze)}},[Le,qn]),(0,Rt.useEffect)(()=>{let Ke=ui.current.instance;if(Ke&&qn){let cn=Ee(gt);ce.editor.setModelLanguage(Ke.getModel(),cn)}},[gt,qn]),(0,Rt.useEffect)(()=>{ui.current.instance&&qn&&ce.editor.setTheme(ye)},[ye,qn]),(0,Rt.useEffect)(()=>{let Ke=ui.current.instance;te.current=re,Ke&&qn&&(Ke.updateOptions(We({},re)),setTimeout(()=>{Ke.getModel().updateOptions(We({},re))},200))},[JSON.stringify(re),qn]),(0,Rt.useEffect)(()=>{let Ke=ui.current.instance;Ke&&qn&&Ke.layout()},[Ht,Pt,qn]);const[mn,Me]=(0,Rt.useState)(je(Ht)),[Ge,fn]=(0,Rt.useState)(je(Pt)),In=rn(We({},zt),{width:mn,height:Ge,position:"relative"});return Rt.createElement("div",{className:"my-monaco-editor",ref:Ki,style:In},sn&&Rt.createElement(Jt.CopyToClipboard,{text:dt,onCopy:()=>Ne.ZP.success("\u590D\u5236\u6210\u529F")},Rt.createElement(pe.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 _t({width:Mt="100%",height:Et="100%",original:Ht,modified:Pt,language:dt,options:gt={}}){const zt=(0,Rt.useRef)(),[re,Zt]=(0,Rt.useState)(null);function ye(Re){let hn;return zt.current&&(hn=new yt.Z(wn=>{for(let kn of wn)(kn.target.offsetHeight>0||kn.target.offsetWidth>0)&&Re.layout()}),hn.observe(zt.current)),hn}(0,Rt.useEffect)(()=>(zt.current&&Promise.all([Gt.e(8909),Gt.e(9404)]).then(Gt.bind(Gt,2550)).then(Re=>{ce=Re;const hn=ce.editor.createDiffEditor(zt.current,rn(We({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},gt),{wordWrap:!0}));Zt(hn);let wn=ye(hn);return()=>{hn.dispose();const kn=hn.getModel();kn&&kn.dispose(),wn.unobserve(zt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Rt.useEffect)(()=>{re&&re.setModel({original:ce.editor.createModel(Ht,dt),modified:ce.editor.createModel(Pt,dt)})},[Ht,Pt,dt,re]);const Ye=je(Mt),sn=je(Et),Le={width:Ye,height:sn};return Rt.createElement("div",{className:"my-diff-editor",ref:zt,style:Le})}},94606:function(Nn,An,Gt){"use strict";Gt.d(An,{jL:function(){return Nt},w9:function(){return De},QD:function(){return wn},cQ:function(){return Jt},op:function(){return ye},O5:function(){return vr},_b:function(){return mi},t7:function(){return rt},Gi:function(){return Ie},YG:function(){return rn},qp:function(){return bt},vr:function(){return Yn},qE:function(){return Le},Je:function(){return pt},wb:function(){return Se},cq:function(){return ce},tp:function(){return vt}});var Rt=Gt(59301),yt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Vt="data:image/png;base64,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",Nt=({dataSource:qn=[],img:tn,imgWidth:nn=346,title:Qe,sunTitle:Fe,bannerExtraContent:vn})=>Rt.createElement("div",{className:yt.banner},Rt.createElement("div",{className:yt.content},Rt.createElement("aside",null,Rt.createElement("p",null,Rt.createElement("b",null,Qe),Rt.createElement("span",null,Fe)),qn.length>0&&Rt.createElement("div",{className:yt.btns},qn.map((bn,Ze)=>Rt.createElement("div",{key:Ze,onClick:bn.click},bn.name,bn.sign?Rt.createElement("img",{src:Vt,width:39}):null))),vn),tn&&Rt.createElement("img",{style:{marginTop:33,marginRight:38},src:tn,width:nn}))),Wt={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},xt=Gt(92310),Ot=Gt.n(xt),Bt=Gt(89392),bt=({dataSource:qn=[],value:tn,onChange:nn,onTitleChange:Qe,className:Fe,title:vn,titleWidth:bn=41,style:Ze={},fontColor:Ae="#6A7283",showCount:gn})=>{const[Pn,Un]=(0,Rt.useState)(0),[mn,Me]=(0,Rt.useState)(!1),Ge=(0,Rt.useRef)(null),fn=(0,Rt.useRef)(null);return(0,Rt.useEffect)(()=>{var In;qn.length!==0&&(((In=Ge==null?void 0:Ge.current)==null?void 0:In.clientHeight)>97?Un(1):Un(0)),qn.length===0&&Un(0),Me(!1)},[qn]),Rt.createElement("div",{className:Ot()(Wt.row,Fe),style:Ze},Rt.createElement("div",{onClick:(0,Bt.throttle)(()=>Qe==null?void 0:Qe(),2e3),style:{width:bn,marginTop:mn?12:4},className:`${Wt.title} ${Qe?"current":""}`},vn),Rt.createElement("div",{className:mn?`${Wt.tagsWrap} ${Wt.tagsBorderWrap}`:Wt.tagsWrap},Rt.createElement("div",{className:Wt.bar,ref:fn,style:Pn>0?{height:Pn===1?97:"auto",overflow:Pn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Rt.createElement("div",{className:Wt.tag,ref:Ge},qn==null?void 0:qn.map(In=>Rt.createElement("span",{onClick:()=>nn(In.id),key:In.id,style:{color:Ae},className:tn===In.id?Wt.active:""},Rt.createElement("span",{title:In.name,className:Wt.name},In.name),!!gn&&Rt.createElement("span",{className:Wt.num},In.count))))),!!Pn&&Rt.createElement(Rt.Fragment,null,Pn===1?Rt.createElement("div",{onClick:()=>{var In;Un(2),((In=Ge==null?void 0:Ge.current)==null?void 0:In.clientHeight)>245?Me(!0):Me(!1)},className:Wt.action},"\u5C55\u5F00",Rt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Rt.createElement("div",{onClick:()=>{fn.current.scrollTop=0,Un(1),Me(!1)},className:Wt.action},"\u6536\u8D77",Rt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Tt={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},vt=({dataSource:qn=[],value:tn,onChange:nn,className:Qe,style:Fe={}})=>Rt.createElement("div",{style:Fe,className:Ot()(Tt.tabs,Qe)},qn.map(vn=>Rt.createElement("span",{onClick:()=>nn(vn.id),className:tn===vn.id?Tt.active:"",key:vn.id},vn.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},tt=Gt(92832),rt=({dataSource:qn=[],value:tn="",onChange:nn,onInputChange:Qe=()=>{},className:Fe,style:vn={},placeholder:bn,allowClear:Ze=!1})=>{var Ae;const[gn,Pn]=(0,Rt.useState)(""),[Un,mn]=(0,Rt.useState)("");(0,Rt.useEffect)(()=>{var fn;let In=tn;(fn=JSON.stringify(tn))!=null&&fn.includes("{")&&(Pn(tn.id),In=tn.value||"");try{mn(decodeURIComponent(In||""))}catch(Ke){mn(decodeURIComponent(In||""))}},[tn]);const Me=()=>{nn(encodeURIComponent(Un),gn||null)},Ge=fn=>{fn!==gn&&(Pn(fn),nn(encodeURIComponent(Un),fn))};return Rt.createElement("div",{className:Ot()(et.input,Fe),style:vn},!!qn.length&&Rt.createElement("div",{className:et.dropdown},Rt.createElement("div",{className:et.text},(Ae=qn.find(fn=>fn.id===gn))==null?void 0:Ae.name,Rt.createElement("i",{className:"iconfont icon-zhankai4"}),Rt.createElement("b",{className:et.b1}),Rt.createElement("b",{className:et.b2})),Rt.createElement("div",{className:et.menu},qn.map((fn,In)=>Rt.createElement("div",{key:In,onClick:()=>Ge(fn.id)},fn.name)))),Rt.createElement(tt.default,{onPressEnter:Me,value:Un,onChange:fn=>{mn(fn.target.value),Qe(encodeURIComponent(fn.target.value),gn||null)},bordered:!1,placeholder:bn}),Rt.createElement("i",{onClick:Me,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},pt=({value:qn,onChange:tn,className:nn,total:Qe,pageSize:Fe,style:vn={}})=>{const bn=qn<2,Ze=qn>=Math.ceil(Qe/Fe);return Qe<=Fe?Rt.createElement(Rt.Fragment,null):Rt.createElement("div",{className:Ot()(ut.quickPager,nn),style:vn},Rt.createElement("div",{onClick:()=>{bn||tn(qn-1,"prev")},className:bn?ut.disabled:""},"\u4E0A\u4E00\u9875"),Rt.createElement("div",{onClick:()=>{Ze||tn(qn+1,"next")},className:Ze?ut.disabled:""},"\u4E0B\u4E00\u9875"))},mt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ct=Gt(71418),Dt=Gt(6848),Ut=Gt(39978),Ft=Gt(10148),Qt=Gt(58130),$t=Gt(96908),Kt=Gt(57177),ue=Gt(81378),oe=Gt(97267),Se=({className:qn,dataSource:tn=[],col:nn=4,right:Qe,bottom:Fe=23,precision:vn=0,wrapWidth:bn=1200,trackEventItems:Ze,loading:Ae})=>{const gn=Math.floor((bn-(nn-1)*Qe)/nn);return Rt.createElement(Ct.Z,{spinning:Ae},Rt.createElement("div",{className:Ot()(mt.list,qn)},!!tn.length&&tn.map((Pn,Un)=>{const{name:mn,id:Me,identifier:Ge,power:fn,cover_image_id:In,pic:Ke}=Pn;return Rt.createElement("div",{className:mt.wrap,key:Me,style:{width:gn,marginRight:(1+Un)%nn===0?0:Qe+vn,marginBottom:Fe}},Rt.createElement("a",{target:"_blank",href:`/shixuns/${Ge}/challenges`,className:mt.li,onClick:cn=>{cn.preventDefault(),Ze&&(0,Qt.L9)([Ze]),fn&&(0,Qt.xg)(`/shixuns/${Ge}/challenges`)}},Rt.createElement("div",{className:mt.img},Rt.createElement("img",{className:mt.cover,src:`${Ke}`}),Pn.is_jupyter&&Rt.createElement("img",{className:mt.sign,src:$t}),Pn.is_jupyter_lab&&Rt.createElement("img",{className:mt.sign,src:Kt}),Pn.is_unity_3d&&Rt.createElement("img",{className:mt.sign,src:ue})),Rt.createElement("div",{className:mt.name},Rt.createElement(Dt.Z,{title:mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Rt.createElement("span",{className:mt.e},mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Rt.createElement("div",{className:mt.tags},Rt.createElement(Dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Rt.createElement("span",null,Rt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Rt.createElement("span",null,Pn.challenges_count))),!!Pn.myshixuns_count&&Rt.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Rt.createElement("span",null,Rt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Rt.createElement("span",null,Pn.myshixuns_count))),Rt.createElement(Dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Rt.createElement("span",null,Rt.createElement("span",null,Pn.level))),Rt.createElement("div",{className:mt.rate},Rt.createElement(Ut.Z,{allowHalf:!0,disabled:!0,defaultValue:Pn.score_info}),Rt.createElement("span",null,"\xA0",Pn.score_info?`${Pn.score_info}\u5206`:"5\u5206")))),!fn&&Rt.createElement("div",{className:mt.lockWrap},Rt.createElement("img",{src:`${Ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Rt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!tn.length&&Rt.createElement(oe.Z,null)))},Ne={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},pe=Gt(2119),Ue=Gt(59301),Jt=({className:qn,dataSource:tn=[],col:nn=4,right:Qe,bottom:Fe=23,precision:vn=0,wrapWidth:bn=1200,trackEventItems:Ze,loading:Ae,onRemove:gn=()=>{},isCurrent:Pn=!0,showAlias:Un=!1})=>{const mn=Math.floor((bn-(nn-1)*Qe)/nn),Me=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return Ue.createElement(Ct.Z,{spinning:Ae},Ue.createElement("div",{className:Ot()(Ne.list,qn)},!!(tn!=null&&tn.length)&&(tn==null?void 0:tn.map((Ge,fn)=>{var In;const{name:Ke,id:cn,identifier:_e,featured:on,school_name:dn,image_url:ln,excellent:xn,is_plan:yn}=Ge;return Ue.createElement("div",{key:cn,className:Ne.wrap,style:{width:mn,marginRight:(1+fn)%nn===0?0:Qe+vn,marginBottom:Fe}},Ue.createElement("a",{className:Ne.li,onClick:Mn=>{Mn.preventDefault(),Mn.stopPropagation(),Ze&&(0,Qt.L9)([Ze]),(0,Qt.xg)(`/paths/${_e}`)}},Ue.createElement("div",{className:Ne.img},Ue.createElement("img",{className:Ne.cover,src:`${ln}`}),Pn&&(0,pe.bg)()&&(Ge==null?void 0:Ge.studying)&&Ue.createElement("div",{className:`${Ne.movebq} user-path-items`,onClick:Mn=>{Mn.stopPropagation(),gn(Ge)}},Ue.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ue.createElement("span",{className:"c-red"},"\u79FB\u9664")),(In=Ge==null?void 0:Ge.subject_tags)==null?void 0:In.map((Mn,On)=>{var En,jn;if(On===0){const pi=(En=Me.find(ii=>ii.name==Mn))==null?void 0:En.swimg;return Ue.createElement("img",{className:Ne.sign,src:pi,style:{left:"-4px"}})}const ei=(jn=Me.find(pi=>pi.name==Mn))==null?void 0:jn.ptimg;return Ue.createElement("img",{className:Ne.sign,src:ei,style:{left:`${48+52*(On-1)+2*On}px`}})}),Ue.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ge==null?void 0:Ge.excellent)&&Ue.createElement("div",{className:Ne.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ue.createElement("div",{className:Ne.name},Ue.createElement(Dt.Z,{title:Un&&(Ge!=null&&Ge.excellent_alias_name)?Ue.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ke}`,Ue.createElement("br",null),Ue.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ge==null?void 0:Ge.excellent_alias_name}`)):Ke},Ue.createElement("span",{className:Ne.e},Un&&(Ge==null?void 0:Ge.excellent_alias_name)||Ke))),Ue.createElement(Dt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${dn}`},Ue.createElement("div",{className:Ne.unit},Ue.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),dn)),Ue.createElement("div",{className:Ne.tags},Ue.createElement("div",null,Ue.createElement(Dt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ue.createElement("span",null,Ge.stages_count))),Ue.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ue.createElement("span",null,Ge.members_count)))))))})),!tn.length&&Ue.createElement(oe.Z,null)))},ee={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ae="data:image/png;base64,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",fe=Gt(59301),De=({className:qn,dataSource:tn=[],col:nn=4,right:Qe,bottom:Fe=23,precision:vn=0,wrapWidth:bn=1200,trackEventItems:Ze,loading:Ae})=>{const gn=Math.floor((bn-(nn-1)*Qe)/nn);return fe.createElement(Ct.Z,{spinning:Ae},fe.createElement("div",{className:Ot()(ee.list,qn)},!!tn.length&&tn.map((Pn,Un)=>{const{subject_identifier:mn,id:Me,identifier:Ge,power:fn}=Pn,In=Pn.is_public!=0&&Pn.is_public;return fe.createElement("div",{className:ee.wrap,key:Me,style:{width:gn,marginRight:(1+Un)%nn===0?0:Qe+vn,marginBottom:Fe}},fe.createElement("a",{className:ee.li,onClick:Ke=>{Ke.preventDefault(),Ze&&(0,Qt.L9)([Ze]),(0,Qt.xg)(Pn.first_category_url)}},fe.createElement("div",{className:ee.top},fe.createElement(Dt.Z,{title:Pn.name},fe.createElement("div",{className:ee.name},Pn.name)),fe.createElement("img",{className:ee.img,src:Ft.Z.IMG_SERVER+"/images/"+Pn.avatar_url}),fe.createElement("div",{className:ee.text,title:Pn.creator},Pn.creator),mn&&fe.createElement("div",{className:ee.btns},fe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),fe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),In&&fe.createElement("div",{className:ee.sign},"\u516C\u5F00")),fe.createElement("div",{className:ee.bottom},Pn.visits>0&&fe.createElement(Dt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},fe.createElement("span",null,fe.createElement("i",{className:"iconfont icon-liulanyan"}),fe.createElement("span",null,Pn.visits))),Pn.course_members_count>0&&fe.createElement(Dt.Z,{title:"\u6210\u5458",placement:"bottom"},fe.createElement("span",null,fe.createElement("i",{className:"iconfont icon-chengyuan"}),Pn.course_members_count)),Pn.tasks_count>0&&fe.createElement(Dt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},fe.createElement("span",null,fe.createElement("i",{className:"iconfont icon-zuoye"}),Pn.tasks_count)),Pn.is_end?fe.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):fe.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Pn.is_accessible&&fe.createElement("div",{className:ee.lockWrap},fe.createElement("img",{src:`${Ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),fe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!tn.length&&fe.createElement(oe.Z,null)))},Oe={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},en=Gt(42203),rn=({dataSource:qn=[],value:tn,onChange:nn,className:Qe,style:Fe={},tabBarExtraContent:vn})=>Rt.createElement("div",{className:Ot()(Oe.tabs,Qe),style:Fe},Rt.createElement("div",{className:Oe.tabsWrap},qn.map((bn,Ze)=>Rt.createElement("aside",{className:Oe.tab,onClick:()=>{nn(bn.id),bn.link&&en.history.push(bn.link)},key:Ze},Rt.createElement("div",{className:tn===bn.id?Oe.active:""},bn.name),(bn==null?void 0:bn.resetCount)==null&&(bn==null?void 0:bn.total)!==void 0&&Rt.createElement("span",null,"\uFF08",bn==null?void 0:bn.total,"\uFF09"),(bn==null?void 0:bn.resetCount)!==void 0&&(bn==null?void 0:bn.total)!==void 0&&Rt.createElement(Dt.Z,{title:(bn==null?void 0:bn.tip)!=null?bn==null?void 0:bn.tip:""},Rt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Rt.createElement("span",{style:{color:"#000"}},bn==null?void 0:bn.resetCount),"/",Rt.createElement("span",null,bn==null?void 0:bn.total),"\uFF09"))))),Rt.createElement("div",{className:Oe.tabBar},vn)),Ie=({className:qn,style:tn={},children:nn})=>Rt.createElement("div",{className:Ot()(qn),style:tn},nn),je={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},$e=Gt(38854),me=Gt(20834);const le=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ce=({sortValue:qn,dropValue:tn,className:nn,onSort:Qe,onDrop:Fe,dataSource:vn=le})=>{var bn;return Rt.createElement("div",{className:Ot()(je.orderWrap,nn)},Rt.createElement($e.Z,{dropdownRender:()=>Rt.createElement(me.default,null,vn.map((Ze,Ae)=>Rt.createElement(me.default.Item,{key:Ae,onClick:()=>Fe(Ze.id)},Ze.name)))},Rt.createElement("span",{className:je.orderTextWrap},(bn=vn.find(Ze=>tn===Ze.id))==null?void 0:bn.name)),Rt.createElement("span",{className:je.orderIconWrap},Rt.createElement("span",{className:je.orderAsc},Rt.createElement("i",{className:qn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${je.cursorPointer} ${je.active}`:`iconfont icon-sanjiaoxing-up font12 ${je.cursorPointer}`,onClick:()=>Qe(qn==="asc"?"desc":"asc")})),Rt.createElement("span",{className:je.orderDesc},Rt.createElement("i",{className:qn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${je.cursorPointer} ${je.active}`:`iconfont icon-sanjiaoxing-down font12 ${je.cursorPointer}`,onClick:()=>Qe(qn==="asc"?"desc":"asc")}))))},he={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},_t=Gt(3113),Mt=Object.defineProperty,Et=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,dt=(qn,tn,nn)=>tn in qn?Mt(qn,tn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):qn[tn]=nn,gt=(qn,tn)=>{for(var nn in tn||(tn={}))Ht.call(tn,nn)&&dt(qn,nn,tn[nn]);if(Et)for(var nn of Et(tn))Pt.call(tn,nn)&&dt(qn,nn,tn[nn]);return qn},zt=(qn,tn)=>{var nn={};for(var Qe in qn)Ht.call(qn,Qe)&&tn.indexOf(Qe)<0&&(nn[Qe]=qn[Qe]);if(qn!=null&&Et)for(var Qe of Et(qn))tn.indexOf(Qe)<0&&Pt.call(qn,Qe)&&(nn[Qe]=qn[Qe]);return nn},re=(qn,tn,nn)=>new Promise((Qe,Fe)=>{var vn=Ae=>{try{Ze(nn.next(Ae))}catch(gn){Fe(gn)}},bn=Ae=>{try{Ze(nn.throw(Ae))}catch(gn){Fe(gn)}},Ze=Ae=>Ae.done?Qe(Ae.value):Promise.resolve(Ae.value).then(vn,bn);Ze((nn=nn.apply(qn,tn)).next())}),ye=qn=>{var tn=qn,{className:nn,style:Qe,children:Fe,loading:vn=!1,openLoading:bn,onClick:Ze=()=>{},size:Ae="middle",shape:gn="round"}=tn,Pn=zt(tn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Un,mn]=(0,Rt.useState)(!1);return Rt.createElement(_t.ZP,gt({onClick:(0,Bt.throttle)(Me=>re(void 0,null,function*(){bn&&mn(!0);try{yield Ze(Me)}catch(Ge){console.log("error",Ge)}bn&&mn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ot()(he.btn,he[`${Ae}-${gn}`],nn),style:Qe,size:Ae,shape:gn,loading:Un||vn},Pn),Fe)},Ye={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Le=({className:qn,style:tn,children:nn=null,onClick:Qe,title:Fe})=>Rt.createElement("div",{className:Ot()(Ye.head,qn),style:tn},Rt.createElement("span",{className:"primary-hover",onClick:Qe},Rt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Rt.createElement("b",{title:Fe},Fe),Rt.createElement("div",{className:Ye.node},nn)),Re={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},wn=({confirmShow:qn=!0,confirmTitle:tn,confirmClick:nn,cancelShow:Qe=!0,cancelTitle:Fe,cancelClick:vn,className:bn,style:Ze,confirmLoading:Ae=!1})=>Rt.createElement("div",{className:Ot()(Re.btns,bn),style:Ze},qn&&Rt.createElement(_t.ZP,{loading:Ae,onClick:nn,type:"primary",className:Re.confirm},tn),Qe&&Rt.createElement(_t.ZP,{onClick:vn,className:Re.cancel},Fe)),kn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Yn=({className:qn,style:tn={},LeftContent:nn,children:Qe,RightContent:Fe})=>Rt.createElement("div",{className:Ot()(kn.fixedBottom,qn),style:tn},Rt.createElement("div",{className:kn.wrap},Rt.createElement("div",{className:kn.left},nn),Rt.createElement("div",{className:kn.center},Qe),Rt.createElement("div",{className:kn.right},Fe))),Kn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},mi=({className:qn,style:tn={},dataSource:nn=[]})=>Rt.createElement("div",{className:Ot()(Kn.crumbs,qn),style:tn},nn.map((Qe,Fe)=>Feen.history.push(Qe.path)},Qe.name):Rt.createElement("span",null,Qe.name),Rt.createElement("span",null,"\xA0",">","\xA0")):Rt.createElement("span",{key:Fe,style:{color:"#5F6368"}},Qe.name))),yi=Gt(31797),Pi=Object.defineProperty,Mi=Object.defineProperties,Gi=Object.getOwnPropertyDescriptors,bi=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,te=(qn,tn,nn)=>tn in qn?Pi(qn,tn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):qn[tn]=nn,Yi=(qn,tn)=>{for(var nn in tn||(tn={}))Ki.call(tn,nn)&&te(qn,nn,tn[nn]);if(bi)for(var nn of bi(tn))ui.call(tn,nn)&&te(qn,nn,tn[nn]);return qn},Ti=(qn,tn)=>Mi(qn,Gi(tn)),or=(qn,tn)=>{var nn={};for(var Qe in qn)Ki.call(qn,Qe)&&tn.indexOf(Qe)<0&&(nn[Qe]=qn[Qe]);if(qn!=null&&bi)for(var Qe of bi(qn))tn.indexOf(Qe)<0&&ui.call(qn,Qe)&&(nn[Qe]=qn[Qe]);return nn};const{Countdown:Sr}=yi.default;var vr=qn=>{var tn=qn,{onChange:nn}=tn,Qe=or(tn,["onChange"]);const[Fe,vn]=(0,Rt.useState)(null);(0,Rt.useEffect)(()=>{typeof Fe=="number"&&Fe>=0&&nn(Fe)},[Fe]);const bn=Ze=>{const Ae=Math.floor(Ze/1e3);vn(Ae)};return Rt.createElement(Sr,Ti(Yi({},Qe),{onChange:bn}))}},91300:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return yt}});var Rt=Gt(59301);function yt(Vt,Yt){const Nt=(0,Rt.useRef)();(0,Rt.useEffect)(()=>{Nt.current=Vt}),(0,Rt.useEffect)(()=>{function Wt(){Nt.current()}if(Yt!==null){let xt=setInterval(Wt,Yt);return()=>clearInterval(xt)}},[Yt])}},76904:function(Nn,An,Gt){"use strict";Gt.d(An,{$J:function(){return Vt},JZ:function(){return Nt},bN:function(){return xt},jP:function(){return Wt},rO:function(){return Yt}});var Rt=Gt(70635),yt=(Ot,Bt,At)=>new Promise((bt,Tt)=>{var It=tt=>{try{et(At.next(tt))}catch(st){Tt(st)}},vt=tt=>{try{et(At.throw(tt))}catch(st){Tt(st)}},et=tt=>tt.done?bt(tt.value):Promise.resolve(tt.value).then(It,vt);et((At=At.apply(Ot,Bt)).next())});function Vt(Ot){return(0,Rt.U2)(`libraries/${Ot}.json`)}function Yt(){return(0,Rt.U2)("library_tags.json")}function Nt(Ot){return yt(this,null,function*(){return(yield(0,Rt.IV)(`attachments/${Ot}.json`)).status===0})}function Wt(Ot){return(0,Rt.v_)("libraries.json",Ot)}function xt(Ot,Bt){return(0,Rt.gz)(`libraries/${Ot}.json`,Bt)}},21015:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ut}});var Rt=Gt(59301),yt=Gt(42203),Vt=Gt(92832),Yt=Gt(78241),Nt=Gt(8591),Wt=Gt(43418),xt=Gt(93948),Ot=Gt(24905),Bt=Gt(12563),At={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},bt=Gt(72917),Tt=Gt(64286),It=Gt(2119),vt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Ft,Qt,$t)=>Qt in Ft?vt(Ft,Qt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ft[Qt]=$t,ut=(Ft,Qt)=>{for(var $t in Qt||(Qt={}))tt.call(Qt,$t)&&rt(Ft,$t,Qt[$t]);if(et)for(var $t of et(Qt))st.call(Qt,$t)&&rt(Ft,$t,Qt[$t]);return Ft},ct=(Ft,Qt,$t)=>new Promise((Kt,ue)=>{var oe=Ne=>{try{Se($t.next(Ne))}catch(pe){ue(pe)}},we=Ne=>{try{Se($t.throw(Ne))}catch(pe){ue(pe)}},Se=Ne=>Ne.done?Kt(Ne.value):Promise.resolve(Ne.value).then(oe,we);Se(($t=$t.apply(Ft,Qt)).next())});const{TextArea:pt}=Vt.default,mt=1024,Ct=(Ft,Qt)=>{var $t;const{uploadInfo:Kt={}}=Qt.payload||{};switch(Qt.type){case"addVideo":return{videoList:[...Ft.videoList,{name:Kt.file.name,size:Kt.file.size,type:Kt.file.type,fileHash:Kt.fileHash,state:Kt.state,videoId:Kt.videoId,loaded:Kt.loaded||0,title:""}]};case"removeVideo":return{videoList:Ft.videoList.filter(ue=>ue.name!==Qt.payload.name)};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:Ft.videoList.map(ue=>ue.name===Qt.payload.uploadInfo.file.name?ut(ut({},ue),{loaded:Qt.payload.progressPercent,videoId:Kt.videoId,fileHash:Kt.fileHash}):ue)};case"updateTitle":return{videoList:($t=Ft.videoList)==null?void 0:$t.map(ue=>ue.name===Qt.payload.item.name?ut(ut({},ue),{title:Qt.payload.title}):ue)};default:return{videoList:[]}}},Dt=({user:Ft,globalSetting:Qt,loading:$t,dispatch:Kt,visible:ue,editData:oe,onCancel:we=()=>{},onOk:Se=()=>{},queryParams:Ne={}})=>{var pe;const Ue=(0,yt.useParams)(),[de]=Yt.default.useForm(),[Jt,ee]=(0,Rt.useReducer)(Ct,{videoList:[]}),[ae,fe]=(0,Rt.useState)(!1),se=(0,Rt.useRef)(),[De,Oe]=(0,Rt.useState)(),[en,We]=(0,Rt.useState)(!1),[rn,ke]=(0,Rt.useState)(!1),Ie=(0,It.Ny)()?3:1;(0,Rt.useEffect)(()=>{var dt,gt,zt;ue&&oe&&(We(oe.is_link),Oe(oe.link),!oe.is_link&&ee({type:"addVideo",payload:{uploadInfo:{file:{name:oe.filename||""},videoId:oe.video_id,loaded:100}}}),Et(((dt=oe==null?void 0:oe.tags)==null?void 0:dt.map(re=>re==null?void 0:re.name))||[]),de.setFieldsValue({name:oe.name,description:oe.description,attachment_id:(gt=oe==null?void 0:oe.video)==null?void 0:gt.attachment_id,allow_skip:(zt=oe==null?void 0:oe.video_item)==null?void 0:zt.allow_skip}))},[oe,ue]);const je=()=>{const dt=document.getElementById("fileUpload");dt.value=""},$e=dt=>{var gt;We(!1);const zt=dt.target.files[0];if(!zt){je();return}const re=zt.name.toLowerCase();if(re&&re.indexOf(".avi")==-1&&re.indexOf(".flv")==-1&&re.indexOf(".f4v")==-1&&re.indexOf(".m4v")==-1&&re.indexOf(".mov")==-1&&re.indexOf(".mp4")==-1&&re.indexOf(".rmvb")==-1&&re.indexOf(".swf")==-1&&re.indexOf(".webm")==-1&&re.indexOf(".wmv")==-1){Nt.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),je();return}if(zt.size>mt*Ie*1024*1024){Nt.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${Ie}G`),je();return}if((gt=Jt.videoList)!=null&>.find(Zt=>Zt.name===zt.name)){Nt.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),je();return}le(zt)},me=(dt,gt)=>{Wt.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Rt.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",gt?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{je(),ee({type:"removeVideo",payload:{name:dt}})}})},le=dt=>{var gt,zt='{"Vod":{}}';if(fe(!0),se.current){se.current.addFile(dt,null,null,null,zt);return}(0,bt.o)((gt=Ft.userInfo)==null?void 0:gt.login,"",{create:!se,addFileSuccess:re=>{ee({type:"addVideo",payload:{uploadInfo:re}})},onUploadProgress:(re,Zt,ye)=>{const Ye=Math.ceil(ye*100);ee({type:"updateProgress",payload:{uploadInfo:re,progressPercent:Ye}}),je()},onUploadFailed:re=>{Nt.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:re=>{fe(!1)},onUploadSucceed:re=>{fe(!1)},onUploadError:re=>{fe(!1)},gotUploader:re=>{re.addFile(dt,null,null,null,zt),se.current=re}})},Ee=()=>ct(void 0,null,function*(){var dt,gt;if(yield de.validateFields(),!en&&!((dt=Jt.videoList)!=null&&dt.length)||en&&!De){Nt.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");return}ke(!0);const zt=en?{link:De}:{video_id:(gt=Jt.videoList)==null?void 0:gt[0].videoId},re=yield Se(ut(ut(ut({},zt),Ne),{name:de.getFieldValue("name"),attachment_id:de.getFieldValue("attachment_id"),description:de.getFieldValue("description"),tags:de.getFieldValue("tag"),allow_skip:de.getFieldValue("allow_skip")}));ke(!1),re.id&&ce()}),ce=()=>{de.resetFields(),ee({type:"removeAll"}),Oe(null),Et([]),We(null)},he=()=>{we(),ce()},_t=()=>{var dt,gt,zt,re,Zt,ye,Ye,sn,Le,Re,hn,wn;return Rt.createElement(Rt.Fragment,null,!en&&!!((dt=Jt.videoList)!=null&&dt.length)&&Rt.createElement("div",{className:At.fileProgress},((zt=(gt=Jt.videoList)==null?void 0:gt[0])==null?void 0:zt.loaded)==100?Rt.createElement("div",{className:`${At.videoName} font14`},(Zt=(re=Jt.videoList)==null?void 0:re[0])==null?void 0:Zt.name):Rt.createElement(xt.Z,{style:{width:"80%"},percent:(Ye=(ye=Jt.videoList)==null?void 0:ye[0])==null?void 0:Ye.loaded,status:((Le=(sn=Jt.videoList)==null?void 0:sn[0])==null?void 0:Le.loaded)==100?"normal":"active"}),Rt.createElement("div",{className:At.fileCancel,onClick:()=>{var kn,Rn,Yn,Kn;return me((Rn=(kn=Jt.videoList)==null?void 0:kn[0])==null?void 0:Rn.name,((Kn=(Yn=Jt.videoList)==null?void 0:Yn[0])==null?void 0:Kn.loaded)==100)}},((hn=(Re=Jt.videoList)==null?void 0:Re[0])==null?void 0:hn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((wn=Jt.videoList)!=null&&wn.length)&&Rt.createElement("div",{className:At.uploadWrap},Rt.createElement("label",{htmlFor:"fileUpload",className:At.upload},Rt.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),Rt.createElement("label",{className:`${At.upload} ${At.uploadLink}`,onClick:()=>We(!0)},Rt.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),en&&Rt.createElement(Vt.default,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:De,onChange:kn=>Oe(kn.target.value)}))},[Mt,Et]=(0,Rt.useState)([]),Ht=dt=>{if(dt.key=="Enter"){const gt=de.getFieldValue("tag");if(de.setFieldsValue({tag:""}),!gt){Nt.ZP.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Mt.filter(zt=>zt===gt).length>0){Nt.ZP.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Mt.push(gt),Et([...Mt])}},Pt=(dt,gt)=>{dt.preventDefault(),Et([...Mt.filter(zt=>zt!=gt)])};return Rt.createElement(Wt.default,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:oe?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:At.modal,open:ue,confirmLoading:rn,onOk:Ee,onCancel:he},Rt.createElement(Yt.default,{form:de},Rt.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:$e,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),Rt.createElement(Yt.default.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},Rt.createElement(Vt.default,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),Rt.createElement(Yt.default.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:At.contentItem},_t()),Rt.createElement(Yt.default.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},Rt.createElement(Tt.Z,{getFileProgress:dt=>{if(dt.file.status==="uploading"){ke(!0);return}dt.file.status==="done"&&ke(!1)}})),Rt.createElement(Yt.default.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},Rt.createElement(pt,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),Rt.createElement(Yt.default.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},Rt.createElement(Vt.default,{onKeyUp:Ht})),Rt.createElement(Yt.default.Item,{label:"\u64AD\u653E\u8BBE\u7F6E",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0},Rt.createElement(Ot.default,null,"\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E")),Rt.createElement("div",{className:At["tagsList-content"]},Mt.map((dt,gt)=>Rt.createElement(Bt.default,{key:gt+dt,closable:!0,onClose:zt=>{Pt(zt,dt)}},dt))),Rt.createElement("div",{className:"c-grey-999"},Rt.createElement("div",null,"\u6CE8\u610F\uFF1A"),Rt.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",Rt.createElement(yt.Link,{to:`/users/${(pe=Ft.userInfo)==null?void 0:pe.login}/videos/protocol`,target:"_blank",className:At.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),Rt.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Ie,"G\uFF1B"),Rt.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),Rt.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};var Ut=(0,yt.connect)(({user:Ft,loading:Qt,globalSetting:$t})=>({user:Ft,globalSetting:$t,loading:Qt}))(Dt)},72917:function(Nn,An,Gt){"use strict";Gt.d(An,{o:function(){return Bt}});var Rt=Gt(70635),yt=Gt(93125),Vt=Gt.n(yt);let Yt="",Nt,Wt="";function xt(At){Ot(At)}function Ot(At){Nt=new(Vt()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(bt){console.log("addFileSuccess: "+bt.file.name),At.addFileSuccess&&At.addFileSuccess(bt),Nt.startUpload()},onUploadstarted:function(bt){const Tt=bt.file.name;if(bt.videoId){var vt=`/api/users/${Yt}/video_auths.json`;(0,Rt.ZP)(vt,{method:"put",body:{video_id:bt.videoId,title:Tt,file_name:Tt,virtual_classroom_id:Wt}}).then(et=>{if(et.status==-1){At.onUploadError&&At.onUploadError(bt);return}const tt=et.data;var st=tt.UploadAuth,rt=tt.UploadAddress,ut=tt.VideoId;Nt.setUploadAuthAndAddress(bt,st,rt)}).catch(et=>{Nt.deleteFile(Nt._curIndex),Nt.nextUpload(),console.log(et)})}else{var It=`/api/users/${Yt}/video_auths.json`;const et="";(0,Rt.ZP)(It,{method:"Post",body:{title:et+Tt,file_name:et+Tt,virtual_classroom_id:Wt}}).then(tt=>{if(tt){const ct=tt.data;var st=ct.UploadAuth,rt=ct.UploadAddress,ut=ct.VideoId;Nt.setUploadAuthAndAddress(bt,st,rt,ut)}}).catch(tt=>{Nt.deleteFile(Nt._curIndex),Nt.nextUpload(),console.log(tt)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(bt){At.onUploadSucceed&&At.onUploadSucceed(bt),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(bt,Tt,It){At.onUploadFailed&&At.onUploadFailed(bt),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(bt,Tt,It){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(bt,Tt,It){At.onUploadProgress&&At.onUploadProgress(bt,Tt,It);var vt=Math.ceil(It*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(bt){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var Tt=`/api/users/${Yt}/video_auths.json`;(0,Rt.ZP)(Tt,{method:"put",body:{video_id:bt.videoId}}).then(It=>{var et=It.data.UploadAuth;Nt.resumeUploadWithAuth(et)}).catch(It=>{console.log(It)})},onUploadEnd:function(bt){At.onUploadEnd&&At.onUploadEnd(bt),console.log("onUploadEnd: uploaded all the files")}}),At.gotUploader&&At.gotUploader(Nt)}function Bt(At,bt,Tt){At&&(Yt=At),bt&&(Wt=bt),xt(Tt)}},31087:function(Nn,An,Gt){"use strict";Gt.d(An,{AL:function(){return pt},Iy:function(){return bt},Qv:function(){return vt},ez:function(){return ct},jb:function(){return Tt}});var Rt=Gt(32834),yt=Gt.n(Rt),Vt=Gt(11690),Yt=Gt.n(Vt);let Nt=1;function Wt(Ft,Qt){const $t=Ft.match(/^(\s+)(?:```)/);if($t===null)return Qt;const Kt=$t[1];return Qt.split(` `).map(ue=>{const oe=ue.match(/^\s+/);if(oe===null)return ue;const[we]=oe;return we.length>=Kt.length?ue.slice(Kt.length):ue}).join(` `)}let xt=[],Ot=["
    "];const Bt=new(yt()).Renderer,At=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function bt(){xt.length=0,Ot=["
      "]}const Tt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function It(Ft,Qt,$t,Kt){if(Qt>=Ft.length||Ft[Qt].level<=$t)return Qt;var ue=Ft[Qt];Kt.push("
    • "+ue.text+""),Qt++;var oe=[];return Qt=It(Ft,Qt,ue.level,oe),oe.length>0&&(Kt.push("
        "),oe.forEach(function(we){Kt.push(we)}),Kt.push("
      ")),Kt.push("
    • "),Qt=It(Ft,Qt,$t,Kt),Qt}function vt(){return It(xt,0,0,Ot),Ot.push("
    "),Ot.join("")}const et={heading(Ft){const Qt=At.exec(Ft);if(Nt+=1,Qt)return{type:"heading",raw:Qt[0],depth:Qt[1].length,text:Qt[2]}},fences(Ft){const Qt=this.rules.block.fences.exec(Ft);if(Qt){const $t=Qt[0];let Kt=Wt($t,Qt[3]||"");const ue=Qt[2]?Qt[2].trim():Qt[2];if(["latex","katex","math"].indexOf(ue)>=0){const oe=rt(),we=Kt;Kt=oe,ut[oe]={type:"block",expression:we}}return{type:"code",raw:$t,lang:ue,text:Kt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let st=0;const rt=()=>`__special_katext_id_${st++}__`;let ut={};function ct(){return ut}function pt(){st=0,ut={}}function mt(Ft){return Ft=Ft.replace(tt,(Qt,$t)=>{const Kt=rt();return ut[Kt]={type:"inline",expression:$t},Kt}),Ft}const Ct=Bt.listitem;Bt.listitem=function(Ft){return Ct(mt(Ft))};const Dt=Bt.paragraph;Bt.paragraph=function(Ft){return Dt(mt(Ft))};const Ut=Bt.tablecell;Bt.tablecell=function(Ft,Qt){return Ut(mt(Ft),Qt)},Bt.code=function(Ft,Qt,$t){const Kt=(Qt||"").match(/\S*/)[0];return Kt?["latex","katex","math"].indexOf(Kt)>=0?`

    ${Ft}

    `:`
    ${$t?Ft:(0,Vt.escape)(Ft,!0)}
    `:'
    '+($t?Ft:(0,Vt.escape)(Ft,!0))+"
    "},Bt.heading=function(Ft,Qt,$t){let Kt=this.options.headerPrefix+$t.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return xt.push({anchor:Kt,level:Qt,text:Ft}),"'+Ft+""},yt().setOptions({silent:!0,gfm:!0,pedantic:!1}),yt().use({tokenizer:et,renderer:Bt}),An.ZP=yt()},18032:function(Nn,An,Gt){"use strict";Gt.d(An,{rX:function(){return pt},pW:function(){return mt},gy:function(){return Ct},xY:function(){return ct},O5:function(){return ut},tJ:function(){return vt},o1:function(){return et},Rd:function(){return rt}});var Rt=Gt(42203),yt=Gt(43418),Vt=Gt(28103),Yt=Gt(8591),Nt=Gt(2119),Wt=Gt(58130),xt=Gt(80205),Ot=Gt(25510),Bt="data:image/png;base64,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",At=Gt.p+"static/newqrcode.a8740efb.png",bt=Gt(32637),Tt=Gt(59301),It=(Dt,Ut,Ft)=>new Promise((Qt,$t)=>{var Kt=we=>{try{oe(Ft.next(we))}catch(Se){$t(Se)}},ue=we=>{try{oe(Ft.throw(we))}catch(Se){$t(Se)}},oe=we=>we.done?Qt(we.value):Promise.resolve(we.value).then(Kt,ue);oe((Ft=Ft.apply(Dt,Ut)).next())});const vt=(Dt,Ut=!1)=>!!(et(Dt)&&tt(Ut)),et=Dt=>(0,Nt.bg)()?!0:(Dt({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=(Dt=!1)=>{var Ut;const{user:Ft}=(0,Rt.getDvaApp)()._store.getState();return(Ut=Ft.userInfo)!=null&&Ut.profile_completed?!0:(yt.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Wt.xg)("/account/profile/edit"),st()}}),!1)},st=()=>{yt.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},rt=()=>{yt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Tt.createElement("div",{style:{textAlign:"center"}},Tt.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),Tt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:bt}),Tt.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ut=()=>{var Dt;const{user:Ut}=(0,Rt.getDvaApp)()._store.getState();return(Dt=Ut.userInfo)!=null&&Dt.professional_certification?!0:(yt.default.confirm({title:"\u63D0\u793A",centered:!0,content:Tt.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,Wt.xg)("/account/certification")}}),!1)},ct=()=>(0,Nt.V9)()?!0:(yt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Tt.createElement("div",{className:"tc",style:{marginLeft:-38}},Tt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Tt.createElement("img",{src:At,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),pt=(Dt,Ut)=>Dt?!0:(yt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Tt.createElement("div",null,Tt.createElement("p",null,Ut||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),Tt.createElement("div",{style:{marginLeft:"110px"}},Tt.createElement("img",{src:Bt,width:200}),Tt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Wt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),mt=Dt=>{yt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Tt.createElement("div",null,Tt.createElement("div",null,Tt.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),Tt.createElement(Vt.Z,null),Tt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Tt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",Tt.createElement("a",null,Dt),"\u5929\u3002"),Tt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Tt.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),Tt.createElement("div",{style:{textAlign:"center",marginTop:30}},Tt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ot,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ct=(Dt,Ut="")=>{const{shixunsDetail:{detail:Ft}}=(0,Rt.getDvaApp)()._store.getState();if((Ft==null?void 0:Ft.public)===2||(Ft==null?void 0:Ft.public)===1||(Ft==null?void 0:Ft.shixun_status)===3){let Qt="";return(Ft==null?void 0:Ft.public)===2&&(Qt="\u5DF2\u516C\u5F00"),(Ft==null?void 0:Ft.public)===1&&(Qt="\u5F85\u5BA1\u6838"),(Ft==null?void 0:Ft.shixun_status)===3&&(Qt="\u5DF2\u5173\u95ED"),yt.default.info({centered:!0,icon:Tt.createElement(xt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Tt.createElement("div",{className:"tc",style:{marginLeft:-38}},Tt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Tt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Qt,"\uFF0C",Ut,"\u3002"),Tt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Tt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ot,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Ft==null?void 0:Ft.shixun_status)===2?(yt.default.confirm({centered:!0,icon:Tt.createElement(xt.Z,null),title:"\u63D0\u793A",content:Tt.createElement("div",null,Tt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ut,"\u3002"),Tt.createElement("br",null),Tt.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{yt.default.confirm({width:440,centered:!0,icon:Tt.createElement(xt.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>It(void 0,null,function*(){(yield Dt({type:"shixunsDetail/cancelRelease",payload:{id:Ft==null?void 0:Ft.identifier}})).status!==401&&(Yt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Dt({type:"shixunsDetail/getShixunsDetail",payload:{id:Ft==null?void 0:Ft.identifier}}),Dt({type:"practiceSetting/getCommonData",payload:{id:Ft==null?void 0:Ft.identifier}}))})})}}),!0):!1}},93125:function(Nn,An,Gt){(function(Rt){if(1)window.OSS=Rt(),Nn.exports=Rt();else var yt})(function(){var Rt;return function(){function yt(Vt,Yt,Nt){function Wt(Bt,At){if(!Yt[Bt]){if(!Vt[Bt]){var bt=void 0;if(!At&&bt)return require(Bt,!0);if(xt)return xt(Bt,!0);var Tt=new Error("Cannot find module '"+Bt+"'");throw Tt.code="MODULE_NOT_FOUND",Tt}var It=Yt[Bt]={exports:{}};Vt[Bt][0].call(It.exports,function(vt){return Wt(Vt[Bt][1][vt]||vt)},It,It.exports,yt,Vt,Yt,Nt)}return Yt[Bt].exports}for(var xt=void 0,Ot=0;Ot0?ee["Content-Type"]=Jt.mime:ee["Content-Type"]=pt.getType(Jt.mime||ut.extname(Jt.object||""))||"application/octet-stream"),Jt.content&&(ee["Content-Md5"]=rt.createHash("md5").update(new Wt(Jt.content,"utf8")).digest("base64"),ee["Content-Length"]||(ee["Content-Length"]=Jt.content.length));var ae=this._getResource(Jt);ee.authorization=this.authorization(Jt.method,ae,Jt.subres,ee);var fe=this._getReqUrl(Jt);st("request %s %s, with headers %j, !!stream: %s",Jt.method,fe,ee,!!Jt.stream);var se=Jt.timeout||this.options.timeout;return{url:fe,params:{agent:this.agent,method:Jt.method,content:Jt.content,stream:Jt.stream,headers:ee,timeout:se,writeStream:Jt.writeStream,customResponse:Jt.customResponse,ctx:Jt.ctx||this.ctx}}},de.request=vt.default.mark(function Jt(ee){var ae,fe,se,De;return vt.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ae=this.createRequest(ee),fe=void 0,se=void 0,Oe.prev=3,Oe.next=6,this.urllib.request(ae.url,ae.params);case 6:fe=Oe.sent,st("response %s %s, got %s, headers: %j",ee.method,ae.url,fe.status,fe.headers),Oe.next=13;break;case 10:Oe.prev=10,Oe.t0=Oe.catch(3),se=Oe.t0;case 13:if(De=void 0,!fe||!ee.successStatuses||ee.successStatuses.indexOf(fe.status)!==-1){Oe.next=26;break}return Oe.next=17,this.requestError(fe);case 17:if(De=Oe.sent,De.code!=="RequestTimeTooSkewed"){Oe.next=23;break}return this.options.amendTimeSkewed=+new Date(De.serverTime)-new Date,Oe.next=22,this.request(ee);case 22:return Oe.abrupt("return",Oe.sent);case 23:De.params=ee,Oe.next=30;break;case 26:if(!se){Oe.next=30;break}return Oe.next=29,this.requestError(se);case 29:De=Oe.sent;case 30:if(!De){Oe.next=32;break}throw De;case 32:if(!ee.xmlResponse){Oe.next=36;break}return Oe.next=35,this.parseXML(fe.data);case 35:fe.data=Oe.sent;case 36:return Oe.abrupt("return",fe);case 37:case"end":return Oe.stop()}},Jt,this,[[3,10]])}),de._getResource=function(Jt){var ee="/";return Jt.bucket&&(ee+=Jt.bucket+"/"),Jt.object&&(ee+=Jt.object),ee},de._isIP=function(Jt){return pe._isIP(Jt)},de._escape=function(Jt){return Kt.encodeURIComponent(Jt).replace(/%2F/g,"/")},de._getReqUrl=function(Jt){var ee={};ct(this.options.endpoint).to(ee);var ae=this._isIP(ee.hostname),fe=this.options.cname;!Jt.bucket||fe||ae||(ee.host=Jt.bucket+"."+ee.host);var se="/";Jt.bucket&&ae&&(se+=Jt.bucket+"/"),Jt.object&&(se+=this._escape(Jt.object).replace(/\+/g,"%2B")),ee.pathname=se;var De={};if(Jt.query&&Ut(De,Jt.query),Jt.subres){var Oe={};Qt.string(Jt.subres)?Oe[Jt.subres]="":Qt.array(Jt.subres)?Jt.subres.forEach(function(en){Oe[en]=""}):Oe=Jt.subres,Ut(De,Oe)}return ee.query=De,Ft.format(ee)},de._getUserAgent=function(){var Jt=Nt&&Nt.browser?"js":"nodejs",ee="aliyun-sdk-"+Jt+"/"+oe.version,ae=$t.description;return!ae&&Nt&&(ae="Node.js "+Nt.version.slice(1)+" on "+Nt.platform+" "+Nt.arch),this._checkUserAgent(ee+" "+ae)},de._checkUserAgent=function(Jt){return Jt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},de.checkBrowserAndVersion=function(Jt,ee){return Se.name===Jt&&Se.version.split(".")[0]===ee},de.parseXML=function(Jt){return function(ee){Wt.isBuffer(Jt)&&(Jt=Jt.toString()),mt.parseString(Jt,{explicitRoot:!1,explicitArray:!1},ee)}},de.requestError=vt.default.mark(function Jt(ee){var ae,fe,se,De;return vt.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(ae=null,ee.data&&ee.data.length){Oe.next=5;break}ee.status===-1||ee.status===-2?(ae=new Error(ee.message),ae.name=ee.name,ae.status=ee.status,ae.code=ee.name):(ee.status===404?(ae=new Error("Object not exists"),ae.name="NoSuchKeyError",ae.status=404,ae.code="NoSuchKey"):ee.status===412?(ae=new Error("Pre condition failed"),ae.name="PreconditionFailedError",ae.status=412,ae.code="PreconditionFailed"):(ae=new Error("Unknow error, status: "+ee.status),ae.name="UnknowError",ae.status=ee.status),ae.requestId=ee.headers["x-oss-request-id"],ae.host=""),Oe.next=30;break;case 5:return fe=String(ee.data),st("request response error data: %s",fe),se=void 0,Oe.prev=8,Oe.next=11,this.parseXML(fe)||{};case 11:se=Oe.sent,Oe.next=21;break;case 14:return Oe.prev=14,Oe.t0=Oe.catch(8),st(fe),Oe.t0.message+=` raw xml: `+fe,Oe.t0.status=ee.status,Oe.t0.requestId=ee.headers["x-oss-request-id"],Oe.abrupt("return",Oe.t0);case 21:De=se.Message||"unknow request error, status: "+ee.status,se.Condition&&(De+=" (condition: "+se.Condition+")"),ae=new Error(De),ae.name=se.Code?se.Code+"Error":"UnknowError",ae.status=ee.status,ae.code=se.Code,ae.requestId=se.RequestId,ae.hostId=se.HostId,ae.serverTime=se.ServerTime;case 30:return st("generate error %j",ae),Oe.abrupt("return",ae);case 32:case"end":return Oe.stop()}},Jt,this,[[8,14]])})}).call(this,yt("_process"),yt("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(ct){return ct&&ct.__esModule?ct:{default:ct}}function xt(ct,pt){if(!(this instanceof xt))return new xt(ct,pt);ut.call(this,pt),this.file=ct,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var Ot=yt("babel-runtime/core-js/array/from"),Bt=Wt(Ot),At=yt("babel-runtime/regenerator"),bt=Wt(At),Tt=yt("is-type-of"),It=yt("util"),vt=yt("path"),et=yt("mime"),tt=yt("copy-to"),st=Yt;st.multipartUpload=bt.default.mark(function ct(pt,mt,Ct){var Dt,Ut,Ft,Qt,$t,Kt,ue,oe,we;return bt.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(this.resetCancelFlag(),Ct=Ct||{},!Ct.checkpoint||!Ct.checkpoint.uploadId){Se.next=6;break}return Se.next=5,this._resumeMultipart(Ct.checkpoint,Ct);case 5:return Se.abrupt("return",Se.sent);case 6:return Dt=102400,Ct.mime||(Tt.file(mt)?Ct.mime=et.getType(vt.extname(mt.name)):Tt.blob(mt)?Ct.mime=mt.type:Ct.mime=et.getType(vt.extname(mt))),Ct.headers=Ct.headers||{},this._convertMetaToHeaders(Ct.meta,Ct.headers),Se.next=12,this._getFileSize(mt);case 12:if(!((Ut=Se.sent)0&&tt(Qt).to(Kt),ue=this._divideParts(Dt,Ut),oe=ue.length,we=!1,Se=bt.default.mark(function en(We,rn){var ke,Ie,je;return bt.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(We.isCancel()){$e.next=21;break}return $e.prev=1,ke=ue[rn-1],Ie={stream:We._createStream(Ct,ke.start,ke.end),size:ke.end-ke.start},$e.next=6,We._uploadPart($t,Ft,rn,Ie);case 6:if(je=$e.sent,We.isCancel()||we){$e.next=13;break}if(pt.doneParts.push({number:rn,etag:je.res.headers.etag}),Kt.push({number:rn,etag:je.res.headers.etag}),!mt||!mt.progress){$e.next=13;break}return $e.next=13,mt.progress(Qt.length/oe,pt,je.res);case 13:$e.next=21;break;case 15:if($e.prev=15,$e.t0=$e.catch(1),We.isCancel()){$e.next=21;break}throw We.cancel(),$e.t0.partNum=rn,$e.t0;case 21:case"end":return $e.stop()}},en,this,[[1,15]])}),Ne=(0,Bt.default)(new Array(oe),function(en,We){return We+1}),pe=Kt.map(function(en){return en.number}),Ue=Ne.filter(function(en){return pe.indexOf(en)<0}),de=5,Jt=mt.parallel||de,!this.checkBrowserAndVersion("Internet Explorer","10")&&Jt!==1){Oe.next=26;break}ee=0;case 16:if(!(ee0)){Oe.next=37;break}throw this.resetCancelFlag(),De=se[0],De.message="Failed to upload some parts with error: "+De.toString()+" part_num: "+De.partNum,De;case 37:if(!this.isCancel()){Oe.next=40;break}throw ae=null,this._makeCancelEvent();case 40:return Oe.next=42,this.completeMultipartUpload($t,Ft,Kt,mt);case 42:return Oe.abrupt("return",Oe.sent);case 43:case"end":return Oe.stop()}},ct,this)}),Tt.file=function(ct){return typeof File!="undefined"&&ct instanceof File},Tt.blob=function(ct){return typeof Blob!="undefined"&&ct instanceof Blob},st._getFileSize=bt.default.mark(function ct(pt){var mt;return bt.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!Tt.buffer(pt)){Ct.next=4;break}return Ct.abrupt("return",pt.length);case 4:if(!Tt.blob(pt)&&!Tt.file(pt)){Ct.next=6;break}return Ct.abrupt("return",pt.size);case 6:if(!Tt.string(pt)){Ct.next=11;break}return Ct.next=9,this._statFile(pt);case 9:return mt=Ct.sent,Ct.abrupt("return",mt.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return Ct.stop()}},ct,this)});var rt=yt("stream"),ut=rt.Readable;It.inherits(xt,ut),xt.prototype.readFileAndPush=function(ct){if(this.fileBuffer)for(var pt=!0;pt&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:Ct,this.start=Ct,pt=this.push(this.fileBuffer.slice(mt,Ct))}},xt.prototype._read=function(ct){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);ct=ct||16384;var pt=this;this.reader.onload=function(mt){pt.fileBuffer=new Nt(new Uint8Array(mt.target.result)),pt.file=null,pt.readFileAndPush(ct)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ct)},st._createStream=function(ct,pt,mt){if(Tt.blob(ct)||Tt.file(ct))return new xt(ct.slice(pt,mt));throw new Error("_createStream requires File/String.")},st._getPartSize=function(ct,pt){return pt?Math.max(Math.ceil(ct/1e4),pt):1048576},st._divideParts=function(ct,pt){for(var mt=Math.ceil(ct/pt),Ct=[],Dt=0;Dt `,Ct.quiet?Dt+=` true `:Dt+=` false `,Ut=0;Ut"+bt.escape(this._objectName(mt[Ut]))+` `;return Dt+="",At("delete multi objects: %s",Dt),Ct.subres="delete",Ft=this._objectRequestParams("POST","",Ct),Ft.mime="xml",Ft.content=Dt,Ft.xmlResponse=!0,Ft.successStatuses=[200],ue.next=14,this.request(Ft);case 14:return Qt=ue.sent,$t=Qt.data,Kt=$t&&$t.Deleted||null,Kt&&(Array.isArray(Kt)||(Kt=[Kt]),Kt=Kt.map(function(oe){return oe.Key})),ue.abrupt("return",{res:Qt.res,deleted:Kt});case 19:case"end":return ue.stop()}},pt,this)}),ct.copy=Bt.default.mark(function pt(mt,Ct,Dt){var Ut,Ft,Qt;return Bt.default.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return Dt=Dt||{},Dt.headers=Dt.headers||{},(0,xt.default)(Dt.headers).forEach(function(Kt){Dt.headers["x-oss-copy-source-"+Kt.toLowerCase()]=Dt.headers[Kt]}),Dt.meta&&(Dt.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Dt.meta,Dt.headers),Ct=Ct[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(Ct):"/"+encodeURIComponent(Ct.slice(1)),Dt.headers["x-oss-copy-source"]=Ct,Ut=this._objectRequestParams("PUT",mt,Dt),Ut.xmlResponse=!0,Ut.successStatuses=[200,304],$t.next=12,this.request(Ut);case 12:return Ft=$t.sent,Qt=Ft.data,Qt&&(Qt={etag:Qt.ETag,lastModified:Qt.LastModified}),$t.abrupt("return",{data:Qt,res:Ft.res});case 16:case"end":return $t.stop()}},pt,this)}),ct.putMeta=Bt.default.mark(function pt(mt,Ct,Dt){return Bt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,this.copy(mt,mt,{meta:Ct||{},timeout:Dt&&Dt.timeout,ctx:Dt&&Dt.ctx});case 2:return Ut.abrupt("return",Ut.sent);case 3:case"end":return Ut.stop()}},pt,this)}),ct.list=Bt.default.mark(function pt(mt,Ct){var Dt,Ut,Ft,Qt,$t;return Bt.default.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Dt=this._objectRequestParams("GET","",Ct),Dt.query=mt,Dt.xmlResponse=!0,Dt.successStatuses=[200],Kt.next=6,this.request(Dt);case 6:return Ut=Kt.sent,Ft=Ut.data.Contents,Qt=this,Ft&&(Array.isArray(Ft)||(Ft=[Ft]),Ft=Ft.map(function(ue){return{name:ue.Key,url:Qt._objectUrl(ue.Key),lastModified:ue.LastModified,etag:ue.ETag,type:ue.Type,size:Number(ue.Size),storageClass:ue.StorageClass,owner:{id:ue.Owner.ID,displayName:ue.Owner.DisplayName}}})),$t=Ut.data.CommonPrefixes||null,$t&&(Array.isArray($t)||($t=[$t]),$t=$t.map(function(ue){return ue.Prefix})),Kt.abrupt("return",{res:Ut.res,objects:Ft,prefixes:$t,nextMarker:Ut.data.NextMarker||null,isTruncated:Ut.data.IsTruncated==="true"});case 13:case"end":return Kt.stop()}},pt,this)}),ct.putACL=Bt.default.mark(function pt(mt,Ct,Dt){var Ut,Ft;return Bt.default.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:return Dt=Dt||{},Dt.subres="acl",Dt.headers=Dt.headers||{},Dt.headers["x-oss-object-acl"]=Ct,mt=this._objectName(mt),Ut=this._objectRequestParams("PUT",mt,Dt),Ut.successStatuses=[200],Qt.next=9,this.request(Ut);case 9:return Ft=Qt.sent,Qt.abrupt("return",{res:Ft.res});case 11:case"end":return Qt.stop()}},pt,this)}),ct.getACL=Bt.default.mark(function pt(mt,Ct){var Dt,Ut;return Bt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ct=Ct||{},Ct.subres="acl",mt=this._objectName(mt),Dt=this._objectRequestParams("GET",mt,Ct),Dt.successStatuses=[200],Dt.xmlResponse=!0,Ft.next=8,this.request(Dt);case 8:return Ut=Ft.sent,Ft.abrupt("return",{acl:Ut.data.AccessControlList.Grant,owner:{id:Ut.data.Owner.ID,displayName:Ut.data.Owner.DisplayName},res:Ut.res});case 10:case"end":return Ft.stop()}},pt,this)}),ct.restore=Bt.default.mark(function pt(mt,Ct){var Dt,Ut;return Bt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ct=Ct||{},Ct.subres="restore",Dt=this._objectRequestParams("POST",mt,Ct),Dt.successStatuses=[202],Ft.next=6,this.request(Dt);case 6:return Ut=Ft.sent,Ft.abrupt("return",{res:Ut.res});case 8:case"end":return Ft.stop()}},pt,this)}),ct.signatureUrl=function(pt,mt){mt=mt||{},pt=this._objectName(pt),mt.method=mt.method||"GET";var Ct=bt.timestamp()+(mt.expires||1800),Dt={bucket:this.options.bucket,object:pt},Ut=this._getResource(Dt);this.options.stsToken&&(mt["security-token"]=this.options.stsToken);var Ft=ut._signatureForURL(this.options.accessKeySecret,mt,Ut,Ct),Qt=vt.parse(this._getReqUrl(Dt));return Qt.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ct,Signature:Ft.Signature},et(Ft.subResource).to(Qt.query),Qt.format()},ct.getObjectUrl=function(pt,mt){return mt?mt[mt.length-1]!=="/"&&(mt+="/"):mt=this.options.endpoint.format(),mt+this._escape(this._objectName(pt))},ct._objectUrl=function(pt){return this._getReqUrl({bucket:this.options.bucket,object:pt})},ct.generateObjectUrl=function(pt,mt){if(mt)mt[mt.length-1]!=="/"&&(mt+="/");else{mt=this.options.endpoint.format();var Ct=vt.parse(mt),Dt=this.options.bucket;Ct.hostname=Dt+"."+Ct.hostname,Ct.host=Dt+"."+Ct.host,mt=Ct.format()}return mt+this._escape(this._objectName(pt))},ct._objectRequestParams=function(pt,mt,Ct){if(!this.options.bucket)throw new Error("Please create a bucket first");Ct=Ct||{},mt=this._objectName(mt);var Dt={object:mt,bucket:this.options.bucket,method:pt,subres:Ct&&Ct.subres,timeout:Ct&&Ct.timeout,ctx:Ct&&Ct.ctx};return Ct.headers&&(Dt.headers={},et(Ct.headers).to(Dt.headers)),Dt},ct._objectName=function(pt){return pt.replace(/^\/+/,"")},ct._statFile=function(pt){return function(mt){Tt.stat(pt,mt)}},ct._convertMetaToHeaders=function(pt,mt){pt&&(0,xt.default)(pt).forEach(function(Ct){mt["x-oss-meta-"+Ct]=pt[Ct]})},ct._deleteFileSafe=function(pt){return function(mt){Tt.exists(pt,function(Ct){Ct?Tt.unlink(pt,function(Dt){Dt&&At("unlink %j error: %s",pt,Dt),mt()}):mt()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(yt,Vt,Yt){"use strict";Yt.version="5.3.1"},{}],6:[function(yt,Vt,Yt){"use strict";function Nt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Wt(tt){return tt&&typeof tt.next=="function"&&typeof tt.throw=="function"}function xt(tt){if(!tt)return!1;var st=tt.constructor;return!!st&&(st.name==="GeneratorFunction"||st.displayName==="GeneratorFunction"||Wt(st.prototype)||Wt(tt.prototype))}function Ot(tt,st){var rt=new tt(st),ut=(0,It.default)(rt),ct=(0,It.default)((0,bt.default)(rt));ut.concat(ct).forEach(function(pt){xt(rt[pt])?this[pt]=vt.wrap(rt[pt]).bind(rt):this[pt]=rt[pt]},this)}function Bt(tt){if(!(this instanceof Bt))return new Bt(tt);Ot.call(this,et,tt)}var At=yt("babel-runtime/core-js/object/get-prototype-of"),bt=Nt(At),Tt=yt("babel-runtime/core-js/object/keys"),It=Nt(Tt),vt=yt("co"),et=yt("./client");Vt.exports=Bt,Bt.STS=function tt(st){if(!(this instanceof tt))return new tt(st);Ot.call(this,et.STS,st)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(bt){return bt&&bt.__esModule?bt:{default:bt}}var xt=yt("babel-runtime/core-js/object/keys"),Ot=Wt(xt),Bt=yt("babel-runtime/core-js/json/stringify"),At=Wt(Bt);Yt.encodeCallback=function(bt,Tt){if(bt.headers=bt.headers||{},!Object.prototype.hasOwnProperty.call(bt.headers,"x-oss-callback")&&Tt.callback){var It={callbackUrl:encodeURI(Tt.callback.url),callbackBody:Tt.callback.body};Tt.callback.host&&(It.callbackHost=Tt.callback.host),Tt.callback.contentType&&(It.callbackBodyType=Tt.callback.contentType);var vt=new Nt((0,At.default)(It)).toString("base64");if(bt.headers["x-oss-callback"]=vt,Tt.callback.customValue){var et={};(0,Ot.default)(Tt.callback.customValue).forEach(function(tt){et["x:"+tt]=Tt.callback.customValue[tt]}),bt.headers["x-oss-callback-var"]=new Nt((0,At.default)(et)).toString("base64")}}}}).call(this,yt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/regenerator"),Wt=function(At){return At&&At.__esModule?At:{default:At}}(Nt),xt=yt("copy-to"),Ot=yt("./callback"),Bt=Yt;Bt.listUploads=Wt.default.mark(function At(bt,Tt){var It,vt,et,tt;return Wt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return Tt=Tt||{},It={},xt(Tt).to(It),It.subres="uploads",vt=this._objectRequestParams("GET","",It),vt.query=bt,vt.xmlResponse=!0,vt.successStatuses=[200],st.next=10,this.request(vt);case 10:return et=st.sent,tt=et.data.Upload||[],Array.isArray(tt)||(tt=[tt]),tt=tt.map(function(rt){return{name:rt.Key,uploadId:rt.UploadId,initiated:rt.Initiated}}),st.abrupt("return",{res:et.res,uploads:tt,bucket:et.data.Bucket,nextKeyMarker:et.data.NextKeyMarker,nextUploadIdMarker:et.data.NextUploadIdMarker,isTruncated:et.data.IsTruncated==="true"});case 15:case"end":return st.stop()}},At,this)}),Bt.listParts=Wt.default.mark(function At(bt,Tt,It,vt){var et,tt,st;return Wt.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return vt=vt||{},et={},xt(vt).to(et),et.subres={uploadId:Tt},tt=this._objectRequestParams("GET",bt,et),tt.query=It,tt.xmlResponse=!0,tt.successStatuses=[200],rt.next=10,this.request(tt);case 10:return st=rt.sent,rt.abrupt("return",{res:st.res,uploadId:st.data.UploadId,bucket:st.data.Bucket,name:st.data.Key,partNumberMarker:st.data.PartNumberMarker,nextPartNumberMarker:st.data.NextPartNumberMarker,maxParts:st.data.MaxParts,isTruncated:st.data.IsTruncated,parts:st.data.Part||[]});case 12:case"end":return rt.stop()}},At,this)}),Bt.abortMultipartUpload=Wt.default.mark(function At(bt,Tt,It){var vt,et,tt;return Wt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return this.cancel(),It=It||{},vt={},xt(It).to(vt),vt.subres={uploadId:Tt},et=this._objectRequestParams("DELETE",bt,vt),et.successStatuses=[204],st.next=9,this.request(et);case 9:return tt=st.sent,st.abrupt("return",{res:tt.res});case 11:case"end":return st.stop()}},At,this)}),Bt.initMultipartUpload=Wt.default.mark(function At(bt,Tt){var It,vt,et;return Wt.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return Tt=Tt||{},It={},xt(Tt).to(It),It.headers=It.headers||{},this._convertMetaToHeaders(Tt.meta,It.headers),It.subres="uploads",vt=this._objectRequestParams("POST",bt,It),vt.mime=Tt.mime,vt.xmlResponse=!0,vt.successStatuses=[200],tt.next=12,this.request(vt);case 12:return et=tt.sent,tt.abrupt("return",{res:et.res,bucket:et.data.Bucket,name:et.data.Key,uploadId:et.data.UploadId});case 14:case"end":return tt.stop()}},At,this)}),Bt.uploadPart=Wt.default.mark(function At(bt,Tt,It,vt,et,tt,st){var rt;return Wt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return rt={stream:this._createStream(vt,et,tt),size:tt-et},ut.next=3,this._uploadPart(bt,Tt,It,rt,st);case 3:return ut.abrupt("return",ut.sent);case 4:case"end":return ut.stop()}},At,this)}),Bt.completeMultipartUpload=Wt.default.mark(function At(bt,Tt,It,vt){var et,tt,st,rt,ut,ct,pt,mt;return Wt.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:for(et=It.concat().sort(function(Dt,Ut){return Dt.number-Ut.number}).filter(function(Dt,Ut,Ft){return!Ut||Dt.number!==Ft[Ut-1].number}),tt=` `,st=0;st `,tt+=""+rt.number+` `,tt+=""+rt.etag+` `,tt+=` `;return tt+="",vt=vt||{},ut={},xt(vt).to(ut),ut.subres={uploadId:Tt},ct=this._objectRequestParams("POST",bt,ut),Ot.encodeCallback(ct,ut),ct.mime="xml",ct.content=tt,ct.headers&&ct.headers["x-oss-callback"]||(ct.xmlResponse=!0),ct.successStatuses=[200],Ct.next=16,this.request(ct);case 16:return pt=Ct.sent,mt={res:pt.res,bucket:ct.bucket,name:bt,etag:pt.res.headers.etag},ct.headers&&ct.headers["x-oss-callback"]&&(mt.data=JSON.parse(pt.data.toString())),Ct.abrupt("return",mt);case 20:case"end":return Ct.stop()}},At,this)}),Bt._uploadPart=Wt.default.mark(function At(bt,Tt,It,vt,et){var tt,st,rt;return Wt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return et=et||{},tt={},xt(et).to(tt),tt.headers={"Content-Length":vt.size},tt.subres={partNumber:It,uploadId:Tt},st=this._objectRequestParams("PUT",bt,tt),st.mime=tt.mime,st.stream=vt.stream,st.successStatuses=[200],ut.next=11,this.request(st);case 11:return rt=ut.sent,vt.stream=null,st.stream=null,ut.abrupt("return",{name:bt,etag:rt.res.headers.etag,res:rt.res});case 15:case"end":return ut.stop()}},At,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(It){return It&&It.__esModule?It:{default:It}}var xt=yt("babel-runtime/core-js/json/stringify"),Ot=Wt(xt),Bt=yt("babel-runtime/core-js/object/keys"),At=Wt(Bt),bt=yt("./../../shims/crypto/crypto.js"),Tt=yt("is-type-of");Yt.buildCanonicalizedResource=function(It,vt){var et=""+It,tt="?";if(Tt.string(vt)&&vt.trim()!=="")et+=tt+vt;else if(Tt.array(vt))vt.sort(),et+=tt+vt.join("&");else if(vt){var st=function(ut,ct){return ut[0]>ct[0]?1:ut[0]0)throw new Error("Invalid string. Length must be a multiple of 4");var ct=rt.indexOf("=");return ct===-1&&(ct=ut),[ct,ct===ut?0:4-ct%4]}function Wt(rt){var ut=Nt(rt),ct=ut[0],pt=ut[1];return 3*(ct+pt)/4-pt}function xt(rt,ut,ct){return 3*(ut+ct)/4-ct}function Ot(rt){for(var ut,ct=Nt(rt),pt=ct[0],mt=ct[1],Ct=new vt(xt(rt,pt,mt)),Dt=0,Ut=mt>0?pt-4:pt,Ft=0;Ft>16&255,Ct[Dt++]=ut>>8&255,Ct[Dt++]=255&ut;return mt===2&&(ut=It[rt.charCodeAt(Ft)]<<2|It[rt.charCodeAt(Ft+1)]>>4,Ct[Dt++]=255&ut),mt===1&&(ut=It[rt.charCodeAt(Ft)]<<10|It[rt.charCodeAt(Ft+1)]<<4|It[rt.charCodeAt(Ft+2)]>>2,Ct[Dt++]=ut>>8&255,Ct[Dt++]=255&ut),Ct}function Bt(rt){return Tt[rt>>18&63]+Tt[rt>>12&63]+Tt[rt>>6&63]+Tt[63&rt]}function At(rt,ut,ct){for(var pt,mt=[],Ct=ut;CtDt?Dt:Ct+16383));return pt===1?(ut=rt[ct-1],mt.push(Tt[ut>>2]+Tt[ut<<4&63]+"==")):pt===2&&(ut=(rt[ct-2]<<8)+rt[ct-1],mt.push(Tt[ut>>10]+Tt[ut>>4&63]+Tt[ut<<2&63]+"=")),mt.join("")}Yt.byteLength=Wt,Yt.toByteArray=Ot,Yt.fromByteArray=bt;for(var Tt=[],It=[],vt=typeof Uint8Array!="undefined"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,st=et.length;tt1&&ee[1]||""}function et(Jt){var ee=It.match(Jt);return ee&&ee.length>1&&ee[2]||""}var tt,st=vt(/(ipod|iphone|ipad)/i).toLowerCase(),rt=/like android/i.test(It),ut=!rt&&/android/i.test(It),ct=/nexus\s*[0-6]\s*/i.test(It),pt=!ct&&/nexus\s*[0-9]+/i.test(It),mt=/CrOS/.test(It),Ct=/silk/i.test(It),Dt=/sailfish/i.test(It),Ut=/tizen/i.test(It),Ft=/(web|hpw)os/i.test(It),Qt=/windows phone/i.test(It),$t=(/SamsungBrowser/i.test(It),!Qt&&/windows/i.test(It)),Kt=!st&&!Ct&&/macintosh/i.test(It),ue=!ut&&!Dt&&!Ut&&!Ft&&/linux/i.test(It),oe=et(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),we=vt(/version\/(\d+(\.\d+)?)/i),Se=/tablet/i.test(It)&&!/tablet pc/i.test(It),Ne=!Se&&/[^-]mobi/i.test(It),pe=/xbox/i.test(It);/opera/i.test(It)?tt={name:"Opera",opera:bt,version:we||vt(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(It)?tt={name:"Opera",opera:bt,version:vt(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||we}:/SamsungBrowser/i.test(It)?tt={name:"Samsung Internet for Android",samsungBrowser:bt,version:we||vt(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(It)?tt={name:"Opera Coast",coast:bt,version:we||vt(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(It)?tt={name:"Yandex Browser",yandexbrowser:bt,version:we||vt(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(It)?tt={name:"UC Browser",ucbrowser:bt,version:vt(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(It)?tt={name:"Maxthon",maxthon:bt,version:vt(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(It)?tt={name:"Epiphany",epiphany:bt,version:vt(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(It)?tt={name:"Puffin",puffin:bt,version:vt(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(It)?tt={name:"Sleipnir",sleipnir:bt,version:vt(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(It)?tt={name:"K-Meleon",kMeleon:bt,version:vt(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Qt?(tt={name:"Windows Phone",osname:"Windows Phone",windowsphone:bt},oe?(tt.msedge=bt,tt.version=oe):(tt.msie=bt,tt.version=vt(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(It)?tt={name:"Internet Explorer",msie:bt,version:vt(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:mt?tt={name:"Chrome",osname:"Chrome OS",chromeos:bt,chromeBook:bt,chrome:bt,version:vt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(It)?tt={name:"Microsoft Edge",msedge:bt,version:oe}:/vivaldi/i.test(It)?tt={name:"Vivaldi",vivaldi:bt,version:vt(/vivaldi\/(\d+(\.\d+)?)/i)||we}:Dt?tt={name:"Sailfish",osname:"Sailfish OS",sailfish:bt,version:vt(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(It)?tt={name:"SeaMonkey",seamonkey:bt,version:vt(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(It)?(tt={name:"Firefox",firefox:bt,version:vt(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(It)&&(tt.firefoxos=bt,tt.osname="Firefox OS")):Ct?tt={name:"Amazon Silk",silk:bt,version:vt(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(It)?tt={name:"PhantomJS",phantom:bt,version:vt(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(It)?tt={name:"SlimerJS",slimer:bt,version:vt(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(It)||/rim\stablet/i.test(It)?tt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:bt,version:we||vt(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Ft?(tt={name:"WebOS",osname:"WebOS",webos:bt,version:we||vt(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(It)&&(tt.touchpad=bt)):/bada/i.test(It)?tt={name:"Bada",osname:"Bada",bada:bt,version:vt(/dolfin\/(\d+(\.\d+)?)/i)}:Ut?tt={name:"Tizen",osname:"Tizen",tizen:bt,version:vt(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||we}:/qupzilla/i.test(It)?tt={name:"QupZilla",qupzilla:bt,version:vt(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||we}:/chromium/i.test(It)?tt={name:"Chromium",chromium:bt,version:vt(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||we}:/chrome|crios|crmo/i.test(It)?tt={name:"Chrome",chrome:bt,version:vt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ut?tt={name:"Android",version:we}:/safari|applewebkit/i.test(It)?(tt={name:"Safari",safari:bt},we&&(tt.version=we)):st?(tt={name:st=="iphone"?"iPhone":st=="ipad"?"iPad":"iPod"},we&&(tt.version=we)):tt=/googlebot/i.test(It)?{name:"Googlebot",googlebot:bt,version:vt(/googlebot\/(\d+(\.\d+))/i)||we}:{name:vt(/^(.*)\/(.*) /),version:et(/^(.*)\/(.*) /)},!tt.msedge&&/(apple)?webkit/i.test(It)?(/(apple)?webkit\/537\.36/i.test(It)?(tt.name=tt.name||"Blink",tt.blink=bt):(tt.name=tt.name||"Webkit",tt.webkit=bt),!tt.version&&we&&(tt.version=we)):!tt.opera&&/gecko\//i.test(It)&&(tt.name=tt.name||"Gecko",tt.gecko=bt,tt.version=tt.version||vt(/gecko\/(\d+(\.\d+)?)/i)),tt.windowsphone||!ut&&!tt.silk?!tt.windowsphone&&st?(tt[st]=bt,tt.ios=bt,tt.osname="iOS"):Kt?(tt.mac=bt,tt.osname="macOS"):pe?(tt.xbox=bt,tt.osname="Xbox"):$t?(tt.windows=bt,tt.osname="Windows"):ue&&(tt.linux=bt,tt.osname="Linux"):(tt.android=bt,tt.osname="Android");var Ue="";tt.windows?Ue=function(Jt){switch(Jt){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(vt(/Windows ((NT|XP)( \d\d?.\d)?)/i)):tt.windowsphone?Ue=vt(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):tt.mac?(Ue=vt(/Mac OS X (\d+([_\.\s]\d+)*)/i),Ue=Ue.replace(/[_\s]/g,".")):st?(Ue=vt(/os (\d+([_\s]\d+)*) like mac os x/i),Ue=Ue.replace(/[_\s]/g,".")):ut?Ue=vt(/android[ \/-](\d+(\.\d+)*)/i):tt.webos?Ue=vt(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):tt.blackberry?Ue=vt(/rim\stablet\sos\s(\d+(\.\d+)*)/i):tt.bada?Ue=vt(/bada\/(\d+(\.\d+)*)/i):tt.tizen&&(Ue=vt(/tizen[\/\s](\d+(\.\d+)*)/i)),Ue&&(tt.osversion=Ue);var de=!tt.windows&&Ue.split(".")[0];return Se||pt||st=="ipad"||ut&&(de==3||de>=4&&!Ne)||tt.silk?tt.tablet=bt:(Ne||st=="iphone"||st=="ipod"||ut||ct||tt.blackberry||tt.webos||tt.bada)&&(tt.mobile=bt),tt.msedge||tt.msie&&tt.version>=10||tt.yandexbrowser&&tt.version>=15||tt.vivaldi&&tt.version>=1||tt.chrome&&tt.version>=20||tt.samsungBrowser&&tt.version>=4||tt.firefox&&tt.version>=20||tt.safari&&tt.version>=6||tt.opera&&tt.version>=10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]>=6||tt.blackberry&&tt.version>=10.1||tt.chromium&&tt.version>=20?tt.a=bt:tt.msie&&tt.version<10||tt.chrome&&tt.version<20||tt.firefox&&tt.version<20||tt.safari&&tt.version<6||tt.opera&&tt.version<10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]<6||tt.chromium&&tt.version<20?tt.c=bt:tt.x=bt,tt}function Wt(It){return It.split(".").length}function xt(It,vt){var et,tt=[];if(Array.prototype.map)return Array.prototype.map.call(It,vt);for(et=0;et=0;){if(et[0][vt]>et[1][vt])return 1;if(et[0][vt]!==et[1][vt])return-1;if(vt===0)return 0}}function Bt(It,vt,et){var tt=Tt;typeof vt=="string"&&(et=vt,vt=void 0),vt===void 0&&(vt=!1),et&&(tt=Nt(et));var st=""+tt.version;for(var rt in It)if(It.hasOwnProperty(rt)&&tt[rt]){if(typeof It[rt]!="string")throw new Error("Browser version in the minVersion map should be a string: "+rt+": "+String(It));return Ot([st,It[rt]])<0}return vt}function At(It,vt,et){return!Bt(It,vt,et)}var bt=!0,Tt=Nt(typeof navigator!="undefined"&&navigator.userAgent||"");return Tt.test=function(It){for(var vt=0;vt=this.charLength-this.charReceived?this.charLength-this.charReceived:Tt.length;if(Tt.copy(this.charBuffer,this.charReceived,0,vt),this.charReceived+=vt,this.charReceived=55296&&tt<=56319)){if(this.charReceived=this.charLength=0,Tt.length===0)return It;break}this.charLength+=this.surrogateSize,It=""}this.detectIncompleteChar(Tt);var et=Tt.length;this.charLength&&(Tt.copy(this.charBuffer,0,Tt.length-this.charReceived,et),et-=this.charReceived),It+=Tt.toString(this.encoding,0,et);var et=It.length-1,tt=It.charCodeAt(et);if(tt>=55296&&tt<=56319){var st=this.surrogateSize;return this.charLength+=st,this.charReceived+=st,this.charBuffer.copy(this.charBuffer,st,0,st),Tt.copy(this.charBuffer,0,0,st),It.substring(0,et)}return It},bt.prototype.detectIncompleteChar=function(Tt){for(var It=Tt.length>=3?3:Tt.length;It>0;It--){var vt=Tt[Tt.length-It];if(It==1&&vt>>5==6){this.charLength=2;break}if(It<=2&&vt>>4==14){this.charLength=3;break}if(It<=3&&vt>>3==30){this.charLength=4;break}}this.charReceived=It},bt.prototype.end=function(Tt){var It="";if(Tt&&Tt.length&&(It=this.write(Tt)),this.charReceived){var vt=this.charReceived,et=this.charBuffer,tt=this.encoding;It+=et.slice(0,vt).toString(tt)}return It}},{buffer:38}],38:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(){return Ot.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function xt(Mt,Et){if(Wt()=Wt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Wt().toString(16)+" bytes");return 0|Mt}function rt(Mt){return+Mt!=Mt&&(Mt=0),Ot.alloc(+Mt)}function ut(Mt,Et){if(Ot.isBuffer(Mt))return Mt.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Mt)||Mt instanceof ArrayBuffer))return Mt.byteLength;typeof Mt!="string"&&(Mt=""+Mt);var Ht=Mt.length;if(Ht===0)return 0;for(var Pt=!1;;)switch(Et){case"ascii":case"latin1":case"binary":return Ht;case"utf8":case"utf-8":case void 0:return rn(Mt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ht;case"hex":return Ht>>>1;case"base64":return je(Mt).length;default:if(Pt)return rn(Mt).length;Et=(""+Et).toLowerCase(),Pt=!0}}function ct(Mt,Et,Ht){var Pt=!1;if((Et===void 0||Et<0)&&(Et=0),Et>this.length||((Ht===void 0||Ht>this.length)&&(Ht=this.length),Ht<=0)||(Ht>>>=0,Et>>>=0,Ht<=Et))return"";for(Mt||(Mt="utf8");;)switch(Mt){case"hex":return pe(this,Et,Ht);case"utf8":case"utf-8":return oe(this,Et,Ht);case"ascii":return Se(this,Et,Ht);case"latin1":case"binary":return Ne(this,Et,Ht);case"base64":return ue(this,Et,Ht);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue(this,Et,Ht);default:if(Pt)throw new TypeError("Unknown encoding: "+Mt);Mt=(Mt+"").toLowerCase(),Pt=!0}}function pt(Mt,Et,Ht){var Pt=Mt[Et];Mt[Et]=Mt[Ht],Mt[Ht]=Pt}function mt(Mt,Et,Ht,Pt,dt){if(Mt.length===0)return-1;if(typeof Ht=="string"?(Pt=Ht,Ht=0):Ht>2147483647?Ht=2147483647:Ht<-2147483648&&(Ht=-2147483648),Ht=+Ht,isNaN(Ht)&&(Ht=dt?0:Mt.length-1),Ht<0&&(Ht=Mt.length+Ht),Ht>=Mt.length){if(dt)return-1;Ht=Mt.length-1}else if(Ht<0){if(!dt)return-1;Ht=0}if(typeof Et=="string"&&(Et=Ot.from(Et,Pt)),Ot.isBuffer(Et))return Et.length===0?-1:Ct(Mt,Et,Ht,Pt,dt);if(typeof Et=="number")return Et&=255,Ot.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?dt?Uint8Array.prototype.indexOf.call(Mt,Et,Ht):Uint8Array.prototype.lastIndexOf.call(Mt,Et,Ht):Ct(Mt,[Et],Ht,Pt,dt);throw new TypeError("val must be string, number or Buffer")}function Ct(Mt,Et,Ht,Pt,dt){function gt(Re,hn){return zt===1?Re[hn]:Re.readUInt16BE(hn*zt)}var zt=1,re=Mt.length,Zt=Et.length;if(Pt!==void 0&&((Pt=String(Pt).toLowerCase())==="ucs2"||Pt==="ucs-2"||Pt==="utf16le"||Pt==="utf-16le")){if(Mt.length<2||Et.length<2)return-1;zt=2,re/=2,Zt/=2,Ht/=2}var ye;if(dt){var Ye=-1;for(ye=Ht;yere&&(Ht=re-Zt),ye=Ht;ye>=0;ye--){for(var sn=!0,Le=0;Ledt&&(Pt=dt):Pt=dt;var gt=Et.length;if(gt%2!=0)throw new TypeError("Invalid hex string");Pt>gt/2&&(Pt=gt/2);for(var zt=0;zt239?4:gt>223?3:gt>191?2:1;if(dt+re<=Ht){var Zt,ye,Ye,sn;switch(re){case 1:gt<128&&(zt=gt);break;case 2:Zt=Mt[dt+1],(192&Zt)==128&&(sn=(31>)<<6|63&Zt)>127&&(zt=sn);break;case 3:Zt=Mt[dt+1],ye=Mt[dt+2],(192&Zt)==128&&(192&ye)==128&&(sn=(15>)<<12|(63&Zt)<<6|63&ye)>2047&&(sn<55296||sn>57343)&&(zt=sn);break;case 4:Zt=Mt[dt+1],ye=Mt[dt+2],Ye=Mt[dt+3],(192&Zt)==128&&(192&ye)==128&&(192&Ye)==128&&(sn=(15>)<<18|(63&Zt)<<12|(63&ye)<<6|63&Ye)>65535&&sn<1114112&&(zt=sn)}}zt===null?(zt=65533,re=1):zt>65535&&(zt-=65536,Pt.push(zt>>>10&1023|55296),zt=56320|1023&zt),Pt.push(zt),dt+=re}return we(Pt)}function we(Mt){var Et=Mt.length;if(Et<=he)return String.fromCharCode.apply(String,Mt);for(var Ht="",Pt=0;PtPt)&&(Ht=Pt);for(var dt="",gt=Et;gtHt)throw new RangeError("Trying to access beyond buffer length")}function Jt(Mt,Et,Ht,Pt,dt,gt){if(!Ot.isBuffer(Mt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Et>dt||EtMt.length)throw new RangeError("Index out of range")}function ee(Mt,Et,Ht,Pt){Et<0&&(Et=65535+Et+1);for(var dt=0,gt=Math.min(Mt.length-Ht,2);dt>>8*(Pt?dt:1-dt)}function ae(Mt,Et,Ht,Pt){Et<0&&(Et=4294967295+Et+1);for(var dt=0,gt=Math.min(Mt.length-Ht,4);dt>>8*(Pt?dt:3-dt)&255}function fe(Mt,Et,Ht,Pt,dt,gt){if(Ht+Pt>Mt.length)throw new RangeError("Index out of range");if(Ht<0)throw new RangeError("Index out of range")}function se(Mt,Et,Ht,Pt,dt){return dt||fe(Mt,Et,Ht,4,34028234663852886e22,-34028234663852886e22),Ee.write(Mt,Et,Ht,Pt,23,4),Ht+4}function De(Mt,Et,Ht,Pt,dt){return dt||fe(Mt,Et,Ht,8,17976931348623157e292,-17976931348623157e292),Ee.write(Mt,Et,Ht,Pt,52,8),Ht+8}function Oe(Mt){if(Mt=en(Mt).replace(_t,""),Mt.length<2)return"";for(;Mt.length%4!=0;)Mt+="=";return Mt}function en(Mt){return Mt.trim?Mt.trim():Mt.replace(/^\s+|\s+$/g,"")}function We(Mt){return Mt<16?"0"+Mt.toString(16):Mt.toString(16)}function rn(Mt,Et){Et=Et||1/0;for(var Ht,Pt=Mt.length,dt=null,gt=[],zt=0;zt55295&&Ht<57344){if(!dt){if(Ht>56319){(Et-=3)>-1&>.push(239,191,189);continue}if(zt+1===Pt){(Et-=3)>-1&>.push(239,191,189);continue}dt=Ht;continue}if(Ht<56320){(Et-=3)>-1&>.push(239,191,189),dt=Ht;continue}Ht=65536+(dt-55296<<10|Ht-56320)}else dt&&(Et-=3)>-1&>.push(239,191,189);if(dt=null,Ht<128){if((Et-=1)<0)break;gt.push(Ht)}else if(Ht<2048){if((Et-=2)<0)break;gt.push(Ht>>6|192,63&Ht|128)}else if(Ht<65536){if((Et-=3)<0)break;gt.push(Ht>>12|224,Ht>>6&63|128,63&Ht|128)}else{if(!(Ht<1114112))throw new Error("Invalid code point");if((Et-=4)<0)break;gt.push(Ht>>18|240,Ht>>12&63|128,Ht>>6&63|128,63&Ht|128)}}return gt}function ke(Mt){for(var Et=[],Ht=0;Ht>8,dt=Ht%256,gt.push(dt),gt.push(Pt);return gt}function je(Mt){return le.toByteArray(Oe(Mt))}function $e(Mt,Et,Ht,Pt){for(var dt=0;dt=Et.length||dt>=Mt.length);++dt)Et[dt+Ht]=Mt[dt];return dt}function me(Mt){return Mt!==Mt}var le=yt("base64-js"),Ee=yt("ieee754"),ce=yt("isarray");Yt.Buffer=Ot,Yt.SlowBuffer=rt,Yt.INSPECT_MAX_BYTES=50,Ot.TYPED_ARRAY_SUPPORT=Nt.TYPED_ARRAY_SUPPORT!==void 0?Nt.TYPED_ARRAY_SUPPORT:function(){try{var Mt=new Uint8Array(1);return Mt.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Mt.foo()===42&&typeof Mt.subarray=="function"&&Mt.subarray(1,1).byteLength===0}catch(Et){return!1}}(),Yt.kMaxLength=Wt(),Ot.poolSize=8192,Ot._augment=function(Mt){return Mt.__proto__=Ot.prototype,Mt},Ot.from=function(Mt,Et,Ht){return Bt(null,Mt,Et,Ht)},Ot.TYPED_ARRAY_SUPPORT&&(Ot.prototype.__proto__=Uint8Array.prototype,Ot.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&Ot[Symbol.species]===Ot&&Object.defineProperty(Ot,Symbol.species,{value:null,configurable:!0})),Ot.alloc=function(Mt,Et,Ht){return bt(null,Mt,Et,Ht)},Ot.allocUnsafe=function(Mt){return Tt(null,Mt)},Ot.allocUnsafeSlow=function(Mt){return Tt(null,Mt)},Ot.isBuffer=function(Mt){return!(Mt==null||!Mt._isBuffer)},Ot.compare=function(Mt,Et){if(!Ot.isBuffer(Mt)||!Ot.isBuffer(Et))throw new TypeError("Arguments must be Buffers");if(Mt===Et)return 0;for(var Ht=Mt.length,Pt=Et.length,dt=0,gt=Math.min(Ht,Pt);dt0&&(Mt=this.toString("hex",0,Et).match(/.{2}/g).join(" "),this.length>Et&&(Mt+=" ... ")),""},Ot.prototype.compare=function(Mt,Et,Ht,Pt,dt){if(!Ot.isBuffer(Mt))throw new TypeError("Argument must be a Buffer");if(Et===void 0&&(Et=0),Ht===void 0&&(Ht=Mt?Mt.length:0),Pt===void 0&&(Pt=0),dt===void 0&&(dt=this.length),Et<0||Ht>Mt.length||Pt<0||dt>this.length)throw new RangeError("out of range index");if(Pt>=dt&&Et>=Ht)return 0;if(Pt>=dt)return-1;if(Et>=Ht)return 1;if(Et>>>=0,Ht>>>=0,Pt>>>=0,dt>>>=0,this===Mt)return 0;for(var gt=dt-Pt,zt=Ht-Et,re=Math.min(gt,zt),Zt=this.slice(Pt,dt),ye=Mt.slice(Et,Ht),Ye=0;Yedt)&&(Ht=dt),Mt.length>0&&(Ht<0||Et<0)||Et>this.length)throw new RangeError("Attempt to write outside buffer bounds");Pt||(Pt="utf8");for(var gt=!1;;)switch(Pt){case"hex":return Dt(this,Mt,Et,Ht);case"utf8":case"utf-8":return Ut(this,Mt,Et,Ht);case"ascii":return Ft(this,Mt,Et,Ht);case"latin1":case"binary":return Qt(this,Mt,Et,Ht);case"base64":return $t(this,Mt,Et,Ht);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kt(this,Mt,Et,Ht);default:if(gt)throw new TypeError("Unknown encoding: "+Pt);Pt=(""+Pt).toLowerCase(),gt=!0}},Ot.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var he=4096;Ot.prototype.slice=function(Mt,Et){var Ht=this.length;Mt=~~Mt,Et=Et===void 0?Ht:~~Et,Mt<0?(Mt+=Ht)<0&&(Mt=0):Mt>Ht&&(Mt=Ht),Et<0?(Et+=Ht)<0&&(Et=0):Et>Ht&&(Et=Ht),Et0&&(dt*=256);)Pt+=this[Mt+--Et]*dt;return Pt},Ot.prototype.readUInt8=function(Mt,Et){return Et||de(Mt,1,this.length),this[Mt]},Ot.prototype.readUInt16LE=function(Mt,Et){return Et||de(Mt,2,this.length),this[Mt]|this[Mt+1]<<8},Ot.prototype.readUInt16BE=function(Mt,Et){return Et||de(Mt,2,this.length),this[Mt]<<8|this[Mt+1]},Ot.prototype.readUInt32LE=function(Mt,Et){return Et||de(Mt,4,this.length),(this[Mt]|this[Mt+1]<<8|this[Mt+2]<<16)+16777216*this[Mt+3]},Ot.prototype.readUInt32BE=function(Mt,Et){return Et||de(Mt,4,this.length),16777216*this[Mt]+(this[Mt+1]<<16|this[Mt+2]<<8|this[Mt+3])},Ot.prototype.readIntLE=function(Mt,Et,Ht){Mt|=0,Et|=0,Ht||de(Mt,Et,this.length);for(var Pt=this[Mt],dt=1,gt=0;++gt=dt&&(Pt-=Math.pow(2,8*Et)),Pt},Ot.prototype.readIntBE=function(Mt,Et,Ht){Mt|=0,Et|=0,Ht||de(Mt,Et,this.length);for(var Pt=Et,dt=1,gt=this[Mt+--Pt];Pt>0&&(dt*=256);)gt+=this[Mt+--Pt]*dt;return dt*=128,gt>=dt&&(gt-=Math.pow(2,8*Et)),gt},Ot.prototype.readInt8=function(Mt,Et){return Et||de(Mt,1,this.length),128&this[Mt]?-1*(255-this[Mt]+1):this[Mt]},Ot.prototype.readInt16LE=function(Mt,Et){Et||de(Mt,2,this.length);var Ht=this[Mt]|this[Mt+1]<<8;return 32768&Ht?4294901760|Ht:Ht},Ot.prototype.readInt16BE=function(Mt,Et){Et||de(Mt,2,this.length);var Ht=this[Mt+1]|this[Mt]<<8;return 32768&Ht?4294901760|Ht:Ht},Ot.prototype.readInt32LE=function(Mt,Et){return Et||de(Mt,4,this.length),this[Mt]|this[Mt+1]<<8|this[Mt+2]<<16|this[Mt+3]<<24},Ot.prototype.readInt32BE=function(Mt,Et){return Et||de(Mt,4,this.length),this[Mt]<<24|this[Mt+1]<<16|this[Mt+2]<<8|this[Mt+3]},Ot.prototype.readFloatLE=function(Mt,Et){return Et||de(Mt,4,this.length),Ee.read(this,Mt,!0,23,4)},Ot.prototype.readFloatBE=function(Mt,Et){return Et||de(Mt,4,this.length),Ee.read(this,Mt,!1,23,4)},Ot.prototype.readDoubleLE=function(Mt,Et){return Et||de(Mt,8,this.length),Ee.read(this,Mt,!0,52,8)},Ot.prototype.readDoubleBE=function(Mt,Et){return Et||de(Mt,8,this.length),Ee.read(this,Mt,!1,52,8)},Ot.prototype.writeUIntLE=function(Mt,Et,Ht,Pt){Mt=+Mt,Et|=0,Ht|=0,!Pt&&Jt(this,Mt,Et,Ht,Math.pow(2,8*Ht)-1,0);var dt=1,gt=0;for(this[Et]=255&Mt;++gt=0&&(gt*=256);)this[Et+dt]=Mt/gt&255;return Et+Ht},Ot.prototype.writeUInt8=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,1,255,0),Ot.TYPED_ARRAY_SUPPORT||(Mt=Math.floor(Mt)),this[Et]=255&Mt,Et+1},Ot.prototype.writeUInt16LE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,2,65535,0),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=255&Mt,this[Et+1]=Mt>>>8):ee(this,Mt,Et,!0),Et+2},Ot.prototype.writeUInt16BE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,2,65535,0),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=Mt>>>8,this[Et+1]=255&Mt):ee(this,Mt,Et,!1),Et+2},Ot.prototype.writeUInt32LE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,4,4294967295,0),Ot.TYPED_ARRAY_SUPPORT?(this[Et+3]=Mt>>>24,this[Et+2]=Mt>>>16,this[Et+1]=Mt>>>8,this[Et]=255&Mt):ae(this,Mt,Et,!0),Et+4},Ot.prototype.writeUInt32BE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,4,4294967295,0),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=Mt>>>24,this[Et+1]=Mt>>>16,this[Et+2]=Mt>>>8,this[Et+3]=255&Mt):ae(this,Mt,Et,!1),Et+4},Ot.prototype.writeIntLE=function(Mt,Et,Ht,Pt){if(Mt=+Mt,Et|=0,!Pt){var dt=Math.pow(2,8*Ht-1);Jt(this,Mt,Et,Ht,dt-1,-dt)}var gt=0,zt=1,re=0;for(this[Et]=255&Mt;++gt>0)-re&255;return Et+Ht},Ot.prototype.writeIntBE=function(Mt,Et,Ht,Pt){if(Mt=+Mt,Et|=0,!Pt){var dt=Math.pow(2,8*Ht-1);Jt(this,Mt,Et,Ht,dt-1,-dt)}var gt=Ht-1,zt=1,re=0;for(this[Et+gt]=255&Mt;--gt>=0&&(zt*=256);)Mt<0&&re===0&&this[Et+gt+1]!==0&&(re=1),this[Et+gt]=(Mt/zt>>0)-re&255;return Et+Ht},Ot.prototype.writeInt8=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,1,127,-128),Ot.TYPED_ARRAY_SUPPORT||(Mt=Math.floor(Mt)),Mt<0&&(Mt=255+Mt+1),this[Et]=255&Mt,Et+1},Ot.prototype.writeInt16LE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,2,32767,-32768),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=255&Mt,this[Et+1]=Mt>>>8):ee(this,Mt,Et,!0),Et+2},Ot.prototype.writeInt16BE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,2,32767,-32768),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=Mt>>>8,this[Et+1]=255&Mt):ee(this,Mt,Et,!1),Et+2},Ot.prototype.writeInt32LE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,4,2147483647,-2147483648),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=255&Mt,this[Et+1]=Mt>>>8,this[Et+2]=Mt>>>16,this[Et+3]=Mt>>>24):ae(this,Mt,Et,!0),Et+4},Ot.prototype.writeInt32BE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,4,2147483647,-2147483648),Mt<0&&(Mt=4294967295+Mt+1),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=Mt>>>24,this[Et+1]=Mt>>>16,this[Et+2]=Mt>>>8,this[Et+3]=255&Mt):ae(this,Mt,Et,!1),Et+4},Ot.prototype.writeFloatLE=function(Mt,Et,Ht){return se(this,Mt,Et,!0,Ht)},Ot.prototype.writeFloatBE=function(Mt,Et,Ht){return se(this,Mt,Et,!1,Ht)},Ot.prototype.writeDoubleLE=function(Mt,Et,Ht){return De(this,Mt,Et,!0,Ht)},Ot.prototype.writeDoubleBE=function(Mt,Et,Ht){return De(this,Mt,Et,!1,Ht)},Ot.prototype.copy=function(Mt,Et,Ht,Pt){if(Ht||(Ht=0),Pt||Pt===0||(Pt=this.length),Et>=Mt.length&&(Et=Mt.length),Et||(Et=0),Pt>0&&Pt=this.length)throw new RangeError("sourceStart out of bounds");if(Pt<0)throw new RangeError("sourceEnd out of bounds");Pt>this.length&&(Pt=this.length),Mt.length-Et=0;--dt)Mt[dt+Et]=this[dt+Ht];else if(gt<1e3||!Ot.TYPED_ARRAY_SUPPORT)for(dt=0;dt>>=0,Ht=Ht===void 0?this.length:Ht>>>0,Mt||(Mt=0);var gt;if(typeof Mt=="number")for(gt=Et;gt>>1;Bt(xt[Tt])2&&(ct=vt.call(arguments,1)),st(ct)})})}function Ot(et){return Promise.all(et.map(Wt,this))}function Bt(et){for(var tt=new et.constructor,st=Object.keys(et),rt=[],ut=0;utet;)if((Tt=It[et++])!=Tt)return!0}else for(;vt>et;et++)if((Ot||et in It)&&It[et]===At)return Ot||et||0;return!Ot&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(yt,Vt,Yt){var Nt=yt("./_cof"),Wt=yt("./_wks")("toStringTag"),xt=Nt(function(){return arguments}())=="Arguments",Ot=function(Bt,At){try{return Bt[At]}catch(bt){}};Vt.exports=function(Bt){var At,bt,Tt;return Bt===void 0?"Undefined":Bt===null?"Null":typeof(bt=Ot(At=Object(Bt),Wt))=="string"?bt:xt?Nt(At):(Tt=Nt(At))=="Object"&&typeof At.callee=="function"?"Arguments":Tt}},{"./_cof":64,"./_wks":131}],64:[function(yt,Vt,Yt){var Nt={}.toString;Vt.exports=function(Wt){return Nt.call(Wt).slice(8,-1)}},{}],65:[function(yt,Vt,Yt){var Nt=Vt.exports={version:"2.5.7"};typeof __e=="number"&&(__e=Nt)},{}],66:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_object-dp"),Wt=yt("./_property-desc");Vt.exports=function(xt,Ot,Bt){Ot in xt?Nt.f(xt,Ot,Wt(0,Bt)):xt[Ot]=Bt}},{"./_object-dp":98,"./_property-desc":111}],67:[function(yt,Vt,Yt){var Nt=yt("./_a-function");Vt.exports=function(Wt,xt,Ot){if(Nt(Wt),xt===void 0)return Wt;switch(Ot){case 1:return function(Bt){return Wt.call(xt,Bt)};case 2:return function(Bt,At){return Wt.call(xt,Bt,At)};case 3:return function(Bt,At,bt){return Wt.call(xt,Bt,At,bt)}}return function(){return Wt.apply(xt,arguments)}}},{"./_a-function":58}],68:[function(yt,Vt,Yt){Vt.exports=function(Nt){if(Nt==null)throw TypeError("Can't call method on "+Nt);return Nt}},{}],69:[function(yt,Vt,Yt){Vt.exports=!yt("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(yt,Vt,Yt){var Nt=yt("./_is-object"),Wt=yt("./_global").document,xt=Nt(Wt)&&Nt(Wt.createElement);Vt.exports=function(Ot){return xt?Wt.createElement(Ot):{}}},{"./_global":76,"./_is-object":85}],71:[function(yt,Vt,Yt){Vt.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(yt,Vt,Yt){var Nt=yt("./_object-keys"),Wt=yt("./_object-gops"),xt=yt("./_object-pie");Vt.exports=function(Ot){var Bt=Nt(Ot),At=Wt.f;if(At)for(var bt,Tt=At(Ot),It=xt.f,vt=0;Tt.length>vt;)It.call(Ot,bt=Tt[vt++])&&Bt.push(bt);return Bt}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(yt,Vt,Yt){var Nt=yt("./_global"),Wt=yt("./_core"),xt=yt("./_ctx"),Ot=yt("./_hide"),Bt=yt("./_has"),At=function(bt,Tt,It){var vt,et,tt,st=bt&At.F,rt=bt&At.G,ut=bt&At.S,ct=bt&At.P,pt=bt&At.B,mt=bt&At.W,Ct=rt?Wt:Wt[Tt]||(Wt[Tt]={}),Dt=Ct.prototype,Ut=rt?Nt:ut?Nt[Tt]:(Nt[Tt]||{}).prototype;rt&&(It=Tt);for(vt in It)(et=!st&&Ut&&Ut[vt]!==void 0)&&Bt(Ct,vt)||(tt=et?Ut[vt]:It[vt],Ct[vt]=rt&&typeof Ut[vt]!="function"?It[vt]:pt&&et?xt(tt,Nt):mt&&Ut[vt]==tt?function(Ft){var Qt=function($t,Kt,ue){if(this instanceof Ft){switch(arguments.length){case 0:return new Ft;case 1:return new Ft($t);case 2:return new Ft($t,Kt)}return new Ft($t,Kt,ue)}return Ft.apply(this,arguments)};return Qt.prototype=Ft.prototype,Qt}(tt):ct&&typeof tt=="function"?xt(Function.call,tt):tt,ct&&((Ct.virtual||(Ct.virtual={}))[vt]=tt,bt&At.R&&Dt&&!Dt[vt]&&Ot(Dt,vt,tt)))};At.F=1,At.G=2,At.S=4,At.P=8,At.B=16,At.W=32,At.U=64,At.R=128,Vt.exports=At},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(yt,Vt,Yt){Vt.exports=function(Nt){try{return!!Nt()}catch(Wt){return!0}}},{}],75:[function(yt,Vt,It){var Nt=yt("./_ctx"),Wt=yt("./_iter-call"),xt=yt("./_is-array-iter"),Ot=yt("./_an-object"),Bt=yt("./_to-length"),At=yt("./core.get-iterator-method"),bt={},Tt={},It=Vt.exports=function(vt,et,tt,st,rt){var ut,ct,pt,mt,Ct=rt?function(){return vt}:At(vt),Dt=Nt(tt,st,et?2:1),Ut=0;if(typeof Ct!="function")throw TypeError(vt+" is not iterable!");if(xt(Ct)){for(ut=Bt(vt.length);ut>Ut;Ut++)if((mt=et?Dt(Ot(ct=vt[Ut])[0],ct[1]):Dt(vt[Ut]))===bt||mt===Tt)return mt}else for(pt=Ct.call(vt);!(ct=pt.next()).done;)if((mt=Wt(pt,Dt,ct.value,et))===bt||mt===Tt)return mt};It.BREAK=bt,It.RETURN=Tt},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(yt,Vt,Yt){var Nt=Vt.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Nt)},{}],77:[function(yt,Vt,Yt){var Nt={}.hasOwnProperty;Vt.exports=function(Wt,xt){return Nt.call(Wt,xt)}},{}],78:[function(yt,Vt,Yt){var Nt=yt("./_object-dp"),Wt=yt("./_property-desc");Vt.exports=yt("./_descriptors")?function(xt,Ot,Bt){return Nt.f(xt,Ot,Wt(1,Bt))}:function(xt,Ot,Bt){return xt[Ot]=Bt,xt}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(yt,Vt,Yt){var Nt=yt("./_global").document;Vt.exports=Nt&&Nt.documentElement},{"./_global":76}],80:[function(yt,Vt,Yt){Vt.exports=!yt("./_descriptors")&&!yt("./_fails")(function(){return Object.defineProperty(yt("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(yt,Vt,Yt){Vt.exports=function(Nt,Wt,xt){var Ot=xt===void 0;switch(Wt.length){case 0:return Ot?Nt():Nt.call(xt);case 1:return Ot?Nt(Wt[0]):Nt.call(xt,Wt[0]);case 2:return Ot?Nt(Wt[0],Wt[1]):Nt.call(xt,Wt[0],Wt[1]);case 3:return Ot?Nt(Wt[0],Wt[1],Wt[2]):Nt.call(xt,Wt[0],Wt[1],Wt[2]);case 4:return Ot?Nt(Wt[0],Wt[1],Wt[2],Wt[3]):Nt.call(xt,Wt[0],Wt[1],Wt[2],Wt[3])}return Nt.apply(xt,Wt)}},{}],82:[function(yt,Vt,Yt){var Nt=yt("./_cof");Vt.exports=Object("z").propertyIsEnumerable(0)?Object:function(Wt){return Nt(Wt)=="String"?Wt.split(""):Object(Wt)}},{"./_cof":64}],83:[function(yt,Vt,Yt){var Nt=yt("./_iterators"),Wt=yt("./_wks")("iterator"),xt=Array.prototype;Vt.exports=function(Ot){return Ot!==void 0&&(Nt.Array===Ot||xt[Wt]===Ot)}},{"./_iterators":91,"./_wks":131}],84:[function(yt,Vt,Yt){var Nt=yt("./_cof");Vt.exports=Array.isArray||function(Wt){return Nt(Wt)=="Array"}},{"./_cof":64}],85:[function(yt,Vt,Yt){Vt.exports=function(Nt){return typeof Nt=="object"?Nt!==null:typeof Nt=="function"}},{}],86:[function(yt,Vt,Yt){var Nt=yt("./_an-object");Vt.exports=function(Wt,xt,Ot,Bt){try{return Bt?xt(Nt(Ot)[0],Ot[1]):xt(Ot)}catch(bt){var At=Wt.return;throw At!==void 0&&Nt(At.call(Wt)),bt}}},{"./_an-object":61}],87:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_object-create"),Wt=yt("./_property-desc"),xt=yt("./_set-to-string-tag"),Ot={};yt("./_hide")(Ot,yt("./_wks")("iterator"),function(){return this}),Vt.exports=function(Bt,At,bt){Bt.prototype=Nt(Ot,{next:Wt(1,bt)}),xt(Bt,At+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_library"),Wt=yt("./_export"),xt=yt("./_redefine"),Ot=yt("./_hide"),Bt=yt("./_iterators"),At=yt("./_iter-create"),bt=yt("./_set-to-string-tag"),Tt=yt("./_object-gpo"),It=yt("./_wks")("iterator"),vt=!([].keys&&"next"in[].keys()),et=function(){return this};Vt.exports=function(tt,st,rt,ut,ct,pt,mt){At(rt,st,ut);var Ct,Dt,Ut,Ft=function(pe){if(!vt&&pe in ue)return ue[pe];switch(pe){case"keys":case"values":return function(){return new rt(this,pe)}}return function(){return new rt(this,pe)}},Qt=st+" Iterator",$t=ct=="values",Kt=!1,ue=tt.prototype,oe=ue[It]||ue["@@iterator"]||ct&&ue[ct],we=oe||Ft(ct),Se=ct?$t?Ft("entries"):we:void 0,Ne=st=="Array"&&ue.entries||oe;if(Ne&&(Ut=Tt(Ne.call(new tt)))!==Object.prototype&&Ut.next&&(bt(Ut,Qt,!0),Nt||typeof Ut[It]=="function"||Ot(Ut,It,et)),$t&&oe&&oe.name!=="values"&&(Kt=!0,we=function(){return oe.call(this)}),Nt&&!mt||!vt&&!Kt&&ue[It]||Ot(ue,It,we),Bt[st]=we,Bt[Qt]=et,ct)if(Ct={values:$t?we:Ft("values"),keys:pt?we:Ft("keys"),entries:Se},mt)for(Dt in Ct)Dt in ue||xt(ue,Dt,Ct[Dt]);else Wt(Wt.P+Wt.F*(vt||Kt),st,Ct);return Ct}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(yt,Vt,Yt){var Nt=yt("./_wks")("iterator"),Wt=!1;try{var xt=[7][Nt]();xt.return=function(){Wt=!0},Array.from(xt,function(){throw 2})}catch(Ot){}Vt.exports=function(Ot,Bt){if(!Bt&&!Wt)return!1;var At=!1;try{var bt=[7],Tt=bt[Nt]();Tt.next=function(){return{done:At=!0}},bt[Nt]=function(){return Tt},Ot(bt)}catch(It){}return At}},{"./_wks":131}],90:[function(yt,Vt,Yt){Vt.exports=function(Nt,Wt){return{value:Wt,done:!!Nt}}},{}],91:[function(yt,Vt,Yt){Vt.exports={}},{}],92:[function(yt,Vt,Yt){Vt.exports=!0},{}],93:[function(yt,Vt,Yt){var Nt=yt("./_uid")("meta"),Wt=yt("./_is-object"),xt=yt("./_has"),Ot=yt("./_object-dp").f,Bt=0,At=Object.isExtensible||function(){return!0},bt=!yt("./_fails")(function(){return At(Object.preventExtensions({}))}),Tt=function(st){Ot(st,Nt,{value:{i:"O"+ ++Bt,w:{}}})},It=function(st,rt){if(!Wt(st))return typeof st=="symbol"?st:(typeof st=="string"?"S":"P")+st;if(!xt(st,Nt)){if(!At(st))return"F";if(!rt)return"E";Tt(st)}return st[Nt].i},vt=function(st,rt){if(!xt(st,Nt)){if(!At(st))return!0;if(!rt)return!1;Tt(st)}return st[Nt].w},et=function(st){return bt&&tt.NEED&&At(st)&&!xt(st,Nt)&&Tt(st),st},tt=Vt.exports={KEY:Nt,NEED:!1,fastKey:It,getWeak:vt,onFreeze:et}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(yt,Vt,Yt){var Nt=yt("./_global"),Wt=yt("./_task").set,xt=Nt.MutationObserver||Nt.WebKitMutationObserver,Ot=Nt.process,Bt=Nt.Promise,At=yt("./_cof")(Ot)=="process";Vt.exports=function(){var bt,Tt,It,vt=function(){var rt,ut;for(At&&(rt=Ot.domain)&&rt.exit();bt;){ut=bt.fn,bt=bt.next;try{ut()}catch(ct){throw bt?It():Tt=void 0,ct}}Tt=void 0,rt&&rt.enter()};if(At)It=function(){Ot.nextTick(vt)};else if(!xt||Nt.navigator&&Nt.navigator.standalone)if(Bt&&Bt.resolve){var et=Bt.resolve(void 0);It=function(){et.then(vt)}}else It=function(){Wt.call(Nt,vt)};else{var tt=!0,st=document.createTextNode("");new xt(vt).observe(st,{characterData:!0}),It=function(){st.data=tt=!tt}}return function(rt){var ut={fn:rt,next:void 0};Tt&&(Tt.next=ut),bt||(bt=ut,It()),Tt=ut}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(yt,Vt,Yt){"use strict";function Nt(xt){var Ot,Bt;this.promise=new xt(function(At,bt){if(Ot!==void 0||Bt!==void 0)throw TypeError("Bad Promise constructor");Ot=At,Bt=bt}),this.resolve=Wt(Ot),this.reject=Wt(Bt)}var Wt=yt("./_a-function");Vt.exports.f=function(xt){return new Nt(xt)}},{"./_a-function":58}],96:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_object-keys"),Wt=yt("./_object-gops"),xt=yt("./_object-pie"),Ot=yt("./_to-object"),Bt=yt("./_iobject"),At=Object.assign;Vt.exports=!At||yt("./_fails")(function(){var bt={},Tt={},It=Symbol(),vt="abcdefghijklmnopqrst";return bt[It]=7,vt.split("").forEach(function(et){Tt[et]=et}),At({},bt)[It]!=7||Object.keys(At({},Tt)).join("")!=vt})?function(bt,Tt){for(var It=Ot(bt),vt=arguments.length,et=1,tt=Wt.f,st=xt.f;vt>et;)for(var rt,ut=Bt(arguments[et++]),ct=tt?Nt(ut).concat(tt(ut)):Nt(ut),pt=ct.length,mt=0;pt>mt;)st.call(ut,rt=ct[mt++])&&(It[rt]=ut[rt]);return It}:At},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(yt,Vt,Yt){var Nt=yt("./_an-object"),Wt=yt("./_object-dps"),xt=yt("./_enum-bug-keys"),Ot=yt("./_shared-key")("IE_PROTO"),Bt=function(){},At=function(){var bt,Tt=yt("./_dom-create")("iframe"),It=xt.length;for(Tt.style.display="none",yt("./_html").appendChild(Tt),Tt.src="javascript:",bt=Tt.contentWindow.document,bt.open(),bt.write("