(self.webpackChunk=self.webpackChunk||[]).push([[2967],{40001:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},26227:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},49198:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},41464:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},87169:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},73331:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},15277:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},52671:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},8657:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},10906:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},56082:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},61481:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},33853:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},15075:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},43531:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},61485:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},38819:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},47472:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},32050:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ot}});var Rt=Gt(96663),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"},Xt=Vt,kt=Gt(7657),Wt=function(Ct,bt){return yt.createElement(kt.Z,(0,Rt.Z)({},Ct,{ref:bt,icon:Xt}))},xt=yt.forwardRef(Wt),Ot=xt},37036:function(){"use strict"},88010:function(Nn,Ln){"use strict";Ln.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function 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 Ln=[];function Gt(vt,et){var tt=Ln.pop();return tt===void 0?new go.Point(vt,et):(tt.x=vt,tt.y=et,tt)}function Rt(){var vt=Ln.pop();return vt===void 0?new go.Point:vt}function yt(vt){Ln.push(vt)}function Vt(vt,et,tt,st,rt,ut,ct,pt,mt){mt||(mt=new go.Point);var Et=vt-tt,Ft=rt-ct,Kt=NaN,Dt=NaN;if(Et===0)if(Ft===0)vt===tt&&(Kt=vt,Dt=et);else{var _t=(ut-pt)/Ft,qt=ut-_t*rt;Kt=vt,Dt=_t*Kt+qt}else if(Ft===0){var Ut=(et-st)/Et,ue=et-Ut*vt;Kt=rt,Dt=Ut*Kt+ue}else{var Ut=(et-st)/Et,_t=(ut-pt)/Ft,ue=et-Ut*vt,qt=ut-_t*rt;Kt=(qt-ue)/(Ut-_t),Dt=Ut*Kt+ue}return mt.x=Kt,mt.y=Dt,mt}function Xt(vt,et,tt,st,rt,ut,ct,pt,mt,Et,Ft,Kt,Dt,_t){var qt=1-mt,Ut=mt,ue=vt*qt+tt*Ut,oe=et*qt+st*Ut,Pe=tt*qt+rt*Ut,ve=st*qt+ut*Ut,Oe=rt*qt+ct*Ut,pe=ut*qt+pt*Ut,Ke=ue*qt+Pe*Ut,fe=oe*qt+ve*Ut,Qt=Pe*qt+Oe*Ut,ee=ve*qt+pe*Ut,ae=Ke*qt+Qt*Ut,de=fe*qt+ee*Ut;Et.x=ue,Et.y=oe,Ft.x=Ke,Ft.y=fe,Kt.x=ae,Kt.y=de,Dt.x=Qt,Dt.y=ee,_t.x=Oe,_t.y=pe}var kt=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=kt,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=kt,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),Et=st-Math.min(Math.sin(pt)*st/2,ct),rt=new go.Geometry,Ft=new go.PathFigure(mt,0,!0);return rt.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,ut,.2*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,et-mt,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et,Et)),Ft.add(new go.PathSegment(go.PathSegment.Line,.8*et,ct)),Ft.add(new go.PathSegment(go.PathSegment.Line,et,tt-Et)),Ft.add(new go.PathSegment(go.PathSegment.Line,et-mt,tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,mt,tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,tt-Et)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,Et).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 Et=Rt(),Ft=Rt(),Kt=Rt(),Dt=Rt();Xt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.42,Et,Ft,Kt,Dt,Dt);var _t=Rt(),qt=Rt(),Ut=Rt();Xt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.58,Dt,Dt,Ut,_t,qt);var ue=Rt(),oe=Rt(),Pe=Rt();Xt(ct,pt+ut,ct-rt,pt+ut,ct-ut,pt+rt,ct-ut,pt,.42,ue,oe,Pe,Dt,Dt);var ve=Rt(),Oe=Rt(),pe=Rt();return Xt(ct,pt+ut,ct-rt,pt+ut,ct-ut,pt+rt,ct-ut,pt,.58,Dt,Dt,pe,ve,Oe),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,ve.x*et,ve.y*tt,Oe.x*et,Oe.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,Kt.x*et,Kt.y*tt,Et.x*et,Et.y*tt,Ft.x*et,Ft.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,Pe.x*et,Pe.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,Ut.x*et,Ut.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,_t.x*et,_t.y*tt,qt.x*et,qt.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,Pe.x*et,Pe.y*tt,ue.x*et,ue.y*tt,oe.x*et,oe.y*tt).close()),yt(Et),yt(Ft),yt(Kt),yt(Dt),yt(_t),yt(qt),yt(Ut),yt(ue),yt(oe),yt(Pe),yt(ve),yt(Oe),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(),Et=Rt(),Ft=Rt(),Kt=Rt(),Dt=new go.PathFigure((ct-ut)*et,pt*tt,!1);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),Xt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.44,Ft,Kt,Et,mt,mt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Et.x*et,Et.y*tt,Ft.x*et,Ft.y*tt,Kt.x*et,Kt.y*tt));var _t=Gt(Et.x,Et.y);Xt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.56,mt,mt,Et,Ft,Kt);var qt=Gt(Et.x,Et.y);Dt.add(new go.PathSegment(go.PathSegment.Line,(_t.x*.1+.95*.9)*et,_t.y*.1*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.85*et,_t.y*.1*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,(qt.x*.1+.9)*et,.15*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,(qt.x*.1+.9)*et,(qt.y*.1+.05*.9)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,qt.x*et,qt.y*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,Ft.x*et,Ft.y*tt,Kt.x*et,Kt.y*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),Dt.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 Ut=new go.PathFigure(ct*et,(pt-ut)*tt,!1);st.add(Ut),Ut.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.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.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.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(Et),yt(Ft),yt(Kt),yt(_t),yt(qt),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,Et=new go.PathFigure(0,ct,!0);mt.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Et.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Et.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Et.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Et.add(new go.PathSegment(go.PathSegment.Line,ut,pt)),Et.add(new go.PathSegment(go.PathSegment.Line,0,pt).close()),mt.spot1=new go.Spot(0,ct/tt);var Ft=Vt(0,pt/tt,1,pt/tt,ut/et,1,1,.5,Rt());return mt.spot2=new go.Spot(Ft.x,Ft.y),yt(Ft),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,Et=new go.PathFigure(0,ct,!0);mt.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Et.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Et.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Et.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Et.add(new go.PathSegment(go.PathSegment.Line,ut,pt)),Et.add(new go.PathSegment(go.PathSegment.Line,0,pt).close()),mt.spot1=new go.Spot(0,ct/tt);var Ft=Vt(0,pt/tt,1,pt/tt,ut/et,1,1,.5,Rt());return mt.spot2=new go.Spot(Ft.x,Ft.y),yt(Ft),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 Et=new go.Geometry,Ft=new go.PathFigure(et,.5*tt,!0);Et.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,ct)),Ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,mt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),Ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt).close());var Kt=Vt(0,.5,.3,pt/tt,0,ut/tt,1,ut/tt,Rt());return Et.spot1=new go.Spot(Kt.x,Kt.y),Kt=Vt(.7,mt/tt,1,.5,0,ct/tt,1,ct/tt,Kt),Et.spot2=new go.Spot(Kt.x,Kt.y),yt(Kt),Et}),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 Et=new go.Geometry,Ft=new go.PathFigure(et,.5*tt,!0);Et.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,mt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,mt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),Ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt).close()),Et.spot1=new go.Spot(0,ut/tt);var Kt=Vt(.7,mt/tt,1,.5,0,ct/tt,1,ct/tt,Rt());return Et.spot2=new go.Spot(Kt.x,Kt.y),yt(Kt),Et}),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,Et=.1,Ft=new go.PathFigure(mt*et,(Et+ut)*tt,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(mt-rt)*et,Et*tt,(mt-ct)*et,(Et+ut)*tt,(mt-rt)*et,(Et+pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et-ut)*tt,(mt-rt)*et,(Et-pt)*tt,(mt-ct)*et,(Et-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(mt+rt)*et,Et*tt,(mt+ct)*et,(Et-ut)*tt,(mt+rt)*et,(Et-pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et+ut)*tt,(mt+rt)*et,(Et+pt)*tt,(mt+ct)*et,(Et+ut)*tt));var Kt=.05,Dt=xt*Kt;mt=.05,Et=.25;var _t=new go.PathFigure(.5*et,.2*tt,!0);return st.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),mt=.95,Et=.25,_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt+Kt)*et,Et*tt,(mt+Dt)*et,(Et-Kt)*tt,(mt+Kt)*et,(Et-Dt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),Kt=.025,Dt=xt*Kt,mt=.825,Et=.35,_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et-Kt)*tt,(mt+Kt)*et,(Et-Dt)*tt,(mt+Dt)*et,(Et-Kt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-Kt)*et,Et*tt,(mt-Dt)*et,(Et-Kt)*tt,(mt-Kt)*et,(Et-Dt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),Kt=.05,Dt=xt*Kt,mt=.5,Et=.7,_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et-Kt)*tt,(mt+Kt)*et,(Et-Dt)*tt,(mt+Dt)*et,(Et-Kt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-Kt)*et,Et*tt,(mt-Dt)*et,(Et-Kt)*tt,(mt-Kt)*et,(Et-Dt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),Kt=.025,Dt=xt*Kt,mt=.175,Et=.35,_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et-Kt)*tt,(mt+Kt)*et,(Et-Dt)*tt,(mt+Dt)*et,(Et-Kt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-Kt)*et,Et*tt,(mt-Dt)*et,(Et-Kt)*tt,(mt-Kt)*et,(Et-Dt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),Kt=.05,Dt=xt*Kt,mt=.05,Et=.25,_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et-Kt)*tt,(mt-Kt)*et,(Et-Dt)*tt,(mt-Dt)*et,(Et-Kt)*tt)),_t.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 Et=new go.PathFigure((ut+rt)*et,(ut+rt)*tt,!1);return st.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),Et.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+rt)*tt)),Et.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 Et=new go.PathFigure((ct+ut)*et,pt*tt,!0);return st.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),Et.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,Et=.5,Ft=new go.PathFigure(.8*et,.5*tt,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ut)*tt,(.4+rt)*et,tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ut)*tt));var Kt=new go.PathFigure((mt+pt)*et,Et*tt,!0);return st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et+pt)*tt,(mt+pt)*et,(Et+ct)*tt,(mt+ct)*et,(Et+pt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et,Et*tt,(mt-ct)*et,(Et+pt)*tt,(mt-pt)*et,(Et+ct)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et-pt)*tt,(mt-pt)*et,(Et-ct)*tt,(mt-ct)*et,(Et-pt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et,Et*tt,(mt+ct)*et,(Et-pt)*tt,(mt+pt)*et,(Et-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 Et=new go.PathFigure((ct-rt)*et,pt*tt,!0);return st.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Et.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 Et=new go.PathFigure(.8*et,.5*tt,!0);st.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Et.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 Ft=new go.PathFigure((ct-rt)*et,pt*tt,!0);return st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Ft.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 Et=new go.PathFigure(.2*et,0,!0);return st.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut)*et,(pt-rt)*tt,.9*et,(pt-ut)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Et.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,Et=.5,Ft=(rt-et)/2,Kt=(ut-tt)/2,Dt=new go.PathFigure(mt*et+Ft,(Et+pt)*tt+Kt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et+Ft,Et*tt+Kt,(mt-ct)*et+Ft,(Et+pt)*tt+Kt,(mt-pt)*et+Ft,(Et+ct)*tt+Kt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et-pt)*tt+Kt,(mt-pt)*et+Ft,(Et-ct)*tt+Kt,(mt-ct)*et+Ft,(Et-pt)*tt+Kt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt+ct*.5)*et+Ft,Et*tt+Kt,mt*et+Ft,(Et-pt)*tt+Kt,(mt-pt+ct*.5)*et+Ft,(Et-ct)*tt+Kt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et+pt)*tt+Kt,(mt-pt+ct*.5)*et+Ft,(Et+ct)*tt+Kt,mt*et+Ft,(Et+pt)*tt+Kt).close()),ct=xt*.4,pt=.4,mt=.2,Et=.5;var _t=new go.PathFigure(mt*et+Ft,(Et+pt)*tt+Kt,!0);st.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et+Ft,Et*tt+Kt,(mt-ct)*et+Ft,(Et+pt)*tt+Kt,(mt-pt)*et+Ft,(Et+ct)*tt+Kt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et-pt)*tt+Kt,(mt-pt)*et+Ft,(Et-ct)*tt+Kt,(mt-ct)*et+Ft,(Et-pt)*tt+Kt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt+ct*.5)*et+Ft,Et*tt+Kt,mt*et+Ft,(Et-pt)*tt+Kt,(mt-pt+ct*.5)*et+Ft,(Et-ct)*tt+Kt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et+pt)*tt+Kt,(mt-pt+ct*.5)*et+Ft,(Et+ct)*tt+Kt,mt*et+Ft,(Et+pt)*tt+Kt).close()),ct=xt*.2,pt=.2,mt=.5,Et=.5;var qt=new go.PathFigure((mt-pt)*et+Ft,Et*tt+Kt,!0);st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et-pt)*tt+Kt,(mt-pt)*et+Ft,(Et-ct)*tt+Kt,(mt-ct)*et+Ft,(Et-pt)*tt+Kt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et+Ft,Et*tt+Kt,(mt+ct)*et+Ft,(Et-pt)*tt+Kt,(mt+pt)*et+Ft,(Et-ct)*tt+Kt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et+pt)*tt+Kt,(mt+pt)*et+Ft,(Et+ct)*tt+Kt,(mt+ct)*et+Ft,(Et+pt)*tt+Kt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et+Ft,Et*tt+Kt,(mt-ct)*et+Ft,(Et+pt)*tt+Kt,(mt-pt)*et+Ft,(Et+ct)*tt+Kt)),ct=xt*.4,pt=.4,mt=.8,Et=.5;var Ut=new go.PathFigure(mt*et+Ft,(Et-pt)*tt+Kt,!0);st.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et+Ft,Et*tt+Kt,(mt+ct)*et+Ft,(Et-pt)*tt+Kt,(mt+pt)*et+Ft,(Et-ct)*tt+Kt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et+pt)*tt+Kt,(mt+pt)*et+Ft,(Et+ct)*tt+Kt,(mt+ct)*et+Ft,(Et+pt)*tt+Kt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt-ct*.5)*et+Ft,Et*tt+Kt,mt*et+Ft,(Et+pt)*tt+Kt,(mt+pt-ct*.5)*et+Ft,(Et+ct)*tt+Kt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et-pt)*tt+Kt,(mt+pt-ct*.5)*et+Ft,(Et-ct)*tt+Kt,mt*et+Ft,(Et-pt)*tt+Kt).close()),ct=xt*.8,pt=.8,mt=1,Et=.5;var ue=new go.PathFigure(mt*et+Ft,(Et-pt)*tt+Kt,!0);return st.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et+Ft,Et*tt+Kt,(mt+ct)*et+Ft,(Et-pt)*tt+Kt,(mt+pt)*et+Ft,(Et-ct)*tt+Kt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et+pt)*tt+Kt,(mt+pt)*et+Ft,(Et+ct)*tt+Kt,(mt+ct)*et+Ft,(Et+pt)*tt+Kt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt-ct*.5)*et+Ft,Et*tt+Kt,mt*et+Ft,(Et+pt)*tt+Kt,(mt+pt-ct*.5)*et+Ft,(Et+ct)*tt+Kt)),ue.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Ft,(Et-pt)*tt+Kt,(mt+pt-ct*.5)*et+Ft,(Et-ct)*tt+Kt,mt*et+Ft,(Et-pt)*tt+Kt).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(),Et=Rt(),Ft=Rt(),Kt=Rt();Xt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.5,mt,mt,Et,Ft,Kt);var Dt=Gt(Et.x,Et.y),_t=new go.PathFigure(Et.x*et,Et.y*tt,!0);st.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,Ft.x*et,Ft.y*tt,Kt.x*et,Kt.y*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),Xt(ct-ut,pt,ct-ut,pt-rt,ct-rt,pt-ut,ct,pt-ut,.5,Ft,Kt,Et,mt,mt),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et.x*et,Et.y*tt,Ft.x*et,Ft.y*tt,Kt.x*et,Kt.y*tt)),rt=xt*.3,ut=.3,Xt(ct-ut,pt,ct-ut,pt-rt,ct-rt,pt-ut,ct,pt-ut,.5,Ft,Kt,Et,mt,mt),_t.add(new go.PathSegment(go.PathSegment.Line,Et.x*et,Et.y*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,Kt.x*et,Kt.y*tt,Ft.x*et,Ft.y*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Xt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.5,mt,mt,Et,Ft,Kt),_t.add(new go.PathSegment(go.PathSegment.Bezier,Et.x*et,Et.y*tt,Kt.x*et,Kt.y*tt,Ft.x*et,Ft.y*tt).close());var _t=new go.PathFigure(.45*et,0,!0);return st.add(_t),_t.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),_t.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),yt(mt),yt(Et),yt(Ft),yt(Kt),yt(Dt),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,Et=.5-.5*Math.SQRT2/2,Ft=1,Kt=.5,Dt=.5,_t=0,qt=new go.PathFigure(mt*et,(1-Et)*tt,!1);return st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,Kt*tt,Ft*et,.7*tt,Ft*et,Kt*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+ut)*et,(_t+ut)*tt,(.5+rt+ut)*et,(.5-pt+ut)*tt,(.5+pt+ut)*et,(.5-rt+ut)*tt)),qt.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)),qt.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)),qt.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),qt.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,Et=Math.PI/4,Ft=4*(1-Math.cos(Et))/(3*Math.sin(Et)),Kt=Ft*.5,Dt=ct,_t=ct,qt=Ft*Dt,Ut=Ft*_t;ut.add(new go.PathSegment(go.PathSegment.Bezier,(pt-Dt)*et,mt*tt,(pt-(qt+Dt)/2)*et,(mt+(_t+Ut)/2)*tt,(pt-Dt)*et,(mt+Ut)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(mt-_t)*tt,(pt-Dt)*et,(mt-Ut)*tt,(pt-qt)*et,(mt-_t)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(pt+Dt)*et,mt*tt,(pt+qt)*et,(mt-_t)*tt,(pt+Dt)*et,(mt-Ut)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(pt+Dt)*et,(mt+Ut)*tt,(pt+(qt+Dt)/2)*et,(mt+(_t+Ut)/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,Et=.9,Ft=new go.PathFigure((mt-ct)*et,Et*tt,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et-ct)*tt,(mt-ct)*et,(Et-pt)*tt,(mt-pt)*et,(Et-ct)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ct)*et,Et*tt,(mt+pt)*et,(Et-ct)*tt,(mt+ct)*et,(Et-pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et+ct)*tt,(mt+ct)*et,(Et+pt)*tt,(mt+pt)*et,(Et+ct)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ct)*et,Et*tt,(mt-pt)*et,(Et+ct)*tt,(mt-ct)*et,(Et+pt)*tt).close()),ct=.1,pt=xt*.1,mt=.8,Et=.9;var Kt=new go.PathFigure((mt-ct)*et,Et*tt,!0);return st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et-ct)*tt,(mt-ct)*et,(Et-pt)*tt,(mt-pt)*et,(Et-ct)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ct)*et,Et*tt,(mt+pt)*et,(Et-ct)*tt,(mt+ct)*et,(Et-pt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Et+ct)*tt,(mt+ct)*et,(Et+pt)*tt,(mt+pt)*et,(Et+ct)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ct)*et,Et*tt,(mt-pt)*et,(Et+ct)*tt,(mt-ct)*et,(Et+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,Et=xt*.1,Ft=.1,Kt=.9,Dt=new go.PathFigure((Ft-mt)*et,Kt*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Kt-mt)*tt,(Ft-mt)*et,(Kt-Et)*tt,(Ft-Et)*et,(Kt-mt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+mt)*et,Kt*tt,(Ft+Et)*et,(Kt-mt)*tt,(Ft+mt)*et,(Kt-Et)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Kt+mt)*tt,(Ft+mt)*et,(Kt+Et)*tt,(Ft+Et)*et,(Kt+mt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-mt)*et,Kt*tt,(Ft-Et)*et,(Kt+mt)*tt,(Ft-mt)*et,(Kt+Et)*tt)),mt=.1,Et=xt*.1,Ft=.4,Kt=.9;var _t=new go.PathFigure((Ft-mt)*et,Kt*tt,!0);return st.add(_t),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Kt-mt)*tt,(Ft-mt)*et,(Kt-Et)*tt,(Ft-Et)*et,(Kt-mt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+mt)*et,Kt*tt,(Ft+Et)*et,(Kt-mt)*tt,(Ft+mt)*et,(Kt-Et)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Kt+mt)*tt,(Ft+mt)*et,(Kt+Et)*tt,(Ft+Et)*et,(Kt+mt)*tt)),_t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-mt)*et,Kt*tt,(Ft-Et)*et,(Kt+mt)*tt,(Ft-mt)*et,(Kt+Et)*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 Ft=.05,Kt=xt*.05,Dt=.175,_t=.95,pt=new go.PathFigure((Dt-Ft)*et,_t*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(_t-Ft)*tt,(Dt-Ft)*et,(_t-Kt)*tt,(Dt-Kt)*et,(_t-Ft)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Ft)*et,_t*tt,(Dt+Kt)*et,(_t-Ft)*tt,(Dt+Ft)*et,(_t-Kt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(_t+Ft)*tt,(Dt+Ft)*et,(_t+Kt)*tt,(Dt+Kt)*et,(_t+Ft)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Ft)*et,_t*tt,(Dt-Kt)*et,(_t+Ft)*tt,(Dt-Ft)*et,(_t+Kt)*tt));var Ft=.05,Kt=xt*.05,Dt=.375,_t=.95,mt=new go.PathFigure((Dt-Ft)*et,_t*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(_t-Ft)*tt,(Dt-Ft)*et,(_t-Kt)*tt,(Dt-Kt)*et,(_t-Ft)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Ft)*et,_t*tt,(Dt+Kt)*et,(_t-Ft)*tt,(Dt+Ft)*et,(_t-Kt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(_t+Ft)*tt,(Dt+Ft)*et,(_t+Kt)*tt,(Dt+Kt)*et,(_t+Ft)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Ft)*et,_t*tt,(Dt-Kt)*et,(_t+Ft)*tt,(Dt-Ft)*et,(_t+Kt)*tt));var Ft=.05,Kt=xt*.05,Dt=.625,_t=.95,Et=new go.PathFigure((Dt-Ft)*et,_t*tt,!0);st.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(_t-Ft)*tt,(Dt-Ft)*et,(_t-Kt)*tt,(Dt-Kt)*et,(_t-Ft)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Ft)*et,_t*tt,(Dt+Kt)*et,(_t-Ft)*tt,(Dt+Ft)*et,(_t-Kt)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(_t+Ft)*tt,(Dt+Ft)*et,(_t+Kt)*tt,(Dt+Kt)*et,(_t+Ft)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Ft)*et,_t*tt,(Dt-Kt)*et,(_t+Ft)*tt,(Dt-Ft)*et,(_t+Kt)*tt));var Ft=.05,Kt=xt*.05,Dt=.825,_t=.95,qt=new go.PathFigure((Dt-Ft)*et,_t*tt,!0);st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(_t-Ft)*tt,(Dt-Ft)*et,(_t-Kt)*tt,(Dt-Kt)*et,(_t-Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+Ft)*et,_t*tt,(Dt+Kt)*et,(_t-Ft)*tt,(Dt+Ft)*et,(_t-Kt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(_t+Ft)*tt,(Dt+Ft)*et,(_t+Kt)*tt,(Dt+Kt)*et,(_t+Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-Ft)*et,_t*tt,(Dt-Kt)*et,(_t+Ft)*tt,(Dt-Ft)*et,(_t+Kt)*tt).close());var Ut=new go.PathFigure(0,tt,!1);return st.add(Ut),Ut.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,Et=.35,Ft=.775,Kt=new go.PathFigure((Et-pt)*et,Ft*tt,!0);return st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Ft-pt)*tt,(Et-pt)*et,(Ft-mt)*tt,(Et-mt)*et,(Ft-pt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Et+pt)*et,Ft*tt,(Et+mt)*et,(Ft-pt)*tt,(Et+pt)*et,(Ft-mt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,Et*et,(Ft+pt)*tt,(Et+pt)*et,(Ft+mt)*tt,(Et+mt)*et,(Ft+pt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(Et-pt)*et,Ft*tt,(Et-mt)*et,(Ft+pt)*tt,(Et-pt)*et,(Ft+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 Et=new go.PathFigure(0,.7*tt,!1);return st.add(Et),Et.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 Et=new go.PathFigure(.15*et,.5*tt,!1);return st.add(Et),Et.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 Et=new go.PathFigure((ct-rt)*et,pt*tt,!1);return st.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Et.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()),Et.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Et.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Et.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Et.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 Et=new go.PathFigure(et*.78,tt*.05,!1);return st.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Et.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Et.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")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Nn={},Ln="5.0",Gt={},Rt=null,yt=!1,Vt=!1,Xt=null,kt=!1,Wt=null,xt=null,Ot=0;Ot4?parseFloat(se):5};Nn.setHTML5Codebase=function(se,Ie){xt=se,ee(se,Ie)},Nn.setJavaCodebase=Nn.setJavaCodebaseVersion=Nn.isCompiledInstalled=Nn.setPreCompiledScriptPath=Nn.setPreCompiledResourcePath=function(){},Nn.setHTML5CodebaseVersion=function(se,Ie){var De=parseFloat(se);if(De!==NaN&&De<5){console.log("The GeoGebra HTML5 codebase version "+De+" is deprecated. Using version latest instead.");return}Wt=se,Qt(se,Ie)},Nn.getHTML5CodebaseVersion=function(){return vt},Nn.getParameters=function(){return Gt},Nn.setFontsCSSURL=function(se){ct=se},Nn.setGiacJSURL=function(se){},Nn.setJNLPFile=function(se){Ct=se},Nn.setJNLPBaseDir=function(se){},Nn.inject=function(){function se(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ie="auto",De=Gt.id,en,Ue=!1,nn=0;nn=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 qt=function(se,Ie,De){var en=document.createElement("param");en.setAttribute("name",Ie),en.setAttribute("value",De),se.appendChild(en)},Ut=function(se){return se&&se!=="false"},ue=function(se,Ie,De){mt(vt)<=4.2&&(De=!0);var en=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==vt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(en=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ue=document.createElement("div");Ue.classList.add("appletParameters","notranslate");var nn=Ie.width,Ne=Ie.height;if(Ie.disableAutoScale=Ie.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ie.disableAutoScale,Ie.width!==void 0)if(mt(vt)<=4.4)Ut(Ie.showToolBar)&&(Ie.height-=7),Ut(Ie.showAlgebraInput)&&(Ie.height-=37),Ie.width<605&&Ut(Ie.showToolBar)&&(Ie.width=605,nn=605);else{var Be=100;(Ut(Ie.showToolBar)||Ut(Ie.showMenuBar))&&(Ie.hasOwnProperty("customToolBar")&&(Ie.customToolbar=Ie.customToolBar),Be=Ut(Ie.showMenuBar)?245:155),nn=5?(Ie.appletOnLoad=function(gt){var jt=se.querySelector(".ggb_preview");jt&&jt.parentNode.removeChild(jt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(xe),window.GGBT_wsf_view&&$(window).trigger("resize"),ze(gt)},le||xe.appendChild(Ae)):Ue.appendChild(Ae),xe.appendChild(Ue),le||se.appendChild(xe),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(Ue),se.appendChild(ce),Ie.appletOnLoad=function(gt){Nn.resize(),ze(gt)}}function he(gt,jt){jt&&typeof jt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(gt,jt.appletOnLoad):renderGGBElement(gt),ae("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",jt)}function Jt(gt,jt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:gt,params:jt}),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,jt)}if(en){scriptLoadStarted=!0;for(var Mt=0;Mt0?(je.remove(),xe.attr("id","fullscreencontent").show(),jQuery(ze).append(xe),window.dispatchEvent(new Event("resize"))):ue(je,Ie,!1),window.GGBT_wsf_view.launchFullScreen(ze)}else It=en,ue(se,Ie,!1);if(!window.GGBT_wsf_view)for(Ne=0;Nese/4*3&&(je=se/4*3),ze=je/5.8,Be.setAttribute("src",rt),Be.setAttribute("width",je),Be.setAttribute("height",ze);var xe=(se-je)/2,le=(Ie-ze)/2;Be.style.left=xe+"px",Be.style.top=le+"px",Ue.appendChild(Be)}}return Ue.appendChild(Ne),Ue},Ke=function(se){return se=se.toLowerCase(),se==="html5"||se==="screenshot"?se:"html5"},fe=["web","webSimple","web3d","tablet","tablet3d","phone"],Qt=function(se,Ie){if(vt=se,Ie){ee(vt,!0);return}var De=!yt;if(De){var en=mt(vt);!isNaN(en)&&en<4.4&&(De=!1)}var Ue,nn;window.location.protocol.substr(0,4)==="http"?Ue=window.location.protocol:Ue="http:";var Ne=vt.indexOf("//");Ne>0?nn=vt:Ne===0?nn=Ue+vt:nn="https://www.geogebra.org/apps/5.2.814.0/";for(var Be in fe)if(vt.slice(fe[Be].length*-1)===fe[Be]||vt.slice((fe[Be].length+1)*-1)===fe[Be]+"/"){ee(nn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&De&&!Rt.is3D&&!Rt.AV&&!Rt.SV&&!Rt.CV&&!Rt.EV2&&!Rt.CP&&!Rt.PC&&!Rt.DA&&!Rt.FI&&!Rt.PV&&!Ut(Gt.showToolBar)&&!Ut(Gt.showMenuBar)&&!Ut(Gt.showAlgebraInput)&&!Ut(Gt.enableRightClick)&&(!Gt.appName||Gt.appName=="classic")?nn+="webSimple/":nn+="web3d/",ee(nn,!1)},ee=function(se,Ie){if(se.requirejs){bt=se;return}se.slice(-1)!=="/"&&(se+="/"),bt=se,Ie===null&&(Ie=se.indexOf("http")===-1),Tt=Ie,et="web.nocache.js",tt=!1;var De=bt.split("/");De.length>1&&(!Ie&&De[De.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):fe.indexOf(De[De.length-2])>=0&&(et=De[De.length-2]+".nocache.js")),De=se.split("/"),vt=De[De.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."),Qt("5.0",Ie))},ae=function(se,Ie){window.console&&window.console.log&&(!Ie||typeof Ie.showLogging=="undefined"||Ie.showLogging&&Ie.showLogging!=="false")&&console.log(se)};Gt.material_id!==void 0?Kt(de):de();function de(){var se=Ln;Wt!==null?se=Wt:parseFloat(se)<5&&(se="5.0"),Qt(se,!1),xt!==null&&ee(xt,Tt),kt=!0}return Nn},GGBAppletUtils=function(){"use strict";function Nn(){return window.GGBT_wsf_edit!==void 0}function Ln(kt,Wt){Wt!=1?(kt.style.transformOrigin="0% 0% 0px",kt.style.webkitTransformOrigin="0% 0% 0px",kt.style.transform="scale("+Wt+","+Wt+")",kt.style.webkitTransform="scale("+Wt+","+Wt+")",kt.style.maxWidth="initial",kt.querySelector(".ggb_preview")!==null&&(kt.querySelector(".ggb_preview").style.maxWidth="initial"),kt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(kt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),kt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(kt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(kt.style.transform="none",kt.style.webkitTransform="none")}function Gt(kt,Wt,xt,Ot,Bt,Ct){var bt=null;if(Ct!=null&&Ct!="")for(var Tt=kt.parentNode;Tt!=null;)if((" "+Tt.className+" ").indexOf(" "+Ct+" ")>-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),kt){var ct=kt.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(kt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pt=kt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return kt&&((xt===void 0||!xt)&&Wt>0&&Wt+tt1&&(Ct=!0)),Wt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ct=!0),!(kt.hasOwnProperty("disableAutoScale")&&kt.disableAutoScale))Bt=Rt(kt,Wt,Ct,xt,kt.scaleContainerClass);else return Ot;return Ct&&(!kt.hasOwnProperty("scale")||Ot===1)?Bt:Math.min(Ot,Bt)}function Vt(kt){var Wt=Math.min(window.innerWidth,document.documentElement.clientWidth),xt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ot=kt.getBoundingClientRect(),Bt=(Wt-Ot.width)/2,Ct=(xt-Ot.height)/2;Ct<0&&(Ct=0),kt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Bt<40?kt.style.left="40px":kt.style.left=Bt+"px",kt.style.top=Ct+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ct<40?kt.style.top="40px":kt.style.top=Ct+"px",kt.style.left=Bt+"px")}function Xt(kt,Wt){var xt=kt.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(kt)}if(xt.parentElement&&/fullscreen/.test(xt.parentElement.className))return;var Ot=yt(Wt,kt);Nn()&&xt.setAttribute("data-param-scale",Ot);for(var Bt=null,Ct=0;Ct=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 Ln=c[Nn];return Ln==null?null:Ln},r=d,webModule.__errFn=e}function B(){function Nn(kt){var Wt=kt.lastIndexOf(rb);Wt==-1&&(Wt=kt.length);var xt=kt.indexOf(sb);xt==-1&&(xt=kt.length);var Ot=kt.lastIndexOf(tb,Math.min(xt,Wt));return Ot>=O?kt.substring(O,Ot+P):W}function Ln(kt){if(!kt.match(/^\w+:\/\//)){var Wt=o.createElement(ub);Wt.src=kt+vb,kt=Nn(Wt.src)}return kt}function Gt(){var kt=__gwt_getMetaProperty(wb);return kt!=null?kt:W}function Rt(){for(var kt=o.getElementsByTagName(_),Wt=O;WtO?kt[kt.length-P].href:W}function Vt(){var kt=o.location;return kt.href==kt.protocol+zb+kt.host+kt.pathname+kt.search+kt.hash}var Xt=Gt();return Xt==W&&(Xt=Rt()),Xt==W&&(Xt=yt()),Xt==W&&Vt()&&(Xt=Nn(o.location.href)),Xt=Ln(Xt),Xt}function C(Nn){return Nn.match(/^\//)||Nn.match(/^[a-zA-Z]+:\/\//)?Nn:webModule.__moduleBase+Nn}function D(){var Nn=[],Ln=O,Gt=[],Rt=[];function yt(kt){var Wt=Rt[kt](),xt=Gt[kt];if(Wt in xt)return Wt;var Ot=[];for(var Bt in xt)Ot[xt[Bt]]=Bt;throw r&&r(kt,Ot,Wt),null}if(__gwt_isKnownPropertyValue=function(kt,Wt){return Wt in Gt[kt]},webModule.__getPropMap=function(){var kt={};for(var Wt in Gt)Gt.hasOwnProperty(Wt)&&(kt[Wt]=yt(Wt));return kt},webModule.__computePropValue=yt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Vt;try{Vt=Cb;var Xt=Vt.indexOf(Db);Xt!=-1&&(Ln=parseInt(Vt.substring(Xt+P),$),Vt=Vt.substring(O,Xt))}catch(kt){}return webModule.__softPermutationId=Ln,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})()},64881:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{$Y:function(){return nn},A0:function(){return Ie},EP:function(){return kt},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 Jt},Hp:function(){return It},Ir:function(){return yt},N$:function(){return ae},NZ:function(){return Pe},Nv:function(){return ce},OA:function(){return xe},OJ:function(){return pe},QF:function(){return jt},RS:function(){return Et},RY:function(){return dt},Rj:function(){return ve},SX:function(){return Dt},Tp:function(){return Ne},Ui:function(){return se},V1:function(){return fe},Vn:function(){return Kt},dL:function(){return Ae},fo:function(){return qt},gG:function(){return Ut},gK:function(){return st},hK:function(){return vt},i3:function(){return Ct},ib:function(){return et},lS:function(){return tt},m5:function(){return Wt},n4:function(){return Rt},n_:function(){return bt},oP:function(){return Be},p2:function(){return De},pl:function(){return oe},rM:function(){return pt},sM:function(){return Tt},t2:function(){return Ft},tD:function(){return ut},u8:function(){return ct},um:function(){return gt},vm:function(){return le},wQ:function(){return Bt},wj:function(){return Ke},wt:function(){return ue},yS:function(){return mt},yi:function(){return Vt},ym:function(){return Oe},z2:function(){return Xt}});const Rt="FETCH_TASK_START",yt="FETCH_TASK_FAILURE",Vt="FETCH_TASK_SUCCESS",Xt="UPDATE_TASK_DATA",kt="HIDE_EVALUATE_RESULT",Wt="SHOW_EVALUATE_RESULT",xt="UPDATE_TIMESTRAP",Ot="MOVE_X",Bt="MOVE_Y",Ct="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",Et="SHOW_REWARD_DIALOG",Ft="CANCEL_REWARD_DIALOG",Kt="SET_REWARD",Dt="ACTIVE_DISCUSS_INDEX",_t="CREATE_DISCUSS",qt="DISABLE_DISCUSS",Ut="CHANGE_PAGE",ue="SHOW_ANSWER_LOADING",oe="FETCH_ANSWER_INFO",Pe="HIGH_TIP_MODAL",ve="SHOW_TIP_MODAL",Oe="SELECT_UNLOCK_ANSWER",pe="SET_CHOOSE_ANSWERS",Ke="EVAL_CHOOSE_START",fe="EVAL_CHOOSE_END",Qt="SHOW_REP_loading",ee="FETCH_REP_CONTENT",ae="EDIT_REP_CONTENT",de="SET_REP_PATH",se="SHOW_EVALUATE_LOADING",Ie="HIDE_EVALUATE_LOADING",De="SET_EVALUATE_MESSAGE",en="SET_SHOW_DIR",Ue="SET_EDITOR_SETTING",nn="SET_EDITOR_THEME",Ne="SET_EDITOR_FONTSIZE",Be="SET_REPOS",je="SHOW_PATH_LIST",ze="HIDE_PATH_LIST",xe="HIDE_PICTURE_VIEW",le="SHOW_PICTURE_VIEW",Ae="SHOW_NOTICE",ce="HIDE_NOTICE",he="SHOW_CASE_NOTICE",Jt="HIDE_CASE_NOTICE",Mt="SET_TAB_INDEX",At="SET_SSH_TABS",Ht="SET_SSH_CONFIGDATA",Pt="SET_SSH_CONFIGDATAARR",dt="SET_VNC_LOADING ",gt="ON_TAB_TO_SPACE ",jt="ON_AUTO_FORMAT "},77903:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Ax:function(){return Xt},Ds:function(){return kt},KI:function(){return xt},SI:function(){return Vt},f1:function(){return yt}});var Rt=Gt(3294);function yt(Ot){let Bt=!0;if(Ot.length>0){for(let Ct=0;Cttt in et?Vt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:st}):et[tt]=st,Ct=(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)=>Xt(et,kt(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=Et=>{try{mt(st.next(Et))}catch(Ft){ut(Ft)}},pt=Et=>{try{mt(st.throw(Et))}catch(Ft){ut(Ft)}},mt=Et=>Et.done?rt(Et.value):Promise.resolve(Et.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(Ct({},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)}},5171:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ct}});var Rt=Gt(59301),yt=Gt(3113),Vt=Gt(8591),Xt=Gt(54580),kt=Gt(32050),Wt=Gt(19248),xt=Gt(3294),Ot={img:"img___BgL9D"},Ct=({value:bt,onChange:Tt,getFileProgress:It})=>{const[vt,et]=(0,Rt.useState)(!1),tt=Rt.createElement(yt.ZP,{loading:vt,icon:Rt.createElement(kt.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,Et,Ft,Kt;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((Et=(mt=ut.file)==null?void 0:mt.response)==null?void 0:Et.message);return}Tt((Kt=(Ft=ut==null?void 0:ut.file)==null?void 0:Ft.response)==null?void 0:Kt.id)}};return Rt.createElement(Rt.Fragment,null,bt?st():Rt.createElement("div",null,Rt.createElement(Xt.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")))}},16406:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Ht}});var Rt=Gt(59301),yt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Vt=Gt(92310),Xt=Gt.n(Vt),kt=Gt(71418);var Wt=function(Pt,dt){return(Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,jt){gt.__proto__=jt}||function(gt,jt){for(var re in jt)Object.prototype.hasOwnProperty.call(jt,re)&&(gt[re]=jt[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,jt){return new(gt||(gt=Promise))(function(re,Zt){function Se(Te){try{tn(jt.next(Te))}catch(Re){Zt(Re)}}function Xe(Te){try{tn(jt.throw(Te))}catch(Re){Zt(Re)}}function tn(Te){var Re;Te.done?re(Te.value):(Re=Te.value,Re instanceof gt?Re:new gt(function(dn){dn(Re)})).then(Se,Xe)}tn((jt=jt.apply(Pt,dt||[])).next())})}function Bt(Pt,dt){var gt,jt,re,Zt,Se={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return Zt={next:Xe(0),throw:Xe(1),return:Xe(2)},typeof Symbol=="function"&&(Zt[Symbol.iterator]=function(){return this}),Zt;function Xe(tn){return function(Te){return function(Re){if(gt)throw new TypeError("Generator is already executing.");for(;Se;)try{if(gt=1,jt&&(re=2&Re[0]?jt.return:Re[0]?jt.throw||((re=jt.return)&&re.call(jt),0):jt.next)&&!(re=re.call(jt,Re[1])).done)return re;switch(jt=0,re&&(Re=[2&Re[0],re.value]),Re[0]){case 0:case 1:re=Re;break;case 4:return Se.label++,{value:Re[1],done:!1};case 5:Se.label++,jt=Re[1],Re=[0];continue;case 7:Re=Se.ops.pop(),Se.trys.pop();continue;default:if(re=Se.trys,!((re=re.length>0&&re[re.length-1])||Re[0]!==6&&Re[0]!==2)){Se=0;continue}if(Re[0]===3&&(!re||Re[1]>re[0]&&Re[1]',"select"),this.addActionButton(jt,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(jt,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(jt,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(jt,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(jt,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(jt,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(jt,'',"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 Se=document.createElement("div");Se.className=""+gt.toolbarButtonStyleClass.name,Se.setAttribute("data-type-name",Zt.typeName),Se.innerHTML=Zt.icon,Se.addEventListener("click",function(){gt.markerToolbarButtonClicked(Se,Zt)}),gt.buttons.push(Se),gt.markerButtons.push(Se)}),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(jt){return jt("marker",gt)}),this.markerButtonOverflowBlock.style.display="none"},Pt.prototype.actionToolbarButtonClicked=function(dt,gt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(jt){return jt("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(jt){return jt.getAttribute("data-type-name")===dt});gt&&this.setActiveButton(gt)},Pt.prototype.setCurrentMarker=function(dt){var gt=this;this.currentMarker=dt,this.buttons.filter(function(jt){return/delete|notes/.test(jt.getAttribute("data-action"))}).forEach(function(jt){gt.currentMarker===void 0?(jt.style.fillOpacity="0.4",jt.style.pointerEvents="none"):(jt.style.fillOpacity="1",jt.style.pointerEvents="all")})},Pt}(),ut=function(){function Pt(dt,gt,jt,re){this.panels=[],this.panelButtons=[],this.markerjsContainer=dt,this.displayMode=gt,this.uiStyleSettings=jt,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,jt,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+" "+((jt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&jt!==void 0?jt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Zt){var Se;Zt.uiStyleSettings=re.uiStyleSettings;var Xe=document.createElement("div");Xe.className=re.toolboxButtonStyleClass.name+" "+((Se=re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Se!==void 0?Se:re.toolboxButtonStyleColorsClass.name),Xe.innerHTML=Zt.icon,Xe.title=Zt.title,Xe.addEventListener("click",function(){re.panelButtonClick(Zt)}),re.panelButtons.push(Xe),re.buttonRow.appendChild(Xe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Pt.prototype.panelButtonClick=function(dt){var gt=this,jt=-1;if(dt!==this.activePanel){jt=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,Se){var Xe,tn;Zt.className=gt.toolboxButtonStyleClass.name+" "+(Se===jt?""+((Xe=gt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Xe!==void 0?Xe:gt.toolboxActiveButtonStyleColorsClass.name):""+((tn=gt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&tn!==void 0?tn:gt.toolboxButtonStyleColorsClass.name))})},Pt}(),ct=function(Pt,dt){this.title=Pt,this.icon=dt},pt=function(Pt){function dt(gt,jt,re,Zt){var Se=Pt.call(this,gt,Zt||'')||this;return Se.colors=[],Se.addTransparent=!1,Se.colorBoxes=[],Se.colors=jt,Se.currentColor=re,Se.setCurrentColor=Se.setCurrentColor.bind(Se),Se.getColorBox=Se.getColorBox.bind(Se),Se}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,jt=document.createElement("div");return jt.style.overflow="hidden",jt.style.whiteSpace="nowrap",this.colors.forEach(function(re){var Zt=gt.getColorBox(re);jt.appendChild(Zt),gt.colorBoxes.push(Zt)}),jt},dt.prototype.getColorBox=function(gt){var jt=this,re=this.uiStyleSettings.toolbarHeight/4,Zt=this.uiStyleSettings.toolbarHeight-re,Se=document.createElement("div");Se.style.display="inline-block",Se.style.boxSizing="content-box",Se.style.width=Zt-2+"px",Se.style.height=Zt-2+"px",Se.style.padding="1px",Se.style.marginRight="2px",Se.style.marginBottom="2px",Se.style.borderWidth="2px",Se.style.borderStyle="solid",Se.style.borderRadius=(Zt+2)/2+"px",Se.style.borderColor=gt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Se.addEventListener("click",function(){jt.setCurrentColor(gt,Se)});var Xe=document.createElement("div");return Xe.style.display="inline-block",Xe.style.width=Zt-2+"px",Xe.style.height=Zt-2+"px",Xe.style.backgroundColor=gt,Xe.style.borderRadius=Zt/2+"px",gt==="transparent"&&(Xe.style.fill=this.uiStyleSettings.toolboxAccentColor,Xe.innerHTML=` `),Se.appendChild(Xe),Se},dt.prototype.setCurrentColor=function(gt,jt){var re=this;this.currentColor=gt,this.colorBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===jt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(gt)},dt}(ct),mt=function(){function Pt(dt,gt,jt){this._state="new",this._isSelected=!1,this._container=dt,this._overlayContainer=gt,this.globalSettings=jt,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}(),Et=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}(),Ft=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}(),Kt=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}(),Dt=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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 jt=bt.createTransform();this._visual.transform.baseVal.appendItem(jt)},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,jt){Pt.prototype.pointerDown.call(this,gt,jt),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(jt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(jt)){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 Se=this.container.transform.baseVal.getItem(0);Se.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Se,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},dt.prototype.pointerUp=function(gt){var jt=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",jt==="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 jt=this.unrotatePoint(gt);this.state==="creating"?this.resize(gt):this.state==="move"?(this.left=this.manipulationStartLeft+(jt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(jt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(jt):this.state==="rotate"&&this.rotate(gt)},dt.prototype.resize=function(gt){var jt=this.manipulationStartLeft,re=this.manipulationStartWidth,Zt=this.manipulationStartTop,Se=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:jt=this.manipulationStartLeft+gt.x-this.manipulationStartX,re=this.manipulationStartWidth+this.manipulationStartLeft-jt;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,Se=this.manipulationStartHeight+this.manipulationStartTop-Zt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Se=this.manipulationStartHeight+gt.y-this.manipulationStartY}re>=0?(this.left=jt,this.width=re):(this.left=jt+re,this.width=-re),Se>=0?(this.top=Zt,this.height=Se):(this.top=Zt+Se,this.height=-Se),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 jt=Math.sign(gt.x-this.centerX);this.rotationAngle=180*Math.atan((gt.y-this.centerY)/(gt.x-this.centerX))/Math.PI+90*jt,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 jt=this.container.getCTM(),re=bt.createPoint(gt.x,gt.y);return{x:(re=re.matrixTransform(jt)).x,y:re.y}},dt.prototype.unrotatePoint=function(gt){if(this.rotationAngle===0)return gt;var jt=this.container.getCTM();jt=jt.inverse();var re=bt.createPoint(gt.x,gt.y);return{x:(re=re.matrixTransform(jt)).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 Et,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 Ft;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,jt=-gt/2,re=jt,Zt=(this.width+this.CB_DISTANCE)/2-gt/2,Se=(this.height+this.CB_DISTANCE)/2-gt/2,Xe=this.height+this.CB_DISTANCE-gt/2,tn=this.width+this.CB_DISTANCE-gt/2;this.positionGrip(this.controlGrips.topLeft.visual,jt,re),this.positionGrip(this.controlGrips.topCenter.visual,Zt,re),this.positionGrip(this.controlGrips.topRight.visual,tn,re),this.positionGrip(this.controlGrips.centerLeft.visual,jt,Se),this.positionGrip(this.controlGrips.centerRight.visual,tn,Se),this.positionGrip(this.controlGrips.bottomLeft.visual,jt,Xe),this.positionGrip(this.controlGrips.bottomCenter.visual,Zt,Xe),this.positionGrip(this.controlGrips.bottomRight.visual,tn,Xe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Zt,re-3*this.CB_DISTANCE)},dt.prototype.positionGrip=function(gt,jt,re){var Zt=gt.transform.baseVal.getItem(0);Zt.setTranslate(jt,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:Kt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Kt.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 jt=gt;this.left=jt.left,this.top=jt.top,this.width=jt.width,this.height=jt.height,this.rotationAngle=jt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Kt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,jt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Kt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,jt.containerTransformMatrix))},dt.prototype.scale=function(gt,jt){Pt.prototype.scale.call(this,gt,jt);var re=this.rotatePoint({x:this.left,y:this.top}),Zt=this.unrotatePoint({x:re.x*gt,y:re.y*jt});this.left=Zt.x,this.top=Zt.y,this.width=this.width*gt,this.height=this.height*jt,this.adjustControlBox()},dt}(mt),_t=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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,jt){Pt.prototype.pointerDown.call(this,gt,jt),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 jt=gt;this.fillColor=jt.fillColor,this.strokeColor=jt.strokeColor,this.strokeWidth=jt.strokeWidth,this.strokeDasharray=jt.strokeDasharray,this.opacity=jt.opacity,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,jt){Pt.prototype.scale.call(this,gt,jt),this.setSize()},dt.title="Rectangle marker",dt}(Dt),qt=function(Pt){function dt(gt,jt,re,Zt){var Se=Pt.call(this,gt,Zt||'')||this;return Se.widths=[],Se.widthBoxes=[],Se.widths=jt,Se.currentWidth=re,Se.setCurrentWidth=Se.setCurrentWidth.bind(Se),Se}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,jt=document.createElement("div");return jt.style.display="flex",jt.style.overflow="hidden",jt.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)}),jt.appendChild(Zt);var Se=document.createElement("div");Se.innerText=re.toString(),Se.style.marginRight="5px",Zt.appendChild(Se);var Xe=document.createElement("div");Xe.style.minHeight="20px",Xe.style.flexGrow="2",Xe.style.display="flex",Xe.style.alignItems="center";var tn=document.createElement("hr");tn.style.minWidth="20px",tn.style.border="0px",tn.style.borderTop=re+"px solid "+gt.uiStyleSettings.toolboxColor,tn.style.flexGrow="2",Xe.appendChild(tn),Zt.appendChild(Xe),gt.widthBoxes.push(Zt)}),jt},dt.prototype.setCurrentWidth=function(gt,jt){var re=this;this.currentWidth=gt,this.widthBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===jt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},dt}(ct),Ut=function(Pt){function dt(gt,jt,re,Zt){var Se=Pt.call(this,gt,Zt||'')||this;return Se.styles=[],Se.styleBoxes=[],Se.styles=jt,Se.currentStyle=re,Se.setCurrentStyle=Se.setCurrentStyle.bind(Se),Se}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,jt=document.createElement("div");return jt.style.display="flex",jt.style.overflow="hidden",jt.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)}),jt.appendChild(Zt);var Se=document.createElement("div");Se.style.minHeight="20px",Se.style.flexGrow="2",Se.style.overflow="hidden";var Xe=` `;Se.innerHTML=Xe,Zt.appendChild(Se),gt.styleBoxes.push(Zt)}),jt},dt.prototype.setCurrentStyle=function(gt,jt){var re=this;this.currentStyle=gt,this.styleBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===jt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},dt}(ct),ue=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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 qt("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Ut("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}(_t),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"},Pe=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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,jt){Pt.prototype.pointerDown.call(this,gt,jt),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(jt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(jt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},dt.prototype.pointerUp=function(gt){var jt=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",jt==="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 Ft;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,jt,re){var Zt=gt.transform.baseVal.getItem(0);Zt.setTranslate(jt,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 jt=gt;this.x1=jt.x1,this.y1=jt.y1,this.x2=jt.x2,this.y2=jt.y2},dt.prototype.scale=function(gt,jt){Pt.prototype.scale.call(this,gt,jt),this.x1=this.x1*gt,this.y1=this.y1*jt,this.x2=this.x2*gt,this.y2=this.y2*jt,this.adjustVisual(),this.adjustControlBox()},dt}(mt),ve=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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 qt("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Ut("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,jt){Pt.prototype.pointerDown.call(this,gt,jt),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 jt=gt;this.strokeColor=jt.strokeColor,this.strokeWidth=jt.strokeWidth,this.strokeDasharray=jt.strokeDasharray,this.createVisual(),this.adjustVisual()},dt.typeName="LineMarker",dt.title="Line marker",dt.icon='',dt}(Pe),Oe=function(Pt){function dt(gt,jt,re,Zt){var Se=Pt.call(this,gt,Zt||'')||this;return Se.fonts=[],Se.fontBoxes=[],Se.fonts=jt,Se.currentFont=re,Se.setCurrentFont=Se.setCurrentFont.bind(Se),Se}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,jt=document.createElement("div");return jt.style.overflow="hidden",jt.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)}),jt.appendChild(Zt);var Se=document.createElement("div");Se.style.display="flex",Se.style.minHeight="20px",Se.style.flexGrow="2",Se.style.fontFamily=re,Se.style.overflow="hidden";var Xe=document.createElement("div");Xe.style.whiteSpace="nowrap",Xe.style.overflow="hidden",Xe.style.textOverflow="ellipsis",Xe.innerHTML="The quick brown fox jumps over the lazy dog",Se.appendChild(Xe),Zt.appendChild(Se),gt.fontBoxes.push(Zt)}),jt},dt.prototype.setCurrentFont=function(gt,jt){var re=this;this.currentFont=gt,this.fontBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===jt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},dt}(ct),pe=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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 Oe("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 jt=!1;return this.textElement.childNodes.forEach(function(re){re===gt&&(jt=!0)}),jt},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,jt){Pt.prototype.pointerDown.call(this,gt,jt),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(jt){gt.textElement.appendChild(bt.createTSpan(jt.trim()===""?" ":jt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},dt.prototype.getTextScale=function(){var gt=this.textElement.getBBox(),jt=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;jt=Math.min(re,Zt)}return jt},dt.prototype.getTextPosition=function(gt){var jt=this.textElement.getBBox(),re=0,Zt=0;return jt.width>0&&jt.height>0&&(re=(this.width-jt.width*gt)/2,Zt=this.height/2-jt.height*gt/2),{x:re,y:Zt}},dt.prototype.sizeText=function(){var gt=this.textElement.getBBox(),jt=this.getTextScale(),re=this.getTextPosition(jt);re.y-=gt.y*jt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+re.x+"px, "+re.y+"px) scale("+jt+", "+jt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(re.x,re.y),this.textElement.transform.baseVal.getItem(1).setScale(jt,jt))},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 jt=this.state;jt==="creating"&&(this._suppressMarkerCreateEvent=!0),Pt.prototype.pointerUp.call(this,gt),this.setSize(),(jt==="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(jt){jt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var jt=Number.parseFloat(gt.textEditor.style.fontSize);gt.textEditor.clientWidth>=Number.parseInt(gt.textEditor.style.maxWidth)&&jt>.9;)jt-=.1,gt.textEditor.style.fontSize=Math.max(jt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(jt){jt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(jt){if(jt.clipboardData){var re=jt.clipboardData.getData("text"),Zt=window.getSelection();if(!Zt.rangeCount)return!1;Zt.deleteFromDocument(),Zt.getRangeAt(0).insertNode(document.createTextNode(re)),jt.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(),jt=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};jt.x-=Zt.x/2,jt.y-=Zt.y/2,this.textEditor.style.top=jt.y+"px",this.textEditor.style.left=jt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-jt.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,jt){Pt.prototype.dblClick.call(this,gt,jt),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 jt=gt;this.color=jt.color,this.fontFamily=jt.fontFamily,this.padding=jt.padding,this.text=jt.text,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,jt){Pt.prototype.scale.call(this,gt,jt),this.setSize(),this.sizeText(),this.positionTextEditor()},dt.typeName="TextMarker",dt.title="Text marker",dt.icon='',dt}(Dt),Ke=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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 qt("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,jt){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,jt)},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),jt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],re=jt[0],Zt=jt[1],Se=jt[2],Xe=jt[3],tn=!1,Te=0;Te0&&(tn=!0,TeXe&&(Xe=Te),Re>Se&&(Se=Re));if(tn){this.left=re/this.pixelRatio,this.top=Zt/this.pixelRatio,this.width=(Se-re)/this.pixelRatio,this.height=(Xe-Zt)/this.pixelRatio;var dn=document.createElement("canvas");dn.width=Se-re,dn.height=Xe-Zt,dn.getContext("2d").putImageData(this.canvasContext.getImageData(re,Zt,Se-re,Xe-Zt),0,0),this.drawingImgUrl=dn.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,jt){Pt.prototype.scale.call(this,gt,jt),this.setDrawingImage()},dt.typeName="FreehandMarker",dt.title="Freehand marker",dt.icon='',dt}(Dt),fe=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,re||'')||this;return Zt.typeBoxes=[],Zt.currentType=jt,Zt.setCurrentType=Zt.setCurrentType.bind(Zt),Zt}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,jt=document.createElement("div");jt.style.display="flex",jt.style.overflow="hidden",jt.style.flexGrow="2";for(var re=function(Xe){var tn="both";switch(Xe){case 0:tn="both";break;case 1:tn="start";break;case 2:tn="end";break;case 3:tn="none"}var Te=document.createElement("div");if(Te.style.display="flex",Te.style.flexGrow="2",Te.style.alignItems="center",Te.style.justifyContent="space-between",Te.style.padding="5px",Te.style.borderWidth="2px",Te.style.borderStyle="solid",Te.style.borderColor=tn===Zt.currentType?Zt.uiStyleSettings.toolboxAccentColor:"transparent",Te.addEventListener("click",function(){gt.setCurrentType(tn,Te)}),jt.appendChild(Te),tn==="both"||tn==="start"){var Re=document.createElement("div");Re.style.display="flex",Re.style.alignItems="center",Re.style.minHeight="20px",Re.innerHTML=` `,Re.style.marginLeft="5px",Te.appendChild(Re)}var dn=document.createElement("div");dn.style.display="flex",dn.style.alignItems="center",dn.style.minHeight="20px",dn.style.flexGrow="2";var xn=document.createElement("hr");if(xn.style.minWidth="20px",xn.style.border="0px",xn.style.borderTop="3px solid "+(Zt.uiStyleSettings!==void 0?Zt.uiStyleSettings.toolboxColor:"#eeeeee"),xn.style.flexGrow="2",dn.appendChild(xn),Te.appendChild(dn),tn==="both"||tn==="end"){var Mn=document.createElement("div");Mn.style.display="flex",Mn.style.alignItems="center",Mn.style.minHeight="20px",Mn.innerHTML=` `,Mn.style.marginRight="5px",Te.appendChild(Mn)}Zt.typeBoxes.push(Te)},Zt=this,Se=0;Se<4;Se++)re(Se);return jt},dt.prototype.setCurrentType=function(gt,jt){var re=this;this.currentType=gt,this.typeBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===jt?re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},dt}(ct),Qt=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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 fe("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,jt){var re=this.arrowBaseWidth+2*this.strokeWidth,Zt=this.arrowBaseHeight+2*this.strokeWidth;return gt-re/2+","+(jt+Zt/2)+" "+gt+","+(jt-Zt/2)+" "+(gt+re/2)+","+(jt+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,jt){Pt.prototype.pointerDown.call(this,gt,jt),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 jt=this.arrow1.transform.baseVal.getItem(0);jt.setRotate(gt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(jt,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 jt=gt;this.arrowType=jt.arrowType,this.createTips(),this.adjustVisual()},dt.typeName="ArrowMarker",dt.title="Arrow marker",dt.icon='',dt}(ve),ee=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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}(_t),ae=function(Pt){function dt(gt,jt,re,Zt){var Se=Pt.call(this,gt,Zt||'')||this;return Se.opacities=[],Se.opacityBoxes=[],Se.opacities=jt,Se.currentOpacity=re,Se.setCurrentOpacity=Se.setCurrentOpacity.bind(Se),Se}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,jt=document.createElement("div");return jt.style.display="flex",jt.style.overflow="hidden",jt.style.flexGrow="2",jt.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)}),jt.appendChild(Zt);var Se=document.createElement("div");Se.innerText=100*re+"%",Zt.appendChild(Se),gt.opacityBoxes.push(Zt)}),jt},dt.prototype.setCurrentOpacity=function(gt,jt){var re=this;this.currentOpacity=gt,this.opacityBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===jt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},dt}(ct),de=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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='',Ie='',De=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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,Ie),Zt.bgColorPanel.onColorChanged=Zt.setBgColor,Zt.fontFamilyPanel=new Oe("Font",re.defaultFontFamilies,re.defaultFontFamily),Zt.fontFamilyPanel.onFontChanged=Zt.setFont,Zt.tipGrip=new Ft,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,jt){this.state==="new"&&Pt.prototype.pointerDown.call(this,gt,jt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(jt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Pt.prototype.pointerDown.call(this,gt,jt)},dt.prototype.pointerUp=function(gt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Pt.prototype.pointerUp.call(this,gt);else{var jt=this.state==="creating";Pt.prototype.pointerUp.call(this,gt),this.setTipPoints(jt),this.positionTip()}},dt.prototype.manipulate=function(gt){if(this.tipMoving){var jt=this.unrotatePoint(gt);this.tipPosition={x:jt.x-this.manipulationStartLeft,y:jt.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 jt=Math.min(this.height/2,15),re=this.height/5;gt&&(this.tipPosition={x:jt+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),jt=this.tip1.transform.baseVal.getItem(0);jt.setRotate(gt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(jt,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}(ve),nn=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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),Ne=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}(),Be=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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 qt("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Ut("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,jt){Pt.prototype.pointerDown.call(this,gt,jt),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(jt)&&(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,jt){this.curveX=this.curveX*gt,this.curveY=this.curveY*jt,Pt.prototype.scale.call(this,gt,jt)},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 jt=gt;this.strokeColor=jt.strokeColor,this.strokeWidth=jt.strokeWidth,this.strokeDasharray=jt.strokeDasharray,this.curveX=jt.curveX,this.curveY=jt.curveY,this.createVisual(),this.adjustVisual()},dt.typeName="CurveMarker",dt.title="Curve marker",dt.icon='',dt}(Pe),je=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,jt,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",Ct(re.defaultColorSet,["transparent"]),Zt.strokeColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.fillPanel=new pt("Fill color",Ct(re.defaultColorSet,["transparent"]),Zt.fillColor,Ie),Zt.fillPanel.onColorChanged=Zt.setFillColor,Zt.strokeWidthPanel=new qt("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Ut("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt.fontFamilyPanel=new Oe("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,jt){Pt.prototype.pointerDown.call(this,gt,jt),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(jt){jt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(jt){jt.key==="Enter"&>.finishTextEditing(gt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(jt){jt.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,jt){Pt.prototype.dblClick.call(this,gt,jt),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 jt=gt;this.fillColor=jt.fillColor,this.strokeColor=jt.strokeColor,this.strokeWidth=jt.strokeWidth,this.strokeDasharray=jt.strokeDasharray,this.textColor=jt.textColor,this.fontFamily=jt.fontFamily,this.captionText=jt.captionText,this.fontSize=jt.fontSize,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,jt){Pt.prototype.scale.call(this,gt,jt),this.setSize()},dt.typeName="CaptionFrameMarker",dt.title="Caption frame marker",dt.icon='',dt}(Dt),ze=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}(),xe=function(Pt){function dt(gt,jt,re){var Zt=Pt.call(this,gt,!1)||this;return Zt.dataUrl=jt,Zt.state=re,Zt}return xt(dt,Pt),dt}(ze),le=function(Pt){function dt(gt,jt,re){re===void 0&&(re=!1);var Zt=Pt.call(this,gt,re)||this;return Zt.marker=jt,Zt}return xt(dt,Pt),dt}(ze),Ae=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 jt=this[dt].indexOf(gt);jt>-1&&this[dt].splice(jt,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 Ne,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 Ae,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,Ke,Qt,pe,nn,en,de,De,Ue,ee,ve,Be,je]},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ue,Ke,Qt,pe,en,de,De]},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ue,Ke,Qt,pe,de]},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(jt){if(typeof jt=="string"){var re=gt.ALL_MARKER_TYPES.find(function(Zt){return Zt.typeName===jt});re!==void 0&>._availableMarkerTypes.push(re)}else gt._availableMarkerTypes.push(jt)})},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 ze(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 jt=!1;dt||this.eventListeners.beforeclose.forEach(function(re){var Zt=new ze(gt,!0);re(Zt),Zt.defaultPrevented&&(jt=!0)}),jt||(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 ze(gt))}),this.detachEvents(),this._isOpen=!1)}},Pt.prototype.addMarkersToToolbar=function(){for(var dt,gt=[],jt=0;jtthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*dt:this.editorCanvas.clientWidth,jt=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 jt=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,jt))})}}},Pt.prototype.clear=function(){var dt=this,gt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Se){var Xe=new le(dt,void 0,!0);Se(Xe),Xe.defaultPrevented&&(gt=!0)}),!gt)){this.setCurrentMarker();for(var jt=function(Se){var Xe=re.markers[Se];re.setCurrentMarker(re.markers[Se]),re._currentMarker.dispose(),re.markerImage.removeChild(re._currentMarker.container),re.markers.splice(re.markers.indexOf(re._currentMarker),1),re.eventListeners.markerdelete.forEach(function(tn){return tn(new le(dt,Xe))})},re=this,Zt=this.markers.length-1;Zt>=0;Zt--)jt(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(),jt=this.undoRedoManager.getLastUndoStep();if(!jt||jt.width===gt.width&&jt.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 jt=this.markerImage.getBoundingClientRect();return{x:(dt-jt.left)/this.zoomLevel,y:(gt-jt.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 ze(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 ze(dt))}))},Pt.instanceCounter=0,Pt}(),he=Gt(99064),Jt=Gt(955),Mt=(Pt,dt,gt)=>new Promise((jt,re)=>{var Zt=tn=>{try{Xe(gt.next(tn))}catch(Te){re(Te)}},Se=tn=>{try{Xe(gt.throw(tn))}catch(Te){re(Te)}},Xe=tn=>tn.done?jt(tn.value):Promise.resolve(tn.value).then(Zt,Se);Xe((gt=gt.apply(Pt,dt)).next())}),Ht=({data:Pt,className:dt,fullWidth:gt,style:jt={},onClose:re,onOk:Zt,showFullTools:Se,noAssociationId:Xe})=>{const tn=(0,Rt.useRef)(null),Te=(0,Rt.useRef)(null),Re=(0,Rt.useRef)(null),dn=(0,Rt.useRef)(null),[xn,Mn]=(0,Rt.useState)(!1),[zn,Zn]=(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&&Gn()):(document.body.removeAttribute("data-custom"),Re.current&&(document.head.removeChild(Re.current),Re.current=null)),()=>{document.body.removeAttribute("data-custom"),Re.current&&(document.head.removeChild(Re.current),Re.current=null)}),[Pt==null?void 0:Pt.visible]);const Gn=()=>Mt(void 0,null,function*(){Mn(!0),Zn("\u6B63\u5728\u52A0\u8F7D\u4E2D");const yi=yield(0,Jt.ZJ)(Pt==null?void 0:Pt.src);tn.current.src="",tn.current.src=yi,tn.current.onload=function(){pi()},Mn(!1),Zn("")}),oi=yi=>Mt(void 0,null,function*(){Mn(!0),Zn("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Bi=yield(0,he.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Pt.title,file:yi.dataUrl}});Bi!=null&&Bi.id&&!Xe?(yield(0,he.ZP)(`/api/attachments/${Pt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Bi==null?void 0:Bi.id,settings:JSON.stringify(yi.state)}})).status===0&&Zt():Bi!=null&&Bi.id&&Zt(Bi),Mn(!1),Zn("")}),vi=()=>{const yi=document.querySelector('a[href="https://markerjs.com/"]');yi&&yi.parentNode&&(yi.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(ki=>{const Ei=document.querySelector(ki.name);Ei&&Ei.setAttribute("title",ki.title)})},pi=()=>{Te.current=new ce(tn.current),Te.current.targetRoot=dn.current,Te.current.addEventListener("render",oi),Te.current.addEventListener("beforeclose",re),Se&&(Te.current.availableMarkerTypes=Te.current.ALL_MARKER_TYPES,Te.current.uiStyleSettings.redoButtonVisible=!0,Te.current.uiStyleSettings.notesButtonVisible=!0,Te.current.uiStyleSettings.zoomButtonVisible=!0,Te.current.uiStyleSettings.zoomOutButtonVisible=!0,Te.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Te.current.uiStyleSettings,Te.current.show(),Pt!=null&&Pt.snapshotData&&Te.current.restoreState(Pt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),vi()},300)};return Rt.createElement(Rt.Fragment,null,(Pt==null?void 0:Pt.visible)&&Rt.createElement(kt.Z,{spinning:xn,tip:zn,style:{position:"absolute",width:"100vw"}},Rt.createElement("div",{ref:dn,className:Xt()(yt.imageDimensions,dt,gt?yt.fullWidth:""),style:jt},Rt.createElement("img",{className:yt.img,ref:tn}))))}},41588:function(Nn,Ln,Gt){"use strict";var Rt=Gt(59301),yt=Gt(95237),Vt=Gt(43604),Xt=Gt(99313),kt=Gt(3113),Wt=Gt(85149),xt=Gt(88010),Ot=Gt(48136),Bt=Gt(59301);const Ct=(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((Et,Ft)=>Bt.createElement("div",{key:Ft},Bt.createElement("h1",null,Et.name),Bt.createElement(yt.Z,{gutter:[10,10]},Et.data.map((Kt,Dt)=>Bt.createElement(Vt.Z,{key:Dt,onClick:()=>rt(Kt),className:xt.Z.diamond},Bt.createElement(Wt.Z,{value:"`$$"+Kt.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((Et,Ft)=>Bt.createElement("div",{key:Ft},Et.name&&Bt.createElement("h1",null,Et.name),Bt.createElement(yt.Z,{gutter:[10,10]},Et.data.map((Kt,Dt)=>Bt.createElement(Vt.Z,{key:Dt,onClick:()=>rt(Kt),className:xt.Z.diamond},Bt.createElement(Wt.Z,{value:"`$$"+Kt.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(Xt.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(kt.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ln.Z=Ct},57490:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{z:function(){return Ke},Z:function(){return fe}});var Rt=Gt(59301),yt=Gt(54580),Vt=Gt(8591),Xt=Gt(43418),kt=Gt(3113),Wt=Gt(3294),xt=Gt(23538),Ot=Object.defineProperty,Bt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Tt=(Qt,ee,ae)=>ee in Qt?Ot(Qt,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Qt[ee]=ae,It=(Qt,ee)=>{for(var ae in ee||(ee={}))Ct.call(ee,ae)&&Tt(Qt,ae,ee[ae]);if(Bt)for(var ae of Bt(ee))bt.call(ee,ae)&&Tt(Qt,ae,ee[ae]);return Qt},vt=(Qt,ee,ae)=>new Promise((de,se)=>{var Ie=Ue=>{try{en(ae.next(Ue))}catch(nn){se(nn)}},De=Ue=>{try{en(ae.throw(Ue))}catch(nn){se(nn)}},en=Ue=>Ue.done?de(Ue.value):Promise.resolve(Ue.value).then(Ie,De);en((ae=ae.apply(Qt,ee)).next())});const et="\u3000\u3000";function tt(Qt){var ee=["Bytes","KB","MB","GB","TB"];if(Qt==0)return"0 Byte";var ae=parseInt(""+Math.floor(Math.log(Qt)/Math.log(1024)),10);return(Qt/Math.pow(1024,ae)).toFixed(1)+" "+ee[ae]}var st=({value:Qt=[],action:ee,onChange:ae,className:de,maxSize:se=150,title:Ie="\u6587\u4EF6\u4E0A\u4F20",accept:De=null})=>{const en={multiple:!1,fileList:Qt,accept:De,withCredentials:!0,beforeUpload:nn=>nn.size/1024/1024(le.name.indexOf(et)===-1&&(le.name=`${le.name}${et}${tt(le.size)}`),It({},le))),nn.file.status==="done"&&((Be=(Ne=nn.file)==null?void 0:Ne.response)==null?void 0:Be.status)===-1){message.error((ze=(je=nn.file)==null?void 0:je.response)==null?void 0:ze.message),ae([]);return}ae(xe)},onRemove:nn=>vt(void 0,null,function*(){const Ne=nn.size/1024/1024;return nn.status==="uploading"?!0:Ne0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Qt.length>0,ghost:!0},Ie),React.createElement("span",{onClick:Ue,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",se,"M)"," ")))},rt=Gt(61481),ut=Gt(89392),ct=Object.defineProperty,pt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Ft=(Qt,ee,ae)=>ee in Qt?ct(Qt,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Qt[ee]=ae,Kt=(Qt,ee)=>{for(var ae in ee||(ee={}))mt.call(ee,ae)&&Ft(Qt,ae,ee[ae]);if(pt)for(var ae of pt(ee))Et.call(ee,ae)&&Ft(Qt,ae,ee[ae]);return Qt};const Dt=Qt=>React.createElement("svg",Kt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Qt),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 _t="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",qt=Object.defineProperty,Ut=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,Pe=(Qt,ee,ae)=>ee in Qt?qt(Qt,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Qt[ee]=ae,ve=(Qt,ee)=>{for(var ae in ee||(ee={}))ue.call(ee,ae)&&Pe(Qt,ae,ee[ae]);if(Ut)for(var ae of Ut(ee))oe.call(ee,ae)&&Pe(Qt,ae,ee[ae]);return Qt},Oe=(Qt,ee,ae)=>new Promise((de,se)=>{var Ie=Ue=>{try{en(ae.next(Ue))}catch(nn){se(nn)}},De=Ue=>{try{en(ae.throw(Ue))}catch(nn){se(nn)}},en=Ue=>Ue.done?de(Ue.value):Promise.resolve(Ue.value).then(Ie,De);en((ae=ae.apply(Qt,ee)).next())});const{Dragger:pe}=yt.default;function Ke(Qt){let ee=[];return Qt&&Qt.length>0&&(ee=Qt.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 fe=({value:Qt,onChange:ee,action:ae,data:de,className:se,maxSize:Ie=150,title:De="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:en=!1,accept:Ue="",additionalText:nn,isDragger:Ne,number:Be=1e3,aloneClear:je=!1,realTimeRemove:ze=!0,uploadText:xe,setFileProgress:le,showFileProgress:Ae})=>{const[ce,he]=(0,Rt.useState)(!1);let[Jt,Mt]=(0,Rt.useState)(Qt||[]),[At,Ht]=(0,Rt.useState)(1);(0,Rt.useEffect)(()=>{Qt&&(At===1&&Mt([...Qt]),Ht(2),Be===(Qt==null?void 0:Qt.length)&&he(!0))},[Qt]);const Pt=()=>{setTimeout(()=>{Jt.pop(),Mt([...Jt])},500)};Ae&&le(Jt.some(jt=>jt.status==="uploading"));const dt={multiple:!0,disabled:ce,accept:Ue,withCredentials:!0,fileList:Jt,beforeUpload:(jt,re)=>{const Zt=jt.size/1024/1024;return Jt.concat(re).length>Be?(Jt.pop(),Mt([...Jt]),Vt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Be}\u4E2A\u6587\u4EF6`),je?Promise.reject():(Pt(),!1)):Zt=Be?he(!0):he(!1),Mt([...Jt]),Jt=Jt.map(tn=>{var Te,Re;return(Te=tn==null?void 0:tn.response)!=null&&Te.id&&(tn.url=(Re=tn==null?void 0:tn.response)==null?void 0:Re.url),tn.name.indexOf(et)===-1&&(tn.name=`${tn.name}${et}${tt(tn.size)}`),ve({},tn)}),console.log("info:",jt,Jt),ee(Jt)},onRemove:jt=>Oe(void 0,null,function*(){if(!ze)return!0;const re=()=>Oe(void 0,null,function*(){if(jt.response?jt.response.id:jt.id){let Se=yield(0,xt.JZ)(jt.response?jt.response.id:jt.uid);return Promise.resolve(Se)}else return!0});return en?new Promise((Zt,Se)=>{Xt.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:()=>Oe(void 0,null,function*(){const Xe=yield re();Vt.ZP.success("\u5220\u9664\u6210\u529F"),Zt(!0)}),onCancel:()=>Zt(!1)})}):yield re()})};function gt(jt){jt.preventDefault(),jt.stopPropagation()}return Rt.createElement("div",{className:`multi-upload ${se||""}`},Ne&&Rt.createElement(pe,ve({},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",Ie,"MB)"," "),nn),!Ne&&Rt.createElement(yt.default,ve({},dt),Rt.createElement(kt.ZP,{disabled:ce,className:"upload_button"},Rt.createElement("img",{className:"aBtn_img",src:_t}),De),Rt.createElement("span",{onClick:gt,className:"upload_text"},xe||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ie}MB)`)))}},8797:function(Nn,Ln,Gt){"use strict";var Rt=Gt(59301),yt=Gt(93314),Vt=Gt(3113),Xt=Object.defineProperty,kt=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Ct=(vt,et,tt)=>et in vt?Xt(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)&&Ct(vt,tt,et[tt]);if(xt)for(var tt of xt(et))Bt.call(et,tt)&&Ct(vt,tt,et[tt]);return vt},Tt=(vt,et)=>kt(vt,Wt(et));const It=({img:vt,buttonProps:et={},styles:tt={},customText:st,ButtonText:rt,ButtonClick:ut,Buttonclass:ct,ButtonTwo:pt,imgStyles:mt,loading:Et=!1,className:Ft=""})=>Rt.createElement("section",{className:`tc animated fadeIn ${Ft}`,style:bt({color:"#999",margin:"100px auto",visibility:Et?"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);Ln.Z=It},23210:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{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),Xt=Gt(70557),kt=Gt(23954),Wt=Gt(6848),xt=Gt(955),Ot=Gt(94941),Bt=Gt(8797),Ct=Gt(3294),bt=Gt(19381),Tt=Gt(59301),It=Object.defineProperty,vt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,st=(pt,mt,Et)=>mt in pt?It(pt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):pt[mt]=Et,rt=(pt,mt)=>{for(var Et in mt||(mt={}))et.call(mt,Et)&&st(pt,Et,mt[Et]);if(vt)for(var Et of vt(mt))tt.call(mt,Et)&&st(pt,Et,mt[Et]);return pt},ut=(pt,mt,Et)=>new Promise((Ft,Kt)=>{var Dt=Ut=>{try{qt(Et.next(Ut))}catch(ue){Kt(ue)}},_t=Ut=>{try{qt(Et.throw(Ut))}catch(ue){Kt(ue)}},qt=Ut=>Ut.done?Ft(Ut.value):Promise.resolve(Ut.value).then(Dt,_t);qt((Et=Et.apply(pt,mt)).next())}),ct=({editOffice:pt="view",data:mt,theme:Et,type:Ft,filename:Kt,monacoEditor:Dt,className:_t,style:qt,close:Ut,onClose:ue,hasMask:oe,disabledDownload:Pe,onImgDimensions:ve,showNodata:Oe,recordInfo:pe})=>{const[Ke,fe]=(0,Rt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Qt,ee]=(0,Rt.useState)(""),[ae,de]=(0,Rt.useState)(),se=window.ENV==="build"?"/react/build":"",Ie=location.host.startsWith("localhost")?Ct.Z.PROXY_SERVER:Ct.Z.API_SERVER,en=10*(1024*1024),Ue=(0,Rt.useRef)();mt!=null&&mt.startsWith("/api")&&Ft!=="txt"&&(mt=Ct.Z.API_SERVER+mt);const nn=ze=>ze.substring(ze.lastIndexOf("/")+1).split(".").pop();Kt&&Dt&&(Dt.filename=Kt),(0,Rt.useEffect)(()=>{var ze,xe;const le=(xe=(ze=document.cookie)==null?void 0:ze.replace(/\s/g,""))==null?void 0:xe.split(";");le==null||le.map(Ae=>{let ce=Ae.split("=");ce[0]==="_educoder_session"&&ee(ce[1])})},[]),(0,Rt.useEffect)(()=>{Ft==="office"&&(mt.indexOf("bigfilescdn.")>-1||mt.indexOf("bigfiles1")>-1?de({url:mt,fileType:nn(mt),model:mt.indexOf("model=edit")?"edit":"view"}):Ne())},[Ft,mt]);const Ne=()=>ut(void 0,null,function*(){console.log("data:",mt);let ze=mt;mt.startsWith("http")||(ze=location.origin+ze);let xe=new URL(ze).pathname.split("/").pop();const le=yield(0,Ot.gJ)({attachment_id:xe});le.url=Ie+le.url,de(le)}),Be=()=>{if(mt.startsWith("http")||mt.startsWith("blob:")){je();return}(0,xt.Sv)(Kt||"educoder",mt,Kt)},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)(Kt||"educoder",decodeURIComponent(mt))};return Tt.createElement("div",{style:rt({},qt||{}),className:`${oe&&yt.bgBlack} ${Ft?yt.wrp:"hide"}`},Ut&&Tt.createElement("div",{className:yt.close,ref:Ue},!!ve&&Tt.createElement(Wt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ue.current},Tt.createElement("span",{onClick:()=>{ue(),ve()}},Tt.createElement("i",{className:"icon-yulanpizhu"}))),!Pe&&Tt.createElement(Wt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ue.current},Tt.createElement("span",{onClick:je},Tt.createElement("i",{className:"icon-quxiaozhiding"}))),Tt.createElement(Wt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ue.current},Tt.createElement("span",{className:"",onClick:ue},Tt.createElement("i",{className:"icon-guanbi1"})))),Tt.createElement("div",{className:`${yt[_t]} ${_t} ${yt.monaco} ${Ft==="txt"?"show":"hide"}`},Ft==="txt"&&Tt.createElement(Tt.Fragment,null,Tt.createElement(kt.ZP,rt({},Dt)))),Ft==="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}),Ft==="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})),Ft==="office"&&ae&&Tt.createElement("iframe",{src:`${se}/office.html?key=${ae.key}&url=${btoa(ae.url)}&callbackUrl=${Ie+(ae.callbackUrl||"")}&fileType=${ae.fileType}&title=${ae.title||""}&model=${pt}&officeServer=${Ct.Z.ONLYOFFICE}&disabledDownload=${!!Pe}`}),Ft==="html"&&Tt.createElement("iframe",{src:mt+"&disposition=inline"}),Ft==="pdf"&&Tt.createElement("iframe",{src:`${se}/js/pdfview/index.html?filename=${Kt||"educoder.pdf"}&url=${encodeURIComponent(mt)}&disabledDownload=${!!Pe}`}),Ft==="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}`}),(Ft==="other"||Ft==="download")&&Tt.createElement(Tt.Fragment,null,Oe?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:Be,disabled:Pe},"\u4E0B\u8F7D")}):Tt.createElement(Vt.ZP,{type:"primary",size:"middle",onClick:Be,disabled:Pe},Tt.createElement(Xt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{z:function(){return Ft},Z:function(){return Kt}});var Rt=Gt(59301),yt=Gt(50304),Vt=Gt(24768),Xt=Gt(64018),kt=Gt(40846),Wt=Gt(3294),xt=Gt(955),Ot=Gt(15342),Bt=Gt(1012),Ct=Gt(23210),bt=Gt(59301),It=({html:Dt})=>{const _t=(0,Rt.useRef)(null),qt=(0,Rt.useRef)(null),Ut=`.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=_t.current.attachShadow({mode:"open"});qt.current=document.createElement("div"),qt.current.className="markdown-body",qt.current.innerHTML=Dt,ue.appendChild(qt.current);const oe=document.createElement("style");return oe.textContent=Ut,ue.appendChild(oe),()=>{ue.innerHTML=""}},[]),(0,Rt.useEffect)(()=>{qt.current&&(qt.current.innerHTML=Dt)},[Dt]),bt.createElement("div",{ref:_t})},vt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Dt,_t,qt)=>_t in Dt?vt(Dt,_t,{enumerable:!0,configurable:!0,writable:!0,value:qt}):Dt[_t]=qt,ut=(Dt,_t)=>{for(var qt in _t||(_t={}))tt.call(_t,qt)&&rt(Dt,qt,_t[qt]);if(et)for(var qt of et(_t))st.call(_t,qt)&&rt(Dt,qt,_t[qt]);return Dt};const ct="@\u2581\u2581@",pt="@\u2581@",mt=/]*>/g;function Et(Dt){let _t=document.createElement("div");return _t.innerHTML=Dt,_t.childNodes.length===0?"":_t.childNodes[0].nodeValue}const Ft=(Dt,_t)=>{Dt=Dt||"";const qt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ut=/\"(?: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 _t?Dt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(qt,(Pe,ve,Oe,pe,Ke,fe,Qt)=>{const ee=ve||pe||fe,ae=Oe||Ke||Qt||"?";return Wt.Z.API_SERVER+"/api/attachments/"+ee+ae+"&t="+(0,xt.Jn)(ee,Date.now())+(Pe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Dt=Dt.replace(oe,(Pe,ve,Oe,pe,Ke,fe,Qt)=>{const ee=ve||pe||fe,ae=Oe||Ke||Qt||"?";return Wt.Z.API_SERVER+"/attachments/download/"+ee+ae+"&t="+(0,xt.Jn)(ee,Date.now())+(Pe.indexOf(")")>-1?")":"&")}).replace(qt,(Pe,ve,Oe,pe,Ke,fe,Qt)=>{const ee=ve||pe||fe,ae=Oe||Ke||Qt||"?";return Wt.Z.API_SERVER+"/api/attachments/"+ee+ae+"&t="+(0,xt.Jn)(ee,Date.now())+(Pe.indexOf(")")>-1?")":"&")}).replace(Ut,(Pe,ve,Oe,pe,Ke)=>{const fe=ve||pe,Qt=Oe||Ke||"";return'"'+Wt.Z.API_SERVER+"/api/attachments/"+fe+Qt+fe+Qt+"&t="+(0,xt.Jn)(fe,Date.now())}).replace(ue,(Pe,ve,Oe,pe,Ke)=>{const fe=ve||pe,Qt=Oe||Ke||"";return"("+Wt.Z.API_SERVER+"/files/uploads/"+fe+Qt+fe+Qt+"&t="+(0,xt.Jn)(fe,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,` `),Dt)};var Kt=({value:Dt="",className:_t,showTextOnly:qt,showLines:Ut,style:ue={},stylesPrev:oe={},highlightKeywords:Pe,showProgramFill:ve,isProgramFill:Oe,disabledFill:pe=!1,programFillValue:Ke,onFillChange:fe=ae=>{},onFillBlur:Qt=()=>{},onFillFocus:ee=()=>{}})=>{let ae=String(Dt);const[de,se]=(0,Rt.useState)(""),[Ie,De]=(0,Rt.useState)("office"),[en,Ue]=(0,Rt.useState)([]),nn=(0,Rt.useRef)("a"+(0,Bt.Z)()),Ne={},Be=(Pt,dt,gt)=>{const jt=document.createElement(Pt===pt?"input":"textarea");jt.style.width="100%",jt.style.height=Pt===pt?"40px":"151px",jt.rows=5,jt.spellcheck=!1,jt.name="edu-program-fill",jt.placeholder="\u8BF7\u8F93\u5165",jt.dataset.id=dt;const re=Object.keys(Ne).length;return Ne[re]=jt,`${jt.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 ze=Pt=>Pt.replace(/([\s\S]+?)<\/style>/gim,function(dt,gt){let jt=gt.replace(/(\n|\r)/g,"").split("}"),re=[];return jt.map(Zt=>{Zt!=""&&re.push(`.${nn.current} ${Zt}`)}),``}),xe=(0,Rt.useMemo)(()=>{try{const jt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,re=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Zt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Se=/\(\/attachments\/download\//g;ae=ae.replace(Se,"("+Wt.Z.API_SERVER+"/attachments/download/").replace(jt,"("+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(jt){}if(ve){let jt=-1;return ae=ae.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(re,Zt,Se){var Xe;return++jt,Be(re,jt,(Xe=Ke==null?void 0:Ke[jt])==null?void 0:Xe.value.replaceAll("<","<").replaceAll(">",">"))}),`
${ze(ae||"")}
`}let Pt=ze(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,(jt,re)=>{const{type:Zt,expression:Se}=dt[re];return(0,Ot.renderToString)(Et(Se)||"",{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,qt)return gt.innerText;if(Pe){const jt=Pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return he(gt,jt),gt.innerHTML}return setTimeout(()=>At(),500),gt.innerHTML},[ae,Pe]);(0,Rt.useEffect)(()=>{Jt.current&&Jt.current.querySelectorAll(["input","textarea"]).forEach(dt=>{dt.oninput=le,dt.onblur=Ae,dt.onfocus=ce})},[en]),(0,Rt.useEffect)(()=>{var Pt,dt,gt,jt,re;if(Ke!=null&&Ke.length)try{const Zt=Jt.current.querySelectorAll(".edu-program-fill-score"),Se=Jt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Xe,tn]of Se.entries())tn.value=((Pt=Ke==null?void 0:Ke[Xe])==null?void 0:Pt.value)||"",((dt=Ke==null?void 0:Ke[Xe])==null?void 0:dt.type)==="warning"?tn.className="program-fill-warning":((gt=Ke==null?void 0:Ke[Xe])==null?void 0:gt.type)==="success"?tn.className="program-fill-success":tn.className="";for(const[Xe,tn]of Zt.entries())tn.innerHTML=(jt=Ke==null?void 0:Ke[Xe])!=null&&jt.score?`${(re=Ke==null?void 0:Ke[Xe])==null?void 0:re.score}\u5206`:"";Ue(Ke)}catch(Zt){console.log(Zt,"error")}},[Ke]);const le=Pt=>{en[Pt.target.dataset.id]=en[Pt.target.dataset.id]||{},en[Pt.target.dataset.id].value=Pt.target.value,Ue([...en]),fe(en,Pt.target.dataset.id)},Ae=Pt=>{en[Pt.target.dataset.id]=en[Pt.target.dataset.id]||{},en[Pt.target.dataset.id].value=Pt.target.value,Ue([...en]),Qt(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,Ue([...en]),ee(en,Pt.target.dataset.id)};function he(Pt,dt){return Pt.childNodes.forEach(gt=>{var jt;if(gt.childNodes.length>0)he(gt,dt);else if(gt.nodeName!=="IMG")if(gt.innerHTML)gt.innerHTML=(jt=gt.innerHTML)==null?void 0:jt.replace(new RegExp(dt,"gi"),'$&');else{const re=document.createElement("span");re.innerHTML=gt.textContent.replace(new RegExp(dt,"gi"),'$&'),gt.replaceWith(re)}})}const Jt=(0,Rt.useRef)();Vt.jb.WebkitLineClamp=Ut,Ut&&(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),De("office");else if(gt.indexOf("application/pdf")>-1)Pt.preventDefault(),se(gt),De("pdf");else if(gt.indexOf("text/html")>-1)Pt.preventDefault(),se(gt),De("html");else if(gt.startsWith("#")){Pt.preventDefault();let jt=document.getElementById(gt.replace("#",""));jt&&jt.scrollIntoView(!0)}}}const At=()=>{var Pt;const dt=(Pt=Jt.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(kt.ZP.isSupported()){var jt=new kt.ZP;jt.loadSource(gt.src),jt.attachMedia(gt)}}})};(0,Rt.useEffect)(()=>{if(Jt.current&&xe&&xe.match(mt)&&window.PR.prettyPrint(),Jt.current)return Jt.current.addEventListener("click",Mt),()=>{var Pt;(Pt=Jt.current)==null||Pt.removeEventListener("click",Mt),(0,Vt.AL)(),(0,Vt.Iy)()}},[xe,Jt.current,Mt]),(0,Rt.useEffect)(()=>{var Pt;const dt=gt=>{gt.preventDefault(),gt.clipboardData.setData("text",window.getSelection().toString())};return(Pt=Jt.current)==null||Pt.addEventListener("copy",dt),()=>{var gt;(gt=Jt.current)==null||gt.removeEventListener("copy",dt)}},[Jt.current]);const Ht=Pt=>//i.test(Pt||"");return Rt.createElement(Rt.Fragment,null,qt&&Rt.createElement("div",{ref:Jt},xe),!qt&&!Ht(xe)&&Rt.createElement("div",{ref:Jt,style:ut({},ue),className:`${_t||""} ${pe?"disabled-fill":""} markdown-body ${nn.current}`,dangerouslySetInnerHTML:{__html:xe}}),!qt&&Ht(xe)&&Rt.createElement(It,{html:xe}),Rt.createElement(Ct.Z,{close:!0,data:de,type:de!=null&&de.length?Ie:"",style:ut({},oe),onClose:()=>se("")}))}},61398:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Xt}});var Rt=Gt(59301),yt=Gt(34604),Vt=Gt(11611),Xt=()=>{const[kt,Wt]=(0,Rt.useState)(""),[xt,Ot]=(0,Rt.useState)(0);let[Bt,Ct]=(0,Rt.useState)(),[bt,Tt]=(0,Rt.useState)();const[It,vt]=(0,Rt.useState)(!1),et=(0,Rt.useRef)("");(0,Rt.useEffect)(()=>yt.Z.subscribe("preview-image",Dt=>{Wt(Dt),console.log(Et.current),document.body.style.overflow="hidden"}),[]),(0,Rt.useEffect)(()=>(document.addEventListener("keydown",tt),()=>{document.removeEventListener("keydown",tt)}),[]),(0,Rt.useEffect)(()=>{et.current=kt},[kt]);function tt(Kt){Kt.keyCode==27&&et.current&&st()}function st(){document.body.style.overflow="auto",Ct(void 0),Tt(void 0),Ot(0),Wt("")}function rt(){Ot(xt+90)}function ut(){Bt=Et.current.width*1.1,bt=Et.current.height*1.1,Tt(bt),Ct(Bt)}function ct(){Bt=Et.current.width/1.1,bt=Et.current.height/1.1,Tt(bt),Ct(Bt)}const pt=(0,Rt.useRef)(),mt=(0,Rt.useRef)(),Et=(0,Rt.useRef)(),Ft=Kt=>{(Kt.nativeEvent.target===pt.current||Kt.nativeEvent.target===mt.current)&&st()};return Rt.createElement(Rt.Fragment,null,kt?Rt.createElement("div",null,Rt.createElement("div",{className:"preview-wrp-group",ref:mt},Rt.createElement(Vt.Z,{className:"image-preview",src:kt,style:{display:"none"},preview:{visible:!0,src:kt,onVisibleChange:Kt=>{Wt("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},53932:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{h:function(){return pt},Z:function(){return ct}});var Rt=Gt(59301),yt=Gt(57809),Vt=Gt(78241),Xt=Gt(3113),kt=Gt(89780),Wt=Gt.n(kt),xt=Gt(37036),Ot=Object.defineProperty,Bt=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,vt=(mt,Et,Ft)=>Et in mt?Ot(mt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Ft}):mt[Et]=Ft,et=(mt,Et)=>{for(var Ft in Et||(Et={}))Tt.call(Et,Ft)&&vt(mt,Ft,Et[Ft]);if(bt)for(var Ft of bt(Et))It.call(Et,Ft)&&vt(mt,Ft,Et[Ft]);return mt},tt=(mt,Et)=>Bt(mt,Ct(Et));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:Et})=>{const[Ft,Kt]=(0,Rt.useState)("python");function Dt(qt){Kt(ut[qt][1])}function _t(qt){mt(qt)}return Rt.createElement(Vt.default,tt(et({},rt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:_t,style:{width:500}}),Rt.createElement(Vt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Rt.createElement(yt.default,{getPopupContainer:qt=>qt.parentNode,onChange:Dt},Object.keys(ut).map(qt=>Rt.createElement(st,{key:qt,value:qt},ut[qt][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:Ft})),Rt.createElement("div",{className:"flex-container flex-end"},Rt.createElement(Xt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Rt.createElement(Xt.ZP,{type:"ghost",onClick:Et},"\u53D6\u6D88")))};function pt({value:mt,onChange:Et,mode:Ft,options:Kt={}}){const Dt=(0,Rt.useRef)(),[_t,qt]=(0,Rt.useState)();return(0,Rt.useEffect)(()=>{if(_t){let Ut=function(ue){const oe=ue.getValue();Et&&Et(oe)};return _t.on("change",Ut),()=>{_t.off("change",Ut)}}},[_t,Et]),(0,Rt.useEffect)(()=>{_t&&_t.setOption("mode",Ft)},[_t,Ft]),(0,Rt.useEffect)(()=>{_t&&(mt!==_t.getValue()||mt==="")&&setTimeout(()=>{_t.setValue(mt||"")},300)},[_t,mt]),(0,Rt.useEffect)(()=>{if(Dt.current&&!_t){const Ut=Wt().fromTextArea(Dt.current,et({mode:Ft,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Kt));qt(Ut)}},[Dt.current,_t]),Rt.createElement("div",{className:"my-codemirror-container"},Rt.createElement("textarea",{ref:Dt}))}},12290:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Xn}});var Rt=Gt(59301),yt=Gt(89780),Vt=Gt.n(yt),Xt=Gt(76374),kt=Gt(37036),Wt=Gt(6313),xt=Gt(25717),Ot=Gt(99498),Bt=Gt(25419),Ct=Gt(67549),bt=Gt(85149),Tt=({value:qe="",className:Qe,showTextOnly:we,showLines:gn,style:Pn={}})=>{const Ge=(0,Rt.useMemo)(()=>"",[qe]);return Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{dangerouslySetInnerHTML:{__html:Ge}}))},It=Gt(59301),vt=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ct=(qe,Qe,we)=>Qe in qe?vt(qe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:we}):qe[Qe]=we,pt=(qe,Qe)=>{for(var we in Qe||(Qe={}))rt.call(Qe,we)&&ct(qe,we,Qe[we]);if(st)for(var we of st(Qe))ut.call(Qe,we)&&ct(qe,we,Qe[we]);return qe},mt=(qe,Qe)=>et(qe,tt(Qe));let Et=[{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 Ft({onActionCallback:qe,title:Qe,icon:we,actionName:gn,className:Pn="",children:Ge}){function Me(){qe(gn)}return It.createElement("a",{title:Qe,className:Pn,onClick:Me},It.createElement("i",{className:`${we}`}),Ge)}var Kt=({watch:qe,showNullButton:Qe,showNullProgramButton:we,onActionCallback:gn,fullScreen:Pn,insertTemp:Ge,hidetoolBar:Me,extraUse:pn})=>{const Cn=[...Et,{title:`${qe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${qe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return It.createElement("ul",{className:"markdown-toolbar-container"},!Me&&Cn.map((on,$e)=>It.createElement("li",{key:$e},on.actionName?It.createElement(Ft,mt(pt({},on),{onActionCallback:gn})):It.createElement("span",{className:"v-line"}))),Qe?It.createElement("li",null,It.createElement(Ft,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:gn},It.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,we?It.createElement(It.Fragment,null,It.createElement("li",null,It.createElement(Ft,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:gn},It.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),It.createElement("li",null,It.createElement(Ft,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:gn},It.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ge&&It.createElement("li",null,It.createElement(Ft,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ge}`,onActionCallback:gn},It.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),pn&&It.createElement("li",null,pn),It.createElement("li",{className:"btn-full-screen"},It.createElement(Ft,{icon:`${Pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:gn})))},Dt=Gt(79346),_t=Gt(78241),qt=Gt(92832),Ut=Gt(3113),ue=Object.defineProperty,oe=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Ke=(qe,Qe,we)=>Qe in qe?ue(qe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:we}):qe[Qe]=we,fe=(qe,Qe)=>{for(var we in Qe||(Qe={}))Oe.call(Qe,we)&&Ke(qe,we,Qe[we]);if(ve)for(var we of ve(Qe))pe.call(Qe,we)&&Ke(qe,we,Qe[we]);return qe},Qt=(qe,Qe)=>oe(qe,Pe(Qe));const ee={labelCol:{span:4},wrapperCol:{span:20}};var ae=({callback:qe,onCancel:Qe})=>{function we(gn){qe(gn)}return Rt.createElement(_t.default,Qt(fe({},ee),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:we,style:{width:500}}),Rt.createElement(_t.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Rt.createElement(qt.default,null)),Rt.createElement(_t.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Rt.createElement(qt.default,null)),Rt.createElement("div",{className:"flex-container flex-end"},Rt.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Rt.createElement(Ut.ZP,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},de=Gt(53932),se=Gt(28451),Ie=Gt(43418),De=Gt(95237),en=Gt(16406),Ue=Gt(59301),nn=({callback:qe,onCancel:Qe})=>{const we=document.createElement("canvas"),gn=we.getContext("2d");we.width=1e3,we.height=800,gn.fillStyle="#ffffff",gn.fillRect(0,0,we.width,we.height);const Pn=we.toDataURL("image/png");return Ue.createElement(Ie.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ue.createElement(De.Z,{style:{height:"100vh"}},Ue.createElement(en.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Pn,visible:!0,title:String(Date.now())},onOk:Ge=>{qe({src:Ge.url})},onClose:Qe})))},Ne=Gt(12378);function Be(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Be,go.CommandHandler),Be.prototype.canAlignSelection=function(){var qe=this.diagram;return!(qe===null||qe.isReadOnly||qe.isModelReadOnly||qe.selection.count<2)},Be.prototype.alignLeft=function(){var qe=this.diagram;qe.startTransaction("aligning left");var Qe=1/0;qe.selection.each(function(we){we instanceof go.Link||(Qe=Math.min(we.position.x,Qe))}),qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(Qe,we.position.y))}),qe.commitTransaction("aligning left")},Be.prototype.alignRight=function(){var qe=this.diagram;qe.startTransaction("aligning right");var Qe=-1/0;qe.selection.each(function(we){if(!(we instanceof go.Link)){var gn=we.actualBounds.x+we.actualBounds.width;Qe=Math.max(gn,Qe)}}),qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(Qe-we.actualBounds.width,we.position.y))}),qe.commitTransaction("aligning right")},Be.prototype.alignTop=function(){var qe=this.diagram;qe.startTransaction("alignTop");var Qe=1/0;qe.selection.each(function(we){we instanceof go.Link||(Qe=Math.min(we.position.y,Qe))}),qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.position.x,Qe))}),qe.commitTransaction("alignTop")},Be.prototype.alignBottom=function(){var qe=this.diagram;qe.startTransaction("aligning bottom");var Qe=-1/0;qe.selection.each(function(we){if(!(we instanceof go.Link)){var gn=we.actualBounds.y+we.actualBounds.height;Qe=Math.max(gn,Qe)}}),qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.actualBounds.x,Qe-we.actualBounds.height))}),qe.commitTransaction("aligning bottom")},Be.prototype.alignCenterX=function(){var qe=this.diagram,Qe=qe.selection.first();if(Qe){qe.startTransaction("aligning Center X");var we=Qe.actualBounds.x+Qe.actualBounds.width/2;qe.selection.each(function(gn){gn instanceof go.Link||gn.move(new go.Point(we-gn.actualBounds.width/2,gn.actualBounds.y))}),qe.commitTransaction("aligning Center X")}},Be.prototype.alignCenterY=function(){var qe=this.diagram,Qe=qe.selection.first();if(Qe){qe.startTransaction("aligning Center Y");var we=Qe.actualBounds.y+Qe.actualBounds.height/2;qe.selection.each(function(gn){gn instanceof go.Link||gn.move(new go.Point(gn.actualBounds.x,we-gn.actualBounds.height/2))}),qe.commitTransaction("aligning Center Y")}},Be.prototype.alignColumn=function(qe){var Qe=this.diagram;Qe.startTransaction("align Column"),qe===void 0&&(qe=0),qe=parseFloat(qe);var we=new Array;Qe.selection.each(function(pn){pn instanceof go.Link||we.push(pn)});for(var gn=0;gn0){for(var pn=Ge.elt(Me-1);pn!==null&&pn.isTreeExpanded&&!pn.isTreeLeaf;){var Cn=this._sortTreeChildrenByY(pn);pn=Cn.last()}pn!==null&&qe.select(pn)}else qe.select(Pn)}}else if(we.key==="Down")if(Qe.isTreeExpanded&&!Qe.isTreeLeaf){var gn=this._sortTreeChildrenByY(Qe).first();gn!==null&&qe.select(gn)}else for(;Qe!==null;){var Pn=Qe.findTreeParentNode();if(Pn===null)break;var Ge=this._sortTreeChildrenByY(Pn),Me=Ge.indexOf(Qe);if(MeGe.y?1:Pn.xGe.x?1:0}),Qe},Be.prototype.copyToClipboard=function(qe){go.CommandHandler.prototype.copyToClipboard.call(this,qe),this._lastPasteOffset.set(this.pasteOffset)},Be.prototype.pasteFromClipboard=function(){var qe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(qe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),qe},Object.defineProperty(Be.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(qe){if(qe!=="move"&&qe!=="select"&&qe!=="scroll"&&qe!=="tree"&&qe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+qe);this._arrowKeyBehavior=qe}}),Object.defineProperty(Be.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(qe){if(!(qe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+qe);this._pasteOffset.set(qe)}});var je=Be,ze=Gt(74413),xe=Gt(43604),le=Gt(99064),Ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ce=Gt(24065),he=Gt(59301),Jt=(qe,Qe,we)=>new Promise((gn,Pn)=>{var Ge=Cn=>{try{pn(we.next(Cn))}catch(on){Pn(on)}},Me=Cn=>{try{pn(we.throw(Cn))}catch(on){Pn(on)}},pn=Cn=>Cn.done?gn(Cn.value):Promise.resolve(Cn.value).then(Ge,Me);pn((we=we.apply(qe,Qe)).next())});function Mt({onCancel:qe,callback:Qe}){let we=(0,Rt.useRef)(),gn=(0,Rt.useRef)(),Pn=(0,Rt.useRef)(),Ge=(0,Rt.useRef)(!1);const Me=(0,Rt.useRef)(!1),[pn,Cn]=(0,Rt.useState)(0);function on(){const Ee=Ne.bx.make,rn={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"};we.current=new Ne.S0(gn.current,{padding:20,grid:Ee(Ne.s_,"Grid",Ee(Ne.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ee(Ne.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Hn=>{var Jn=Hn.diagram.commandHandler.addTopLevelParts(Hn.diagram.selection,!0);Jn||Hn.diagram.currentTool.doCancel()},commandHandler:Ee(je),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Hn=>{var Jn=Hn.subject;Jn.location=Jn.location.copy().snapToGridPoint(Hn.diagram.grid.gridOrigin,Hn.diagram.grid.gridCellSize),setTimeout(()=>{Hn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Hn=>{var Jn=Hn.subject;setTimeout(()=>{Hn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Hn=>{var Jn=Hn.parameter.part;Jn.invalidateConnectedLinks();var ei=Hn.subject;Hn.diagram.toolManager.linkingTool.isForwards?ei.toNode.invalidateConnectedLinks():ei.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),we.current.nodeTemplate=Ee(Ne.NB,"Auto",{locationSpot:Ne.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ne.$u(120,60),minSize:new Ne.$u(40,40),resizable:!0,resizeCellSize:new Ne.$u(10,10),rotatable:!0},new Ne.KX("location","loc",Ne.E9.parse).makeTwoWay(Ne.E9.stringify),new Ne.KX("desiredSize","size",Ne.$u.parse).makeTwoWay(Ne.$u.stringify),Ee(Ne.bn,{name:"SHAPE",fill:rn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ne.z6.AllSides,toSpot:Ne.z6.AllSides},new Ne.KX("figure"),new Ne.KX("fill"),new Ne.KX("stroke","borderColor"),new Ne.KX("strokeWidth","thickness"),new Ne.KX("strokeDashArray","dash")),Ee(Ne.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ee(Ne.al,{margin:1,textAlign:"center",overflow:Ne.al.OverflowEllipsis,editable:!0},new Ne.KX("text").makeTwoWay(),new Ne.KX("stroke","color"))),we.current.nodeTemplate.toolTip=Ee("ToolTip",Ee(Ne.s_,"Vertical",{maxSize:new Ne.$u(200,NaN)},Ee(Ne.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ne.KX("text")),Ee(Ne.al,{font:"10pt sans-serif",textAlign:"center"},new Ne.KX("text","details"))));function wn(Hn,Jn){var ei=(ti,mi)=>{ti.handled=!0,ti.diagram.model.commit(Li=>{var gi=mi.part.adornedPart,ii=new Ne.E9().setRectSpot(gi.actualBounds,Hn);ii.subtract(gi.location),ii.scale(2,2),ii.x+=Math.sign(ii.x)*130,ii.y+=Math.sign(ii.y)*130,ii.add(gi.location),ii.snapToGridPoint(ti.diagram.grid.gridOrigin,ti.diagram.grid.gridCellSize);var Ai=Li.copyNodeData(gi.data);Li.setGroupKeyForNodeData(Ai,Li.getGroupKeyForNodeData(gi.data)),Li.addNodeData(Ai);var En={from:gi.key,to:Li.getKeyForNodeData(Ai)};Li.addLinkData(En);var tr=ti.diagram.findNodeForData(Ai);tr.location=ii,ti.diagram.select(tr),setTimeout(()=>{ti.diagram.commandHandler.editTextBlock()},20)})};return Ee(Ne.bn,{figure:Jn,alignment:Hn,alignmentFocus:Hn.opposite(),width:Hn.equals(Ne.z6.Top)||Hn.equals(Ne.z6.Bottom)?25:18,height:Hn.equals(Ne.z6.Top)||Hn.equals(Ne.z6.Bottom)?18:25,fill:"orange",stroke:rn.white,strokeWidth:4,mouseEnter:(ti,mi)=>mi.fill="dodgerblue",mouseLeave:(ti,mi)=>mi.fill="orange",isActionable:!0,click:ei,contextClick:ei})}function Bn(Hn){return Ee(Ne.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:(Jn,ei)=>ei.fill="dodgerblue",mouseLeave:(Jn,ei)=>ei.fill="orange",click:(Jn,ei)=>{Jn.diagram.commandHandler.showContextMenu(ei.part.adornedPart)}},Hn||{})}we.current.nodeTemplate.selectionAdornmentTemplate=Ee(Ne.uz,"Spot",Ee(Ne.Vm,{padding:10}),wn(Ne.z6.Top,"TriangleUp"),wn(Ne.z6.Left,"TriangleLeft"),wn(Ne.z6.Right,"TriangleRight"),wn(Ne.z6.Bottom,"TriangleDown"),Bn({alignment:new Ne.z6(.75,0)}));function Ye(Hn,Jn){return(ei,ti)=>{ei.handled=!0,ei.diagram.model.commit(mi=>{mi.set(ti.part.adornedPart.data,Hn,Jn)})}}function hn(Hn,Jn){return Jn||(Jn="color"),Ee(Ne.bn,{width:16,height:16,stroke:"lightgray",fill:Hn,margin:1,background:"transparent",mouseEnter:(ei,ti)=>ti.stroke="dodgerblue",mouseLeave:(ei,ti)=>ti.stroke="lightgray",click:Ye(Jn,Hn),contextClick:Ye(Jn,Hn)})}function Je(){return[Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",hn(rn.white,"fill"),hn(rn.beige,"fill"),hn(rn.extralightblue,"fill"),hn(rn.extralightred,"fill"))),Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",hn(rn.lightgray,"fill"),hn(rn.lightgreen,"fill"),hn(rn.lightblue,"fill"),hn(rn.lightred,"fill")))]}function an(){return[Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",hn(rn.black),hn(rn.green),hn(rn.blue),hn(rn.red))),Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",hn(rn.white),hn(rn.magenta),hn(rn.purple),hn(rn.orange)))]}function mn(Hn,Jn){return Jn||(Jn="thickness"),Ee(Ne.bn,"LineH",{width:16,height:16,strokeWidth:Hn,margin:1,background:"transparent",mouseEnter:(ei,ti)=>ti.background="dodgerblue",mouseLeave:(ei,ti)=>ti.background="transparent",click:Ye(Jn,Hn),contextClick:Ye(Jn,Hn)})}function ln(Hn,Jn){return Jn||(Jn="dash"),Ee(Ne.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Hn,margin:1,background:"transparent",mouseEnter:(ei,ti)=>ti.background="dodgerblue",mouseLeave:(ei,ti)=>ti.background="transparent",click:Ye(Jn,Hn),contextClick:Ye(Jn,Hn)})}function bn(){return[Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",mn(1),mn(2),mn(3),mn(4))),Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",ln(null),ln([2,4]),ln([4,4])))]}function yn(Hn,Jn){return Jn||(Jn="figure"),Ee(Ne.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Hn,margin:1,background:"transparent",mouseEnter:(ei,ti)=>ti.fill="dodgerblue",mouseLeave:(ei,ti)=>ti.fill="lightgray",click:Ye(Jn,Hn),contextClick:Ye(Jn,Hn)})}we.current.nodeTemplate.contextMenu=Ee("ContextMenu",Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",yn("Rectangle"),yn("RoundedRectangle"),yn("Ellipse"),yn("Diamond"))),Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",yn("Parallelogram2"),yn("ManualOperation"),yn("Procedure"),yn("Cylinder1"))),Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",yn("Terminator"),yn("CreateRequest"),yn("Document"),yn("TriangleDown"))),Je(),an(),bn()),we.current.groupTemplate=Ee(Ne.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ne.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Hn,Jn)=>{var ei=Jn.addMembers(Jn.diagram.selection,!0);ei||Jn.diagram.currentTool.doCancel()},avoidable:!1},new Ne.KX("location","loc",Ne.E9.parse).makeTwoWay(Ne.E9.stringify),Ee(Ne.s_,"Auto",{name:"BODY"},Ee(Ne.bn,{parameter1:10,fill:rn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ne.z6.AllSides,toSpot:Ne.z6.AllSides},new Ne.KX("fill"),new Ne.KX("stroke","color"),new Ne.KX("strokeWidth","thickness"),new Ne.KX("strokeDashArray","dash")),Ee(Ne.Vm,{background:"transparent",margin:20})),Ee(Ne.al,{alignment:Ne.z6.Top,alignmentFocus:Ne.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ne.KX("text"),new Ne.KX("stroke","color"))),we.current.groupTemplate.selectionAdornmentTemplate=Ee(Ne.uz,"Spot",Ee(Ne.s_,"Auto",Ee(Ne.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ee(Ne.Vm,{margin:1.5})),Bn({alignment:Ne.z6.TopRight,alignmentFocus:Ne.z6.BottomRight})),we.current.groupTemplate.contextMenu=Ee("ContextMenu",Je(),an(),bn()),we.current.linkTemplate=Ee(Ne.rU,{layerName:"Foreground",routing:Ne.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ne.KX("fromSpot","fromSpot",Ne.z6.parse),new Ne.KX("toSpot","toSpot",Ne.z6.parse),new Ne.KX("fromShortLength","dir",Hn=>Hn>=1?10:0),new Ne.KX("toShortLength","dir",Hn=>Hn>=1?10:0),new Ne.KX("points").makeTwoWay(),Ee(Ne.bn,{strokeWidth:2},new Ne.KX("stroke","color"),new Ne.KX("strokeWidth","thickness"),new Ne.KX("strokeDashArray","dash")),Ee(Ne.bn,{segmentIndex:0,segmentOffset:new Ne.E9(15,0),segmentOrientation:Ne.rU.OrientAlong,alignmentFocus:Ne.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ne.KX("fill","color"),new Ne.KX("visible","dir",Hn=>Hn===1)),Ee(Ne.bn,{segmentIndex:-1,segmentOffset:new Ne.E9(-10,6),segmentOrientation:Ne.rU.OrientPlus90,alignmentFocus:Ne.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ne.KX("fill","color"),new Ne.KX("visible","dir",Hn=>Hn>=1),new Ne.KX("width","thickness",Hn=>7+3*Hn),new Ne.KX("height","thickness",Hn=>7+3*Hn),new Ne.KX("segmentOffset","thickness",Hn=>new Ne.E9(-15,4+1.5*Hn))),Ee(Ne.bn,{segmentIndex:0,segmentOffset:new Ne.E9(15,-6),segmentOrientation:Ne.rU.OrientMinus90,alignmentFocus:Ne.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ne.KX("fill","color"),new Ne.KX("visible","dir",Hn=>Hn===2),new Ne.KX("width","thickness",Hn=>7+3*Hn),new Ne.KX("height","thickness",Hn=>7+3*Hn),new Ne.KX("segmentOffset","thickness",Hn=>new Ne.E9(-15,4+1.5*Hn))),Ee(Ne.al,{alignmentFocus:new Ne.z6(0,1,-4,0),editable:!0},new Ne.KX("text").makeTwoWay(),new Ne.KX("stroke","color"))),we.current.linkTemplate.selectionAdornmentTemplate=Ee(Ne.uz,Ee(Ne.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Tn(2)},new Ne.KX("pathPattern","thickness",Tn)),Bn({alignmentFocus:new Ne.z6(0,0,-6,-4)}));function Tn(Hn){return Ee(Ne.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Hn+4).toString()+" H3"})}function In(Hn){var Jn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Hn===0?Jn="M0 0 M16 16 M0 8 L16 8":Hn===2&&(Jn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ee(Ne.bn,{geometryString:Jn,margin:2,background:"transparent",mouseEnter:(ei,ti)=>ti.background="dodgerblue",mouseLeave:(ei,ti)=>ti.background="transparent",click:Ye("dir",Hn),contextClick:Ye("dir",Hn)})}function $n(Hn){var Jn=(ei,ti)=>{ei.handled=!0,ei.diagram.model.commit(mi=>{var Li=ti.part.adornedPart;mi.set(Li.data,Hn?"toSpot":"fromSpot",Ne.z6.stringify(Ne.z6.AllSides)),(Hn?Li.toNode:Li.fromNode).invalidateConnectedLinks()})};return Ee(Ne.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ei,ti)=>ti.background="dodgerblue",mouseLeave:(ei,ti)=>ti.background="transparent",click:Jn,contextClick:Jn})}function cn(Hn,Jn){var ei=0,ti=Ne.z6.RightSide;Hn.equals(Ne.z6.Top)?(ei=270,ti=Ne.z6.TopSide):Hn.equals(Ne.z6.Left)?(ei=180,ti=Ne.z6.LeftSide):Hn.equals(Ne.z6.Bottom)&&(ei=90,ti=Ne.z6.BottomSide),Jn||(ei-=180);var mi=(Li,gi)=>{Li.handled=!0,Li.diagram.model.commit(ii=>{var Ai=gi.part.adornedPart;ii.set(Ai.data,Jn?"toSpot":"fromSpot",Ne.z6.stringify(ti)),(Jn?Ai.toNode:Ai.fromNode).invalidateConnectedLinks()})};return Ee(Ne.bn,{alignment:Hn,alignmentFocus:Hn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ei,background:"transparent",mouseEnter:(Li,gi)=>gi.background="dodgerblue",mouseLeave:(Li,gi)=>gi.background="transparent",click:mi,contextClick:mi})}we.current.linkTemplate.contextMenu=Ee("ContextMenu",an(),bn(),Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",In(0),In(1),In(2))),Ee("ContextMenuButton",Ee(Ne.s_,"Horizontal",Ee(Ne.s_,"Spot",$n(!1),cn(Ne.z6.Top,!1),cn(Ne.z6.Left,!1),cn(Ne.z6.Right,!1),cn(Ne.z6.Bottom,!1)),Ee(Ne.s_,"Spot",{margin:new Ne.Zt(0,0,0,2)},$n(!0),cn(Ne.z6.Top,!0),cn(Ne.z6.Left,!0),cn(Ne.z6.Right,!0),cn(Ne.z6.Bottom,!0)))));const ai=`{ "class": "GraphLinksModel", "nodeDataArray": [ {"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3}, {"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"}, {"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"}, {"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"}, {"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"}, {"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3}, {"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22}, {"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22}, {"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"} ], "linkDataArray": [ {"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1}, {"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1}, {"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]}, {"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2}, {"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"}, {"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1}, {"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]} ]}`;var Ci=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function hi(Hn){return console.log("shapeName:",Hn),Ci.indexOf(Hn)>=0}var fn=new Ne.YI(Pn.current,{maxSelectionCount:1,linkTemplate:Ee(Ne.rU,{locationSpot:Ne.z6.Center,selectionAdornmentTemplate:Ee(Ne.uz,"Link",{locationSpot:Ne.z6.Center},Ee(Ne.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ee(Ne.bn,{toArrow:"Standard",stroke:null}))},{routing:Ne.rU.AvoidsNodes,curve:Ne.rU.JumpOver,corner:5,toShortLength:4},new Ne.KX("points"),Ee(Ne.bn,{isPanelMain:!0,strokeWidth:2}),Ee(Ne.bn,{toArrow:"Standard",stroke:null})),model:new Ne.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ne.bn.getFigureGenerators().toArray().map(Hn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Hn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return we.current.addDiagramListener("TextEdited",function(Hn){var Jn;const ei=Hn.subject.part;var ti=(Jn=document.activeElement)==null?void 0:Jn.value;typeof ti=="string"&&ti.trim()===""&&we.current.model.commit(function(mi){mi.set(ei.data,"text","\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}),fn.nodeTemplate=Ee(Ne.NB,"Auto",{locationSpot:Ne.z6.Center},new Ne.KX("location","location",Ne.E9.parse).makeTwoWay(Ne.E9.stringify),Ee(Ne.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 Ne.KX("stroke").makeTwoWay(),new Ne.KX("fill").makeTwoWay(),new Ne.KX("figure")),Ee(Ne.al,{margin:new Ne.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ne.$u(16,16),maxSize:new Ne.$u(10,NaN),textAlign:"center",editable:!0},new Ne.KX("key").makeTwoWay())),setTimeout(()=>{we.current.grid=Ee(Ne.s_,"Grid",Ee(Ne.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ee(Ne.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),we.current.grid.visible=!0,we.current.grid.gridCellStroke="darkgray",we.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=we.current,we.current}const $e=()=>Jt(this,null,function*(){var Ee,rn=we.current.makeImage();const wn=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:rn.src,file_data:JSON.stringify({login:(Ee=(0,ce.eY)())==null?void 0:Ee.login,data:JSON.parse(we.current.model.toJson())})}});Qe({src:wn.url})});return(0,Rt.useEffect)(()=>(setTimeout(()=>{on()},500),Cn(pn+1),()=>{we.current=null}),[]),he.createElement("div",{ref:Me,className:Ge.current?`${Ae.maxH60} body-overflow-initial`:"body-overflow-initial"},he.createElement(Ie.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!pn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:he.createElement(De.Z,null,he.createElement(xe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),he.createElement(xe.Z,{onClick:()=>{var Ee,rn,wn=we.current.selection.first();if(Ge.current=!Ge.current,document.activeElement&&wn){let Bn=(rn=(Ee=document.activeElement)==null?void 0:Ee.value)==null?void 0:rn.trim();typeof Bn=="string"&&we.current.model.commit(function(Ye){Ye.set(wn.data,"text",Bn||"\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}Cn(pn+1)}},he.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:qe},he.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ae.flowChartWrp},he.createElement("div",{style:{display:"flex",height:"100%"}},he.createElement("div",{style:{width:"300px",height:"100%"}},he.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),he.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ae.myPaletteDiv,ref:Pn})),he.createElement("div",{style:{flex:1,position:"relative"}},he.createElement("div",{ref:gn,style:{height:"80vh"}}))),he.createElement("div",{className:"tr"},he.createElement(Ut.ZP,{size:"large",onClick:$e,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var At=Mt,Ht=Gt(5112),Pt=Gt(5871);const dt=Ht.ZP.Group,gt={margin:"0 8px"};var jt=({callback:qe,onCancel:Qe})=>{function we(gn){qe(gn)}return Rt.createElement(_t.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:we},Rt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Rt.createElement("span",{style:gt},"\u5355\u5143\u683C\u6570\uFF1A"),Rt.createElement("span",{style:gt},"\u884C\u6570"),Rt.createElement(_t.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Rt.createElement(Pt.Z,null)),Rt.createElement("span",{style:gt},"\u5217\u6570"),Rt.createElement(_t.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Rt.createElement(Pt.Z,null))),Rt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Rt.createElement("span",{style:gt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Rt.createElement(_t.default.Item,{name:"align"},Rt.createElement(dt,null,Rt.createElement(Ht.ZP,{value:"default"},Rt.createElement("i",{className:"fa fa-align-justify"})),Rt.createElement(Ht.ZP,{value:"left"},Rt.createElement("i",{className:"fa fa-align-left"})),Rt.createElement(Ht.ZP,{value:"center"},Rt.createElement("i",{className:"fa fa-align-center"})),Rt.createElement(Ht.ZP,{value:"right"},Rt.createElement("i",{className:"fa fa-align-right"}))))),Rt.createElement("div",{className:"flex-container flex-end"},Rt.createElement(Ut.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Rt.createElement(Ut.ZP,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},re=Gt(78673),Zt=Gt(80727),Se=Gt.n(Zt),tn=(0,Rt.forwardRef)(({use3d:qe,width:Qe,height:we,callback:gn,showSaveButton:Pn},Ge)=>{const Me=(0,Rt.useRef)(),pn=(0,Rt.useRef)(),[Cn,on]=(0,Rt.useState)(!1),$e=(0,Rt.useRef)({id:Me,appName:"graphing",width:Qe||1e3,height:we||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Rt.useEffect)(()=>{pn.current=new(Se())($e.current,!0),window.onload=function(){pn.current.inject("applet_container")}},[]);const Ee=()=>{var rn=window.ggbApplet.getPNGBase64(1,!0,72);return gn&&gn(rn),rn};return(0,Rt.useEffect)(()=>{$e.current.appName=Cn?"3D":"graphing",pn.current.inject("applet_container")},[Cn]),(0,Rt.useEffect)(()=>{on(qe)},[qe]),(0,Rt.useImperativeHandle)(Ge,()=>({getImgData:Ee})),Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Me}),Rt.createElement(De.Z,{align:"middle"},Rt.createElement(xe.Z,{flex:1},Rt.createElement(re.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cn,onChange:rn=>on(rn)})),Rt.createElement(xe.Z,null,Rt.createElement(Ut.ZP,{size:"large",onClick:Ee,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Te=Gt(41588),Re=Gt(8591);const dn="link",xn="upload-image",Mn="add-flowchart",zn="draw-image",Zn="add-flowchart",Gn="code-block",oi="add-table",vi="------------",pi={default:vi,left:`:${vi}`,center:`:${vi}:`,right:`${vi}:`};var yi=Gt(58856);function Bi(){}let ki=0;const Ei=1e4,zi="\u2581",fi="@\u2581\u2581@",te="@\u2581@",Wi=` **\u6A21\u677F\u6807\u9898** \u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Hi=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Vi(qe){return/^\d+$/.test(qe)?`${qe}px`:qe}const Ar=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xr={[Ar+"-B"]:"bold",[Ar+"-I"]:"italic"},Qn={[dn]:"\u6DFB\u52A0\u94FE\u63A5",[Gn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[xn]:"\u6DFB\u52A0\u56FE\u7247",[zn]:"\u6DFB\u52A0\u753B\u56FE",[Mn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[oi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Xn=({defaultValue:qe="",onChange:Qe,width:we="100%",height:gn=400,miniToolbar:Pn=!1,isFocus:Ge=!1,watch:Me,insertTemp:pn,mode:Cn="markdown",id:on="markdown-editor-id",showResizeBar:$e=!1,noStorage:Ee=!1,showNullButton:rn=!1,showNullProgramButton:wn=!1,hidetoolBar:Bn=!1,fullScreen:Ye=!1,onBlur:hn,onCMBeforeChange:Je,onFullScreen:an,className:mn="",disablePaste:ln=!1,disabled:bn=!1,disabledFill:yn=!1,placeholder:Tn="",values:In="",extraUse:$n})=>{const[cn,ai]=(0,Rt.useState)(null),[Ci,hi]=(0,Rt.useState)(qe),[fn,Hn]=(0,Rt.useState)(Me),[Jn,ei]=(0,Rt.useState)(Ye),[ti,mi]=(0,Rt.useState)(""),[Li,gi]=(0,Rt.useState)(0),[ii,Ai]=(0,Rt.useState)(gn),[En,tr]=(0,Rt.useState)(!1),[An,Mi]=(0,Rt.useState)(0),[Pr,$i]=(0,Rt.useState)(0),Mr=(0,Rt.useRef)(),yr=(0,Rt.useRef)(),xi=(0,Rt.useRef)(),di=(0,Rt.useRef)();(0,Rt.useEffect)(()=>{const wi=window.scrollY||window.pageYOffset;hi(In),cn==null||cn.setValue(In),window.scrollTo(0,wi)},[In]),(0,Rt.useEffect)(()=>{an==null||an(Jn)},[Jn]),(0,Rt.useEffect)(()=>{if(Mr.current){let wi=function(Un,Fi){var fr;if(ln){Fi.preventDefault();return}const Gr=Fi.clipboardData;if(Gr){const Wr=Gr.types.toString(),Zr=Gr.items;if(Wr==="Files"||Gr.types.indexOf("Files")>-1){if(Fi.preventDefault(),Cn=="stex")return;try{let $r=Zr[1];((fr=Zr[0])==null?void 0:fr.kind)==="file"&&($r=Zr[0]);const to=$r.getAsFile(),Xo=to.name.split(".").pop();(0,se.I)(to,mo=>{var ko,Sn,vo;mo.id?((ko=to==null?void 0:to.type)==null?void 0:ko.indexOf("image"))>-1?Pi.replaceSelection(``):((Sn=to==null?void 0:to.type)==null?void 0:Sn.indexOf("video"))>-1?Pi.replaceSelection(``):((vo=to==null?void 0:to.type)==null?void 0:vo.indexOf("pdf"))>-1?Pi.replaceSelection(`${to.name}`):Hi.includes(Xo)?Pi.replaceSelection(`${to.name}`):Pi.replaceSelection(`[${to.name}](/api/attachments/${mo.id}?type=${mo.content_type})`):(mo==null?void 0:mo.status)===401&&(document.location.href="/user/login")})}catch($r){Re.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pi=Vt().fromTextArea(Mr.current,{mode:Cn,lineNumbers:!Pn,lineWrapping:!0,value:qe,autoCloseTags:!0,autoCloseBrackets:!0});return Pi.on("keyup",function(Un,Fi){Fi.keyCode===8&&(Un.getValue()==""?Pi.setOption("placeholder",Tn):Pi.setOption("placeholder",null))}),Pi.on("keydown",function(Un,Fi){if(Fi.keyCode===8){var fr=Zi(Un);fr&&Fi.preventDefault()}}),Ge&&Pi.focus(),Pi.on("paste",wi),bn&&Pi.on("beforeChange",function(Un,Fi){(Fi.origin==="paste"||Fi.origin==="+input")&&Fi.cancel()}),ai(Pi),()=>{Pi.off("paste",wi)}}},[]);const Yi=(0,Rt.useCallback)(()=>{if(yr.current)try{}catch(wi){console.log(wi,"---- to set md editor body height")}},[ii,yr,Jn]);(0,Rt.useEffect)(()=>{function wi(){let Pi=new Xt.Z(Un=>{for(let Fi of Un)(Fi.target.offsetHeight>0||Fi.target.offsetWidth>0)&&(Yi(),cn.setSize("100%","100%"),cn.refresh())});return Pi.observe(Mr.current.parentElement),Pi}if(cn){const Pi=wi();return()=>{var Un,Fi;(Un=Mr.current)!=null&&Un.parentElement&&Pi.unobserve((Fi=Mr.current)==null?void 0:Fi.parentElement)}}},[cn,Yi]),(0,Rt.useEffect)(()=>{if(cn){let wi=[];for(const[Pi,Un]of Object.entries(xr)){let Fi={[Pi]:()=>{Yn(Un)}};wi.push(Fi),cn.addKeyMap(Fi)}return()=>{for(let Pi of wi)cn.removeKeyMap(Pi)}}},[cn]),(0,Rt.useEffect)(()=>{Ye!==Jn&&ei(Ye)},[Ye]),(0,yi.Z)(()=>{if(!Ee&&Li>0){let wi=new Date().getTime(),Pi=window.sessionStorage.getItem(on);wi>=Li+Ei&&(!Pi||Pi!==Ci)&&(window.sessionStorage.setItem(on,Ci),tr(!0))}},Ei),(0,Rt.useEffect)(()=>{Hn(Me)},[cn,Me]),(0,Rt.useEffect)(()=>{cn&&Ge&&cn.focus()},[cn,Ge]),(0,Rt.useEffect)(()=>{if(fn&&cn){let wi=function(Un){let Fi=Un.target;if(di.current){let fr=Fi.scrollTop/Fi.scrollHeight;di.current.scrollTop=di.current.scrollHeight*fr}};const Pi=cn.getScrollerElement();return Pi.addEventListener("scroll",wi),()=>{Pi.removeEventListener("scroll",wi)}}},[cn,fn]),(0,Rt.useEffect)(()=>{if(cn&&Je){let wi=function(Pi,Un){Je(Pi,Un)};return cn.on("beforeChange",wi),()=>{cn.off("beforeChange",wi)}}},[cn,Je]),(0,Rt.useEffect)(()=>{if(cn&&hn){let wi=function(){hn(cn.getValue())};return cn.on("blur",wi),()=>{cn.off("blur",wi)}}},[cn,hn]);function Zi(wi,Pi){var Un=wi.getDoc(),Fi=Un.getCursor(),fr=Un.getLine(Fi.line),Gr=fr.charAt(Fi.ch-1),Wr=fr.lastIndexOf("@\u2581@",Fi.ch),Zr=fr.lastIndexOf("@\u2581\u2581@",Fi.ch),$r=Wr>Zr?Wr:Zr,to=Wr>Zr?3:4;if(fi.indexOf(Gr)===-1)return null;if(console.log("change1:",Pi,wi,fr,Fi,$r,Wr,Zr,Gr),$r>=0&&Fi.ch-$r<5){var Xo=$r+to;return Un.replaceRange("",{line:Fi.line,ch:$r},{line:Fi.line,ch:Xo}),{line:Fi.line,ch:Xo}}return null}(0,Rt.useEffect)(()=>{if(cn){let wi=function(Pi,Un){const Fi=Pi.getValue();hi(Fi),gi(new Date().getTime()),Pi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Qe&&(wn?Qe(Fi,Oi(Fi)):Qe(Fi))};return cn.on("change",wi),()=>{cn.off("change",wi)}}},[cn,Qe]),(0,Rt.useEffect)(()=>{if(cn)if(qe==null)cn.setValue(""),hi("");else{const wi=window.scrollY||window.pageYOffset;qe!==cn.getValue()&&(cn.setValue(qe),hi(qe),cn.setCursor(bn?1:cn.lineCount(),0),window.scrollTo(0,wi))}},[cn,qe]);const Yn=(0,Rt.useCallback)(wi=>{const Pi=cn.getCursor(),Un=cn.getSelection();let Fi=Un.split(` `);switch(wi){case"bold":return cn.replaceSelection("**"+Un+"**"),Un===""&&cn.setCursor(Pi.line,Pi.ch+2),cn.focus();case"italic":return cn.replaceSelection("*"+Un+"*"),Un===""&&cn.setCursor(Pi.line,Pi.ch+1),cn.focus();case"code":return cn.replaceSelection("`"+Un+"`"),Un===""&&cn.setCursor(Pi.line,Pi.ch+1),cn.focus();case"inline-latex":return mi("inline-latex"),cn.focus();case"latex":return cn.replaceSelection("```latex\n"+Un+"\n```"),cn.setCursor(Pi.line+1,Un.length+1),cn.focus();case"line-break":return cn.replaceSelection(`
`),cn.focus();case"list-ul":return Un===""?cn.replaceSelection("- "+Un):cn.replaceSelection(Fi.map(fr=>fr===""?"":`- ${fr}`).join(` `)),cn.focus();case"list-ol":return Un===""?cn.replaceSelection("1. "+Un):cn.replaceSelection(Fi.map((fr,Gr)=>fr===""?"":`${Gr+1}. ${fr}`).join(` `)),cn.focus();case"add-null-ch":return Un===""&&cn.setCursor(Pi.line,Pi.ch),cn.replaceSelection(zi),cn.focus();case"add-signal":return Un===""&&cn.setCursor(Pi.line,Pi.ch),cn.replaceSelection(te),cn.focus();case"add-multiple":return Un===""&&cn.setCursor(Pi.line,Pi.ch),cn.replaceSelection(fi),cn.focus();case"inster-template-1":return Un===""&&cn.setCursor(Pi.line,Pi.ch),cn.replaceSelection(Wi),cn.focus();case"eraser":return cn.setValue(""),cn.focus();case"trigger-watch":return Hn(!fn),cn.focus();case"trigger-full-screen":return ei(!Jn),cn.focus();case dn:mi(dn);return;case Gn:mi(Gn);return;case xn:mi(xn);return;case zn:mi(zn);return;case"maths-latex":mi("maths-latex");return;case Mn:mi(Mn);return;case oi:mi(oi);return;default:throw new Error}},[cn,fn,Jn]),ye=(0,Rt.useCallback)((wi,Pi)=>{var Un,Fi,fr,Gr,Wr,Zr;switch(mi(""),ti){case dn:const{title:ko,link:Sn}=wi;return cn.replaceSelection(`[${ko}](${Sn})`),cn.focus();case Gn:const{language:vo,content:Pl}=wi;return cn.replaceSelection(["```"+vo,Pl,"```"].join(` `)),cn.focus();case"maths-latex":for(var $r=atob(wi),to=new Uint8Array($r.length),Xo=0;Xo<$r.length;Xo++)to[Xo]=$r.charCodeAt(Xo);var mo=new Blob([to],{type:"image/png"});(0,se.I)(mo,Ui=>{Ui.id?cn.replaceSelection(`![,](/api/attachments/${Ui.id}?type=${Ui.content_type})`):(Ui==null?void 0:Ui.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":cn.replaceSelection("`$$"+wi+"$$`");break;case xn:case zn:case Zn:const{src:Fs,alt:kr}=wi,mr=Pi,Ir=(fr=(Fi=(Un=mr==null?void 0:mr.name)==null?void 0:Un.split("."))==null?void 0:Fi.pop)==null?void 0:fr.call(Fi);return((Gr=mr==null?void 0:mr.type)==null?void 0:Gr.indexOf("image"))>-1||!(mr!=null&&mr.type)?mr!=null&&mr.align||mr!=null&&mr.width?cn.replaceSelection(`

${kr||

`):cn.replaceSelection(`${kr||`):((Wr=mr==null?void 0:mr.type)==null?void 0:Wr.indexOf("video"))>-1?cn.replaceSelection(``):((Zr=mr==null?void 0:mr.type)==null?void 0:Zr.indexOf("pdf"))>-1?cn.replaceSelection(`${mr.name}`):Hi.includes(Ir)?cn.replaceSelection(`${mr.name}`):cn.replaceSelection(`[${mr.name}](${Fs})`),cn.focus();case oi:const{row:Ji,col:hr,align:jr}=wi;let yo=` `;for(let Ui=0;Ui{switch(ti){case dn:return Rt.createElement(ae,{callback:ye,onCancel:ir});case Gn:return Rt.createElement(de.Z,{callback:ye,onCancel:ir});case xn:return Rt.createElement(se.Z,{callback:ye,onCancel:ir});case Mn:return Rt.createElement(At,{callback:ye,onCancel:ir});case oi:return Rt.createElement(jt,{callback:ye,onCancel:ir});case"maths-latex":return Rt.createElement(tn,{showSaveButton:!0,callback:ye});case"inline-latex":return Rt.createElement(Te.Z,{showSaveButton:!0,callback:ye});default:return null}},[ti]);function ir(){mi("")}(0,Rt.useEffect)(()=>{if(xi.current){let wi=function(Wr){fr=!0,Gr=Wr.pageY},Pi=function(){fr=!1},Un=function(Wr){if(fr){let Zr=Wr.pageY-Gr;Zr<0&&(Zr=0),Zr>300&&(Zr=300);let $r=gn+Zr+"px";Ai($r)}},Fi=xi.current,fr=!1,Gr=0;return Fi.addEventListener("mousedown",wi),document.addEventListener("mousemove",Un),document.addEventListener("mouseup",Pi),()=>{Fi.removeEventListener("mousedown",wi),document.removeEventListener("mousemove",Un),document.removeEventListener("mouseup",Pi)}}},[cn,xi]),(0,Rt.useEffect)(()=>{Ai(gn)},[gn]);const _i=Vi(we),dr=Vi(ii),Nr={width:_i,height:dr},Di=(0,Rt.useMemo)(()=>{if(Li){let wi=new Date(Li),Pi=wi.getHours(),Un=wi.getMinutes(),Fi=wi.getSeconds();return Pi=Pi<10?"0"+Pi:Pi,Un=Un<10?"0"+Un:Un,Fi=Fi<10?"0"+Fi:Fi,`${Pi}:${Un}:${Fi}`}return 0},[Li]),Oi=wi=>{const Pi=[];if(wn){let Un=-1;wi=wi.replace(/(@▁▁@|@▁@)/g,function(Fi,fr,Gr){Pi.push({multiLine:Fi!==te})})}return Pi};function er(){window.sessionStorage.removeItem(on),tr(!1),gi(0)}function ji(){tr(!1),gi(0),cn.setValue(window.sessionStorage.getItem(on))}(0,Rt.useEffect)(()=>{Qn[ti]&&ti!==zn&&ti!==Mn&&setTimeout(()=>{const wi=document.getElementsByClassName("markdown-popup-form")[0],Pi=window.innerWidth/2-wi.offsetWidth/2,Un=window.innerHeight/2-wi.offsetHeight/2;Mi(Pi),$i(Un)},0)},[ti]);const sr=wi=>{wi.preventDefault();const Pi=wi.clientX-An,Un=wi.clientY-Pr;document.body.onmousemove=Fi=>{let fr=Fi.clientX-Pi,Gr=Fi.clientY-Un;const Wr=document.getElementsByClassName("markdown-popup-form")[0],Zr=window.innerWidth-Wr.offsetWidth,$r=window.innerHeight-Wr.offsetHeight;fr=Math.max(0,Math.min(fr,Zr)),Gr=Math.max(0,Math.min(Gr,$r)),wr(Fi.clientX,Fi.clientY,Pi,Un)&&(Mi(fr),$i(Gr))},document.body.onmouseup=function(){document.body.onmousemove=null}},wr=(wi,Pi,Un,Fi)=>{const fr=document.body.clientHeight,Gr=document.body.clientWidth;return wi<20&&Un>wi||wi>Gr-20&&UnPi||Pi>fr-20&&Fi_t in Dt?bt(Dt,_t,{enumerable:!0,configurable:!0,writable:!0,value:qt}):Dt[_t]=qt,rt=(Dt,_t)=>{for(var qt in _t||(_t={}))et.call(_t,qt)&&st(Dt,qt,_t[qt]);if(vt)for(var qt of vt(_t))tt.call(_t,qt)&&st(Dt,qt,_t[qt]);return Dt},ut=(Dt,_t)=>Tt(Dt,It(_t));const{useForm:ct}=Rt.default,pt={width:280,marginRight:10},mt={labelCol:{span:5},wrapperCol:{span:19}};var Et=({callback:Dt,onCancel:_t})=>{const[qt]=ct();let Ut=(0,Bt.useRef)();function ue(ve){Ut.current.width=qt.getFieldValue("width"),Ut.current.align=qt.getFieldValue("align"),Dt(ve,Ut.current)}function oe(ve,Oe){if(ve.status===-1){yt.ZP.error(ve.message);return}qt.setFieldsValue({src:`/api/attachments/${ve.id}`,type:Oe.type})}function Pe(ve){let Oe=ve.target.files[0];Ut.current=Oe,Kt(Oe,oe)}return Ct.createElement(Rt.default,ut(rt({form:qt},mt),{className:"upload-image-panel",onFinish:ue,style:{width:470,overflow:"hidden"}}),Ct.createElement(Rt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ct.createElement("div",{className:"flex-container"},Ct.createElement(Rt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ct.createElement(Vt.default,{style:pt})),Ct.createElement(Ft,{onFileChange:Pe}))),Ct.createElement(Rt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ct.createElement(Vt.default,{style:{width:264}})),Ct.createElement(Rt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ct.createElement(Xt.Z,null,Ct.createElement(Rt.default.Item,{name:"width",style:{margin:0}},Ct.createElement(kt.Z,{style:{width:264}})),Ct.createElement("span",{className:"ml8"},"%"))),Ct.createElement(Rt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ct.createElement(Wt.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ct.createElement("aside",null,Ct.createElement(Rt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ct.createElement(xt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ct.createElement(xt.ZP,{type:"default",onClick:_t},"\u53D6\u6D88"))))};function Ft({onFileChange:Dt}){return Ct.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ct.createElement("input",{type:"file",onChange:Dt}))}function Kt(Dt,_t){if(!Dt)throw new String("\u6CA1\u6709\u6587\u4EF6");let qt=new FormData;qt.append("editormd-image-file",Dt),qt.append("file_param_name","editormd-image-file"),qt.append("byxhr","true");var Ut=new window.XMLHttpRequest;Ut.withCredentials=!0,Ut.addEventListener("load",function(ue){_t(JSON.parse(ue.target.responseText),Dt)},!1),Ut.addEventListener("error",function(ue){console.error(ue)},!1),Ut.open("POST",`${Ot.KI}/api/attachments.json`),Ut.send(qt)}},79346:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Vt}});var Rt=Gt(59301),yt=Gt(4676);class Vt extends Rt.Component{constructor(kt){super(kt);const Wt=window.document;this.node=Wt.createElement("div"),Wt.body.appendChild(this.node)}render(){const{children:kt}=this.props;return(0,yt.createPortal)(kt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23954:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{SV:function(){return Jt},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"]},Xt={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"]},kt={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(53184),Bt=Gt.n(Ot),Ct=Object.defineProperty,bt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(Mt,At,Ht)=>At in Mt?Ct(Mt,At,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[At]=Ht,st=(Mt,At)=>{for(var Ht in At||(At={}))vt.call(At,Ht)&&tt(Mt,Ht,At[Ht]);if(It)for(var Ht of It(At))et.call(At,Ht)&&tt(Mt,Ht,At[Ht]);return Mt},rt=(Mt,At)=>bt(Mt,Tt(At)),ut=(Mt,At,Ht)=>new Promise((Pt,dt)=>{var gt=Zt=>{try{re(Ht.next(Zt))}catch(Se){dt(Se)}},jt=Zt=>{try{re(Ht.throw(Zt))}catch(Se){dt(Se)}},re=Zt=>Zt.done?Pt(Zt.value):Promise.resolve(Zt.value).then(gt,jt);re((Ht=Ht.apply(Mt,At)).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,At)=>At.map(Ht=>({label:Ht,kind:Mt.languages.CompletionItemKind.Keyword,insertText:Ht})),mt=Mt=>Object.keys(ct.tables).map(At=>({label:At,kind:Mt.languages.CompletionItemKind.Variable,insertText:At})),Et=(Mt,At)=>{const Ht=ct.tables[Mt];return Ht?Ht.map(Pt=>({label:Pt,kind:At.languages.CompletionItemKind.Field,insertText:Pt})):[]};function Ft(Mt,At,Ht,Pt,dt){let gt=At.getWordUntilPosition(Ht),jt={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:jt}));return dt.map(Zt=>{re.push(rt(st({},Zt),{range:jt}))}),re}var Kt=Mt=>{ct.languages.map(dt=>(Mt.languages.registerDocumentFormattingEditProvider(dt,{provideDocumentFormattingEdits(gt,jt,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 At=kt.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=Xt.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 jt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:jt.startColumn,endColumn:jt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(jt.startColumn-2,jt.endColumn);return{suggestions:[...kt.keywords.map(Se=>({label:Se,kind:Mt.languages.CompletionItemKind.Function,documentation:Se,insertText:Se,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...kt.quickKey.map(Se=>({label:Se.label,kind:Mt.languages.CompletionItemKind.Function,documentation:Se.content,insertText:Zt.startsWith("#")?Se.content.replace(/#/,""):Se.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(dt,gt){var jt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:jt.startColumn,endColumn:jt.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 jt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:jt.startColumn,endColumn:jt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(jt.startColumn-2,jt.endColumn);return{suggestions:[...Xt.keywords.map(Se=>({label:Se,kind:Mt.languages.CompletionItemKind.Function,documentation:Se,insertText:Se,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...Xt.quickKey.map(Se=>({label:Se.label,kind:Mt.languages.CompletionItemKind.Function,documentation:Se.content,insertText:Zt.startsWith("#")?Se.content.replace(/#/,""):Se.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(dt,gt){var jt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:jt.startColumn,endColumn:jt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(jt.startColumn-2,jt.endColumn);return{suggestions:[...xt.keywords.map(Se=>({label:Se,kind:Mt.languages.CompletionItemKind.Function,documentation:Se,insertText:Se,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...xt.quickKey.map(Se=>({label:Se.label,kind:Mt.languages.CompletionItemKind.Function,documentation:Se.content,insertText:Zt.startsWith("#")?Se.content.replace(/#/,""):Se.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(dt,gt){var jt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:jt.startColumn,endColumn:jt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(jt.startColumn-2,jt.endColumn);return{suggestions:[...Wt.keywords.map(Se=>({label:Se,kind:Mt.languages.CompletionItemKind.Function,documentation:Se,insertText:Se,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...Wt.quickKey.map(Se=>({label:Se.label,kind:Mt.languages.CompletionItemKind.Function,documentation:Se.content,insertText:Zt.startsWith("#")?Se.content.replace(/#/,""):Se.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}})};const Dt="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var _t=Object.defineProperty,qt=(Mt,At,Ht)=>At in Mt?_t(Mt,At,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[At]=Ht,Ut=(Mt,At,Ht)=>qt(Mt,typeof At!="symbol"?At+"":At,Ht);const ue=class mx{constructor(At,Ht,Pt){this.placeholder=At,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)}};Ut(ue,"ID","editor.widget.placeholderHint");var Pe=ue,ve=Gt(96236),Oe=Gt(8591),pe=Gt(6848),Ke=Gt(89392),fe=Gt(34604),Qt=Gt(56102),ee=Object.defineProperty,ae=Object.defineProperties,de=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,en=(Mt,At,Ht)=>At in Mt?ee(Mt,At,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[At]=Ht,Ue=(Mt,At)=>{for(var Ht in At||(At={}))Ie.call(At,Ht)&&en(Mt,Ht,At[Ht]);if(se)for(var Ht of se(At))De.call(At,Ht)&&en(Mt,Ht,At[Ht]);return Mt},nn=(Mt,At)=>ae(Mt,de(At)),Ne=(Mt,At)=>{var Ht={};for(var Pt in Mt)Ie.call(Mt,Pt)&&At.indexOf(Pt)<0&&(Ht[Pt]=Mt[Pt]);if(Mt!=null&&se)for(var Pt of se(Mt))At.indexOf(Pt)<0&&De.call(Mt,Pt)&&(Ht[Pt]=Mt[Pt]);return Ht},Be=(Mt,At,Ht)=>new Promise((Pt,dt)=>{var gt=Zt=>{try{re(Ht.next(Zt))}catch(Se){dt(Se)}},jt=Zt=>{try{re(Ht.throw(Zt))}catch(Se){dt(Se)}},re=Zt=>Zt.done?Pt(Zt.value):Promise.resolve(Zt.value).then(gt,jt);re((Ht=Ht.apply(Mt,At)).next())});function je(Mt){return/^\d+$/.test(Mt)?`${Mt}px`:Mt}function ze(){}let xe=!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 Ae(Mt=[]){let At=Mt;if(Array.isArray(Mt)){for(let Ht=0;Ht{var At=Mt,{width:Ht="100%",height:Pt="100%",value:dt,language:gt="javascript",style:jt={},options:re={},overrideServices:Zt={},theme:Se="vs-dark",onEditBlur:Xe,isCopy:tn=!1,onSave:Te,autoHeight:Re=!1,forbidCopy:dn=!1,onChange:xn=ze,editorDidMount:Mn=ze,onFocus:zn=ze,onBreakPoint:Zn=ze,breakPointValue:Gn=[],filename:oi="educoder.txt",errorLine:vi,errorContent:pi="",highlightLine:yi,openBreakPoint:Bi=!1,placeholder:ki=""}=At,Ei=Ne(At,["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 zi=(0,Rt.useRef)(),fi=(0,Rt.useRef)({}),te=(0,Rt.useRef)(),Wi=(0,Rt.useRef)(),Hi=(0,Rt.useRef)([]),Vi=(0,Rt.useRef)(!1),Sr=(0,Rt.useRef)(),Ar=(0,Rt.useRef)(),xr=(0,Rt.useRef)(!1),[Qn,Xn]=(0,Rt.useState)(!1);function qe(){let Ye;return zi.current&&(Ye=new yt.Z(hn=>{for(let Je of hn)(Je.target.offsetHeight>0||Je.target.offsetWidth>0)&&fi.current.instance.layout()}),Ye.observe(zi.current)),Ye}function Qe(){Oe.ZP.warning({content:decodeURIComponent(Dt),key:"monaco-editor-tip"})}const we=()=>{let Ye=fi.current.instance;if(dt!=null&&Ye&&Qn){const hn=Ye.getModel();hn&&dt!==hn.getValue()&&(xe=!0,hn.setValue(dt),Ye.layout(),xe=!1)}};(0,Rt.useEffect)(()=>{const Ye=fe.Z.subscribe("formatDocument",hn=>{var Je;let an=fi.current.instance;(Je=an==null?void 0:an.getAction)==null||Je.call(an,"editor.action.formatDocument").run()});return window.updateMonacoValue=hn=>{xn(hn)},Ye},[]),(0,Rt.useEffect)(()=>{var Ye;let hn=fi.current.instance;Wi.current&&clearTimeout(Wi.current),Wi.current=setTimeout(()=>{we()},500),dt&&(dt!=null&&dt.length)&&((Ye=hn==null?void 0:hn.updateOptions)==null||Ye.call(hn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(dt.split(/\r\n|\r|\n/g).length))+3,5)}))},[dt,Qn,fi.current]),(0,Rt.useEffect)(()=>{if(vi&&fi.current&&fi.current.instance){let hn=fi.current.instance;hn.changeViewZones(function(Je){var an=document.createElement("div");an.style.padding="10px 20px",an.style.width="calc(100% - 20px)",an.className="my-error-line-wrp",an.innerHTML=pi,Je.addZone({afterLineNumber:vi||11,heightInLines:3,domNode:an})});var Ye={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}};hn.addOverlayWidget(Ye),hn.revealPositionInCenter({lineNumber:20,column:1})}},[vi,fi.current,Qn]);const gn=(Ye="",hn)=>{if(!Ye||Ye.trim()==="")return!0;const an=fi.current.instance.getModel().getLineTokens(hn);let mn=!1;for(let ln=0;ln<2;ln++)an.getStandardTokenType(ln)===1&&(mn=!0);return mn};(0,Rt.useEffect)(()=>{var Ye;const hn=(Ye=fi.current)==null?void 0:Ye.instance;if(hn&&Qn&&dn){const Je=hn.onDidBlurEditorWidget(()=>{xr.current=!1}),an=hn.onDidFocusEditorText(()=>{xr.current=!0});return()=>{Je.dispose(),an.dispose()}}},[fi.current,Qn,dn]),(0,Rt.useEffect)(()=>{var Ye;if((Ye=fi.current)!=null&&Ye.instance&&Qn&&Bi){let hn=fi.current.instance,Je=hn.getModel();if(!Je)return;(()=>{var hi;let fn=[],Hn=[];const Jn=Je.getAllDecorations();for(let ti of Jn)ti.options.className==="highlighted-line"&&(fn.push((hi=ti==null?void 0:ti.range)==null?void 0:hi.startLineNumber),Hn.push(ti==null?void 0:ti.id));if(yi===fn[0])return;Je.deltaDecorations(Hn,[]);const ei=Je.getLineCount();yi&&yi<=ei&&(hn.deltaDecorations([],[{range:new ce.Range(yi,1,yi,Je.getLineMaxColumn(yi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),hn.revealLineInCenter(yi))})();const mn=(hi=!1)=>{var fn;let Hn=[],Jn=[];const ei=Je.getAllDecorations();for(let ti of ei)ti.options.linesDecorationsClassName==="breakpoints-select"&&(Hn.push((fn=ti==null?void 0:ti.range)==null?void 0:fn.startLineNumber),Jn.push(ti==null?void 0:ti.id));if(hi)return{lines:Hn,ids:Jn};Zn(Hn)},ln=hi=>Be(void 0,null,function*(){let fn={range:new ce.Range(hi,1,hi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Je.deltaDecorations([],[fn]),mn()}),bn=hi=>Be(void 0,null,function*(){let fn=[];const Hn=hn.getLineDecorations(hi);for(let Jn of Hn)Jn.options.linesDecorationsClassName==="breakpoints-select"&&fn.push(Jn.id);yield Je.deltaDecorations(fn,[]),mn()}),yn=hi=>{let fn=hn.getLineDecorations(hi);for(let Hn of fn)if(Hn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ke.isEqual)(Gn,mn(!0).lines)){Je.deltaDecorations(mn(!0).ids,[]);const hi=Gn.map(fn=>({range:new ce.Range(fn,1,fn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Je.deltaDecorations([],hi)}const Tn=hn.onDidChangeModelContent(hi=>{let fn=hn.getPosition();if(fn){let Hn=fn.lineNumber;clearTimeout(Ar.current),Ar.current=setTimeout(()=>{gn(Je.getLineContent(Hn),Hn)?bn(Hn):yn(Hn)?(bn(Hn),ln(Hn)):mn()},100)}}),In=hn.onMouseDown(hi=>{var fn,Hn,Jn;if(hi.target.detail&&((Jn=(Hn=(fn=hi.target)==null?void 0:fn.element)==null?void 0:Hn.className)!=null&&Jn.includes("line-numbers"))){let ei=hi.target.position.lineNumber;if(gn(Je.getLineContent(ei),ei))return;yn(ei)?bn(ei):ln(ei)}}),$n=hi=>{let fn={range:new ce.Range(hi,1,hi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Hi.current=hn.deltaDecorations(Hi.current,[fn])},cn=()=>{Hi.current=hn.deltaDecorations(Hi.current,[])},ai=hn.onMouseMove(hi=>{var fn,Hn,Jn;if(cn(),hi.target.detail&&((Jn=(Hn=(fn=hi.target)==null?void 0:fn.element)==null?void 0:Hn.className)!=null&&Jn.includes("line-numbers"))){let ei=hi.target.position.lineNumber;if(gn(Je.getLineContent(ei),ei))return;$n(ei)}}),Ci=hn.onMouseLeave(()=>{cn()});return()=>{Tn.dispose(),In.dispose(),ai.dispose(),Ci.dispose()}}},[fi.current,Qn,Gn,yi,Bi,gt]),(0,Rt.useEffect)(()=>{var Ye;(Ye=fi.current)!=null&&Ye.instance&&Bi&&fi.current.instance.setPosition({lineNumber:0,column:0})},[yi]);function Pn(){let Ye=fi.current.instance;if(Ye){const hn=Ye.getSelection(),Je=fi.current.pastePos||{},an=new ce.Range(Je.startLineNumber||hn.endLineNumber,Je.startColumn||hn.endColumn,Je.endLineNumber||hn.endLineNumber,Je.endColumn||hn.endColumn);setTimeout(()=>{Ye.executeEdits("",[{range:an,text:""}])},300)}}function Ge(Ye){(window.navigator.platform.match("Mac")?Ye.metaKey:Ye.ctrlKey)&&Ye.keyCode==83&&(Ye.preventDefault(),Te())}const Me=()=>{if(Re&&fi.current.instance){const Ye=fi.current.instance.getContentHeight();wn(Ye{if(!xr.current)return;const{keyCode:hn,ctrlKey:Je,metaKey:an,target:mn,type:ln}=Ye;return(ln==="paste"||(hn===67||hn===86)&&(an||Je))&&mn.nodeName==="TEXTAREA"&&(Qe(),Ye.preventDefault()),!1};function on(Ye,hn){var Je=window.URL||window.webkitURL||window,an=new Blob([hn]),mn=document.createElementNS("http://www.w3.org/1999/xhtml","a");mn.href=Je.createObjectURL(an),mn.download=Ye,pn(mn)}(0,Rt.useEffect)(()=>{Me()},[Me]),(0,Rt.useEffect)(()=>{zi.current&&!Qn&&Promise.all([Gt.e(8909),Gt.e(3267)]).then(Gt.bind(Gt,71448)).then(Ye=>{try{ce=Ye,fi.current.instance=ce.editor.create(zi.current,{value:dt,language:Ae(gt),theme:Se,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Zt);const hn=fi.current.instance;let mn=[...ve.BH._menuItems].find(Tn=>Tn[0]._debugName=="EditorContext")[1],ln=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],bn=(Tn,In)=>{var $n,cn;let ai=Tn._first;do In.includes((cn=($n=ai.element)==null?void 0:$n.command)==null?void 0:cn.id)&&Tn._remove(ai);while(ai=ai.next)};if(Mn(hn,ce),setTimeout(()=>{Me(),fi.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{on(oi||"educoder.txt",hn.getValue())}})},500),fi.current.subscription=hn.onDidChangeModelContent(Tn=>{Vi.current?clearTimeout(Sr.current):(Me(),xn(hn.getValue(),Tn)),Sr.current=setTimeout(()=>{Vi.current=!1},500)}),window.Monaco||Kt(ce,Ae(gt)),dn&&(bn(mn,ln),zi.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Cn),window.removeEventListener("paste",Cn),window.addEventListener("keydown",Cn),window.addEventListener("paste",Cn)),window.Monaco=ce,Xe&&hn.onDidBlurEditorWidget(()=>{Xe(hn.getValue())}),zn&&hn.onDidFocusEditorText(()=>{zn(hn.getValue())}),dn)try{hn.onDidPaste(Tn=>{const In=hn.getSelection(),$n=fi.current.pastePos||{},cn=new ce.Range($n.startLineNumber||In.endLineNumber,$n.startColumn||In.endColumn,$n.endLineNumber||In.endLineNumber,$n.endColumn||In.endColumn);hn.executeEdits("",[{range:Tn.range,text:""}])})}catch(Tn){}let yn=qe();return ki&&typeof ki=="string"&&new Pe(ki,hn,ce),Xn(!0),()=>{const Tn=fi.current.instance;Tn.dispose();const In=Tn.getModel();In&&In.dispose(),fi.current.subscription&&fi.current.subscription.dispose(),yn.unobserve(zi.current)}}catch(hn){}})},[]),(0,Rt.useEffect)(()=>{if(fi.current.instance&&Qn)return document.addEventListener("keydown",Ge,!1),()=>{document.removeEventListener("keydown",Ge)}},[Te,Qn]),(0,Rt.useEffect)(()=>{let Ye=fi.current.instance;if(Ye&&Qn){let hn=Ae(gt);ce.editor.setModelLanguage(Ye.getModel(),hn)}},[gt,Qn]),(0,Rt.useEffect)(()=>{fi.current.instance&&Qn&&ce.editor.setTheme(Se)},[Se,Qn]),(0,Rt.useEffect)(()=>{let Ye=fi.current.instance;te.current=re,Ye&&Qn&&(Ye.updateOptions(Ue({},re)),setTimeout(()=>{Ye.getModel().updateOptions(Ue({},re))},200))},[JSON.stringify(re),Qn]),(0,Rt.useEffect)(()=>{let Ye=fi.current.instance;Ye&&Qn&&Ye.layout()},[Ht,Pt,Qn]);const[$e,Ee]=(0,Rt.useState)(je(Ht)),[rn,wn]=(0,Rt.useState)(je(Pt)),Bn=nn(Ue({},jt),{width:$e,height:rn,position:"relative"});return Rt.createElement("div",{className:"my-monaco-editor",ref:zi,style:Bn},tn&&Rt.createElement(Qt.CopyToClipboard,{text:dt,onCopy:()=>Oe.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 Jt({width:Mt="100%",height:At="100%",original:Ht,modified:Pt,language:dt,options:gt={}}){const jt=(0,Rt.useRef)(),[re,Zt]=(0,Rt.useState)(null);function Se(Re){let dn;return jt.current&&(dn=new yt.Z(xn=>{for(let Mn of xn)(Mn.target.offsetHeight>0||Mn.target.offsetWidth>0)&&Re.layout()}),dn.observe(jt.current)),dn}(0,Rt.useEffect)(()=>(jt.current&&Promise.all([Gt.e(8909),Gt.e(9404)]).then(Gt.bind(Gt,2550)).then(Re=>{ce=Re;const dn=ce.editor.createDiffEditor(jt.current,nn(Ue({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(dn);let xn=Se(dn);return()=>{dn.dispose();const Mn=dn.getModel();Mn&&Mn.dispose(),xn.unobserve(jt.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 Xe=je(Mt),tn=je(At),Te={width:Xe,height:tn};return Rt.createElement("div",{className:"my-diff-editor",ref:jt,style:Te})}},85057:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{jL:function(){return kt},w9:function(){return Ie},QD:function(){return xn},cQ:function(){return Qt},op:function(){return Se},O5:function(){return xr},_b:function(){return vi},t7:function(){return rt},Gi:function(){return Be},YG:function(){return nn},qp:function(){return bt},vr:function(){return Zn},qE:function(){return Te},Je:function(){return pt},wb:function(){return ve},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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",kt=({dataSource:Qn=[],img:Xn,imgWidth:qe=346,title:Qe,sunTitle:we,bannerExtraContent:gn})=>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,we)),Qn.length>0&&Rt.createElement("div",{className:yt.btns},Qn.map((Pn,Ge)=>Rt.createElement("div",{key:Ge,onClick:Pn.click},Pn.name,Pn.sign?Rt.createElement("img",{src:Vt,width:39}):null))),gn),Xn&&Rt.createElement("img",{style:{marginTop:33,marginRight:38},src:Xn,width:qe}))),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:Xn,onChange:qe,onTitleChange:Qe,className:we,title:gn,titleWidth:Pn=41,style:Ge={},fontColor:Me="#6A7283",showCount:pn})=>{const[Cn,on]=(0,Rt.useState)(0),[$e,Ee]=(0,Rt.useState)(!1),rn=(0,Rt.useRef)(null),wn=(0,Rt.useRef)(null);return(0,Rt.useEffect)(()=>{var Bn;Qn.length!==0&&(((Bn=rn==null?void 0:rn.current)==null?void 0:Bn.clientHeight)>97?on(1):on(0)),Qn.length===0&&on(0),Ee(!1)},[Qn]),Rt.createElement("div",{className:Ot()(Wt.row,we),style:Ge},Rt.createElement("div",{onClick:(0,Bt.throttle)(()=>Qe==null?void 0:Qe(),2e3),style:{width:Pn,marginTop:$e?12:4},className:`${Wt.title} ${Qe?"current":""}`},gn),Rt.createElement("div",{className:$e?`${Wt.tagsWrap} ${Wt.tagsBorderWrap}`:Wt.tagsWrap},Rt.createElement("div",{className:Wt.bar,ref:wn,style:Cn>0?{height:Cn===1?97:"auto",overflow:Cn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Rt.createElement("div",{className:Wt.tag,ref:rn},Qn==null?void 0:Qn.map(Bn=>Rt.createElement("span",{onClick:()=>qe(Bn.id),key:Bn.id,style:{color:Me},className:Xn===Bn.id?Wt.active:""},Rt.createElement("span",{title:Bn.name,className:Wt.name},Bn.name),!!pn&&Rt.createElement("span",{className:Wt.num},Bn.count))))),!!Cn&&Rt.createElement(Rt.Fragment,null,Cn===1?Rt.createElement("div",{onClick:()=>{var Bn;on(2),((Bn=rn==null?void 0:rn.current)==null?void 0:Bn.clientHeight)>245?Ee(!0):Ee(!1)},className:Wt.action},"\u5C55\u5F00",Rt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Rt.createElement("div",{onClick:()=>{wn.current.scrollTop=0,on(1),Ee(!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:Xn,onChange:qe,className:Qe,style:we={}})=>Rt.createElement("div",{style:we,className:Ot()(Tt.tabs,Qe)},Qn.map(gn=>Rt.createElement("span",{onClick:()=>qe(gn.id),className:Xn===gn.id?Tt.active:"",key:gn.id},gn.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:Xn="",onChange:qe,onInputChange:Qe=()=>{},className:we,style:gn={},placeholder:Pn,allowClear:Ge=!1})=>{var Me;const[pn,Cn]=(0,Rt.useState)(""),[on,$e]=(0,Rt.useState)("");(0,Rt.useEffect)(()=>{var wn;let Bn=Xn;(wn=JSON.stringify(Xn))!=null&&wn.includes("{")&&(Cn(Xn.id),Bn=Xn.value||"");try{$e(decodeURIComponent(Bn||""))}catch(Ye){$e(decodeURIComponent(Bn||""))}},[Xn]);const Ee=()=>{qe(encodeURIComponent(on),pn||null)},rn=wn=>{wn!==pn&&(Cn(wn),qe(encodeURIComponent(on),wn))};return Rt.createElement("div",{className:Ot()(et.input,we),style:gn},!!Qn.length&&Rt.createElement("div",{className:et.dropdown},Rt.createElement("div",{className:et.text},(Me=Qn.find(wn=>wn.id===pn))==null?void 0:Me.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((wn,Bn)=>Rt.createElement("div",{key:Bn,onClick:()=>rn(wn.id)},wn.name)))),Rt.createElement(tt.default,{onPressEnter:Ee,value:on,onChange:wn=>{$e(wn.target.value),Qe(encodeURIComponent(wn.target.value),pn||null)},bordered:!1,placeholder:Pn}),Rt.createElement("i",{onClick:Ee,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:Xn,className:qe,total:Qe,pageSize:we,style:gn={}})=>{const Pn=Qn<2,Ge=Qn>=Math.ceil(Qe/we);return Qe<=we?Rt.createElement(Rt.Fragment,null):Rt.createElement("div",{className:Ot()(ut.quickPager,qe),style:gn},Rt.createElement("div",{onClick:()=>{Pn||Xn(Qn-1,"prev")},className:Pn?ut.disabled:""},"\u4E0A\u4E00\u9875"),Rt.createElement("div",{onClick:()=>{Ge||Xn(Qn+1,"next")},className:Ge?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"},Et=Gt(71418),Ft=Gt(6848),Kt=Gt(13570),Dt=Gt(3294),_t=Gt(955),qt=Gt(96908),Ut=Gt(57177),ue=Gt(81378),oe=Gt(8797),ve=({className:Qn,dataSource:Xn=[],col:qe=4,right:Qe,bottom:we=23,precision:gn=0,wrapWidth:Pn=1200,trackEventItems:Ge,loading:Me})=>{const pn=Math.floor((Pn-(qe-1)*Qe)/qe);return Rt.createElement(Et.Z,{spinning:Me},Rt.createElement("div",{className:Ot()(mt.list,Qn)},!!Xn.length&&Xn.map((Cn,on)=>{const{name:$e,id:Ee,identifier:rn,power:wn,cover_image_id:Bn,pic:Ye}=Cn;return Rt.createElement("div",{className:mt.wrap,key:Ee,style:{width:pn,marginRight:(1+on)%qe===0?0:Qe+gn,marginBottom:we}},Rt.createElement("a",{target:"_blank",href:`/shixuns/${rn}/challenges`,className:mt.li,onClick:hn=>{hn.preventDefault(),Ge&&(0,_t.L9)([Ge]),wn&&(0,_t.xg)(`/shixuns/${rn}/challenges`)}},Rt.createElement("div",{className:mt.img},Rt.createElement("img",{className:mt.cover,src:`${Ye}`}),Cn.is_jupyter&&Rt.createElement("img",{className:mt.sign,src:qt}),Cn.is_jupyter_lab&&Rt.createElement("img",{className:mt.sign,src:Ut}),Cn.is_unity_3d&&Rt.createElement("img",{className:mt.sign,src:ue})),Rt.createElement("div",{className:mt.name},Rt.createElement(Ft.Z,{title:$e||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Rt.createElement("span",{className:mt.e},$e||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Rt.createElement("div",{className:mt.tags},Rt.createElement(Ft.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Rt.createElement("span",null,Rt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Rt.createElement("span",null,Cn.challenges_count))),!!Cn.myshixuns_count&&Rt.createElement(Ft.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,Cn.myshixuns_count))),Rt.createElement(Ft.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Rt.createElement("span",null,Rt.createElement("span",null,Cn.level))),Rt.createElement("div",{className:mt.rate},Rt.createElement(Kt.Z,{allowHalf:!0,disabled:!0,defaultValue:Cn.score_info}),Rt.createElement("span",null,"\xA0",Cn.score_info?`${Cn.score_info}\u5206`:"5\u5206")))),!wn&&Rt.createElement("div",{className:mt.lockWrap},Rt.createElement("img",{src:`${Dt.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")))}),!Xn.length&&Rt.createElement(oe.Z,null)))},Oe={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(24065),Ke=Gt(59301),Qt=({className:Qn,dataSource:Xn=[],col:qe=4,right:Qe,bottom:we=23,precision:gn=0,wrapWidth:Pn=1200,trackEventItems:Ge,loading:Me,onRemove:pn=()=>{},isCurrent:Cn=!0,showAlias:on=!1})=>{const $e=Math.floor((Pn-(qe-1)*Qe)/qe),Ee=[{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 Ke.createElement(Et.Z,{spinning:Me},Ke.createElement("div",{className:Ot()(Oe.list,Qn)},!!(Xn!=null&&Xn.length)&&(Xn==null?void 0:Xn.map((rn,wn)=>{var Bn;const{name:Ye,id:hn,identifier:Je,featured:an,school_name:mn,image_url:ln,excellent:bn,is_plan:yn}=rn;return Ke.createElement("div",{key:hn,className:Oe.wrap,style:{width:$e,marginRight:(1+wn)%qe===0?0:Qe+gn,marginBottom:we}},Ke.createElement("a",{className:Oe.li,onClick:Tn=>{Tn.preventDefault(),Tn.stopPropagation(),Ge&&(0,_t.L9)([Ge]),(0,_t.xg)(`/paths/${Je}`)}},Ke.createElement("div",{className:Oe.img},Ke.createElement("img",{className:Oe.cover,src:`${ln}`}),Cn&&(0,pe.bg)()&&(rn==null?void 0:rn.studying)&&Ke.createElement("div",{className:`${Oe.movebq} user-path-items`,onClick:Tn=>{Tn.stopPropagation(),pn(rn)}},Ke.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ke.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Bn=rn==null?void 0:rn.subject_tags)==null?void 0:Bn.map((Tn,In)=>{var $n,cn;if(In===0){const Ci=($n=Ee.find(hi=>hi.name==Tn))==null?void 0:$n.swimg;return Ke.createElement("img",{className:Oe.sign,src:Ci,style:{left:"-4px"}})}const ai=(cn=Ee.find(Ci=>Ci.name==Tn))==null?void 0:cn.ptimg;return Ke.createElement("img",{className:Oe.sign,src:ai,style:{left:`${48+52*(In-1)+2*In}px`}})}),Ke.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(rn==null?void 0:rn.excellent)&&Ke.createElement("div",{className:Oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ke.createElement("div",{className:Oe.name},Ke.createElement(Ft.Z,{title:on&&(rn!=null&&rn.excellent_alias_name)?Ke.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ye}`,Ke.createElement("br",null),Ke.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${rn==null?void 0:rn.excellent_alias_name}`)):Ye},Ke.createElement("span",{className:Oe.e},on&&(rn==null?void 0:rn.excellent_alias_name)||Ye))),Ke.createElement(Ft.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${mn}`},Ke.createElement("div",{className:Oe.unit},Ke.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),mn)),Ke.createElement("div",{className:Oe.tags},Ke.createElement("div",null,Ke.createElement(Ft.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ke.createElement("span",null,Ke.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ke.createElement("span",null,rn.stages_count))),Ke.createElement(Ft.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ke.createElement("span",null,Ke.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ke.createElement("span",null,rn.members_count)))))))})),!Xn.length&&Ke.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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",de=Gt(59301),Ie=({className:Qn,dataSource:Xn=[],col:qe=4,right:Qe,bottom:we=23,precision:gn=0,wrapWidth:Pn=1200,trackEventItems:Ge,loading:Me,handleVery:pn=()=>!0})=>{const Cn=Math.floor((Pn-(qe-1)*Qe)/qe);return de.createElement(Et.Z,{spinning:Me},de.createElement("div",{className:Ot()(ee.list,Qn)},!!Xn.length&&Xn.map((on,$e)=>{const{subject_identifier:Ee,id:rn,identifier:wn,power:Bn}=on,Ye=on.is_public!=0&&on.is_public;return de.createElement("div",{className:ee.wrap,key:rn,style:{width:Cn,marginRight:(1+$e)%qe===0?0:Qe+gn,marginBottom:we}},de.createElement("a",{className:ee.li,onClick:hn=>{hn.preventDefault(),pn(on==null?void 0:on.first_category_url)&&(Ge&&(0,_t.L9)([Ge]),(0,_t.xg)(on.first_category_url))}},de.createElement("div",{className:ee.top},de.createElement(Ft.Z,{title:on.name},de.createElement("div",{className:ee.name},on.name)),de.createElement("img",{className:ee.img,src:Dt.Z.IMG_SERVER+"/images/"+on.avatar_url}),de.createElement("div",{className:ee.text,title:on.creator},on.creator),Ee&&de.createElement("div",{className:ee.btns},de.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),de.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ye&&de.createElement("div",{className:ee.sign},"\u516C\u5F00")),de.createElement("div",{className:ee.bottom},on.visits>0&&de.createElement(Ft.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},de.createElement("span",null,de.createElement("i",{className:"iconfont icon-liulanyan"}),de.createElement("span",null,on.visits))),on.course_members_count>0&&de.createElement(Ft.Z,{title:"\u6210\u5458",placement:"bottom"},de.createElement("span",null,de.createElement("i",{className:"iconfont icon-chengyuan"}),on.course_members_count)),on.tasks_count>0&&de.createElement(Ft.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},de.createElement("span",null,de.createElement("i",{className:"iconfont icon-zuoye"}),on.tasks_count)),on.is_end?de.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):de.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!on.is_accessible&&de.createElement("div",{className:ee.lockWrap},de.createElement("img",{src:`${Dt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),de.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Xn.length&&de.createElement(oe.Z,null)))},De={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(89070),nn=({dataSource:Qn=[],value:Xn,onChange:qe,className:Qe,style:we={},tabBarExtraContent:gn})=>Rt.createElement("div",{className:Ot()(De.tabs,Qe),style:we},Rt.createElement("div",{className:De.tabsWrap},Qn.map((Pn,Ge)=>!(Pn!=null&&Pn.hide)&&Rt.createElement("aside",{className:De.tab,onClick:()=>{qe(Pn.id),Pn.link&&en.history.push(Pn.link)},key:Ge},Rt.createElement("div",{className:Xn===Pn.id?De.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&Rt.createElement("span",null,"\uFF08",Pn==null?void 0:Pn.total,"\uFF09"),(Pn==null?void 0:Pn.resetCount)!==void 0&&(Pn==null?void 0:Pn.total)!==void 0&&Rt.createElement(Ft.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},Rt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Rt.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",Rt.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),Rt.createElement("div",{className:De.tabBar},gn)),Be=({className:Qn,style:Xn={},children:qe})=>Rt.createElement("div",{className:Ot()(Qn),style:Xn},qe),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"},ze=Gt(38854),xe=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:Xn,className:qe,onSort:Qe,onDrop:we,dataSource:gn=le})=>{var Pn;return Rt.createElement("div",{className:Ot()(je.orderWrap,qe)},Rt.createElement(ze.Z,{dropdownRender:()=>Rt.createElement(xe.default,null,gn.map((Ge,Me)=>Rt.createElement(xe.default.Item,{key:Me,onClick:()=>we(Ge.id)},Ge.name)))},Rt.createElement("span",{className:je.orderTextWrap},(Pn=gn.find(Ge=>Xn===Ge.id))==null?void 0:Pn.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"},Jt=Gt(3113),Mt=Object.defineProperty,At=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,dt=(Qn,Xn,qe)=>Xn in Qn?Mt(Qn,Xn,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Qn[Xn]=qe,gt=(Qn,Xn)=>{for(var qe in Xn||(Xn={}))Ht.call(Xn,qe)&&dt(Qn,qe,Xn[qe]);if(At)for(var qe of At(Xn))Pt.call(Xn,qe)&&dt(Qn,qe,Xn[qe]);return Qn},jt=(Qn,Xn)=>{var qe={};for(var Qe in Qn)Ht.call(Qn,Qe)&&Xn.indexOf(Qe)<0&&(qe[Qe]=Qn[Qe]);if(Qn!=null&&At)for(var Qe of At(Qn))Xn.indexOf(Qe)<0&&Pt.call(Qn,Qe)&&(qe[Qe]=Qn[Qe]);return qe},re=(Qn,Xn,qe)=>new Promise((Qe,we)=>{var gn=Me=>{try{Ge(qe.next(Me))}catch(pn){we(pn)}},Pn=Me=>{try{Ge(qe.throw(Me))}catch(pn){we(pn)}},Ge=Me=>Me.done?Qe(Me.value):Promise.resolve(Me.value).then(gn,Pn);Ge((qe=qe.apply(Qn,Xn)).next())}),Se=Qn=>{var Xn=Qn,{className:qe,style:Qe,children:we,loading:gn=!1,openLoading:Pn,onClick:Ge=()=>{},size:Me="middle",shape:pn="round"}=Xn,Cn=jt(Xn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[on,$e]=(0,Rt.useState)(!1);return Rt.createElement(Jt.ZP,gt({onClick:(0,Bt.throttle)(Ee=>re(void 0,null,function*(){Pn&&$e(!0);try{yield Ge(Ee)}catch(rn){console.log("error",rn)}Pn&&$e(!1)}),2e3,{leading:!0,trailing:!1}),className:Ot()(he.btn,he[`${Me}-${pn}`],qe),style:Qe,size:Me,shape:pn,loading:on||gn},Cn),we)},Xe={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"},Te=({className:Qn,style:Xn,children:qe=null,onClick:Qe,title:we})=>Rt.createElement("div",{className:Ot()(Xe.head,Qn),style:Xn},Rt.createElement("span",{className:"primary-hover",onClick:Qe},Rt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Rt.createElement("b",{title:we},we),Rt.createElement("div",{className:Xe.node},qe)),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"},xn=({confirmShow:Qn=!0,confirmTitle:Xn,confirmClick:qe,cancelShow:Qe=!0,cancelTitle:we,cancelClick:gn,className:Pn,style:Ge,confirmLoading:Me=!1})=>Rt.createElement("div",{className:Ot()(Re.btns,Pn),style:Ge},Qn&&Rt.createElement(Jt.ZP,{loading:Me,onClick:qe,type:"primary",className:Re.confirm},Xn),Qe&&Rt.createElement(Jt.ZP,{onClick:gn,className:Re.cancel},we)),Mn={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"},Zn=({className:Qn,style:Xn={},LeftContent:qe,children:Qe,RightContent:we})=>Rt.createElement("div",{className:Ot()(Mn.fixedBottom,Qn),style:Xn},Rt.createElement("div",{className:Mn.wrap},Rt.createElement("div",{className:Mn.left},qe),Rt.createElement("div",{className:Mn.center},Qe),Rt.createElement("div",{className:Mn.right},we))),Gn={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"},vi=({className:Qn,style:Xn={},dataSource:qe=[]})=>Rt.createElement("div",{className:Ot()(Gn.crumbs,Qn),style:Xn},qe.map((Qe,we)=>ween.history.push(Qe.path)},Qe.name):Rt.createElement("span",null,Qe.name),Rt.createElement("span",null,"\xA0",">","\xA0")):Rt.createElement("span",{key:we,style:{color:"#5F6368"}},Qe.name))),pi=Gt(31797),yi=Object.defineProperty,Bi=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,Ei=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,te=(Qn,Xn,qe)=>Xn in Qn?yi(Qn,Xn,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Qn[Xn]=qe,Wi=(Qn,Xn)=>{for(var qe in Xn||(Xn={}))zi.call(Xn,qe)&&te(Qn,qe,Xn[qe]);if(Ei)for(var qe of Ei(Xn))fi.call(Xn,qe)&&te(Qn,qe,Xn[qe]);return Qn},Hi=(Qn,Xn)=>Bi(Qn,ki(Xn)),Vi=(Qn,Xn)=>{var qe={};for(var Qe in Qn)zi.call(Qn,Qe)&&Xn.indexOf(Qe)<0&&(qe[Qe]=Qn[Qe]);if(Qn!=null&&Ei)for(var Qe of Ei(Qn))Xn.indexOf(Qe)<0&&fi.call(Qn,Qe)&&(qe[Qe]=Qn[Qe]);return qe};const{Countdown:Sr}=pi.default;var xr=Qn=>{var Xn=Qn,{onChange:qe}=Xn,Qe=Vi(Xn,["onChange"]);const[we,gn]=(0,Rt.useState)(null);(0,Rt.useEffect)(()=>{typeof we=="number"&&we>=0&&qe(we)},[we]);const Pn=Ge=>{const Me=Math.floor(Ge/1e3);gn(Me)};return Rt.createElement(Sr,Hi(Wi({},Qe),{onChange:Pn}))}},58856:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return yt}});var Rt=Gt(59301);function yt(Vt,Xt){const kt=(0,Rt.useRef)();(0,Rt.useEffect)(()=>{kt.current=Vt}),(0,Rt.useEffect)(()=>{function Wt(){kt.current()}if(Xt!==null){let xt=setInterval(Wt,Xt);return()=>clearInterval(xt)}},[Xt])}},23538:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{$J:function(){return Vt},JZ:function(){return kt},bN:function(){return xt},jP:function(){return Wt},rO:function(){return Xt}});var Rt=Gt(99064),yt=(Ot,Bt,Ct)=>new Promise((bt,Tt)=>{var It=tt=>{try{et(Ct.next(tt))}catch(st){Tt(st)}},vt=tt=>{try{et(Ct.throw(tt))}catch(st){Tt(st)}},et=tt=>tt.done?bt(tt.value):Promise.resolve(tt.value).then(It,vt);et((Ct=Ct.apply(Ot,Bt)).next())});function Vt(Ot){return(0,Rt.U2)(`libraries/${Ot}.json`)}function Xt(){return(0,Rt.U2)("library_tags.json")}function kt(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)}},15022:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{Z:function(){return Kt}});var Rt=Gt(59301),yt=Gt(89070),Vt=Gt(92832),Xt=Gt(78241),kt=Gt(8591),Wt=Gt(43418),xt=Gt(93948),Ot=Gt(24905),Bt=Gt(12563),Ct={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(70750),Tt=Gt(5171),It=Gt(24065),vt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Dt,_t,qt)=>_t in Dt?vt(Dt,_t,{enumerable:!0,configurable:!0,writable:!0,value:qt}):Dt[_t]=qt,ut=(Dt,_t)=>{for(var qt in _t||(_t={}))tt.call(_t,qt)&&rt(Dt,qt,_t[qt]);if(et)for(var qt of et(_t))st.call(_t,qt)&&rt(Dt,qt,_t[qt]);return Dt},ct=(Dt,_t,qt)=>new Promise((Ut,ue)=>{var oe=Oe=>{try{ve(qt.next(Oe))}catch(pe){ue(pe)}},Pe=Oe=>{try{ve(qt.throw(Oe))}catch(pe){ue(pe)}},ve=Oe=>Oe.done?Ut(Oe.value):Promise.resolve(Oe.value).then(oe,Pe);ve((qt=qt.apply(Dt,_t)).next())});const{TextArea:pt}=Vt.default,mt=1024,Et=(Dt,_t)=>{var qt;const{uploadInfo:Ut={}}=_t.payload||{};switch(_t.type){case"addVideo":return{videoList:[...Dt.videoList,{name:Ut.file.name,size:Ut.file.size,type:Ut.file.type,fileHash:Ut.fileHash,state:Ut.state,videoId:Ut.videoId,loaded:Ut.loaded||0,title:""}]};case"removeVideo":return{videoList:Dt.videoList.filter(ue=>ue.name!==_t.payload.name)};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:Dt.videoList.map(ue=>ue.name===_t.payload.uploadInfo.file.name?ut(ut({},ue),{loaded:_t.payload.progressPercent,videoId:Ut.videoId,fileHash:Ut.fileHash}):ue)};case"updateTitle":return{videoList:(qt=Dt.videoList)==null?void 0:qt.map(ue=>ue.name===_t.payload.item.name?ut(ut({},ue),{title:_t.payload.title}):ue)};default:return{videoList:[]}}},Ft=({user:Dt,globalSetting:_t,loading:qt,dispatch:Ut,visible:ue,editData:oe,onCancel:Pe=()=>{},onOk:ve=()=>{},queryParams:Oe={}})=>{var pe;const Ke=(0,yt.useParams)(),[fe]=Xt.default.useForm(),[Qt,ee]=(0,Rt.useReducer)(Et,{videoList:[]}),[ae,de]=(0,Rt.useState)(!1),se=(0,Rt.useRef)(),[Ie,De]=(0,Rt.useState)(),[en,Ue]=(0,Rt.useState)(!1),[nn,Ne]=(0,Rt.useState)(!1),Be=(0,It.Ny)()?3:1;(0,Rt.useEffect)(()=>{var dt,gt,jt;ue&&oe&&(Ue(oe.is_link),De(oe.link),!oe.is_link&&ee({type:"addVideo",payload:{uploadInfo:{file:{name:oe.filename||""},videoId:oe.video_id,loaded:100}}}),At(((dt=oe==null?void 0:oe.tags)==null?void 0:dt.map(re=>re==null?void 0:re.name))||[]),fe.setFieldsValue({name:oe.name,description:oe.description,attachment_id:(gt=oe==null?void 0:oe.video)==null?void 0:gt.attachment_id,allow_skip:(jt=oe==null?void 0:oe.video_item)==null?void 0:jt.allow_skip}))},[oe,ue]);const je=()=>{const dt=document.getElementById("fileUpload");dt.value=""},ze=dt=>{var gt;Ue(!1);const jt=dt.target.files[0];if(!jt){je();return}const re=jt.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){kt.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),je();return}if(jt.size>mt*Be*1024*1024){kt.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${Be}G`),je();return}if((gt=Qt.videoList)!=null&>.find(Zt=>Zt.name===jt.name)){kt.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(jt)},xe=(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,jt='{"Vod":{}}';if(de(!0),se.current){se.current.addFile(dt,null,null,null,jt);return}(0,bt.o)((gt=Dt.userInfo)==null?void 0:gt.login,"",{create:!se,addFileSuccess:re=>{ee({type:"addVideo",payload:{uploadInfo:re}})},onUploadProgress:(re,Zt,Se)=>{const Xe=Math.ceil(Se*100);ee({type:"updateProgress",payload:{uploadInfo:re,progressPercent:Xe}}),je()},onUploadFailed:re=>{kt.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:re=>{de(!1)},onUploadSucceed:re=>{de(!1)},onUploadError:re=>{de(!1)},gotUploader:re=>{re.addFile(dt,null,null,null,jt),se.current=re}})},Ae=()=>ct(void 0,null,function*(){var dt,gt;if(yield fe.validateFields(),!en&&!((dt=Qt.videoList)!=null&&dt.length)||en&&!Ie){kt.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");return}Ne(!0);const jt=en?{link:Ie}:{video_id:(gt=Qt.videoList)==null?void 0:gt[0].videoId},re=yield ve(ut(ut(ut({},jt),Oe),{name:fe.getFieldValue("name"),attachment_id:fe.getFieldValue("attachment_id"),description:fe.getFieldValue("description"),tags:fe.getFieldValue("tag"),allow_skip:fe.getFieldValue("allow_skip")}));Ne(!1),re!=null&&re.id&&ce()}),ce=()=>{fe.resetFields(),ee({type:"removeAll"}),De(null),At([]),Ue(null)},he=()=>{Pe(),ce()},Jt=()=>{var dt,gt,jt,re,Zt,Se,Xe,tn,Te,Re,dn,xn;return Rt.createElement(Rt.Fragment,null,!en&&!!((dt=Qt.videoList)!=null&&dt.length)&&Rt.createElement("div",{className:Ct.fileProgress},((jt=(gt=Qt.videoList)==null?void 0:gt[0])==null?void 0:jt.loaded)==100?Rt.createElement("div",{className:`${Ct.videoName} font14`},(Zt=(re=Qt.videoList)==null?void 0:re[0])==null?void 0:Zt.name):Rt.createElement(xt.Z,{style:{width:"80%"},percent:(Xe=(Se=Qt.videoList)==null?void 0:Se[0])==null?void 0:Xe.loaded,status:((Te=(tn=Qt.videoList)==null?void 0:tn[0])==null?void 0:Te.loaded)==100?"normal":"active"}),Rt.createElement("div",{className:Ct.fileCancel,onClick:()=>{var Mn,zn,Zn,Gn;return xe((zn=(Mn=Qt.videoList)==null?void 0:Mn[0])==null?void 0:zn.name,((Gn=(Zn=Qt.videoList)==null?void 0:Zn[0])==null?void 0:Gn.loaded)==100)}},((dn=(Re=Qt.videoList)==null?void 0:Re[0])==null?void 0:dn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((xn=Qt.videoList)!=null&&xn.length)&&Rt.createElement("div",{className:Ct.uploadWrap},Rt.createElement("label",{htmlFor:"fileUpload",className:Ct.upload},Rt.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),Rt.createElement("label",{className:`${Ct.upload} ${Ct.uploadLink}`,onClick:()=>Ue(!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:Ie,onChange:Mn=>De(Mn.target.value)}))},[Mt,At]=(0,Rt.useState)([]),Ht=dt=>{if(dt.key=="Enter"){const gt=fe.getFieldValue("tag");if(fe.setFieldsValue({tag:""}),!gt){kt.ZP.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Mt.filter(jt=>jt===gt).length>0){kt.ZP.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Mt.push(gt),At([...Mt])}},Pt=(dt,gt)=>{dt.preventDefault(),At([...Mt.filter(jt=>jt!=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:Ct.modal,open:ue,confirmLoading:nn,onOk:Ae,onCancel:he},Rt.createElement(Xt.default,{form:fe},Rt.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:ze,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),Rt.createElement(Xt.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(Xt.default.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:Ct.contentItem},Jt()),Rt.createElement(Xt.default.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},Rt.createElement(Tt.Z,{getFileProgress:dt=>{if(dt.file.status==="uploading"){Ne(!0);return}dt.file.status==="done"&&Ne(!1)}})),Rt.createElement(Xt.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(Xt.default.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},Rt.createElement(Vt.default,{onKeyUp:Ht})),Rt.createElement(Xt.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:Ct["tagsList-content"]},Mt.map((dt,gt)=>Rt.createElement(Bt.default,{key:gt+dt,closable:!0,onClose:jt=>{Pt(jt,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=Dt.userInfo)==null?void 0:pe.login}/videos/protocol`,target:"_blank",className:Ct.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",Be,"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 Kt=(0,yt.connect)(({user:Dt,loading:_t,globalSetting:qt})=>({user:Dt,globalSetting:qt,loading:_t}))(Ft)},70750:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{o:function(){return Bt}});var Rt=Gt(99064),yt=Gt(93125),Vt=Gt.n(yt);let Xt="",kt,Wt="";function xt(Ct){Ot(Ct)}function Ot(Ct){kt=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),Ct.addFileSuccess&&Ct.addFileSuccess(bt),kt.startUpload()},onUploadstarted:function(bt){const Tt=bt.file.name;if(bt.videoId){var vt=`/api/users/${Xt}/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){Ct.onUploadError&&Ct.onUploadError(bt);return}const tt=et.data;var st=tt.UploadAuth,rt=tt.UploadAddress,ut=tt.VideoId;kt.setUploadAuthAndAddress(bt,st,rt)}).catch(et=>{kt.deleteFile(kt._curIndex),kt.nextUpload(),console.log(et)})}else{var It=`/api/users/${Xt}/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;kt.setUploadAuthAndAddress(bt,st,rt,ut)}}).catch(tt=>{kt.deleteFile(kt._curIndex),kt.nextUpload(),console.log(tt)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(bt){Ct.onUploadSucceed&&Ct.onUploadSucceed(bt),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(bt,Tt,It){Ct.onUploadFailed&&Ct.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){Ct.onUploadProgress&&Ct.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/${Xt}/video_auths.json`;(0,Rt.ZP)(Tt,{method:"put",body:{video_id:bt.videoId}}).then(It=>{var et=It.data.UploadAuth;kt.resumeUploadWithAuth(et)}).catch(It=>{console.log(It)})},onUploadEnd:function(bt){Ct.onUploadEnd&&Ct.onUploadEnd(bt),console.log("onUploadEnd: uploaded all the files")}}),Ct.gotUploader&&Ct.gotUploader(kt)}function Bt(Ct,bt,Tt){Ct&&(Xt=Ct),bt&&(Wt=bt),xt(Tt)}},24768:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{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),Xt=Gt.n(Vt);let kt=1;function Wt(Dt,_t){const qt=Dt.match(/^(\s+)(?:```)/);if(qt===null)return _t;const Ut=qt[1];return _t.split(` `).map(ue=>{const oe=ue.match(/^\s+/);if(oe===null)return ue;const[Pe]=oe;return Pe.length>=Ut.length?ue.slice(Ut.length):ue}).join(` `)}let xt=[],Ot=["
    "];const Bt=new(yt()).Renderer,Ct=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function bt(){xt.length=0,Ot=["
      "]}const Tt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function It(Dt,_t,qt,Ut){if(_t>=Dt.length||Dt[_t].level<=qt)return _t;var ue=Dt[_t];Ut.push("
    • "+ue.text+""),_t++;var oe=[];return _t=It(Dt,_t,ue.level,oe),oe.length>0&&(Ut.push("
        "),oe.forEach(function(Pe){Ut.push(Pe)}),Ut.push("
      ")),Ut.push("
    • "),_t=It(Dt,_t,qt,Ut),_t}function vt(){return It(xt,0,0,Ot),Ot.push("
    "),Ot.join("")}const et={heading(Dt){const _t=Ct.exec(Dt);if(kt+=1,_t)return{type:"heading",raw:_t[0],depth:_t[1].length,text:_t[2]}},fences(Dt){const _t=this.rules.block.fences.exec(Dt);if(_t){const qt=_t[0];let Ut=Wt(qt,_t[3]||"");const ue=_t[2]?_t[2].trim():_t[2];if(["latex","katex","math"].indexOf(ue)>=0){const oe=rt(),Pe=Ut;Ut=oe,ut[oe]={type:"block",expression:Pe}}return{type:"code",raw:qt,lang:ue,text:Ut}}}},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(Dt){return Dt=Dt.replace(tt,(_t,qt)=>{const Ut=rt();return ut[Ut]={type:"inline",expression:qt},Ut}),Dt}const Et=Bt.listitem;Bt.listitem=function(Dt){return Et(mt(Dt))};const Ft=Bt.paragraph;Bt.paragraph=function(Dt){return Ft(mt(Dt))};const Kt=Bt.tablecell;Bt.tablecell=function(Dt,_t){return Kt(mt(Dt),_t)},Bt.code=function(Dt,_t,qt){const Ut=(_t||"").match(/\S*/)[0];return Ut?["latex","katex","math"].indexOf(Ut)>=0?`

    ${Dt}

    `:`
    ${qt?Dt:(0,Vt.escape)(Dt,!0)}
    `:'
    '+(qt?Dt:(0,Vt.escape)(Dt,!0))+"
    "},Bt.heading=function(Dt,_t,qt){let Ut=this.options.headerPrefix+qt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return xt.push({anchor:Ut,level:_t,text:Dt}),"'+Dt+""},yt().setOptions({silent:!0,gfm:!0,pedantic:!1}),yt().use({tokenizer:et,renderer:Bt}),Ln.ZP=yt()},46474:function(Nn,Ln,Gt){"use strict";Gt.d(Ln,{rX:function(){return mt},pW:function(){return Et},gy:function(){return Ft},xY:function(){return pt},O5:function(){return ct},hs:function(){return tt},tJ:function(){return vt},o1:function(){return et},Rd:function(){return ut}});var Rt=Gt(89070),yt=Gt(43418),Vt=Gt(28103),Xt=Gt(8591),kt=Gt(24065),Wt=Gt(955),xt=Gt(87169),Ot=Gt(25510),Bt="data:image/png;base64,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",Ct=Gt.p+"static/newqrcode.a8740efb.png",bt=Gt(32637),Tt=Gt(59301),It=(Kt,Dt,_t)=>new Promise((qt,Ut)=>{var ue=ve=>{try{Pe(_t.next(ve))}catch(Oe){Ut(Oe)}},oe=ve=>{try{Pe(_t.throw(ve))}catch(Oe){Ut(Oe)}},Pe=ve=>ve.done?qt(ve.value):Promise.resolve(ve.value).then(ue,oe);Pe((_t=_t.apply(Kt,Dt)).next())});const vt=(Kt,Dt=!1,_t=!1,qt="",Ut=!1)=>!!(et(Kt)&&st(Kt,Dt,_t,qt,Ut)),et=Kt=>(0,kt.bg)()?!0:(Kt({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=Kt=>{var Dt,_t,qt;const{user:Ut}=(0,Rt.getDvaApp)()._store.getState();(0,kt.bg)()&&!((_t=(Dt=Ut==null?void 0:Ut.userInfo)==null?void 0:Dt.course)!=null&&_t.course_public)&&!((qt=Ut==null?void 0:Ut.userInfo)!=null&&qt.profile_completed)&&Kt({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},st=(Kt,Dt=!1,_t=!0,qt="",Ut=!1)=>{var ue;const{user:oe}=(0,Rt.getDvaApp)()._store.getState();return(ue=oe.userInfo)!=null&&ue.profile_completed?!0:(_t?Kt({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:qt,isCurrentPage:Ut}}):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"),rt()}}),!1)},rt=()=>{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()}})},ut=()=>{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"))})},ct=()=>{var Kt;const{user:Dt}=(0,Rt.getDvaApp)()._store.getState();return(Kt=Dt.userInfo)!=null&&Kt.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)},pt=()=>(0,kt.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:Ct,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),mt=(Kt,Dt)=>Kt?!0:(yt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Tt.createElement("div",null,Tt.createElement("p",null,Dt||"\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),Et=Kt=>{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,Kt),"\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})))})},Ft=(Kt,Dt="")=>{const{shixunsDetail:{detail:_t}}=(0,Rt.getDvaApp)()._store.getState();if((_t==null?void 0:_t.public)===2||(_t==null?void 0:_t.public)===1||(_t==null?void 0:_t.shixun_status)===3){let qt="";return(_t==null?void 0:_t.public)===2&&(qt="\u5DF2\u516C\u5F00"),(_t==null?void 0:_t.public)===1&&(qt="\u5F85\u5BA1\u6838"),(_t==null?void 0:_t.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",Dt,"\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(_t==null?void 0:_t.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",Dt,"\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 Kt({type:"shixunsDetail/cancelRelease",payload:{id:_t==null?void 0:_t.identifier}})).status!==401&&(Xt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Kt({type:"shixunsDetail/getShixunsDetail",payload:{id:_t==null?void 0:_t.identifier}}),Kt({type:"practiceSetting/getCommonData",payload:{id:_t==null?void 0:_t.identifier}}))})})}}),!0):!1}},93125:function(Nn,Ln,Gt){(function(Rt){if(1)window.OSS=Rt(),Nn.exports=Rt();else var yt})(function(){var Rt;return function(){function yt(Vt,Xt,kt){function Wt(Bt,Ct){if(!Xt[Bt]){if(!Vt[Bt]){var bt=void 0;if(!Ct&&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=Xt[Bt]={exports:{}};Vt[Bt][0].call(It.exports,function(vt){return Wt(Vt[Bt][1][vt]||vt)},It,It.exports,yt,Vt,Xt,kt)}return Xt[Bt].exports}for(var xt=void 0,Ot=0;Ot0?ee["Content-Type"]=Qt.mime:ee["Content-Type"]=pt.getType(Qt.mime||ut.extname(Qt.object||""))||"application/octet-stream"),Qt.content&&(ee["Content-Md5"]=rt.createHash("md5").update(new Wt(Qt.content,"utf8")).digest("base64"),ee["Content-Length"]||(ee["Content-Length"]=Qt.content.length));var ae=this._getResource(Qt);ee.authorization=this.authorization(Qt.method,ae,Qt.subres,ee);var de=this._getReqUrl(Qt);st("request %s %s, with headers %j, !!stream: %s",Qt.method,de,ee,!!Qt.stream);var se=Qt.timeout||this.options.timeout;return{url:de,params:{agent:this.agent,method:Qt.method,content:Qt.content,stream:Qt.stream,headers:ee,timeout:se,writeStream:Qt.writeStream,customResponse:Qt.customResponse,ctx:Qt.ctx||this.ctx}}},fe.request=vt.default.mark(function Qt(ee){var ae,de,se,Ie;return vt.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ae=this.createRequest(ee),de=void 0,se=void 0,De.prev=3,De.next=6,this.urllib.request(ae.url,ae.params);case 6:de=De.sent,st("response %s %s, got %s, headers: %j",ee.method,ae.url,de.status,de.headers),De.next=13;break;case 10:De.prev=10,De.t0=De.catch(3),se=De.t0;case 13:if(Ie=void 0,!de||!ee.successStatuses||ee.successStatuses.indexOf(de.status)!==-1){De.next=26;break}return De.next=17,this.requestError(de);case 17:if(Ie=De.sent,Ie.code!=="RequestTimeTooSkewed"){De.next=23;break}return this.options.amendTimeSkewed=+new Date(Ie.serverTime)-new Date,De.next=22,this.request(ee);case 22:return De.abrupt("return",De.sent);case 23:Ie.params=ee,De.next=30;break;case 26:if(!se){De.next=30;break}return De.next=29,this.requestError(se);case 29:Ie=De.sent;case 30:if(!Ie){De.next=32;break}throw Ie;case 32:if(!ee.xmlResponse){De.next=36;break}return De.next=35,this.parseXML(de.data);case 35:de.data=De.sent;case 36:return De.abrupt("return",de);case 37:case"end":return De.stop()}},Qt,this,[[3,10]])}),fe._getResource=function(Qt){var ee="/";return Qt.bucket&&(ee+=Qt.bucket+"/"),Qt.object&&(ee+=Qt.object),ee},fe._isIP=function(Qt){return pe._isIP(Qt)},fe._escape=function(Qt){return Ut.encodeURIComponent(Qt).replace(/%2F/g,"/")},fe._getReqUrl=function(Qt){var ee={};ct(this.options.endpoint).to(ee);var ae=this._isIP(ee.hostname),de=this.options.cname;!Qt.bucket||de||ae||(ee.host=Qt.bucket+"."+ee.host);var se="/";Qt.bucket&&ae&&(se+=Qt.bucket+"/"),Qt.object&&(se+=this._escape(Qt.object).replace(/\+/g,"%2B")),ee.pathname=se;var Ie={};if(Qt.query&&Kt(Ie,Qt.query),Qt.subres){var De={};_t.string(Qt.subres)?De[Qt.subres]="":_t.array(Qt.subres)?Qt.subres.forEach(function(en){De[en]=""}):De=Qt.subres,Kt(Ie,De)}return ee.query=Ie,Dt.format(ee)},fe._getUserAgent=function(){var Qt=kt&&kt.browser?"js":"nodejs",ee="aliyun-sdk-"+Qt+"/"+oe.version,ae=qt.description;return!ae&&kt&&(ae="Node.js "+kt.version.slice(1)+" on "+kt.platform+" "+kt.arch),this._checkUserAgent(ee+" "+ae)},fe._checkUserAgent=function(Qt){return Qt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},fe.checkBrowserAndVersion=function(Qt,ee){return ve.name===Qt&&ve.version.split(".")[0]===ee},fe.parseXML=function(Qt){return function(ee){Wt.isBuffer(Qt)&&(Qt=Qt.toString()),mt.parseString(Qt,{explicitRoot:!1,explicitArray:!1},ee)}},fe.requestError=vt.default.mark(function Qt(ee){var ae,de,se,Ie;return vt.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(ae=null,ee.data&&ee.data.length){De.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=""),De.next=30;break;case 5:return de=String(ee.data),st("request response error data: %s",de),se=void 0,De.prev=8,De.next=11,this.parseXML(de)||{};case 11:se=De.sent,De.next=21;break;case 14:return De.prev=14,De.t0=De.catch(8),st(de),De.t0.message+=` raw xml: `+de,De.t0.status=ee.status,De.t0.requestId=ee.headers["x-oss-request-id"],De.abrupt("return",De.t0);case 21:Ie=se.Message||"unknow request error, status: "+ee.status,se.Condition&&(Ie+=" (condition: "+se.Condition+")"),ae=new Error(Ie),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),De.abrupt("return",ae);case 32:case"end":return De.stop()}},Qt,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,Xt){(function(kt){"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),Ct=yt("babel-runtime/regenerator"),bt=Wt(Ct),Tt=yt("is-type-of"),It=yt("util"),vt=yt("path"),et=yt("mime"),tt=yt("copy-to"),st=Xt;st.multipartUpload=bt.default.mark(function ct(pt,mt,Et){var Ft,Kt,Dt,_t,qt,Ut,ue,oe,Pe;return bt.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(this.resetCancelFlag(),Et=Et||{},!Et.checkpoint||!Et.checkpoint.uploadId){ve.next=6;break}return ve.next=5,this._resumeMultipart(Et.checkpoint,Et);case 5:return ve.abrupt("return",ve.sent);case 6:return Ft=102400,Et.mime||(Tt.file(mt)?Et.mime=et.getType(vt.extname(mt.name)):Tt.blob(mt)?Et.mime=mt.type:Et.mime=et.getType(vt.extname(mt))),Et.headers=Et.headers||{},this._convertMetaToHeaders(Et.meta,Et.headers),ve.next=12,this._getFileSize(mt);case 12:if(!((Kt=ve.sent)0&&tt(_t).to(Ut),ue=this._divideParts(Ft,Kt),oe=ue.length,Pe=!1,ve=bt.default.mark(function en(Ue,nn){var Ne,Be,je;return bt.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(Ue.isCancel()){ze.next=21;break}return ze.prev=1,Ne=ue[nn-1],Be={stream:Ue._createStream(Et,Ne.start,Ne.end),size:Ne.end-Ne.start},ze.next=6,Ue._uploadPart(qt,Dt,nn,Be);case 6:if(je=ze.sent,Ue.isCancel()||Pe){ze.next=13;break}if(pt.doneParts.push({number:nn,etag:je.res.headers.etag}),Ut.push({number:nn,etag:je.res.headers.etag}),!mt||!mt.progress){ze.next=13;break}return ze.next=13,mt.progress(_t.length/oe,pt,je.res);case 13:ze.next=21;break;case 15:if(ze.prev=15,ze.t0=ze.catch(1),Ue.isCancel()){ze.next=21;break}throw Ue.cancel(),ze.t0.partNum=nn,ze.t0;case 21:case"end":return ze.stop()}},en,this,[[1,15]])}),Oe=(0,Bt.default)(new Array(oe),function(en,Ue){return Ue+1}),pe=Ut.map(function(en){return en.number}),Ke=Oe.filter(function(en){return pe.indexOf(en)<0}),fe=5,Qt=mt.parallel||fe,!this.checkBrowserAndVersion("Internet Explorer","10")&&Qt!==1){De.next=26;break}ee=0;case 16:if(!(ee0)){De.next=37;break}throw this.resetCancelFlag(),Ie=se[0],Ie.message="Failed to upload some parts with error: "+Ie.toString()+" part_num: "+Ie.partNum,Ie;case 37:if(!this.isCancel()){De.next=40;break}throw ae=null,this._makeCancelEvent();case 40:return De.next=42,this.completeMultipartUpload(qt,Dt,Ut,mt);case 42:return De.abrupt("return",De.sent);case 43:case"end":return De.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(Et){for(;;)switch(Et.prev=Et.next){case 0:if(!Tt.buffer(pt)){Et.next=4;break}return Et.abrupt("return",pt.length);case 4:if(!Tt.blob(pt)&&!Tt.file(pt)){Et.next=6;break}return Et.abrupt("return",pt.size);case 6:if(!Tt.string(pt)){Et.next=11;break}return Et.next=9,this._statFile(pt);case 9:return mt=Et.sent,Et.abrupt("return",mt.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return Et.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:Et,this.start=Et,pt=this.push(this.fileBuffer.slice(mt,Et))}},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 kt(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),Et=[],Ft=0;Ft `,Et.quiet?Ft+=` true `:Ft+=` false `,Kt=0;Kt"+bt.escape(this._objectName(mt[Kt]))+` `;return Ft+="",Ct("delete multi objects: %s",Ft),Et.subres="delete",Dt=this._objectRequestParams("POST","",Et),Dt.mime="xml",Dt.content=Ft,Dt.xmlResponse=!0,Dt.successStatuses=[200],ue.next=14,this.request(Dt);case 14:return _t=ue.sent,qt=_t.data,Ut=qt&&qt.Deleted||null,Ut&&(Array.isArray(Ut)||(Ut=[Ut]),Ut=Ut.map(function(oe){return oe.Key})),ue.abrupt("return",{res:_t.res,deleted:Ut});case 19:case"end":return ue.stop()}},pt,this)}),ct.copy=Bt.default.mark(function pt(mt,Et,Ft){var Kt,Dt,_t;return Bt.default.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Ft=Ft||{},Ft.headers=Ft.headers||{},(0,xt.default)(Ft.headers).forEach(function(Ut){Ft.headers["x-oss-copy-source-"+Ut.toLowerCase()]=Ft.headers[Ut]}),Ft.meta&&(Ft.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Ft.meta,Ft.headers),Et=Et[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(Et):"/"+encodeURIComponent(Et.slice(1)),Ft.headers["x-oss-copy-source"]=Et,Kt=this._objectRequestParams("PUT",mt,Ft),Kt.xmlResponse=!0,Kt.successStatuses=[200,304],qt.next=12,this.request(Kt);case 12:return Dt=qt.sent,_t=Dt.data,_t&&(_t={etag:_t.ETag,lastModified:_t.LastModified}),qt.abrupt("return",{data:_t,res:Dt.res});case 16:case"end":return qt.stop()}},pt,this)}),ct.putMeta=Bt.default.mark(function pt(mt,Et,Ft){return Bt.default.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,this.copy(mt,mt,{meta:Et||{},timeout:Ft&&Ft.timeout,ctx:Ft&&Ft.ctx});case 2:return Kt.abrupt("return",Kt.sent);case 3:case"end":return Kt.stop()}},pt,this)}),ct.list=Bt.default.mark(function pt(mt,Et){var Ft,Kt,Dt,_t,qt;return Bt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ft=this._objectRequestParams("GET","",Et),Ft.query=mt,Ft.xmlResponse=!0,Ft.successStatuses=[200],Ut.next=6,this.request(Ft);case 6:return Kt=Ut.sent,Dt=Kt.data.Contents,_t=this,Dt&&(Array.isArray(Dt)||(Dt=[Dt]),Dt=Dt.map(function(ue){return{name:ue.Key,url:_t._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}}})),qt=Kt.data.CommonPrefixes||null,qt&&(Array.isArray(qt)||(qt=[qt]),qt=qt.map(function(ue){return ue.Prefix})),Ut.abrupt("return",{res:Kt.res,objects:Dt,prefixes:qt,nextMarker:Kt.data.NextMarker||null,isTruncated:Kt.data.IsTruncated==="true"});case 13:case"end":return Ut.stop()}},pt,this)}),ct.putACL=Bt.default.mark(function pt(mt,Et,Ft){var Kt,Dt;return Bt.default.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return Ft=Ft||{},Ft.subres="acl",Ft.headers=Ft.headers||{},Ft.headers["x-oss-object-acl"]=Et,mt=this._objectName(mt),Kt=this._objectRequestParams("PUT",mt,Ft),Kt.successStatuses=[200],_t.next=9,this.request(Kt);case 9:return Dt=_t.sent,_t.abrupt("return",{res:Dt.res});case 11:case"end":return _t.stop()}},pt,this)}),ct.getACL=Bt.default.mark(function pt(mt,Et){var Ft,Kt;return Bt.default.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Et=Et||{},Et.subres="acl",mt=this._objectName(mt),Ft=this._objectRequestParams("GET",mt,Et),Ft.successStatuses=[200],Ft.xmlResponse=!0,Dt.next=8,this.request(Ft);case 8:return Kt=Dt.sent,Dt.abrupt("return",{acl:Kt.data.AccessControlList.Grant,owner:{id:Kt.data.Owner.ID,displayName:Kt.data.Owner.DisplayName},res:Kt.res});case 10:case"end":return Dt.stop()}},pt,this)}),ct.restore=Bt.default.mark(function pt(mt,Et){var Ft,Kt;return Bt.default.wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:return Et=Et||{},Et.subres="restore",Ft=this._objectRequestParams("POST",mt,Et),Ft.successStatuses=[202],Dt.next=6,this.request(Ft);case 6:return Kt=Dt.sent,Dt.abrupt("return",{res:Kt.res});case 8:case"end":return Dt.stop()}},pt,this)}),ct.signatureUrl=function(pt,mt){mt=mt||{},pt=this._objectName(pt),mt.method=mt.method||"GET";var Et=bt.timestamp()+(mt.expires||1800),Ft={bucket:this.options.bucket,object:pt},Kt=this._getResource(Ft);this.options.stsToken&&(mt["security-token"]=this.options.stsToken);var Dt=ut._signatureForURL(this.options.accessKeySecret,mt,Kt,Et),_t=vt.parse(this._getReqUrl(Ft));return _t.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Et,Signature:Dt.Signature},et(Dt.subResource).to(_t.query),_t.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 Et=vt.parse(mt),Ft=this.options.bucket;Et.hostname=Ft+"."+Et.hostname,Et.host=Ft+"."+Et.host,mt=Et.format()}return mt+this._escape(this._objectName(pt))},ct._objectRequestParams=function(pt,mt,Et){if(!this.options.bucket)throw new Error("Please create a bucket first");Et=Et||{},mt=this._objectName(mt);var Ft={object:mt,bucket:this.options.bucket,method:pt,subres:Et&&Et.subres,timeout:Et&&Et.timeout,ctx:Et&&Et.ctx};return Et.headers&&(Ft.headers={},et(Et.headers).to(Ft.headers)),Ft},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(Et){mt["x-oss-meta-"+Et]=pt[Et]})},ct._deleteFileSafe=function(pt){return function(mt){Tt.exists(pt,function(Et){Et?Tt.unlink(pt,function(Ft){Ft&&Ct("unlink %j error: %s",pt,Ft),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,Xt){"use strict";Xt.version="5.3.1"},{}],6:[function(yt,Vt,Xt){"use strict";function kt(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 Ct=yt("babel-runtime/core-js/object/get-prototype-of"),bt=kt(Ct),Tt=yt("babel-runtime/core-js/object/keys"),It=kt(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,Xt){(function(kt){"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"),Ct=Wt(Bt);Xt.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 kt((0,Ct.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 kt((0,Ct.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,Xt){"use strict";var kt=yt("babel-runtime/regenerator"),Wt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(kt),xt=yt("copy-to"),Ot=yt("./callback"),Bt=Xt;Bt.listUploads=Wt.default.mark(function Ct(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()}},Ct,this)}),Bt.listParts=Wt.default.mark(function Ct(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()}},Ct,this)}),Bt.abortMultipartUpload=Wt.default.mark(function Ct(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()}},Ct,this)}),Bt.initMultipartUpload=Wt.default.mark(function Ct(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()}},Ct,this)}),Bt.uploadPart=Wt.default.mark(function Ct(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()}},Ct,this)}),Bt.completeMultipartUpload=Wt.default.mark(function Ct(bt,Tt,It,vt){var et,tt,st,rt,ut,ct,pt,mt;return Wt.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:for(et=It.concat().sort(function(Ft,Kt){return Ft.number-Kt.number}).filter(function(Ft,Kt,Dt){return!Kt||Ft.number!==Dt[Kt-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],Et.next=16,this.request(ct);case 16:return pt=Et.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())),Et.abrupt("return",mt);case 20:case"end":return Et.stop()}},Ct,this)}),Bt._uploadPart=Wt.default.mark(function Ct(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()}},Ct,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(yt,Vt,Xt){(function(kt){"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"),Ct=Wt(Bt),bt=yt("./../../shims/crypto/crypto.js"),Tt=yt("is-type-of");Xt.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=kt(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=kt(rt),pt=ct[0],mt=ct[1],Et=new vt(xt(rt,pt,mt)),Ft=0,Kt=mt>0?pt-4:pt,Dt=0;Dt>16&255,Et[Ft++]=ut>>8&255,Et[Ft++]=255&ut;return mt===2&&(ut=It[rt.charCodeAt(Dt)]<<2|It[rt.charCodeAt(Dt+1)]>>4,Et[Ft++]=255&ut),mt===1&&(ut=It[rt.charCodeAt(Dt)]<<10|It[rt.charCodeAt(Dt+1)]<<4|It[rt.charCodeAt(Dt+2)]>>2,Et[Ft++]=ut>>8&255,Et[Ft++]=255&ut),Et}function Bt(rt){return Tt[rt>>18&63]+Tt[rt>>12&63]+Tt[rt>>6&63]+Tt[63&rt]}function Ct(rt,ut,ct){for(var pt,mt=[],Et=ut;EtFt?Ft:Et+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("")}Xt.byteLength=Wt,Xt.toByteArray=Ot,Xt.fromByteArray=bt;for(var Tt=[],It=[],vt=typeof Uint8Array!="undefined"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,st=et.length;tt1&&ee[1]||""}function et(Qt){var ee=It.match(Qt);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),Et=/silk/i.test(It),Ft=/sailfish/i.test(It),Kt=/tizen/i.test(It),Dt=/(web|hpw)os/i.test(It),_t=/windows phone/i.test(It),qt=(/SamsungBrowser/i.test(It),!_t&&/windows/i.test(It)),Ut=!st&&!Et&&/macintosh/i.test(It),ue=!ut&&!Ft&&!Kt&&!Dt&&/linux/i.test(It),oe=et(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Pe=vt(/version\/(\d+(\.\d+)?)/i),ve=/tablet/i.test(It)&&!/tablet pc/i.test(It),Oe=!ve&&/[^-]mobi/i.test(It),pe=/xbox/i.test(It);/opera/i.test(It)?tt={name:"Opera",opera:bt,version:Pe||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)||Pe}:/SamsungBrowser/i.test(It)?tt={name:"Samsung Internet for Android",samsungBrowser:bt,version:Pe||vt(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(It)?tt={name:"Opera Coast",coast:bt,version:Pe||vt(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(It)?tt={name:"Yandex Browser",yandexbrowser:bt,version:Pe||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)}:_t?(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)||Pe}:Ft?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")):Et?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:Pe||vt(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Dt?(tt={name:"WebOS",osname:"WebOS",webos:bt,version:Pe||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)}:Kt?tt={name:"Tizen",osname:"Tizen",tizen:bt,version:vt(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Pe}:/qupzilla/i.test(It)?tt={name:"QupZilla",qupzilla:bt,version:vt(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Pe}:/chromium/i.test(It)?tt={name:"Chromium",chromium:bt,version:vt(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Pe}:/chrome|crios|crmo/i.test(It)?tt={name:"Chrome",chrome:bt,version:vt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ut?tt={name:"Android",version:Pe}:/safari|applewebkit/i.test(It)?(tt={name:"Safari",safari:bt},Pe&&(tt.version=Pe)):st?(tt={name:st=="iphone"?"iPhone":st=="ipad"?"iPad":"iPod"},Pe&&(tt.version=Pe)):tt=/googlebot/i.test(It)?{name:"Googlebot",googlebot:bt,version:vt(/googlebot\/(\d+(\.\d+))/i)||Pe}:{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&&Pe&&(tt.version=Pe)):!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"):Ut?(tt.mac=bt,tt.osname="macOS"):pe?(tt.xbox=bt,tt.osname="Xbox"):qt?(tt.windows=bt,tt.osname="Windows"):ue&&(tt.linux=bt,tt.osname="Linux"):(tt.android=bt,tt.osname="Android");var Ke="";tt.windows?Ke=function(Qt){switch(Qt){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?Ke=vt(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):tt.mac?(Ke=vt(/Mac OS X (\d+([_\.\s]\d+)*)/i),Ke=Ke.replace(/[_\s]/g,".")):st?(Ke=vt(/os (\d+([_\s]\d+)*) like mac os x/i),Ke=Ke.replace(/[_\s]/g,".")):ut?Ke=vt(/android[ \/-](\d+(\.\d+)*)/i):tt.webos?Ke=vt(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):tt.blackberry?Ke=vt(/rim\stablet\sos\s(\d+(\.\d+)*)/i):tt.bada?Ke=vt(/bada\/(\d+(\.\d+)*)/i):tt.tizen&&(Ke=vt(/tizen[\/\s](\d+(\.\d+)*)/i)),Ke&&(tt.osversion=Ke);var fe=!tt.windows&&Ke.split(".")[0];return ve||pt||st=="ipad"||ut&&(fe==3||fe>=4&&!Oe)||tt.silk?tt.tablet=bt:(Oe||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=kt(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 Ct(It,vt,et){return!Bt(It,vt,et)}var bt=!0,Tt=kt(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,Xt){(function(kt){"use strict";function Wt(){return Ot.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function xt(Mt,At){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,At){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(At){case"ascii":case"latin1":case"binary":return Ht;case"utf8":case"utf-8":case void 0:return nn(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 nn(Mt).length;At=(""+At).toLowerCase(),Pt=!0}}function ct(Mt,At,Ht){var Pt=!1;if((At===void 0||At<0)&&(At=0),At>this.length||((Ht===void 0||Ht>this.length)&&(Ht=this.length),Ht<=0)||(Ht>>>=0,At>>>=0,Ht<=At))return"";for(Mt||(Mt="utf8");;)switch(Mt){case"hex":return pe(this,At,Ht);case"utf8":case"utf-8":return oe(this,At,Ht);case"ascii":return ve(this,At,Ht);case"latin1":case"binary":return Oe(this,At,Ht);case"base64":return ue(this,At,Ht);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ke(this,At,Ht);default:if(Pt)throw new TypeError("Unknown encoding: "+Mt);Mt=(Mt+"").toLowerCase(),Pt=!0}}function pt(Mt,At,Ht){var Pt=Mt[At];Mt[At]=Mt[Ht],Mt[Ht]=Pt}function mt(Mt,At,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 At=="string"&&(At=Ot.from(At,Pt)),Ot.isBuffer(At))return At.length===0?-1:Et(Mt,At,Ht,Pt,dt);if(typeof At=="number")return At&=255,Ot.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?dt?Uint8Array.prototype.indexOf.call(Mt,At,Ht):Uint8Array.prototype.lastIndexOf.call(Mt,At,Ht):Et(Mt,[At],Ht,Pt,dt);throw new TypeError("val must be string, number or Buffer")}function Et(Mt,At,Ht,Pt,dt){function gt(Re,dn){return jt===1?Re[dn]:Re.readUInt16BE(dn*jt)}var jt=1,re=Mt.length,Zt=At.length;if(Pt!==void 0&&((Pt=String(Pt).toLowerCase())==="ucs2"||Pt==="ucs-2"||Pt==="utf16le"||Pt==="utf-16le")){if(Mt.length<2||At.length<2)return-1;jt=2,re/=2,Zt/=2,Ht/=2}var Se;if(dt){var Xe=-1;for(Se=Ht;Sere&&(Ht=re-Zt),Se=Ht;Se>=0;Se--){for(var tn=!0,Te=0;Tedt&&(Pt=dt):Pt=dt;var gt=At.length;if(gt%2!=0)throw new TypeError("Invalid hex string");Pt>gt/2&&(Pt=gt/2);for(var jt=0;jt239?4:gt>223?3:gt>191?2:1;if(dt+re<=Ht){var Zt,Se,Xe,tn;switch(re){case 1:gt<128&&(jt=gt);break;case 2:Zt=Mt[dt+1],(192&Zt)==128&&(tn=(31>)<<6|63&Zt)>127&&(jt=tn);break;case 3:Zt=Mt[dt+1],Se=Mt[dt+2],(192&Zt)==128&&(192&Se)==128&&(tn=(15>)<<12|(63&Zt)<<6|63&Se)>2047&&(tn<55296||tn>57343)&&(jt=tn);break;case 4:Zt=Mt[dt+1],Se=Mt[dt+2],Xe=Mt[dt+3],(192&Zt)==128&&(192&Se)==128&&(192&Xe)==128&&(tn=(15>)<<18|(63&Zt)<<12|(63&Se)<<6|63&Xe)>65535&&tn<1114112&&(jt=tn)}}jt===null?(jt=65533,re=1):jt>65535&&(jt-=65536,Pt.push(jt>>>10&1023|55296),jt=56320|1023&jt),Pt.push(jt),dt+=re}return Pe(Pt)}function Pe(Mt){var At=Mt.length;if(At<=he)return String.fromCharCode.apply(String,Mt);for(var Ht="",Pt=0;PtPt)&&(Ht=Pt);for(var dt="",gt=At;gtHt)throw new RangeError("Trying to access beyond buffer length")}function Qt(Mt,At,Ht,Pt,dt,gt){if(!Ot.isBuffer(Mt))throw new TypeError('"buffer" argument must be a Buffer instance');if(At>dt||AtMt.length)throw new RangeError("Index out of range")}function ee(Mt,At,Ht,Pt){At<0&&(At=65535+At+1);for(var dt=0,gt=Math.min(Mt.length-Ht,2);dt>>8*(Pt?dt:1-dt)}function ae(Mt,At,Ht,Pt){At<0&&(At=4294967295+At+1);for(var dt=0,gt=Math.min(Mt.length-Ht,4);dt>>8*(Pt?dt:3-dt)&255}function de(Mt,At,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,At,Ht,Pt,dt){return dt||de(Mt,At,Ht,4,34028234663852886e22,-34028234663852886e22),Ae.write(Mt,At,Ht,Pt,23,4),Ht+4}function Ie(Mt,At,Ht,Pt,dt){return dt||de(Mt,At,Ht,8,17976931348623157e292,-17976931348623157e292),Ae.write(Mt,At,Ht,Pt,52,8),Ht+8}function De(Mt){if(Mt=en(Mt).replace(Jt,""),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 Ue(Mt){return Mt<16?"0"+Mt.toString(16):Mt.toString(16)}function nn(Mt,At){At=At||1/0;for(var Ht,Pt=Mt.length,dt=null,gt=[],jt=0;jt55295&&Ht<57344){if(!dt){if(Ht>56319){(At-=3)>-1&>.push(239,191,189);continue}if(jt+1===Pt){(At-=3)>-1&>.push(239,191,189);continue}dt=Ht;continue}if(Ht<56320){(At-=3)>-1&>.push(239,191,189),dt=Ht;continue}Ht=65536+(dt-55296<<10|Ht-56320)}else dt&&(At-=3)>-1&>.push(239,191,189);if(dt=null,Ht<128){if((At-=1)<0)break;gt.push(Ht)}else if(Ht<2048){if((At-=2)<0)break;gt.push(Ht>>6|192,63&Ht|128)}else if(Ht<65536){if((At-=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((At-=4)<0)break;gt.push(Ht>>18|240,Ht>>12&63|128,Ht>>6&63|128,63&Ht|128)}}return gt}function Ne(Mt){for(var At=[],Ht=0;Ht>8,dt=Ht%256,gt.push(dt),gt.push(Pt);return gt}function je(Mt){return le.toByteArray(De(Mt))}function ze(Mt,At,Ht,Pt){for(var dt=0;dt=At.length||dt>=Mt.length);++dt)At[dt+Ht]=Mt[dt];return dt}function xe(Mt){return Mt!==Mt}var le=yt("base64-js"),Ae=yt("ieee754"),ce=yt("isarray");Xt.Buffer=Ot,Xt.SlowBuffer=rt,Xt.INSPECT_MAX_BYTES=50,Ot.TYPED_ARRAY_SUPPORT=kt.TYPED_ARRAY_SUPPORT!==void 0?kt.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(At){return!1}}(),Xt.kMaxLength=Wt(),Ot.poolSize=8192,Ot._augment=function(Mt){return Mt.__proto__=Ot.prototype,Mt},Ot.from=function(Mt,At,Ht){return Bt(null,Mt,At,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,At,Ht){return bt(null,Mt,At,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,At){if(!Ot.isBuffer(Mt)||!Ot.isBuffer(At))throw new TypeError("Arguments must be Buffers");if(Mt===At)return 0;for(var Ht=Mt.length,Pt=At.length,dt=0,gt=Math.min(Ht,Pt);dt0&&(Mt=this.toString("hex",0,At).match(/.{2}/g).join(" "),this.length>At&&(Mt+=" ... ")),""},Ot.prototype.compare=function(Mt,At,Ht,Pt,dt){if(!Ot.isBuffer(Mt))throw new TypeError("Argument must be a Buffer");if(At===void 0&&(At=0),Ht===void 0&&(Ht=Mt?Mt.length:0),Pt===void 0&&(Pt=0),dt===void 0&&(dt=this.length),At<0||Ht>Mt.length||Pt<0||dt>this.length)throw new RangeError("out of range index");if(Pt>=dt&&At>=Ht)return 0;if(Pt>=dt)return-1;if(At>=Ht)return 1;if(At>>>=0,Ht>>>=0,Pt>>>=0,dt>>>=0,this===Mt)return 0;for(var gt=dt-Pt,jt=Ht-At,re=Math.min(gt,jt),Zt=this.slice(Pt,dt),Se=Mt.slice(At,Ht),Xe=0;Xedt)&&(Ht=dt),Mt.length>0&&(Ht<0||At<0)||At>this.length)throw new RangeError("Attempt to write outside buffer bounds");Pt||(Pt="utf8");for(var gt=!1;;)switch(Pt){case"hex":return Ft(this,Mt,At,Ht);case"utf8":case"utf-8":return Kt(this,Mt,At,Ht);case"ascii":return Dt(this,Mt,At,Ht);case"latin1":case"binary":return _t(this,Mt,At,Ht);case"base64":return qt(this,Mt,At,Ht);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ut(this,Mt,At,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,At){var Ht=this.length;Mt=~~Mt,At=At===void 0?Ht:~~At,Mt<0?(Mt+=Ht)<0&&(Mt=0):Mt>Ht&&(Mt=Ht),At<0?(At+=Ht)<0&&(At=0):At>Ht&&(At=Ht),At0&&(dt*=256);)Pt+=this[Mt+--At]*dt;return Pt},Ot.prototype.readUInt8=function(Mt,At){return At||fe(Mt,1,this.length),this[Mt]},Ot.prototype.readUInt16LE=function(Mt,At){return At||fe(Mt,2,this.length),this[Mt]|this[Mt+1]<<8},Ot.prototype.readUInt16BE=function(Mt,At){return At||fe(Mt,2,this.length),this[Mt]<<8|this[Mt+1]},Ot.prototype.readUInt32LE=function(Mt,At){return At||fe(Mt,4,this.length),(this[Mt]|this[Mt+1]<<8|this[Mt+2]<<16)+16777216*this[Mt+3]},Ot.prototype.readUInt32BE=function(Mt,At){return At||fe(Mt,4,this.length),16777216*this[Mt]+(this[Mt+1]<<16|this[Mt+2]<<8|this[Mt+3])},Ot.prototype.readIntLE=function(Mt,At,Ht){Mt|=0,At|=0,Ht||fe(Mt,At,this.length);for(var Pt=this[Mt],dt=1,gt=0;++gt=dt&&(Pt-=Math.pow(2,8*At)),Pt},Ot.prototype.readIntBE=function(Mt,At,Ht){Mt|=0,At|=0,Ht||fe(Mt,At,this.length);for(var Pt=At,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*At)),gt},Ot.prototype.readInt8=function(Mt,At){return At||fe(Mt,1,this.length),128&this[Mt]?-1*(255-this[Mt]+1):this[Mt]},Ot.prototype.readInt16LE=function(Mt,At){At||fe(Mt,2,this.length);var Ht=this[Mt]|this[Mt+1]<<8;return 32768&Ht?4294901760|Ht:Ht},Ot.prototype.readInt16BE=function(Mt,At){At||fe(Mt,2,this.length);var Ht=this[Mt+1]|this[Mt]<<8;return 32768&Ht?4294901760|Ht:Ht},Ot.prototype.readInt32LE=function(Mt,At){return At||fe(Mt,4,this.length),this[Mt]|this[Mt+1]<<8|this[Mt+2]<<16|this[Mt+3]<<24},Ot.prototype.readInt32BE=function(Mt,At){return At||fe(Mt,4,this.length),this[Mt]<<24|this[Mt+1]<<16|this[Mt+2]<<8|this[Mt+3]},Ot.prototype.readFloatLE=function(Mt,At){return At||fe(Mt,4,this.length),Ae.read(this,Mt,!0,23,4)},Ot.prototype.readFloatBE=function(Mt,At){return At||fe(Mt,4,this.length),Ae.read(this,Mt,!1,23,4)},Ot.prototype.readDoubleLE=function(Mt,At){return At||fe(Mt,8,this.length),Ae.read(this,Mt,!0,52,8)},Ot.prototype.readDoubleBE=function(Mt,At){return At||fe(Mt,8,this.length),Ae.read(this,Mt,!1,52,8)},Ot.prototype.writeUIntLE=function(Mt,At,Ht,Pt){Mt=+Mt,At|=0,Ht|=0,!Pt&&Qt(this,Mt,At,Ht,Math.pow(2,8*Ht)-1,0);var dt=1,gt=0;for(this[At]=255&Mt;++gt=0&&(gt*=256);)this[At+dt]=Mt/gt&255;return At+Ht},Ot.prototype.writeUInt8=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,1,255,0),Ot.TYPED_ARRAY_SUPPORT||(Mt=Math.floor(Mt)),this[At]=255&Mt,At+1},Ot.prototype.writeUInt16LE=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,2,65535,0),Ot.TYPED_ARRAY_SUPPORT?(this[At]=255&Mt,this[At+1]=Mt>>>8):ee(this,Mt,At,!0),At+2},Ot.prototype.writeUInt16BE=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,2,65535,0),Ot.TYPED_ARRAY_SUPPORT?(this[At]=Mt>>>8,this[At+1]=255&Mt):ee(this,Mt,At,!1),At+2},Ot.prototype.writeUInt32LE=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,4,4294967295,0),Ot.TYPED_ARRAY_SUPPORT?(this[At+3]=Mt>>>24,this[At+2]=Mt>>>16,this[At+1]=Mt>>>8,this[At]=255&Mt):ae(this,Mt,At,!0),At+4},Ot.prototype.writeUInt32BE=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,4,4294967295,0),Ot.TYPED_ARRAY_SUPPORT?(this[At]=Mt>>>24,this[At+1]=Mt>>>16,this[At+2]=Mt>>>8,this[At+3]=255&Mt):ae(this,Mt,At,!1),At+4},Ot.prototype.writeIntLE=function(Mt,At,Ht,Pt){if(Mt=+Mt,At|=0,!Pt){var dt=Math.pow(2,8*Ht-1);Qt(this,Mt,At,Ht,dt-1,-dt)}var gt=0,jt=1,re=0;for(this[At]=255&Mt;++gt>0)-re&255;return At+Ht},Ot.prototype.writeIntBE=function(Mt,At,Ht,Pt){if(Mt=+Mt,At|=0,!Pt){var dt=Math.pow(2,8*Ht-1);Qt(this,Mt,At,Ht,dt-1,-dt)}var gt=Ht-1,jt=1,re=0;for(this[At+gt]=255&Mt;--gt>=0&&(jt*=256);)Mt<0&&re===0&&this[At+gt+1]!==0&&(re=1),this[At+gt]=(Mt/jt>>0)-re&255;return At+Ht},Ot.prototype.writeInt8=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,1,127,-128),Ot.TYPED_ARRAY_SUPPORT||(Mt=Math.floor(Mt)),Mt<0&&(Mt=255+Mt+1),this[At]=255&Mt,At+1},Ot.prototype.writeInt16LE=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,2,32767,-32768),Ot.TYPED_ARRAY_SUPPORT?(this[At]=255&Mt,this[At+1]=Mt>>>8):ee(this,Mt,At,!0),At+2},Ot.prototype.writeInt16BE=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,2,32767,-32768),Ot.TYPED_ARRAY_SUPPORT?(this[At]=Mt>>>8,this[At+1]=255&Mt):ee(this,Mt,At,!1),At+2},Ot.prototype.writeInt32LE=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,4,2147483647,-2147483648),Ot.TYPED_ARRAY_SUPPORT?(this[At]=255&Mt,this[At+1]=Mt>>>8,this[At+2]=Mt>>>16,this[At+3]=Mt>>>24):ae(this,Mt,At,!0),At+4},Ot.prototype.writeInt32BE=function(Mt,At,Ht){return Mt=+Mt,At|=0,Ht||Qt(this,Mt,At,4,2147483647,-2147483648),Mt<0&&(Mt=4294967295+Mt+1),Ot.TYPED_ARRAY_SUPPORT?(this[At]=Mt>>>24,this[At+1]=Mt>>>16,this[At+2]=Mt>>>8,this[At+3]=255&Mt):ae(this,Mt,At,!1),At+4},Ot.prototype.writeFloatLE=function(Mt,At,Ht){return se(this,Mt,At,!0,Ht)},Ot.prototype.writeFloatBE=function(Mt,At,Ht){return se(this,Mt,At,!1,Ht)},Ot.prototype.writeDoubleLE=function(Mt,At,Ht){return Ie(this,Mt,At,!0,Ht)},Ot.prototype.writeDoubleBE=function(Mt,At,Ht){return Ie(this,Mt,At,!1,Ht)},Ot.prototype.copy=function(Mt,At,Ht,Pt){if(Ht||(Ht=0),Pt||Pt===0||(Pt=this.length),At>=Mt.length&&(At=Mt.length),At||(At=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-At=0;--dt)Mt[dt+At]=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=At;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]===Ct)return Ot||et||0;return!Ot&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(yt,Vt,Xt){var kt=yt("./_cof"),Wt=yt("./_wks")("toStringTag"),xt=kt(function(){return arguments}())=="Arguments",Ot=function(Bt,Ct){try{return Bt[Ct]}catch(bt){}};Vt.exports=function(Bt){var Ct,bt,Tt;return Bt===void 0?"Undefined":Bt===null?"Null":typeof(bt=Ot(Ct=Object(Bt),Wt))=="string"?bt:xt?kt(Ct):(Tt=kt(Ct))=="Object"&&typeof Ct.callee=="function"?"Arguments":Tt}},{"./_cof":64,"./_wks":131}],64:[function(yt,Vt,Xt){var kt={}.toString;Vt.exports=function(Wt){return kt.call(Wt).slice(8,-1)}},{}],65:[function(yt,Vt,Xt){var kt=Vt.exports={version:"2.5.7"};typeof __e=="number"&&(__e=kt)},{}],66:[function(yt,Vt,Xt){"use strict";var kt=yt("./_object-dp"),Wt=yt("./_property-desc");Vt.exports=function(xt,Ot,Bt){Ot in xt?kt.f(xt,Ot,Wt(0,Bt)):xt[Ot]=Bt}},{"./_object-dp":98,"./_property-desc":111}],67:[function(yt,Vt,Xt){var kt=yt("./_a-function");Vt.exports=function(Wt,xt,Ot){if(kt(Wt),xt===void 0)return Wt;switch(Ot){case 1:return function(Bt){return Wt.call(xt,Bt)};case 2:return function(Bt,Ct){return Wt.call(xt,Bt,Ct)};case 3:return function(Bt,Ct,bt){return Wt.call(xt,Bt,Ct,bt)}}return function(){return Wt.apply(xt,arguments)}}},{"./_a-function":58}],68:[function(yt,Vt,Xt){Vt.exports=function(kt){if(kt==null)throw TypeError("Can't call method on "+kt);return kt}},{}],69:[function(yt,Vt,Xt){Vt.exports=!yt("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(yt,Vt,Xt){var kt=yt("./_is-object"),Wt=yt("./_global").document,xt=kt(Wt)&&kt(Wt.createElement);Vt.exports=function(Ot){return xt?Wt.createElement(Ot):{}}},{"./_global":76,"./_is-object":85}],71:[function(yt,Vt,Xt){Vt.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(yt,Vt,Xt){var kt=yt("./_object-keys"),Wt=yt("./_object-gops"),xt=yt("./_object-pie");Vt.exports=function(Ot){var Bt=kt(Ot),Ct=Wt.f;if(Ct)for(var bt,Tt=Ct(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,Xt){var kt=yt("./_global"),Wt=yt("./_core"),xt=yt("./_ctx"),Ot=yt("./_hide"),Bt=yt("./_has"),Ct=function(bt,Tt,It){var vt,et,tt,st=bt&Ct.F,rt=bt&Ct.G,ut=bt&Ct.S,ct=bt&Ct.P,pt=bt&Ct.B,mt=bt&Ct.W,Et=rt?Wt:Wt[Tt]||(Wt[Tt]={}),Ft=Et.prototype,Kt=rt?kt:ut?kt[Tt]:(kt[Tt]||{}).prototype;rt&&(It=Tt);for(vt in It)(et=!st&&Kt&&Kt[vt]!==void 0)&&Bt(Et,vt)||(tt=et?Kt[vt]:It[vt],Et[vt]=rt&&typeof Kt[vt]!="function"?It[vt]:pt&&et?xt(tt,kt):mt&&Kt[vt]==tt?function(Dt){var _t=function(qt,Ut,ue){if(this instanceof Dt){switch(arguments.length){case 0:return new Dt;case 1:return new Dt(qt);case 2:return new Dt(qt,Ut)}return new Dt(qt,Ut,ue)}return Dt.apply(this,arguments)};return _t.prototype=Dt.prototype,_t}(tt):ct&&typeof tt=="function"?xt(Function.call,tt):tt,ct&&((Et.virtual||(Et.virtual={}))[vt]=tt,bt&Ct.R&&Ft&&!Ft[vt]&&Ot(Ft,vt,tt)))};Ct.F=1,Ct.G=2,Ct.S=4,Ct.P=8,Ct.B=16,Ct.W=32,Ct.U=64,Ct.R=128,Vt.exports=Ct},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(yt,Vt,Xt){Vt.exports=function(kt){try{return!!kt()}catch(Wt){return!0}}},{}],75:[function(yt,Vt,It){var kt=yt("./_ctx"),Wt=yt("./_iter-call"),xt=yt("./_is-array-iter"),Ot=yt("./_an-object"),Bt=yt("./_to-length"),Ct=yt("./core.get-iterator-method"),bt={},Tt={},It=Vt.exports=function(vt,et,tt,st,rt){var ut,ct,pt,mt,Et=rt?function(){return vt}:Ct(vt),Ft=kt(tt,st,et?2:1),Kt=0;if(typeof Et!="function")throw TypeError(vt+" is not iterable!");if(xt(Et)){for(ut=Bt(vt.length);ut>Kt;Kt++)if((mt=et?Ft(Ot(ct=vt[Kt])[0],ct[1]):Ft(vt[Kt]))===bt||mt===Tt)return mt}else for(pt=Et.call(vt);!(ct=pt.next()).done;)if((mt=Wt(pt,Ft,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,Xt){var kt=Vt.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=kt)},{}],77:[function(yt,Vt,Xt){var kt={}.hasOwnProperty;Vt.exports=function(Wt,xt){return kt.call(Wt,xt)}},{}],78:[function(yt,Vt,Xt){var kt=yt("./_object-dp"),Wt=yt("./_property-desc");Vt.exports=yt("./_descriptors")?function(xt,Ot,Bt){return kt.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,Xt){var kt=yt("./_global").document;Vt.exports=kt&&kt.documentElement},{"./_global":76}],80:[function(yt,Vt,Xt){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,Xt){Vt.exports=function(kt,Wt,xt){var Ot=xt===void 0;switch(Wt.length){case 0:return Ot?kt():kt.call(xt);case 1:return Ot?kt(Wt[0]):kt.call(xt,Wt[0]);case 2:return Ot?kt(Wt[0],Wt[1]):kt.call(xt,Wt[0],Wt[1]);case 3:return Ot?kt(Wt[0],Wt[1],Wt[2]):kt.call(xt,Wt[0],Wt[1],Wt[2]);case 4:return Ot?kt(Wt[0],Wt[1],Wt[2],Wt[3]):kt.call(xt,Wt[0],Wt[1],Wt[2],Wt[3])}return kt.apply(xt,Wt)}},{}],82:[function(yt,Vt,Xt){var kt=yt("./_cof");Vt.exports=Object("z").propertyIsEnumerable(0)?Object:function(Wt){return kt(Wt)=="String"?Wt.split(""):Object(Wt)}},{"./_cof":64}],83:[function(yt,Vt,Xt){var kt=yt("./_iterators"),Wt=yt("./_wks")("iterator"),xt=Array.prototype;Vt.exports=function(Ot){return Ot!==void 0&&(kt.Array===Ot||xt[Wt]===Ot)}},{"./_iterators":91,"./_wks":131}],84:[function(yt,Vt,Xt){var kt=yt("./_cof");Vt.exports=Array.isArray||function(Wt){return kt(Wt)=="Array"}},{"./_cof":64}],85:[function(yt,Vt,Xt){Vt.exports=function(kt){return typeof kt=="object"?kt!==null:typeof kt=="function"}},{}],86:[function(yt,Vt,Xt){var kt=yt("./_an-object");Vt.exports=function(Wt,xt,Ot,Bt){try{return Bt?xt(kt(Ot)[0],Ot[1]):xt(Ot)}catch(bt){var Ct=Wt.return;throw Ct!==void 0&&kt(Ct.call(Wt)),bt}}},{"./_an-object":61}],87:[function(yt,Vt,Xt){"use strict";var kt=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,Ct,bt){Bt.prototype=kt(Ot,{next:Wt(1,bt)}),xt(Bt,Ct+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(yt,Vt,Xt){"use strict";var kt=yt("./_library"),Wt=yt("./_export"),xt=yt("./_redefine"),Ot=yt("./_hide"),Bt=yt("./_iterators"),Ct=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){Ct(rt,st,ut);var Et,Ft,Kt,Dt=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)}},_t=st+" Iterator",qt=ct=="values",Ut=!1,ue=tt.prototype,oe=ue[It]||ue["@@iterator"]||ct&&ue[ct],Pe=oe||Dt(ct),ve=ct?qt?Dt("entries"):Pe:void 0,Oe=st=="Array"&&ue.entries||oe;if(Oe&&(Kt=Tt(Oe.call(new tt)))!==Object.prototype&&Kt.next&&(bt(Kt,_t,!0),kt||typeof Kt[It]=="function"||Ot(Kt,It,et)),qt&&oe&&oe.name!=="values"&&(Ut=!0,Pe=function(){return oe.call(this)}),kt&&!mt||!vt&&!Ut&&ue[It]||Ot(ue,It,Pe),Bt[st]=Pe,Bt[_t]=et,ct)if(Et={values:qt?Pe:Dt("values"),keys:pt?Pe:Dt("keys"),entries:ve},mt)for(Ft in Et)Ft in ue||xt(ue,Ft,Et[Ft]);else Wt(Wt.P+Wt.F*(vt||Ut),st,Et);return Et}},{"./_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,Xt){var kt=yt("./_wks")("iterator"),Wt=!1;try{var xt=[7][kt]();xt.return=function(){Wt=!0},Array.from(xt,function(){throw 2})}catch(Ot){}Vt.exports=function(Ot,Bt){if(!Bt&&!Wt)return!1;var Ct=!1;try{var bt=[7],Tt=bt[kt]();Tt.next=function(){return{done:Ct=!0}},bt[kt]=function(){return Tt},Ot(bt)}catch(It){}return Ct}},{"./_wks":131}],90:[function(yt,Vt,Xt){Vt.exports=function(kt,Wt){return{value:Wt,done:!!kt}}},{}],91:[function(yt,Vt,Xt){Vt.exports={}},{}],92:[function(yt,Vt,Xt){Vt.exports=!0},{}],93:[function(yt,Vt,Xt){var kt=yt("./_uid")("meta"),Wt=yt("./_is-object"),xt=yt("./_has"),Ot=yt("./_object-dp").f,Bt=0,Ct=Object.isExtensible||function(){return!0},bt=!yt("./_fails")(function(){return Ct(Object.preventExtensions({}))}),Tt=function(st){Ot(st,kt,{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,kt)){if(!Ct(st))return"F";if(!rt)return"E";Tt(st)}return st[kt].i},vt=function(st,rt){if(!xt(st,kt)){if(!Ct(st))return!0;if(!rt)return!1;Tt(st)}return st[kt].w},et=function(st){return bt&&tt.NEED&&Ct(st)&&!xt(st,kt)&&Tt(st),st},tt=Vt.exports={KEY:kt,NEED:!1,fastKey:It,getWeak:vt,onFreeze:et}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(yt,Vt,Xt){var kt=yt("./_global"),Wt=yt("./_task").set,xt=kt.MutationObserver||kt.WebKitMutationObserver,Ot=kt.process,Bt=kt.Promise,Ct=yt("./_cof")(Ot)=="process";Vt.exports=function(){var bt,Tt,It,vt=function(){var rt,ut;for(Ct&&(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(Ct)It=function(){Ot.nextTick(vt)};else if(!xt||kt.navigator&&kt.navigator.standalone)if(Bt&&Bt.resolve){var et=Bt.resolve(void 0);It=function(){et.then(vt)}}else It=function(){Wt.call(kt,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,Xt){"use strict";function kt(xt){var Ot,Bt;this.promise=new xt(function(Ct,bt){if(Ot!==void 0||Bt!==void 0)throw TypeError("Bad Promise constructor");Ot=Ct,Bt=bt}),this.resolve=Wt(Ot),this.reject=Wt(Bt)}var Wt=yt("./_a-function");Vt.exports.f=function(xt){return new kt(xt)}},{"./_a-function":58}],96:[function(yt,Vt,Xt){"use strict";var kt=yt("./_object-keys"),Wt=yt("./_object-gops"),xt=yt("./_object-pie"),Ot=yt("./_to-object"),Bt=yt("./_iobject"),Ct=Object.assign;Vt.exports=!Ct||yt("./_fails")(function(){var bt={},Tt={},It=Symbol(),vt="abcdefghijklmnopqrst";return bt[It]=7,vt.split("").forEach(function(et){Tt[et]=et}),Ct({},bt)[It]!=7||Object.keys(Ct({},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?kt(ut).concat(tt(ut)):kt(ut),pt=ct.length,mt=0;pt>mt;)st.call(ut,rt=ct[mt++])&&(It[rt]=ut[rt]);return It}:Ct},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(yt,Vt,Xt){var kt=yt("./_an-object"),Wt=yt("./_object-dps"),xt=yt("./_enum-bug-keys"),Ot=yt("./_shared-key")("IE_PROTO"),Bt=function(){},Ct=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("